apxor-rtm 1.3.7 → 1.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("apxor"),require("apxor-qe")):"function"==typeof define&&define.amd?define(["exports","apxor","apxor-qe"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["apxor-rtm"]={},t.Apxor,t.CE)}(this,(function(t,e,n){"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=r.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function f(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var v="https://server.apxor.com",g=v+"/v2/api/survey-response?appId=<app_id>",m=1,y=2,b=3,_=4,x=function(t){return"InApp".concat(t,"Clicked")},w=["&#128545;","&#128544;","&#128534;","&#128547;","&#128577;","&#128528;","&#128578;","&#128512;","&#128516;","&#128515;","&#128525;"],C=["&#128545;","&#128577;","&#128528;","&#128515;","&#128525;"],E=["#E5510A","#EA731D","#F8C94F","#A3CF6A","#7BB65C"],k=["#E5510A","#EA731D","#EA8F4D","#EA8F4D","#F1B052","#F8C94F","#F6DE4F","#D7D55A","#B7CF6A","#A3CF6A","#7BB65C"],A="small-text",L="custom-size-text",S="medium-text",M="large-text",T="icon-text",I="header",O="footer",D="multi-line-footer",N="cookie",B="image-text",P="image-only",F="video-text",z="normal",q="fill",H="top-left",V="top-right",Z="bottom-left",R="bottom-right",j="top-center",W="bottom-center",U="center",Y="horizontal",X="InApp_",Q="PIP",G="videos",J="modal",$="#000000",K="#ffffff",tt=function(t){return void 0!==t&&!function(t){return null===t}(t)},et=function(t){var e=t.indexOf("svg");-1!==e&&(t=t.substring(0,e)+"svg:svg");try{return document.evaluate(t,document,(function(t){return"svg"===t?"http://www.w3.org/2000/svg":null}),XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(t){window.ApxorLogger.error("Error finding element in DOM:"+t)}return null},nt=function(t){switch(t){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";case"ends":return"space-between";default:return"flex-end"}},it=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o="";if(t.length>0){var r,a,s,l=t[0],c=l.bg_color,d=l.text_color,p=l.size,u=l.font_family,h=l.borders,f=h.stroke_color,v=h.radius,g=l.enable_gradient,m=l.gradient,y=void 0===m?{}:m;g&&(r=y.gradient_direction||"to right",a=y.gradient_c1||$,s=y.gradient_c2||K),o="\n ".concat(i," footer .shepherd-button.button-o {\n cursor: pointer;\n background-color: ").concat("#"===c?"transparent":c,";\n color: ").concat(d,";font-size: ").concat(p,"px;font-family: ").concat(u,";\n font-weight: ").concat("bold"!==u?"normal":u,";\n font-style: ").concat("italic"===u?"italic":"unset",";\n border: 0px solid ").concat(f,";border-radius: ").concat(v,"px;\n ").concat(g?"background-image:linear-gradient(".concat(r,", ").concat(a,", ").concat(s,");"):"","\n margin-right:").concat("#"===c?0:"12px","\n }\n ")}if(t.length>1){var b,_,x,w=t[1],C=w.bg_color,E=w.text_color,k=w.size,A=w.font_family,L=w.borders,S=L.stroke_color,M=L.radius,T=w.gradient_config,I=void 0===T?{}:T,O=I.enable_gradient||!1;O&&(b=I.gradient_direction||"to right",_=(null==I?void 0:I.colors[0])||$,x=(null==I?void 0:I.colors[1])||K),o+="\n ".concat(i," footer .shepherd-button.button-t {\n cursor: pointer;\n background-color: ").concat("#"===C?"transparent":C,";\n color: ").concat(E,";font-size: ").concat(k,"px;font-family: ").concat(A,";\n font-weight: ").concat("bold"!==A?"normal":A,";\n font-style: ").concat("italic"===A?"italic":"unset",";\n ").concat(O?"background-image:linear-gradient(".concat(b,", ").concat(_,", ").concat(x,");"):"","\n border: 0px solid ").concat(S,";border-radius: ").concat(M,"px;\n }\n ")}return"\n ".concat(i," footer .shepherd-button {\n display: inline-block;\n *display: inline;\n vertical-align: middle;\n *vertical-align: auto;\n *zoom: 1;\n border: 0;border-radius: 3px;cursor: pointer;display: inline;font-family: inherit;\n font-size: .8em;letter-spacing: .01em;line-height: 18px;margin-right: 12px;\n padding: 8px 16px;text-transform: none;transition: all .5s ease\n }\n ").concat(o,"\n ").concat(i," footer .shepherd-button:last-child {\n }\n\n ").concat(i," footer {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n display: flex;\n flex-direction:").concat(n===Y?"row":"column",";\n\n align-items:center;\n justify-content: ").concat(n===Y?nt(e):"space-evenly",";\n padding: 0 .8em .8em;\n }\n ")},ot=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Inline_",r=window.ApxorRTM,a=[],s=[];return t.forEach((function(t,l){var c,d,p,u,h,f,v,g,m=null!==(c=null==t||null===(d=t.action_config)||void 0===d?void 0:d.action)&&void 0!==c?c:"end",y=null!==(p=null==t||null===(u=t.action_config)||void 0===u?void 0:u.url)&&void 0!==p?p:"",b=null===(h=null==t||null===(f=t.action_config)||void 0===f?void 0:f.is_external)||void 0===h||h,_=null!==(v=null==t||null===(g=t.action_config)||void 0===g?void 0:g.is_within)&&void 0!==v&&v;m=m.toLowerCase();var x,w=t.borders,C=t.color,E=t.text_config,k=E.text,A=E.color,L=E.size,S=E.style,M=E.font_family,T=t.gradient_config,I=void 0===T?{}:T;try{switch(m){case"done":case"dismiss":x=function(){r.logActionEvent(o+k+"_Clicked",n,i),e.complete(!1,"dismiss")};break;case"next":x=function(){e.complete(!1,"dismiss"),r.logActionEvent(o+k+"_Clicked",n,i)};break;case"prev":x=function(){e.complete(!1,"prev"),r.logActionEvent(o+k+"_Clicked",n,i)};break;case"redirect":x=function(){r.logActionEvent(o+k+"_Clicked",n,i),_||b?window.open(y,_?"_self":"_blank"):r.logClientEvent("REDIRECT",{url:y}),e.next(!1,"redirect")};break;case"cancel":x=function(){e._isCancelled=!0,e.cancel(!0,"cancel"),r.logActionEvent(o+k+"_Clicked",n,i)};break;default:x=function(){r.logActionEvent(o+k+"_Clicked",n,i),e.cancel(!1,"cancel")}}}catch(t){window.ApxorLogger.error("Error setting actions on the buttons:"+t)}s.push({borders:w,bg_color:C,text_color:A,size:L,style:S,font_family:M,gradient_config:I}),a.push({classes:0===l?"button-o":"button-t",text:k,action:x})})),{buttons_array:a,buttons_css:s}};var rt=function(t,e,n){var i=n.dim_background,o=void 0===i||i,r=n.dim_bg_color,a=void 0===r?"#000000":r,s=n.dim_bg_opacity,l=void 0===s?.87:s,c=n.position,d=document.createElement("div");d.setAttribute("id","apx-oly");var p=document.createElement("style"),u="center",h="center";switch(c){case"bottom-left":u="flex-start",h="flex-end";break;case"bottom-right":u="flex-end",h="flex-end";break;case"top-left":u="flex-start",h="flex-start";break;case"top-right":u="flex-end",h="flex-start"}var f="none";if(o){var v=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,i){return e+e+n+n+i+i}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}(a);f="rgb(".concat(v.r,", ").concat(v.g,", ").concat(v.b,", ").concat(l,")")}p.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(f,";\n display:flex;justify-content:").concat(u,";align-items:").concat(h,";border-radius:3px;z-index:2147483647\n}\n#apx-oly > * {font-family: inherit;box-sizing:unset}\n.apx-dlg-c {\n width:").concat(t,"px;min-height:").concat(e,"%;background:white;z-index:99999999;opacity:0;position:relative;visibility:hidden;\n transition:all 500ms cubic-bezier(0, -0.37, 0, 2.06);top:-15px;border-radius:3px;margin:20px\n}\n.apx-dlg-c.open {opacity:1;visibility:visible;top:0}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var g=document.createElement("div");return g.setAttribute("id","apx-dlg-c"),g.classList.add("apx-dlg-c"),d.appendChild(g),d.appendChild(p),document.body.appendChild(d),d},at=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=parseInt(t.slice(1,3),16),i=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16);return e?"rgba("+n+", "+i+", "+o+", "+e+")":"rgb("+n+", "+i+", "+o+")"},st=function(t){return 50===t?10:16},lt=function(t,e){switch(t.toLowerCase()){case"top":case"top-start":case"top-end":return"translateY(".concat(st(e)-26,"px)");case"right":case"right-start":case"right-end":return"translateX(".concat(st(e),"px)");case"bottom":case"bottom-start":case"bottom-end":return"translateY(".concat(st(e),"px)");case"left":case"left-start":case"left-end":return"translateX(".concat(st(e)-26,"px)")}},ct=function(t){var e=t.offsetHeight,n=t.offsetWidth,i=t.getBoundingClientRect();return i.left>=-n&&i.top>=-e&&i.right<=(window.innerWidth||document.documentElement.clientWidth)+n&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)+e},dt=function(t,e,n,i){return t.substring(0,e)+i+t.substring(n)},pt=function(t){var n=e.getController().getUserAttributes(),i=e.getController().getSessionAttributes(),o=t.script.vmap,r=t.script.src,a=r.indexOf("{"),s=r.indexOf("}"),l=e.getController().getLoggedEventsList();try{for(;-1!=a&&-1!=s&&a<s;){var c=r.substring(a+1,s),d=o[c].t,p=o[c].n,u=o[c].def,h="";if("s"===d)h=i[p]?i[p]:u;else if("u"===d)h=n[p]?n[p]:u;else if("v"===d){var f=document.getElementById(p);(h=null==f?void 0:f.textContent)||(h=(null==f?void 0:f.value)||"")}else if("ev"===d){var v=o[c].n,g=o[c].prop;l[v]&&l[v][g]&&(h=l[v][g])}a=(r=dt(r,a,s+1,h)).indexOf("{"),s=r.indexOf("}")}t.text=r}catch(t){console.log("Can't evaluate the dynamic text")}},ut=function(t){var n=e.getController().getUserAttributes(),i=e.getController().getSessionAttributes(),o=t.script.vmap,r="",a=t.script.src,s=e.getController().getLoggedEventsList();Object.entries(o).forEach((function(t){var e=d(t,2),a=e[0],l=e[1],c=l.t,p=l.n,u=l.def,h="";if("s"===c)h=i[p]?i[p]:u;else if("u"===c)h=n[p]?n[p]:u;else if("v"===c){var f=document.getElementById(p);(h=null==f?void 0:f.textContent)||(h=(null==f?void 0:f.value)||"")}else if("ev"===c){var v=o[a].n,g=o[a].prop;s[v]&&s[v][g]&&(h=s[v][g])}r="".concat(r," \n let ").concat(a,' = "').concat(h,'";')}));var l="".concat(r," \n ").concat(a),c=new Function(l);t.text=c()},ht=function(t){"Script"===(null==t?void 0:t.text)&&(t.isDynamicText?pt(t):ut(t))},ft=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=document.createElement("span");if(0==e.length?i.innerText=t:e.forEach((function(e){var n=parseInt(e.start),o=parseInt(e.end),r=t.substring(n,o),a="";e.color&&(a="".concat(a,"color:").concat(e.color,";")),e.font_family&&(a="".concat(a,"font-family:").concat(e.font_family,";")),e.size&&(a="".concat(a,"font-size:").concat(e.size,"px;")),"italic"===e.style&&(a="".concat(a,"font-style:").concat(e.style,";")),"bold"===e.style&&(a="".concat(a,"font-weight:").concat(e.style,";")),"normal"===e.style&&(a="".concat(a,"font-weight:").concat(e.style,";")),1==e.underline&&(a="".concat(a,"text-decoration:underline;")),1==e.strike_through&&(a="".concat(a,"text-decoration:line-through;")),"super"==e.script&&(a="".concat(a,"vertical-align:super;")),"sub"==e.script&&(a="".concat(a,"vertical-align:sub;")),e.bg_color&&(a="".concat(a,"background-color:").concat(e.bg_color,";"));var s=document.createElement("span");s.style=a,s.innerText=r,i.appendChild(s)})),void 0!==n){var o=document.createElement("blockquote"),r="";return n.color&&(r="border-left-color:".concat(n.color,";")),n.width&&(r="".concat(r,"border-left-width:").concat(n.width,"px;")),n.gap&&(r="".concat(r,"padding:").concat(n.gap,"px;")),o.appendChild(i),o.style=r,o}return i},vt=function(t,e){var n=t.color,i=void 0===n?"#000":n,o=t.font_family,r=void 0===o?"cursive":o,a=t.size,s=void 0===a?14:a,l=t.style,c=void 0===l?"bold":l,d=t.text,p=t.segments,u=t.quote,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desc",f=document.createElement("span");f.setAttribute("id",e+"-"+h),f.className="apx-class-".concat(e,"-").concat(h);var v=document.createElement("style");return v.innerHTML="\n .apx-class-".concat(e,"-").concat(h," {\n z-index:99999;\n color:").concat(i," !important;\n font-family:").concat(r," !important;\n font-size:").concat(s,"px !important;\n font-weight:").concat(c," !important;\n font-style:").concat("normal"===c||"italic"===c?c+" !important":"unset",";\n max-width:400px;\n }\n "),f.appendChild(v),f.appendChild(ft(d,p,u)),f},gt=function(t){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n.length,o=0;o<t;o++)e+=n.charAt(Math.floor(Math.random()*i));return e},mt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=0,i=0;try{var o=t.width,r=void 0===o?360:o,a=t.height,s=void 0===a?360:a,l=s/r,c=window.innerWidth,d=window.innerHeight;c>d?i=(n=d*e)/l:n=(i=c*e)*l}catch(t){console.log("Error \n ".concat(t," \n occured while calculating the height and width"))}return{height:n,width:i}},yt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=document.createElement("footer");s.classList.add("shepherd-footer"),s.style.zIndex=99999999,s.style.margin="18px",s.style.padding="0";var l=ot(i,a,t,e,n),c=l.buttons_array,d=l.buttons_css,p=document.createElement("style");return p.innerHTML=it(d,o,r),s.appendChild(p),c.forEach((function(t){var e=t.classes,n=t.text,i=t.action,o=document.createElement("button");o.className="shepherd-button "+e,o.innerHTML=n,o.onclick=function(){return i()},s.appendChild(o)})),s},bt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0,i='\n <svg xmlns="http://www.w3.org/2000/svg" width="'.concat(t,'" height="').concat(e,'" fill=').concat(n,' class="bi bi-x-circle" viewBox="0 0 16 16">\n <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>\n <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>\n </svg>');return i},_t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0,i='\n <svg xmlns="http://www.w3.org/2000/svg" width="'.concat(t,'" height="').concat(e,'" fill=').concat(n,' class="bi bi-x" viewBox="0 0 16 16">\n <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>\n </svg>');return i},xt=function(t){var e,n,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=document.getElementById(t);if(!r)try{r=document.querySelector(t)}catch(t){window.ApxorLogger.error("Error finding element in DOM:"+t)}(r||(r=et(t)),!r&&o.length>0)&&(r=null===(e=document.getElementById(o))||void 0===e||null===(n=e.contentWindow)||void 0===n||null===(i=n.document)||void 0===i?void 0:i.querySelector(t));return r};
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("apxor"),require("apxor-qe")):"function"==typeof define&&define.amd?define(["exports","apxor","apxor-qe"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["apxor-rtm"]={},e.Apxor,e.CE)}(this,(function(exports,Apxor,CE){"use strict";function _iterableToArrayLimit$1(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _objectSpread2$1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty$1(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _typeof$1(e){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck$1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass$1(e,t,n){return t&&_defineProperties$1(e.prototype,t),n&&_defineProperties$1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty$1(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _slicedToArray$1(e,t){return _arrayWithHoles$1(e)||_iterableToArrayLimit$1(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest$1()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayWithHoles$1(e){if(Array.isArray(e))return e}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toPrimitive(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:String(t)}var VERSION=139,SERVER_URL="https://server.apxor.com",RTA_VALIDATE_URL=SERVER_URL+"/v2/sync/<app_id>/configs/validate?platform=web&userId=<u_id>&actionType=rta&version="+VERSION,RTA_SYNC_URL=SERVER_URL+"/v2/sync/<app_id>/rta?platform=web&userId=<u_id>&version="+VERSION,SURVEY_VALIDATE_URL=SERVER_URL+"/v2/sync/<app_id>/configs/validate?platform=web&userId=<u_id>&actionType=survey&version="+VERSION,SURVEY_SYNC_URL=SERVER_URL+"/v2/sync/<app_id>/surveys?platform=web&userId=<u_id>&version="+VERSION,SURVEY_RESPONSE_URL=SERVER_URL+"/v2/api/survey-response?appId=<app_id>",CONFIG_API_URL=SERVER_URL+"/v1/sse/art-config?appId=<app_id>&deviceId=<u_id>&isExperiment=true",TEST_DEVICES_API_URL=SERVER_URL+"/v1/external/test-devices/validate?appId=<app_id>&deviceId=<u_id>",ANSWER_TYPES={SINGLE_CHOICE:1,MULTI_CHOICE:2,RATING:3,SHORT_ANSWER:4,YES_NO:5},APX_OVERLAY="apx-oly",APX_DIALOG_CONTENT="apx-dlg-c",APX_DIALOG_YES="apx-dy",APX_DIALOG_NO="apx-dn",INAPP_SHOWN="inapp_shown",INAPP_DISMISSED="inapp_dismissed",INAPP_XICON_CLICKED="InAppXIconClicked",INAPP_BUTTON_CLICKED=function(e){return"InApp".concat(e,"Clicked")},WALK_THROUGH_CANCELLED="walk_through_cancelled",SURVEY_ON_DISMISS="on_dismiss",USER_ATTRIBUTES="u",SESSION_ATTRIBUTES="s",APPLICATION_VIEW_ID="v",EVENT_TYPE="ev",VARIABLE_TYPE="t",DEFAULT_VALUE="def",ATTRIBUTE_NAME="n",DYNAMIC_TEXT="Script",EVENT_PROPERTY_NAME="prop",IN_APP_TYPE="IN_APP",CENTER="center",EMOJI_ICONS_10=["&#128545;","&#128544;","&#128534;","&#128547;","&#128577;","&#128528;","&#128578;","&#128512;","&#128516;","&#128515;","&#128525;"],EMOJI_ICONS_5=["&#128545;","&#128577;","&#128528;","&#128515;","&#128525;"],RATING_COLORS_5=["#E5510A","#EA731D","#F8C94F","#A3CF6A","#7BB65C"],RATING_COLORS_10=["#E5510A","#EA731D","#EA8F4D","#EA8F4D","#F1B052","#F8C94F","#F6DE4F","#D7D55A","#B7CF6A","#A3CF6A","#7BB65C"],SCROLL_BEHAVIOUR={SMOOTH:"smooth"},BUTTON_CONTAINER_POSITION={TOP:"top",CENTER:"center",BOTTOM:"bottom"},TOOLTIP_POSITION={TOP:"top",TOP_START:"top-start",TOP_END:"top-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",AUTO:"auto",AUTO_START:"auto-start",AUTO_END:"auto-end"},CLOSE_BUTTON_STYLE={NORMAL:"normal",FILL:"fill"},INAPP_POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_CENTER:"top-center",BOTTOM_CENTER:"bottom-center",CENTER:"center"},DIRECTION={HORIZONTAL:"horizontal",VERTICAL:"vertical"},EVENT_PREFIX={INAPP:"InApp_",INLINE:"InLine_"},VIDEOS_MODES={PLAYER:"mini",PIP:"PIP"},INAPP_TYPE={VIDEO:"videos",MODAL:"modal"},COLORS={BLACK:"#000000",WHITE:"#ffffff"},APX_PREVIEW_CAMPAIGN_NAME="APX-PR3VI3W-CAMPGAIN",isNull=function(e){return null===e},isDefined=function(e){return void 0!==e&&!isNull(e)},getElementByXPath=function(e){var t=e.indexOf("svg");-1!==t&&(e=e.substring(0,t)+"svg:svg");try{return document.evaluate(e,document,(function(e){return"svg"===e?"http://www.w3.org/2000/svg":null}),XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(e){window.ApxorLogger.error("Error finding element in DOM:"+e)}return null},getShuffledArr=function(e){return _toConsumableArray(e).map((function(e,t,n){var i=t+Math.floor(Math.random()*(n.length-t)),o=[n[t],n[i]];return n[i]=o[0],n[t]=o[1],n[t]}))},getButtonPosition=function(e){switch(e){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";case"ends":return"space-between";default:return"flex-end"}},getButtonsCSSFromConfig=function(e,t,n,i){var o="",r=0,a=0;return a=i===BUTTON_CONTAINER_POSITION.TOP?3:i===BUTTON_CONTAINER_POSITION.BOTTOM?5:1,e.forEach((function(n,s){var c,l,d,p=n.slot_number,u=n.bg_color,h=n.text_color,f=n.size,g=n.font_family,m=n.borders,_=m.stroke_width,v=m.stroke_color,y=m.radius,b=n.margin_config,x=b.bottom,w=b.left,C=b.right,E=b.top,T=n.padding_config,O=T.bottom,S=T.left,A=T.right,I=T.top,k=n.text_margin_config,L=k.bottom,P=k.left,N=k.right,R=k.top,M=n.text_padding_config,D=M.bottom,B=M.left,$=M.right,V=M.top,F=n.enable_gradient,H=n.gradient,W=void 0===H?{}:H;F&&(c=W.gradient_direction||"to right",l=W.gradient_c1||COLORS.BLACK,d=W.gradient_c2||COLORS.WHITE);var j=!1,U=!1;if("vertical"!==t){var z,q=(null===(z=e[s+1])||void 0===z?void 0:z.slot_number)||a+1;p-r>1&&(j=!0),q-p>1&&(U=!0),i===BUTTON_CONTAINER_POSITION.CENTER&&(j=!0,U=!0),r=p}o+="\n div .button-div.".concat(i,"-button-").concat(p,"{\n width:auto;\n height:auto;\n cursor: pointer;\n background-color: ").concat("#"===u?"transparent":u,";\n border: ").concat(_,"px solid ").concat(v,";border-radius: ").concat(y,"px;\n margin: ").concat(E,"px ").concat(C,"px ").concat(x,"px ").concat(w,"px;\n padding: ").concat(I,"px ").concat(A,"px ").concat(O,"px ").concat(S,"px;\n ").concat(j?"margin-left:auto;":"","\n ").concat(U?"margin-right:auto;":"margin-right:12px;","\n ").concat(F?"background-image:linear-gradient(".concat(c,", ").concat(l,", ").concat(d,");"):"","\n }\n .").concat(i,"-button-").concat(p,"{\n cursor: pointer;\n color: ").concat(h,";\n background-color: transparent;\n font-size: ").concat(f,"px;\n border:none;\n font-family: ").concat(g,";\n font-weight: ").concat("bold"!==g?"normal":g,";\n font-style: ").concat("italic"===g?"italic":"unset",";\n margin: ").concat(R,"px ").concat(N,"px ").concat(L,"px ").concat(P,"px;\n padding: ").concat(V,"px ").concat($,"px ").concat(D,"px ").concat(B,"px;\n }\n ")})),"\n div .buttons-container-div {\n display: flex;\n flex-direction:".concat(t===DIRECTION.HORIZONTAL?"row":"column",";\n justify-content:space-between;\n align-items:").concat(t===DIRECTION.VERTICAL?getButtonPosition(n):"center",";\n flex-wrap:wrap;\n }\n ").concat(o,"\n ")},getButtonsCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:DIRECTION.HORIZONTAL,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o="";if(e.length>0){var r,a,s,c=e[0],l=c.bg_color,d=c.text_color,p=c.size,u=c.font_family,h=c.borders,f=h.stroke_color,g=h.radius,m=c.enable_gradient,_=c.gradient,v=void 0===_?{}:_;m&&(r=v.gradient_direction||"to right",a=v.gradient_c1||COLORS.BLACK,s=v.gradient_c2||COLORS.WHITE),o="\n ".concat(i," footer .shepherd-button.button-o {\n cursor: pointer;\n background-color: ").concat("#"===l?"transparent":l,";\n color: ").concat(d,";font-size: ").concat(p,"px;font-family: ").concat(u,";\n font-weight: ").concat("bold"!==u?"normal":u,";\n font-style: ").concat("italic"===u?"italic":"unset",";\n border: 0px solid ").concat(f,";border-radius: ").concat(g,"px;\n ").concat(m?"background-image:linear-gradient(".concat(r,", ").concat(a,", ").concat(s,");"):"","\n margin-right:").concat("#"===l?0:"12px","\n }\n ")}if(e.length>1){var y,b,x,w=e[1],C=w.bg_color,E=w.text_color,T=w.size,O=w.font_family,S=w.borders,A=S.stroke_color,I=S.radius,k=w.gradient_config,L=void 0===k?{}:k,P=L.enable_gradient||!1;P&&(y=L.gradient_direction||"to right",b=(null==L?void 0:L.colors[0])||COLORS.BLACK,x=(null==L?void 0:L.colors[1])||COLORS.WHITE),o+="\n ".concat(i," footer .shepherd-button.button-t {\n cursor: pointer;\n background-color: ").concat("#"===C?"transparent":C,";\n color: ").concat(E,";font-size: ").concat(T,"px;font-family: ").concat(O,";\n font-weight: ").concat("bold"!==O?"normal":O,";\n font-style: ").concat("italic"===O?"italic":"unset",";\n ").concat(P?"background-image:linear-gradient(".concat(y,", ").concat(b,", ").concat(x,");"):"","\n border: 0px solid ").concat(A,";border-radius: ").concat(I,"px;\n }\n ")}return"\n ".concat(i," footer .shepherd-button {\n display: inline-block;\n *display: inline;\n vertical-align: middle;\n *vertical-align: auto;\n *zoom: 1;\n border: 0;border-radius: 3px;cursor: pointer;display: inline;font-family: inherit;\n font-size: .8em;letter-spacing: .01em;line-height: 18px;margin-right: 12px;\n padding: 8px 16px;text-transform: none;transition: all .5s ease\n }\n ").concat(o,"\n ").concat(i," footer .shepherd-button:last-child {\n }\n\n ").concat(i," footer {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n display: flex;\n flex-direction:").concat(n===DIRECTION.HORIZONTAL?"row":"column",";\n\n align-items:center;\n justify-content: ").concat(n===DIRECTION.HORIZONTAL?getButtonPosition(t):"space-evenly",";\n padding: 0 .8em .8em;\n }\n ")},generateButtons=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Inline_",r=window.ApxorRTM,a=[],s=[];return e.forEach((function(e,c){var l,d,p,u,h,f,g,m,_=null!==(l=null==e||null===(d=e.action_config)||void 0===d?void 0:d.action)&&void 0!==l?l:"end",v=null!==(p=null==e||null===(u=e.action_config)||void 0===u?void 0:u.url)&&void 0!==p?p:"",y=null===(h=null==e||null===(f=e.action_config)||void 0===f?void 0:f.is_external)||void 0===h||h,b=null!==(g=null==e||null===(m=e.action_config)||void 0===m?void 0:m.is_within)&&void 0!==g&&g;_=_.toLowerCase();var x,w=e.borders,C=e.color,E=e.text_config,T=E.text,O=E.color,S=E.size,A=E.style,I=E.font_family,k=e.gradient_config,L=void 0===k?{}:k;try{switch(_){case"done":case"dismiss":x=function(){r.logActionEvent(o+T+"_Clicked",n,i),t.complete(!1,"dismiss")};break;case"next":x=function(){t.complete(!1,"dismiss"),r.logActionEvent(o+T+"_Clicked",n,i)};break;case"prev":x=function(){t.complete(!1,"prev"),r.logActionEvent(o+T+"_Clicked",n,i)};break;case"redirect":x=function(){r.logActionEvent(o+T+"_Clicked",n,i),b||y?window.open(v,b?"_self":"_blank"):r.logClientEvent("REDIRECT",{url:v}),t.next(!1,"redirect")};break;case"cancel":x=function(){t._isCancelled=!0,t.cancel(!0,"cancel"),r.logActionEvent(o+T+"_Clicked",n,i)};break;default:x=function(){r.logActionEvent(o+T+"_Clicked",n,i),t.cancel(!1,"cancel")}}}catch(e){window.ApxorLogger.error("Error setting actions on the buttons:"+e)}s.push({borders:w,bg_color:C,text_color:O,size:S,style:A,font_family:I,gradient_config:L}),a.push({classes:0===c?"button-o":"button-t",text:T,action:x})})),{buttons_array:a,buttons_css:s}},generateButtonsFromConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Inline_",r=arguments.length>5?arguments[5]:void 0,a=window.ApxorRTM,s=[],c=[];return e.forEach((function(e,l){var d,p,u,h,f,g,m,_,v=null!==(d=null==e||null===(p=e.action_config)||void 0===p?void 0:p.action)&&void 0!==d?d:"end",y=null!==(u=null==e||null===(h=e.action_config)||void 0===h?void 0:h.url)&&void 0!==u?u:"",b=null===(f=null==e||null===(g=e.action_config)||void 0===g?void 0:g.is_external)||void 0===f||f,x=null!==(m=null==e||null===(_=e.action_config)||void 0===_?void 0:_.is_within)&&void 0!==m&&m;v=v.toLowerCase();var w,C=e.slot_number,E=e.borders,T=e.color,O=e.margin_config,S=e.padding_config,A=e.text_config,I=A.text,k=A.color,L=A.size,P=A.style,N=A.font_family,R=A.margin_config,M=A.padding_config,D=e.gradient_config,B=void 0===D?{}:D;try{switch(v){case"done":case"dismiss":w=function(){a.logActionEvent(o+I+"_Clicked",n,i),t.complete(!1,"dismiss")};break;case"next":w=function(){t.complete(!1,"dismiss"),a.logActionEvent(o+I+"_Clicked",n,i)};break;case"prev":w=function(){t.complete(!1,"prev"),a.logActionEvent(o+I+"_Clicked",n,i)};break;case"redirect":w=function(){a.logActionEvent(o+I+"_Clicked",n,i),x||b?window.open(y,x?"_self":"_blank"):a.logClientEvent("REDIRECT",{url:y}),t.next(!1,"redirect")};break;case"cancel":w=function(){t._isCancelled=!0,t.cancel(!0,"cancel"),a.logActionEvent(o+I+"_Clicked",n,i)};break;default:w=function(){a.logActionEvent(o+I+"_Clicked",n,i),t.cancel(!1,"cancel")}}}catch(e){window.ApxorLogger.error("Error setting actions on the buttons:"+e)}c.push({slot_number:C,borders:E,bg_color:T,text_color:k,size:L,style:P,font_family:N,text_margin_config:R,text_padding_config:M,margin_config:O,padding_config:S,gradient_config:B}),s.push({classes:"".concat(r,"-button-").concat(C),text:I,action:w})})),{buttons_array:s,buttons_css:c}};function hexToRgb$1(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,i){return t+t+n+n+i+i}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}var createDialog$1=function(e,t,n){var i=n.dim_background,o=void 0===i||i,r=n.dim_bg_color,a=void 0===r?"#000000":r,s=n.dim_bg_opacity,c=void 0===s?.87:s,l=n.position,d=document.createElement("div");d.setAttribute("id",APX_OVERLAY);var p=document.createElement("style"),u="center",h="center";switch(l){case"bottom-left":u="flex-start",h="flex-end";break;case"bottom-right":u="flex-end",h="flex-end";break;case"top-left":u="flex-start",h="flex-start";break;case"top-right":u="flex-end",h="flex-start"}var f="none";if(o){var g=hexToRgb$1(a);f="rgb(".concat(g.r,", ").concat(g.g,", ").concat(g.b,", ").concat(c,")")}p.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(f,";\n display:flex;justify-content:").concat(u,";align-items:").concat(h,";border-radius:3px;z-index:2147483647\n}\n#apx-oly > * {font-family: inherit;box-sizing:unset}\n.apx-dlg-c {\n width:").concat(e,"px;min-height:").concat(t,"%;background:white;z-index:99999999;opacity:0;position:relative;visibility:hidden;\n transition:all 500ms cubic-bezier(0, -0.37, 0, 2.06);top:-15px;border-radius:3px;margin:20px\n}\n.apx-dlg-c.open {opacity:1;visibility:visible;top:0}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var m=document.createElement("div");return m.setAttribute("id",APX_DIALOG_CONTENT),m.classList.add(APX_DIALOG_CONTENT),d.appendChild(m),d.appendChild(p),document.body.appendChild(d),d},getCookie=function(e){if(window.document)for(var t=e+"=",n=window.document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},uuid=function e(t){return[Math.random,function(){return e.last?e.last+Math.random():Math.random()},Math.random,Date.now,Math.random].map((function(e){return e().toString(t||16+20*Math.random()).substr(-8)})).join("-")},hexToRGB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=parseInt(e.slice(1,3),16),i=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return t?"rgba("+n+", "+i+", "+o+", "+t+")":"rgb("+n+", "+i+", "+o+")"},getAnimationValue=function(e){return 50===e?10:16},translateDir=function(e,t){switch(e.toLowerCase()){case"top":case"top-start":case"top-end":return"translateY(".concat(getAnimationValue(t)-26,"px)");case"right":case"right-start":case"right-end":return"translateX(".concat(getAnimationValue(t),"px)");case"bottom":case"bottom-start":case"bottom-end":return"translateY(".concat(getAnimationValue(t),"px)");case"left":case"left-start":case"left-end":return"translateX(".concat(getAnimationValue(t)-26,"px)")}},isElementInViewport=function(e){var t=e.offsetHeight,n=e.offsetWidth,i=e.getBoundingClientRect();return i.left>=-n&&i.top>=-t&&i.right<=(window.innerWidth||document.documentElement.clientWidth)+n&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)+t},replaceStringBetweenIndeces=function(e,t,n,i){return e.substring(0,t)+i+e.substring(n)},evaluateDynamicText=function(e){var t=Apxor.getController().getUserAttributes(),n=Apxor.getController().getSessionAttributes(),i=e.script.vmap,o=e.script.src,r=o.indexOf("{"),a=o.indexOf("}"),s=Apxor.getController().getLoggedEventsList();try{for(;-1!=r&&-1!=a&&r<a;){var c=o.substring(r+1,a),l=i[c][VARIABLE_TYPE],d=i[c][ATTRIBUTE_NAME],p=i[c][DEFAULT_VALUE],u="";if(l===SESSION_ATTRIBUTES)u=n[d]?n[d]:p;else if(l===USER_ATTRIBUTES)u=t[d]?t[d]:p;else if(l===APPLICATION_VIEW_ID){var h=document.getElementById(d);(u=null==h?void 0:h.textContent)||(u=(null==h?void 0:h.value)||"")}else if(l===EVENT_TYPE){var f=i[c][ATTRIBUTE_NAME],g=i[c][EVENT_PROPERTY_NAME];s[f]&&s[f][g]&&(u=s[f][g])}r=(o=replaceStringBetweenIndeces(o,r,a+1,u)).indexOf("{"),a=o.indexOf("}")}e.text=o}catch(e){console.log("Can't evaluate the dynamic text")}},evaluateDynamicScript=function(e){var t=Apxor.getController().getUserAttributes(),n=Apxor.getController().getSessionAttributes(),i=e.script.vmap,o="",r=e.script.src,a=Apxor.getController().getLoggedEventsList();Object.entries(i).forEach((function(e){var r=_slicedToArray$1(e,2),s=r[0],c=r[1],l=c[VARIABLE_TYPE],d=c[ATTRIBUTE_NAME],p=c[DEFAULT_VALUE],u="";if(l===SESSION_ATTRIBUTES)u=n[d]?n[d]:p;else if(l===USER_ATTRIBUTES)u=t[d]?t[d]:p;else if(l===APPLICATION_VIEW_ID){var h=document.getElementById(d);(u=null==h?void 0:h.textContent)||(u=(null==h?void 0:h.value)||"")}else if(l===EVENT_TYPE){var f=i[s][ATTRIBUTE_NAME],g=i[s][EVENT_PROPERTY_NAME];a[f]&&a[f][g]&&(u=a[f][g])}o="".concat(o," \n let ").concat(s,' = "').concat(u,'";')}));var s="".concat(o," \n ").concat(r),c=new Function(s);e.text=c()},resolveDynamicText=function(e){(null==e?void 0:e.text)===DYNAMIC_TEXT&&(e.isDynamicText?evaluateDynamicText(e):evaluateDynamicScript(e))},getStylisedText=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=document.createElement("span");if(0==t.length?i.innerText=e:t.forEach((function(t){var n=parseInt(t.start),o=parseInt(t.end),r=e.substring(n,o),a="";t.color&&(a="".concat(a,"color:").concat(t.color,";")),t.font_family&&(a="".concat(a,"font-family:").concat(t.font_family,";")),t.size&&(a="".concat(a,"font-size:").concat(t.size,"px;")),"italic"===t.style&&(a="".concat(a,"font-style:").concat(t.style,";")),"bold"===t.style&&(a="".concat(a,"font-weight:").concat(t.style,";")),"normal"===t.style&&(a="".concat(a,"font-weight:").concat(t.style,";")),1==t.underline&&(a="".concat(a,"text-decoration:underline;")),1==t.strike_through&&(a="".concat(a,"text-decoration:line-through;")),"super"==t.script&&(a="".concat(a,"vertical-align:super;")),"sub"==t.script&&(a="".concat(a,"vertical-align:sub;")),t.bg_color&&(a="".concat(a,"background-color:").concat(t.bg_color,";"));var s=document.createElement("span");s.style=a,s.innerText=r,i.appendChild(s)})),void 0!==n){var o=document.createElement("blockquote"),r="";return n.color&&(r="border-left-color:".concat(n.color,";")),n.width&&(r="".concat(r,"border-left-width:").concat(n.width,"px;")),n.gap&&(r="".concat(r,"padding:").concat(n.gap,"px;")),o.appendChild(i),o.style=r,o}return i},createTextElement=function(e,t){var n=e.color,i=void 0===n?"#000":n,o=e.font_family,r=void 0===o?"cursive":o,a=e.size,s=void 0===a?14:a,c=e.style,l=void 0===c?"bold":c,d=e.text,p=e.segments,u=e.quote,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desc",f=document.createElement("span");f.setAttribute("id",t+"-"+h),f.className="apx-class-".concat(t,"-").concat(h);var g=document.createElement("style");return g.innerHTML="\n .apx-class-".concat(t,"-").concat(h," {\n z-index:99999;\n color:").concat(i," !important;\n font-family:").concat(r," !important;\n font-size:").concat(s,"px !important;\n font-weight:").concat(l," !important;\n font-style:").concat("normal"===l||"italic"===l?l+" !important":"unset",";\n max-width:400px;\n }\n "),f.appendChild(g),f.appendChild(getStylisedText(d,p,u)),f},makeid=function(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n.length,o=0;o<e;o++)t+=n.charAt(Math.floor(Math.random()*i));return t},getHeightWidthFromResolution=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0,o=0;try{var r=e.width,a=void 0===r?360:r,s=e.height,c=void 0===s?360:s,l=c/a,d=window.innerWidth,p=window.innerHeight;n?o=(i=p*t)/l:i=(o=d*t)*l}catch(e){console.log("Error \n ".concat(e," \n occured while calculating the height and width"))}return{height:i,width:o}},generateButtonsBlock=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:EVENT_PREFIX.INAPP,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=document.createElement("div");c.classList.add("buttons-container-div"),c.style.zIndex=99999999;var l=generateButtonsFromConfig(i,s,e,t,n,a),d=l.buttons_array,p=l.buttons_css,u=document.createElement("style");return u.innerHTML=getButtonsCSSFromConfig(p,o,r,a),c.appendChild(u),d.forEach((function(e){var t=e.classes,n=e.text,i=e.action,o=document.createElement("div");o.className="button-div "+t;var r=document.createElement("button");r.className=t,r.innerHTML=n,o.appendChild(r),o.onclick=function(){return i()},c.appendChild(o)})),c},generateCTAButtons=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:EVENT_PREFIX.INAPP,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=document.createElement("footer");s.classList.add("shepherd-footer"),s.style.zIndex=99999999,s.style.margin="18px",s.style.padding="0";var c=generateButtons(i,a,e,t,n),l=c.buttons_array,d=c.buttons_css,p=document.createElement("style");return p.innerHTML=getButtonsCSS(d,o,r),s.appendChild(p),l.forEach((function(e){var t=e.classes,n=e.text,i=e.action,o=document.createElement("button");o.className="shepherd-button "+t,o.innerHTML=n,o.onclick=function(){return i()},s.appendChild(o)})),s},generateFormField=function(e){var t,n,i,o,r,a,s,c,l,d,p,u,h,f,g,m,_,v;switch(e.type){case"fullname":return'\n <div class="mainName" style="padding: 8px; display: flex;gap :8px" >\n <div class="first" style="width:50%">\n '.concat(e.name?'<label for="fname" style="line-height:1.5;">'.concat(null!==(t=null==e||null===(n=e.name)||void 0===n?void 0:n[0])&&void 0!==t?t:" ","</label><br />"):"",'\n <input type="text" id="fname" placeholder="').concat(null!==(i=null==e||null===(o=e.placeholder)||void 0===o?void 0:o[0])&&void 0!==i?i:" ",'" style="width: 90%;border-radius: 5px;padding: 8px;"/>\n </div>\n <div class="first" style="width:50%">\n ').concat(e.name?'<label for="fname" style="line-height:1.5;">'.concat(null!==(r=null==e||null===(a=e.name)||void 0===a?void 0:a[1])&&void 0!==r?r:" ","</label><br />"):"",'\n <input type="text" id="lname" placeholder="').concat(null!==(s=null==e||null===(c=e.placeholder)||void 0===c?void 0:c[1])&&void 0!==s?s:" ",'" style="width: 90%;border-radius: 5px;padding: 8px;"/>\n </div>\n </div>');case"name":return'\n <div class="mainFullName" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(e.name?'<label for="name" style="line-height:1.5;">'.concat(null!==(l=null==e?void 0:e.name)&&void 0!==l?l:" ","</label><br />"):"",'\n <input type="text" id="name" placeholder="').concat(null!==(d=null==e?void 0:e.placeholder)&&void 0!==d?d:" ",'" style="width: 95%;border-radius: 5px;padding: 8px;"/>\n </div>');case"email":return'\n <div class="mainEmail" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(e.name?'<label for="email" style="line-height:1.5;">'.concat(null!==(p=null==e?void 0:e.name)&&void 0!==p?p:" ","</label><br />"):"",'\n <input type="email" id="email" placeholder="').concat(null!==(u=null==e?void 0:e.placeholder)&&void 0!==u?u:" ",'" style="width: 95%;border-radius: 5px;padding: 8px;\n "/>\n </div>');case"phone":return'\n <div class="mainPhoneNumber" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(e.name?'<label for="phoneNumber" style="line-height:1.5;">'.concat(null!==(h=null==e?void 0:e.name)&&void 0!==h?h:" ","</label><br />"):"",'<input type="tel" id="phoneNumber" placeholder="').concat(null!==(f=null==e?void 0:e.placeholder)&&void 0!==f?f:" ",'" style="width: 95%;border-radius: 5px;padding: 8px;\n "/>\n </div>');case"date":return'\n <div class="mainDate" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(e.name?'<label for="date" style="line-height:1.5;">'.concat(null!==(g=null==e?void 0:e.name)&&void 0!==g?g:" ","</label><br />"):"",'\n <input type="date" id="date" style="width:95%;border-radius:5px;padding:8px;"/>\n </div>');case"message":return'\n <div class="mainTextField" style="width:100%;padding: 8px;box-sizing: border-box;">\n '.concat(e.name?'<label for="textField" style="line-height:1.5;">'.concat(null!==(m=null==e?void 0:e.name)&&void 0!==m?m:" ","</label><br />"):"",'\n <textarea id="textField" placeholder="').concat(null!==(_=null==e?void 0:e.placeholder)&&void 0!==_?_:" ",'" style="width: 95%;border-radius: 5px;padding: 8px;"></textarea>\n </div>');case"button":return'\n <div class="buttonClass" style="width:100%;padding: 8px;box-sizing: border-box;">\n <input type="submit" value="'.concat(null!==(v=null==e?void 0:e.value)&&void 0!==v?v:" ",'" style="max-width:99%;width:100%;border-radius:5px;padding:8px;">\n </div>\n ');default:return}},getPIPSVG=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0,i='\n <svg xmlns="http://www.w3.org/2000/svg" width="'.concat(e,'" height="').concat(t,'" fill=').concat(n,' class="bi bi-pip" viewBox="0 0 16 16">\n <path d="M0 3.5A1.5 1.5 0 0 1 1.5 2h13A1.5 1.5 0 0 1 16 3.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 12.5v-9zM1.5 3a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-13z"/>\n <path d="M8 8.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-3z"/>\n </svg>');return i},getCloseWithCircleSVG=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0,i='\n <svg xmlns="http://www.w3.org/2000/svg" width="'.concat(e,'" height="').concat(t,'" fill=').concat(n,' class="bi bi-x-circle" viewBox="0 0 16 16">\n <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>\n <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>\n </svg>');return i},getCloseSVG=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0,i='\n <svg xmlns="http://www.w3.org/2000/svg" width="'.concat(e,'" height="').concat(t,'" fill=').concat(n,' class="bi bi-x" viewBox="0 0 16 16">\n <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>\n </svg>');return i},getElementFromSelector=function(e){var t,n,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=document.getElementById(e);if(!r)try{r=document.querySelector(e)}catch(e){window.ApxorLogger.error("Error finding element in DOM:"+e)}(r||(r=getElementByXPath(e)),!r&&o.length>0)&&(r=null===(t=document.getElementById(o))||void 0===t||null===(n=t.contentWindow)||void 0===n||null===(i=n.document)||void 0===i?void 0:i.querySelector(e));return r},getCheckMarkSVG=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:64,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,n=arguments.length>2?arguments[2]:void 0,i='\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0,0,256,256" width='.concat(e," height=").concat(t,' fill-rule="nonzero">\n <g fill="none" fill-rule="nonzero" stroke="none" stroke-width="none" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal">\n <g transform="scale(6.4,6.4)">\n <path d="M20,38.5c-10.2,0 -18.5,-8.3 -18.5,-18.5c0,-10.2 8.3,-18.5 18.5,-18.5c10.2,0 18.5,8.3 18.5,18.5c0,10.2 -8.3,18.5 -18.5,18.5z" fill= ').concat(n,' stroke="none" stroke-width="1"/>\n <path d="M20,2c9.9,0 18,8.1 18,18c0,9.9 -8.1,18 -18,18c-9.9,0 -18,-8.1 -18,-18c0,-9.9 8.1,-18 18,-18M20,1c-10.5,0 -19,8.5 -19,19c0,10.5 8.5,19 19,19c10.5,0 19,-8.5 19,-19c0,-10.5 -8.5,-19 -19,-19z" fill="#5e9c76" stroke="none" stroke-width="1"/>\n <path d="M11.2,20.1l5.8,5.8l13.2,-13.2" fill="none" stroke=').concat(COLORS.WHITE,' stroke-width="3"/>\n </g>\n </g>\n </svg>');return i};
2
2
  /*! shepherd.js 4.0.0-beta.1 */
3
- function wt(t){return(wt="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}function Ct(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Et(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function kt(t,e,n){return e&&Et(t.prototype,e),n&&Et(t,n),t}function At(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lt(){return(Lt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function St(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Tt(t,e)}function Mt(t){return(Mt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Tt(t,e){return(Tt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function It(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ot(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?It(t):e}function Dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Nt(t){return t instanceof HTMLElement}function Bt(t){return"function"==typeof t}function Pt(t){return"string"==typeof t}function Ft(t){return void 0===t}
3
+ function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"===_typeof$1(Symbol.iterator)?function(e){return _typeof$1(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof$1(e)})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _objectSpread2(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){_defineProperty(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof$1(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function isElement$2(e){return e instanceof HTMLElement}function isFunction(e){return"function"==typeof e}function isNumber(e){return"number"==typeof e}function isString(e){return"string"==typeof e}function isUndefined(e){return void 0===e}
4
4
  /**!
5
5
  * tippy.js v5.0.0-alpha.2
6
6
  * (c) 2017-2019 atomiks
7
7
  * MIT License
8
- */function zt(){return(zt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var qt="undefined"!=typeof window&&"undefined"!=typeof document,Ht=qt?navigator.userAgent:"",Vt=/MSIE |Trident\//.test(Ht),Zt=/UCBrowser\//.test(Ht),Rt=qt&&/iPhone|iPad|iPod/.test(navigator.platform),jt={allowHTML:!0,animateFill:!1,animation:"fade",appendTo:function(){return document.body},aria:"describedby",arrow:!0,boundary:"scrollParent",content:"",delay:0,distance:10,duration:[325,275],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onCreate:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",popperOptions:{},role:"tooltip",showOnCreate:!1,sticky:!1,theme:"",touch:!0,trigger:"mouseenter focus",triggerTarget:null,updateDuration:0,wait:null,zIndex:9999},Wt=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],Ut={passive:!0},Yt={isTouch:!1},Xt=0;function Qt(){Yt.isTouch||(Yt.isTouch=!0,Rt&&document.body.classList.add("tippy-iOS"),window.performance&&document.addEventListener("mousemove",Gt))}function Gt(){var t=performance.now();t-Xt<20&&(Yt.isTouch=!1,document.removeEventListener("mousemove",Gt),Rt||document.body.classList.remove("tippy-iOS")),Xt=t}function Jt(){var t=document.activeElement,e=t._tippy;t&&t.blur&&e&&!e.state.isVisible&&t.blur()}var $t=Object.keys(jt);function Kt(t,e){return{}.hasOwnProperty.call(t,e)}function te(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?n:i}return t}function ee(t,e){return t&&t.modifiers&&t.modifiers[e]}function ne(t){return t instanceof Element}function ie(t,e){return"function"==typeof t?t.apply(null,e):t}function oe(t,e){t.filter((function(t){return"flip"===t.name}))[0].enabled=e}function re(){return document.createElement("div")}function ae(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function se(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function le(t,e){var n=zt({},e,{content:ie(e.content,[t])},e.ignoreAttributes?{}:function(t){return $t.reduce((function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e}),{})}(t));return n.animateFill&&(n.arrow=!1),(n.arrow||Zt)&&(n.animateFill=!1),n}function ce(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout((function(){t(i)}),e)};var n}function de(t,e,n){t&&t!==e&&t.apply(null,n)}function pe(t){return[].slice.call(t)}function ue(t,e){return t.indexOf(e)>-1}function he(t,e){t.innerHTML=ne(e)?e.innerHTML:e}function fe(t,e){if(ne(e.content))he(t,""),t.appendChild(e.content);else if("function"!=typeof e.content){t[e.allowHTML?"innerHTML":"textContent"]=e.content}}function ve(t){return{tooltip:t.querySelector(".tippy-tooltip"),backdrop:t.querySelector(".tippy-backdrop"),content:t.querySelector(".tippy-content"),arrow:t.querySelector(".tippy-arrow")||t.querySelector(".tippy-svg-arrow")}}function ge(t){t.setAttribute("data-inertia","")}function me(t){var e=re();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",ne(t)?e.appendChild(t):he(e,"round"===t?'<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>':t)),e}function ye(t){var e=re();return e.className="tippy-backdrop",e.setAttribute("data-state",t?"visible":"hidden"),e}function be(t){t.setAttribute("data-interactive","")}function _e(t,e,n){var i=Zt&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";t[e+"EventListener"](i,n)}function xe(t){return t.split("-")[0]}function we(t,e,n){n.split(" ").forEach((function(n){n&&t.classList[e](n+"-theme")}))}function Ce(t,e){var n=re();n.className="tippy-popper",n.style.position="absolute",n.style.top="0",n.style.left="0";var i=re();i.className="tippy-tooltip",i.id="tippy-"+t,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1"),we(i,"add",e.theme);var o=re();return o.className="tippy-content",o.setAttribute("data-state","hidden"),e.interactive&&be(i),e.arrow&&(i.setAttribute("data-arrow",""),i.appendChild(me(e.arrow))),e.animateFill&&(i.appendChild(ye(!1)),i.setAttribute("data-animatefill","")),e.inertia&&ge(i),fe(o,e),i.appendChild(o),n.appendChild(i),Ee(n,e,e,!1),n}function Ee(t,e,n,i){var o=ve(t),r=o.tooltip,a=o.content,s=o.backdrop,l=o.arrow;t.style.zIndex=""+n.zIndex,r.setAttribute("data-animation",n.animation),r.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?r.setAttribute("role",n.role):r.removeAttribute("role"),e.content!==n.content&&fe(a,n),!e.animateFill&&n.animateFill?(r.appendChild(ye(i)),r.setAttribute("data-animatefill","")):e.animateFill&&!n.animateFill&&(r.removeChild(s),r.removeAttribute("data-animatefill")),!e.arrow&&n.arrow?(r.appendChild(me(n.arrow)),r.setAttribute("data-arrow","")):e.arrow&&!n.arrow?(r.removeChild(l),r.removeAttribute("data-arrow")):e.arrow!==n.arrow&&(r.removeChild(l),r.appendChild(me(n.arrow))),!e.interactive&&n.interactive?be(r):e.interactive&&!n.interactive&&function(t){t.removeAttribute("data-interactive")}(r),!e.inertia&&n.inertia?ge(r):e.inertia&&!n.inertia&&function(t){t.removeAttribute("data-inertia")}(r),e.theme!==n.theme&&(we(r,"remove",e.theme),we(r,"add",n.theme))}for(
8
+ */function _extends$1(){return(_extends$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var isBrowser$1="undefined"!=typeof window&&"undefined"!=typeof document,ua=isBrowser$1?navigator.userAgent:"",isIE=/MSIE |Trident\//.test(ua),isUCBrowser=/UCBrowser\//.test(ua),isIOS=isBrowser$1&&/iPhone|iPad|iPod/.test(navigator.platform),defaultProps$1={allowHTML:!0,animateFill:!1,animation:"fade",appendTo:function(){return document.body},aria:"describedby",arrow:!0,boundary:"scrollParent",content:"",delay:0,distance:10,duration:[325,275],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onCreate:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",popperOptions:{},role:"tooltip",showOnCreate:!1,sticky:!1,theme:"",touch:!0,trigger:"mouseenter focus",triggerTarget:null,updateDuration:0,wait:null,zIndex:9999},POPPER_INSTANCE_DEPENDENCIES=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],PASSIVE={passive:!0},PREVENT_OVERFLOW_PADDING=5,ROUND_ARROW_INNER_HTML='<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>',IOS_CLASS="tippy-iOS",POPPER_CLASS="tippy-popper",TOOLTIP_CLASS="tippy-tooltip",CONTENT_CLASS$1="tippy-content",BACKDROP_CLASS$1="tippy-backdrop",ARROW_CLASS$1="tippy-arrow",SVG_ARROW_CLASS$1="tippy-svg-arrow",POPPER_SELECTOR="."+POPPER_CLASS,TOOLTIP_SELECTOR="."+TOOLTIP_CLASS,CONTENT_SELECTOR="."+CONTENT_CLASS$1,BACKDROP_SELECTOR="."+BACKDROP_CLASS$1,ARROW_SELECTOR="."+ARROW_CLASS$1,SVG_ARROW_SELECTOR="."+SVG_ARROW_CLASS$1,currentInput$1={isTouch:!1},lastMouseMoveTime$1=0;function onDocumentTouchStart$1(){currentInput$1.isTouch||(currentInput$1.isTouch=!0,isIOS&&document.body.classList.add(IOS_CLASS),window.performance&&document.addEventListener("mousemove",onDocumentMouseMove$1))}function onDocumentMouseMove$1(){var e=performance.now();e-lastMouseMoveTime$1<20&&(currentInput$1.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove$1),isIOS||document.body.classList.remove(IOS_CLASS)),lastMouseMoveTime$1=e}function onWindowBlur$1(){var e=document.activeElement,t=e._tippy;e&&e.blur&&t&&!t.state.isVisible&&e.blur()}function bindGlobalEventListeners$1(){document.addEventListener("touchstart",onDocumentTouchStart$1,_extends$1({},PASSIVE,{capture:!0})),window.addEventListener("blur",onWindowBlur$1)}var keys=Object.keys(defaultProps$1);function getDataAttributeProps$1(e){return keys.reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}function isReferenceElement$1(e){return!(!e||!e._tippy||e.classList.contains(POPPER_CLASS))}function hasOwnProperty$1(e,t){return{}.hasOwnProperty.call(e,t)}function getArrayOfElements$1(e){if(isRealElement(e))return[e];if(e instanceof NodeList)return arrayFrom$1(e);if(Array.isArray(e))return e;try{return arrayFrom$1(document.querySelectorAll(e))}catch(e){return[]}}function getValue(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?n:i}return e}function getModifier(e,t){return e&&e.modifiers&&e.modifiers[t]}function isRealElement(e){return e instanceof Element}function innerHTML$1(){return"innerHTML"}function invokeWithArgsOrReturn$1(e,t){return"function"==typeof e?e.apply(null,t):e}function setFlipModifierEnabled(e,t){e.filter((function(e){return"flip"===e.name}))[0].enabled=t}function setEscapeWithReference(e,t){e.filter((function(e){return"preventOverflow"===e.name}))[0].escapeWithReference=t}function div$1(){return document.createElement("div")}function setTransitionDuration$1(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function setVisibilityState$1(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function evaluateProps$1(e,t){var n=_extends$1({},t,{content:invokeWithArgsOrReturn$1(t.content,[e])},t.ignoreAttributes?{}:getDataAttributeProps$1(e));return n.animateFill&&(n.arrow=!1),(n.arrow||isUCBrowser)&&(n.animateFill=!1),n}function debounce$2(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function preserveInvocation(e,t,n){e&&e!==t&&e.apply(null,n)}function arrayFrom$1(e){return[].slice.call(e)}function closestCallback(e,t){for(;e;){if(t(e))return e;e=e.parentElement}return null}function includes(e,t){return e.indexOf(t)>-1}function setInnerHTML(e,t){e[innerHTML$1()]=isRealElement(t)?t[innerHTML$1()]:t}function setContent$1(e,t){if(isRealElement(t.content))setInnerHTML(e,""),e.appendChild(t.content);else if("function"!=typeof t.content){e[t.allowHTML?"innerHTML":"textContent"]=t.content}}function getChildren$1(e){return{tooltip:e.querySelector(TOOLTIP_SELECTOR),backdrop:e.querySelector(BACKDROP_SELECTOR),content:e.querySelector(CONTENT_SELECTOR),arrow:e.querySelector(ARROW_SELECTOR)||e.querySelector(SVG_ARROW_SELECTOR)}}function addInertia(e){e.setAttribute("data-inertia","")}function removeInertia(e){e.removeAttribute("data-inertia")}function createArrowElement$1(e){var t=div$1();return!0===e?t.className=ARROW_CLASS$1:(t.className=SVG_ARROW_CLASS$1,isRealElement(e)?t.appendChild(e):setInnerHTML(t,"round"===e?ROUND_ARROW_INNER_HTML:e)),t}function createBackdropElement(e){var t=div$1();return t.className=BACKDROP_CLASS$1,t.setAttribute("data-state",e?"visible":"hidden"),t}function addInteractive(e){e.setAttribute("data-interactive","")}function removeInteractive(e){e.removeAttribute("data-interactive")}function updateTransitionEndListener$1(e,t,n){var i=isUCBrowser&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](i,n)}function getBasePlacement$2(e){return e.split("-")[0]}function reflow(e){e.offsetHeight}function updateTheme(e,t,n){n.split(" ").forEach((function(n){n&&e.classList[t](n+"-theme")}))}function createPopperElement(e,t){var n=div$1();n.className=POPPER_CLASS,n.style.position="absolute",n.style.top="0",n.style.left="0";var i=div$1();i.className=TOOLTIP_CLASS,i.id="tippy-"+e,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1"),updateTheme(i,"add",t.theme);var o=div$1();return o.className=CONTENT_CLASS$1,o.setAttribute("data-state","hidden"),t.interactive&&addInteractive(i),t.arrow&&(i.setAttribute("data-arrow",""),i.appendChild(createArrowElement$1(t.arrow))),t.animateFill&&(i.appendChild(createBackdropElement(!1)),i.setAttribute("data-animatefill","")),t.inertia&&addInertia(i),setContent$1(o,t),i.appendChild(o),n.appendChild(i),updatePopperElement(n,t,t,!1),n}function updatePopperElement(e,t,n,i){var o=getChildren$1(e),r=o.tooltip,a=o.content,s=o.backdrop,c=o.arrow;e.style.zIndex=""+n.zIndex,r.setAttribute("data-animation",n.animation),r.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?r.setAttribute("role",n.role):r.removeAttribute("role"),t.content!==n.content&&setContent$1(a,n),!t.animateFill&&n.animateFill?(r.appendChild(createBackdropElement(i)),r.setAttribute("data-animatefill","")):t.animateFill&&!n.animateFill&&(r.removeChild(s),r.removeAttribute("data-animatefill")),!t.arrow&&n.arrow?(r.appendChild(createArrowElement$1(n.arrow)),r.setAttribute("data-arrow","")):t.arrow&&!n.arrow?(r.removeChild(c),r.removeAttribute("data-arrow")):t.arrow!==n.arrow&&(r.removeChild(c),r.appendChild(createArrowElement$1(n.arrow))),!t.interactive&&n.interactive?addInteractive(r):t.interactive&&!n.interactive&&removeInteractive(r),!t.inertia&&n.inertia?addInertia(r):t.inertia&&!n.inertia&&removeInertia(r),t.theme!==n.theme&&(updateTheme(r,"remove",t.theme),updateTheme(r,"add",n.theme))}function isCursorOutsideInteractiveBorder$1(e,t,n,i){if(!e)return!0;var o=n.clientX,r=n.clientY,a=i.interactiveBorder,s=i.distance,c=t.top-r>("top"===e?a+s:a),l=r-t.bottom>("bottom"===e?a+s:a),d=t.left-o>("left"===e?a+s:a),p=o-t.right>("right"===e?a+s:a);return c||l||d||p}
9
9
  /**!
10
10
  * @fileOverview Kickass library to create and place poppers near their reference elements.
11
11
  * @version 1.15.0
@@ -29,16 +29,15 @@ function wt(t){return(wt="function"==typeof Symbol&&"symbol"===r(Symbol.iterator
29
29
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
30
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
31
  * SOFTWARE.
32
- */
33
- var ke="undefined"!=typeof window&&"undefined"!=typeof document,Ae=["Edge","Trident","Firefox"],Le=0,Se=0;Se<Ae.length;Se+=1)if(ke&&navigator.userAgent.indexOf(Ae[Se])>=0){Le=1;break}var Me=ke&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),Le))}};function Te(t){return t&&"[object Function]"==={}.toString.call(t)}function Ie(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function Oe(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function De(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=Ie(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:De(Oe(t))}var Ne=ke&&!(!window.MSInputMethodContext||!document.documentMode),Be=ke&&/MSIE 10/.test(navigator.userAgent);function Pe(t){return 11===t?Ne:10===t?Be:Ne||Be}function Fe(t){if(!t)return document.documentElement;for(var e=Pe(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Ie(n,"position")?Fe(n):n:t?t.ownerDocument.documentElement:document.documentElement}function ze(t){return null!==t.parentNode?ze(t.parentNode):t}function qe(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a,s,l=r.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&Fe(a.firstElementChild)!==a?Fe(l):l;var c=ze(t);return c.host?qe(c.host,e):qe(t,ze(e).host)}function He(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[n]}return t[n]}function Ve(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=He(e,"top"),o=He(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function Ze(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}function Re(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],Pe(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function je(t){var e=t.body,n=t.documentElement,i=Pe(10)&&getComputedStyle(n);return{height:Re("Height",e,n,i),width:Re("Width",e,n,i)}}var We=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Ue=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),Ye=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},Xe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function Qe(t){return Xe({},t,{right:t.left+t.width,bottom:t.top+t.height})}function Ge(t){var e={};try{if(Pe(10)){e=t.getBoundingClientRect();var n=He(t,"top"),i=He(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?je(t.ownerDocument):{},a=r.width||t.clientWidth||o.right-o.left,s=r.height||t.clientHeight||o.bottom-o.top,l=t.offsetWidth-a,c=t.offsetHeight-s;if(l||c){var d=Ie(t);l-=Ze(d,"x"),c-=Ze(d,"y"),o.width-=l,o.height-=c}return Qe(o)}function Je(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Pe(10),o="HTML"===e.nodeName,r=Ge(t),a=Ge(e),s=De(t),l=Ie(e),c=parseFloat(l.borderTopWidth,10),d=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=Qe({top:r.top-a.top-c,left:r.left-a.left-d,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!i&&o){var u=parseFloat(l.marginTop,10),h=parseFloat(l.marginLeft,10);p.top-=c-u,p.bottom-=c-u,p.left-=d-h,p.right-=d-h,p.marginTop=u,p.marginLeft=h}return(i&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(p=Ve(p,e)),p}function $e(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=Je(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:He(n),s=e?0:He(n,"left"),l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r};return Qe(l)}function Ke(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===Ie(t,"position"))return!0;var n=Oe(t);return!!n&&Ke(n)}function tn(t){if(!t||!t.parentElement||Pe())return document.documentElement;for(var e=t.parentElement;e&&"none"===Ie(e,"transform");)e=e.parentElement;return e||document.documentElement}function en(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?tn(t):qe(t,e);if("viewport"===i)r=$e(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=De(Oe(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var l=Je(s,a,o);if("HTML"!==s.nodeName||Ke(a))r=l;else{var c=je(t.ownerDocument),d=c.height,p=c.width;r.top+=l.top-l.marginTop,r.bottom=d+l.top,r.left+=l.left-l.marginLeft,r.right=p+l.left}}var u="number"==typeof(n=n||0);return r.left+=u?n:n.left||0,r.top+=u?n:n.top||0,r.right-=u?n:n.right||0,r.bottom-=u?n:n.bottom||0,r}function nn(t){return t.width*t.height}function on(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=en(n,i,r,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return Xe({key:t},s[t],{area:nn(s[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),d=c.length>0?c[0].key:l[0].key,p=t.split("-")[1];return d+(p?"-"+p:"")}function rn(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?tn(e):qe(e,n);return Je(n,o,i)}function an(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function sn(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function ln(t,e,n){n=n.split("-")[0];var i=an(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[a]=e[a]+e[l]/2-i[l]/2,o[s]=n===s?e[s]-i[c]:e[sn(s)],o}function cn(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function dn(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=cn(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&Te(n)&&(e.offsets.popper=Qe(e.offsets.popper),e.offsets.reference=Qe(e.offsets.reference),e=n(e,t))})),e}function pn(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=rn(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=on(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=ln(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=dn(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function un(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function hn(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],r=o?""+o+n:t;if(void 0!==document.body.style[r])return r}return null}function fn(){return this.state.isDestroyed=!0,un(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[hn("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function vn(t){var e=t.ownerDocument;return e?e.defaultView:window}function gn(t,e,n,i){n.updateBound=i,vn(t).addEventListener("resize",n.updateBound,{passive:!0});var o=De(t);return function t(e,n,i,o){var r="BODY"===e.nodeName,a=r?e.ownerDocument.defaultView:e;a.addEventListener(n,i,{passive:!0}),r||t(De(a.parentNode),n,i,o),o.push(a)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function mn(){this.state.eventsEnabled||(this.state=gn(this.reference,this.options,this.state,this.scheduleUpdate))}function yn(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,vn(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function bn(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function _n(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&bn(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var xn=ke&&/Firefox/i.test(navigator.userAgent);function wn(t,e,n){var i=cn(t,(function(t){return t.name===e})),o=!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.order<i.order}));if(!o){var r="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}var Cn=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],En=Cn.slice(3);function kn(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=En.indexOf(t),i=En.slice(n+1).concat(En.slice(0,n));return e?i.reverse():i}var An="flip",Ln="clockwise",Sn="counterclockwise";function Mn(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(cn(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(t,i){var o=(1===i?!r:r)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];if(!r)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return Qe(s)[e]/100*r}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return r}(t,o,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){bn(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}var Tn={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",d={start:Ye({},l,r[l]),end:Ye({},l,r[l]+r[c]-a[c])};t.offsets.popper=Xe({},a,d[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,a=o.reference,s=i.split("-")[0],l=void 0;return l=bn(+n)?[+n,0]:Mn(n,r,a,s),"left"===s?(r.top+=l[0],r.left-=l[1]):"right"===s?(r.top+=l[0],r.left+=l[1]):"top"===s?(r.left+=l[0],r.top-=l[1]):"bottom"===s&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||Fe(t.instance.popper);t.instance.reference===n&&(n=Fe(n));var i=hn("transform"),o=t.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var l=en(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=a,o[i]=s,e.boundaries=l;var c=e.priority,d=t.offsets.popper,p={primary:function(t){var n=d[t];return d[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(d[t],l[t])),Ye({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=d[n];return d[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(d[n],l[t]-("right"===t?d.width:d.height))),Ye({},n,i)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";d=Xe({},d,p[e](t))})),t.offsets.popper=d,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<r(i[l])&&(t.offsets.popper[l]=r(i[l])-n[c]),n[l]>r(i[s])&&(t.offsets.popper[l]=r(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!wn(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],r=t.offsets,a=r.popper,s=r.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",d=l?"Top":"Left",p=d.toLowerCase(),u=l?"left":"top",h=l?"bottom":"right",f=an(i)[c];s[h]-f<a[p]&&(t.offsets.popper[p]-=a[p]-(s[h]-f)),s[p]+f>a[h]&&(t.offsets.popper[p]+=s[p]+f-a[h]),t.offsets.popper=Qe(t.offsets.popper);var v=s[p]+s[c]/2-f/2,g=Ie(t.instance.popper),m=parseFloat(g["margin"+d],10),y=parseFloat(g["border"+d+"Width"],10),b=v-t.offsets.popper[p]-m-y;return b=Math.max(Math.min(a[c]-f,b),0),t.arrowElement=i,t.offsets.arrow=(Ye(n={},p,Math.round(b)),Ye(n,u,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(un(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=en(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=sn(i),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case An:a=[i,o];break;case Ln:a=kn(i);break;case Sn:a=kn(i,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],o=sn(i);var c=t.offsets.popper,d=t.offsets.reference,p=Math.floor,u="left"===i&&p(c.right)>p(d.left)||"right"===i&&p(c.left)<p(d.right)||"top"===i&&p(c.bottom)>p(d.top)||"bottom"===i&&p(c.top)<p(d.bottom),h=p(c.left)<p(n.left),f=p(c.right)>p(n.right),v=p(c.top)<p(n.top),g=p(c.bottom)>p(n.bottom),m="left"===i&&h||"right"===i&&f||"top"===i&&v||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),b=!!e.flipVariations&&(y&&"start"===r&&h||y&&"end"===r&&f||!y&&"start"===r&&v||!y&&"end"===r&&g),_=!!e.flipVariationsByContent&&(y&&"start"===r&&f||y&&"end"===r&&h||!y&&"start"===r&&g||!y&&"end"===r&&v),x=b||_;(u||m||x)&&(t.flipped=!0,(u||m)&&(i=a[l+1]),x&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=Xe({},t.offsets.popper,ln(t.instance.popper,t.offsets.reference,t.placement)),t=dn(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),t.placement=sn(e),t.offsets.popper=Qe(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!wn(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=cn(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,o=t.offsets.popper,r=cn(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==r?r:e.gpuAcceleration,s=Fe(t.instance.popper),l=Ge(s),c={position:o.position},d=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,a=Math.floor,s=function(t){return t},l=r(o.width),c=r(i.width),d=-1!==["left","right"].indexOf(t.placement),p=-1!==t.placement.indexOf("-"),u=e?d||p||l%2==c%2?r:a:s,h=e?r:s;return{left:u(l%2==1&&c%2==1&&!p&&e?i.left-1:i.left),top:h(i.top),bottom:h(i.bottom),right:u(i.right)}}(t,window.devicePixelRatio<2||!xn),p="bottom"===n?"top":"bottom",u="right"===i?"left":"right",h=hn("transform"),f=void 0,v=void 0;if(v="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+d.bottom:-l.height+d.bottom:d.top,f="right"===u?"HTML"===s.nodeName?-s.clientWidth+d.right:-l.width+d.right:d.left,a&&h)c[h]="translate3d("+f+"px, "+v+"px, 0)",c[p]=0,c[u]=0,c.willChange="transform";else{var g="bottom"===p?-1:1,m="right"===u?-1:1;c[p]=v*g,c[u]=f*m,c.willChange=p+", "+u}var y={"x-placement":t.placement};return t.attributes=Xe({},y,t.attributes),t.styles=Xe({},c,t.styles),t.arrowStyles=Xe({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return _n(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&_n(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){var r=rn(o,e,t,n.positionFixed),a=on(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),_n(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},In=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};We(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Me(this.update.bind(this)),this.options=Xe({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Xe({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=Xe({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return Xe({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&Te(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return Ue(t,[{key:"update",value:function(){return pn.call(this)}},{key:"destroy",value:function(){return fn.call(this)}},{key:"enableEventListeners",value:function(){return mn.call(this)}},{key:"disableEventListeners",value:function(){return yn.call(this)}}]),t}();In.Utils=("undefined"!=typeof window?window:global).PopperUtils,In.placements=Cn,In.Defaults=Tn;
32
+ */for(var isBrowser$1$1="undefined"!=typeof window&&"undefined"!=typeof document,longerTimeoutBrowsers=["Edge","Trident","Firefox"],timeoutDuration=0,i=0;i<longerTimeoutBrowsers.length;i+=1)if(isBrowser$1$1&&navigator.userAgent.indexOf(longerTimeoutBrowsers[i])>=0){timeoutDuration=1;break}function microtaskDebounce(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}function taskDebounce(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),timeoutDuration))}}var supportsMicroTasks=isBrowser$1$1&&window.Promise,debounce$1$1=supportsMicroTasks?microtaskDebounce:taskDebounce;function isFunction$1(e){return e&&"[object Function]"==={}.toString.call(e)}function getStyleComputedProperty(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function getParentNode$1(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function getScrollParent$1(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=getStyleComputedProperty(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?e:getScrollParent$1(getParentNode$1(e))}var isIE11$1=isBrowser$1$1&&!(!window.MSInputMethodContext||!document.documentMode),isIE10=isBrowser$1$1&&/MSIE 10/.test(navigator.userAgent);function isIE$1(e){return 11===e?isIE11$1:10===e?isIE10:isIE11$1||isIE10}function getOffsetParent$1(e){if(!e)return document.documentElement;for(var t=isIE$1(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===getStyleComputedProperty(n,"position")?getOffsetParent$1(n):n:e?e.ownerDocument.documentElement:document.documentElement}function isOffsetContainer(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||getOffsetParent$1(e.firstElementChild)===e)}function getRoot(e){return null!==e.parentNode?getRoot(e.parentNode):e}function findCommonOffsetParent(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,o=n?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a=r.commonAncestorContainer;if(e!==a&&t!==a||i.contains(o))return isOffsetContainer(a)?a:getOffsetParent$1(a);var s=getRoot(e);return s.host?findCommonOffsetParent(s.host,t):findCommonOffsetParent(e,getRoot(t).host)}function getScroll(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var o=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||o;return r[n]}return e[n]}function includeScroll(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=getScroll(t,"top"),o=getScroll(t,"left"),r=n?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=o*r,e.right+=o*r,e}function getBordersSize(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+i+"Width"],10)}function getSize(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],isIE$1(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function getWindowSizes(e){var t=e.body,n=e.documentElement,i=isIE$1(10)&&getComputedStyle(n);return{height:getSize("Height",t,n,i),width:getSize("Width",t,n,i)}}var classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),defineProperty=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},_extends$2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function getClientRect(e){return _extends$2({},e,{right:e.left+e.width,bottom:e.top+e.height})}function getBoundingClientRect$1(e){var t={};try{if(isIE$1(10)){t=e.getBoundingClientRect();var n=getScroll(e,"top"),i=getScroll(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?getWindowSizes(e.ownerDocument):{},a=r.width||e.clientWidth||o.right-o.left,s=r.height||e.clientHeight||o.bottom-o.top,c=e.offsetWidth-a,l=e.offsetHeight-s;if(c||l){var d=getStyleComputedProperty(e);c-=getBordersSize(d,"x"),l-=getBordersSize(d,"y"),o.width-=c,o.height-=l}return getClientRect(o)}function getOffsetRectRelativeToArbitraryNode(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=isIE$1(10),o="HTML"===t.nodeName,r=getBoundingClientRect$1(e),a=getBoundingClientRect$1(t),s=getScrollParent$1(e),c=getStyleComputedProperty(t),l=parseFloat(c.borderTopWidth,10),d=parseFloat(c.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=getClientRect({top:r.top-a.top-l,left:r.left-a.left-d,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!i&&o){var u=parseFloat(c.marginTop,10),h=parseFloat(c.marginLeft,10);p.top-=l-u,p.bottom-=l-u,p.left-=d-h,p.right-=d-h,p.marginTop=u,p.marginLeft=h}return(i&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(p=includeScroll(p,t)),p}function getViewportOffsetRectRelativeToArtbitraryNode(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=getOffsetRectRelativeToArbitraryNode(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:getScroll(n),s=t?0:getScroll(n,"left"),c={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r};return getClientRect(c)}function isFixed(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===getStyleComputedProperty(e,"position"))return!0;var n=getParentNode$1(e);return!!n&&isFixed(n)}function getFixedPositionOffsetParent(e){if(!e||!e.parentElement||isIE$1())return document.documentElement;for(var t=e.parentElement;t&&"none"===getStyleComputedProperty(t,"transform");)t=t.parentElement;return t||document.documentElement}function getBoundaries(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?getFixedPositionOffsetParent(e):findCommonOffsetParent(e,t);if("viewport"===i)r=getViewportOffsetRectRelativeToArtbitraryNode(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=getScrollParent$1(getParentNode$1(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===i?e.ownerDocument.documentElement:i;var c=getOffsetRectRelativeToArbitraryNode(s,a,o);if("HTML"!==s.nodeName||isFixed(a))r=c;else{var l=getWindowSizes(e.ownerDocument),d=l.height,p=l.width;r.top+=c.top-c.marginTop,r.bottom=d+c.top,r.left+=c.left-c.marginLeft,r.right=p+c.left}}var u="number"==typeof(n=n||0);return r.left+=u?n:n.left||0,r.top+=u?n:n.top||0,r.right-=u?n:n.right||0,r.bottom-=u?n:n.bottom||0,r}function getArea(e){return e.width*e.height}function computeAutoPlacement$1(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=getBoundaries(n,i,r,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map((function(e){return _extends$2({key:e},s[e],{area:getArea(s[e])})})).sort((function(e,t){return t.area-e.area})),l=c.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),d=l.length>0?l[0].key:c[0].key,p=e.split("-")[1];return d+(p?"-"+p:"")}function getReferenceOffsets(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?getFixedPositionOffsetParent(t):findCommonOffsetParent(t,n);return getOffsetRectRelativeToArbitraryNode(n,o,i)}function getOuterSizes(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function getOppositePlacement$1(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function getPopperOffsets(e,t,n){n=n.split("-")[0];var i=getOuterSizes(e),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",c=r?"height":"width",l=r?"width":"height";return o[a]=t[a]+t[c]/2-i[c]/2,o[s]=n===s?t[s]-i[l]:t[getOppositePlacement$1(s)],o}function find(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function findIndex(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var i=find(e,(function(e){return e[t]===n}));return e.indexOf(i)}function runModifiers(e,t,n){return(void 0===n?e:e.slice(0,findIndex(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&isFunction$1(n)&&(t.offsets.popper=getClientRect(t.offsets.popper),t.offsets.reference=getClientRect(t.offsets.reference),t=n(t,e))})),t}function update(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=computeAutoPlacement$1(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=getPopperOffsets(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=runModifiers(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function isModifierEnabled(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function getSupportedPropertyName(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var o=t[i],r=o?""+o+n:e;if(void 0!==document.body.style[r])return r}return null}function destroy(){return this.state.isDestroyed=!0,isModifierEnabled(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[getSupportedPropertyName("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function getWindow$1(e){var t=e.ownerDocument;return t?t.defaultView:window}function attachToScrollParents(e,t,n,i){var o="BODY"===e.nodeName,r=o?e.ownerDocument.defaultView:e;r.addEventListener(t,n,{passive:!0}),o||attachToScrollParents(getScrollParent$1(r.parentNode),t,n,i),i.push(r)}function setupEventListeners(e,t,n,i){n.updateBound=i,getWindow$1(e).addEventListener("resize",n.updateBound,{passive:!0});var o=getScrollParent$1(e);return attachToScrollParents(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function enableEventListeners(){this.state.eventsEnabled||(this.state=setupEventListeners(this.reference,this.options,this.state,this.scheduleUpdate))}function removeEventListeners(e,t){return getWindow$1(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function disableEventListeners(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=removeEventListeners(this.reference,this.state))}function isNumeric(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function setStyles(e,t){Object.keys(t).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&isNumeric(t[n])&&(i="px"),e.style[n]=t[n]+i}))}function setAttributes(e,t){Object.keys(t).forEach((function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)}))}function applyStyle(e){return setStyles(e.instance.popper,e.styles),setAttributes(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&setStyles(e.arrowElement,e.arrowStyles),e}function applyStyleOnLoad(e,t,n,i,o){var r=getReferenceOffsets(o,t,e,n.positionFixed),a=computeAutoPlacement$1(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),setStyles(t,{position:n.positionFixed?"fixed":"absolute"}),n}function getRoundedOffsets(e,t){var n=e.offsets,i=n.popper,o=n.reference,r=Math.round,a=Math.floor,s=function(e){return e},c=r(o.width),l=r(i.width),d=-1!==["left","right"].indexOf(e.placement),p=-1!==e.placement.indexOf("-"),u=t?d||p||c%2==l%2?r:a:s,h=t?r:s;return{left:u(c%2==1&&l%2==1&&!p&&t?i.left-1:i.left),top:h(i.top),bottom:h(i.bottom),right:u(i.right)}}var isFirefox=isBrowser$1$1&&/Firefox/i.test(navigator.userAgent);function computeStyle(e,t){var n=t.x,i=t.y,o=e.offsets.popper,r=find(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==r?r:t.gpuAcceleration,s=getOffsetParent$1(e.instance.popper),c=getBoundingClientRect$1(s),l={position:o.position},d=getRoundedOffsets(e,window.devicePixelRatio<2||!isFirefox),p="bottom"===n?"top":"bottom",u="right"===i?"left":"right",h=getSupportedPropertyName("transform"),f=void 0,g=void 0;if(g="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+d.bottom:-c.height+d.bottom:d.top,f="right"===u?"HTML"===s.nodeName?-s.clientWidth+d.right:-c.width+d.right:d.left,a&&h)l[h]="translate3d("+f+"px, "+g+"px, 0)",l[p]=0,l[u]=0,l.willChange="transform";else{var m="bottom"===p?-1:1,_="right"===u?-1:1;l[p]=g*m,l[u]=f*_,l.willChange=p+", "+u}var v={"x-placement":e.placement};return e.attributes=_extends$2({},v,e.attributes),e.styles=_extends$2({},l,e.styles),e.arrowStyles=_extends$2({},e.offsets.arrow,e.arrowStyles),e}function isModifierRequired(e,t,n){var i=find(e,(function(e){return e.name===t})),o=!!i&&e.some((function(e){return e.name===n&&e.enabled&&e.order<i.order}));if(!o){var r="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}function arrow$2(e,t){var n;if(!isModifierRequired(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],r=e.offsets,a=r.popper,s=r.reference,c=-1!==["left","right"].indexOf(o),l=c?"height":"width",d=c?"Top":"Left",p=d.toLowerCase(),u=c?"left":"top",h=c?"bottom":"right",f=getOuterSizes(i)[l];s[h]-f<a[p]&&(e.offsets.popper[p]-=a[p]-(s[h]-f)),s[p]+f>a[h]&&(e.offsets.popper[p]+=s[p]+f-a[h]),e.offsets.popper=getClientRect(e.offsets.popper);var g=s[p]+s[l]/2-f/2,m=getStyleComputedProperty(e.instance.popper),_=parseFloat(m["margin"+d],10),v=parseFloat(m["border"+d+"Width"],10),y=g-e.offsets.popper[p]-_-v;return y=Math.max(Math.min(a[l]-f,y),0),e.arrowElement=i,e.offsets.arrow=(defineProperty(n={},p,Math.round(y)),defineProperty(n,u,""),n),e}function getOppositeVariation(e){return"end"===e?"start":"start"===e?"end":e}var placements$1=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],validPlacements=placements$1.slice(3);function clockwise(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=validPlacements.indexOf(e),i=validPlacements.slice(n+1).concat(validPlacements.slice(0,n));return t?i.reverse():i}var BEHAVIORS={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function flip$2(e,t){if(isModifierEnabled(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=getBoundaries(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],o=getOppositePlacement$1(i),r=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case BEHAVIORS.FLIP:a=[i,o];break;case BEHAVIORS.CLOCKWISE:a=clockwise(i);break;case BEHAVIORS.COUNTERCLOCKWISE:a=clockwise(i,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(i!==s||a.length===c+1)return e;i=e.placement.split("-")[0],o=getOppositePlacement$1(i);var l=e.offsets.popper,d=e.offsets.reference,p=Math.floor,u="left"===i&&p(l.right)>p(d.left)||"right"===i&&p(l.left)<p(d.right)||"top"===i&&p(l.bottom)>p(d.top)||"bottom"===i&&p(l.top)<p(d.bottom),h=p(l.left)<p(n.left),f=p(l.right)>p(n.right),g=p(l.top)<p(n.top),m=p(l.bottom)>p(n.bottom),_="left"===i&&h||"right"===i&&f||"top"===i&&g||"bottom"===i&&m,v=-1!==["top","bottom"].indexOf(i),y=!!t.flipVariations&&(v&&"start"===r&&h||v&&"end"===r&&f||!v&&"start"===r&&g||!v&&"end"===r&&m),b=!!t.flipVariationsByContent&&(v&&"start"===r&&f||v&&"end"===r&&h||!v&&"start"===r&&m||!v&&"end"===r&&g),x=y||b;(u||_||x)&&(e.flipped=!0,(u||_)&&(i=a[c+1]),x&&(r=getOppositeVariation(r)),e.placement=i+(r?"-"+r:""),e.offsets.popper=_extends$2({},e.offsets.popper,getPopperOffsets(e.instance.popper,e.offsets.reference,e.placement)),e=runModifiers(e.instance.modifiers,e,"flip"))})),e}function keepTogether(e){var t=e.offsets,n=t.popper,i=t.reference,o=e.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<r(i[c])&&(e.offsets.popper[c]=r(i[c])-n[l]),n[c]>r(i[s])&&(e.offsets.popper[c]=r(i[s])),e}function toValue(e,t,n,i){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];if(!r)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return getClientRect(s)[t]/100*r}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return r}function parseOffset(e,t,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(find(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return(l=l.map((function(e,i){var o=(1===i?!r:r)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return toValue(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,i){isNumeric(n)&&(o[t]+=n*("-"===e[i-1]?-1:1))}))})),o}function offset$2(e,t){var n=t.offset,i=e.placement,o=e.offsets,r=o.popper,a=o.reference,s=i.split("-")[0],c=void 0;return c=isNumeric(+n)?[+n,0]:parseOffset(n,r,a,s),"left"===s?(r.top+=c[0],r.left-=c[1]):"right"===s?(r.top+=c[0],r.left+=c[1]):"top"===s?(r.left+=c[0],r.top-=c[1]):"bottom"===s&&(r.left+=c[0],r.top+=c[1]),e.popper=r,e}function preventOverflow$2(e,t){var n=t.boundariesElement||getOffsetParent$1(e.instance.popper);e.instance.reference===n&&(n=getOffsetParent$1(n));var i=getSupportedPropertyName("transform"),o=e.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var c=getBoundaries(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=r,o.left=a,o[i]=s,t.boundaries=c;var l=t.priority,d=e.offsets.popper,p={primary:function(e){var n=d[e];return d[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(d[e],c[e])),defineProperty({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=d[n];return d[e]>c[e]&&!t.escapeWithReference&&(i=Math.min(d[n],c[e]-("right"===e?d.width:d.height))),defineProperty({},n,i)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=_extends$2({},d,p[t](e))})),e.offsets.popper=d,e}function shift(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var o=e.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",d={start:defineProperty({},c,r[c]),end:defineProperty({},c,r[c]+r[l]-a[l])};e.offsets.popper=_extends$2({},a,d[i])}return e}function hide$2(e){if(!isModifierRequired(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=find(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function inner(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),e.placement=getOppositePlacement$1(t),e.offsets.popper=getClientRect(o),e}var modifiers={shift:{order:100,enabled:!0,fn:shift},offset:{order:200,enabled:!0,fn:offset$2,offset:0},preventOverflow:{order:300,enabled:!0,fn:preventOverflow$2,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:keepTogether},arrow:{order:500,enabled:!0,fn:arrow$2,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:flip$2,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:inner},hide:{order:800,enabled:!0,fn:hide$2},computeStyle:{order:850,enabled:!0,fn:computeStyle,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:applyStyle,onLoad:applyStyleOnLoad,gpuAcceleration:void 0}},Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:modifiers},Popper=function(){function e(t,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};classCallCheck(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=debounce$1$1(this.update.bind(this)),this.options=_extends$2({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(_extends$2({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){i.options.modifiers[t]=_extends$2({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return _extends$2({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&isFunction$1(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return createClass(e,[{key:"update",value:function(){return update.call(this)}},{key:"destroy",value:function(){return destroy.call(this)}},{key:"enableEventListeners",value:function(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function(){return disableEventListeners.call(this)}}]),e}();Popper.Utils=("undefined"!=typeof window?window:global).PopperUtils,Popper.placements=placements$1,Popper.Defaults=Defaults;
34
33
  /**!
35
34
  * tippy.js v5.0.0-alpha.2
36
35
  * (c) 2017-2019 atomiks
37
36
  * MIT License
38
37
  */
39
- var On=1,Dn=[];function Nn(t,e){var n,i,o,r,a=le(t,e);if(!a.multiple&&t._tippy)return null;var s,l,c,d=!1,p=!1,u=!1,h=[],f=ce(B,a.interactiveDebounce),v=On++,g=Ce(v,a),m=ve(g),y=m.tooltip,b=m.content,_={currentPlacement:a.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},x={id:v,reference:t,popper:g,popperChildren:m,popperInstance:null,props:a,state:_,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(e){if(x.state.isDestroyed)return;D();var n=x.props,i=le(t,zt({},x.props,e,{ignoreAttributes:!0}));i.ignoreAttributes=Kt(e,"ignoreAttributes")?e.ignoreAttributes||!1:n.ignoreAttributes,x.props=i,O(),A(),f=ce(B,i.interactiveDebounce),Ee(g,n,i,x.state.isVisible),x.popperChildren=ve(g),x.popperInstance&&(Wt.some((function(t){return Kt(e,t)&&e[t]!==n[t]}))?(x.popperInstance.destroy(),q(),x.state.isVisible&&x.popperInstance.enableEventListeners()):x.popperInstance.update())},setContent:function(t){x.setProps({content:t})},show:function(e,n){void 0===e&&(e=te(x.props.duration,0,jt.duration[1]));void 0===n&&(n=!0);var i=x.state.isVisible,o=x.state.isDestroyed,r=!x.state.isEnabled,a=Yt.isTouch&&!x.props.touch;if(i||o||r||a)return;if(k().hasAttribute("disabled"))return;if(!1===x.props.onShow(x))return;S(),g.style.visibility="visible",x.state.isVisible=!0;var s=E();ae(n?s.concat(g):s,0),l=function(){x.state.isVisible&&(x.popperInstance.update(),x.props.onMount(x),x.state.isMounted=!0,b.style.transitionDelay=x.popperChildren.backdrop?Math.round(e/12)+"ms":"",x.props.sticky&&(ae([g],Vt?0:x.props.updateDuration),function t(){x.popperInstance.scheduleUpdate(),x.state.isMounted?requestAnimationFrame(t):ae([g],0)}()),ae([g],x.props.updateDuration),ae(s,e),se(s,"visible"),function(t,e){T(t,e)}(e,(function(){x.props.aria&&k().setAttribute("aria-"+x.props.aria,y.id),x.props.onShown(x),x.state.isShown=!0})))},function(){p=!1;var e=x.props.appendTo,n="parent"===e?t.parentNode:ie(e,[t]);n.contains(g)||n.appendChild(g);x.popperInstance?(oe(x.popperInstance.modifiers,x.props.flip),x.popperInstance.enableEventListeners(),x.popperInstance.scheduleUpdate()):(q(),x.popperInstance.enableEventListeners())}()},hide:function(t){void 0===t&&(t=te(x.props.duration,1,jt.duration[1]));var e=!x.state.isVisible&&!d,n=x.state.isDestroyed,i=!x.state.isEnabled&&!d;if(e||n||i)return;if(!1===x.props.onHide(x)&&!d)return;M(),g.style.visibility="hidden",x.state.isVisible=!1,x.state.isShown=!1;var o=E();ae(o,t),se(o,"hidden"),function(t,e){T(t,(function(){!x.state.isVisible&&g.parentNode&&g.parentNode.contains(g)&&e()}))}(t,(function(){x.props.aria&&k().removeAttribute("aria-"+x.props.aria),x.popperInstance.disableEventListeners(),x.popperInstance.options.placement=s,g.parentNode.removeChild(g),x.props.onHidden(x),x.state.isMounted=!1}))},enable:function(){x.state.isEnabled=!0},disable:function(){x.state.isEnabled=!1},destroy:function(){if(x.state.isDestroyed)return;d=!0,x.hide(0),D(),delete t._tippy,x.popperInstance&&x.popperInstance.destroy();d=!1,x.state.isDestroyed=!0}};return t._tippy=x,g._tippy=x,O(),a.lazy||q(),a.showOnCreate&&V(),g.addEventListener("mouseenter",(function(){x.props.interactive&&x.state.isVisible&&"mouseenter"===n&&x.clearDelayTimeouts()})),g.addEventListener("mouseleave",(function(){x.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",f)})),a.onCreate(x),x;function w(){var t=x.props.touch;return Array.isArray(t)?t:[t,0]}function C(){return"hold"===w()[0]}function E(){return[y,b,x.popperChildren.backdrop]}function k(){return x.props.triggerTarget||t}function A(){document.body.removeEventListener("mouseleave",Z),document.removeEventListener("mousemove",f),Dn=Dn.filter((function(t){return t!==f}))}function L(t){if(!x.props.interactive||!g.contains(t.target)){if(k().contains(t.target)){if(Yt.isTouch)return;if(x.state.isVisible&&ue(x.props.trigger,"click"))return}!0===x.props.hideOnClick&&(x.clearDelayTimeouts(),x.hide(),u=!0,setTimeout((function(){u=!1})),x.state.isMounted||M())}}function S(){document.addEventListener("mousedown",L,!0)}function M(){document.removeEventListener("mousedown",L,!0)}function T(t,e){function n(t){t.target===y&&(_e(y,"remove",n),e())}if(0===t)return e();_e(y,"remove",c),_e(y,"add",n),c=n}function I(t,e,n){void 0===n&&(n=!1),k().addEventListener(t,e,n),h.push({eventType:t,handler:e,options:n})}function O(){C()&&(I("touchstart",N,Ut),I("touchend",P,Ut)),ue(x.props.trigger,"click")||I("click",(function(){Yt.isTouch||!0!==x.props.hideOnClick||x.hide()})),x.props.trigger.trim().split(" ").forEach((function(t){if("manual"!==t)switch(I(t,N),t){case"mouseenter":I("mouseleave",P);break;case"focus":I(Vt?"focusout":"blur",F)}}))}function D(){h.forEach((function(t){var e=t.eventType,n=t.handler,i=t.options;k().removeEventListener(e,n,i)})),h=[]}function N(t){if(!u&&x.state.isEnabled&&!z(t))if(x.state.isVisible||(n=t.type,t instanceof MouseEvent&&Dn.forEach((function(e){return e(t)}))),"click"===t.type&&!1!==x.props.hideOnClick&&x.state.isVisible)Z(t);else{var e=w(),o=e[0],r=e[1];Yt.isTouch&&"hold"===o&&r?i=setTimeout((function(){V(t)}),r):V(t)}}function B(e){(function(t,e){for(;t;){if(e(t))return t;t=t.parentElement}return null})(e.target,(function(e){return e===t||e===g}))||function(t,e,n,i){if(!t)return!0;var o=n.clientX,r=n.clientY,a=i.interactiveBorder,s=i.distance,l=e.top-r>("top"===t?a+s:a),c=r-e.bottom>("bottom"===t?a+s:a),d=e.left-o>("left"===t?a+s:a),p=o-e.right>("right"===t?a+s:a);return l||c||d||p}(xe(x.state.currentPlacement),g.getBoundingClientRect(),e,x.props)&&(A(),Z(e))}function P(t){if(!z(t))return x.props.interactive?(document.body.addEventListener("mouseleave",Z),document.addEventListener("mousemove",f),void Dn.push(f)):void Z(t)}function F(t){t.target===k()&&(x.props.interactive&&t.relatedTarget&&g.contains(t.relatedTarget)||Z(t))}function z(t){var e="ontouchstart"in window,n=ue(t.type,"touch"),i=C();return e&&Yt.isTouch&&i&&!n||Yt.isTouch&&!i&&n}function q(){var e=x.props,n=e.popperOptions,i=e.placement,o=x.popperChildren.arrow,r=ee(n,"preventOverflow"),a=x.state.currentPlacement.split("-")[1];function l(t){x.state.currentPlacement=t.placement,x.props.flip&&!x.props.flipOnUpdate&&(t.flipped&&(x.popperInstance.options.placement=t.placement),oe(x.popperInstance.modifiers,!1)),x.props.escapeWithReference&&function(t,e){t.filter((function(t){return"preventOverflow"===t.name}))[0].escapeWithReference=e}(x.popperInstance.modifiers,!0),y.setAttribute("data-placement",x.state.currentPlacement),!1!==t.attributes["x-out-of-boundaries"]?y.setAttribute("data-out-of-boundaries",""):y.removeAttribute("data-out-of-boundaries");var e=xe(x.state.currentPlacement),n=y.style;n.top="0",n.left="0",n[ue(["top","bottom"],xe(x.state.currentPlacement))?"top":"left"]=(ue(["bottom","right"],xe(x.state.currentPlacement))?1:-1)*x.props.distance+"px";var i=r&&void 0!==r.padding?r.padding:5,o="number"==typeof i,a=zt({top:o?i:i.top,bottom:o?i:i.bottom,left:o?i:i.left,right:o?i:i.right},!o&&i);a[e]=o?i+x.props.distance:(i[e]||0)+x.props.distance,x.popperInstance.modifiers.filter((function(t){return"preventOverflow"===t.name}))[0].padding=a}var c=zt({eventsEnabled:!1,placement:s=x.props.followCursor&&a?i.replace(a,"start"===a?"end":"start"):i},n,{modifiers:zt({},n?n.modifiers:{},{preventOverflow:zt({boundariesElement:x.props.boundary,padding:5},r),arrow:zt({element:o,enabled:!!o},ee(n,"arrow")),flip:zt({enabled:x.props.flip,padding:x.props.distance+5,behavior:x.props.flipBehavior},ee(n,"flip")),offset:zt({offset:x.props.offset},ee(n,"offset"))}),onCreate:function(t){l(t),de(n&&n.onCreate,c.onCreate,[t]),H()},onUpdate:function(t){l(t),de(n&&n.onUpdate,c.onUpdate,[t]),H()}});x.popperInstance=new In(t,g,c)}function H(){!p&&l&&(p=!0,function(t){t.offsetHeight}(g),l())}function V(t){if(x.clearDelayTimeouts(),x.state.isScheduledToShow=!0,x.popperInstance||q(),t&&x.props.onTrigger(x,t),x.props.wait)return x.props.wait(x,t);S();var e=te(x.props.delay,0,jt.delay);e?i=setTimeout((function(){x.show()}),e):x.show()}function Z(t){if(x.clearDelayTimeouts(),x.props.onUntrigger(x,t),x.state.isVisible){x.state.isScheduledToShow=!1;var e=te(x.props.delay,1,jt.delay);e?o=setTimeout((function(){x.state.isVisible&&x.hide()}),e):r=requestAnimationFrame((function(){x.hide()}))}else M()}}function Bn(t,e){document.addEventListener("touchstart",Qt,zt({},Ut,{capture:!0})),window.addEventListener("blur",Jt);var n=zt({},jt,e),i=function(t){if(ne(t))return[t];if(t instanceof NodeList)return pe(t);if(Array.isArray(t))return t;try{return pe(document.querySelectorAll(t))}catch(t){return[]}}(t).reduce((function(t,e){var i=e&&Nn(e,n);return i&&t.push(i),t}),[]);return ne(t)?i[0]:i}Bn.version="5.0.0-alpha.2",Bn.defaultProps=jt,Bn.currentInput=Yt,Bn.setDefaultProps=function(t){Object.keys(t).forEach((function(e){jt[e]=t[e]}))},Bn.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,i=e.duration;pe(document.querySelectorAll(".tippy-popper")).forEach((function(t){var e,o=t._tippy;if(o){var r=!1;n&&(r=(e=n)&&e._tippy&&!e.classList.contains("tippy-popper")?o.reference===n:t===n.popper),r||o.hide(i)}}))},qt&&setTimeout((function(){pe(document.querySelectorAll("[data-tippy]")).forEach((function(t){var e=t.getAttribute("data-tippy");e&&Bn(t,{content:e})}))}))
38
+ var version="5.0.0-alpha.2",idCounter$1=1,mouseMoveListeners$1=[];function createTippy$1(e,t){var n,i,o,r,a=evaluateProps$1(e,t);if(!a.multiple&&e._tippy)return null;var s,c,l,d=!1,p=!1,u=!1,h=[],f=debounce$2(M,a.interactiveDebounce),g=idCounter$1++,m=createPopperElement(g,a),_=getChildren$1(m),v=_.tooltip,y=_.content,b={currentPlacement:a.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},x={id:g,reference:e,popper:m,popperChildren:_,popperInstance:null,props:a,state:b,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){if(x.state.isDestroyed)return;N();var n=x.props,i=evaluateProps$1(e,_extends$1({},x.props,t,{ignoreAttributes:!0}));i.ignoreAttributes=hasOwnProperty$1(t,"ignoreAttributes")?t.ignoreAttributes||!1:n.ignoreAttributes,x.props=i,P(),O(),f=debounce$2(M,i.interactiveDebounce),updatePopperElement(m,n,i,x.state.isVisible),x.popperChildren=getChildren$1(m),x.popperInstance&&(POPPER_INSTANCE_DEPENDENCIES.some((function(e){return hasOwnProperty$1(t,e)&&t[e]!==n[e]}))?(x.popperInstance.destroy(),V(),x.state.isVisible&&x.popperInstance.enableEventListeners()):x.popperInstance.update())},setContent:function(e){x.setProps({content:e})},show:function(t,n){void 0===t&&(t=getValue(x.props.duration,0,defaultProps$1.duration[1]));void 0===n&&(n=!0);var i=x.state.isVisible,o=x.state.isDestroyed,r=!x.state.isEnabled,a=currentInput$1.isTouch&&!x.props.touch;if(i||o||r||a)return;if(T().hasAttribute("disabled"))return;if(!1===x.props.onShow(x))return;A(),m.style.visibility="visible",x.state.isVisible=!0;var s=E();setTransitionDuration$1(n?s.concat(m):s,0),c=function(){x.state.isVisible&&(x.popperInstance.update(),x.props.onMount(x),x.state.isMounted=!0,y.style.transitionDelay=x.popperChildren.backdrop?Math.round(t/12)+"ms":"",x.props.sticky&&(setTransitionDuration$1([m],isIE?0:x.props.updateDuration),function e(){x.popperInstance.scheduleUpdate(),x.state.isMounted?requestAnimationFrame(e):setTransitionDuration$1([m],0)}()),setTransitionDuration$1([m],x.props.updateDuration),setTransitionDuration$1(s,t),setVisibilityState$1(s,"visible"),function(e,t){k(e,t)}(t,(function(){x.props.aria&&T().setAttribute("aria-"+x.props.aria,v.id),x.props.onShown(x),x.state.isShown=!0})))},function(){p=!1;var t=x.props.appendTo,n="parent"===t?e.parentNode:invokeWithArgsOrReturn$1(t,[e]);n.contains(m)||n.appendChild(m);x.popperInstance?(setFlipModifierEnabled(x.popperInstance.modifiers,x.props.flip),x.popperInstance.enableEventListeners(),x.popperInstance.scheduleUpdate()):(V(),x.popperInstance.enableEventListeners())}()},hide:function(e){void 0===e&&(e=getValue(x.props.duration,1,defaultProps$1.duration[1]));var t=!x.state.isVisible&&!d,n=x.state.isDestroyed,i=!x.state.isEnabled&&!d;if(t||n||i)return;if(!1===x.props.onHide(x)&&!d)return;I(),m.style.visibility="hidden",x.state.isVisible=!1,x.state.isShown=!1;var o=E();setTransitionDuration$1(o,e),setVisibilityState$1(o,"hidden"),function(e,t){k(e,(function(){!x.state.isVisible&&m.parentNode&&m.parentNode.contains(m)&&t()}))}(e,(function(){x.props.aria&&T().removeAttribute("aria-"+x.props.aria),x.popperInstance.disableEventListeners(),x.popperInstance.options.placement=s,m.parentNode.removeChild(m),x.props.onHidden(x),x.state.isMounted=!1}))},enable:function(){x.state.isEnabled=!0},disable:function(){x.state.isEnabled=!1},destroy:function(){if(x.state.isDestroyed)return;d=!0,x.hide(0),N(),delete e._tippy,x.popperInstance&&x.popperInstance.destroy();d=!1,x.state.isDestroyed=!0}};return e._tippy=x,m._tippy=x,P(),a.lazy||V(),a.showOnCreate&&H(),m.addEventListener("mouseenter",(function(){x.props.interactive&&x.state.isVisible&&"mouseenter"===n&&x.clearDelayTimeouts()})),m.addEventListener("mouseleave",(function(){x.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",f)})),a.onCreate(x),x;function w(){var e=x.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===w()[0]}function E(){return[v,y,x.popperChildren.backdrop]}function T(){return x.props.triggerTarget||e}function O(){document.body.removeEventListener("mouseleave",W),document.removeEventListener("mousemove",f),mouseMoveListeners$1=mouseMoveListeners$1.filter((function(e){return e!==f}))}function S(e){if(!x.props.interactive||!m.contains(e.target)){if(T().contains(e.target)){if(currentInput$1.isTouch)return;if(x.state.isVisible&&includes(x.props.trigger,"click"))return}!0===x.props.hideOnClick&&(x.clearDelayTimeouts(),x.hide(),u=!0,setTimeout((function(){u=!1})),x.state.isMounted||I())}}function A(){document.addEventListener("mousedown",S,!0)}function I(){document.removeEventListener("mousedown",S,!0)}function k(e,t){function n(e){e.target===v&&(updateTransitionEndListener$1(v,"remove",n),t())}if(0===e)return t();updateTransitionEndListener$1(v,"remove",l),updateTransitionEndListener$1(v,"add",n),l=n}function L(e,t,n){void 0===n&&(n=!1),T().addEventListener(e,t,n),h.push({eventType:e,handler:t,options:n})}function P(){C()&&(L("touchstart",R,PASSIVE),L("touchend",D,PASSIVE)),includes(x.props.trigger,"click")||L("click",(function(){currentInput$1.isTouch||!0!==x.props.hideOnClick||x.hide()})),x.props.trigger.trim().split(" ").forEach((function(e){if("manual"!==e)switch(L(e,R),e){case"mouseenter":L("mouseleave",D);break;case"focus":L(isIE?"focusout":"blur",B)}}))}function N(){h.forEach((function(e){var t=e.eventType,n=e.handler,i=e.options;T().removeEventListener(t,n,i)})),h=[]}function R(e){if(!u&&x.state.isEnabled&&!$(e))if(x.state.isVisible||(n=e.type,e instanceof MouseEvent&&mouseMoveListeners$1.forEach((function(t){return t(e)}))),"click"===e.type&&!1!==x.props.hideOnClick&&x.state.isVisible)W(e);else{var t=w(),o=t[0],r=t[1];currentInput$1.isTouch&&"hold"===o&&r?i=setTimeout((function(){H(e)}),r):H(e)}}function M(t){closestCallback(t.target,(function(t){return t===e||t===m}))||isCursorOutsideInteractiveBorder$1(getBasePlacement$2(x.state.currentPlacement),m.getBoundingClientRect(),t,x.props)&&(O(),W(t))}function D(e){if(!$(e))return x.props.interactive?(document.body.addEventListener("mouseleave",W),document.addEventListener("mousemove",f),void mouseMoveListeners$1.push(f)):void W(e)}function B(e){e.target===T()&&(x.props.interactive&&e.relatedTarget&&m.contains(e.relatedTarget)||W(e))}function $(e){var t="ontouchstart"in window,n=includes(e.type,"touch"),i=C();return t&&currentInput$1.isTouch&&i&&!n||currentInput$1.isTouch&&!i&&n}function V(){var t=x.props,n=t.popperOptions,i=t.placement,o=x.popperChildren.arrow,r=getModifier(n,"preventOverflow"),a=x.state.currentPlacement.split("-")[1];function c(e){x.state.currentPlacement=e.placement,x.props.flip&&!x.props.flipOnUpdate&&(e.flipped&&(x.popperInstance.options.placement=e.placement),setFlipModifierEnabled(x.popperInstance.modifiers,!1)),x.props.escapeWithReference&&setEscapeWithReference(x.popperInstance.modifiers,!0),v.setAttribute("data-placement",x.state.currentPlacement),!1!==e.attributes["x-out-of-boundaries"]?v.setAttribute("data-out-of-boundaries",""):v.removeAttribute("data-out-of-boundaries");var t=getBasePlacement$2(x.state.currentPlacement),n=v.style;n.top="0",n.left="0",n[includes(["top","bottom"],getBasePlacement$2(x.state.currentPlacement))?"top":"left"]=(includes(["bottom","right"],getBasePlacement$2(x.state.currentPlacement))?1:-1)*x.props.distance+"px";var i=r&&void 0!==r.padding?r.padding:PREVENT_OVERFLOW_PADDING,o="number"==typeof i,a=_extends$1({top:o?i:i.top,bottom:o?i:i.bottom,left:o?i:i.left,right:o?i:i.right},!o&&i);a[t]=o?i+x.props.distance:(i[t]||0)+x.props.distance,x.popperInstance.modifiers.filter((function(e){return"preventOverflow"===e.name}))[0].padding=a}var l=_extends$1({eventsEnabled:!1,placement:s=x.props.followCursor&&a?i.replace(a,"start"===a?"end":"start"):i},n,{modifiers:_extends$1({},n?n.modifiers:{},{preventOverflow:_extends$1({boundariesElement:x.props.boundary,padding:PREVENT_OVERFLOW_PADDING},r),arrow:_extends$1({element:o,enabled:!!o},getModifier(n,"arrow")),flip:_extends$1({enabled:x.props.flip,padding:x.props.distance+PREVENT_OVERFLOW_PADDING,behavior:x.props.flipBehavior},getModifier(n,"flip")),offset:_extends$1({offset:x.props.offset},getModifier(n,"offset"))}),onCreate:function(e){c(e),preserveInvocation(n&&n.onCreate,l.onCreate,[e]),F()},onUpdate:function(e){c(e),preserveInvocation(n&&n.onUpdate,l.onUpdate,[e]),F()}});x.popperInstance=new Popper(e,m,l)}function F(){!p&&c&&(p=!0,reflow(m),c())}function H(e){if(x.clearDelayTimeouts(),x.state.isScheduledToShow=!0,x.popperInstance||V(),e&&x.props.onTrigger(x,e),x.props.wait)return x.props.wait(x,e);A();var t=getValue(x.props.delay,0,defaultProps$1.delay);t?i=setTimeout((function(){x.show()}),t):x.show()}function W(e){if(x.clearDelayTimeouts(),x.props.onUntrigger(x,e),x.state.isVisible){x.state.isScheduledToShow=!1;var t=getValue(x.props.delay,1,defaultProps$1.delay);t?o=setTimeout((function(){x.state.isVisible&&x.hide()}),t):r=requestAnimationFrame((function(){x.hide()}))}else I()}}function tippy$1(e,t){bindGlobalEventListeners$1();var n=_extends$1({},defaultProps$1,t),i=getArrayOfElements$1(e).reduce((function(e,t){var i=t&&createTippy$1(t,n);return i&&e.push(i),e}),[]);return isRealElement(e)?i[0]:i}function autoInit(){arrayFrom$1(document.querySelectorAll("[data-tippy]")).forEach((function(e){var t=e.getAttribute("data-tippy");t&&tippy$1(e,{content:t})}))}tippy$1.version=version,tippy$1.defaultProps=defaultProps$1,tippy$1.currentInput=currentInput$1,tippy$1.setDefaultProps=function(e){Object.keys(e).forEach((function(t){defaultProps$1[t]=e[t]}))},tippy$1.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,i=t.duration;arrayFrom$1(document.querySelectorAll(POPPER_SELECTOR)).forEach((function(e){var t=e._tippy;if(t){var o=!1;n&&(o=isReferenceElement$1(n)?t.reference===n:e===n.popper),o||t.hide(i)}}))},isBrowser$1&&setTimeout(autoInit)
40
39
  /**!
41
40
  * tippy.js v5.0.0-alpha.2
42
41
  * (c) 2017-2019 atomiks
43
42
  * MIT License
44
- */;!function(t){if(qt){var e=document.createElement("style");e.textContent=t,e.setAttribute("data-tippy-stylesheet","");var n=document.head,i=n.querySelector("style,link");i?n.insertBefore(e,i):n.appendChild(e)}}(".tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;background-color:#333;overflow:hidden;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-8px}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-8px}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-8px}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-8px}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent!important}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow{border-color:transparent;border-style:solid;position:absolute}.tippy-arrow[data-state=hidden]{opacity:0}.tippy-content{padding:.3125rem .5625rem}");var Pn=jn("shepherd"),Fn=jn("shepherd-has-title"),zn={computeStyle:{enabled:!0,fn:function(t){return t.styles=Lt({},t.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),t}},addShepherdClass:Pn},qn={positionFixed:!0,modifiers:{addShepherdClass:Pn}};function Hn(t){var e=document.createElement("div");return e.innerHTML=t,e.children[0]}function Vn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(t)?t.slice(e):[]}function Zn(){if(Ft(Bn))throw new Error("Using the attachment feature of Shepherd requires the Tippy.js library");this.tooltip&&this.tooltip.destroy();var t=this.parseAttachTo();this.tooltip=Wn.call(this,t),this.target=t.element||document.body,this.el.classList.add("shepherd-element")}function Rn(){var t=this.options.attachTo||{},e=Lt({},t);if(Pt(t.element)){try{e.element=document.querySelector(t.element)}catch(t){}e.element||console.error("The element for this Shepherd step was not found ".concat(t.element))}return e}function jn(t){return{enabled:!0,fn:function(e){return e.instance.popper.classList.add(t),e}}}function Wn(t){if(!t.element)return Yn.call(this);var e=Un.call(this,t);return Bn(t.element,e)}function Un(t){var e={content:this.el,flipOnUpdate:!0,placement:t.on||"right"};return Lt(e,this.options.tippyOptions),this.options.title&&Lt(qn.modifiers,{addHasTitleClass:Fn}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&Lt(qn,this.options.tippyOptions.popperOptions),e.popperOptions=qn,e}function Yn(){var t=function(t){for(var e=1;e<arguments.length;e++)if(e%2){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){At(t,e,n[e])}))}else Object.defineProperties(t,Object.getOwnPropertyDescriptors(arguments[e]));return t}({content:this.el,placement:"top"},this.options.tippyOptions);t.arrow=!1,t.popperOptions=t.popperOptions||{},this.options.title&&Lt(qn.modifiers,{addHasTitleClass:Fn});var e=Lt({},qn,t.popperOptions,{modifiers:Lt(zn,t.popperOptions.modifiers)});return t.popperOptions=e,Bn(document.body,t)}var Xn=function(){function t(){Ct(this,t)}return kt(t,[{key:"on",value:function(t,e,n){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];Ft(this.bindings)&&(this.bindings={}),Ft(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:i})}},{key:"once",value:function(t,e,n){this.on(t,e,n,!0)}},{key:"off",value:function(t,e){var n=this;if(Ft(this.bindings)||Ft(this.bindings[t]))return!1;Ft(e)?delete this.bindings[t]:this.bindings[t].forEach((function(i,o){i.handler===e&&n.bindings[t].splice(o,1)}))}},{key:"trigger",value:function(t){var e=this;if(!Ft(this.bindings)&&this.bindings[t]){var n=Vn(Array.prototype.slice.call(arguments));this.bindings[t].forEach((function(i,o){var r=i.ctx,a=i.handler,s=i.once,l=r||e;a.apply(l,n),s&&e.bindings[t].splice(o,1)}))}}}]),t}();function Qn(t){var e=this;return function(n){if(e.isOpen()){var i=e.el&&n.target===e.el;(!Ft(t)&&n.target.matches(t)||i)&&e.tour.next()}}}function Gn(){var t=this.options.advanceOn||{},e=t.event,n=t.selector;if(!e)return console.error("advanceOn was defined, but no event name was passed.");var i,o=Qn.call(this,n);try{i=document.querySelector(n)}catch(t){}if(!Ft(n)&&!i)return console.error("No element was found for the selector supplied to advanceOn: ".concat(n));i?(i.addEventListener(e,o),this.on("destroy",(function(){return i.removeEventListener(e,o)}))):(document.body.addEventListener(e,o,!0),this.on("destroy",(function(){return document.body.removeEventListener(e,o,!0)})))}function Jn(t,e){var n=this;t.events=t.events||{},Ft(t.action)||(t.events.click=t.action),t.events&&Object.entries(t.events).forEach((function(t){var i=Dt(t,2),o=i[0],r=i[1];if(Pt(r)){var a=r;r=function(){return n.tour.show(a)}}e.dataset.buttonEvent=!0,e.addEventListener(o,r),n.on("destroy",(function(){e.removeAttribute("data-button-event"),e.removeEventListener(o,r)}))}))}function $n(t){var e=this;t.addEventListener("click",(function(t){t.preventDefault(),e.cancel()}))}function Kn(t){var e=this;t.map((function(t){e[t]=e[t].bind(e)}))}Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var ti=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t,e){t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var n,i=t.HTMLElement||t.Element,o={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:i.prototype.scroll||l,scrollIntoView:i.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,s=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?v.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):o.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==r(arguments[0])?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?o.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==r(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):v.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},i.prototype.scroll=i.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var t=arguments[0].left,e=arguments[0].top;v.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==r(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},i.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},i.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var n=h(this),i=n.getBoundingClientRect(),r=this.getBoundingClientRect();n!==e.body?(v.call(this,n,n.scrollLeft+r.left-i.left,n.scrollTop+r.top-i.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function l(t,e){this.scrollLeft=t,this.scrollTop=e}function c(t){if(null===t||"object"!==r(t)||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===r(t)&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(t,e){return"Y"===e?t.clientHeight+s<t.scrollHeight:"X"===e?t.clientWidth+s<t.scrollWidth:void 0}function p(e,n){var i=t.getComputedStyle(e,null)["overflow"+n];return"auto"===i||"scroll"===i}function u(t){var e=d(t,"Y")&&p(t,"Y"),n=d(t,"X")&&p(t,"X");return e||n}function h(t){for(;t!==e.body&&!1===u(t);)t=t.parentNode||t.host;return t}function f(e){var n,i,o,r,s=(a()-e.startTime)/468;r=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*r)),i=e.startX+(e.x-e.startX)*n,o=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,i,o),i===e.x&&o===e.y||t.requestAnimationFrame(f.bind(t,e))}function v(n,i,r){var s,c,d,p,u=a();n===e.body?(s=t,c=t.scrollX||t.pageXOffset,d=t.scrollY||t.pageYOffset,p=o.scroll):(s=n,c=n.scrollLeft,d=n.scrollTop,p=l),f({scrollable:s,method:p,startTime:u,startX:c,startY:d,x:i,y:r})}}}}));ti.polyfill,ti.polyfill();var ei,ni=(ei=0,function(){return++ei}),ii=function(t){function e(t,n){var i;return Ct(this,e),(i=Ot(this,Mt(e).call(this,t,n))).tour=t,Kn.call(It(i),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),i.setOptions(n),i.bindAdvance=Gn.bind(It(i)),i.bindButtonEvents=Jn.bind(It(i)),i.bindCancelLink=$n.bind(It(i)),i.setupTooltip=Zn.bind(It(i)),i.parseAttachTo=Rn.bind(It(i)),Ot(i,It(i))}return St(e,t),kt(e,[{key:"_addButtons",value:function(t){var e=this;if(Array.isArray(this.options.buttons)&&this.options.buttons.length){var n=document.createElement("footer");n.classList.add("shepherd-footer"),this.options.buttons.map((function(t){var i=Hn('<button class="shepherd-button '.concat(t.classes||"",'" tabindex="0">').concat(t.text,"</button>"));n.appendChild(i),e.bindButtonEvents(t,i)})),t.appendChild(n)}}},{key:"_addCancelLink",value:function(t,e){if(this.options.showCancelLink){var n=Hn('<a href class="shepherd-cancel-link"></a>');e.appendChild(n),t.classList.add("shepherd-has-cancel-link"),this.bindCancelLink(n)}}},{key:"_addContent",value:function(t,e){var n=Hn('<div class="shepherd-text"\n id="'.concat(e,'"\n ></div>')),i=this.options.text;Bt(i)&&(i=i.call(this,n)),i instanceof HTMLElement?n.appendChild(i):(Pt(i)&&(i=[i]),i.map((function(t){n.innerHTML+="<p>".concat(t,"</p>")}))),t.appendChild(n)}},{key:"_addKeyDownHandler",value:function(t){var e=this,n=t.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),i=Dt(n,1)[0],o=n[n.length-1];t.addEventListener("keydown",(function(t){switch(t.keyCode){case 9:if(1===n.length){t.preventDefault();break}t.shiftKey?document.activeElement===i&&(t.preventDefault(),o.focus()):document.activeElement===o&&(t.preventDefault(),i.focus());break;case 27:e.cancel();break;case 37:e.tour.back();break;case 39:e.tour.next()}}))}},{key:"_createTooltipContent",value:function(){var t=document.createElement("div"),e=this.options.classes||"",n="".concat(this.id,"-description"),i="".concat(this.id,"-label"),o=Hn('<div class="'.concat(e,'"\n data-shepherd-step-id="').concat(this.id,'"\n role="dialog"\n tabindex="0">')),r=document.createElement("header");if(this.options.title){var a=document.createElement("h3");a.classList.add("shepherd-title"),a.innerHTML="".concat(this.options.title),a.id=i,o.setAttribute("aria-labeledby",i),r.appendChild(a)}return t.classList.add("shepherd-content"),r.classList.add("shepherd-header"),o.appendChild(t),t.appendChild(r),Ft(this.options.text)||(this._addContent(t,n),o.setAttribute("aria-describedby",n)),this._addButtons(t),this._addCancelLink(o,r),o}},{key:"getTour",value:function(){return this.tour}},{key:"cancel",value:function(){this.tour.cancel(),this.trigger("cancel")}},{key:"complete",value:function(){this.tour.complete(),this.trigger("complete")}},{key:"destroy",value:function(){try{this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),Nt(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this.target&&this._updateStepTargetOnHide(),this.trigger("destroy")}catch(t){}}},{key:"hide",value:function(){this.tour.modal.hide(),this.trigger("before-hide"),document.body.removeAttribute("data-shepherd-step"),this.target&&this._updateStepTargetOnHide(),this.tooltip&&this.tooltip.hide(),this.trigger("hide")}},{key:"isOpen",value:function(){return Boolean(this.tooltip&&this.tooltip.state&&this.tooltip.state.isVisible)}},{key:"setupElements",value:function(){Ft(this.el)||this.destroy(),this.el=this._createTooltipContent(),this._addKeyDownHandler(this.el),this.options.advanceOn&&this.bindAdvance(),this.setupTooltip()}},{key:"scrollTo",value:function(t){var e=this.parseAttachTo().element;Bt(this.options.scrollToHandler)?this.options.scrollToHandler(e):Nt(e)&&e.scrollIntoView(t)}},{key:"setOptions",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e;var n=this.options.when;this.destroy(),this.id=this.options.id||"step-".concat(ni()),n&&Object.entries(n).forEach((function(e){var n=Dt(e,2),i=n[0],o=n[1];t.on(i,o,t)}))}},{key:"show",value:function(){var t=this;if(Bt(this.options.beforeShowPromise)){var e=this.options.beforeShowPromise();if(!Ft(e))return e.then((function(){return t._show()}))}this._show()}},{key:"_show",value:function(){var t=this;this.tour.beforeShowStep(this),this.trigger("before-show"),this.el||this.setupElements(),this.target.classList.add("shepherd-enabled","shepherd-target"),document.body.setAttribute("data-shepherd-step",this.id),this.options.scrollTo&&setTimeout((function(){t.scrollTo(t.options.scrollTo)})),this.tooltip.show(),this.trigger("show"),this.el.focus()}},{key:"_updateStepTargetOnHide",value:function(){this.options.highlightClass&&this.target.classList.remove(this.options.highlightClass),this.target.classList.remove("shepherd-enabled","shepherd-target")}}]),e}(Xn),oi="http://www.w3.org/2000/svg",ri="shepherdModalOverlayContainer",ai="shepherdModalMask",si="shepherdModalMaskRect",li="shepherdModalMaskOpening",ci="shepherd-modal-is-visible",di="shepherd-modal-target";function pi(){var t,e=((t=document.createElementNS(oi,"svg")).setAttributeNS(null,"id",ri),t),n=document.createElementNS(oi,"defs"),i=function(){var t=document.createElementNS(oi,"mask");return vi(t,{height:"100%",id:ai,width:"100%",x:"0",y:"0"}),t}(),o=function(){var t=document.createElementNS(oi,"rect");return vi(t,{fill:"#FFFFFF",height:"100%",id:si,width:"100%",x:"0",y:"0"}),t}(),r=function(){var t=document.createElementNS(oi,"rect");return vi(t,{fill:"#000000",id:li}),t}(),a=function(){var t=document.createElementNS(oi,"rect");return vi(t,{height:"100%",width:"100%",x:"0",y:"0"}),t.setAttribute("mask","url(#".concat(ai,")")),t}();return i.appendChild(o),i.appendChild(r),n.appendChild(i),e.appendChild(n),e.appendChild(a),e}function ui(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.getBoundingClientRect&&e instanceof SVGElement){var i=t.getBoundingClientRect(),o=i.x,r=i.y,a=i.width,s=i.height,l=i.left,c=i.top;vi(e,{x:(o||l)-n,y:(r||c)-n,width:a+2*n,height:s+2*n})}}function hi(t){t.preventDefault()}function fi(t){t.stopPropagation()}function vi(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function gi(t){var e=t.options.attachTo;if(!e)return null;var n=wt(e);return"string"===n?function(t){var e=Dt(t.split(" "),1)[0];return document.querySelector(e)}(e):"object"===n?function(t){var e=t.element;if(e instanceof HTMLElement)return e;if(e instanceof SVGElement)return e;try{return document.querySelector(e)}catch(t){}return null}(e):null}function mi(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!0)),window.addEventListener("resize",this._onScreenChange,!1),window.addEventListener("scroll",this._onScreenChange,!0);var t=document.querySelector("#".concat(ri));window.addEventListener("touchmove",hi,{passive:!1}),t&&t.addEventListener("touchmove",fi,!1)}var yi=function(){function t(e){return Ct(this,t),this.createModalOverlay(),this.options=e,this}return kt(t,[{key:"cleanup",value:function(){try{var t=this._modalOverlayElem;t&&t instanceof SVGElement&&t.parentNode.removeChild(t),this._modalOverlayElem=null,document.body.classList.remove(ci)}catch(t){}}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var t=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=t||pi(),this._modalOverlayOpening=this._modalOverlayElem.querySelector("#".concat(li)),this.hide(),t||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(ci),this._modalOverlayElem&&(this._modalOverlayElem.style.display="none")}},{key:"setupForStep",value:function(t){this.options.useModalOverlay?(this._styleForStep(t),this.show()):this.hide()}},{key:"show",value:function(){document.body.classList.add(ci),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(t){var e,n,i,o,r,a=this._modalOverlayOpening,s=gi(t),l=t.options.modalOverlayOpeningPadding;s?(ui(s,a,l),this._onScreenChange=(n=ui.bind(this,s,a,l),i=0,function(){var t=this,e=arguments,a=function(){r=null,o||n.apply(t,e)},s=o&&!r;clearTimeout(r),r=setTimeout(a,i),s&&n.apply(t,e)}),mi.call(this)):(e=this._modalOverlayOpening)&&e instanceof SVGElement&&vi(e,{height:"0",x:"0",y:"0",width:"0"})}}]),t}(),bi=!1;if("undefined"!=typeof window){var _i={get passive(){bi=!0}};window.addEventListener("testPassive",null,_i),window.removeEventListener("testPassive",null,_i)}var xi,wi,Ci="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),Ei=[],ki=!1,Ai=-1,Li=function(t){return Ei.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))},Si=function(t){var e=t||window.event;return!!Li(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))},Mi=function(t,e){if(Ci){if(!t)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(t&&!Ei.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};Ei=[].concat(p(Ei),[n]),t.ontouchstart=function(t){1===t.targetTouches.length&&(Ai=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){var n=t.targetTouches[0].clientY-Ai;!Li(t.target)&&(e&&0===e.scrollTop&&n>0||function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}(e)&&n<0?Si(t):t.stopPropagation())}(e,t)},ki||(document.addEventListener("touchmove",Si,bi?{passive:!1}:void 0),ki=!0)}}else{!function(t){setTimeout((function(){if(void 0===wi){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(wi=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===xi&&(xi=document.body.style.overflow,document.body.style.overflow="hidden")}))}(e);var i={targetElement:t,options:e||{}};Ei=[].concat(p(Ei),[i])}},Ti=function(){Ci?(Ei.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),ki&&(document.removeEventListener("touchmove",Si,bi?{passive:!1}:void 0),ki=!1),Ei=[],Ai=-1):(setTimeout((function(){void 0!==wi&&(document.body.style.paddingRight=wi,wi=void 0),void 0!==xi&&(document.body.style.overflow=xi,xi=void 0)})),Ei=[])},Ii={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function Oi(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",hi,{passive:!1})}var Di,Ni=function(){var t=0;return function(){return++t}}(),Bi=new Xn,Pi=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ct(this,e),t=Ot(this,Mt(e).call(this,n)),Kn.call(It(t),["back","cancel","complete","hide","next"]),t.options=n,t.steps=t.options.steps||[];var i=["active","cancel","complete","inactive","show","start"];return i.map((function(e){var n;n=e,t.on(n,(function(e){(e=e||{}).tour=It(t),Bi.trigger(n,e)}))})),t.modal=new yi(n),t._setTooltipDefaults(),t._setTourID(),Ot(t,It(t))}return St(e,t),kt(e,[{key:"addStep",value:function(t,e){var n,i;return Ft(e)?i=t:(n=t,i=e),i instanceof ii?i.tour=this:i=this.setupStep(i,n),this.steps.push(i),i}},{key:"back",value:function(){var t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}},{key:"cancel",value:function(){if(this.options.confirmCancel){var t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(t)&&this.done("cancel")}else this.done("cancel")}},{key:"complete",value:function(){this.done("complete")}},{key:"done",value:function(t){var e;Array.isArray(this.steps)&&this.steps.forEach((function(t){return t.destroy()})),Oi.call(this),(e=this.tourObject)&&e.steps.forEach((function(t){if(t.options&&!1===t.options.canClickTarget&&t.options.attachTo){var e=gi(t);e instanceof HTMLElement&&(e.style.pointerEvents="auto")}})),this.trigger(t),Bi.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&Ti(),this.modal.cleanup()}},{key:"getById",value:function(t){return this.steps.find((function(e){return e.id===t}))}},{key:"getCurrentStep",value:function(){return this.currentStep}},{key:"hide",value:function(){var t=this.getCurrentStep();if(t)return t.hide()}},{key:"isActive",value:function(){return Bi.activeTour===this}},{key:"next",value:function(){var t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}},{key:"removeStep",value:function(t){var e=this,n=this.getCurrentStep();this.steps.some((function(n,i){if(n.id===t)return n.isOpen()&&n.hide(),n.destroy(),e.steps.splice(i,1),!0})),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}},{key:"setupStep",value:function(t,e){return(Pt(e)||"number"==typeof e)&&(t.id=e.toString()),t=Lt({},this.options.defaultStepOptions,t),new ii(this,t)}},{key:"beforeShowStep",value:function(t){this.modal.setupForStep(t),this._styleTargetElementForStep(t)}},{key:"show",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Pt(t)?this.getById(t):this.steps[t];if(n){this._updateStateBeforeShow();var i=Bt(n.options.showOn)&&!n.options.showOn();i?this._skipStep(n,e):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show())}}},{key:"start",value:function(){this.trigger("start"),this.options.disableScroll&&Mi(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),Bi.activeTour=this}},{key:"_styleTargetElementForStep",value:function(t){var e,n,i=gi(t);i&&(e=i,(n=document.querySelector("".concat(di)))&&n.classList.remove(di),e.classList.add(di),t.options.highlightClass&&i.classList.add(t.options.highlightClass),!1===t.options.canClickTarget&&(i.style.pointerEvents="none"))}},{key:"_skipStep",value:function(t,e){var n=this.steps.indexOf(t),i=e?n+1:n-1;this.show(i,e)}},{key:"_setTooltipDefaults",value:function(){Bn.setDefaultProps(Ii)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var t=this.options.tourName||"tour",e=Ni();this.id="".concat(t,"--").concat(e)}},{key:"_addBodyAttrs",value:function(){document.body.setAttribute("data-shepherd-active-tour",this.id),document.body.classList.add("shepherd-active")}},{key:"_removeBodyAttrs",value:function(){document.body.removeAttribute("data-shepherd-active-tour"),document.body.classList.remove("shepherd-active")}}]),e}(Xn);Lt(Bi,{Tour:Pi,Step:ii,Evented:Xn});var Fi=function(t,e,n,i,o){var r,a=t.animation,s=void 0===a?{}:a,l=t.bg_color,c=void 0===l?"black":l,d=t.border,p=void 0===d?{}:d,u=t.buttons_config,h=void 0===u?[]:u,f=t.button_position,v=void 0===f?"right":f,g=t.button_direction,m=void 0===g?Y:g,y=t.corners,b=void 0===y?{}:y,_=t.shadow,x=void 0===_?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":_,w=t.opacity,C=void 0===w?1:w,E=t.dismiss_outside_touch,k=void 0!==E&&E,A=t.escapeWithReference,L=void 0!==A&&A,S=t.dismiss_target_touch,M=void 0===S||S,T=t.position,I=void 0===T?"TOP":T,O=t.text_config,D=void 0===O?{}:O,N=t.title_config,B=void 0===N?{}:N,P=t.view_id,F=t.show_shadow,z=void 0!==F&&F,q=t.show_close_icon,H=void 0!==q&&q,V=t.dim_background_color,Z=void 0===V?"#0a0a0a":V,R=t.dim_background_opacity,j=void 0===R?.5:R,W=t.layout_type,U=void 0===W?"default":W,X=t.pb_color,Q=void 0===X?"orange":X,G=t.index,J=void 0===G?0:G,$=t.total,K=void 0===$?1:$,tt=t.iframe_id,et=void 0===tt?"":tt,nt=(null==D?void 0:D.alignment)||"center",rt=(null==B?void 0:B.alignment)||"center",at=e.configId,st=e.configName,dt=ot(h,Di,at,st),pt=dt.buttons_array,ut=dt.buttons_css,ht={color:D.color,fontSize:D.size,fontFamily:D.font_family,fontStyle:D.style};if(D.margin_config&&Object.keys(D.margin_config).length>0){var vt=D.margin_config;ht.margin="".concat(vt.top,"px ").concat(vt.right,"px ").concat(vt.bottom,"px ").concat(vt.left,"px")}var gt=D.style;"bold"===gt&&(ht.fontWeight=gt);var mt,yt={color:B.color,fontSize:B.size,fontFamily:B.font_family,fontStyle:B.style};if(B.margin_config&&Object.keys(B.margin_config).length>0){var bt=B.margin_config;yt.margin="".concat(bt.top,"px ").concat(bt.right,"px ").concat(bt.bottom,"px ").concat(bt.left,"px")}switch("bold"===(gt=B.style)&&(ht.fontWeight=gt),U){case"with_progress":mt='\n<div>\n <div style="height: 6px;background: '.concat(Q,";width: ").concat((J+1)/K*100,"%;border-radius: ").concat(b.enabled?b.width:0,'px;"></div>\n <header class="shepherd-header" style="').concat(B?"padding: 10px 10px 0 10px":"",'">\n ').concat(B?'<h3 class="shepherd-title" id="apxor-step-'.concat(J,'-label" style="padding: 0 !important;padding-right: 0.7em;text-align:').concat(rt,';">').concat(ft(null==B?void 0:B.text,null==B?void 0:B.segments,null==B?void 0:B.quote),"</h3>"):"",'\n </header>\n <p style="padding: 8px 10px;text-align:').concat(nt,';">').concat(ft(null==D?void 0:D.text,null==D?void 0:D.segments,null==D?void 0:D.quote),"</p>\n</div>\n "),mt=(new DOMParser).parseFromString(mt,"text/html").body.children[0];break;default:mt=(null==D||null===(r=D.segments)||void 0===r?void 0:r.length)>0?ft(null==D?void 0:D.text,null==D?void 0:D.segments,null==D?void 0:D.quote):[D&&D.text?D.text:"Tap here"]}var _t={"border-radius":b.enabled?b.width:0,background:c,"border-color":p.color,"border-width":p.width},wt=xt(P,et);if(wt){var Ct=document.createElement("span");Ct.setAttribute("id","apxor-style-"+at+"-step-"+J);var Et=document.createElement("style");Et.innerHTML='\n#shepherdModalOverlayContainer {\n -ms-filter: "progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)";\n filter: alpha(opacity=50);height: 100vh;left: 0;opacity: '.concat(null!=j?j:.5,";position: fixed;\n top: 0;transition: all .3s ease-out;width: 100vw;z-index: 9997;fill: ").concat(null!=Z?Z:"transparent","\n}\n#shepherdModalOverlayContainer #shepherdModalMask, #shepherdModalOverlayContainer #shepherdModalMaskRect {\n height: 100vh;width: 100vw\n}\n.shepherd-modal.shepherd-enabled {\n position: relative;z-index: 9998\n}\n.shepherd-active.shepherd-modal-is-visible :not(.shepherd-target) {\n pointer-events: none\n}\n.shepherd-active.shepherd-modal-is-visible .shepherd-button, .shepherd-active.shepherd-modal-is-visible .shepherd-button *, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link *, .shepherd-active.shepherd-modal-is-visible .shepherd-element, .shepherd-active.shepherd-modal-is-visible .shepherd-element *, .shepherd-active.shepherd-modal-is-visible .shepherd-target, .shepherd-active.shepherd-modal-is-visible .shepherd-target * {\n pointer-events: auto\n}\n.tippy-popper.shepherd {\n z-index: 999999\n}\n.tippy-popper.shepherd[x-placement^=top] {\n margin-top: 0px\n}\n.tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: 8px\n}\n.tippy-popper.shepherd[x-placement^=left] {\n margin-right: 0px\n}\n.tippy-popper.shepherd[x-placement^=right] {\n margin-left: 0px\n}\n.tippy-popper.shepherd .tippy-tooltip .tippy-content {\n max-height: 100%;padding: 0;text-align: left;max-width: 400px;\n}\n.shepherd-element, .shepherd-element *, .shepherd-element:after, .shepherd-element :after, .shepherd-element:before, .shepherd-element :before {\n box-sizing: border-box\n}\n.shepherd-element {\n outline: none;\n}\n.shepherd-element .shepherd-content header {\n *zoom: 1;align-items: left;border-top-left-radius: 5px;border-top-right-radius: 5px;\n display: flex;justify-content: left;line-height: 2em;").concat(H?"padding: .75em;":"",'\n}\n.shepherd-element .shepherd-content header:after {\n clear: both;content: "";display: table\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link, .shepherd-element .shepherd-content header .shepherd-title {\n margin: 0;padding: 0;position: relative;vertical-align: middle\n}\n.shepherd-element .shepherd-content header .shepherd-title {\n text-align:').concat(rt,";\n color: ").concat(yt.color,";display: flex;flex: 1 0 auto;\n font-size: ").concat(yt.fontSize,"px;font-family: ").concat(yt.fontFamily,";\n font-weight: ").concat("bold"!==yt.fontStyle?"normal":yt.fontStyle,";font-style: ").concat("italic"===yt.fontStyle?"italic":"unset",";\n line-height: ").concat("default"===U?"26":"20",'px;letter-spacing:0.01em;padding: .7em;padding-bottom: 0px;max-width: 400px;\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link {\n color: hsla(0, 0%, 70.2%, .75);font-size: 2em;margin-left: auto;\n text-decoration: none;transition: color .5s ease\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link:before {\n mix-blend-mode: screen;content: "×"\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link:hover {\n mix-blend-mode: difference;\n}\n.shepherd-element .shepherd-content .shepherd-text {\n text-align:').concat(nt,";\n line-height: 1em;").concat("default"===U?"padding:14px;padding-top:4px":"","\n}\n.shepherd-element .shepherd-content .shepherd-text a,\n.shepherd-element .shepherd-content .shepherd-text a:active,\n.shepherd-element .shepherd-content .shepherd-text a:visited {\n border-bottom: 1px dotted rgba(0, 0, 0, .75);color: ").concat(ht.color,";\n opacity: 0.75;text-decoration: none\n}\n.shepherd-element .shepherd-content .shepherd-text a:active:hover, \n.shepherd-element .shepherd-content .shepherd-text a:hover,\n.shepherd-element .shepherd-content .shepherd-text a:visited:hover {\n border-bottom-style: solid\n}\n.shepherd-element .shepherd-content .shepherd-text p {\n margin-top: 0\n}\n.shepherd-element .shepherd-content .shepherd-text p:last-child {\n margin-bottom: 0\n}\n.shepherd-content > .shepherd-text p {\n font-size: ").concat(ht.fontSize,"px;font-family: ").concat(ht.fontFamily,"; \n font-weight: ").concat("bold"!==ht.fontStyle?"normal":ht.fontStyle,";\n font-style: ").concat("italic"===ht.fontStyle?"italic":"unset",";\n color: ").concat(ht.color,";line-height: ").concat("default"===U?"26":"20","px;letter-spacing:0.01em;\n}\n").concat(it(ut,v,m,".shepherd-element .shepherd-content "),"\n@-webkit-keyframes cycle {\n 0% { transform: ").concat(lt(I,0),"; }\n 50% { transform: ").concat(lt(I,50),"; }\n 100% { transform: ").concat(lt(I,100),"; }\n}\n@keyframes cycle {\n 0% { transform: ").concat(lt(I,0),"; }\n 50% { transform: ").concat(lt(I,50),"; }\n 100% { transform: ").concat(lt(I,100),"; }\n}\n.tippy-tooltip.apxor-").concat(at,"-step-").concat(J,"-theme {\n animation: ").concat(s.enabled?s.type+" 1000ms":"none",";\n animation-timing-function: ease-in-out;animation-iteration-count: infinite;\n box-shadow: ").concat(z?x:"none",";color: ").concat(ht.color,";\n opacity: ").concat(C,";border-radius: ").concat(_t["border-radius"]+"px",";\n background-color: ").concat(_t.background,";").concat(function(t){switch(t.toUpperCase()){case"TOP":return"top: -8px !important";case"LEFT":return"left: 0px !important";case"RIGHT":return"left: -0px !important";case"BOTTOM":return"top: 0px !important"}}(I),";\n}\n.apxor-").concat(at,"-step-").concat(J,"-theme .tippy-roundarrow {\n fill: ").concat(_t.background,";\n}\n.tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(_t.background,";\n}\n.tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(_t.background,";\n}\n.tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(_t.background,";\n}\n.tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(_t.background,";\n}\n "),Ct.appendChild(Et),wt.parentNode.insertBefore(Ct,wt);var kt=function(){return function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(o)try{Di.complete(),i&&t.logActionEvent("InlineTargetViewClicked",e,n)}catch(e){t.isShowingAction=!1,t.currentAction=null,console.error(e)}}(n,at,st,!0,M)},At=function(){var t;try{var e;null===(e=Di)||void 0===e||e.complete()}catch(t){console.error(t)}St.disconnect(),Mt.disconnect();try{var n,i=document.getElementById("apxor-style-"+at+"-step-"+J);null==i||null===(n=i.parentNode)||void 0===n||n.removeChild(i)}catch(t){window.ApxorLogger.error("Error removing the tooltip styles:"+t)}try{var r,a=document.getElementById("shepherdModalOverlayContainer");null==a||null===(r=a.parentNode)||void 0===r||r.removeChild(a)}catch(t){window.ApxorLogger.error("Error removing the tooltip overlay:"+t)}o&&o(null===(t=Di)||void 0===t?void 0:t._isCancelled),wt.removeEventListener("click",kt)},Lt=!1,St=new MutationObserver((function(){if(!document.body.contains(wt)){document.getElementById("shepherdModalOverlayContainer").remove();var t=document.getElementsByClassName("apxor-".concat(at,"-step-").concat(J,"-theme"));t.length>0&&t[0]&&t[0].parentNode&&t[0].parentNode.remove(),At()}})),Mt=new IntersectionObserver((function(){var t=ct(wt);if(!t&&Lt){document.getElementById("shepherdModalOverlayContainer").remove();var e=document.getElementsByClassName("apxor-".concat(at,"-step-").concat(J,"-theme"));e.length>0&&e[0]&&e[0].parentNode&&e[0].parentNode.remove(),At()}t&&(Lt=!0)})),Tt=ft(null==B?void 0:B.text,null==B?void 0:B.segments,null==B?void 0:B.quote);Di.addStep("apxor-step-"+J,{title:"default"===U?""===Tt?null:Tt.outerHTML:null,text:mt,classes:"apxor-".concat(at,"-step-").concat(J,"-theme"),attachTo:{element:wt,on:I.toLowerCase()},showCancelLink:H,buttons:pt,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:k,escapeWithReference:L,theme:"apxor-".concat(at,"-step-").concat(J),onShow:function(){i&&i(),wt.addEventListener("click",kt),St.observe(document.body,{childList:!0,subtree:!0}),Mt.observe(wt)},onHidden:At}})}else console.warn("Element not found with id or path")},zi=function(t,e,n,i,o,r,a){var s,l,c=Array.isArray(e)&&e.length>0,d=t.delay,p=t.dim_background,u=t.view_id,h=t.iframe_id,f=t.find_interval,v=void 0===f?0:f,g=t.max_find_interval,m=void 0===g?1e4:g,y=t.scrollToView,b=void 0!==y&&y;"Script"===(null===(s=t.title_config)||void 0===s?void 0:s.text)&&(t.title_config.isDynamicText?pt(t.title_config):ut(t.title_config)),"Script"===(null===(l=t.text_config)||void 0===l?void 0:l.text)&&(t.text_config.isDynamicText?pt(t.text_config):ut(t.text_config));var _=!1;b&&(_={behavior:"smooth",block:"center"}),Di=new Bi.Tour({defaultStepOptions:{scrollTo:_},useModalOverlay:c||p});var x=function(n){try{var s=n.getBoundingClientRect();if(0===s.width||0===s.height)return console.warn("Width and height are 0 for: ",u,". Can't show"),void(o.currentAction=null)}catch(t){return o.isShowingAction=!1,void(o.currentAction=null)}if(c?e.forEach((function(t){var e=t.ui;Fi(e,i,o,r,a)})):Fi(t,i,o,r,a),o.isShowingAction)window.ApxorLogger.error("An action already being shown");else try{Di.start(),o.isShowingAction=!0}catch(t){o.isShowingAction=!1,o.currentAction=null,console.error(t)}};return setTimeout((function(){var t=xt(u,h);t?x(t):(console.warn("Element with id:".concat(u," not found.")),v?(console.warn("Rechecking"),function(t){var e=new Date,n=setInterval((function(){var i=xt(t,h);i?(clearInterval(n),x(i)):new Date-e>m&&(clearInterval(n),console.warn("Element with id:".concat(t," not found.")),o.currentAction=null)}),v)}(u)):o.currentAction=null)}),d),!0===n.auto_dismiss&&setTimeout((function(){try{Di.complete()}catch(t){o.isShowingAction=!1,o.currentAction=null,console.error(t)}}),d+n.duration),Di.complete},qi=gt(10);function Hi(t,e){return'\n <svg\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'"\n class="apx-fade-in">\n <defs>\n <mask\n id="apx-mask"\n x="0"\n y="0"\n height="').concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'">\n ').concat(t,"\n </mask>\n </defs>\n ").concat(e,"\n </svg>\n ")}function Vi(t){var e=t.opacity,n=t.type,i=document.createElement("div");i.setAttribute("id",qi+"-svg"),i.style.position="absolute",i.style.left=0,i.style.top=0,i.style.zIndex=99998,i.style.width="100%",i.style.height="99%";var o="";return o="circle"===n?function(t){var e=t.bg_color,n=t.opacity,i=t.innerRadius,o=t.innerCenterX,r=t.innerCenterY,a=t.outerRadius,s=t.outerCircleCenterX,l=t.outerCircleCenterY;return Hi('\n <rect\n x="'.concat(s-a,'"\n y="').concat(l-a<0?0:l-a,'"\n height="').concat(2*a,'"\n width="').concat(2*a,'"\n fill="#fff" />\n <circle\n cx="').concat(o,'"\n cy="').concat(r,'"\n r="').concat(i,'" />\n '),'\n <circle\n cx="'.concat(s,'" \n cy="').concat(l,'" \n r="').concat(a,'" \n fill="').concat(e,'" \n fill-opacity="').concat(n,'"\n mask="url(#apx-mask)" />\n '))}(t):function(t){var e=t.bg_color,n=t.opacity,i=t.targetElementLeft,o=t.targetElementTop,r=t.targetElementWidth,a=t.targetElementHeight;return Hi('\n <rect\n x="0" y="0"\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'" \n fill="#fff" />\n <rect\n x="').concat(i,'" \n y="').concat(o,'" \n width="').concat(r,'" \n height="').concat(a,'" />\n '),'\n <rect\n x="0" y="0"\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'" \n mask="url(#apx-mask)"\n fill="').concat(e,'" \n fill-opacity="').concat(n,'" />\n '))}(t),i.innerHTML="\n <style>\n @keyframes apx-anim {\n from {\n opacity: 0;\n }\n\n to {\n opacity: ".concat(e,";\n }\n }\n .apx-fade-in {\n animation: apx-anim 0.4s linear;\n }\n </style>\n ").concat(o),document.body.appendChild(i),i}function Zi(t,e,n,i,o){var r,a,s=t.bg_color,l=t.buttons_config,c=void 0===l?[]:l,d=t.button_position,p=t.button_direction,u=void 0===p?Y:p,h=t.coach_mark_details,f=h.has_ripple,v=void 0!==f&&f,g=h.type,m=void 0===g?"circle":g,y=t.delay,b=t.dismiss_outside_touch,_=void 0!==b&&b,x=t.opacity,w=void 0===x?.8:x,C=t.position,E=void 0===C?"TOP":C,k=t.text_config,A=t.title_config,L=void 0===A?null:A,S=t.view_id,M=t.iframe_id,T=void 0===M?"":M,I=t.scroll_to_view,O=void 0!==I&&I,D=e.configId,N=e.configName;"Script"===(null===(r=t.title_config)||void 0===r?void 0:r.text)&&(t.title_config.isDynamicText?pt(t.title_config):ut(t.title_config)),"Script"===(null===(a=t.text_config)||void 0===a?void 0:a.text)&&(t.text_config.isDynamicText?pt(t.text_config):ut(t.text_config));var B=xt(S,T);if(B)if(qi=gt(10),O||ct(B)){var P=!1,F=new MutationObserver((function(){document.body.contains(B)||G()})),z=new IntersectionObserver((function(){var t=ct(B);!t&&P&&G(),t&&(P=!0)})),q=function(t){var e=t.getBoundingClientRect(),n=e.left+window.scrollX,i=e.top+window.scrollY;return{left:n,top:i,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY,x:tt(e.x)?e.x+window.scrollX:n,y:tt(e.y)?e.y+window.scrollY:i,width:e.width,height:e.height}}(B),H=q.left,V=void 0===H?0:H,Z=q.top,R=void 0===Z?0:Z,j=q.width,W=void 0===j?0:j,U=q.height,X=void 0===U?0:U,Q=q.left<window.innerWidth/2;if(0!==X&&0!==W){var G=function(){F.disconnect(),z.disconnect(),Ct.parentNode.removeChild(Ct),J.parentNode.removeChild(J),rt.parentNode.removeChild(rt),o&&o(),Et&&clearTimeout(Et)},J=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=null;if(!e&&t?l=vt(t,qi):e&&t&&((l=document.createElement("div")).style.display="inline-flex",l.style.flexDirection="column",l.style.visibility="hidden",l.style.textAlign=(null==t?void 0:t.alignment)||"center",l.style.lineHeight="26px",l.style.letterSpacing="0.01em",l.appendChild(vt(e,qi)),l.appendChild(vt(t,qi))),n&&n.length>0){var c=document.createElement("footer");c.className="shepherd-footer",c.style.zIndex=99999,c.style.margin="8px",c.style.padding="0";var d=function(){s&&s()},p=ot(n,{next:d,complete:d,cancel:d},r,a),u=p.buttons_array,h=p.buttons_css,f=document.createElement("style");f.innerHTML=it(h,i,o),c.appendChild(f),u.forEach((function(t){var e=t.classes,n=t.text,i=t.action,o=document.createElement("button");o.className="shepherd-button "+e,o.innerHTML=n,o.onclick=function(){return i()},c.appendChild(o)}));var v=document.createElement("div");v.style.display="inline-flex",v.style.flexDirection="column",v.style.visibility="hidden",v.appendChild(l),v.appendChild(c),l=v}return l.style.position="absolute",document.body.appendChild(l),l}(k,L,c,d,u,D,N,G),$=J.offsetWidth,K=J.offsetHeight,et=0,nt=0;k&&k.margin_config&&(et=Number(k.margin_config.left)||0,nt=Number(k.margin_config.right)||0);var rt=function(t,e,n,i,o,r){var a=Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),s=a,l=n-(a-t)/2,c=i-(a-e)/2;"circle"!=o&&(a=t,s=e,l=n,c=i);var d=document.createElement("div");return d.setAttribute("id",qi+"-ripple-div"),r&&(d.innerHTML=function(t,e,n){return"\n<style>\n.ripple-animator {\n position: relative;\n display: -webkit-box;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n flex-direction: row;\n -webkit-box-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n align-items: center;\n height: ".concat(n,"px !important;\n width: ").concat(e,"px !important;\n border-radius: ").concat("circle"===t?"100%":"0",";\n}\n.ripple-animator span {\n position: relative;\n font-size: 72px;\n top: 5px;left: -5px;\n}\n\n.ripple-animator:before,\n.ripple-animator:after {\n content: '';\n display: block;\n position: absolute;\n top: 0; \n right: 0; \n bottom: 0; \n left: 0;\n opacity:1;\n z-index:10;\n border: 0px solid white;\n border-radius: ").concat("circle"===t?"100%":"0%",";\n z-index: 99999;\n}\n\n.ripple-animator:before {\n animation: ripple 1s infinite ease-out;\n}\n\n@keyframes ripple{\n 0% { \n border: 0px solid white;\n transform: scale(0.8); \n }\n 100% { \n border: 20px solid white;\n transform: scale(1.5); \n opacity:0; \n }\n}\n</style>")}(o,a,s)),d.style.position="absolute",d.style.width="".concat(a,"px"),d.style.height="".concat(s,"px"),d.style.left="".concat(l,"px"),d.style.top="".concat(c,"px"),d.classList.add("ripple-animator"),d.style.borderRadius="".concat("circle"===o?"50%":"0"),d.style.visibility="hidden",document.body.appendChild(d),d}(W,X,V,R,m,v),at=V+W/2,st=R+X/2,lt=Math.sqrt(Math.pow(W,2)+Math.pow(X,2))/2,dt=lt+Math.max($,W)/2+10,ht=-1,ft=-1,mt=-1,yt=-1,bt=st-lt,_t=st+lt;switch(E){case"TOP":ft=(mt=at-$/2)<0?5:mt,ht="circle"===m?st-lt-K-25:R-K-25,yt=_t-Math.abs(_t-ht)/2;break;case"BOTTOM":case"RIGHT":case"LEFT":ft=(mt=at-$/2)<0?5:mt,yt=bt+((ht="circle"===m?st+lt+25:R+X+25)+K-bt)/2}if(-1!==ft&&-1!==ht&&-1!==yt){!Q&&ft+$>window.innerWidth&&(ft=window.innerWidth-$-et-nt-10),J.style.left="".concat(ft,"px"),J.style.top="".concat(ht,"px");var wt=((mt=Math.min(V,ft))+Math.max(V+W,ft+$))/2;(wt=Math.min(wt,document.scrollingElement.scrollWidth))<0&&(wt=0),(yt=Math.min(yt,document.scrollingElement.scrollHeight))<0&&(yt=0);var Ct=Vi({bg_color:s,opacity:w,innerRadius:lt,innerCenterX:at,innerCenterY:st,outerRadius:dt,outerCircleCenterX:wt,outerCircleCenterY:yt,targetElementLeft:V,targetElementTop:R,targetElementWidth:W,targetElementHeight:X,type:m});Ct.style.visibility="hidden",rt.style.visibility="hidden",J.style.visibility="hidden";var Et=null,kt=function(t){var e=!t,n=B.getBoundingClientRect();t&&t.clientX>=n.left&&t.clientX<=n.left+n.width&&t.clientY>=n.top&&t.clientY<=n.top+n.height&&(e=!0),(_||e)&&G()};return n&&!0===n.auto_dismiss&&(Et=setTimeout((function(){return kt()}),y+n.duration)),Ct.style.visibility="visible",rt.style.visibility="visible",J.style.visibility="visible",J.childElementCount>0&&(J.children[0].style.visibility="visible"),_&&Ct.addEventListener("click",kt),rt.addEventListener("click",kt),O&&("TOP"===E?window.scrollTo({top:yt-dt,behavior:"smooth"}):"BOTTOM"===E&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,yt+dt),behavior:"smooth"})),F.observe(document.body,{childList:!0,subtree:!0}),z.observe(B),i&&i(),kt}console.warn("Failed to identify the right place for text")}else console.warn("Can't show on an invisible element: ",S)}else console.warn("Element ",S," not in viewport. Can't show");else console.warn("Element not found with id or path: ",S)}var Ri=['<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9046C0 4.88216 4.88188 3.24249e-05 10.9049 3.24249e-05C16.9267 3.24249e-05 21.8085 4.88216 21.8085 10.9046C21.8085 16.9269 16.9267 21.809 10.9049 21.809C4.88188 21.809 0 16.9269 0 10.9046Z" fill="#E5510A"/>\n <path d="M7.6916 8.87557C7.6916 9.62346 7.33083 10.2299 6.88691 10.2299C6.44426 10.2299 6.0835 9.62346 6.0835 8.87557C6.0835 8.12768 6.44426 7.52116 6.88691 7.52116C7.33083 7.52116 7.6916 8.12768 7.6916 8.87557Z" fill="black"/>\n <path d="M15.7255 8.87557C15.7255 9.62346 15.366 10.2299 14.9221 10.2299C14.4782 10.2299 14.1187 9.62346 14.1187 8.87557C14.1187 8.12768 14.4782 7.52116 14.9221 7.52116C15.366 7.52116 15.7255 8.12768 15.7255 8.87557Z" fill="black"/>\n <path d="M9.15239 6.99092L8.42062 7.72205L5.98096 5.28226L6.71273 4.55126L9.15239 6.99092Z" fill="black"/>\n <path d="M13.3882 7.72205L12.6577 6.99092L15.0974 4.55126L15.8279 5.28226L13.3882 7.72205Z" fill="black"/>\n <path d="M7 16.4995C8 12.4995 13 10.4995 15 16.4998" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.808594 10.9046C0.808594 4.88216 5.69048 3.24249e-05 11.7135 3.24249e-05C17.7353 3.24249e-05 22.6171 4.88216 22.6171 10.9046C22.6171 16.9269 17.7353 21.809 11.7135 21.809C5.69048 21.809 0.808594 16.9269 0.808594 10.9046Z" fill="#EA731D"/>\n <path d="M8.5002 8.87557C8.5002 9.62346 8.13942 10.2299 7.6955 10.2299C7.25286 10.2299 6.89209 9.62346 6.89209 8.87557C6.89209 8.12768 7.25286 7.52116 7.6955 7.52116C8.13942 7.52116 8.5002 8.12768 8.5002 8.87557Z" fill="black"/>\n <path d="M16.5341 8.87557C16.5341 9.62346 16.1746 10.2299 15.7307 10.2299C15.2867 10.2299 14.9272 9.62346 14.9272 8.87557C14.9272 8.12768 15.2867 7.52116 15.7307 7.52116C16.1746 7.52116 16.5341 8.12768 16.5341 8.87557Z" fill="black"/>\n <path d="M7.80859 16.4998C8.80859 12.4998 13.8086 10.4997 15.8086 16.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9046C0.234375 4.88216 5.11626 3.24249e-05 11.1393 3.24249e-05C17.161 3.24249e-05 22.0429 4.88216 22.0429 10.9046C22.0429 16.9269 17.161 21.809 11.1393 21.809C5.11626 21.809 0.234375 16.9269 0.234375 10.9046Z" fill="#F8C94F"/>\n <path d="M7.92598 8.87557C7.92598 9.62346 7.5652 10.2299 7.12128 10.2299C6.67864 10.2299 6.31787 9.62346 6.31787 8.87557C6.31787 8.12768 6.67864 7.52116 7.12128 7.52116C7.5652 7.52116 7.92598 8.12768 7.92598 8.87557Z" fill="black"/>\n <path d="M15.9599 8.87557C15.9599 9.62346 15.6004 10.2299 15.1564 10.2299C14.7125 10.2299 14.353 9.62346 14.353 8.87557C14.353 8.12768 14.7125 7.52116 15.1564 7.52116C15.6004 7.52116 15.9599 8.12768 15.9599 8.87557Z" fill="black"/>\n <path d="M7.73438 15.5002C9.73438 15.4999 11.7344 15.4997 14.7344 15.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.46875 10.9046C0.46875 4.88216 5.35063 3.24249e-05 11.3737 3.24249e-05C17.3954 3.24249e-05 22.2773 4.88216 22.2773 10.9046C22.2773 16.9269 17.3954 21.809 11.3737 21.809C5.35063 21.809 0.46875 16.9269 0.46875 10.9046Z" fill="#A3CF6A"/>\n <path d="M8.16035 8.87557C8.16035 9.62346 7.79958 10.2299 7.35566 10.2299C6.91301 10.2299 6.55225 9.62346 6.55225 8.87557C6.55225 8.12768 6.91301 7.52116 7.35566 7.52116C7.79958 7.52116 8.16035 8.12768 8.16035 8.87557Z" fill="black"/>\n <path d="M16.1942 8.87557C16.1942 9.62346 15.8347 10.2299 15.3908 10.2299C14.9469 10.2299 14.5874 9.62346 14.5874 8.87557C14.5874 8.12768 14.9469 7.52116 15.3908 7.52116C15.8347 7.52116 16.1942 8.12768 16.1942 8.87557Z" fill="black"/>\n <path d="M14.9688 13.375C14.4688 17.5002 7.96875 17.5003 7.46875 13.3751L14.9688 13.375Z" fill="black" stroke="black" stroke-linecap="round"/>\n </svg>\n ','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#7BB65C"/>\n <path d="M14.7344 13.3748C14.2344 17.5 7.73438 17.5 7.23438 13.3749L14.7344 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n <path d="M9.63644 8.10736L9.63732 8.09652C9.63732 7.41374 9.14286 6.78855 8.40031 6.78855C7.81043 6.78855 7.46866 7.21257 7.35155 7.60952C7.23531 7.21257 6.89266 6.78855 6.30278 6.78855C5.56023 6.78855 5.06665 7.41374 5.06665 8.09652V8.10736C5.06318 8.25596 5.06665 9.76759 7.35068 10.9997V11L7.35155 10.9998V11L7.35241 10.9998V11V10.9997C9.63731 9.76759 9.64078 8.25596 9.63644 8.10736Z" fill="#646A6E"/>\n <path d="M17.3357 8.10736V8.09652C17.3357 7.41374 16.8421 6.78855 16.0995 6.78855C15.5097 6.78855 15.1679 7.21257 15.0508 7.60952C14.9345 7.21257 14.5919 6.78855 14.002 6.78855C13.2595 6.78855 12.7659 7.41374 12.7659 8.09652V8.10736C12.7624 8.25596 12.7659 9.76759 15.0499 10.9997V11L15.0508 10.9998V11L15.0516 10.9998V11V10.9997C17.3365 9.76759 17.34 8.25596 17.3357 8.10736Z" fill="#646A6E"/>\n </svg>'],ji=['<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9046C0 4.88216 4.88188 3.24249e-05 10.9049 3.24249e-05C16.9267 3.24249e-05 21.8085 4.88216 21.8085 10.9046C21.8085 16.9269 16.9267 21.809 10.9049 21.809C4.88188 21.809 0 16.9269 0 10.9046Z" fill="#E5510A"/>\n <path d="M7.6916 8.87557C7.6916 9.62346 7.33083 10.2299 6.88691 10.2299C6.44426 10.2299 6.0835 9.62346 6.0835 8.87557C6.0835 8.12768 6.44426 7.52116 6.88691 7.52116C7.33083 7.52116 7.6916 8.12768 7.6916 8.87557Z" fill="black"/>\n <path d="M15.7255 8.87557C15.7255 9.62346 15.366 10.2299 14.9221 10.2299C14.4782 10.2299 14.1187 9.62346 14.1187 8.87557C14.1187 8.12768 14.4782 7.52116 14.9221 7.52116C15.366 7.52116 15.7255 8.12768 15.7255 8.87557Z" fill="black"/>\n <path d="M9.15239 6.99092L8.42062 7.72205L5.98096 5.28226L6.71273 4.55126L9.15239 6.99092Z" fill="black"/>\n <path d="M13.3882 7.72205L12.6577 6.99092L15.0974 4.55126L15.8279 5.28226L13.3882 7.72205Z" fill="black"/>\n <path d="M7 16.4995C8 12.4995 13 10.4995 15 16.4998" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.808594 10.9046C0.808594 4.88216 5.69048 3.24249e-05 11.7135 3.24249e-05C17.7353 3.24249e-05 22.6171 4.88216 22.6171 10.9046C22.6171 16.9269 17.7353 21.809 11.7135 21.809C5.69048 21.809 0.808594 16.9269 0.808594 10.9046Z" fill="#EA731D"/>\n <path d="M8.5002 8.87557C8.5002 9.62346 8.13942 10.2299 7.6955 10.2299C7.25286 10.2299 6.89209 9.62346 6.89209 8.87557C6.89209 8.12768 7.25286 7.52116 7.6955 7.52116C8.13942 7.52116 8.5002 8.12768 8.5002 8.87557Z" fill="black"/>\n <path d="M16.5341 8.87557C16.5341 9.62346 16.1746 10.2299 15.7307 10.2299C15.2867 10.2299 14.9272 9.62346 14.9272 8.87557C14.9272 8.12768 15.2867 7.52116 15.7307 7.52116C16.1746 7.52116 16.5341 8.12768 16.5341 8.87557Z" fill="black"/>\n <path d="M7.80859 16.4998C8.80859 12.4998 13.8086 10.4997 15.8086 16.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.617188 10.9046C0.617188 4.88216 5.49907 3.24249e-05 11.5221 3.24249e-05C17.5439 3.24249e-05 22.4257 4.88216 22.4257 10.9046C22.4257 16.9269 17.5439 21.809 11.5221 21.809C5.49907 21.809 0.617188 16.9269 0.617188 10.9046Z" fill="#EA8F4D"/>\n <path d="M8.30879 8.87557C8.30879 9.62346 7.94802 10.2299 7.50409 10.2299C7.06145 10.2299 6.70068 9.62346 6.70068 8.87557C6.70068 8.12768 7.06145 7.52116 7.50409 7.52116C7.94802 7.52116 8.30879 8.12768 8.30879 8.87557Z" fill="black"/>\n <path d="M16.3427 8.87557C16.3427 9.62346 15.9832 10.2299 15.5393 10.2299C15.0953 10.2299 14.7358 9.62346 14.7358 8.87557C14.7358 8.12768 15.0953 7.52116 15.5393 7.52116C15.9832 7.52116 16.3427 8.12768 16.3427 8.87557Z" fill="black"/>\n <path d="M7.61719 15.4999C8.95052 13.0405 13.1172 11.9999 15.6172 15.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.425781 10.9046C0.425781 4.88216 5.30767 3.24249e-05 11.3307 3.24249e-05C17.3524 3.24249e-05 22.2343 4.88216 22.2343 10.9046C22.2343 16.9269 17.3524 21.809 11.3307 21.809C5.30767 21.809 0.425781 16.9269 0.425781 10.9046Z" fill="#F1B052"/>\n <path d="M8.11738 8.87557C8.11738 9.62346 7.75661 10.2299 7.31269 10.2299C6.87004 10.2299 6.50928 9.62346 6.50928 8.87557C6.50928 8.12768 6.87004 7.52116 7.31269 7.52116C7.75661 7.52116 8.11738 8.12768 8.11738 8.87557Z" fill="black"/>\n <path d="M16.1513 8.87557C16.1513 9.62346 15.7918 10.2299 15.3479 10.2299C14.9039 10.2299 14.5444 9.62346 14.5444 8.87557C14.5444 8.12768 14.9039 7.52116 15.3479 7.52116C15.7918 7.52116 16.1513 8.12768 16.1513 8.87557Z" fill="black"/>\n <path d="M8.42578 15.5002C9.92578 14.0001 12.4258 14.0001 13.9258 15.5001" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9046C0.234375 4.88216 5.11626 3.24249e-05 11.1393 3.24249e-05C17.161 3.24249e-05 22.0429 4.88216 22.0429 10.9046C22.0429 16.9269 17.161 21.809 11.1393 21.809C5.11626 21.809 0.234375 16.9269 0.234375 10.9046Z" fill="#F8C94F"/>\n <path d="M7.92598 8.87557C7.92598 9.62346 7.5652 10.2299 7.12128 10.2299C6.67864 10.2299 6.31787 9.62346 6.31787 8.87557C6.31787 8.12768 6.67864 7.52116 7.12128 7.52116C7.5652 7.52116 7.92598 8.12768 7.92598 8.87557Z" fill="black"/>\n <path d="M15.9599 8.87557C15.9599 9.62346 15.6004 10.2299 15.1564 10.2299C14.7125 10.2299 14.353 9.62346 14.353 8.87557C14.353 8.12768 14.7125 7.52116 15.1564 7.52116C15.6004 7.52116 15.9599 8.12768 15.9599 8.87557Z" fill="black"/>\n <path d="M7.73438 15.5002C9.73438 15.4999 11.7344 15.4997 14.7344 15.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9046C0 4.88216 4.88188 3.20353e-05 10.9049 3.20353e-05C16.9267 3.20353e-05 21.8085 4.88216 21.8085 10.9046C21.8085 16.9269 16.9267 21.809 10.9049 21.809C4.88188 21.809 0 16.9269 0 10.9046Z" fill="#F8C94F"/>\n <path d="M7.6916 8.87557C7.6916 9.62346 7.33083 10.2299 6.88691 10.2299C6.44426 10.2299 6.0835 9.62346 6.0835 8.87557C6.0835 8.12768 6.44426 7.52116 6.88691 7.52116C7.33083 7.52116 7.6916 8.12768 7.6916 8.87557Z" fill="black"/>\n <path d="M15.7255 8.87557C15.7255 9.62346 15.366 10.2299 14.9221 10.2299C14.4782 10.2299 14.1187 9.62346 14.1187 8.87557C14.1187 8.12768 14.4782 7.52116 14.9221 7.52116C15.366 7.52116 15.7255 8.12768 15.7255 8.87557Z" fill="black"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.0429688 10.9046C0.0429688 4.88216 4.92485 3.24249e-05 10.9479 3.24249e-05C16.9696 3.24249e-05 21.8515 4.88216 21.8515 10.9046C21.8515 16.9269 16.9696 21.809 10.9479 21.809C4.92485 21.809 0.0429688 16.9269 0.0429688 10.9046Z" fill="#F6DE4F"/>\n <path d="M7.73457 8.87557C7.73457 9.62346 7.3738 10.2299 6.92987 10.2299C6.48723 10.2299 6.12646 9.62346 6.12646 8.87557C6.12646 8.12768 6.48723 7.52116 6.92987 7.52116C7.3738 7.52116 7.73457 8.12768 7.73457 8.87557Z" fill="black"/>\n <path d="M15.7685 8.87557C15.7685 9.62346 15.409 10.2299 14.965 10.2299C14.5211 10.2299 14.1616 9.62346 14.1616 8.87557C14.1616 8.12768 14.5211 7.52116 14.965 7.52116C15.409 7.52116 15.7685 8.12768 15.7685 8.87557Z" fill="black"/>\n <path d="M13.543 14.3751C12.043 15.8751 9.54297 15.8751 8.04297 14.3751" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.851562 10.9046C0.851562 4.88216 5.73345 3.24249e-05 11.7565 3.24249e-05C17.7782 3.24249e-05 22.6601 4.88216 22.6601 10.9046C22.6601 16.9269 17.7782 21.809 11.7565 21.809C5.73345 21.809 0.851562 16.9269 0.851562 10.9046Z" fill="#D7D55A"/>\n <path d="M8.54316 8.87557C8.54316 9.62346 8.18239 10.2299 7.73847 10.2299C7.29582 10.2299 6.93506 9.62346 6.93506 8.87557C6.93506 8.12768 7.29582 7.52116 7.73847 7.52116C8.18239 7.52116 8.54316 8.12768 8.54316 8.87557Z" fill="black"/>\n <path d="M16.577 8.87557C16.577 9.62346 16.2176 10.2299 15.7736 10.2299C15.3297 10.2299 14.9702 9.62346 14.9702 8.87557C14.9702 8.12768 15.3297 7.52116 15.7736 7.52116C16.2176 7.52116 16.577 8.12768 16.577 8.87557Z" fill="black"/>\n <path d="M15.3516 14.3749C13.8516 17.0001 9.85156 17.0002 7.85156 14.375" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.660156 10.9046C0.660156 4.88216 5.54204 3.24249e-05 11.5651 3.24249e-05C17.5868 3.24249e-05 22.4687 4.88216 22.4687 10.9046C22.4687 16.9269 17.5868 21.809 11.5651 21.809C5.54204 21.809 0.660156 16.9269 0.660156 10.9046Z" fill="#B7CF6A"/>\n <path d="M8.35176 8.87557C8.35176 9.62346 7.99099 10.2299 7.54706 10.2299C7.10442 10.2299 6.74365 9.62346 6.74365 8.87557C6.74365 8.12768 7.10442 7.52116 7.54706 7.52116C7.99099 7.52116 8.35176 8.12768 8.35176 8.87557Z" fill="black"/>\n <path d="M16.3856 8.87557C16.3856 9.62346 16.0262 10.2299 15.5822 10.2299C15.1383 10.2299 14.7788 9.62346 14.7788 8.87557C14.7788 8.12768 15.1383 7.52116 15.5822 7.52116C16.0262 7.52116 16.3856 8.12768 16.3856 8.87557Z" fill="black"/>\n <path d="M15.1602 13.375C14.6602 17.5002 8.16016 17.5003 7.66016 13.3751" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.46875 10.9046C0.46875 4.88216 5.35063 3.24249e-05 11.3737 3.24249e-05C17.3954 3.24249e-05 22.2773 4.88216 22.2773 10.9046C22.2773 16.9269 17.3954 21.809 11.3737 21.809C5.35063 21.809 0.46875 16.9269 0.46875 10.9046Z" fill="#A3CF6A"/>\n <path d="M8.16035 8.87557C8.16035 9.62346 7.79958 10.2299 7.35566 10.2299C6.91301 10.2299 6.55225 9.62346 6.55225 8.87557C6.55225 8.12768 6.91301 7.52116 7.35566 7.52116C7.79958 7.52116 8.16035 8.12768 8.16035 8.87557Z" fill="black"/>\n <path d="M16.1942 8.87557C16.1942 9.62346 15.8347 10.2299 15.3908 10.2299C14.9469 10.2299 14.5874 9.62346 14.5874 8.87557C14.5874 8.12768 14.9469 7.52116 15.3908 7.52116C15.8347 7.52116 16.1942 8.12768 16.1942 8.87557Z" fill="black"/>\n <path d="M14.9688 13.375C14.4688 17.5002 7.96875 17.5003 7.46875 13.3751L14.9688 13.375Z" fill="black" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9042C0 4.8818 4.88188 -0.000333786 10.9049 -0.000333786C16.9267 -0.000333786 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#7BB65C"/>\n <path d="M14.5 13.3748C14 17.5 7.5 17.5 7 13.3749L14.5 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n <path d="M9.40207 8.10736L9.40294 8.09652C9.40294 7.41374 8.90848 6.78855 8.16593 6.78855C7.57606 6.78855 7.23428 7.21257 7.11718 7.60952C7.00094 7.21257 6.65828 6.78855 6.06841 6.78855C5.32586 6.78855 4.83227 7.41374 4.83227 8.09652V8.10736C4.8288 8.25596 4.83227 9.76759 7.1163 10.9997V11L7.11718 10.9998V11L7.11804 10.9998V11V10.9997C9.40294 9.76759 9.40641 8.25596 9.40207 8.10736Z" fill="#646A6E"/>\n <path d="M17.1013 8.10736V8.09652C17.1013 7.41374 16.6077 6.78855 15.8652 6.78855C15.2753 6.78855 14.9335 7.21257 14.8164 7.60952C14.7001 7.21257 14.3575 6.78855 13.7676 6.78855C13.0251 6.78855 12.5315 7.41374 12.5315 8.09652V8.10736C12.528 8.25596 12.5315 9.76759 14.8155 10.9997V11L14.8164 10.9998V11L14.8173 10.9998V11V10.9997C17.1022 9.76759 17.1056 8.25596 17.1013 8.10736Z" fill="#646A6E"/>\n </svg>'],Wi=['<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9042C0 4.8818 4.88188 -0.000334176 10.9049 -0.000334176C16.9267 -0.000334176 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.69209 8.87521C7.69209 9.6231 7.33132 10.2295 6.88739 10.2295C6.44475 10.2295 6.08398 9.6231 6.08398 8.87521C6.08398 8.12732 6.44475 7.52079 6.88739 7.52079C7.33132 7.52079 7.69209 8.12732 7.69209 8.87521Z" fill="#646A6F"/>\n <path d="M15.726 8.87521C15.726 9.6231 15.3665 10.2295 14.9226 10.2295C14.4786 10.2295 14.1191 9.6231 14.1191 8.87521C14.1191 8.12732 14.4786 7.52079 14.9226 7.52079C15.3665 7.52079 15.726 8.12732 15.726 8.87521Z" fill="#646A6F"/>\n <path d="M9.1519 6.99055L8.42013 7.72168L5.98047 5.28189L6.71224 4.55089L9.1519 6.99055Z" fill="#646A6F"/>\n <path d="M13.3887 7.72168L12.6582 6.99055L15.0979 4.55089L15.8284 5.28189L13.3887 7.72168Z" fill="#646A6F"/>\n <path d="M7 16.4997C8 12.4996 13 10.4996 15 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.808594 10.9042C0.808594 4.8818 5.69048 -0.000334176 11.7135 -0.000334176C17.7353 -0.000334176 22.6171 4.8818 22.6171 10.9042C22.6171 16.9266 17.7353 21.8086 11.7135 21.8086C5.69048 21.8086 0.808594 16.9266 0.808594 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.50068 8.87521C8.50068 9.6231 8.13991 10.2295 7.69599 10.2295C7.25334 10.2295 6.89258 9.6231 6.89258 8.87521C6.89258 8.12732 7.25334 7.52079 7.69599 7.52079C8.13991 7.52079 8.50068 8.12732 8.50068 8.87521Z" fill="#646A6F"/>\n <path d="M16.5346 8.87521C16.5346 9.6231 16.1751 10.2295 15.7312 10.2295C15.2872 10.2295 14.9277 9.6231 14.9277 8.87521C14.9277 8.12732 15.2872 7.52079 15.7312 7.52079C16.1751 7.52079 16.5346 8.12732 16.5346 8.87521Z" fill="#646A6F"/>\n <path d="M7.80859 16.4997C8.80859 12.4996 13.8086 10.4996 15.8086 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.617188 10.9042C0.617188 4.8818 5.49907 -0.000334176 11.5221 -0.000334176C17.5439 -0.000334176 22.4257 4.8818 22.4257 10.9042C22.4257 16.9266 17.5439 21.8086 11.5221 21.8086C5.49907 21.8086 0.617188 16.9266 0.617188 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.30928 8.87521C8.30928 9.6231 7.9485 10.2295 7.50458 10.2295C7.06194 10.2295 6.70117 9.6231 6.70117 8.87521C6.70117 8.12732 7.06194 7.52079 7.50458 7.52079C7.9485 7.52079 8.30928 8.12732 8.30928 8.87521Z" fill="#646A6F"/>\n <path d="M16.3432 8.87521C16.3432 9.6231 15.9837 10.2295 15.5398 10.2295C15.0958 10.2295 14.7363 9.6231 14.7363 8.87521C14.7363 8.12732 15.0958 7.52079 15.5398 7.52079C15.9837 7.52079 16.3432 8.12732 16.3432 8.87521Z" fill="#646A6F"/>\n <path d="M7.61719 15.4995C8.95052 13.0401 13.1172 11.9996 15.6172 15.4996" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.425781 10.9042C0.425781 4.8818 5.30767 -0.000333786 11.3307 -0.000333786C17.3524 -0.000333786 22.2343 4.8818 22.2343 10.9042C22.2343 16.9266 17.3524 21.8086 11.3307 21.8086C5.30767 21.8086 0.425781 16.9266 0.425781 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.11787 8.87521C8.11787 9.6231 7.7571 10.2295 7.31318 10.2295C6.87053 10.2295 6.50977 9.6231 6.50977 8.87521C6.50977 8.12732 6.87053 7.52079 7.31318 7.52079C7.7571 7.52079 8.11787 8.12732 8.11787 8.87521Z" fill="#646A6F"/>\n <path d="M16.1518 8.87521C16.1518 9.6231 15.7923 10.2295 15.3483 10.2295C14.9044 10.2295 14.5449 9.6231 14.5449 8.87521C14.5449 8.12732 14.9044 7.52079 15.3483 7.52079C15.7923 7.52079 16.1518 8.12732 16.1518 8.87521Z" fill="#646A6F"/>\n <path d="M8.42578 15.5001C9.92578 14 12.4258 14 13.9258 15.5" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.92647 8.87521C7.92647 9.6231 7.56569 10.2295 7.12177 10.2295C6.67912 10.2295 6.31836 9.6231 6.31836 8.87521C6.31836 8.12732 6.67912 7.52079 7.12177 7.52079C7.56569 7.52079 7.92647 8.12732 7.92647 8.87521Z" fill="#646A6F"/>\n <path d="M15.9603 8.87521C15.9603 9.6231 15.6009 10.2295 15.1569 10.2295C14.713 10.2295 14.3535 9.6231 14.3535 8.87521C14.3535 8.12732 14.713 7.52079 15.1569 7.52079C15.6009 7.52079 15.9603 8.12732 15.9603 8.87521Z" fill="#646A6F"/>\n <path d="M7.73438 15.5003C9.73438 15.5 11.7344 15.4998 14.7344 15.5001" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.92647 8.87521C7.92647 9.6231 7.56569 10.2295 7.12177 10.2295C6.67912 10.2295 6.31836 9.6231 6.31836 8.87521C6.31836 8.12732 6.67912 7.52079 7.12177 7.52079C7.56569 7.52079 7.92647 8.12732 7.92647 8.87521Z" fill="#646A6F"/>\n <path d="M15.9603 8.87521C15.9603 9.6231 15.6009 10.2295 15.1569 10.2295C14.713 10.2295 14.3535 9.6231 14.3535 8.87521C14.3535 8.12732 14.713 7.52079 15.1569 7.52079C15.6009 7.52079 15.9603 8.12732 15.9603 8.87521Z" fill="#646A6F"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.0429688 10.9042C0.0429688 4.8818 4.92485 -0.000333786 10.9479 -0.000333786C16.9696 -0.000333786 21.8515 4.8818 21.8515 10.9042C21.8515 16.9266 16.9696 21.8086 10.9479 21.8086C4.92485 21.8086 0.0429688 16.9266 0.0429688 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.73506 8.87521C7.73506 9.6231 7.37429 10.2295 6.93036 10.2295C6.48772 10.2295 6.12695 9.6231 6.12695 8.87521C6.12695 8.12732 6.48772 7.52079 6.93036 7.52079C7.37429 7.52079 7.73506 8.12732 7.73506 8.87521Z" fill="#646A6F"/>\n <path d="M15.7689 8.87521C15.7689 9.6231 15.4095 10.2295 14.9655 10.2295C14.5216 10.2295 14.1621 9.6231 14.1621 8.87521C14.1621 8.12732 14.5216 7.52079 14.9655 7.52079C15.4095 7.52079 15.7689 8.12732 15.7689 8.87521Z" fill="#646A6F"/>\n <path d="M13.543 14.3749C12.043 15.875 9.54297 15.875 8.04297 14.375" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.851562 10.9042C0.851562 4.8818 5.73345 -0.000333786 11.7565 -0.000333786C17.7782 -0.000333786 22.6601 4.8818 22.6601 10.9042C22.6601 16.9266 17.7782 21.8086 11.7565 21.8086C5.73345 21.8086 0.851562 16.9266 0.851562 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.54365 8.87521C8.54365 9.6231 8.18288 10.2295 7.73896 10.2295C7.29631 10.2295 6.93555 9.6231 6.93555 8.87521C6.93555 8.12732 7.29631 7.52079 7.73896 7.52079C8.18288 7.52079 8.54365 8.12732 8.54365 8.87521Z" fill="#646A6F"/>\n <path d="M16.5775 8.87521C16.5775 9.6231 16.218 10.2295 15.7741 10.2295C15.3302 10.2295 14.9707 9.6231 14.9707 8.87521C14.9707 8.12732 15.3302 7.52079 15.7741 7.52079C16.218 7.52079 16.5775 8.12732 16.5775 8.87521Z" fill="#646A6F"/>\n <path d="M15.3516 14.3748C13.8516 17 9.85156 17 7.85156 14.3749" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.660156 10.9042C0.660156 4.8818 5.54204 -0.000333786 11.5651 -0.000333786C17.5868 -0.000333786 22.4687 4.8818 22.4687 10.9042C22.4687 16.9266 17.5868 21.8086 11.5651 21.8086C5.54204 21.8086 0.660156 16.9266 0.660156 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.35225 8.87521C8.35225 9.6231 7.99147 10.2295 7.54755 10.2295C7.10491 10.2295 6.74414 9.6231 6.74414 8.87521C6.74414 8.12732 7.10491 7.52079 7.54755 7.52079C7.99147 7.52079 8.35225 8.12732 8.35225 8.87521Z" fill="#646A6F"/>\n <path d="M16.3861 8.87521C16.3861 9.6231 16.0266 10.2295 15.5827 10.2295C15.1388 10.2295 14.7793 9.6231 14.7793 8.87521C14.7793 8.12732 15.1388 7.52079 15.5827 7.52079C16.0266 7.52079 16.3861 8.12732 16.3861 8.87521Z" fill="#646A6F"/>\n <path d="M15.1602 13.3748C14.6602 17.5 8.16016 17.5 7.66016 13.3749" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.46875 10.9042C0.46875 4.8818 5.35063 -0.000333786 11.3737 -0.000333786C17.3954 -0.000333786 22.2773 4.8818 22.2773 10.9042C22.2773 16.9266 17.3954 21.8086 11.3737 21.8086C5.35063 21.8086 0.46875 16.9266 0.46875 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.16084 8.87521C8.16084 9.6231 7.80007 10.2295 7.35614 10.2295C6.9135 10.2295 6.55273 9.6231 6.55273 8.87521C6.55273 8.12732 6.9135 7.52079 7.35614 7.52079C7.80007 7.52079 8.16084 8.12732 8.16084 8.87521Z" fill="#646A6F"/>\n <path d="M16.1947 8.87521C16.1947 9.6231 15.8352 10.2295 15.3913 10.2295C14.9474 10.2295 14.5879 9.6231 14.5879 8.87521C14.5879 8.12732 14.9474 7.52079 15.3913 7.52079C15.8352 7.52079 16.1947 8.12732 16.1947 8.87521Z" fill="#646A6F"/>\n <path d="M14.9688 13.3748C14.4688 17.5 7.96875 17.5 7.46875 13.3749L14.9688 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9042C0 4.8818 4.88188 -0.000333786 10.9049 -0.000333786C16.9267 -0.000333786 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n <path d="M14.5 13.3748C14 17.5 7.5 17.5 7 13.3749L14.5 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n <path d="M9.40207 8.10736L9.40294 8.09652C9.40294 7.41374 8.90848 6.78855 8.16593 6.78855C7.57606 6.78855 7.23428 7.21257 7.11718 7.60952C7.00094 7.21257 6.65828 6.78855 6.06841 6.78855C5.32586 6.78855 4.83227 7.41374 4.83227 8.09652V8.10736C4.8288 8.25596 4.83227 9.76759 7.1163 10.9997V11L7.11718 10.9998V11L7.11804 10.9998V11V10.9997C9.40294 9.76759 9.40641 8.25596 9.40207 8.10736Z" fill="#646A6E"/>\n <path d="M17.1013 8.10736V8.09652C17.1013 7.41374 16.6077 6.78855 15.8652 6.78855C15.2753 6.78855 14.9335 7.21257 14.8164 7.60952C14.7001 7.21257 14.3575 6.78855 13.7676 6.78855C13.0251 6.78855 12.5315 7.41374 12.5315 8.09652V8.10736C12.528 8.25596 12.5315 9.76759 14.8155 10.9997V11L14.8164 10.9998V11L14.8173 10.9998V11V10.9997C17.1022 9.76759 17.1056 8.25596 17.1013 8.10736Z" fill="#646A6E"/>\n </svg>'],Ui=['<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0 10.9042C0 4.8818 4.88188 -0.000334176 10.9049 -0.000334176C16.9267 -0.000334176 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n<path d="M7.69209 8.87521C7.69209 9.6231 7.33132 10.2295 6.88739 10.2295C6.44475 10.2295 6.08398 9.6231 6.08398 8.87521C6.08398 8.12732 6.44475 7.52079 6.88739 7.52079C7.33132 7.52079 7.69209 8.12732 7.69209 8.87521Z" fill="#646A6F"/>\n<path d="M15.726 8.87521C15.726 9.6231 15.3665 10.2295 14.9226 10.2295C14.4786 10.2295 14.1191 9.6231 14.1191 8.87521C14.1191 8.12732 14.4786 7.52079 14.9226 7.52079C15.3665 7.52079 15.726 8.12732 15.726 8.87521Z" fill="#646A6F"/>\n<path d="M9.1519 6.99055L8.42013 7.72168L5.98047 5.28189L6.71224 4.55089L9.1519 6.99055" fill="#646A6F"/>\n<path d="M13.3887 7.72168L12.6582 6.99055L15.0979 4.55089L15.8284 5.28189L13.3887 7.72168" fill="#646A6F"/>\n<path d="M7 16.4997C8 12.4996 13 10.4996 15 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.808594 10.9042C0.808594 4.8818 5.69048 -0.000333786 11.7135 -0.000333786C17.7353 -0.000333786 22.6171 4.8818 22.6171 10.9042C22.6171 16.9266 17.7353 21.8086 11.7135 21.8086C5.69048 21.8086 0.808594 16.9266 0.808594 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.50068 8.87521C8.50068 9.6231 8.13991 10.2295 7.69599 10.2295C7.25334 10.2295 6.89258 9.6231 6.89258 8.87521C6.89258 8.12732 7.25334 7.52079 7.69599 7.52079C8.13991 7.52079 8.50068 8.12732 8.50068 8.87521Z" fill="#646A6F"/>\n<path d="M16.5346 8.87521C16.5346 9.6231 16.1751 10.2295 15.7312 10.2295C15.2872 10.2295 14.9277 9.6231 14.9277 8.87521C14.9277 8.12732 15.2872 7.52079 15.7312 7.52079C16.1751 7.52079 16.5346 8.12732 16.5346 8.87521Z" fill="#646A6F"/>\n<path d="M7.80859 15.4995C9.14193 13.0401 13.3086 11.9996 15.8086 15.4996" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.617188 10.9042C0.617188 4.8818 5.49907 -0.000333786 11.5221 -0.000333786C17.5439 -0.000333786 22.4257 4.8818 22.4257 10.9042C22.4257 16.9266 17.5439 21.8086 11.5221 21.8086C5.49907 21.8086 0.617188 16.9266 0.617188 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.30928 8.87521C8.30928 9.6231 7.9485 10.2295 7.50458 10.2295C7.06194 10.2295 6.70117 9.6231 6.70117 8.87521C6.70117 8.12732 7.06194 7.52079 7.50458 7.52079C7.9485 7.52079 8.30928 8.12732 8.30928 8.87521Z" fill="#646A6F"/>\n<path d="M16.3432 8.87521C16.3432 9.6231 15.9837 10.2295 15.5398 10.2295C15.0958 10.2295 14.7363 9.6231 14.7363 8.87521C14.7363 8.12732 15.0958 7.52079 15.5398 7.52079C15.9837 7.52079 16.3432 8.12732 16.3432 8.87521Z" fill="#646A6F"/>\n<path d="M8.11719 15.5003C10.1172 15.5 12.1172 15.4998 15.1172 15.5001" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.425781 10.9042C0.425781 4.8818 5.30767 -0.000333786 11.3307 -0.000333786C17.3524 -0.000333786 22.2343 4.8818 22.2343 10.9042C22.2343 16.9266 17.3524 21.8086 11.3307 21.8086C5.30767 21.8086 0.425781 16.9266 0.425781 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.11787 8.87521C8.11787 9.6231 7.7571 10.2295 7.31318 10.2295C6.87053 10.2295 6.50977 9.6231 6.50977 8.87521C6.50977 8.12732 6.87053 7.52079 7.31318 7.52079C7.7571 7.52079 8.11787 8.12732 8.11787 8.87521Z" fill="#646A6F"/>\n<path d="M16.1518 8.87521C16.1518 9.6231 15.7923 10.2295 15.3483 10.2295C14.9044 10.2295 14.5449 9.6231 14.5449 8.87521C14.5449 8.12732 14.9044 7.52079 15.3483 7.52079C15.7923 7.52079 16.1518 8.12732 16.1518 8.87521Z" fill="#646A6F"/>\n<path d="M14.9258 13.3748C14.4258 17.5 7.92578 17.5 7.42578 13.3749L14.9258 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n<path d="M14.7344 13.3748C14.2344 17.5 7.73438 17.5 7.23438 13.3749L14.7344 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n<path d="M9.63644 8.10736L9.63732 8.09652C9.63732 7.41374 9.14286 6.78855 8.40031 6.78855C7.81043 6.78855 7.46866 7.21257 7.35155 7.60952C7.23531 7.21257 6.89266 6.78855 6.30278 6.78855C5.56023 6.78855 5.06665 7.41374 5.06665 8.09652V8.10736C5.06318 8.25596 5.06665 9.76759 7.35068 10.9997V11L7.35155 10.9998V11L7.35241 10.9998V11V10.9997C9.63731 9.76759 9.64078 8.25596 9.63644 8.10736Z" fill="#646A6E"/>\n<path d="M17.3357 8.10736V8.09652C17.3357 7.41374 16.8421 6.78855 16.0995 6.78855C15.5097 6.78855 15.1679 7.21257 15.0508 7.60952C14.9345 7.21257 14.5919 6.78855 14.002 6.78855C13.2595 6.78855 12.7659 7.41374 12.7659 8.09652V8.10736C12.7624 8.25596 12.7659 9.76759 15.0499 10.9997V11L15.0508 10.9998V11L15.0516 10.9998V11V10.9997C17.3365 9.76759 17.34 8.25596 17.3357 8.10736Z" fill="#646A6E"/>\n</svg>'];var Yi=function(t,e,n,i,o){var r=i.dim_background,a=i.dim_bg_color,s=i.dim_bg_opacity,l=i.position,c=o.question_background_color,d=document.createElement("div");d.setAttribute("id","apx-oly");var p=document.createElement("style"),u="center",h="center";switch(l){case"bottom-left":u="flex-start",h="flex-end";break;case"bottom-right":u="flex-end",h="flex-end";break;case"top-left":u="flex-start",h="flex-start";break;case"top-right":u="flex-end",h="flex-start"}var f="none";if(r){var v=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,i){return e+e+n+n+i+i}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}(a);f="rgb(".concat(v.r,", ").concat(v.g,", ").concat(v.b,", ").concat(s,")")}p.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(f,";\n display:flex;justify-content:").concat(u,";align-items:").concat(h,";border-radius:3px;z-index:99999999\n}\n#apx-oly > * {font-family: inherit;box-sizing:unset}\n.apx-dlg-c {\n width:").concat(t,"px;max-height:").concat(window.innerHeight,"px;overflow: auto;min-height:").concat(e,"%;background:").concat(c,";z-index:99999999;opacity:0;position:relative;visibility:hidden;\n transition:all 500ms cubic-bezier(0, -0.37, 0, 2.06);top:-15px;border-radius:3px;margin:20px\n}\n.apx-dlg-c.open {opacity:1;visibility:visible;top:0}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var g=document.createElement("div");return g.setAttribute("id","apx-dlg-c"),g.classList.add("apx-dlg-c"),d.appendChild(g),d.appendChild(p),d.on_dismiss=n,document.body.appendChild(d),d},Xi=function(t){return"\n .apx-ta:focus {\n border: none;\n outline: none;\n }\n .apx-ta::placeholder {\n color: ".concat(t,";\n opacity: 0.5;\n }\n ")},Qi=function(t,e){var n=t.answerMode,i=t.choices,o=void 0===i?[]:i,r=t.text_answer,a=void 0===r?"":r,s=t.selected_rating,l=void 0===s?-1:s,c=!0;n===y||n===m?c=-1!==o.findIndex((function(t){return!0===t.is_selected})):n===_?c=a.length>0:n===b&&(c=l>0);c?(e.className="apx-ba",e.disabled=!1):(e.className="apx-bi",e.disabled=!0)},Gi=function(t){var e,n=t.maximum_characters,i=t.background_color,o=t.placeholder,r=t.text_color,a=document.createElement("textarea"),s=null!==(e=null==t?void 0:t.textinput_border_color)&&void 0!==e?e:"black";return a.style="padding-top:4px;padding-left:4px;font-zie:14px;width:98%;height:100px;margin-top:8px;border: 1px solid ".concat(s,";resize:none;background:").concat(i,";color:").concat(r),a.className="apx-ta",a.setAttribute("placeholder",o),a.setAttribute("maxlength",n),a},Ji=function(t,e,n){var i=e.question_text_color,o=e.question_background_color,r=e.option_bg_color_active,a=e.option_bg_color_inactive,s=e.option_text_color_active,l=e.option_text_color_inactive,c=e.option_bg_type,d=t.rating_style,p=t.answerMode,u=t.choices,h=void 0===u?[]:u,f=t.rating,v=void 0===f?{rating_style:d,bg_color:"#D9DCDE",selected_bg_color:"#109B15"}:f,g=t.rating_scale,x=void 0===g?5:g,A=t.selected_rating,L=void 0===A?-1:A,S=t.text_answer,M=void 0===S?"":S,T=t.text_config?t.text_config:{maximum_characters:150,background_color:"#ccc",placeholder:"",text_color:"#000",placeholder_text_color:"#00000087"},I=!1,O=[];if(p===m||p===y){var D=Gi(T);D.style.visibility="hidden";var N=function(t,e){t.style.color=e?s:l},B=function(t,e){var n=e?r:a;"filled"===c?t.style.background=n:"outline"===c&&(t.style.borderColor=n)};h.forEach((function(e,i){var o=document.createElement("label");o.className="apx-lc",o.innerText=e.value;var r=document.createElement("input");r.name=r.type=p===m?"radio":"checkbox",r.checked=e.is_selected;var a=document.createElement("span");a.className="apx-i",o.appendChild(r),o.appendChild(a),B(o,e.is_selected),N(o,e.is_selected),e.is_other&&(I=!0,D.addEventListener("input",(function(t){e.other_answer=t.target.value}))),e.is_selected&&e.is_other&&(D.style.visibility="visible",e.other_answer&&(D.value=e.other_answer)),p===y?r.onchange=function(i){var r=i.target.checked;e.is_selected=r,N(o,r),B(o,r),e.is_other&&(D.style.visibility=r?"visible":"hidden"),Qi(t,n)}:(r.setAttribute("apx-key","radio"),r.setAttribute("apx-ci",i+""),r.onchange=function(){document.querySelectorAll('input[apx-key="radio"]').forEach((function(t,n){var i=t.checked;h[n].is_selected=i,N(t.parentNode,i),B(t.parentNode,i),e.is_other&&(D.style.visibility=i?"visible":"hidden")})),Qi(t,n)}),O.push(o)})),I&&O.push(D)}else if(p===_&&null!==T){var P=T.example,F=T.example_text_color;if(""!==P&&""!==P.trim()){var z=document.createElement("span");z.innerHTML="Example: "+P,z.style.color=F,z.style.marginTop="12px",z.style.fontFamily="inherit",z.style.fontSize="15px",O.push(z)}var q=Gi(T);q.addEventListener("input",(function(e){t.text_answer=e.target.value,e.target.value&&e.target.value.length>0&&(t.is_answered=!0),Qi(t,n)})),""!==M&&""!==M.trim()&&(q.innerText=M),O.push(q)}else if(p===b){var H=v.rating_style,V=v.bg_color,Z=v.selected_bg_color,R=document.createElement("div"),j="",W=[],U="",Y="cursor:pointer;font-size:30px;width:auto;height:auto;";if("stylized"===H)W=5===x?Ui:Wi,R.style="display:flex;flex-wrap:wrap;justify-content:".concat(5===x?"space-evenly":"center",";gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden"),j="opacity:1 !important;",U="".concat(Y,"padding-right:7px;padding-top:4px;padding-bottom:2px;border-radius:50%;background:transparent;opacity:1;filter:drop-shadow(0px 0.586957px 1.76087px rgba(0, 0, 0, 0.11))");else if("classic"===H)W=5===x?C:w,R.style="display:flex;flex-wrap:wrap;justify-content:".concat(5===x?"space-evenly":"center",";gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden"),j="opacity:1 !important;border:1.06px solid #017DFD; background-color:rgba(1, 125, 253, 0.1);\n ",U="".concat(Y,"padding-right:7px;padding-top:4px;padding-bottom:2px;opacity:1;filter:drop-shadow(0px 0.586957px 1.76087px rgba(0, 0, 0, 0.11))");else if("star"===H){R.style="display:flex;flex-wrap:wrap;justify-content:".concat(5===x?"space-evenly":"center",";gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden");for(var X=0;X<x;X++)W.push("&#11088;");j="filter:grayscale(0%) !important",U="".concat(Y,"filter:grayscale(100%)")}else"numbers"===H&&(W=5==x?["1","2","3","4","5"]:["0","1","2","3","4","5","6","7","8","9","10"],j="background:".concat(Z," !important;color:white !important;"),U="display:flex;justify-content:space-evenly;align-items:center;color:#646A6E;margin-bottom:".concat(5===x?"0px":"10px",";font-size:15px;width:40px;height:40px;background-color:").concat(V,";box-shadow:0px 0.54801px 1.64403px 0.54801px rgba(0, 0, 0, 0.11);border-radius:50%"),R.style.marginTop="12px",R.style="display:flex;align-text:center;flex-wrap:wrap;justify-content:".concat(5===x?"space-evenly":"center",";gap:15px;padding-top:8px;padding-bottom:8px;overflow:hidden"));var Q=document.createElement("style"),G="";(5==x?E:k).forEach((function(t,e){G+=".apx-rsel-".concat(e,"{\n background:").concat(t,"!important;\n color:white !important;\n }")})),Q.innerHTML=".apx-rsel{".concat(j,"}")+G+".apx-r{".concat(U,"}\n"),R.appendChild(Q);for(var J=function(t){return"star"!==H?t+1===L:t+1<=L},$=[],K=0;K<W.length;K++){var tt=document.createElement("div");tt.innerHTML="".concat("").concat(W[K]);var et=document.createElement("div");"classic"===H?(11==W.length?"".concat(et.innerHTML=K):"".concat(et.innerHTML=K+1),et.style.fontSize="12.83px",et.style.display="flex",et.style.fontWeight="500",et.style.justifyContent="center",et.style.alignItems="center",tt.appendChild(et),tt.style.display="flex",tt.style.justifyContent="space-evenly",tt.style.alignItems="center",tt.style.flexDirection="column",tt.style.width="40px",tt.style.height="70px"):"stylized"===H&&(11==W.length?"".concat(et.innerHTML=K):"".concat(et.innerHTML=K+1),et.style.fontSize="12.83px",et.style.display="flex",et.style.justifyContent="center",et.style.alignItems="center",tt.appendChild(et),tt.style.display="flex",tt.style.justifyContent="space-evenly",tt.style.alignItems="center",tt.style.marginBottom="15px",tt.style.marginRight="5px",tt.style.gap="4px",tt.style.flexDirection="column"),J(K)&&tt.classList.add("apx-rsel"),tt.classList.add("apx-r"),$.push(tt)}var nt=function(t,e,n,i,o){n.forEach((function(n,r){var a=document.createElement("div");a.innerHTML=5===x?r+1:r,a.style.fontSize="12.83px",a.style.display="flex",a.style.justifyContent="center",a.style.alignItems="center",t.appendChild(a),n.innerHTML=r===e?i[e]:o[r],n.appendChild(a)}))};$.forEach((function(e,i){t.selected_rating=i+1,e.addEventListener("click",(function(){if("stylized"===H&&(5===W.length?nt(e,i,$,Ri,Ui):nt(e,i,$,ji,Wi)),"numbers"===H?e.classList.add("apx-rsel-".concat(i)):e.classList.add("apx-rsel"),t.is_answered=!0,Qi(t,n),t.selected_rating=i+1,"numbers"===H){for(var o=0;o<i;o++)$[o].classList.remove("apx-rsel-".concat(o));for(var r=i+1;r<W.length;r++)$[r].classList.remove("apx-rsel-".concat(r))}else if("star"===H){for(var a=0;a<i+1;a++)$[a].classList.add("apx-rsel");for(var s=i+1;s<W.length;s++)$[s].classList.remove("apx-rsel")}else{for(var l=0;l<i;l++)$[l].classList.remove("apx-rsel");for(var c=i+1;c<W.length;c++)$[c].classList.remove("apx-rsel")}t.rulesArray.forEach((function(e){if(t.selected_rating>=e.min&&t.selected_rating<=e.max){var i,o=document.createElement("span");o.setAttribute("id","nps_advanced"),o.innerHTML=null===(i=e.question)||void 0===i?void 0:i.question;var r=Gi(T);r.addEventListener("input",(function(e){t.text_answer=e.target.value,e.target.value&&e.target.value.length>0&&(t.is_answered=!0),Qi(t,n)})),o.appendChild(r),R.appendChild(o);var a=document.getElementById("nps_advanced");a&&R.removeChild(a),o.appendChild(r),R.appendChild(o)}else{var s=document.getElementById("nps_advanced");s&&R.removeChild(s)}}))})),R.appendChild(e)})),O.push(R)}var it=document.createElement("div");it.style.padding="14px",it.style.display="flex",it.style.flexDirection="column",it.style.minHeight="340px";var ot=document.createElement("style"),rt="";p===_?rt=Xi(T.placeholder_text_color):p!==m&&p!==y||(rt=function(t,e,n,i,o,r){return"\n .apx-lc {\n display: block;\n position: relative;\n background: ".concat("outline"===r?"unset":"filled"===r?n:"unset",";\n border: ").concat("outline"===r?"1px solid "+n:"filled"===r?n:"unset",";\n padding: ").concat("none"!==r?"10px 10px 10px 35px":"0px 0px 0px 35px",";\n margin-bottom: 12px;\n font-family: inherit;\n top: 10px;\n cursor: pointer;\n font-size: 18px;\n color: ").concat(o,";\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .apx-lc input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n }\n\n .apx-i {\n position: absolute;\n left: 6px;\n height: 14px;\n width: 14px;\n border: 1px solid ").concat(o,";\n background-color: white;\n border-radius: ").concat(t===m?"50%":0,";\n }\n\n .apx-lc:hover input ~ .apx-i {\n border: 1px solid ").concat(i,";\n }\n\n .apx-lc input:checked ~ .apx-i {\n background-color: ").concat(e,";\n border: 1px solid ").concat(i,';\n }\n\n .apx-i:after {\n content: "";\n position: absolute;\n display: none;\n }\n\n .apx-lc input:checked ~ .apx-i:after {\n display: block;\n }\n\n .apx-lc .apx-i:after {\n top: ').concat(t===m?2:1,"px;\n left: ").concat(t===m?2:4,"px;\n width: ").concat(t===m?10:4,"px;\n height: ").concat(t===m?10:8,"px;\n border-radius: ").concat(t===m?"50%":"0",";\n background: ").concat(t===m?i:"transparent",";\n border: ").concat(t===m?"none":"solid white",";\n border-width: ").concat(t===m?"unset":"0 3px 3px 0",";\n -webkit-transform: ").concat(t===m?"unset":"rotate(45deg)",";\n -ms-transform: ").concat(t===m?"unset":"rotate(45deg)",";\n transform: ").concat(t===m?"unset":"rotate(45deg)",";\n }\n ")}(p,r,a,s,l,c),I&&(rt+=Xi(T.placeholder_text_color))),ot.innerHTML=rt.replaceAll("\n","").replace(/[\s]{2,999}/g,""),it.appendChild(ot);var at=document.createElement("span");return at.innerText=t.title,at.style="margin-bottom:12px;color:".concat(i,";background-color:").concat(o,";font-size:16px;font-weight:600"),it.appendChild(at),O.forEach((function(t){return it.appendChild(t)})),it},$i=function(t,e,n,i,o,r){var a=function(t,e,n,i){var o=t.cancel_button_color,r=t.previous_button_color,a=document.createElement("button"),s=document.createElement("button");a.disabled=0===e,a.setAttribute("type","button"),a.className="apx-b apx-pr",a.innerHTML="<style>.apx-pr::before{content:'\\2190';font-size:22px;color:".concat(r).concat(0===e?"54":"",";}.apx-pr{cursor:").concat(0===e?"no-drop":"pointer",";visibility:").concat(0===e?"hidden":"visible",";margin-top:-6px}</style>"),s.className="apx-b apx-cb",s.setAttribute("type","button"),s.innerHTML="<style>.apx-cb::before{content:'\\0000d7';font-size:26px;color:".concat(o,";}</style>");var l=document.createElement("div");l.style="display:flex;justify-content:space-between;align-items:center;padding:8px;padding-bottom:0";var c=document.createElement("span");return c.style="font-size:14px;color:#000;opacity:0.3;letter-spacing:0.005em;line-height:12px",c.innerText=i?"":"".concat(e+1,"/").concat(n),l.appendChild(a),l.appendChild(c),l.appendChild(s),{prevButton:a,closeButton:s,headerNode:l}}(t,i,o,r),s=a.headerNode,l=a.prevButton,c=a.closeButton,d=function(t,e,n,i,o){var r=t.skip_text_color,a=t.submit_text_color,s=t.submit_active_color,l=t.submit_inactive_color,c=n===i-1||o?null:document.createElement("button");c&&(c.innerText="Skip",c.className="apx-b",c.style="font-size:14px;font-weight:600;opacity:1;font-style:inherit;color:".concat(r,";background-color:transparent;margin:0px 12px"));var d=document.createElement("button");d.innerHTML="".concat(n===i-1&&"Next >"===e.submit_text?"Submit":e.submit_text,"<style>.apx-ba{background-color:").concat(s,";cursor:pointer}.apx-bi{background-color:").concat(l,";cursor:no-drop}</style>"),d.style="border:none;border-radius:2px;color:".concat(a,";padding:8px 15px;font-family:inherit"),Qi(e,d);var p=document.createElement("div");return p.style="padding:14px;display:flex;justify-content:flex-end",c&&p.appendChild(c),p.appendChild(d),{footerNode:p,skipButton:c,submitButton:d}}(t,n,i,o,n.is_required),p=d.skipButton,u=d.submitButton,h=d.footerNode,f=Ji(n,e,u),v=document.createElement("div");v.className="apx-sq";var g=document.createElement("style");return g.innerHTML=".apx-sq > * {font-family:inherit;}.apx-sq {height:100%;width:100%;display:flex;flex-direction:column}.apx-b{border:none;background:none;opacity:1;cursor:pointer;font-family:inherit}",v.appendChild(g),v.appendChild(s),v.appendChild(f),{questionRoot:v,footerNode:h,prevButton:l,closeButton:c,skipButton:p,submitButton:u}},Ki=function(t,e){var n=e.success_message_bg_color,i=e.success_message_icon_color,o=e.success_message_text_color,r=document.createElement("div");return r.style="display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;height:100%;background: ".concat(n,"; min-height:480px"),r.innerHTML="\n <div>\n ".concat(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:64,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,n=arguments.length>2?arguments[2]:void 0,i='\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0,0,256,256" width='.concat(t," height=").concat(e,' fill-rule="nonzero">\n <g fill="none" fill-rule="nonzero" stroke="none" stroke-width="none" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal">\n <g transform="scale(6.4,6.4)">\n <path d="M20,38.5c-10.2,0 -18.5,-8.3 -18.5,-18.5c0,-10.2 8.3,-18.5 18.5,-18.5c10.2,0 18.5,8.3 18.5,18.5c0,10.2 -8.3,18.5 -18.5,18.5z" fill= ').concat(n,' stroke="none" stroke-width="1"/>\n <path d="M20,2c9.9,0 18,8.1 18,18c0,9.9 -8.1,18 -18,18c-9.9,0 -18,-8.1 -18,-18c0,-9.9 8.1,-18 18,-18M20,1c-10.5,0 -19,8.5 -19,19c0,10.5 8.5,19 19,19c10.5,0 19,-8.5 19,-19c0,-10.5 -8.5,-19 -19,-19z" fill="#5e9c76" stroke="none" stroke-width="1"/>\n <path d="M11.2,20.1l5.8,5.8l13.2,-13.2" fill="none" stroke=').concat(K,' stroke-width="3"/>\n </g>\n </g>\n </svg>');return i}(64,64,i),'\n </div>\n <div style="font-size: 17px;margin-top:15px;color:').concat(o,'">').concat(t,"</div>\n "),r},to=window.ApxorLogger,eo=l((function t(e){var n=this;a(this,t),c(this,"resetState",(function(){n.is_selected=!1,n.other_answer=null}));var i=e.id,o=e.value,r=e.is_other,s=e.next_question_id;if(!i||!o)throw new Error("Invalid Choice");this.id=i,this.value=o,this.is_other=r,this.next_question_id=s,this.is_selected=!1,this.other_answer=null})),no=l((function t(e){var n=this;a(this,t),c(this,"resetState",(function(){n.is_answered=!1,n.text_answer="",n.selected_rating=-1,n.choices.forEach((function(t){return t.resetState()}))}));var i=e.id,o=e.answer_mode,r=e.title,s=e.is_required,l=e.submit_text,d=e.rating_style,u=e.rating_scale,h=e.choices,f=void 0===h?[]:h,v=e.text_config,g=void 0===v?null:v,x=e.randomize_choices,w=void 0!==x&&x,C=e.response_cfg,E=void 0===C?{}:C,k=e.advanced_options,A=e.rules,L=void 0===A?[]:A;if(!i||!o)throw new Error("Invalid question");var S=-1;switch(o){case"single_choice":S=m;break;case"multi_choice":S=y;break;case"text":S=_;break;case"rating":S=b;break;default:S=-1}if(this.answerMode=S,this.id=i,this.is_required=s,this.submit_text=l,this.randomize_choices=w,this.response_cfg=E,this.text_config=g,this.title=r,this.rating_style=d,this.rating_scale=u,this.is_answered=!1,this.selected_rating=-1,this.rules=L,this.rulesArray=[],k&&this.rules.forEach((function(t){if(e.hasOwnProperty(t.qid)){var i={max:t.max,min:t.min,question:e[t.qid]};n.rulesArray.push(i)}})),this.choices=[],this.answerMode===m||this.answerMode===y){for(var M,T=[],I=0;I<f.length;I++){var O=new eo(f[I]);O.is_other?T.push(O):this.choices.push(O)}w&&(this.choices=p(this.choices).map((function(t,e,n){var i=e+Math.floor(Math.random()*(n.length-e)),o=[n[e],n[i]];return n[i]=o[0],n[e]=o[1],n[e]}))),(M=this.choices).push.apply(M,T)}})),io=l((function t(){var n=this;a(this,t),c(this,"initialize",(function(t,e,i){var o=i.delay,r=i.dialog_config,a=void 0===r?null:r,s=i.show_progress_bar,l=void 0===s||s,c=i.is_response_based_survey,d=void 0!==c&&c,p=i.questions,u=void 0===p?[]:p,h=i.show_success_message,f=void 0===h||h,v=i.auto_hide_message,g=void 0===v?2e3:v,m=i.success_message,y=void 0===m?"":m,b=i.question_text_color,_=void 0===b?"#002845":b,x=i.submit_active_color,w=void 0===x?"#017DFD":x,C=i.submit_inactive_color,E=void 0===C?"#017DFD65":C,k=i.option_bg_type,A=void 0===k?"filled":k,L=i.option_text_color_active,S=void 0===L?"#002845":L,M=i.option_text_color_inactive,T=void 0===M?"#002845":M,I=i.option_bg_color_active,O=void 0===I?"#FFF":I,D=i.option_bg_color_inactive,N=void 0===D?"#FFF":D,B=i.question_background_color,P=void 0===B?"#FFF":B,F=i.success_message_bg_color,z=void 0===F?"#109B15":F,q=i.success_message_icon_color,H=void 0===q?"#109B15":q,V=i.success_message_text_color,Z=void 0===V?"#002845":V,R=i.skip_text_color,j=void 0===R?"#017DFD":R,W=i.cancel_button_color,U=void 0===W?"#000":W,Y=i.previous_button_color,X=void 0===Y?"#000":Y,Q=i.progress_bar_color,G=void 0===Q?"#017DFD":Q,J=i.submit_text_color,$=void 0===J?"#FFF":J,K=i.width,tt=void 0===K?350:K,et=i.min_height,nt=void 0===et?40:et,it=i.position,ot=void 0===it?"center":it,rt=i.dim_background,at=void 0===rt||rt,st=i.dim_bg_color,lt=void 0===st?"#313131":st,ct=i.dim_bg_opacity,dt=void 0===ct?.54:ct;n.configId=t,n.name=e,n.delay=o,n.is_response_based_survey=d,n.show_success_message=f,n.success_message=y,n.auto_hide_message=g,n.questions=[],n.displayedQuestionIndeces=[],n.answered_questions=[],n.width=tt,n.min_height=nt,n.layoutConfig={show_progress_bar:l,skip_text_color:j,cancel_button_color:U,previous_button_color:X,progress_bar_color:G,submit_text_color:$,submit_active_color:w,submit_inactive_color:E,success_message_bg_color:z,success_message_icon_color:H,success_message_text_color:Z,position:ot,dim_background:at,dim_bg_color:lt,dim_bg_opacity:dt},n.questionConfig={question_text_color:_,question_background_color:P,option_bg_color_active:O,option_bg_color_inactive:N,option_text_color_active:S,option_text_color_inactive:T,option_bg_type:A},a&&(n.dialog_config=a);for(var pt=0;pt<u.length;pt++)try{if("request_survey"===u[pt].answer_mode||"success_message"===u[pt].answer_mode)continue;n.questions.push(new no(u[pt])),n.answered_questions.push(-1)}catch(t){return to.error("Failed to parse Q",pt,t),!1}return!(n.questions.length<1)||(n.isValid=!1,!1)})),c(this,"showSurvey",(function(t,e){n.isValid&&setTimeout((function(){try{var i=window.ApxorRTM;if(null!==i.currentAction&&void 0!==i.currentAction)return void to.error("An action is already being shown.");n.startTime=Date.now();var o=Yi(n.width,n.min_height,e,n.layoutConfig,n.questionConfig);if(n.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",n._logSurveyAppEvent("apx_survey_launched",{apx_survey_type:!0}),n.dialog_config){var r=n.dialog_config,a=r.icon_name,s=void 0===a?"":a,l=r.icon_width,c=r.icon_height,d=o.children[0];o.style.visibility="hidden",d.style.visibility="hidden",setTimeout((function(){var t;null!=n&&null!==(t=n.dialog_config)&&void 0!==t&&t.dialog_background_color&&(d.style.backgroundColor=n.dialog_config.dialog_background_color),d.innerHTML=function(t){var e=t.icon_name,n=void 0===e?"":e,i=t.title,o=void 0===i?"Some dummy title":i,r=t.yes_text,a=void 0===r?"Yes":r,s=t.icon_width,l=void 0===s?180:s,c=t.icon_height,d=void 0===c?100:c,p=t.no_text,u=void 0===p?"No, thanks":p,h=t.dialog_background_color,f=void 0===h?"#FFF":h,v=t.title_color,g=void 0===v?"#3C3C3C":v,m=t.yes_button_bg_color,y=void 0===m?"#017DFD":m;t.no_button_bg_color;var b=t.yes_button_text_color,_=void 0===b?"#FFF":b,x=t.no_button_text_color,w=void 0===x?"#017DFD":x;t.hide_close_button;var C,E,k,A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return"line-height:20px;letter-spacing:0.005em;font-size:".concat(t,"px;font-weight:").concat(e,";")};return'\n <div style="display:flex;flex-direction:column;height:100%;width:100%;background-color:'.concat(f,';align-items:center;padding-top:20px;border-radius:3px">\n ').concat((C=n,E=l,k=d,C&&""!==C&&0!==E&&0!==k?'<img id="apx_icon" src="'.concat(C,'" style="width:').concat(E,"px;height:").concat(k,'px;">'):""),'<span style="').concat(A(16,600),"text-align:center;color:").concat(g,';margin:12px 0px;">').concat(o,'</span>\n <button id="').concat("apx-dy",'" style="').concat(A(14,500),"color:").concat(_,";background-color:").concat(y,';border-radius:2px;border:none;padding:8px 20px;margin-bottom:10px;cursor:pointer">').concat(a,'</button>\n <button id="').concat("apx-dn",'" style="').concat(A(14,500),"color:").concat(w,';background:none;border:none;cursor:pointer;margin-bottom:20px">').concat(u,"</button>\n </div>\n ")}(n.dialog_config),document.getElementById("apx-dy").onclick=function(){n._logSurveyAppEvent("apx_survey_dialog_yes_clicked",{apx_survey_type:!0}),d.style.minHeight=n.min_height+"%",n._showQuestions(o,!0)},document.getElementById("apx-dn").onclick=function(){n._logSurveyAppEvent("apx_survey_dialog_no_clicked",{apx_survey_type:!0}),n._closeDialog(o)};var e=function(){o.style.visibility="visible",d.style.visibility="visible",d.style.minHeight=""===s||0===l||0===c?"13%":"25%",d.classList.toggle("open"),n._logSurveyAppEvent("apx_survey_dialog_launched",{apx_survey_type:n.is_response_based_survey?"response_based":"default"})};if(""!==s&&l>0&&c>0){var i=document.getElementById("apx_icon");i.onload=function(){e()},i.onerror=function(){n._logSurveyAppEvent("apx_survey_dialog_icon_failed"),n._closeDialog(o)}}else e()}),100)}else n._showQuestions(o);t&&t((function(){return n._closeDialog(o)}))}catch(t){to.error(t)}}),n.delay)})),c(this,"_showQuestions",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n.layoutConfig,o=i.show_progress_bar,r=i.progress_bar_color,a=document.createElement("div");a.style="height:4px;overflow:hidden;position:relative;background:white;";var s=document.createElement("div");s.setAttribute("id","apx-pb"),s.style="border-radius:10px;top:0;left:0;width:100%;bottom:0;position:absolute;transition:transform 0.4s linear;transform-origin:left;background-color:".concat(r),a.appendChild(s),o||(a.style.visibility="hidden");var l=t.children[0];(e||l&&l.childElementCount>1)&&l.removeChild(l.children[l.childElementCount-1]),l.appendChild(a),n._displayQuestion(t,0),e||setTimeout((function(){t.children[0].classList.toggle("open")}),100)})),c(this,"_getQuestionIndexFromId",(function(t){if(-1==t||!t)return-1;var e=n.questions.length;if(e>0)for(var i=0;i<e;i++)if(n.questions[i].id==t)return i;return-1})),c(this,"_getNextQuestionIndex",(function(t,e){var i=t.answerMode,o=t.choices,r=void 0===o?[]:o;switch(i){case b:var a=null==t?void 0:t.response_cfg[(null==t?void 0:t.selected_rating)||11];a?e=n._getQuestionIndexFromId(a):e+=1;break;case m:var s;if(r.forEach((function(t){t.is_selected&&(s=t)})),s){var l=s.next_question_id;e=n._getQuestionIndexFromId(l)}else e+=1;break;case y:case _:default:e+=1}return e})),c(this,"_displayQuestion",(function(t,e){var i;if(!(e>=n.questions.length)){var o=n.questions[e],r=$i(n.layoutConfig,n.questionConfig,o,e,n.questions.length,n.is_response_based_survey),a=r.prevButton,s=void 0===a?null:a,l=r.closeButton,c=void 0===l?null:l,d=r.submitButton,p=void 0===d?null:d,u=r.skipButton,h=void 0===u?null:u,f=r.questionRoot,v=r.footerNode,g=t.children[0];g&&g.childElementCount>2&&(g.removeChild(g.children[g.childElementCount-1]),g.removeChild(g.children[g.childElementCount-1])),null!=n&&null!==(i=n.questionConfig)&&void 0!==i&&i.question_background_color&&(g.style.backgroundColor=n.questionConfig.question_background_color),document.getElementById("apx-pb").style.transform="translateX(".concat(-(100-100/n.questions.length*(e+1)),"%)"),g.appendChild(f),g.appendChild(v),s&&(s.onclick=function(){n._logSurveyAppEvent("apx_survey_back_button_clicked",{apx_question_id:"",apx_question_name:"",apx_question_type:"",apx_question_position:2,apx_survey_type:""}),n._logSurveyQuestionEvent(e);var i=n.displayedQuestionIndeces.pop();void 0!==i&&n._displayQuestion(t,i)}),c&&c.addEventListener("click",(function(){n._logSurveyAppEvent("apx_survey_close_clicked",{where:"question "+(e+1)}),n._logSurveyAppEvent("apx_survey_close_button_clicked",{apx_survey_type:!0,apx_time_to_complete:200,where:"question "+(e+1)}),n._logSurveyQuestionEvent(e),n._submitSurveyResponses(t,!1)})),p&&(p.onclick=function(){if(n.displayedQuestionIndeces.push(e),n.is_response_based_survey){n._logSurveyQuestionEvent(e);var i=n._getNextQuestionIndex(o,e);i===n.questions.length||-1===i?n._submitSurveyResponses(t,!0):n._displayQuestion(t,i)}else n._logSurveyQuestionEvent(e),e===n.questions.length-1?n._submitSurveyResponses(t,!0):n._displayQuestion(t,e+1)}),h&&(h.onclick=function(){n.displayedQuestionIndeces.push(e),e+1>=n.questions.length||(n._logSurveyAppEvent("apx_survey_skip_clicked",{where:"question "+(e+1)}),n._logSurveyAppEvent("apx_survey_skip_button_clicked",{apx_question_id:"",apx_question_name:"",apx_question_type:"",apx_question_position:2,apx_survey_type:"",where:"question "+(e+1)}),n._logSurveyQuestionEvent(e),n._displayQuestion(t,e+1))}),n._logSurveyAppEvent("apx_survey_question_asked",{apx_question_id:"",apx_question_name:"",apx_question_type:"",apx_question_position:2,apx_survey_type:""})}})),c(this,"_attributeForApxSurveyQuestionAnswered",(function(t){var e,i,o,r,a,s,l,c={};3===n.questions[t].answerMode&&(c.apx_nps_advanced_question=null!==(e=null===(i=n.questions[t].rulesArray)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.question.question)&&void 0!==e?e:"",c.apx_nps_advanced_choice=[],c.apx_nps_advanced_free_text=[],null!==(r=n.questions[t])&&void 0!==r&&r.text_answer&&c.apx_nps_advanced_free_text.push(n.questions[t].text_answer),c.apx_nps_advanced_question_id=null!==(a=null===(s=n.questions[t].rules)||void 0===s||null===(l=s[0])||void 0===l?void 0:l.qid)&&void 0!==a?a:"");return c})),c(this,"_logSurveyQuestionEvent",(function(t){if(-1===n.answered_questions[t]){var e=n._getAnswerForQuestion(t),i=[];e.textBasedQuestionAnswers.length>0&&e.textBasedQuestionAnswers.forEach((function(t){i.push(t.answer)})),e.answers.length>0&&(n._logSurveyAppEvent("apx_survey_question_answered",o(o({apx_question_id:"",apx_question_name:"",apx_question_type:"",apx_question_position:2,apx_survey_type:"",apx_choice:e.answerTexts,apx_choice_position:2,apx_free_text:e.textBasedQuestionAnswers},n._attributeForApxSurveyQuestionAnswered(t)),{},{apx_time_spent_to_answer:20})),n._logSurveyAppEvent("apx_survey_".concat(n.questions[t].title),{answers:e.answerTexts,text_answers:i}),n.answered_questions[t]=1)}})),c(this,"_logSurveyAppEvent",(function(t){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null===(i=window.ApxorRTM)||void 0===i?void 0:i.getCampaignMeta(n.configId),s=a._attr;e.logEvent(t,o(o({apx_survey_id:n.configId,apx_survey_name:n.name},r),s))})),c(this,"_getAnswerForQuestion",(function(t){var e=n.questions[t];if(!e)return null;var i={answers:[],answerTexts:[],others:[],textBasedQuestionAnswers:[]},o=e.answerMode,r=e.choices,a=void 0===r?[]:r,s=e.selected_rating,l=void 0===s?-1:s,c=e.text_answer,d=void 0===c?"":c,p=e.is_answered,u=void 0!==p&&p,h=e.text_config,f=void 0===h?null:h;switch(o){case m:case y:a.forEach((function(t){t.is_selected&&(i.answers.push(t.id),i.answerTexts.push(t.value),t.is_other&&null!==t.other_answer&&""!==t.other_answer.trim()&&i.others.push({id:t.id,answer:t.other_answer}))}));break;case _:u&&""!==d&&""!==d.trim()&&null!==f&&(i.answers.push(f.id),i.answerTexts.push(d),i.textBasedQuestionAnswers.push({id:f.id,answer:d}));break;case b:-1!==l&&(i.answers.push(l),i.answerTexts.push(l))}return i})),c(this,"_closeDialog",(function(t){t.on_dismiss&&t.on_dismiss(),t.children[0].classList.toggle("open"),setTimeout((function(){t.parentNode.removeChild(t),document.body.style.overflow=n.bodyOverflow,n.bodyOverflow=""}),400)})),c(this,"_showSuccessMessage",(function(t){var e=t.children[0];e.style.minHeight="unset",e&&e.childElementCount>2&&(e.removeChild(e.children[e.childElementCount-1]),e.removeChild(e.children[e.childElementCount-1]));var i=document.getElementById("apx-pb");i.parentNode.removeChild(i);var o=Ki(n.success_message,n.layoutConfig);e.appendChild(o),setTimeout((function(){n._closeDialog(t)}),n.auto_hide_message)})),c(this,"_submitSurveyResponses",(function(t,i){i&&n.show_success_message?n._showSuccessMessage(t):n._closeDialog(t);var o={survey_id:n.configId,name:n.name,responses:[]};if(n.questions.forEach((function(t,e){var i=n._getAnswerForQuestion(e);if(i.answers.length>0){var r={question_id:t.id,answers:i.answers};t.rules.length>0&&t.rulesArray.forEach((function(e){if(t.selected_rating>=e.min&&t.selected_rating<=e.max){var n=e.question.text_config,i=t.text_answer;r.answers=[].concat(p(r.answers),[n.id]);var o={id:n.id,answer:i};r.others||(r.others=[]),r.others.push(o)}})),i.others.length>0?r.others=i.others:i.textBasedQuestionAnswers.length>0&&(r.others=i.textBasedQuestionAnswers),o.responses.push(r)}})),o.responses.length>0){var r=Math.pow(10,3);o.time_taken=Math.round((Date.now()-n.startTime)/1e3*r)/r;var a=e.getController(),s=a.getFromStorage("_apx_cd",!0).session_info.launch_time;o.session_id=e.getSessionId(),o.is_completed=i,o.app_version=a.getFromStorage("apx_ver",!1),o.device_uuid=e.getClientId(),o.launch_time=s,o.user_attributes=a.getUserAttributes(),o.session_attributes=a.getSessionAttributes(),n._sendReponseToServer(o)}i&&n._logSurveyAppEvent("apx_survey_completed",{apx_survey_type:!0,apx_time_to_complete:200}),n.questions.forEach((function(t,e){t.resetState(),n.answered_questions[e]=-1})),n.startTime=-1,n.bodyOverflow=""})),c(this,"_sendReponseToServer",(function(t){var n=g.replace("<app_id>",e.getSiteId());fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})})),this.isValid=!0,this.dialog_config=null})),oo=l((function t(){a(this,t),c(this,"parse",(function(t,e,n){var i=new io;return i.initialize(t,e,n)?i:null}))})),ro=window.ApxorLogger,ao=function(){function t(e,n,i,o,r){var s=this;a(this,t),c(this,"showVideoInApp",(function(){s.createPlayer();try{if(s.video_mode==Q){var t=s.videoElement,e=s.hideCallback;t.onloadedmetadata=function(){t.disablePictureInPicture=!1,t.requestPictureInPicture().catch((function(t){ro.error("Can't show PIP:".concat(t)),e()}))}}else s.unhideVideoPlayer();s.showCallback()}catch(t){ro.error("Can't show video:".concat(t)),s.hideCallback()}})),c(this,"_getHeightWidthFromResolution",(function(){var t=mt(s.videoConfig),e=t.width,n=t.height;s.height=n,s.width=e})),c(this,"_removeVideoPlayerStyles",(function(){var t=document.getElementById("apxor-mpl-styles");t&&t.remove()})),c(this,"_setVideoControlListeners",(function(){s.videoElement.addEventListener("ended",(function(){var t=document.getElementById("apxor-cta-btn");t&&t.classList.remove("apxor-hide-elmt")})),s.videoElement.addEventListener("play",(function(){var t=document.getElementById("apxor-cta-btn");t&&t.classList.add("apxor-hide-elmt")}))})),c(this,"_setPIPtoggleListeners",(function(){var t=s.videoConfig.enable_pip_toggles;if(void 0===t||t){s.videoElement.addEventListener("leavepictureinpicture",(function(){s.videoElement.disablePictureInPicture=!0,"PIP"===s.videoConfig.video_mode?(s.hideCallback(),s.videoPlayer.remove()):s.videoPlayer.classList.remove("apxor-hide-elmt")}),!1);s.videoElement.addEventListener("enterpictureinpicture",(function(){s.videoPlayer.classList.add("apxor-hide-elmt")}),!1)}})),c(this,"_setCustomControls",(function(){var t=s.videoConfig,e=t.pip_btn_color,n=void 0===e?K:e,i=t.close_btn_color,o=void 0===i?K:i,r=t.enable_pip,a=document.createElement("span");if(a.innerHTML=bt(24,24,o),a.classList.add("apxor-close-btn"),a.addEventListener("click",(function(){try{s.videoPlayer.remove(),s.hideCallback(),s._removeVideoPlayerStyles()}catch(t){console.log("Error \n ".concat(t," \n occured while closing the video"))}})),s.videoPlayer.appendChild(a),r){var l=document.createElement("span");l.innerHTML=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2?arguments[2]:void 0,i='\n <svg xmlns="http://www.w3.org/2000/svg" width="'.concat(t,'" height="').concat(e,'" fill=').concat(n,' class="bi bi-pip" viewBox="0 0 16 16">\n <path d="M0 3.5A1.5 1.5 0 0 1 1.5 2h13A1.5 1.5 0 0 1 16 3.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 12.5v-9zM1.5 3a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-13z"/>\n <path d="M8 8.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-3z"/>\n </svg>');return i}(24,24,n),l.classList.add("apxor-pip-btn"),l.addEventListener("click",(function(){try{s.videoElement.disablePictureInPicture=!1,s.videoElement.requestPictureInPicture()}catch(t){console.log("Error \n ".concat(t," \n while starting the PIP"))}})),s.videoPlayer.appendChild(l)}})),c(this,"_setCTAButtons",(function(){var t=s.videoConfig,e=t.buttons_config,n=t.button_position,i=void 0===n?"center":n,o=t.button_direction,r=void 0===o?Y:o;if(e&&e.length>0){var a=function(){try{s.videoPlayer.remove(),s.hideCallback(),s._removeVideoPlayerStyles()}catch(t){console.log("Can't close the video player\n".concat(t))}},l={next:a,complete:a,cancel:a},c=yt(s.configId,s.name,X,e,i,r,l);c.setAttribute("id","apxor-cta-btn"),c.classList.add("apxor-video-cta"),c.classList.add("apxor-hide-elmt"),s.videoPlayer.appendChild(c)}})),c(this,"hideVideoPlayer",(function(){s.videoPlayer.classList.add("apxor-hide-elmt")})),c(this,"unhideVideoPlayer",(function(){s.videoPlayer.classList.remove("apxor-hide-elmt")})),c(this,"getVideoElement",(function(){return s.videoElement})),this.videoConfig=e,this.videoPlayer=null,this.videoElement=null,this.video_mode=e.video_mode,this.showCallback=o,this.hideCallback=r,this.height=320,this.width=320,this.configId=n,this.name=i||"VideoPlayer"}return l(t,[{key:"createPlayer",value:function(){this.videoPlayer=document.createElement("div"),this.videoPlayer.setAttribute("id","apxor-video-player"),this._getHeightWidthFromResolution(),this._setVideoPlayerStyles(),this._setVideoPlayerPosition(),this._setPlayerContent(),this._setVideoControlListeners(),this._setPIPtoggleListeners(),this._setCustomControls(),this._setCTAButtons(),this.hideVideoPlayer(),document.body.appendChild(this.videoPlayer)}},{key:"_setVideoPlayerStyles",value:function(){if(!document.getElementById("apxor-mpl-styles")){var t=document.createElement("style");t.setAttribute("id","apxor-mpl-styles"),t.innerHTML="\n div.apxor-video-player--topLeft {\n position: fixed;\n top: 0;\n left: 0;\n background-color: ".concat($,";\n z-index:99999999;\n }\n \n div.apxor-video-player--topRight {\n position: fixed;\n top: 0;\n right: 0;\n background-color: ").concat($,";\n z-index:99999999;\n }\n \n div.apxor-video-player--bottomLeft {\n position: fixed;\n bottom: 0;\n left: 0;\n background-color: ").concat($,";\n z-index:99999999;\n }\n \n div.apxor-video-player--bottomRight {\n position: fixed;\n bottom: 0;\n right: 0;\n background-color: ").concat($,';\n z-index:99999999;\n }\n\n .apxor-hide-elmt {\n display : none;\n }\n\n .apxor-pip-btn {\n position: absolute;\n top: 10px;\n left: 10px;\n width: 24px;\n height: 24px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n\n video:hover~.apxor-pip-btn {\n opacity: 1;\n }\n \n .apxor-close-btn {\n position: absolute;\n top: 10px;\n right: 10px;\n width: 24px;\n height: 24px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n\n video:hover~.apxor-close-btn {\n opacity: 1;\n }\n\n .apxor-video-cta {\n position: absolute;\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n -moz-transform: translate(-50%, -50%);\n width: auto;\n height: auto;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n \n .bi::before,\n [class^="bi-"]::before,\n [class*=" bi-"]::before {\n display: inline-block;\n font-style: normal;\n font-weight: normal !important;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n vertical-align: -.125em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n .bi-pip::before { \n content: "\f4ef"; \n }\n\n .bi-x-circle::before { \n content: "\f623"; \n }\n\n '),document.head.appendChild(t)}}},{key:"_setVideoPlayerPosition",value:function(){switch(this.videoConfig.video_position){case H:this.videoPlayer.classList.add("apxor-video-player--topLeft");break;case V:this.videoPlayer.classList.add("apxor-video-player--topRight");break;case Z:this.videoPlayer.classList.add("apxor-video-player--bottomLeft");break;case R:default:this.videoPlayer.classList.add("apxor-video-player--bottomRight")}}},{key:"_setPlayerContent",value:function(){var t=this.videoConfig,e=t.v_url,n=t.v_format,i=void 0===n?"video/mp4":n,o=t.mute_audio,r=void 0!==o&&o;this.videoElement=document.createElement("video"),this.videoElement.width=this.width,this.videoElement.height=this.height,this.videoElement.controlsList="noplaybackrate nodownload",this.videoElement.controls=!0,this.videoElement.disablePictureInPicture=!0,this.videoElement.autoplay=!0,r&&(this.videoElement.muted=!0);var a=document.createElement("source");a.setAttribute("src",e),a.setAttribute("type",i),this.videoElement.appendChild(a),this.videoPlayer.appendChild(this.videoElement)}}],[{key:"isAVideoBeingPlayed",value:function(){return!!document.getElementById("apxor-video-player")}},{key:"canShowVideoInApp",value:function(t){var e=t.binding,n=t.activity,i=!0;return e&&""!=n&&window.location.pathname!==n&&(i=!1),i}}]),t}(),so=function(){function t(e,n,i,o,r){if(a(this,t),this.inapp_type=e.inapp_type||A,this.inapp_position=e.inapp_position||U,this.position_from_top=e.position_from_top||"0px",this.position_from_bottom=e.position_from_bottom||"0px",this.background_color=e.background_color||K,this.dim_background=e.dim_background||!1,this.dim_background_color=e.dim_background_color||"#0a0a0a",this.dim_background_opacity=e.dim_background_opacity||.5,this.dismiss_outside_touch=e.dismiss_outside_touch||!1,this.border_config=e.border_config,this.border_config){var s=this.border_config;this.border_radius=s.border_radius||15,this.border_color=s.border_color||"#27a4f2",this.border_style=s.border_style||"outset",this.border_width=s.border_width||2}if(this.close_config=e.close_config,this.close_config){var l=this.close_config;this.enable_close=l.enable_close||!0,this.close_btn_color=l.close_btn_color,this.close_btn_path=l.close_btn_path||"",this.close_btn_bg_color=l.close_btn_bg_color||"#FFFAAA",this.close_btn_type=l.close_btn_type||"normal"}if(this.scroll_config=e.scroll_config,this.scroll_config){var c=this.scroll_config;this.is_scrollable=c.is_scrollable||!1,this.scroll_border_color=c.scroll_border_color||$,this.text_height=c.text_height||400}if(this.icon_config=e.icon_config,this.icon_config){var d=this.icon_config;this.icon_path=d.icon_path||"",this.icon_width=d.icon_width||48,this.icon_height=d.icon_height||48,this.icon_margin=d.icon_margin||0,this.icon_radius=d.icon_radius||0,this.icon_margin_color=d.icon_margin_color||$,this.icon_position=d.icon_position||"center",this.icon_color=d.icon_color||""}if(this.image_config=e.image_config,this.image_config){var p=this.image_config;this.image_path=p.image_path||"",this.image_width=p.image_width||360,this.image_height=p.image_height||360,this.image_shadow_color=p.image_shadow_color||"#000000",this.image_shadow_opacity=p.image_shadow_opacity||.2}if(this.video_config=e.video_config,this.video_config){var u=this.video_config;this.video_embed=u.video_embed||!1,this.video_embed_html=u.video_embed_html||"",this.video_height=u.video_height||360,this.video_width=u.video_width||360,this.video_path=u.video_path||""}if(this.shadow_config=e.shadow_config,this.shadow_config){var h=this.shadow_config;this.show_shadow=h.show_shadow||!0,this.shadow_color=h.shadow_color||"#888888"}if(this.gradient_config=e.gradient_config,this.gradient_config){var f=this.gradient_config;this.enable_gradient=f.enable_gradient||!1,this.gradient_direction=f.gradient_direction||"to right",this.gradient_c1=(null==f?void 0:f.colors[0])||$,this.gradient_c2=(null==f?void 0:f.colors[1])||K}else this.enable_gradient=!1;if(this.title_config=e.title_config,e.title_config){var v,g=e.title_config;this.title_icon_path=null!==(v=g.icon_path)&&void 0!==v?v:"",this.title_icon_height=g.icon_height,this.title_icon_width=g.icon_width,this.title_icon_radius=g.icon_radius,this.title_icon_margin=g.icon_margin,this.title_icon_margin_color=g.icon_margin_color}this.text_config=e.text_config,this.buttons_config=e.buttons_config,this.button_position=e.button_position,this.button_direction=e.button_direction||Y,this.modal_width=e.modal_width||50,this.terminate_info=e.terminate_info||{},this.configId=n,this.name=i,this.showCallback=o,this.closeCallback=r,this.currentId=gt(10),this.width="50%",this.height="auto",this.isToastTemplate=this.inapp_type===I||this.inapp_type===O||this.inapp_type===N||!1,this.dimBackgroundElement=null,this.overlayElement=null,this.inAppContainer=null}return l(t,[{key:"_setInAppModalDimensions",value:function(){switch(this.inapp_type){case A:this.width="30%";break;case S:this.width="45%";break;case I:case O:case D:this.width="100%";break;case M:this.width="60%";break;case N:case L:this.modal_width<20||this.modal_width>80?this.width="50%":this.width="".concat(this.modal_width,"%");break;case T:this.width="100%";break;case B:case P:this._setDimenstionFromResolution(this.image_width,this.image_height);break;case F:this.video_embed?this.width="auto":this._setDimenstionFromResolution(this.video_width,this.video_height);break;default:this.width="50%"}}},{key:"_setDimenstionFromResolution",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,i=window.innerWidth,o=window.innerHeight;if(t>i||e>o){var r=mt({width:t,height:e},n);this.width="".concat(r.width,"px"),this.height="".concat(r.height,"px")}else this.width="".concat(t,"px"),this.height="".concat(e,"px")}},{key:"_setStyles",value:function(){var t=" \n ".concat(this._getBackgroundContainerStyles()," \n ").concat(this._getInAppContainerStyles()," \n ").concat(this._getScrollStyles()," \n ").concat(this._getControlsStyles()," \n ").concat(this._getInAppMediaContainerStyles(),"\n ").concat(this._getInAppNonMediaContainerStyles(),"\n ").concat(this._getTextConatinerStyles(),"\n ").concat(this._getTitleStyles()," \n ").concat(this._getDescriptionStyles()," \n ").concat(this._getInAppButtonContainerStyles(),"\n ").concat(this._getIconStyles()," \n ").concat(this._getImageStyles()," \n ").concat(this._getVideoStyles()," \n ").concat(this._getBootstrapiconsStyles()," \n ").replaceAll("\n","").replace(/[\s]{2,999}/g,""),e=document.createElement("style");e.innerHTML=t,this.overlayElement.appendChild(e)}},{key:"_getBackgroundContainerStyles",value:function(){return"\n .apx-inapp-overlay {\n width:100%;\n height:100%;\n }\n .apx-dimbackground-overlay {\n width:100%;\n height:100%;\n position:fixed;\n top:0;\n left:0;\n z-index:999;\n background-color:".concat(this.dim_background?this.dim_background_color:"transparent",";\n ").concat(this.dim_background?"opacity: ".concat(this.dim_background_opacity,";"):"","\n overflow: auto;\n }\n ")}},{key:"_getInAppContainerStyles",value:function(){return"\n .apx-inapp-container {\n width:".concat(this.width,";\n display:flex;\n flex-direction:column;\n ").concat(this.inapp_type===P?"height:".concat(this.height,";"):"","\n ").concat(this.inapp_type===P||this.inapp_type===F?"":"padding: 20px;","\n ").concat(this.inapp_type===I||this.inapp_type===O?"display:flex;\n flex-direction:row;\n align-items:stretch;\n padding:20px 0 20px 0;":"","\n ").concat(this.inapp_type===D?"display:flex;\n flex-direction:row;\n justify-content:center;\n align-items:stretch;\n padding:20px 0 20px 0;":"","\n margin: auto;\n background-color:").concat(this.background_color,";\n z-index:9999;\n opacity:0;\n transition:all .5s cubic-bezier(.96,.23,.07,.8);\n position:fixed;\n visibility:hidden;\n border: ").concat(this.border_width,"px ").concat(this.border_style," ").concat(this.border_color,";\n border-radius: ").concat(this.border_radius,"px;\n ").concat(this.inapp_position==H?"top:0;left:0;":""," \n ").concat(this.inapp_position==j?"left:50%;top:".concat(this.position_from_top,"px;-webkit-transform: translate(-50%, ").concat(.1*this.position_from_top,"px);-moz-transform: translate(-50%, ").concat(this.position_from_top,"px);"):"","\n ").concat(this.inapp_position==W?"left:50%;bottom:".concat(this.position_from_bottom,"px;-webkit-transform: translate(-50%, ").concat(.1*this.position_from_bottom,"px);-moz-transform: translate(-50%, ").concat(this.position_from_bottom,"px);"):"","\n ").concat(this.inapp_position==V?"top:0;right:0;":""," \n ").concat(this.inapp_position==Z?"bottom:0;left:0;":""," \n ").concat(this.inapp_position==R?"bottom:0;right:0;":"","\n ").concat(this.inapp_position==U?"left:50%;top:50%;-webkit-transform: translate(-50%, -50%);-moz-transform: translate(-50%, -50%);":"","\n ").concat(this.enable_gradient?"background-image:linear-gradient(".concat(this.gradient_direction,", ").concat(this.gradient_c1,", ").concat(this.gradient_c2,");"):"","\n ").concat(this.show_shadow?"box-shadow: 0px 0px 7px 7px ".concat(this.shadow_color,";"):"","\n ").concat(this.inapp_type===N?"display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;padding:0px":"","\n }\n .apx-inapp-container.open{\n opacity:1;\n visibility:visible;\n }\n ")}},{key:"_getScrollStyles",value:function(){return"\n .apxor-inapp-scrollable {\n overflow:scroll; \n overflow-x: hidden;\n height:".concat(this.text_height,"px;\n border-top: 2px solid ").concat(this.scroll_border_color,";\n border-bottom : 2px solid ").concat(this.scroll_border_color,";\n }\n .apxor-inapp-nonscrollable {\n overflow : hidden;\n }\n ")}},{key:"_getInAppButtonContainerStyles",value:function(){return"\n .apx-inapp-button{\n display:flex;\n flex-direction:row;\n align-items:center;\n justify-content:center;\n margin:0 10px 0 10px;\n }"}},{key:"_getInAppMediaContainerStyles",value:function(){return"\n .apx-inapp-media-container{\n }"}},{key:"_getInAppNonMediaContainerStyles",value:function(){return"\n .apx-inapp-nonmedia-container{\n ".concat(this.inapp_type===I||this.inapp_type===O||this.inapp_type===N?"flex-grow:2;\n display:flex;\n flex-direction:row;\n justify-content:space-between;\n align-items:center;":"display:flex;\n flex-direction:column;\n justify-content:center;\n align-items:stretch;","\n }")}},{key:"_getTitleStyles",value:function(){var t,e,n;return"\n .apxor-title-div {\n ".concat(null!==(t=this.title_config)&&void 0!==t&&t.background_color?'background-color:"'.concat(this.title_config.background_color,'";'):"","\n ").concat(null!==(e=this.title_config)&&void 0!==e&&e.margin_config?"margin-top:".concat(this.title_config.margin_config.top,"px;margin-bottom:").concat(this.title_config.margin_config.bottom,"px;"):""," \n ").concat(null!==(n=this.title_config)&&void 0!==n&&n.padding_config?"padding-top:".concat(this.title_config.padding_config.top,"px;padding-bottom:").concat(this.title_config.padding_config.bottom,"px;"):""," \n \n }\n .apxor-title-icon {\n ").concat(""!==this.title_icon_path?"background:url('".concat(this.title_icon_path,"');display: inline-block;height: ").concat(this.title_icon_height,"px;width: ").concat(this.title_icon_width,"px;border-radius:").concat(this.title_icon_radius,"px;border:").concat(this.title_icon_margin,"px solid ").concat(this.title_icon_margin_color,";margin-right: 15px;vertical-align: middle"):"","\n }\n ")}},{key:"_getDescriptionStyles",value:function(){var t,e,n;return"\n .apxor-inapp-description {\n ".concat(null!==(t=this.text_config)&&void 0!==t&&t.background_color?'background-color:"'.concat(this.text_config.background_color,'";'):"","\n ").concat(null!==(e=this.text_config)&&void 0!==e&&e.margin_config?"margin-top:".concat(this.text_config.margin_config.top,"px;margin-bottom:").concat(this.text_config.margin_config.bottom,"px;"):""," \n ").concat(null!==(n=this.text_config)&&void 0!==n&&n.padding_config?"padding-top:".concat(this.text_config.padding_config.top,"px;padding-bottom:").concat(this.text_config.padding_config.bottom,"px;"):""," \n \n }\n ")}},{key:"_getIconStyles",value:function(){return"\n .apxor-inapp-icon-content {\n ".concat(this.inapp_type===T?"background:url('".concat(this.icon_path,"');display:inline-block;height: ").concat(this.icon_height,"px;width: ").concat(this.icon_width,"px;border-radius:").concat(this.icon_radius,"px;border:").concat(this.icon_margin,"px solid ").concat(this.icon_margin_color,";"):"","\n }\n .apxor-inapp-icon-container {\n ").concat(this.inapp_type===T?"text-align:".concat(this.icon_position,";"):"","\n }\n ")}},{key:"_getImageStyles",value:function(){return"\n .apxor-inapp-img-only {\n ".concat(this.inapp_type===P?"background:url('".concat(this.image_path,"') no-repeat 50% 50%;\n box-shadow: inset ").concat(this.image_width,"px ").concat(this.image_height,"px 0px 0px ").concat(at(this.image_shadow_color,this.image_shadow_opacity),",inset -").concat(this.image_width,"px -").concat(this.image_height,"px 0px 0px ").concat(at(this.image_shadow_color,this.image_shadow_opacity),"\n "):"","\n }\n .apxor-inapp-img-txt {\n ").concat(this.inapp_type===B?"height: ".concat(this.height,";width: ").concat(this.width,";margin-top:5px"):"","\n ").concat(this.inapp_type===I||this.inapp_type===O||this.inapp_type===D?"height: ".concat(this.icon_height,"px;\n width:").concat(this.icon_width,"px;\n border-radius:50%;\n margin-top:20px;\n margin-right:30px;\n margin-left:30px;"):"","\n }\n ")}},{key:"_getVideoStyles",value:function(){return"\n .apxor-inapp-video {\n ".concat(this.inapp_type===F?"width:".concat(this.width,";\n height:").concat(this.height,";\n border-top-left-radius: ").concat(this.border_radius-this.border_width,"px;border-top-right-radius: ").concat(this.border_radius-this.border_width,"px;"):"","\n }\n .apxor-inapp-videoembed{\n ").concat(this.video_embed?"border-top-left-radius: ".concat(this.border_radius-this.border_width,"px;border-top-right-radius: ").concat(this.border_radius-this.border_width,"px;\n overflow:hidden;"):"","\n }\n ")}},{key:"_getControlsStyles",value:function(){return"\n .apxor-inapp-close {\n position: absolute;\n z-index:9999;\n top: 5px;\n right: 5px;\n width: 24px;\n height: 24px;\n cursor: pointer;\n }\n .apxor-inapp-footer-close {\n display:flex;\n flex-direction:row;\n justify-content:center;\n align-items:center;\n width: 24px;\n height: 24px;\n cursor: pointer;\n }\n "}},{key:"_getTextConatinerStyles",value:function(){return"\n .apxor-text-container{\n display:flex;\n flex-direction:column;\n justify-content: center;\n overflow-wrap: break-word;\n align-items:center;\n ".concat(this.title_config.alignment?"text-align:".concat(this.title_config.alignment,";"):"","\n }\n ")}},{key:"_getBootstrapiconsStyles",value:function(){return'\n .bi::before, [class^="bi-"]::before, [class*=" bi-"]::before {\n display: inline-block;\n font-style: normal;\n font-weight: normal !important;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n vertical-align: -.125em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .bi-x::before { \n content: "62a"; \n }\n .bi-x-circle-fill::before { \n content: "622"; \n }\n '}},{key:"_setBackgroundOverlays",value:function(){var t=this;this.overlayElement=document.createElement("div"),this.overlayElement.classList.add("apx-inapp-overlay");var e=this.overlayElement;this.dim_background&&(this.dimBackgroundElement=document.createElement("div"),this.dimBackgroundElement.classList.add("apx-dimbackground-overlay"),e=this.dimBackgroundElement,this.overlayElement.appendChild(this.dimBackgroundElement)),this.dismiss_outside_touch&&(e.onclick=function(){t.closeCallback(t.overlayElement,"dismiss",".apx-inapp-container")}),document.body.appendChild(this.overlayElement)}},{key:"_setAutoTerminate",value:function(){var t=this;if(this.terminate_info.auto_dismiss){var e=this.terminate_info.duration,n=void 0===e?1e3:e;window.setTimeout((function(){t.closeCallback(t.overlayElement,"dismiss",".apx-inapp-container")}),n)}}},{key:"_createInAppContainer",value:function(){this.inAppContainer=document.createElement("div"),this.inAppContainer.classList.add("apx-inapp-container"),this.overlayElement.appendChild(this.inAppContainer)}},{key:"_createMediaContainer",value:function(){this.mediaContainer=document.createElement("div"),this.mediaContainer.classList.add("apx-inapp-media-container"),this.inAppContainer.appendChild(this.mediaContainer)}},{key:"_createNonMediaContainer",value:function(){this.nonMediaContainer=document.createElement("div"),this.nonMediaContainer.classList.add("apx-inapp-nonmedia-container"),this.inAppContainer.appendChild(this.nonMediaContainer)}},{key:"_createButtonContainer",value:function(){this.isToastTemplate&&(this.buttonContainer=document.createElement("div"),this.buttonContainer.classList.add("apx-inapp-button"),this.nonMediaContainer.appendChild(this.buttonContainer))}},{key:"_setTitleContent",value:function(){if(this.title_config){ht(this.title_config);var t=document.createElement("div");if(t.classList.add("apxor-title-div"),""!=this.title_icon_path){var e=document.createElement("span");e.classList.add("apxor-title-icon"),t.appendChild(e)}t.appendChild(vt(this.title_config,this.currentId,"title")),this.textContainer.appendChild(t)}}},{key:"_setDescriptionContent",value:function(){if(this.text_config){ht(this.text_config);var t=document.createElement("div");t.classList.add("apxor-inapp-description"),t.appendChild(vt(this.text_config,this.currentId,"description")),this.is_scrollable?t.classList.add("apxor-inapp-scrollable"):t.classList.add("apxor-inapp-nonscrollable"),this.textContainer.appendChild(t)}}},{key:"_setCTAButtons",value:function(){var t=this,e=this.overlayElement,n=function(n,i){t.closeCallback(e,i,".apx-inapp-container")},i={next:n,complete:n,cancel:n,_isCancelled:!1,action:""},o=yt(this.configId,this.name,X,this.buttons_config,this.button_position,this.button_direction,i);this.isToastTemplate?this.buttonContainer.appendChild(o):this.nonMediaContainer.appendChild(o)}},{key:"_setCloseButton",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"top-right";if((!this.isToastTemplate||"top-right"!==e)&&(this.isToastTemplate||"center-right"!==e)&&this.enable_close){var n=document.createElement("span");this.close_btn_type===z?n.innerHTML=_t(24,24,this.close_btn_color):this.close_btn_type===q?n.innerHTML=bt(24,24,this.close_btn_bg_color):n.innerHTML='<img src="'.concat(this.close_btn_path,'" width="24" height="24"></img>'),this.isToastTemplate?n.classList.add("apxor-inapp-footer-close"):n.classList.add("apxor-inapp-close"),n.addEventListener("click",(function(){t.closeCallback(t.overlayElement,"dismiss",".apx-inapp-container")})),this.isToastTemplate?this.buttonContainer.appendChild(n):this.inAppContainer.appendChild(n)}}},{key:"_setImageOnlyOptions",value:function(){this.inapp_type===P&&this.inAppContainer.classList.add("apxor-inapp-img-only")}},{key:"_setImageTextOptions",value:function(){if(this.inapp_type===B||this.inapp_type===I||this.inapp_type===O||this.inapp_type===D){var t=document.createElement("div"),e=document.createElement("img");e.src=this.inapp_type===I||this.inapp_type===O||this.inapp_type===D?this.icon_path:this.image_path,e.classList.add("apxor-inapp-img-txt"),t.appendChild(e),this.mediaContainer.appendChild(t)}}},{key:"_setVideoTextOptions",value:function(){if(this.video_embed){var t=document.createElement("div");return t.innerHTML="".concat(this.video_embed_html),t.classList.add("apxor-inapp-videoembed"),void this.mediaContainer.appendChild(t)}if(this.inapp_type===F){var e=document.createElement("div"),n=document.createElement("video");n.classList.add("apxor-inapp-video"),n.controlsList="noplaybackrate nodownload",n.disablePictureInPicture=!0,n.controls=!0;var i=document.createElement("source");i.setAttribute("src",this.video_path),i.setAttribute("type","video/mp4"),n.appendChild(i),e.appendChild(n),this.mediaContainer.appendChild(e)}}},{key:"_setIconTextOptions",value:function(){if(this.inapp_type===T){var t=document.createElement("div");t.classList.add("apxor-inapp-icon-container");var e=document.createElement("span");e.classList.add("apxor-inapp-icon-content"),t.appendChild(e),this.mediaContainer.appendChild(t)}if(this.inapp_type===N){var n=document.createElement("span");n.innerHTML=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"black",i="\n <svg width=".concat(t," height=").concat(e,' viewBox="0 0 24 25" fill=').concat(n,' xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M4.9677e-05 12.4997C4.9677e-05 19.4037 5.69015 25 12.7094 25C13.7874 25 14.8338 24.868 15.833 24.6198C19.39 23.7357 22.3492 21.3761 24 18.2428C23.0386 17.5157 22.4189 16.3726 22.4189 15.0871C22.4189 14.0284 22.8392 13.0666 23.5247 12.3538C20.8381 11.9736 18.9734 9.52329 19.36 6.88076C19.4574 6.21678 19.6873 5.60378 20.0199 5.06469C19.737 5.12616 19.4426 5.15904 19.1408 5.15904C16.9064 5.15904 15.0953 3.37773 15.0953 1.17975C15.0953 0.857176 15.1347 0.542966 15.2084 0.242291C14.4003 0.0838598 13.5651 0 12.71 0C5.62201 0 0 5.66313 0 12.4997L4.9677e-05 12.4997ZM5.22168 6.69355C6.23663 6.69355 7.05928 7.50263 7.05928 8.50084C7.05928 9.49904 6.23663 10.3081 5.22168 10.3081C4.20673 10.3081 3.38408 9.49904 3.38408 8.50084C3.38408 7.50239 4.20673 6.69355 5.22168 6.69355ZM13.3918 18.3986C14.4067 18.3986 15.2294 19.2076 15.2294 20.2058C15.2294 21.204 14.4067 22.0131 13.3918 22.0131C12.3768 22.0131 11.5542 21.204 11.5542 20.2058C11.5542 19.2076 12.3768 18.3986 13.3918 18.3986ZM11.5665 8.51224C11.5665 7.18122 12.6634 6.10269 14.0165 6.10269C15.3698 6.10269 16.4669 7.18146 16.4669 8.51224C16.4669 9.84327 15.3699 10.9218 14.0165 10.9218C12.6634 10.9218 11.5665 9.84327 11.5665 8.51224ZM7.01953 13.4173C8.40413 13.4173 9.52668 14.5214 9.52668 15.8831C9.52668 17.2449 8.40413 18.3489 7.01953 18.3489C5.63493 18.3489 4.51239 17.2449 4.51239 15.8831C4.5119 14.5216 5.63443 13.4173 7.01953 13.4173ZM18.2121 14.0029C19.227 14.0029 20.0497 14.812 20.0497 15.8102C20.0497 16.8084 19.227 17.6175 18.2121 17.6175C17.1971 17.6175 16.3745 16.8084 16.3745 15.8102C16.3745 14.8118 17.1971 14.0029 18.2121 14.0029Z" fill=').concat(n,"/>\n</svg>");return i}(24,24,this.icon_color),n.style.padding="8px",this.mediaContainer.appendChild(n)}}},{key:"_setTextContainer",value:function(){this.textContainer=document.createElement("div"),this.textContainer.classList.add("apxor-text-container"),this.nonMediaContainer.appendChild(this.textContainer)}},{key:"_setInAppModalContent",value:function(){this._createInAppContainer(),this._createMediaContainer(),this._setCloseButton(),this._setImageOnlyOptions(),this._setImageTextOptions(),this._setVideoTextOptions(),this._setIconTextOptions(),this._createNonMediaContainer(),this._setTextContainer(),this._setTitleContent(),this._setDescriptionContent(),this._createButtonContainer(),this._setCTAButtons(),this._setCloseButton("center-right")}},{key:"_showInApp",value:function(){this.inAppContainer.classList.toggle("open"),this.showCallback()}},{key:"createInAppModal",value:function(){this._setInAppModalDimensions(),this._setBackgroundOverlays(),this._setStyles(),this._setInAppModalContent(),this._setAutoTerminate(),this._showInApp()}}]),t}(),lo=window.ApxorLogger;var co=l((function t(){var n=this;a(this,t),c(this,"initialize",(function(t,e,i){var o=i.delay,r=i.layout_type,a=void 0===r?"":r,s=i.html_config.data,l=void 0===s?"":s,c=i.window_attributes,d=c.width,p=void 0===d?"auto":d,u=c.height,h=void 0===u?"auto":u,f=c.dimmed_background,v=void 0===f||f,g=c.dismiss_outside_touch,m=void 0!==g&&g,y=c.position,b=void 0===y?"center":y;return n.configId=t,n.name=e,n.delay=o,n.width=p,n.height=h,n.layoutConfig={layout_type:a,dimmed_background:v,dismiss_outside_touch:m,position:b},n.htmlConfig={data:l},a!==G&&a!==J&&""==n.htmlConfig.data?(n.isValid=!1,!1):(n.ui=i,n.rtmInstance=window.ApxorRTM,n.on_show=function(){n.rtmInstance.logActionEvent("inapp_shown",n.configId,n.name),n.rtmInstance.isShowingAction=!0,n.rtmInstance.currentAction=function(){}},n.on_hide=function(){n.rtmInstance.isShowingAction=!1,n.rtmInstance.currentAction=null,n.rtmInstance.logActionEvent("inapp_dismissed",n.configId,n.name)},!0)})),c(this,"showInApp",(function(){if(!n.isValid)return!1;setTimeout((function(){var t,e,i,o,r;if(null===n.rtmInstance.currentAction||void 0===n.rtmInstance.currentAction)try{if(Lo.getInstance().updateCount(n.configId),n.layoutConfig.layout_type===G)t=n.ui,e=n.configId,i=n.name,o=n.on_show,r=n.on_hide,ao.isAVideoBeingPlayed()||ao.canShowVideoInApp(t)&&new ao(t,e,i,o,r).showVideoInApp();else if(n.layoutConfig.layout_type===J)!function(t,e,n,i,o){new so(t,e,n,i,o).createInAppModal()}(n.ui,n.configId,n.name,n.on_show,n._closeInApp);else{var a=function(t,e,n){var i=n.dimmed_background,o=document.createElement("div");o.setAttribute("id","apx-oly");var r=document.createElement("style");r.innerHTML="#apx-oly {\n width:auto;height:auto;position:fixed;top:0;right:0;bottom:0;left:0;\n display:flex;justify-content:center;align-items:center;border-radius:3px;z-index:99999999;background-color:".concat(i?"#31313185":"transparent",";\n\n }\n #apx-oly > * {font-family:inherit;box-sizing:unset}\n .apx-dlg-c {\n height:auto;width:auto;z-index:99999999;opacity:0;transition:all .5s cubic-bezier(.96,.23,.07,.8);position:fixed;visibility:hidden;\n border-radius:3px;overflow:hidden\n }\n .apx-dlg-c.open{opacity:1;visibility:visible;width:100%;height:100%;}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var a=document.createElement("div");return a.setAttribute("id","apx-dlg-c"),a.classList.add("apx-dlg-c"),o.appendChild(a),o.appendChild(r),document.body.appendChild(o),o}(n.width,n.height,n.layoutConfig);n.layoutConfig.dismiss_outside_touch&&(document.getElementById("apx-oly").onclick=function(){n._closeInApp(a)}),setTimeout((function(){a.children[0].classList.toggle("open"),a.children[0].innerHTML=n.htmlConfig.data,n._logInAppEvent("inapp_shown"),n.on_show(),a.querySelectorAll("a").forEach((function(t){t.onclick=function(){return n._takeAction(a,t)}}))}),100)}}catch(t){lo.error(t)}else lo.error("An action is already being shown.")}),n.delay)})),c(this,"_takeAction",(function(t,i){var o=i.getAttribute("href");if(null!=o&&o.includes("apxor")){var r,a=o.replace(/^apxor:\/\/([^\?]*).*?$/,"$1");switch(a){case"cancel":n._logInAppEvent("walk_through_cancelled");break;case"xclose":n._logInAppEvent("InAppXIconClicked");break;case"close":r=o.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n._logInAppEvent(x(""===r?"Button":r));break;case"dl_url":var s=o.replace(/(.*?)uri=([^\&]*).*?$/,"$2"),l=o.replace(/(.*?)external=([^\&]*).*?$/,"$2");r=o.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n._logInAppEvent(x(""===r?"Button":r)),"true"==l?window.open(s,"_blank"):e.logClientEvent("REDIRECT",{url:s})}return n._closeInApp(t,a),!1}return!0})),c(this,"_closeInApp",(function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".apx-dlg-c";"cancel"!==e&&n._logInAppEvent("inapp_dismissed");var o=document.querySelector(i);o.classList.toggle("open"),setTimeout((function(){t.remove(),n.on_hide()}),300)})),c(this,"_logInAppEvent",(function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.rtmInstance.getCampaignMeta(n.configId),a=r._attr;e.logEvent(t,o(o({id:n.configId,message_name:n.name},i),a))})),this.isValid=!0})),po=l((function t(){a(this,t),c(this,"parse",(function(t,e,n){var i=new co;return i.initialize(t,e,n)?i:null}))})),uo=function(t){if(t.target){var e=t.target.classList,n=e.contains("apx-highlight")||-1!==e.toString().indexOf("apx-");e&&!n&&(t.target.classList.add("apx-highlight"),t.target.oldOnClick=t.target.onclick,t.target.onclick=null)}},ho=function(t){t.target&&t.target.classList&&t.target.classList.contains("apx-highlight")&&(t.target.classList.remove("apx-highlight"),t.target.onclick=t.target.oldOnClick,t.target.oldOnClick=null)};var fo="<b>View Selection Mode: ON",vo="<b>View Selection Mode: OFF</b>",go="https://server.apxor.com/v1/sse/",mo=go+"layout?appId=<aid>&deviceId=<uid>",yo=go+"ui-config?appId=<aid>&deviceId=<uid>",bo=go+"art-config?appId=<aid>&deviceId=<uid>",_o="https://server.apxor.com/v4/frontendapi/web/test-devices",xo=_o+"?appId=<aid>",wo=_o+"/<uid>?appId=<aid>",Co=l((function t(){var n=this;a(this,t),c(this,"_styleNode",null),c(this,"_viewPickerNode",null),c(this,"_addRemoveTestDeviceDialog",null),c(this,"_wysiwygRoot",null),c(this,"_vid",""),c(this,"init",(function(t,i){var o=function(t){if(window.document)for(var e=t+"=",n=window.document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(e))return decodeURIComponent(o.substring(e.length,o.length))}return null}("_apx_ewc");if(o){var r=atob(o);try{var a=e.getController().getFromStorage(r,!0);if(!a)return;var s=a.app_id,l=a.expiry,c=a.volatile_id;if(n._vid=c,s===t&&Date.now()<=l){var d=document.createElement("span");if(d.style="z-index:99999999;visibility:hidden;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:16px 24px;background:#252f37;border-radius:3px;opacity:0;font-size:24px;color:white;transition:all .3s ease-out",d.innerHTML=fo,n._viewPickerNode=d,document.body.appendChild(d),n._styleNode=document.createElement("style"),n._styleNode.innerHTML=".apx-highlight{height:auto;z-index:9999999999;outline: 2px solid red;cursor:default}",document.body.appendChild(n._styleNode),n.isSelectionMode=!1,n.testDeviceData=e.getController().getFromStorage("_apx_td",!0),n.testDeviceData){var p=n.testDeviceData,u=p.name,h=void 0===u?"":u,f=p.id,v=void 0===f?"":f;if(""!==h&&""!==v){n._makeSSERequest("select","".concat(h," - ").concat(v),v);var g=new EventSource(yo.replace("<aid>",t).replace("<uid>",v)),m=new EventSource(bo.replace("<aid>",t).replace("<uid>",v));g.onmessage=m.onmessage=function(t){t&&t.data&&"{}"!==t.data&&n._handleSSEResponse(i,t.data)}}}n._createDraggableWYSIWYGOverlay(i)}}catch(t){window.ApxorLogger.error("WYSIWYG can not be initialised")}}})),c(this,"tearDown",(function(){n._viewPickerNode.parentNode.removeChild(n._viewPickerNode),n._styleNode.parentNode.removeChild(n._styleNode)})),c(this,"_handleSSEResponse",(function(t,i){try{n._wysiwygRoot.dispatchEvent(new CustomEvent("preview"));var o=JSON.parse(i),r=o.cmd;if("prev"===(void 0===r?"prev":r))if(null!=o&&o.ui){var a=function t(e){return[Math.random,function(){return t.last?t.last+Math.random():Math.random()},Math.random,Date.now,Math.random].map((function(t){return t().toString(e||16+20*Math.random()).substr(-8)})).join("-")}(36),s={configs:[{_id:a,enabled:!0,terminate_info:{auto_dismiss:!1,duration:1e3},meta:{name:"APX-PR3VI3W-CAMPGAIN",type:o.type},ui:o.ui}]};t._storeConfigs("SURVEY"!==o.type?0:1,s),e.getController().dispatchEvent(o.type,{name:o.type,additional_info:{uuid:a,name:"APX-PR3VI3W-CAMPGAIN"}})}else if(null!=o&&o.messages){var l=[],c=[];o.messages.forEach((function(t){"SURVEY"!==t.meta.type?c.push(t):l.push(t)})),c.length>0&&t.handleResponse(0,{configs:c}),l.length>0&&t.handleResponse(1,{configs:l})}}catch(t){console.error(t)}})),c(this,"_createDraggableWYSIWYGOverlay",(function(t){var i=null!==n.testDeviceData&&void 0!==n.testDeviceData&&n.testDeviceData.id&&n.testDeviceData.name,o='\n<style>\n.apx-cr{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:10px}\n.apx-b{border:none;font-size:16px;font-family:inherit;padding:8px 14px;cursor:pointer}\n.apx-close:before{content:\'\\58\';font-size:9px;color:#969696;cursor:pointer;position:absolute;top:1px;right:3px}\n</style>\n<div>\n<svg class="apx-" id="apx-wr-h" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" preserveAspectRatio="xMidYMid meet" viewBox="280.6027397260274 189.52023061718432 89.75342465753425 54.49346801295263" width="60" height="40" style="width:40px;position:absolute;top:17px;left:50%;transform:translate(-50%, -50%);cursor:move;"><defs><path d="M304.6 201.52C304.6 208.14 299.23 213.52 292.6 213.52C285.98 213.52 280.6 208.14 280.6 201.52C280.6 194.9 285.98 189.52 292.6 189.52C299.23 189.52 304.6 194.9 304.6 201.52Z" id="e2aMl5NH8S"/><path d="M324.9 189.54C331.52 189.16 337.2 194.21 337.58 200.82C337.97 207.43 332.91 213.12 326.3 213.5C319.69 213.89 314.01 208.83 313.62 202.22C313.24 195.61 318.29 189.93 324.9 189.54Z" id="e2L4sySuvL"/><path d="M304.6 232.01C304.6 225.39 299.23 220.01 292.6 220.01C285.98 220.01 280.6 225.39 280.6 232.01C280.6 238.64 285.98 244.01 292.6 244.01C299.23 244.01 304.6 238.64 304.6 232.01Z" id="a5AJxVSDw"/><path d="M337.6 232.01C337.6 225.39 332.23 220.01 325.6 220.01C318.98 220.01 313.6 225.39 313.6 232.01C313.6 238.64 318.98 244.01 325.6 244.01C332.23 244.01 337.6 238.64 337.6 232.01Z" id="bjnangUBy"/><path d="M370.36 232.01C370.36 225.39 364.98 220.01 358.36 220.01C351.73 220.01 346.36 225.39 346.36 232.01C346.36 238.64 351.73 244.01 358.36 244.01C364.98 244.01 370.36 238.64 370.36 232.01Z" id="a8aeEZTAL0"/><path d="M369.36 201.52C369.36 194.9 363.98 189.52 357.36 189.52C350.73 189.52 345.36 194.9 345.36 201.52C345.36 208.14 350.73 213.52 357.36 213.52C363.98 213.52 369.36 208.14 369.36 201.52Z" id="a4VJpGfPPp"/></defs><g><g><g><use xlink:href="#e2aMl5NH8S" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#e2L4sySuvL" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a5AJxVSDw" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#bjnangUBy" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a8aeEZTAL0" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a4VJpGfPPp" opacity="1" fill="#000000" fill-opacity="1"/></g></g></g></svg>\n</div>\n<div class="apx-cr" style="gap:0;margin-top:20px;margin-bottom=20px;">\n <img class="apx-" width="54" height="54" src="https://f.hubspotusercontent10.net/hub/5329664/hubfs/Apxor%20X%20logo.png?width=108&height=108" />\n</div>\n<div id="apx-bh" class="apx-cr apx-bh" style="padding:8px 20px;">\n<button class="apx-b" id="apx-a" style="display:'.concat(i?"none":"block",'">Add as test device</button>\n<button class="apx-b" id="apx-r" style="display:').concat(i?"block":"none",'">Remove as test device</button>\n<button class="apx-b" id="apx-ev" style="display:').concat(i&&n.isSelectionMode?"none":i?"block":"none",'">Enable view selection</button>\n<button class="apx-b" id="apx-dv" style="display:').concat(i&&n.isSelectionMode?"block":"none",'">Disable view selection</button>\n</div>\n '),r=document.getElementById("apx-wr");r&&r.remove&&r.remove();var a=document.createElement("div");a.style="z-index:99999999;position:fixed;top:8px;right:8px;background:white;box-shadow:0px 0px 7px 7px black;border-radius:3px;padding:20px;border: 5px solid rgba(0, 0, 0, 0.7);",a.setAttribute("id","apx-wr"),a.innerHTML=o,document.body.appendChild(a),n._wysiwygRoot=a;var s=document.getElementById("apx-bh"),l=function(){a.style.opacity=.5,s.style.display="none"},c=setTimeout(l,3e3);a.addEventListener("mouseover",(function(){a.style.opacity=1,clearTimeout(c),s.style.display="flex"})),a.addEventListener("mouseout",(function(){c=setTimeout(l,3e3)}));var d=document.getElementById("apx-a"),p=document.getElementById("apx-r"),u=document.getElementById("apx-ev"),h=document.getElementById("apx-dv");d.onclick=function(){return n._showAddTestDeviceDialog(t)},p.onclick=function(){fetch(wo.replace("<aid>",e.getSiteId()).replace("<uid>",n.testDeviceData.id),{method:"DELETE",headers:{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"}}).then((function(t){return t.ok&&200===t.status?t.json():null})).then((function(t){t&&(e.getController().persistToStorage("_apx_td",{},!0),n.testDeviceData=null,d.style.display="block",p.style.display=u.style.display=h.style.display="none",n.isSelectionMode&&n._hideSelectionMode())})).catch((function(t){return console.error(t)}))},u.onclick=function(){n.isSelectionMode=!0,window.addEventListener("mouseover",uo,!0),window.addEventListener("mouseout",ho,!0),n.clickListener=function(t){return function(t,e){var n=t.target;n&&n.classList.contains("apx-highlight")&&(t.preventDefault(),t.stopPropagation(),n.classList.remove("apx-highlight"),n.onclick=n.oldOnClick,n.oldOnClick=null,e&&e(n))}(t,(function(t){var e=n.cssPath(t,!0),i=n.xPath(t,!0);n._makeSSERequest("view",location.href,e+"___"+i)}))},window.addEventListener("click",n.clickListener,!0),n._hideToast(!1),u.style.display="none",h.style.display="block"};var f=function(){n._hideSelectionMode(),h.style.display="none",u.style.display="block"};h.onclick=f,n._wysiwygRoot.addEventListener("preview",f),n._wysiwygRoot.addEventListener("added",(function(){d.style.display="none",p.style.display="block",s.style.display="flex",u.style.display="block"})),function(t){var e,n=window.innerHeight-8,i=8,o=window.innerWidth-8,r=8,a=0,s=0,l=0,c=0,d=document.getElementById(t.id+"-h");function p(n){n.preventDefault(),n.stopPropagation(),"touchstart"===(n=n||window.event).type?(l=n.targetTouches[0].pageX,c=n.targetTouches[0].pageY):(l=n.clientX,c=n.clientY),e=t.getBoundingClientRect(),document.addEventListener("mouseup",h),document.addEventListener("touchend",h,{passive:!1}),document.addEventListener("mousemove",u),document.addEventListener("touchmove",u,{passive:!1})}function u(d){d.preventDefault(),d.stopPropagation(),"touchmove"===(d=d||window.event).type?(a=l-d.targetTouches[0].pageX,s=c-d.targetTouches[0].pageY,l=d.targetTouches[0].pageX,c=d.targetTouches[0].pageY):(a=l-d.clientX,s=c-d.clientY,l=d.clientX,c=d.clientY);var p=t.offsetLeft-a,u=t.offsetTop-s;p<i||u<r||p+e.width>o||u+e.height>n||(t.style.top=t.offsetTop-s+"px",t.style.left=t.offsetLeft-a+"px",t.style.right="")}function h(){document.removeEventListener("mouseup",h),document.removeEventListener("touchend",h),document.removeEventListener("mousemove",u),document.removeEventListener("touchmove",u)}d?(d.addEventListener("mousedown",p),d.addEventListener("touchstart",p,{passive:!1})):(t.addEventListener("mousedown",p),t.addEventListener("touchstart",p,{passive:!1}))}(a)})),c(this,"_hideSelectionMode",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vo;if(n.isSelectionMode){window.removeEventListener("mouseover",uo,!0),window.removeEventListener("mouseout",ho,!0),window.removeEventListener("click",n.clickListener,!0);for(var e=document.querySelectorAll(".apx-highlight"),i=0;i<e.length;i++){var o=e[i];o.classList.remove("apx-highlight")}n._hideToast(!0,t),n.isSelectionMode=!1}})),c(this,"_hideToast",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vo;n._viewPickerNode.style.visibility="visible",t?(n._viewPickerNode.innerHTML=e,n._viewPickerNode.style.opacity=1):(n._viewPickerNode.innerHTML=fo,n._viewPickerNode.style.opacity=1),setTimeout((function(){n._viewPickerNode.style.opacity=0,n._viewPickerNode.style.visibility="hidden"}),1e3)})),c(this,"_showAddTestDeviceDialog",(function(t){var i=rt(500,20,{}),o=i.children[0];o.style.flex="0 1 auto",o.style.maxHeight="calc(100% - 96px)",o.style.display="flex",o.style.flexDirection="column";var r=e.getController().getDevInfo(),a=e.getController().getUserAttributes().apx_browser,s=r.hardware_model,l=r.os_version,c=r.id,d="\n".concat('<style>\n.apx-loading{\nbackground:#333 url(\'https://code.jquery.com/mobile/1.3.1/images/ajax-loader.gif\') no-repeat 50% 50%;\n-webkit-transition:background-color 0;transition:background-color 0;opacity: 1;\n-webkit-transition:opacity 1;transition:opacity 1\n}\n.apx-t{\nflex:0 0 auto;margin:0;padding:24px 24px 20px\n}\n.apx-tt{\ncolor:rgba(0,72,114,0.87);font-size:1.3125rem;font-weight:500;\nfont-family: \'Roboto\', \'Helvetica\', \'Arial\', sans-serif;line-height: 1.16667em;margin:0\n}\n.apx-c{\nflex:1 1 auto;padding:0 24px 24px;overflow-y: auto\n}\n.apx-de{\nline-height:1.5;color:rgba(0,72,114,0.54);font-size:1rem;font-weight:400;\nfont-family:"Roboto", "Helvetica", "Arial", sans-serif;margin:0;display:block\n}\n.apx-id{\nwidth:100%;margin-top:8px;margin-bottom:4px;margin:0;border:0;flex-direction:column;\ndisplay:inline-flex;padding:0;position:relative;min-width:0;vertical-align:top\n}\n.apx-il{\ntransition:color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms,transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;\ntransform:translate(0, 21px) scale(1);top:0;left:0;position:absolute;\ncolor:rgba(0,72,114, 0.54);padding: 0;font-size: 1rem;transform-origin:top left;\nfont-family: "Roboto", "Helvetica", "Arial", sans-serif;line-height: 1\n}\n.apx-il-f{\ntransform:translate(0, 1.5px) scale(0.75)\n}\nlabel + .apx-iid {\nmargin-top:16px;position:relative;width: 100%;color: rgba(0,72,114, 0.87);\ncursor: text;display: inline-flex;font-size: 1rem;\nfont-family:"Roboto", "Helvetica", "Arial", sans-serif;\nline-height: 1.1875em;align-items: center\n}\n.apx-iid.apx-iid-f:after{transform:scaleX(1)}\n.apx-iid:hover:before{border-bottom: 2px solid rgba(0,72,114, 0.87)}\n.apx-iid:before{\nleft: 0;right: 0;bottom: 0;content: \'\\00a0\';position: absolute;\ntransition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\nborder-bottom: 1px solid rgba(0, 0, 0, 0.42);pointer-events: none\n}\n.apx-iid:after{\nleft: 0;right: 0;bottom: 0;content: "";position: absolute;transform: scaleX(0);\ntransition: transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;\nborder-bottom: 2px solid rgb(44, 56, 126);pointer-events: none\n}\n.apx-ii{\npadding-top:3px;font: inherit;color: currentColor;width: 100%;border: 0;margin: 0;\ndisplay: block;min-width: 0;box-sizing: content-box;background: none;padding: 6px 0 7px;outline:0\n}\n.apx-ul{\npadding-top:8px;padding-bottom:8px;margin:0;padding:0;position:relative;list-style:none\n}\n.apx-li{\npadding-left:16px;padding-right:16px;width:100%;display:flex;list-style:none;\nposition:relative;box-sizing:border-box;text-align:left;align-items:center;\npadding-top:11px;padding-bottom:11px;justify-content:flex-start;text-decoration:none\n}\n.apx-lid:first-child{padding-left:0}\n.apx-lid{flex:1 1 auto;padding:0 16px;min-width:0}\n.apx-lids{\ncolor:rgba(0,72,114, 0.87);font-weight:400;line-height:1.5em;\nfont-family:"Roboto", "Helvetica", "Arial", sans-seriffont-size:1rem\n}\n.apx-a{\nflex:0 0 auto;margin:8px 4px;display:flex;align-items:center;justify-content:flex-end\n}\n.apx-b{\nfont-size:0.875rem;min-width:64px;box-sizing:border-box;min-height:36px;border:0;\ntransition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\nline-height:1.3125;font-weight:500;font-family:"Roboto", "Helvetica", "Arial", sans-serif;\nborder-radius:4px;text-transform:uppercase;cursor:pointer;display:inline-flex;outline:none;\nposition:relative;align-items:center;user-select:none;vertical-align:middle;\njustify-content:center;text-decoration:none;background-color:transparent\n}\n.apx-bl{\nwidth: 100%;display:inherit;align-items:inherit;justify-content:inherit\n}\n.apx-btr{\ntop:0;left:0;width:100%;height:100%;display:block;z-index:0;position:absolute;\noverflow:hidden;border-radius:inherit;pointer-events:none\n}</style>\n ','\n<div>\n <div class="apx-t"><h2 class="apx-tt">Set device nick name</h2></div>\n <div class="apx-c">\n <p class="apx-de">Give this device a nick name for easy identification</p>\n <div class="apx-id">\n <label class="apx-il">Nick name</label>\n <div class="apx-iid">\n <input class="apx-ii" type="text" id="apx-ii" value="">\n </div>\n </div>\n <ul class="apx-ul">\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Model <strong style="float:right">').concat(s," - ").concat(l,'</strong></span>\n </span>\n </div>\n </li>\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Browser <strong style="float:right">').concat(a,'</strong></span>\n </span>\n </div>\n </li>\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Device ID <strong style="float:right">').concat(c,'</strong></span>\n </span>\n </div>\n </li>\n </ul>\n </div>\n <div class="apx-a">\n <button id="apx-bc" class="apx-b"><span class="apx-bl" style="color:#295e8c6b">Cancel</span><span class="apx-btr"/></button>\n <button id="apx-bd" class="apx-b"><span class="apx-bl" style="color:#295e8c">Done</span><span class="apx-btr"/></button>\n </div>\n</div>\n ');i.style.visibility="hidden",o.style.visibility="hidden",o.innerHTML=d;var p,u,h=document.getElementById("apx-ii");n.testDeviceData&&(h.value=null!==(p=null===(u=n.testDeviceData)||void 0===u?void 0:u.name)&&void 0!==p?p:"");h.onfocus=function(){h.parentNode.classList.add("apx-iid-f"),h.parentNode.parentNode.children[0].classList.add("apx-il-f")},h.onblur=function(){h.parentNode.classList.remove("apx-iid-f"),h.parentNode.parentNode.children[0].classList.remove("apx-il-f")},h.oninput=function(){""!==h.value.trim()?v.removeAttribute("disabled"):v.setAttribute("disabled","")},setTimeout((function(){i.style.visibility="visible",o.style.visibility="visible",o.classList.toggle("open"),h.parentNode.parentNode.children[0].classList.add("apx-il-f")}),100);var f=function(){o.classList.toggle("open"),setTimeout((function(){i.parentNode.removeChild(i)}),400)};document.getElementById("apx-bc").onclick=function(){f()};var v=document.getElementById("apx-bd");v.onclick=function(){o.children[1].classList.add("apx-loading"),e.getController().makePostRequest(xo.replace("<aid>",e.getSiteId()),{model:s,id:c,nick_name:h.value},{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"},(function(){var i={id:c,name:h.value};e.getController().persistToStorage("_apx_td",i,!0),n.testDeviceData=i,n._makeSSERequest("select","".concat(h.value," - ").concat(c),c,(function(){o.children[1].classList.remove("apx-loading"),n._wysiwygRoot.dispatchEvent(new CustomEvent("added"))}));var r=new EventSource(yo.replace("<aid>",e.getSiteId()).replace("<uid>",c)),a=new EventSource(bo.replace("<aid>",e.getSiteId()).replace("<uid>",c));r.onmessage=a.onmessage=function(e){e&&e.data&&"{}"!==e.data&&n._handleSSEResponse(t,e.data)},f()}),(function(){}))}})),c(this,"_makeSSERequest",(function(t,i,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},s=e.getController().getDevInfo(),l={device_info:{id:s.id,hardware_model:s.hardware_model,os_version:s.os_version,width:s.dimensions.width,height:s.dimensions.height},screen:{image:t,navigation:i,orientation:o},layout:[]};e.getController().makePostRequest(mo.replace("<aid>",e.getSiteId()).replace("<uid>",n._vid),l,{},r,a)})),c(this,"cssPath",(function(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return"";for(var i=[],o=t;o;){var r=n._cssPathStep(o,!!e,o===t);if(!r)break;if(i.push(r),r.optimized)break;o=o.parentNode}return i.reverse(),i.join(" > ")})),c(this,"_cssPathStep",(function(t,e,n){if(t.nodeType!==Node.ELEMENT_NODE)return null;var i=t.getAttribute("id");if(e){if(i)return new Eo(l(i),!0);var o=t.nodeName.toLowerCase();if("body"===o||"head"===o||"html"===o)return new Eo(t.nodeName.toLowerCase(),!0)}var r=t.nodeName.toLowerCase();if(i)return new Eo(r.toLowerCase()+l(i),!0);var a=t.parentNode;if(!a||a.nodeType===Node.DOCUMENT_NODE)return new Eo(r.toLowerCase(),!0);function s(t){var e=t.getAttribute("class");return e?e.split(/\s+/g).filter(Boolean).map((function(t){return"$"+t})):[]}function l(t){return"#"+c(t)}function c(t){if(/^-?[a-zA-Z_][a-zA-Z0-9_-]*$/.test(t))return t;var e=/^(?:[0-9]|-[0-9-]?)/.test(t),n=t.length-1;return t.replace(/./g,(function(t,i){return e&&0===i||!function(t){return!!/[a-zA-Z0-9_-]/.test(t)||t.charCodeAt(0)>=160}(t)?function(t,e){return"\\"+function(t){var e=t.charCodeAt(0).toString(16);1===e.length&&(e="0"+e);return e}(t)+(e?"":" ")}(t,i===n):t}))}for(var d=s(t),p=!1,u=!1,h=-1,f=-1,v=a.children,g=0;(-1===h||!u)&&g<v.length;++g){var m=v[g];if(m.nodeType===Node.ELEMENT_NODE)if(f+=1,m!==t){if(!u&&m.nodeName.toLowerCase()===r.toLowerCase()){p=!0;var y=new Set(d);if(y.size)for(var b=s(m),_=0;_<b.length;++_){var x=b[_];if(y.has(x)&&(y.delete(x),!y.size)){u=!0;break}}else u=!0}}else h=f}var w=r.toLowerCase();if(n&&"input"===r.toLowerCase()&&t.getAttribute("type")&&!t.getAttribute("id")&&!t.getAttribute("class")&&(w+='[type="'+t.getAttribute("type")+'"]'),u)w+=":nth-child("+(h+1)+")";else if(p)for(var C in d)w+="."+c(d[C].substr(1));return new Eo(w,!1)})),c(this,"xPath",(function(t,e){if(t.nodeType===Node.DOCUMENT_NODE)return"/";for(var i=[],o=t;o;){var r=n._xPathValue(o,e);if(!r)break;if(i.push(r),r.optimized)break;o=o.parentNode}return i.reverse(),(i.length&&i[0].optimized?"":"/")+i.join("/")})),c(this,"_xPathValue",(function(t,e){var i,o=n._xPathIndex(t);if(-1===o)return null;switch(t.nodeType){case Node.ELEMENT_NODE:if(e&&t.getAttribute("id"))return new Eo('//*[@id="'+t.getAttribute("id")+'"]',!0);i=t.localName;break;case Node.ATTRIBUTE_NODE:i="@"+t.nodeName;break;case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:i="text()";break;case Node.PROCESSING_INSTRUCTION_NODE:i="processing-instruction()";break;case Node.COMMENT_NODE:i="comment()";break;case Node.DOCUMENT_NODE:default:i=""}return o>0&&(i+="["+o+"]"),new Eo(i,t.nodeType===Node.DOCUMENT_NODE)})),c(this,"_xPathIndex",(function(t){function e(t,e){return t===e||(t.nodeType===Node.ELEMENT_NODE&&e.nodeType===Node.ELEMENT_NODE?t.localName===e.localName:t.nodeType===e.nodeType||(t.nodeType===Node.CDATA_SECTION_NODE?Node.TEXT_NODE:t.nodeType)===(e.nodeType===Node.CDATA_SECTION_NODE?Node.TEXT_NODE:e.nodeType))}var n,i=t.parentNode?t.parentNode.children:null;if(!i)return 0;for(var o=0;o<i.length;++o)if(e(t,i[o])&&i[o]!==t){n=!0;break}if(!n)return 0;for(var r=1,a=0;a<i.length;++a)if(e(t,i[a])){if(i[a]===t)return r;++r}return-1}))})),Eo=function(t,e){this.value=t,this.optimized=e||!1};Eo.prototype={toString:function(){return this.value}};var ko=window.ApxorLogger,Ao=new(l((function t(){var n=this;a(this,t),c(this,"version",137),c(this,"_configs",{}),c(this,"isShowingAction",!1),c(this,"currentAction",null),c(this,"_surveys",new oo),c(this,"_inApp",new po),c(this,"_wysiwyg",new Co),c(this,"_afterPluginInit",null),c(this,"_eventsInDynamicText",{}),c(this,"_configSSEUrl",""),c(this,"init",(function(t){n._afterPluginInit=t;var i=e.getController(),o=Lo.getInstance(),r=e.getSiteId(),a=function(t,e){var n=function(n){return n.replace("<app_id>",t).replace("<u_id>",e)};return{rtaValidateUrl:n("https://server.apxor.com/v2/sync/<app_id>/configs/validate?platform=web&userId=<u_id>&actionType=rta&version=139"),rtaSyncUrl:n("https://server.apxor.com/v2/sync/<app_id>/rta?platform=web&userId=<u_id>&version=139"),surveysValidateUrl:n("https://server.apxor.com/v2/sync/<app_id>/configs/validate?platform=web&userId=<u_id>&actionType=survey&version=139"),surveysSyncUrl:n("https://server.apxor.com/v2/sync/<app_id>/surveys?platform=web&userId=<u_id>&version=139"),configSSEUrl:n("https://server.apxor.com/v1/sse/art-config?appId=<app_id>&deviceId=<u_id>&isExperiment=true"),testDevicesValidateUrl:n("https://server.apxor.com/v1/external/test-devices/validate?appId=<app_id>&deviceId=<u_id>")}}(r,e.getClientId()),s=a.rtaValidateUrl,l=a.rtaSyncUrl,c=a.surveysValidateUrl,d=a.surveysSyncUrl,p=a.configSSEUrl,u=a.testDevicesValidateUrl;n._configSSEUrl=p,o.initialize(),o.fetch(0,s,l,n.handleResponse),o.fetch(1,c,d,n.handleResponse),i.makeGetRequest(u,n.initiateTestSSE),i.registerForEvent("IN_LINE",n.handleInLine),i.registerForEvent("IN_APP",n.handleInApp),i.registerForEvent("SURVEY",n.handleSurvey),i.registerForEvent("ONBOARDING",n.handleOnboarding),n._wysiwyg.init(r,n),ko.debug("Registered for events")})),c(this,"show",(function(t,e,i,o){try{if("APX-PR3VI3W-CAMPGAIN"!==o&&n.getFrequencyCount(i)<=0)return void ko.error("Campaign limit reached");if(null!==n.currentAction&&void 0!==n.currentAction)return void ko.error("An action already being shown");var r=JSON.parse(t),a={};a.auto_dismiss=e>0,a.duration=e;var s=function(){"APX-PR3VI3W-CAMPGAIN"!==o&&(n.logActionEvent("inline_shown",i,o),n.updateCount(i)),n.isShowingAction=!0},l=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n.isShowingAction=!1,n.currentAction=null,t||n.logActionEvent("inline_dismissed",i,o)},c=r.display_type,d={configId:i,configName:o};"inline"===c?n.currentAction=zi(r,[],a,d,n,s,l):"coach_mark"===c?function(t,e,n,i,o,r){var a=window.ApxorRTM;if(null===a.currentAction||void 0===a.currentAction)if(t&&t.delay<=0){var s=Zi(t,e,n,i,o);r(s)}else setTimeout((function(){if(null===a.currentAction||void 0===a.currentAction){var s=Zi(t,e,n,i,o);r(s)}else window.ApxorLogger.error("An action is already being shown. Try after it gets dismissed")}),t.delay);else window.ApxorLogger.error("An action is already being shown. Try after it gets dismissed")}(r,d,a,s,l,(function(t){n.currentAction=t})):ko.error("Unknown type",c)}catch(t){n.currentAction=null,n.isShowingAction=!1,window.ApxorLogger.error(t)}})),c(this,"logActionEvent",(function(t,i,r){var a=n.getCampaignMeta(i)._attr;e.logEvent(t,o({id:i,message_name:r},a))})),c(this,"logClientEvent",(function(t,n){e.logClientEvent(t,n)})),c(this,"updateCount",(function(t){Lo.getInstance().updateCount(t)})),c(this,"getFrequencyCount",(function(t){Lo.getInstance().getFrequencyCount(t)})),c(this,"resetFrequencyCounts",(function(){Lo.getInstance().resetFrequencyCounts()})),c(this,"removeAll",(function(){if(null!==n.currentAction&&void 0!==n.currentAction){n.isShowingAction=!1;try{n.currentAction()}catch(t){}finally{n.currentAction=null}}})),c(this,"handleResponse",(function(t,e){""===t?(ko.debug("No configs available"),n._afterPluginInit&&n._afterPluginInit()):(ko.debug("Fetched config from server",t),n._storeConfigs(t,e),Lo.getInstance().parse(e),n._afterPluginInit&&n._afterPluginInit())})),c(this,"handleSSEResponse",(function(t,e){ko.debug("Fetched config from SSE"),e&&e.length>0&&(n._storeConfigs(t,{configs:e}),Lo.getInstance().parse({configs:e}))})),c(this,"initiateTestSSE",(function(t){var e;!0===(null==t||null===(e=t.data)||void 0===e?void 0:e.is_test_device)&&(new EventSource(n._configSSEUrl).onmessage=function(t){try{if(t&&t.data&&"{}"!==t.data&&null!=t&&t.data){var e=JSON.parse(null==t?void 0:t.data);n.handleSSEResponse(0,e.messages)}}catch(t){ko.error("SSE art-config parsing error:",t)}})})),c(this,"_storeConfigs",(function(t,e){if(tt(e)&&tt(e.configs)){var i=e.configs;if(!Array.isArray(i))return;for(var o=0;o<i.length;o++){var r=i[o],a=r._id,s=r.meta,l=s.name,c=s.type,d=r.ui;1===t?d=n._surveys.parse(a,l,d):"IN_APP"===c&&(d=n._inApp.parse(a,l,d)),null!==d?n._configs[a]={ui:d,uis:r.uis,terminationConfig:r.terminate_info,name:l}:console.warn("Failed to parse the config",a)}ko.debug("Configs: ",n._configs)}})),c(this,"handleInLine",(function(t){if(tt(t.additional_info)){var e=t.additional_info.uuid;if(n._configs[e]){var i=n._configs[e],o=i.ui,r=i.terminationConfig,a=i.name;n.show(JSON.stringify(o),r.auto_dismiss?r.duration:-1,e,a)}}})),c(this,"handleInApp",(function(t){if(tt(t.additional_info)){var e=t.additional_info.uuid;if(n._configs[e]){var i=n._configs[e].ui;setTimeout((function(){i.showInApp(e)}),0)}}})),c(this,"handleSurvey",(function(t){if(tt(t.additional_info)){var e=t.additional_info.uuid;if(n._configs[e]){n._configs[e].ui.showSurvey((function(t){n.updateCount(e),n.isShowingAction=!0,n.currentAction=t}),(function(){n.isShowingAction=!1,n.currentAction=null}))}}})),c(this,"handleOnboarding",(function(t){})),c(this,"getCampaignMeta",(function(t){var e;return null===(e=Lo.getInstance())||void 0===e?void 0:e.getCampaignMetaFromQueryEngine(t)}))})));window.ApxorRTM=Ao;var Lo=new(function(){function t(){a(this,t)}return l(t,[{key:"getInstance",value:function(){return(n||window["apxor-qe"]).getInstance()}}]),t}());try{void 0===t&&null===t||(t.default=Ao,module.exports=t.default)}catch(t){}t.ceWrapper=Lo,t.default=Ao,Object.defineProperty(t,"__esModule",{value:!0})}));
43
+ */;var css=".tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 8px);transition-timing-function:cubic-bezier(.165,.84,.44,1)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;line-height:1.4;background-color:#333;overflow:hidden;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top] .tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-8px}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-8px}.tippy-tooltip[data-placement^=left] .tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-8px}.tippy-tooltip[data-placement^=right] .tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-8px}.tippy-tooltip[data-arrow]{overflow:visible}.tippy-tooltip[data-animatefill]{background-color:transparent!important}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow{border-color:transparent;border-style:solid;position:absolute}.tippy-arrow[data-state=hidden]{opacity:0}.tippy-content{padding:.3125rem .5625rem}";function injectCSS(e){if(isBrowser$1){var t=document.createElement("style");t.textContent=e,t.setAttribute("data-tippy-stylesheet","");var n=document.head,i=n.querySelector("style,link");i?n.insertBefore(t,i):n.appendChild(t)}}injectCSS(css);var missingTippy="Using the attachment feature of Shepherd requires the Tippy.js library",addShepherdClass=_createClassModifier("shepherd"),addHasTitleClass=_createClassModifier("shepherd-has-title"),centeredStylePopperModifier={computeStyle:{enabled:!0,fn:function(e){return e.styles=_extends({},e.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),e}},addShepherdClass:addShepherdClass},defaultPopperOptions={positionFixed:!0,modifiers:{addShepherdClass:addShepherdClass}};function createFromHTML(e){var t=document.createElement("div");return t.innerHTML=e,t.children[0]}function debounce$2$1(e,t,n){var i;return function(){var o=this,r=arguments,a=function(){i=null,n||e.apply(o,r)},s=n&&!i;clearTimeout(i),i=setTimeout(a,t),s&&e.apply(o,r)}}function drop(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(e)?e.slice(t):[]}function setupTooltip(){if(isUndefined(tippy$1))throw new Error(missingTippy);this.tooltip&&this.tooltip.destroy();var e=this.parseAttachTo();this.tooltip=_makeTippyInstance.call(this,e),this.target=e.element||document.body,this.el.classList.add("shepherd-element")}function parseAttachTo(){var e=this.options.attachTo||{},t=_extends({},e);if(isString(e.element)){try{t.element=document.querySelector(e.element)}catch(e){}t.element||console.error("The element for this Shepherd step was not found ".concat(e.element))}return t}function _createClassModifier(e){return{enabled:!0,fn:function(t){return t.instance.popper.classList.add(e),t}}}function _makeTippyInstance(e){if(!e.element)return _makeCenteredTippy.call(this);var t=_makeAttachedTippyOptions.call(this,e);return tippy$1(e.element,t)}function _makeAttachedTippyOptions(e){var t={content:this.el,flipOnUpdate:!0,placement:e.on||"right"};return _extends(t,this.options.tippyOptions),this.options.title&&_extends(defaultPopperOptions.modifiers,{addHasTitleClass:addHasTitleClass}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&_extends(defaultPopperOptions,this.options.tippyOptions.popperOptions),t.popperOptions=defaultPopperOptions,t}function _makeCenteredTippy(){var e=_objectSpread2({content:this.el,placement:"top"},this.options.tippyOptions);e.arrow=!1,e.popperOptions=e.popperOptions||{},this.options.title&&_extends(defaultPopperOptions.modifiers,{addHasTitleClass:addHasTitleClass});var t=_extends({},defaultPopperOptions,e.popperOptions,{modifiers:_extends(centeredStylePopperModifier,e.popperOptions.modifiers)});return e.popperOptions=t,tippy$1(document.body,e)}var Evented=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"on",value:function(e,t,n){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];isUndefined(this.bindings)&&(this.bindings={}),isUndefined(this.bindings[e])&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:i})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){var n=this;if(isUndefined(this.bindings)||isUndefined(this.bindings[e]))return!1;isUndefined(t)?delete this.bindings[e]:this.bindings[e].forEach((function(i,o){i.handler===t&&n.bindings[e].splice(o,1)}))}},{key:"trigger",value:function(e){var t=this;if(!isUndefined(this.bindings)&&this.bindings[e]){var n=drop(Array.prototype.slice.call(arguments));this.bindings[e].forEach((function(i,o){var r=i.ctx,a=i.handler,s=i.once,c=r||t;a.apply(c,n),s&&t.bindings[e].splice(o,1)}))}}}]),e}();function _setupAdvanceOnHandler(e){var t=this;return function(n){if(t.isOpen()){var i=t.el&&n.target===t.el;(!isUndefined(e)&&n.target.matches(e)||i)&&t.tour.next()}}}function bindAdvance(){var e=this.options.advanceOn||{},t=e.event,n=e.selector;if(!t)return console.error("advanceOn was defined, but no event name was passed.");var i,o=_setupAdvanceOnHandler.call(this,n);try{i=document.querySelector(n)}catch(e){}if(!isUndefined(n)&&!i)return console.error("No element was found for the selector supplied to advanceOn: ".concat(n));i?(i.addEventListener(t,o),this.on("destroy",(function(){return i.removeEventListener(t,o)}))):(document.body.addEventListener(t,o,!0),this.on("destroy",(function(){return document.body.removeEventListener(t,o,!0)})))}function bindButtonEvents(e,t){var n=this;e.events=e.events||{},isUndefined(e.action)||(e.events.click=e.action),e.events&&Object.entries(e.events).forEach((function(e){var i=_slicedToArray(e,2),o=i[0],r=i[1];if(isString(r)){var a=r;r=function(){return n.tour.show(a)}}t.dataset.buttonEvent=!0,t.addEventListener(o,r),n.on("destroy",(function(){t.removeAttribute("data-button-event"),t.removeEventListener(o,r)}))}))}function bindCancelLink(e){var t=this;e.addEventListener("click",(function(e){e.preventDefault(),t.cancel()}))}function bindMethods(e){var t=this;e.map((function(e){t[e]=t[e].bind(t)}))}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var smoothscroll=createCommonjsModule((function(e,t){e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,i=e.HTMLElement||e.Element,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:i.prototype.scroll||s,scrollIntoView:i.prototype.scrollIntoView},r=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,a=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?f.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):o.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof$1(arguments[0])?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?o.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof$1(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):f.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},i.prototype.scroll=i.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var e=arguments[0].left,t=arguments[0].top;f.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==_typeof$1(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},i.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},i.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var n=u(this),i=n.getBoundingClientRect(),r=this.getBoundingClientRect();n!==t.body?(f.call(this,n,n.scrollLeft+r.left-i.left,n.scrollTop+r.top-i.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){if(null===e||"object"!==_typeof$1(e)||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"===_typeof$1(e)&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function l(e,t){return"Y"===t?e.clientHeight+a<e.scrollHeight:"X"===t?e.clientWidth+a<e.scrollWidth:void 0}function d(t,n){var i=e.getComputedStyle(t,null)["overflow"+n];return"auto"===i||"scroll"===i}function p(e){var t=l(e,"Y")&&d(e,"Y"),n=l(e,"X")&&d(e,"X");return t||n}function u(e){for(;e!==t.body&&!1===p(e);)e=e.parentNode||e.host;return e}function h(t){var n,i,o,a,s=(r()-t.startTime)/468;a=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*a)),i=t.startX+(t.x-t.startX)*n,o=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,i,o),i===t.x&&o===t.y||e.requestAnimationFrame(h.bind(e,t))}function f(n,i,a){var c,l,d,p,u=r();n===t.body?(c=e,l=e.scrollX||e.pageXOffset,d=e.scrollY||e.pageYOffset,p=o.scroll):(c=n,l=n.scrollLeft,d=n.scrollTop,p=s),h({scrollable:c,method:p,startTime:u,startX:l,startY:d,x:i,y:a})}}}}));smoothscroll.polyfill,smoothscroll.polyfill();var uniqueId=(id=0,function(){return++id}),id,Step=function(e){function t(e,n){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).tour=e,bindMethods.call(_assertThisInitialized(i),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),i.setOptions(n),i.bindAdvance=bindAdvance.bind(_assertThisInitialized(i)),i.bindButtonEvents=bindButtonEvents.bind(_assertThisInitialized(i)),i.bindCancelLink=bindCancelLink.bind(_assertThisInitialized(i)),i.setupTooltip=setupTooltip.bind(_assertThisInitialized(i)),i.parseAttachTo=parseAttachTo.bind(_assertThisInitialized(i)),_possibleConstructorReturn(i,_assertThisInitialized(i))}return _inherits(t,e),_createClass(t,[{key:"_addButtons",value:function(e){var t=this;if(Array.isArray(this.options.buttons)&&this.options.buttons.length){var n=document.createElement("footer");n.classList.add("shepherd-footer"),this.options.buttons.map((function(e){var i=createFromHTML('<button class="shepherd-button '.concat(e.classes||"",'" tabindex="0">').concat(e.text,"</button>"));n.appendChild(i),t.bindButtonEvents(e,i)})),e.appendChild(n)}}},{key:"_addCancelLink",value:function(e,t){if(this.options.showCancelLink){var n=createFromHTML('<a href class="shepherd-cancel-link"></a>');t.appendChild(n),e.classList.add("shepherd-has-cancel-link"),this.bindCancelLink(n)}}},{key:"_addContent",value:function(e,t){var n=createFromHTML('<div class="shepherd-text"\n id="'.concat(t,'"\n ></div>')),i=this.options.text;isFunction(i)&&(i=i.call(this,n)),i instanceof HTMLElement?n.appendChild(i):(isString(i)&&(i=[i]),i.map((function(e){n.innerHTML+="<p>".concat(e,"</p>")}))),e.appendChild(n)}},{key:"_addKeyDownHandler",value:function(e){var t=this,n=e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),i=_slicedToArray(n,1)[0],o=n[n.length-1];e.addEventListener("keydown",(function(e){switch(e.keyCode){case 9:if(1===n.length){e.preventDefault();break}e.shiftKey?document.activeElement===i&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),i.focus());break;case 27:t.cancel();break;case 37:t.tour.back();break;case 39:t.tour.next()}}))}},{key:"_createTooltipContent",value:function(){var e=document.createElement("div"),t=this.options.classes||"",n="".concat(this.id,"-description"),i="".concat(this.id,"-label"),o=createFromHTML('<div class="'.concat(t,'"\n data-shepherd-step-id="').concat(this.id,'"\n role="dialog"\n tabindex="0">')),r=document.createElement("header");if(this.options.title){var a=document.createElement("h3");a.classList.add("shepherd-title"),a.innerHTML="".concat(this.options.title),a.id=i,o.setAttribute("aria-labeledby",i),r.appendChild(a)}return e.classList.add("shepherd-content"),r.classList.add("shepherd-header"),o.appendChild(e),e.appendChild(r),isUndefined(this.options.text)||(this._addContent(e,n),o.setAttribute("aria-describedby",n)),this._addButtons(e),this._addCancelLink(o,r),o}},{key:"getTour",value:function(){return this.tour}},{key:"cancel",value:function(){this.tour.cancel(),this.trigger("cancel")}},{key:"complete",value:function(){this.tour.complete(),this.trigger("complete")}},{key:"destroy",value:function(){try{this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),isElement$2(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this.target&&this._updateStepTargetOnHide(),this.trigger("destroy")}catch(e){}}},{key:"hide",value:function(){this.tour.modal.hide(),this.trigger("before-hide"),document.body.removeAttribute("data-shepherd-step"),this.target&&this._updateStepTargetOnHide(),this.tooltip&&this.tooltip.hide(),this.trigger("hide")}},{key:"isOpen",value:function(){return Boolean(this.tooltip&&this.tooltip.state&&this.tooltip.state.isVisible)}},{key:"setupElements",value:function(){isUndefined(this.el)||this.destroy(),this.el=this._createTooltipContent(),this._addKeyDownHandler(this.el),this.options.advanceOn&&this.bindAdvance(),this.setupTooltip()}},{key:"scrollTo",value:function(e){var t=this.parseAttachTo().element;isFunction(this.options.scrollToHandler)?this.options.scrollToHandler(t):isElement$2(t)&&t.scrollIntoView(e)}},{key:"setOptions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t;var n=this.options.when;this.destroy(),this.id=this.options.id||"step-".concat(uniqueId()),n&&Object.entries(n).forEach((function(t){var n=_slicedToArray(t,2),i=n[0],o=n[1];e.on(i,o,e)}))}},{key:"show",value:function(){var e=this;if(isFunction(this.options.beforeShowPromise)){var t=this.options.beforeShowPromise();if(!isUndefined(t))return t.then((function(){return e._show()}))}this._show()}},{key:"_show",value:function(){var e=this;this.tour.beforeShowStep(this),this.trigger("before-show"),this.el||this.setupElements(),this.target.classList.add("shepherd-enabled","shepherd-target"),document.body.setAttribute("data-shepherd-step",this.id),this.options.scrollTo&&setTimeout((function(){e.scrollTo(e.options.scrollTo)})),this.tooltip.show(),this.trigger("show"),this.el.focus()}},{key:"_updateStepTargetOnHide",value:function(){this.options.highlightClass&&this.target.classList.remove(this.options.highlightClass),this.target.classList.remove("shepherd-enabled","shepherd-target")}}]),t}(Evented),svgNS="http://www.w3.org/2000/svg",elementIds={modalOverlay:"shepherdModalOverlayContainer",modalOverlayMask:"shepherdModalMask",modalOverlayMaskRect:"shepherdModalMaskRect",modalOverlayMaskOpening:"shepherdModalMaskOpening"},classNames={isVisible:"shepherd-modal-is-visible",modalTarget:"shepherd-modal-target"};function _createModalContainer(){var e=document.createElementNS(svgNS,"svg");return e.setAttributeNS(null,"id",elementIds.modalOverlay),e}function _createMaskContainer(){var e=document.createElementNS(svgNS,"mask");return _setAttributes(e,{height:"100%",id:elementIds.modalOverlayMask,width:"100%",x:"0",y:"0"}),e}function _createMaskRect(){var e=document.createElementNS(svgNS,"rect");return _setAttributes(e,{fill:"#FFFFFF",height:"100%",id:elementIds.modalOverlayMaskRect,width:"100%",x:"0",y:"0"}),e}function _createMaskOpening(){var e=document.createElementNS(svgNS,"rect");return _setAttributes(e,{fill:"#000000",id:elementIds.modalOverlayMaskOpening}),e}function _createMaskConsumer(){var e=document.createElementNS(svgNS,"rect");return _setAttributes(e,{height:"100%",width:"100%",x:"0",y:"0"}),e.setAttribute("mask","url(#".concat(elementIds.modalOverlayMask,")")),e}function createModalOverlay(){var e=_createModalContainer(),t=document.createElementNS(svgNS,"defs"),n=_createMaskContainer(),i=_createMaskRect(),o=_createMaskOpening(),r=_createMaskConsumer();return n.appendChild(i),n.appendChild(o),t.appendChild(n),e.appendChild(t),e.appendChild(r),e}function positionModalOpening(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.getBoundingClientRect&&t instanceof SVGElement){var i=e.getBoundingClientRect(),o=i.x,r=i.y,a=i.width,s=i.height,c=i.left,l=i.top;_setAttributes(t,{x:(o||c)-n,y:(r||l)-n,width:a+2*n,height:s+2*n})}}function closeModalOpening(e){e&&e instanceof SVGElement&&_setAttributes(e,{height:"0",x:"0",y:"0",width:"0"})}function getModalMaskOpening(e){return e.querySelector("#".concat(elementIds.modalOverlayMaskOpening))}function preventModalBodyTouch(e){e.preventDefault()}function preventModalOverlayTouch(e){e.stopPropagation()}function toggleShepherdModalClass(e){var t=document.querySelector("".concat(classNames.modalTarget));t&&t.classList.remove(classNames.modalTarget),e.classList.add(classNames.modalTarget)}function _setAttributes(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function getElementFromObject(e){var t=e.element;if(t instanceof HTMLElement)return t;if(t instanceof SVGElement)return t;try{return document.querySelector(t)}catch(e){}return null}function getElementForStep(e){var t=e.options.attachTo;if(!t)return null;var n=_typeof(t);return"string"===n?getElementFromString(t):"object"===n?getElementFromObject(t):null}function getElementFromString(e){var t=_slicedToArray(e.split(" "),1)[0];return document.querySelector(t)}function addStepEventListeners(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!0)),window.addEventListener("resize",this._onScreenChange,!1),window.addEventListener("scroll",this._onScreenChange,!0);var e=document.querySelector("#".concat(elementIds.modalOverlay));window.addEventListener("touchmove",preventModalBodyTouch,{passive:!1}),e&&e.addEventListener("touchmove",preventModalOverlayTouch,!1)}var Modal=function(){function e(t){return _classCallCheck(this,e),this.createModalOverlay(),this.options=t,this}return _createClass(e,[{key:"cleanup",value:function(){try{var e=this._modalOverlayElem;e&&e instanceof SVGElement&&e.parentNode.removeChild(e),this._modalOverlayElem=null,document.body.classList.remove(classNames.isVisible)}catch(e){}}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var e=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=e||createModalOverlay(),this._modalOverlayOpening=getModalMaskOpening(this._modalOverlayElem),this.hide(),e||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(classNames.isVisible),this._modalOverlayElem&&(this._modalOverlayElem.style.display="none")}},{key:"setupForStep",value:function(e){this.options.useModalOverlay?(this._styleForStep(e),this.show()):this.hide()}},{key:"show",value:function(){document.body.classList.add(classNames.isVisible),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(e){var t=this._modalOverlayOpening,n=getElementForStep(e),i=e.options.modalOverlayOpeningPadding;n?(positionModalOpening(n,t,i),this._onScreenChange=debounce$2$1(positionModalOpening.bind(this,n,t,i),0),addStepEventListeners.call(this)):closeModalOpening(this._modalOverlayOpening)}}]),e}(),hasPassiveEvents=!1;if("undefined"!=typeof window){var passiveTestOptions={get passive(){hasPassiveEvents=!0}};window.addEventListener("testPassive",null,passiveTestOptions),window.removeEventListener("testPassive",null,passiveTestOptions)}var isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),locks=[],documentListenerAdded=!1,initialClientY=-1,previousBodyOverflowSetting,previousBodyPaddingRight,allowTouchMove=function(e){return locks.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},preventDefault=function(e){var t=e||window.event;return!!allowTouchMove(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},setOverflowHidden=function(e){setTimeout((function(){if(void 0===previousBodyPaddingRight){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===previousBodyOverflowSetting&&(previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden")}))},restoreOverflowSetting=function(){setTimeout((function(){void 0!==previousBodyPaddingRight&&(document.body.style.paddingRight=previousBodyPaddingRight,previousBodyPaddingRight=void 0),void 0!==previousBodyOverflowSetting&&(document.body.style.overflow=previousBodyOverflowSetting,previousBodyOverflowSetting=void 0)}))},isTargetElementTotallyScrolled=function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight},handleScroll=function(e,t){var n=e.targetTouches[0].clientY-initialClientY;return!allowTouchMove(e.target)&&(t&&0===t.scrollTop&&n>0||isTargetElementTotallyScrolled(t)&&n<0?preventDefault(e):(e.stopPropagation(),!0))},disableBodyScroll=function(e,t){if(isIosDevice){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!locks.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};locks=[].concat(_toConsumableArray(locks),[n]),e.ontouchstart=function(e){1===e.targetTouches.length&&(initialClientY=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&handleScroll(t,e)},documentListenerAdded||(document.addEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!0)}}else{setOverflowHidden(t);var i={targetElement:e,options:t||{}};locks=[].concat(_toConsumableArray(locks),[i])}},clearAllBodyScrollLocks=function(){isIosDevice?(locks.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),documentListenerAdded&&(document.removeEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!1),locks=[],initialClientY=-1):(restoreOverflowSetting(),locks=[])},defaults={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function cleanupSteps(e){e&&e.steps.forEach((function(e){if(e.options&&!1===e.options.canClickTarget&&e.options.attachTo){var t=getElementForStep(e);t instanceof HTMLElement&&(t.style.pointerEvents="auto")}}))}function cleanupStepEventListeners(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",preventModalBodyTouch,{passive:!1})}var uniqueId$1=function(){var e=0;return function(){return++e}}(),Shepherd=new Evented,Tour=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,n)),bindMethods.call(_assertThisInitialized(e),["back","cancel","complete","hide","next"]),e.options=n,e.steps=e.options.steps||[];var i=["active","cancel","complete","inactive","show","start"];return i.map((function(t){var n;n=t,e.on(n,(function(t){(t=t||{}).tour=_assertThisInitialized(e),Shepherd.trigger(n,t)}))})),e.modal=new Modal(n),e._setTooltipDefaults(),e._setTourID(),_possibleConstructorReturn(e,_assertThisInitialized(e))}return _inherits(t,e),_createClass(t,[{key:"addStep",value:function(e,t){var n,i;return isUndefined(t)?i=e:(n=e,i=t),i instanceof Step?i.tour=this:i=this.setupStep(i,n),this.steps.push(i),i}},{key:"back",value:function(){var e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}},{key:"cancel",value:function(){if(this.options.confirmCancel){var e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(e)&&this.done("cancel")}else this.done("cancel")}},{key:"complete",value:function(){this.done("complete")}},{key:"done",value:function(e){Array.isArray(this.steps)&&this.steps.forEach((function(e){return e.destroy()})),cleanupStepEventListeners.call(this),cleanupSteps(this.tourObject),this.trigger(e),Shepherd.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&clearAllBodyScrollLocks(),this.modal.cleanup()}},{key:"getById",value:function(e){return this.steps.find((function(t){return t.id===e}))}},{key:"getCurrentStep",value:function(){return this.currentStep}},{key:"hide",value:function(){var e=this.getCurrentStep();if(e)return e.hide()}},{key:"isActive",value:function(){return Shepherd.activeTour===this}},{key:"next",value:function(){var e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}},{key:"removeStep",value:function(e){var t=this,n=this.getCurrentStep();this.steps.some((function(n,i){if(n.id===e)return n.isOpen()&&n.hide(),n.destroy(),t.steps.splice(i,1),!0})),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}},{key:"setupStep",value:function(e,t){return(isString(t)||isNumber(t))&&(e.id=t.toString()),e=_extends({},this.options.defaultStepOptions,e),new Step(this,e)}},{key:"beforeShowStep",value:function(e){this.modal.setupForStep(e),this._styleTargetElementForStep(e)}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=isString(e)?this.getById(e):this.steps[e];if(n){this._updateStateBeforeShow();var i=isFunction(n.options.showOn)&&!n.options.showOn();i?this._skipStep(n,t):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show())}}},{key:"start",value:function(){this.trigger("start"),this.options.disableScroll&&disableBodyScroll(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),Shepherd.activeTour=this}},{key:"_styleTargetElementForStep",value:function(e){var t=getElementForStep(e);t&&(toggleShepherdModalClass(t),e.options.highlightClass&&t.classList.add(e.options.highlightClass),!1===e.options.canClickTarget&&(t.style.pointerEvents="none"))}},{key:"_skipStep",value:function(e,t){var n=this.steps.indexOf(e),i=t?n+1:n-1;this.show(i,t)}},{key:"_setTooltipDefaults",value:function(){tippy$1.setDefaultProps(defaults)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var e=this.options.tourName||"tour",t=uniqueId$1();this.id="".concat(e,"--").concat(t)}},{key:"_addBodyAttrs",value:function(){document.body.setAttribute("data-shepherd-active-tour",this.id),document.body.classList.add("shepherd-active")}},{key:"_removeBodyAttrs",value:function(){document.body.removeAttribute("data-shepherd-active-tour"),document.body.classList.remove("shepherd-active")}}]),t}(Evented),ApxorWalkthroughTour;_extends(Shepherd,{Tour:Tour,Step:Step,Evented:Evented});var onClickCallback=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(o)try{ApxorWalkthroughTour.complete(),i&&e.logActionEvent("InlineTargetViewClicked",t,n)}catch(t){e.isShowingAction=!1,e.currentAction=null,console.error(t)}},getPropertyFrom=function(e){switch(e.toUpperCase()){case"TOP":return"top: -8px !important";case"LEFT":return"left: 0px !important";case"RIGHT":return"left: -0px !important";case"BOTTOM":return"top: 0px !important"}},addTourStep=function(e,t,n,i,o){var r,a=e.animation,s=void 0===a?{}:a,c=e.bg_color,l=void 0===c?"black":c,d=e.border,p=void 0===d?{}:d,u=e.buttons_config,h=void 0===u?[]:u,f=e.button_position,g=void 0===f?"right":f,m=e.button_direction,_=void 0===m?DIRECTION.HORIZONTAL:m,v=e.corners,y=void 0===v?{}:v,b=e.shadow,x=void 0===b?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":b,w=e.opacity,C=void 0===w?1:w,E=e.dismiss_outside_touch,T=void 0!==E&&E,O=e.escapeWithReference,S=void 0!==O&&O,A=e.dismiss_target_touch,I=void 0===A||A,k=e.position,L=void 0===k?"TOP":k,P=e.text_config,N=void 0===P?{}:P,R=e.title_config,M=void 0===R?{}:R,D=e.view_id,B=e.show_shadow,$=void 0!==B&&B,V=e.show_close_icon,F=void 0!==V&&V,H=e.dim_background_color,W=void 0===H?"#0a0a0a":H,j=e.dim_background_opacity,U=void 0===j?.5:j,z=e.layout_type,q=void 0===z?"default":z,Y=e.pb_color,G=void 0===Y?"orange":Y,Z=e.index,X=void 0===Z?0:Z,K=e.total,Q=void 0===K?1:K,J=e.iframe_id,ee=void 0===J?"":J,te=(null==N?void 0:N.alignment)||"center",ne=(null==M?void 0:M.alignment)||"center",ie=t.configId,oe=t.configName,re=generateButtons(h,ApxorWalkthroughTour,ie,oe),ae=re.buttons_array,se=re.buttons_css,ce={color:N.color,fontSize:N.size,fontFamily:N.font_family,fontStyle:N.style};if(N.margin_config&&Object.keys(N.margin_config).length>0){var le=N.margin_config;ce.margin="".concat(le.top,"px ").concat(le.right,"px ").concat(le.bottom,"px ").concat(le.left,"px")}var de=N.style;"bold"===de&&(ce.fontWeight=de);var pe,ue={color:M.color,fontSize:M.size,fontFamily:M.font_family,fontStyle:M.style};if(M.margin_config&&Object.keys(M.margin_config).length>0){var he=M.margin_config;ue.margin="".concat(he.top,"px ").concat(he.right,"px ").concat(he.bottom,"px ").concat(he.left,"px")}switch("bold"===(de=M.style)&&(ce.fontWeight=de),q){case"with_progress":pe='\n<div>\n <div style="height: 6px;background: '.concat(G,";width: ").concat((X+1)/Q*100,"%;border-radius: ").concat(y.enabled?y.width:0,'px;"></div>\n <header class="shepherd-header" style="').concat(M?"padding: 10px 10px 0 10px":"",'">\n ').concat(M?'<h3 class="shepherd-title" id="apxor-step-'.concat(X,'-label" style="padding: 0 !important;padding-right: 0.7em;text-align:').concat(ne,';">').concat(getStylisedText(null==M?void 0:M.text,null==M?void 0:M.segments,null==M?void 0:M.quote),"</h3>"):"",'\n </header>\n <p style="padding: 8px 10px;text-align:').concat(te,';">').concat(getStylisedText(null==N?void 0:N.text,null==N?void 0:N.segments,null==N?void 0:N.quote),"</p>\n</div>\n "),pe=(new DOMParser).parseFromString(pe,"text/html").body.children[0];break;default:pe=(null==N||null===(r=N.segments)||void 0===r?void 0:r.length)>0?getStylisedText(null==N?void 0:N.text,null==N?void 0:N.segments,null==N?void 0:N.quote):[N&&N.text?N.text:"Tap here"]}var fe={"border-radius":y.enabled?y.width:0,background:l,"border-color":p.color,"border-width":p.width},ge=getElementFromSelector(D,ee);if(ge){var me=document.createElement("span");me.setAttribute("id","apxor-style-"+ie+"-step-"+X);var _e=document.createElement("style");_e.innerHTML='\n#shepherdModalOverlayContainer {\n -ms-filter: "progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)";\n filter: alpha(opacity=50);height: 100vh;left: 0;opacity: '.concat(null!=U?U:.5,";position: fixed;\n top: 0;transition: all .3s ease-out;width: 100vw;z-index: 9997;fill: ").concat(null!=W?W:"transparent","\n}\n#shepherdModalOverlayContainer #shepherdModalMask, #shepherdModalOverlayContainer #shepherdModalMaskRect {\n height: 100vh;width: 100vw\n}\n.shepherd-modal.shepherd-enabled {\n position: relative;z-index: 9998\n}\n.shepherd-active.shepherd-modal-is-visible :not(.shepherd-target) {\n pointer-events: none\n}\n.shepherd-active.shepherd-modal-is-visible .shepherd-button, .shepherd-active.shepherd-modal-is-visible .shepherd-button *, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link *, .shepherd-active.shepherd-modal-is-visible .shepherd-element, .shepherd-active.shepherd-modal-is-visible .shepherd-element *, .shepherd-active.shepherd-modal-is-visible .shepherd-target, .shepherd-active.shepherd-modal-is-visible .shepherd-target * {\n pointer-events: auto\n}\n.tippy-popper.shepherd {\n z-index: 999999\n}\n.tippy-popper.shepherd[x-placement^=top] {\n margin-top: 0px\n}\n.tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: 8px\n}\n.tippy-popper.shepherd[x-placement^=left] {\n margin-right: 0px\n}\n.tippy-popper.shepherd[x-placement^=right] {\n margin-left: 0px\n}\n.tippy-popper.shepherd .tippy-tooltip .tippy-content {\n max-height: 100%;padding-top:0px;padding-bottom:0px;text-align: left;max-width: 400px;\n}\n.shepherd-element, .shepherd-element *, .shepherd-element:after, .shepherd-element :after, .shepherd-element:before, .shepherd-element :before {\n box-sizing: border-box\n}\n.shepherd-element {\n outline: none;\n}\n.shepherd-element .shepherd-content header {\n *zoom: 1;align-items: left;border-top-left-radius: 5px;border-top-right-radius: 5px;\n display: flex;justify-content: left;line-height: 2em;").concat(F?"padding: .75em;":"",'\n}\n.shepherd-element .shepherd-content header:after {\n clear: both;content: "";display: table\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link, .shepherd-element .shepherd-content header .shepherd-title {\n margin: 0;padding: 0;position: relative;vertical-align: middle\n}\n.shepherd-element .shepherd-content header .shepherd-title {\n text-align:').concat(ne,";\n color: ").concat(ue.color,";display: flex;flex: 1 0 auto;\n font-size: ").concat(ue.fontSize,"px;font-family: ").concat(ue.fontFamily,";\n font-weight: ").concat("bold"!==ue.fontStyle?"normal":ue.fontStyle,";font-style: ").concat("italic"===ue.fontStyle?"italic":"unset",";\n line-height: ").concat("default"===q?"26":"20",'px;letter-spacing:0.01em;padding: .7em;padding-bottom: 0px;max-width: 400px;\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link {\n color: hsla(0, 0%, 70.2%, .75);font-size: 2em;margin-left: auto;\n text-decoration: none;transition: color .5s ease\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link:before {\n mix-blend-mode: screen;content: "×"\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link:hover {\n mix-blend-mode: difference;\n}\n.shepherd-element .shepherd-content .shepherd-text {\n text-align:').concat(te,";\n line-height: 1em;").concat("default"===q?"padding:14px;padding-top:4px":"","\n}\n.shepherd-element .shepherd-content .shepherd-text a,\n.shepherd-element .shepherd-content .shepherd-text a:active,\n.shepherd-element .shepherd-content .shepherd-text a:visited {\n border-bottom: 1px dotted rgba(0, 0, 0, .75);color: ").concat(ce.color,";\n opacity: 0.75;text-decoration: none\n}\n.shepherd-element .shepherd-content .shepherd-text a:active:hover, \n.shepherd-element .shepherd-content .shepherd-text a:hover,\n.shepherd-element .shepherd-content .shepherd-text a:visited:hover {\n border-bottom-style: solid\n}\n.shepherd-element .shepherd-content .shepherd-text p {\n margin-top: 0\n}\n.shepherd-element .shepherd-content .shepherd-text p:last-child {\n margin-bottom: 0\n}\n.shepherd-content > .shepherd-text p {\n font-size: ").concat(ce.fontSize,"px;font-family: ").concat(ce.fontFamily,"; \n font-weight: ").concat("bold"!==ce.fontStyle?"normal":ce.fontStyle,";\n font-style: ").concat("italic"===ce.fontStyle?"italic":"unset",";\n color: ").concat(ce.color,";line-height: ").concat("default"===q?"26":"20","px;letter-spacing:0.01em;\n}\n").concat(getButtonsCSS(se,g,_,".shepherd-element .shepherd-content "),"\n@-webkit-keyframes cycle {\n 0% { transform: ").concat(translateDir(L,0),"; }\n 50% { transform: ").concat(translateDir(L,50),"; }\n 100% { transform: ").concat(translateDir(L,100),"; }\n}\n@keyframes cycle {\n 0% { transform: ").concat(translateDir(L,0),"; }\n 50% { transform: ").concat(translateDir(L,50),"; }\n 100% { transform: ").concat(translateDir(L,100),"; }\n}\n.tippy-tooltip.apxor-").concat(ie,"-step-").concat(X,"-theme {\n animation: ").concat(s.enabled?s.type+" 1000ms":"none",";\n animation-timing-function: ease-in-out;animation-iteration-count: infinite;\n box-shadow: ").concat($?x:"none",";color: ").concat(ce.color,";\n opacity: ").concat(C,";border-radius: ").concat(fe["border-radius"]+"px",";\n background-color: ").concat(fe.background,";").concat(getPropertyFrom(L),";\n}\n.apxor-").concat(ie,"-step-").concat(X,"-theme .tippy-roundarrow {\n fill: ").concat(fe.background,";\n}\n.tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(fe.background,";\n}\n.tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(fe.background,";\n}\n.tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(fe.background,";\n}\n.tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(fe.background,";\n}\n "),me.appendChild(_e),ge.parentNode.insertBefore(me,ge);var ve=function(){return onClickCallback(n,ie,oe,!0,I)},ye=function(){var e;try{var t;null===(t=ApxorWalkthroughTour)||void 0===t||t.complete()}catch(e){console.error(e)}xe.disconnect(),we.disconnect();try{var n,i=document.getElementById("apxor-style-"+ie+"-step-"+X);null==i||null===(n=i.parentNode)||void 0===n||n.removeChild(i)}catch(e){window.ApxorLogger.error("Error removing the tooltip styles:"+e)}try{var r,a=document.getElementById("shepherdModalOverlayContainer");null==a||null===(r=a.parentNode)||void 0===r||r.removeChild(a)}catch(e){window.ApxorLogger.error("Error removing the tooltip overlay:"+e)}o&&o(null===(e=ApxorWalkthroughTour)||void 0===e?void 0:e._isCancelled),ge.removeEventListener("click",ve)},be=!1,xe=new MutationObserver((function(){if(!document.body.contains(ge)){document.getElementById("shepherdModalOverlayContainer").remove();var e=document.getElementsByClassName("apxor-".concat(ie,"-step-").concat(X,"-theme"));e.length>0&&e[0]&&e[0].parentNode&&e[0].parentNode.remove(),ye()}})),we=new IntersectionObserver((function(){var e=isElementInViewport(ge);if(!e&&be){document.getElementById("shepherdModalOverlayContainer").remove();var t=document.getElementsByClassName("apxor-".concat(ie,"-step-").concat(X,"-theme"));t.length>0&&t[0]&&t[0].parentNode&&t[0].parentNode.remove(),ye()}e&&(be=!0)})),Ce=getStylisedText(null==M?void 0:M.text,null==M?void 0:M.segments,null==M?void 0:M.quote);ApxorWalkthroughTour.addStep("apxor-step-"+X,{title:"default"===q?""===Ce?null:Ce.outerHTML:null,text:pe,classes:"apxor-".concat(ie,"-step-").concat(X,"-theme"),attachTo:{element:ge,on:L.toLowerCase()},showCancelLink:F,buttons:ae,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:T,escapeWithReference:S,theme:"apxor-".concat(ie,"-step-").concat(X),onShow:function(){i&&i(),ge.addEventListener("click",ve),xe.observe(document.body,{childList:!0,subtree:!0}),we.observe(ge)},onHidden:ye}})}else console.warn("Element not found with id or path")},showTooltip=function(e,t,n,i,o,r,a){var s,c,l=Array.isArray(t)&&t.length>0,d=e.delay,p=e.dim_background,u=e.view_id,h=e.iframe_id,f=e.find_interval,g=void 0===f?0:f,m=e.max_find_interval,_=void 0===m?1e4:m,v=e.scrollToView,y=void 0!==v&&v;(null===(s=e.title_config)||void 0===s?void 0:s.text)===DYNAMIC_TEXT&&(e.title_config.isDynamicText?evaluateDynamicText(e.title_config):evaluateDynamicScript(e.title_config)),(null===(c=e.text_config)||void 0===c?void 0:c.text)===DYNAMIC_TEXT&&(e.text_config.isDynamicText?evaluateDynamicText(e.text_config):evaluateDynamicScript(e.text_config));var b=!1;y&&(b={behavior:"smooth",block:"center"}),ApxorWalkthroughTour=new Shepherd.Tour({defaultStepOptions:{scrollTo:b},useModalOverlay:l||p});var x=function(n){try{var s=n.getBoundingClientRect();if(0===s.width||0===s.height)return console.warn("Width and height are 0 for: ",u,". Can't show"),void(o.currentAction=null)}catch(e){return o.isShowingAction=!1,void(o.currentAction=null)}if(l?t.forEach((function(e){var t=e.ui;addTourStep(t,i,o,r,a)})):addTourStep(e,i,o,r,a),o.isShowingAction)window.ApxorLogger.error("An action already being shown");else try{ApxorWalkthroughTour.start(),o.isShowingAction=!0}catch(e){o.isShowingAction=!1,o.currentAction=null,console.error(e)}};return setTimeout((function(){var e=getElementFromSelector(u,h);e?x(e):(console.warn("Element with id:".concat(u," not found.")),g?(console.warn("Rechecking"),function(e){var t=new Date,n=setInterval((function(){var i=getElementFromSelector(e,h);i?(clearInterval(n),x(i)):new Date-t>_&&(clearInterval(n),console.warn("Element with id:".concat(e," not found.")),o.currentAction=null)}),g)}(u)):o.currentAction=null)}),d),!0===n.auto_dismiss&&setTimeout((function(){try{ApxorWalkthroughTour.complete()}catch(e){o.isShowingAction=!1,o.currentAction=null,console.error(e)}}),d+n.duration),ApxorWalkthroughTour.complete},DEFAULT_PADDING=5,currentId=makeid(10);function getDocumentOffsetPosition(e){var t=e.getBoundingClientRect(),n=t.left+window.scrollX,i=t.top+window.scrollY;return{left:n,top:i,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY,x:isDefined(t.x)?t.x+window.scrollX:n,y:isDefined(t.y)?t.y+window.scrollY:i,width:t.width,height:t.height}}function createTitleDescriptionButtons(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=null;if(!t&&e?c=createTextElement(e,currentId):t&&e&&((c=document.createElement("div")).style.display="inline-flex",c.style.flexDirection="column",c.style.visibility="hidden",c.style.textAlign=(null==e?void 0:e.alignment)||"center",c.style.lineHeight="26px",c.style.letterSpacing="0.01em",c.appendChild(createTextElement(t,currentId)),c.appendChild(createTextElement(e,currentId))),n&&n.length>0){var l=document.createElement("footer");l.className="shepherd-footer",l.style.zIndex=99999,l.style.margin="8px",l.style.padding="0";var d=function(){s&&s()},p=generateButtons(n,{next:d,complete:d,cancel:d},r,a),u=p.buttons_array,h=p.buttons_css,f=document.createElement("style");f.innerHTML=getButtonsCSS(h,i,o),l.appendChild(f),u.forEach((function(e){var t=e.classes,n=e.text,i=e.action,o=document.createElement("button");o.className="shepherd-button "+t,o.innerHTML=n,o.onclick=function(){return i()},l.appendChild(o)}));var g=document.createElement("div");g.style.display="inline-flex",g.style.flexDirection="column",g.style.visibility="hidden",g.appendChild(c),g.appendChild(l),c=g}return c.style.position="absolute",document.body.appendChild(c),c}function addRippleStyles(e,t,n){return"\n<style>\n.ripple-animator {\n position: relative;\n display: -webkit-box;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n flex-direction: row;\n -webkit-box-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n align-items: center;\n height: ".concat(n,"px !important;\n width: ").concat(t,"px !important;\n border-radius: ").concat("circle"===e?"100%":"0",";\n}\n.ripple-animator span {\n position: relative;\n font-size: 72px;\n top: 5px;left: -5px;\n}\n\n.ripple-animator:before,\n.ripple-animator:after {\n content: '';\n display: block;\n position: absolute;\n top: 0; \n right: 0; \n bottom: 0; \n left: 0;\n opacity:1;\n z-index:10;\n border: 0px solid white;\n border-radius: ").concat("circle"===e?"100%":"0%",";\n z-index: 99999;\n}\n\n.ripple-animator:before {\n animation: ripple 1s infinite ease-out;\n}\n\n@keyframes ripple{\n 0% { \n border: 0px solid white;\n transform: scale(0.8); \n }\n 100% { \n border: 20px solid white;\n transform: scale(1.5); \n opacity:0; \n }\n}\n</style>")}function createInnerCircle(e,t,n,i,o,r){var a=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),s=a,c=n-(a-e)/2,l=i-(a-t)/2;"circle"!=o&&(a=e,s=t,c=n,l=i);var d=document.createElement("div");return d.setAttribute("id",currentId+"-ripple-div"),r&&(d.innerHTML=addRippleStyles(o,a,s)),d.style.position="absolute",d.style.width="".concat(a,"px"),d.style.height="".concat(s,"px"),d.style.left="".concat(c,"px"),d.style.top="".concat(l,"px"),d.classList.add("ripple-animator"),d.style.borderRadius="".concat("circle"===o?"50%":"0"),d.style.visibility="hidden",document.body.appendChild(d),d}function getSVG(e,t){return'\n <svg\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'"\n class="apx-fade-in">\n <defs>\n <mask\n id="apx-mask"\n x="0"\n y="0"\n height="').concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'">\n ').concat(e,"\n </mask>\n </defs>\n ").concat(t,"\n </svg>\n ")}function getCircleSVG(e){var t=e.bg_color,n=e.opacity,i=e.innerRadius,o=e.innerCenterX,r=e.innerCenterY,a=e.outerRadius,s=e.outerCircleCenterX,c=e.outerCircleCenterY;return getSVG('\n <rect\n x="'.concat(s-a,'"\n y="').concat(c-a<0?0:c-a,'"\n height="').concat(2*a,'"\n width="').concat(2*a,'"\n fill="#fff" />\n <circle\n cx="').concat(o,'"\n cy="').concat(r,'"\n r="').concat(i,'" />\n '),'\n <circle\n cx="'.concat(s,'" \n cy="').concat(c,'" \n r="').concat(a,'" \n fill="').concat(t,'" \n fill-opacity="').concat(n,'"\n mask="url(#apx-mask)" />\n '))}function getRectangleSVG(e){var t=e.bg_color,n=e.opacity,i=e.targetElementLeft,o=e.targetElementTop,r=e.targetElementWidth,a=e.targetElementHeight;return getSVG('\n <rect\n x="0" y="0"\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'" \n fill="#fff" />\n <rect\n x="').concat(i,'" \n y="').concat(o,'" \n width="').concat(r,'" \n height="').concat(a,'" />\n '),'\n <rect\n x="0" y="0"\n height="'.concat(document.scrollingElement.scrollHeight,'" \n width="').concat(document.scrollingElement.scrollWidth,'" \n mask="url(#apx-mask)"\n fill="').concat(t,'" \n fill-opacity="').concat(n,'" />\n '))}function createSVGDiv(e){var t=e.opacity,n=e.type,i=document.createElement("div");i.setAttribute("id",currentId+"-svg"),i.style.position="absolute",i.style.left=0,i.style.top=0,i.style.zIndex=99998,i.style.width="100%",i.style.height="99%";var o="";return o="circle"===n?getCircleSVG(e):getRectangleSVG(e),i.innerHTML="\n <style>\n @keyframes apx-anim {\n from {\n opacity: 0;\n }\n\n to {\n opacity: ".concat(t,";\n }\n }\n .apx-fade-in {\n animation: apx-anim 0.4s linear;\n }\n </style>\n ").concat(o),document.body.appendChild(i),i}function showCoachmark(e,t,n,i,o){var r,a,s=e.bg_color,c=e.buttons_config,l=void 0===c?[]:c,d=e.button_position,p=e.button_direction,u=void 0===p?DIRECTION.HORIZONTAL:p,h=e.coach_mark_details,f=h.has_ripple,g=void 0!==f&&f,m=h.type,_=void 0===m?"circle":m,v=e.delay,y=e.dismiss_outside_touch,b=void 0!==y&&y,x=e.opacity,w=void 0===x?.8:x,C=e.position,E=void 0===C?"TOP":C,T=e.text_config,O=e.title_config,S=void 0===O?null:O,A=e.view_id,I=e.iframe_id,k=void 0===I?"":I,L=e.scroll_to_view,P=void 0!==L&&L,N=t.configId,R=t.configName;(null===(r=e.title_config)||void 0===r?void 0:r.text)===DYNAMIC_TEXT&&(e.title_config.isDynamicText?evaluateDynamicText(e.title_config):evaluateDynamicScript(e.title_config)),(null===(a=e.text_config)||void 0===a?void 0:a.text)===DYNAMIC_TEXT&&(e.text_config.isDynamicText?evaluateDynamicText(e.text_config):evaluateDynamicScript(e.text_config));var M=getElementFromSelector(A,k);if(M)if(currentId=makeid(10),P||isElementInViewport(M)){var D=!1,B=new MutationObserver((function(){document.body.contains(M)||Z()})),$=new IntersectionObserver((function(){var e=isElementInViewport(M);!e&&D&&Z(),e&&(D=!0)})),V=getDocumentOffsetPosition(M),F=V.left,H=void 0===F?0:F,W=V.top,j=void 0===W?0:W,U=V.width,z=void 0===U?0:U,q=V.height,Y=void 0===q?0:q,G=V.left<window.innerWidth/2;if(0!==Y&&0!==z){var Z=function(){B.disconnect(),$.disconnect(),he.parentNode.removeChild(he),X.parentNode.removeChild(X),te.parentNode.removeChild(te),o&&o(),fe&&clearTimeout(fe)},X=createTitleDescriptionButtons(T,S,l,d,u,N,R,Z),K=X.offsetWidth,Q=X.offsetHeight,J=0,ee=0;T&&T.margin_config&&(J=Number(T.margin_config.left)||0,ee=Number(T.margin_config.right)||0);var te=createInnerCircle(z,Y,H,j,_,g),ne=H+z/2,ie=j+Y/2,oe=Math.sqrt(Math.pow(z,2)+Math.pow(Y,2))/2,re=oe+Math.max(K,z)/2+2*DEFAULT_PADDING,ae=-1,se=-1,ce=-1,le=-1,de=ie-oe,pe=ie+oe;switch(E){case"TOP":se=(ce=ne-K/2)<0?DEFAULT_PADDING:ce,ae="circle"===_?ie-oe-Q-25:j-Q-25,le=pe-Math.abs(pe-ae)/2;break;case"BOTTOM":case"RIGHT":case"LEFT":se=(ce=ne-K/2)<0?DEFAULT_PADDING:ce,le=de+((ae="circle"===_?ie+oe+25:j+Y+25)+Q-de)/2}if(-1!==se&&-1!==ae&&-1!==le){!G&&se+K>window.innerWidth&&(se=window.innerWidth-K-J-ee-10),X.style.left="".concat(se,"px"),X.style.top="".concat(ae,"px");var ue=((ce=Math.min(H,se))+Math.max(H+z,se+K))/2;(ue=Math.min(ue,document.scrollingElement.scrollWidth))<0&&(ue=0),(le=Math.min(le,document.scrollingElement.scrollHeight))<0&&(le=0);var he=createSVGDiv({bg_color:s,opacity:w,innerRadius:oe,innerCenterX:ne,innerCenterY:ie,outerRadius:re,outerCircleCenterX:ue,outerCircleCenterY:le,targetElementLeft:H,targetElementTop:j,targetElementWidth:z,targetElementHeight:Y,type:_});he.style.visibility="hidden",te.style.visibility="hidden",X.style.visibility="hidden";var fe=null,ge=function(e){var t=!e,n=M.getBoundingClientRect();e&&e.clientX>=n.left&&e.clientX<=n.left+n.width&&e.clientY>=n.top&&e.clientY<=n.top+n.height&&(t=!0),(b||t)&&Z()};return n&&!0===n.auto_dismiss&&(fe=setTimeout((function(){return ge()}),v+n.duration)),he.style.visibility="visible",te.style.visibility="visible",X.style.visibility="visible",X.childElementCount>0&&(X.children[0].style.visibility="visible"),b&&he.addEventListener("click",ge),te.addEventListener("click",ge),P&&("TOP"===E?window.scrollTo({top:le-re,behavior:"smooth"}):"BOTTOM"===E&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,le+re),behavior:"smooth"})),B.observe(document.body,{childList:!0,subtree:!0}),$.observe(M),i&&i(),ge}console.warn("Failed to identify the right place for text")}else console.warn("Can't show on an invisible element: ",A)}else console.warn("Element ",A," not in viewport. Can't show");else console.warn("Element not found with id or path: ",A)}function showCoachmarkWithDelay(e,t,n,i,o,r){var a=window.ApxorRTM;if(null===a.currentAction||void 0===a.currentAction)if(e&&e.delay<=0){var s=showCoachmark(e,t,n,i,o);r(s)}else setTimeout((function(){if(null===a.currentAction||void 0===a.currentAction){var s=showCoachmark(e,t,n,i,o);r(s)}else window.ApxorLogger.error("An action is already being shown. Try after it gets dismissed")}),e.delay);else window.ApxorLogger.error("An action is already being shown. Try after it gets dismissed")}var STYLISED_EMOJI_5=['<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9046C0 4.88216 4.88188 3.24249e-05 10.9049 3.24249e-05C16.9267 3.24249e-05 21.8085 4.88216 21.8085 10.9046C21.8085 16.9269 16.9267 21.809 10.9049 21.809C4.88188 21.809 0 16.9269 0 10.9046Z" fill="#E5510A"/>\n <path d="M7.6916 8.87557C7.6916 9.62346 7.33083 10.2299 6.88691 10.2299C6.44426 10.2299 6.0835 9.62346 6.0835 8.87557C6.0835 8.12768 6.44426 7.52116 6.88691 7.52116C7.33083 7.52116 7.6916 8.12768 7.6916 8.87557Z" fill="black"/>\n <path d="M15.7255 8.87557C15.7255 9.62346 15.366 10.2299 14.9221 10.2299C14.4782 10.2299 14.1187 9.62346 14.1187 8.87557C14.1187 8.12768 14.4782 7.52116 14.9221 7.52116C15.366 7.52116 15.7255 8.12768 15.7255 8.87557Z" fill="black"/>\n <path d="M9.15239 6.99092L8.42062 7.72205L5.98096 5.28226L6.71273 4.55126L9.15239 6.99092Z" fill="black"/>\n <path d="M13.3882 7.72205L12.6577 6.99092L15.0974 4.55126L15.8279 5.28226L13.3882 7.72205Z" fill="black"/>\n <path d="M7 16.4995C8 12.4995 13 10.4995 15 16.4998" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.808594 10.9046C0.808594 4.88216 5.69048 3.24249e-05 11.7135 3.24249e-05C17.7353 3.24249e-05 22.6171 4.88216 22.6171 10.9046C22.6171 16.9269 17.7353 21.809 11.7135 21.809C5.69048 21.809 0.808594 16.9269 0.808594 10.9046Z" fill="#EA731D"/>\n <path d="M8.5002 8.87557C8.5002 9.62346 8.13942 10.2299 7.6955 10.2299C7.25286 10.2299 6.89209 9.62346 6.89209 8.87557C6.89209 8.12768 7.25286 7.52116 7.6955 7.52116C8.13942 7.52116 8.5002 8.12768 8.5002 8.87557Z" fill="black"/>\n <path d="M16.5341 8.87557C16.5341 9.62346 16.1746 10.2299 15.7307 10.2299C15.2867 10.2299 14.9272 9.62346 14.9272 8.87557C14.9272 8.12768 15.2867 7.52116 15.7307 7.52116C16.1746 7.52116 16.5341 8.12768 16.5341 8.87557Z" fill="black"/>\n <path d="M7.80859 16.4998C8.80859 12.4998 13.8086 10.4997 15.8086 16.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9046C0.234375 4.88216 5.11626 3.24249e-05 11.1393 3.24249e-05C17.161 3.24249e-05 22.0429 4.88216 22.0429 10.9046C22.0429 16.9269 17.161 21.809 11.1393 21.809C5.11626 21.809 0.234375 16.9269 0.234375 10.9046Z" fill="#F8C94F"/>\n <path d="M7.92598 8.87557C7.92598 9.62346 7.5652 10.2299 7.12128 10.2299C6.67864 10.2299 6.31787 9.62346 6.31787 8.87557C6.31787 8.12768 6.67864 7.52116 7.12128 7.52116C7.5652 7.52116 7.92598 8.12768 7.92598 8.87557Z" fill="black"/>\n <path d="M15.9599 8.87557C15.9599 9.62346 15.6004 10.2299 15.1564 10.2299C14.7125 10.2299 14.353 9.62346 14.353 8.87557C14.353 8.12768 14.7125 7.52116 15.1564 7.52116C15.6004 7.52116 15.9599 8.12768 15.9599 8.87557Z" fill="black"/>\n <path d="M7.73438 15.5002C9.73438 15.4999 11.7344 15.4997 14.7344 15.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.46875 10.9046C0.46875 4.88216 5.35063 3.24249e-05 11.3737 3.24249e-05C17.3954 3.24249e-05 22.2773 4.88216 22.2773 10.9046C22.2773 16.9269 17.3954 21.809 11.3737 21.809C5.35063 21.809 0.46875 16.9269 0.46875 10.9046Z" fill="#A3CF6A"/>\n <path d="M8.16035 8.87557C8.16035 9.62346 7.79958 10.2299 7.35566 10.2299C6.91301 10.2299 6.55225 9.62346 6.55225 8.87557C6.55225 8.12768 6.91301 7.52116 7.35566 7.52116C7.79958 7.52116 8.16035 8.12768 8.16035 8.87557Z" fill="black"/>\n <path d="M16.1942 8.87557C16.1942 9.62346 15.8347 10.2299 15.3908 10.2299C14.9469 10.2299 14.5874 9.62346 14.5874 8.87557C14.5874 8.12768 14.9469 7.52116 15.3908 7.52116C15.8347 7.52116 16.1942 8.12768 16.1942 8.87557Z" fill="black"/>\n <path d="M14.9688 13.375C14.4688 17.5002 7.96875 17.5003 7.46875 13.3751L14.9688 13.375Z" fill="black" stroke="black" stroke-linecap="round"/>\n </svg>\n ','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#7BB65C"/>\n <path d="M14.7344 13.3748C14.2344 17.5 7.73438 17.5 7.23438 13.3749L14.7344 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n <path d="M9.63644 8.10736L9.63732 8.09652C9.63732 7.41374 9.14286 6.78855 8.40031 6.78855C7.81043 6.78855 7.46866 7.21257 7.35155 7.60952C7.23531 7.21257 6.89266 6.78855 6.30278 6.78855C5.56023 6.78855 5.06665 7.41374 5.06665 8.09652V8.10736C5.06318 8.25596 5.06665 9.76759 7.35068 10.9997V11L7.35155 10.9998V11L7.35241 10.9998V11V10.9997C9.63731 9.76759 9.64078 8.25596 9.63644 8.10736Z" fill="#646A6E"/>\n <path d="M17.3357 8.10736V8.09652C17.3357 7.41374 16.8421 6.78855 16.0995 6.78855C15.5097 6.78855 15.1679 7.21257 15.0508 7.60952C14.9345 7.21257 14.5919 6.78855 14.002 6.78855C13.2595 6.78855 12.7659 7.41374 12.7659 8.09652V8.10736C12.7624 8.25596 12.7659 9.76759 15.0499 10.9997V11L15.0508 10.9998V11L15.0516 10.9998V11V10.9997C17.3365 9.76759 17.34 8.25596 17.3357 8.10736Z" fill="#646A6E"/>\n </svg>'],STYLISED_EMOJI_10=['<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9046C0 4.88216 4.88188 3.24249e-05 10.9049 3.24249e-05C16.9267 3.24249e-05 21.8085 4.88216 21.8085 10.9046C21.8085 16.9269 16.9267 21.809 10.9049 21.809C4.88188 21.809 0 16.9269 0 10.9046Z" fill="#E5510A"/>\n <path d="M7.6916 8.87557C7.6916 9.62346 7.33083 10.2299 6.88691 10.2299C6.44426 10.2299 6.0835 9.62346 6.0835 8.87557C6.0835 8.12768 6.44426 7.52116 6.88691 7.52116C7.33083 7.52116 7.6916 8.12768 7.6916 8.87557Z" fill="black"/>\n <path d="M15.7255 8.87557C15.7255 9.62346 15.366 10.2299 14.9221 10.2299C14.4782 10.2299 14.1187 9.62346 14.1187 8.87557C14.1187 8.12768 14.4782 7.52116 14.9221 7.52116C15.366 7.52116 15.7255 8.12768 15.7255 8.87557Z" fill="black"/>\n <path d="M9.15239 6.99092L8.42062 7.72205L5.98096 5.28226L6.71273 4.55126L9.15239 6.99092Z" fill="black"/>\n <path d="M13.3882 7.72205L12.6577 6.99092L15.0974 4.55126L15.8279 5.28226L13.3882 7.72205Z" fill="black"/>\n <path d="M7 16.4995C8 12.4995 13 10.4995 15 16.4998" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.808594 10.9046C0.808594 4.88216 5.69048 3.24249e-05 11.7135 3.24249e-05C17.7353 3.24249e-05 22.6171 4.88216 22.6171 10.9046C22.6171 16.9269 17.7353 21.809 11.7135 21.809C5.69048 21.809 0.808594 16.9269 0.808594 10.9046Z" fill="#EA731D"/>\n <path d="M8.5002 8.87557C8.5002 9.62346 8.13942 10.2299 7.6955 10.2299C7.25286 10.2299 6.89209 9.62346 6.89209 8.87557C6.89209 8.12768 7.25286 7.52116 7.6955 7.52116C8.13942 7.52116 8.5002 8.12768 8.5002 8.87557Z" fill="black"/>\n <path d="M16.5341 8.87557C16.5341 9.62346 16.1746 10.2299 15.7307 10.2299C15.2867 10.2299 14.9272 9.62346 14.9272 8.87557C14.9272 8.12768 15.2867 7.52116 15.7307 7.52116C16.1746 7.52116 16.5341 8.12768 16.5341 8.87557Z" fill="black"/>\n <path d="M7.80859 16.4998C8.80859 12.4998 13.8086 10.4997 15.8086 16.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.617188 10.9046C0.617188 4.88216 5.49907 3.24249e-05 11.5221 3.24249e-05C17.5439 3.24249e-05 22.4257 4.88216 22.4257 10.9046C22.4257 16.9269 17.5439 21.809 11.5221 21.809C5.49907 21.809 0.617188 16.9269 0.617188 10.9046Z" fill="#EA8F4D"/>\n <path d="M8.30879 8.87557C8.30879 9.62346 7.94802 10.2299 7.50409 10.2299C7.06145 10.2299 6.70068 9.62346 6.70068 8.87557C6.70068 8.12768 7.06145 7.52116 7.50409 7.52116C7.94802 7.52116 8.30879 8.12768 8.30879 8.87557Z" fill="black"/>\n <path d="M16.3427 8.87557C16.3427 9.62346 15.9832 10.2299 15.5393 10.2299C15.0953 10.2299 14.7358 9.62346 14.7358 8.87557C14.7358 8.12768 15.0953 7.52116 15.5393 7.52116C15.9832 7.52116 16.3427 8.12768 16.3427 8.87557Z" fill="black"/>\n <path d="M7.61719 15.4999C8.95052 13.0405 13.1172 11.9999 15.6172 15.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.425781 10.9046C0.425781 4.88216 5.30767 3.24249e-05 11.3307 3.24249e-05C17.3524 3.24249e-05 22.2343 4.88216 22.2343 10.9046C22.2343 16.9269 17.3524 21.809 11.3307 21.809C5.30767 21.809 0.425781 16.9269 0.425781 10.9046Z" fill="#F1B052"/>\n <path d="M8.11738 8.87557C8.11738 9.62346 7.75661 10.2299 7.31269 10.2299C6.87004 10.2299 6.50928 9.62346 6.50928 8.87557C6.50928 8.12768 6.87004 7.52116 7.31269 7.52116C7.75661 7.52116 8.11738 8.12768 8.11738 8.87557Z" fill="black"/>\n <path d="M16.1513 8.87557C16.1513 9.62346 15.7918 10.2299 15.3479 10.2299C14.9039 10.2299 14.5444 9.62346 14.5444 8.87557C14.5444 8.12768 14.9039 7.52116 15.3479 7.52116C15.7918 7.52116 16.1513 8.12768 16.1513 8.87557Z" fill="black"/>\n <path d="M8.42578 15.5002C9.92578 14.0001 12.4258 14.0001 13.9258 15.5001" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9046C0.234375 4.88216 5.11626 3.24249e-05 11.1393 3.24249e-05C17.161 3.24249e-05 22.0429 4.88216 22.0429 10.9046C22.0429 16.9269 17.161 21.809 11.1393 21.809C5.11626 21.809 0.234375 16.9269 0.234375 10.9046Z" fill="#F8C94F"/>\n <path d="M7.92598 8.87557C7.92598 9.62346 7.5652 10.2299 7.12128 10.2299C6.67864 10.2299 6.31787 9.62346 6.31787 8.87557C6.31787 8.12768 6.67864 7.52116 7.12128 7.52116C7.5652 7.52116 7.92598 8.12768 7.92598 8.87557Z" fill="black"/>\n <path d="M15.9599 8.87557C15.9599 9.62346 15.6004 10.2299 15.1564 10.2299C14.7125 10.2299 14.353 9.62346 14.353 8.87557C14.353 8.12768 14.7125 7.52116 15.1564 7.52116C15.6004 7.52116 15.9599 8.12768 15.9599 8.87557Z" fill="black"/>\n <path d="M7.73438 15.5002C9.73438 15.4999 11.7344 15.4997 14.7344 15.5" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9046C0 4.88216 4.88188 3.20353e-05 10.9049 3.20353e-05C16.9267 3.20353e-05 21.8085 4.88216 21.8085 10.9046C21.8085 16.9269 16.9267 21.809 10.9049 21.809C4.88188 21.809 0 16.9269 0 10.9046Z" fill="#F8C94F"/>\n <path d="M7.6916 8.87557C7.6916 9.62346 7.33083 10.2299 6.88691 10.2299C6.44426 10.2299 6.0835 9.62346 6.0835 8.87557C6.0835 8.12768 6.44426 7.52116 6.88691 7.52116C7.33083 7.52116 7.6916 8.12768 7.6916 8.87557Z" fill="black"/>\n <path d="M15.7255 8.87557C15.7255 9.62346 15.366 10.2299 14.9221 10.2299C14.4782 10.2299 14.1187 9.62346 14.1187 8.87557C14.1187 8.12768 14.4782 7.52116 14.9221 7.52116C15.366 7.52116 15.7255 8.12768 15.7255 8.87557Z" fill="black"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.0429688 10.9046C0.0429688 4.88216 4.92485 3.24249e-05 10.9479 3.24249e-05C16.9696 3.24249e-05 21.8515 4.88216 21.8515 10.9046C21.8515 16.9269 16.9696 21.809 10.9479 21.809C4.92485 21.809 0.0429688 16.9269 0.0429688 10.9046Z" fill="#F6DE4F"/>\n <path d="M7.73457 8.87557C7.73457 9.62346 7.3738 10.2299 6.92987 10.2299C6.48723 10.2299 6.12646 9.62346 6.12646 8.87557C6.12646 8.12768 6.48723 7.52116 6.92987 7.52116C7.3738 7.52116 7.73457 8.12768 7.73457 8.87557Z" fill="black"/>\n <path d="M15.7685 8.87557C15.7685 9.62346 15.409 10.2299 14.965 10.2299C14.5211 10.2299 14.1616 9.62346 14.1616 8.87557C14.1616 8.12768 14.5211 7.52116 14.965 7.52116C15.409 7.52116 15.7685 8.12768 15.7685 8.87557Z" fill="black"/>\n <path d="M13.543 14.3751C12.043 15.8751 9.54297 15.8751 8.04297 14.3751" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.851562 10.9046C0.851562 4.88216 5.73345 3.24249e-05 11.7565 3.24249e-05C17.7782 3.24249e-05 22.6601 4.88216 22.6601 10.9046C22.6601 16.9269 17.7782 21.809 11.7565 21.809C5.73345 21.809 0.851562 16.9269 0.851562 10.9046Z" fill="#D7D55A"/>\n <path d="M8.54316 8.87557C8.54316 9.62346 8.18239 10.2299 7.73847 10.2299C7.29582 10.2299 6.93506 9.62346 6.93506 8.87557C6.93506 8.12768 7.29582 7.52116 7.73847 7.52116C8.18239 7.52116 8.54316 8.12768 8.54316 8.87557Z" fill="black"/>\n <path d="M16.577 8.87557C16.577 9.62346 16.2176 10.2299 15.7736 10.2299C15.3297 10.2299 14.9702 9.62346 14.9702 8.87557C14.9702 8.12768 15.3297 7.52116 15.7736 7.52116C16.2176 7.52116 16.577 8.12768 16.577 8.87557Z" fill="black"/>\n <path d="M15.3516 14.3749C13.8516 17.0001 9.85156 17.0002 7.85156 14.375" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.660156 10.9046C0.660156 4.88216 5.54204 3.24249e-05 11.5651 3.24249e-05C17.5868 3.24249e-05 22.4687 4.88216 22.4687 10.9046C22.4687 16.9269 17.5868 21.809 11.5651 21.809C5.54204 21.809 0.660156 16.9269 0.660156 10.9046Z" fill="#B7CF6A"/>\n <path d="M8.35176 8.87557C8.35176 9.62346 7.99099 10.2299 7.54706 10.2299C7.10442 10.2299 6.74365 9.62346 6.74365 8.87557C6.74365 8.12768 7.10442 7.52116 7.54706 7.52116C7.99099 7.52116 8.35176 8.12768 8.35176 8.87557Z" fill="black"/>\n <path d="M16.3856 8.87557C16.3856 9.62346 16.0262 10.2299 15.5822 10.2299C15.1383 10.2299 14.7788 9.62346 14.7788 8.87557C14.7788 8.12768 15.1383 7.52116 15.5822 7.52116C16.0262 7.52116 16.3856 8.12768 16.3856 8.87557Z" fill="black"/>\n <path d="M15.1602 13.375C14.6602 17.5002 8.16016 17.5003 7.66016 13.3751" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.46875 10.9046C0.46875 4.88216 5.35063 3.24249e-05 11.3737 3.24249e-05C17.3954 3.24249e-05 22.2773 4.88216 22.2773 10.9046C22.2773 16.9269 17.3954 21.809 11.3737 21.809C5.35063 21.809 0.46875 16.9269 0.46875 10.9046Z" fill="#A3CF6A"/>\n <path d="M8.16035 8.87557C8.16035 9.62346 7.79958 10.2299 7.35566 10.2299C6.91301 10.2299 6.55225 9.62346 6.55225 8.87557C6.55225 8.12768 6.91301 7.52116 7.35566 7.52116C7.79958 7.52116 8.16035 8.12768 8.16035 8.87557Z" fill="black"/>\n <path d="M16.1942 8.87557C16.1942 9.62346 15.8347 10.2299 15.3908 10.2299C14.9469 10.2299 14.5874 9.62346 14.5874 8.87557C14.5874 8.12768 14.9469 7.52116 15.3908 7.52116C15.8347 7.52116 16.1942 8.12768 16.1942 8.87557Z" fill="black"/>\n <path d="M14.9688 13.375C14.4688 17.5002 7.96875 17.5003 7.46875 13.3751L14.9688 13.375Z" fill="black" stroke="black" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9042C0 4.8818 4.88188 -0.000333786 10.9049 -0.000333786C16.9267 -0.000333786 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#7BB65C"/>\n <path d="M14.5 13.3748C14 17.5 7.5 17.5 7 13.3749L14.5 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n <path d="M9.40207 8.10736L9.40294 8.09652C9.40294 7.41374 8.90848 6.78855 8.16593 6.78855C7.57606 6.78855 7.23428 7.21257 7.11718 7.60952C7.00094 7.21257 6.65828 6.78855 6.06841 6.78855C5.32586 6.78855 4.83227 7.41374 4.83227 8.09652V8.10736C4.8288 8.25596 4.83227 9.76759 7.1163 10.9997V11L7.11718 10.9998V11L7.11804 10.9998V11V10.9997C9.40294 9.76759 9.40641 8.25596 9.40207 8.10736Z" fill="#646A6E"/>\n <path d="M17.1013 8.10736V8.09652C17.1013 7.41374 16.6077 6.78855 15.8652 6.78855C15.2753 6.78855 14.9335 7.21257 14.8164 7.60952C14.7001 7.21257 14.3575 6.78855 13.7676 6.78855C13.0251 6.78855 12.5315 7.41374 12.5315 8.09652V8.10736C12.528 8.25596 12.5315 9.76759 14.8155 10.9997V11L14.8164 10.9998V11L14.8173 10.9998V11V10.9997C17.1022 9.76759 17.1056 8.25596 17.1013 8.10736Z" fill="#646A6E"/>\n </svg>'],STYLISED_EMOJI_GREY_10=['<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9042C0 4.8818 4.88188 -0.000334176 10.9049 -0.000334176C16.9267 -0.000334176 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.69209 8.87521C7.69209 9.6231 7.33132 10.2295 6.88739 10.2295C6.44475 10.2295 6.08398 9.6231 6.08398 8.87521C6.08398 8.12732 6.44475 7.52079 6.88739 7.52079C7.33132 7.52079 7.69209 8.12732 7.69209 8.87521Z" fill="#646A6F"/>\n <path d="M15.726 8.87521C15.726 9.6231 15.3665 10.2295 14.9226 10.2295C14.4786 10.2295 14.1191 9.6231 14.1191 8.87521C14.1191 8.12732 14.4786 7.52079 14.9226 7.52079C15.3665 7.52079 15.726 8.12732 15.726 8.87521Z" fill="#646A6F"/>\n <path d="M9.1519 6.99055L8.42013 7.72168L5.98047 5.28189L6.71224 4.55089L9.1519 6.99055Z" fill="#646A6F"/>\n <path d="M13.3887 7.72168L12.6582 6.99055L15.0979 4.55089L15.8284 5.28189L13.3887 7.72168Z" fill="#646A6F"/>\n <path d="M7 16.4997C8 12.4996 13 10.4996 15 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.808594 10.9042C0.808594 4.8818 5.69048 -0.000334176 11.7135 -0.000334176C17.7353 -0.000334176 22.6171 4.8818 22.6171 10.9042C22.6171 16.9266 17.7353 21.8086 11.7135 21.8086C5.69048 21.8086 0.808594 16.9266 0.808594 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.50068 8.87521C8.50068 9.6231 8.13991 10.2295 7.69599 10.2295C7.25334 10.2295 6.89258 9.6231 6.89258 8.87521C6.89258 8.12732 7.25334 7.52079 7.69599 7.52079C8.13991 7.52079 8.50068 8.12732 8.50068 8.87521Z" fill="#646A6F"/>\n <path d="M16.5346 8.87521C16.5346 9.6231 16.1751 10.2295 15.7312 10.2295C15.2872 10.2295 14.9277 9.6231 14.9277 8.87521C14.9277 8.12732 15.2872 7.52079 15.7312 7.52079C16.1751 7.52079 16.5346 8.12732 16.5346 8.87521Z" fill="#646A6F"/>\n <path d="M7.80859 16.4997C8.80859 12.4996 13.8086 10.4996 15.8086 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.617188 10.9042C0.617188 4.8818 5.49907 -0.000334176 11.5221 -0.000334176C17.5439 -0.000334176 22.4257 4.8818 22.4257 10.9042C22.4257 16.9266 17.5439 21.8086 11.5221 21.8086C5.49907 21.8086 0.617188 16.9266 0.617188 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.30928 8.87521C8.30928 9.6231 7.9485 10.2295 7.50458 10.2295C7.06194 10.2295 6.70117 9.6231 6.70117 8.87521C6.70117 8.12732 7.06194 7.52079 7.50458 7.52079C7.9485 7.52079 8.30928 8.12732 8.30928 8.87521Z" fill="#646A6F"/>\n <path d="M16.3432 8.87521C16.3432 9.6231 15.9837 10.2295 15.5398 10.2295C15.0958 10.2295 14.7363 9.6231 14.7363 8.87521C14.7363 8.12732 15.0958 7.52079 15.5398 7.52079C15.9837 7.52079 16.3432 8.12732 16.3432 8.87521Z" fill="#646A6F"/>\n <path d="M7.61719 15.4995C8.95052 13.0401 13.1172 11.9996 15.6172 15.4996" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.425781 10.9042C0.425781 4.8818 5.30767 -0.000333786 11.3307 -0.000333786C17.3524 -0.000333786 22.2343 4.8818 22.2343 10.9042C22.2343 16.9266 17.3524 21.8086 11.3307 21.8086C5.30767 21.8086 0.425781 16.9266 0.425781 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.11787 8.87521C8.11787 9.6231 7.7571 10.2295 7.31318 10.2295C6.87053 10.2295 6.50977 9.6231 6.50977 8.87521C6.50977 8.12732 6.87053 7.52079 7.31318 7.52079C7.7571 7.52079 8.11787 8.12732 8.11787 8.87521Z" fill="#646A6F"/>\n <path d="M16.1518 8.87521C16.1518 9.6231 15.7923 10.2295 15.3483 10.2295C14.9044 10.2295 14.5449 9.6231 14.5449 8.87521C14.5449 8.12732 14.9044 7.52079 15.3483 7.52079C15.7923 7.52079 16.1518 8.12732 16.1518 8.87521Z" fill="#646A6F"/>\n <path d="M8.42578 15.5001C9.92578 14 12.4258 14 13.9258 15.5" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.92647 8.87521C7.92647 9.6231 7.56569 10.2295 7.12177 10.2295C6.67912 10.2295 6.31836 9.6231 6.31836 8.87521C6.31836 8.12732 6.67912 7.52079 7.12177 7.52079C7.56569 7.52079 7.92647 8.12732 7.92647 8.87521Z" fill="#646A6F"/>\n <path d="M15.9603 8.87521C15.9603 9.6231 15.6009 10.2295 15.1569 10.2295C14.713 10.2295 14.3535 9.6231 14.3535 8.87521C14.3535 8.12732 14.713 7.52079 15.1569 7.52079C15.6009 7.52079 15.9603 8.12732 15.9603 8.87521Z" fill="#646A6F"/>\n <path d="M7.73438 15.5003C9.73438 15.5 11.7344 15.4998 14.7344 15.5001" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.92647 8.87521C7.92647 9.6231 7.56569 10.2295 7.12177 10.2295C6.67912 10.2295 6.31836 9.6231 6.31836 8.87521C6.31836 8.12732 6.67912 7.52079 7.12177 7.52079C7.56569 7.52079 7.92647 8.12732 7.92647 8.87521Z" fill="#646A6F"/>\n <path d="M15.9603 8.87521C15.9603 9.6231 15.6009 10.2295 15.1569 10.2295C14.713 10.2295 14.3535 9.6231 14.3535 8.87521C14.3535 8.12732 14.713 7.52079 15.1569 7.52079C15.6009 7.52079 15.9603 8.12732 15.9603 8.87521Z" fill="#646A6F"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.0429688 10.9042C0.0429688 4.8818 4.92485 -0.000333786 10.9479 -0.000333786C16.9696 -0.000333786 21.8515 4.8818 21.8515 10.9042C21.8515 16.9266 16.9696 21.8086 10.9479 21.8086C4.92485 21.8086 0.0429688 16.9266 0.0429688 10.9042Z" fill="#D9DCDE"/>\n <path d="M7.73506 8.87521C7.73506 9.6231 7.37429 10.2295 6.93036 10.2295C6.48772 10.2295 6.12695 9.6231 6.12695 8.87521C6.12695 8.12732 6.48772 7.52079 6.93036 7.52079C7.37429 7.52079 7.73506 8.12732 7.73506 8.87521Z" fill="#646A6F"/>\n <path d="M15.7689 8.87521C15.7689 9.6231 15.4095 10.2295 14.9655 10.2295C14.5216 10.2295 14.1621 9.6231 14.1621 8.87521C14.1621 8.12732 14.5216 7.52079 14.9655 7.52079C15.4095 7.52079 15.7689 8.12732 15.7689 8.87521Z" fill="#646A6F"/>\n <path d="M13.543 14.3749C12.043 15.875 9.54297 15.875 8.04297 14.375" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.851562 10.9042C0.851562 4.8818 5.73345 -0.000333786 11.7565 -0.000333786C17.7782 -0.000333786 22.6601 4.8818 22.6601 10.9042C22.6601 16.9266 17.7782 21.8086 11.7565 21.8086C5.73345 21.8086 0.851562 16.9266 0.851562 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.54365 8.87521C8.54365 9.6231 8.18288 10.2295 7.73896 10.2295C7.29631 10.2295 6.93555 9.6231 6.93555 8.87521C6.93555 8.12732 7.29631 7.52079 7.73896 7.52079C8.18288 7.52079 8.54365 8.12732 8.54365 8.87521Z" fill="#646A6F"/>\n <path d="M16.5775 8.87521C16.5775 9.6231 16.218 10.2295 15.7741 10.2295C15.3302 10.2295 14.9707 9.6231 14.9707 8.87521C14.9707 8.12732 15.3302 7.52079 15.7741 7.52079C16.218 7.52079 16.5775 8.12732 16.5775 8.87521Z" fill="#646A6F"/>\n <path d="M15.3516 14.3748C13.8516 17 9.85156 17 7.85156 14.3749" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.660156 10.9042C0.660156 4.8818 5.54204 -0.000333786 11.5651 -0.000333786C17.5868 -0.000333786 22.4687 4.8818 22.4687 10.9042C22.4687 16.9266 17.5868 21.8086 11.5651 21.8086C5.54204 21.8086 0.660156 16.9266 0.660156 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.35225 8.87521C8.35225 9.6231 7.99147 10.2295 7.54755 10.2295C7.10491 10.2295 6.74414 9.6231 6.74414 8.87521C6.74414 8.12732 7.10491 7.52079 7.54755 7.52079C7.99147 7.52079 8.35225 8.12732 8.35225 8.87521Z" fill="#646A6F"/>\n <path d="M16.3861 8.87521C16.3861 9.6231 16.0266 10.2295 15.5827 10.2295C15.1388 10.2295 14.7793 9.6231 14.7793 8.87521C14.7793 8.12732 15.1388 7.52079 15.5827 7.52079C16.0266 7.52079 16.3861 8.12732 16.3861 8.87521Z" fill="#646A6F"/>\n <path d="M15.1602 13.3748C14.6602 17.5 8.16016 17.5 7.66016 13.3749" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0.46875 10.9042C0.46875 4.8818 5.35063 -0.000333786 11.3737 -0.000333786C17.3954 -0.000333786 22.2773 4.8818 22.2773 10.9042C22.2773 16.9266 17.3954 21.8086 11.3737 21.8086C5.35063 21.8086 0.46875 16.9266 0.46875 10.9042Z" fill="#D9DCDE"/>\n <path d="M8.16084 8.87521C8.16084 9.6231 7.80007 10.2295 7.35614 10.2295C6.9135 10.2295 6.55273 9.6231 6.55273 8.87521C6.55273 8.12732 6.9135 7.52079 7.35614 7.52079C7.80007 7.52079 8.16084 8.12732 8.16084 8.87521Z" fill="#646A6F"/>\n <path d="M16.1947 8.87521C16.1947 9.6231 15.8352 10.2295 15.3913 10.2295C14.9474 10.2295 14.5879 9.6231 14.5879 8.87521C14.5879 8.12732 14.9474 7.52079 15.3913 7.52079C15.8352 7.52079 16.1947 8.12732 16.1947 8.87521Z" fill="#646A6F"/>\n <path d="M14.9688 13.3748C14.4688 17.5 7.96875 17.5 7.46875 13.3749L14.9688 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n </svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 10.9042C0 4.8818 4.88188 -0.000333786 10.9049 -0.000333786C16.9267 -0.000333786 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n <path d="M14.5 13.3748C14 17.5 7.5 17.5 7 13.3749L14.5 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n <path d="M9.40207 8.10736L9.40294 8.09652C9.40294 7.41374 8.90848 6.78855 8.16593 6.78855C7.57606 6.78855 7.23428 7.21257 7.11718 7.60952C7.00094 7.21257 6.65828 6.78855 6.06841 6.78855C5.32586 6.78855 4.83227 7.41374 4.83227 8.09652V8.10736C4.8288 8.25596 4.83227 9.76759 7.1163 10.9997V11L7.11718 10.9998V11L7.11804 10.9998V11V10.9997C9.40294 9.76759 9.40641 8.25596 9.40207 8.10736Z" fill="#646A6E"/>\n <path d="M17.1013 8.10736V8.09652C17.1013 7.41374 16.6077 6.78855 15.8652 6.78855C15.2753 6.78855 14.9335 7.21257 14.8164 7.60952C14.7001 7.21257 14.3575 6.78855 13.7676 6.78855C13.0251 6.78855 12.5315 7.41374 12.5315 8.09652V8.10736C12.528 8.25596 12.5315 9.76759 14.8155 10.9997V11L14.8164 10.9998V11L14.8173 10.9998V11V10.9997C17.1022 9.76759 17.1056 8.25596 17.1013 8.10736Z" fill="#646A6E"/>\n </svg>'],STYLISED_EMOJI_GREY_5=['<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0 10.9042C0 4.8818 4.88188 -0.000334176 10.9049 -0.000334176C16.9267 -0.000334176 21.8085 4.8818 21.8085 10.9042C21.8085 16.9266 16.9267 21.8086 10.9049 21.8086C4.88188 21.8086 0 16.9266 0 10.9042Z" fill="#D9DCDE"/>\n<path d="M7.69209 8.87521C7.69209 9.6231 7.33132 10.2295 6.88739 10.2295C6.44475 10.2295 6.08398 9.6231 6.08398 8.87521C6.08398 8.12732 6.44475 7.52079 6.88739 7.52079C7.33132 7.52079 7.69209 8.12732 7.69209 8.87521Z" fill="#646A6F"/>\n<path d="M15.726 8.87521C15.726 9.6231 15.3665 10.2295 14.9226 10.2295C14.4786 10.2295 14.1191 9.6231 14.1191 8.87521C14.1191 8.12732 14.4786 7.52079 14.9226 7.52079C15.3665 7.52079 15.726 8.12732 15.726 8.87521Z" fill="#646A6F"/>\n<path d="M9.1519 6.99055L8.42013 7.72168L5.98047 5.28189L6.71224 4.55089L9.1519 6.99055" fill="#646A6F"/>\n<path d="M13.3887 7.72168L12.6582 6.99055L15.0979 4.55089L15.8284 5.28189L13.3887 7.72168" fill="#646A6F"/>\n<path d="M7 16.4997C8 12.4996 13 10.4996 15 16.4999" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.808594 10.9042C0.808594 4.8818 5.69048 -0.000333786 11.7135 -0.000333786C17.7353 -0.000333786 22.6171 4.8818 22.6171 10.9042C22.6171 16.9266 17.7353 21.8086 11.7135 21.8086C5.69048 21.8086 0.808594 16.9266 0.808594 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.50068 8.87521C8.50068 9.6231 8.13991 10.2295 7.69599 10.2295C7.25334 10.2295 6.89258 9.6231 6.89258 8.87521C6.89258 8.12732 7.25334 7.52079 7.69599 7.52079C8.13991 7.52079 8.50068 8.12732 8.50068 8.87521Z" fill="#646A6F"/>\n<path d="M16.5346 8.87521C16.5346 9.6231 16.1751 10.2295 15.7312 10.2295C15.2872 10.2295 14.9277 9.6231 14.9277 8.87521C14.9277 8.12732 15.2872 7.52079 15.7312 7.52079C16.1751 7.52079 16.5346 8.12732 16.5346 8.87521Z" fill="#646A6F"/>\n<path d="M7.80859 15.4995C9.14193 13.0401 13.3086 11.9996 15.8086 15.4996" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.617188 10.9042C0.617188 4.8818 5.49907 -0.000333786 11.5221 -0.000333786C17.5439 -0.000333786 22.4257 4.8818 22.4257 10.9042C22.4257 16.9266 17.5439 21.8086 11.5221 21.8086C5.49907 21.8086 0.617188 16.9266 0.617188 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.30928 8.87521C8.30928 9.6231 7.9485 10.2295 7.50458 10.2295C7.06194 10.2295 6.70117 9.6231 6.70117 8.87521C6.70117 8.12732 7.06194 7.52079 7.50458 7.52079C7.9485 7.52079 8.30928 8.12732 8.30928 8.87521Z" fill="#646A6F"/>\n<path d="M16.3432 8.87521C16.3432 9.6231 15.9837 10.2295 15.5398 10.2295C15.0958 10.2295 14.7363 9.6231 14.7363 8.87521C14.7363 8.12732 15.0958 7.52079 15.5398 7.52079C15.9837 7.52079 16.3432 8.12732 16.3432 8.87521Z" fill="#646A6F"/>\n<path d="M8.11719 15.5003C10.1172 15.5 12.1172 15.4998 15.1172 15.5001" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.425781 10.9042C0.425781 4.8818 5.30767 -0.000333786 11.3307 -0.000333786C17.3524 -0.000333786 22.2343 4.8818 22.2343 10.9042C22.2343 16.9266 17.3524 21.8086 11.3307 21.8086C5.30767 21.8086 0.425781 16.9266 0.425781 10.9042Z" fill="#D9DCDE"/>\n<path d="M8.11787 8.87521C8.11787 9.6231 7.7571 10.2295 7.31318 10.2295C6.87053 10.2295 6.50977 9.6231 6.50977 8.87521C6.50977 8.12732 6.87053 7.52079 7.31318 7.52079C7.7571 7.52079 8.11787 8.12732 8.11787 8.87521Z" fill="#646A6F"/>\n<path d="M16.1518 8.87521C16.1518 9.6231 15.7923 10.2295 15.3483 10.2295C14.9044 10.2295 14.5449 9.6231 14.5449 8.87521C14.5449 8.12732 14.9044 7.52079 15.3483 7.52079C15.7923 7.52079 16.1518 8.12732 16.1518 8.87521Z" fill="#646A6F"/>\n<path d="M14.9258 13.3748C14.4258 17.5 7.92578 17.5 7.42578 13.3749L14.9258 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n</svg>','<svg width="35" height="35" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.234375 10.9042C0.234375 4.8818 5.11626 -0.000333786 11.1393 -0.000333786C17.161 -0.000333786 22.0429 4.8818 22.0429 10.9042C22.0429 16.9266 17.161 21.8086 11.1393 21.8086C5.11626 21.8086 0.234375 16.9266 0.234375 10.9042Z" fill="#D9DCDE"/>\n<path d="M14.7344 13.3748C14.2344 17.5 7.73438 17.5 7.23438 13.3749L14.7344 13.3748Z" fill="#646A6E" stroke="#646A6E" stroke-linecap="round"/>\n<path d="M9.63644 8.10736L9.63732 8.09652C9.63732 7.41374 9.14286 6.78855 8.40031 6.78855C7.81043 6.78855 7.46866 7.21257 7.35155 7.60952C7.23531 7.21257 6.89266 6.78855 6.30278 6.78855C5.56023 6.78855 5.06665 7.41374 5.06665 8.09652V8.10736C5.06318 8.25596 5.06665 9.76759 7.35068 10.9997V11L7.35155 10.9998V11L7.35241 10.9998V11V10.9997C9.63731 9.76759 9.64078 8.25596 9.63644 8.10736Z" fill="#646A6E"/>\n<path d="M17.3357 8.10736V8.09652C17.3357 7.41374 16.8421 6.78855 16.0995 6.78855C15.5097 6.78855 15.1679 7.21257 15.0508 7.60952C14.9345 7.21257 14.5919 6.78855 14.002 6.78855C13.2595 6.78855 12.7659 7.41374 12.7659 8.09652V8.10736C12.7624 8.25596 12.7659 9.76759 15.0499 10.9997V11L15.0508 10.9998V11L15.0516 10.9998V11V10.9997C17.3365 9.76759 17.34 8.25596 17.3357 8.10736Z" fill="#646A6E"/>\n</svg>'];function hexToRgb(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,i){return t+t+n+n+i+i}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}var createDialog=function(e,t,n,i,o){var r=i.dim_background,a=i.dim_bg_color,s=i.dim_bg_opacity,c=i.position,l=o.question_background_color,d=document.createElement("div");d.setAttribute("id",APX_OVERLAY);var p=document.createElement("style"),u="center",h="center";switch(c){case"bottom-left":u="flex-start",h="flex-end";break;case"bottom-right":u="flex-end",h="flex-end";break;case"top-left":u="flex-start",h="flex-start";break;case"top-right":u="flex-end",h="flex-start"}var f="none";if(r){var g=hexToRgb(a);f="rgb(".concat(g.r,", ").concat(g.g,", ").concat(g.b,", ").concat(s,")")}p.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(f,";\n display:flex;justify-content:").concat(u,";align-items:").concat(h,";border-radius:3px;z-index:99999999\n}\n#apx-oly > * {font-family: inherit;box-sizing:unset}\n.apx-dlg-c {\n width:").concat(e,"px;max-height:").concat(window.innerHeight,"px;overflow: auto;min-height:").concat(t,"%;background:").concat(l,";z-index:99999999;opacity:0;position:relative;visibility:hidden;\n transition:all 500ms cubic-bezier(0, -0.37, 0, 2.06);top:-15px;border-radius:3px;margin:20px\n}\n.apx-dlg-c.open {opacity:1;visibility:visible;top:0}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var m=document.createElement("div");return m.setAttribute("id",APX_DIALOG_CONTENT),m.classList.add(APX_DIALOG_CONTENT),d.appendChild(m),d.appendChild(p),d[SURVEY_ON_DISMISS]=n,document.body.appendChild(d),d},getImage=function(e,t,n){return e&&""!==e&&0!==t&&0!==n?'<img id="apx_icon" src="'.concat(e,'" style="width:').concat(t,"px;height:").concat(n,'px;">'):""},generateRequestSurvey=function(e){var t=e.icon_name,n=void 0===t?"":t,i=e.title,o=void 0===i?"Some dummy title":i,r=e.yes_text,a=void 0===r?"Yes":r,s=e.icon_width,c=void 0===s?180:s,l=e.icon_height,d=void 0===l?100:l,p=e.no_text,u=void 0===p?"No, thanks":p,h=e.dialog_background_color,f=void 0===h?"#FFF":h,g=e.title_color,m=void 0===g?"#3C3C3C":g,_=e.yes_button_bg_color,v=void 0===_?"#017DFD":_;e.no_button_bg_color;var y=e.yes_button_text_color,b=void 0===y?"#FFF":y,x=e.no_button_text_color,w=void 0===x?"#017DFD":x;e.hide_close_button;var C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return"line-height:20px;letter-spacing:0.005em;font-size:".concat(e,"px;font-weight:").concat(t,";")};return'\n <div style="display:flex;flex-direction:column;height:100%;width:100%;background-color:'.concat(f,';align-items:center;padding-top:20px;border-radius:3px">\n ').concat(getImage(n,c,d),'<span style="').concat(C(16,600),"text-align:center;color:").concat(m,';margin:12px 0px;">').concat(o,'</span>\n <button id="').concat(APX_DIALOG_YES,'" style="').concat(C(14,500),"color:").concat(b,";background-color:").concat(v,';border-radius:2px;border:none;padding:8px 20px;margin-bottom:10px;cursor:pointer">').concat(a,'</button>\n <button id="').concat(APX_DIALOG_NO,'" style="').concat(C(14,500),"color:").concat(w,';background:none;border:none;cursor:pointer;margin-bottom:20px">').concat(u,"</button>\n </div>\n ")},getTextAreaCSS=function(e){return"\n .apx-ta:focus {\n border: none;\n outline: none;\n }\n .apx-ta::placeholder {\n color: ".concat(e,";\n opacity: 0.5;\n }\n ")},getSurveyOptionCSS=function(e,t,n,i,o,r){return"\n .apx-lc {\n display: block;\n position: relative;\n background: ".concat("outline"===r?"unset":"filled"===r?n:"unset",";\n border: ").concat("outline"===r?"1px solid "+n:"filled"===r?n:"unset",";\n padding: ").concat("none"!==r?"10px 10px 10px 35px":"0px 0px 0px 35px",";\n margin-bottom: 12px;\n font-family: inherit;\n top: 10px;\n cursor: pointer;\n font-size: 18px;\n color: ").concat(o,";\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .apx-lc input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n }\n\n .apx-i {\n position: absolute;\n left: 6px;\n height: 14px;\n width: 14px;\n border: 1px solid ").concat(o,";\n background-color: white;\n border-radius: ").concat(e===ANSWER_TYPES.SINGLE_CHOICE?"50%":0,";\n }\n\n .apx-lc:hover input ~ .apx-i {\n border: 1px solid ").concat(i,";\n }\n\n .apx-lc input:checked ~ .apx-i {\n background-color: ").concat(t,";\n border: 1px solid ").concat(i,';\n }\n\n .apx-i:after {\n content: "";\n position: absolute;\n display: none;\n }\n\n .apx-lc input:checked ~ .apx-i:after {\n display: block;\n }\n\n .apx-lc .apx-i:after {\n top: ').concat(e===ANSWER_TYPES.SINGLE_CHOICE?2:1,"px;\n left: ").concat(e===ANSWER_TYPES.SINGLE_CHOICE?2:4,"px;\n width: ").concat(e===ANSWER_TYPES.SINGLE_CHOICE?10:4,"px;\n height: ").concat(e===ANSWER_TYPES.SINGLE_CHOICE?10:8,"px;\n border-radius: ").concat(e===ANSWER_TYPES.SINGLE_CHOICE?"50%":"0",";\n background: ").concat(e===ANSWER_TYPES.SINGLE_CHOICE?i:"transparent",";\n border: ").concat(e===ANSWER_TYPES.SINGLE_CHOICE?"none":"solid white",";\n border-width: ").concat(e===ANSWER_TYPES.SINGLE_CHOICE?"unset":"0 3px 3px 0",";\n -webkit-transform: ").concat(e===ANSWER_TYPES.SINGLE_CHOICE?"unset":"rotate(45deg)",";\n -ms-transform: ").concat(e===ANSWER_TYPES.SINGLE_CHOICE?"unset":"rotate(45deg)",";\n transform: ").concat(e===ANSWER_TYPES.SINGLE_CHOICE?"unset":"rotate(45deg)",";\n }\n ")},createSurveyHeaderNode=function(e,t,n,i){var o=e.cancel_button_color,r=e.previous_button_color,a=document.createElement("button"),s=document.createElement("button");a.disabled=0===t,a.setAttribute("type","button"),a.className="apx-b apx-pr",a.innerHTML="<style>.apx-pr::before{content:'\\2190';font-size:22px;color:".concat(r).concat(0===t?"54":"",";}.apx-pr{cursor:").concat(0===t?"no-drop":"pointer",";visibility:").concat(0===t?"hidden":"visible",";margin-top:-6px}</style>"),s.className="apx-b apx-cb",s.setAttribute("type","button"),s.innerHTML="<style>.apx-cb::before{content:'\\0000d7';font-size:26px;color:".concat(o,";}</style>");var c=document.createElement("div");c.style="display:flex;justify-content:space-between;align-items:center;padding:8px;padding-bottom:0";var l=document.createElement("span");return l.style="font-size:14px;color:#000;opacity:0.3;letter-spacing:0.005em;line-height:12px",l.innerText=i?"":"".concat(t+1,"/").concat(n),c.appendChild(a),c.appendChild(l),c.appendChild(s),{prevButton:a,closeButton:s,headerNode:c}},changeSubmitButtonBgColor=function(e,t){var n=e.answerMode,i=e.choices,o=void 0===i?[]:i,r=e.text_answer,a=void 0===r?"":r,s=e.selected_rating,c=void 0===s?-1:s,l=!0;n===ANSWER_TYPES.MULTI_CHOICE||n===ANSWER_TYPES.SINGLE_CHOICE?l=-1!==o.findIndex((function(e){return!0===e.is_selected})):n===ANSWER_TYPES.SHORT_ANSWER?l=a.length>0:n===ANSWER_TYPES.RATING&&(l=c>0);l?(t.className="apx-ba",t.disabled=!1):(t.className="apx-bi",t.disabled=!0)},createSurveyFooterNode=function(e,t,n,i,o){var r=e.skip_text_color,a=e.submit_text_color,s=e.submit_active_color,c=e.submit_inactive_color,l=n===i-1||o?null:document.createElement("button");l&&(l.innerText="Skip",l.className="apx-b",l.style="font-size:14px;font-weight:600;opacity:1;font-style:inherit;color:".concat(r,";background-color:transparent;margin:0px 12px"));var d=document.createElement("button");d.innerHTML="".concat(n===i-1&&"Next >"===t.submit_text?"Submit":t.submit_text,"<style>.apx-ba{background-color:").concat(s,";cursor:pointer}.apx-bi{background-color:").concat(c,";cursor:no-drop}</style>"),d.style="border:none;border-radius:2px;color:".concat(a,";padding:8px 15px;font-family:inherit"),changeSubmitButtonBgColor(t,d);var p=document.createElement("div");return p.style="padding:14px;display:flex;justify-content:flex-end",l&&p.appendChild(l),p.appendChild(d),{footerNode:p,skipButton:l,submitButton:d}},getTextAreaNode=function(e){var t,n=e.maximum_characters,i=e.background_color,o=e.placeholder,r=e.text_color,a=document.createElement("textarea"),s=null!==(t=null==e?void 0:e.textinput_border_color)&&void 0!==t?t:"black";return a.style="padding-top:4px;padding-left:4px;font-zie:14px;width:98%;height:100px;margin-top:8px;border: 1px solid ".concat(s,";resize:none;background:").concat(i,";color:").concat(r),a.className="apx-ta",a.setAttribute("placeholder",o),a.setAttribute("maxlength",n),a},createQuestionNode=function(e,t,n){var i=t.question_text_color,o=t.question_background_color,r=t.option_bg_color_active,a=t.option_bg_color_inactive,s=t.option_text_color_active,c=t.option_text_color_inactive,l=t.option_bg_type,d=e.rating_style,p=e.answerMode,u=e.choices,h=void 0===u?[]:u,f=e.rating,g=void 0===f?{rating_style:d,bg_color:"#D9DCDE",selected_bg_color:"#109B15"}:f,m=e.rating_scale,_=void 0===m?5:m,v=e.selected_rating,y=void 0===v?-1:v,b=e.text_answer,x=void 0===b?"":b,w=e.text_config?e.text_config:{maximum_characters:150,background_color:"#ccc",placeholder:"",text_color:"#000",placeholder_text_color:"#00000087"},C=!1,E=[];if(p===ANSWER_TYPES.SINGLE_CHOICE||p===ANSWER_TYPES.MULTI_CHOICE){var T=getTextAreaNode(w);T.style.visibility="hidden";var O=function(e,t){e.style.color=t?s:c},S=function(e,t){var n=t?r:a;"filled"===l?e.style.background=n:"outline"===l&&(e.style.borderColor=n)};h.forEach((function(t,i){var o=document.createElement("label");o.className="apx-lc",o.innerText=t.value;var r=document.createElement("input");r.name=r.type=p===ANSWER_TYPES.SINGLE_CHOICE?"radio":"checkbox",r.checked=t.is_selected;var a=document.createElement("span");a.className="apx-i",o.appendChild(r),o.appendChild(a),S(o,t.is_selected),O(o,t.is_selected),t.is_other&&(C=!0,T.addEventListener("input",(function(e){t.other_answer=e.target.value}))),t.is_selected&&t.is_other&&(T.style.visibility="visible",t.other_answer&&(T.value=t.other_answer)),p===ANSWER_TYPES.MULTI_CHOICE?r.onchange=function(i){var r=i.target.checked;t.is_selected=r,O(o,r),S(o,r),t.is_other&&(T.style.visibility=r?"visible":"hidden"),changeSubmitButtonBgColor(e,n)}:(r.setAttribute("apx-key","radio"),r.setAttribute("apx-ci",i+""),r.onchange=function(){document.querySelectorAll('input[apx-key="radio"]').forEach((function(e,n){var i=e.checked;h[n].is_selected=i,O(e.parentNode,i),S(e.parentNode,i),t.is_other&&(T.style.visibility=i?"visible":"hidden")})),changeSubmitButtonBgColor(e,n)}),E.push(o)})),C&&E.push(T)}else if(p===ANSWER_TYPES.SHORT_ANSWER&&null!==w){var A=w.example,I=w.example_text_color;if(""!==A&&""!==A.trim()){var k=document.createElement("span");k.innerHTML="Example: "+A,k.style.color=I,k.style.marginTop="12px",k.style.fontFamily="inherit",k.style.fontSize="15px",E.push(k)}var L=getTextAreaNode(w);L.addEventListener("input",(function(t){e.text_answer=t.target.value,t.target.value&&t.target.value.length>0&&(e.is_answered=!0),changeSubmitButtonBgColor(e,n)})),""!==x&&""!==x.trim()&&(L.innerText=x),E.push(L)}else if(p===ANSWER_TYPES.RATING){var P=g.rating_style,N=g.bg_color,R=g.selected_bg_color,M=document.createElement("div"),D="",B=[],$="",V="cursor:pointer;font-size:30px;width:auto;height:auto;";if("stylized"===P)B=5===_?STYLISED_EMOJI_GREY_5:STYLISED_EMOJI_GREY_10,M.style="display:flex;flex-wrap:wrap;justify-content:".concat(5===_?"space-evenly":"center",";gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden"),D="opacity:1 !important;",$="".concat(V,"padding-right:7px;padding-top:4px;padding-bottom:2px;border-radius:50%;background:transparent;opacity:1;filter:drop-shadow(0px 0.586957px 1.76087px rgba(0, 0, 0, 0.11))");else if("classic"===P)B=5===_?EMOJI_ICONS_5:EMOJI_ICONS_10,M.style="display:flex;flex-wrap:wrap;justify-content:".concat(5===_?"space-evenly":"center",";gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden"),D="opacity:1 !important;border:1.06px solid #017DFD; background-color:rgba(1, 125, 253, 0.1);\n ",$="".concat(V,"padding-right:7px;padding-top:4px;padding-bottom:2px;opacity:1;filter:drop-shadow(0px 0.586957px 1.76087px rgba(0, 0, 0, 0.11))");else if("star"===P){M.style="display:flex;flex-wrap:wrap;justify-content:".concat(5===_?"space-evenly":"center",";gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden");for(var F=0;F<_;F++)B.push("&#11088;");D="filter:grayscale(0%) !important",$="".concat(V,"filter:grayscale(100%)")}else"numbers"===P&&(B=5==_?["1","2","3","4","5"]:["0","1","2","3","4","5","6","7","8","9","10"],D="background:".concat(R," !important;color:white !important;"),$="display:flex;justify-content:space-evenly;align-items:center;color:#646A6E;margin-bottom:".concat(5===_?"0px":"10px",";font-size:15px;width:40px;height:40px;background-color:").concat(N,";box-shadow:0px 0.54801px 1.64403px 0.54801px rgba(0, 0, 0, 0.11);border-radius:50%"),M.style.marginTop="12px",M.style="display:flex;align-text:center;flex-wrap:wrap;justify-content:".concat(5===_?"space-evenly":"center",";gap:15px;padding-top:8px;padding-bottom:8px;overflow:hidden"));var H=document.createElement("style"),W="";(5==_?RATING_COLORS_5:RATING_COLORS_10).forEach((function(e,t){W+=".apx-rsel-".concat(t,"{\n background:").concat(e,"!important;\n color:white !important;\n }")})),H.innerHTML=".apx-rsel{".concat(D,"}")+W+".apx-r{".concat($,"}\n"),M.appendChild(H);for(var j=function(e){return"star"!==P?e+1===y:e+1<=y},U=[],z=0;z<B.length;z++){var q=document.createElement("div");q.innerHTML="".concat("").concat(B[z]);var Y=document.createElement("div");"classic"===P?(11==B.length?"".concat(Y.innerHTML=z):"".concat(Y.innerHTML=z+1),Y.style.fontSize="12.83px",Y.style.display="flex",Y.style.fontWeight="500",Y.style.justifyContent="center",Y.style.alignItems="center",q.appendChild(Y),q.style.display="flex",q.style.justifyContent="space-evenly",q.style.alignItems="center",q.style.flexDirection="column",q.style.width="40px",q.style.height="70px"):"stylized"===P&&(11==B.length?"".concat(Y.innerHTML=z):"".concat(Y.innerHTML=z+1),Y.style.fontSize="12.83px",Y.style.display="flex",Y.style.justifyContent="center",Y.style.alignItems="center",q.appendChild(Y),q.style.display="flex",q.style.justifyContent="space-evenly",q.style.alignItems="center",q.style.marginBottom="15px",q.style.marginRight="5px",q.style.gap="4px",q.style.flexDirection="column"),j(z)&&q.classList.add("apx-rsel"),q.classList.add("apx-r"),U.push(q)}var G=function(e,t,n,i,o){n.forEach((function(n,r){var a=document.createElement("div");a.innerHTML=5===_?r+1:r,a.style.fontSize="12.83px",a.style.display="flex",a.style.justifyContent="center",a.style.alignItems="center",e.appendChild(a),n.innerHTML=r===t?i[t]:o[r],n.appendChild(a)}))};U.forEach((function(t,i){e.selected_rating=i+1,t.addEventListener("click",(function(){if("stylized"===P&&(5===B.length?G(t,i,U,STYLISED_EMOJI_5,STYLISED_EMOJI_GREY_5):G(t,i,U,STYLISED_EMOJI_10,STYLISED_EMOJI_GREY_10)),"numbers"===P?t.classList.add("apx-rsel-".concat(i)):t.classList.add("apx-rsel"),e.is_answered=!0,changeSubmitButtonBgColor(e,n),e.selected_rating=i+1,"numbers"===P){for(var o=0;o<i;o++)U[o].classList.remove("apx-rsel-".concat(o));for(var r=i+1;r<B.length;r++)U[r].classList.remove("apx-rsel-".concat(r))}else if("star"===P){for(var a=0;a<i+1;a++)U[a].classList.add("apx-rsel");for(var s=i+1;s<B.length;s++)U[s].classList.remove("apx-rsel")}else{for(var c=0;c<i;c++)U[c].classList.remove("apx-rsel");for(var l=i+1;l<B.length;l++)U[l].classList.remove("apx-rsel")}e.rulesArray.forEach((function(t){if(e.selected_rating>=t.min&&e.selected_rating<=t.max){var i,o=document.createElement("span");o.setAttribute("id","nps_advanced"),o.innerHTML=null===(i=t.question)||void 0===i?void 0:i.question;var r=getTextAreaNode(w);r.addEventListener("input",(function(t){e.text_answer=t.target.value,t.target.value&&t.target.value.length>0&&(e.is_answered=!0),changeSubmitButtonBgColor(e,n)})),o.appendChild(r),M.appendChild(o);var a=document.getElementById("nps_advanced");a&&M.removeChild(a),o.appendChild(r),M.appendChild(o)}else{var s=document.getElementById("nps_advanced");s&&M.removeChild(s)}}))})),M.appendChild(t)})),E.push(M)}var Z=document.createElement("div");Z.style.padding="14px",Z.style.display="flex",Z.style.flexDirection="column",Z.style.minHeight="340px";var X=document.createElement("style"),K="";p===ANSWER_TYPES.SHORT_ANSWER?K=getTextAreaCSS(w.placeholder_text_color):p!==ANSWER_TYPES.SINGLE_CHOICE&&p!==ANSWER_TYPES.MULTI_CHOICE||(K=getSurveyOptionCSS(p,r,a,s,c,l),C&&(K+=getTextAreaCSS(w.placeholder_text_color))),X.innerHTML=K.replaceAll("\n","").replace(/[\s]{2,999}/g,""),Z.appendChild(X);var Q=document.createElement("span");return Q.innerText=e.title,Q.style="margin-bottom:12px;color:".concat(i,";background-color:").concat(o,";font-size:16px;font-weight:600"),Z.appendChild(Q),E.forEach((function(e){return Z.appendChild(e)})),Z},getSurveyDialogContent=function(e,t,n,i,o,r){var a=createSurveyHeaderNode(e,i,o,r),s=a.headerNode,c=a.prevButton,l=a.closeButton,d=createSurveyFooterNode(e,n,i,o,n.is_required),p=d.skipButton,u=d.submitButton,h=d.footerNode,f=createQuestionNode(n,t,u),g=document.createElement("div");g.className="apx-sq";var m=document.createElement("style");return m.innerHTML=".apx-sq > * {font-family:inherit;}.apx-sq {height:100%;width:100%;display:flex;flex-direction:column}.apx-b{border:none;background:none;opacity:1;cursor:pointer;font-family:inherit}",g.appendChild(m),g.appendChild(s),g.appendChild(f),{questionRoot:g,footerNode:h,prevButton:c,closeButton:l,skipButton:p,submitButton:u}},createSuccessMessage=function(e,t){var n=t.success_message_bg_color,i=t.success_message_icon_color,o=t.success_message_text_color,r=document.createElement("div");return r.style="display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;height:100%;background: ".concat(n,"; min-height:480px"),r.innerHTML="\n <div>\n ".concat(getCheckMarkSVG(64,64,i),'\n </div>\n <div style="font-size: 17px;margin-top:15px;color:').concat(o,'">').concat(e,"</div>\n "),r},Logger$4=window.ApxorLogger,Choice=_createClass$1((function e(t){var n=this;_classCallCheck$1(this,e),_defineProperty$1(this,"resetState",(function(){n.is_selected=!1,n.other_answer=null}));var i=t.id,o=t.value,r=t.is_other,a=t.next_question_id;if(!i||!o)throw new Error("Invalid Choice");this.id=i,this.value=o,this.is_other=r,this.next_question_id=a,this.is_selected=!1,this.other_answer=null})),Question=_createClass$1((function e(t){var n=this;_classCallCheck$1(this,e),_defineProperty$1(this,"resetState",(function(){n.is_answered=!1,n.text_answer="",n.selected_rating=-1,n.choices.forEach((function(e){return e.resetState()}))}));var i=t.id,o=t.answer_mode,r=t.title,a=t.is_required,s=t.submit_text,c=t.rating_style,l=t.rating_scale,d=t.choices,p=void 0===d?[]:d,u=t.text_config,h=void 0===u?null:u,f=t.randomize_choices,g=void 0!==f&&f,m=t.response_cfg,_=void 0===m?{}:m,v=t.advanced_options,y=t.rules,b=void 0===y?[]:y;if(!i||!o)throw new Error("Invalid question");var x=-1;switch(o){case"single_choice":x=ANSWER_TYPES.SINGLE_CHOICE;break;case"multi_choice":x=ANSWER_TYPES.MULTI_CHOICE;break;case"text":x=ANSWER_TYPES.SHORT_ANSWER;break;case"rating":x=ANSWER_TYPES.RATING;break;default:x=-1}if(this.answerMode=x,this.id=i,this.is_required=a,this.submit_text=s,this.randomize_choices=g,this.response_cfg=_,this.text_config=h,this.title=r,this.rating_style=c,this.rating_scale=l,this.is_answered=!1,this.selected_rating=-1,this.rules=b,this.rulesArray=[],v&&this.rules.forEach((function(e){if(t.hasOwnProperty(e.qid)){var i={max:e.max,min:e.min,question:t[e.qid]};n.rulesArray.push(i)}})),this.choices=[],this.answerMode===ANSWER_TYPES.SINGLE_CHOICE||this.answerMode===ANSWER_TYPES.MULTI_CHOICE){for(var w,C=[],E=0;E<p.length;E++){var T=new Choice(p[E]);T.is_other?C.push(T):this.choices.push(T)}g&&(this.choices=getShuffledArr(this.choices)),(w=this.choices).push.apply(w,C)}})),SurveyConfigItem=_createClass$1((function e(){var t=this;_classCallCheck$1(this,e),_defineProperty$1(this,"initialize",(function(e,n,i){var o=i.delay,r=i.dialog_config,a=void 0===r?null:r,s=i.show_progress_bar,c=void 0===s||s,l=i.is_response_based_survey,d=void 0!==l&&l,p=i.questions,u=void 0===p?[]:p,h=i.show_success_message,f=void 0===h||h,g=i.auto_hide_message,m=void 0===g?2e3:g,_=i.success_message,v=void 0===_?"":_,y=i.question_text_color,b=void 0===y?"#002845":y,x=i.submit_active_color,w=void 0===x?"#017DFD":x,C=i.submit_inactive_color,E=void 0===C?"#017DFD65":C,T=i.option_bg_type,O=void 0===T?"filled":T,S=i.option_text_color_active,A=void 0===S?"#002845":S,I=i.option_text_color_inactive,k=void 0===I?"#002845":I,L=i.option_bg_color_active,P=void 0===L?"#FFF":L,N=i.option_bg_color_inactive,R=void 0===N?"#FFF":N,M=i.question_background_color,D=void 0===M?"#FFF":M,B=i.success_message_bg_color,$=void 0===B?"#109B15":B,V=i.success_message_icon_color,F=void 0===V?"#109B15":V,H=i.success_message_text_color,W=void 0===H?"#002845":H,j=i.skip_text_color,U=void 0===j?"#017DFD":j,z=i.cancel_button_color,q=void 0===z?"#000":z,Y=i.previous_button_color,G=void 0===Y?"#000":Y,Z=i.progress_bar_color,X=void 0===Z?"#017DFD":Z,K=i.submit_text_color,Q=void 0===K?"#FFF":K,J=i.width,ee=void 0===J?350:J,te=i.min_height,ne=void 0===te?40:te,ie=i.position,oe=void 0===ie?"center":ie,re=i.dim_background,ae=void 0===re||re,se=i.dim_bg_color,ce=void 0===se?"#313131":se,le=i.dim_bg_opacity,de=void 0===le?.54:le;t.configId=e,t.name=n,t.delay=o,t.is_response_based_survey=d,t.show_success_message=f,t.success_message=v,t.auto_hide_message=m,t.questions=[],t.displayedQuestionIndeces=[],t.answered_questions=[],t.width=ee,t.min_height=ne,t.layoutConfig={show_progress_bar:c,skip_text_color:U,cancel_button_color:q,previous_button_color:G,progress_bar_color:X,submit_text_color:Q,submit_active_color:w,submit_inactive_color:E,success_message_bg_color:$,success_message_icon_color:F,success_message_text_color:W,position:oe,dim_background:ae,dim_bg_color:ce,dim_bg_opacity:de},t.questionConfig={question_text_color:b,question_background_color:D,option_bg_color_active:P,option_bg_color_inactive:R,option_text_color_active:A,option_text_color_inactive:k,option_bg_type:O},a&&(t.dialog_config=a);for(var pe=0;pe<u.length;pe++)try{if("request_survey"===u[pe].answer_mode||"success_message"===u[pe].answer_mode)continue;t.questions.push(new Question(u[pe])),t.answered_questions.push(-1)}catch(e){return Logger$4.error("Failed to parse Q",pe,e),!1}return!(t.questions.length<1)||(t.isValid=!1,!1)})),_defineProperty$1(this,"showSurvey",(function(e,n){t.isValid&&setTimeout((function(){try{var i=window.ApxorRTM;if(null!==i.currentAction&&void 0!==i.currentAction)return void Logger$4.error("An action is already being shown.");t.startTime=Date.now();var o=createDialog(t.width,t.min_height,n,t.layoutConfig,t.questionConfig);if(t.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",t._logSurveyAppEvent("apx_survey_launched",{apx_survey_type:!0}),t.dialog_config){var r=t.dialog_config,a=r.icon_name,s=void 0===a?"":a,c=r.icon_width,l=r.icon_height,d=o.children[0];o.style.visibility="hidden",d.style.visibility="hidden",setTimeout((function(){var e;null!=t&&null!==(e=t.dialog_config)&&void 0!==e&&e.dialog_background_color&&(d.style.backgroundColor=t.dialog_config.dialog_background_color),d.innerHTML=generateRequestSurvey(t.dialog_config),document.getElementById(APX_DIALOG_YES).onclick=function(){t._logSurveyAppEvent("apx_survey_dialog_yes_clicked",{apx_survey_type:!0}),d.style.minHeight=t.min_height+"%",t._showQuestions(o,!0)},document.getElementById(APX_DIALOG_NO).onclick=function(){t._logSurveyAppEvent("apx_survey_dialog_no_clicked",{apx_survey_type:!0}),t._closeDialog(o)};var n=function(){o.style.visibility="visible",d.style.visibility="visible",d.style.minHeight=""===s||0===c||0===l?"13%":"25%",d.classList.toggle("open"),t._logSurveyAppEvent("apx_survey_dialog_launched",{apx_survey_type:t.is_response_based_survey?"response_based":"default"})};if(""!==s&&c>0&&l>0){var i=document.getElementById("apx_icon");i.onload=function(){n()},i.onerror=function(){t._logSurveyAppEvent("apx_survey_dialog_icon_failed"),t._closeDialog(o)}}else n()}),100)}else t._showQuestions(o);e&&e((function(){return t._closeDialog(o)}))}catch(e){Logger$4.error(e)}}),t.delay)})),_defineProperty$1(this,"_showQuestions",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.layoutConfig,o=i.show_progress_bar,r=i.progress_bar_color,a=document.createElement("div");a.className="apx-progress-bar",a.style="height:4px;overflow:hidden;position:relative;background:white;";var s=document.createElement("div");s.setAttribute("id","apx-pb"),s.style="border-radius:10px;top:0;left:0;width:100%;bottom:0;position:absolute;transition:transform 0.4s linear;transform-origin:left;background-color:".concat(r),a.appendChild(s),o||(a.style.visibility="hidden");var c=e.children[0];(n||c&&c.childElementCount>1)&&c.removeChild(c.children[c.childElementCount-1]),c.appendChild(a),t._displayQuestion(e,0),n||setTimeout((function(){e.children[0].classList.toggle("open")}),100)})),_defineProperty$1(this,"_getQuestionIndexFromId",(function(e){if(-1==e||!e)return-1;var n=t.questions.length;if(n>0)for(var i=0;i<n;i++)if(t.questions[i].id==e)return i;return-1})),_defineProperty$1(this,"_getNextQuestionIndex",(function(e,n){var i=e.answerMode,o=e.choices,r=void 0===o?[]:o;switch(i){case ANSWER_TYPES.RATING:var a=null==e?void 0:e.response_cfg[(null==e?void 0:e.selected_rating)||11];a?n=t._getQuestionIndexFromId(a):n+=1;break;case ANSWER_TYPES.SINGLE_CHOICE:var s;if(r.forEach((function(e){e.is_selected&&(s=e)})),s){var c=s.next_question_id;n=t._getQuestionIndexFromId(c)}else n+=1;break;case ANSWER_TYPES.MULTI_CHOICE:case ANSWER_TYPES.SHORT_ANSWER:default:n+=1}return n})),_defineProperty$1(this,"_displayQuestion",(function(e,n){var i;if(!(n>=t.questions.length)){var o=t.questions[n],r=getSurveyDialogContent(t.layoutConfig,t.questionConfig,o,n,t.questions.length,t.is_response_based_survey),a=r.prevButton,s=void 0===a?null:a,c=r.closeButton,l=void 0===c?null:c,d=r.submitButton,p=void 0===d?null:d,u=r.skipButton,h=void 0===u?null:u,f=r.questionRoot,g=r.footerNode,m=e.children[0];m&&m.childElementCount>2&&(m.removeChild(m.children[m.childElementCount-1]),m.removeChild(m.children[m.childElementCount-1])),null!=t&&null!==(i=t.questionConfig)&&void 0!==i&&i.question_background_color&&(m.style.backgroundColor=t.questionConfig.question_background_color),document.getElementById("apx-pb").style.transform="translateX(".concat(-(100-100/t.questions.length*(n+1)),"%)"),m.appendChild(f),m.appendChild(g),s&&(s.onclick=function(){t._logSurveyAppEvent("apx_survey_back_button_clicked",{apx_question_id:"",apx_question_name:"",apx_question_type:"",apx_question_position:2,apx_survey_type:""}),t._logSurveyQuestionEvent(n);var i=t.displayedQuestionIndeces.pop();void 0!==i&&t._displayQuestion(e,i)}),l&&l.addEventListener("click",(function(){t._logSurveyAppEvent("apx_survey_close_clicked",{where:"question "+(n+1)}),t._logSurveyAppEvent("apx_survey_close_button_clicked",{apx_survey_type:!0,apx_time_to_complete:200,where:"question "+(n+1)}),t._logSurveyQuestionEvent(n),t._submitSurveyResponses(e,!1)})),p&&(p.onclick=function(){if(t.displayedQuestionIndeces.push(n),t.is_response_based_survey){t._logSurveyQuestionEvent(n);var i=t._getNextQuestionIndex(o,n);i===t.questions.length||-1===i?t._submitSurveyResponses(e,!0):t._displayQuestion(e,i)}else t._logSurveyQuestionEvent(n),n===t.questions.length-1?t._submitSurveyResponses(e,!0):t._displayQuestion(e,n+1)}),h&&(h.onclick=function(){t.displayedQuestionIndeces.push(n),n+1>=t.questions.length||(t._logSurveyAppEvent("apx_survey_skip_clicked",{where:"question "+(n+1)}),t._logSurveyAppEvent("apx_survey_skip_button_clicked",{apx_question_id:"",apx_question_name:"",apx_question_type:"",apx_question_position:2,apx_survey_type:"",where:"question "+(n+1)}),t._logSurveyQuestionEvent(n),t._displayQuestion(e,n+1))}),t._logSurveyAppEvent("apx_survey_question_asked",{apx_question_id:"",apx_question_name:"",apx_question_type:"",apx_question_position:2,apx_survey_type:""})}})),_defineProperty$1(this,"_attributeForApxSurveyQuestionAnswered",(function(e){var n,i,o,r,a,s,c,l={};3===t.questions[e].answerMode&&(l.apx_nps_advanced_question=null!==(n=null===(i=t.questions[e].rulesArray)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.question.question)&&void 0!==n?n:"",l.apx_nps_advanced_choice=[],l.apx_nps_advanced_free_text=[],null!==(r=t.questions[e])&&void 0!==r&&r.text_answer&&l.apx_nps_advanced_free_text.push(t.questions[e].text_answer),l.apx_nps_advanced_question_id=null!==(a=null===(s=t.questions[e].rules)||void 0===s||null===(c=s[0])||void 0===c?void 0:c.qid)&&void 0!==a?a:"");return l})),_defineProperty$1(this,"_logSurveyQuestionEvent",(function(e){if(-1===t.answered_questions[e]){var n=t._getAnswerForQuestion(e),i=[];n.textBasedQuestionAnswers.length>0&&n.textBasedQuestionAnswers.forEach((function(e){i.push(e.answer)})),n.answers.length>0&&(t._logSurveyAppEvent("apx_survey_question_answered",_objectSpread2$1(_objectSpread2$1({apx_question_id:"",apx_question_name:"",apx_question_type:"",apx_question_position:2,apx_survey_type:"",apx_choice:n.answerTexts,apx_choice_position:2,apx_free_text:n.textBasedQuestionAnswers},t._attributeForApxSurveyQuestionAnswered(e)),{},{apx_time_spent_to_answer:20})),t._logSurveyAppEvent("apx_survey_".concat(t.questions[e].title),{answers:n.answerTexts,text_answers:i}),t.answered_questions[e]=1)}})),_defineProperty$1(this,"_logSurveyAppEvent",(function(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null===(n=window.ApxorRTM)||void 0===n?void 0:n.getCampaignMeta(t.configId),r=o._attr;Apxor.logEvent(e,_objectSpread2$1(_objectSpread2$1({apx_survey_id:t.configId,apx_survey_name:t.name},i),r))})),_defineProperty$1(this,"_getAnswerForQuestion",(function(e){var n=t.questions[e];if(!n)return null;var i={answers:[],answerTexts:[],others:[],textBasedQuestionAnswers:[]},o=n.answerMode,r=n.choices,a=void 0===r?[]:r,s=n.selected_rating,c=void 0===s?-1:s,l=n.text_answer,d=void 0===l?"":l,p=n.is_answered,u=void 0!==p&&p,h=n.text_config,f=void 0===h?null:h;switch(o){case ANSWER_TYPES.SINGLE_CHOICE:case ANSWER_TYPES.MULTI_CHOICE:a.forEach((function(e){e.is_selected&&(i.answers.push(e.id),i.answerTexts.push(e.value),e.is_other&&null!==e.other_answer&&""!==e.other_answer.trim()&&i.others.push({id:e.id,answer:e.other_answer}))}));break;case ANSWER_TYPES.SHORT_ANSWER:u&&""!==d&&""!==d.trim()&&null!==f&&(i.answers.push(f.id),i.answerTexts.push(d),i.textBasedQuestionAnswers.push({id:f.id,answer:d}));break;case ANSWER_TYPES.RATING:-1!==c&&(i.answers.push(c),i.answerTexts.push(c))}return i})),_defineProperty$1(this,"_closeDialog",(function(e){e[SURVEY_ON_DISMISS]&&e[SURVEY_ON_DISMISS](),e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e),document.body.style.overflow=t.bodyOverflow,t.bodyOverflow=""}),400)})),_defineProperty$1(this,"_showSuccessMessage",(function(e){var n=e.children[0];for(n.style.minHeight="unset";null!=n&&n.childElementCount;)n.removeChild(n.children[n.childElementCount-1]);var i=createSuccessMessage(t.success_message,t.layoutConfig);n.appendChild(i),setTimeout((function(){t._closeDialog(e)}),t.auto_hide_message)})),_defineProperty$1(this,"_submitSurveyResponses",(function(e,n){n&&t.show_success_message?t._showSuccessMessage(e):t._closeDialog(e);var i={survey_id:t.configId,name:t.name,responses:[]};if(t.questions.forEach((function(e,n){var o=t._getAnswerForQuestion(n);if(o.answers.length>0){var r={question_id:e.id,answers:o.answers};e.rules.length>0&&e.rulesArray.forEach((function(t){if(e.selected_rating>=t.min&&e.selected_rating<=t.max){var n=t.question.text_config,i=e.text_answer;r.answers=[].concat(_toConsumableArray(r.answers),[n.id]);var o={id:n.id,answer:i};r.others||(r.others=[]),r.others.push(o)}})),o.others.length>0?r.others=o.others:o.textBasedQuestionAnswers.length>0&&(r.others=o.textBasedQuestionAnswers),i.responses.push(r)}})),i.responses.length>0){var o=Math.pow(10,3);i.time_taken=Math.round((Date.now()-t.startTime)/1e3*o)/o;var r=Apxor.getController(),a=r.getFromStorage("_apx_cd",!0).session_info.launch_time;i.session_id=Apxor.getSessionId(),i.is_completed=n,i.app_version=r.getFromStorage("apx_ver",!1),i.device_uuid=Apxor.getClientId(),i.launch_time=a,i.user_attributes=r.getUserAttributes(),i.session_attributes=r.getSessionAttributes(),t._sendReponseToServer(i)}n&&t._logSurveyAppEvent("apx_survey_completed",{apx_survey_type:!0,apx_time_to_complete:200}),t.questions.forEach((function(e,n){e.resetState(),t.answered_questions[n]=-1})),t.startTime=-1,t.bodyOverflow=""})),_defineProperty$1(this,"_sendReponseToServer",(function(e){var t=SURVEY_RESPONSE_URL.replace("<app_id>",Apxor.getSiteId());fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})})),this.isValid=!0,this.dialog_config=null})),ApxorSurveys=_createClass$1((function e(){_classCallCheck$1(this,e),_defineProperty$1(this,"parse",(function(e,t,n){var i=new SurveyConfigItem;return i.initialize(e,t,n)?i:null}))})),Logger$3=window.ApxorLogger,VideoInApp=function(){function e(t,n,i,o,r){var a=this;_classCallCheck$1(this,e),_defineProperty$1(this,"showVideoInApp",(function(){a.createPlayer();try{if(a.video_mode==VIDEOS_MODES.PIP){var e=a.videoElement,t=a.hideCallback;e.onloadedmetadata=function(){e.disablePictureInPicture=!1,e.requestPictureInPicture().catch((function(e){Logger$3.error("Can't show PIP:".concat(e)),t()}))}}else a.unhideVideoPlayer();a.showCallback()}catch(e){Logger$3.error("Can't show video:".concat(e)),a.hideCallback()}})),_defineProperty$1(this,"_getHeightWidthFromResolution",(function(){var e=getHeightWidthFromResolution(a.videoConfig),t=e.width,n=e.height;a.height=n,a.width=t})),_defineProperty$1(this,"_removeVideoPlayerStyles",(function(){var e=document.getElementById("apxor-mpl-styles");e&&e.remove()})),_defineProperty$1(this,"_setVideoControlListeners",(function(){a.videoElement.addEventListener("ended",(function(){var e=document.getElementById("apxor-cta-btn");e&&e.classList.remove("apxor-hide-elmt")})),a.videoElement.addEventListener("play",(function(){var e=document.getElementById("apxor-cta-btn");e&&e.classList.add("apxor-hide-elmt")}))})),_defineProperty$1(this,"_setPIPtoggleListeners",(function(){var e=a.videoConfig.enable_pip_toggles;if(void 0===e||e){a.videoElement.addEventListener("leavepictureinpicture",(function(){a.videoElement.disablePictureInPicture=!0,"PIP"===a.videoConfig.video_mode?(a.hideCallback(),a.videoPlayer.remove()):a.videoPlayer.classList.remove("apxor-hide-elmt")}),!1);a.videoElement.addEventListener("enterpictureinpicture",(function(){a.videoPlayer.classList.add("apxor-hide-elmt")}),!1)}})),_defineProperty$1(this,"_setCustomControls",(function(){var e=a.videoConfig,t=e.pip_btn_color,n=void 0===t?COLORS.WHITE:t,i=e.close_btn_color,o=void 0===i?COLORS.WHITE:i,r=e.enable_pip,s=document.createElement("span");if(s.innerHTML=getCloseWithCircleSVG(24,24,o),s.classList.add("apxor-close-btn"),s.addEventListener("click",(function(){try{a.videoPlayer.remove(),a.hideCallback(),a._removeVideoPlayerStyles()}catch(e){console.log("Error \n ".concat(e," \n occured while closing the video"))}})),a.videoPlayer.appendChild(s),r){var c=document.createElement("span");c.innerHTML=getPIPSVG(24,24,n),c.classList.add("apxor-pip-btn"),c.addEventListener("click",(function(){try{a.videoElement.disablePictureInPicture=!1,a.videoElement.requestPictureInPicture()}catch(e){console.log("Error \n ".concat(e," \n while starting the PIP"))}})),a.videoPlayer.appendChild(c)}})),_defineProperty$1(this,"_setCTAButtons",(function(){var e=a.videoConfig,t=e.buttons_config,n=e.button_position,i=void 0===n?"center":n,o=e.button_direction,r=void 0===o?DIRECTION.HORIZONTAL:o;if(t&&t.length>0){var s=function(){try{a.videoPlayer.remove(),a.hideCallback(),a._removeVideoPlayerStyles()}catch(e){console.log("Can't close the video player\n".concat(e))}},c={next:s,complete:s,cancel:s},l=generateCTAButtons(a.configId,a.name,EVENT_PREFIX.INAPP,t,i,r,c);l.setAttribute("id","apxor-cta-btn"),l.classList.add("apxor-video-cta"),l.classList.add("apxor-hide-elmt"),a.videoPlayer.appendChild(l)}})),_defineProperty$1(this,"hideVideoPlayer",(function(){a.videoPlayer.classList.add("apxor-hide-elmt")})),_defineProperty$1(this,"unhideVideoPlayer",(function(){a.videoPlayer.classList.remove("apxor-hide-elmt")})),_defineProperty$1(this,"getVideoElement",(function(){return a.videoElement})),this.videoConfig=t,this.videoPlayer=null,this.videoElement=null,this.video_mode=t.video_mode,this.showCallback=o,this.hideCallback=r,this.height=320,this.width=320,this.configId=n,this.name=i||"VideoPlayer"}return _createClass$1(e,[{key:"createPlayer",value:function(){this.videoPlayer=document.createElement("div"),this.videoPlayer.setAttribute("id","apxor-video-player"),this._getHeightWidthFromResolution(),this._setVideoPlayerStyles(),this._setVideoPlayerPosition(),this._setPlayerContent(),this._setVideoControlListeners(),this._setPIPtoggleListeners(),this._setCustomControls(),this._setCTAButtons(),this.hideVideoPlayer(),document.body.appendChild(this.videoPlayer)}},{key:"_setVideoPlayerStyles",value:function(){if(!document.getElementById("apxor-mpl-styles")){var e=document.createElement("style");e.setAttribute("id","apxor-mpl-styles"),e.innerHTML="\n div.apxor-video-player--topLeft {\n position: fixed;\n top: 0;\n left: 0;\n background-color: ".concat(COLORS.BLACK,";\n z-index:99999999;\n }\n \n div.apxor-video-player--topRight {\n position: fixed;\n top: 0;\n right: 0;\n background-color: ").concat(COLORS.BLACK,";\n z-index:99999999;\n }\n \n div.apxor-video-player--bottomLeft {\n position: fixed;\n bottom: 0;\n left: 0;\n background-color: ").concat(COLORS.BLACK,";\n z-index:99999999;\n }\n \n div.apxor-video-player--bottomRight {\n position: fixed;\n bottom: 0;\n right: 0;\n background-color: ").concat(COLORS.BLACK,';\n z-index:99999999;\n }\n\n .apxor-hide-elmt {\n display : none;\n }\n\n .apxor-pip-btn {\n position: absolute;\n top: 10px;\n left: 10px;\n width: 24px;\n height: 24px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n\n video:hover~.apxor-pip-btn {\n opacity: 1;\n }\n \n .apxor-close-btn {\n position: absolute;\n top: 10px;\n right: 10px;\n width: 24px;\n height: 24px;\n opacity: 0.3;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n\n video:hover~.apxor-close-btn {\n opacity: 1;\n }\n\n .apxor-video-cta {\n position: absolute;\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n -moz-transform: translate(-50%, -50%);\n width: auto;\n height: auto;\n transition: opacity .3s ease;\n cursor: pointer;\n }\n \n .bi::before,\n [class^="bi-"]::before,\n [class*=" bi-"]::before {\n display: inline-block;\n font-style: normal;\n font-weight: normal !important;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n vertical-align: -.125em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n .bi-pip::before { \n content: "\f4ef"; \n }\n\n .bi-x-circle::before { \n content: "\f623"; \n }\n\n '),document.head.appendChild(e)}}},{key:"_setVideoPlayerPosition",value:function(){switch(this.videoConfig.video_position){case INAPP_POSITION.TOP_LEFT:this.videoPlayer.classList.add("apxor-video-player--topLeft");break;case INAPP_POSITION.TOP_RIGHT:this.videoPlayer.classList.add("apxor-video-player--topRight");break;case INAPP_POSITION.BOTTOM_LEFT:this.videoPlayer.classList.add("apxor-video-player--bottomLeft");break;case INAPP_POSITION.BOTTOM_RIGHT:default:this.videoPlayer.classList.add("apxor-video-player--bottomRight")}}},{key:"_setPlayerContent",value:function(){var e=this.videoConfig,t=e.v_url,n=e.v_format,i=void 0===n?"video/mp4":n,o=e.mute_audio,r=void 0!==o&&o;this.videoElement=document.createElement("video"),this.videoElement.width=this.width,this.videoElement.height=this.height,this.videoElement.controlsList="noplaybackrate nodownload",this.videoElement.controls=!0,this.videoElement.disablePictureInPicture=!0,this.videoElement.autoplay=!0,r&&(this.videoElement.muted=!0);var a=document.createElement("source");a.setAttribute("src",t),a.setAttribute("type",i),this.videoElement.appendChild(a),this.videoPlayer.appendChild(this.videoElement)}}],[{key:"isAVideoBeingPlayed",value:function(){return!!document.getElementById("apxor-video-player")}},{key:"canShowVideoInApp",value:function(e){var t=e.binding,n=e.activity,i=!0;return t&&""!=n&&window.location.pathname!==n&&(i=!1),i}}]),e}(),ModalInApp=function(){function ModalInApp(e,t,n,i,o){if(_classCallCheck$1(this,ModalInApp),_defineProperty$1(this,"generateResponse",(function(e){var t={},n="";return e.forEach((function(e){var i,o,r,a,s,c,l,d,p,u,h,f,g,m,_,v,y;switch(e.type){case"fullname":null!==(i=document)&&void 0!==i&&i.getElementById("fname")&&(t["".concat(null!==(o=null==e||null===(r=e.name)||void 0===r?void 0:r[0])&&void 0!==o?o:"firstname")]=document.getElementById("fname").value),null!==(a=document)&&void 0!==a&&a.getElementById("lname")&&(t["".concat(null!==(s=null==e||null===(c=e.name)||void 0===c?void 0:c[1])&&void 0!==s?s:"lastname")]=document.getElementById("lname").value);break;case"name":null!==(l=document)&&void 0!==l&&l.getElementById("name")&&(t["".concat(null!==(d=null==e?void 0:e.name)&&void 0!==d?d:"name")]=document.getElementById("name").value);break;case"email":null!==(p=document)&&void 0!==p&&p.getElementById("email")&&(t["".concat(null!==(u=null==e?void 0:e.name)&&void 0!==u?u:"email")]=document.getElementById("email").value);break;case"phone":null!==(h=document)&&void 0!==h&&h.getElementById("phoneNumber")&&(t["".concat(null!==(f=null==e?void 0:e.name)&&void 0!==f?f:"phonenumber")]=document.getElementById("phoneNumber").value);break;case"date":null!==(g=document)&&void 0!==g&&g.getElementById("date")&&(t["".concat(null!==(m=null==e?void 0:e.name)&&void 0!==m?m:"date")]=document.getElementById("date").value);break;case"message":null!==(_=document)&&void 0!==_&&_.getElementById("textField")&&(t["".concat(null!==(v=null==e?void 0:e.name)&&void 0!==v?v:"feedback")]=document.getElementById("textField").value);break;case"button":n=null!==(y=null==e?void 0:e.callback)&&void 0!==y?y:""}})),{obj:t,callback:n}})),this.inapp_direction=e.inapp_direction||DIRECTION.VERTICAL,this.inapp_nonmedia_direction=e.inapp_nonmedia_direction||DIRECTION.VERTICAL,this.background_color=e.background_color||COLORS.WHITE,this.dismiss_outside_touch=e.dismiss_outside_touch||!1,this.dim_background=e.dim_background||!1,this.dim_background_color=e.dim_background_color||"#0a0a0a",this.dim_background_opacity=e.dim_background_opacity||.5,this.position_config=e.position_config,this.position_config&&0!=Object.keys(this.position_config).length){this.has_position_config=!0;var r=this.position_config;this.inapp_position=r.inapp_position||INAPP_POSITION.CENTER}else this.has_position_config=!1;if(this.padding_config=e.padding_config,this.padding_config&&0!=Object.keys(this.padding_config).length){this.has_padding_config=!0;var a=this.padding_config;this.inapp_top_padding=a.top||0,this.inapp_bottom_padding=a.bottom||0,this.inapp_left_padding=a.left||0,this.inapp_right_padding=a.right||0}else this.has_padding_config=!1;if(this.margin_config=e.margin_config,this.margin_config&&0!=Object.keys(this.margin_config).length){this.has_margin_config=!0;var s=this.margin_config;this.inapp_top_margin=s.top||0,this.inapp_bottom_margin=s.bottom||0,this.inapp_left_margin=s.left||0,this.inapp_right_margin=s.right||0}else this.has_margin_config=!1,this.inapp_top_margin=0,this.inapp_bottom_margin=0,this.inapp_left_margin=0,this.inapp_right_margin=0;if(this.border_config=e.border_config,this.border_config&&0!=Object.keys(this.border_config).length){var c=this.border_config;this.has_border_config=!0,this.border_radius=c.border_radius||15,this.border_color=c.border_color||"#27a4f2",this.border_style=c.border_style||"outset",this.border_width=c.border_width||2}else this.has_border_config=!1,this.border_width=0;if(this.close_config=e.close_config,this.close_config&&0!=Object.keys(this.close_config).length){this.has_close_config=!0;var l=this.close_config;this.enable_close=l.enable_close||!0,this.close_btn_color=l.close_btn_color,this.close_btn_path=l.close_btn_path||"",this.close_btn_bg_color=l.close_btn_bg_color||"#FFFAAA",this.close_btn_type=l.close_btn_type||"normal"}else this.has_close_config=!1;if(this.scroll_config=e.scroll_config,this.scroll_config&&0!=Object.keys(this.scroll_config).length){this.has_scroll_config=!0;var d=this.scroll_config;this.is_scrollable=d.is_scrollable||!1,this.scroll_border_color=d.scroll_border_color||COLORS.BLACK,this.text_height=d.text_height||400}else this.has_scroll_config=!1;if(this.icon_config=e.icon_config,this.icon_config&&0!=Object.keys(this.icon_config).length){this.has_icon_config=!0;var p=this.icon_config;this.icon_path=p.icon_path||"",this.icon_width=p.icon_width||48,this.icon_height=p.icon_height||48,this.icon_border=p.icon_border||0,this.icon_radius=p.icon_radius||0,this.icon_border_color=p.icon_border_color||COLORS.BLACK,this.icon_position=p.icon_position||CENTER,this.icon_color=p.icon_color||""}else this.has_icon_config=!1;if(this.image_config=e.image_config,this.image_config&&0!=Object.keys(this.image_config).length){this.has_image_config=!0;var u=this.image_config;this.image_path=u.image_path||"",this.image_width=u.image_width||360,this.image_height=u.image_height||360,this.image_shadow_color=u.image_shadow_color||"#000000",this.image_shadow_opacity=u.image_shadow_opacity||.2,this.image_as_background=u.image_as_background||!1}else this.has_image_config=!1;if(this.video_config=e.video_config,this.video_config&&0!=Object.keys(this.video_config).length){this.has_video_config=!0;var h=this.video_config;this.video_embed=h.video_embed||!1,this.video_embed_html=h.video_embed_html||"",this.video_height=h.video_height||360,this.video_width=h.video_width||360,this.video_path=h.video_path||""}else this.has_video_config=!1;if(this.title_config=e.title_config,e.title_config&&0!=Object.keys(this.title_config).length){var f;this.has_title_config=!0;var g=e.title_config;this.title_icon_path=null!==(f=g.icon_path)&&void 0!==f?f:"",this.title_icon_height=g.icon_height,this.title_icon_width=g.icon_width,this.title_icon_radius=g.icon_radius||0,this.title_icon_border=g.icon_border,this.title_icon_border_color=g.icon_border_color}else this.has_title_config=!1;if(this.text_config=e.text_config,e.text_config&&0!=Object.keys(this.text_config).length?this.has_text_config=!0:this.has_text_config=!1,this.form_config=e.form_config,e.form_config&&0!=Object.keys(this.form_config).length){this.has_form_config=!0;var m=e.form_config;this.form_fontsize=m.font_size,this.form_fontfamily=m.font_family,this.form_padding=m.padding,this.form_elements=m.form_elements}else this.has_form_config=!1;if(this.buttons_config_new=e.buttons_config_new,e.buttons_config_new&&0!=this.buttons_config_new.length){var _=e.buttons_config_new;this.top_buttons_config=_.top_buttons,_.top_buttons&&0!=this.top_buttons_config.length?this.has_top_buttons_config=!0:this.has_top_buttons_config=!1,this.center_buttons_config=_.center_buttons,_.center_buttons&&0!=this.center_buttons_config.length?this.has_center_buttons_config=!0:this.has_center_buttons_config=!1,this.bottom_buttons_config=_.bottom_buttons,_.bottom_buttons&&0!=this.bottom_buttons_config.length?this.has_bottom_buttons_config=!0:this.has_bottom_buttons_config=!1}if(this.buttons_config=e.buttons_config,e.buttons_config&&0!=this.buttons_config.length?this.has_buttons_config=!0:this.has_buttons_config=!1,this.button_position=e.button_position,this.button_direction=e.button_direction||DIRECTION.HORIZONTAL,this.shadow_config=e.shadow_config,this.shadow_config&&0!=Object.keys(this.shadow_config).length){this.has_shadow_config=!0;var v=this.shadow_config;this.show_shadow=v.show_shadow||!0,this.shadow_color=v.shadow_color||"#888888"}else this.has_shadow_config=!1;if(this.gradient_config=e.gradient_config,this.gradient_config&&0!=Object.keys(this.gradient_config).length){this.has_gradient_config=!0;var y=this.gradient_config;this.gradient_direction=y.gradient_direction||"to right",this.gradient_c1=(null==y?void 0:y.colors[0])||COLORS.BLACK,this.gradient_c2=(null==y?void 0:y.colors[1])||COLORS.WHITE}else this.has_gradient_config=!1;this.terminate_info=e.terminate_info,this.terminate_info&&0!=Object.keys(this.terminate_info).length?this.has_terminate_info=!0:this.has_terminate_info=!1,this.width=e.width||50,this.height=e.height||50,this.min_width="",this.inapp_width="auto",this.inapp_height="auto",this.media_width="auto",this.media_height="auto",this.configId=t,this.name=n,this.showCallback=i,this.closeCallback=o,this.currentId=makeid(10),this.dimBackgroundElement=null,this.overlayElement=null,this.inAppContainer=null}return _createClass$1(ModalInApp,[{key:"createInAppModal",value:function(){this._setInAppDimensions(),this._setBackgroundOverlays(),this._setStyles(),this._setInAppModalContent(),this._setAutoTerminate(),this._showInApp()}},{key:"_setInAppDimensions",value:function(){var e=this.inapp_direction===DIRECTION.VERTICAL?this.width/100:this.height/100,t=this.inapp_direction!==DIRECTION.VERTICAL;this.has_image_config?this._setDimenstionFromResolution(this.image_width,this.image_height,e,t):this.has_video_config?this.video_embed?this.inapp_direction===DIRECTION.VERTICAL?(this.inapp_width="".concat(this.video_width+2*this.border_width,"px"),this.media_width="".concat(this.video_width,"px")):(this.inapp_height="".concat(this.video_height,"px"),this.media_height="".concat(this.video_height,"px"),this.min_width="".concat(this.width,"%")):this._setDimenstionFromResolution(this.video_width,this.video_height,e,t):this.has_icon_config?this.inapp_direction===DIRECTION.VERTICAL?this.inapp_width="".concat(this.width,"%"):this.min_width="".concat(this.width,"%"):this.inapp_direction===DIRECTION.VERTICAL&&(this.inapp_width="".concat(this.width,"%"))}},{key:"_setDimenstionFromResolution",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=getHeightWidthFromResolution({width:e,height:t},n,i);this.media_width="".concat(o.width,"px"),this.media_height="".concat(o.height,"px"),this.inapp_direction===DIRECTION.VERTICAL?this.inapp_width="".concat(o.width+2*this.border_width,"px"):(this.inapp_height="".concat(o.height+2*this.border_width,"px"),this.min_width="".concat(this.width,"%"))}},{key:"_setBackgroundOverlays",value:function(){var e=this;this.overlayElement=document.createElement("div"),this.overlayElement.classList.add("apx-inapp-overlay");var t=this.overlayElement;this.dim_background&&(this.dimBackgroundElement=document.createElement("div"),this.dimBackgroundElement.classList.add("apx-dimbackground-overlay"),t=this.dimBackgroundElement,this.overlayElement.appendChild(this.dimBackgroundElement)),this.dismiss_outside_touch&&(t.onclick=function(){e.closeCallback(e.overlayElement,"dismiss",".apx-inapp-container")}),document.body.appendChild(this.overlayElement)}},{key:"_setStyles",value:function(){var e=" \n ".concat(this._getBackgroundContainerStyles()," \n ").concat(this._getInAppContainerStyles()," \n ").concat(this._getScrollStyles()," \n ").concat(this._getControlsStyles()," \n ").concat(this._getInAppMediaContainerStyles(),"\n ").concat(this._getInAppNonMediaContainerStyles(),"\n ").concat(this._getTextConatinerStyles(),"\n ").concat(this._getTitleStyles()," \n ").concat(this._getDescriptionStyles()," \n ").concat(this._getFormStyles(),"\n ").concat(this._getInAppButtonContainerStyles(),"\n ").concat(this._getIconStyles()," \n ").concat(this._getImageStyles()," \n ").concat(this._getVideoStyles()," \n ").concat(this._getBootstrapiconsStyles()," \n ").replaceAll("\n","").replace(/[\s]{2,999}/g,""),t=document.createElement("style");t.innerHTML=e,this.overlayElement.appendChild(t)}},{key:"_getBackgroundContainerStyles",value:function(){return"\n .apx-inapp-overlay {\n width:100%;\n height:100%;\n }\n .apx-dimbackground-overlay {\n width:100%;\n height:100%;\n position:fixed;\n top:0;\n left:0;\n z-index:999;\n background-color:".concat(this.dim_background?this.dim_background_color:"transparent",";\n ").concat(this.dim_background?"opacity: ".concat(this.dim_background_opacity,";"):"","\n overflow: auto;\n }\n ")}},{key:"_getInAppContainerStyles",value:function(){var e="";switch(this.inapp_position){case INAPP_POSITION.TOP_LEFT:e="\n top:0;\n left:0;\n ";break;case INAPP_POSITION.TOP_CENTER:e="\n left:50%;\n top:".concat(this.inapp_top_margin,"px;\n -webkit-transform: translate(-50%, ").concat(.1*this.inapp_top_margin,"px);\n -moz-transform: translate(-50%, ").concat(this.inapp_top_margin,"px);\n ");break;case INAPP_POSITION.TOP_RIGHT:e="\n top:0;\n right:0;\n ";break;case INAPP_POSITION.BOTTOM_LEFT:e="\n bottom:0;\n left:0;\n ";break;case INAPP_POSITION.BOTTOM_CENTER:e="\n left:50%;\n bottom:".concat(this.inapp_bottom_margin,"px;\n -webkit-transform: translate(-50%, ").concat(.1*this.inapp_bottom_margin,"px);\n -moz-transform: translate(-50%, ").concat(this.inapp_bottom_margin,"px);\n ");break;case INAPP_POSITION.BOTTOM_RIGHT:e="\n bottom:0;\n right:0;\n ";break;case INAPP_POSITION.CENTER:default:e="\n left:50%;\n top:50%;\n -webkit-transform: translate(-50%, -50%);\n -moz-transform: translate(-50%, -50%);\n "}var t="";this.min_width&&(t="min-width:".concat(this.min_width,";"));var n="";this.has_border_config&&(n="\n border-radius: ".concat(this.border_radius,"px;\n border: ").concat(this.border_width,"px ").concat(this.border_style," ").concat(this.border_color,";\n "));var i="";this.has_gradient_config&&(i="\n background-image:linear-gradient(".concat(this.gradient_direction,", ").concat(this.gradient_c1,", ").concat(this.gradient_c2,");\n "));var o="";this.has_shadow_config&&(o="\n box-shadow: 0px 0px 7px 7px ".concat(this.shadow_color,";\n "));var r="";this.has_padding_config&&(r="\n padding:".concat(this.inapp_top_padding,"px ").concat(this.inapp_right_padding,"px ").concat(this.inapp_bottom_padding,"px ").concat(this.inapp_left_padding,"px;\n "));var a=this.inapp_direction!==DIRECTION.VERTICAL?"flex-direction:row;":"flex-direction:column;";return a=" ".concat(a,"\n justify-content:space-evenly;\n align-items:center;\n display:flex;\n "),"\n .apx-inapp-container {\n height:".concat(this.inapp_height,";\n width:").concat(this.inapp_width,";\n margin: auto;\n background-color:").concat(this.background_color,";\n z-index:9999;\n opacity:0;\n transition:all .5s cubic-bezier(.96,.23,.07,.8);\n position:fixed;\n visibility:hidden;\n\n ").concat(t,"\n ").concat(a,"\n ").concat(r,"\n ").concat(n,"\n ").concat(i,"\n ").concat(o,"\n ").concat(e,"\n }\n \n .apx-inapp-container.open{\n opacity:1;\n visibility:visible;\n }\n ")}},{key:"_getScrollStyles",value:function(){return this.has_scroll_config&&this.is_scrollable?"\n .apxor-inapp-scroll {\n overflow:scroll; \n overflow-x: hidden;\n height:".concat(this.text_height,"px;\n border-top: 2px solid ").concat(this.scroll_border_color,";\n border-bottom : 2px solid ").concat(this.scroll_border_color,";\n }\n "):"\n .apxor-inapp-scroll {\n overflow : hidden;\n }\n "}},{key:"_getControlsStyles",value:function(){return this.inapp_nonmedia_direction===DIRECTION.VERTICAL||this.inapp_direction===DIRECTION.VERTICAL?"\n .apxor-inapp-close {\n position: absolute;\n z-index:9999;\n top: 5px;\n right: 5px;\n width: 24px;\n height: 24px;\n cursor: pointer;\n }\n ":"\n .apxor-inapp-close {\n display:flex;\n flex-direction:row;\n justify-content:center;\n align-items:center;\n width: 24px;\n height: 24px;\n cursor: pointer;\n }\n "}},{key:"_getInAppMediaContainerStyles",value:function(){return"\n .apx-inapp-media-container{\n ".concat(this.has_icon_config?"align-self:".concat(this.icon_position,";"):"","\n ").concat(this.has_image_config&&this.has_video_config&&this.inapp_direction===DIRECTION.HORIZONTAL?"display:flex;":"","\n }")}},{key:"_getInAppNonMediaContainerStyles",value:function(){return this.inapp_nonmedia_direction!==DIRECTION.VERTICAL?"\n .apx-inapp-nonmedia-container{\n flex-grow:2;\n display:flex;\n flex-direction:row;\n justify-content:space-between;\n align-items:center;\n }\n ":"\n .apx-inapp-nonmedia-container{\n display:flex;\n flex-direction:column;\n justify-content:center;\n align-items:stretch;\n }\n "}},{key:"_getTextConatinerStyles",value:function(){return"\n .apxor-text-container{\n display:flex;\n flex-direction:column;\n justify-content: center;\n overflow-wrap: break-word;\n align-items:center;\n ".concat(this.title_config.alignment?"text-align:".concat(this.title_config.alignment,";"):"","\n }\n ")}},{key:"_getTitleStyles",value:function(){var e,t,n;return"\n .apxor-title-div {\n ".concat(null!==(e=this.title_config)&&void 0!==e&&e.background_color?'background-color:"'.concat(this.title_config.background_color,'";'):"","\n ").concat(null!==(t=this.title_config)&&void 0!==t&&t.margin_config?"\n margin-top:".concat(this.title_config.margin_config.top,"px;\n margin-bottom:").concat(this.title_config.margin_config.bottom,"px;\n margin-left:").concat(this.title_config.margin_config.left,"px;\n margin-right:").concat(this.title_config.margin_config.right,"px;\n "):""," \n ").concat(null!==(n=this.title_config)&&void 0!==n&&n.padding_config?"\n padding-top:".concat(this.title_config.padding_config.top,"px;\n padding-bottom:").concat(this.title_config.padding_config.bottom,"px;\n padding-left:").concat(this.title_config.padding_config.left,"px;\n padding-right:").concat(this.title_config.padding_config.right,"px;\n "):""," \n }\n .apxor-title-icon {\n ").concat(""!==this.title_icon_path?"\n background:url('".concat(this.title_icon_path,"') no-repeat fixed center;\n display: inline-block;\n height: ").concat(this.title_icon_height,"px;\n width: ").concat(this.title_icon_width,"px;\n border-radius:").concat(this.title_icon_radius,"%;\n border:").concat(this.title_icon_border,"px solid ").concat(this.title_icon_border_color,";\n margin-right: 15px;\n vertical-align: middle\n "):"","\n }\n ")}},{key:"_getDescriptionStyles",value:function(){var e,t,n;return"\n .apxor-inapp-description {\n ".concat(null!==(e=this.text_config)&&void 0!==e&&e.background_color?'background-color:"'.concat(this.text_config.background_color,'";'):"","\n ").concat(null!==(t=this.text_config)&&void 0!==t&&t.margin_config?"\n margin-top:".concat(this.text_config.margin_config.top,"px;\n margin-bottom:").concat(this.text_config.margin_config.bottom,"px;\n margin-left:").concat(this.text_config.margin_config.left,"px;\n margin-right:").concat(this.text_config.margin_config.right,"px;\n "):""," \n ").concat(null!==(n=this.text_config)&&void 0!==n&&n.padding_config?"\n padding-top:".concat(this.text_config.padding_config.top,"px;\n padding-bottom:").concat(this.text_config.padding_config.bottom,"px;\n padding-left:").concat(this.text_config.padding_config.left,"px;\n padding-right:").concat(this.text_config.padding_config.right,"px;\n "):""," \n }\n ")}},{key:"_getFormStyles",value:function(){return"\n .apxor-form-container{\n padding:".concat(this.form_padding,"px;\n font-size:").concat(this.form_fontsize,"px;\n font-family:").concat(this.form_fontfamily,";\n display:flex;\n flex-direction:column;\n }")}},{key:"_getInAppButtonContainerStyles",value:function(){return"\n .apx-inapp-button-container{\n display:flex;\n flex-direction:row;\n align-items:center;\n justify-content:center;\n margin:0 10px 0 10px;\n }\n .apx-inapp-top-button-container{\n width:100%;\n height:auto;\n }\n .apx-inapp-center-button-container{\n width:100%;\n height:auto;\n }\n .apx-inapp-bottom-button-container{\n width:100%;\n height:auto;\n }"}},{key:"_getIconStyles",value:function(){var e="";return this.has_icon_config&&(e="\n .apxor-inapp-icon-container {\n text-align:".concat(this.icon_position,";\n }\n .apxor-inapp-icon-content {\n background:url('").concat(this.icon_path,"') no-repeat fixed center;\n display:inline-block;\n height: ").concat(this.icon_height,"px;\n width: ").concat(this.icon_width,"px;\n border-radius:").concat(this.icon_radius,"%;\n border:").concat(this.icon_border,"px solid ").concat(this.icon_border_color,";\n }\n ")),e}},{key:"_getImageStyles",value:function(){var e="";return this.has_image_config&&(e=this.image_as_background?"\n .apxor-inapp-image{\n background:url('".concat(this.image_path,"') no-repeat 50% 50%;\n box-shadow: inset ").concat(this.image_width,"px ").concat(this.image_height,"px 0px 0px ").concat(hexToRGB(this.image_shadow_color,this.image_shadow_opacity),",inset -").concat(this.image_width,"px -").concat(this.image_height,"px 0px 0px ").concat(hexToRGB(this.image_shadow_color,this.image_shadow_opacity),"\n }\n "):"\n .apxor-inapp-image{\n height: ".concat(this.media_height,";\n width: ").concat(this.media_width,";\n }\n ")),e}},{key:"_getVideoStyles",value:function(){var e="";return this.has_video_config&&(e="\n .apxor-inapp-video {\n width:".concat(this.media_width,";\n height:").concat(this.media_height,";\n }\n ")),e}},{key:"_getBootstrapiconsStyles",value:function(){return'\n .bi::before, [class^="bi-"]::before, [class*=" bi-"]::before {\n display: inline-block;\n font-style: normal;\n font-weight: normal !important;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n vertical-align: -.125em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .bi-x::before { \n content: "62a"; \n }\n .bi-x-circle-fill::before { \n content: "622"; \n }\n '}},{key:"_setInAppModalContent",value:function(){this._createInAppContainer(),this._createTopButtonContainer(),this._setButtons(BUTTON_CONTAINER_POSITION.TOP),this._createMediaContainer(),this._createCenterButtonContainer(),this._setButtons(BUTTON_CONTAINER_POSITION.CENTER),this._setImageOptions(),this._setVideoOptions(),this._setIconOptions(),this._createNonMediaContainer(),this._setTextContainer(),this._setTitleContent(),this._setDescriptionContent(),this._setFormContent(),this._createButtonContainer(),this._setCTAButtons(),this._createBottomButtonContainer(),this._setButtons(BUTTON_CONTAINER_POSITION.BOTTOM),this._setCloseButton()}},{key:"_createInAppContainer",value:function(){this.inAppContainer=document.createElement("div"),this.inAppContainer.classList.add("apx-inapp-container"),this.overlayElement.appendChild(this.inAppContainer)}},{key:"_createMediaContainer",value:function(){this.mediaContainer=document.createElement("div"),this.mediaContainer.classList.add("apx-inapp-media-container"),this.inAppContainer.appendChild(this.mediaContainer)}},{key:"_setImageOptions",value:function(){if(this.has_image_config)if(this.image_as_background)this.inAppContainer.classList.add("apxor-inapp-image");else{var e=document.createElement("div"),t=document.createElement("img");t.src=this.image_path,t.classList.add("apxor-inapp-image"),e.appendChild(t),this.mediaContainer.appendChild(e)}}},{key:"_setVideoOptions",value:function(){if(this.has_video_config){var e=document.createElement("div");if(this.video_embed)e.innerHTML="".concat(this.video_embed_html);else{var t=document.createElement("video");t.classList.add("apxor-inapp-video"),t.controlsList="noplaybackrate nodownload",t.disablePictureInPicture=!0,t.controls=!0;var n=document.createElement("source");n.setAttribute("src",this.video_path),n.setAttribute("type","video/mp4"),t.appendChild(n),e.appendChild(t)}this.mediaContainer.appendChild(e)}}},{key:"_setIconOptions",value:function(){if(this.has_icon_config){var e=document.createElement("div");e.classList.add("apxor-inapp-icon-container");var t=document.createElement("span");t.classList.add("apxor-inapp-icon-content"),e.appendChild(t),this.mediaContainer.appendChild(e)}}},{key:"_createNonMediaContainer",value:function(){this.nonMediaContainer=document.createElement("div"),this.nonMediaContainer.classList.add("apx-inapp-nonmedia-container"),this.inAppContainer.appendChild(this.nonMediaContainer)}},{key:"_setTextContainer",value:function(){this.textContainer=document.createElement("div"),this.textContainer.classList.add("apxor-text-container"),this.nonMediaContainer.appendChild(this.textContainer)}},{key:"_setTitleContent",value:function(){if(this.has_title_config){resolveDynamicText(this.title_config);var e=document.createElement("div");if(e.classList.add("apxor-title-div"),""!=this.title_icon_path){var t=document.createElement("span");t.classList.add("apxor-title-icon"),e.appendChild(t)}e.appendChild(createTextElement(this.title_config,this.currentId,"title")),this.textContainer.appendChild(e)}}},{key:"_setDescriptionContent",value:function(){if(this.has_text_config){resolveDynamicText(this.text_config);var e=document.createElement("div");e.classList.add("apxor-inapp-description"),e.appendChild(createTextElement(this.text_config,this.currentId,"description")),e.classList.add("apxor-inapp-scroll"),this.textContainer.appendChild(e)}}},{key:"_setFormContent",value:function _setFormContent(){var _this2=this;if(this.has_form_config){var _this$form_elements,formContainer=document.createElement("form");formContainer.classList.add("apxor-form-container");var dummy="";null===(_this$form_elements=this.form_elements)||void 0===_this$form_elements||_this$form_elements.forEach((function(e){dummy+=generateFormField(e)})),formContainer.innerHTML=dummy,this.nonMediaContainer.appendChild(formContainer);var form=document.querySelector(".apxor-form-container");form.addEventListener("submit",(function(e){e.preventDefault();var _this2$generateRespon=_this2.generateResponse(_this2.form_elements),obj=_this2$generateRespon.obj,callback=_this2$generateRespon.callback,evalString="(obj)=>"+callback+"(obj)",evalFunction=eval(evalString);evalFunction(obj),_this2.closeCallback(_this2.overlayElement,"dismiss",".apx-inapp-container")}))}}},{key:"_createButtonContainer",value:function(){this.inapp_nonmedia_direction!==DIRECTION.VERTICAL&&(this.buttonContainer=document.createElement("div"),this.buttonContainer.classList.add("apx-inapp-button-container"),this.nonMediaContainer.appendChild(this.buttonContainer))}},{key:"_createTopButtonContainer",value:function(){this.has_top_buttons_config&&(this.topButtonContainer=document.createElement("div"),this.topButtonContainer.classList.add("apx-inapp-top-button-container"),this.inAppContainer.appendChild(this.topButtonContainer))}},{key:"_createCenterButtonContainer",value:function(){this.has_center_buttons_config&&(this.centerButtonContainer=document.createElement("div"),this.centerButtonContainer.classList.add("apx-inapp-center-button-container"),this.inAppContainer.appendChild(this.centerButtonContainer))}},{key:"_createBottomButtonContainer",value:function(){this.has_bottom_buttons_config&&(this.bottomButtonContainer=document.createElement("div"),this.bottomButtonContainer.classList.add("apx-inapp-bottom-button-container"),this.nonMediaContainer.appendChild(this.bottomButtonContainer))}},{key:"_setButtons",value:function(e){var t=this;if(e===BUTTON_CONTAINER_POSITION.TOP&&this.has_top_buttons_config||e===BUTTON_CONTAINER_POSITION.CENTER&&this.has_center_buttons_config||e===BUTTON_CONTAINER_POSITION.BOTTOM&&this.has_bottom_buttons_config){var n=this.overlayElement,i=function(e,i){t.closeCallback(n,i,".apx-inapp-container")},o={next:i,complete:i,cancel:i,_isCancelled:!1,action:""},r={};r=e===BUTTON_CONTAINER_POSITION.TOP?this.top_buttons_config:e===BUTTON_CONTAINER_POSITION.CENTER?this.center_buttons_config:this.bottom_buttons_config;var a=generateButtonsBlock(this.configId,this.name,EVENT_PREFIX.INAPP,r,this.button_direction,this.button_position,e,o);e===BUTTON_CONTAINER_POSITION.TOP?this.topButtonContainer.appendChild(a):e===BUTTON_CONTAINER_POSITION.CENTER?this.centerButtonContainer.appendChild(a):this.bottomButtonContainer.appendChild(a)}}},{key:"_setCTAButtons",value:function(){var e=this;if(this.has_buttons_config){var t=this.overlayElement,n=function(n,i){e.closeCallback(t,i,".apx-inapp-container")},i={next:n,complete:n,cancel:n,_isCancelled:!1,action:""},o=generateCTAButtons(this.configId,this.name,EVENT_PREFIX.INAPP,this.buttons_config,this.button_position,this.button_direction,i);this.inapp_nonmedia_direction===DIRECTION.VERTICAL?this.nonMediaContainer.appendChild(o):this.buttonContainer.appendChild(o)}}},{key:"_setCloseButton",value:function(){var e=this;if(this.enable_close){var t=document.createElement("span");this.close_btn_type===CLOSE_BUTTON_STYLE.NORMAL?t.innerHTML=getCloseSVG(24,24,this.close_btn_color):this.close_btn_type===CLOSE_BUTTON_STYLE.FILL?t.innerHTML=getCloseWithCircleSVG(24,24,this.close_btn_bg_color):t.innerHTML='<img src="'.concat(this.close_btn_path,'" width="24" height="24"></img>'),t.classList.add("apxor-inapp-close"),t.addEventListener("click",(function(){e.closeCallback(e.overlayElement,"dismiss",".apx-inapp-container")})),this.inapp_nonmedia_direction===DIRECTION.VERTICAL||this.inapp_direction===DIRECTION.VERTICAL?this.inAppContainer.appendChild(t):this.buttonContainer.appendChild(t)}}},{key:"_setAutoTerminate",value:function(){var e=this;if(this.has_terminate_info&&this.terminate_info.auto_dismiss){var t=this.terminate_info.duration,n=void 0===t?1e3:t;window.setTimeout((function(){e.closeCallback(e.overlayElement,"dismiss",".apx-inapp-container")}),n)}}},{key:"_showInApp",value:function(){this.inAppContainer.classList.toggle("open"),this.showCallback()}}]),ModalInApp}(),Logger$2=window.ApxorLogger;function createInApp(e,t,n){var i=n.dimmed_background,o=document.createElement("div");o.setAttribute("id",APX_OVERLAY);var r=document.createElement("style");r.innerHTML="#apx-oly {\n width:auto;height:auto;position:fixed;top:0;right:0;bottom:0;left:0;\n display:flex;justify-content:center;align-items:center;border-radius:3px;z-index:99999999;background-color:".concat(i?"#31313185":"transparent",";\n\n }\n #apx-oly > * {font-family:inherit;box-sizing:unset}\n .apx-dlg-c {\n height:auto;width:auto;z-index:99999999;opacity:0;transition:all .5s cubic-bezier(.96,.23,.07,.8);position:fixed;visibility:hidden;\n border-radius:3px;overflow:hidden\n }\n .apx-dlg-c.open{opacity:1;visibility:visible;width:100%;height:100%;}\n ").replaceAll("\n","").replace(/[\s]{2,999}/g,"");var a=document.createElement("div");return a.setAttribute("id",APX_DIALOG_CONTENT),a.classList.add(APX_DIALOG_CONTENT),o.appendChild(a),o.appendChild(r),document.body.appendChild(o),o}function createInAppVideo(e,t,n,i,o){VideoInApp.isAVideoBeingPlayed()||VideoInApp.canShowVideoInApp(e)&&new VideoInApp(e,t,n,i,o).showVideoInApp()}function createInAppModal(e,t,n,i,o){new ModalInApp(e,t,n,i,o).createInAppModal()}var InAppConfigItem=_createClass$1((function e(){var t=this;_classCallCheck$1(this,e),_defineProperty$1(this,"initialize",(function(e,n,i){var o=i.delay,r=i.layout_type,a=void 0===r?"":r,s=i.html_config.data,c=void 0===s?"":s,l=i.window_attributes,d=l.width,p=void 0===d?"auto":d,u=l.height,h=void 0===u?"auto":u,f=l.dimmed_background,g=void 0===f||f,m=l.dismiss_outside_touch,_=void 0!==m&&m,v=l.position,y=void 0===v?CENTER:v;return t.configId=e,t.name=n,t.delay=o,t.width=p,t.height=h,t.layoutConfig={layout_type:a,dimmed_background:g,dismiss_outside_touch:_,position:y},t.htmlConfig={data:c},a!==INAPP_TYPE.VIDEO&&a!==INAPP_TYPE.MODAL&&""==t.htmlConfig.data?(t.isValid=!1,!1):(t.ui=i,t.rtmInstance=window.ApxorRTM,t.on_show=function(){t.rtmInstance.logActionEvent("inapp_shown",t.configId,t.name),t.rtmInstance.isShowingAction=!0,t.rtmInstance.currentAction=function(){}},t.on_hide=function(){t.rtmInstance.isShowingAction=!1,t.rtmInstance.currentAction=null,t.rtmInstance.logActionEvent("inapp_dismissed",t.configId,t.name)},!0)})),_defineProperty$1(this,"showInApp",(function(){if(!t.isValid)return!1;setTimeout((function(){if(null===t.rtmInstance.currentAction||void 0===t.rtmInstance.currentAction)try{if(ceWrapper.getInstance().updateCount(t.configId),t.layoutConfig.layout_type===INAPP_TYPE.VIDEO)createInAppVideo(t.ui,t.configId,t.name,t.on_show,t.on_hide);else if(t.layoutConfig.layout_type===INAPP_TYPE.MODAL)createInAppModal(t.ui,t.configId,t.name,t.on_show,t._closeInApp);else{var e=createInApp(t.width,t.height,t.layoutConfig);t.layoutConfig.dismiss_outside_touch&&(document.getElementById(APX_OVERLAY).onclick=function(){t._closeInApp(e)}),setTimeout((function(){e.children[0].classList.toggle("open"),e.children[0].innerHTML=t.htmlConfig.data,t._logInAppEvent(INAPP_SHOWN),t.on_show(),e.querySelectorAll("a").forEach((function(n){n.onclick=function(){return t._takeAction(e,n)}}))}),100)}}catch(e){Logger$2.error(e)}else Logger$2.error("An action is already being shown.")}),t.delay)})),_defineProperty$1(this,"_takeAction",(function(e,n){var i=n.getAttribute("href");if(null!=i&&i.includes("apxor")){var o,r=i.replace(/^apxor:\/\/([^\?]*).*?$/,"$1");switch(r){case"cancel":t._logInAppEvent(WALK_THROUGH_CANCELLED);break;case"xclose":t._logInAppEvent(INAPP_XICON_CLICKED);break;case"close":o=i.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),t._logInAppEvent(INAPP_BUTTON_CLICKED(""===o?"Button":o));break;case"dl_url":var a=i.replace(/(.*?)uri=([^\&]*).*?$/,"$2"),s=i.replace(/(.*?)external=([^\&]*).*?$/,"$2");o=i.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),t._logInAppEvent(INAPP_BUTTON_CLICKED(""===o?"Button":o)),"true"==s?window.open(a,"_blank"):Apxor.logClientEvent("REDIRECT",{url:a})}return t._closeInApp(e,r),!1}return!0})),_defineProperty$1(this,"_closeInApp",(function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".apx-dlg-c";"cancel"!==n&&t._logInAppEvent(INAPP_DISMISSED);var o=document.querySelector(i);o.classList.toggle("open"),setTimeout((function(){e.remove(),t.on_hide()}),300)})),_defineProperty$1(this,"_logInAppEvent",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.rtmInstance.getCampaignMeta(t.configId),o=i._attr;Apxor.logEvent(e,_objectSpread2$1(_objectSpread2$1({id:t.configId,message_name:t.name},n),o))})),this.isValid=!0})),ApxorInApp=_createClass$1((function e(){_classCallCheck$1(this,e),_defineProperty$1(this,"parse",(function(e,t,n){var i=new InAppConfigItem;return i.initialize(e,t,n)?i:null}))})),onMouseOver=function(e){if(e.target){var t=e.target.classList,n=t.contains("apx-highlight")||-1!==t.toString().indexOf("apx-");t&&!n&&(e.target.classList.add("apx-highlight"),e.target.oldOnClick=e.target.onclick,e.target.onclick=null)}},onMouseOut=function(e){e.target&&e.target.classList&&e.target.classList.contains("apx-highlight")&&(e.target.classList.remove("apx-highlight"),e.target.onclick=e.target.oldOnClick,e.target.oldOnClick=null)},handleDocumentOnClick=function(e,t){var n=e.target;n&&n.classList.contains("apx-highlight")&&(e.preventDefault(),e.stopPropagation(),n.classList.remove("apx-highlight"),n.onclick=n.oldOnClick,n.oldOnClick=null,t&&t(n))};function dragElement(e){var t,n=window.innerHeight-8,i=8,o=window.innerWidth-8,r=8,a=0,s=0,c=0,l=0,d=document.getElementById(e.id+"-h");function p(n){n.preventDefault(),n.stopPropagation(),"touchstart"===(n=n||window.event).type?(c=n.targetTouches[0].pageX,l=n.targetTouches[0].pageY):(c=n.clientX,l=n.clientY),t=e.getBoundingClientRect(),document.addEventListener("mouseup",h),document.addEventListener("touchend",h,{passive:!1}),document.addEventListener("mousemove",u),document.addEventListener("touchmove",u,{passive:!1})}function u(d){d.preventDefault(),d.stopPropagation(),"touchmove"===(d=d||window.event).type?(a=c-d.targetTouches[0].pageX,s=l-d.targetTouches[0].pageY,c=d.targetTouches[0].pageX,l=d.targetTouches[0].pageY):(a=c-d.clientX,s=l-d.clientY,c=d.clientX,l=d.clientY);var p=e.offsetLeft-a,u=e.offsetTop-s;p<i||u<r||p+t.width>o||u+t.height>n||(e.style.top=e.offsetTop-s+"px",e.style.left=e.offsetLeft-a+"px",e.style.right="")}function h(){document.removeEventListener("mouseup",h),document.removeEventListener("touchend",h),document.removeEventListener("mousemove",u),document.removeEventListener("touchmove",u)}d?(d.addEventListener("mousedown",p),d.addEventListener("touchstart",p,{passive:!1})):(e.addEventListener("mousedown",p),e.addEventListener("touchstart",p,{passive:!1}))}var ON_HTML="<b>View Selection Mode: ON",OFF_HTML="<b>View Selection Mode: OFF</b>",SSE_API="https://server.apxor.com/v1/sse/",LAYOUT_URL=SSE_API+"layout?appId=<aid>&deviceId=<uid>",PREVIEW_API=SSE_API+"ui-config?appId=<aid>&deviceId=<uid>",CONFIG_API=SSE_API+"art-config?appId=<aid>&deviceId=<uid>",FRONTEND_API="https://server.apxor.com/v4/frontendapi/web/test-devices",ADD_TEST_DEVICE_API=FRONTEND_API+"?appId=<aid>",REMOVE_TEST_DEVICE_API=FRONTEND_API+"/<uid>?appId=<aid>",WYSIWYG=_createClass$1((function e(){var t=this;_classCallCheck$1(this,e),_defineProperty$1(this,"_styleNode",null),_defineProperty$1(this,"_viewPickerNode",null),_defineProperty$1(this,"_addRemoveTestDeviceDialog",null),_defineProperty$1(this,"_wysiwygRoot",null),_defineProperty$1(this,"_vid",""),_defineProperty$1(this,"init",(function(e,n){var i=getCookie("_apx_ewc");if(i){var o=atob(i);try{var r=Apxor.getController().getFromStorage(o,!0);if(!r)return;var a=r.app_id,s=r.expiry,c=r.volatile_id;if(t._vid=c,a===e&&Date.now()<=s){var l=document.createElement("span");if(l.style="z-index:99999999;visibility:hidden;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:16px 24px;background:#252f37;border-radius:3px;opacity:0;font-size:24px;color:white;transition:all .3s ease-out",l.innerHTML=ON_HTML,t._viewPickerNode=l,document.body.appendChild(l),t._styleNode=document.createElement("style"),t._styleNode.innerHTML=".apx-highlight{height:auto;z-index:9999999999;outline: 2px solid red;cursor:default}",document.body.appendChild(t._styleNode),t.isSelectionMode=!1,t.testDeviceData=Apxor.getController().getFromStorage("_apx_td",!0),t.testDeviceData){var d=t.testDeviceData,p=d.name,u=void 0===p?"":p,h=d.id,f=void 0===h?"":h;if(""!==u&&""!==f){t._makeSSERequest("select","".concat(u," - ").concat(f),f);var g=new EventSource(PREVIEW_API.replace("<aid>",e).replace("<uid>",f)),m=new EventSource(CONFIG_API.replace("<aid>",e).replace("<uid>",f));g.onmessage=m.onmessage=function(e){e&&e.data&&"{}"!==e.data&&t._handleSSEResponse(n,e.data)}}}t._createDraggableWYSIWYGOverlay(n)}}catch(e){window.ApxorLogger.error("WYSIWYG can not be initialised")}}})),_defineProperty$1(this,"tearDown",(function(){t._viewPickerNode.parentNode.removeChild(t._viewPickerNode),t._styleNode.parentNode.removeChild(t._styleNode)})),_defineProperty$1(this,"_handleSSEResponse",(function(e,n){try{t._wysiwygRoot.dispatchEvent(new CustomEvent("preview"));var i=JSON.parse(n),o=i.cmd;if("prev"===(void 0===o?"prev":o))if(null!=i&&i.ui){var r=uuid(36),a={configs:[{_id:r,enabled:!0,terminate_info:{auto_dismiss:!1,duration:1e3},meta:{name:APX_PREVIEW_CAMPAIGN_NAME,type:i.type},ui:i.ui}]};e._storeConfigs("SURVEY"!==i.type?0:1,a),Apxor.getController().dispatchEvent(i.type,{name:i.type,additional_info:{uuid:r,name:APX_PREVIEW_CAMPAIGN_NAME}})}else if(null!=i&&i.messages){var s=[],c=[];i.messages.forEach((function(e){"SURVEY"!==e.meta.type?c.push(e):s.push(e)})),c.length>0&&e.handleResponse(0,{configs:c}),s.length>0&&e.handleResponse(1,{configs:s})}}catch(e){console.error(e)}})),_defineProperty$1(this,"_createDraggableWYSIWYGOverlay",(function(e){var n=null!==t.testDeviceData&&void 0!==t.testDeviceData&&t.testDeviceData.id&&t.testDeviceData.name,i='\n<style>\n.apx-cr{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:10px}\n.apx-b{border:none;font-size:16px;font-family:inherit;padding:8px 14px;cursor:pointer}\n.apx-close:before{content:\'\\58\';font-size:9px;color:#969696;cursor:pointer;position:absolute;top:1px;right:3px}\n</style>\n<div>\n<svg class="apx-" id="apx-wr-h" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" preserveAspectRatio="xMidYMid meet" viewBox="280.6027397260274 189.52023061718432 89.75342465753425 54.49346801295263" width="60" height="40" style="width:40px;position:absolute;top:17px;left:50%;transform:translate(-50%, -50%);cursor:move;"><defs><path d="M304.6 201.52C304.6 208.14 299.23 213.52 292.6 213.52C285.98 213.52 280.6 208.14 280.6 201.52C280.6 194.9 285.98 189.52 292.6 189.52C299.23 189.52 304.6 194.9 304.6 201.52Z" id="e2aMl5NH8S"/><path d="M324.9 189.54C331.52 189.16 337.2 194.21 337.58 200.82C337.97 207.43 332.91 213.12 326.3 213.5C319.69 213.89 314.01 208.83 313.62 202.22C313.24 195.61 318.29 189.93 324.9 189.54Z" id="e2L4sySuvL"/><path d="M304.6 232.01C304.6 225.39 299.23 220.01 292.6 220.01C285.98 220.01 280.6 225.39 280.6 232.01C280.6 238.64 285.98 244.01 292.6 244.01C299.23 244.01 304.6 238.64 304.6 232.01Z" id="a5AJxVSDw"/><path d="M337.6 232.01C337.6 225.39 332.23 220.01 325.6 220.01C318.98 220.01 313.6 225.39 313.6 232.01C313.6 238.64 318.98 244.01 325.6 244.01C332.23 244.01 337.6 238.64 337.6 232.01Z" id="bjnangUBy"/><path d="M370.36 232.01C370.36 225.39 364.98 220.01 358.36 220.01C351.73 220.01 346.36 225.39 346.36 232.01C346.36 238.64 351.73 244.01 358.36 244.01C364.98 244.01 370.36 238.64 370.36 232.01Z" id="a8aeEZTAL0"/><path d="M369.36 201.52C369.36 194.9 363.98 189.52 357.36 189.52C350.73 189.52 345.36 194.9 345.36 201.52C345.36 208.14 350.73 213.52 357.36 213.52C363.98 213.52 369.36 208.14 369.36 201.52Z" id="a4VJpGfPPp"/></defs><g><g><g><use xlink:href="#e2aMl5NH8S" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#e2L4sySuvL" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a5AJxVSDw" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#bjnangUBy" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a8aeEZTAL0" opacity="1" fill="#000000" fill-opacity="1"/></g><g><use xlink:href="#a4VJpGfPPp" opacity="1" fill="#000000" fill-opacity="1"/></g></g></g></svg>\n</div>\n<div class="apx-cr" style="gap:0;margin-top:20px;margin-bottom=20px;">\n <img class="apx-" width="54" height="54" src="https://f.hubspotusercontent10.net/hub/5329664/hubfs/Apxor%20X%20logo.png?width=108&height=108" />\n</div>\n<div id="apx-bh" class="apx-cr apx-bh" style="padding:8px 20px;">\n<button class="apx-b" id="apx-a" style="display:'.concat(n?"none":"block",'">Add as test device</button>\n<button class="apx-b" id="apx-r" style="display:').concat(n?"block":"none",'">Remove as test device</button>\n<button class="apx-b" id="apx-ev" style="display:').concat(n&&t.isSelectionMode?"none":n?"block":"none",'">Enable view selection</button>\n<button class="apx-b" id="apx-dv" style="display:').concat(n&&t.isSelectionMode?"block":"none",'">Disable view selection</button>\n</div>\n '),o=document.getElementById("apx-wr");o&&o.remove&&o.remove();var r=document.createElement("div");r.style="z-index:99999999;position:fixed;top:8px;right:8px;background:white;box-shadow:0px 0px 7px 7px black;border-radius:3px;padding:20px;border: 5px solid rgba(0, 0, 0, 0.7);",r.setAttribute("id","apx-wr"),r.innerHTML=i,document.body.appendChild(r),t._wysiwygRoot=r;var a=document.getElementById("apx-bh"),s=function(){r.style.opacity=.5,a.style.display="none"},c=setTimeout(s,3e3);r.addEventListener("mouseover",(function(){r.style.opacity=1,clearTimeout(c),a.style.display="flex"})),r.addEventListener("mouseout",(function(){c=setTimeout(s,3e3)}));var l=document.getElementById("apx-a"),d=document.getElementById("apx-r"),p=document.getElementById("apx-ev"),u=document.getElementById("apx-dv");l.onclick=function(){return t._showAddTestDeviceDialog(e)},d.onclick=function(){fetch(REMOVE_TEST_DEVICE_API.replace("<aid>",Apxor.getSiteId()).replace("<uid>",t.testDeviceData.id),{method:"DELETE",headers:{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"}}).then((function(e){return e.ok&&200===e.status?e.json():null})).then((function(e){e&&(Apxor.getController().persistToStorage("_apx_td",{},!0),t.testDeviceData=null,l.style.display="block",d.style.display=p.style.display=u.style.display="none",t.isSelectionMode&&t._hideSelectionMode())})).catch((function(e){return console.error(e)}))},p.onclick=function(){t.isSelectionMode=!0,window.addEventListener("mouseover",onMouseOver,!0),window.addEventListener("mouseout",onMouseOut,!0),t.clickListener=function(e){return handleDocumentOnClick(e,(function(e){var n=t.cssPath(e,!0),i=t.xPath(e,!0);t._makeSSERequest("view",location.href,n+"___"+i)}))},window.addEventListener("click",t.clickListener,!0),t._hideToast(!1),p.style.display="none",u.style.display="block"};var h=function(){t._hideSelectionMode(),u.style.display="none",p.style.display="block"};u.onclick=h,t._wysiwygRoot.addEventListener("preview",h),t._wysiwygRoot.addEventListener("added",(function(){l.style.display="none",d.style.display="block",a.style.display="flex",p.style.display="block"})),dragElement(r)})),_defineProperty$1(this,"_hideSelectionMode",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:OFF_HTML;if(t.isSelectionMode){window.removeEventListener("mouseover",onMouseOver,!0),window.removeEventListener("mouseout",onMouseOut,!0),window.removeEventListener("click",t.clickListener,!0);for(var n=document.querySelectorAll(".apx-highlight"),i=0;i<n.length;i++){var o=n[i];o.classList.remove("apx-highlight")}t._hideToast(!0,e),t.isSelectionMode=!1}})),_defineProperty$1(this,"_hideToast",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:OFF_HTML;t._viewPickerNode.style.visibility="visible",e?(t._viewPickerNode.innerHTML=n,t._viewPickerNode.style.opacity=1):(t._viewPickerNode.innerHTML=ON_HTML,t._viewPickerNode.style.opacity=1),setTimeout((function(){t._viewPickerNode.style.opacity=0,t._viewPickerNode.style.visibility="hidden"}),1e3)})),_defineProperty$1(this,"_showAddTestDeviceDialog",(function(e){var n=createDialog$1(500,20,{}),i=n.children[0];i.style.flex="0 1 auto",i.style.maxHeight="calc(100% - 96px)",i.style.display="flex",i.style.flexDirection="column";var o=Apxor.getController().getDevInfo(),r=Apxor.getController().getUserAttributes().apx_browser,a=o.hardware_model,s=o.os_version,c=o.id,l="\n".concat('<style>\n.apx-loading{\nbackground:#333 url(\'https://code.jquery.com/mobile/1.3.1/images/ajax-loader.gif\') no-repeat 50% 50%;\n-webkit-transition:background-color 0;transition:background-color 0;opacity: 1;\n-webkit-transition:opacity 1;transition:opacity 1\n}\n.apx-t{\nflex:0 0 auto;margin:0;padding:24px 24px 20px\n}\n.apx-tt{\ncolor:rgba(0,72,114,0.87);font-size:1.3125rem;font-weight:500;\nfont-family: \'Roboto\', \'Helvetica\', \'Arial\', sans-serif;line-height: 1.16667em;margin:0\n}\n.apx-c{\nflex:1 1 auto;padding:0 24px 24px;overflow-y: auto\n}\n.apx-de{\nline-height:1.5;color:rgba(0,72,114,0.54);font-size:1rem;font-weight:400;\nfont-family:"Roboto", "Helvetica", "Arial", sans-serif;margin:0;display:block\n}\n.apx-id{\nwidth:100%;margin-top:8px;margin-bottom:4px;margin:0;border:0;flex-direction:column;\ndisplay:inline-flex;padding:0;position:relative;min-width:0;vertical-align:top\n}\n.apx-il{\ntransition:color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms,transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;\ntransform:translate(0, 21px) scale(1);top:0;left:0;position:absolute;\ncolor:rgba(0,72,114, 0.54);padding: 0;font-size: 1rem;transform-origin:top left;\nfont-family: "Roboto", "Helvetica", "Arial", sans-serif;line-height: 1\n}\n.apx-il-f{\ntransform:translate(0, 1.5px) scale(0.75)\n}\nlabel + .apx-iid {\nmargin-top:16px;position:relative;width: 100%;color: rgba(0,72,114, 0.87);\ncursor: text;display: inline-flex;font-size: 1rem;\nfont-family:"Roboto", "Helvetica", "Arial", sans-serif;\nline-height: 1.1875em;align-items: center\n}\n.apx-iid.apx-iid-f:after{transform:scaleX(1)}\n.apx-iid:hover:before{border-bottom: 2px solid rgba(0,72,114, 0.87)}\n.apx-iid:before{\nleft: 0;right: 0;bottom: 0;content: \'\\00a0\';position: absolute;\ntransition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\nborder-bottom: 1px solid rgba(0, 0, 0, 0.42);pointer-events: none\n}\n.apx-iid:after{\nleft: 0;right: 0;bottom: 0;content: "";position: absolute;transform: scaleX(0);\ntransition: transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;\nborder-bottom: 2px solid rgb(44, 56, 126);pointer-events: none\n}\n.apx-ii{\npadding-top:3px;font: inherit;color: currentColor;width: 100%;border: 0;margin: 0;\ndisplay: block;min-width: 0;box-sizing: content-box;background: none;padding: 6px 0 7px;outline:0\n}\n.apx-ul{\npadding-top:8px;padding-bottom:8px;margin:0;padding:0;position:relative;list-style:none\n}\n.apx-li{\npadding-left:16px;padding-right:16px;width:100%;display:flex;list-style:none;\nposition:relative;box-sizing:border-box;text-align:left;align-items:center;\npadding-top:11px;padding-bottom:11px;justify-content:flex-start;text-decoration:none\n}\n.apx-lid:first-child{padding-left:0}\n.apx-lid{flex:1 1 auto;padding:0 16px;min-width:0}\n.apx-lids{\ncolor:rgba(0,72,114, 0.87);font-weight:400;line-height:1.5em;\nfont-family:"Roboto", "Helvetica", "Arial", sans-seriffont-size:1rem\n}\n.apx-a{\nflex:0 0 auto;margin:8px 4px;display:flex;align-items:center;justify-content:flex-end\n}\n.apx-b{\nfont-size:0.875rem;min-width:64px;box-sizing:border-box;min-height:36px;border:0;\ntransition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\nline-height:1.3125;font-weight:500;font-family:"Roboto", "Helvetica", "Arial", sans-serif;\nborder-radius:4px;text-transform:uppercase;cursor:pointer;display:inline-flex;outline:none;\nposition:relative;align-items:center;user-select:none;vertical-align:middle;\njustify-content:center;text-decoration:none;background-color:transparent\n}\n.apx-bl{\nwidth: 100%;display:inherit;align-items:inherit;justify-content:inherit\n}\n.apx-btr{\ntop:0;left:0;width:100%;height:100%;display:block;z-index:0;position:absolute;\noverflow:hidden;border-radius:inherit;pointer-events:none\n}</style>\n ','\n<div>\n <div class="apx-t"><h2 class="apx-tt">Set device nick name</h2></div>\n <div class="apx-c">\n <p class="apx-de">Give this device a nick name for easy identification</p>\n <div class="apx-id">\n <label class="apx-il">Nick name</label>\n <div class="apx-iid">\n <input class="apx-ii" type="text" id="apx-ii" value="">\n </div>\n </div>\n <ul class="apx-ul">\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Model <strong style="float:right">').concat(a," - ").concat(s,'</strong></span>\n </span>\n </div>\n </li>\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Browser <strong style="float:right">').concat(r,'</strong></span>\n </span>\n </div>\n </li>\n <li class="apx-li">\n <div class="apx-lid">\n <span class="apx-lids">\n <span>Device ID <strong style="float:right">').concat(c,'</strong></span>\n </span>\n </div>\n </li>\n </ul>\n </div>\n <div class="apx-a">\n <button id="apx-bc" class="apx-b"><span class="apx-bl" style="color:#295e8c6b">Cancel</span><span class="apx-btr"/></button>\n <button id="apx-bd" class="apx-b"><span class="apx-bl" style="color:#295e8c">Done</span><span class="apx-btr"/></button>\n </div>\n</div>\n ');n.style.visibility="hidden",i.style.visibility="hidden",i.innerHTML=l;var d,p,u=document.getElementById("apx-ii");t.testDeviceData&&(u.value=null!==(d=null===(p=t.testDeviceData)||void 0===p?void 0:p.name)&&void 0!==d?d:"");u.onfocus=function(){u.parentNode.classList.add("apx-iid-f"),u.parentNode.parentNode.children[0].classList.add("apx-il-f")},u.onblur=function(){u.parentNode.classList.remove("apx-iid-f"),u.parentNode.parentNode.children[0].classList.remove("apx-il-f")},u.oninput=function(){""!==u.value.trim()?f.removeAttribute("disabled"):f.setAttribute("disabled","")},setTimeout((function(){n.style.visibility="visible",i.style.visibility="visible",i.classList.toggle("open"),u.parentNode.parentNode.children[0].classList.add("apx-il-f")}),100);var h=function(){i.classList.toggle("open"),setTimeout((function(){n.parentNode.removeChild(n)}),400)};document.getElementById("apx-bc").onclick=function(){h()};var f=document.getElementById("apx-bd");f.onclick=function(){i.children[1].classList.add("apx-loading"),Apxor.getController().makePostRequest(ADD_TEST_DEVICE_API.replace("<aid>",Apxor.getSiteId()),{model:a,id:c,nick_name:u.value},{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"},(function(){var n={id:c,name:u.value};Apxor.getController().persistToStorage("_apx_td",n,!0),t.testDeviceData=n,t._makeSSERequest("select","".concat(u.value," - ").concat(c),c,(function(){i.children[1].classList.remove("apx-loading"),t._wysiwygRoot.dispatchEvent(new CustomEvent("added"))}));var o=new EventSource(PREVIEW_API.replace("<aid>",Apxor.getSiteId()).replace("<uid>",c)),r=new EventSource(CONFIG_API.replace("<aid>",Apxor.getSiteId()).replace("<uid>",c));o.onmessage=r.onmessage=function(n){n&&n.data&&"{}"!==n.data&&t._handleSSEResponse(e,n.data)},h()}),(function(){}))}})),_defineProperty$1(this,"_makeSSERequest",(function(e,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},a=Apxor.getController().getDevInfo(),s={device_info:{id:a.id,hardware_model:a.hardware_model,os_version:a.os_version,width:a.dimensions.width,height:a.dimensions.height},screen:{image:e,navigation:n,orientation:i},layout:[]};Apxor.getController().makePostRequest(LAYOUT_URL.replace("<aid>",Apxor.getSiteId()).replace("<uid>",t._vid),s,{},o,r)})),_defineProperty$1(this,"cssPath",(function(e,n){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var i=[],o=e;o;){var r=t._cssPathStep(o,!!n,o===e);if(!r)break;if(i.push(r),r.optimized)break;o=o.parentNode}return i.reverse(),i.join(" > ")})),_defineProperty$1(this,"_cssPathStep",(function(e,t,n){if(e.nodeType!==Node.ELEMENT_NODE)return null;var i=e.getAttribute("id");if(t){if(i)return new DOMNodePathStep(c(i),!0);var o=e.nodeName.toLowerCase();if("body"===o||"head"===o||"html"===o)return new DOMNodePathStep(e.nodeName.toLowerCase(),!0)}var r=e.nodeName.toLowerCase();if(i)return new DOMNodePathStep(r.toLowerCase()+c(i),!0);var a=e.parentNode;if(!a||a.nodeType===Node.DOCUMENT_NODE)return new DOMNodePathStep(r.toLowerCase(),!0);function s(e){var t=e.getAttribute("class");return t?t.split(/\s+/g).filter(Boolean).map((function(e){return"$"+e})):[]}function c(e){return"#"+l(e)}function l(e){if(/^-?[a-zA-Z_][a-zA-Z0-9_-]*$/.test(e))return e;var t=/^(?:[0-9]|-[0-9-]?)/.test(e),n=e.length-1;return e.replace(/./g,(function(e,i){return t&&0===i||!function(e){return!!/[a-zA-Z0-9_-]/.test(e)||e.charCodeAt(0)>=160}(e)?function(e,t){return"\\"+function(e){var t=e.charCodeAt(0).toString(16);1===t.length&&(t="0"+t);return t}(e)+(t?"":" ")}(e,i===n):e}))}for(var d=s(e),p=!1,u=!1,h=-1,f=-1,g=a.children,m=0;(-1===h||!u)&&m<g.length;++m){var _=g[m];if(_.nodeType===Node.ELEMENT_NODE)if(f+=1,_!==e){if(!u&&_.nodeName.toLowerCase()===r.toLowerCase()){p=!0;var v=new Set(d);if(v.size)for(var y=s(_),b=0;b<y.length;++b){var x=y[b];if(v.has(x)&&(v.delete(x),!v.size)){u=!0;break}}else u=!0}}else h=f}var w=r.toLowerCase();if(n&&"input"===r.toLowerCase()&&e.getAttribute("type")&&!e.getAttribute("id")&&!e.getAttribute("class")&&(w+='[type="'+e.getAttribute("type")+'"]'),u)w+=":nth-child("+(h+1)+")";else if(p)for(var C in d)w+="."+l(d[C].substr(1));return new DOMNodePathStep(w,!1)})),_defineProperty$1(this,"xPath",(function(e,n){if(e.nodeType===Node.DOCUMENT_NODE)return"/";for(var i=[],o=e;o;){var r=t._xPathValue(o,n);if(!r)break;if(i.push(r),r.optimized)break;o=o.parentNode}return i.reverse(),(i.length&&i[0].optimized?"":"/")+i.join("/")})),_defineProperty$1(this,"_xPathValue",(function(e,n){var i,o=t._xPathIndex(e);if(-1===o)return null;switch(e.nodeType){case Node.ELEMENT_NODE:if(n&&e.getAttribute("id"))return new DOMNodePathStep('//*[@id="'+e.getAttribute("id")+'"]',!0);i=e.localName;break;case Node.ATTRIBUTE_NODE:i="@"+e.nodeName;break;case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:i="text()";break;case Node.PROCESSING_INSTRUCTION_NODE:i="processing-instruction()";break;case Node.COMMENT_NODE:i="comment()";break;case Node.DOCUMENT_NODE:default:i=""}return o>0&&(i+="["+o+"]"),new DOMNodePathStep(i,e.nodeType===Node.DOCUMENT_NODE)})),_defineProperty$1(this,"_xPathIndex",(function(e){function t(e,t){return e===t||(e.nodeType===Node.ELEMENT_NODE&&t.nodeType===Node.ELEMENT_NODE?e.localName===t.localName:e.nodeType===t.nodeType||(e.nodeType===Node.CDATA_SECTION_NODE?Node.TEXT_NODE:e.nodeType)===(t.nodeType===Node.CDATA_SECTION_NODE?Node.TEXT_NODE:t.nodeType))}var n,i=e.parentNode?e.parentNode.children:null;if(!i)return 0;for(var o=0;o<i.length;++o)if(t(e,i[o])&&i[o]!==e){n=!0;break}if(!n)return 0;for(var r=1,a=0;a<i.length;++a)if(t(e,i[a])){if(i[a]===e)return r;++r}return-1}))})),DOMNodePathStep=function(e,t){this.value=e,this.optimized=t||!1};DOMNodePathStep.prototype={toString:function(){return this.value}};var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce((function(e,t){return e.concat([t+"-"+start,t+"-"+end])}),[]),placements=[].concat(basePlacements,[auto]).reduce((function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])}),[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement$1(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];isHTMLElement(o)&&getNodeName(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))}function effect$2(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});isHTMLElement(i)&&getNodeName(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(e){i.removeAttribute(e)})))}))}}var applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement$1(e){return e.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&isHTMLElement(e)&&(o=e.offsetWidth>0&&round(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&round(i.height)/e.offsetHeight||1);var a=(isElement$1(e)?getWindow(e):window).visualViewport,s=!isLayoutViewport()&&n,c=(i.left+(s&&a?a.offsetLeft:0))/o,l=(i.top+(s&&a?a.offsetTop:0))/r,d=i.width/o,p=i.height/r;return{width:d,height:p,top:l,right:c+d,bottom:l+p,left:c,x:c,y:l}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function getComputedStyle$1(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement$1(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return isHTMLElement(e)&&"fixed"!==getComputedStyle$1(e).position?e.offsetParent:null}function getContainingBlock(e){var t=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&isHTMLElement(e)&&"fixed"===getComputedStyle$1(e).position)return null;var n=getParentNode(e);for(isShadowRoot(n)&&(n=n.host);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var i=getComputedStyle$1(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;n=n.parentNode}return null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&"static"===getComputedStyle$1(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle$1(n).position)?t:n||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function within(e,t,n){return max(e,min(t,n))}function withinMaxClamp(e,t,n){var i=within(e,t,n);return i>n?n:i}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var toPaddingObject=function(e,t){return mergePaddingObject("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:expandToHashMap(e,basePlacements))};function arrow(e){var t,n=e.state,i=e.name,o=e.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=getBasePlacement$1(n.placement),c=getMainAxisFromPlacement(s),l=[left,right].indexOf(s)>=0?"height":"width";if(r&&a){var d=toPaddingObject(o.padding,n),p=getLayoutRect(r),u="y"===c?top:left,h="y"===c?bottom:right,f=n.rects.reference[l]+n.rects.reference[c]-a[c]-n.rects.popper[l],g=a[c]-n.rects.reference[c],m=getOffsetParent(r),_=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,v=f/2-g/2,y=d[u],b=_-p[l]-d[h],x=_/2-p[l]/2+v,w=within(y,x,b),C=c;n.modifiersData[i]=((t={})[C]=w,t.centerOffset=w-x,t)}}function effect$1(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&("production"!==process.env.NODE_ENV&&(isHTMLElement(i)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),contains(t.elements.popper,i)?t.elements.arrow=i:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))}var arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:round(t*i)/i||0,y:round(n*i)/i||0}}function mapToStyles(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,p=e.isFixed,u=a.x,h=void 0===u?0:u,f=a.y,g=void 0===f?0:f,m="function"==typeof d?d({x:h,y:g}):{x:h,y:g};h=m.x,g=m.y;var _=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),y=left,b=top,x=window;if(l){var w=getOffsetParent(n),C="clientHeight",E="clientWidth";if(w===getWindow(n)&&"static"!==getComputedStyle$1(w=getDocumentElement(n)).position&&"absolute"===s&&(C="scrollHeight",E="scrollWidth"),w=w,o===top||(o===left||o===right)&&r===end)b=bottom,g-=(p&&w===x&&x.visualViewport?x.visualViewport.height:w[C])-i.height,g*=c?1:-1;if(o===left||(o===top||o===bottom)&&r===end)y=right,h-=(p&&w===x&&x.visualViewport?x.visualViewport.width:w[E])-i.width,h*=c?1:-1}var T,O=Object.assign({position:s},l&&unsetSides),S=!0===d?roundOffsetsByDPR({x:h,y:g}):{x:h,y:g};return h=S.x,g=S.y,c?Object.assign({},O,((T={})[b]=v?"0":"",T[y]=_?"0":"",T.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",T)):Object.assign({},O,((t={})[b]=v?g+"px":"",t[y]=_?h+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,c=void 0===s||s;if("production"!==process.env.NODE_ENV){var l=getComputedStyle$1(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return l.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:getBasePlacement$1(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}},passive={passive:!0};function effect(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,r=void 0===o||o,a=i.resize,s=void 0===a||a,c=getWindow(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&l.forEach((function(e){e.addEventListener("scroll",n.update,passive)})),s&&c.addEventListener("resize",n.update,passive),function(){r&&l.forEach((function(e){e.removeEventListener("scroll",n.update,passive)})),s&&c.removeEventListener("resize",n.update,passive)}}var eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:effect,data:{}},hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return hash$1[e]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return hash[e]}))}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e,t){var n=getWindow(e),i=getDocumentElement(e),o=n.visualViewport,r=i.clientWidth,a=i.clientHeight,s=0,c=0;if(o){r=o.width,a=o.height;var l=isLayoutViewport();(l||!l&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:r,height:a,x:s+getWindowScrollBarX(e),y:c}}function getDocumentRect(e){var t,n=getDocumentElement(e),i=getWindowScroll(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=max(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=max(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-i.scrollLeft+getWindowScrollBarX(e),c=-i.scrollTop;return"rtl"===getComputedStyle$1(o||n).direction&&(s+=max(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:a,x:s,y:c}}function isScrollParent(e){var t=getComputedStyle$1(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;void 0===t&&(t=[]);var i=getScrollParent(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),r=getWindow(i),a=o?[r].concat(r.visualViewport||[],isScrollParent(i)?i:[]):i,s=t.concat(a);return o?s:s.concat(listScrollParents(getParentNode(a)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e,t){var n=getBoundingClientRect(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}function getClientRectFromMixedType(e,t,n){return t===viewport?rectToClientRect(getViewportRect(e,n)):isElement$1(t)?getInnerBoundingClientRect(t,n):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e)),n=["absolute","fixed"].indexOf(getComputedStyle$1(e).position)>=0&&isHTMLElement(e)?getOffsetParent(e):e;return isElement$1(n)?t.filter((function(e){return isElement$1(e)&&contains(e,n)&&"body"!==getNodeName(e)})):[]}function getClippingRect(e,t,n,i){var o="clippingParents"===t?getClippingParents(e):[].concat(t),r=[].concat(o,[n]),a=r[0],s=r.reduce((function(t,n){var o=getClientRectFromMixedType(e,n,i);return t.top=max(o.top,t.top),t.right=min(o.right,t.right),t.bottom=min(o.bottom,t.bottom),t.left=max(o.left,t.left),t}),getClientRectFromMixedType(e,a,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function computeOffsets(e){var t,n=e.reference,i=e.element,o=e.placement,r=o?getBasePlacement$1(o):null,a=o?getVariation(o):null,s=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(r){case top:t={x:s,y:n.y-i.height};break;case bottom:t={x:s,y:n.y+n.height};break;case right:t={x:n.x+n.width,y:c};break;case left:t={x:n.x-i.width,y:c};break;default:t={x:n.x,y:n.y}}var l=r?getMainAxisFromPlacement(r):null;if(null!=l){var d="y"===l?"height":"width";switch(a){case start:t[l]=t[l]-(n[d]/2-i[d]/2);break;case end:t[l]=t[l]+(n[d]/2-i[d]/2)}}return t}function detectOverflow(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,r=n.strategy,a=void 0===r?e.strategy:r,s=n.boundary,c=void 0===s?clippingParents:s,l=n.rootBoundary,d=void 0===l?viewport:l,p=n.elementContext,u=void 0===p?popper:p,h=n.altBoundary,f=void 0!==h&&h,g=n.padding,m=void 0===g?0:g,_=mergePaddingObject("number"!=typeof m?m:expandToHashMap(m,basePlacements)),v=u===popper?reference:popper,y=e.rects.popper,b=e.elements[f?v:u],x=getClippingRect(isElement$1(b)?b:b.contextElement||getDocumentElement(e.elements.popper),c,d,a),w=getBoundingClientRect(e.elements.reference),C=computeOffsets({reference:w,element:y,strategy:"absolute",placement:o}),E=rectToClientRect(Object.assign({},y,C)),T=u===popper?E:w,O={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},S=e.modifiersData.offset;if(u===popper&&S){var A=S[o];Object.keys(O).forEach((function(e){var t=[right,bottom].indexOf(e)>=0?1:-1,n=[top,bottom].indexOf(e)>=0?"y":"x";O[e]+=A[n]*t}))}return O}function computeAutoPlacement(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?placements:c,d=getVariation(i),p=d?s?variationPlacements:variationPlacements.filter((function(e){return getVariation(e)===d})):basePlacements,u=p.filter((function(e){return l.indexOf(e)>=0}));0===u.length&&(u=p,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var h=u.reduce((function(t,n){return t[n]=detectOverflow(e,{placement:n,boundary:o,rootBoundary:r,padding:a})[getBasePlacement$1(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}function getExpandedFallbackPlacements(e){if(getBasePlacement$1(e)===auto)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,l=n.padding,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.flipVariations,f=void 0===h||h,g=n.allowedAutoPlacements,m=t.options.placement,_=getBasePlacement$1(m),v=c||(_===m||!f?[getOppositePlacement(m)]:getExpandedFallbackPlacements(m)),y=[m].concat(v).reduce((function(e,n){return e.concat(getBasePlacement$1(n)===auto?computeAutoPlacement(t,{placement:n,boundary:d,rootBoundary:p,padding:l,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),b=t.rects.reference,x=t.rects.popper,w=new Map,C=!0,E=y[0],T=0;T<y.length;T++){var O=y[T],S=getBasePlacement$1(O),A=getVariation(O)===start,I=[top,bottom].indexOf(S)>=0,k=I?"width":"height",L=detectOverflow(t,{placement:O,boundary:d,rootBoundary:p,altBoundary:u,padding:l}),P=I?A?right:left:A?bottom:top;b[k]>x[k]&&(P=getOppositePlacement(P));var N=getOppositePlacement(P),R=[];if(r&&R.push(L[S]<=0),s&&R.push(L[P]<=0,L[N]<=0),R.every((function(e){return e}))){E=O,C=!1;break}w.set(O,R)}if(C)for(var M=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},D=f?3:1;D>0;D--){if("break"===M(D))break}t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}}var flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(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 isAnySideFullyClipped(e){return[top,right,bottom,left].some((function(t){return e[t]>=0}))}function hide(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,a=detectOverflow(t,{elementContext:"reference"}),s=detectOverflow(t,{altBoundary:!0}),c=getSideOffsets(a,i),l=getSideOffsets(s,o,r),d=isAnySideFullyClipped(c),p=isAnySideFullyClipped(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}var hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,n){var i=getBasePlacement$1(e),o=[left,top].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*o,[left,right].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}function offset(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=void 0===o?[0,0]:o,a=placements.reduce((function(e,n){return e[n]=distanceAndSkiddingToXY(n,t.rects,r),e}),{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=a}var offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return"x"===e?"y":"x"}function preventOverflow(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,r=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,l=n.rootBoundary,d=n.altBoundary,p=n.padding,u=n.tether,h=void 0===u||u,f=n.tetherOffset,g=void 0===f?0:f,m=detectOverflow(t,{boundary:c,rootBoundary:l,padding:p,altBoundary:d}),_=getBasePlacement$1(t.placement),v=getVariation(t.placement),y=!v,b=getMainAxisFromPlacement(_),x=getAltAxis(b),w=t.modifiersData.popperOffsets,C=t.rects.reference,E=t.rects.popper,T="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,O="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(w){if(r){var I,k="y"===b?top:left,L="y"===b?bottom:right,P="y"===b?"height":"width",N=w[b],R=N+m[k],M=N-m[L],D=h?-E[P]/2:0,B=v===start?C[P]:E[P],$=v===start?-E[P]:-C[P],V=t.elements.arrow,F=h&&V?getLayoutRect(V):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject(),W=H[k],j=H[L],U=within(0,C[P],F[P]),z=y?C[P]/2-D-U-W-O.mainAxis:B-U-W-O.mainAxis,q=y?-C[P]/2+D+U+j+O.mainAxis:$+U+j+O.mainAxis,Y=t.elements.arrow&&getOffsetParent(t.elements.arrow),G=Y?"y"===b?Y.clientTop||0:Y.clientLeft||0:0,Z=null!=(I=null==S?void 0:S[b])?I:0,X=N+q-Z,K=within(h?min(R,N+z-Z-G):R,N,h?max(M,X):M);w[b]=K,A[b]=K-N}if(s){var Q,J="x"===b?top:left,ee="x"===b?bottom:right,te=w[x],ne="y"===x?"height":"width",ie=te+m[J],oe=te-m[ee],re=-1!==[top,left].indexOf(_),ae=null!=(Q=null==S?void 0:S[x])?Q:0,se=re?ie:te-C[ne]-E[ne]-ae+O.altAxis,ce=re?te+C[ne]+E[ne]-ae-O.altAxis:oe,le=h&&re?withinMaxClamp(se,te,ce):within(h?se:ie,te,h?ce:oe);w[x]=le,A[x]=le-te}t.modifiersData[i]=A}}var preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){return e!==getWindow(e)&&isHTMLElement(e)?getHTMLElementScroll(e):getWindowScroll(e)}function isElementScaled(e){var t=e.getBoundingClientRect(),n=round(t.width)/e.offsetWidth||1,i=round(t.height)/e.offsetHeight||1;return 1!==n||1!==i}function getCompositeRect(e,t,n){void 0===n&&(n=!1);var i=isHTMLElement(t),o=isHTMLElement(t)&&isElementScaled(t),r=getDocumentElement(t),a=getBoundingClientRect(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==getNodeName(t)||isScrollParent(r))&&(s=getNodeScroll(t)),isHTMLElement(t)?((c=getBoundingClientRect(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=getWindowScrollBarX(r))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function order(e){var t=new Map,n=new Set,i=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(i){if(!n.has(i)){var o=t.get(i);o&&e(o)}})),i.push(o)}(e)})),i}function orderModifiers(e){var t=order(e);return modifierPhases.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function debounce$1(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function format(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var INVALID_MODIFIER_ERROR='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',MISSING_DEPENDENCY_ERROR='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',VALID_PROPERTIES=["name","enabled","phase","fn","effect","requires","options"];function validateModifiers(e){e.forEach((function(t){[].concat(Object.keys(t),VALID_PROPERTIES).filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(format(INVALID_MODIFIER_ERROR,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(format(INVALID_MODIFIER_ERROR,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":modifierPhases.indexOf(t.phase)<0&&console.error(format(INVALID_MODIFIER_ERROR,t.name,'"phase"',"either "+modifierPhases.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(format(INVALID_MODIFIER_ERROR,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(format(INVALID_MODIFIER_ERROR,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(format(INVALID_MODIFIER_ERROR,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(format(INVALID_MODIFIER_ERROR,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+VALID_PROPERTIES.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(format(MISSING_DEPENDENCY_ERROR,String(t.name),n,n))}))}))}))}function uniqueBy(e,t){var n=new Set;return e.filter((function(e){var i=t(e);if(!n.has(i))return n.add(i),!0}))}function mergeByName(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]}))}var INVALID_ELEMENT_ERROR="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",INFINITE_LOOP_ERROR="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){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 popperGenerator(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?DEFAULT_OPTIONS:o;return function(e,t,n){void 0===n&&(n=r);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;l(),o.options=Object.assign({},r,o.options,s),o.scrollParents={reference:isElement$1(e)?listScrollParents(e):e.contextElement?listScrollParents(e.contextElement):[],popper:listScrollParents(t)};var d=orderModifiers(mergeByName([].concat(i,o.options.modifiers)));if(o.orderedModifiers=d.filter((function(e){return e.enabled})),"production"!==process.env.NODE_ENV){if(validateModifiers(uniqueBy([].concat(d,o.options.modifiers),(function(e){return e.name}))),getBasePlacement$1(o.options.placement)===auto)o.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "));var p=getComputedStyle$1(t);[p.marginTop,p.marginRight,p.marginBottom,p.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var s=r({state:o,name:t,instance:c,options:i});a.push(s||function(){})}})),c.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(areValidElements(t,n)){o.rects={reference:getCompositeRect(t,getOffsetParent(n),"fixed"===o.options.strategy),popper:getLayoutRect(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0,r=0;r<o.orderedModifiers.length;r++){if("production"!==process.env.NODE_ENV&&(i+=1)>100){console.error(INFINITE_LOOP_ERROR);break}if(!0!==o.reset){var a=o.orderedModifiers[r],l=a.fn,d=a.options,p=void 0===d?{}:d,u=a.name;"function"==typeof l&&(o=l({state:o,options:p,name:u,instance:c})||o)}else o.reset=!1,r=-1}}else"production"!==process.env.NODE_ENV&&console.error(INVALID_ELEMENT_ERROR)}},update:debounce$1((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){l(),s=!0}};if(!areValidElements(e,t))return"production"!==process.env.NODE_ENV&&console.error(INVALID_ELEMENT_ERROR),c;function l(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers:defaultModifiers}),BOX_CLASS="tippy-box",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0},TIPPY_DEFAULT_APPEND_TO=function(){return document.body};function hasOwnProperty(e,t){return{}.hasOwnProperty.call(e,t)}function getValueAtIndexOrReturn(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function isType(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function invokeWithArgsOrReturn(e,t){return"function"==typeof e?e.apply(void 0,t):e}function debounce(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function removeProperties(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function splitBySpaces(e){return e.split(/\s+/).filter(Boolean)}function normalizeToArray(e){return[].concat(e)}function pushIfUnique(e,t){-1===e.indexOf(t)&&e.push(t)}function unique(e){return e.filter((function(t,n){return e.indexOf(t)===n}))}function getBasePlacement(e){return e.split("-")[0]}function arrayFrom(e){return[].slice.call(e)}function removeUndefinedProps(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function div(){return document.createElement("div")}function isElement(e){return["Element","Fragment"].some((function(t){return isType(e,t)}))}function isNodeList(e){return isType(e,"NodeList")}function isMouseEvent(e){return isType(e,"MouseEvent")}function isReferenceElement(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function getArrayOfElements(e){return isElement(e)?[e]:isNodeList(e)?arrayFrom(e):Array.isArray(e)?e:arrayFrom(document.querySelectorAll(e))}function setTransitionDuration(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function setVisibilityState(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function getOwnerDocument(e){var t,n=normalizeToArray(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function isCursorOutsideInteractiveBorder(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,r=e.props.interactiveBorder,a=getBasePlacement(o.placement),s=o.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,l="top"===a?s.bottom.y:0,d="right"===a?s.left.x:0,p="left"===a?s.right.x:0,u=t.top-i+c>r,h=i-t.bottom-l>r,f=t.left-n+d>r,g=n-t.right-p>r;return u||h||f||g}))}function updateTransitionEndListener(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function actualContains(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var e=performance.now();e-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=e}function onWindowBlur(){var e=document.activeElement;if(isReferenceElement(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser="undefined"!=typeof window&&"undefined"!=typeof document,isIE11=!!isBrowser&&!!window.msCrypto,visitedMessages;function createMemoryLeakWarning(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function clean(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function getDevMessage(e){return clean("\n %ctippy.js\n\n %c"+clean(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function getFormattedMessage(e){return[getDevMessage(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function resetVisitedMessages(){visitedMessages=new Set}function warnWhen(e,t){var n;e&&!visitedMessages.has(t)&&(visitedMessages.add(t),(n=console).warn.apply(n,getFormattedMessage(t)))}function errorWhen(e,t){var n;e&&!visitedMessages.has(t)&&(visitedMessages.add(t),(n=console).error.apply(n,getFormattedMessage(t)))}function validateTargets(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;errorWhen(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),errorWhen(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}"production"!==process.env.NODE_ENV&&resetVisitedMessages();var pluginProps={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},renderProps={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},defaultProps=Object.assign({appendTo:TIPPY_DEFAULT_APPEND_TO,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},pluginProps,renderProps),defaultKeys=Object.keys(defaultProps),setDefaultProps=function(e){"production"!==process.env.NODE_ENV&&validateProps(e,[]),Object.keys(e).forEach((function(t){defaultProps[t]=e[t]}))};function getExtendedPassedProps(e){var t=(e.plugins||[]).reduce((function(t,n){var i,o=n.name,r=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(i=defaultProps[o])?i:r);return t}),{});return Object.assign({},e,t)}function getDataAttributeProps(e,t){return(t?Object.keys(getExtendedPassedProps(Object.assign({},defaultProps,{plugins:t}))):defaultKeys).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}function evaluateProps(e,t){var n=Object.assign({},t,{content:invokeWithArgsOrReturn(t.content,[e])},t.ignoreAttributes?{}:getDataAttributeProps(e,t.plugins));return n.aria=Object.assign({},defaultProps.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function validateProps(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var n=!hasOwnProperty(removeProperties(defaultProps,Object.keys(pluginProps)),e);n&&(n=0===t.filter((function(t){return t.name===e})).length),warnWhen(n,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}var innerHTML=function(){return"innerHTML"};function dangerouslySetInnerHTML(e,t){e[innerHTML()]=t}function createArrowElement(e){var t=div();return!0===e?t.className=ARROW_CLASS:(t.className=SVG_ARROW_CLASS,isElement(e)?t.appendChild(e):dangerouslySetInnerHTML(t,e)),t}function setContent(e,t){isElement(t.content)?(dangerouslySetInnerHTML(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?dangerouslySetInnerHTML(e,t.content):e.textContent=t.content)}function getChildren(e){var t=e.firstElementChild,n=arrayFrom(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(CONTENT_CLASS)})),arrow:n.find((function(e){return e.classList.contains(ARROW_CLASS)||e.classList.contains(SVG_ARROW_CLASS)})),backdrop:n.find((function(e){return e.classList.contains(BACKDROP_CLASS)}))}}function render(e){var t=div(),n=div();n.className=BOX_CLASS,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=div();function o(n,i){var o=getChildren(t),r=o.box,a=o.content,s=o.arrow;i.theme?r.setAttribute("data-theme",i.theme):r.removeAttribute("data-theme"),"string"==typeof i.animation?r.setAttribute("data-animation",i.animation):r.removeAttribute("data-animation"),i.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?r.setAttribute("role",i.role):r.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||setContent(a,e.props),i.arrow?s?n.arrow!==i.arrow&&(r.removeChild(s),r.appendChild(createArrowElement(i.arrow))):r.appendChild(createArrowElement(i.arrow)):s&&r.removeChild(s)}return i.className=CONTENT_CLASS,i.setAttribute("data-state","hidden"),setContent(i,e.props),t.appendChild(n),n.appendChild(i),o(e.props,e.props),{popper:t,onUpdate:o}}render.$$tippy=!0;var idCounter=1,mouseMoveListeners=[],mountedInstances=[];function createTippy(e,t){var n,i,o,r,a,s,c,l=evaluateProps(e,Object.assign({},defaultProps,getExtendedPassedProps(removeUndefinedProps(t)))),d=!1,p=!1,u=!1,h=!1,f=[],g=debounce(q,l.interactiveDebounce),m=idCounter++,_=unique(l.plugins),v={id:m,reference:e,popper:div(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:_,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(o)},setProps:function(t){"production"!==process.env.NODE_ENV&&warnWhen(v.state.isDestroyed,createMemoryLeakWarning("setProps"));if(v.state.isDestroyed)return;P("onBeforeUpdate",[v,t]),U();var n=v.props,i=evaluateProps(e,Object.assign({},n,removeUndefinedProps(t),{ignoreAttributes:!0}));v.props=i,j(),n.interactiveDebounce!==i.interactiveDebounce&&(M(),g=debounce(q,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?normalizeToArray(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");R(),L(),x&&x(n,i);v.popperInstance&&(X(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));P("onAfterUpdate",[v,t])},setContent:function(e){v.setProps({content:e})},show:function(){"production"!==process.env.NODE_ENV&&warnWhen(v.state.isDestroyed,createMemoryLeakWarning("show"));var e=v.state.isVisible,t=v.state.isDestroyed,n=!v.state.isEnabled,i=currentInput.isTouch&&!v.props.touch,o=getValueAtIndexOrReturn(v.props.duration,0,defaultProps.duration);if(e||t||n||i)return;if(S().hasAttribute("disabled"))return;if(P("onShow",[v],!1),!1===v.props.onShow(v))return;v.state.isVisible=!0,O()&&(b.style.visibility="visible");L(),V(),v.state.isMounted||(b.style.transition="none");if(O()){var r=I(),a=r.box,c=r.content;setTransitionDuration([a,c],0)}s=function(){var e;if(v.state.isVisible&&!h){if(h=!0,b.offsetHeight,b.style.transition=v.props.moveTransition,O()&&v.props.animation){var t=I(),n=t.box,i=t.content;setTransitionDuration([n,i],o),setVisibilityState([n,i],"visible")}N(),R(),pushIfUnique(mountedInstances,v),null==(e=v.popperInstance)||e.forceUpdate(),P("onMount",[v]),v.props.animation&&O()&&function(e,t){H(e,t)}(o,(function(){v.state.isShown=!0,P("onShown",[v])}))}},function(){var e,t=v.props.appendTo,n=S();e=v.props.interactive&&t===TIPPY_DEFAULT_APPEND_TO||"parent"===t?n.parentNode:invokeWithArgsOrReturn(t,[n]);e.contains(b)||e.appendChild(b);v.state.isMounted=!0,X(),"production"!==process.env.NODE_ENV&&warnWhen(v.props.interactive&&t===defaultProps.appendTo&&n.nextElementSibling!==b,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){"production"!==process.env.NODE_ENV&&warnWhen(v.state.isDestroyed,createMemoryLeakWarning("hide"));var e=!v.state.isVisible,t=v.state.isDestroyed,n=!v.state.isEnabled,i=getValueAtIndexOrReturn(v.props.duration,1,defaultProps.duration);if(e||t||n)return;if(P("onHide",[v],!1),!1===v.props.onHide(v))return;v.state.isVisible=!1,v.state.isShown=!1,h=!1,d=!1,O()&&(b.style.visibility="hidden");if(M(),F(),L(!0),O()){var o=I(),r=o.box,a=o.content;v.props.animation&&(setTransitionDuration([r,a],i),setVisibilityState([r,a],"hidden"))}N(),R(),v.props.animation?O()&&function(e,t){H(e,(function(){!v.state.isVisible&&b.parentNode&&b.parentNode.contains(b)&&t()}))}(i,v.unmount):v.unmount()},hideWithInteractivity:function(e){"production"!==process.env.NODE_ENV&&warnWhen(v.state.isDestroyed,createMemoryLeakWarning("hideWithInteractivity"));A().addEventListener("mousemove",g),pushIfUnique(mouseMoveListeners,g),g(e)},enable:function(){v.state.isEnabled=!0},disable:function(){v.hide(),v.state.isEnabled=!1},unmount:function(){"production"!==process.env.NODE_ENV&&warnWhen(v.state.isDestroyed,createMemoryLeakWarning("unmount"));v.state.isVisible&&v.hide();if(!v.state.isMounted)return;K(),Q().forEach((function(e){e._tippy.unmount()})),b.parentNode&&b.parentNode.removeChild(b);mountedInstances=mountedInstances.filter((function(e){return e!==v})),v.state.isMounted=!1,P("onHidden",[v])},destroy:function(){"production"!==process.env.NODE_ENV&&warnWhen(v.state.isDestroyed,createMemoryLeakWarning("destroy"));if(v.state.isDestroyed)return;v.clearDelayTimeouts(),v.unmount(),U(),delete e._tippy,v.state.isDestroyed=!0,P("onDestroy",[v])}};if(!l.render)return"production"!==process.env.NODE_ENV&&errorWhen(!0,"render() function has not been supplied."),v;var y=l.render(v),b=y.popper,x=y.onUpdate;b.setAttribute("data-tippy-root",""),b.id="tippy-"+v.id,v.popper=b,e._tippy=v,b._tippy=v;var w=_.map((function(e){return e.fn(v)})),C=e.hasAttribute("aria-expanded");return j(),R(),L(),P("onCreate",[v]),l.showOnCreate&&J(),b.addEventListener("mouseenter",(function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()})),b.addEventListener("mouseleave",(function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&A().addEventListener("mousemove",g)})),v;function E(){var e=v.props.touch;return Array.isArray(e)?e:[e,0]}function T(){return"hold"===E()[0]}function O(){var e;return!(null==(e=v.props.render)||!e.$$tippy)}function S(){return c||e}function A(){var e=S().parentNode;return e?getOwnerDocument(e):document}function I(){return getChildren(b)}function k(e){return v.state.isMounted&&!v.state.isVisible||currentInput.isTouch||r&&"focus"===r.type?0:getValueAtIndexOrReturn(v.props.delay,e?0:1,defaultProps.delay)}function L(e){void 0===e&&(e=!1),b.style.pointerEvents=v.props.interactive&&!e?"":"none",b.style.zIndex=""+v.props.zIndex}function P(e,t,n){var i;(void 0===n&&(n=!0),w.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(i=v.props)[e].apply(i,t)}function N(){var t=v.props.aria;if(t.content){var n="aria-"+t.content,i=b.id;normalizeToArray(v.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(v.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var o=t&&t.replace(i,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function R(){!C&&v.props.aria.expanded&&normalizeToArray(v.props.triggerTarget||e).forEach((function(e){v.props.interactive?e.setAttribute("aria-expanded",v.state.isVisible&&e===S()?"true":"false"):e.removeAttribute("aria-expanded")}))}function M(){A().removeEventListener("mousemove",g),mouseMoveListeners=mouseMoveListeners.filter((function(e){return e!==g}))}function D(t){if(!currentInput.isTouch||!u&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!v.props.interactive||!actualContains(b,n)){if(normalizeToArray(v.props.triggerTarget||e).some((function(e){return actualContains(e,n)}))){if(currentInput.isTouch)return;if(v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[v,t]);!0===v.props.hideOnClick&&(v.clearDelayTimeouts(),v.hide(),p=!0,setTimeout((function(){p=!1})),v.state.isMounted||F())}}}function B(){u=!0}function $(){u=!1}function V(){var e=A();e.addEventListener("mousedown",D,!0),e.addEventListener("touchend",D,TOUCH_OPTIONS),e.addEventListener("touchstart",$,TOUCH_OPTIONS),e.addEventListener("touchmove",B,TOUCH_OPTIONS)}function F(){var e=A();e.removeEventListener("mousedown",D,!0),e.removeEventListener("touchend",D,TOUCH_OPTIONS),e.removeEventListener("touchstart",$,TOUCH_OPTIONS),e.removeEventListener("touchmove",B,TOUCH_OPTIONS)}function H(e,t){var n=I().box;function i(e){e.target===n&&(updateTransitionEndListener(n,"remove",i),t())}if(0===e)return t();updateTransitionEndListener(n,"remove",a),updateTransitionEndListener(n,"add",i),a=i}function W(t,n,i){void 0===i&&(i=!1),normalizeToArray(v.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),f.push({node:e,eventType:t,handler:n,options:i})}))}function j(){T()&&(W("touchstart",z,{passive:!0}),W("touchend",Y,{passive:!0})),splitBySpaces(v.props.trigger).forEach((function(e){if("manual"!==e)switch(W(e,z),e){case"mouseenter":W("mouseleave",Y);break;case"focus":W(isIE11?"focusout":"blur",G);break;case"focusin":W("focusout",G)}}))}function U(){f.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,o=e.options;t.removeEventListener(n,i,o)})),f=[]}function z(e){var t,n=!1;if(v.state.isEnabled&&!Z(e)&&!p){var i="focus"===(null==(t=r)?void 0:t.type);r=e,c=e.currentTarget,R(),!v.state.isVisible&&isMouseEvent(e)&&mouseMoveListeners.forEach((function(t){return t(e)})),"click"===e.type&&(v.props.trigger.indexOf("mouseenter")<0||d)&&!1!==v.props.hideOnClick&&v.state.isVisible?n=!0:J(e),"click"===e.type&&(d=!n),n&&!i&&ee(e)}}function q(e){var t=e.target,n=S().contains(t)||b.contains(t);"mousemove"===e.type&&n||isCursorOutsideInteractiveBorder(Q().concat(b).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:l}:null})).filter(Boolean),e)&&(M(),ee(e))}function Y(e){Z(e)||v.props.trigger.indexOf("click")>=0&&d||(v.props.interactive?v.hideWithInteractivity(e):ee(e))}function G(e){v.props.trigger.indexOf("focusin")<0&&e.target!==S()||v.props.interactive&&e.relatedTarget&&b.contains(e.relatedTarget)||ee(e)}function Z(e){return!!currentInput.isTouch&&T()!==e.type.indexOf("touch")>=0}function X(){K();var t=v.props,n=t.popperOptions,i=t.placement,o=t.offset,r=t.getReferenceClientRect,a=t.moveTransition,c=O()?getChildren(b).arrow:null,l=r?{getBoundingClientRect:r,contextElement:r.contextElement||S()}:e,d=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(O()){var n=I().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];O()&&c&&d.push({name:"arrow",options:{element:c,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),v.popperInstance=createPopper(l,b,Object.assign({},n,{placement:i,onFirstUpdate:s,modifiers:d}))}function K(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function Q(){return arrayFrom(b.querySelectorAll("[data-tippy-root]"))}function J(e){v.clearDelayTimeouts(),e&&P("onTrigger",[v,e]),V();var t=k(!0),i=E(),o=i[0],r=i[1];currentInput.isTouch&&"hold"===o&&r&&(t=r),t?n=setTimeout((function(){v.show()}),t):v.show()}function ee(e){if(v.clearDelayTimeouts(),P("onUntrigger",[v,e]),v.state.isVisible){if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=k(!1);t?i=setTimeout((function(){v.state.isVisible&&v.hide()}),t):o=requestAnimationFrame((function(){v.hide()}))}}else F()}}function tippy(e,t){void 0===t&&(t={});var n=defaultProps.plugins.concat(t.plugins||[]);"production"!==process.env.NODE_ENV&&(validateTargets(e),validateProps(t,n)),bindGlobalEventListeners();var i=Object.assign({},t,{plugins:n}),o=getArrayOfElements(e);if("production"!==process.env.NODE_ENV){var r=isElement(i.content),a=o.length>1;warnWhen(r&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "))}var s=o.reduce((function(e,t){var n=t&&createTippy(t,i);return n&&e.push(n),e}),[]);return isElement(e)?s[0]:s}tippy.defaultProps=defaultProps,tippy.setDefaultProps=setDefaultProps,tippy.currentInput=currentInput,Object.assign({},applyStyles$1,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),tippy.setDefaultProps({render:render});var Logger$1=window.ApxorLogger,InLineTooltip=function(){function e(t,n,i,o,r,a,s){if(_classCallCheck$1(this,e),this.uiConfig=t,this.walkthroughConfigs=n,this.terminationConfig=i,this.messageConfig=o,this.rtmInstance=r,this.currentId=makeid(10),this.inline_direction=t.inline_direction||DIRECTION.VERTICAL,this.inline_nonmedia_direction=t.inline_nonmedia_direction||DIRECTION.VERTICAL,this.configId=o.configId,this.name=o.configName,this.showCallback=a,this.closeCallback=s,this.targetDeletionObserver=null,this.viewPortObservor=null,this.tooltipShown=!1,this.uiConfig){var c,l;if(this.tooltip_type=t.tooltip_type,this.delay=t.delay,this.dismiss_outside_touch=t.dismiss_outside_touch||!1,this.dismiss_target_touch=t.dismiss_target_touch||!1,this.background_color=t.background_color||COLORS.WHITE,this.text_config=t.text_config,this.buttons_config=t.buttons_config,this.button_position=t.button_position,this.button_direction=t.button_direction||DIRECTION.HORIZONTAL,this.dim_background=t.dim_background||!1,this.dim_background_color=t.dim_background_color||"#0a0a0a",this.dim_background_opacity=t.dim_background_opacity||.5,this.view_id=t.view_id,this.iframe_id=t.iframe_id||"",this.find_interval=t.find_interval,this.max_find_interval=t.max_find_interval||1e5,this.padding_config=t.padding_config,this.padding_config&&0!=Object.keys(this.padding_config).length){this.has_padding_config=!0;var d=this.padding_config;this.inline_top_padding=d.top||0,this.inline_bottom_padding=d.bottom||0,this.inline_left_padding=d.left||0,this.inline_right_padding=d.right||0}else this.has_padding_config=!1;if(this.margin_config=t.margin_config,this.margin_config&&0!=Object.keys(this.margin_config).length){this.has_margin_config=!0;var p=this.margin_config;this.inline_top_margin=p.top||0,this.inline_bottom_margin=p.bottom||0,this.inline_left_margin=p.left||0,this.inline_right_margin=p.right||0}else this.has_margin_config=!1,this.inline_top_margin=0,this.inline_bottom_margin=0,this.inline_left_margin=0,this.inline_right_margin=0;if(this.border_config=t.border_config,this.border_config&&0!=Object.keys(this.border_config).length){var u=this.border_config;this.has_border_config=!0,this.border_radius=u.border_radius||15,this.border_color=u.border_color||"#27a4f2",this.border_style=u.border_style||"outset",this.border_width=u.border_width||2}else this.has_border_config=!1,this.border_width=0;if(this.close_config=t.close_config,this.close_config&&0!=Object.keys(this.close_config).length){this.has_close_config=!0;var h=this.close_config;this.enable_close=h.enable_close||!0,this.close_btn_color=h.close_btn_color,this.close_btn_path=h.close_btn_path||"",this.close_btn_bg_color=h.close_btn_bg_color||"#FFFAAA",this.close_btn_type=h.close_btn_type||"normal"}else this.has_close_config=!1;if(this.scrollToView=t.scrollToView||!0,this.scroll_config=t.scroll_config,this.scroll_config&&0!=Object.keys(this.scroll_config).length){this.has_scroll_config=!0;var f=this.scroll_config;this.is_scrollable=f.is_scrollable||!1,this.scroll_border_color=f.scroll_border_color||COLORS.BLACK,this.text_height=f.text_height||400}else this.has_scroll_config=!1;if(this.icon_config=t.icon_config,this.icon_config&&0!=Object.keys(this.icon_config).length){this.has_icon_config=!0;var g=this.icon_config;this.icon_path=g.icon_path||"",this.icon_width=g.icon_width||48,this.icon_height=g.icon_height||48,this.icon_border=g.icon_border||0,this.icon_radius=g.icon_radius||0,this.icon_border_color=g.icon_border_color||COLORS.BLACK,this.icon_position=g.icon_position||CENTER,this.icon_color=g.icon_color||""}else this.has_icon_config=!1;if(this.image_config=t.image_config,this.image_config&&0!=Object.keys(this.image_config).length){this.has_image_config=!0;var m=this.image_config;this.image_path=m.image_path||"",this.image_width=m.image_width||360,this.image_height=m.image_height||360,this.image_shadow_color=m.image_shadow_color||"#000000",this.image_shadow_opacity=m.image_shadow_opacity||.2,this.image_as_background=m.image_as_background||!1}else this.has_image_config=!1;if(this.video_config=t.video_config,this.video_config&&0!=Object.keys(this.video_config).length){this.has_video_config=!0;var _=this.video_config;this.video_embed=_.video_embed||!1,this.video_embed_html=_.video_embed_html||"",this.video_height=_.video_height||360,this.video_width=_.video_width||360,this.video_path=_.video_path||""}else this.has_video_config=!1;if(this.title_config=t.title_config,t.title_config&&0!=Object.keys(this.title_config).length){var v;this.has_title_config=!0;var y=t.title_config;this.title_icon_path=null!==(v=y.icon_path)&&void 0!==v?v:"",this.title_icon_height=y.icon_height,this.title_icon_width=y.icon_width,this.title_icon_radius=y.icon_radius||0,this.title_icon_border=y.icon_border,this.title_icon_border_color=y.icon_border_color}else this.has_title_config=!1;if(this.text_config=t.text_config,t.text_config&&0!=Object.keys(this.text_config).length?this.has_text_config=!0:this.has_text_config=!1,this.buttons_config_new=t.buttons_config_new,t.buttons_config_new&&0!=this.buttons_config_new.length){var b=t.buttons_config_new;this.top_buttons_config=b.top_buttons,b.top_buttons&&0!=this.top_buttons_config.length?this.has_top_buttons_config=!0:this.has_top_buttons_config=!1,this.center_buttons_config=b.center_buttons,b.center_buttons&&0!=this.center_buttons_config.length?this.has_center_buttons_config=!0:this.has_center_buttons_config=!1,this.bottom_buttons_config=b.bottom_buttons,b.bottom_buttons&&0!=this.bottom_buttons_config.length?this.has_bottom_buttons_config=!0:this.has_bottom_buttons_config=!1}if(this.buttons_config=t.buttons_config,t.buttons_config&&0!=this.buttons_config.length?this.has_buttons_config=!0:this.has_buttons_config=!1,this.button_position=t.button_position,this.button_direction=t.button_direction||DIRECTION.HORIZONTAL,this.shadow_config=t.shadow_config,this.shadow_config&&0!=Object.keys(this.shadow_config).length){this.has_shadow_config=!1;var x=this.shadow_config;this.show_shadow=x.show_shadow||!0,this.shadow_color=x.shadow_color||"#888888"}else this.has_shadow_config=!1;if(this.animation_config=t.animation,this.animation_config&&0!=Object.keys(this.animation_config).length){var w=this.animation_config;this.show_animation=w.enabled||!0,this.animation_name=w.type||"cycle",this.animation_duration=w.duration,this.animation_timing_function=w.function||"ease-in-out",this.animation_iteration_count=w.count||"infinite"}else this.show_animation=!1;if(this.gradient_config=t.gradient_config,this.gradient_config&&0!=Object.keys(this.gradient_config).length){this.has_gradient_config=!0;var C=this.gradient_config;this.gradient_direction=C.gradient_direction||"to right",this.gradient_c1=(null==C?void 0:C.colors[0])||COLORS.BLACK,this.gradient_c2=(null==C?void 0:C.colors[1])||COLORS.WHITE}else this.has_gradient_config=!1;if(this.terminate_info=t.terminate_info,this.terminate_info&&0!=Object.keys(this.terminate_info).length?this.has_terminate_info=!0:this.has_terminate_info=!1,this.tooltip_width=t.tooltip_width||350,this.terminate_info=t.terminate_info||{},this.arrow_config=t.arrow_config,this.arrow_config&&0!=Object.keys(this.arrow_config).length){var E,T,O=this.arrow_config;this.show_arrow=O.show_arrow||!0,this.arrow_type=O.arrow_type||"",this.arrow_color=O.arrow_color||t.background_color,this.arrow_border_style=O.arrow_border_style||(null===(E=this.border_config)||void 0===E?void 0:E.border_style)||"outset",this.arrow_border_color=O.arrow_border_color||(null===(T=this.border_config)||void 0===T?void 0:T.border_color)||""}else this.show_arrow=!1;this.width=t.width||50,this.height=t.height||50,this.min_width="",this.inline_width="auto",this.inline_height="auto",this.media_width="auto",this.media_height="auto",this.targetElement=null,this.inLineContainer=null,this.textContainer=null,this.tooltip=null,this.dimBackgroundElement=null,this.append_to=t.append_to||"parent",this.follow_cursor=t.followCursor||!1,this.interactive_border=t.interactive_border||10,this.max_width=350,this.offset_skidding=t.offset_skidding||0,this.offset_distance=t.offset_distance||10,this.tooltip_position=(null==t||null===(c=t.position_config)||void 0===c||null===(l=c.inline_position)||void 0===l?void 0:l.toLowerCase())||TOOLTIP_POSITION.AUTO}}return _createClass$1(e,[{key:"createNewTooltip",value:function(){var e=this;if(this._canCreateTooltip()){var t=function(){e._setInLineDimensions(),e._highlightInlineTarget(),e._setInlineStyles(),e._setInLineContent(),e._setObservors(),e._createTippyInstance(),e._setAutoTerminate()};this._setTheTarget((function(){e._scrollIntoTargetIfNeeded(t)}))}}},{key:"_canCreateTooltip",value:function(){return!(null!==this.rtmInstance.currentAction&&void 0!==this.rtmInstance.currentAction||this.rtmInstance.isShowingAction)||(Logger$1.info("An nudge is being shown. Can not show a tooltip now"),!1)}},{key:"_setTheTarget",value:function(e){var t=this;this._findTargetElement((function(){t._isElementVisible()?(t.targetElement.onclick=function(){return t._targetClickCallback()},e()):(Logger$1.info("Invalid target element. Width and height are 0 for element: ".concat(t.view_id,". Can't show tooltip")),t._resetRTMAction())}))}},{key:"_isElementVisible",value:function(){try{var e=this.targetElement.getBoundingClientRect();if(0===e.width||0===e.height)return!1}catch(e){return!1}return!0}},{key:"_findTargetElement",value:function(e){this.targetElement=getElementFromSelector(this.view_id,this.iframe_id),this.targetElement?e():this.find_interval?(Logger$1.info("Not found yet. Rechecking the DOM."),this._retryFindingTargetElement(e)):(Logger$1.info("Element with selector:".concat(this.view_id," not found.")),this._resetRTMAction())}},{key:"_retryFindingTargetElement",value:function(e){var t=this,n=new Date,i=setInterval((function(){(t.targetElement=getElementFromSelector(t.view_id,t.iframe_id),t.targetElement)?(clearInterval(i),e(t.targetElement)):new Date-n>t.max_find_interval&&(clearInterval(i),console.warn("Element with selector:".concat(t.view_id," not found.")),t._resetRTMAction())}),this.find_interval)}},{key:"_resetRTMAction",value:function(){this.rtmInstance.currentAction=null,this.rtmInstance.isShowingAction=!1,Logger$1.info("RTM tooltip action stopped.")}},{key:"_scrollIntoTargetIfNeeded",value:function(e){var t=!1;if(isElementInViewport(this.targetElement))t=!0;else if(this.scrollToView){var n={behavior:SCROLL_BEHAVIOUR.SMOOTH,block:CENTER,inline:CENTER};this.targetElement.scrollIntoView(n),t=!0}else Logger$1.info("If needed change the config to scroll to the target element.");t&&e()}},{key:"_setInLineDimensions",value:function(){var e=this.inline_direction===DIRECTION.VERTICAL?this.width/100:this.height/100,t=this.inline_direction!==DIRECTION.VERTICAL;this.has_image_config?this._setDimenstionFromResolution(this.image_width,this.image_height,e,t):this.has_video_config?this.video_embed?this.inline_direction===DIRECTION.VERTICAL?(this.inline_width="".concat(this.video_width+2*this.border_width,"px"),this.media_width="".concat(this.video_width,"px")):(this.inline_height="".concat(this.video_height,"px"),this.media_height="".concat(this.video_height,"px"),this.min_width="".concat(this.getPixelsFromPercentage(this.width,!1),"px")):this._setDimenstionFromResolution(this.video_width,this.video_height,e,t):this.has_icon_config?this.inline_direction===DIRECTION.VERTICAL?this.inline_width="".concat(this.getPixelsFromPercentage(this.width,!1),"px"):this.min_width="".concat(this.getPixelsFromPercentage(this.width,!1),"px"):this.inline_direction===DIRECTION.VERTICAL&&(this.inline_width="".concat(this.getPixelsFromPercentage(this.width,!1),"px"))}},{key:"_setDimenstionFromResolution",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=getHeightWidthFromResolution({width:e,height:t},n,i);this.media_width="".concat(o.width,"px"),this.media_height="".concat(o.height,"px"),this.inline_direction===DIRECTION.VERTICAL?this.inline_width="".concat(o.width+2*this.border_width,"px"):(this.inline_height="".concat(o.height+2*this.border_width,"px"),this.min_width="".concat(this.getPixelsFromPercentage(this.width,!1),"px"))}},{key:"_highlightInlineTarget",value:function(){this.dim_background&&this.targetElement.setAttribute("apx-dimbackground","")}},{key:"_setInlineStyles",value:function(){if(!document.querySelector("style[apxor-tooltip-styles]")){var e=" \n ".concat(this._getBackgroundContainerStyles()," \n ").concat(this._getInLineContainerStyles()," \n ").concat(this._getScrollStyles()," \n ").concat(this._getControlsStyles()," \n ").concat(this._getInLineMediaContainerStyles(),"\n ").concat(this._getInLineNonMediaContainerStyles(),"\n ").concat(this._getTextConatinerStyles(),"\n ").concat(this._getTitleStyles()," \n ").concat(this._getDescriptionStyles()," \n ").concat(this._getInLineButtonContainerStyles()," \n ").concat(this._getIconStyles()," \n ").concat(this._getImageStyles()," \n ").concat(this._getVideoStyles()," \n ").concat(this._getTippyStyles(),"\n ").concat(this._getFooterStyles(),"\n ").concat(this._getBootstrapiconsStyles()," \n ").replaceAll("\n","").replace(/[\s]{2,999}/g,""),t=document.createElement("style");t.setAttribute("apxor-tooltip-styles",""),t.innerHTML=e,document.head.appendChild(t)}}},{key:"_getFooterStyles",value:function(){return"\n .apx-inline-footer-wrap{\n flex-wrap:wrap;\n gap:4px;\n }\n "}},{key:"_getBackgroundContainerStyles",value:function(){var e="";return this.dim_background&&(e="\n :where([apx-dimbackground]) {\n box-shadow: 0 0 0 max(100vh, 100vw) ".concat(hexToRGB(this.dim_background_color,this.dim_background_opacity),";\n z-index:9999;\n overflow: visible;\n position:relative;\n }\n ")),e}},{key:"_getInLineContainerStyles",value:function(){var e="";this.min_width&&(e="min-width:".concat(this.min_width,";"));var t="";this.has_border_config&&(t="\n border-radius: ".concat(this.border_radius,"px;\n border: ").concat(this.border_width,"px ").concat(this.border_style," ").concat(this.border_color,";\n "));var n="";this.has_gradient_config&&(n="\n background-image:linear-gradient(".concat(this.gradient_direction,", ").concat(this.gradient_c1,", ").concat(this.gradient_c2,");\n "));var i="";this.has_shadow_config&&(i="\n box-shadow: 0px 0px 7px 7px ".concat(this.shadow_color,";\n "));var o="";this.has_padding_config&&(o="\n padding:".concat(this.inline_top_padding,"px ").concat(this.inline_right_padding,"px ").concat(this.inline_bottom_padding,"px ").concat(this.inline_left_padding,"px;\n "));var r=this.inline_direction!==DIRECTION.VERTICAL?"flex-direction:row;":"flex-direction:column;";return r=" ".concat(r,"\n justify-content:space-evenly;\n align-items:center;\n display:flex;\n "),"\n .apx-inline-container {\n height:".concat(this.inline_height,";\n width:").concat(this.inline_width,";\n margin: auto;\n background-color:").concat(this.background_color,";\n z-index:9999;\n opacity:0;\n transition:all .5s cubic-bezier(.96,.23,.07,.8);\n position:fixed;\n visibility:hidden;\n\n ").concat(e,"\n ").concat(r,"\n ").concat(o,"\n ").concat(t,"\n ").concat(n,"\n ").concat(i,"\n }\n\n .apx-inline-container.open{\n opacity:1;\n visibility:visible;\n }\n ")}},{key:"_getScrollStyles",value:function(){return this.has_scroll_config&&this.is_scrollable?"\n .apxor-inline-scroll {\n overflow:scroll; \n overflow-x: hidden;\n height:".concat(this.text_height,"px;\n border-top: 2px solid ").concat(this.scroll_border_color,";\n border-bottom : 2px solid ").concat(this.scroll_border_color,";\n }\n "):"\n .apxor-inline-scroll {\n overflow : hidden;\n }\n "}},{key:"_getControlsStyles",value:function(){return this.inline_nonmedia_direction===DIRECTION.VERTICAL||this.inline_direction===DIRECTION.VERTICAL?"\n .apxor-inline-close {\n position: absolute;\n z-index:9999;\n top: 5px;\n right: 5px;\n width: 24px;\n height: 24px;\n cursor: pointer;\n }\n ":"\n .apxor-inline-close {\n display:flex;\n flex-direction:row;\n justify-content:center;\n align-items:center;\n width: 24px;\n height: 24px;\n cursor: pointer;\n }\n "}},{key:"_getInLineMediaContainerStyles",value:function(){return"\n .apx-inline-media-container{\n ".concat(this.has_icon_config?"align-self:".concat(this.icon_position,";"):"","\n ").concat(this.has_image_config&&this.has_video_config&&this.inline_direction===DIRECTION.HORIZONTAL?"display:flex;":"","\n }")}},{key:"_getInLineNonMediaContainerStyles",value:function(){return this.inline_nonmedia_direction!==DIRECTION.VERTICAL?"\n .apx-inline-nonmedia-container{\n flex-grow:2;\n display:flex;\n flex-direction:row;\n justify-content:space-between;\n align-items:center;\n }\n ":"\n .apx-inline-nonmedia-container{\n max-width:".concat(this.inline_width,";\n display:flex;\n flex-direction:column;\n justify-content:center;\n align-items:stretch;\n }\n ")}},{key:"_getTextConatinerStyles",value:function(){return"\n .apxor-text-container{\n display:flex;\n flex-direction:column;\n justify-content: center;\n overflow-wrap: break-word;\n align-items:center;\n ".concat(this.title_config.alignment?"text-align:".concat(this.title_config.alignment,";"):"","\n }\n ")}},{key:"_getTitleStyles",value:function(){var e,t,n;return"\n .apxor-title-div {\n ".concat(null!==(e=this.title_config)&&void 0!==e&&e.background_color?'background-color:"'.concat(this.title_config.background_color,'";'):"","\n ").concat(null!==(t=this.title_config)&&void 0!==t&&t.margin_config?"\n margin-top:".concat(this.title_config.margin_config.top,"px;\n margin-bottom:").concat(this.title_config.margin_config.bottom,"px;\n margin-left:").concat(this.title_config.margin_config.left,"px;\n margin-right:").concat(this.title_config.margin_config.right,"px;\n "):""," \n ").concat(null!==(n=this.title_config)&&void 0!==n&&n.padding_config?"\n padding-top:".concat(this.title_config.padding_config.top,"px;\n padding-bottom:").concat(this.title_config.padding_config.bottom,"px;\n padding-left:").concat(this.title_config.padding_config.left,"px;\n padding-right:").concat(this.title_config.padding_config.right,"px;\n "):""," \n }\n .apxor-title-icon {\n ").concat(""!==this.title_icon_path?"\n background:url('".concat(this.title_icon_path,"') no-repeat fixed center;\n display: inline-block;\n height: ").concat(this.title_icon_height,"px;\n width: ").concat(this.title_icon_width,"px;\n border-radius:").concat(this.title_icon_radius,"%;\n border:").concat(this.title_icon_border,"px solid ").concat(this.title_icon_border_color,";\n margin-right: 15px;\n vertical-align: middle\n "):"","\n }\n ")}},{key:"_getDescriptionStyles",value:function(){var e,t,n;return"\n .apxor-inline-description {\n ".concat(null!==(e=this.text_config)&&void 0!==e&&e.background_color?'background-color:"'.concat(this.text_config.background_color,'";'):"","\n ").concat(null!==(t=this.text_config)&&void 0!==t&&t.margin_config?"\n margin-top:".concat(this.text_config.margin_config.top,"px;\n margin-bottom:").concat(this.text_config.margin_config.bottom,"px;\n margin-left:").concat(this.text_config.margin_config.left,"px;\n margin-right:").concat(this.text_config.margin_config.right,"px;\n "):""," \n ").concat(null!==(n=this.text_config)&&void 0!==n&&n.padding_config?"\n padding-top:".concat(this.text_config.padding_config.top,"px;\n padding-bottom:").concat(this.text_config.padding_config.bottom,"px;\n padding-left:").concat(this.text_config.padding_config.left,"px;\n padding-right:").concat(this.text_config.padding_config.right,"px;\n "):""," \n }\n ")}},{key:"_getInLineButtonContainerStyles",value:function(){return"\n .apx-inline-button-container{\n display:flex;\n flex-direction:row;\n align-items:center;\n justify-content:center;\n margin:0 10px 0 10px;\n }\n .apx-inline-top-button-container{\n width:100%;\n height:auto;\n }\n .apx-inline-center-button-container{\n width:100%;\n height:auto;\n }\n .apx-inline-bottom-button-container{\n width:100%;\n height:auto;\n }"}},{key:"_getIconStyles",value:function(){var e="";return this.has_icon_config&&(e="\n .apxor-inline-icon-container {\n text-align:".concat(this.icon_position,";\n }\n .apxor-inline-icon-content {\n background:url('").concat(this.icon_path,"') no-repeat fixed center;\n display:inline-block;\n height: ").concat(this.icon_height,"px;\n width: ").concat(this.icon_width,"px;\n border-radius:").concat(this.icon_radius,"%;\n border:").concat(this.icon_border,"px solid ").concat(this.icon_border_color,";\n }\n ")),e}},{key:"_getImageStyles",value:function(){var e="";return this.has_image_config&&(e=this.image_as_background?"\n .apxor-inline-image{\n \n background:url('".concat(this.image_path,"') no-repeat 50% 50%;\n box-shadow: inset ").concat(this.image_width,"px ").concat(this.image_height,"px 0px 0px ").concat(hexToRGB(this.image_shadow_color,this.image_shadow_opacity),",inset -").concat(this.image_width,"px -").concat(this.image_height,"px 0px 0px ").concat(hexToRGB(this.image_shadow_color,this.image_shadow_opacity),"\n }\n "):"\n .apxor-inline-image{\n height: ".concat(this.media_height,";\n width: ").concat(this.media_width,";\n }\n ")),e}},{key:"_getVideoStyles",value:function(){var e="";return this.has_video_config&&(e="\n .apxor-inline-video {\n width:".concat(this.media_width,";\n height:").concat(this.media_height,";\n }\n ")),e}},{key:"_getTippyStyles",value:function(){var e="",t="",n="",i="";switch(this.arrow_type){case"round":e="\n bottom:-7px;\n width:18px;\n height:18px;\n border-radius:5px;\n transform: rotate(45deg);\n background-color:".concat(this.arrow_color,";\n "),t="\n left:-7px;\n bottom:-7px;\n width:18px;\n height:18px;\n border-radius:5px;\n transform: rotate(45deg);\n background-color:".concat(this.arrow_color,";\n "),n="\n top:-7px;\n bottom:-7px;\n width:18px;\n height:18px;\n border-radius:5px;\n transform: rotate(45deg);\n background-color:".concat(this.arrow_color,";\n "),i="\n right:-7px;\n bottom:-7px;\n width:18px;\n height:18px;\n border-radius:5px;\n transform: rotate(45deg);\n background-color:".concat(this.arrow_color,";\n ");break;case"narrow":e="\n bottom:-10px;\n border-width:18px 5px 0;\n ",t="\n left:-10px;\n border-width:5px 18px 5px 0;\n ",n="\n top:-10px;\n border-width:0 5px 18px;\n ",i="\n right:-10px;\n border-width:5px 0 5px 18px;\n ";break;case"wide":e="\n left:-50%;\n bottom:-8px;\n border-width:9px 18px 0;\n ",t="\n top:-50%;\n left:-8px;\n border-width:18px 9px 18px 0;\n ",n="\n left:-50%;\n top:-8px;\n border-width:0 18px 9px;\n ",i="\n top:-50%;\n right:-8px;\n border-width:18px 0 18px 8px;\n ";break;case"large":e="\n left:-50%;\n bottom:-10px;\n border-width:16px 16px 0;\n ",t="\n top:-50%;\n left:-10px;\n border-width:16px 16px 16px 0;\n ",n="\n left:-50%;\n top:-10px;\n border-width:0 16px 16px;\n ",i="\n top:-50%;\n right:-10px;\n border-width:16px 0 16px 16px;\n ";break;case"small":e="\n left:-50%;\n bottom:-5px;\n border-width:16px 16px 0;\n ",t="\n top:-50%;\n left:-5px;\n border-width:16px 16px 16px 0;\n ",n="\n left:-50%;\n top:-5px;\n border-width:0 16px 16px;\n ",i="\n top:-50%;\n right:-5px;\n border-width:16px 0 16px 16px;\n ";break;default:e="\n left:-50%;\n bottom:-7px;\n border-width:16px 16px 0;\n ",t="\n top:-50%;\n left:-7px;\n border-width:16px 16px 16px 0;\n ",n="\n left:-50%;\n top:-7px;\n border-width:0 16px 16px;\n ",i="\n top:-50%;\n right:-7px;\n border-width:16px 0 16px 16px;\n "}var o=document.querySelector("style[data-tippy-stylesheet]");o&&o.remove();var r="\n .tippy-box[data-animation=fade][data-state=hidden]{\n opacity:0;\n } \n [data-tippy-root] {\n width:".concat(this.inline_width,";\n max-width:calc(100vw - ").concat(this.arrow_width,"px);\n } \n .tippy-box { \n width:").concat(this.inline_width,";\n position:relative;\n line-height:1.4;\n white-space:normal;\n outline:0;\n transition-property:transform,visibility,opacity;\n } \n .tippy-box[data-placement^=top] > .tippy-arrow {\n bottom:0;\n } \n .tippy-box[data-placement^=top] > .tippy-arrow:before {\n ").concat(e,"\n border-top-color:initial;\n transform-origin:center top;\n } \n .tippy-box[data-placement^=bottom] > .tippy-arrow {\n top:0;\n } \n .tippy-box[data-placement^=bottom] > .tippy-arrow:before {\n ").concat(n,"\n border-bottom-color:initial;\n transform-origin:center bottom;\n } \n .tippy-box[data-placement^=left] > .tippy-arrow {\n right:0;\n } \n .tippy-box[data-placement^=left] > .tippy-arrow:before {\n ").concat(i,"\n border-left-color:initial;\n transform-origin:center left;\n } \n .tippy-box[data-placement^=right] > .tippy-arrow {\n left:0;\n } \n .tippy-box[data-placement^=right] > .tippy-arrow:before {\n ").concat(t,"\n border-right-color:initial;\n transform-origin:center right;\n } \n .tippy-box[data-inertia][data-state=visible] {\n transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)\n } \n .tippy-arrow {\n width:18px;\n height:18px;\n color:").concat(this.arrow_color,';\n opacity:0;\n visibility:hidden;\n } \n .tippy-arrow.open {\n opacity:1;\n visibility:visible;\n }\n .tippy-arrow:before{ \n content:"";\n position:absolute;\n border-color:transparent;\n border-style:').concat(this.arrow_border_style,";\n } \n .tippy-content {\n width:").concat(this.inline_width,";\n position:relative;\n z-index:1;\n } \n\n @-webkit-keyframes ").concat(this.animation_name," {\n 0% { transform: ").concat(translateDir(this.tooltip_position,0),"; }\n 50% { transform: ").concat(translateDir(this.tooltip_position,50),"; }\n 100% { transform: ").concat(translateDir(this.tooltip_position,100),"; }\n }\n\n @keyframes ").concat(this.animation_name," {\n 0% { transform: ").concat(translateDir(this.tooltip_position,0),"; }\n 50% { transform: ").concat(translateDir(this.tooltip_position,50),"; }\n 100% { transform: ").concat(translateDir(this.tooltip_position,100),"; }\n }\n\n .tippy-box {\n animation-name: ").concat(this.animation_name,";\n animation-duration: ").concat(this.animation_duration,"ms;\n animation-timing-function: ").concat(this.animation_timing_function,";\n animation-iteration-count: ").concat(this.animation_iteration_count,";\n }\n ");return"\n ".concat(r,"\n ")}},{key:"_getBootstrapiconsStyles",value:function(){return'\n .bi::before, [class^="bi-"]::before, [class*=" bi-"]::before {\n display: inline-block;\n font-style: normal;\n font-weight: normal !important;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n vertical-align: -.125em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .bi-x::before { \n content: "62a"; \n }\n .bi-x-circle-fill::before { \n content: "622"; \n }\n '}},{key:"_removeStyles",value:function(){try{var e=document.querySelector("style[apxor-tooltip-styles]");e&&e.remove();var t=document.querySelector("style[data-tippy-stylesheet]");t&&t.remove()}catch(e){Logger$1.error("Could not remove the tooltip styles:"+e)}}},{key:"_setInLineContent",value:function(){this._createInLineContainer(),this._createTopButtonContainer(),this._setButtons(BUTTON_CONTAINER_POSITION.TOP),this._createMediaContainer(),this._createCenterButtonContainer(),this._setButtons(BUTTON_CONTAINER_POSITION.CENTER),this._setImageOptions(),this._setVideoOptions(),this._setIconOptions(),this._createNonMediaContainer(),this._setTextContainer(),this._setTitleContent(),this._setDescriptionContent(),this._createButtonContainer(),this._setCTAButtons(),this._createBottomButtonContainer(),this._setButtons(BUTTON_CONTAINER_POSITION.BOTTOM),this._setCloseButton()}},{key:"_createInLineContainer",value:function(){this.inLineContainer=document.createElement("div"),this.inLineContainer.classList.add("apx-inline-container")}},{key:"_createMediaContainer",value:function(){this.mediaContainer=document.createElement("div"),this.mediaContainer.classList.add("apx-inline-media-container"),this.inLineContainer.appendChild(this.mediaContainer)}},{key:"_setImageOptions",value:function(){if(this.has_image_config)if(this.image_as_background)this.inLineContainer.classList.add("apxor-inline-image");else{var e=document.createElement("div"),t=document.createElement("img");t.src=this.image_path,t.classList.add("apxor-inline-image"),e.appendChild(t),this.mediaContainer.appendChild(e)}}},{key:"_setVideoOptions",value:function(){if(this.has_video_config){var e=document.createElement("div");if(this.video_embed)e.innerHTML="".concat(this.video_embed_html);else{var t=document.createElement("video");t.classList.add("apxor-inline-video"),t.controlsList="noplaybackrate nodownload",t.disablePictureInPicture=!0,t.controls=!0;var n=document.createElement("source");n.setAttribute("src",this.video_path),n.setAttribute("type","video/mp4"),t.appendChild(n),e.appendChild(t)}this.mediaContainer.appendChild(e)}}},{key:"_setIconOptions",value:function(){if(this.has_icon_config){var e=document.createElement("div");e.classList.add("apxor-inline-icon-container");var t=document.createElement("span");t.classList.add("apxor-inline-icon-content"),e.appendChild(t),this.mediaContainer.appendChild(e)}}},{key:"_createNonMediaContainer",value:function(){this.nonMediaContainer=document.createElement("div"),this.nonMediaContainer.classList.add("apx-inline-nonmedia-container"),this.inLineContainer.appendChild(this.nonMediaContainer)}},{key:"_setTextContainer",value:function(){this.textContainer=document.createElement("div"),this.textContainer.classList.add("apxor-text-container"),this.nonMediaContainer.appendChild(this.textContainer)}},{key:"_setTitleContent",value:function(){if(this.has_title_config){resolveDynamicText(this.title_config);var e=document.createElement("div");if(e.classList.add("apxor-title-div"),""!=this.title_icon_path){var t=document.createElement("span");t.classList.add("apxor-title-icon"),e.appendChild(t)}e.appendChild(createTextElement(this.title_config,this.currentId,"title")),this.textContainer.appendChild(e)}}},{key:"_setDescriptionContent",value:function(){if(this.has_text_config){resolveDynamicText(this.text_config);var e=document.createElement("div");e.classList.add("apxor-inline-description"),e.appendChild(createTextElement(this.text_config,this.currentId,"description")),e.classList.add("apxor-inline-scroll"),this.textContainer.appendChild(e)}}},{key:"_createButtonContainer",value:function(){this.inline_nonmedia_direction!==DIRECTION.VERTICAL&&(this.buttonContainer=document.createElement("div"),this.buttonContainer.classList.add("apx-inline-button-container"),this.nonMediaContainer.appendChild(this.buttonContainer))}},{key:"_createTopButtonContainer",value:function(){this.has_top_buttons_config&&(this.topButtonContainer=document.createElement("div"),this.topButtonContainer.classList.add("apx-inline-top-button-container"),this.inLineContainer.appendChild(this.topButtonContainer))}},{key:"_createCenterButtonContainer",value:function(){this.has_center_buttons_config&&(this.centerButtonContainer=document.createElement("div"),this.centerButtonContainer.classList.add("apx-inline-center-button-container"),this.inLineContainer.appendChild(this.centerButtonContainer))}},{key:"_createBottomButtonContainer",value:function(){this.has_bottom_buttons_config&&(this.bottomButtonContainer=document.createElement("div"),this.bottomButtonContainer.classList.add("apx-inline-bottom-button-container"),this.nonMediaContainer.appendChild(this.bottomButtonContainer))}},{key:"_setButtons",value:function(e){var t=this;if(e===BUTTON_CONTAINER_POSITION.TOP&&this.has_top_buttons_config||e===BUTTON_CONTAINER_POSITION.CENTER&&this.has_center_buttons_config||e===BUTTON_CONTAINER_POSITION.BOTTOM&&this.has_bottom_buttons_config){var n=this.overlayElement,i=function(e,i){t.closeCallback(n,i,".apx-inapp-container")},o={next:i,complete:i,cancel:i,_isCancelled:!1,action:""},r={};r=e===BUTTON_CONTAINER_POSITION.TOP?this.top_buttons_config:e===BUTTON_CONTAINER_POSITION.CENTER?this.center_buttons_config:this.bottom_buttons_config;var a=generateButtonsBlock(this.configId,this.name,EVENT_PREFIX.INAPP,r,this.button_direction,this.button_position,e,o);e===BUTTON_CONTAINER_POSITION.TOP?this.topButtonContainer.appendChild(a):e===BUTTON_CONTAINER_POSITION.CENTER?this.centerButtonContainer.appendChild(a):this.bottomButtonContainer.appendChild(a)}}},{key:"_setCTAButtons",value:function(){var e=this,t=function(t){e._destroyTooltip(t)},n={next:t,complete:t,cancel:t,_isCancelled:!1},i=generateCTAButtons(this.configId,this.name,EVENT_PREFIX.INLINE,this.buttons_config,this.button_position,this.button_direction,n);i.classList.add("apx-inline-footer-wrap"),this.inline_nonmedia_direction===DIRECTION.VERTICAL?this.nonMediaContainer.appendChild(i):this.buttonContainer.appendChild(i)}},{key:"_setCloseButton",value:function(){var e=this;if(this.enable_close){var t=document.createElement("span");this.close_btn_type===CLOSE_BUTTON_STYLE.NORMAL?t.innerHTML=getCloseSVG(24,24,this.close_btn_color):this.close_btn_type===CLOSE_BUTTON_STYLE.FILL?t.innerHTML=getCloseWithCircleSVG(24,24,this.close_btn_bg_color):t.innerHTML='<img src="'.concat(this.close_btn_path,'" width="24" height="24"></img>'),t.classList.add("apxor-inline-close"),t.addEventListener("click",(function(){e._destroyTooltip()})),this.inline_nonmedia_direction===DIRECTION.VERTICAL||this.inline_direction===DIRECTION.VERTICAL?this.inLineContainer.appendChild(t):this.buttonContainer.appendChild(t)}}},{key:"_setObservors",value:function(){var e=this;this.targetDeletionObserver=new MutationObserver((function(){e.tooltipShown&&(document.body.contains(e.targetElement)||e._destroyTooltip())})),this.viewPortObservor=new IntersectionObserver((function(){e.tooltipShown&&(isElementInViewport(e.targetElement)||e._destroyTooltip())}))}},{key:"_createTippyInstance",value:function(){var e=this;this.tooltip=tippy(this.targetElement,{allowHTML:!1,aria:{content:"describedby"},arrow:this.show_arrow,appendTo:function(){return document.body},content:this.inLineContainer,delay:this.delay,duration:100,followCursor:this.follow_cursor,flip:!0,flipOnUpdate:!0,hideOnClick:!1,inlinePositioning:!0,interactive:!0,interactiveBorder:this.interactive_border,interactiveDebounce:999999,moveTransition:"transform 0s linear",maxWidth:"100%",maxHeight:"100%",offset:[this.offset_skidding,this.offset_distance],onClickOutside:function(){e.dismiss_outside_touch&&e._destroyTooltip()},onShow:function(){var t,n;null===(t=e.targetDeletionObserver)||void 0===t||t.observe(document.body,{childList:!0,subtree:!0}),null===(n=e.viewPortObservor)||void 0===n||n.observe(e.targetElement),setTimeout((function(){e.tooltipShown=!0}),10)},onMount:function(t){e.recalculateTheTippyHeight(),t.popperInstance.update()},onShown:function(){e._showTippy()},placement:this.tooltip_position,popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["bottom","right","top","left"],allowedAutoPlacements:["top","bottom","right","left"]}}]},role:"tooltip",showOnCreate:!0,sticky:!1,touch:!0,zIndex:99999999})}},{key:"_showTippy",value:function(){var e=this;this.inLineContainer.classList.add("open"),setTimeout((function(){var t,n=document.querySelector(".tippy-arrow");null==n||null===(t=n.classList)||void 0===t||t.add("open"),e.showCallback()}),200)}},{key:"_setAutoTerminate",value:function(){var e=this;!0===this.terminationConfig.auto_dismiss&&setTimeout((function(){e._destroyTooltip()}),this.delay+this.terminationConfig.duration)}},{key:"_targetClickCallback",value:function(){this.dismiss_target_touch&&(this.rtmInstance.logActionEvent("InlineTargetViewClicked",this.configId,this.name),this._destroyTooltip())}},{key:"_destroyTooltip",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{var t,n,i,o;null===(t=this.targetDeletionObserver)||void 0===t||t.disconnect(),this.targetDeletionObserver=null,null===(n=this.viewPortObservor)||void 0===n||n.disconnect(),this.viewPortObservor=null,null===(i=this.tooltip)||void 0===i||i.destroy(),null===(o=this.dimBackgroundElement)||void 0===o||o.remove(),this._removeStyles(),this.targetElement.removeAttribute("apx-dimbackground")}catch(e){Logger$1.info("Destroying the tooltip:"+e)}this.closeCallback(e)}},{key:"_isWalkthroughCampaign",value:function(){return Array.isArray(this.walkthroughConfigs)&&this.walkthroughConfigs.length>0}},{key:"getPixelsFromPercentage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=window.innerWidth,i=window.innerHeight;return t?i*e/100:n*e/100}},{key:"recalculateTheTippyHeight",value:function(){try{var e=this.inLineContainer.offsetHeight,t=this.inLineContainer.offsetWidth,n=document.querySelector("[data-tippy-root]");n.style.height="".concat(e,"px"),n.style.width="".concat(t,"px");var i=document.querySelector(".tippy-box");i.style.height="".concat(e,"px"),i.style.width="".concat(t,"px");var o=document.querySelector(".tippy-content");o.style.height="".concat(e,"px"),o.style.width="".concat(t,"px")}catch(e){this._destroyTooltip(),Logger$1.error("Can't update the tippy dimensions")}}}]),e}(),Logger=window.ApxorLogger,RTA=0,SURVEYS=1,getURLs=function(e,t){var n=function(n){return n.replace("<app_id>",e).replace("<u_id>",t)};return{rtaValidateUrl:n(RTA_VALIDATE_URL),rtaSyncUrl:n(RTA_SYNC_URL),surveysValidateUrl:n(SURVEY_VALIDATE_URL),surveysSyncUrl:n(SURVEY_SYNC_URL),configSSEUrl:n(CONFIG_API_URL),testDevicesValidateUrl:n(TEST_DEVICES_API_URL)}},RTM=_createClass$1((function e(){var t=this;_classCallCheck$1(this,e),_defineProperty$1(this,"version",139),_defineProperty$1(this,"_configs",{}),_defineProperty$1(this,"isShowingAction",!1),_defineProperty$1(this,"currentAction",null),_defineProperty$1(this,"_surveys",new ApxorSurveys),_defineProperty$1(this,"_inApp",new ApxorInApp),_defineProperty$1(this,"_wysiwyg",new WYSIWYG),_defineProperty$1(this,"_afterPluginInit",null),_defineProperty$1(this,"_eventsInDynamicText",{}),_defineProperty$1(this,"_configSSEUrl",""),_defineProperty$1(this,"init",(function(e){t._afterPluginInit=e;var n=Apxor.getController(),i=ceWrapper.getInstance(),o=Apxor.getSiteId(),r=Apxor.getClientId(),a=getURLs(o,r),s=a.rtaValidateUrl,c=a.rtaSyncUrl,l=a.surveysValidateUrl,d=a.surveysSyncUrl,p=a.configSSEUrl,u=a.testDevicesValidateUrl;t._configSSEUrl=p,i.initialize(),i.fetch(RTA,s,c,t.handleResponse),i.fetch(SURVEYS,l,d,t.handleResponse),n.makeGetRequest(u,t.initiateTestSSE),n.registerForEvent("IN_LINE",t.handleInLine),n.registerForEvent("IN_APP",t.handleInApp),n.registerForEvent("SURVEY",t.handleSurvey),n.registerForEvent("ONBOARDING",t.handleOnboarding),t._wysiwyg.init(o,t),Logger.debug("Registered for events")})),_defineProperty$1(this,"show",(function(e,n,i,o){try{if(o!==APX_PREVIEW_CAMPAIGN_NAME&&t.getFrequencyCount(i)<=0)return void Logger.error("Campaign limit reached");if(null!==t.currentAction&&void 0!==t.currentAction)return void Logger.error("An action already being shown");var r=JSON.parse(e),a={};a.auto_dismiss=n>0,a.duration=n;var s=function(){o!==APX_PREVIEW_CAMPAIGN_NAME&&(t.logActionEvent("inline_shown",i,o),t.updateCount(i)),t.isShowingAction=!0},c=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.isShowingAction=!1,t.currentAction=null,e||t.logActionEvent("inline_dismissed",i,o)},l=r.display_type,d={configId:i,configName:o};if("new-inline"===l)new InLineTooltip(r,[],a,d,t,s,c).createNewTooltip();else"inline"===l?t.currentAction=showTooltip(r,[],a,d,t,s,c):"coach_mark"===l?showCoachmarkWithDelay(r,d,a,s,c,(function(e){t.currentAction=e})):Logger.error("Unknown type",l)}catch(e){t.currentAction=null,t.isShowingAction=!1,window.ApxorLogger.error(e)}})),_defineProperty$1(this,"logActionEvent",(function(e,n,i){var o=t.getCampaignMeta(n)._attr;Apxor.logEvent(e,_objectSpread2$1({id:n,message_name:i},o))})),_defineProperty$1(this,"logClientEvent",(function(e,t){Apxor.logClientEvent(e,t)})),_defineProperty$1(this,"updateCount",(function(e){ceWrapper.getInstance().updateCount(e)})),_defineProperty$1(this,"getFrequencyCount",(function(e){ceWrapper.getInstance().getFrequencyCount(e)})),_defineProperty$1(this,"resetFrequencyCounts",(function(){ceWrapper.getInstance().resetFrequencyCounts()})),_defineProperty$1(this,"removeAll",(function(){if(null!==t.currentAction&&void 0!==t.currentAction){t.isShowingAction=!1;try{t.currentAction()}catch(e){}finally{t.currentAction=null}}})),_defineProperty$1(this,"handleResponse",(function(e,n){""===e?(Logger.debug("No configs available"),t._afterPluginInit&&t._afterPluginInit()):(Logger.debug("Fetched config from server",e),t._storeConfigs(e,n),ceWrapper.getInstance().parse(n),t._afterPluginInit&&t._afterPluginInit())})),_defineProperty$1(this,"handleSSEResponse",(function(e,n){Logger.debug("Fetched config from SSE"),n&&n.length>0&&(t._storeConfigs(e,{configs:n}),ceWrapper.getInstance().parse({configs:n}))})),_defineProperty$1(this,"initiateTestSSE",(function(e){var n;!0===(null==e||null===(n=e.data)||void 0===n?void 0:n.is_test_device)&&(new EventSource(t._configSSEUrl).onmessage=function(e){try{if(e&&e.data&&"{}"!==e.data&&null!=e&&e.data){var n=JSON.parse(null==e?void 0:e.data);t.handleSSEResponse(RTA,n.messages)}}catch(e){Logger.error("SSE art-config parsing error:",e)}})})),_defineProperty$1(this,"_storeConfigs",(function(e,n){if(isDefined(n)&&isDefined(n.configs)){var i=n.configs;if(!Array.isArray(i))return;for(var o=0;o<i.length;o++){var r=i[o],a=r._id,s=r.meta,c=s.name,l=s.type,d=r.ui;e===SURVEYS?d=t._surveys.parse(a,c,d):l===IN_APP_TYPE&&(d=t._inApp.parse(a,c,d)),null!==d?t._configs[a]={ui:d,uis:r.uis,terminationConfig:r.terminate_info,name:c}:console.warn("Failed to parse the config",a)}Logger.debug("Configs: ",t._configs)}})),_defineProperty$1(this,"handleInLine",(function(e){if(isDefined(e.additional_info)){var n=e.additional_info.uuid;if(t._configs[n]){var i=t._configs[n],o=i.ui,r=i.terminationConfig,a=i.name;t.show(JSON.stringify(o),r.auto_dismiss?r.duration:-1,n,a)}}})),_defineProperty$1(this,"handleInApp",(function(e){if(isDefined(e.additional_info)){var n=e.additional_info.uuid;if(t._configs[n]){var i=t._configs[n].ui;setTimeout((function(){i.showInApp(n)}),0)}}})),_defineProperty$1(this,"handleSurvey",(function(e){if(isDefined(e.additional_info)){var n=e.additional_info.uuid;if(t._configs[n]){t._configs[n].ui.showSurvey((function(e){t.updateCount(n),t.isShowingAction=!0,t.currentAction=e}),(function(){t.isShowingAction=!1,t.currentAction=null}))}}})),_defineProperty$1(this,"handleOnboarding",(function(e){})),_defineProperty$1(this,"getCampaignMeta",(function(e){var t;return null===(t=ceWrapper.getInstance())||void 0===t?void 0:t.getCampaignMetaFromQueryEngine(e)}))})),rtm=new RTM;window.ApxorRTM=rtm;var CEWrapper=function(){function e(){_classCallCheck$1(this,e)}return _createClass$1(e,[{key:"getInstance",value:function(){return(CE||window["apxor-qe"]).getInstance()}}]),e}(),ceWrapper=new CEWrapper;try{void 0===exports&&null===exports||(exports.default=rtm,module.exports=exports.default)}catch(e){}exports.ceWrapper=ceWrapper,exports.default=rtm,Object.defineProperty(exports,"__esModule",{value:!0})}));