apxor-rtm 1.2.1 → 1.2.3

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(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=e||self)["apxor-rtm"]={},e.Apxor,e.CE)}(this,(function(e,t,n){"use strict";function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e){return(r="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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e)||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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var u="https://server.apxor.com",h=u+"/v2/api/survey-response?appId=<app_id>",f=1,m=2,v=3,g=4,b=function(e){return"InApp".concat(e,"Clicked")},y=function(e){return void 0!==e&&!function(e){return null===e}(e)},x=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){}return null},w=function(e){switch(e){case"center":return"center";case"left":return"flex-start";default:return"flex-end"}},_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o="";if(e.length>0){var i=e[0],r=i.bg_color,a=i.text_color,s=i.size,c=i.font_family,l=i.borders,d=l.stroke_color,p=l.radius;o="\n ".concat(n," footer .shepherd-button.button-o {\n background-color: ").concat("#"===r?"transparent":r,";\n color: ").concat(a,";font-size: ").concat(s,"px;font-family: ").concat(c,";\n font-weight: ").concat("bold"!==c?"normal":c,";\n font-style: ").concat("italic"===c?"italic":"unset",";\n border: 0px solid ").concat(d,";border-radius: ").concat(p,"px;\n margin-right:").concat("#"===r?0:"12px","\n }\n ")}if(e.length>1){var u=e[1],h=u.bg_color,f=u.text_color,m=u.size,v=u.font_family,g=u.borders,b=g.stroke_color,y=g.radius;o+="\n ".concat(n," footer .shepherd-button.button-t {\n background-color: ").concat("#"===h?"transparent":h,";\n color: ").concat(f,";font-size: ").concat(m,"px;font-family: ").concat(v,";\n font-weight: ").concat("bold"!==v?"normal":v,";\n font-style: ").concat("italic"===v?"italic":"unset",";\n border: 0px solid ").concat(b,";border-radius: ").concat(y,"px;\n }\n ")}return"\n ".concat(n," 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(n," footer .shepherd-button:last-child {\n margin-right: 0\n }\n\n ").concat(n," footer {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n display: flex;\n justify-content: ").concat(w(t),";\n padding: 0 .8em .8em\n }\n ")},E=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,o=arguments.length>3?arguments[3]:void 0,i=window.ApxorRTM,r=[],a=[];return e.forEach((function(e,s){var c,l,d,p,u,h,f,m,v,g=null!==(c=null==e||null===(l=e.action_config)||void 0===l?void 0:l.action)&&void 0!==c?c:"end",b=null!==(d=null==e||null===(p=e.action_config)||void 0===p?void 0:p.url)&&void 0!==d?d:"",y=null===(u=null==e||null===(h=e.action_config)||void 0===h?void 0:h.is_external)||void 0===u||u,x=null!==(f=null==e||null===(m=e.action_config)||void 0===m?void 0:m.is_within)&&void 0!==f&&f,w=e.borders,_=e.color,E=e.text_config,k=E.text,C=E.color,T=E.size,O=E.style,S=E.font_family;try{switch(g){case"done":case"dismiss":v=t.complete;break;case"next":v=t.next;break;case"redirect":v=function(){i.logActionEvent("Inline"+k+"Clicked",n,o),x||y?window.open(b,x?"_self":"_blank"):i.logClientEvent("REDIRECT",{url:b}),t.next()};break;default:v=t.cancel}}catch(e){}a.push({borders:w,bg_color:_,text_color:C,size:T,style:O,font_family:S}),r.push({classes:0===s?"button-o":"button-t",text:k,action:v})})),{buttons_array:r,buttons_css:a}};var k=function(e,t,n){var o=n.dim_background,i=void 0===o||o,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-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(i){var m=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o}));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}(a);f="rgb(".concat(m.r,", ").concat(m.g,", ").concat(m.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 v=document.createElement("div");return v.setAttribute("id","apx-dlg-c"),v.classList.add("apx-dlg-c"),d.appendChild(v),d.appendChild(p),document.body.appendChild(d),d},C=function(e){var t=e.offsetHeight,n=e.offsetWidth,o=e.getBoundingClientRect();return o.left>=-n&&o.top>=-t&&o.right<=(window.innerWidth||document.documentElement.clientWidth)+n&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)+t};
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=e||self)["apxor-rtm"]={},e.Apxor,e.CE)}(this,(function(e,t,n){"use strict";function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e){return(r="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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e)||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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var u="https://server.apxor.com",h=u+"/v2/api/survey-response?appId=<app_id>",f=1,m=2,v=3,g=4,b=function(e){return"InApp".concat(e,"Clicked")},y=function(e){return void 0!==e&&!function(e){return null===e}(e)},x=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){}return null},w=function(e){switch(e){case"center":return"center";case"left":return"flex-start";default:return"flex-end"}},_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o="";if(e.length>0){var i=e[0],r=i.bg_color,a=i.text_color,s=i.size,c=i.font_family,l=i.borders,d=l.stroke_color,p=l.radius;o="\n ".concat(n," footer .shepherd-button.button-o {\n background-color: ").concat("#"===r?"transparent":r,";\n color: ").concat(a,";font-size: ").concat(s,"px;font-family: ").concat(c,";\n font-weight: ").concat("bold"!==c?"normal":c,";\n font-style: ").concat("italic"===c?"italic":"unset",";\n border: 0px solid ").concat(d,";border-radius: ").concat(p,"px;\n margin-right:").concat("#"===r?0:"12px","\n }\n ")}if(e.length>1){var u=e[1],h=u.bg_color,f=u.text_color,m=u.size,v=u.font_family,g=u.borders,b=g.stroke_color,y=g.radius;o+="\n ".concat(n," footer .shepherd-button.button-t {\n background-color: ").concat("#"===h?"transparent":h,";\n color: ").concat(f,";font-size: ").concat(m,"px;font-family: ").concat(v,";\n font-weight: ").concat("bold"!==v?"normal":v,";\n font-style: ").concat("italic"===v?"italic":"unset",";\n border: 0px solid ").concat(b,";border-radius: ").concat(y,"px;\n }\n ")}return"\n ".concat(n," 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(n," footer .shepherd-button:last-child {\n margin-right: 0\n }\n\n ").concat(n," footer {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n display: flex;\n justify-content: ").concat(w(t),";\n padding: 0 .8em .8em\n }\n ")},E=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,o=arguments.length>3?arguments[3]:void 0,i=window.ApxorRTM,r=[],a=[];return e.forEach((function(e,s){var c,l,d,p,u,h,f,m,v,g=null!==(c=null==e||null===(l=e.action_config)||void 0===l?void 0:l.action)&&void 0!==c?c:"end",b=null!==(d=null==e||null===(p=e.action_config)||void 0===p?void 0:p.url)&&void 0!==d?d:"",y=null===(u=null==e||null===(h=e.action_config)||void 0===h?void 0:h.is_external)||void 0===u||u,x=null!==(f=null==e||null===(m=e.action_config)||void 0===m?void 0:m.is_within)&&void 0!==f&&f,w=e.borders,_=e.color,E=e.text_config,k=E.text,C=E.color,T=E.size,O=E.style,S=E.font_family;try{switch(g){case"done":case"dismiss":v=function(){i.logActionEvent("Inline_"+k+"_Clicked",n,o),t.complete()};break;case"next":v=t.next;break;case"redirect":v=function(){i.logActionEvent("Inline_"+k+"_Clicked",n,o),x||y?window.open(b,x?"_self":"_blank"):i.logClientEvent("REDIRECT",{url:b}),t.next()};break;case"cancel":v=function(){i.logActionEvent("Inline_"+k+"_Clicked",n,o),t._isCancelled=!0,t.cancel()};break;default:v=function(){i.logActionEvent("Inline_"+k+"_Clicked",n,o),t.cancel()}}}catch(e){}a.push({borders:w,bg_color:_,text_color:C,size:T,style:O,font_family:S}),r.push({classes:0===s?"button-o":"button-t",text:k,action:v})})),{buttons_array:r,buttons_css:a}};var k=function(e,t,n){var o=n.dim_background,i=void 0===o||o,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-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(i){var m=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o}));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}(a);f="rgb(".concat(m.r,", ").concat(m.g,", ").concat(m.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 v=document.createElement("div");return v.setAttribute("id","apx-dlg-c"),v.classList.add("apx-dlg-c"),d.appendChild(v),d.appendChild(p),document.body.appendChild(d),d},C=function(e){var t=e.offsetHeight,n=e.offsetWidth,o=e.getBoundingClientRect();return o.left>=-n&&o.top>=-t&&o.right<=(window.innerWidth||document.documentElement.clientWidth)+n&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)+t};
2
2
  /*! shepherd.js 4.0.0-beta.1 */
3
- function T(e){return(T="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function A(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),e}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(){return(N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function D(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&&I(e,t)}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?B(e):t}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function F(e){return e instanceof HTMLElement}function H(e){return"function"==typeof e}function P(e){return"string"==typeof e}function q(e){return void 0===e}
3
+ function T(e){return(T="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function A(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),e}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(){return(N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function M(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&&I(e,t)}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?B(e):t}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function z(e){return e instanceof HTMLElement}function P(e){return"function"==typeof e}function j(e){return"string"==typeof e}function R(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 R(){return(R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var W="undefined"!=typeof window&&"undefined"!=typeof document,Y=W?navigator.userAgent:"",V=/MSIE |Trident\//.test(Y),U=/UCBrowser\//.test(Y),X=W&&/iPhone|iPad|iPod/.test(navigator.platform),J={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},K=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],G={passive:!0},Z={isTouch:!1},Q=0;function $(){Z.isTouch||(Z.isTouch=!0,X&&document.body.classList.add("tippy-iOS"),window.performance&&document.addEventListener("mousemove",ee))}function ee(){var e=performance.now();e-Q<20&&(Z.isTouch=!1,document.removeEventListener("mousemove",ee),X||document.body.classList.remove("tippy-iOS")),Q=e}function te(){var e=document.activeElement,t=e._tippy;e&&e.blur&&t&&!t.state.isVisible&&e.blur()}var ne=Object.keys(J);function oe(e,t){return{}.hasOwnProperty.call(e,t)}function ie(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?n:o}return e}function re(e,t){return e&&e.modifiers&&e.modifiers[t]}function ae(e){return e instanceof Element}function se(e,t){return"function"==typeof e?e.apply(null,t):e}function ce(e,t){e.filter((function(e){return"flip"===e.name}))[0].enabled=t}function le(){return document.createElement("div")}function de(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function pe(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ue(e,t){var n=R({},t,{content:se(t.content,[e])},t.ignoreAttributes?{}:function(e){return ne.reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e));return n.animateFill&&(n.arrow=!1),(n.arrow||U)&&(n.animateFill=!1),n}function he(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function fe(e,t,n){e&&e!==t&&e.apply(null,n)}function me(e){return[].slice.call(e)}function ve(e,t){return e.indexOf(t)>-1}function ge(e,t){e.innerHTML=ae(t)?t.innerHTML:t}function be(e,t){if(ae(t.content))ge(e,""),e.appendChild(t.content);else if("function"!=typeof t.content){e[t.allowHTML?"innerHTML":"textContent"]=t.content}}function ye(e){return{tooltip:e.querySelector(".tippy-tooltip"),backdrop:e.querySelector(".tippy-backdrop"),content:e.querySelector(".tippy-content"),arrow:e.querySelector(".tippy-arrow")||e.querySelector(".tippy-svg-arrow")}}function xe(e){e.setAttribute("data-inertia","")}function we(e){var t=le();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",ae(e)?t.appendChild(e):ge(t,"round"===e?'<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>':e)),t}function _e(e){var t=le();return t.className="tippy-backdrop",t.setAttribute("data-state",e?"visible":"hidden"),t}function Ee(e){e.setAttribute("data-interactive","")}function ke(e,t,n){var o=U&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](o,n)}function Ce(e){return e.split("-")[0]}function Te(e,t,n){n.split(" ").forEach((function(n){n&&e.classList[t](n+"-theme")}))}function Oe(e,t){var n=le();n.className="tippy-popper",n.style.position="absolute",n.style.top="0",n.style.left="0";var o=le();o.className="tippy-tooltip",o.id="tippy-"+e,o.setAttribute("data-state","hidden"),o.setAttribute("tabindex","-1"),Te(o,"add",t.theme);var i=le();return i.className="tippy-content",i.setAttribute("data-state","hidden"),t.interactive&&Ee(o),t.arrow&&(o.setAttribute("data-arrow",""),o.appendChild(we(t.arrow))),t.animateFill&&(o.appendChild(_e(!1)),o.setAttribute("data-animatefill","")),t.inertia&&xe(o),be(i,t),o.appendChild(i),n.appendChild(o),Se(n,t,t,!1),n}function Se(e,t,n,o){var i=ye(e),r=i.tooltip,a=i.content,s=i.backdrop,c=i.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&&be(a,n),!t.animateFill&&n.animateFill?(r.appendChild(_e(o)),r.setAttribute("data-animatefill","")):t.animateFill&&!n.animateFill&&(r.removeChild(s),r.removeAttribute("data-animatefill")),!t.arrow&&n.arrow?(r.appendChild(we(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(we(n.arrow))),!t.interactive&&n.interactive?Ee(r):t.interactive&&!n.interactive&&function(e){e.removeAttribute("data-interactive")}(r),!t.inertia&&n.inertia?xe(r):t.inertia&&!n.inertia&&function(e){e.removeAttribute("data-inertia")}(r),t.theme!==n.theme&&(Te(r,"remove",t.theme),Te(r,"add",n.theme))}for(
8
+ */function q(){return(q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var U="undefined"!=typeof window&&"undefined"!=typeof document,V=U?navigator.userAgent:"",W=/MSIE |Trident\//.test(V),Y=/UCBrowser\//.test(V),X=U&&/iPhone|iPad|iPod/.test(navigator.platform),G={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},Z=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],J={passive:!0},Q={isTouch:!1},K=0;function $(){Q.isTouch||(Q.isTouch=!0,X&&document.body.classList.add("tippy-iOS"),window.performance&&document.addEventListener("mousemove",ee))}function ee(){var e=performance.now();e-K<20&&(Q.isTouch=!1,document.removeEventListener("mousemove",ee),X||document.body.classList.remove("tippy-iOS")),K=e}function te(){var e=document.activeElement,t=e._tippy;e&&e.blur&&t&&!t.state.isVisible&&e.blur()}var ne=Object.keys(G);function oe(e,t){return{}.hasOwnProperty.call(e,t)}function ie(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?n:o}return e}function re(e,t){return e&&e.modifiers&&e.modifiers[t]}function ae(e){return e instanceof Element}function se(e,t){return"function"==typeof e?e.apply(null,t):e}function ce(e,t){e.filter((function(e){return"flip"===e.name}))[0].enabled=t}function le(){return document.createElement("div")}function de(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function pe(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ue(e,t){var n=q({},t,{content:se(t.content,[e])},t.ignoreAttributes?{}:function(e){return ne.reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e));return n.animateFill&&(n.arrow=!1),(n.arrow||Y)&&(n.animateFill=!1),n}function he(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function fe(e,t,n){e&&e!==t&&e.apply(null,n)}function me(e){return[].slice.call(e)}function ve(e,t){return e.indexOf(t)>-1}function ge(e,t){e.innerHTML=ae(t)?t.innerHTML:t}function be(e,t){if(ae(t.content))ge(e,""),e.appendChild(t.content);else if("function"!=typeof t.content){e[t.allowHTML?"innerHTML":"textContent"]=t.content}}function ye(e){return{tooltip:e.querySelector(".tippy-tooltip"),backdrop:e.querySelector(".tippy-backdrop"),content:e.querySelector(".tippy-content"),arrow:e.querySelector(".tippy-arrow")||e.querySelector(".tippy-svg-arrow")}}function xe(e){e.setAttribute("data-inertia","")}function we(e){var t=le();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",ae(e)?t.appendChild(e):ge(t,"round"===e?'<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>':e)),t}function _e(e){var t=le();return t.className="tippy-backdrop",t.setAttribute("data-state",e?"visible":"hidden"),t}function Ee(e){e.setAttribute("data-interactive","")}function ke(e,t,n){var o=Y&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](o,n)}function Ce(e){return e.split("-")[0]}function Te(e,t,n){n.split(" ").forEach((function(n){n&&e.classList[t](n+"-theme")}))}function Oe(e,t){var n=le();n.className="tippy-popper",n.style.position="absolute",n.style.top="0",n.style.left="0";var o=le();o.className="tippy-tooltip",o.id="tippy-"+e,o.setAttribute("data-state","hidden"),o.setAttribute("tabindex","-1"),Te(o,"add",t.theme);var i=le();return i.className="tippy-content",i.setAttribute("data-state","hidden"),t.interactive&&Ee(o),t.arrow&&(o.setAttribute("data-arrow",""),o.appendChild(we(t.arrow))),t.animateFill&&(o.appendChild(_e(!1)),o.setAttribute("data-animatefill","")),t.inertia&&xe(o),be(i,t),o.appendChild(i),n.appendChild(o),Se(n,t,t,!1),n}function Se(e,t,n,o){var i=ye(e),r=i.tooltip,a=i.content,s=i.backdrop,c=i.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&&be(a,n),!t.animateFill&&n.animateFill?(r.appendChild(_e(o)),r.setAttribute("data-animatefill","")):t.animateFill&&!n.animateFill&&(r.removeChild(s),r.removeAttribute("data-animatefill")),!t.arrow&&n.arrow?(r.appendChild(we(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(we(n.arrow))),!t.interactive&&n.interactive?Ee(r):t.interactive&&!n.interactive&&function(e){e.removeAttribute("data-interactive")}(r),!t.inertia&&n.inertia?xe(r):t.inertia&&!n.inertia&&function(e){e.removeAttribute("data-inertia")}(r),t.theme!==n.theme&&(Te(r,"remove",t.theme),Te(r,"add",n.theme))}for(
9
9
  /**!
10
10
  * @fileOverview Kickass library to create and place poppers near their reference elements.
11
11
  * @version 1.15.0
@@ -30,15 +30,15 @@ function T(e){return(T="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?
30
30
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
31
  * SOFTWARE.
32
32
  */
33
- var Ae="undefined"!=typeof window&&"undefined"!=typeof document,Le=["Edge","Trident","Firefox"],Ne=0,De=0;De<Le.length;De+=1)if(Ae&&navigator.userAgent.indexOf(Le[De])>=0){Ne=1;break}var Me=Ae&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Ne))}};function Ie(e){return e&&"[object Function]"==={}.toString.call(e)}function Be(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function je(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function ze(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Be(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?e:ze(je(e))}var Fe=Ae&&!(!window.MSInputMethodContext||!document.documentMode),He=Ae&&/MSIE 10/.test(navigator.userAgent);function Pe(e){return 11===e?Fe:10===e?He:Fe||He}function qe(e){if(!e)return document.documentElement;for(var t=Pe(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Be(n,"position")?qe(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Re(e){return null!==e.parentNode?Re(e.parentNode):e}function We(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,i=n?t:e,r=document.createRange();r.setStart(o,0),r.setEnd(i,0);var a,s,c=r.commonAncestorContainer;if(e!==c&&t!==c||o.contains(i))return"BODY"===(s=(a=c).nodeName)||"HTML"!==s&&qe(a.firstElementChild)!==a?qe(c):c;var l=Re(e);return l.host?We(l.host,t):We(e,Re(t).host)}function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[n]}return e[n]}function Ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Ye(t,"top"),i=Ye(t,"left"),r=n?-1:1;return e.top+=o*r,e.bottom+=o*r,e.left+=i*r,e.right+=i*r,e}function Ue(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+o+"Width"],10)}function Xe(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Pe(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function Je(e){var t=e.body,n=e.documentElement,o=Pe(10)&&getComputedStyle(n);return{height:Xe("Height",t,n,o),width:Xe("Width",t,n,o)}}var Ke=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ge=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),Ze=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function $e(e){return Qe({},e,{right:e.left+e.width,bottom:e.top+e.height})}function et(e){var t={};try{if(Pe(10)){t=e.getBoundingClientRect();var n=Ye(e,"top"),o=Ye(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?Je(e.ownerDocument):{},a=r.width||e.clientWidth||i.right-i.left,s=r.height||e.clientHeight||i.bottom-i.top,c=e.offsetWidth-a,l=e.offsetHeight-s;if(c||l){var d=Be(e);c-=Ue(d,"x"),l-=Ue(d,"y"),i.width-=c,i.height-=l}return $e(i)}function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Pe(10),i="HTML"===t.nodeName,r=et(e),a=et(t),s=ze(e),c=Be(t),l=parseFloat(c.borderTopWidth,10),d=parseFloat(c.borderLeftWidth,10);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=$e({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,!o&&i){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(o&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(p=Ve(p,t)),p}function nt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=tt(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Ye(n),s=t?0:Ye(n,"left"),c={top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:r};return $e(c)}function ot(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Be(e,"position"))return!0;var n=je(e);return!!n&&ot(n)}function it(e){if(!e||!e.parentElement||Pe())return document.documentElement;for(var t=e.parentElement;t&&"none"===Be(t,"transform");)t=t.parentElement;return t||document.documentElement}function rt(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=i?it(e):We(e,t);if("viewport"===o)r=nt(a,i);else{var s=void 0;"scrollParent"===o?"BODY"===(s=ze(je(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===o?e.ownerDocument.documentElement:o;var c=tt(s,a,i);if("HTML"!==s.nodeName||ot(a))r=c;else{var l=Je(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 at(e){return e.width*e.height}function st(e,t,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=rt(n,o,r,i),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 Qe({key:e},s[e],{area:at(s[e])})})).sort((function(e,t){return t.area-e.area})),l=c.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),d=l.length>0?l[0].key:c[0].key,p=e.split("-")[1];return d+(p?"-"+p:"")}function ct(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?it(t):We(t,n);return tt(n,i,o)}function lt(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function dt(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 pt(e,t,n){n=n.split("-")[0];var o=lt(e),i={width:o.width,height:o.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",c=r?"height":"width",l=r?"width":"height";return i[a]=t[a]+t[c]/2-o[c]/2,i[s]=n===s?t[s]-o[l]:t[dt(s)],i}function ut(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function ht(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=ut(e,(function(e){return e[t]===n}));return e.indexOf(o)}(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&&Ie(n)&&(t.offsets.popper=$e(t.offsets.popper),t.offsets.reference=$e(t.offsets.reference),t=n(t,e))})),t}function ft(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=ct(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=st(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=pt(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=ht(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function mt(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function vt(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var i=t[o],r=i?""+i+n:e;if(void 0!==document.body.style[r])return r}return null}function gt(){return this.state.isDestroyed=!0,mt(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[vt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function bt(e){var t=e.ownerDocument;return t?t.defaultView:window}function yt(e,t,n,o){n.updateBound=o,bt(e).addEventListener("resize",n.updateBound,{passive:!0});var i=ze(e);return function e(t,n,o,i){var r="BODY"===t.nodeName,a=r?t.ownerDocument.defaultView:t;a.addEventListener(n,o,{passive:!0}),r||e(ze(a.parentNode),n,o,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function xt(){this.state.eventsEnabled||(this.state=yt(this.reference,this.options,this.state,this.scheduleUpdate))}function wt(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,bt(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 _t(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Et(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&_t(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var kt=Ae&&/Firefox/i.test(navigator.userAgent);function Ct(e,t,n){var o=ut(e,(function(e){return e.name===t})),i=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!i){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 i}var Tt=["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"],Ot=Tt.slice(3);function St(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ot.indexOf(e),o=Ot.slice(n+1).concat(Ot.slice(0,n));return t?o.reverse():o}var At="flip",Lt="clockwise",Nt="counterclockwise";function Dt(e,t,n,o){var i=[0,0],r=-1!==["right","left"].indexOf(o),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(ut(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,o){var i=(1===o?!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 function(e,t,n,o){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],a=i[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=o}return $e(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}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){_t(n)&&(i[t]+=n*("-"===e[o-1]?-1:1))}))})),i}var Mt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var i=e.offsets,r=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",d={start:Ze({},c,r[c]),end:Ze({},c,r[c]+r[l]-a[l])};e.offsets.popper=Qe({},a,d[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,i=e.offsets,r=i.popper,a=i.reference,s=o.split("-")[0],c=void 0;return c=_t(+n)?[+n,0]:Dt(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},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||qe(e.instance.popper);e.instance.reference===n&&(n=qe(n));var o=vt("transform"),i=e.instance.popper.style,r=i.top,a=i.left,s=i[o];i.top="",i.left="",i[o]="";var c=rt(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=r,i.left=a,i[o]=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])),Ze({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=d[n];return d[e]>c[e]&&!t.escapeWithReference&&(o=Math.min(d[n],c[e]-("right"===e?d.width:d.height))),Ze({},n,o)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=Qe({},d,p[t](e))})),e.offsets.popper=d,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,i=e.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<r(o[c])&&(e.offsets.popper[c]=r(o[c])-n[l]),n[c]>r(o[s])&&(e.offsets.popper[c]=r(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Ct(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],r=e.offsets,a=r.popper,s=r.reference,c=-1!==["left","right"].indexOf(i),l=c?"height":"width",d=c?"Top":"Left",p=d.toLowerCase(),u=c?"left":"top",h=c?"bottom":"right",f=lt(o)[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=$e(e.offsets.popper);var m=s[p]+s[l]/2-f/2,v=Be(e.instance.popper),g=parseFloat(v["margin"+d],10),b=parseFloat(v["border"+d+"Width"],10),y=m-e.offsets.popper[p]-g-b;return y=Math.max(Math.min(a[l]-f,y),0),e.arrowElement=o,e.offsets.arrow=(Ze(n={},p,Math.round(y)),Ze(n,u,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(mt(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=rt(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],i=dt(o),r=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case At:a=[o,i];break;case Lt:a=St(o);break;case Nt:a=St(o,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(o!==s||a.length===c+1)return e;o=e.placement.split("-")[0],i=dt(o);var l=e.offsets.popper,d=e.offsets.reference,p=Math.floor,u="left"===o&&p(l.right)>p(d.left)||"right"===o&&p(l.left)<p(d.right)||"top"===o&&p(l.bottom)>p(d.top)||"bottom"===o&&p(l.top)<p(d.bottom),h=p(l.left)<p(n.left),f=p(l.right)>p(n.right),m=p(l.top)<p(n.top),v=p(l.bottom)>p(n.bottom),g="left"===o&&h||"right"===o&&f||"top"===o&&m||"bottom"===o&&v,b=-1!==["top","bottom"].indexOf(o),y=!!t.flipVariations&&(b&&"start"===r&&h||b&&"end"===r&&f||!b&&"start"===r&&m||!b&&"end"===r&&v),x=!!t.flipVariationsByContent&&(b&&"start"===r&&f||b&&"end"===r&&h||!b&&"start"===r&&v||!b&&"end"===r&&m),w=y||x;(u||g||w)&&(e.flipped=!0,(u||g)&&(o=a[c+1]),w&&(r=function(e){return"end"===e?"start":"start"===e?"end":e}(r)),e.placement=o+(r?"-"+r:""),e.offsets.popper=Qe({},e.offsets.popper,pt(e.instance.popper,e.offsets.reference,e.placement)),e=ht(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,i=o.popper,r=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=r[n]-(s?i[a?"width":"height"]:0),e.placement=dt(t),e.offsets.popper=$e(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Ct(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=ut(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}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,i=e.offsets.popper,r=ut(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=qe(e.instance.popper),c=et(s),l={position:i.position},d=function(e,t){var n=e.offsets,o=n.popper,i=n.reference,r=Math.round,a=Math.floor,s=function(e){return e},c=r(i.width),l=r(o.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?o.left-1:o.left),top:h(o.top),bottom:h(o.bottom),right:u(o.right)}}(e,window.devicePixelRatio<2||!kt),p="bottom"===n?"top":"bottom",u="right"===o?"left":"right",h=vt("transform"),f=void 0,m=void 0;if(m="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, "+m+"px, 0)",l[p]=0,l[u]=0,l.willChange="transform";else{var v="bottom"===p?-1:1,g="right"===u?-1:1;l[p]=m*v,l[u]=f*g,l.willChange=p+", "+u}var b={"x-placement":e.placement};return e.attributes=Qe({},b,e.attributes),e.styles=Qe({},l,e.styles),e.arrowStyles=Qe({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Et(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Et(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,i){var r=ct(i,t,e,n.positionFixed),a=st(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Et(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},It=function(){function e(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ke(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=Me(this.update.bind(this)),this.options=Qe({},e.Defaults,i),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(Qe({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){o.options.modifiers[t]=Qe({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Qe({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Ie(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return Ge(e,[{key:"update",value:function(){return ft.call(this)}},{key:"destroy",value:function(){return gt.call(this)}},{key:"enableEventListeners",value:function(){return xt.call(this)}},{key:"disableEventListeners",value:function(){return wt.call(this)}}]),e}();It.Utils=("undefined"!=typeof window?window:global).PopperUtils,It.placements=Tt,It.Defaults=Mt;
33
+ var Ae="undefined"!=typeof window&&"undefined"!=typeof document,Le=["Edge","Trident","Firefox"],Ne=0,Me=0;Me<Le.length;Me+=1)if(Ae&&navigator.userAgent.indexOf(Le[Me])>=0){Ne=1;break}var De=Ae&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Ne))}};function Ie(e){return e&&"[object Function]"==={}.toString.call(e)}function Be(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function He(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Fe(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Be(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?e:Fe(He(e))}var ze=Ae&&!(!window.MSInputMethodContext||!document.documentMode),Pe=Ae&&/MSIE 10/.test(navigator.userAgent);function je(e){return 11===e?ze:10===e?Pe:ze||Pe}function Re(e){if(!e)return document.documentElement;for(var t=je(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Be(n,"position")?Re(n):n:e?e.ownerDocument.documentElement:document.documentElement}function qe(e){return null!==e.parentNode?qe(e.parentNode):e}function Ue(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,i=n?t:e,r=document.createRange();r.setStart(o,0),r.setEnd(i,0);var a,s,c=r.commonAncestorContainer;if(e!==c&&t!==c||o.contains(i))return"BODY"===(s=(a=c).nodeName)||"HTML"!==s&&Re(a.firstElementChild)!==a?Re(c):c;var l=qe(e);return l.host?Ue(l.host,t):Ue(e,qe(t).host)}function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[n]}return e[n]}function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Ve(t,"top"),i=Ve(t,"left"),r=n?-1:1;return e.top+=o*r,e.bottom+=o*r,e.left+=i*r,e.right+=i*r,e}function Ye(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+o+"Width"],10)}function Xe(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],je(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function Ge(e){var t=e.body,n=e.documentElement,o=je(10)&&getComputedStyle(n);return{height:Xe("Height",t,n,o),width:Xe("Width",t,n,o)}}var Ze=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Je=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),Qe=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function $e(e){return Ke({},e,{right:e.left+e.width,bottom:e.top+e.height})}function et(e){var t={};try{if(je(10)){t=e.getBoundingClientRect();var n=Ve(e,"top"),o=Ve(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?Ge(e.ownerDocument):{},a=r.width||e.clientWidth||i.right-i.left,s=r.height||e.clientHeight||i.bottom-i.top,c=e.offsetWidth-a,l=e.offsetHeight-s;if(c||l){var d=Be(e);c-=Ye(d,"x"),l-=Ye(d,"y"),i.width-=c,i.height-=l}return $e(i)}function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=je(10),i="HTML"===t.nodeName,r=et(e),a=et(t),s=Fe(e),c=Be(t),l=parseFloat(c.borderTopWidth,10),d=parseFloat(c.borderLeftWidth,10);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=$e({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,!o&&i){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(o&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(p=We(p,t)),p}function nt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=tt(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Ve(n),s=t?0:Ve(n,"left"),c={top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:r};return $e(c)}function ot(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Be(e,"position"))return!0;var n=He(e);return!!n&&ot(n)}function it(e){if(!e||!e.parentElement||je())return document.documentElement;for(var t=e.parentElement;t&&"none"===Be(t,"transform");)t=t.parentElement;return t||document.documentElement}function rt(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=i?it(e):Ue(e,t);if("viewport"===o)r=nt(a,i);else{var s=void 0;"scrollParent"===o?"BODY"===(s=Fe(He(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===o?e.ownerDocument.documentElement:o;var c=tt(s,a,i);if("HTML"!==s.nodeName||ot(a))r=c;else{var l=Ge(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 at(e){return e.width*e.height}function st(e,t,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=rt(n,o,r,i),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 Ke({key:e},s[e],{area:at(s[e])})})).sort((function(e,t){return t.area-e.area})),l=c.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),d=l.length>0?l[0].key:c[0].key,p=e.split("-")[1];return d+(p?"-"+p:"")}function ct(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?it(t):Ue(t,n);return tt(n,i,o)}function lt(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function dt(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 pt(e,t,n){n=n.split("-")[0];var o=lt(e),i={width:o.width,height:o.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",c=r?"height":"width",l=r?"width":"height";return i[a]=t[a]+t[c]/2-o[c]/2,i[s]=n===s?t[s]-o[l]:t[dt(s)],i}function ut(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function ht(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=ut(e,(function(e){return e[t]===n}));return e.indexOf(o)}(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&&Ie(n)&&(t.offsets.popper=$e(t.offsets.popper),t.offsets.reference=$e(t.offsets.reference),t=n(t,e))})),t}function ft(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=ct(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=st(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=pt(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=ht(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function mt(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function vt(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var i=t[o],r=i?""+i+n:e;if(void 0!==document.body.style[r])return r}return null}function gt(){return this.state.isDestroyed=!0,mt(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[vt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function bt(e){var t=e.ownerDocument;return t?t.defaultView:window}function yt(e,t,n,o){n.updateBound=o,bt(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Fe(e);return function e(t,n,o,i){var r="BODY"===t.nodeName,a=r?t.ownerDocument.defaultView:t;a.addEventListener(n,o,{passive:!0}),r||e(Fe(a.parentNode),n,o,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function xt(){this.state.eventsEnabled||(this.state=yt(this.reference,this.options,this.state,this.scheduleUpdate))}function wt(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,bt(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 _t(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Et(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&_t(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var kt=Ae&&/Firefox/i.test(navigator.userAgent);function Ct(e,t,n){var o=ut(e,(function(e){return e.name===t})),i=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!i){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 i}var Tt=["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"],Ot=Tt.slice(3);function St(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ot.indexOf(e),o=Ot.slice(n+1).concat(Ot.slice(0,n));return t?o.reverse():o}var At="flip",Lt="clockwise",Nt="counterclockwise";function Mt(e,t,n,o){var i=[0,0],r=-1!==["right","left"].indexOf(o),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(ut(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,o){var i=(1===o?!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 function(e,t,n,o){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],a=i[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=o}return $e(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}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){_t(n)&&(i[t]+=n*("-"===e[o-1]?-1:1))}))})),i}var Dt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var i=e.offsets,r=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",d={start:Qe({},c,r[c]),end:Qe({},c,r[c]+r[l]-a[l])};e.offsets.popper=Ke({},a,d[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,i=e.offsets,r=i.popper,a=i.reference,s=o.split("-")[0],c=void 0;return c=_t(+n)?[+n,0]:Mt(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},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Re(e.instance.popper);e.instance.reference===n&&(n=Re(n));var o=vt("transform"),i=e.instance.popper.style,r=i.top,a=i.left,s=i[o];i.top="",i.left="",i[o]="";var c=rt(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=r,i.left=a,i[o]=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])),Qe({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=d[n];return d[e]>c[e]&&!t.escapeWithReference&&(o=Math.min(d[n],c[e]-("right"===e?d.width:d.height))),Qe({},n,o)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=Ke({},d,p[t](e))})),e.offsets.popper=d,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,i=e.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<r(o[c])&&(e.offsets.popper[c]=r(o[c])-n[l]),n[c]>r(o[s])&&(e.offsets.popper[c]=r(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Ct(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],r=e.offsets,a=r.popper,s=r.reference,c=-1!==["left","right"].indexOf(i),l=c?"height":"width",d=c?"Top":"Left",p=d.toLowerCase(),u=c?"left":"top",h=c?"bottom":"right",f=lt(o)[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=$e(e.offsets.popper);var m=s[p]+s[l]/2-f/2,v=Be(e.instance.popper),g=parseFloat(v["margin"+d],10),b=parseFloat(v["border"+d+"Width"],10),y=m-e.offsets.popper[p]-g-b;return y=Math.max(Math.min(a[l]-f,y),0),e.arrowElement=o,e.offsets.arrow=(Qe(n={},p,Math.round(y)),Qe(n,u,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(mt(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=rt(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],i=dt(o),r=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case At:a=[o,i];break;case Lt:a=St(o);break;case Nt:a=St(o,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(o!==s||a.length===c+1)return e;o=e.placement.split("-")[0],i=dt(o);var l=e.offsets.popper,d=e.offsets.reference,p=Math.floor,u="left"===o&&p(l.right)>p(d.left)||"right"===o&&p(l.left)<p(d.right)||"top"===o&&p(l.bottom)>p(d.top)||"bottom"===o&&p(l.top)<p(d.bottom),h=p(l.left)<p(n.left),f=p(l.right)>p(n.right),m=p(l.top)<p(n.top),v=p(l.bottom)>p(n.bottom),g="left"===o&&h||"right"===o&&f||"top"===o&&m||"bottom"===o&&v,b=-1!==["top","bottom"].indexOf(o),y=!!t.flipVariations&&(b&&"start"===r&&h||b&&"end"===r&&f||!b&&"start"===r&&m||!b&&"end"===r&&v),x=!!t.flipVariationsByContent&&(b&&"start"===r&&f||b&&"end"===r&&h||!b&&"start"===r&&v||!b&&"end"===r&&m),w=y||x;(u||g||w)&&(e.flipped=!0,(u||g)&&(o=a[c+1]),w&&(r=function(e){return"end"===e?"start":"start"===e?"end":e}(r)),e.placement=o+(r?"-"+r:""),e.offsets.popper=Ke({},e.offsets.popper,pt(e.instance.popper,e.offsets.reference,e.placement)),e=ht(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,i=o.popper,r=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=r[n]-(s?i[a?"width":"height"]:0),e.placement=dt(t),e.offsets.popper=$e(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Ct(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=ut(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}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,i=e.offsets.popper,r=ut(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=Re(e.instance.popper),c=et(s),l={position:i.position},d=function(e,t){var n=e.offsets,o=n.popper,i=n.reference,r=Math.round,a=Math.floor,s=function(e){return e},c=r(i.width),l=r(o.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?o.left-1:o.left),top:h(o.top),bottom:h(o.bottom),right:u(o.right)}}(e,window.devicePixelRatio<2||!kt),p="bottom"===n?"top":"bottom",u="right"===o?"left":"right",h=vt("transform"),f=void 0,m=void 0;if(m="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, "+m+"px, 0)",l[p]=0,l[u]=0,l.willChange="transform";else{var v="bottom"===p?-1:1,g="right"===u?-1:1;l[p]=m*v,l[u]=f*g,l.willChange=p+", "+u}var b={"x-placement":e.placement};return e.attributes=Ke({},b,e.attributes),e.styles=Ke({},l,e.styles),e.arrowStyles=Ke({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Et(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Et(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,i){var r=ct(i,t,e,n.positionFixed),a=st(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Et(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},It=function(){function e(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=De(this.update.bind(this)),this.options=Ke({},e.Defaults,i),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(Ke({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){o.options.modifiers[t]=Ke({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Ke({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Ie(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return Je(e,[{key:"update",value:function(){return ft.call(this)}},{key:"destroy",value:function(){return gt.call(this)}},{key:"enableEventListeners",value:function(){return xt.call(this)}},{key:"disableEventListeners",value:function(){return wt.call(this)}}]),e}();It.Utils=("undefined"!=typeof window?window:global).PopperUtils,It.placements=Tt,It.Defaults=Dt;
34
34
  /**!
35
35
  * tippy.js v5.0.0-alpha.2
36
36
  * (c) 2017-2019 atomiks
37
37
  * MIT License
38
38
  */
39
- var Bt=1,jt=[];function zt(e,t){var n,o,i,r,a=ue(e,t);if(!a.multiple&&e._tippy)return null;var s,c,l,d=!1,p=!1,u=!1,h=[],f=he(B,a.interactiveDebounce),m=Bt++,v=Oe(m,a),g=ye(v),b=g.tooltip,y=g.content,x={currentPlacement:a.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:m,reference:e,popper:v,popperChildren:g,popperInstance:null,props:a,state:x,clearDelayTimeouts:function(){clearTimeout(o),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){if(w.state.isDestroyed)return;M();var n=w.props,o=ue(e,R({},w.props,t,{ignoreAttributes:!0}));o.ignoreAttributes=oe(t,"ignoreAttributes")?t.ignoreAttributes||!1:n.ignoreAttributes,w.props=o,D(),T(),f=he(B,o.interactiveDebounce),Se(v,n,o,w.state.isVisible),w.popperChildren=ye(v),w.popperInstance&&(K.some((function(e){return oe(t,e)&&t[e]!==n[e]}))?(w.popperInstance.destroy(),H(),w.state.isVisible&&w.popperInstance.enableEventListeners()):w.popperInstance.update())},setContent:function(e){w.setProps({content:e})},show:function(t,n){void 0===t&&(t=ie(w.props.duration,0,J.duration[1]));void 0===n&&(n=!0);var o=w.state.isVisible,i=w.state.isDestroyed,r=!w.state.isEnabled,a=Z.isTouch&&!w.props.touch;if(o||i||r||a)return;if(C().hasAttribute("disabled"))return;if(!1===w.props.onShow(w))return;S(),v.style.visibility="visible",w.state.isVisible=!0;var s=k();de(n?s.concat(v):s,0),c=function(){w.state.isVisible&&(w.popperInstance.update(),w.props.onMount(w),w.state.isMounted=!0,y.style.transitionDelay=w.popperChildren.backdrop?Math.round(t/12)+"ms":"",w.props.sticky&&(de([v],V?0:w.props.updateDuration),function e(){w.popperInstance.scheduleUpdate(),w.state.isMounted?requestAnimationFrame(e):de([v],0)}()),de([v],w.props.updateDuration),de(s,t),pe(s,"visible"),function(e,t){L(e,t)}(t,(function(){w.props.aria&&C().setAttribute("aria-"+w.props.aria,b.id),w.props.onShown(w),w.state.isShown=!0})))},function(){p=!1;var t=w.props.appendTo,n="parent"===t?e.parentNode:se(t,[e]);n.contains(v)||n.appendChild(v);w.popperInstance?(ce(w.popperInstance.modifiers,w.props.flip),w.popperInstance.enableEventListeners(),w.popperInstance.scheduleUpdate()):(H(),w.popperInstance.enableEventListeners())}()},hide:function(e){void 0===e&&(e=ie(w.props.duration,1,J.duration[1]));var t=!w.state.isVisible&&!d,n=w.state.isDestroyed,o=!w.state.isEnabled&&!d;if(t||n||o)return;if(!1===w.props.onHide(w)&&!d)return;A(),v.style.visibility="hidden",w.state.isVisible=!1,w.state.isShown=!1;var i=k();de(i,e),pe(i,"hidden"),function(e,t){L(e,(function(){!w.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()}))}(e,(function(){w.props.aria&&C().removeAttribute("aria-"+w.props.aria),w.popperInstance.disableEventListeners(),w.popperInstance.options.placement=s,v.parentNode.removeChild(v),w.props.onHidden(w),w.state.isMounted=!1}))},enable:function(){w.state.isEnabled=!0},disable:function(){w.state.isEnabled=!1},destroy:function(){if(w.state.isDestroyed)return;d=!0,w.hide(0),M(),delete e._tippy,w.popperInstance&&w.popperInstance.destroy();d=!1,w.state.isDestroyed=!0}};return e._tippy=w,v._tippy=w,D(),a.lazy||H(),a.showOnCreate&&q(),v.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&"mouseenter"===n&&w.clearDelayTimeouts()})),v.addEventListener("mouseleave",(function(){w.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",f)})),a.onCreate(w),w;function _(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===_()[0]}function k(){return[b,y,w.popperChildren.backdrop]}function C(){return w.props.triggerTarget||e}function T(){document.body.removeEventListener("mouseleave",W),document.removeEventListener("mousemove",f),jt=jt.filter((function(e){return e!==f}))}function O(e){if(!w.props.interactive||!v.contains(e.target)){if(C().contains(e.target)){if(Z.isTouch)return;if(w.state.isVisible&&ve(w.props.trigger,"click"))return}!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),u=!0,setTimeout((function(){u=!1})),w.state.isMounted||A())}}function S(){document.addEventListener("mousedown",O,!0)}function A(){document.removeEventListener("mousedown",O,!0)}function L(e,t){function n(e){e.target===b&&(ke(b,"remove",n),t())}if(0===e)return t();ke(b,"remove",l),ke(b,"add",n),l=n}function N(e,t,n){void 0===n&&(n=!1),C().addEventListener(e,t,n),h.push({eventType:e,handler:t,options:n})}function D(){E()&&(N("touchstart",I,G),N("touchend",j,G)),ve(w.props.trigger,"click")||N("click",(function(){Z.isTouch||!0!==w.props.hideOnClick||w.hide()})),w.props.trigger.trim().split(" ").forEach((function(e){if("manual"!==e)switch(N(e,I),e){case"mouseenter":N("mouseleave",j);break;case"focus":N(V?"focusout":"blur",z)}}))}function M(){h.forEach((function(e){var t=e.eventType,n=e.handler,o=e.options;C().removeEventListener(t,n,o)})),h=[]}function I(e){if(!u&&w.state.isEnabled&&!F(e))if(w.state.isVisible||(n=e.type,e instanceof MouseEvent&&jt.forEach((function(t){return t(e)}))),"click"===e.type&&!1!==w.props.hideOnClick&&w.state.isVisible)W(e);else{var t=_(),i=t[0],r=t[1];Z.isTouch&&"hold"===i&&r?o=setTimeout((function(){q(e)}),r):q(e)}}function B(t){(function(e,t){for(;e;){if(t(e))return e;e=e.parentElement}return null})(t.target,(function(t){return t===e||t===v}))||function(e,t,n,o){if(!e)return!0;var i=n.clientX,r=n.clientY,a=o.interactiveBorder,s=o.distance,c=t.top-r>("top"===e?a+s:a),l=r-t.bottom>("bottom"===e?a+s:a),d=t.left-i>("left"===e?a+s:a),p=i-t.right>("right"===e?a+s:a);return c||l||d||p}(Ce(w.state.currentPlacement),v.getBoundingClientRect(),t,w.props)&&(T(),W(t))}function j(e){if(!F(e))return w.props.interactive?(document.body.addEventListener("mouseleave",W),document.addEventListener("mousemove",f),void jt.push(f)):void W(e)}function z(e){e.target===C()&&(w.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||W(e))}function F(e){var t="ontouchstart"in window,n=ve(e.type,"touch"),o=E();return t&&Z.isTouch&&o&&!n||Z.isTouch&&!o&&n}function H(){var t=w.props,n=t.popperOptions,o=t.placement,i=w.popperChildren.arrow,r=re(n,"preventOverflow"),a=w.state.currentPlacement.split("-")[1];function c(e){w.state.currentPlacement=e.placement,w.props.flip&&!w.props.flipOnUpdate&&(e.flipped&&(w.popperInstance.options.placement=e.placement),ce(w.popperInstance.modifiers,!1)),b.setAttribute("data-placement",w.state.currentPlacement),!1!==e.attributes["x-out-of-boundaries"]?b.setAttribute("data-out-of-boundaries",""):b.removeAttribute("data-out-of-boundaries");var t=Ce(w.state.currentPlacement),n=b.style;n.top="0",n.left="0",n[ve(["top","bottom"],Ce(w.state.currentPlacement))?"top":"left"]=(ve(["bottom","right"],Ce(w.state.currentPlacement))?1:-1)*w.props.distance+"px";var o=r&&void 0!==r.padding?r.padding:5,i="number"==typeof o,a=R({top:i?o:o.top,bottom:i?o:o.bottom,left:i?o:o.left,right:i?o:o.right},!i&&o);a[t]=i?o+w.props.distance:(o[t]||0)+w.props.distance,w.popperInstance.modifiers.filter((function(e){return"preventOverflow"===e.name}))[0].padding=a}var l=R({eventsEnabled:!1,placement:s=w.props.followCursor&&a?o.replace(a,"start"===a?"end":"start"):o},n,{modifiers:R({},n?n.modifiers:{},{preventOverflow:R({boundariesElement:w.props.boundary,padding:5},r),arrow:R({element:i,enabled:!!i},re(n,"arrow")),flip:R({enabled:w.props.flip,padding:w.props.distance+5,behavior:w.props.flipBehavior},re(n,"flip")),offset:R({offset:w.props.offset},re(n,"offset"))}),onCreate:function(e){c(e),fe(n&&n.onCreate,l.onCreate,[e]),P()},onUpdate:function(e){c(e),fe(n&&n.onUpdate,l.onUpdate,[e]),P()}});w.popperInstance=new It(e,v,l)}function P(){!p&&c&&(p=!0,function(e){e.offsetHeight}(v),c())}function q(e){if(w.clearDelayTimeouts(),w.state.isScheduledToShow=!0,w.popperInstance||H(),e&&w.props.onTrigger(w,e),w.props.wait)return w.props.wait(w,e);S();var t=ie(w.props.delay,0,J.delay);t?o=setTimeout((function(){w.show()}),t):w.show()}function W(e){if(w.clearDelayTimeouts(),w.props.onUntrigger(w,e),w.state.isVisible){w.state.isScheduledToShow=!1;var t=ie(w.props.delay,1,J.delay);t?i=setTimeout((function(){w.state.isVisible&&w.hide()}),t):r=requestAnimationFrame((function(){w.hide()}))}else A()}}function Ft(e,t){document.addEventListener("touchstart",$,R({},G,{capture:!0})),window.addEventListener("blur",te);var n=R({},J,t),o=function(e){if(ae(e))return[e];if(e instanceof NodeList)return me(e);if(Array.isArray(e))return e;try{return me(document.querySelectorAll(e))}catch(e){return[]}}(e).reduce((function(e,t){var o=t&&zt(t,n);return o&&e.push(o),e}),[]);return ae(e)?o[0]:o}Ft.version="5.0.0-alpha.2",Ft.defaultProps=J,Ft.currentInput=Z,Ft.setDefaultProps=function(e){Object.keys(e).forEach((function(t){J[t]=e[t]}))},Ft.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,o=t.duration;me(document.querySelectorAll(".tippy-popper")).forEach((function(e){var t,i=e._tippy;if(i){var r=!1;n&&(r=(t=n)&&t._tippy&&!t.classList.contains("tippy-popper")?i.reference===n:e===n.popper),r||i.hide(o)}}))},W&&setTimeout((function(){me(document.querySelectorAll("[data-tippy]")).forEach((function(e){var t=e.getAttribute("data-tippy");t&&Ft(e,{content:t})}))}))
39
+ var Bt=1,Ht=[];function Ft(e,t){var n,o,i,r,a=ue(e,t);if(!a.multiple&&e._tippy)return null;var s,c,l,d=!1,p=!1,u=!1,h=[],f=he(B,a.interactiveDebounce),m=Bt++,v=Oe(m,a),g=ye(v),b=g.tooltip,y=g.content,x={currentPlacement:a.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:m,reference:e,popper:v,popperChildren:g,popperInstance:null,props:a,state:x,clearDelayTimeouts:function(){clearTimeout(o),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){if(w.state.isDestroyed)return;D();var n=w.props,o=ue(e,q({},w.props,t,{ignoreAttributes:!0}));o.ignoreAttributes=oe(t,"ignoreAttributes")?t.ignoreAttributes||!1:n.ignoreAttributes,w.props=o,M(),T(),f=he(B,o.interactiveDebounce),Se(v,n,o,w.state.isVisible),w.popperChildren=ye(v),w.popperInstance&&(Z.some((function(e){return oe(t,e)&&t[e]!==n[e]}))?(w.popperInstance.destroy(),P(),w.state.isVisible&&w.popperInstance.enableEventListeners()):w.popperInstance.update())},setContent:function(e){w.setProps({content:e})},show:function(t,n){void 0===t&&(t=ie(w.props.duration,0,G.duration[1]));void 0===n&&(n=!0);var o=w.state.isVisible,i=w.state.isDestroyed,r=!w.state.isEnabled,a=Q.isTouch&&!w.props.touch;if(o||i||r||a)return;if(C().hasAttribute("disabled"))return;if(!1===w.props.onShow(w))return;S(),v.style.visibility="visible",w.state.isVisible=!0;var s=k();de(n?s.concat(v):s,0),c=function(){w.state.isVisible&&(w.popperInstance.update(),w.props.onMount(w),w.state.isMounted=!0,y.style.transitionDelay=w.popperChildren.backdrop?Math.round(t/12)+"ms":"",w.props.sticky&&(de([v],W?0:w.props.updateDuration),function e(){w.popperInstance.scheduleUpdate(),w.state.isMounted?requestAnimationFrame(e):de([v],0)}()),de([v],w.props.updateDuration),de(s,t),pe(s,"visible"),function(e,t){L(e,t)}(t,(function(){w.props.aria&&C().setAttribute("aria-"+w.props.aria,b.id),w.props.onShown(w),w.state.isShown=!0})))},function(){p=!1;var t=w.props.appendTo,n="parent"===t?e.parentNode:se(t,[e]);n.contains(v)||n.appendChild(v);w.popperInstance?(ce(w.popperInstance.modifiers,w.props.flip),w.popperInstance.enableEventListeners(),w.popperInstance.scheduleUpdate()):(P(),w.popperInstance.enableEventListeners())}()},hide:function(e){void 0===e&&(e=ie(w.props.duration,1,G.duration[1]));var t=!w.state.isVisible&&!d,n=w.state.isDestroyed,o=!w.state.isEnabled&&!d;if(t||n||o)return;if(!1===w.props.onHide(w)&&!d)return;A(),v.style.visibility="hidden",w.state.isVisible=!1,w.state.isShown=!1;var i=k();de(i,e),pe(i,"hidden"),function(e,t){L(e,(function(){!w.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()}))}(e,(function(){w.props.aria&&C().removeAttribute("aria-"+w.props.aria),w.popperInstance.disableEventListeners(),w.popperInstance.options.placement=s,v.parentNode.removeChild(v),w.props.onHidden(w),w.state.isMounted=!1}))},enable:function(){w.state.isEnabled=!0},disable:function(){w.state.isEnabled=!1},destroy:function(){if(w.state.isDestroyed)return;d=!0,w.hide(0),D(),delete e._tippy,w.popperInstance&&w.popperInstance.destroy();d=!1,w.state.isDestroyed=!0}};return e._tippy=w,v._tippy=w,M(),a.lazy||P(),a.showOnCreate&&R(),v.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&"mouseenter"===n&&w.clearDelayTimeouts()})),v.addEventListener("mouseleave",(function(){w.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",f)})),a.onCreate(w),w;function _(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===_()[0]}function k(){return[b,y,w.popperChildren.backdrop]}function C(){return w.props.triggerTarget||e}function T(){document.body.removeEventListener("mouseleave",U),document.removeEventListener("mousemove",f),Ht=Ht.filter((function(e){return e!==f}))}function O(e){if(!w.props.interactive||!v.contains(e.target)){if(C().contains(e.target)){if(Q.isTouch)return;if(w.state.isVisible&&ve(w.props.trigger,"click"))return}!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),u=!0,setTimeout((function(){u=!1})),w.state.isMounted||A())}}function S(){document.addEventListener("mousedown",O,!0)}function A(){document.removeEventListener("mousedown",O,!0)}function L(e,t){function n(e){e.target===b&&(ke(b,"remove",n),t())}if(0===e)return t();ke(b,"remove",l),ke(b,"add",n),l=n}function N(e,t,n){void 0===n&&(n=!1),C().addEventListener(e,t,n),h.push({eventType:e,handler:t,options:n})}function M(){E()&&(N("touchstart",I,J),N("touchend",H,J)),ve(w.props.trigger,"click")||N("click",(function(){Q.isTouch||!0!==w.props.hideOnClick||w.hide()})),w.props.trigger.trim().split(" ").forEach((function(e){if("manual"!==e)switch(N(e,I),e){case"mouseenter":N("mouseleave",H);break;case"focus":N(W?"focusout":"blur",F)}}))}function D(){h.forEach((function(e){var t=e.eventType,n=e.handler,o=e.options;C().removeEventListener(t,n,o)})),h=[]}function I(e){if(!u&&w.state.isEnabled&&!z(e))if(w.state.isVisible||(n=e.type,e instanceof MouseEvent&&Ht.forEach((function(t){return t(e)}))),"click"===e.type&&!1!==w.props.hideOnClick&&w.state.isVisible)U(e);else{var t=_(),i=t[0],r=t[1];Q.isTouch&&"hold"===i&&r?o=setTimeout((function(){R(e)}),r):R(e)}}function B(t){(function(e,t){for(;e;){if(t(e))return e;e=e.parentElement}return null})(t.target,(function(t){return t===e||t===v}))||function(e,t,n,o){if(!e)return!0;var i=n.clientX,r=n.clientY,a=o.interactiveBorder,s=o.distance,c=t.top-r>("top"===e?a+s:a),l=r-t.bottom>("bottom"===e?a+s:a),d=t.left-i>("left"===e?a+s:a),p=i-t.right>("right"===e?a+s:a);return c||l||d||p}(Ce(w.state.currentPlacement),v.getBoundingClientRect(),t,w.props)&&(T(),U(t))}function H(e){if(!z(e))return w.props.interactive?(document.body.addEventListener("mouseleave",U),document.addEventListener("mousemove",f),void Ht.push(f)):void U(e)}function F(e){e.target===C()&&(w.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||U(e))}function z(e){var t="ontouchstart"in window,n=ve(e.type,"touch"),o=E();return t&&Q.isTouch&&o&&!n||Q.isTouch&&!o&&n}function P(){var t=w.props,n=t.popperOptions,o=t.placement,i=w.popperChildren.arrow,r=re(n,"preventOverflow"),a=w.state.currentPlacement.split("-")[1];function c(e){w.state.currentPlacement=e.placement,w.props.flip&&!w.props.flipOnUpdate&&(e.flipped&&(w.popperInstance.options.placement=e.placement),ce(w.popperInstance.modifiers,!1)),b.setAttribute("data-placement",w.state.currentPlacement),!1!==e.attributes["x-out-of-boundaries"]?b.setAttribute("data-out-of-boundaries",""):b.removeAttribute("data-out-of-boundaries");var t=Ce(w.state.currentPlacement),n=b.style;n.top="0",n.left="0",n[ve(["top","bottom"],Ce(w.state.currentPlacement))?"top":"left"]=(ve(["bottom","right"],Ce(w.state.currentPlacement))?1:-1)*w.props.distance+"px";var o=r&&void 0!==r.padding?r.padding:5,i="number"==typeof o,a=q({top:i?o:o.top,bottom:i?o:o.bottom,left:i?o:o.left,right:i?o:o.right},!i&&o);a[t]=i?o+w.props.distance:(o[t]||0)+w.props.distance,w.popperInstance.modifiers.filter((function(e){return"preventOverflow"===e.name}))[0].padding=a}var l=q({eventsEnabled:!1,placement:s=w.props.followCursor&&a?o.replace(a,"start"===a?"end":"start"):o},n,{modifiers:q({},n?n.modifiers:{},{preventOverflow:q({boundariesElement:w.props.boundary,padding:5},r),arrow:q({element:i,enabled:!!i},re(n,"arrow")),flip:q({enabled:w.props.flip,padding:w.props.distance+5,behavior:w.props.flipBehavior},re(n,"flip")),offset:q({offset:w.props.offset},re(n,"offset"))}),onCreate:function(e){c(e),fe(n&&n.onCreate,l.onCreate,[e]),j()},onUpdate:function(e){c(e),fe(n&&n.onUpdate,l.onUpdate,[e]),j()}});w.popperInstance=new It(e,v,l)}function j(){!p&&c&&(p=!0,function(e){e.offsetHeight}(v),c())}function R(e){if(w.clearDelayTimeouts(),w.state.isScheduledToShow=!0,w.popperInstance||P(),e&&w.props.onTrigger(w,e),w.props.wait)return w.props.wait(w,e);S();var t=ie(w.props.delay,0,G.delay);t?o=setTimeout((function(){w.show()}),t):w.show()}function U(e){if(w.clearDelayTimeouts(),w.props.onUntrigger(w,e),w.state.isVisible){w.state.isScheduledToShow=!1;var t=ie(w.props.delay,1,G.delay);t?i=setTimeout((function(){w.state.isVisible&&w.hide()}),t):r=requestAnimationFrame((function(){w.hide()}))}else A()}}function zt(e,t){document.addEventListener("touchstart",$,q({},J,{capture:!0})),window.addEventListener("blur",te);var n=q({},G,t),o=function(e){if(ae(e))return[e];if(e instanceof NodeList)return me(e);if(Array.isArray(e))return e;try{return me(document.querySelectorAll(e))}catch(e){return[]}}(e).reduce((function(e,t){var o=t&&Ft(t,n);return o&&e.push(o),e}),[]);return ae(e)?o[0]:o}zt.version="5.0.0-alpha.2",zt.defaultProps=G,zt.currentInput=Q,zt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){G[t]=e[t]}))},zt.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,o=t.duration;me(document.querySelectorAll(".tippy-popper")).forEach((function(e){var t,i=e._tippy;if(i){var r=!1;n&&(r=(t=n)&&t._tippy&&!t.classList.contains("tippy-popper")?i.reference===n:e===n.popper),r||i.hide(o)}}))},U&&setTimeout((function(){me(document.querySelectorAll("[data-tippy]")).forEach((function(e){var t=e.getAttribute("data-tippy");t&&zt(e,{content:t})}))}))
40
40
  /**!
41
41
  * tippy.js v5.0.0-alpha.2
42
42
  * (c) 2017-2019 atomiks
43
43
  * MIT License
44
- */;!function(e){if(W){var t=document.createElement("style");t.textContent=e,t.setAttribute("data-tippy-stylesheet","");var n=document.head,o=n.querySelector("style,link");o?n.insertBefore(t,o):n.appendChild(t)}}(".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 Ht=Xt("shepherd"),Pt=Xt("shepherd-has-title"),qt={computeStyle:{enabled:!0,fn:function(e){return e.styles=N({},e.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),e}},addShepherdClass:Ht},Rt={positionFixed:!0,modifiers:{addShepherdClass:Ht}};function Wt(e){var t=document.createElement("div");return t.innerHTML=e,t.children[0]}function Yt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(e)?e.slice(t):[]}function Vt(){if(q(Ft))throw new Error("Using the attachment feature of Shepherd requires the Tippy.js library");this.tooltip&&this.tooltip.destroy();var e=this.parseAttachTo();this.tooltip=Jt.call(this,e),this.target=e.element||document.body,this.el.classList.add("shepherd-element")}function Ut(){var e=this.options.attachTo||{},t=N({},e);if(P(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 Xt(e){return{enabled:!0,fn:function(t){return t.instance.popper.classList.add(e),t}}}function Jt(e){if(!e.element)return Gt.call(this);var t=Kt.call(this,e);return Ft(e.element,t)}function Kt(e){var t={content:this.el,flipOnUpdate:!0,placement:e.on||"right"};return N(t,this.options.tippyOptions),this.options.title&&N(Rt.modifiers,{addHasTitleClass:Pt}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&N(Rt,this.options.tippyOptions.popperOptions),t.popperOptions=Rt,t}function Gt(){var e=function(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){L(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}({content:this.el,placement:"top"},this.options.tippyOptions);e.arrow=!1,e.popperOptions=e.popperOptions||{},this.options.title&&N(Rt.modifiers,{addHasTitleClass:Pt});var t=N({},Rt,e.popperOptions,{modifiers:N(qt,e.popperOptions.modifiers)});return e.popperOptions=t,Ft(document.body,e)}var Zt=function(){function e(){O(this,e)}return A(e,[{key:"on",value:function(e,t,n){var o=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];q(this.bindings)&&(this.bindings={}),q(this.bindings[e])&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:o})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){var n=this;if(q(this.bindings)||q(this.bindings[e]))return!1;q(t)?delete this.bindings[e]:this.bindings[e].forEach((function(o,i){o.handler===t&&n.bindings[e].splice(i,1)}))}},{key:"trigger",value:function(e){var t=this;if(!q(this.bindings)&&this.bindings[e]){var n=Yt(Array.prototype.slice.call(arguments));this.bindings[e].forEach((function(o,i){var r=o.ctx,a=o.handler,s=o.once,c=r||t;a.apply(c,n),s&&t.bindings[e].splice(i,1)}))}}}]),e}();function Qt(e){var t=this;return function(n){if(t.isOpen()){var o=t.el&&n.target===t.el;(!q(e)&&n.target.matches(e)||o)&&t.tour.next()}}}function $t(){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 o,i=Qt.call(this,n);try{o=document.querySelector(n)}catch(e){}if(!q(n)&&!o)return console.error("No element was found for the selector supplied to advanceOn: ".concat(n));o?(o.addEventListener(t,i),this.on("destroy",(function(){return o.removeEventListener(t,i)}))):(document.body.addEventListener(t,i,!0),this.on("destroy",(function(){return document.body.removeEventListener(t,i,!0)})))}function en(e,t){var n=this;e.events=e.events||{},q(e.action)||(e.events.click=e.action),e.events&&Object.entries(e.events).forEach((function(e){var o=z(e,2),i=o[0],r=o[1];if(P(r)){var a=r;r=function(){return n.tour.show(a)}}t.dataset.buttonEvent=!0,t.addEventListener(i,r),n.on("destroy",(function(){t.removeAttribute("data-button-event"),t.removeEventListener(i,r)}))}))}function tn(e){var t=this;e.addEventListener("click",(function(e){e.preventDefault(),t.cancel()}))}function nn(e){var t=this;e.map((function(e){t[e]=t[e].bind(t)}))}Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var on=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,o=e.HTMLElement||e.Element,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:o.prototype.scroll||c,scrollIntoView:o.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,s=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?m.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):i.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==r(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]&&(l(arguments[0])?i.scrollBy.call(e,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):m.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},o.prototype.scroll=o.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;m.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");i.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)}},o.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.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))},o.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=h(this),o=n.getBoundingClientRect(),r=this.getBoundingClientRect();n!==t.body?(m.call(this,n,n.scrollLeft+r.left-o.left,n.scrollTop+r.top-o.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function c(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!==r(e)||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"===r(e)&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(e,t){return"Y"===t?e.clientHeight+s<e.scrollHeight:"X"===t?e.clientWidth+s<e.scrollWidth:void 0}function p(t,n){var o=e.getComputedStyle(t,null)["overflow"+n];return"auto"===o||"scroll"===o}function u(e){var t=d(e,"Y")&&p(e,"Y"),n=d(e,"X")&&p(e,"X");return t||n}function h(e){for(;e!==t.body&&!1===u(e);)e=e.parentNode||e.host;return e}function f(t){var n,o,i,r,s=(a()-t.startTime)/468;r=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*r)),o=t.startX+(t.x-t.startX)*n,i=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,o,i),o===t.x&&i===t.y||e.requestAnimationFrame(f.bind(e,t))}function m(n,o,r){var s,l,d,p,u=a();n===t.body?(s=e,l=e.scrollX||e.pageXOffset,d=e.scrollY||e.pageYOffset,p=i.scroll):(s=n,l=n.scrollLeft,d=n.scrollTop,p=c),f({scrollable:s,method:p,startTime:u,startX:l,startY:d,x:o,y:r})}}}}));on.polyfill;on.polyfill();var rn,an=(rn=0,function(){return++rn}),sn=function(e){function t(e,n){var o;return O(this,t),(o=j(this,M(t).call(this,e,n))).tour=e,nn.call(B(o),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),o.setOptions(n),o.bindAdvance=$t.bind(B(o)),o.bindButtonEvents=en.bind(B(o)),o.bindCancelLink=tn.bind(B(o)),o.setupTooltip=Vt.bind(B(o)),o.parseAttachTo=Ut.bind(B(o)),j(o,B(o))}return D(t,e),A(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 o=Wt('<button class="shepherd-button '.concat(e.classes||"",'" tabindex="0">').concat(e.text,"</button>"));n.appendChild(o),t.bindButtonEvents(e,o)})),e.appendChild(n)}}},{key:"_addCancelLink",value:function(e,t){if(this.options.showCancelLink){var n=Wt('<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=Wt('<div class="shepherd-text"\n id="'.concat(t,'"\n ></div>')),o=this.options.text;H(o)&&(o=o.call(this,n)),o instanceof HTMLElement?n.appendChild(o):(P(o)&&(o=[o]),o.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"]'),o=z(n,1)[0],i=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===o&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),o.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"),o="".concat(this.id,"-label"),i=Wt('<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=o,i.setAttribute("aria-labeledby",o),r.appendChild(a)}return e.classList.add("shepherd-content"),r.classList.add("shepherd-header"),i.appendChild(e),e.appendChild(r),q(this.options.text)||(this._addContent(e,n),i.setAttribute("aria-describedby",n)),this._addButtons(e),this._addCancelLink(i,r),i}},{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),F(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(){q(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;H(this.options.scrollToHandler)?this.options.scrollToHandler(t):F(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(an()),n&&Object.entries(n).forEach((function(t){var n=z(t,2),o=n[0],i=n[1];e.on(o,i,e)}))}},{key:"show",value:function(){var e=this;if(H(this.options.beforeShowPromise)){var t=this.options.beforeShowPromise();if(!q(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}(Zt),cn="http://www.w3.org/2000/svg",ln="shepherdModalOverlayContainer",dn="shepherdModalMask",pn="shepherdModalMaskRect",un="shepherdModalMaskOpening",hn="shepherd-modal-is-visible",fn="shepherd-modal-target";function mn(){var e,t=((e=document.createElementNS(cn,"svg")).setAttributeNS(null,"id",ln),e),n=document.createElementNS(cn,"defs"),o=function(){var e=document.createElementNS(cn,"mask");return yn(e,{height:"100%",id:dn,width:"100%",x:"0",y:"0"}),e}(),i=function(){var e=document.createElementNS(cn,"rect");return yn(e,{fill:"#FFFFFF",height:"100%",id:pn,width:"100%",x:"0",y:"0"}),e}(),r=function(){var e=document.createElementNS(cn,"rect");return yn(e,{fill:"#000000",id:un}),e}(),a=function(){var e=document.createElementNS(cn,"rect");return yn(e,{height:"100%",width:"100%",x:"0",y:"0"}),e.setAttribute("mask","url(#".concat(dn,")")),e}();return o.appendChild(i),o.appendChild(r),n.appendChild(o),t.appendChild(n),t.appendChild(a),t}function vn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.getBoundingClientRect&&t instanceof SVGElement){var o=e.getBoundingClientRect(),i=o.x,r=o.y,a=o.width,s=o.height,c=o.left,l=o.top;yn(t,{x:(i||c)-n,y:(r||l)-n,width:a+2*n,height:s+2*n})}}function gn(e){e.preventDefault()}function bn(e){e.stopPropagation()}function yn(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function xn(e){var t=e.options.attachTo;if(!t)return null;var n=T(t);return"string"===n?function(e){var t=z(e.split(" "),1)[0];return document.querySelector(t)}(t):"object"===n?function(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}(t):null}function wn(){"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(ln));window.addEventListener("touchmove",gn,{passive:!1}),e&&e.addEventListener("touchmove",bn,!1)}var _n=function(){function e(t){return O(this,e),this.createModalOverlay(),this.options=t,this}return A(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(hn)}catch(e){}}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var e=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=e||mn(),this._modalOverlayOpening=this._modalOverlayElem.querySelector("#".concat(un)),this.hide(),e||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(hn),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(hn),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(e){var t,n,o,i,r,a=this._modalOverlayOpening,s=xn(e),c=e.options.modalOverlayOpeningPadding;s?(vn(s,a,c),this._onScreenChange=(n=vn.bind(this,s,a,c),o=0,function(){var e=this,t=arguments,a=function(){r=null,i||n.apply(e,t)},s=i&&!r;clearTimeout(r),r=setTimeout(a,o),s&&n.apply(e,t)}),wn.call(this)):(t=this._modalOverlayOpening)&&t instanceof SVGElement&&yn(t,{height:"0",x:"0",y:"0",width:"0"})}}]),e}(),En=!1;if("undefined"!=typeof window){var kn={get passive(){En=!0}};window.addEventListener("testPassive",null,kn),window.removeEventListener("testPassive",null,kn)}var Cn,Tn,On="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),Sn=[],An=!1,Ln=-1,Nn=function(e){return Sn.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Dn=function(e){var t=e||window.event;return!!Nn(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Mn=function(e,t){if(On){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!Sn.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Sn=[].concat(d(Sn),[n]),e.ontouchstart=function(e){1===e.targetTouches.length&&(Ln=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Ln;!Nn(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Dn(e):e.stopPropagation())}(t,e)},An||(document.addEventListener("touchmove",Dn,En?{passive:!1}:void 0),An=!0)}}else{!function(e){setTimeout((function(){if(void 0===Tn){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Tn=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===Cn&&(Cn=document.body.style.overflow,document.body.style.overflow="hidden")}))}(t);var o={targetElement:e,options:t||{}};Sn=[].concat(d(Sn),[o])}},In=function(){On?(Sn.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),An&&(document.removeEventListener("touchmove",Dn,En?{passive:!1}:void 0),An=!1),Sn=[],Ln=-1):(setTimeout((function(){void 0!==Tn&&(document.body.style.paddingRight=Tn,Tn=void 0),void 0!==Cn&&(document.body.style.overflow=Cn,Cn=void 0)})),Sn=[])},Bn={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function jn(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",gn,{passive:!1})}var zn,Fn=function(){var e=0;return function(){return++e}}(),Hn=new Zt,Pn=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};O(this,t),e=j(this,M(t).call(this,n)),nn.call(B(e),["back","cancel","complete","hide","next"]),e.options=n,e.steps=e.options.steps||[];var o=["active","cancel","complete","inactive","show","start"];return o.map((function(t){var n;n=t,e.on(n,(function(t){(t=t||{}).tour=B(e),Hn.trigger(n,t)}))})),e.modal=new _n(n),e._setTooltipDefaults(),e._setTourID(),j(e,B(e))}return D(t,e),A(t,[{key:"addStep",value:function(e,t){var n,o;return q(t)?o=e:(n=e,o=t),o instanceof sn?o.tour=this:o=this.setupStep(o,n),this.steps.push(o),o}},{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){var t;Array.isArray(this.steps)&&this.steps.forEach((function(e){return e.destroy()})),jn.call(this),(t=this.tourObject)&&t.steps.forEach((function(e){if(e.options&&!1===e.options.canClickTarget&&e.options.attachTo){var t=xn(e);t instanceof HTMLElement&&(t.style.pointerEvents="auto")}})),this.trigger(e),Hn.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&In(),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 Hn.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,o){if(n.id===e)return n.isOpen()&&n.hide(),n.destroy(),t.steps.splice(o,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(P(t)||"number"==typeof t)&&(e.id=t.toString()),e=N({},this.options.defaultStepOptions,e),new sn(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=P(e)?this.getById(e):this.steps[e];if(n){this._updateStateBeforeShow();var o=H(n.options.showOn)&&!n.options.showOn();o?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&&Mn(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),Hn.activeTour=this}},{key:"_styleTargetElementForStep",value:function(e){var t,n,o=xn(e);o&&(t=o,(n=document.querySelector("".concat(fn)))&&n.classList.remove(fn),t.classList.add(fn),e.options.highlightClass&&o.classList.add(e.options.highlightClass),!1===e.options.canClickTarget&&(o.style.pointerEvents="none"))}},{key:"_skipStep",value:function(e,t){var n=this.steps.indexOf(e),o=t?n+1:n-1;this.show(o,t)}},{key:"_setTooltipDefaults",value:function(){Ft.setDefaultProps(Bn)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var e=this.options.tourName||"tour",t=Fn();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}(Zt);N(Hn,{Tour:Pn,Step:sn,Evented:Zt});var qn=function(e){return 50===e?10:16},Rn=function(e,t){switch(e.toLowerCase()){case"top":return"translateY(".concat(qn(t)-26,"px)");case"right":return"translateX(".concat(qn(t),"px)");case"bottom":return"translateY(".concat(qn(t),"px)");case"left":return"translateX(".concat(qn(t)-26,"px)")}},Wn=function(e,t,n,o,i){var r=e.animation,a=void 0===r?{}:r,s=e.bg_color,c=void 0===s?"black":s,l=e.border,d=void 0===l?{}:l,p=e.buttons_config,u=void 0===p?[]:p,h=e.button_position,f=void 0===h?"right":h,m=e.corners,v=void 0===m?{}:m,g=e.shadow,b=void 0===g?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":g,y=e.opacity,w=void 0===y?1:y,k=e.dismiss_outside_touch,T=void 0!==k&&k,O=e.position,S=void 0===O?"TOP":O,A=e.text_config,L=void 0===A?{}:A,N=e.title_config,D=void 0===N?{}:N,M=e.view_id,I=e.show_shadow,B=void 0!==I&&I,j=e.show_close_icon,z=void 0!==j&&j,F=e.dim_background_color,H=void 0===F?"#0a0a0a":F,P=e.dim_background_opacity,q=void 0===P?.5:P,R=e.layout_type,W=void 0===R?"default":R,Y=e.pb_color,V=void 0===Y?"orange":Y,U=e.index,X=void 0===U?0:U,J=e.total,K=void 0===J?1:J,G=t.configId,Z=t.configName,Q=E(u,zn,G,Z),$=Q.buttons_array,ee=Q.buttons_css,te={color:L.color,fontSize:L.size,fontFamily:L.font_family,fontStyle:L.style};if(L.margin_config&&Object.keys(L.margin_config).length>0){var ne=L.margin_config;te.margin="".concat(ne.top,"px ").concat(ne.right,"px ").concat(ne.bottom,"px ").concat(ne.left,"px")}var oe=L.style;"bold"===oe&&(te.fontWeight=oe);var ie,re={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 ae=D.margin_config;re.margin="".concat(ae.top,"px ").concat(ae.right,"px ").concat(ae.bottom,"px ").concat(ae.left,"px")}switch("bold"===(oe=D.style)&&(te.fontWeight=oe),W){case"with_progress":ie='\n<div>\n <div style="height: 6px;background: '.concat(V,";width: ").concat((X+1)/K*100,"%;border-radius: ").concat(v.enabled?v.width:0,'px;"></div>\n <header class="shepherd-header" style="').concat(D?"padding: 10px 10px 0 10px":"",'">\n ').concat(D?'<h3 class="shepherd-title" id="apxor-step-'.concat(X,'-label" style="padding: 0 !important;padding-right: 0.7em;">').concat(D.text,"</h3>"):"",'\n </header>\n <p style="padding: 8px 10px">').concat(L.text,"</p>\n</div>\n "),ie=(new DOMParser).parseFromString(ie,"text/html").body.children[0];break;default:ie=[L&&L.text?L.text:"Tap here"]}var se={"border-radius":v.enabled?v.width:0,background:c,"border-color":d.color,"border-width":d.width},ce=null;try{ce=document.querySelector("#"+M)}catch(e){}if(!ce)try{ce=document.querySelector(M)}catch(e){}if(ce||(ce=x(M)),ce){var le=document.createElement("span");le.setAttribute("id","apxor-style-"+G+"-step-"+X);var de=document.createElement("style");de.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!=q?q:.5,";position: fixed;\n top: 0;transition: all .3s ease-out;width: 100vw;z-index: 9997;fill: ").concat(null!=H?H:"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(z?"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 color: ').concat(re.color,";display: flex;flex: 1 0 auto;\n font-size: ").concat(re.fontSize,"px;font-family: ").concat(re.fontFamily,";\n font-weight: ").concat("bold"!==re.fontStyle?"normal":re.fontStyle,";font-style: ").concat("italic"===re.fontStyle?"italic":"unset",";\n line-height: ").concat("default"===W?"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 line-height: 1em;').concat("default"===W?"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(te.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(te.fontSize,"px;font-family: ").concat(te.fontFamily,"; \n font-weight: ").concat("bold"!==te.fontStyle?"normal":te.fontStyle,";\n font-style: ").concat("italic"===te.fontStyle?"italic":"unset",";\n color: ").concat(te.color,";line-height: ").concat("default"===W?"26":"20","px;letter-spacing:0.01em;\n}\n").concat(_(ee,f,".shepherd-element .shepherd-content "),"\n@-webkit-keyframes cycle {\n 0% { transform: ").concat(Rn(S,0),"; }\n 50% { transform: ").concat(Rn(S,50),"; }\n 100% { transform: ").concat(Rn(S,100),"; }\n}\n@keyframes cycle {\n 0% { transform: ").concat(Rn(S,0),"; }\n 50% { transform: ").concat(Rn(S,50),"; }\n 100% { transform: ").concat(Rn(S,100),"; }\n}\n.tippy-tooltip.apxor-").concat(G,"-step-").concat(X,"-theme {\n animation: ").concat(a.enabled?a.type+" 1000ms":"none",";\n animation-timing-function: ease-in-out;animation-iteration-count: infinite;\n box-shadow: ").concat(B?b:"none",";color: ").concat(te.color,";\n opacity: ").concat(w,";border-radius: ").concat(se["border-radius"]+"px",";\n background-color: ").concat(se.background,";").concat(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"}}(S),";\n}\n.apxor-").concat(G,"-step-").concat(X,"-theme .tippy-roundarrow {\n fill: ").concat(se.background,";\n}\n.tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(se.background,";\n}\n.tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(se.background,";\n}\n.tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(se.background,";\n}\n.tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(se.background,";\n}\n "),le.appendChild(de),ce.parentNode.insertBefore(le,ce);var pe=function(e){return function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{zn.complete(),o&&e.logActionEvent("InlineTargetViewClicked",t,n)}catch(t){e.isShowingAction=!1,e.currentAction=null,console.error(t)}}(n,G,Z,!0)},ue=function(){fe.disconnect();try{var e=document.getElementById("apxor-style-"+G+"-step-"+X);e.parentNode.removeChild(e)}catch(e){}try{var t=document.getElementById("shepherdModalOverlayContainer");t.parentNode.removeChild(t)}catch(e){}i&&i(),ce.removeEventListener("click",pe)},he=!1,fe=new MutationObserver((function(){var e=C(ce);if(!document.body.contains(ce)||!e&&he){document.getElementById("shepherdModalOverlayContainer").remove();var t=document.getElementsByClassName("apxor-".concat(G,"-step-").concat(X,"-theme"));t.length>0&&t[0]&&t[0].parentNode&&t[0].parentNode.remove(),ue()}e&&(he=!0)}));zn.addStep("apxor-step-"+X,{title:"default"===W&&D&&D.text?D.text:null,text:ie,classes:"apxor-".concat(G,"-step-").concat(X,"-theme"),attachTo:{element:ce,on:S.toLowerCase()},showCancelLink:z,buttons:$,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:T,theme:"apxor-".concat(G,"-step-").concat(X),onShow:function(){o&&o(),ce.addEventListener("click",pe),fe.observe(ce.parentNode,{childList:!0,subtree:!0})},onHidden:ue}})}else console.warn("Element not found with id or path")},Yn=function(e,t,n,o,i,r,a){var s=Array.isArray(t)&&t.length>0,c=e.delay,l=e.dim_background,d=e.view_id,p=e.find_interval,u=void 0===p?0:p;zn=new Hn.Tour({defaultStepOptions:{scrollTo:{behavior:"smooth",block:"center"}},useModalOverlay:s||l});var h=function(){var e=document.getElementById(d);if(!e)try{e=document.querySelector(d)}catch(e){}return e||(e=x(d)),e},f=function(n){try{var c=n.getBoundingClientRect();if(0===c.width||0===c.height)return console.warn("Width and height are 0 for: ",d,". Can't show"),void(i.currentAction=null)}catch(e){return i.isShowingAction=!1,void(i.currentAction=null)}if(s?t.forEach((function(e,t){var n=e.ui;Wn(n,o,i,r,a)})):Wn(e,o,i,r,a),i.isShowingAction)window.ApxorLogger.error("An action already being shown");else try{zn.start(),i.isShowingAction=!0}catch(e){i.isShowingAction=!1,i.currentAction=null,console.error(e)}};return setTimeout((function(){var e=h();e?f(e):(console.warn("Element with id:".concat(d," not found.")),u?(console.warn("Rechecking"),function(e){var t=new Date,n=setInterval((function(){var o=h();o?(clearInterval(n),f(o)):(new Date-t)/1e3>10&&(clearInterval(n),console.warn("Element with id:".concat(e," not found.")),i.currentAction=null)}),u)}(d)):i.currentAction=null)}),c),!0===n.auto_dismiss&&setTimeout((function(){try{zn.complete()}catch(e){i.isShowingAction=!1,i.currentAction=null,console.error(e)}}),c+n.duration),zn.complete};function Vn(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=n.length,i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*o));return t}var Un=Vn(10);function Xn(){return[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some((function(e){return navigator.userAgent.match(e)}))}function Jn(e){var t=e.color,n=void 0===t?"#000":t,o=e.font_family,i=void 0===o?"cursive":o,r=e.margin_config,a=void 0===r?{}:r,s=e.size,c=void 0===s?14:s,l=e.style,d=void 0===l?"bold":l,p=e.text,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desc",h=document.createElement("span");h.setAttribute("id",Un+"-"+u),h.className="apx-class-".concat(Un,"-").concat(u);var f=document.createElement("style");return f.innerHTML="\n.apx-class-".concat(Un,"-").concat(u," {\n z-index:99999;text-align:initial;color:").concat(n," !important;\n font-family:").concat(i," !important;font-size:").concat(c,"px !important;font-weight:").concat(d," !important;\n font-style:").concat("normal"===d||"italic"===d?d+" !important":"unset",";max-width:400px;\n}\n "),Object.keys(a).length>0&&(h.style.margin="".concat(a.top,"px ").concat(a.right,"px ").concat(a.bottom,"px ").concat(a.left,"px")),h.appendChild(f),h.innerHTML=h.innerHTML+p,h}function Kn(e,t,n,o,i,r){var a=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),s=a,c=n-(a-e)/2,l=o-(a-t)/2;"circle"!=i&&(a=e,s=t,c=n,l=o);var d=document.createElement("div");return d.setAttribute("id",Un+"-ripple-div"),r&&(d.innerHTML=function(e,t,n){return"\n<style>\n.ripple-animator {\n position: relative;display: -webkit-box;display: flex;-webkit-box-orient: horizontal;\n -webkit-box-direction: normal;flex-direction: row;-webkit-box-pack: center;\n justify-content: center;-webkit-box-align: center;align-items: center;\n height: ".concat(n,"px !important;width: ").concat(t,"px !important;\n border-radius: ").concat("circle"===e?"100%":"0",";\n box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.25);\n}\n.ripple-animator span {\n position: relative;font-size: 72px;top: 5px;left: -5px;\n}\n.ripple-animator::before {\n opacity: 0;display: -webkit-box;display: flex;-webkit-box-orient: horizontal;\n -webkit-box-direction: normal;flex-direction: row;-webkit-box-pack: center;\n justify-content: center;-webkit-box-align: center;align-items: center;\n position: ").concat(Xn()?"unset":"absolute",";\n top: 0;left: 0;right: 0;bottom: 0;content: '';\n height: ").concat(Xn()?n-9:n,"px !important;width: ").concat(t,"px !important;\n border: 5px solid rgba(255, 255, 255, 0.7);border-radius: ").concat("circle"===e?"100%":"0",";\n -webkit-animation-name: ripple;animation-name: ripple;-webkit-animation-duration: 1.5s;\n animation-duration: 1.5s;-webkit-animation-delay: 0.3s;animation-delay: 0.3s;\n -webkit-animation-iteration-count: infinite;animation-iteration-count: infinite;\n -webkit-animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);\n animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);\n z-index: 99999;\n}\n@-webkit-keyframes ripple {\n from {opacity: 1;-webkit-transform: scale3d(1, 1, 1);transform: scale3d(1, 1, 1);}\n to {opacity: 0;-webkit-transform: scale3d(1.25, 1.25, 1);transform: scale3d(1.25, 1.25, 1);}\n}\n@keyframes ripple {\n from {opacity: 1;-webkit-transform: scale3d(1, 1, 1);transform: scale3d(1, 1, 1);}\n to {opacity: 0;-webkit-transform: scale3d(1.25, 1.25, 1);transform: scale3d(1.25, 1.25, 1);}\n}\n</style>")}(i,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"===i?"50%":"0"),d.style.visibility="hidden",document.body.appendChild(d),d}function Gn(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 Zn(e){var t=e.opacity,n=e.type,o=document.createElement("div");o.setAttribute("id",Un+"-svg"),o.style.position="absolute",o.style.left=0,o.style.top=0,o.style.zIndex=99998,o.style.width="100%",o.style.height="99%";var i="";return i="circle"===n?function(e){var t=e.bg_color,n=e.opacity,o=e.innerRadius,i=e.innerCenterX,r=e.innerCenterY,a=e.outerRadius,s=e.outerCircleCenterX,c=e.outerCircleCenterY;return Gn('\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(i,'"\n cy="').concat(r,'"\n r="').concat(o,'" />\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(').concat(location.href,'#apx-mask)" />\n '))}(e):function(e){var t=e.bg_color,n=e.opacity,o=e.targetElementLeft,i=e.targetElementTop,r=e.targetElementWidth,a=e.targetElementHeight;return Gn('\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(o,'" \n y="').concat(i,'" \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(').concat(location.href,'#apx-mask)"\n fill="').concat(t,'" \n fill-opacity="').concat(n,'" />\n '))}(e),o.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(i),document.body.appendChild(o),o}function Qn(e,t,n,o,i){var r=e.bg_color,a=e.buttons_config,s=void 0===a?[]:a,c=e.button_position,l=e.coach_mark_details,d=l.has_ripple,p=void 0!==d&&d,u=l.type,h=void 0===u?"circle":u,f=e.delay,m=e.dismiss_outside_touch,v=void 0!==m&&m,g=e.opacity,b=void 0===g?.8:g,w=e.position,k=void 0===w?"TOP":w,T=e.text_config,O=e.title_config,S=void 0===O?null:O,A=e.view_id,L=e.scroll_to_view,N=void 0!==L&&L,D=t.configId,M=t.configName,I=document.getElementById(A);if(!I)try{I=document.querySelector(A)}catch(e){}if(I||(I=x(A)),I)if(Un=Vn(10),C(I)){var B=function(e){var t=e.getBoundingClientRect(),n=t.left+window.scrollX,o=t.top+window.scrollY;return{left:n,top:o,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY,x:y(t.x)?t.x+window.scrollX:n,y:y(t.y)?t.y+window.scrollY:o,width:t.width,height:t.height}}(I),j=B.left,z=void 0===j?0:j,F=B.top,H=void 0===F?0:F,P=B.width,q=void 0===P?0:P,R=B.height,W=void 0===R?0:R,Y=B.left<window.innerWidth/2;if(0!==W&&0!==q){var V=function(){le.parentNode.removeChild(le),U.parentNode.removeChild(U),Z.parentNode.removeChild(Z),i&&i(),de&&clearTimeout(de)},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=null;if(!t&&e?s=Jn(e):t&&e&&((s=document.createElement("div")).style.display="inline-flex",s.style.flexDirection="column",s.style.visibility="hidden",s.style.textAlign="center",s.style.lineHeight="26px",s.style.letterSpacing="0.01em",s.appendChild(Jn(t)),s.appendChild(Jn(e))),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 l=function(){a&&a()},d=E(n,{next:l,complete:l,cancel:l},i,r),p=d.buttons_array,u=d.buttons_css,h=document.createElement("style");h.innerHTML=_(u,o),c.appendChild(h),p.forEach((function(e){var t=e.classes,n=e.text,o=e.action,i=document.createElement("button");i.className="shepherd-button "+t,i.innerText=n,i.onclick=function(){return o()},c.appendChild(i)}));var f=document.createElement("div");f.style.display="inline-flex",f.style.flexDirection="column",f.style.visibility="hidden",f.appendChild(s),f.appendChild(c),s=f}return s.style.position="absolute",document.body.appendChild(s),s}(T,S,s,c,D,M,V),X=U.offsetWidth,J=U.offsetHeight,K=0,G=0;T&&T.margin_config&&(K=Number(T.margin_config.left)||0,G=Number(T.margin_config.right)||0);var Z=Kn(q,W,z,H,h,p),Q=z+q/2,$=H+W/2,ee=Math.sqrt(Math.pow(q,2)+Math.pow(W,2))/2,te=ee+Math.max(X,q)/2+10,ne=-1,oe=-1,ie=-1,re=-1,ae=$-ee,se=$+ee;switch(k){case"TOP":oe=(ie=Q-X/2)<0?5:ie,ne="circle"===h?$-ee-J-25:H-J-25,re=se-Math.abs(se-ne)/2;break;case"BOTTOM":case"RIGHT":case"LEFT":oe=(ie=Q-X/2)<0?5:ie,re=ae+((ne="circle"===h?$+ee+25:H+W+25)+J-ae)/2}if(-1!==oe&&-1!==ne&&-1!==re){!Y&&oe+X>window.innerWidth&&(oe=window.innerWidth-X-K-G-10),U.style.left="".concat(oe,"px"),U.style.top="".concat(ne,"px");var ce=((ie=Math.min(z,oe))+Math.max(z+q,oe+X))/2;(ce=Math.min(ce,document.scrollingElement.scrollWidth))<0&&(ce=0),(re=Math.min(re,document.scrollingElement.scrollHeight))<0&&(re=0);var le=Zn({bg_color:r,opacity:b,innerRadius:ee,innerCenterX:Q,innerCenterY:$,outerRadius:te,outerCircleCenterX:ce,outerCircleCenterY:re,targetElementLeft:z,targetElementTop:H,targetElementWidth:q,targetElementHeight:W,type:h});le.style.visibility="hidden",Z.style.visibility="hidden",U.style.visibility="hidden";var de=null,pe=function(e){var t=!e,n=I.getBoundingClientRect();e&&e.clientX>=n.left&&e.clientX<=n.left+n.width&&e.clientY>=n.top&&e.clientY<=n.top+n.height&&(t=!0),(v||t)&&V()};return n&&!0===n.auto_dismiss&&(de=setTimeout((function(){return pe()}),f+n.duration)),le.style.visibility="visible",Z.style.visibility="visible",U.style.visibility="visible",U.childElementCount>0&&(U.children[0].style.visibility="visible"),v&&le.addEventListener("click",pe),Z.addEventListener("click",pe),N&&("TOP"===k?window.scrollTo({top:re-te,behavior:"smooth"}):"BOTTOM"===k&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,re+te),behavior:"smooth"})),o&&o(),pe}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)}var $n=function(e,t,n,o){var i=o.dim_background,r=o.dim_bg_color,a=o.dim_bg_opacity,s=o.position,c=document.createElement("div");c.setAttribute("id","apx-oly");var l=document.createElement("style"),d="center",p="center";switch(s){case"bottom-left":d="flex-start",p="flex-end";break;case"bottom-right":d="flex-end",p="flex-end";break;case"top-left":d="flex-start",p="flex-start";break;case"top-right":d="flex-end",p="flex-start"}var u="none";if(i){var h=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o}));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}(r);u="rgb(".concat(h.r,", ").concat(h.g,", ").concat(h.b,", ").concat(a,")")}l.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(u,";\n display:flex;justify-content:").concat(d,";align-items:").concat(p,";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;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 f=document.createElement("div");return f.setAttribute("id","apx-dlg-c"),f.classList.add("apx-dlg-c"),c.appendChild(f),c.appendChild(l),c.on_dismiss=n,document.body.appendChild(c),c},eo=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 ")},to=function(e,t){var n=e.answerMode,o=e.choices,i=void 0===o?[]:o,r=e.text_answer,a=void 0===r?"":r,s=e.selected_rating,c=void 0===s?-1:s,l=!0;n===m||n===f?l=-1!==i.findIndex((function(e){return!0===e.is_selected})):n===g?l=a.length>0:n===v&&(l=c>0);l?(t.className="apx-ba",t.disabled=!1):(t.className="apx-bi",t.disabled=!0)},no=function(e){var t=e.maximum_characters,n=e.background_color,o=e.placeholder,i=e.text_color,r=document.createElement("textarea");return r.style="padding-top:4px;padding-left:4px;font-zie:14px;width:98%;height:100px;margin-top:8px;border:none;resize:none;background:".concat(n,";color:").concat(i),r.className="apx-ta",r.setAttribute("placeholder",o),r.setAttribute("maxlength",t),r},oo=function(e,t,n){var o=t.question_text_color,i=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.answerMode,p=e.choices,u=void 0===p?[]:p,h=e.rating,b=void 0===h?{rating_type:"classic",bg_color:"#D9DCDE",selected_bg_color:"#109B15"}:h,y=e.selected_rating,x=void 0===y?-1:y,w=e.text_answer,_=void 0===w?"":w,E=e.text_config?e.text_config:{maximum_characters:150,background_color:"#ccc",placeholder:"",text_color:"#000",placeholder_text_color:"#00000087"},k=!1,C=[];if(d===f||d===m){var T=no(E);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)};u.forEach((function(t,o){var i=document.createElement("label");i.className="apx-lc",i.innerText=t.value;var r=document.createElement("input");r.name=r.type=d===f?"radio":"checkbox",r.checked=t.is_selected;var a=document.createElement("span");a.className="apx-i",i.appendChild(r),i.appendChild(a),S(i,t.is_selected),O(i,t.is_selected),t.is_other&&(k=!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)),d===m?r.onchange=function(o){var r=o.target.checked;t.is_selected=r,O(i,r),S(i,r),t.is_other&&(T.style.visibility=r?"visible":"hidden"),to(e,n)}:(r.setAttribute("apx-key","radio"),r.setAttribute("apx-ci",o+""),r.onchange=function(){document.querySelectorAll('input[apx-key="radio"]').forEach((function(e,n){var o=e.checked;u[n].is_selected=o,O(e.parentNode,o),S(e.parentNode,o),t.is_other&&(T.style.visibility=o?"visible":"hidden")})),to(e,n)}),C.push(i)})),k&&C.push(T)}else if(d===g&&null!==E){var A=E.example,L=E.example_text_color;if(""!==A&&""!==A.trim()){var N=document.createElement("span");N.innerHTML="Example: "+A,N.style.color=L,N.style.marginTop="12px",N.style.fontFamily="inherit",N.style.fontSize="15px",C.push(N)}var D=no(E);D.addEventListener("input",(function(t){e.text_answer=t.target.value,t.target.value&&t.target.value.length>0&&(e.is_answered=!0),to(e,n)})),""!==_&&""!==_.trim()&&(D.innerText=_),C.push(D)}else if(d===v){var M=b.rating_type,I=b.bg_color,B=b.selected_bg_color,j=document.createElement("div");j.style="display:flex;justify-content:space-evenly;gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden";var z="",F=[],H="",P="cursor:pointer;font-size:30px;width:40px;height:40px;";if("classic"===M)F=["&#128534;","&#128533;","&#128566;","&#128516;","&#128525;"],z="opacity:1 !important;",H="".concat(P,"padding-right:7px;padding-top:4px;padding-bottom:2px;border-radius:50%;background:transparent;opacity:0.5;filter:drop-shadow(0px 0.586957px 1.76087px rgba(0, 0, 0, 0.11))");else if("duplicate"===M)F=["&#128544;","&#128577;","&#128528;","&#128512;","&#129321;"],z="filter:grayscale(0%) !important",H="".concat(P,"filter:grayscale(100%)");else if("star"===M){for(var q=0;q<5;q++)F.push("&#11088;");z="filter:grayscale(0%) !important",H="".concat(P,"filter:grayscale(100%)")}else F=["1","2","3","4","5"],z="background:".concat(B," !important;color:white !important;"),H="display:flex;justify-content:center;align-items:center;color:#646A6E;font-size:20px;width:40px;height:40px;background-color:".concat(I,";box-shadow:0px 0.54801px 1.64403px 0.54801px rgba(0, 0, 0, 0.11)"),j.style.marginTop="12px";j.innerHTML="<style>.apx-rsel{".concat(z,"}.apx-r{").concat(H,"}</style>");for(var R=function(e){return"star"!==M?e+1===x:e+1<=x},W=[],Y=0;Y<5;Y++){var V=document.createElement("div");V.innerHTML="".concat("num"===M?"":"&nbsp;").concat(F[Y]),R(Y)&&V.classList.add("apx-rsel"),V.classList.add("apx-r"),W.push(V)}W.forEach((function(t,o){t.addEventListener("click",(function(){if(t.classList.add("apx-rsel"),e.selected_rating=o+1,e.is_answered=!0,to(e,n),"star"!==M){for(var i=0;i<o;i++)W[i].classList.remove("apx-rsel");for(var r=o+1;r<5;r++)W[r].classList.remove("apx-rsel")}else{for(var a=0;a<o+1;a++)W[a].classList.add("apx-rsel");for(var s=o+1;s<5;s++)W[s].classList.remove("apx-rsel")}})),j.appendChild(t)})),C.push(j)}var U=document.createElement("div");U.style.padding="14px",U.style.display="flex",U.style.flexDirection="column",U.style.minHeight="340px";var X=document.createElement("style"),J="";d===g?J=eo(E.placeholder_text_color):d!==f&&d!==m||(J=function(e,t,n,o,i,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(i,";\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(i,";\n background-color: white;\n border-radius: ").concat(e===f?"50%":0,";\n }\n\n .apx-lc:hover input ~ .apx-i {\n border: 1px solid ").concat(o,";\n }\n\n .apx-lc input:checked ~ .apx-i {\n background-color: ").concat(t,";\n border: 1px solid ").concat(o,';\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===f?2:1,"px;\n left: ").concat(e===f?2:4,"px;\n width: ").concat(e===f?10:4,"px;\n height: ").concat(e===f?10:8,"px;\n border-radius: ").concat(e===f?"50%":"0",";\n background: ").concat(e===f?o:"transparent",";\n border: ").concat(e===f?"none":"solid white",";\n border-width: ").concat(e===f?"unset":"0 3px 3px 0",";\n -webkit-transform: ").concat(e===f?"unset":"rotate(45deg)",";\n -ms-transform: ").concat(e===f?"unset":"rotate(45deg)",";\n transform: ").concat(e===f?"unset":"rotate(45deg)",";\n }\n ")}(d,r,a,s,c,l),k&&(J+=eo(E.placeholder_text_color))),X.innerHTML=J.replaceAll("\n","").replace(/[\s]{2,999}/g,""),U.appendChild(X);var K=document.createElement("span");return K.innerText=e.title,K.style="margin-bottom:12px;color:".concat(o,";background-color:").concat(i,";font-size:16px;font-weight:600"),U.appendChild(K),C.forEach((function(e){return U.appendChild(e)})),U},io=function(e,t,n,o,i){var r=function(e,t,n){var o=e.cancel_button_color,i=e.previous_button_color,r=document.createElement("button"),a=document.createElement("button");r.disabled=0===t,r.setAttribute("type","button"),r.className="apx-b apx-pr",r.innerHTML="<style>.apx-pr::before{content:'\\2190';font-size:22px;color:".concat(i).concat(0===t?"54":"",";}.apx-pr{cursor:").concat(0===t?"no-drop":"pointer",";margin-top:-6px}</style>"),a.className="apx-b apx-cb",a.setAttribute("type","button"),a.innerHTML="<style>.apx-cb::before{content:'\\0000d7';font-size:26px;color:".concat(o,";}</style>");var s=document.createElement("div");s.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="".concat(t+1,"/").concat(n),s.appendChild(r),s.appendChild(c),s.appendChild(a),{prevButton:r,closeButton:a,headerNode:s}}(e,o,i),a=r.headerNode,s=r.prevButton,c=r.closeButton,l=function(e,t,n,o,i){var r=e.skip_text_color,a=e.submit_text_color,s=e.submit_active_color,c=e.submit_inactive_color,l=n===o-1||i?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===o-1?"Submit":"Next >","<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"),to(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}}(e,n,o,i,n.is_required),d=l.skipButton,p=l.submitButton,u=l.footerNode,h=oo(n,t,p),f=document.createElement("div");f.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}",f.appendChild(m),f.appendChild(a),f.appendChild(h),{questionRoot:f,footerNode:u,prevButton:s,closeButton:c,skipButton:d,submitButton:p}},ro=window.ApxorLogger,ao=c((function e(t){var n=this;a(this,e),l(this,"igFQ",(function(){n.is_selected=!1,n.other_answer=null}));var o=t.id,i=t.value,r=t.is_other,s=t.next_question_id;if(!o||!i)throw new Error("Invalid Choice");this.id=o,this.value=i,this.is_other=r,this.next_question_id=s,this.is_selected=!1,this.other_answer=null})),so=c((function e(t){var n=this;a(this,e),l(this,"igFQ",(function(){n.is_answered=!1,n.text_answer="",n.selected_rating=-1,n.choices.forEach((function(e){return e.igFQ()}))}));var o=t.id,i=t.answer_mode,r=t.title,s=t.is_required,c=t.submit_text,p=t.choices,u=void 0===p?[]:p,h=t.text_config,b=void 0===h?null:h,y=t.randomize_choices,x=void 0!==y&&y,w=t.response_cfg,_=void 0===w?{}:w;if(!o||!i)throw new Error("Invalid question");var E=-1;switch(i){case"single_choice":E=f;break;case"multi_choice":E=m;break;case"text":E=g;break;case"rating":E=v;break;default:E=-1}if(this.answerMode=E,this.id=o,this.is_required=s,this.submit_text=c,this.randomize_choices=x,this.response_cfg=_,this.text_config=b,this.title=r,this.is_answered=!1,this.selected_rating=-1,this.choices=[],this.answerMode===f||this.answerMode===m){for(var k,C=[],T=0;T<u.length;T++){var O=new ao(u[T]);O.is_other?C.push(O):this.choices.push(O)}x&&(this.choices=d(this.choices).map((function(e,t,n){var o=t+Math.floor(Math.random()*(n.length-t)),i=[n[t],n[o]];return n[o]=i[0],n[t]=i[1],n[t]}))),(k=this.choices).push.apply(k,C)}})),co=c((function e(){var n=this;a(this,e),l(this,"initialize",(function(e,t,o){var i=o.delay,r=o.dialog_config,a=void 0===r?null:r,s=o.show_progress_bar,c=void 0===s||s,l=o.is_response_based_survey,d=void 0!==l&&l,p=o.questions,u=void 0===p?[]:p,h=o.show_success_message,f=void 0===h||h,m=o.auto_hide_message,v=void 0===m?2e3:m,g=o.success_message,b=void 0===g?"":g,y=o.question_text_color,x=void 0===y?"#002845":y,w=o.submit_active_color,_=void 0===w?"#017DFD":w,E=o.submit_inactive_color,k=void 0===E?"#017DFD65":E,C=o.option_bg_type,T=void 0===C?"filled":C,O=o.option_text_color_active,S=void 0===O?"#002845":O,A=o.option_text_color_inactive,L=void 0===A?"#002845":A,N=o.option_bg_color_active,D=void 0===N?"#FFF":N,M=o.option_bg_color_inactive,I=void 0===M?"#FFF":M,B=o.question_background_color,j=void 0===B?"#FFF":B,z=o.success_message_bg_color,F=void 0===z?"#109B15":z,H=o.success_message_icon_color,P=void 0===H?"#109B15":H,q=o.success_message_text_color,R=void 0===q?"#002845":q,W=o.skip_text_color,Y=void 0===W?"#017DFD":W,V=o.cancel_button_color,U=void 0===V?"#000":V,X=o.previous_button_color,J=void 0===X?"#000":X,K=o.progress_bar_color,G=void 0===K?"#017DFD":K,Z=o.submit_text_color,Q=void 0===Z?"#FFF":Z,$=o.width,ee=void 0===$?350:$,te=o.min_height,ne=void 0===te?40:te,oe=o.position,ie=void 0===oe?"center":oe,re=o.dim_background,ae=void 0===re||re,se=o.dim_bg_color,ce=void 0===se?"#313131":se,le=o.dim_bg_opacity,de=void 0===le?.54:le;n.configId=e,n.name=t,n.delay=i,n.is_response_based_survey=d,n.show_success_message=f,n.success_message=b,n.auto_hide_message=v,n.questions=[],n.answered_questions=[],n.width=ee,n.min_height=ne,n.layoutConfig={show_progress_bar:c,skip_text_color:Y,cancel_button_color:U,previous_button_color:J,progress_bar_color:G,submit_text_color:Q,submit_active_color:_,submit_inactive_color:k,success_message_bg_color:F,success_message_icon_color:P,success_message_text_color:R,position:ie,dim_background:ae,dim_bg_color:ce,dim_bg_opacity:de},n.questionConfig={question_text_color:x,question_background_color:j,option_bg_color_active:D,option_bg_color_inactive:I,option_text_color_active:S,option_text_color_inactive:L,option_bg_type:T},a&&(n.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;n.questions.push(new so(u[pe])),n.answered_questions.push(-1)}catch(e){return ro.error("Failed to parse Q",pe,e),!1}return!(n.questions.length<1)||(n.isValid=!1,!1)})),l(this,"rmXo",(function(e,t){n.isValid&&setTimeout((function(){try{var o=window.ApxorRTM;if(null!==o.currentAction&&void 0!==o.currentAction)return void ro.error("An action is already being shown.");n.startTime=Date.now();var i=$n(n.width,n.min_height,t,n.layoutConfig);if(n.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",n.xonD("apx_survey_launched"),n.dialog_config){var r=n.dialog_config,a=r.icon_name,s=void 0===a?"":a,c=r.icon_width,l=r.icon_height,d=i.children[0];i.style.visibility="hidden",d.style.visibility="hidden",setTimeout((function(){d.innerHTML=function(e){var t,n,o,i=e.icon_name,r=void 0===i?"":i,a=e.title,s=void 0===a?"Some dummy title":a,c=e.yes_text,l=void 0===c?"Yes":c,d=e.icon_width,p=void 0===d?180:d,u=e.icon_height,h=void 0===u?100:u,f=e.no_text,m=void 0===f?"No, thanks":f,v=e.dialog_background_color,g=void 0===v?"#FFF":v,b=e.title_color,y=void 0===b?"#3C3C3C":b,x=e.yes_button_bg_color,w=void 0===x?"#017DFD":x,_=(e.no_button_bg_color,e.yes_button_text_color),E=void 0===_?"#FFF":_,k=e.no_button_text_color,C=void 0===k?"#017DFD":k,T=(e.hide_close_button,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(g,';align-items:center;margin-top:20px;border-radius:3px">\n ').concat((t=r,n=p,o=h,t&&""!==t&&0!==n&&0!==o?'<img id="apx_icon" src="'.concat(t,'" style="width:').concat(n,"px;height:").concat(o,'px;">'):""),'<span style="').concat(T(16,600),"text-align:center;color:").concat(y,';margin:12px 0px;">').concat(s,'</span>\n <button id="').concat("apx-dy",'" style="').concat(T(14,500),"color:").concat(E,";background-color:").concat(w,';border-radius:2px;border:none;padding:8px 20px;margin-bottom:10px;cursor:pointer">').concat(l,'</button>\n <button id="').concat("apx-dn",'" style="').concat(T(14,500),"color:").concat(C,';background:none;border:none;cursor:pointer;margin-bottom:20px">').concat(m,"</button>\n </div>\n ")}(n.dialog_config),document.getElementById("apx-dy").onclick=function(){n.xonD("apx_survey_dialog_yes_clicked"),d.style.minHeight=n.min_height+"%",n.tjaK(i,!0)},document.getElementById("apx-dn").onclick=function(){n.xonD("apx_survey_dialog_no_clicked"),n.eJpi(i)};var e=function(){i.style.visibility="visible",d.style.visibility="visible",d.style.minHeight=""===s||0===c||0===l?"13%":"25%",d.classList.toggle("open"),n.xonD("apx_survey_dialog_launched")};if(""!==s&&c>0&&l>0){var t=document.getElementById("apx_icon");t.onload=function(){e()},t.onerror=function(){n.xonD("apx_survey_dialog_icon_failed"),n.eJpi(i)}}else e()}),100)}else n.tjaK(i);e&&e((function(){return n.eJpi(i)}))}catch(e){ro.error(e)}}),n.delay)})),l(this,"tjaK",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=n.layoutConfig,i=o.show_progress_bar,r=o.progress_bar_color,a=document.createElement("div");a.style="height:4px;overflow:hidden;position:relative;margin-bottom:10px;";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),i||(a.style.visibility="hidden");var c=e.children[0];(t||c&&c.childElementCount>1)&&c.removeChild(c.children[c.childElementCount-1]),c.appendChild(a),n.CpSD(e,0),t||setTimeout((function(){e.children[0].classList.toggle("open")}),100)})),l(this,"CpSD",(function(e,t){if(!(t>=n.questions.length)){var o=n.questions[t],i=io(n.layoutConfig,n.questionConfig,o,t,n.questions.length),r=i.prevButton,a=void 0===r?null:r,s=i.closeButton,c=void 0===s?null:s,l=i.submitButton,d=void 0===l?null:l,p=i.skipButton,u=void 0===p?null:p,h=i.questionRoot,f=i.footerNode,m=e.children[0];m&&m.childElementCount>2&&(m.removeChild(m.children[m.childElementCount-1]),m.removeChild(m.children[m.childElementCount-1])),document.getElementById("apx-pb").style.transform="translateX(".concat(-(100-100/n.questions.length*(t+1)),"%)"),m.appendChild(h),m.appendChild(f),a&&(a.onclick=function(){t-1<0||(n.jynW(t),n.CpSD(e,t-1))}),c&&c.addEventListener("click",(function(){n.xonD("apx_survey_close_clicked",{where:"question "+(t+1)}),n.jynW(t),n.RszP(e,!1)})),d&&(d.onclick=function(){n.is_response_based_survey||(n.jynW(t),t===n.questions.length-1?n.RszP(e,!0):n.CpSD(e,t+1))}),u&&(u.onclick=function(){t+1>=n.questions.length||(n.xonD("apx_survey_skip_clicked",{where:"question "+(t+1)}),n.jynW(t),n.CpSD(e,t+1))})}})),l(this,"jynW",(function(e){if(-1===n.answered_questions[e]){var t=n.WfiZ(e);t.answers.length>0&&(n.xonD("apx_survey_".concat(n.questions[e].title),{answers:t.answerTexts}),n.answered_questions[e]=1)}})),l(this,"xonD",(function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.logEvent(e,i({survey_id:n.configId,name:n.name},o))})),l(this,"WfiZ",(function(e){var t=n.questions[e];if(!t)return null;var o={answers:[],answerTexts:[],others:[],textBasedQuestionAnswers:[]},i=t.answerMode,r=t.choices,a=void 0===r?[]:r,s=t.selected_rating,c=void 0===s?-1:s,l=t.text_answer,d=void 0===l?"":l,p=t.is_answered,u=void 0!==p&&p,h=t.text_config,b=void 0===h?null:h;switch(i){case f:case m:a.forEach((function(e){e.is_selected&&(o.answers.push(e.id),o.answerTexts.push(e.value),e.is_other&&null!==e.other_answer&&""!==e.other_answer.trim()&&o.others.push({id:e.id,answer:e.other_answer}))}));break;case g:u&&""!==d&&""!==d.trim()&&null!==b&&(o.answers.push(b.id),o.answerTexts.push(d),o.textBasedQuestionAnswers.push({id:b.id,answer:d}));break;case v:-1!==c&&(o.answers.push(c),o.answerTexts.push(c))}return o})),l(this,"eJpi",(function(e){e.on_dismiss&&e.on_dismiss(),e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e),document.body.style.overflow=n.bodyOverflow,n.bodyOverflow=""}),400)})),l(this,"ZQFD",(function(e){var t=e.children[0];t.style.minHeight="unset",t&&t.childElementCount>2&&(t.removeChild(t.children[t.childElementCount-1]),t.removeChild(t.children[t.childElementCount-1]));var o=document.getElementById("apx-pb");o.parentNode.removeChild(o);var i,r,a,s,c,l,d=(i=n.success_message,r=n.layoutConfig,a=r.success_message_bg_color,s=r.success_message_icon_color,c=r.success_message_text_color,(l=document.createElement("div")).style="display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;height:100%;background: ".concat(a,"; min-height:480px"),l.innerHTML='\n <span style="font-size: 40px;border-radius: 50%;padding: 10px;padding-bottom: 2px;padding-top: 2px;color: white;background: '.concat(s,';">&#10003;</span>\n <span style="font-size: 17px;margin-top:15px;color:').concat(c,'">').concat(i,"</span>\n "),l);t.appendChild(d),setTimeout((function(){n.eJpi(e)}),n.auto_hide_message)})),l(this,"RszP",(function(e,o){o&&n.show_success_message?n.ZQFD(e):n.eJpi(e);var i={survey_id:n.configId,name:n.name,responses:[]};if(n.questions.forEach((function(e,t){var o=n.WfiZ(t);if(o.answers.length>0){var r={question_id:e.id,answers:o.answers};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 r=Math.pow(10,3);i.time_taken=Math.round((Date.now()-n.startTime)/1e3*r)/r;var a=t.getController(),s=a.getFromStorage("_apx_cd",!0).session_info.launch_time;i.session_id=t.getSessionId(),i.is_completed=o,i.app_version=a.getFromStorage("apx_ver",!1),i.device_uuid=t.getClientId(),i.launch_time=s,i.user_attributes=a.getUserAttributes(),i.session_attributes=a.getSessionAttributes(),n.qTcy(i)}o&&n.xonD("apx_survey_completed"),n.questions.forEach((function(e,t){e.igFQ(),n.answered_questions[t]=-1})),n.startTime=-1,n.bodyOverflow=""})),l(this,"qTcy",(function(e){var n=h.replace("<app_id>",t.getSiteId());fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})})),this.isValid=!0,this.dialog_config=null})),lo=c((function e(){a(this,e),l(this,"parse",(function(e,t,n){var o=new co;return o.initialize(e,t,n)?o:null}))})),po=window.ApxorLogger;var uo=c((function e(){var n=this;a(this,e),l(this,"initialize",(function(e,t,o){var i=o.delay,r=o.layout_type,a=void 0===r?"":r,s=o.html_config.data,c=void 0===s?"":s,l=o.window_attributes,d=l.width,p=void 0===d?"auto":d,u=l.height,h=void 0===u?"auto":u,f=l.dimmed_background,m=void 0===f||f,v=l.dismiss_outside_touch,g=void 0!==v&&v;return n.configId=e,n.name=t,n.delay=i,n.width=p,n.height=h,n.layoutConfig={layout_type:a,dimmed_background:m,dismiss_outside_touch:g},n.htmlConfig={data:c},""!=n.htmlConfig.data||(n.isValid=!1,!1)})),l(this,"vEwp",(function(){if(!n.isValid)return!1;setTimeout((function(){try{Ao.getInstance().updateCount(n.configId);var e=function(e,t,n){var o=n.dimmed_background,i=document.createElement("div");i.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(o?"#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"),i.appendChild(a),i.appendChild(r),document.body.appendChild(i),i}(n.width,n.height,n.layoutConfig);n.layoutConfig.dismiss_outside_touch&&(document.getElementById("apx-oly").onclick=function(){n.NSnm(e)}),setTimeout((function(){e.children[0].classList.toggle("open"),e.children[0].innerHTML=n.htmlConfig.data,n.Wthj("inapp_shown"),e.querySelectorAll("a").forEach((function(t){t.onclick=function(){return n.GDPs(e,t)}}))}),100)}catch(e){po.error(e)}}),n.delay)})),l(this,"GDPs",(function(e,o){var i=o.getAttribute("href");if(null!=i&&i.includes("apxor")){var r,a=i.replace(/^apxor:\/\/([^\?]*).*?$/,"$1");switch(a){case"cancel":n.Wthj("walk_through_cancelled");break;case"xclose":n.Wthj("InAppXIconClicked");break;case"close":r=i.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.Wthj(b(""===r?"Button":r));break;case"dl_url":var s=i.replace(/(.*?)uri=([^\&]*).*?$/,"$2"),c=i.replace(/(.*?)external=([^\&]*).*?$/,"$2");r=i.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.Wthj(b(""===r?"Button":r)),"true"==c?window.open(s,"_blank"):t.logClientEvent("REDIRECT",{url:s})}return n.NSnm(e,a),!1}return!0})),l(this,"NSnm",(function(e,t){"cancel"!==t&&n.Wthj("inapp_dismissed"),e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e)}),300)})),l(this,"Wthj",(function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.logEvent(e,i({id:n.configId,message_name:n.name},o))})),this.isValid=!0})),ho=c((function e(){a(this,e),l(this,"parse",(function(e,t,n){var o=new uo;return o.initialize(e,t,n)?o:null}))})),fo=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)}},mo=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)};var vo="<b>View Selection Mode: ON",go="<b>View Selection Mode: OFF</b>",bo="https://server.apxor.com/v1/sse/",yo=bo+"layout?appId=<aid>&deviceId=<uid>",xo=bo+"ui-config?appId=<aid>&deviceId=<uid>",wo=bo+"art-config?appId=<aid>&deviceId=<uid>",_o="https://server.apxor.com/v4/frontendapi/web/test-devices",Eo=_o+"?appId=<aid>",ko=_o+"/<uid>?appId=<aid>",Co=c((function e(){var n=this;a(this,e),l(this,"oqBe",null),l(this,"jKYJ",null),l(this,"TcSZ",null),l(this,"oNwn",null),l(this,"pCpL",""),l(this,"init",(function(e,o){var i=function(e){if(window.document)for(var t=e+"=",n=window.document.cookie.split(";"),o=0;o<n.length;o++){for(var i=n[o];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null}("_apx_ewc");if(i){var r=atob(i);try{var a=t.getController().getFromStorage(r,!0);if(!a)return;var s=a.app_id,c=a.expiry,l=a.volatile_id;if(n.pCpL=l,s===e&&Date.now()<=c){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=vo,n.jKYJ=d,document.body.appendChild(d),n.oqBe=document.createElement("style"),n.oqBe.innerHTML=".apx-highlight{height:auto;z-index:9999999999;outline: 2px solid red;cursor:default}",document.body.appendChild(n.oqBe),n.isSelectionMode=!1,n.testDeviceData=t.getController().getFromStorage("_apx_td",!0),n.testDeviceData){var p=n.testDeviceData,u=p.name,h=void 0===u?"":u,f=p.id,m=void 0===f?"":f;if(""!==h&&""!==m){n.GhTF("select","".concat(h," - ").concat(m),m);var v=new EventSource(xo.replace("<aid>",e).replace("<uid>",m)),g=new EventSource(wo.replace("<aid>",e).replace("<uid>",m));v.onmessage=g.onmessage=function(e){e&&e.data&&"{}"!==e.data&&n.ivZe(o,e.data)}}}n.Dlhz()}}catch(e){}}})),l(this,"DXGR",(function(){n.jKYJ.parentNode.removeChild(n.jKYJ),n.oqBe.parentNode.removeChild(n.oqBe)})),l(this,"ivZe",(function(e,o){try{n.oNwn.dispatchEvent(new CustomEvent("preview"));var i=JSON.parse(o),r=i.cmd;if("prev"===(void 0===r?"prev":r))if(i.hasOwnProperty("ui")){var a=function e(t){return[Math.random,function(){return e.last?windowId.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("-")}(36),s={configs:[{_id:a,enabled:!0,terminate_info:{auto_dismiss:!1,duration:1e3},meta:{name:"P",type:i.type},ui:i.ui}]};e.MQUt("SURVEY"!==i.type?0:1,s),t.getController().dispatchEvent(i.type,{name:i.type,additional_info:{uuid:a,name:"P"}})}else if(i.hasOwnProperty("messages")){var c=[],l=[];i.messages.forEach((function(e){"SURVEY"!==e.meta.type?l.push(e):c.push(e)})),l.length>0&&e.handleResponse(0,{configs:l}),c.length>0&&e.handleResponse(1,{configs:c})}}catch(e){console.error(e)}})),l(this,"Dlhz",(function(){var e=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<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="48" height="29.14" style="width:17px;position:absolute;top:7px;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 class="apx-cr" style="gap:0">\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(e?"none":"block",'">Add as test device</button>\n<button class="apx-b" id="apx-r" style="display:').concat(e?"block":"none",'">Remove as test device</button>\n<button class="apx-b" id="apx-ev" style="display:').concat(e&&n.isSelectionMode?"none":e?"block":"none",'">Enable view selection</button>\n<button class="apx-b" id="apx-dv" style="display:').concat(e&&n.isSelectionMode?"block":"none",'">Disable view selection</button>\n</div>\n '),i=document.getElementById("apx-wr");i&&i.remove&&i.remove();var r=document.createElement("div");r.style="z-index:99999999;position:fixed;top:8px;right:8px;background:white;box-shadow:0px 0.54801px 1.64403px 0.54801px rgb(0 0 0 / 11%);border-radius:3px;padding:10px",r.setAttribute("id","apx-wr"),r.innerHTML=o,document.body.appendChild(r),n.oNwn=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 n.AVre()},d.onclick=function(){fetch(ko.replace("<aid>",t.getSiteId()).replace("<uid>",n.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&&(t.getController().persistToStorage("_apx_td",{},!0),n.testDeviceData=null,l.style.display="block",d.style.display=p.style.display=u.style.display="none",n.isSelectionMode&&n.YghT())})).catch((function(e){return console.error(e)}))},p.onclick=function(){n.isSelectionMode=!0,window.addEventListener("mouseover",fo,!0),window.addEventListener("mouseout",mo,!0),n.clickListener=function(e){return 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))}(e,(function(e){var t=n.DaRa(e,!0),o=n.TpZa(e,!0);n.GhTF("view",location.href,t+"___"+o)}))},window.addEventListener("click",n.clickListener,!0),n.oBbI(!1),p.style.display="none",u.style.display="block"};var h=function(){n.YghT(),u.style.display="none",p.style.display="block"};u.onclick=h,n.oNwn.addEventListener("preview",h),n.oNwn.addEventListener("added",(function(){l.style.display="none",d.style.display="block",a.style.display="flex",p.style.display="block"})),function(e){var t,n=window.innerHeight-8,o=8,i=window.innerWidth-8,r=8,a=0,s=0,c=0,l=0;function d(n){n.preventDefault(),n.stopPropagation(),n=n||window.event,c=n.clientX,l=n.clientY,t=e.getBoundingClientRect(),document.onmouseup=u,document.onmousemove=p}function p(d){d.preventDefault(),d.stopPropagation(),d=d||window.event,a=c-d.clientX,s=l-d.clientY,c=d.clientX,l=d.clientY;var p=e.offsetLeft-a,u=e.offsetTop-s;p<o||u<r||p+t.width>i||u+t.height>n||(e.style.top=e.offsetTop-s+"px",e.style.left=e.offsetLeft-a+"px",e.style.right="")}function u(){document.onmouseup=null,document.onmousemove=null}document.getElementById(e.id+"-h")?document.getElementById(e.id+"-h").onmousedown=d:e.onmousedown=d}(r)})),l(this,"YghT",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:go;if(n.isSelectionMode){window.removeEventListener("mouseover",fo,!0),window.removeEventListener("mouseout",mo,!0),window.removeEventListener("click",n.clickListener,!0);for(var t=document.querySelectorAll(".apx-highlight"),o=0;o<t.length;o++){var i=t[o];i.classList.remove("apx-highlight")}n.oBbI(!0,e),n.isSelectionMode=!1}})),l(this,"oBbI",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:go;n.jKYJ.style.visibility="visible",e?(n.jKYJ.innerHTML=t,n.jKYJ.style.opacity=1):(n.jKYJ.innerHTML=vo,n.jKYJ.style.opacity=1),setTimeout((function(){n.jKYJ.style.opacity=0,n.jKYJ.style.visibility="hidden"}),1e3)})),l(this,"AVre",(function(){var e=k(500,20,{}),o=e.children[0];o.style.flex="0 1 auto",o.style.maxHeight="calc(100% - 96px)",o.style.display="flex",o.style.flexDirection="column";var i=t.getController().getDevInfo(),r=t.getController().getUserAttributes().apx_browser,a=i.hardware_model,s=i.os_version,c=i.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 ');e.style.visibility="hidden",o.style.visibility="hidden",o.innerHTML=l;var d,p,u=document.getElementById("apx-ii");n.testDeviceData&&(u.value=null!==(d=null===(p=n.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(){e.style.visibility="visible",o.style.visibility="visible",o.classList.toggle("open"),u.parentNode.parentNode.children[0].classList.add("apx-il-f")}),100);var h=function(){o.classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e)}),400)};document.getElementById("apx-bc").onclick=function(){h()};var f=document.getElementById("apx-bd");f.onclick=function(){o.children[1].classList.add("apx-loading"),t.getController().makePostRequest(Eo.replace("<aid>",t.getSiteId()),{model:a,id:c,nick_name:u.value},{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"},(function(){var e={id:c,name:u.value};t.getController().persistToStorage("_apx_td",e,!0),n.testDeviceData=e,n.GhTF("select","".concat(u.value," - ").concat(c),c,(function(){o.children[1].classList.remove("apx-loading"),n.oNwn.dispatchEvent(new CustomEvent("added"))})),h()}),(function(){}))}})),l(this,"GhTF",(function(e,o,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},s=t.getController().getDevInfo(),c={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:e,navigation:o,orientation:i},layout:[]};t.getController().makePostRequest(yo.replace("<aid>",t.getSiteId()).replace("<uid>",n.pCpL),c,{},r,a)})),l(this,"DaRa",(function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var o=[],i=e;i;){var r=n.mkLd(i,!!t,i===e);if(!r)break;if(o.push(r),r.optimized)break;i=i.parentNode}return o.reverse(),o.join(" > ")})),l(this,"mkLd",(function(e,t,n){if(e.nodeType!==Node.ELEMENT_NODE)return null;var o=e.getAttribute("id");if(t){if(o)return new To(c(o),!0);var i=e.nodeName.toLowerCase();if("body"===i||"head"===i||"html"===i)return new To(e.nodeName.toLowerCase(),!0)}var r=e.nodeName.toLowerCase();if(o)return new To(r.toLowerCase()+c(o),!0);var a=e.parentNode;if(!a||a.nodeType===Node.DOCUMENT_NODE)return new To(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,o){return t&&0===o||!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,o===n):e}))}for(var d=s(e),p=!1,u=!1,h=-1,f=-1,m=a.children,v=0;(-1===h||!u)&&v<m.length;++v){var g=m[v];if(g.nodeType===Node.ELEMENT_NODE)if(f+=1,g!==e){if(!u&&g.nodeName.toLowerCase()===r.toLowerCase()){p=!0;var b=new Set(d);if(b.size)for(var y=s(g),x=0;x<y.length;++x){var w=y[x];if(b.has(w)&&(b.delete(w),!b.size)){u=!0;break}}else u=!0}}else h=f}var _=r.toLowerCase();if(n&&"input"===r.toLowerCase()&&e.getAttribute("type")&&!e.getAttribute("id")&&!e.getAttribute("class")&&(_+='[type="'+e.getAttribute("type")+'"]'),u)_+=":nth-child("+(h+1)+")";else if(p)for(var E in d)_+="."+l(d[E].substr(1));return new To(_,!1)})),l(this,"TpZa",(function(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";for(var o=[],i=e;i;){var r=n.snej(i,t);if(!r)break;if(o.push(r),r.optimized)break;i=i.parentNode}return o.reverse(),(o.length&&o[0].optimized?"":"/")+o.join("/")})),l(this,"snej",(function(e,t){var o,i=n.IQAy(e);if(-1===i)return null;switch(e.nodeType){case Node.ELEMENT_NODE:if(t&&e.getAttribute("id"))return new To('//*[@id="'+e.getAttribute("id")+'"]',!0);o=e.localName;break;case Node.ATTRIBUTE_NODE:o="@"+e.nodeName;break;case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:o="text()";break;case Node.PROCESSING_INSTRUCTION_NODE:o="processing-instruction()";break;case Node.COMMENT_NODE:o="comment()";break;case Node.DOCUMENT_NODE:default:o=""}return i>0&&(o+="["+i+"]"),new To(o,e.nodeType===Node.DOCUMENT_NODE)})),l(this,"IQAy",(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,o=e.parentNode?e.parentNode.children:null;if(!o)return 0;for(var i=0;i<o.length;++i)if(t(e,o[i])&&o[i]!==e){n=!0;break}if(!n)return 0;var r=1;for(i=0;i<o.length;++i)if(t(e,o[i])){if(o[i]===e)return r;++r}return-1}))})),To=function(e,t){this.value=e,this.optimized=t||!1};To.prototype={toString:function(){return this.value}};var Oo=window.ApxorLogger,So=new(c((function e(){var n=this;a(this,e),l(this,"version",121),l(this,"brkW",{}),l(this,"isShowingAction",!1),l(this,"currentAction",null),l(this,"heLn",new lo),l(this,"QYmU",new ho),l(this,"coLz",new Co),l(this,"OKvD",null),l(this,"init",(function(e){n.OKvD=e;var o=t.getController(),i=Ao.getInstance(),r=t.getSiteId(),a=function(e,t){var n=function(n){return n.replace("<app_id>",e).replace("<u_id>",t)};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")}}(r,t.getClientId()),s=a.rtaValidateUrl,c=a.rtaSyncUrl,l=a.surveysValidateUrl,d=a.surveysSyncUrl;i.initialize(),i.fetch(0,s,c,n.handleResponse),i.fetch(1,l,d,n.handleResponse),o.registerForEvent("IN_LINE",n.jPxG),o.registerForEvent("IN_APP",n.eUad),o.registerForEvent("SURVEY",n.yFsG),o.registerForEvent("ONBOARDING",n.KWre),n.coLz.init(r,n),Oo.debug("Registered for events")})),l(this,"show",(function(e,t,o,i){try{if(null!==n.currentAction&&void 0!==n.currentAction)return void Oo.error("An action already being shown");var r=JSON.parse(e),a={};a.auto_dismiss=t>0,a.duration=t;var s=function(){n.logActionEvent("inline_shown",o,i),n.updateCount(o),n.isShowingAction=!0},c=function(){n.isShowingAction=!1,n.currentAction=null,n.logActionEvent("inline_dismissed",o,i)},l=r.display_type,d={configId:o,configName:i};"inline"===l?n.currentAction=Yn(r,[],a,d,n,s,c):"coach_mark"===l?function(e,t,n,o,i,r){var a=window.ApxorRTM;if(null===a.currentAction||void 0===a.currentAction)if(e&&e.delay<=0){var s=Qn(e,t,n,o,i);r(s)}else setTimeout((function(){if(null===a.currentAction||void 0===a.currentAction){var s=Qn(e,t,n,o,i);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")}(r,d,a,s,c,(function(e){n.currentAction=e})):Oo.error("Unknown type",l)}catch(e){n.currentAction=null,n.isShowingAction=!1,window.ApxorLogger.error(e)}})),l(this,"logActionEvent",(function(e,n,o){t.logEvent(e,{id:n,message_name:o})})),l(this,"logClientEvent",(function(e,n){t.logClientEvent(e,n)})),l(this,"updateCount",(function(e){Ao.getInstance().updateCount(e)})),l(this,"fxkd",(function(){if(null!==n.currentAction&&void 0!==n.currentAction){n.isShowingAction=!1;try{n.currentAction()}catch(e){}finally{n.currentAction=null}}})),l(this,"handleResponse",(function(e,t){Oo.debug("Fetched config from server",e),n.MQUt(e,t),Ao.getInstance().parse(t),n.OKvD&&n.OKvD()})),l(this,"MQUt",(function(e,t){if(y(t)&&y(t.configs)){var o=t.configs;if(!Array.isArray(o))return;for(var i=0;i<o.length;i++){var r=o[i],a=r._id,s=r.meta.name,c=r.type,l=r.ui;1===e?l=n.heLn.parse(a,s,l):"IN_APP"===c&&(l=n.QYmU.parse(a,s,l)),null!==l?n.brkW[a]={ui:l,uis:r.uis,terminationConfig:r.terminate_info,name:s}:console.warn("Failed to parse the config",a)}Oo.debug("Configs: ",n.brkW)}})),l(this,"jPxG",(function(e){if(y(e.additional_info)){var t=e.additional_info.uuid;if(n.brkW[t]){var o=n.brkW[t],i=o.ui,r=o.terminationConfig,a=o.name;n.show(JSON.stringify(i),r.auto_dismiss?r.duration:-1,t,a)}}})),l(this,"eUad",(function(e){if(y(e.additional_info)){var t=e.additional_info.uuid;if(n.brkW[t])n.brkW[t].ui.vEwp()}})),l(this,"yFsG",(function(e){if(y(e.additional_info)){var t=e.additional_info.uuid;if(n.brkW[t]){n.brkW[t].ui.rmXo((function(e){n.updateCount(t),n.isShowingAction=!0,n.currentAction=e}),(function(){n.isShowingAction=!1,n.currentAction=null}))}}})),l(this,"KWre",(function(e){}))})));window.ApxorRTM=So;var Ao=new(function(){function e(){a(this,e)}return c(e,[{key:"getInstance",value:function(){return(n||window["apxor-qe"]).getInstance()}}]),e}());try{void 0===e&&null===e||(e.default=So,module.exports=e.default)}catch(e){}e.ceWrapper=Ao,e.default=So,Object.defineProperty(e,"__esModule",{value:!0})}));
44
+ */;!function(e){if(U){var t=document.createElement("style");t.textContent=e,t.setAttribute("data-tippy-stylesheet","");var n=document.head,o=n.querySelector("style,link");o?n.insertBefore(t,o):n.appendChild(t)}}(".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 Pt=Xt("shepherd"),jt=Xt("shepherd-has-title"),Rt={computeStyle:{enabled:!0,fn:function(e){return e.styles=N({},e.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),e}},addShepherdClass:Pt},qt={positionFixed:!0,modifiers:{addShepherdClass:Pt}};function Ut(e){var t=document.createElement("div");return t.innerHTML=e,t.children[0]}function Vt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Array.isArray(e)?e.slice(t):[]}function Wt(){if(R(zt))throw new Error("Using the attachment feature of Shepherd requires the Tippy.js library");this.tooltip&&this.tooltip.destroy();var e=this.parseAttachTo();this.tooltip=Gt.call(this,e),this.target=e.element||document.body,this.el.classList.add("shepherd-element")}function Yt(){var e=this.options.attachTo||{},t=N({},e);if(j(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 Xt(e){return{enabled:!0,fn:function(t){return t.instance.popper.classList.add(e),t}}}function Gt(e){if(!e.element)return Jt.call(this);var t=Zt.call(this,e);return zt(e.element,t)}function Zt(e){var t={content:this.el,flipOnUpdate:!0,placement:e.on||"right"};return N(t,this.options.tippyOptions),this.options.title&&N(qt.modifiers,{addHasTitleClass:jt}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&N(qt,this.options.tippyOptions.popperOptions),t.popperOptions=qt,t}function Jt(){var e=function(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){L(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}({content:this.el,placement:"top"},this.options.tippyOptions);e.arrow=!1,e.popperOptions=e.popperOptions||{},this.options.title&&N(qt.modifiers,{addHasTitleClass:jt});var t=N({},qt,e.popperOptions,{modifiers:N(Rt,e.popperOptions.modifiers)});return e.popperOptions=t,zt(document.body,e)}var Qt=function(){function e(){O(this,e)}return A(e,[{key:"on",value:function(e,t,n){var o=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];R(this.bindings)&&(this.bindings={}),R(this.bindings[e])&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:o})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){var n=this;if(R(this.bindings)||R(this.bindings[e]))return!1;R(t)?delete this.bindings[e]:this.bindings[e].forEach((function(o,i){o.handler===t&&n.bindings[e].splice(i,1)}))}},{key:"trigger",value:function(e){var t=this;if(!R(this.bindings)&&this.bindings[e]){var n=Vt(Array.prototype.slice.call(arguments));this.bindings[e].forEach((function(o,i){var r=o.ctx,a=o.handler,s=o.once,c=r||t;a.apply(c,n),s&&t.bindings[e].splice(i,1)}))}}}]),e}();function Kt(e){var t=this;return function(n){if(t.isOpen()){var o=t.el&&n.target===t.el;(!R(e)&&n.target.matches(e)||o)&&t.tour.next()}}}function $t(){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 o,i=Kt.call(this,n);try{o=document.querySelector(n)}catch(e){}if(!R(n)&&!o)return console.error("No element was found for the selector supplied to advanceOn: ".concat(n));o?(o.addEventListener(t,i),this.on("destroy",(function(){return o.removeEventListener(t,i)}))):(document.body.addEventListener(t,i,!0),this.on("destroy",(function(){return document.body.removeEventListener(t,i,!0)})))}function en(e,t){var n=this;e.events=e.events||{},R(e.action)||(e.events.click=e.action),e.events&&Object.entries(e.events).forEach((function(e){var o=F(e,2),i=o[0],r=o[1];if(j(r)){var a=r;r=function(){return n.tour.show(a)}}t.dataset.buttonEvent=!0,t.addEventListener(i,r),n.on("destroy",(function(){t.removeAttribute("data-button-event"),t.removeEventListener(i,r)}))}))}function tn(e){var t=this;e.addEventListener("click",(function(e){e.preventDefault(),t.cancel()}))}function nn(e){var t=this;e.map((function(e){t[e]=t[e].bind(t)}))}Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var on=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,o=e.HTMLElement||e.Element,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:o.prototype.scroll||c,scrollIntoView:o.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,s=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?m.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):i.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==r(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]&&(l(arguments[0])?i.scrollBy.call(e,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):m.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},o.prototype.scroll=o.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;m.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");i.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)}},o.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.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))},o.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=h(this),o=n.getBoundingClientRect(),r=this.getBoundingClientRect();n!==t.body?(m.call(this,n,n.scrollLeft+r.left-o.left,n.scrollTop+r.top-o.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function c(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!==r(e)||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"===r(e)&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(e,t){return"Y"===t?e.clientHeight+s<e.scrollHeight:"X"===t?e.clientWidth+s<e.scrollWidth:void 0}function p(t,n){var o=e.getComputedStyle(t,null)["overflow"+n];return"auto"===o||"scroll"===o}function u(e){var t=d(e,"Y")&&p(e,"Y"),n=d(e,"X")&&p(e,"X");return t||n}function h(e){for(;e!==t.body&&!1===u(e);)e=e.parentNode||e.host;return e}function f(t){var n,o,i,r,s=(a()-t.startTime)/468;r=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*r)),o=t.startX+(t.x-t.startX)*n,i=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,o,i),o===t.x&&i===t.y||e.requestAnimationFrame(f.bind(e,t))}function m(n,o,r){var s,l,d,p,u=a();n===t.body?(s=e,l=e.scrollX||e.pageXOffset,d=e.scrollY||e.pageYOffset,p=i.scroll):(s=n,l=n.scrollLeft,d=n.scrollTop,p=c),f({scrollable:s,method:p,startTime:u,startX:l,startY:d,x:o,y:r})}}}}));on.polyfill;on.polyfill();var rn,an=(rn=0,function(){return++rn}),sn=function(e){function t(e,n){var o;return O(this,t),(o=H(this,D(t).call(this,e,n))).tour=e,nn.call(B(o),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),o.setOptions(n),o.bindAdvance=$t.bind(B(o)),o.bindButtonEvents=en.bind(B(o)),o.bindCancelLink=tn.bind(B(o)),o.setupTooltip=Wt.bind(B(o)),o.parseAttachTo=Yt.bind(B(o)),H(o,B(o))}return M(t,e),A(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 o=Ut('<button class="shepherd-button '.concat(e.classes||"",'" tabindex="0">').concat(e.text,"</button>"));n.appendChild(o),t.bindButtonEvents(e,o)})),e.appendChild(n)}}},{key:"_addCancelLink",value:function(e,t){if(this.options.showCancelLink){var n=Ut('<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=Ut('<div class="shepherd-text"\n id="'.concat(t,'"\n ></div>')),o=this.options.text;P(o)&&(o=o.call(this,n)),o instanceof HTMLElement?n.appendChild(o):(j(o)&&(o=[o]),o.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"]'),o=F(n,1)[0],i=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===o&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),o.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"),o="".concat(this.id,"-label"),i=Ut('<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=o,i.setAttribute("aria-labeledby",o),r.appendChild(a)}return e.classList.add("shepherd-content"),r.classList.add("shepherd-header"),i.appendChild(e),e.appendChild(r),R(this.options.text)||(this._addContent(e,n),i.setAttribute("aria-describedby",n)),this._addButtons(e),this._addCancelLink(i,r),i}},{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),z(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(){R(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;P(this.options.scrollToHandler)?this.options.scrollToHandler(t):z(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(an()),n&&Object.entries(n).forEach((function(t){var n=F(t,2),o=n[0],i=n[1];e.on(o,i,e)}))}},{key:"show",value:function(){var e=this;if(P(this.options.beforeShowPromise)){var t=this.options.beforeShowPromise();if(!R(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}(Qt),cn="http://www.w3.org/2000/svg",ln="shepherdModalOverlayContainer",dn="shepherdModalMask",pn="shepherdModalMaskRect",un="shepherdModalMaskOpening",hn="shepherd-modal-is-visible",fn="shepherd-modal-target";function mn(){var e,t=((e=document.createElementNS(cn,"svg")).setAttributeNS(null,"id",ln),e),n=document.createElementNS(cn,"defs"),o=function(){var e=document.createElementNS(cn,"mask");return yn(e,{height:"100%",id:dn,width:"100%",x:"0",y:"0"}),e}(),i=function(){var e=document.createElementNS(cn,"rect");return yn(e,{fill:"#FFFFFF",height:"100%",id:pn,width:"100%",x:"0",y:"0"}),e}(),r=function(){var e=document.createElementNS(cn,"rect");return yn(e,{fill:"#000000",id:un}),e}(),a=function(){var e=document.createElementNS(cn,"rect");return yn(e,{height:"100%",width:"100%",x:"0",y:"0"}),e.setAttribute("mask","url(#".concat(dn,")")),e}();return o.appendChild(i),o.appendChild(r),n.appendChild(o),t.appendChild(n),t.appendChild(a),t}function vn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.getBoundingClientRect&&t instanceof SVGElement){var o=e.getBoundingClientRect(),i=o.x,r=o.y,a=o.width,s=o.height,c=o.left,l=o.top;yn(t,{x:(i||c)-n,y:(r||l)-n,width:a+2*n,height:s+2*n})}}function gn(e){e.preventDefault()}function bn(e){e.stopPropagation()}function yn(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function xn(e){var t=e.options.attachTo;if(!t)return null;var n=T(t);return"string"===n?function(e){var t=F(e.split(" "),1)[0];return document.querySelector(t)}(t):"object"===n?function(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}(t):null}function wn(){"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(ln));window.addEventListener("touchmove",gn,{passive:!1}),e&&e.addEventListener("touchmove",bn,!1)}var _n=function(){function e(t){return O(this,e),this.createModalOverlay(),this.options=t,this}return A(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(hn)}catch(e){}}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var e=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=e||mn(),this._modalOverlayOpening=this._modalOverlayElem.querySelector("#".concat(un)),this.hide(),e||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(hn),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(hn),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(e){var t,n,o,i,r,a=this._modalOverlayOpening,s=xn(e),c=e.options.modalOverlayOpeningPadding;s?(vn(s,a,c),this._onScreenChange=(n=vn.bind(this,s,a,c),o=0,function(){var e=this,t=arguments,a=function(){r=null,i||n.apply(e,t)},s=i&&!r;clearTimeout(r),r=setTimeout(a,o),s&&n.apply(e,t)}),wn.call(this)):(t=this._modalOverlayOpening)&&t instanceof SVGElement&&yn(t,{height:"0",x:"0",y:"0",width:"0"})}}]),e}(),En=!1;if("undefined"!=typeof window){var kn={get passive(){En=!0}};window.addEventListener("testPassive",null,kn),window.removeEventListener("testPassive",null,kn)}var Cn,Tn,On="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),Sn=[],An=!1,Ln=-1,Nn=function(e){return Sn.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Mn=function(e){var t=e||window.event;return!!Nn(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Dn=function(e,t){if(On){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!Sn.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Sn=[].concat(d(Sn),[n]),e.ontouchstart=function(e){1===e.targetTouches.length&&(Ln=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Ln;!Nn(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Mn(e):e.stopPropagation())}(t,e)},An||(document.addEventListener("touchmove",Mn,En?{passive:!1}:void 0),An=!0)}}else{!function(e){setTimeout((function(){if(void 0===Tn){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Tn=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===Cn&&(Cn=document.body.style.overflow,document.body.style.overflow="hidden")}))}(t);var o={targetElement:e,options:t||{}};Sn=[].concat(d(Sn),[o])}},In=function(){On?(Sn.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),An&&(document.removeEventListener("touchmove",Mn,En?{passive:!1}:void 0),An=!1),Sn=[],Ln=-1):(setTimeout((function(){void 0!==Tn&&(document.body.style.paddingRight=Tn,Tn=void 0),void 0!==Cn&&(document.body.style.overflow=Cn,Cn=void 0)})),Sn=[])},Bn={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function Hn(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",gn,{passive:!1})}var Fn,zn=function(){var e=0;return function(){return++e}}(),Pn=new Qt,jn=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};O(this,t),e=H(this,D(t).call(this,n)),nn.call(B(e),["back","cancel","complete","hide","next"]),e.options=n,e.steps=e.options.steps||[];var o=["active","cancel","complete","inactive","show","start"];return o.map((function(t){var n;n=t,e.on(n,(function(t){(t=t||{}).tour=B(e),Pn.trigger(n,t)}))})),e.modal=new _n(n),e._setTooltipDefaults(),e._setTourID(),H(e,B(e))}return M(t,e),A(t,[{key:"addStep",value:function(e,t){var n,o;return R(t)?o=e:(n=e,o=t),o instanceof sn?o.tour=this:o=this.setupStep(o,n),this.steps.push(o),o}},{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){var t;Array.isArray(this.steps)&&this.steps.forEach((function(e){return e.destroy()})),Hn.call(this),(t=this.tourObject)&&t.steps.forEach((function(e){if(e.options&&!1===e.options.canClickTarget&&e.options.attachTo){var t=xn(e);t instanceof HTMLElement&&(t.style.pointerEvents="auto")}})),this.trigger(e),Pn.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&In(),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 Pn.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,o){if(n.id===e)return n.isOpen()&&n.hide(),n.destroy(),t.steps.splice(o,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(j(t)||"number"==typeof t)&&(e.id=t.toString()),e=N({},this.options.defaultStepOptions,e),new sn(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=j(e)?this.getById(e):this.steps[e];if(n){this._updateStateBeforeShow();var o=P(n.options.showOn)&&!n.options.showOn();o?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&&Dn(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),Pn.activeTour=this}},{key:"_styleTargetElementForStep",value:function(e){var t,n,o=xn(e);o&&(t=o,(n=document.querySelector("".concat(fn)))&&n.classList.remove(fn),t.classList.add(fn),e.options.highlightClass&&o.classList.add(e.options.highlightClass),!1===e.options.canClickTarget&&(o.style.pointerEvents="none"))}},{key:"_skipStep",value:function(e,t){var n=this.steps.indexOf(e),o=t?n+1:n-1;this.show(o,t)}},{key:"_setTooltipDefaults",value:function(){zt.setDefaultProps(Bn)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var e=this.options.tourName||"tour",t=zn();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}(Qt);N(Pn,{Tour:jn,Step:sn,Evented:Qt});var Rn=function(e){return 50===e?10:16},qn=function(e,t){switch(e.toLowerCase()){case"top":return"translateY(".concat(Rn(t)-26,"px)");case"right":return"translateX(".concat(Rn(t),"px)");case"bottom":return"translateY(".concat(Rn(t),"px)");case"left":return"translateX(".concat(Rn(t)-26,"px)")}},Un=function(e,t,n,o,i){var r=e.animation,a=void 0===r?{}:r,s=e.bg_color,c=void 0===s?"black":s,l=e.border,d=void 0===l?{}:l,p=e.buttons_config,u=void 0===p?[]:p,h=e.button_position,f=void 0===h?"right":h,m=e.corners,v=void 0===m?{}:m,g=e.shadow,b=void 0===g?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":g,y=e.opacity,w=void 0===y?1:y,k=e.dismiss_outside_touch,T=void 0!==k&&k,O=e.dismiss_target_touch,S=void 0===O||O,A=e.position,L=void 0===A?"TOP":A,N=e.text_config,M=void 0===N?{}:N,D=e.title_config,I=void 0===D?{}:D,B=e.view_id,H=e.show_shadow,F=void 0!==H&&H,z=e.show_close_icon,P=void 0!==z&&z,j=e.dim_background_color,R=void 0===j?"#0a0a0a":j,q=e.dim_background_opacity,U=void 0===q?.5:q,V=e.layout_type,W=void 0===V?"default":V,Y=e.pb_color,X=void 0===Y?"orange":Y,G=e.index,Z=void 0===G?0:G,J=e.total,Q=void 0===J?1:J,K=t.configId,$=t.configName,ee=E(u,Fn,K,$),te=ee.buttons_array,ne=ee.buttons_css,oe={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 ie=M.margin_config;oe.margin="".concat(ie.top,"px ").concat(ie.right,"px ").concat(ie.bottom,"px ").concat(ie.left,"px")}var re=M.style;"bold"===re&&(oe.fontWeight=re);var ae,se={color:I.color,fontSize:I.size,fontFamily:I.font_family,fontStyle:I.style};if(I.margin_config&&Object.keys(I.margin_config).length>0){var ce=I.margin_config;se.margin="".concat(ce.top,"px ").concat(ce.right,"px ").concat(ce.bottom,"px ").concat(ce.left,"px")}switch("bold"===(re=I.style)&&(oe.fontWeight=re),W){case"with_progress":ae='\n<div>\n <div style="height: 6px;background: '.concat(X,";width: ").concat((Z+1)/Q*100,"%;border-radius: ").concat(v.enabled?v.width:0,'px;"></div>\n <header class="shepherd-header" style="').concat(I?"padding: 10px 10px 0 10px":"",'">\n ').concat(I?'<h3 class="shepherd-title" id="apxor-step-'.concat(Z,'-label" style="padding: 0 !important;padding-right: 0.7em;">').concat(I.text,"</h3>"):"",'\n </header>\n <p style="padding: 8px 10px">').concat(M.text,"</p>\n</div>\n "),ae=(new DOMParser).parseFromString(ae,"text/html").body.children[0];break;default:ae=[M&&M.text?M.text:"Tap here"]}var le={"border-radius":v.enabled?v.width:0,background:c,"border-color":d.color,"border-width":d.width},de=null;try{de=document.querySelector("#"+B)}catch(e){}if(!de)try{de=document.querySelector(B)}catch(e){}if(de||(de=x(B)),de){var pe=document.createElement("span");pe.setAttribute("id","apxor-style-"+K+"-step-"+Z);var ue=document.createElement("style");ue.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!=R?R:"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(P?"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 color: ').concat(se.color,";display: flex;flex: 1 0 auto;\n font-size: ").concat(se.fontSize,"px;font-family: ").concat(se.fontFamily,";\n font-weight: ").concat("bold"!==se.fontStyle?"normal":se.fontStyle,";font-style: ").concat("italic"===se.fontStyle?"italic":"unset",";\n line-height: ").concat("default"===W?"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 line-height: 1em;').concat("default"===W?"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(oe.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(oe.fontSize,"px;font-family: ").concat(oe.fontFamily,"; \n font-weight: ").concat("bold"!==oe.fontStyle?"normal":oe.fontStyle,";\n font-style: ").concat("italic"===oe.fontStyle?"italic":"unset",";\n color: ").concat(oe.color,";line-height: ").concat("default"===W?"26":"20","px;letter-spacing:0.01em;\n}\n").concat(_(ne,f,".shepherd-element .shepherd-content "),"\n@-webkit-keyframes cycle {\n 0% { transform: ").concat(qn(L,0),"; }\n 50% { transform: ").concat(qn(L,50),"; }\n 100% { transform: ").concat(qn(L,100),"; }\n}\n@keyframes cycle {\n 0% { transform: ").concat(qn(L,0),"; }\n 50% { transform: ").concat(qn(L,50),"; }\n 100% { transform: ").concat(qn(L,100),"; }\n}\n.tippy-tooltip.apxor-").concat(K,"-step-").concat(Z,"-theme {\n animation: ").concat(a.enabled?a.type+" 1000ms":"none",";\n animation-timing-function: ease-in-out;animation-iteration-count: infinite;\n box-shadow: ").concat(F?b:"none",";color: ").concat(oe.color,";\n opacity: ").concat(w,";border-radius: ").concat(le["border-radius"]+"px",";\n background-color: ").concat(le.background,";").concat(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"}}(L),";\n}\n.apxor-").concat(K,"-step-").concat(Z,"-theme .tippy-roundarrow {\n fill: ").concat(le.background,";\n}\n.tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(le.background,";\n}\n.tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(le.background,";\n}\n.tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(le.background,";\n}\n.tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(le.background,";\n}\n "),pe.appendChild(ue),de.parentNode.insertBefore(pe,de);var he=function(e){return function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;if(i)try{Fn.complete(),o&&e.logActionEvent("InlineTargetViewClicked",t,n)}catch(t){e.isShowingAction=!1,e.currentAction=null,console.error(t)}}(n,K,$,!0,S)},fe=function(){var e;ve.disconnect();try{var t=document.getElementById("apxor-style-"+K+"-step-"+Z);t.parentNode.removeChild(t)}catch(e){}try{var n=document.getElementById("shepherdModalOverlayContainer");n.parentNode.removeChild(n)}catch(e){}i&&i(null===(e=Fn)||void 0===e?void 0:e._isCancelled),de.removeEventListener("click",he)},me=!1,ve=new MutationObserver((function(){var e=C(de);if(!document.body.contains(de)||!e&&me){document.getElementById("shepherdModalOverlayContainer").remove();var t=document.getElementsByClassName("apxor-".concat(K,"-step-").concat(Z,"-theme"));t.length>0&&t[0]&&t[0].parentNode&&t[0].parentNode.remove(),fe()}e&&(me=!0)}));Fn.addStep("apxor-step-"+Z,{title:"default"===W&&I&&I.text?I.text:null,text:ae,classes:"apxor-".concat(K,"-step-").concat(Z,"-theme"),attachTo:{element:de,on:L.toLowerCase()},showCancelLink:P,buttons:te,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:T,theme:"apxor-".concat(K,"-step-").concat(Z),onShow:function(){o&&o(),de.addEventListener("click",he),ve.observe(de.parentNode,{childList:!0,subtree:!0})},onHidden:fe}})}else console.warn("Element not found with id or path")},Vn=function(e,t,n,o,i,r,a){var s=Array.isArray(t)&&t.length>0,c=e.delay,l=e.dim_background,d=e.view_id,p=e.find_interval,u=void 0===p?0:p,h=e.scrollToView,f=!1;void 0!==h&&h&&(f={behavior:"smooth",block:"center"}),Fn=new Pn.Tour({defaultStepOptions:{scrollTo:f},useModalOverlay:s||l});var m=function(){var e=document.getElementById(d);if(!e)try{e=document.querySelector(d)}catch(e){}return e||(e=x(d)),e},v=function(n){try{var c=n.getBoundingClientRect();if(0===c.width||0===c.height)return console.warn("Width and height are 0 for: ",d,". Can't show"),void(i.currentAction=null)}catch(e){return i.isShowingAction=!1,void(i.currentAction=null)}if(s?t.forEach((function(e,t){var n=e.ui;Un(n,o,i,r,a)})):Un(e,o,i,r,a),i.isShowingAction)window.ApxorLogger.error("An action already being shown");else try{Fn.start(),i.isShowingAction=!0}catch(e){i.isShowingAction=!1,i.currentAction=null,console.error(e)}};return setTimeout((function(){var e=m();e?v(e):(console.warn("Element with id:".concat(d," not found.")),u?(console.warn("Rechecking"),function(e){var t=new Date,n=setInterval((function(){var o=m();o?(clearInterval(n),v(o)):(new Date-t)/1e3>10&&(clearInterval(n),console.warn("Element with id:".concat(e," not found.")),i.currentAction=null)}),u)}(d)):i.currentAction=null)}),c),!0===n.auto_dismiss&&setTimeout((function(){try{Fn.complete()}catch(e){i.isShowingAction=!1,i.currentAction=null,console.error(e)}}),c+n.duration),Fn.complete};function Wn(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=n.length,i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*o));return t}var Yn=Wn(10);function Xn(){return[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some((function(e){return navigator.userAgent.match(e)}))}function Gn(e){var t=e.color,n=void 0===t?"#000":t,o=e.font_family,i=void 0===o?"cursive":o,r=e.margin_config,a=void 0===r?{}:r,s=e.size,c=void 0===s?14:s,l=e.style,d=void 0===l?"bold":l,p=e.text,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desc",h=document.createElement("span");h.setAttribute("id",Yn+"-"+u),h.className="apx-class-".concat(Yn,"-").concat(u);var f=document.createElement("style");return f.innerHTML="\n.apx-class-".concat(Yn,"-").concat(u," {\n z-index:99999;text-align:initial;color:").concat(n," !important;\n font-family:").concat(i," !important;font-size:").concat(c,"px !important;font-weight:").concat(d," !important;\n font-style:").concat("normal"===d||"italic"===d?d+" !important":"unset",";max-width:400px;\n}\n "),Object.keys(a).length>0&&(h.style.margin="".concat(a.top,"px ").concat(a.right,"px ").concat(a.bottom,"px ").concat(a.left,"px")),h.appendChild(f),h.innerHTML=h.innerHTML+p,h}function Zn(e,t,n,o,i,r){var a=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),s=a,c=n-(a-e)/2,l=o-(a-t)/2;"circle"!=i&&(a=e,s=t,c=n,l=o);var d=document.createElement("div");return d.setAttribute("id",Yn+"-ripple-div"),r&&(d.innerHTML=function(e,t,n){return"\n<style>\n.ripple-animator {\n position: relative;display: -webkit-box;display: flex;-webkit-box-orient: horizontal;\n -webkit-box-direction: normal;flex-direction: row;-webkit-box-pack: center;\n justify-content: center;-webkit-box-align: center;align-items: center;\n height: ".concat(n,"px !important;width: ").concat(t,"px !important;\n border-radius: ").concat("circle"===e?"100%":"0",";\n box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.25);\n}\n.ripple-animator span {\n position: relative;font-size: 72px;top: 5px;left: -5px;\n}\n.ripple-animator::before {\n opacity: 0;display: -webkit-box;display: flex;-webkit-box-orient: horizontal;\n -webkit-box-direction: normal;flex-direction: row;-webkit-box-pack: center;\n justify-content: center;-webkit-box-align: center;align-items: center;\n position: ").concat(Xn()?"unset":"absolute",";\n top: 0;left: 0;right: 0;bottom: 0;content: '';\n height: ").concat(Xn()?n-9:n,"px !important;width: ").concat(t,"px !important;\n border: 5px solid rgba(255, 255, 255, 0.7);border-radius: ").concat("circle"===e?"100%":"0",";\n -webkit-animation-name: ripple;animation-name: ripple;-webkit-animation-duration: 1.5s;\n animation-duration: 1.5s;-webkit-animation-delay: 0.3s;animation-delay: 0.3s;\n -webkit-animation-iteration-count: infinite;animation-iteration-count: infinite;\n -webkit-animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);\n animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);\n z-index: 99999;\n}\n@-webkit-keyframes ripple {\n from {opacity: 1;-webkit-transform: scale3d(1, 1, 1);transform: scale3d(1, 1, 1);}\n to {opacity: 0;-webkit-transform: scale3d(1.25, 1.25, 1);transform: scale3d(1.25, 1.25, 1);}\n}\n@keyframes ripple {\n from {opacity: 1;-webkit-transform: scale3d(1, 1, 1);transform: scale3d(1, 1, 1);}\n to {opacity: 0;-webkit-transform: scale3d(1.25, 1.25, 1);transform: scale3d(1.25, 1.25, 1);}\n}\n</style>")}(i,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"===i?"50%":"0"),d.style.visibility="hidden",document.body.appendChild(d),d}function Jn(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 Qn(e){var t=e.opacity,n=e.type,o=document.createElement("div");o.setAttribute("id",Yn+"-svg"),o.style.position="absolute",o.style.left=0,o.style.top=0,o.style.zIndex=99998,o.style.width="100%",o.style.height="99%";var i="";return i="circle"===n?function(e){var t=e.bg_color,n=e.opacity,o=e.innerRadius,i=e.innerCenterX,r=e.innerCenterY,a=e.outerRadius,s=e.outerCircleCenterX,c=e.outerCircleCenterY;return Jn('\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(i,'"\n cy="').concat(r,'"\n r="').concat(o,'" />\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(').concat(location.href,'#apx-mask)" />\n '))}(e):function(e){var t=e.bg_color,n=e.opacity,o=e.targetElementLeft,i=e.targetElementTop,r=e.targetElementWidth,a=e.targetElementHeight;return Jn('\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(o,'" \n y="').concat(i,'" \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(').concat(location.href,'#apx-mask)"\n fill="').concat(t,'" \n fill-opacity="').concat(n,'" />\n '))}(e),o.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(i),document.body.appendChild(o),o}function Kn(e,t,n,o,i){var r=e.bg_color,a=e.buttons_config,s=void 0===a?[]:a,c=e.button_position,l=e.coach_mark_details,d=l.has_ripple,p=void 0!==d&&d,u=l.type,h=void 0===u?"circle":u,f=e.delay,m=e.dismiss_outside_touch,v=void 0!==m&&m,g=e.opacity,b=void 0===g?.8:g,w=e.position,k=void 0===w?"TOP":w,T=e.text_config,O=e.title_config,S=void 0===O?null:O,A=e.view_id,L=e.scroll_to_view,N=void 0!==L&&L,M=t.configId,D=t.configName,I=document.getElementById(A);if(!I)try{I=document.querySelector(A)}catch(e){}if(I||(I=x(A)),I)if(Yn=Wn(10),C(I)){var B=function(e){var t=e.getBoundingClientRect(),n=t.left+window.scrollX,o=t.top+window.scrollY;return{left:n,top:o,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY,x:y(t.x)?t.x+window.scrollX:n,y:y(t.y)?t.y+window.scrollY:o,width:t.width,height:t.height}}(I),H=B.left,F=void 0===H?0:H,z=B.top,P=void 0===z?0:z,j=B.width,R=void 0===j?0:j,q=B.height,U=void 0===q?0:q,V=B.left<window.innerWidth/2;if(0!==U&&0!==R){var W=function(){le.parentNode.removeChild(le),Y.parentNode.removeChild(Y),Q.parentNode.removeChild(Q),i&&i(),de&&clearTimeout(de)},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=null;if(!t&&e?s=Gn(e):t&&e&&((s=document.createElement("div")).style.display="inline-flex",s.style.flexDirection="column",s.style.visibility="hidden",s.style.textAlign="center",s.style.lineHeight="26px",s.style.letterSpacing="0.01em",s.appendChild(Gn(t)),s.appendChild(Gn(e))),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 l=function(){a&&a()},d=E(n,{next:l,complete:l,cancel:l},i,r),p=d.buttons_array,u=d.buttons_css,h=document.createElement("style");h.innerHTML=_(u,o),c.appendChild(h),p.forEach((function(e){var t=e.classes,n=e.text,o=e.action,i=document.createElement("button");i.className="shepherd-button "+t,i.innerText=n,i.onclick=function(){return o()},c.appendChild(i)}));var f=document.createElement("div");f.style.display="inline-flex",f.style.flexDirection="column",f.style.visibility="hidden",f.appendChild(s),f.appendChild(c),s=f}return s.style.position="absolute",document.body.appendChild(s),s}(T,S,s,c,M,D,W),X=Y.offsetWidth,G=Y.offsetHeight,Z=0,J=0;T&&T.margin_config&&(Z=Number(T.margin_config.left)||0,J=Number(T.margin_config.right)||0);var Q=Zn(R,U,F,P,h,p),K=F+R/2,$=P+U/2,ee=Math.sqrt(Math.pow(R,2)+Math.pow(U,2))/2,te=ee+Math.max(X,R)/2+10,ne=-1,oe=-1,ie=-1,re=-1,ae=$-ee,se=$+ee;switch(k){case"TOP":oe=(ie=K-X/2)<0?5:ie,ne="circle"===h?$-ee-G-25:P-G-25,re=se-Math.abs(se-ne)/2;break;case"BOTTOM":case"RIGHT":case"LEFT":oe=(ie=K-X/2)<0?5:ie,re=ae+((ne="circle"===h?$+ee+25:P+U+25)+G-ae)/2}if(-1!==oe&&-1!==ne&&-1!==re){!V&&oe+X>window.innerWidth&&(oe=window.innerWidth-X-Z-J-10),Y.style.left="".concat(oe,"px"),Y.style.top="".concat(ne,"px");var ce=((ie=Math.min(F,oe))+Math.max(F+R,oe+X))/2;(ce=Math.min(ce,document.scrollingElement.scrollWidth))<0&&(ce=0),(re=Math.min(re,document.scrollingElement.scrollHeight))<0&&(re=0);var le=Qn({bg_color:r,opacity:b,innerRadius:ee,innerCenterX:K,innerCenterY:$,outerRadius:te,outerCircleCenterX:ce,outerCircleCenterY:re,targetElementLeft:F,targetElementTop:P,targetElementWidth:R,targetElementHeight:U,type:h});le.style.visibility="hidden",Q.style.visibility="hidden",Y.style.visibility="hidden";var de=null,pe=function(e){var t=!e,n=I.getBoundingClientRect();e&&e.clientX>=n.left&&e.clientX<=n.left+n.width&&e.clientY>=n.top&&e.clientY<=n.top+n.height&&(t=!0),(v||t)&&W()};return n&&!0===n.auto_dismiss&&(de=setTimeout((function(){return pe()}),f+n.duration)),le.style.visibility="visible",Q.style.visibility="visible",Y.style.visibility="visible",Y.childElementCount>0&&(Y.children[0].style.visibility="visible"),v&&le.addEventListener("click",pe),Q.addEventListener("click",pe),N&&("TOP"===k?window.scrollTo({top:re-te,behavior:"smooth"}):"BOTTOM"===k&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,re+te),behavior:"smooth"})),o&&o(),pe}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)}var $n=function(e,t,n,o){var i=o.dim_background,r=o.dim_bg_color,a=o.dim_bg_opacity,s=o.position,c=document.createElement("div");c.setAttribute("id","apx-oly");var l=document.createElement("style"),d="center",p="center";switch(s){case"bottom-left":d="flex-start",p="flex-end";break;case"bottom-right":d="flex-end",p="flex-end";break;case"top-left":d="flex-start",p="flex-start";break;case"top-right":d="flex-end",p="flex-start"}var u="none";if(i){var h=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o}));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}(r);u="rgb(".concat(h.r,", ").concat(h.g,", ").concat(h.b,", ").concat(a,")")}l.innerHTML="\n#apx-oly {\n width:100%;height:100%;position:fixed;top:0;left:0;background-color:".concat(u,";\n display:flex;justify-content:").concat(d,";align-items:").concat(p,";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;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 f=document.createElement("div");return f.setAttribute("id","apx-dlg-c"),f.classList.add("apx-dlg-c"),c.appendChild(f),c.appendChild(l),c.on_dismiss=n,document.body.appendChild(c),c},eo=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 ")},to=function(e,t){var n=e.answerMode,o=e.choices,i=void 0===o?[]:o,r=e.text_answer,a=void 0===r?"":r,s=e.selected_rating,c=void 0===s?-1:s,l=!0;n===m||n===f?l=-1!==i.findIndex((function(e){return!0===e.is_selected})):n===g?l=a.length>0:n===v&&(l=c>0);l?(t.className="apx-ba",t.disabled=!1):(t.className="apx-bi",t.disabled=!0)},no=function(e){var t=e.maximum_characters,n=e.background_color,o=e.placeholder,i=e.text_color,r=document.createElement("textarea");return r.style="padding-top:4px;padding-left:4px;font-zie:14px;width:98%;height:100px;margin-top:8px;border:none;resize:none;background:".concat(n,";color:").concat(i),r.className="apx-ta",r.setAttribute("placeholder",o),r.setAttribute("maxlength",t),r},oo=function(e,t,n){var o=t.question_text_color,i=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.answerMode,p=e.choices,u=void 0===p?[]:p,h=e.rating,b=void 0===h?{rating_type:"classic",bg_color:"#D9DCDE",selected_bg_color:"#109B15"}:h,y=e.selected_rating,x=void 0===y?-1:y,w=e.text_answer,_=void 0===w?"":w,E=e.text_config?e.text_config:{maximum_characters:150,background_color:"#ccc",placeholder:"",text_color:"#000",placeholder_text_color:"#00000087"},k=!1,C=[];if(d===f||d===m){var T=no(E);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)};u.forEach((function(t,o){var i=document.createElement("label");i.className="apx-lc",i.innerText=t.value;var r=document.createElement("input");r.name=r.type=d===f?"radio":"checkbox",r.checked=t.is_selected;var a=document.createElement("span");a.className="apx-i",i.appendChild(r),i.appendChild(a),S(i,t.is_selected),O(i,t.is_selected),t.is_other&&(k=!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)),d===m?r.onchange=function(o){var r=o.target.checked;t.is_selected=r,O(i,r),S(i,r),t.is_other&&(T.style.visibility=r?"visible":"hidden"),to(e,n)}:(r.setAttribute("apx-key","radio"),r.setAttribute("apx-ci",o+""),r.onchange=function(){document.querySelectorAll('input[apx-key="radio"]').forEach((function(e,n){var o=e.checked;u[n].is_selected=o,O(e.parentNode,o),S(e.parentNode,o),t.is_other&&(T.style.visibility=o?"visible":"hidden")})),to(e,n)}),C.push(i)})),k&&C.push(T)}else if(d===g&&null!==E){var A=E.example,L=E.example_text_color;if(""!==A&&""!==A.trim()){var N=document.createElement("span");N.innerHTML="Example: "+A,N.style.color=L,N.style.marginTop="12px",N.style.fontFamily="inherit",N.style.fontSize="15px",C.push(N)}var M=no(E);M.addEventListener("input",(function(t){e.text_answer=t.target.value,t.target.value&&t.target.value.length>0&&(e.is_answered=!0),to(e,n)})),""!==_&&""!==_.trim()&&(M.innerText=_),C.push(M)}else if(d===v){var D=b.rating_type,I=b.bg_color,B=b.selected_bg_color,H=document.createElement("div");H.style="display:flex;justify-content:space-evenly;gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden";var F="",z=[],P="",j="cursor:pointer;font-size:30px;width:40px;height:40px;";if("classic"===D)z=["&#128534;","&#128533;","&#128566;","&#128516;","&#128525;"],F="opacity:1 !important;",P="".concat(j,"padding-right:7px;padding-top:4px;padding-bottom:2px;border-radius:50%;background:transparent;opacity:0.5;filter:drop-shadow(0px 0.586957px 1.76087px rgba(0, 0, 0, 0.11))");else if("duplicate"===D)z=["&#128544;","&#128577;","&#128528;","&#128512;","&#129321;"],F="filter:grayscale(0%) !important",P="".concat(j,"filter:grayscale(100%)");else if("star"===D){for(var R=0;R<5;R++)z.push("&#11088;");F="filter:grayscale(0%) !important",P="".concat(j,"filter:grayscale(100%)")}else z=["1","2","3","4","5"],F="background:".concat(B," !important;color:white !important;"),P="display:flex;justify-content:center;align-items:center;color:#646A6E;font-size:20px;width:40px;height:40px;background-color:".concat(I,";box-shadow:0px 0.54801px 1.64403px 0.54801px rgba(0, 0, 0, 0.11)"),H.style.marginTop="12px";H.innerHTML="<style>.apx-rsel{".concat(F,"}.apx-r{").concat(P,"}</style>");for(var q=function(e){return"star"!==D?e+1===x:e+1<=x},U=[],V=0;V<5;V++){var W=document.createElement("div");W.innerHTML="".concat("num"===D?"":"&nbsp;").concat(z[V]),q(V)&&W.classList.add("apx-rsel"),W.classList.add("apx-r"),U.push(W)}U.forEach((function(t,o){t.addEventListener("click",(function(){if(t.classList.add("apx-rsel"),e.selected_rating=o+1,e.is_answered=!0,to(e,n),"star"!==D){for(var i=0;i<o;i++)U[i].classList.remove("apx-rsel");for(var r=o+1;r<5;r++)U[r].classList.remove("apx-rsel")}else{for(var a=0;a<o+1;a++)U[a].classList.add("apx-rsel");for(var s=o+1;s<5;s++)U[s].classList.remove("apx-rsel")}})),H.appendChild(t)})),C.push(H)}var Y=document.createElement("div");Y.style.padding="14px",Y.style.display="flex",Y.style.flexDirection="column",Y.style.minHeight="340px";var X=document.createElement("style"),G="";d===g?G=eo(E.placeholder_text_color):d!==f&&d!==m||(G=function(e,t,n,o,i,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(i,";\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(i,";\n background-color: white;\n border-radius: ").concat(e===f?"50%":0,";\n }\n\n .apx-lc:hover input ~ .apx-i {\n border: 1px solid ").concat(o,";\n }\n\n .apx-lc input:checked ~ .apx-i {\n background-color: ").concat(t,";\n border: 1px solid ").concat(o,';\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===f?2:1,"px;\n left: ").concat(e===f?2:4,"px;\n width: ").concat(e===f?10:4,"px;\n height: ").concat(e===f?10:8,"px;\n border-radius: ").concat(e===f?"50%":"0",";\n background: ").concat(e===f?o:"transparent",";\n border: ").concat(e===f?"none":"solid white",";\n border-width: ").concat(e===f?"unset":"0 3px 3px 0",";\n -webkit-transform: ").concat(e===f?"unset":"rotate(45deg)",";\n -ms-transform: ").concat(e===f?"unset":"rotate(45deg)",";\n transform: ").concat(e===f?"unset":"rotate(45deg)",";\n }\n ")}(d,r,a,s,c,l),k&&(G+=eo(E.placeholder_text_color))),X.innerHTML=G.replaceAll("\n","").replace(/[\s]{2,999}/g,""),Y.appendChild(X);var Z=document.createElement("span");return Z.innerText=e.title,Z.style="margin-bottom:12px;color:".concat(o,";background-color:").concat(i,";font-size:16px;font-weight:600"),Y.appendChild(Z),C.forEach((function(e){return Y.appendChild(e)})),Y},io=function(e,t,n,o,i){var r=function(e,t,n){var o=e.cancel_button_color,i=e.previous_button_color,r=document.createElement("button"),a=document.createElement("button");r.disabled=0===t,r.setAttribute("type","button"),r.className="apx-b apx-pr",r.innerHTML="<style>.apx-pr::before{content:'\\2190';font-size:22px;color:".concat(i).concat(0===t?"54":"",";}.apx-pr{cursor:").concat(0===t?"no-drop":"pointer",";margin-top:-6px}</style>"),a.className="apx-b apx-cb",a.setAttribute("type","button"),a.innerHTML="<style>.apx-cb::before{content:'\\0000d7';font-size:26px;color:".concat(o,";}</style>");var s=document.createElement("div");s.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="".concat(t+1,"/").concat(n),s.appendChild(r),s.appendChild(c),s.appendChild(a),{prevButton:r,closeButton:a,headerNode:s}}(e,o,i),a=r.headerNode,s=r.prevButton,c=r.closeButton,l=function(e,t,n,o,i){var r=e.skip_text_color,a=e.submit_text_color,s=e.submit_active_color,c=e.submit_inactive_color,l=n===o-1||i?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===o-1?"Submit":"Next >","<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"),to(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}}(e,n,o,i,n.is_required),d=l.skipButton,p=l.submitButton,u=l.footerNode,h=oo(n,t,p),f=document.createElement("div");f.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}",f.appendChild(m),f.appendChild(a),f.appendChild(h),{questionRoot:f,footerNode:u,prevButton:s,closeButton:c,skipButton:d,submitButton:p}},ro=window.ApxorLogger,ao=c((function e(t){var n=this;a(this,e),l(this,"kduX",(function(){n.is_selected=!1,n.other_answer=null}));var o=t.id,i=t.value,r=t.is_other,s=t.next_question_id;if(!o||!i)throw new Error("Invalid Choice");this.id=o,this.value=i,this.is_other=r,this.next_question_id=s,this.is_selected=!1,this.other_answer=null})),so=c((function e(t){var n=this;a(this,e),l(this,"kduX",(function(){n.is_answered=!1,n.text_answer="",n.selected_rating=-1,n.choices.forEach((function(e){return e.kduX()}))}));var o=t.id,i=t.answer_mode,r=t.title,s=t.is_required,c=t.submit_text,p=t.choices,u=void 0===p?[]:p,h=t.text_config,b=void 0===h?null:h,y=t.randomize_choices,x=void 0!==y&&y,w=t.response_cfg,_=void 0===w?{}:w;if(!o||!i)throw new Error("Invalid question");var E=-1;switch(i){case"single_choice":E=f;break;case"multi_choice":E=m;break;case"text":E=g;break;case"rating":E=v;break;default:E=-1}if(this.answerMode=E,this.id=o,this.is_required=s,this.submit_text=c,this.randomize_choices=x,this.response_cfg=_,this.text_config=b,this.title=r,this.is_answered=!1,this.selected_rating=-1,this.choices=[],this.answerMode===f||this.answerMode===m){for(var k,C=[],T=0;T<u.length;T++){var O=new ao(u[T]);O.is_other?C.push(O):this.choices.push(O)}x&&(this.choices=d(this.choices).map((function(e,t,n){var o=t+Math.floor(Math.random()*(n.length-t)),i=[n[t],n[o]];return n[o]=i[0],n[t]=i[1],n[t]}))),(k=this.choices).push.apply(k,C)}})),co=c((function e(){var n=this;a(this,e),l(this,"initialize",(function(e,t,o){var i=o.delay,r=o.dialog_config,a=void 0===r?null:r,s=o.show_progress_bar,c=void 0===s||s,l=o.is_response_based_survey,d=void 0!==l&&l,p=o.questions,u=void 0===p?[]:p,h=o.show_success_message,f=void 0===h||h,m=o.auto_hide_message,v=void 0===m?2e3:m,g=o.success_message,b=void 0===g?"":g,y=o.question_text_color,x=void 0===y?"#002845":y,w=o.submit_active_color,_=void 0===w?"#017DFD":w,E=o.submit_inactive_color,k=void 0===E?"#017DFD65":E,C=o.option_bg_type,T=void 0===C?"filled":C,O=o.option_text_color_active,S=void 0===O?"#002845":O,A=o.option_text_color_inactive,L=void 0===A?"#002845":A,N=o.option_bg_color_active,M=void 0===N?"#FFF":N,D=o.option_bg_color_inactive,I=void 0===D?"#FFF":D,B=o.question_background_color,H=void 0===B?"#FFF":B,F=o.success_message_bg_color,z=void 0===F?"#109B15":F,P=o.success_message_icon_color,j=void 0===P?"#109B15":P,R=o.success_message_text_color,q=void 0===R?"#002845":R,U=o.skip_text_color,V=void 0===U?"#017DFD":U,W=o.cancel_button_color,Y=void 0===W?"#000":W,X=o.previous_button_color,G=void 0===X?"#000":X,Z=o.progress_bar_color,J=void 0===Z?"#017DFD":Z,Q=o.submit_text_color,K=void 0===Q?"#FFF":Q,$=o.width,ee=void 0===$?350:$,te=o.min_height,ne=void 0===te?40:te,oe=o.position,ie=void 0===oe?"center":oe,re=o.dim_background,ae=void 0===re||re,se=o.dim_bg_color,ce=void 0===se?"#313131":se,le=o.dim_bg_opacity,de=void 0===le?.54:le;n.configId=e,n.name=t,n.delay=i,n.is_response_based_survey=d,n.show_success_message=f,n.success_message=b,n.auto_hide_message=v,n.questions=[],n.answered_questions=[],n.width=ee,n.min_height=ne,n.layoutConfig={show_progress_bar:c,skip_text_color:V,cancel_button_color:Y,previous_button_color:G,progress_bar_color:J,submit_text_color:K,submit_active_color:_,submit_inactive_color:k,success_message_bg_color:z,success_message_icon_color:j,success_message_text_color:q,position:ie,dim_background:ae,dim_bg_color:ce,dim_bg_opacity:de},n.questionConfig={question_text_color:x,question_background_color:H,option_bg_color_active:M,option_bg_color_inactive:I,option_text_color_active:S,option_text_color_inactive:L,option_bg_type:T},a&&(n.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;n.questions.push(new so(u[pe])),n.answered_questions.push(-1)}catch(e){return ro.error("Failed to parse Q",pe,e),!1}return!(n.questions.length<1)||(n.isValid=!1,!1)})),l(this,"bRpq",(function(e,t){n.isValid&&setTimeout((function(){try{var o=window.ApxorRTM;if(null!==o.currentAction&&void 0!==o.currentAction)return void ro.error("An action is already being shown.");n.startTime=Date.now();var i=$n(n.width,n.min_height,t,n.layoutConfig);if(n.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",n.FUni("apx_survey_launched"),n.dialog_config){var r=n.dialog_config,a=r.icon_name,s=void 0===a?"":a,c=r.icon_width,l=r.icon_height,d=i.children[0];i.style.visibility="hidden",d.style.visibility="hidden",setTimeout((function(){d.innerHTML=function(e){var t,n,o,i=e.icon_name,r=void 0===i?"":i,a=e.title,s=void 0===a?"Some dummy title":a,c=e.yes_text,l=void 0===c?"Yes":c,d=e.icon_width,p=void 0===d?180:d,u=e.icon_height,h=void 0===u?100:u,f=e.no_text,m=void 0===f?"No, thanks":f,v=e.dialog_background_color,g=void 0===v?"#FFF":v,b=e.title_color,y=void 0===b?"#3C3C3C":b,x=e.yes_button_bg_color,w=void 0===x?"#017DFD":x,_=(e.no_button_bg_color,e.yes_button_text_color),E=void 0===_?"#FFF":_,k=e.no_button_text_color,C=void 0===k?"#017DFD":k,T=(e.hide_close_button,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(g,';align-items:center;margin-top:20px;border-radius:3px">\n ').concat((t=r,n=p,o=h,t&&""!==t&&0!==n&&0!==o?'<img id="apx_icon" src="'.concat(t,'" style="width:').concat(n,"px;height:").concat(o,'px;">'):""),'<span style="').concat(T(16,600),"text-align:center;color:").concat(y,';margin:12px 0px;">').concat(s,'</span>\n <button id="').concat("apx-dy",'" style="').concat(T(14,500),"color:").concat(E,";background-color:").concat(w,';border-radius:2px;border:none;padding:8px 20px;margin-bottom:10px;cursor:pointer">').concat(l,'</button>\n <button id="').concat("apx-dn",'" style="').concat(T(14,500),"color:").concat(C,';background:none;border:none;cursor:pointer;margin-bottom:20px">').concat(m,"</button>\n </div>\n ")}(n.dialog_config),document.getElementById("apx-dy").onclick=function(){n.FUni("apx_survey_dialog_yes_clicked"),d.style.minHeight=n.min_height+"%",n.PtRe(i,!0)},document.getElementById("apx-dn").onclick=function(){n.FUni("apx_survey_dialog_no_clicked"),n.dCQw(i)};var e=function(){i.style.visibility="visible",d.style.visibility="visible",d.style.minHeight=""===s||0===c||0===l?"13%":"25%",d.classList.toggle("open"),n.FUni("apx_survey_dialog_launched")};if(""!==s&&c>0&&l>0){var t=document.getElementById("apx_icon");t.onload=function(){e()},t.onerror=function(){n.FUni("apx_survey_dialog_icon_failed"),n.dCQw(i)}}else e()}),100)}else n.PtRe(i);e&&e((function(){return n.dCQw(i)}))}catch(e){ro.error(e)}}),n.delay)})),l(this,"PtRe",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=n.layoutConfig,i=o.show_progress_bar,r=o.progress_bar_color,a=document.createElement("div");a.style="height:4px;overflow:hidden;position:relative;margin-bottom:10px;";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),i||(a.style.visibility="hidden");var c=e.children[0];(t||c&&c.childElementCount>1)&&c.removeChild(c.children[c.childElementCount-1]),c.appendChild(a),n.YMPU(e,0),t||setTimeout((function(){e.children[0].classList.toggle("open")}),100)})),l(this,"YMPU",(function(e,t){if(!(t>=n.questions.length)){var o=n.questions[t],i=io(n.layoutConfig,n.questionConfig,o,t,n.questions.length),r=i.prevButton,a=void 0===r?null:r,s=i.closeButton,c=void 0===s?null:s,l=i.submitButton,d=void 0===l?null:l,p=i.skipButton,u=void 0===p?null:p,h=i.questionRoot,f=i.footerNode,m=e.children[0];m&&m.childElementCount>2&&(m.removeChild(m.children[m.childElementCount-1]),m.removeChild(m.children[m.childElementCount-1])),document.getElementById("apx-pb").style.transform="translateX(".concat(-(100-100/n.questions.length*(t+1)),"%)"),m.appendChild(h),m.appendChild(f),a&&(a.onclick=function(){t-1<0||(n.eFDD(t),n.YMPU(e,t-1))}),c&&c.addEventListener("click",(function(){n.FUni("apx_survey_close_clicked",{where:"question "+(t+1)}),n.eFDD(t),n.Ctxv(e,!1)})),d&&(d.onclick=function(){n.is_response_based_survey||(n.eFDD(t),t===n.questions.length-1?n.Ctxv(e,!0):n.YMPU(e,t+1))}),u&&(u.onclick=function(){t+1>=n.questions.length||(n.FUni("apx_survey_skip_clicked",{where:"question "+(t+1)}),n.eFDD(t),n.YMPU(e,t+1))})}})),l(this,"eFDD",(function(e){if(-1===n.answered_questions[e]){var t=n.EnSB(e);t.answers.length>0&&(n.FUni("apx_survey_".concat(n.questions[e].title),{answers:t.answerTexts}),n.answered_questions[e]=1)}})),l(this,"FUni",(function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.logEvent(e,i({survey_id:n.configId,name:n.name},o))})),l(this,"EnSB",(function(e){var t=n.questions[e];if(!t)return null;var o={answers:[],answerTexts:[],others:[],textBasedQuestionAnswers:[]},i=t.answerMode,r=t.choices,a=void 0===r?[]:r,s=t.selected_rating,c=void 0===s?-1:s,l=t.text_answer,d=void 0===l?"":l,p=t.is_answered,u=void 0!==p&&p,h=t.text_config,b=void 0===h?null:h;switch(i){case f:case m:a.forEach((function(e){e.is_selected&&(o.answers.push(e.id),o.answerTexts.push(e.value),e.is_other&&null!==e.other_answer&&""!==e.other_answer.trim()&&o.others.push({id:e.id,answer:e.other_answer}))}));break;case g:u&&""!==d&&""!==d.trim()&&null!==b&&(o.answers.push(b.id),o.answerTexts.push(d),o.textBasedQuestionAnswers.push({id:b.id,answer:d}));break;case v:-1!==c&&(o.answers.push(c),o.answerTexts.push(c))}return o})),l(this,"dCQw",(function(e){e.on_dismiss&&e.on_dismiss(),e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e),document.body.style.overflow=n.bodyOverflow,n.bodyOverflow=""}),400)})),l(this,"MIKC",(function(e){var t=e.children[0];t.style.minHeight="unset",t&&t.childElementCount>2&&(t.removeChild(t.children[t.childElementCount-1]),t.removeChild(t.children[t.childElementCount-1]));var o=document.getElementById("apx-pb");o.parentNode.removeChild(o);var i,r,a,s,c,l,d=(i=n.success_message,r=n.layoutConfig,a=r.success_message_bg_color,s=r.success_message_icon_color,c=r.success_message_text_color,(l=document.createElement("div")).style="display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;height:100%;background: ".concat(a,"; min-height:480px"),l.innerHTML='\n <span style="font-size: 40px;border-radius: 50%;padding: 10px;padding-bottom: 2px;padding-top: 2px;color: white;background: '.concat(s,';">&#10003;</span>\n <span style="font-size: 17px;margin-top:15px;color:').concat(c,'">').concat(i,"</span>\n "),l);t.appendChild(d),setTimeout((function(){n.dCQw(e)}),n.auto_hide_message)})),l(this,"Ctxv",(function(e,o){o&&n.show_success_message?n.MIKC(e):n.dCQw(e);var i={survey_id:n.configId,name:n.name,responses:[]};if(n.questions.forEach((function(e,t){var o=n.EnSB(t);if(o.answers.length>0){var r={question_id:e.id,answers:o.answers};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 r=Math.pow(10,3);i.time_taken=Math.round((Date.now()-n.startTime)/1e3*r)/r;var a=t.getController(),s=a.getFromStorage("_apx_cd",!0).session_info.launch_time;i.session_id=t.getSessionId(),i.is_completed=o,i.app_version=a.getFromStorage("apx_ver",!1),i.device_uuid=t.getClientId(),i.launch_time=s,i.user_attributes=a.getUserAttributes(),i.session_attributes=a.getSessionAttributes(),n.sTlx(i)}o&&n.FUni("apx_survey_completed"),n.questions.forEach((function(e,t){e.kduX(),n.answered_questions[t]=-1})),n.startTime=-1,n.bodyOverflow=""})),l(this,"sTlx",(function(e){var n=h.replace("<app_id>",t.getSiteId());fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})})),this.isValid=!0,this.dialog_config=null})),lo=c((function e(){a(this,e),l(this,"parse",(function(e,t,n){var o=new co;return o.initialize(e,t,n)?o:null}))})),po=window.ApxorLogger;var uo=c((function e(){var n=this;a(this,e),l(this,"initialize",(function(e,t,o){var i=o.delay,r=o.layout_type,a=void 0===r?"":r,s=o.html_config.data,c=void 0===s?"":s,l=o.window_attributes,d=l.width,p=void 0===d?"auto":d,u=l.height,h=void 0===u?"auto":u,f=l.dimmed_background,m=void 0===f||f,v=l.dismiss_outside_touch,g=void 0!==v&&v;return n.configId=e,n.name=t,n.delay=i,n.width=p,n.height=h,n.layoutConfig={layout_type:a,dimmed_background:m,dismiss_outside_touch:g},n.htmlConfig={data:c},""!=n.htmlConfig.data||(n.isValid=!1,!1)})),l(this,"WIft",(function(){if(!n.isValid)return!1;setTimeout((function(){try{Ao.getInstance().updateCount(n.configId);var e=function(e,t,n){var o=n.dimmed_background,i=document.createElement("div");i.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(o?"#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"),i.appendChild(a),i.appendChild(r),document.body.appendChild(i),i}(n.width,n.height,n.layoutConfig);n.layoutConfig.dismiss_outside_touch&&(document.getElementById("apx-oly").onclick=function(){n.KOHI(e)}),setTimeout((function(){e.children[0].classList.toggle("open"),e.children[0].innerHTML=n.htmlConfig.data,n.vURb("inapp_shown"),e.querySelectorAll("a").forEach((function(t){t.onclick=function(){return n.pULg(e,t)}}))}),100)}catch(e){po.error(e)}}),n.delay)})),l(this,"pULg",(function(e,o){var i=o.getAttribute("href");if(null!=i&&i.includes("apxor")){var r,a=i.replace(/^apxor:\/\/([^\?]*).*?$/,"$1");switch(a){case"cancel":n.vURb("walk_through_cancelled");break;case"xclose":n.vURb("InAppXIconClicked");break;case"close":r=i.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.vURb(b(""===r?"Button":r));break;case"dl_url":var s=i.replace(/(.*?)uri=([^\&]*).*?$/,"$2"),c=i.replace(/(.*?)external=([^\&]*).*?$/,"$2");r=i.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.vURb(b(""===r?"Button":r)),"true"==c?window.open(s,"_blank"):t.logClientEvent("REDIRECT",{url:s})}return n.KOHI(e,a),!1}return!0})),l(this,"KOHI",(function(e,t){"cancel"!==t&&n.vURb("inapp_dismissed"),e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e)}),300)})),l(this,"vURb",(function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.logEvent(e,i({id:n.configId,message_name:n.name},o))})),this.isValid=!0})),ho=c((function e(){a(this,e),l(this,"parse",(function(e,t,n){var o=new uo;return o.initialize(e,t,n)?o:null}))})),fo=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)}},mo=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)};var vo="<b>View Selection Mode: ON",go="<b>View Selection Mode: OFF</b>",bo="https://server.apxor.com/v1/sse/",yo=bo+"layout?appId=<aid>&deviceId=<uid>",xo=bo+"ui-config?appId=<aid>&deviceId=<uid>",wo=bo+"art-config?appId=<aid>&deviceId=<uid>",_o="https://server.apxor.com/v4/frontendapi/web/test-devices",Eo=_o+"?appId=<aid>",ko=_o+"/<uid>?appId=<aid>",Co=c((function e(){var n=this;a(this,e),l(this,"xJrV",null),l(this,"ZkfE",null),l(this,"bpSW",null),l(this,"xttL",null),l(this,"ELGh",""),l(this,"init",(function(e,o){var i=function(e){if(window.document)for(var t=e+"=",n=window.document.cookie.split(";"),o=0;o<n.length;o++){for(var i=n[o];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null}("_apx_ewc");if(i){var r=atob(i);try{var a=t.getController().getFromStorage(r,!0);if(!a)return;var s=a.app_id,c=a.expiry,l=a.volatile_id;if(n.ELGh=l,s===e&&Date.now()<=c){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=vo,n.ZkfE=d,document.body.appendChild(d),n.xJrV=document.createElement("style"),n.xJrV.innerHTML=".apx-highlight{height:auto;z-index:9999999999;outline: 2px solid red;cursor:default}",document.body.appendChild(n.xJrV),n.isSelectionMode=!1,n.testDeviceData=t.getController().getFromStorage("_apx_td",!0),n.testDeviceData){var p=n.testDeviceData,u=p.name,h=void 0===u?"":u,f=p.id,m=void 0===f?"":f;if(""!==h&&""!==m){n.RQuS("select","".concat(h," - ").concat(m),m);var v=new EventSource(xo.replace("<aid>",e).replace("<uid>",m)),g=new EventSource(wo.replace("<aid>",e).replace("<uid>",m));v.onmessage=g.onmessage=function(e){e&&e.data&&"{}"!==e.data&&n.cEyK(o,e.data)}}}n.yGbl(o)}}catch(e){}}})),l(this,"bFRe",(function(){n.ZkfE.parentNode.removeChild(n.ZkfE),n.xJrV.parentNode.removeChild(n.xJrV)})),l(this,"cEyK",(function(e,o){try{n.xttL.dispatchEvent(new CustomEvent("preview"));var i=JSON.parse(o),r=i.cmd;if("prev"===(void 0===r?"prev":r))if(i.hasOwnProperty("ui")){var a=function e(t){return[Math.random,function(){return e.last?windowId.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("-")}(36),s={configs:[{_id:a,enabled:!0,terminate_info:{auto_dismiss:!1,duration:1e3},meta:{name:"P",type:i.type},ui:i.ui}]};e.dpoy("SURVEY"!==i.type?0:1,s),t.getController().dispatchEvent(i.type,{name:i.type,additional_info:{uuid:a,name:"P"}})}else if(i.hasOwnProperty("messages")){var c=[],l=[];i.messages.forEach((function(e){"SURVEY"!==e.meta.type?l.push(e):c.push(e)})),l.length>0&&e.handleResponse(0,{configs:l}),c.length>0&&e.handleResponse(1,{configs:c})}}catch(e){console.error(e)}})),l(this,"yGbl",(function(e){var o=null!==n.testDeviceData&&void 0!==n.testDeviceData&&n.testDeviceData.id&&n.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<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="48" height="29.14" style="width:17px;position:absolute;top:7px;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 class="apx-cr" style="gap:0">\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(o?"none":"block",'">Add as test device</button>\n<button class="apx-b" id="apx-r" style="display:').concat(o?"block":"none",'">Remove as test device</button>\n<button class="apx-b" id="apx-ev" style="display:').concat(o&&n.isSelectionMode?"none":o?"block":"none",'">Enable view selection</button>\n<button class="apx-b" id="apx-dv" style="display:').concat(o&&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 0.54801px 1.64403px 0.54801px rgb(0 0 0 / 11%);border-radius:3px;padding:10px",a.setAttribute("id","apx-wr"),a.innerHTML=i,document.body.appendChild(a),n.xttL=a;var s=document.getElementById("apx-bh"),c=function(){a.style.opacity=.5,s.style.display="none"},l=setTimeout(c,3e3);a.addEventListener("mouseover",(function(){a.style.opacity=1,clearTimeout(l),s.style.display="flex"})),a.addEventListener("mouseout",(function(){l=setTimeout(c,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.lIof(e)},p.onclick=function(){fetch(ko.replace("<aid>",t.getSiteId()).replace("<uid>",n.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&&(t.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.Tghs())})).catch((function(e){return console.error(e)}))},u.onclick=function(){n.isSelectionMode=!0,window.addEventListener("mouseover",fo,!0),window.addEventListener("mouseout",mo,!0),n.clickListener=function(e){return 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))}(e,(function(e){var t=n.yOnm(e,!0),o=n.bQGH(e,!0);n.RQuS("view",location.href,t+"___"+o)}))},window.addEventListener("click",n.clickListener,!0),n.TkhW(!1),u.style.display="none",h.style.display="block"};var f=function(){n.Tghs(),h.style.display="none",u.style.display="block"};h.onclick=f,n.xttL.addEventListener("preview",f),n.xttL.addEventListener("added",(function(){d.style.display="none",p.style.display="block",s.style.display="flex",u.style.display="block"})),function(e){var t,n=window.innerHeight-8,o=8,i=window.innerWidth-8,r=8,a=0,s=0,c=0,l=0;function d(n){n.preventDefault(),n.stopPropagation(),n=n||window.event,c=n.clientX,l=n.clientY,t=e.getBoundingClientRect(),document.onmouseup=u,document.onmousemove=p}function p(d){d.preventDefault(),d.stopPropagation(),d=d||window.event,a=c-d.clientX,s=l-d.clientY,c=d.clientX,l=d.clientY;var p=e.offsetLeft-a,u=e.offsetTop-s;p<o||u<r||p+t.width>i||u+t.height>n||(e.style.top=e.offsetTop-s+"px",e.style.left=e.offsetLeft-a+"px",e.style.right="")}function u(){document.onmouseup=null,document.onmousemove=null}document.getElementById(e.id+"-h")?document.getElementById(e.id+"-h").onmousedown=d:e.onmousedown=d}(a)})),l(this,"Tghs",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:go;if(n.isSelectionMode){window.removeEventListener("mouseover",fo,!0),window.removeEventListener("mouseout",mo,!0),window.removeEventListener("click",n.clickListener,!0);for(var t=document.querySelectorAll(".apx-highlight"),o=0;o<t.length;o++){var i=t[o];i.classList.remove("apx-highlight")}n.TkhW(!0,e),n.isSelectionMode=!1}})),l(this,"TkhW",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:go;n.ZkfE.style.visibility="visible",e?(n.ZkfE.innerHTML=t,n.ZkfE.style.opacity=1):(n.ZkfE.innerHTML=vo,n.ZkfE.style.opacity=1),setTimeout((function(){n.ZkfE.style.opacity=0,n.ZkfE.style.visibility="hidden"}),1e3)})),l(this,"lIof",(function(e){var o=k(500,20,{}),i=o.children[0];i.style.flex="0 1 auto",i.style.maxHeight="calc(100% - 96px)",i.style.display="flex",i.style.flexDirection="column";var r=t.getController().getDevInfo(),a=t.getController().getUserAttributes().apx_browser,s=r.hardware_model,c=r.os_version,l=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(c,'</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(l,'</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 ');o.style.visibility="hidden",i.style.visibility="hidden",i.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()?m.removeAttribute("disabled"):m.setAttribute("disabled","")},setTimeout((function(){o.style.visibility="visible",i.style.visibility="visible",i.classList.toggle("open"),h.parentNode.parentNode.children[0].classList.add("apx-il-f")}),100);var f=function(){i.classList.toggle("open"),setTimeout((function(){o.parentNode.removeChild(o)}),400)};document.getElementById("apx-bc").onclick=function(){f()};var m=document.getElementById("apx-bd");m.onclick=function(){i.children[1].classList.add("apx-loading"),t.getController().makePostRequest(Eo.replace("<aid>",t.getSiteId()),{model:s,id:l,nick_name:h.value},{apx_web_key:"WTCKFAIVAJKYJA3HCV80WIKZU98R9NJG"},(function(){var o={id:l,name:h.value};t.getController().persistToStorage("_apx_td",o,!0),n.testDeviceData=o,n.RQuS("select","".concat(h.value," - ").concat(l),l,(function(){i.children[1].classList.remove("apx-loading"),n.xttL.dispatchEvent(new CustomEvent("added"))}));var r=new EventSource(xo.replace("<aid>",t.getSiteId()).replace("<uid>",l)),a=new EventSource(wo.replace("<aid>",t.getSiteId()).replace("<uid>",l));r.onmessage=a.onmessage=function(t){t&&t.data&&"{}"!==t.data&&n.cEyK(e,t.data)},f()}),(function(){}))}})),l(this,"RQuS",(function(e,o,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},s=t.getController().getDevInfo(),c={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:e,navigation:o,orientation:i},layout:[]};t.getController().makePostRequest(yo.replace("<aid>",t.getSiteId()).replace("<uid>",n.ELGh),c,{},r,a)})),l(this,"yOnm",(function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var o=[],i=e;i;){var r=n.yAlp(i,!!t,i===e);if(!r)break;if(o.push(r),r.optimized)break;i=i.parentNode}return o.reverse(),o.join(" > ")})),l(this,"yAlp",(function(e,t,n){if(e.nodeType!==Node.ELEMENT_NODE)return null;var o=e.getAttribute("id");if(t){if(o)return new To(c(o),!0);var i=e.nodeName.toLowerCase();if("body"===i||"head"===i||"html"===i)return new To(e.nodeName.toLowerCase(),!0)}var r=e.nodeName.toLowerCase();if(o)return new To(r.toLowerCase()+c(o),!0);var a=e.parentNode;if(!a||a.nodeType===Node.DOCUMENT_NODE)return new To(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,o){return t&&0===o||!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,o===n):e}))}for(var d=s(e),p=!1,u=!1,h=-1,f=-1,m=a.children,v=0;(-1===h||!u)&&v<m.length;++v){var g=m[v];if(g.nodeType===Node.ELEMENT_NODE)if(f+=1,g!==e){if(!u&&g.nodeName.toLowerCase()===r.toLowerCase()){p=!0;var b=new Set(d);if(b.size)for(var y=s(g),x=0;x<y.length;++x){var w=y[x];if(b.has(w)&&(b.delete(w),!b.size)){u=!0;break}}else u=!0}}else h=f}var _=r.toLowerCase();if(n&&"input"===r.toLowerCase()&&e.getAttribute("type")&&!e.getAttribute("id")&&!e.getAttribute("class")&&(_+='[type="'+e.getAttribute("type")+'"]'),u)_+=":nth-child("+(h+1)+")";else if(p)for(var E in d)_+="."+l(d[E].substr(1));return new To(_,!1)})),l(this,"bQGH",(function(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";for(var o=[],i=e;i;){var r=n.BuJC(i,t);if(!r)break;if(o.push(r),r.optimized)break;i=i.parentNode}return o.reverse(),(o.length&&o[0].optimized?"":"/")+o.join("/")})),l(this,"BuJC",(function(e,t){var o,i=n.ULDd(e);if(-1===i)return null;switch(e.nodeType){case Node.ELEMENT_NODE:if(t&&e.getAttribute("id"))return new To('//*[@id="'+e.getAttribute("id")+'"]',!0);o=e.localName;break;case Node.ATTRIBUTE_NODE:o="@"+e.nodeName;break;case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:o="text()";break;case Node.PROCESSING_INSTRUCTION_NODE:o="processing-instruction()";break;case Node.COMMENT_NODE:o="comment()";break;case Node.DOCUMENT_NODE:default:o=""}return i>0&&(o+="["+i+"]"),new To(o,e.nodeType===Node.DOCUMENT_NODE)})),l(this,"ULDd",(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,o=e.parentNode?e.parentNode.children:null;if(!o)return 0;for(var i=0;i<o.length;++i)if(t(e,o[i])&&o[i]!==e){n=!0;break}if(!n)return 0;var r=1;for(i=0;i<o.length;++i)if(t(e,o[i])){if(o[i]===e)return r;++r}return-1}))})),To=function(e,t){this.value=e,this.optimized=t||!1};To.prototype={toString:function(){return this.value}};var Oo=window.ApxorLogger,So=new(c((function e(){var n=this;a(this,e),l(this,"version",123),l(this,"UeSs",{}),l(this,"isShowingAction",!1),l(this,"currentAction",null),l(this,"HUuv",new lo),l(this,"Sskc",new ho),l(this,"ghxH",new Co),l(this,"uoeo",null),l(this,"init",(function(e){n.uoeo=e;var o=t.getController(),i=Ao.getInstance(),r=t.getSiteId(),a=function(e,t){var n=function(n){return n.replace("<app_id>",e).replace("<u_id>",t)};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")}}(r,t.getClientId()),s=a.rtaValidateUrl,c=a.rtaSyncUrl,l=a.surveysValidateUrl,d=a.surveysSyncUrl;i.initialize(),i.fetch(0,s,c,n.handleResponse),i.fetch(1,l,d,n.handleResponse),o.registerForEvent("IN_LINE",n.eXXz),o.registerForEvent("IN_APP",n.wVvz),o.registerForEvent("SURVEY",n.rSNA),o.registerForEvent("ONBOARDING",n.gebT),n.ghxH.init(r,n),Oo.debug("Registered for events")})),l(this,"show",(function(e,t,o,i){try{if(null!==n.currentAction&&void 0!==n.currentAction)return void Oo.error("An action already being shown");var r=JSON.parse(e),a={};a.auto_dismiss=t>0,a.duration=t;var s=function(){n.logActionEvent("inline_shown",o,i),n.updateCount(o),n.isShowingAction=!0},c=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n.isShowingAction=!1,n.currentAction=null,e||n.logActionEvent("inline_dismissed",o,i)},l=r.display_type,d={configId:o,configName:i};"inline"===l?n.currentAction=Vn(r,[],a,d,n,s,c):"coach_mark"===l?function(e,t,n,o,i,r){var a=window.ApxorRTM;if(null===a.currentAction||void 0===a.currentAction)if(e&&e.delay<=0){var s=Kn(e,t,n,o,i);r(s)}else setTimeout((function(){if(null===a.currentAction||void 0===a.currentAction){var s=Kn(e,t,n,o,i);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")}(r,d,a,s,c,(function(e){n.currentAction=e})):Oo.error("Unknown type",l)}catch(e){n.currentAction=null,n.isShowingAction=!1,window.ApxorLogger.error(e)}})),l(this,"logActionEvent",(function(e,n,o){t.logEvent(e,{id:n,message_name:o})})),l(this,"logClientEvent",(function(e,n){t.logClientEvent(e,n)})),l(this,"updateCount",(function(e){Ao.getInstance().updateCount(e)})),l(this,"QvLB",(function(){if(null!==n.currentAction&&void 0!==n.currentAction){n.isShowingAction=!1;try{n.currentAction()}catch(e){}finally{n.currentAction=null}}})),l(this,"handleResponse",(function(e,t){""===e?(Oo.debug("No configs available"),n.uoeo&&n.uoeo()):(Oo.debug("Fetched config from server",e),n.dpoy(e,t),Ao.getInstance().parse(t),n.uoeo&&n.uoeo())})),l(this,"dpoy",(function(e,t){if(y(t)&&y(t.configs)){var o=t.configs;if(!Array.isArray(o))return;for(var i=0;i<o.length;i++){var r=o[i],a=r._id,s=r.meta.name,c=r.type,l=r.ui;1===e?l=n.HUuv.parse(a,s,l):"IN_APP"===c&&(l=n.Sskc.parse(a,s,l)),null!==l?n.UeSs[a]={ui:l,uis:r.uis,terminationConfig:r.terminate_info,name:s}:console.warn("Failed to parse the config",a)}Oo.debug("Configs: ",n.UeSs)}})),l(this,"eXXz",(function(e){if(y(e.additional_info)){var t=e.additional_info.uuid;if(n.UeSs[t]){var o=n.UeSs[t],i=o.ui,r=o.terminationConfig,a=o.name;n.show(JSON.stringify(i),r.auto_dismiss?r.duration:-1,t,a)}}})),l(this,"wVvz",(function(e){if(y(e.additional_info)){var t=e.additional_info.uuid;if(n.UeSs[t])n.UeSs[t].ui.WIft()}})),l(this,"rSNA",(function(e){if(y(e.additional_info)){var t=e.additional_info.uuid;if(n.UeSs[t]){n.UeSs[t].ui.bRpq((function(e){n.updateCount(t),n.isShowingAction=!0,n.currentAction=e}),(function(){n.isShowingAction=!1,n.currentAction=null}))}}})),l(this,"gebT",(function(e){}))})));window.ApxorRTM=So;var Ao=new(function(){function e(){a(this,e)}return c(e,[{key:"getInstance",value:function(){return(n||window["apxor-qe"]).getInstance()}}]),e}());try{void 0===e&&null===e||(e.default=So,module.exports=e.default)}catch(e){}e.ceWrapper=Ao,e.default=So,Object.defineProperty(e,"__esModule",{value:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apxor-rtm",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "author": "Uma Sankar Yedida <umasankar.yedida@apxor.com> (https://www.apxor.com)",
5
5
  "contributors": [
6
6
  {