/*! shepherd.js 5.0.1 */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Shepherd=t()}(this,(function(){"use strict";function e(){return(e=Object.assign||function(e){for(var t=1;t-1},P=i((function(e){(e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],c(e)?(n=k.call(e,"c"),r=k.call(e,"e"),o=k.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?x(_(i),a):a}).gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],c(t)?m(t)?c(n)?m(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,c(e)?(r=k.call(e,"c"),o=k.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?x(_(i),a):a}})),A=function(e){if(!(t=e)||!("symbol"==typeof t||t.constructor&&"Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag]))throw new TypeError(e+" is not a symbol");var t;return e},L=Object.create,I=Object.defineProperties,B=Object.defineProperty,M=Object.prototype,N=L(null);if("function"==typeof Symbol){a=Symbol;try{String(a()),p=!0}catch(e){}}var F,j=(F=L(null),function(e){for(var t,n,r=0;F[e+(r||"")];)++r;return F[e+=r||""]=!0,B(M,t="@@"+e,P.gs(null,(function(e){n||(n=!0,B(this,t,P(e)),n=!1)}))),t});l=function(e){if(this instanceof l)throw new TypeError("Symbol is not a constructor");return s(e)};var D=s=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return p?a(t):(n=L(l.prototype),t=void 0===t?"":String(t),I(n,{__description__:P("",t),__name__:P("",j(t))}))};I(s,{for:P((function(e){return N[e]?N[e]:N[e]=s(String(e))})),keyFor:P((function(e){var t;for(t in A(e),N)if(N[t]===e)return t})),hasInstance:P("",a&&a.hasInstance||s("hasInstance")),isConcatSpreadable:P("",a&&a.isConcatSpreadable||s("isConcatSpreadable")),iterator:P("",a&&a.iterator||s("iterator")),match:P("",a&&a.match||s("match")),replace:P("",a&&a.replace||s("replace")),search:P("",a&&a.search||s("search")),species:P("",a&&a.species||s("species")),split:P("",a&&a.split||s("split")),toPrimitive:P("",a&&a.toPrimitive||s("toPrimitive")),toStringTag:P("",a&&a.toStringTag||s("toStringTag")),unscopables:P("",a&&a.unscopables||s("unscopables"))}),I(l.prototype,{constructor:P(s),toString:P("",(function(){return this.__name__}))}),I(s.prototype,{toString:P((function(){return"Symbol ("+A(this).__description__+")"})),valueOf:P((function(){return A(this)}))}),B(s.prototype,s.toPrimitive,P("",(function(){var e=A(this);return"symbol"==typeof e?e:e.toString()}))),B(s.prototype,s.toStringTag,P("c","Symbol")),B(l.prototype,s.toStringTag,P("c",s.prototype[s.toStringTag])),B(l.prototype,s.toPrimitive,P("c",s.prototype[s.toPrimitive])),function(){var e;if("function"!=typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(e){return!1}return!!r[typeof Symbol.iterator]&&(!!r[typeof Symbol.toPrimitive]&&!!r[typeof Symbol.toStringTag])}()||Object.defineProperty(o,"Symbol",{value:D,configurable:!0,enumerable:!1,writable:!0}) /*! * isobject * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */;var H=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)},R=function(e,t,n){if(H(n)||(n={default:n}),!z(e))return void 0!==n.default?n.default:e;"number"==typeof t&&(t=String(t));const r=Array.isArray(t),o="string"==typeof t,i=n.separator||".",a=n.joinChar||("string"==typeof i?i:".");if(!o&&!r)return e;if(o&&t in e)return W(t,e,n)?e[t]:n.default;let s=r?t:function(e,t,n){if("function"==typeof n.split)return n.split(e);return e.split(t)}(t,i,n),l=s.length,p=0;do{let t=s[p];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=V([t.slice(0,-1),s[++p]||""],a,n);if(t in e){if(!W(t,e,n))return n.default;e=e[t]}else{let r=!1,o=p+1;for(;o * * Copyright (c) 2014-2018, Jon Schlinkert. * Released under the MIT License. */function V(e,t,n){return"function"==typeof n.join?n.join(e):e[0]+t+e[1]}function W(e,t,n){return"function"!=typeof n.isValid||n.isValid(e,t)}function z(e){return H(e)||Array.isArray(e)||"function"==typeof e}var U=function(){},q={},Y=[],X=[];function $(e,t){var n,r,o,i,a=X;for(i=arguments.length;i-- >2;)Y.push(arguments[i]);for(t&&null!=t.children&&(Y.length||Y.push(t.children),delete t.children);Y.length;)if((r=Y.pop())&&void 0!==r.pop)for(i=r.length;i--;)Y.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&n?a[a.length-1]+=r:a===X?a=[r]:a.push(r),n=o;var s=new U;return s.nodeName=e,s.children=a,s.attributes=null==t?void 0:t,s.key=null==t?void 0:t.key,s}function K(e,t){for(var n in t)e[n]=t[n];return e}function Z(e,t){e&&("function"==typeof e?e(t):e.current=t)}var G="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;var J=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,Q=[];function ee(e){!e._dirty&&(e._dirty=!0)&&1==Q.push(e)&&G(te)}function te(){for(var e;e=Q.pop();)e._dirty&&xe(e)}function ne(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&re(e,t.nodeName):n||e._componentConstructor===t.nodeName}function re(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function oe(e){var t=K({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function ie(e){var t=e.parentNode;t&&t.removeChild(e)}function ae(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)Z(n,null),Z(r,e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===J.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,se,a):e.removeEventListener(t,se,a),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var s=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(s?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function se(e){return this._listeners[e.type](e)}var le=[],pe=0,ce=!1,ue=!1;function fe(){for(var e;e=le.shift();)e.componentDidMount&&e.componentDidMount()}function de(e,t,n,r,o,i){pe++||(ce=null!=o&&void 0!==o.ownerSVGElement,ue=null!=e&&!("__preactattr_"in e));var a=he(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--pe||(ue=!1,i||fe()),a}function he(e,t,n,r,o){var i=e,a=ce;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),me(e,!0))),i.__preactattr_=!0,i;var s,l,p=t.nodeName;if("function"==typeof p)return function(e,t,n,r){var o=e&&e._component,i=o,a=e,s=o&&e._componentConstructor===t.nodeName,l=s,p=oe(t);for(;o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;o&&l&&(!r||o._component)?(we(o,p,3,n,r),e=o.base):(i&&!s&&(Te(i),e=a=null),o=ye(t.nodeName,p,n),e&&!o.nextBase&&(o.nextBase=e,a=null),we(o,p,1,n,r),e=o.base,a&&e!==a&&(a._component=null,me(a,!1)));return e}(e,t,n,r);if(ce="svg"===p||"foreignObject"!==p&&ce,p=String(p),(!e||!re(e,p))&&(s=p,(l=ce?document.createElementNS("http://www.w3.org/2000/svg",s):document.createElement(s)).normalizedNodeName=s,i=l,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),me(e,!0)}var c=i.firstChild,u=i.__preactattr_,f=t.children;if(null==u){u=i.__preactattr_={};for(var d=i.attributes,h=d.length;h--;)u[d[h].name]=d[h].value}return!ue&&f&&1===f.length&&"string"==typeof f[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=f[0]&&(c.nodeValue=f[0]):(f&&f.length||null!=c)&&function(e,t,n,r,o){var i,a,s,l,p,c=e.childNodes,u=[],f={},d=0,h=0,m=c.length,v=0,b=t?t.length:0;if(0!==m)for(var y=0;y2?[].slice.call(arguments,2):e.children)},createRef:function(){return{}},Component:Se,render:function(e,t,n){return de(n,e,{},!1,t,!1)},rerender:te,options:q};function _e(e){return e instanceof HTMLElement}function Oe(e){return"function"==typeof e}function Ce(e){return"string"==typeof e}function ke(e){return void 0===e}var Pe=function(){function e(){}var t=e.prototype;return t.on=function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];ke(this.bindings)&&(this.bindings={}),ke(this.bindings[e])&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r})},t.once=function(e,t,n){this.on(e,t,n,!0)},t.off=function(e,t){var n=this;if(ke(this.bindings)||ke(this.bindings[e]))return!1;ke(t)?delete this.bindings[e]:this.bindings[e].forEach((function(r,o){r.handler===t&&n.bindings[e].splice(o,1)}))},t.trigger=function(e){var t=this;if(!ke(this.bindings)&&this.bindings[e]){var n=Array.prototype.slice.call(arguments,1);this.bindings[e].forEach((function(r,o){var i=r.ctx,a=r.handler,s=r.once,l=i||t;a.apply(l,n),s&&t.bindings[e].splice(o,1)}))}},e}();function Ae(e){for(var t=Object.getOwnPropertyNames(e.constructor.prototype),n=0;n-1}function ct(e,t){e.innerHTML=Qe(t)?t.innerHTML:t}function ut(e,t){if(Qe(t.content))ct(e,""),e.appendChild(t.content);else if("function"!=typeof t.content){e[t.allowHTML?"innerHTML":"textContent"]=t.content}}function ft(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 dt(e){e.setAttribute("data-inertia","")}function ht(e){var t=nt();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",Qe(e)?t.appendChild(e):ct(t,"round"===e?'':e)),t}function mt(e){var t=nt();return t.className="tippy-backdrop",t.setAttribute("data-state",e?"visible":"hidden"),t}function vt(e){e.setAttribute("data-interactive","")}function bt(e,t,n){var r=He&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](r,n)}function yt(e){return e.split("-")[0]}function gt(e,t,n){n.split(" ").forEach((function(n){n&&e.classList[t](n+"-theme")}))}function wt(e,t){var n=nt();n.className="tippy-popper",n.style.position="absolute",n.style.top="0",n.style.left="0";var r=nt();r.className="tippy-tooltip",r.id="tippy-"+e,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1"),gt(r,"add",t.theme);var o=nt();return o.className="tippy-content",o.setAttribute("data-state","hidden"),t.interactive&&vt(r),t.arrow&&(r.setAttribute("data-arrow",""),r.appendChild(ht(t.arrow))),t.animateFill&&(r.appendChild(mt(!1)),r.setAttribute("data-animatefill","")),t.inertia&&dt(r),ut(o,t),r.appendChild(o),n.appendChild(r),xt(n,t,t,!1),n}function xt(e,t,n,r){var o=ft(e),i=o.tooltip,a=o.content,s=o.backdrop,l=o.arrow;e.style.zIndex=""+n.zIndex,i.setAttribute("data-animation",n.animation),i.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?i.setAttribute("role",n.role):i.removeAttribute("role"),t.content!==n.content&&ut(a,n),!t.animateFill&&n.animateFill?(i.appendChild(mt(r)),i.setAttribute("data-animatefill","")):t.animateFill&&!n.animateFill&&(i.removeChild(s),i.removeAttribute("data-animatefill")),!t.arrow&&n.arrow?(i.appendChild(ht(n.arrow)),i.setAttribute("data-arrow","")):t.arrow&&!n.arrow?(i.removeChild(l),i.removeAttribute("data-arrow")):t.arrow!==n.arrow&&(i.removeChild(l),i.appendChild(ht(n.arrow))),!t.interactive&&n.interactive?vt(i):t.interactive&&!n.interactive&&function(e){e.removeAttribute("data-interactive")}(i),!t.inertia&&n.inertia?dt(i):t.inertia&&!n.inertia&&function(e){e.removeAttribute("data-inertia")}(i),t.theme!==n.theme&&(gt(i,"remove",t.theme),gt(i,"add",n.theme))}for( /**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.15.0 * @license * Copyright (c) 2016 Federico Zivolo and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ var Tt="undefined"!=typeof window&&"undefined"!=typeof document,St=["Edge","Trident","Firefox"],Et=0,_t=0;_t=0){Et=1;break}var Ot=Tt&&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()}),Et))}};function Ct(e){return e&&"[object Function]"==={}.toString.call(e)}function kt(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Pt(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function At(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=kt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:At(Pt(e))}var Lt=Tt&&!(!window.MSInputMethodContext||!document.documentMode),It=Tt&&/MSIE 10/.test(navigator.userAgent);function Bt(e){return 11===e?Lt:10===e?It:Lt||It}function Mt(e){if(!e)return document.documentElement;for(var t=Bt(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===kt(n,"position")?Mt(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Nt(e){return null!==e.parentNode?Nt(e.parentNode):e}function Ft(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&Mt(a.firstElementChild)!==a?Mt(l):l;var p=Nt(e);return p.host?Ft(p.host,t):Ft(e,Nt(t).host)}function jt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function Dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=jt(t,"top"),o=jt(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function Ht(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function Rt(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Bt(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Vt(e){var t=e.body,n=e.documentElement,r=Bt(10)&&getComputedStyle(n);return{height:Rt("Height",t,n,r),width:Rt("Width",t,n,r)}}var Wt=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},zt=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=Bt(10),o="HTML"===t.nodeName,i=Xt(e),a=Xt(t),s=At(e),l=kt(t),p=parseFloat(l.borderTopWidth,10),c=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var u=Yt({top:i.top-a.top-p,left:i.left-a.left-c,width:i.width,height:i.height});if(u.marginTop=0,u.marginLeft=0,!r&&o){var f=parseFloat(l.marginTop,10),d=parseFloat(l.marginLeft,10);u.top-=p-f,u.bottom-=p-f,u.left-=c-d,u.right-=c-d,u.marginTop=f,u.marginLeft=d}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(u=Dt(u,t)),u}function Kt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=$t(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:jt(n),s=t?0:jt(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return Yt(l)}function Zt(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===kt(e,"position"))return!0;var n=Pt(e);return!!n&&Zt(n)}function Gt(e){if(!e||!e.parentElement||Bt())return document.documentElement;for(var t=e.parentElement;t&&"none"===kt(t,"transform");)t=t.parentElement;return t||document.documentElement}function Jt(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?Gt(e):Ft(e,t);if("viewport"===r)i=Kt(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=At(Pt(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=$t(s,a,o);if("HTML"!==s.nodeName||Zt(a))i=l;else{var p=Vt(e.ownerDocument),c=p.height,u=p.width;i.top+=l.top-l.marginTop,i.bottom=c+l.top,i.left+=l.left-l.marginLeft,i.right=u+l.left}}var f="number"==typeof(n=n||0);return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function Qt(e){return e.width*e.height}function en(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Jt(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return qt({key:e},s[e],{area:Qt(s[e])})})).sort((function(e,t){return t.area-e.area})),p=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=p.length>0?p[0].key:l[0].key,u=e.split("-")[1];return c+(u?"-"+u:"")}function tn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?Gt(t):Ft(t,n);return $t(n,o,r)}function nn(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function rn(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 on(e,t,n){n=n.split("-")[0];var r=nn(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",p=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[p]:t[rn(s)],o}function an(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function sn(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 r=an(e,(function(e){return e[t]===n}));return e.indexOf(r)}(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&&Ct(n)&&(t.offsets.popper=Yt(t.offsets.popper),t.offsets.reference=Yt(t.offsets.reference),t=n(t,e))})),t}function ln(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=tn(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=en(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=on(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=sn(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function pn(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function cn(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=xn.indexOf(e),r=xn.slice(n+1).concat(xn.slice(0,n));return t?r.reverse():r}var Sn="flip",En="clockwise",_n="counterclockwise";function On(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(an(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 l=/\s*,\s*|\s+/,p=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(p=p.map((function(e,r){var o=(1===r?!i:i)?"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,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return Yt(s)[t]/100*i}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*i}return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){vn(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Cn={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],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",p=s?"width":"height",c={start:Ut({},l,i[l]),end:Ut({},l,i[l]+i[p]-a[p])};e.offsets.popper=qt({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],l=void 0;return l=vn(+n)?[+n,0]:On(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Mt(e.instance.popper);e.instance.reference===n&&(n=Mt(n));var r=cn("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=Jt(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var p=t.priority,c=e.offsets.popper,u={primary:function(e){var n=c[e];return c[e]l[e]&&!t.escapeWithReference&&(r=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),Ut({},n,r)}};return p.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=qt({},c,u[t](e))})),e.offsets.popper=c,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,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",p=a?"width":"height";return n[s]i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!gn(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),p=l?"height":"width",c=l?"Top":"Left",u=c.toLowerCase(),f=l?"left":"top",d=l?"bottom":"right",h=nn(r)[p];s[d]-ha[d]&&(e.offsets.popper[u]+=s[u]+h-a[d]),e.offsets.popper=Yt(e.offsets.popper);var m=s[u]+s[p]/2-h/2,v=kt(e.instance.popper),b=parseFloat(v["margin"+c],10),y=parseFloat(v["border"+c+"Width"],10),g=m-e.offsets.popper[u]-b-y;return g=Math.max(Math.min(a[p]-h,g),0),e.arrowElement=r,e.offsets.arrow=(Ut(n={},u,Math.round(g)),Ut(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(pn(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Jt(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=rn(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Sn:a=[r,o];break;case En:a=Tn(r);break;case _n:a=Tn(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],o=rn(r);var p=e.offsets.popper,c=e.offsets.reference,u=Math.floor,f="left"===r&&u(p.right)>u(c.left)||"right"===r&&u(p.left)u(c.top)||"bottom"===r&&u(p.top)u(n.right),m=u(p.top)u(n.bottom),b="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,y=-1!==["top","bottom"].indexOf(r),g=!!t.flipVariations&&(y&&"start"===i&&d||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&v),w=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&d||!y&&"start"===i&&v||!y&&"end"===i&&m),x=g||w;(f||b||x)&&(e.flipped=!0,(f||b)&&(r=a[l+1]),x&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=qt({},e.offsets.popper,on(e.instance.popper,e.offsets.reference,e.placement)),e=sn(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],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=rn(t),e.offsets.popper=Yt(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!gn(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=an(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};Wt(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Ot(this.update.bind(this)),this.options=qt({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(qt({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=qt({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return qt({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Ct(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return zt(e,[{key:"update",value:function(){return ln.call(this)}},{key:"destroy",value:function(){return un.call(this)}},{key:"enableEventListeners",value:function(){return hn.call(this)}},{key:"disableEventListeners",value:function(){return mn.call(this)}}]),e}();kn.Utils=("undefined"!=typeof window?window:global).PopperUtils,kn.placements=wn,kn.Defaults=Cn; /**! * tippy.js v5.0.0-beta.1 * (c) 2017-2019 atomiks * MIT License */ var Pn=1,An=[];function Ln(e,t){var n,r,o,i,a=it(e,t);if(!a.multiple&&e._tippy)return null;var s,l,p=!1,c=!1,u=!1,f=[],d=at(M,a.interactiveDebounce),h=Pn++,m=wt(h,a),v=ft(m),b=v.tooltip,y=v.content,g={currentPlacement:a.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:h,reference:e,popper:m,popperChildren:v,popperInstance:null,props:a,state:g,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){var n=Ne({},t);if(w.state.isDestroyed)return;I();var r=w.props,o=it(e,Ne({},w.props,{},n,{ignoreAttributes:!0}));o.ignoreAttributes=Ze(n,"ignoreAttributes")?n.ignoreAttributes||!1:r.ignoreAttributes,w.props=o,L(),_(),d=at(M,o.interactiveDebounce),xt(m,r,o,w.state.isVisible),w.popperChildren=ft(m),w.popperInstance&&(We.some((function(e){return Ze(n,e)&&n[e]!==r[e]}))?(w.popperInstance.destroy(),D(),w.state.isVisible&&w.popperInstance.enableEventListeners()):w.popperInstance.update())},setContent:function(e){w.setProps({content:e})},show:function(t,n){void 0===t&&(t=Ge(w.props.duration,0,Ve.duration));void 0===n&&(n=!0);var r=w.state.isVisible,o=w.state.isDestroyed,i=!w.state.isEnabled,a=Ue.isTouch&&!w.props.touch;if(r||o||i||a)return;if(E().hasAttribute("disabled"))return;if(!1===w.props.onShow(w))return;C(),m.style.visibility="visible",w.state.isVisible=!0;var l=S();rt(n?l.concat(m):l,0),s=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&&function(){rt([m],De?0:w.props.updateDuration);var t=e.getBoundingClientRect();!function n(){var r=e.getBoundingClientRect();t.top===r.top&&t.right===r.right&&t.bottom===r.bottom&&t.left===r.left||w.popperInstance.scheduleUpdate(),t=r,w.state.isMounted&&requestAnimationFrame(n)}()}(),rt([m],w.props.updateDuration),rt(l,t),ot(l,"visible"),function(e,t){P(e,t)}(t,(function(){if(w.props.aria){var e=E(),t="aria-"+w.props.aria,n=e.getAttribute(t),r=n?n+" "+b.id:b.id;e.setAttribute(t,r)}w.props.onShown(w),w.state.isShown=!0})))},function(){c=!1;var t=w.props.appendTo,n="parent"===t?e.parentNode:et(t,[e]);n.contains(m)||n.appendChild(m);w.popperInstance?(tt(w.popperInstance.modifiers,w.props.flip),w.popperInstance.enableEventListeners(),w.popperInstance.scheduleUpdate()):(D(),w.popperInstance.enableEventListeners())}()},hide:function(e){void 0===e&&(e=Ge(w.props.duration,1,Ve.duration));var t=!w.state.isVisible&&!p,n=w.state.isDestroyed,r=!w.state.isEnabled&&!p;if(t||n||r)return;if(!1===w.props.onHide(w)&&!p)return;k(),m.style.visibility="hidden",w.state.isVisible=!1,w.state.isShown=!1;var o=S();rt(o,e),ot(o,"hidden"),function(e,t){P(e,(function(){!w.state.isVisible&&m.parentNode&&m.parentNode.contains(m)&&t()}))}(e,(function(){if(w.props.aria){var e=E(),t="aria-"+w.props.aria,n=e.getAttribute(t),r=n?n.replace(b.id,"").trim():null;r?e.setAttribute(t,r):e.removeAttribute(t)}w.popperInstance.disableEventListeners(),w.popperInstance.options.placement=w.props.placement,m.parentNode.removeChild(m),w.props.onHidden(w),w.state.isMounted=!1}))},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},destroy:function(){if(w.state.isDestroyed)return;p=!0,w.hide(0),I(),delete e._tippy,w.popperInstance&&w.popperInstance.destroy();p=!1,w.state.isDestroyed=!0}};return e._tippy=w,m._tippy=w,L(),a.lazy||D(),a.showOnCreate&&R(),m.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&"mouseenter"===n&&w.clearDelayTimeouts()})),m.addEventListener("mouseleave",(function(){w.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",d)})),a.onCreate(w),w;function x(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function T(){return"hold"===x()[0]}function S(){return[b,y,w.popperChildren.backdrop]}function E(){return w.props.triggerTarget||e}function _(){document.body.removeEventListener("mouseleave",V),document.removeEventListener("mousemove",d),An=An.filter((function(e){return e!==d}))}function O(e){if(!w.props.interactive||!m.contains(e.target)){if(E().contains(e.target)){if(Ue.isTouch)return;if(w.state.isVisible&&pt(w.props.trigger,"click"))return}!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),u=!0,setTimeout((function(){u=!1})),w.state.isMounted||k())}}function C(){document.addEventListener("mousedown",O,!0)}function k(){document.removeEventListener("mousedown",O,!0)}function P(e,t){function n(e){e.target===b&&(bt(b,"remove",n),t())}if(0===e)return t();bt(b,"remove",l),bt(b,"add",n),l=n}function A(e,t,n){void 0===n&&(n=!1),E().addEventListener(e,t,n),f.push({eventType:e,handler:t,options:n})}function L(){T()&&(A("touchstart",B,ze),A("touchend",N,ze)),pt(w.props.trigger,"click")||A("click",(function(){Ue.isTouch||!0!==w.props.hideOnClick||w.hide()})),w.props.trigger.trim().split(" ").forEach((function(e){if("manual"!==e)switch(A(e,B),e){case"mouseenter":A("mouseleave",N);break;case"focus":A(De?"focusout":"blur",F)}}))}function I(){f.forEach((function(e){var t=e.eventType,n=e.handler,r=e.options;E().removeEventListener(t,n,r)})),f=[]}function B(e){if(!u&&w.state.isEnabled&&!j(e))if(w.state.isVisible||(n=e.type,e instanceof MouseEvent&&An.forEach((function(t){return t(e)}))),"click"===e.type&&!1!==w.props.hideOnClick&&w.state.isVisible)V(e);else{var t=x(),o=t[0],i=t[1];Ue.isTouch&&"hold"===o&&i?r=setTimeout((function(){R(e)}),i):R(e)}}function M(t){(function(e,t){for(;e;){if(t(e))return e;e=e.parentElement}return null})(t.target,(function(t){return t===e||t===m}))||function(e,t,n,r){if(!e)return!0;var o=n.clientX,i=n.clientY,a=r.interactiveBorder,s=r.distance,l=t.top-i>("top"===e?a+s:a),p=i-t.bottom>("bottom"===e?a+s:a),c=t.left-o>("left"===e?a+s:a),u=o-t.right>("right"===e?a+s:a);return l||p||c||u}(yt(w.state.currentPlacement),m.getBoundingClientRect(),t,w.props)&&(_(),V(t))}function N(e){if(!j(e))return w.props.interactive?(document.body.addEventListener("mouseleave",V),document.addEventListener("mousemove",d),void An.push(d)):void V(e)}function F(e){e.target===E()&&(w.props.interactive&&e.relatedTarget&&m.contains(e.relatedTarget)||V(e))}function j(e){var t="ontouchstart"in window,n=pt(e.type,"touch"),r=T();return t&&Ue.isTouch&&r&&!n||Ue.isTouch&&!r&&n}function D(){var t=w.props.popperOptions,n=w.popperChildren.arrow,r=Je(t,"preventOverflow");function o(e){w.state.currentPlacement=e.placement,w.props.flip&&!w.props.flipOnUpdate&&(e.flipped&&(w.popperInstance.options.placement=e.placement),tt(w.popperInstance.modifiers,!1)),b.setAttribute("data-placement",e.placement),!1!==e.attributes["x-out-of-boundaries"]?b.setAttribute("data-out-of-boundaries",""):b.removeAttribute("data-out-of-boundaries");var t=yt(e.placement),n=pt(["top","bottom"],t),r=pt(["bottom","right"],t),o=b.style;o.top="0",o.left="0",o[n?"top":"left"]=(r?1:-1)*w.props.distance+"px"}var i=Ne({eventsEnabled:!1,placement:w.props.placement},t,{modifiers:Ne({},t&&t.modifiers,{preventOverflow:Ne({boundariesElement:w.props.boundary,padding:5},r),tippySetPreventOverflowPadding:{enabled:!0,order:299,fn:function(e){var t=yt(e.placement),n=r&&void 0!==r.padding?r.padding:5,o="number"==typeof n,i={top:0,bottom:0,left:0,right:0},a=Object.keys(i).reduce((function(e,r){return e[r]=o?n:n[r],t===r&&(e[r]=o?n+w.props.distance:(n[t]||0)+w.props.distance),e}),i);return w.popperInstance.modifiers.filter((function(e){return"preventOverflow"===e.name}))[0].padding=a,e}},arrow:Ne({element:n,enabled:!!n},Je(t,"arrow")),flip:Ne({enabled:w.props.flip,padding:w.props.distance+5,behavior:w.props.flipBehavior},Je(t,"flip")),offset:Ne({offset:w.props.offset},Je(t,"offset"))}),onCreate:function(e){o(e),st(t&&t.onCreate,i.onCreate,[e]),H()},onUpdate:function(e){o(e),st(t&&t.onUpdate,i.onUpdate,[e]),H()}});w.popperInstance=new kn(e,m,i)}function H(){!c&&s&&(c=!0,function(e){e.offsetHeight}(m),s())}function R(e){w.clearDelayTimeouts(),w.state.isScheduledToShow=!0,w.popperInstance||D(),e&&w.props.onTrigger(w,e),C();var t=Ge(w.props.delay,0,Ve.delay);t?r=setTimeout((function(){w.show()}),t):w.show()}function V(e){if(w.clearDelayTimeouts(),w.props.onUntrigger(w,e),w.state.isVisible){w.state.isScheduledToShow=!1;var t=Ge(w.props.delay,1,Ve.delay);t?o=setTimeout((function(){w.state.isVisible&&w.hide()}),t):i=requestAnimationFrame((function(){w.hide()}))}else k()}}function In(e,t){document.addEventListener("touchstart",Ye,Ne({},ze,{capture:!0})),window.addEventListener("blur",$e);var n,r=Ne({},Ve,{},t),o=(Qe(n=e)?[n]:n instanceof NodeList?lt(n):Array.isArray(n)?n:lt(document.querySelectorAll(n))).reduce((function(e,t){var n=t&&Ln(t,r);return n&&e.push(n),e}),[]);return Qe(e)?o[0]:o}In.version="5.0.0-beta.1",In.defaultProps=Ve,In.currentInput=Ue,In.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Ve[t]=e[t]}))},In.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;lt(document.querySelectorAll(".tippy-popper")).forEach((function(e){var t,o=e._tippy;if(o){var i=!1;n&&(i=(t=n)&&t._tippy&&!t.classList.contains("tippy-popper")?o.reference===n:e===n.popper),i||o.hide(r)}}))},Fe&&setTimeout((function(){lt(document.querySelectorAll("[data-tippy]")).forEach((function(e){var t=e.getAttribute("data-tippy");t&&In(e,{content:t})}))})) /**! * tippy.js v5.0.0-beta.1 * (c) 2017-2019 atomiks * MIT License */;function Bn(e){return Ce(e)&&""!==e?"-"!==e.charAt(e.length-1)?e+"-":e:""}function Mn(t){var n=t.options.attachTo||{},r=e({},n);if(Ce(n.element)){try{r.element=document.querySelector(n.element)}catch(e){}r.element||console.error("The element for this Shepherd step was not found "+n.element)}return r}function Nn(t){if(ke(In))throw new Error("Using the attachment feature of Shepherd requires the Tippy.js library");t.tooltip&&t.tooltip.destroy();var n=Mn(t);t.tooltip=function(t,n){var r={},o=document.body;t.element&&t.on?(r=function(t,n){var r=Me(n),o=r.popperOptions,i=r.tippyOptions;i.flipOnUpdate=!0,i.placement=t.on||"right";var a=R(n,"options.tippyOptions.popperOptions");return a&&(o=e({},o,{},a,{modifiers:e({},o.modifiers,{},a.modifiers)})),i.popperOptions=o,i}(t,n),o=t.element):r=Be(n);return In(o,r)}(n,t),t.target=n.element}Fe&&function(e){var t=document.createElement("style");t.textContent=e,t.setAttribute("data-tippy-stylesheet","");var n=document.head,r=n.querySelector("style,link");r?n.insertBefore(t,r):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% - 10px);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:-7px}.tippy-tooltip[data-placement^=bottom] .tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-7px}.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:-7px}.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:-7px}.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 Fn=function(e){function n(){return e.apply(this,arguments)||this}return t(n,e),n.prototype.render=function(e){var t=e.classPrefix,n=e.config,r=e.step,o=e.styles,i=n.action,a=n.classes,s=n.secondary,l=n.text;return Ee.h("button",{className:(a||"")+o.button+(s?" "+t+"shepherd-button-secondary":""),onClick:i?i.bind(r.tour):null,tabindex:"0"},l)},n}(Ee.Component),jn=function(e){function n(){return e.apply(this,arguments)||this}t(n,e);var r=n.prototype;return r.render=function(e){var t=e.classPrefix,n=e.step,r=e.styles,o=n.options.buttons;return Ee.h("footer",{className:r.footer.trim()},this._addButtons(o,t,n,r))},r._addButtons=function(e,t,n,r){return e?e.map((function(e){return Ee.h(Fn,{classPrefix:t,config:e,key:e.toString(),step:n,styles:r})})):null},n}(Ee.Component),Dn=function(e){function r(t){var r;return(r=e.call(this,t)||this).step=t.step,r.handleCancelClick=r.handleCancelClick.bind(n(r)),r}t(r,e);var o=r.prototype;return o.render=function(e){var t=e.labelId,n=e.step,r=e.styles,o=n.options,i=o.cancelIcon,a=o.title;return Ee.h("header",{className:r.header.trim()},this.constructor._addTitle(t,r,a),this._addCancelLink(i,r))},o.handleCancelClick=function(e){e.preventDefault(),this.step.cancel()},r._addTitle=function(e,t,n){return n?Ee.h("h3",{id:e,className:t.title.trim()},n):null},o._addCancelLink=function(e,t){return e&&e.enabled?Ee.h("button",{"aria-label":e.label?e.label:"Close Tour",className:t["cancel-icon"].trim(),onClick:this.handleCancelClick,type:"button"},Ee.h("span",{"aria-hidden":"true"},"×")):null},r}(Ee.Component),Hn=function(e){function n(){return e.apply(this,arguments)||this}t(n,e);var r=n.prototype;return r.shouldComponentUpdate=function(){return!1},r.componentDidMount=function(){var e=this.props.step,t=e.options.text;Oe(t)&&(t=t.call(e)),_e(t)&&this.base.appendChild(t)},r.render=function(e){var t=e.descriptionId,n=e.step,r=e.styles,o=n.options.text;return Oe(o)&&(o=o.call(n)),Ee.h("div",{className:r.text.trim(),dangerouslySetInnerHTML:{__html:_e(o)?null:o},id:t})},n}(Ee.Component),Rn=function(e){function n(){return e.apply(this,arguments)||this}return t(n,e),n.prototype.render=function(e){var t=e.classPrefix,r=e.descriptionId,o=e.labelId,i=e.step,a=e.styles;return Ee.h("div",{className:a.content.trim()},Ee.h(Dn,{labelId:o,step:i,styles:a}),n._addShepherdText(r,i,a),n._addShepherdFooter(t,i,a))},n._addShepherdText=function(e,t,n){return ke(t.options.text)?null:Ee.h(Hn,{descriptionId:e,step:t,styles:n})},n._addShepherdFooter=function(e,t,n){return Array.isArray(t.options.buttons)&&t.options.buttons.length?Ee.h(jn,{classPrefix:e,step:t,styles:n}):null},n}(Ee.Component),Vn=Ee.Component,Wn=function(r){function o(e){var t;return(t=r.call(this,e)||this).step=e.step,t.handleKeyDown=t.handleKeyDown.bind(n(t)),t}t(o,r);var i=o.prototype;return i.componentDidMount=function(){var e=this.element.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),t=e[0],n=e[e.length-1];this.focusableElements=e,this.firstFocusableElement=t,this.lastFocusableElement=n},i.render=function(t){var n,r=this,o=t.classes,i=t.classPrefix,a=t.descriptionId,s=t.labelId,l=t.step,p=t.styles,c=((n={})["data-"+i+"shepherd-step-id"]=l.id,n);return Ee.h("div",e({"aria-describedby":ke(l.options.text)?null:a,"aria-labeledby":l.options.title?s:null,className:o+p.element},c,{onKeyDown:this.handleKeyDown,ref:function(e){return r.element=e},role:"dialog",tabindex:"0"}),Ee.h(Rn,{classPrefix:i,descriptionId:a,labelId:s,step:l,styles:p}))},i.handleKeyDown=function(e){var t=this.step.tour;switch(e.keyCode){case 9:if(1===this.focusableElements.length){e.preventDefault();break}e.shiftKey?document.activeElement===this.firstFocusableElement&&(e.preventDefault(),this.lastFocusableElement.focus()):document.activeElement===this.lastFocusableElement&&(e.preventDefault(),this.firstFocusableElement.focus());break;case 27:t.options.exitOnEsc&&this.step.cancel();break;case 37:t.options.keyboardNavigation&&t.back();break;case 39:t.options.keyboardNavigation&&t.next()}},o}(Vn);Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var zn=i((function(e,t){e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,r=e.HTMLElement||e.Element,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,a=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?h.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):o.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof 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])?o.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;h.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.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}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=f(this),r=n.getBoundingClientRect(),i=this.getBoundingClientRect();n!==t.body?(h.call(this,n,n.scrollLeft+i.left-r.left,n.scrollTop+i.top-r.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function p(e,t){return"Y"===t?e.clientHeight+a1?1:s,n=.5*(1-Math.cos(Math.PI*a)),r=t.startX+(t.x-t.startX)*n,o=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,r,o),r===t.x&&o===t.y||e.requestAnimationFrame(d.bind(e,t))}function h(n,r,a){var l,p,c,u,f=i();n===t.body?(l=e,p=e.scrollX||e.pageXOffset,c=e.scrollY||e.pageYOffset,u=o.scroll):(l=n,p=n.scrollLeft,c=n.scrollTop,u=s),d({scrollable:l,method:u,startTime:f,startX:p,startY:c,x:r,y:a})}}}}));zn.polyfill;zn.polyfill();var Un,qn,Yn=Ee.render,Xn=(Un=0,function(){return++Un}),$n=function(e){function r(t,r){var o;return void 0===r&&(r={}),(o=e.call(this,t,r)||this).tour=t,o.classPrefix=o.tour.options?Bn(o.tour.options.classPrefix):"",o.styles=t.styles,Ae(n(o)),o._setOptions(r),n(o)||n(o)}t(r,e);var o=r.prototype;return o.cancel=function(){this.tour.cancel(),this.trigger("cancel")},o.complete=function(){this.tour.complete(),this.trigger("complete")},o.destroy=function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),_e(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this.target&&this._updateStepTargetOnHide(),this.trigger("destroy")},o.getTour=function(){return this.tour},o.hide=function(){this.tour.modal.hide(),this.trigger("before-hide"),document.body.removeAttribute("data-"+this.classPrefix+"shepherd-step"),this.target&&this._updateStepTargetOnHide(),this.tooltip&&this.tooltip.hide(),this.trigger("hide")},o.isOpen=function(){return Boolean(this.tooltip&&this.tooltip.state&&this.tooltip.state.isVisible)},o.show=function(){var e=this;if(Oe(this.options.beforeShowPromise)){var t=this.options.beforeShowPromise();if(!ke(t))return t.then((function(){return e._show()}))}this._show()},o._createTooltipContent=function(){var e=R(this,"options.cancelIcon.enabled"),t=this.options.classes||"",n=this.id+"-description",r=this.id+"-label";return e&&(t+=" "+this.classPrefix+"shepherd-has-cancel-icon"),Yn(Ee.h(Wn,{classPrefix:this.classPrefix,classes:t,descriptionId:n,labelId:r,step:this,styles:this.styles}),null)},o._scrollTo=function(e){var t=Mn(this).element;Oe(this.options.scrollToHandler)?this.options.scrollToHandler(t):_e(t)&&t.scrollIntoView(e)},o._setOptions=function(e){var t=this;void 0===e&&(e={}),this.options=e;var n=this.options.when;this.destroy(),this.id=this.options.id||"step-"+Xn(),n&&Object.keys(n).forEach((function(e){t.on(e,n[e],t)}))},o._setupElements=function(){ke(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Le(this),Nn(this)},o._show=function(){var e=this;this.trigger("before-show"),this.el||this._setupElements(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),(this.target||document.body).classList.add(this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target"),document.body.setAttribute("data-"+this.classPrefix+"shepherd-step",this.id),this.options.scrollTo&&setTimeout((function(){e._scrollTo(e.options.scrollTo)})),this.tooltip.show(),this.trigger("show"),this.el.focus()},o._styleTargetElementForStep=function(e){var t,n,r,o=e.target;o&&(t=o,n=e.classPrefix,(r=document.querySelector("."+n+"shepherd-modal-target"))&&r.classList.remove(n+"shepherd-modal-target"),t.classList.add(n+"shepherd-modal-target"),e.options.highlightClass&&o.classList.add(e.options.highlightClass),!1===e.options.canClickTarget&&(o.style.pointerEvents="none"))},o._updateStepTargetOnHide=function(){this.options.highlightClass&&this.target.classList.remove(this.options.highlightClass),this.target.classList.remove(this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target")},r}(Pe),Kn=i((function(e,t){!function(e){function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,p=a):o>=3&&o<4?(l=a,p=i):o>=4&&o<5?(s=a,p=i):o>=5&&o<6&&(s=i,p=a);var c=n-i/2;return r(s+c,l+c,p+c)}var lr={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var pr=/^#[a-fA-F0-9]{6}$/,cr=/^#[a-fA-F0-9]{8}$/,ur=/^#[a-fA-F0-9]{3}$/,fr=/^#[a-fA-F0-9]{4}$/,dr=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,hr=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,mr=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/i,vr=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function br(e){if("string"!=typeof e)throw new or(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return lr[t]?"#"+lr[t]:e}(e);if(t.match(pr))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(cr)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(ur))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(fr)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=dr.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=hr.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=mr.exec(t);if(a){var s="rgb("+sr(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",l=dr.exec(s);if(!l)throw new or(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var p=vr.exec(t);if(p){var c="rgb("+sr(parseInt(""+p[1],10),parseInt(""+p[2],10)/100,parseInt(""+p[3],10)/100)+")",u=dr.exec(c);if(!u)throw new or(4,t,c);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10),alpha:parseFloat(""+p[4])}}throw new or(5)}function yr(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),s=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var l=i-a,p=s>.5?l/(2-i-a):l/(i+a);switch(i){case n:t=(r-o)/l+(r=1?Er(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Er(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new or(7)}function Or(e){if("object"!=typeof e)throw new or(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return _r(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return Er(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?Sr(e,t,n):"rgba("+sr(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Sr(e.hue,e.saturation,e.lightness):"rgba("+sr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new or(2)}(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Sr(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return Sr(e.hue,e.saturation,e.lightness);throw new or(1)}(e);throw new or(8)}function Cr(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function kr(e,t,n){return Math.max(e,Math.min(t,n))}function Pr(e,t){if("transparent"===t)return t;var n=yr(t);return Or(Jn({},n,{lightness:kr(0,1,n.lightness-parseFloat(e))}))}var Ar=Cr(Pr);function Lr(e,t){if("transparent"===t)return t;var n=yr(t);return Or(Jn({},n,{saturation:kr(0,1,n.saturation-parseFloat(e))}))}var Ir=Cr(Lr);function Br(e){if("transparent"===e)return 0;var t=br(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],o=n[1],i=n[2];return parseFloat((.2126*r+.7152*o+.0722*i).toFixed(3))}function Mr(e,t){if("transparent"===t)return t;var n=yr(t);return Or(Jn({},n,{lightness:kr(0,1,n.lightness+parseFloat(e))}))}var Nr=Cr(Mr);function Fr(e,t,n){return void 0===t&&(t="#000"),void 0===n&&(n="#fff"),Br(e)>.179?t:n}function jr(e,t){if("transparent"===t)return t;var n=br(t);return _r(Jn({},n,{alpha:kr(0,1,(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e))/100)}))}var Dr=Cr(jr),Hr={arrowSize:2.1,overlayOpacity:.5,shepherdButtonBorderRadius:"3px",shepherdElementBorderRadius:"5px",shepherdElementMaxHeight:"100%",shepherdElementMaxWidth:"100%",shepherdElementZIndex:9999,shepherdTextBackground:"#ffffff",shepherdTextLineHeight:"1.3em",shepherdTextFontSize:"1rem",shepherdThemePrimary:"#3288e6"};function Rr(t){return t.styleVariables&&e(Hr,t.styleVariables),Hr.shepherdHeaderBackground||(Hr.shepherdHeaderBackground=Ar(.1,Hr.shepherdTextBackground)),Hr.shepherdThemeSecondary||(Hr.shepherdThemeSecondary=Ir(.7,Nr(.4,Hr.shepherdThemePrimary))),function(){Hr.shepherdThemeTextPrimary||(Hr.shepherdThemeTextPrimary=Dr(.25,Fr(Hr.shepherdThemePrimary)));Hr.shepherdThemeTextSecondary||(Hr.shepherdThemeTextSecondary=Dr(.25,Fr(Hr.shepherdThemeSecondary)));Hr.shepherdThemeTextHeader||(Hr.shepherdThemeTextHeader=Dr(.25,Fr(Hr.shepherdHeaderBackground)));Hr.shepherdThemeTextColor||(Hr.shepherdThemeTextColor=Dr(.25,Fr(Hr.shepherdTextBackground)))}(),Hr}function Vr(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r>>0).toString(36)}(n.stringify(e))},selector:function(e,t){return e+(":"===t[0]?"":" ")+t},putRaw:function(e){n.raw+=e}},e);return n.client&&(n.sh||document.head.appendChild(n.sh=document.createElement("style")),n.putRaw=function(e){var t=n.sh.sheet;try{t.insertRule(e,t.cssRules.length)}catch(e){}}),n.put=function(e,t,r){var o,i,a="",s=[];for(o in t)(i=t[o])instanceof Object&&!(i instanceof Array)?s.push(o):a+=n.decl(o,i,e,r);a&&(a=e+"{"+a+"}",n.putRaw(r?r+"{"+a+"}":a));for(var l=0;l-1)for(r=0;r.6?Ar(t/2,e):Nr((1-t)/2,e)}function Kr(t){var n,r,o,i,a,s,l,p,c,u,f=Rr(t),d=Bn(t.classPrefix),h=Bn(t.tippyClassPrefix),m=t.includeStyles,v=e({active:(r={},r["&."+d+"shepherd-modal-is-visible"]=(n={},n[":not(."+d+"shepherd-target)"]={pointerEvents:"none"},n["."+d+"shepherd-button, ."+d+"shepherd-cancel-icon, ."+d+"shepherd-element, ."+d+"shepherd-target"]={pointerEvents:"auto","*":{pointerEvents:"auto"}},n),r)},function(e,t,n){var r;return n?{button:(r={background:t.shepherdThemePrimary,borderRadius:t.shepherdButtonBorderRadius,border:0,color:t.shepherdThemeTextPrimary,cursor:"pointer",display:"inline-block",fontFamily:"inherit",fontSize:"0.8em",letterSpacing:"0.1em",lineHeight:"1em",marginRight:"0.5em",padding:"0.75em 2em",textTransform:"uppercase",transition:"all 0.5s ease",verticalAlign:"middle","&:hover":{background:Ar(.1,t.shepherdThemePrimary)}},r["&."+e+"shepherd-button-secondary"]={background:t.shepherdThemeSecondary,color:t.shepherdThemeTextSecondary,"&:hover":{background:Ar(.1,t.shepherdThemeSecondary),color:Ar(.1,t.shepherdThemeTextSecondary)}},r)}:{button:{}}}(d,f,m),{},function(e,t){return t?{content:{background:e.shepherdTextBackground,borderRadius:e.shepherdElementBorderRadius,fontSize:"inherit",outline:"none",padding:0}}:{content:{}}}(f,m),{},{element:{outline:"none","&, *":{"&, &:after, &:before":{boxSizing:"border-box"}}}},{},function(e,t,n){var r;return n?{footer:(r={borderBottomLeftRadius:t.shepherdElementBorderRadius,borderBottomRightRadius:t.shepherdElementBorderRadius,display:"flex",justifyContent:"flex-end",padding:"0 0.75em 0.75em"},r["."+e+"shepherd-button"]={"&:last-child":{marginRight:0}},r)}:{footer:{}}}(d,f,m),{},function(t,n,r){var o,i,a=((o={alignItems:"center",borderTopLeftRadius:n.shepherdElementBorderRadius,borderTopRightRadius:n.shepherdElementBorderRadius,display:"flex",justifyContent:"flex-end",lineHeight:"2em",padding:"0.75em 0.75em 0"})["."+t+"shepherd-has-title ."+t+"shepherd-content &"]={background:n.shepherdHeaderBackground,padding:"1em"},o),s={color:n.shepherdThemeTextHeader,display:"flex",flex:"1 0 auto",fontSize:"1.1em",fontWeight:"normal",margin:0,padding:0,position:"relative",verticalAlign:"middle"},l={"cancel-icon":(i={background:"transparent",border:"none",color:$r(n.shepherdThemeTextColor),fontSize:"2em",fontWeight:"normal",margin:0,padding:0,position:"relative",textDecoration:"none",transition:"color 0.5s ease",verticalAlign:"middle","&:hover":{color:n.shepherdThemeTextColor,cursor:"pointer"}},i["."+t+"shepherd-has-title ."+t+"shepherd-content &"]={color:$r(n.shepherdThemeTextHeader),"&:hover":{color:n.shepherdThemeTextHeader}},i)};return l=e({},l,r?{header:a,title:s}:{header:{},title:{}})}(d,f,m),{},function(e,t){var n;return{"modal-overlay-container":(n={"-ms-filter":"progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)",filter:"alpha(opacity=50)",height:0,left:0,opacity:0,overflow:"hidden",position:"fixed",top:0,transition:"all 0.3s ease-out, height 0ms 0.3s, opacity 0.3s 0ms",width:"100vw",zIndex:t.shepherdElementZIndex-2},n["."+e+"shepherd-modal-is-visible &"]={height:"100vh",opacity:t.overlayOpacity,transition:"all 0.3s ease-out, height 0s 0s, opacity 0.3s 0s"},n),"modal-mask-rect":{height:"100vh",width:"100vw"}}}(d,f),{},function(e,t){return t?{text:{color:e.shepherdThemeTextColor,fontSize:e.shepherdTextFontSize,lineHeight:e.shepherdTextLineHeight,padding:"0.75em",p:{marginTop:0,"&:last-child":{marginBottom:0}}}}:{text:{}}}(f,m));f.useDropShadow&&(v.element.filter="drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2))");var b=Xr(v,d+"shepherd"),y="calc(("+f.arrowSize+" / 2.1) * 16px)",g={'&[x-placement^="top"]':(o={marginBottom:y},o["."+h+"tippy-arrow"]={borderTopColor:f.shepherdTextBackground},o),'&[x-placement^="bottom"]':(a={marginTop:y},a["."+h+"tippy-arrow"]={borderBottomColor:f.shepherdTextBackground},a["&."+d+"shepherd-has-title"]=(i={},i["."+h+"tippy-arrow"]={borderBottomColor:f.shepherdHeaderBackground},i),a),'&[x-placement^="left"]':(s={marginRight:y},s["."+h+"tippy-arrow"]={borderLeftColor:f.shepherdTextBackground},s),'&[x-placement^="right"]':(l={marginLeft:y},l["."+h+"tippy-arrow"]={borderRightColor:f.shepherdTextBackground},l)};return b.shepherd=Yr(((u={})["&."+h+"tippy-popper"]=e({},g,((c={zIndex:f.shepherdElementZIndex})["."+h+"tippy-tooltip"]=((p={backgroundColor:f.shepherdTextBackground})["."+h+"tippy-arrow"]={transform:"scale("+f.arrowSize+")",zIndex:f.shepherdElementZIndex+1},p["."+h+"tippy-content"]={maxHeight:f.shepherdElementMaxHeight,maxWidth:f.shepherdElementMaxWidth,padding:0,textAlign:"center"},p),c)),u),d+"shepherd"),b}var Zr=function(e){function r(t){var r;return(r=e.call(this,t)||this)._onScreenChange=null,r.classPrefix=t.classPrefix,Ae(n(r)),r.closeModalOpening(),r}t(r,e);var o=r.prototype;return o.render=function(e,t){var n=e.classPrefix,o=e.styles;return Ee.h("svg",{className:o["modal-overlay-container"],onTouchMove:r.handlePreventModalOverlayTouch},Ee.h("defs",null,Ee.h("mask",{className:n+"shepherd-modal-mask",height:"100%",id:n+"shepherd-modal-mask",width:"100%",x:"0",y:"0"},Ee.h("rect",{className:o["modal-mask-rect"],fill:"#FFFFFF",height:"100%",width:"100%",x:"0",y:"0"}),Ee.h("rect",{className:n+"shepherd-modal-mask-opening",fill:"#000000",height:t.openingProperties.height,x:t.openingProperties.x,y:t.openingProperties.y,width:t.openingProperties.width}))),Ee.h("rect",{height:"100%",width:"100%",x:"0",y:"0",mask:"url(#"+n+"shepherd-modal-mask)"}))},o.closeModalOpening=function(){this.setState({openingProperties:{height:0,x:0,y:0,width:0}})},o.hide=function(){document.body.classList.remove(this.classPrefix+"shepherd-modal-is-visible"),this._cleanupStepEventListeners()},o.positionModalOpening=function(e,t){if(void 0===t&&(t=0),e.getBoundingClientRect){var n=e.getBoundingClientRect(),r=n.x,o=n.y,i=n.width,a=n.height,s=n.left,l=n.top;this.setState({openingProperties:{x:(r||s)-t,y:(o||l)-t,width:i+2*t,height:a+2*t}})}},o.setupForStep=function(e){this._cleanupStepEventListeners(),e.tour.options.useModalOverlay?(this._styleForStep(e),this.show()):this.hide()},o.show=function(){document.body.classList.add(this.classPrefix+"shepherd-modal-is-visible")},o._addStepEventListeners=function(){window.addEventListener("touchmove",r._preventModalBodyTouch,{passive:!1})},o._cleanupStepEventListeners=function(){this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=void 0),window.removeEventListener("touchmove",r._preventModalBodyTouch,{passive:!1})},o._styleForStep=function(e){var t=this,n=e.options.modalOverlayOpeningPadding;if(e.target){!function r(){t.rafId=void 0,t.positionModalOpening(e.target,n),t.rafId=requestAnimationFrame(r)}(),this._addStepEventListeners()}else this.closeModalOpening()},r._preventModalBodyTouch=function(e){e.preventDefault()},r.handlePreventModalOverlayTouch=function(e){e.stopPropagation()},r}(Ee.Component),Gr=Ee.render,Jr=function(){var e=0;return function(){return++e}}(),Qr=new Pe,eo=function(r){function o(t){var o;void 0===t&&(t={}),Ae(n(o=r.call(this,t)||this));o.options=e({},{exitOnEsc:!0,includeStyles:!0,keyboardNavigation:!0},t),o.classPrefix=o.options?Bn(o.options.classPrefix):"",o.styles=Kr(o.options),o.steps=[],o.addSteps(o.options.steps);["active","cancel","complete","inactive","show","start"].map((function(e){var t;t=e,o.on(t,(function(e){(e=e||{}).tour=n(o),Qr.trigger(t,e)}))}));var i=document.querySelector("."+o.classPrefix+"shepherd-modal-overlay-container");return Gr(Ee.h(Zr,{classPrefix:o.classPrefix,ref:function(e){return o.modal=e},styles:o.styles}),t.modalContainer||document.body,i),o._setTooltipDefaults(),o._setTourID(),n(o)||n(o)}t(o,r);var i=o.prototype;return i.addStep=function(e){var t=e;return t instanceof $n?t.tour=this:t=this._setupStep(t),this.steps.push(t),t},i.addSteps=function(e){var t=this;return Array.isArray(e)&&e.forEach((function(e){t.addStep(e)})),this},i.back=function(){var e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)},i.cancel=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")},i.complete=function(){this._done("complete")},i.getById=function(e){return this.steps.find((function(t){return t.id===e}))},i.getCurrentStep=function(){return this.currentStep},i.hide=function(){var e=this.getCurrentStep();if(e)return e.hide()},i.isActive=function(){return Qr.activeTour===this},i.next=function(){var e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)},i.removeStep=function(e){var t=this,n=this.getCurrentStep();this.steps.some((function(n,r){if(n.id===e)return n.isOpen()&&n.hide(),n.destroy(),t.steps.splice(r,1),!0})),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())},i.show=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!0);var n=Ce(e)?this.getById(e):this.steps[e];n&&(this._updateStateBeforeShow(),Oe(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,t):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show()))},i.start=function(){this.trigger("start"),this.options.disableScroll&&Zn.disableBodyScroll(),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupActiveTour(),this.next()},i._done=function(e){var t,n=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach((function(e){return e.destroy()})),(t=this)&&t.steps.forEach((function(e){if(e.options&&!1===e.options.canClickTarget&&e.options.attachTo){var t=e.target;t instanceof HTMLElement&&(t.style.pointerEvents="auto")}})),this.trigger(e,{index:n}),Qr.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&Zn.clearAllBodyScrollLocks(),this.modal.hide(),_e(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},i._setupActiveTour=function(){this._addBodyAttrs(),this.trigger("active",{tour:this}),Qr.activeTour=this},i._setupStep=function(t){return t=e({},this.options.defaultStepOptions,t),new $n(this,t)},i._skipStep=function(e,t){var n=this.steps.indexOf(e),r=t?n+1:n-1;this.show(r,t)},i._setTooltipDefaults=function(){In.setDefaultProps(Gn)},i._updateStateBeforeShow=function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()},i._setTourID=function(){var e=this.options.tourName||"tour",t=Jr();this.id=e+"--"+t},i._addBodyAttrs=function(){document.body.setAttribute("data-"+this.classPrefix+"shepherd-active-tour",this.id),document.body.classList.add(this.styles.active.trim())},i._removeBodyAttrs=function(){document.body.removeAttribute("data-"+this.classPrefix+"shepherd-active-tour"),document.body.classList.remove(this.styles.active.trim())},o}(Pe);return e(Qr,{Tour:eo,Step:$n}),Qr}));