apxor-rtm 1.2.0 → 1.2.2
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.
- package/dist/apxor.rtm.min.js +6 -6
- package/package.json +2 -2
package/dist/apxor.rtm.min.js
CHANGED
|
@@ -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,
|
|
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};
|
|
2
2
|
/*! shepherd.js 4.0.0-beta.1 */
|
|
3
|
-
function
|
|
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 M(){return(M=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 N(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 z(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?B(e):t}function H(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 j(e){return e instanceof HTMLElement}function P(e){return"function"==typeof e}function F(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 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
|
|
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 Y="undefined"!=typeof window&&"undefined"!=typeof document,V=Y?navigator.userAgent:"",W=/MSIE |Trident\//.test(V),U=/UCBrowser\//.test(V),X=Y&&/iPhone|iPad|iPod/.test(navigator.platform),Z={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},G=["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(Z);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||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(
|
|
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 C(e){return(C="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 Le="undefined"!=typeof window&&"undefined"!=typeof document,Ae=["Edge","Trident","Firefox"],Se=0,Me=0;Me<Ae.length;Me+=1)if(Le&&navigator.userAgent.indexOf(Ae[Me])>=0){Se=1;break}var Ne=Le&&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()}),Se))}};function De(e){return e&&"[object Function]"==={}.toString.call(e)}function Ie(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Be(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=Ie(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?e:Fe(Be(e))}var He=Le&&!(!window.MSInputMethodContext||!document.documentMode),ze=Le&&/MSIE 10/.test(navigator.userAgent);function Pe(e){return 11===e?He:10===e?ze:He||ze}function je(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"===Ie(n,"position")?je(n):n:e?e.ownerDocument.documentElement:document.documentElement}function qe(e){return null!==e.parentNode?qe(e.parentNode):e}function Re(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&&je(a.firstElementChild)!==a?je(c):c;var l=qe(e);return l.host?Re(l.host,t):Re(e,qe(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 We(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 Ve(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 Ue(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 Xe(e){var t=e.body,n=e.documentElement,o=Pe(10)&&getComputedStyle(n);return{height:Ue("Height",t,n,o),width:Ue("Width",t,n,o)}}var Je=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ze=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}}(),Ge=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 Qe(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?Xe(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=Ie(e);c-=Ve(d,"x"),l-=Ve(d,"y"),i.width-=c,i.height-=l}return $e(i)}function et(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Pe(10),i="HTML"===t.nodeName,r=Qe(e),a=Qe(t),s=Fe(e),c=Ie(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 tt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=et(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 nt(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Ie(e,"position"))return!0;var n=Be(e);return!!n&&nt(n)}function ot(e){if(!e||!e.parentElement||Pe())return document.documentElement;for(var t=e.parentElement;t&&"none"===Ie(t,"transform");)t=t.parentElement;return t||document.documentElement}function it(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=i?ot(e):Re(e,t);if("viewport"===o)r=tt(a,i);else{var s=void 0;"scrollParent"===o?"BODY"===(s=Fe(Be(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===o?e.ownerDocument.documentElement:o;var c=et(s,a,i);if("HTML"!==s.nodeName||nt(a))r=c;else{var l=Xe(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 rt(e){return e.width*e.height}function at(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=it(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:rt(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 st(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?ot(t):Re(t,n);return et(n,i,o)}function ct(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 lt(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 dt(e,t,n){n=n.split("-")[0];var o=ct(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[lt(s)],i}function pt(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function ut(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=pt(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&&De(n)&&(t.offsets.popper=$e(t.offsets.popper),t.offsets.reference=$e(t.offsets.reference),t=n(t,e))})),t}function ht(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=st(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=at(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=dt(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=ut(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function ft(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function mt(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 vt(){return this.state.isDestroyed=!0,ft(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[mt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function gt(e){var t=e.ownerDocument;return t?t.defaultView:window}function yt(e,t,n,o){n.updateBound=o,gt(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 bt(){this.state.eventsEnabled||(this.state=yt(this.reference,this.options,this.state,this.scheduleUpdate))}function xt(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,gt(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 wt(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function _t(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&wt(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var Et=Le&&/Firefox/i.test(navigator.userAgent);function kt(e,t,n){var o=pt(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 Ct=["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"],Tt=Ct.slice(3);function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Tt.indexOf(e),o=Tt.slice(n+1).concat(Tt.slice(0,n));return t?o.reverse():o}var Lt="flip",At="clockwise",St="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(pt(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){wt(n)&&(i[t]+=n*("-"===e[o-1]?-1:1))}))})),i}var Nt={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:Ge({},c,r[c]),end:Ge({},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=wt(+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||je(e.instance.popper);e.instance.reference===n&&(n=je(n));var o=mt("transform"),i=e.instance.popper.style,r=i.top,a=i.left,s=i[o];i.top="",i.left="",i[o]="";var c=it(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])),Ge({},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))),Ge({},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(!kt(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=ct(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=Ie(e.instance.popper),g=parseFloat(v["margin"+d],10),y=parseFloat(v["border"+d+"Width"],10),b=m-e.offsets.popper[p]-g-y;return b=Math.max(Math.min(a[l]-f,b),0),e.arrowElement=o,e.offsets.arrow=(Ge(n={},p,Math.round(b)),Ge(n,u,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(ft(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=it(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],i=lt(o),r=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Lt:a=[o,i];break;case At:a=Ot(o);break;case St:a=Ot(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=lt(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,y=-1!==["top","bottom"].indexOf(o),b=!!t.flipVariations&&(y&&"start"===r&&h||y&&"end"===r&&f||!y&&"start"===r&&m||!y&&"end"===r&&v),x=!!t.flipVariationsByContent&&(y&&"start"===r&&f||y&&"end"===r&&h||!y&&"start"===r&&v||!y&&"end"===r&&m),w=b||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,dt(e.instance.popper,e.offsets.reference,e.placement)),e=ut(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=lt(t),e.offsets.popper=$e(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!kt(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=pt(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=pt(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=je(e.instance.popper),c=Qe(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||!Et),p="bottom"===n?"top":"bottom",u="right"===o?"left":"right",h=mt("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 y={"x-placement":e.placement};return e.attributes=Ke({},y,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 _t(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&&_t(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,i){var r=st(i,t,e,n.positionFixed),a=at(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),_t(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Dt=function(){function e(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Je(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=Ne(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&&De(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 Ze(e,[{key:"update",value:function(){return ht.call(this)}},{key:"destroy",value:function(){return vt.call(this)}},{key:"enableEventListeners",value:function(){return bt.call(this)}},{key:"disableEventListeners",value:function(){return xt.call(this)}}]),e}();Dt.Utils=("undefined"!=typeof window?window:global).PopperUtils,Dt.placements=Ct,Dt.Defaults=Nt;
|
|
33
|
+
var Ae="undefined"!=typeof window&&"undefined"!=typeof document,Le=["Edge","Trident","Firefox"],Me=0,Ne=0;Ne<Le.length;Ne+=1)if(Ae&&navigator.userAgent.indexOf(Le[Ne])>=0){Me=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()}),Me))}};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 ze(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function He(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:He(ze(e))}var je=Ae&&!(!window.MSInputMethodContext||!document.documentMode),Pe=Ae&&/MSIE 10/.test(navigator.userAgent);function Fe(e){return 11===e?je:10===e?Pe:je||Pe}function Re(e){if(!e)return document.documentElement;for(var t=Fe(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 Ye(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?Ye(l.host,t):Ye(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 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],Fe(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function Ze(e){var t=e.body,n=e.documentElement,o=Fe(10)&&getComputedStyle(n);return{height:Xe("Height",t,n,o),width:Xe("Width",t,n,o)}}var Ge=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(Fe(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?Ze(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=Fe(10),i="HTML"===t.nodeName,r=et(e),a=et(t),s=He(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=ze(e);return!!n&&ot(n)}function it(e){if(!e||!e.parentElement||Fe())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):Ye(e,t);if("viewport"===o)r=nt(a,i);else{var s=void 0;"scrollParent"===o?"BODY"===(s=He(ze(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=Ze(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):Ye(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=He(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(He(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",Mt="counterclockwise";function Nt(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]:Nt(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 Mt: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]:{};Ge(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
|
|
39
|
+
var Bt=1,zt=[];function Ht(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,N(),T(),f=he(B,o.interactiveDebounce),Se(v,n,o,w.state.isVisible),w.popperChildren=ye(v),w.popperInstance&&(G.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,Z.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,Z.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,N(),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",Y),document.removeEventListener("mousemove",f),zt=zt.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 M(e,t,n){void 0===n&&(n=!1),C().addEventListener(e,t,n),h.push({eventType:e,handler:t,options:n})}function N(){E()&&(M("touchstart",I,J),M("touchend",z,J)),ve(w.props.trigger,"click")||M("click",(function(){Q.isTouch||!0!==w.props.hideOnClick||w.hide()})),w.props.trigger.trim().split(" ").forEach((function(e){if("manual"!==e)switch(M(e,I),e){case"mouseenter":M("mouseleave",z);break;case"focus":M(W?"focusout":"blur",H)}}))}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&&!j(e))if(w.state.isVisible||(n=e.type,e instanceof MouseEvent&&zt.forEach((function(t){return t(e)}))),"click"===e.type&&!1!==w.props.hideOnClick&&w.state.isVisible)Y(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(),Y(t))}function z(e){if(!j(e))return w.props.interactive?(document.body.addEventListener("mouseleave",Y),document.addEventListener("mousemove",f),void zt.push(f)):void Y(e)}function H(e){e.target===C()&&(w.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||Y(e))}function j(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]),F()},onUpdate:function(e){c(e),fe(n&&n.onUpdate,l.onUpdate,[e]),F()}});w.popperInstance=new It(e,v,l)}function F(){!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,Z.delay);t?o=setTimeout((function(){w.show()}),t):w.show()}function Y(e){if(w.clearDelayTimeouts(),w.props.onUntrigger(w,e),w.state.isVisible){w.state.isScheduledToShow=!1;var t=ie(w.props.delay,1,Z.delay);t?i=setTimeout((function(){w.state.isVisible&&w.hide()}),t):r=requestAnimationFrame((function(){w.hide()}))}else A()}}function jt(e,t){document.addEventListener("touchstart",$,q({},J,{capture:!0})),window.addEventListener("blur",te);var n=q({},Z,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&&Ht(t,n);return o&&e.push(o),e}),[]);return ae(e)?o[0]:o}jt.version="5.0.0-alpha.2",jt.defaultProps=Z,jt.currentInput=Q,jt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Z[t]=e[t]}))},jt.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)}}))},Y&&setTimeout((function(){me(document.querySelectorAll("[data-tippy]")).forEach((function(e){var t=e.getAttribute("data-tippy");t&&jt(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(R){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 zt=Ut("shepherd"),Pt=Ut("shepherd-has-title"),jt={computeStyle:{enabled:!0,fn:function(e){return e.styles=S({},e.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),e}},addShepherdClass:zt},qt={positionFixed:!0,modifiers:{addShepherdClass:zt}};function Rt(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 Wt(){if(j(Ht))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=Xt.call(this,e),this.target=e.element||document.body,this.el.classList.add("shepherd-element")}function Vt(){var e=this.options.attachTo||{},t=S({},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 Ut(e){return{enabled:!0,fn:function(t){return t.instance.popper.classList.add(e),t}}}function Xt(e){if(!e.element)return Zt.call(this);var t=Jt.call(this,e);return Ht(e.element,t)}function Jt(e){var t={content:this.el,flipOnUpdate:!0,placement:e.on||"right"};return S(t,this.options.tippyOptions),this.options.title&&S(qt.modifiers,{addHasTitleClass:Pt}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&S(qt,this.options.tippyOptions.popperOptions),t.popperOptions=qt,t}function Zt(){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){A(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&&S(qt.modifiers,{addHasTitleClass:Pt});var t=S({},qt,e.popperOptions,{modifiers:S(jt,e.popperOptions.modifiers)});return e.popperOptions=t,Ht(document.body,e)}var Gt=function(){function e(){T(this,e)}return L(e,[{key:"on",value:function(e,t,n){var o=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];j(this.bindings)&&(this.bindings={}),j(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(j(this.bindings)||j(this.bindings[e]))return!1;j(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(!j(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 Kt(e){var t=this;return function(n){if(t.isOpen()){var o=t.el&&n.target===t.el;(!j(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(!j(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 Qt(e,t){var n=this;e.events=e.events||{},j(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(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 en(e){var t=this;e.addEventListener("click",(function(e){e.preventDefault(),t.cancel()}))}function tn(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 nn=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})}}}}));nn.polyfill;nn.polyfill();var on,rn=(on=0,function(){return++on}),an=function(e){function t(e,n){var o;return T(this,t),(o=B(this,N(t).call(this,e,n))).tour=e,tn.call(I(o),["_show","cancel","complete","destroy","hide","isOpen","scrollTo","setupElements","show"]),o.setOptions(n),o.bindAdvance=$t.bind(I(o)),o.bindButtonEvents=Qt.bind(I(o)),o.bindCancelLink=en.bind(I(o)),o.setupTooltip=Wt.bind(I(o)),o.parseAttachTo=Vt.bind(I(o)),B(o,I(o))}return M(t,e),L(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=Rt('<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=Rt('<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=Rt('<div class="shepherd-text"\n id="'.concat(t,'"\n ></div>')),o=this.options.text;z(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=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=Rt('<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),j(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),H(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(){j(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;z(this.options.scrollToHandler)?this.options.scrollToHandler(t):H(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(rn()),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(z(this.options.beforeShowPromise)){var t=this.options.beforeShowPromise();if(!j(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}(Gt),sn="http://www.w3.org/2000/svg",cn="shepherdModalOverlayContainer",ln="shepherdModalMask",dn="shepherdModalMaskRect",pn="shepherdModalMaskOpening",un="shepherd-modal-is-visible",hn="shepherd-modal-target";function fn(){var e,t=((e=document.createElementNS(sn,"svg")).setAttributeNS(null,"id",cn),e),n=document.createElementNS(sn,"defs"),o=function(){var e=document.createElementNS(sn,"mask");return yn(e,{height:"100%",id:ln,width:"100%",x:"0",y:"0"}),e}(),i=function(){var e=document.createElementNS(sn,"rect");return yn(e,{fill:"#FFFFFF",height:"100%",id:dn,width:"100%",x:"0",y:"0"}),e}(),r=function(){var e=document.createElementNS(sn,"rect");return yn(e,{fill:"#000000",id:pn}),e}(),a=function(){var e=document.createElementNS(sn,"rect");return yn(e,{height:"100%",width:"100%",x:"0",y:"0"}),e.setAttribute("mask","url(#".concat(ln,")")),e}();return o.appendChild(i),o.appendChild(r),n.appendChild(o),t.appendChild(n),t.appendChild(a),t}function mn(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 vn(e){e.preventDefault()}function gn(e){e.stopPropagation()}function yn(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function bn(e){var t=e.options.attachTo;if(!t)return null;var n=C(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 xn(){"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(cn));window.addEventListener("touchmove",vn,{passive:!1}),e&&e.addEventListener("touchmove",gn,!1)}var wn=function(){function e(t){return T(this,e),this.createModalOverlay(),this.options=t,this}return L(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(un)}catch(e){}}},{key:"createModalOverlay",value:function(){if(!this._modalOverlayElem){var e=document.getElementById("shepherdModalOverlayContainer");this._modalOverlayElem=e||fn(),this._modalOverlayOpening=this._modalOverlayElem.querySelector("#".concat(pn)),this.hide(),e||document.body.appendChild(this._modalOverlayElem)}}},{key:"hide",value:function(){document.body.classList.remove(un),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(un),this._modalOverlayElem&&(this._modalOverlayElem.style.display="block")}},{key:"_styleForStep",value:function(e){var t,n,o,i,r,a=this._modalOverlayOpening,s=bn(e),c=e.options.modalOverlayOpeningPadding;s?(mn(s,a,c),this._onScreenChange=(n=mn.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)}),xn.call(this)):(t=this._modalOverlayOpening)&&t instanceof SVGElement&&yn(t,{height:"0",x:"0",y:"0",width:"0"})}}]),e}(),_n=!1;if("undefined"!=typeof window){var En={get passive(){_n=!0}};window.addEventListener("testPassive",null,En),window.removeEventListener("testPassive",null,En)}var kn,Cn,Tn="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),On=[],Ln=!1,An=-1,Sn=function(e){return On.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Mn=function(e){var t=e||window.event;return!!Sn(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Nn=function(e,t){if(Tn){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!On.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};On=[].concat(d(On),[n]),e.ontouchstart=function(e){1===e.targetTouches.length&&(An=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-An;!Sn(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)},Ln||(document.addEventListener("touchmove",Mn,_n?{passive:!1}:void 0),Ln=!0)}}else{!function(e){setTimeout((function(){if(void 0===Cn){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Cn=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===kn&&(kn=document.body.style.overflow,document.body.style.overflow="hidden")}))}(t);var o={targetElement:e,options:t||{}};On=[].concat(d(On),[o])}},Dn=function(){Tn?(On.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),Ln&&(document.removeEventListener("touchmove",Mn,_n?{passive:!1}:void 0),Ln=!1),On=[],An=-1):(setTimeout((function(){void 0!==Cn&&(document.body.style.paddingRight=Cn,Cn=void 0),void 0!==kn&&(document.body.style.overflow=kn,kn=void 0)})),On=[])},In={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function Bn(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!1),this._onScreenChange=null),window.removeEventListener("touchmove",vn,{passive:!1})}var Fn,Hn=function(){var e=0;return function(){return++e}}(),zn=new Gt,Pn=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};T(this,t),e=B(this,N(t).call(this,n)),tn.call(I(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=I(e),zn.trigger(n,t)}))})),e.modal=new wn(n),e._setTooltipDefaults(),e._setTourID(),B(e,I(e))}return M(t,e),L(t,[{key:"addStep",value:function(e,t){var n,o;return j(t)?o=e:(n=e,o=t),o instanceof an?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()})),Bn.call(this),(t=this.tourObject)&&t.steps.forEach((function(e){if(e.options&&!1===e.options.canClickTarget&&e.options.attachTo){var t=bn(e);t instanceof HTMLElement&&(t.style.pointerEvents="auto")}})),this.trigger(e),zn.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&Dn(),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 zn.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=S({},this.options.defaultStepOptions,e),new an(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=z(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&&Nn(),this.currentStep=null,this._setupActiveTour(),this.next()}},{key:"_setupActiveTour",value:function(){this.modal.createModalOverlay(),this._addBodyAttrs(),this.trigger("active",{tour:this}),zn.activeTour=this}},{key:"_styleTargetElementForStep",value:function(e){var t,n,o=bn(e);o&&(t=o,(n=document.querySelector("".concat(hn)))&&n.classList.remove(hn),t.classList.add(hn),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(){Ht.setDefaultProps(In)}},{key:"_updateStateBeforeShow",value:function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}},{key:"_setTourID",value:function(){var e=this.options.tourName||"tour",t=Hn();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}(Gt);S(zn,{Tour:Pn,Step:an,Evented:Gt});var jn=function(e){return 50===e?10:16},qn=function(e,t){switch(e.toLowerCase()){case"top":return"translateY(".concat(jn(t)-26,"px)");case"right":return"translateX(".concat(jn(t),"px)");case"bottom":return"translateY(".concat(jn(t),"px)");case"left":return"translateX(".concat(jn(t)-26,"px)")}},Rn=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,y=void 0===g?"0 8px 16px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)":g,b=e.opacity,w=void 0===b?1:b,k=e.dismiss_outside_touch,C=void 0!==k&&k,T=e.position,O=void 0===T?"TOP":T,L=e.text_config,A=void 0===L?{}:L,S=e.title_config,M=void 0===S?{}:S,N=e.view_id,D=e.show_shadow,I=void 0!==D&&D,B=e.show_close_icon,F=void 0!==B&&B,H=e.dim_background_color,z=void 0===H?"#0a0a0a":H,P=e.dim_background_opacity,j=void 0===P?.5:P,q=e.layout_type,R=void 0===q?"default":q,Y=e.pb_color,W=void 0===Y?"orange":Y,V=e.index,U=void 0===V?0:V,X=e.total,J=void 0===X?1:X,Z=t.configId,G=t.configName,K=E(u,Fn,Z,G),$=K.buttons_array,Q=K.buttons_css,ee={color:A.color,fontSize:A.size,fontFamily:A.font_family,fontStyle:A.style};if(A.margin_config&&Object.keys(A.margin_config).length>0){var te=A.margin_config;ee.margin="".concat(te.top,"px ").concat(te.right,"px ").concat(te.bottom,"px ").concat(te.left,"px")}var ne=A.style;"bold"===ne&&(ee.fontWeight=ne);var oe,ie={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 re=M.margin_config;ie.margin="".concat(re.top,"px ").concat(re.right,"px ").concat(re.bottom,"px ").concat(re.left,"px")}switch("bold"===(ne=M.style)&&(ee.fontWeight=ne),R){case"with_progress":oe='\n<div>\n <div style="height: 6px;background: '.concat(W,";width: ").concat((U+1)/J*100,"%;border-radius: ").concat(v.enabled?v.width:0,'px;"></div>\n <header class="shepherd-header" style="').concat(M?"padding: 10px 10px 0 10px":"",'">\n ').concat(M?'<h3 class="shepherd-title" id="apxor-step-'.concat(U,'-label" style="padding: 0 !important;padding-right: 0.7em;">').concat(M.text,"</h3>"):"",'\n </header>\n <p style="padding: 8px 10px">').concat(A.text,"</p>\n</div>\n "),oe=(new DOMParser).parseFromString(oe,"text/html").body.children[0];break;default:oe=[A&&A.text?A.text:"Tap here"]}var ae={"border-radius":v.enabled?v.width:0,background:c,"border-color":d.color,"border-width":d.width},se=null;try{se=document.querySelector("#"+N)}catch(e){}if(!se)try{se=document.querySelector(N)}catch(e){}if(se||(se=x(N)),se){var ce=document.createElement("span");ce.setAttribute("id","apxor-style-"+Z+"-step-"+U);var le=document.createElement("style");le.innerHTML='\n#shepherdModalOverlayContainer {\n -ms-filter: "progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)";\n filter: alpha(opacity=50);height: 100vh;left: 0;opacity: '.concat(null!=j?j:.5,";position: fixed;\n top: 0;transition: all .3s ease-out;width: 100vw;z-index: 9997;fill: ").concat(null!=z?z:"transparent","\n}\n#shepherdModalOverlayContainer #shepherdModalMask, #shepherdModalOverlayContainer #shepherdModalMaskRect {\n height: 100vh;width: 100vw\n}\n.shepherd-modal.shepherd-enabled {\n position: relative;z-index: 9998\n}\n.shepherd-active.shepherd-modal-is-visible :not(.shepherd-target) {\n pointer-events: none\n}\n.shepherd-active.shepherd-modal-is-visible .shepherd-button, .shepherd-active.shepherd-modal-is-visible .shepherd-button *, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link *, .shepherd-active.shepherd-modal-is-visible .shepherd-element, .shepherd-active.shepherd-modal-is-visible .shepherd-element *, .shepherd-active.shepherd-modal-is-visible .shepherd-target, .shepherd-active.shepherd-modal-is-visible .shepherd-target * {\n pointer-events: auto\n}\n.tippy-popper.shepherd {\n z-index: 999999\n}\n.tippy-popper.shepherd[x-placement^=top] {\n margin-top: 0px\n}\n.tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: 8px\n}\n.tippy-popper.shepherd[x-placement^=left] {\n margin-right: 0px\n}\n.tippy-popper.shepherd[x-placement^=right] {\n margin-left: 0px\n}\n.tippy-popper.shepherd .tippy-tooltip .tippy-content {\n max-height: 100%;padding: 0;text-align: left;max-width: 400px;\n}\n.shepherd-element, .shepherd-element *, .shepherd-element:after, .shepherd-element :after, .shepherd-element:before, .shepherd-element :before {\n box-sizing: border-box\n}\n.shepherd-element {\n outline: none;\n}\n.shepherd-element .shepherd-content header {\n *zoom: 1;align-items: left;border-top-left-radius: 5px;border-top-right-radius: 5px;\n display: flex;justify-content: left;line-height: 2em;").concat(F?"padding: .75em;":"",'\n}\n.shepherd-element .shepherd-content header:after {\n clear: both;content: "";display: table\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link, .shepherd-element .shepherd-content header .shepherd-title {\n margin: 0;padding: 0;position: relative;vertical-align: middle\n}\n.shepherd-element .shepherd-content header .shepherd-title {\n color: ').concat(ie.color,";display: flex;flex: 1 0 auto;\n font-size: ").concat(ie.fontSize,"px;font-family: ").concat(ie.fontFamily,";\n font-weight: ").concat("bold"!==ie.fontStyle?"normal":ie.fontStyle,";font-style: ").concat("italic"===ie.fontStyle?"italic":"unset",";\n line-height: ").concat("default"===R?"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"===R?"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(ee.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(ee.fontSize,"px;font-family: ").concat(ee.fontFamily,"; \n font-weight: ").concat("bold"!==ee.fontStyle?"normal":ee.fontStyle,";\n font-style: ").concat("italic"===ee.fontStyle?"italic":"unset",";\n color: ").concat(ee.color,";line-height: ").concat("default"===R?"26":"20","px;letter-spacing:0.01em;\n}\n").concat(_(Q,f,".shepherd-element .shepherd-content "),"\n@-webkit-keyframes cycle {\n 0% { transform: ").concat(qn(O,0),"; }\n 50% { transform: ").concat(qn(O,50),"; }\n 100% { transform: ").concat(qn(O,100),"; }\n}\n@keyframes cycle {\n 0% { transform: ").concat(qn(O,0),"; }\n 50% { transform: ").concat(qn(O,50),"; }\n 100% { transform: ").concat(qn(O,100),"; }\n}\n.tippy-tooltip.apxor-").concat(Z,"-step-").concat(U,"-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(I?y:"none",";color: ").concat(ee.color,";\n opacity: ").concat(w,";border-radius: ").concat(ae["border-radius"]+"px",";\n background-color: ").concat(ae.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"}}(O),";\n}\n.apxor-").concat(Z,"-step-").concat(U,"-theme .tippy-roundarrow {\n fill: ").concat(ae.background,";\n}\n.tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(ae.background,";\n}\n.tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(ae.background,";\n}\n.tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(ae.background,";\n}\n.tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(ae.background,";\n}\n "),ce.appendChild(le),se.parentNode.insertBefore(ce,se);var de=function(e){return function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{Fn.complete(),o&&e.logActionEvent("InlineTargetViewClicked",t,n)}catch(t){e.isShowingAction=!1,e.currentAction=null,console.error(t)}}(n,Z,G,!0)},pe=function(){ue.disconnect();try{var e=document.getElementById("apxor-style-"+Z+"-step-"+U);e.parentNode.removeChild(e)}catch(e){}try{var t=document.getElementById("shepherdModalOverlayContainer");t.parentNode.removeChild(t)}catch(e){}i&&i(),se.removeEventListener("click",de)},ue=new MutationObserver((function(){if(!document.body.contains(se)){document.getElementById("shepherdModalOverlayContainer").remove();var e=document.getElementsByClassName("apxor-".concat(Z,"-step-").concat(U,"-theme"));e.length>0&&e[0]&&e[0].parentNode&&e[0].parentNode.remove(),pe()}}));Fn.addStep("apxor-step-"+U,{title:"default"===R&&M&&M.text?M.text:null,text:oe,classes:"apxor-".concat(Z,"-step-").concat(U,"-theme"),attachTo:{element:se,on:O.toLowerCase()},showCancelLink:F,buttons:$,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:C,theme:"apxor-".concat(Z,"-step-").concat(U),onShow:function(){o&&o(),se.addEventListener("click",de),ue.observe(document.body,{childList:!0,subtree:!0})},onHidden:pe}})}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;Fn=new zn.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;Rn(n,o,i,r,a)})):Rn(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=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{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 Vn=Wn(10);function Un(){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 Xn(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",Vn+"-"+u),h.className="apx-class-".concat(Vn,"-").concat(u);var f=document.createElement("style");return f.innerHTML="\n.apx-class-".concat(Vn,"-").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 Jn(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",Vn+"-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(Un()?"unset":"absolute",";\n top: 0;left: 0;right: 0;bottom: 0;content: '';\n height: ").concat(Un()?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 Zn(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 Gn(e){var t=e.opacity,n=e.type,o=document.createElement("div");o.setAttribute("id",Vn+"-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 Zn('\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 Zn('\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,y=void 0===g?.8:g,w=e.position,k=void 0===w?"TOP":w,C=e.text_config,T=e.title_config,O=void 0===T?null:T,L=e.view_id,A=e.scroll_to_view,S=void 0!==A&&A,M=t.configId,N=t.configName,D=document.getElementById(L);if(!D)try{D=document.querySelector(L)}catch(e){}if(D||(D=x(L)),D)if(Vn=Wn(10),B=(I=D).offsetHeight,F=I.offsetWidth,(H=I.getBoundingClientRect()).left>=-F&&H.top>=-B&&H.right<=(window.innerWidth||document.documentElement.clientWidth)+F&&H.bottom<=(window.innerHeight||document.documentElement.clientHeight)+B){var I,B,F,H,z=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:b(t.x)?t.x+window.scrollX:n,y:b(t.y)?t.y+window.scrollY:o,width:t.width,height:t.height}}(D),P=z.left,j=void 0===P?0:P,q=z.top,R=void 0===q?0:q,Y=z.width,W=void 0===Y?0:Y,V=z.height,U=void 0===V?0:V,X=z.left<window.innerWidth/2;if(0!==U&&0!==W){var J=function(){ue.parentNode.removeChild(ue),Z.parentNode.removeChild(Z),ee.parentNode.removeChild(ee),i&&i(),he&&clearTimeout(he)},Z=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=Xn(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(Xn(t)),s.appendChild(Xn(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}(C,O,s,c,M,N,J),G=Z.offsetWidth,K=Z.offsetHeight,$=0,Q=0;C&&C.margin_config&&($=Number(C.margin_config.left)||0,Q=Number(C.margin_config.right)||0);var ee=Jn(W,U,j,R,h,p),te=j+W/2,ne=R+U/2,oe=Math.sqrt(Math.pow(W,2)+Math.pow(U,2))/2,ie=oe+Math.max(G,W)/2+10,re=-1,ae=-1,se=-1,ce=-1,le=ne-oe,de=ne+oe;switch(k){case"TOP":ae=(se=te-G/2)<0?5:se,re="circle"===h?ne-oe-K-25:R-K-25,ce=de-Math.abs(de-re)/2;break;case"BOTTOM":case"RIGHT":case"LEFT":ae=(se=te-G/2)<0?5:se,ce=le+((re="circle"===h?ne+oe+25:R+U+25)+K-le)/2}if(-1!==ae&&-1!==re&&-1!==ce){!X&&ae+G>window.innerWidth&&(ae=window.innerWidth-G-$-Q-10),Z.style.left="".concat(ae,"px"),Z.style.top="".concat(re,"px");var pe=((se=Math.min(j,ae))+Math.max(j+W,ae+G))/2;(pe=Math.min(pe,document.scrollingElement.scrollWidth))<0&&(pe=0),(ce=Math.min(ce,document.scrollingElement.scrollHeight))<0&&(ce=0);var ue=Gn({bg_color:r,opacity:y,innerRadius:oe,innerCenterX:te,innerCenterY:ne,outerRadius:ie,outerCircleCenterX:pe,outerCircleCenterY:ce,targetElementLeft:j,targetElementTop:R,targetElementWidth:W,targetElementHeight:U,type:h});ue.style.visibility="hidden",ee.style.visibility="hidden",Z.style.visibility="hidden";var he=null,fe=function(e){var t=!e,n=D.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)&&J()};return n&&!0===n.auto_dismiss&&(he=setTimeout((function(){return fe()}),f+n.duration)),ue.style.visibility="visible",ee.style.visibility="visible",Z.style.visibility="visible",Z.childElementCount>0&&(Z.children[0].style.visibility="visible"),v&&ue.addEventListener("click",fe),ee.addEventListener("click",fe),S&&("TOP"===k?window.scrollTo({top:ce-ie,behavior:"smooth"}):"BOTTOM"===k&&window.scrollTo({top:Math.min(document.scrollingElement.scrollHeight,ce+ie),behavior:"smooth"})),o&&o(),fe}console.warn("Failed to identify the right place for text")}else console.warn("Can't show on an invisible element: ",L)}else console.warn("Element ",L," not in viewport. Can't show");else console.warn("Element not found with id or path: ",L)}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},Qn=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 ")},eo=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)},to=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},no=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,y=void 0===h?{rating_type:"classic",bg_color:"#D9DCDE",selected_bg_color:"#109B15"}:h,b=e.selected_rating,x=void 0===b?-1:b,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=to(E);T.style.visibility="hidden";var O=function(e,t){e.style.color=t?s:c},L=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),L(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),L(i,r),t.is_other&&(T.style.visibility=r?"visible":"hidden"),eo(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),L(e.parentNode,o),t.is_other&&(T.style.visibility=o?"visible":"hidden")})),eo(e,n)}),C.push(i)})),k&&C.push(T)}else if(d===g&&null!==E){var A=E.example,S=E.example_text_color;if(""!==A&&""!==A.trim()){var M=document.createElement("span");M.innerHTML="Example: "+A,M.style.color=S,M.style.marginTop="12px",M.style.fontFamily="inherit",M.style.fontSize="15px",C.push(M)}var N=to(E);N.addEventListener("input",(function(t){e.text_answer=t.target.value,t.target.value&&t.target.value.length>0&&(e.is_answered=!0),eo(e,n)})),""!==_&&""!==_.trim()&&(N.innerText=_),C.push(N)}else if(d===v){var D=y.rating_type,I=y.bg_color,B=y.selected_bg_color,F=document.createElement("div");F.style="display:flex;justify-content:space-evenly;gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden";var H="",z=[],P="",j="cursor:pointer;font-size:30px;width:40px;height:40px;";if("classic"===D)z=["😖","😕","😶","😄","😍"],H="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=["😠","🙁","😐","😀","🤩"],H="filter:grayscale(0%) !important",P="".concat(j,"filter:grayscale(100%)");else if("star"===D){for(var q=0;q<5;q++)z.push("⭐");H="filter:grayscale(0%) !important",P="".concat(j,"filter:grayscale(100%)")}else z=["1","2","3","4","5"],H="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)"),F.style.marginTop="12px";F.innerHTML="<style>.apx-rsel{".concat(H,"}.apx-r{").concat(P,"}</style>");for(var R=function(e){return"star"!==D?e+1===x:e+1<=x},Y=[],W=0;W<5;W++){var V=document.createElement("div");V.innerHTML="".concat("num"===D?"":" ").concat(z[W]),R(W)&&V.classList.add("apx-rsel"),V.classList.add("apx-r"),Y.push(V)}Y.forEach((function(t,o){t.addEventListener("click",(function(){if(t.classList.add("apx-rsel"),e.selected_rating=o+1,e.is_answered=!0,eo(e,n),"star"!==D){for(var i=0;i<o;i++)Y[i].classList.remove("apx-rsel");for(var r=o+1;r<5;r++)Y[r].classList.remove("apx-rsel")}else{for(var a=0;a<o+1;a++)Y[a].classList.add("apx-rsel");for(var s=o+1;s<5;s++)Y[s].classList.remove("apx-rsel")}})),F.appendChild(t)})),C.push(F)}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=Qn(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+=Qn(E.placeholder_text_color))),X.innerHTML=J.replaceAll("\n","").replace(/[\s]{2,999}/g,""),U.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"),U.appendChild(Z),C.forEach((function(e){return U.appendChild(e)})),U},oo=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"),eo(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=no(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}},io=window.ApxorLogger,ro=c((function e(t){var n=this;a(this,e),l(this,"evCe",(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})),ao=c((function e(t){var n=this;a(this,e),l(this,"evCe",(function(){n.is_answered=!1,n.text_answer="",n.selected_rating=-1,n.choices.forEach((function(e){return e.evCe()}))}));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,y=void 0===h?null:h,b=t.randomize_choices,x=void 0!==b&&b,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=y,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 ro(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)}})),so=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,y=void 0===g?"":g,b=o.question_text_color,x=void 0===b?"#002845":b,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,L=void 0===O?"#002845":O,A=o.option_text_color_inactive,S=void 0===A?"#002845":A,M=o.option_bg_color_active,N=void 0===M?"#FFF":M,D=o.option_bg_color_inactive,I=void 0===D?"#FFF":D,B=o.question_background_color,F=void 0===B?"#FFF":B,H=o.success_message_bg_color,z=void 0===H?"#109B15":H,P=o.success_message_icon_color,j=void 0===P?"#109B15":P,q=o.success_message_text_color,R=void 0===q?"#002845":q,Y=o.skip_text_color,W=void 0===Y?"#017DFD":Y,V=o.cancel_button_color,U=void 0===V?"#000":V,X=o.previous_button_color,J=void 0===X?"#000":X,Z=o.progress_bar_color,G=void 0===Z?"#017DFD":Z,K=o.submit_text_color,$=void 0===K?"#FFF":K,Q=o.width,ee=void 0===Q?350:Q,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=y,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:W,cancel_button_color:U,previous_button_color:J,progress_bar_color:G,submit_text_color:$,submit_active_color:_,submit_inactive_color:k,success_message_bg_color:z,success_message_icon_color:j,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:F,option_bg_color_active:N,option_bg_color_inactive:I,option_text_color_active:L,option_text_color_inactive:S,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 ao(u[pe])),n.answered_questions.push(-1)}catch(e){return io.error("Failed to parse Q",pe,e),!1}return!(n.questions.length<1)||(n.isValid=!1,!1)})),l(this,"AeYg",(function(e,t){n.isValid&&setTimeout((function(){try{var o=window.ApxorRTM;if(null!==o.currentAction&&void 0!==o.currentAction)return void io.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.FOce("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,y=e.title_color,b=void 0===y?"#3C3C3C":y,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(b,';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.FOce("apx_survey_dialog_yes_clicked"),d.style.minHeight=n.min_height+"%",n.MqZL(i,!0)},document.getElementById("apx-dn").onclick=function(){n.FOce("apx_survey_dialog_no_clicked"),n.dyRC(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.FOce("apx_survey_dialog_launched")};if(""!==s&&c>0&&l>0){var t=document.getElementById("apx_icon");t.onload=function(){e()},t.onerror=function(){n.FOce("apx_survey_dialog_icon_failed"),n.dyRC(i)}}else e()}),100)}else n.MqZL(i);e&&e((function(){return n.dyRC(i)}))}catch(e){io.error(e)}}),n.delay)})),l(this,"MqZL",(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.jELw(e,0),t||setTimeout((function(){e.children[0].classList.toggle("open")}),100)})),l(this,"jELw",(function(e,t){if(!(t>=n.questions.length)){var o=n.questions[t],i=oo(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.KDLk(t),n.jELw(e,t-1))}),c&&c.addEventListener("click",(function(){n.FOce("apx_survey_close_clicked",{where:"question "+(t+1)}),n.KDLk(t),n.kUZi(e,!1)})),d&&(d.onclick=function(){n.is_response_based_survey||(n.KDLk(t),t===n.questions.length-1?n.kUZi(e,!0):n.jELw(e,t+1))}),u&&(u.onclick=function(){t+1>=n.questions.length||(n.FOce("apx_survey_skip_clicked",{where:"question "+(t+1)}),n.KDLk(t),n.jELw(e,t+1))})}})),l(this,"KDLk",(function(e){if(-1===n.answered_questions[e]){var t=n.RZYC(e);t.answers.length>0&&(n.FOce("apx_survey_".concat(n.questions[e].title),{answers:t.answerTexts}),n.answered_questions[e]=1)}})),l(this,"FOce",(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,"RZYC",(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,y=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!==y&&(o.answers.push(y.id),o.answerTexts.push(d),o.textBasedQuestionAnswers.push({id:y.id,answer:d}));break;case v:-1!==c&&(o.answers.push(c),o.answerTexts.push(c))}return o})),l(this,"dyRC",(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,"FiIo",(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,';">✓</span>\n <span style="font-size: 17px;margin-top:15px;color:').concat(c,'">').concat(i,"</span>\n "),l);t.appendChild(d),setTimeout((function(){n.dyRC(e)}),n.auto_hide_message)})),l(this,"kUZi",(function(e,o){o&&n.show_success_message?n.FiIo(e):n.dyRC(e);var i={survey_id:n.configId,name:n.name,responses:[]};if(n.questions.forEach((function(e,t){var o=n.RZYC(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.VXcr(i)}o&&n.FOce("apx_survey_completed"),n.questions.forEach((function(e,t){e.evCe(),n.answered_questions[t]=-1})),n.startTime=-1,n.bodyOverflow=""})),l(this,"VXcr",(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})),co=c((function e(){a(this,e),l(this,"parse",(function(e,t,n){var o=new so;return o.initialize(e,t,n)?o:null}))})),lo=window.ApxorLogger;var po=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,"yrma",(function(){if(!n.isValid)return!1;setTimeout((function(){try{Lo.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.YYya(e)}),setTimeout((function(){e.children[0].classList.toggle("open"),e.children[0].innerHTML=n.htmlConfig.data,n.oOvb("inapp_shown"),e.querySelectorAll("a").forEach((function(t){t.onclick=function(){return n.LnjG(e,t)}}))}),100)}catch(e){lo.error(e)}}),n.delay)})),l(this,"LnjG",(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.oOvb("walk_through_cancelled");break;case"xclose":n.oOvb("InAppXIconClicked");break;case"close":r=i.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.oOvb(y(""===r?"Button":r));break;case"dl_url":var s=i.replace(/(.*?)uri=([^\&]*).*?$/,"$2"),c=i.replace(/(.*?)external=([^\&]*).*?$/,"$2");r=i.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.oOvb(y(""===r?"Button":r)),"true"==c?window.open(s,"_blank"):t.logClientEvent("REDIRECT",{url:s})}return n.YYya(e,a),!1}return!0})),l(this,"YYya",(function(e,t){"cancel"!==t&&n.oOvb("inapp_dismissed"),e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e)}),300)})),l(this,"oOvb",(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})),uo=c((function e(){a(this,e),l(this,"parse",(function(e,t,n){var o=new po;return o.initialize(e,t,n)?o:null}))})),ho=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)}},fo=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 mo="<b>View Selection Mode: ON",vo="<b>View Selection Mode: OFF</b>",go="https://sse.apxor.com/v1/api/",yo=go+"layout?appId=<aid>",bo=go+"sse-ui-config?appId=<aid>",xo=go+"art-config?appId=<aid>&deviceId=<uid>",wo="https://server.apxor.com/v4/frontendapi/web/test-devices",_o=wo+"?appId=<aid>",Eo=wo+"/<uid>?appId=<aid>",ko=c((function e(){var n=this;a(this,e),l(this,"OJlo",null),l(this,"yJYT",null),l(this,"TFGy",null),l(this,"WUtk",null),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;if(s===e&&Date.now()<=c){var l=document.createElement("span");if(l.style="z-index:99999999;visibility:hidden;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:16px 24px;background:#252f37;border-radius:3px;opacity:0;font-size:24px;color:white;transition:all .3s ease-out",l.innerHTML=mo,n.yJYT=l,document.body.appendChild(l),n.OJlo=document.createElement("style"),n.OJlo.innerHTML=".apx-highlight{height:auto;z-index:9999999999;outline: 2px solid red;cursor:default}",document.body.appendChild(n.OJlo),n.isSelectionMode=!1,n.testDeviceData=t.getController().getFromStorage("_apx_td",!0),n.testDeviceData){var d=n.testDeviceData,p=d.name,u=void 0===p?"":p,h=d.id,f=void 0===h?"":h;if(""!==u&&""!==f){n.aoGq("select","".concat(u," - ").concat(f),f);var m=new EventSource(bo.replace("<aid>",e)),v=new EventSource(xo.replace("<aid>",e).replace("<uid>",f));m.onmessage=v.onmessage=function(e){e&&e.data&&"{}"!==e.data&&n.VOBM(o,e.data)}}}n.vply()}}catch(e){}}})),l(this,"UhVg",(function(){n.yJYT.parentNode.removeChild(n.yJYT),n.OJlo.parentNode.removeChild(n.OJlo)})),l(this,"VOBM",(function(e,o){try{n.WUtk.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.aLwy("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,"vply",(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.WUtk=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.FMtN()},d.onclick=function(){fetch(Eo.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.BNLc())})).catch((function(e){return console.error(e)}))},p.onclick=function(){n.isSelectionMode=!0,window.addEventListener("mouseover",ho,!0),window.addEventListener("mouseout",fo,!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.rboE(e,!0),o=n.sxPT(e,!0);n.aoGq("view",location.href,t+"___"+o)}))},window.addEventListener("click",n.clickListener,!0),n.mLyJ(!1),p.style.display="none",u.style.display="block"};var h=function(){n.BNLc(),u.style.display="none",p.style.display="block"};u.onclick=h,n.WUtk.addEventListener("preview",h),n.WUtk.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,"BNLc",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vo;if(n.isSelectionMode){window.removeEventListener("mouseover",ho,!0),window.removeEventListener("mouseout",fo,!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.mLyJ(!0,e),n.isSelectionMode=!1}})),l(this,"mLyJ",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vo;n.yJYT.style.visibility="visible",e?(n.yJYT.innerHTML=t,n.yJYT.style.opacity=1):(n.yJYT.innerHTML=mo,n.yJYT.style.opacity=1),setTimeout((function(){n.yJYT.style.opacity=0,n.yJYT.style.visibility="hidden"}),1e3)})),l(this,"FMtN",(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(_o.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.aoGq("select","".concat(u.value," - ").concat(c),c,(function(){o.children[1].classList.remove("apx-loading"),n.WUtk.dispatchEvent(new CustomEvent("added"))})),h()}),(function(){}))}})),l(this,"aoGq",(function(e,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},a=t.getController().getDevInfo(),s={device_info:{id:a.id,hardware_model:a.hardware_model,os_version:a.os_version,width:a.dimensions.width,height:a.dimensions.height},screen:{image:e,navigation:n,orientation:o},layout:[]};t.getController().makePostRequest(yo.replace("<aid>",t.getSiteId()),s,{},i,r)})),l(this,"rboE",(function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var o=[],i=e;i;){var r=n.xGgs(i,!!t,i===e);if(!r)break;if(o.push(r),r.optimized)break;i=i.parentNode}return o.reverse(),o.join(" > ")})),l(this,"xGgs",(function(e,t,n){if(e.nodeType!==Node.ELEMENT_NODE)return null;var o=e.getAttribute("id");if(t){if(o)return new Co(c(o),!0);var i=e.nodeName.toLowerCase();if("body"===i||"head"===i||"html"===i)return new Co(e.nodeName.toLowerCase(),!0)}var r=e.nodeName.toLowerCase();if(o)return new Co(r.toLowerCase()+c(o),!0);var a=e.parentNode;if(!a||a.nodeType===Node.DOCUMENT_NODE)return new Co(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 y=new Set(d);if(y.size)for(var b=s(g),x=0;x<b.length;++x){var w=b[x];if(y.has(w)&&(y.delete(w),!y.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 Co(_,!1)})),l(this,"sxPT",(function(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";for(var o=[],i=e;i;){var r=n.rWQa(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,"rWQa",(function(e,t){var o,i=n.ZynM(e);if(-1===i)return null;switch(e.nodeType){case Node.ELEMENT_NODE:if(t&&e.getAttribute("id"))return new Co('//*[@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 Co(o,e.nodeType===Node.DOCUMENT_NODE)})),l(this,"ZynM",(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}))})),Co=function(e,t){this.value=e,this.optimized=t||!1};Co.prototype={toString:function(){return this.value}};var To=window.ApxorLogger,Oo=new(c((function e(){var n=this;a(this,e),l(this,"version",120),l(this,"iFZk",{}),l(this,"isShowingAction",!1),l(this,"currentAction",null),l(this,"JFxd",new co),l(this,"uaWa",new uo),l(this,"lCGL",new ko),l(this,"init",(function(){var e=t.getController(),o=Lo.getInstance(),i=t.getSiteId(),r=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")}}(i,t.getClientId()),a=r.rtaValidateUrl,s=r.rtaSyncUrl,c=r.surveysValidateUrl,l=r.surveysSyncUrl;o.initialize(),o.fetch(0,a,s,n.handleResponse),o.fetch(1,c,l,n.handleResponse),e.registerForEvent("IN_LINE",n.GKOo),e.registerForEvent("IN_APP",n.ldvK),e.registerForEvent("SURVEY",n.dDfa),e.registerForEvent("ONBOARDING",n.yFWK),n.lCGL.init(i,n),To.debug("Registered for events")})),l(this,"show",(function(e,t,o,i){try{if(null!==n.currentAction&&void 0!==n.currentAction)return void To.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=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})):To.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){Lo.getInstance().updateCount(e)})),l(this,"HiWJ",(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){To.debug("Fetched config from server",e),n.aLwy(e,t),Lo.getInstance().parse(t)})),l(this,"aLwy",(function(e,t){if(b(t)&&b(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.JFxd.parse(a,s,l):"IN_APP"===c&&(l=n.uaWa.parse(a,s,l)),null!==l?n.iFZk[a]={ui:l,uis:r.uis,terminationConfig:r.terminate_info,name:s}:console.warn("Failed to parse the config",a)}To.debug("Configs: ",n.iFZk)}})),l(this,"GKOo",(function(e){if(b(e.additional_info)){var t=e.additional_info.uuid;if(n.iFZk[t]){var o=n.iFZk[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,"ldvK",(function(e){if(b(e.additional_info)){var t=e.additional_info.uuid;if(n.iFZk[t])n.iFZk[t].ui.yrma()}})),l(this,"dDfa",(function(e){if(b(e.additional_info)){var t=e.additional_info.uuid;if(n.iFZk[t]){n.iFZk[t].ui.AeYg((function(e){n.updateCount(t),n.isShowingAction=!0,n.currentAction=e}),(function(){n.isShowingAction=!1,n.currentAction=null}))}}})),l(this,"yFWK",(function(e){}))})));window.ApxorRTM=Oo;var Lo=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=Oo,module.exports=e.default)}catch(e){}e.ceWrapper=Lo,e.default=Oo,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
44
|
+
*/;!function(e){if(Y){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"),Ft=Xt("shepherd-has-title"),Rt={computeStyle:{enabled:!0,fn:function(e){return e.styles=M({},e.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),e}},addShepherdClass:Pt},qt={positionFixed:!0,modifiers:{addShepherdClass:Pt}};function Yt(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(jt))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=Zt.call(this,e),this.target=e.element||document.body,this.el.classList.add("shepherd-element")}function Ut(){var e=this.options.attachTo||{},t=M({},e);if(F(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 Zt(e){if(!e.element)return Jt.call(this);var t=Gt.call(this,e);return jt(e.element,t)}function Gt(e){var t={content:this.el,flipOnUpdate:!0,placement:e.on||"right"};return M(t,this.options.tippyOptions),this.options.title&&M(qt.modifiers,{addHasTitleClass:Ft}),this.options.tippyOptions&&this.options.tippyOptions.popperOptions&&M(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&&M(qt.modifiers,{addHasTitleClass:Ft});var t=M({},qt,e.popperOptions,{modifiers:M(Rt,e.popperOptions.modifiers)});return e.popperOptions=t,jt(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=H(e,2),i=o[0],r=o[1];if(F(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=z(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=Ut.bind(B(o)),z(o,B(o))}return N(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=Yt('<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=Yt('<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=Yt('<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):(F(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=H(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=Yt('<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),j(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):j(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=H(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=H(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,Mn=function(e){return Sn.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Nn=function(e){var t=e||window.event;return!!Mn(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;!Mn(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Nn(e):e.stopPropagation())}(t,e)},An||(document.addEventListener("touchmove",Nn,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",Nn,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 zn(){"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 Hn,jn=function(){var e=0;return function(){return++e}}(),Pn=new Qt,Fn=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};O(this,t),e=z(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(),z(e,B(e))}return N(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()})),zn.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(F(t)||"number"==typeof t)&&(e.id=t.toString()),e=M({},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=F(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(){jt.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=jn();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);M(Pn,{Tour:Fn,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)")}},Yn=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,M=e.title_config,N=void 0===M?{}:M,D=e.view_id,I=e.show_shadow,B=void 0!==I&&I,z=e.show_close_icon,H=void 0!==z&&z,j=e.dim_background_color,P=void 0===j?"#0a0a0a":j,F=e.dim_background_opacity,R=void 0===F?.5:F,q=e.layout_type,Y=void 0===q?"default":q,V=e.pb_color,W=void 0===V?"orange":V,U=e.index,X=void 0===U?0:U,Z=e.total,G=void 0===Z?1:Z,J=t.configId,Q=t.configName,K=E(u,Hn,J,Q),$=K.buttons_array,ee=K.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:N.color,fontSize:N.size,fontFamily:N.font_family,fontStyle:N.style};if(N.margin_config&&Object.keys(N.margin_config).length>0){var ae=N.margin_config;re.margin="".concat(ae.top,"px ").concat(ae.right,"px ").concat(ae.bottom,"px ").concat(ae.left,"px")}switch("bold"===(oe=N.style)&&(te.fontWeight=oe),Y){case"with_progress":ie='\n<div>\n <div style="height: 6px;background: '.concat(W,";width: ").concat((X+1)/G*100,"%;border-radius: ").concat(v.enabled?v.width:0,'px;"></div>\n <header class="shepherd-header" style="').concat(N?"padding: 10px 10px 0 10px":"",'">\n ').concat(N?'<h3 class="shepherd-title" id="apxor-step-'.concat(X,'-label" style="padding: 0 !important;padding-right: 0.7em;">').concat(N.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("#"+D)}catch(e){}if(!ce)try{ce=document.querySelector(D)}catch(e){}if(ce||(ce=x(D)),ce){var le=document.createElement("span");le.setAttribute("id","apxor-style-"+J+"-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!=R?R:.5,";position: fixed;\n top: 0;transition: all .3s ease-out;width: 100vw;z-index: 9997;fill: ").concat(null!=P?P:"transparent","\n}\n#shepherdModalOverlayContainer #shepherdModalMask, #shepherdModalOverlayContainer #shepherdModalMaskRect {\n height: 100vh;width: 100vw\n}\n.shepherd-modal.shepherd-enabled {\n position: relative;z-index: 9998\n}\n.shepherd-active.shepherd-modal-is-visible :not(.shepherd-target) {\n pointer-events: none\n}\n.shepherd-active.shepherd-modal-is-visible .shepherd-button, .shepherd-active.shepherd-modal-is-visible .shepherd-button *, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link *, .shepherd-active.shepherd-modal-is-visible .shepherd-element, .shepherd-active.shepherd-modal-is-visible .shepherd-element *, .shepherd-active.shepherd-modal-is-visible .shepherd-target, .shepherd-active.shepherd-modal-is-visible .shepherd-target * {\n pointer-events: auto\n}\n.tippy-popper.shepherd {\n z-index: 999999\n}\n.tippy-popper.shepherd[x-placement^=top] {\n margin-top: 0px\n}\n.tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: 8px\n}\n.tippy-popper.shepherd[x-placement^=left] {\n margin-right: 0px\n}\n.tippy-popper.shepherd[x-placement^=right] {\n margin-left: 0px\n}\n.tippy-popper.shepherd .tippy-tooltip .tippy-content {\n max-height: 100%;padding: 0;text-align: left;max-width: 400px;\n}\n.shepherd-element, .shepherd-element *, .shepherd-element:after, .shepherd-element :after, .shepherd-element:before, .shepherd-element :before {\n box-sizing: border-box\n}\n.shepherd-element {\n outline: none;\n}\n.shepherd-element .shepherd-content header {\n *zoom: 1;align-items: left;border-top-left-radius: 5px;border-top-right-radius: 5px;\n display: flex;justify-content: left;line-height: 2em;").concat(H?"padding: .75em;":"",'\n}\n.shepherd-element .shepherd-content header:after {\n clear: both;content: "";display: table\n}\n.shepherd-element .shepherd-content header .shepherd-cancel-link, .shepherd-element .shepherd-content header .shepherd-title {\n margin: 0;padding: 0;position: relative;vertical-align: middle\n}\n.shepherd-element .shepherd-content header .shepherd-title {\n 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"===Y?"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"===Y?"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"===Y?"26":"20","px;letter-spacing:0.01em;\n}\n").concat(_(ee,f,".shepherd-element .shepherd-content "),"\n@-webkit-keyframes cycle {\n 0% { transform: ").concat(qn(S,0),"; }\n 50% { transform: ").concat(qn(S,50),"; }\n 100% { transform: ").concat(qn(S,100),"; }\n}\n@keyframes cycle {\n 0% { transform: ").concat(qn(S,0),"; }\n 50% { transform: ").concat(qn(S,50),"; }\n 100% { transform: ").concat(qn(S,100),"; }\n}\n.tippy-tooltip.apxor-").concat(J,"-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(J,"-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{Hn.complete(),o&&e.logActionEvent("InlineTargetViewClicked",t,n)}catch(t){e.isShowingAction=!1,e.currentAction=null,console.error(t)}}(n,J,Q,!0)},ue=function(){fe.disconnect();try{var e=document.getElementById("apxor-style-"+J+"-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(J,"-step-").concat(X,"-theme"));t.length>0&&t[0]&&t[0].parentNode&&t[0].parentNode.remove(),ue()}e&&(he=!0)}));Hn.addStep("apxor-step-"+X,{title:"default"===Y&&N&&N.text?N.text:null,text:ie,classes:"apxor-".concat(J,"-step-").concat(X,"-theme"),attachTo:{element:ce,on:S.toLowerCase()},showCancelLink:H,buttons:$,tippyOptions:{allowHTML:!0,arrow:!0,flipOnUpdate:!0,interactive:!0,maxWidth:"100%",hideOnClick:T,theme:"apxor-".concat(J,"-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")},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;Hn=new Pn.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;Yn(n,o,i,r,a)})):Yn(e,o,i,r,a),i.isShowingAction)window.ApxorLogger.error("An action already being shown");else try{Hn.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{Hn.complete()}catch(e){i.isShowingAction=!1,i.currentAction=null,console.error(e)}}),c+n.duration),Hn.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 Un=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 Zn(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 Gn(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 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",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 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,M=void 0!==L&&L,N=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(Un=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),z=B.left,H=void 0===z?0:z,j=B.top,P=void 0===j?0:j,F=B.width,R=void 0===F?0:F,q=B.height,Y=void 0===q?0:q,V=B.left<window.innerWidth/2;if(0!==Y&&0!==R){var W=function(){le.parentNode.removeChild(le),U.parentNode.removeChild(U),Q.parentNode.removeChild(Q),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=Zn(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(Zn(t)),s.appendChild(Zn(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,N,D,W),X=U.offsetWidth,Z=U.offsetHeight,G=0,J=0;T&&T.margin_config&&(G=Number(T.margin_config.left)||0,J=Number(T.margin_config.right)||0);var Q=Gn(R,Y,H,P,h,p),K=H+R/2,$=P+Y/2,ee=Math.sqrt(Math.pow(R,2)+Math.pow(Y,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-Z-25:P-Z-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+Y+25)+Z-ae)/2}if(-1!==oe&&-1!==ne&&-1!==re){!V&&oe+X>window.innerWidth&&(oe=window.innerWidth-X-G-J-10),U.style.left="".concat(oe,"px"),U.style.top="".concat(ne,"px");var ce=((ie=Math.min(H,oe))+Math.max(H+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:H,targetElementTop:P,targetElementWidth:R,targetElementHeight:Y,type:h});le.style.visibility="hidden",Q.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)&&W()};return n&&!0===n.auto_dismiss&&(de=setTimeout((function(){return pe()}),f+n.duration)),le.style.visibility="visible",Q.style.visibility="visible",U.style.visibility="visible",U.childElementCount>0&&(U.children[0].style.visibility="visible"),v&&le.addEventListener("click",pe),Q.addEventListener("click",pe),M&&("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 M=document.createElement("span");M.innerHTML="Example: "+A,M.style.color=L,M.style.marginTop="12px",M.style.fontFamily="inherit",M.style.fontSize="15px",C.push(M)}var N=no(E);N.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()&&(N.innerText=_),C.push(N)}else if(d===v){var D=b.rating_type,I=b.bg_color,B=b.selected_bg_color,z=document.createElement("div");z.style="display:flex;justify-content:space-evenly;gap:5px;padding-top:8px;padding-bottom:8px;overflow:hidden";var H="",j=[],P="",F="cursor:pointer;font-size:30px;width:40px;height:40px;";if("classic"===D)j=["😖","😕","😶","😄","😍"],H="opacity:1 !important;",P="".concat(F,"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)j=["😠","🙁","😐","😀","🤩"],H="filter:grayscale(0%) !important",P="".concat(F,"filter:grayscale(100%)");else if("star"===D){for(var R=0;R<5;R++)j.push("⭐");H="filter:grayscale(0%) !important",P="".concat(F,"filter:grayscale(100%)")}else j=["1","2","3","4","5"],H="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)"),z.style.marginTop="12px";z.innerHTML="<style>.apx-rsel{".concat(H,"}.apx-r{").concat(P,"}</style>");for(var q=function(e){return"star"!==D?e+1===x:e+1<=x},Y=[],V=0;V<5;V++){var W=document.createElement("div");W.innerHTML="".concat("num"===D?"":" ").concat(j[V]),q(V)&&W.classList.add("apx-rsel"),W.classList.add("apx-r"),Y.push(W)}Y.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++)Y[i].classList.remove("apx-rsel");for(var r=o+1;r<5;r++)Y[r].classList.remove("apx-rsel")}else{for(var a=0;a<o+1;a++)Y[a].classList.add("apx-rsel");for(var s=o+1;s<5;s++)Y[s].classList.remove("apx-rsel")}})),z.appendChild(t)})),C.push(z)}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"),Z="";d===g?Z=eo(E.placeholder_text_color):d!==f&&d!==m||(Z=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&&(Z+=eo(E.placeholder_text_color))),X.innerHTML=Z.replaceAll("\n","").replace(/[\s]{2,999}/g,""),U.appendChild(X);var G=document.createElement("span");return G.innerText=e.title,G.style="margin-bottom:12px;color:".concat(o,";background-color:").concat(i,";font-size:16px;font-weight:600"),U.appendChild(G),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,"DKiS",(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,"DKiS",(function(){n.is_answered=!1,n.text_answer="",n.selected_rating=-1,n.choices.forEach((function(e){return e.DKiS()}))}));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,M=o.option_bg_color_active,N=void 0===M?"#FFF":M,D=o.option_bg_color_inactive,I=void 0===D?"#FFF":D,B=o.question_background_color,z=void 0===B?"#FFF":B,H=o.success_message_bg_color,j=void 0===H?"#109B15":H,P=o.success_message_icon_color,F=void 0===P?"#109B15":P,R=o.success_message_text_color,q=void 0===R?"#002845":R,Y=o.skip_text_color,V=void 0===Y?"#017DFD":Y,W=o.cancel_button_color,U=void 0===W?"#000":W,X=o.previous_button_color,Z=void 0===X?"#000":X,G=o.progress_bar_color,J=void 0===G?"#017DFD":G,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:U,previous_button_color:Z,progress_bar_color:J,submit_text_color:K,submit_active_color:_,submit_inactive_color:k,success_message_bg_color:j,success_message_icon_color:F,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:z,option_bg_color_active:N,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,"jyDc",(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.wBzY("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.wBzY("apx_survey_dialog_yes_clicked"),d.style.minHeight=n.min_height+"%",n.NKcX(i,!0)},document.getElementById("apx-dn").onclick=function(){n.wBzY("apx_survey_dialog_no_clicked"),n.eMeI(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.wBzY("apx_survey_dialog_launched")};if(""!==s&&c>0&&l>0){var t=document.getElementById("apx_icon");t.onload=function(){e()},t.onerror=function(){n.wBzY("apx_survey_dialog_icon_failed"),n.eMeI(i)}}else e()}),100)}else n.NKcX(i);e&&e((function(){return n.eMeI(i)}))}catch(e){ro.error(e)}}),n.delay)})),l(this,"NKcX",(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.CZYl(e,0),t||setTimeout((function(){e.children[0].classList.toggle("open")}),100)})),l(this,"CZYl",(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.IQZD(t),n.CZYl(e,t-1))}),c&&c.addEventListener("click",(function(){n.wBzY("apx_survey_close_clicked",{where:"question "+(t+1)}),n.IQZD(t),n.UAJY(e,!1)})),d&&(d.onclick=function(){n.is_response_based_survey||(n.IQZD(t),t===n.questions.length-1?n.UAJY(e,!0):n.CZYl(e,t+1))}),u&&(u.onclick=function(){t+1>=n.questions.length||(n.wBzY("apx_survey_skip_clicked",{where:"question "+(t+1)}),n.IQZD(t),n.CZYl(e,t+1))})}})),l(this,"IQZD",(function(e){if(-1===n.answered_questions[e]){var t=n.nsTV(e);t.answers.length>0&&(n.wBzY("apx_survey_".concat(n.questions[e].title),{answers:t.answerTexts}),n.answered_questions[e]=1)}})),l(this,"wBzY",(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,"nsTV",(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,"eMeI",(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,"gWvi",(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,';">✓</span>\n <span style="font-size: 17px;margin-top:15px;color:').concat(c,'">').concat(i,"</span>\n "),l);t.appendChild(d),setTimeout((function(){n.eMeI(e)}),n.auto_hide_message)})),l(this,"UAJY",(function(e,o){o&&n.show_success_message?n.gWvi(e):n.eMeI(e);var i={survey_id:n.configId,name:n.name,responses:[]};if(n.questions.forEach((function(e,t){var o=n.nsTV(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.CGJE(i)}o&&n.wBzY("apx_survey_completed"),n.questions.forEach((function(e,t){e.DKiS(),n.answered_questions[t]=-1})),n.startTime=-1,n.bodyOverflow=""})),l(this,"CGJE",(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,"NKbi",(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.fcnE(e)}),setTimeout((function(){e.children[0].classList.toggle("open"),e.children[0].innerHTML=n.htmlConfig.data,n.wyBS("inapp_shown"),e.querySelectorAll("a").forEach((function(t){t.onclick=function(){return n.IRSc(e,t)}}))}),100)}catch(e){po.error(e)}}),n.delay)})),l(this,"IRSc",(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.wyBS("walk_through_cancelled");break;case"xclose":n.wyBS("InAppXIconClicked");break;case"close":r=i.replace(/(.*?)buttonName=([^\&]*).*?$/,"$2"),n.wyBS(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.wyBS(b(""===r?"Button":r)),"true"==c?window.open(s,"_blank"):t.logClientEvent("REDIRECT",{url:s})}return n.fcnE(e,a),!1}return!0})),l(this,"fcnE",(function(e,t){"cancel"!==t&&n.wyBS("inapp_dismissed"),e.children[0].classList.toggle("open"),setTimeout((function(){e.parentNode.removeChild(e)}),300)})),l(this,"wyBS",(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,"DMgL",null),l(this,"BgRS",null),l(this,"WWWX",null),l(this,"gyDb",null),l(this,"JUki",""),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.JUki=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.BgRS=d,document.body.appendChild(d),n.DMgL=document.createElement("style"),n.DMgL.innerHTML=".apx-highlight{height:auto;z-index:9999999999;outline: 2px solid red;cursor:default}",document.body.appendChild(n.DMgL),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.mlYX("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.vDNp(o,e.data)}}}n.tdpS()}}catch(e){}}})),l(this,"bjDk",(function(){n.BgRS.parentNode.removeChild(n.BgRS),n.DMgL.parentNode.removeChild(n.DMgL)})),l(this,"vDNp",(function(e,o){try{n.gyDb.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.tjGu("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,"tdpS",(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.gyDb=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.heCc()},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.iWZd())})).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.cLwL(e,!0),o=n.bBFO(e,!0);n.mlYX("view",location.href,t+"___"+o)}))},window.addEventListener("click",n.clickListener,!0),n.kusL(!1),p.style.display="none",u.style.display="block"};var h=function(){n.iWZd(),u.style.display="none",p.style.display="block"};u.onclick=h,n.gyDb.addEventListener("preview",h),n.gyDb.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,"iWZd",(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.kusL(!0,e),n.isSelectionMode=!1}})),l(this,"kusL",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:go;n.BgRS.style.visibility="visible",e?(n.BgRS.innerHTML=t,n.BgRS.style.opacity=1):(n.BgRS.innerHTML=vo,n.BgRS.style.opacity=1),setTimeout((function(){n.BgRS.style.opacity=0,n.BgRS.style.visibility="hidden"}),1e3)})),l(this,"heCc",(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.mlYX("select","".concat(u.value," - ").concat(c),c,(function(){o.children[1].classList.remove("apx-loading"),n.gyDb.dispatchEvent(new CustomEvent("added"))})),h()}),(function(){}))}})),l(this,"mlYX",(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.JUki),c,{},r,a)})),l(this,"cLwL",(function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var o=[],i=e;i;){var r=n.jYui(i,!!t,i===e);if(!r)break;if(o.push(r),r.optimized)break;i=i.parentNode}return o.reverse(),o.join(" > ")})),l(this,"jYui",(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,"bBFO",(function(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";for(var o=[],i=e;i;){var r=n.xyGf(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,"xyGf",(function(e,t){var o,i=n.ZIFB(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,"ZIFB",(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",122),l(this,"jiMQ",{}),l(this,"isShowingAction",!1),l(this,"currentAction",null),l(this,"XjdF",new lo),l(this,"nPVL",new ho),l(this,"BQOP",new Co),l(this,"nbmI",null),l(this,"init",(function(e){n.nbmI=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.lmRu),o.registerForEvent("IN_APP",n.PPTN),o.registerForEvent("SURVEY",n.MhHb),o.registerForEvent("ONBOARDING",n.ODtn),n.BQOP.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=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,"JZeX",(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.nbmI&&n.nbmI()):(Oo.debug("Fetched config from server",e),n.tjGu(e,t),Ao.getInstance().parse(t),n.nbmI&&n.nbmI())})),l(this,"tjGu",(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.XjdF.parse(a,s,l):"IN_APP"===c&&(l=n.nPVL.parse(a,s,l)),null!==l?n.jiMQ[a]={ui:l,uis:r.uis,terminationConfig:r.terminate_info,name:s}:console.warn("Failed to parse the config",a)}Oo.debug("Configs: ",n.jiMQ)}})),l(this,"lmRu",(function(e){if(y(e.additional_info)){var t=e.additional_info.uuid;if(n.jiMQ[t]){var o=n.jiMQ[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,"PPTN",(function(e){if(y(e.additional_info)){var t=e.additional_info.uuid;if(n.jiMQ[t])n.jiMQ[t].ui.NKbi()}})),l(this,"MhHb",(function(e){if(y(e.additional_info)){var t=e.additional_info.uuid;if(n.jiMQ[t]){n.jiMQ[t].ui.jyDc((function(e){n.updateCount(t),n.isShowingAction=!0,n.currentAction=e}),(function(){n.isShowingAction=!1,n.currentAction=null}))}}})),l(this,"ODtn",(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.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"author": "Uma Sankar Yedida <umasankar.yedida@apxor.com> (https://www.apxor.com)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -71,4 +71,4 @@
|
|
|
71
71
|
"dist"
|
|
72
72
|
],
|
|
73
73
|
"unpkg": "dist/apxor.rtm.min.js"
|
|
74
|
-
}
|
|
74
|
+
}
|