shepherdjs_rails 4.3.3 → 5.0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce7d502ec980f036e2b995ee2f148bfb91800d9acac48f23b282c704051d443c
4
- data.tar.gz: b6303356afca9ecdddc7d1176554e5eb7b2b3d08f766a1e54dc6939e351dc9d3
3
+ metadata.gz: 3881b1f65cc5fa3f43d51c864e94161c18f4c895e991f8efc2bf74c92904bbcf
4
+ data.tar.gz: 172cb7a17f226163160bce3c12b5d923bf2ff98837557c4687059bcc76b17d66
5
5
  SHA512:
6
- metadata.gz: efde6088068bb077ce16d5cf5d2bf64bbd6ebe92e02451a0b33234fe69554432df316b85ef5ccd758a4223eb4565001c8403e27970559a8a1f29a8f255607f0a
7
- data.tar.gz: aa73806579c639c4c7c662718c8fd93033731da6fa852518d946b6f291a4b47e60e4a4344f386c05452eac68ecc5450f07c53b0259033c1c44bd8a9fbf478dfe
6
+ metadata.gz: 6d45ac33e150f2b528e86f7d414180b7d8d56d5e4473d8a80f4607895441a978d1c3fbd7ce8a2cecccf90bab510591d5b33a905438493c9fcad881e169b3a95f
7
+ data.tar.gz: cd245b7cccb4e823ae35208b051e36f34103252db14b9a38d86c1c98cd23460789087ec85e821dcf0ce4b9cccb3865c7fd5fd64cc9dbdd84baadf7e86078da05
@@ -1,3 +1,3 @@
1
1
  module ShepherdjsRails
2
- VERSION = "4.3.3"
2
+ VERSION = "5.0.1.1"
3
3
  end
@@ -1,4 +1,2 @@
1
- /*! shepherd.js 4.3.3 */
2
-
3
- !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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var r={object:!0,symbol:!0},o=function(){if(this)return this;Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0});try{return __global__}finally{delete Object.prototype.__global__}}();"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e,t){return e(t={exports:{}},t.exports),t.exports}var s,l,u,p,c=function(e){return null!=e},f={object:!0,function:!0,undefined:!0},d=function(e){if(!function(e){return!!c(e)&&hasOwnProperty.call(f,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}},h=/^\s*class[\s{\/}]/,m=Function.prototype.toString,v=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!d(e)}(e)&&!h.test(m.call(e))},g=function(e){return null!=e},b=Object.keys,y=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return b(g(e)?Object(e):e)},w=function(e){if(!g(e))throw new TypeError("Cannot use null or undefined");return e},x=Math.max,_=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=x(arguments.length,2);for(e=Object(w(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)t=arguments[r],y(t).forEach(o);if(void 0!==n)throw n;return e},T=Array.prototype.forEach,S=Object.create,O=function(e,t){var n;for(n in e)t[n]=e[n]},k=function(e){var t=S(null);return T.call(arguments,function(e){g(e)&&O(Object(e),t)}),t},E="razdwatrzy",C=String.prototype.indexOf,P="function"==typeof E.contains&&!0===E.contains("dwa")&&!1===E.contains("foo")?String.prototype.contains:function(e){return C.call(this,e,arguments[1])>-1},M=a(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=P.call(e,"c"),r=P.call(e,"e"),o=P.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?_(k(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)?v(t)?c(n)?v(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,c(e)?(r=P.call(e,"c"),o=P.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?_(k(i),a):a}}),L=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},A=Object.create,B=Object.defineProperties,I=Object.defineProperty,j=Object.prototype,F=A(null);if("function"==typeof Symbol){s=Symbol;try{String(s()),p=!0}catch(e){}}var N,D=(N=A(null),function(e){for(var t,n,r=0;N[e+(r||"")];)++r;return N[e+=r||""]=!0,I(j,t="@@"+e,M.gs(null,function(e){n||(n=!0,I(this,t,M(e)),n=!1)})),t});u=function(e){if(this instanceof u)throw new TypeError("Symbol is not a constructor");return l(e)};var H=l=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return p?s(t):(n=A(u.prototype),t=void 0===t?"":String(t),B(n,{__description__:M("",t),__name__:M("",D(t))}))};function R(e){return e instanceof HTMLElement}function W(e){return"function"==typeof e}function z(e){return"string"==typeof e}function V(e){return void 0===e}B(l,{for:M(function(e){return F[e]?F[e]:F[e]=l(String(e))}),keyFor:M(function(e){var t;for(t in L(e),F)if(F[t]===e)return t}),hasInstance:M("",s&&s.hasInstance||l("hasInstance")),isConcatSpreadable:M("",s&&s.isConcatSpreadable||l("isConcatSpreadable")),iterator:M("",s&&s.iterator||l("iterator")),match:M("",s&&s.match||l("match")),replace:M("",s&&s.replace||l("replace")),search:M("",s&&s.search||l("search")),species:M("",s&&s.species||l("species")),split:M("",s&&s.split||l("split")),toPrimitive:M("",s&&s.toPrimitive||l("toPrimitive")),toStringTag:M("",s&&s.toStringTag||l("toStringTag")),unscopables:M("",s&&s.unscopables||l("unscopables"))}),B(u.prototype,{constructor:M(l),toString:M("",function(){return this.__name__})}),B(l.prototype,{toString:M(function(){return"Symbol ("+L(this).__description__+")"}),valueOf:M(function(){return L(this)})}),I(l.prototype,l.toPrimitive,M("",function(){var e=L(this);return"symbol"==typeof e?e:e.toString()})),I(l.prototype,l.toStringTag,M("c","Symbol")),I(u.prototype,l.toStringTag,M("c",l.prototype[l.toStringTag])),I(u.prototype,l.toPrimitive,M("c",l.prototype[l.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:H,configurable:!0,enumerable:!1,writable:!0});var U=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];V(this.bindings)&&(this.bindings={}),V(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(V(this.bindings)||V(this.bindings[e]))return!1;V(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(!V(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}(),q=function(){},Y={},X=[],K=[];function $(e,t){var n,r,o,i,a=K;for(i=arguments.length;i-- >2;)X.push(arguments[i]);for(t&&null!=t.children&&(X.length||X.push(t.children),delete t.children);X.length;)if((r=X.pop())&&void 0!==r.pop)for(i=r.length;i--;)X.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===K?a=[r]:a.push(r),n=o;var s=new q;return s.nodeName=e,s.children=a,s.attributes=null==t?void 0:t,s.key=null==t?void 0:t.key,s}function G(e,t){for(var n in t)e[n]=t[n];return e}function Z(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}var J="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;var Q=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,ee=[];function te(e){!e._dirty&&(e._dirty=!0)&&1==ee.push(e)&&J(ne)}function ne(){for(var e;e=ee.pop();)e._dirty&&_e(e)}function re(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&oe(e,t.nodeName):n||e._componentConstructor===t.nodeName}function oe(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function ie(e){var t=G({},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 ae(e){var t=e.parentNode;t&&t.removeChild(e)}function se(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===Q.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,le,a):e.removeEventListener(t,le,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 le(e){return this._listeners[e.type](e)}var ue=[],pe=0,ce=!1,fe=!1;function de(){for(var e;e=ue.shift();)e.componentDidMount&&e.componentDidMount()}function he(e,t,n,r,o,i){pe++||(ce=null!=o&&void 0!==o.ownerSVGElement,fe=null!=e&&!("__preactattr_"in e));var a=me(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--pe||(fe=!1,i||de()),a}function me(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),ve(e,!0))),i.__preactattr_=!0,i;var s,l,u=t.nodeName;if("function"==typeof u)return function(e,t,n,r){var o=e&&e._component,i=o,a=e,s=o&&e._componentConstructor===t.nodeName,l=s,u=ie(t);for(;o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;o&&l&&(!r||o._component)?(xe(o,u,3,n,r),e=o.base):(i&&!s&&(Te(i),e=a=null),o=ye(t.nodeName,u,n),e&&!o.nextBase&&(o.nextBase=e,a=null),xe(o,u,1,n,r),e=o.base,a&&e!==a&&(a._component=null,ve(a,!1)));return e}(e,t,n,r);if(ce="svg"===u||"foreignObject"!==u&&ce,u=String(u),(!e||!oe(e,u))&&(s=u,(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),ve(e,!0)}var p=i.firstChild,c=i.__preactattr_,f=t.children;if(null==c){c=i.__preactattr_={};for(var d=i.attributes,h=d.length;h--;)c[d[h].name]=d[h].value}return!fe&&f&&1===f.length&&"string"==typeof f[0]&&null!=p&&void 0!==p.splitText&&null==p.nextSibling?p.nodeValue!=f[0]&&(p.nodeValue=f[0]):(f&&f.length||null!=p)&&function(e,t,n,r,o){var i,a,s,l,u,p=e.childNodes,c=[],f={},d=0,h=0,m=p.length,v=0,g=t?t.length:0;if(0!==m)for(var b=0;b<m;b++){var y=p[b],w=y.__preactattr_,x=g&&w?y._component?y._component.__key:w.key:null;null!=x?(d++,f[x]=y):(w||(void 0!==y.splitText?!o||y.nodeValue.trim():o))&&(c[v++]=y)}if(0!==g)for(var b=0;b<g;b++){l=t[b],u=null;var x=l.key;if(null!=x)d&&void 0!==f[x]&&(u=f[x],f[x]=void 0,d--);else if(h<v)for(i=h;i<v;i++)if(void 0!==c[i]&&re(a=c[i],l,o)){u=a,c[i]=void 0,i===v-1&&v--,i===h&&h++;break}u=me(u,l,n,r),s=p[b],u&&u!==e&&u!==s&&(null==s?e.appendChild(u):u===s.nextSibling?ae(s):e.insertBefore(u,s))}if(d)for(var b in f)void 0!==f[b]&&ve(f[b],!1);for(;h<=v;)void 0!==(u=c[v--])&&ve(u,!1)}(i,f,n,r,fe||null!=c.dangerouslySetInnerHTML),function(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||se(e,r,n[r],n[r]=void 0,ce);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||se(e,r,n[r],n[r]=t[r],ce)}(i,t.attributes,c),ce=a,i}function ve(e,t){var n=e._component;n?Te(n):(null!=e.__preactattr_&&Z(e.__preactattr_.ref,null),!1!==t&&null!=e.__preactattr_||ae(e),ge(e))}function ge(e){for(e=e.lastChild;e;){var t=e.previousSibling;ve(e,!0),e=t}}var be=[];function ye(e,t,n){var r,o=be.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),Se.call(r,t,n)):((r=new Se(t,n)).constructor=e,r.render=we);o--;)if(be[o].constructor===e)return r.nextBase=be[o].nextBase,be.splice(o,1),r;return r}function we(e,t,n){return this.constructor(e,n)}function xe(e,t,n,r,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===Y.syncComponentUpdates&&e.base?te(e):_e(e,1,o)),Z(e.__ref,e))}function _e(e,t,n,r){if(!e._disable){var o,i,a,s=e.props,l=e.state,u=e.context,p=e.prevProps||s,c=e.prevState||l,f=e.prevContext||u,d=e.base,h=e.nextBase,m=d||h,v=e._component,g=!1,b=f;if(e.constructor.getDerivedStateFromProps&&(l=G(G({},l),e.constructor.getDerivedStateFromProps(s,l)),e.state=l),d&&(e.props=p,e.state=c,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(s,l,u)?g=!0:e.componentWillUpdate&&e.componentWillUpdate(s,l,u),e.props=s,e.state=l,e.context=u),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!g){o=e.render(s,l,u),e.getChildContext&&(u=G(G({},u),e.getChildContext())),d&&e.getSnapshotBeforeUpdate&&(b=e.getSnapshotBeforeUpdate(p,c));var y,w,x=o&&o.nodeName;if("function"==typeof x){var _=ie(o);(i=v)&&i.constructor===x&&_.key==i.__key?xe(i,_,1,u,!1):(y=i,e._component=i=ye(x,_,u),i.nextBase=i.nextBase||h,i._parentComponent=e,xe(i,_,0,u,!1),_e(i,1,n,!0)),w=i.base}else a=m,(y=v)&&(a=e._component=null),(m||1===t)&&(a&&(a._component=null),w=he(a,o,u,n||!d,m&&m.parentNode,!0));if(m&&w!==m&&i!==v){var T=m.parentNode;T&&w!==T&&(T.replaceChild(w,m),y||(m._component=null,ve(m,!1)))}if(y&&Te(y),e.base=w,w&&!r){for(var S=e,O=e;O=O._parentComponent;)(S=O).base=w;w._component=S,w._componentConstructor=S.constructor}}for(!d||n?ue.push(e):g||e.componentDidUpdate&&e.componentDidUpdate(p,c,b);e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);pe||r||de()}}function Te(e){var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?Te(n):t&&(null!=t.__preactattr_&&Z(t.__preactattr_.ref,null),e.nextBase=t,ae(t),be.push(e),ge(t)),Z(e.__ref,null)}function Se(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}G(Se.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=G(G({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),te(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),_e(this,2)},render:function(){}});var Oe={h:$,createElement:$,cloneElement:function(e,t){return $(e.nodeName,G(G({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)},createRef:function(){return{}},Component:Se,render:function(e,t,n){return he(n,e,{},!1,t,!1)},rerender:ne,options:Y};function ke(e){for(var t=Object.getOwnPropertyNames(e.constructor.prototype),n=0;n<t.length;n++){var r=t[n],o=e[r];"constructor"!==r&&"function"==typeof o&&(e[r]=o.bind(e))}return e}function Ee(e){var t=e.options.advanceOn||{},n=t.event,r=t.selector;if(!n)return console.error("advanceOn was defined, but no event name was passed.");var o,i=function(e,t){return function(n){if(t.isOpen()){var r=t.el&&n.target===t.el;(!V(e)&&n.target.matches(e)||r)&&t.tour.next()}}}(r,e);try{o=document.querySelector(r)}catch(e){}if(!V(r)&&!o)return console.error("No element was found for the selector supplied to advanceOn: "+r);o?(o.addEventListener(n,i),e.on("destroy",function(){return o.removeEventListener(n,i)})):(document.body.addEventListener(n,i,!0),e.on("destroy",function(){return document.body.removeEventListener(n,i,!0)}))}function Ce(){return(Ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Pe="undefined"!=typeof window&&"undefined"!=typeof document,Me=Pe?navigator.userAgent:"",Le=/MSIE |Trident\//.test(Me),Ae=/UCBrowser\//.test(Me),Be=Pe&&/iPhone|iPad|iPod/.test(navigator.platform),Ie={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,followCursor:!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,zIndex:9999},je=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],Fe={passive:!0},Ne=5,De='<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>',He="tippy-iOS",Re="tippy-popper",We="tippy-tooltip",ze="tippy-content",Ve="tippy-backdrop",Ue="tippy-arrow",qe="tippy-svg-arrow",Ye="."+Re,Xe="."+We,Ke="."+ze,$e="."+Ve,Ge="."+Ue,Ze="."+qe,Je={isTouch:!1},Qe=0;function et(){Je.isTouch||(Je.isTouch=!0,Be&&document.body.classList.add(He),window.performance&&document.addEventListener("mousemove",tt))}function tt(){var e=performance.now();e-Qe<20&&(Je.isTouch=!1,document.removeEventListener("mousemove",tt),Be||document.body.classList.remove(He)),Qe=e}function nt(){var e=document.activeElement,t=e._tippy;e&&e.blur&&t&&!t.state.isVisible&&e.blur()}var rt=Object.keys(Ie);function ot(e,t){return{}.hasOwnProperty.call(e,t)}function it(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function at(e,t){return e&&e.modifiers&&e.modifiers[t]}function st(e){return e instanceof Element}function lt(e,t){return"function"==typeof e?e.apply(null,t):e}function ut(e,t){e.filter(function(e){return"flip"===e.name})[0].enabled=t}function pt(){return document.createElement("div")}function ct(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function ft(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function dt(e,t){var n=Ce({},t,{content:lt(t.content,[e])},t.ignoreAttributes?{}:function(e){return rt.reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{})}(e));return n.animateFill&&(n.arrow=!1),(n.arrow||Ae)&&(n.animateFill=!1),n}function ht(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)};var n}function mt(e,t,n){e&&e!==t&&e.apply(null,n)}function vt(e){return[].slice.call(e)}function gt(e,t){return e.indexOf(t)>-1}function bt(e,t){e.innerHTML=st(t)?t.innerHTML:t}function yt(e,t){if(st(t.content))bt(e,""),e.appendChild(t.content);else if("function"!=typeof t.content){e[t.allowHTML?"innerHTML":"textContent"]=t.content}}function wt(e){return{tooltip:e.querySelector(Xe),backdrop:e.querySelector($e),content:e.querySelector(Ke),arrow:e.querySelector(Ge)||e.querySelector(Ze)}}function xt(e){e.setAttribute("data-inertia","")}function _t(e){var t=pt();return!0===e?t.className=Ue:(t.className=qe,st(e)?t.appendChild(e):bt(t,"round"===e?De:e)),t}function Tt(e){var t=pt();return t.className=Ve,t.setAttribute("data-state",e?"visible":"hidden"),t}function St(e){e.setAttribute("data-interactive","")}function Ot(e,t,n){var r=Ae&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](r,n)}function kt(e){return e.split("-")[0]}function Et(e,t,n){n.split(" ").forEach(function(n){n&&e.classList[t](n+"-theme")})}function Ct(e,t){var n=pt();n.className=Re,n.style.position="absolute",n.style.top="0",n.style.left="0";var r=pt();r.className=We,r.id="tippy-"+e,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1"),Et(r,"add",t.theme);var o=pt();return o.className=ze,o.setAttribute("data-state","hidden"),t.interactive&&St(r),t.arrow&&(r.setAttribute("data-arrow",""),r.appendChild(_t(t.arrow))),t.animateFill&&(r.appendChild(Tt(!1)),r.setAttribute("data-animatefill","")),t.inertia&&xt(r),yt(o,t),r.appendChild(o),n.appendChild(r),Pt(n,t,t,!1),n}function Pt(e,t,n,r){var o=wt(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&&yt(a,n),!t.animateFill&&n.animateFill?(i.appendChild(Tt(r)),i.setAttribute("data-animatefill","")):t.animateFill&&!n.animateFill&&(i.removeChild(s),i.removeAttribute("data-animatefill")),!t.arrow&&n.arrow?(i.appendChild(_t(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(_t(n.arrow))),!t.interactive&&n.interactive?St(i):t.interactive&&!n.interactive&&function(e){e.removeAttribute("data-interactive")}(i),!t.inertia&&n.inertia?xt(i):t.inertia&&!n.inertia&&function(e){e.removeAttribute("data-inertia")}(i),t.theme!==n.theme&&(Et(i,"remove",t.theme),Et(i,"add",n.theme))}for(var Mt="undefined"!=typeof window&&"undefined"!=typeof document,Lt=["Edge","Trident","Firefox"],At=0,Bt=0;Bt<Lt.length;Bt+=1)if(Mt&&navigator.userAgent.indexOf(Lt[Bt])>=0){At=1;break}var It=Mt&&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()},At))}};function jt(e){return e&&"[object Function]"==={}.toString.call(e)}function Ft(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Nt(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Dt(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ft(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:Dt(Nt(e))}var Ht=Mt&&!(!window.MSInputMethodContext||!document.documentMode),Rt=Mt&&/MSIE 10/.test(navigator.userAgent);function Wt(e){return 11===e?Ht:10===e?Rt:Ht||Rt}function zt(e){if(!e)return document.documentElement;for(var t=Wt(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"===Ft(n,"position")?zt(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Vt(e){return null!==e.parentNode?Vt(e.parentNode):e}function Ut(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&&zt(a.firstElementChild)!==a?zt(l):l;var u=Vt(e);return u.host?Ut(u.host,t):Ut(e,Vt(t).host)}function qt(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function Yt(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 Xt(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Wt(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Kt(e){var t=e.body,n=e.documentElement,r=Wt(10)&&getComputedStyle(n);return{height:Xt("Height",t,n,r),width:Xt("Width",t,n,r)}}var $t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Gt=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Zt=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Qt(e){return Jt({},e,{right:e.left+e.width,bottom:e.top+e.height})}function en(e){var t={};try{if(Wt(10)){t=e.getBoundingClientRect();var n=qt(e,"top"),r=qt(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?Kt(e.ownerDocument):{},a=i.width||e.clientWidth||o.right-o.left,s=i.height||e.clientHeight||o.bottom-o.top,l=e.offsetWidth-a,u=e.offsetHeight-s;if(l||u){var p=Ft(e);l-=Yt(p,"x"),u-=Yt(p,"y"),o.width-=l,o.height-=u}return Qt(o)}function tn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Wt(10),o="HTML"===t.nodeName,i=en(e),a=en(t),s=Dt(e),l=Ft(t),u=parseFloat(l.borderTopWidth,10),p=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var c=Qt({top:i.top-a.top-u,left:i.left-a.left-p,width:i.width,height:i.height});if(c.marginTop=0,c.marginLeft=0,!r&&o){var f=parseFloat(l.marginTop,10),d=parseFloat(l.marginLeft,10);c.top-=u-f,c.bottom-=u-f,c.left-=p-d,c.right-=p-d,c.marginTop=f,c.marginLeft=d}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=qt(t,"top"),o=qt(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(c,t)),c}function nn(e){if(!e||!e.parentElement||Wt())return document.documentElement;for(var t=e.parentElement;t&&"none"===Ft(t,"transform");)t=t.parentElement;return t||document.documentElement}function rn(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?nn(e):Ut(e,t);if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=tn(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:qt(n),s=t?0:qt(n,"left");return Qt({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i})}(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=Dt(Nt(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=tn(s,a,o);if("HTML"!==s.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===Ft(t,"position"))return!0;var r=Nt(t);return!!r&&e(r)}(a))i=l;else{var u=Kt(e.ownerDocument),p=u.height,c=u.width;i.top+=l.top-l.marginTop,i.bottom=p+l.top,i.left+=l.left-l.marginLeft,i.right=c+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 on(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=rn(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 Jt({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),u=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),p=u.length>0?u[0].key:l[0].key,c=e.split("-")[1];return p+(c?"-"+c:"")}function an(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return tn(n,r?nn(t):Ut(t,n),r)}function sn(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 ln(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 un(e,t,n){n=n.split("-")[0];var r=sn(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",u=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[u]:t[ln(s)],o}function pn(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function cn(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=pn(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&&jt(n)&&(t.offsets.popper=Qt(t.offsets.popper),t.offsets.reference=Qt(t.offsets.reference),t=n(t,e))}),t}function fn(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function dn(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function hn(e){var t=e.ownerDocument;return t?t.defaultView:window}function mn(e,t,n,r){n.updateBound=r,hn(e).addEventListener("resize",n.updateBound,{passive:!0});var o=Dt(e);return function e(t,n,r,o){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),i||e(Dt(a.parentNode),n,r,o),o.push(a)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function vn(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,hn(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 gn(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function bn(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&gn(t[n])&&(r="px"),e.style[n]=t[n]+r})}var yn=Mt&&/Firefox/i.test(navigator.userAgent);function wn(e,t,n){var r=pn(e,function(e){return e.name===t}),o=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var xn=["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"],_n=xn.slice(3);function Tn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=_n.indexOf(e),r=_n.slice(n+1).concat(_n.slice(0,n));return t?r.reverse():r}var Sn={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"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(pn(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+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(u=u.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 Qt(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){gn(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var kn={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",u=s?"width":"height",p={start:Zt({},l,i[l]),end:Zt({},l,i[l]+i[u]-a[u])};e.offsets.popper=Jt({},a,p[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=gn(+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||zt(e.instance.popper);e.instance.reference===n&&(n=zt(n));var r=dn("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=rn(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var u=t.priority,p=e.offsets.popper,c={primary:function(e){var n=p[e];return p[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(p[e],l[e])),Zt({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=p[n];return p[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(p[n],l[e]-("right"===e?p.width:p.height))),Zt({},n,r)}};return u.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";p=Jt({},p,c[t](e))}),e.offsets.popper=p,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",u=a?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[u]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!wn(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),u=l?"height":"width",p=l?"Top":"Left",c=p.toLowerCase(),f=l?"left":"top",d=l?"bottom":"right",h=sn(r)[u];s[d]-h<a[c]&&(e.offsets.popper[c]-=a[c]-(s[d]-h)),s[c]+h>a[d]&&(e.offsets.popper[c]+=s[c]+h-a[d]),e.offsets.popper=Qt(e.offsets.popper);var m=s[c]+s[u]/2-h/2,v=Ft(e.instance.popper),g=parseFloat(v["margin"+p],10),b=parseFloat(v["border"+p+"Width"],10),y=m-e.offsets.popper[c]-g-b;return y=Math.max(Math.min(a[u]-h,y),0),e.arrowElement=r,e.offsets.arrow=(Zt(n={},c,Math.round(y)),Zt(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(fn(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=rn(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=ln(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Sn.FLIP:a=[r,o];break;case Sn.CLOCKWISE:a=Tn(r);break;case Sn.COUNTERCLOCKWISE: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=ln(r);var u=e.offsets.popper,p=e.offsets.reference,c=Math.floor,f="left"===r&&c(u.right)>c(p.left)||"right"===r&&c(u.left)<c(p.right)||"top"===r&&c(u.bottom)>c(p.top)||"bottom"===r&&c(u.top)<c(p.bottom),d=c(u.left)<c(n.left),h=c(u.right)>c(n.right),m=c(u.top)<c(n.top),v=c(u.bottom)>c(n.bottom),g="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&v),w=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&d||!b&&"start"===i&&v||!b&&"end"===i&&m),x=y||w;(f||g||x)&&(e.flipped=!0,(f||g)&&(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=Jt({},e.offsets.popper,un(e.instance.popper,e.offsets.reference,e.placement)),e=cn(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=ln(t),e.offsets.popper=Qt(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!wn(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=pn(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,r=t.y,o=e.offsets.popper,i=pn(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=zt(e.instance.popper),l=en(s),u={position:o.position},p=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(o.width),u=i(r.width),p=-1!==["left","right"].indexOf(e.placement),c=-1!==e.placement.indexOf("-"),f=t?p||c||l%2==u%2?i:a:s,d=t?i:s;return{left:f(l%2==1&&u%2==1&&!c&&t?r.left-1:r.left),top:d(r.top),bottom:d(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!yn),c="bottom"===n?"top":"bottom",f="right"===r?"left":"right",d=dn("transform"),h=void 0,m=void 0;if(m="bottom"===c?"HTML"===s.nodeName?-s.clientHeight+p.bottom:-l.height+p.bottom:p.top,h="right"===f?"HTML"===s.nodeName?-s.clientWidth+p.right:-l.width+p.right:p.left,a&&d)u[d]="translate3d("+h+"px, "+m+"px, 0)",u[c]=0,u[f]=0,u.willChange="transform";else{var v="bottom"===c?-1:1,g="right"===f?-1:1;u[c]=m*v,u[f]=h*g,u.willChange=c+", "+f}var b={"x-placement":e.placement};return e.attributes=Jt({},b,e.attributes),e.styles=Jt({},u,e.styles),e.arrowStyles=Jt({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return bn(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&&bn(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=an(o,t,e,n.positionFixed),a=on(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),bn(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},En=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$t(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=It(this.update.bind(this)),this.options=Jt({},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(Jt({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=Jt({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Jt({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&jt(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 Gt(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=an(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=on(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=un(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=cn(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,fn(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[dn("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=mn(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return vn.call(this)}}]),e}();En.Utils=("undefined"!=typeof window?window:global).PopperUtils,En.placements=xn,En.Defaults=kn;var Cn=1,Pn=[];function Mn(e,t){var n,r,o,i,a=dt(e,t);if(!a.multiple&&e._tippy)return null;var s,l,u=!1,p=!1,c=!1,f=[],d=ht(I,a.interactiveDebounce),h=Cn++,m=Ct(h,a),v=wt(m),g=v.tooltip,b=v.content,y={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:y,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){var n=Ce({},t);if(w.state.isDestroyed)return;A();var r=w.props,o=dt(e,Ce({},w.props,{},n,{ignoreAttributes:!0}));o.ignoreAttributes=ot(n,"ignoreAttributes")?n.ignoreAttributes||!1:r.ignoreAttributes,w.props=o,L(),O(),d=ht(I,o.interactiveDebounce),Pt(m,r,o,w.state.isVisible),w.popperChildren=wt(m),w.popperInstance&&(je.some(function(e){return ot(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=it(w.props.duration,0,Ie.duration));void 0===n&&(n=!0);var r=w.state.isVisible,o=w.state.isDestroyed,i=!w.state.isEnabled,a=Je.isTouch&&!w.props.touch;if(r||o||i||a)return;if(S().hasAttribute("disabled"))return;if(!1===w.props.onShow(w))return;E(),m.style.visibility="visible",w.state.isVisible=!0;var l=T();ct(n?l.concat(m):l,0),s=function(){w.state.isVisible&&(w.popperInstance.update(),w.props.onMount(w),w.state.isMounted=!0,b.style.transitionDelay=w.popperChildren.backdrop?Math.round(t/12)+"ms":"",w.props.sticky&&function(){ct([m],Le?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)}()}(),ct([m],w.props.updateDuration),ct(l,t),ft(l,"visible"),function(e,t){P(e,t)}(t,function(){w.props.aria&&S().setAttribute("aria-"+w.props.aria,g.id),w.props.onShown(w),w.state.isShown=!0}))},function(){p=!1;var t=w.props.appendTo,n="parent"===t?e.parentNode:lt(t,[e]);n.contains(m)||n.appendChild(m);w.popperInstance?(ut(w.popperInstance.modifiers,w.props.flip),w.popperInstance.enableEventListeners(),w.popperInstance.scheduleUpdate()):(D(),w.popperInstance.enableEventListeners())}()},hide:function(e){void 0===e&&(e=it(w.props.duration,1,Ie.duration));var t=!w.state.isVisible&&!u,n=w.state.isDestroyed,r=!w.state.isEnabled&&!u;if(t||n||r)return;if(!1===w.props.onHide(w)&&!u)return;C(),m.style.visibility="hidden",w.state.isVisible=!1,w.state.isShown=!1;var o=T();ct(o,e),ft(o,"hidden"),function(e,t){P(e,function(){!w.state.isVisible&&m.parentNode&&m.parentNode.contains(m)&&t()})}(e,function(){w.props.aria&&S().removeAttribute("aria-"+w.props.aria),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.state.isEnabled=!1},destroy:function(){if(w.state.isDestroyed)return;u=!0,w.hide(0),A(),delete e._tippy,w.popperInstance&&w.popperInstance.destroy();u=!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 _(){return"hold"===x()[0]}function T(){return[g,b,w.popperChildren.backdrop]}function S(){return w.props.triggerTarget||e}function O(){document.body.removeEventListener("mouseleave",W),document.removeEventListener("mousemove",d),Pn=Pn.filter(function(e){return e!==d})}function k(e){if(!w.props.interactive||!m.contains(e.target)){if(S().contains(e.target)){if(Je.isTouch)return;if(w.state.isVisible&&gt(w.props.trigger,"click"))return}!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),c=!0,setTimeout(function(){c=!1}),w.state.isMounted||C())}}function E(){document.addEventListener("mousedown",k,!0)}function C(){document.removeEventListener("mousedown",k,!0)}function P(e,t){function n(e){e.target===g&&(Ot(g,"remove",n),t())}if(0===e)return t();Ot(g,"remove",l),Ot(g,"add",n),l=n}function M(e,t,n){void 0===n&&(n=!1),S().addEventListener(e,t,n),f.push({eventType:e,handler:t,options:n})}function L(){_()&&(M("touchstart",B,Fe),M("touchend",j,Fe)),gt(w.props.trigger,"click")||M("click",function(){Je.isTouch||!0!==w.props.hideOnClick||w.hide()}),w.props.trigger.trim().split(" ").forEach(function(e){if("manual"!==e)switch(M(e,B),e){case"mouseenter":M("mouseleave",j);break;case"focus":M(Le?"focusout":"blur",F)}})}function A(){f.forEach(function(e){var t=e.eventType,n=e.handler,r=e.options;S().removeEventListener(t,n,r)}),f=[]}function B(e){if(!c&&w.state.isEnabled&&!N(e))if(w.state.isVisible||(n=e.type,e instanceof MouseEvent&&Pn.forEach(function(t){return t(e)})),"click"===e.type&&!1!==w.props.hideOnClick&&w.state.isVisible)W(e);else{var t=x(),o=t[0],i=t[1];Je.isTouch&&"hold"===o&&i?r=setTimeout(function(){R(e)},i):R(e)}}function I(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),u=i-t.bottom>("bottom"===e?a+s:a),p=t.left-o>("left"===e?a+s:a),c=o-t.right>("right"===e?a+s:a);return l||u||p||c}(kt(w.state.currentPlacement),m.getBoundingClientRect(),t,w.props)&&(O(),W(t))}function j(e){if(!N(e))return w.props.interactive?(document.body.addEventListener("mouseleave",W),document.addEventListener("mousemove",d),void Pn.push(d)):void W(e)}function F(e){e.target===S()&&(w.props.interactive&&e.relatedTarget&&m.contains(e.relatedTarget)||W(e))}function N(e){var t="ontouchstart"in window,n=gt(e.type,"touch"),r=_();return t&&Je.isTouch&&r&&!n||Je.isTouch&&!r&&n}function D(){var t=w.props.popperOptions,n=w.popperChildren.arrow,r=at(t,"preventOverflow");function o(e){w.state.currentPlacement=e.placement,w.props.flip&&!w.props.flipOnUpdate&&(e.flipped&&(w.popperInstance.options.placement=e.placement),ut(w.popperInstance.modifiers,!1)),g.setAttribute("data-placement",e.placement),!1!==e.attributes["x-out-of-boundaries"]?g.setAttribute("data-out-of-boundaries",""):g.removeAttribute("data-out-of-boundaries");var t=kt(e.placement),n=gt(["top","bottom"],t),r=gt(["bottom","right"],t),o=g.style;o.top="0",o.left="0",o[n?"top":"left"]=(r?1:-1)*w.props.distance+"px"}var i=Ce({eventsEnabled:!1,placement:w.props.placement},t,{modifiers:Ce({},t&&t.modifiers,{preventOverflow:Ce({boundariesElement:w.props.boundary,padding:Ne},r),tippySetPreventOverflowPadding:{enabled:!0,order:299,fn:function(e){var t=kt(e.placement),n=r&&void 0!==r.padding?r.padding:Ne,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:Ce({element:n,enabled:!!n},at(t,"arrow")),flip:Ce({enabled:w.props.flip,padding:w.props.distance+Ne,behavior:w.props.flipBehavior},at(t,"flip")),offset:Ce({offset:w.props.offset},at(t,"offset"))}),onCreate:function(e){o(e),mt(t&&t.onCreate,i.onCreate,[e]),H()},onUpdate:function(e){o(e),mt(t&&t.onUpdate,i.onUpdate,[e]),H()}});w.popperInstance=new En(e,m,i)}function H(){!p&&s&&(p=!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),E();var t=it(w.props.delay,0,Ie.delay);t?r=setTimeout(function(){w.show()},t):w.show()}function W(e){if(w.clearDelayTimeouts(),w.props.onUntrigger(w,e),w.state.isVisible){w.state.isScheduledToShow=!1;var t=it(w.props.delay,1,Ie.delay);t?o=setTimeout(function(){w.state.isVisible&&w.hide()},t):i=requestAnimationFrame(function(){w.hide()})}else C()}}function Ln(e,t){document.addEventListener("touchstart",et,Ce({},Fe,{capture:!0})),window.addEventListener("blur",nt);var n,r=Ce({},Ie,{},t),o=(st(n=e)?[n]:n instanceof NodeList?vt(n):Array.isArray(n)?n:vt(document.querySelectorAll(n))).reduce(function(e,t){var n=t&&Mn(t,r);return n&&e.push(n),e},[]);return st(e)?o[0]:o}Ln.version="5.0.0-beta.0",Ln.defaultProps=Ie,Ln.currentInput=Je,Ln.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Ie[t]=e[t]})},Ln.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;vt(document.querySelectorAll(Ye)).forEach(function(e){var t,o=e._tippy;if(o){var i=!1;n&&(i=(t=n)&&t._tippy&&!t.classList.contains(Re)?o.reference===n:e===n.popper),i||o.hide(r)}})},Pe&&setTimeout(function(){vt(document.querySelectorAll("[data-tippy]")).forEach(function(e){var t=e.getAttribute("data-tippy");t&&Ln(e,{content:t})})});Pe&&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 An=function(e){return{addHasTitleClass:Nn(e.classPrefix+"shepherd-has-title")}};function Bn(e){return{positionFixed:!0,modifiers:{addShepherdClass:Nn(e.shepherd.trim())}}}function In(e){return z(e)&&""!==e?"-"!==e.charAt(e.length-1)?e+"-":e:""}function jn(t){var n=t.options.attachTo||{},r=e({},n);if(z(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 Fn(t){if(V(Ln))throw new Error("Using the attachment feature of Shepherd requires the Tippy.js library");t.tooltip&&t.tooltip.destroy();var n=jn(t);t.tooltip=function(t,n){if(!t.element||!t.on)return function(t){var n=function(t){return{computeStyle:{enabled:!0,fn:function(t){return t.styles=e({},t.styles,{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),t}},addShepherdClass:Nn(t.shepherd.trim())}}(t.styles),r=Bn(t.styles),o=e({content:t.el,placement:"top"},t.options.tippyOptions);o.arrow=!1,o.popperOptions=o.popperOptions||{},t.options.title&&e(r.modifiers,An(t));e(r.modifiers,n,o.popperOptions.modifiers);var i=e({},r,o.popperOptions);return o.popperOptions=i,Ln(document.body,o)}(n);var r=function(t,n){var r=Bn(n.styles),o=e({content:n.el,flipOnUpdate:!0,placement:t.on||"right"},n.options.tippyOptions);n.options.title&&e(r.modifiers,An(n));n.options.tippyOptions&&n.options.tippyOptions.popperOptions&&e(r,n.options.tippyOptions.popperOptions);return o.popperOptions=r,o}(t,n);return Ln(t.element,r)}(n,t),t.target=n.element}function Nn(e){return{enabled:!0,fn:function(t){return t.instance.popper.classList.add(e),t}}}var Dn=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.styles,o=n.action,i=n.classes,a=n.secondary,s=n.text;return Oe.h("button",{className:(i||"")+r.button+(a?" "+t+"shepherd-button-secondary":""),onClick:o,tabindex:"0"},s)},n}(Oe.Component),Hn=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 Oe.h("footer",{className:r.footer.trim()},this._addButtons(o,t,r))},r._addButtons=function(e,t,n){return e?e.map(function(e){return Oe.h(Dn,{classPrefix:t,config:e,styles:n})}):null},n}(Oe.Component),Rn=function(e){function r(t){var r;return(r=e.call(this,t)||this).step=t.step,r.cancelStep=r.cancelStep.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.showCancelLink,a=o.title;return Oe.h("header",{className:r.header.trim()},this.constructor._addTitle(t,r,a),this._addCancelLink(i,r))},o.cancelStep=function(e){e.preventDefault(),this.step.cancel()},r._addTitle=function(e,t,n){return n?Oe.h("h3",{id:e,className:t.title.trim()},n):null},o._addCancelLink=function(e,t){return e?Oe.h("button",{"aria-label":"Close Tour",className:t["cancel-link"].trim(),onClick:this.cancelStep,type:"button"},Oe.h("span",{"aria-hidden":"true"},"×")):null},r}(Oe.Component),Wn=function(e){function n(){return e.apply(this,arguments)||this}return t(n,e),n.prototype.render=function(e){var t=e.descriptionId,n=e.step,r=e.styles,o=n.options.text;return W(o)&&(o=o.call(n)),Oe.h("div",{className:r.text.trim(),dangerouslySetInnerHTML:{__html:o},id:t})},n}(Oe.Component),zn=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 Oe.h("div",{className:a.content.trim()},Oe.h(Rn,{labelId:o,step:i,styles:a}),n._addShepherdText(r,i,a),n._addShepherdFooter(t,i,a))},n._addShepherdText=function(e,t,n){return V(t.options.text)?null:Oe.h(Wn,{descriptionId:e,step:t,styles:n})},n._addShepherdFooter=function(e,t,n){return Array.isArray(t.options.buttons)&&t.options.buttons.length?Oe.h(Hn,{classPrefix:e,step:t,styles:n}):null},n}(Oe.Component),Vn=Oe.Component,Un=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,u=t.styles,p=((n={})["data-"+i+"shepherd-step-id"]=l.id,n);return Oe.h("div",e({"aria-describedby":V(l.options.text)?null:a,"aria-labeledby":l.options.title?s:null,className:o+u.element},p,{onKeyDown:this.handleKeyDown,ref:function(e){return r.element=e},role:"dialog",tabindex:"0"}),Oe.h(zn,{classPrefix:i,descriptionId:a,labelId:s,step:l,styles:u}))},i.handleKeyDown=function(e){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:this.step.cancel();break;case 37:this.step.tour.back();break;case 39:this.step.tour.next()}},o}(Vn);Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var qn=a(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=468,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||l,scrollIntoView:r.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!==u(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"!=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]&&(u(arguments[0])?i.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):m.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!==u(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"!=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!==u(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))},r.prototype.scrollIntoView=function(){if(!0!==u(arguments[0])){var n=d(this),r=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==t.body?(m.call(this,n,n.scrollLeft+o.left-r.left,n.scrollTop+o.top-r.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function l(e,t){this.scrollLeft=e,this.scrollTop=t}function u(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+s<e.scrollHeight:"X"===t?e.clientWidth+s<e.scrollWidth:void 0}function c(t,n){var r=e.getComputedStyle(t,null)["overflow"+n];return"auto"===r||"scroll"===r}function f(e){var t=p(e,"Y")&&c(e,"Y"),n=p(e,"X")&&c(e,"X");return t||n}function d(e){for(;e!==t.body&&!1===f(e);)e=e.parentNode||e.host;return e}function h(t){var n,r,i,s,l=(a()-t.startTime)/o;s=l=l>1?1:l,n=.5*(1-Math.cos(Math.PI*s)),r=t.startX+(t.x-t.startX)*n,i=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,r,i),r===t.x&&i===t.y||e.requestAnimationFrame(h.bind(e,t))}function m(n,r,o){var s,u,p,c,f=a();n===t.body?(s=e,u=e.scrollX||e.pageXOffset,p=e.scrollY||e.pageYOffset,c=i.scroll):(s=n,u=n.scrollLeft,p=n.scrollTop,c=l),h({scrollable:s,method:c,startTime:f,startX:u,startY:p,x:r,y:o})}}}});qn.polyfill;qn.polyfill();var Yn,Xn=Oe.render,Kn=(Yn=0,function(){return++Yn}),$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?In(o.tour.options.classPrefix):"",o.styles=t.styles,ke(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),R(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(W(this.options.beforeShowPromise)){var t=this.options.beforeShowPromise();if(!V(t))return t.then(function(){return e._show()})}this._show()},o._createTooltipContent=function(){var e=this.options.classes||"",t=this.id+"-description",n=this.id+"-label";return this.options.showCancelLink&&(e+=" "+this.classPrefix+"shepherd-has-cancel-link"),Xn(Oe.h(Un,{classPrefix:this.classPrefix,classes:e,descriptionId:t,labelId:n,step:this,styles:this.styles}),null)},o._scrollTo=function(e){var t=jn(this).element;W(this.options.scrollToHandler)?this.options.scrollToHandler(t):R(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-"+Kn(),n&&Object.keys(n).forEach(function(e){t.on(e,n[e],t)})},o._setupElements=function(){V(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Ee(this),Fn(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}(U),Gn=i(a(function(e,t){!function(e){function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var n=!1;if("undefined"!=typeof window){var r={get passive(){n=!0}};window.addEventListener("testPassive",null,r),window.removeEventListener("testPassive",null,r)}var o="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),i=[],a=!1,s=-1,l=void 0,u=void 0,p=function(e){return i.some(function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))})},c=function(e){var t=e||window.event;return!!p(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)},f=function(){setTimeout(function(){void 0!==u&&(document.body.style.paddingRight=u,u=void 0),void 0!==l&&(document.body.style.overflow=l,l=void 0)})};e.disableBodyScroll=function(e,r){if(o){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!i.some(function(t){return t.targetElement===e})){var f={targetElement:e,options:r||{}};i=[].concat(t(i),[f]),e.ontouchstart=function(e){1===e.targetTouches.length&&(s=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var n,r,o,i;1===t.targetTouches.length&&(r=e,i=(n=t).targetTouches[0].clientY-s,!p(n.target)&&(r&&0===r.scrollTop&&0<i?c(n):(o=r)&&o.scrollHeight-o.scrollTop<=o.clientHeight&&i<0?c(n):n.stopPropagation()))},a||(document.addEventListener("touchmove",c,n?{passive:!1}:void 0),a=!0)}}else{h=r,setTimeout(function(){if(void 0===u){var e=!!h&&!0===h.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(u=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===l&&(l=document.body.style.overflow,document.body.style.overflow="hidden")});var d={targetElement:e,options:r||{}};i=[].concat(t(i),[d])}var h},e.clearAllBodyScrollLocks=function(){o?(i.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),a&&(document.removeEventListener("touchmove",c,n?{passive:!1}:void 0),a=!1),i=[],s=-1):(f(),i=[])},e.enableBodyScroll=function(e){if(o){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,i=i.filter(function(t){return t.targetElement!==e}),a&&0===i.length&&(document.removeEventListener("touchmove",c,n?{passive:!1}:void 0),a=!1)}else(i=i.filter(function(t){return t.targetElement!==e})).length||f()}}(t)})),Zn={trigger:"manual",arrow:!0,animation:"fade",duration:420,flip:!0,animateFill:!1,interactive:!0,hideOnClick:"toggle",multiple:!0};function Jn(){return(Jn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Qn(e){return(Qn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function er(e,t){return(er=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tr(e,t,n){return(tr=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&er(o,n.prototype),o}).apply(null,arguments)}function nr(e){var t="function"==typeof Map?new Map:void 0;return(nr=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return tr(e,arguments,Qn(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),er(r,e)})(e)}var rr=function(e){var t,n;function r(t){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(nr(Error));function or(e){return Math.round(255*e)}function ir(e,t,n){return or(e)+","+or(t)+","+or(n)}function ar(e,t,n,r){if(void 0===r&&(r=ir),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);var p=n-i/2;return r(s+p,l+p,u+p)}var sr={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 lr=/^#[a-fA-F0-9]{6}$/,ur=/^#[a-fA-F0-9]{8}$/,pr=/^#[a-fA-F0-9]{3}$/,cr=/^#[a-fA-F0-9]{4}$/,fr=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,dr=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,hr=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/i,mr=/^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 vr(e){if("string"!=typeof e)throw new rr(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return sr[t]?"#"+sr[t]:e}(e);if(t.match(lr))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(ur)){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(pr))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(cr)){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=fr.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=dr.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=hr.exec(t);if(a){var s="rgb("+ar(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",l=fr.exec(s);if(!l)throw new rr(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var u=mr.exec(t);if(u){var p="rgb("+ar(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",c=fr.exec(p);if(!c)throw new rr(4,t,p);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10),alpha:parseFloat(""+u[4])}}throw new rr(5)}function gr(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,u=s>.5?l/(2-i-a):l/(i+a);switch(i){case n:t=(r-o)/l+(r<o?6:0);break;case r:t=(o-n)/l+2;break;default:t=(n-r)/l+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:u,lightness:s,alpha:e.alpha}:{hue:t,saturation:u,lightness:s}}(vr(e))}var br=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function yr(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function wr(e){return yr(Math.round(255*e))}function xr(e,t,n){return br("#"+wr(e)+wr(t)+wr(n))}function _r(e,t,n){return ar(e,t,n,xr)}function Tr(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return br("#"+yr(e)+yr(t)+yr(n));if("object"==typeof e&&void 0===t&&void 0===n)return br("#"+yr(e.red)+yr(e.green)+yr(e.blue));throw new rr(6)}function Sr(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=vr(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?Tr(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?Tr(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new rr(7)}var Or=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},kr=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},Er=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},Cr=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function Pr(e){if("object"!=typeof e)throw new rr(8);if(kr(e))return Sr(e);if(Or(e))return Tr(e);if(Cr(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?_r(e,t,n):"rgba("+ar(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?_r(e.hue,e.saturation,e.lightness):"rgba("+ar(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new rr(2)}(e);if(Er(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return _r(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return _r(e.hue,e.saturation,e.lightness);throw new rr(1)}(e);throw new rr(8)}function Mr(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 Lr(e,t,n){return Math.max(e,Math.min(t,n))}function Ar(e,t){if("transparent"===t)return t;var n=gr(t);return Pr(Jn({},n,{lightness:Lr(0,1,n.lightness-parseFloat(e))}))}var Br=Mr(Ar);function Ir(e,t){if("transparent"===t)return t;var n=gr(t);return Pr(Jn({},n,{saturation:Lr(0,1,n.saturation-parseFloat(e))}))}var jr=Mr(Ir);function Fr(e){if("transparent"===e)return 0;var t=vr(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 Nr(e,t){if("transparent"===t)return t;var n=gr(t);return Pr(Jn({},n,{lightness:Lr(0,1,n.lightness+parseFloat(e))}))}var Dr=Mr(Nr);function Hr(e,t,n){return void 0===t&&(t="#000"),void 0===n&&(n="#fff"),Fr(e)>.179?t:n}function Rr(e,t){if("transparent"===t)return t;var n=vr(t);return Sr(Jn({},n,{alpha:Lr(0,1,(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e))/100)}))}var Wr=Mr(Rr),zr={arrowSize:2.1,shepherdButtonBorderRadius:"3px",shepherdElementBorderRadius:"5px",shepherdElementMaxHeight:"100%",shepherdElementMaxWidth:"100%",shepherdElementZIndex:9999,shepherdTextBackground:"#ffffff",shepherdTextLineHeight:"1.3em",shepherdTextFontSize:"1rem",shepherdThemePrimary:"#3288e6"};function Vr(t){return t.styleVariables&&e(zr,t.styleVariables),zr.shepherdHeaderBackground||(zr.shepherdHeaderBackground=Br(.1,zr.shepherdTextBackground)),zr.shepherdThemeSecondary||(zr.shepherdThemeSecondary=jr(.7,Dr(.4,zr.shepherdThemePrimary))),function(){zr.shepherdThemeTextPrimary||(zr.shepherdThemeTextPrimary=Wr(.25,Hr(zr.shepherdThemePrimary)));zr.shepherdThemeTextSecondary||(zr.shepherdThemeTextSecondary=Wr(.25,Hr(zr.shepherdThemeSecondary)));zr.shepherdThemeTextHeader||(zr.shepherdThemeTextHeader=Wr(.25,Hr(zr.shepherdHeaderBackground)));zr.shepherdThemeTextColor||(zr.shepherdThemeTextColor=Wr(.25,Hr(zr.shepherdTextBackground)))}(),zr}function Ur(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i=Object.keys(Object(o)),a=0,s=i.length;a<s;a++){var l=i[a],u=Object.getOwnPropertyDescriptor(o,l);void 0!==u&&u.enumerable&&(n[l]=o[l])}}return n}var qr=Ur,Yr=/[A-Z]/g,Xr=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.exports=t.default});i(Xr);var Kr=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(e.hasOwnProperty(t)){for(var o={},i=e[t],a=(0,r.default)(t),s=Object.keys(n),l=0;l<s.length;l++){var u=s[l];if(u===t)for(var p=0;p<i.length;p++)o[i[p]+a]=n[t];o[u]=n[u]}return o}return n};var n,r=(n=Xr)&&n.__esModule?n:{default:n};e.exports=t.default});i(Kr);var $r=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){for(var i=0,a=e.length;i<a;++i){var s=e[i](t,n,r,o);if(s)return s}},e.exports=t.default});i($r);var Gr=a(function(e,t){function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,o=t.length;r<o;++r)n(e,t[r]);else n(e,t)},e.exports=t.default});i(Gr);var Zr=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Object&&!Array.isArray(e)},e.exports=t.default});i(Zr);var Jr=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prefixMap,a=e.plugins;return function e(s){for(var l in s){var u=s[l];if((0,i.default)(u))s[l]=e(u);else if(Array.isArray(u)){for(var p=[],c=0,f=u.length;c<f;++c){var d=(0,r.default)(a,l,u[c],s,t);(0,o.default)(p,d||u[c])}p.length>0&&(s[l]=p)}else{var h=(0,r.default)(a,l,u,s,t);h&&(s[l]=h),s=(0,n.default)(t,l,s)}}return s}};var n=a(Kr),r=a($r),o=a(Gr),i=a(Zr);function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default});i(Jr);var Qr=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=["Webkit"],r=["ms"],o=["Webkit","ms"];t.default={plugins:[],prefixMap:{appearance:["Webkit","Moz"],textEmphasisPosition:n,textEmphasis:n,textEmphasisStyle:n,textEmphasisColor:n,boxDecorationBreak:n,maskImage:n,maskMode:n,maskRepeat:n,maskPosition:n,maskClip:n,maskOrigin:n,maskSize:n,maskComposite:n,mask:n,maskBorderSource:n,maskBorderMode:n,maskBorderSlice:n,maskBorderWidth:n,maskBorderOutset:n,maskBorderRepeat:n,maskBorder:n,maskType:n,textDecorationStyle:n,textDecorationSkip:n,textDecorationLine:n,textDecorationColor:n,userSelect:["Webkit","Moz","ms"],backdropFilter:n,fontKerning:n,scrollSnapType:o,scrollSnapPointsX:o,scrollSnapPointsY:o,scrollSnapDestination:o,scrollSnapCoordinate:o,clipPath:n,shapeImageThreshold:n,shapeImageMargin:n,shapeImageOutside:n,filter:n,hyphens:o,flowInto:o,flowFrom:o,breakBefore:o,breakAfter:o,breakInside:o,regionFragment:o,writingMode:o,textOrientation:n,tabSize:["Moz"],fontFeatureSettings:n,columnCount:n,columnFill:n,columnGap:n,columnRule:n,columnRuleColor:n,columnRuleStyle:n,columnRuleWidth:n,columns:n,columnSpan:n,columnWidth:n,wrapFlow:r,wrapThrough:r,wrapMargin:r,gridTemplateColumns:r,gridTemplateRows:r,gridTemplateAreas:r,gridTemplate:r,gridAutoColumns:r,gridAutoRows:r,gridAutoFlow:r,grid:r,gridRowStart:r,gridColumnStart:r,gridRowEnd:r,gridRow:r,gridColumn:r,gridColumnEnd:r,gridColumnGap:r,gridRowGap:r,gridArea:r,gridGap:r,textSizeAdjust:o}},e.exports=t.default});i(Qr);var eo=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("cursor"===e&&r.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};e.exports=t.default});i(eo);var to=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&n.test(e)};var n=/-webkit-|-moz-|-ms-/;e.exports=t.default});i(to);var no=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,r.default)(t)&&t.indexOf("cross-fade(")>-1)return o.map(function(e){return t.replace(/cross-fade\(/g,e+"cross-fade(")})};var n,r=(n=to)&&n.__esModule?n:{default:n};var o=["-webkit-",""];e.exports=t.default});i(no);var ro=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,r.default)(t)&&t.indexOf("filter(")>-1)return o.map(function(e){return t.replace(/filter\(/g,e+"filter(")})};var n,r=(n=to)&&n.__esModule?n:{default:n};var o=["-webkit-",""];e.exports=t.default});i(ro);var oo=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("display"===e&&n.hasOwnProperty(t))return n[t]};var n={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};e.exports=t.default});i(oo);var io=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o){"flexDirection"===e&&"string"==typeof t&&(t.indexOf("column")>-1?o.WebkitBoxOrient="vertical":o.WebkitBoxOrient="horizontal",t.indexOf("reverse")>-1?o.WebkitBoxDirection="reverse":o.WebkitBoxDirection="normal");r.hasOwnProperty(e)&&(o[r[e]]=n[t]||t)};var n={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},r={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};e.exports=t.default});i(io);var ao=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,r.default)(t)&&i.test(t))return o.map(function(e){return t.replace(i,function(t){return e+t})})};var n,r=(n=to)&&n.__esModule?n:{default:n};var o=["-webkit-","-moz-",""],i=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;e.exports=t.default});i(ao);var so=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,r.default)(t)&&t.indexOf("image-set(")>-1)return o.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})};var n,r=(n=to)&&n.__esModule?n:{default:n};var o=["-webkit-",""];e.exports=t.default});i(so);var lo=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]},e.exports=t.default});i(lo);var uo=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(r.hasOwnProperty(e)&&o.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t.default});i(uo);var po=/[A-Z]/g,co=/^ms-/,fo={};function ho(e){return"-"+e.toLowerCase()}var mo,vo=(mo=Object.freeze({default:function(e){if(fo.hasOwnProperty(e))return fo[e];var t=e.replace(po,ho);return fo[e]=co.test(t)?"-"+t:t}}))&&mo.default||mo,go=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)};var n,r=(n=vo)&&n.__esModule?n:{default:n};e.exports=t.default});i(go);var bo=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i,l){if("string"==typeof t&&a.hasOwnProperty(e)){var u=function(e,t){if((0,r.default)(e))return e;for(var o=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),i=0,a=o.length;i<a;++i){var l=o[i],u=[l];for(var p in t){var c=(0,n.default)(p);if(l.indexOf(c)>-1&&"order"!==c)for(var f=t[p],d=0,h=f.length;d<h;++d)u.unshift(l.replace(c,s[f[d]]+c))}o[i]=u.join(",")}return o.join(",")}(t,l),p=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1)return p;var c=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?c:(i["Webkit"+(0,o.default)(e)]=p,i["Moz"+(0,o.default)(e)]=c,u)}};var n=i(go),r=i(to),o=i(Xr);function i(e){return e&&e.__esModule?e:{default:e}}var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},s={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};e.exports=t.default});i(bo);var yo=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=h(Jr),r=h(Qr),o=h(eo),i=h(no),a=h(ro),s=h(oo),l=h(io),u=h(ao),p=h(so),c=h(lo),f=h(uo),d=h(bo);function h(e){return e&&e.__esModule?e:{default:e}}var m=[i.default,o.default,a.default,l.default,u.default,p.default,c.default,f.default,d.default,s.default];t.default=(0,n.default)({prefixMap:r.default.prefixMap,plugins:m}),e.exports=t.default});i(yo);var wo=/-[a-z\u00E0-\u00F6\u00F8-\u00FE]/g,xo=function(e){return e.slice(1).toUpperCase()},_o=function(e){var t=(e=e||{}).assign||Object.assign,n=t({raw:"",pfx:"_",client:"object"==typeof window,assign:t,stringify:JSON.stringify,kebab:function(e){return e.replace(Yr,"-$&").toLowerCase()},decl:function(e,t){return(e=n.kebab(e))+":"+t+";"},hash:function(e){return function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return"_"+(t>>>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<s.length;l++)"@"===(o=s[l])[0]&&"@font-face"!==o?n.putAt(e,t[o],o):n.put(n.selector(e,o),t[o],r)},n.putAt=n.put,n}({assign:qr,h:$,pfx:""});!function(e){var t={};e.cache=function(n){if(!n)return"";var r=e.hash(n);return t[r]||(t[r]=e.rule(n,r)),t[r]}}(_o),_o.selector=function(e,t){var n,r,o,i,a,s=e.split(","),l=[],u=t.split(","),p=s.length,c=u.length;for(n=0;n<c;n++)if((o=u[n]).indexOf("&")>-1)for(r=0;r<p;r++)i=s[r],a=o.replace(/&/g,i),l.push(a);else for(r=0;r<p;r++)(i=s[r])?l.push(i+" "+o):l.push(o);return l.join(",")},function(e){var t=e.decl,n=e.put;e.camel=function(e){return e.replace(wo,xo)},e.prefix=function(t,n){var r={};r[e.camel(t)]=n,r=yo(r);var o={};for(var i in r)n=r[i],"ms"===i.slice(0,2)&&(i="M"+i.slice(1)),i=e.kebab(i),n instanceof Array?o[i]=n.join(";"+i+":"):o[i]=n;return o},e.decl=function(n,r){var o=e.prefix(n,r),i="";return Object.keys(o).forEach(function(e){var n=t(e,r);i+=n}),i},e.put=function e(t,r,o){var i=t.indexOf("::placeholder");if(i>-1){var a=t.split(",");if(a.length>1)return void a.forEach(function(t){e(t.trim(),r,o)});var s=t.substring(0,i);["::-webkit-input-placeholder","::-moz-placeholder",":-ms-input-placeholder",":-moz-placeholder"].forEach(function(e){n(s+e,r,o)})}n(t,r,o)}}(_o),function(e){e.rule=function(t,n){return n=n||e.hash(t),n=e.pfx+n,e.put("."+n,t)," "+n}}(_o),function(e){e.sheet=function(t,n){var r={};n||(n=e.hash(t));var o=function(o){var i=t[o];Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:function(){var t=e.rule(i,n+"-"+o);return Object.defineProperty(r,o,{value:t,enumerable:!0}),t}})};for(var i in t)o(i);return r}}(_o);var To=_o.rule,So=_o.sheet;function Oo(e){var t=Fr(e);return t>.6?Br(t/2,e):Dr((1-t)/2,e)}function ko(t){var n,r,o,i,a,s,l,u,p,c,f=Vr(t),d=In(t.classPrefix),h=In(t.tippyClassPrefix),m=e({active:(r={},r["&."+d+"shepherd-modal-is-visible"]=(n={},n[":not(."+d+"shepherd-target)"]={pointerEvents:"none"},n["."+d+"shepherd-button, ."+d+"shepherd-cancel-link, ."+d+"shepherd-element, ."+d+"shepherd-target"]={pointerEvents:"auto","*":{pointerEvents:"auto"}},n),r)},function(e,t){var n;return{button:(n={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:Br(.1,t.shepherdThemePrimary)}},n["&."+e+"shepherd-button-secondary"]={background:t.shepherdThemeSecondary,color:t.shepherdThemeTextSecondary,"&:hover":{background:Br(.1,t.shepherdThemeSecondary),color:Br(.1,t.shepherdThemeTextSecondary)}},n)}}(d,f),{},function(e){return{content:{background:e.shepherdTextBackground,borderRadius:e.shepherdElementBorderRadius,fontSize:"inherit",outline:"none",padding:0}}}(f),{},{element:{outline:"none","&, *":{"&, &:after, &:before":{boxSizing:"border-box"}}}},{},function(e,t){var n;return{footer:(n={borderBottomLeftRadius:t.shepherdElementBorderRadius,borderBottomRightRadius:t.shepherdElementBorderRadius,display:"flex",justifyContent:"flex-end",padding:"0 0.75em 0.75em"},n["."+e+"shepherd-button"]={"&:last-child":{marginRight:0}},n)}}(d,f),{},function(e,t){var n,r;return{"cancel-link":(n={background:"transparent",border:"none",color:Oo(t.shepherdThemeTextColor),fontSize:"2em",fontWeight:"normal",margin:0,padding:0,position:"relative",textDecoration:"none",transition:"color 0.5s ease",verticalAlign:"middle","&:hover":{color:t.shepherdThemeTextColor,cursor:"pointer"}},n["."+e+"shepherd-has-title ."+e+"shepherd-content &"]={color:Oo(t.shepherdThemeTextHeader),"&:hover":{color:t.shepherdThemeTextHeader}},n),header:(r={alignItems:"center",borderTopLeftRadius:t.shepherdElementBorderRadius,borderTopRightRadius:t.shepherdElementBorderRadius,display:"flex",justifyContent:"flex-end",lineHeight:"2em",padding:"0.75em 0.75em 0"},r["."+e+"shepherd-has-title ."+e+"shepherd-content &"]={background:t.shepherdHeaderBackground,padding:"1em"},r),title:{color:t.shepherdThemeTextHeader,display:"flex",flex:"1 0 auto",fontSize:"1.1em",fontWeight:"normal",margin:0,padding:0,position:"relative",verticalAlign:"middle"}}}(d,f),{},{"modal-overlay-container":{"-ms-filter":"progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)",filter:"alpha(opacity=50)",height:"100vh",left:0,opacity:.5,position:"fixed",top:0,transition:"all 0.3s ease-out",width:"100vw",zIndex:9997},"modal-mask-rect":{height:"100vh",width:"100vw"}},{},function(e){return{text:{color:e.shepherdThemeTextColor,fontSize:e.shepherdTextFontSize,lineHeight:e.shepherdTextLineHeight,padding:"0.75em",p:{marginTop:0,"&:last-child":{marginBottom:0}},"a, a:visited, a:active":{borderBottom:"1px dotted",borderBottomColor:e.shepherdThemeTextColor,color:e.shepherdThemeTextColor,textDecoration:"none","&:hover":{borderBottomStyle:"solid"}}}}}(f));f.useDropShadow&&(m.element.filter="drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2))");var v=So(m,d+"shepherd"),g="calc(("+f.arrowSize+" / 2.1) * 16px)",b={'&[x-placement^="top"]':(o={marginBottom:g},o["."+h+"tippy-arrow"]={borderTopColor:f.shepherdTextBackground},o),'&[x-placement^="bottom"]':(a={marginTop:g},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:g},s["."+h+"tippy-arrow"]={borderLeftColor:f.shepherdTextBackground},s),'&[x-placement^="right"]':(l={marginLeft:g},l["."+h+"tippy-arrow"]={borderRightColor:f.shepherdTextBackground},l)};return v.shepherd=To(((c={})["&."+h+"tippy-popper"]=e({},b,((p={zIndex:f.shepherdElementZIndex})["."+h+"tippy-tooltip"]=((u={backgroundColor:f.shepherdTextBackground})["."+h+"tippy-arrow"]={transform:"scale("+f.arrowSize+")",zIndex:f.shepherdElementZIndex+1},u["."+h+"tippy-content"]={maxHeight:f.shepherdElementMaxHeight,maxWidth:f.shepherdElementMaxWidth,padding:0,textAlign:"center"},u),p)),c),d+"shepherd"),v}var Eo=function(e){function r(t){var r;return(r=e.call(this,t)||this)._onScreenChange=null,r.classPrefix=t.classPrefix,ke(n(r)),r.closeModalOpening(),r.setState({style:{display:"none"}}),r}t(r,e);var o=r.prototype;return o.render=function(e,t){var n=e.classPrefix,o=e.styles;return Oe.h("svg",{className:o["modal-overlay-container"],onTouchMove:r._preventModalOverlayTouch,style:t.style},Oe.h("defs",null,Oe.h("mask",{className:n+"shepherd-modal-mask",height:"100%",id:n+"shepherd-modal-mask",width:"100%",x:"0",y:"0"},Oe.h("rect",{className:o["modal-mask-rect"],fill:"#FFFFFF",height:"100%",width:"100%",x:"0",y:"0"}),Oe.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}))),Oe.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.setState({style:{display:"none"}}),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"),this.setState({style:{display:"block"}})},o._addStepEventListeners=function(){"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),window.addEventListener("touchmove",r._preventModalBodyTouch,{passive:!1})},o._cleanupStepEventListeners=function(){"function"==typeof this._onScreenChange&&(window.removeEventListener("resize",this._onScreenChange,!1),window.removeEventListener("scroll",this._onScreenChange,!0),this._onScreenChange=null),window.removeEventListener("touchmove",r._preventModalBodyTouch,{passive:!1})},o._styleForStep=function(e){var t,n,r,o,i=e.options.modalOverlayOpeningPadding;e.target?(this.positionModalOpening(e.target,i),this._onScreenChange=(t=this.positionModalOpening.bind(this,e.target,i),n=0,function(){var e=this,i=arguments,a=function(){o=null,r||t.apply(e,i)},s=r&&!o;clearTimeout(o),o=setTimeout(a,n),s&&t.apply(e,i)}),this._addStepEventListeners()):this.closeModalOpening()},r._preventModalBodyTouch=function(e){e.preventDefault()},r._preventModalOverlayTouch=function(e){e.stopPropagation()},r}(Oe.Component),Co=Oe.render,Po=function(){var e=0;return function(){return++e}}(),Mo=new U,Lo=function(r){function o(e){var t;void 0===e&&(e={}),ke(n(t=r.call(this,e)||this)),t.options=e,t.classPrefix=t.options?In(t.options.classPrefix):"",t.styles=ko(e),t.steps=t.options.steps||[];["active","cancel","complete","inactive","show","start"].map(function(e){var r;r=e,t.on(r,function(e){(e=e||{}).tour=n(t),Mo.trigger(r,e)})});var o=document.querySelector("."+t.classPrefix+"shepherd-modal-overlay-container");return Co(Oe.h(Eo,{classPrefix:t.classPrefix,ref:function(e){return t.modal=e},styles:t.styles}),e.modalContainer||document.body,o),t._setTooltipDefaults(),t._setTourID(),n(t)||n(t)}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.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 Mo.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=z(e)?this.getById(e):this.steps[e];n&&(this._updateStateBeforeShow(),W(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&&Gn.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}),Mo.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&Gn.clearAllBodyScrollLocks(),this.modal.hide(),R(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},i._setupActiveTour=function(){this._addBodyAttrs(),this.trigger("active",{tour:this}),Mo.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(){Ln.setDefaultProps(Zn)},i._updateStateBeforeShow=function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()},i._setTourID=function(){var e=this.options.tourName||"tour",t=Po();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}(U);return e(Mo,{Tour:Lo,Step:$n,Evented:U}),Mo});
4
- //# sourceMappingURL=shepherd.min.js.map
1
+ /*! shepherd.js 5.0.1 */
2
+ !function(){function e(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function t(e){return(t="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(e,n){"object"===("undefined"==typeof exports?"undefined":t(exports))&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).Shepherd=n()}(void 0,function(){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t-1},P=s(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],f(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?T(O(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],f(t)?b(t)?f(n)?b(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,f(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?T(O(i),a):a}}),L=function(e){if(!(n=e)||!("symbol"===t(n)||n.constructor&&"Symbol"===n.constructor.name&&"Symbol"===n[n.constructor.toStringTag]))throw new TypeError(e+" is not a symbol");var n;return e},A=Object.create,I=Object.defineProperties,B=Object.defineProperty,M=Object.prototype,N=A(null);if("function"==typeof Symbol){l=Symbol;try{String(l()),u=!0}catch(e){}}var F,j=(F=A(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});c=function(t){if(e(this,c))throw new TypeError("Symbol is not a constructor");return p(t)};var D=p=function t(n){var r;if(e(this,t))throw new TypeError("Symbol is not a constructor");return u?l(n):(r=A(c.prototype),n=void 0===n?"":String(n),I(r,{__description__:P("",n),__name__:P("",j(n))}))};I(p,{for:P(function(e){return N[e]?N[e]:N[e]=p(String(e))}),keyFor:P(function(e){var t;for(t in L(e),N)if(N[t]===e)return t}),hasInstance:P("",l&&l.hasInstance||p("hasInstance")),isConcatSpreadable:P("",l&&l.isConcatSpreadable||p("isConcatSpreadable")),iterator:P("",l&&l.iterator||p("iterator")),match:P("",l&&l.match||p("match")),replace:P("",l&&l.replace||p("replace")),search:P("",l&&l.search||p("search")),species:P("",l&&l.species||p("species")),split:P("",l&&l.split||p("split")),toPrimitive:P("",l&&l.toPrimitive||p("toPrimitive")),toStringTag:P("",l&&l.toStringTag||p("toStringTag")),unscopables:P("",l&&l.unscopables||p("unscopables"))}),I(c.prototype,{constructor:P(p),toString:P("",function(){return this.__name__})}),I(p.prototype,{toString:P(function(){return"Symbol ("+L(this).__description__+")"}),valueOf:P(function(){return L(this)})}),B(p.prototype,p.toPrimitive,P("",function(){var e=L(this);return"symbol"===t(e)?e:e.toString()})),B(p.prototype,p.toStringTag,P("c","Symbol")),B(c.prototype,p.toStringTag,P("c",p.prototype[p.toStringTag])),B(c.prototype,p.toPrimitive,P("c",p.prototype[p.toPrimitive])),function(){var e;if("function"!=typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(e){return!1}return!!i[t(Symbol.iterator)]&&!!i[t(Symbol.toPrimitive)]&&!!i[t(Symbol.toStringTag)]}()||Object.defineProperty(a,"Symbol",{value:D,configurable:!0,enumerable:!1,writable:!0});var H=function(e){return null!=e&&"object"===t(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));var 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 V(t,e,n)?e[t]:n.default;var 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{var c=s[p];for("number"==typeof c&&(c=String(c));c&&"\\"===c.slice(-1);)c=W([c.slice(0,-1),s[++p]||""],a,n);if(c in e){if(!V(c,e,n))return n.default;e=e[c]}else{for(var u=!1,f=p+1;f2;)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&&we(e)}function ne(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function re(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 oe(e){var t=e.parentNode;t&&t.removeChild(e)}function ie(e,n,r,o,i){if("className"===n&&(n="class"),"key"===n);else if("ref"===n)Z(r,null),Z(o,e);else if("class"!==n||i)if("style"===n){if(o&&"string"!=typeof o&&"string"!=typeof r||(e.style.cssText=o||""),o&&"object"===t(o)){if("string"!=typeof r)for(var a in r)a in o||(e.style[a]="");for(var a in o)e.style[a]="number"==typeof o[a]&&!1===J.test(a)?o[a]+"px":o[a]}}else if("dangerouslySetInnerHTML"===n)o&&(e.innerHTML=o.__html||"");else if("o"==n[0]&&"n"==n[1]){var s=n!==(n=n.replace(/Capture$/,""));n=n.toLowerCase().substring(2),o?r||e.addEventListener(n,ae,s):e.removeEventListener(n,ae,s),(e._listeners||(e._listeners={}))[n]=o}else if("list"!==n&&"type"!==n&&!i&&n in e){try{e[n]=null==o?"":o}catch(e){}null!=o&&!1!==o||"spellcheck"==n||e.removeAttribute(n)}else{var l=i&&n!==(n=n.replace(/^xlink:?/,""));null==o||!1===o?l?e.removeAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase()):e.removeAttribute(n):"function"!=typeof o&&(l?e.setAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase(),o):e.setAttribute(n,o))}else e.className=o||""}function ae(e){return this._listeners[e.type](e)}var se=[],le=0,pe=!1,ce=!1;function ue(){for(var e;e=se.shift();)e.componentDidMount&&e.componentDidMount()}function fe(e,t,n,r,o,i){le++||(pe=null!=o&&void 0!==o.ownerSVGElement,ce=null!=e&&!("__preactattr_"in e));var a=de(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--le||(ce=!1,i||ue()),a}function de(e,t,n,r,o){var i=e,a=pe;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),he(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=re(t);for(;o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;o&&l&&(!r||o._component)?(ye(o,p,3,n,r),e=o.base):(i&&!s&&(xe(i),e=a=null),o=be(t.nodeName,p,n),e&&!o.nextBase&&(o.nextBase=e,a=null),ye(o,p,1,n,r),e=o.base,a&&e!==a&&(a._component=null,he(a,!1)));return e}(e,t,n,r);if(pe="svg"===p||"foreignObject"!==p&&pe,p=String(p),(!e||!ne(e,p))&&(s=p,(l=pe?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),he(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!ce&&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 g=0;g2?[].slice.call(arguments,2):e.children)},createRef:function(){return{}},Component:Te,render:function(e,t,n){return fe(n,e,{},!1,t,!1)},rerender:te,options:q};function Ee(t){return e(t,HTMLElement)}function Oe(e){return"function"==typeof e}function _e(e){return"string"==typeof e}function Ce(e){return void 0===e}var ke=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];Ce(this.bindings)&&(this.bindings={}),Ce(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(Ce(this.bindings)||Ce(this.bindings[e]))return!1;Ce(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(!Ce(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 Pe(e){for(var t=Object.getOwnPropertyNames(e.constructor.prototype),n=0;n',Ye="tippy-iOS",Xe="tippy-popper",$e="tippy-tooltip",Ke="tippy-content",Ze="tippy-backdrop",Ge="tippy-arrow",Je="tippy-svg-arrow",Qe="."+Xe,et="."+$e,tt="."+Ke,nt="."+Ze,rt="."+Ge,ot="."+Je,it={isTouch:!1},at=0;function st(){it.isTouch||(it.isTouch=!0,Re&&document.body.classList.add(Ye),window.performance&&document.addEventListener("mousemove",lt))}function lt(){var e=performance.now();e-at<20&&(it.isTouch=!1,document.removeEventListener("mousemove",lt),Re||document.body.classList.remove(Ye)),at=e}function pt(){var e=document.activeElement,t=e._tippy;e&&e.blur&&t&&!t.state.isVisible&&e.blur()}var ct=Object.keys(We);function ut(e,t){return{}.hasOwnProperty.call(e,t)}function ft(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function dt(e,t){return e&&e.modifiers&&e.modifiers[t]}function ht(t){return e(t,Element)}function mt(e,t){return"function"==typeof e?e.apply(null,t):e}function vt(e,t){e.filter(function(e){return"flip"===e.name})[0].enabled=t}function bt(){return document.createElement("div")}function gt(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function yt(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function wt(e,t){var n=Ne({},t,{content:mt(t.content,[e])},t.ignoreAttributes?{}:function(e){return ct.reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{})}(e));return n.animateFill&&(n.arrow=!1),(n.arrow||He)&&(n.animateFill=!1),n}function xt(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)};var n}function Tt(e,t,n){e&&e!==t&&e.apply(null,n)}function St(e){return[].slice.call(e)}function Et(e,t){return e.indexOf(t)>-1}function Ot(e,t){e.innerHTML=ht(t)?t.innerHTML:t}function _t(e,t){if(ht(t.content))Ot(e,""),e.appendChild(t.content);else if("function"!=typeof t.content){e[t.allowHTML?"innerHTML":"textContent"]=t.content}}function Ct(e){return{tooltip:e.querySelector(et),backdrop:e.querySelector(nt),content:e.querySelector(tt),arrow:e.querySelector(rt)||e.querySelector(ot)}}function kt(e){e.setAttribute("data-inertia","")}function Pt(e){var t=bt();return!0===e?t.className=Ge:(t.className=Je,ht(e)?t.appendChild(e):Ot(t,"round"===e?qe:e)),t}function Lt(e){var t=bt();return t.className=Ze,t.setAttribute("data-state",e?"visible":"hidden"),t}function At(e){e.setAttribute("data-interactive","")}function It(e,t,n){var r=He&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](r,n)}function Bt(e){return e.split("-")[0]}function Mt(e,t,n){n.split(" ").forEach(function(n){n&&e.classList[t](n+"-theme")})}function Nt(e,t){var n=bt();n.className=Xe,n.style.position="absolute",n.style.top="0",n.style.left="0";var r=bt();r.className=$e,r.id="tippy-"+e,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1"),Mt(r,"add",t.theme);var o=bt();return o.className=Ke,o.setAttribute("data-state","hidden"),t.interactive&&At(r),t.arrow&&(r.setAttribute("data-arrow",""),r.appendChild(Pt(t.arrow))),t.animateFill&&(r.appendChild(Lt(!1)),r.setAttribute("data-animatefill","")),t.inertia&&kt(r),_t(o,t),r.appendChild(o),n.appendChild(r),Ft(n,t,t,!1),n}function Ft(e,t,n,r){var o=Ct(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&&_t(a,n),!t.animateFill&&n.animateFill?(i.appendChild(Lt(r)),i.setAttribute("data-animatefill","")):t.animateFill&&!n.animateFill&&(i.removeChild(s),i.removeAttribute("data-animatefill")),!t.arrow&&n.arrow?(i.appendChild(Pt(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(Pt(n.arrow))),!t.interactive&&n.interactive?At(i):t.interactive&&!n.interactive&&function(e){e.removeAttribute("data-interactive")}(i),!t.inertia&&n.inertia?kt(i):t.inertia&&!n.inertia&&function(e){e.removeAttribute("data-inertia")}(i),t.theme!==n.theme&&(Mt(i,"remove",t.theme),Mt(i,"add",n.theme))}for(var jt="undefined"!=typeof window&&"undefined"!=typeof document,Dt=["Edge","Trident","Firefox"],Ht=0,Rt=0;Rt=0){Ht=1;break}var Wt=jt&&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()},Ht))}};function Vt(e){return e&&"[object Function]"==={}.toString.call(e)}function zt(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Ut(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function qt(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=zt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:qt(Ut(e))}var Yt=jt&&!(!window.MSInputMethodContext||!document.documentMode),Xt=jt&&/MSIE 10/.test(navigator.userAgent);function $t(e){return 11===e?Yt:10===e?Xt:Yt||Xt}function Kt(e){if(!e)return document.documentElement;for(var t=$t(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"===zt(n,"position")?Kt(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Zt(e){return null!==e.parentNode?Zt(e.parentNode):e}function Gt(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&&Kt(a.firstElementChild)!==a?Kt(l):l;var p=Zt(e);return p.host?Gt(p.host,t):Gt(e,Zt(t).host)}function Jt(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function Qt(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 en(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],$t(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function tn(e){var t=e.body,n=e.documentElement,r=$t(10)&&getComputedStyle(n);return{height:en("Height",t,n,r),width:en("Width",t,n,r)}}var nn=function(t,n){if(!e(t,n))throw new TypeError("Cannot call a class as a function")},rn=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=$t(10),o="HTML"===t.nodeName,i=ln(e),a=ln(t),s=qt(e),l=zt(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=sn({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=function(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}(u,t)),u}function cn(e){if(!e||!e.parentElement||$t())return document.documentElement;for(var t=e.parentElement;t&&"none"===zt(t,"transform");)t=t.parentElement;return t||document.documentElement}function un(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?cn(e):Gt(e,t);if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=pn(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");return sn({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i})}(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=qt(Ut(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=pn(s,a,o);if("HTML"!==s.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===zt(t,"position"))return!0;var r=Ut(t);return!!r&&e(r)}(a))i=l;else{var p=tn(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 fn(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=un(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 an({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t}).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 dn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return pn(n,r?cn(t):Gt(t,n),r)}function hn(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 mn(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 vn(e,t,n){n=n.split("-")[0];var r=hn(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[mn(s)],o}function bn(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function gn(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=bn(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&&Vt(n)&&(t.offsets.popper=sn(t.offsets.popper),t.offsets.reference=sn(t.offsets.reference),t=n(t,e))}),t}function yn(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function wn(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=Pn.indexOf(e),r=Pn.slice(n+1).concat(Pn.slice(0,n));return t?r.reverse():r}var An={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function In(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(bn(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 sn(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){En(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var Bn={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:on({},l,i[l]),end:on({},l,i[l]+i[p]-a[p])};e.offsets.popper=an({},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=En(+n)?[+n,0]:In(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||Kt(e.instance.popper);e.instance.reference===n&&(n=Kt(n));var r=wn("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=un(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))),on({},n,r)}};return p.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=an({},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(!Cn(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=hn(r)[p];s[d]-ha[d]&&(e.offsets.popper[u]+=s[u]+h-a[d]),e.offsets.popper=sn(e.offsets.popper);var m=s[u]+s[p]/2-h/2,v=zt(e.instance.popper),b=parseFloat(v["margin"+c],10),g=parseFloat(v["border"+c+"Width"],10),y=m-e.offsets.popper[u]-b-g;return y=Math.max(Math.min(a[p]-h,y),0),e.arrowElement=r,e.offsets.arrow=(on(n={},u,Math.round(y)),on(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(yn(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=un(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=mn(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case An.FLIP:a=[r,o];break;case An.CLOCKWISE:a=Ln(r);break;case An.COUNTERCLOCKWISE:a=Ln(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=mn(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,g=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(g&&"start"===i&&d||g&&"end"===i&&h||!g&&"start"===i&&m||!g&&"end"===i&&v),w=!!t.flipVariationsByContent&&(g&&"start"===i&&h||g&&"end"===i&&d||!g&&"start"===i&&v||!g&&"end"===i&&m),x=y||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=an({},e.offsets.popper,vn(e.instance.popper,e.offsets.reference,e.placement)),e=gn(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=mn(t),e.offsets.popper=sn(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Cn(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=bn(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]:{};nn(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Wt(this.update.bind(this)),this.options=an({},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(an({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=an({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return an({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&Vt(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 rn(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=dn(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=fn(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=vn(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=gn(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,yn(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[wn("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=Tn(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Sn.call(this)}}]),e}();Mn.Utils=("undefined"!=typeof window?window:global).PopperUtils,Mn.placements=kn,Mn.Defaults=Bn;var Nn=1,Fn=[];function jn(t,n){var r,o,i,a,s=wt(t,n);if(!s.multiple&&t._tippy)return null;var l,p,c=!1,u=!1,f=!1,d=[],h=xt(N,s.interactiveDebounce),m=Nn++,v=Nt(m,s),b=Ct(v),g=b.tooltip,y=b.content,w={currentPlacement:s.placement,isScheduledToShow:!1,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},x={id:m,reference:t,popper:v,popperChildren:b,popperInstance:null,props:s,state:w,clearDelayTimeouts:function(){clearTimeout(o),clearTimeout(i),cancelAnimationFrame(a)},setProps:function(e){var n=Ne({},e);if(x.state.isDestroyed)return;B();var r=x.props,o=wt(t,Ne({},x.props,{},n,{ignoreAttributes:!0}));o.ignoreAttributes=ut(n,"ignoreAttributes")?n.ignoreAttributes||!1:r.ignoreAttributes,x.props=o,I(),_(),h=xt(N,o.interactiveDebounce),Ft(v,r,o,x.state.isVisible),x.popperChildren=Ct(v),x.popperInstance&&(Ve.some(function(e){return ut(n,e)&&n[e]!==r[e]})?(x.popperInstance.destroy(),H(),x.state.isVisible&&x.popperInstance.enableEventListeners()):x.popperInstance.update())},setContent:function(e){x.setProps({content:e})},show:function(e,n){void 0===e&&(e=ft(x.props.duration,0,We.duration));void 0===n&&(n=!0);var r=x.state.isVisible,o=x.state.isDestroyed,i=!x.state.isEnabled,a=it.isTouch&&!x.props.touch;if(r||o||i||a)return;if(O().hasAttribute("disabled"))return;if(!1===x.props.onShow(x))return;k(),v.style.visibility="visible",x.state.isVisible=!0;var s=E();gt(n?s.concat(v):s,0),l=function(){x.state.isVisible&&(x.popperInstance.update(),x.props.onMount(x),x.state.isMounted=!0,y.style.transitionDelay=x.popperChildren.backdrop?Math.round(e/12)+"ms":"",x.props.sticky&&function(){gt([v],De?0:x.props.updateDuration);var e=t.getBoundingClientRect();!function n(){var r=t.getBoundingClientRect();e.top===r.top&&e.right===r.right&&e.bottom===r.bottom&&e.left===r.left||x.popperInstance.scheduleUpdate();e=r;x.state.isMounted&&requestAnimationFrame(n)}()}(),gt([v],x.props.updateDuration),gt(s,e),yt(s,"visible"),function(e,t){L(e,t)}(e,function(){if(x.props.aria){var e=O(),t="aria-"+x.props.aria,n=e.getAttribute(t),r=n?n+" "+g.id:g.id;e.setAttribute(t,r)}x.props.onShown(x),x.state.isShown=!0}))},function(){u=!1;var e=x.props.appendTo,n="parent"===e?t.parentNode:mt(e,[t]);n.contains(v)||n.appendChild(v);x.popperInstance?(vt(x.popperInstance.modifiers,x.props.flip),x.popperInstance.enableEventListeners(),x.popperInstance.scheduleUpdate()):(H(),x.popperInstance.enableEventListeners())}()},hide:function(e){void 0===e&&(e=ft(x.props.duration,1,We.duration));var t=!x.state.isVisible&&!c,n=x.state.isDestroyed,r=!x.state.isEnabled&&!c;if(t||n||r)return;if(!1===x.props.onHide(x)&&!c)return;P(),v.style.visibility="hidden",x.state.isVisible=!1,x.state.isShown=!1;var o=E();gt(o,e),yt(o,"hidden"),function(e,t){L(e,function(){!x.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()})}(e,function(){if(x.props.aria){var e=O(),t="aria-"+x.props.aria,n=e.getAttribute(t),r=n?n.replace(g.id,"").trim():null;r?e.setAttribute(t,r):e.removeAttribute(t)}x.popperInstance.disableEventListeners(),x.popperInstance.options.placement=x.props.placement,v.parentNode.removeChild(v),x.props.onHidden(x),x.state.isMounted=!1})},enable:function(){x.state.isEnabled=!0},disable:function(){x.hide(),x.state.isEnabled=!1},destroy:function(){if(x.state.isDestroyed)return;c=!0,x.hide(0),B(),delete t._tippy,x.popperInstance&&x.popperInstance.destroy();c=!1,x.state.isDestroyed=!0}};return t._tippy=x,v._tippy=x,I(),s.lazy||H(),s.showOnCreate&&W(),v.addEventListener("mouseenter",function(){x.props.interactive&&x.state.isVisible&&"mouseenter"===r&&x.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){x.props.interactive&&"mouseenter"===r&&document.addEventListener("mousemove",h)}),s.onCreate(x),x;function T(){var e=x.props.touch;return Array.isArray(e)?e:[e,0]}function S(){return"hold"===T()[0]}function E(){return[g,y,x.popperChildren.backdrop]}function O(){return x.props.triggerTarget||t}function _(){document.body.removeEventListener("mouseleave",V),document.removeEventListener("mousemove",h),Fn=Fn.filter(function(e){return e!==h})}function C(e){if(!x.props.interactive||!v.contains(e.target)){if(O().contains(e.target)){if(it.isTouch)return;if(x.state.isVisible&&Et(x.props.trigger,"click"))return}!0===x.props.hideOnClick&&(x.clearDelayTimeouts(),x.hide(),f=!0,setTimeout(function(){f=!1}),x.state.isMounted||P())}}function k(){document.addEventListener("mousedown",C,!0)}function P(){document.removeEventListener("mousedown",C,!0)}function L(e,t){function n(e){e.target===g&&(It(g,"remove",n),t())}if(0===e)return t();It(g,"remove",p),It(g,"add",n),p=n}function A(e,t,n){void 0===n&&(n=!1),O().addEventListener(e,t,n),d.push({eventType:e,handler:t,options:n})}function I(){S()&&(A("touchstart",M,ze),A("touchend",F,ze)),Et(x.props.trigger,"click")||A("click",function(){it.isTouch||!0!==x.props.hideOnClick||x.hide()}),x.props.trigger.trim().split(" ").forEach(function(e){if("manual"!==e)switch(A(e,M),e){case"mouseenter":A("mouseleave",F);break;case"focus":A(De?"focusout":"blur",j)}})}function B(){d.forEach(function(e){var t=e.eventType,n=e.handler,r=e.options;O().removeEventListener(t,n,r)}),d=[]}function M(t){if(!f&&x.state.isEnabled&&!D(t))if(x.state.isVisible||(r=t.type,e(t,MouseEvent)&&Fn.forEach(function(e){return e(t)})),"click"===t.type&&!1!==x.props.hideOnClick&&x.state.isVisible)V(t);else{var n=T(),i=n[0],a=n[1];it.isTouch&&"hold"===i&&a?o=setTimeout(function(){W(t)},a):W(t)}}function N(e){(function(e,t){for(;e;){if(t(e))return e;e=e.parentElement}return null})(e.target,function(e){return e===t||e===v})||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}(Bt(x.state.currentPlacement),v.getBoundingClientRect(),e,x.props)&&(_(),V(e))}function F(e){if(!D(e))return x.props.interactive?(document.body.addEventListener("mouseleave",V),document.addEventListener("mousemove",h),void Fn.push(h)):void V(e)}function j(e){e.target===O()&&(x.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||V(e))}function D(e){var t="ontouchstart"in window,n=Et(e.type,"touch"),r=S();return t&&it.isTouch&&r&&!n||it.isTouch&&!r&&n}function H(){var e=x.props.popperOptions,n=x.popperChildren.arrow,r=dt(e,"preventOverflow");function o(e){x.state.currentPlacement=e.placement,x.props.flip&&!x.props.flipOnUpdate&&(e.flipped&&(x.popperInstance.options.placement=e.placement),vt(x.popperInstance.modifiers,!1)),g.setAttribute("data-placement",e.placement),!1!==e.attributes["x-out-of-boundaries"]?g.setAttribute("data-out-of-boundaries",""):g.removeAttribute("data-out-of-boundaries");var t=Bt(e.placement),n=Et(["top","bottom"],t),r=Et(["bottom","right"],t),o=g.style;o.top="0",o.left="0",o[n?"top":"left"]=(r?1:-1)*x.props.distance+"px"}var i=Ne({eventsEnabled:!1,placement:x.props.placement},e,{modifiers:Ne({},e&&e.modifiers,{preventOverflow:Ne({boundariesElement:x.props.boundary,padding:Ue},r),tippySetPreventOverflowPadding:{enabled:!0,order:299,fn:function(e){var t=Bt(e.placement),n=r&&void 0!==r.padding?r.padding:Ue,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+x.props.distance:(n[t]||0)+x.props.distance),e},i);return x.popperInstance.modifiers.filter(function(e){return"preventOverflow"===e.name})[0].padding=a,e}},arrow:Ne({element:n,enabled:!!n},dt(e,"arrow")),flip:Ne({enabled:x.props.flip,padding:x.props.distance+Ue,behavior:x.props.flipBehavior},dt(e,"flip")),offset:Ne({offset:x.props.offset},dt(e,"offset"))}),onCreate:function(t){o(t),Tt(e&&e.onCreate,i.onCreate,[t]),R()},onUpdate:function(t){o(t),Tt(e&&e.onUpdate,i.onUpdate,[t]),R()}});x.popperInstance=new Mn(t,v,i)}function R(){!u&&l&&(u=!0,function(e){e.offsetHeight}(v),l())}function W(e){x.clearDelayTimeouts(),x.state.isScheduledToShow=!0,x.popperInstance||H(),e&&x.props.onTrigger(x,e),k();var t=ft(x.props.delay,0,We.delay);t?o=setTimeout(function(){x.show()},t):x.show()}function V(e){if(x.clearDelayTimeouts(),x.props.onUntrigger(x,e),x.state.isVisible){x.state.isScheduledToShow=!1;var t=ft(x.props.delay,1,We.delay);t?i=setTimeout(function(){x.state.isVisible&&x.hide()},t):a=requestAnimationFrame(function(){x.hide()})}else P()}}function Dn(t,n){document.addEventListener("touchstart",st,Ne({},ze,{capture:!0})),window.addEventListener("blur",pt);var r,o=Ne({},We,{},n),i=(ht(r=t)?[r]:e(r,NodeList)?St(r):Array.isArray(r)?r:St(document.querySelectorAll(r))).reduce(function(e,t){var n=t&&jn(t,o);return n&&e.push(n),e},[]);return ht(t)?i[0]:i}Dn.version="5.0.0-beta.1",Dn.defaultProps=We,Dn.currentInput=it,Dn.setDefaultProps=function(e){Object.keys(e).forEach(function(t){We[t]=e[t]})},Dn.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;St(document.querySelectorAll(Qe)).forEach(function(e){var t,o=e._tippy;if(o){var i=!1;n&&(i=(t=n)&&t._tippy&&!t.classList.contains(Xe)?o.reference===n:e===n.popper),i||o.hide(r)}})},Fe&&setTimeout(function(){St(document.querySelectorAll("[data-tippy]")).forEach(function(e){var t=e.getAttribute("data-tippy");t&&Dn(e,{content:t})})});function Hn(e){return _e(e)&&""!==e?"-"!==e.charAt(e.length-1)?e+"-":e:""}function Rn(e){var t=e.options.attachTo||{},r=n({},t);if(_e(t.element)){try{r.element=document.querySelector(t.element)}catch(e){}r.element||console.error("The element for this Shepherd step was not found "+t.element)}return r}function Wn(e){if(Ce(Dn))throw new Error("Using the attachment feature of Shepherd requires the Tippy.js library");e.tooltip&&e.tooltip.destroy();var t=Rn(e);e.tooltip=function(e,t){var r={},o=document.body;e.element&&e.on?(r=function(e,t){var r=Me(t),o=r.popperOptions,i=r.tippyOptions;i.flipOnUpdate=!0,i.placement=e.on||"right";var a=R(t,"options.tippyOptions.popperOptions");return a&&(o=n({},o,{},a,{modifiers:n({},o.modifiers,{},a.modifiers)})),i.popperOptions=o,i}(e,t),o=e.element):r=Be(t);return Dn(o,r)}(t,e),e.target=t.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 Vn=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.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 Se.h("button",{className:(a||"")+o.button+(s?" "+t+"shepherd-button-secondary":""),onClick:i?i.bind(r.tour):null,tabindex:"0"},l)},t}(Se.Component),zn=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.render=function(e){var t=e.classPrefix,n=e.step,r=e.styles,o=n.options.buttons;return Se.h("footer",{className:r.footer.trim()},this._addButtons(o,t,n,r))},n._addButtons=function(e,t,n,r){return e?e.map(function(e){return Se.h(Vn,{classPrefix:t,config:e,key:e.toString(),step:n,styles:r})}):null},t}(Se.Component),Un=function(e){function t(t){var n;return(n=e.call(this,t)||this).step=t.step,n.handleCancelClick=n.handleCancelClick.bind(o(n)),n}r(t,e);var n=t.prototype;return n.render=function(e){var t=e.labelId,n=e.step,r=e.styles,o=n.options,i=o.cancelIcon,a=o.title;return Se.h("header",{className:r.header.trim()},this.constructor._addTitle(t,r,a),this._addCancelLink(i,r))},n.handleCancelClick=function(e){e.preventDefault(),this.step.cancel()},t._addTitle=function(e,t,n){return n?Se.h("h3",{id:e,className:t.title.trim()},n):null},n._addCancelLink=function(e,t){return e&&e.enabled?Se.h("button",{"aria-label":e.label?e.label:"Close Tour",className:t["cancel-icon"].trim(),onClick:this.handleCancelClick,type:"button"},Se.h("span",{"aria-hidden":"true"},"×")):null},t}(Se.Component),qn=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(){return!1},n.componentDidMount=function(){var e=this.props.step,t=e.options.text;Oe(t)&&(t=t.call(e)),Ee(t)&&this.base.appendChild(t)},n.render=function(e){var t=e.descriptionId,n=e.step,r=e.styles,o=n.options.text;return Oe(o)&&(o=o.call(n)),Se.h("div",{className:r.text.trim(),dangerouslySetInnerHTML:{__html:Ee(o)?null:o},id:t})},t}(Se.Component),Yn=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(e){var n=e.classPrefix,r=e.descriptionId,o=e.labelId,i=e.step,a=e.styles;return Se.h("div",{className:a.content.trim()},Se.h(Un,{labelId:o,step:i,styles:a}),t._addShepherdText(r,i,a),t._addShepherdFooter(n,i,a))},t._addShepherdText=function(e,t,n){return Ce(t.options.text)?null:Se.h(qn,{descriptionId:e,step:t,styles:n})},t._addShepherdFooter=function(e,t,n){return Array.isArray(t.options.buttons)&&t.options.buttons.length?Se.h(zn,{classPrefix:e,step:t,styles:n}):null},t}(Se.Component),Xn=Se.Component,$n=function(e){function t(t){var n;return(n=e.call(this,t)||this).step=t.step,n.handleKeyDown=n.handleKeyDown.bind(o(n)),n}r(t,e);var i=t.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(e){var t,r=this,o=e.classes,i=e.classPrefix,a=e.descriptionId,s=e.labelId,l=e.step,p=e.styles,c=((t={})["data-"+i+"shepherd-step-id"]=l.id,t);return Se.h("div",n({"aria-describedby":Ce(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"}),Se.h(Yn,{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()}},t}(Xn);Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var Kn=s(function(e,n){!function(){e.exports={polyfill:function(){var e=window,n=document;if(!("scrollBehavior"in n.documentElement.style&&!0!==e.__forceSmoothScrollPolyfill__)){var r,o=e.HTMLElement||e.Element,i=468,a={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:o.prototype.scroll||p,scrollIntoView:o.prototype.scrollIntoView},s=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,l=(r=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(r)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?m.call(e,n.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):a.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==t(arguments[0])?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?a.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==t(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):m.call(e,n.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!==c(arguments[0])){var e=arguments[0].left,n=arguments[0].top;m.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===n?this.scrollTop:~~n)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==t(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!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):a.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!==c(arguments[0])){var t=function(e){for(;e!==n.body&&!1===d(e);)e=e.parentNode||e.host;return e}(this),r=t.getBoundingClientRect(),o=this.getBoundingClientRect();t!==n.body?(m.call(this,t,t.scrollLeft+o.left-r.left,t.scrollTop+o.top-r.top),"fixed"!==e.getComputedStyle(t).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else a.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function p(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){if(null===e||"object"!==t(e)||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"===t(e)&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(e,t){return"Y"===t?e.clientHeight+l1?1:l,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(h.bind(e,t))}function m(t,r,o){var i,l,c,u,f=s();t===n.body?(i=e,l=e.scrollX||e.pageXOffset,c=e.scrollY||e.pageYOffset,u=a.scroll):(i=t,l=t.scrollLeft,c=t.scrollTop,u=p),h({scrollable:i,method:u,startTime:f,startX:l,startY:c,x:r,y:o})}}}}()});Kn.polyfill;Kn.polyfill();var Zn,Gn,Jn=Se.render,Qn=(Zn=0,function(){return++Zn}),er=function(e){function t(t,n){var r;return void 0===n&&(n={}),(r=e.call(this,t,n)||this).tour=t,r.classPrefix=r.tour.options?Hn(r.tour.options.classPrefix):"",r.styles=t.styles,Pe(o(r)),r._setOptions(n),o(r)||o(r)}r(t,e);var n=t.prototype;return n.cancel=function(){this.tour.cancel(),this.trigger("cancel")},n.complete=function(){this.tour.complete(),this.trigger("complete")},n.destroy=function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),Ee(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this.target&&this._updateStepTargetOnHide(),this.trigger("destroy")},n.getTour=function(){return this.tour},n.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")},n.isOpen=function(){return Boolean(this.tooltip&&this.tooltip.state&&this.tooltip.state.isVisible)},n.show=function(){var e=this;if(Oe(this.options.beforeShowPromise)){var t=this.options.beforeShowPromise();if(!Ce(t))return t.then(function(){return e._show()})}this._show()},n._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"),Jn(Se.h($n,{classPrefix:this.classPrefix,classes:t,descriptionId:n,labelId:r,step:this,styles:this.styles}),null)},n._scrollTo=function(e){var t=Rn(this).element;Oe(this.options.scrollToHandler)?this.options.scrollToHandler(t):Ee(t)&&t.scrollIntoView(e)},n._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-"+Qn(),n&&Object.keys(n).forEach(function(e){t.on(e,n[e],t)})},n._setupElements=function(){Ce(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Le(this),Wn(this)},n._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()},n._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"))},n._updateStepTargetOnHide=function(){this.options.highlightClass&&this.target.classList.remove(this.options.highlightClass),this.target.classList.remove(this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target")},t}(ke),tr=s(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 dr={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 hr=/^#[a-fA-F0-9]{6}$/,mr=/^#[a-fA-F0-9]{8}$/,vr=/^#[a-fA-F0-9]{3}$/,br=/^#[a-fA-F0-9]{4}$/,gr=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,yr=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,wr=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/i,xr=/^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 Tr(e){if("string"!=typeof e)throw new pr(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return dr[t]?"#"+dr[t]:e}(e);if(t.match(hr))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(mr)){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(vr))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(br)){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=gr.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=yr.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=wr.exec(t);if(a){var s="rgb("+fr(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",l=gr.exec(s);if(!l)throw new pr(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var p=xr.exec(t);if(p){var c="rgb("+fr(parseInt(""+p[1],10),parseInt(""+p[2],10)/100,parseInt(""+p[3],10)/100)+")",u=gr.exec(c);if(!u)throw new pr(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 pr(5)}function Sr(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?Pr(e,n,r):"rgba("+e+","+n+","+r+","+o+")";if("object"===t(e)&&void 0===n&&void 0===r&&void 0===o)return e.alpha>=1?Pr(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new pr(7)}var Ar=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},Ir=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},Br=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},Mr=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function Nr(e){if("object"!==t(e))throw new pr(8);if(Ir(e))return Lr(e);if(Ar(e))return Pr(e);if(Mr(e))return function(e,n,r,o){if("number"==typeof e&&"number"==typeof n&&"number"==typeof r&&"number"==typeof o)return o>=1?kr(e,n,r):"rgba("+fr(e,n,r)+","+o+")";if("object"===t(e)&&void 0===n&&void 0===r&&void 0===o)return e.alpha>=1?kr(e.hue,e.saturation,e.lightness):"rgba("+fr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new pr(2)}(e);if(Br(e))return function(e,n,r){if("number"==typeof e&&"number"==typeof n&&"number"==typeof r)return kr(e,n,r);if("object"===t(e)&&void 0===n&&void 0===r)return kr(e.hue,e.saturation,e.lightness);throw new pr(1)}(e);throw new pr(8)}function Fr(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 jr(e,t,n){return Math.max(e,Math.min(t,n))}function Dr(e,t){if("transparent"===t)return t;var n=Sr(t);return Nr(or({},n,{lightness:jr(0,1,n.lightness-parseFloat(e))}))}var Hr=Fr(Dr);function Rr(e,t){if("transparent"===t)return t;var n=Sr(t);return Nr(or({},n,{saturation:jr(0,1,n.saturation-parseFloat(e))}))}var Wr=Fr(Rr);function Vr(e){if("transparent"===e)return 0;var t=Tr(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 zr(e,t){if("transparent"===t)return t;var n=Sr(t);return Nr(or({},n,{lightness:jr(0,1,n.lightness+parseFloat(e))}))}var Ur=Fr(zr);function qr(e,t,n){return void 0===t&&(t="#000"),void 0===n&&(n="#fff"),Vr(e)>.179?t:n}function Yr(e,t){if("transparent"===t)return t;var n=Tr(t);return Lr(or({},n,{alpha:jr(0,1,(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e))/100)}))}var Xr=Fr(Yr),$r={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 Kr(e){return e.styleVariables&&n($r,e.styleVariables),$r.shepherdHeaderBackground||($r.shepherdHeaderBackground=Hr(.1,$r.shepherdTextBackground)),$r.shepherdThemeSecondary||($r.shepherdThemeSecondary=Wr(.7,Ur(.4,$r.shepherdThemePrimary))),function(){$r.shepherdThemeTextPrimary||($r.shepherdThemeTextPrimary=Xr(.25,qr($r.shepherdThemePrimary)));$r.shepherdThemeTextSecondary||($r.shepherdThemeTextSecondary=Xr(.25,qr($r.shepherdThemeSecondary)));$r.shepherdThemeTextHeader||($r.shepherdThemeTextHeader=Xr(.25,qr($r.shepherdHeaderBackground)));$r.shepherdThemeTextColor||($r.shepherdThemeTextColor=Xr(.25,qr($r.shepherdTextBackground)))}(),$r}function Zr(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)}(o.stringify(e))},selector:function(e,t){return e+(":"===t[0]?"":" ")+t},putRaw:function(e){o.raw+=e}},n);return o.client&&(o.sh||document.head.appendChild(o.sh=document.createElement("style")),o.putRaw=function(e){var t=o.sh.sheet;try{t.insertRule(e,t.cssRules.length)}catch(e){}}),o.put=function(t,n,r){var i,a,s="",l=[];for(i in n)e(a=n[i],Object)&&!e(a,Array)?l.push(i):s+=o.decl(i,a,t,r);s&&(s=t+"{"+s+"}",o.putRaw(r?r+"{"+s+"}":s));for(var p=0;p-1)for(r=0;r.6?Hr(t/2,e):Ur((1-t)/2,e)}function oo(e){var t,r,o,i,a,s,l,p,c,u,f=Kr(e),d=Hn(e.classPrefix),h=Hn(e.tippyClassPrefix),m=e.includeStyles,v=n({active:(r={},r["&."+d+"shepherd-modal-is-visible"]=(t={},t[":not(."+d+"shepherd-target)"]={pointerEvents:"none"},t["."+d+"shepherd-button, ."+d+"shepherd-cancel-icon, ."+d+"shepherd-element, ."+d+"shepherd-target"]={pointerEvents:"auto","*":{pointerEvents:"auto"}},t),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:Hr(.1,t.shepherdThemePrimary)}},r["&."+e+"shepherd-button-secondary"]={background:t.shepherdThemeSecondary,color:t.shepherdThemeTextSecondary,"&:hover":{background:Hr(.1,t.shepherdThemeSecondary),color:Hr(.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(e,t,r){var o,i,a=((o={alignItems:"center",borderTopLeftRadius:t.shepherdElementBorderRadius,borderTopRightRadius:t.shepherdElementBorderRadius,display:"flex",justifyContent:"flex-end",lineHeight:"2em",padding:"0.75em 0.75em 0"})["."+e+"shepherd-has-title ."+e+"shepherd-content &"]={background:t.shepherdHeaderBackground,padding:"1em"},o),s={color:t.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:ro(t.shepherdThemeTextColor),fontSize:"2em",fontWeight:"normal",margin:0,padding:0,position:"relative",textDecoration:"none",transition:"color 0.5s ease",verticalAlign:"middle","&:hover":{color:t.shepherdThemeTextColor,cursor:"pointer"}},i["."+e+"shepherd-has-title ."+e+"shepherd-content &"]={color:ro(t.shepherdThemeTextHeader),"&:hover":{color:t.shepherdThemeTextHeader}},i)};return l=n({},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=no(v,d+"shepherd"),g="calc(("+f.arrowSize+" / 2.1) * 16px)",y={'&[x-placement^="top"]':(o={marginBottom:g},o["."+h+"tippy-arrow"]={borderTopColor:f.shepherdTextBackground},o),'&[x-placement^="bottom"]':(a={marginTop:g},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:g},s["."+h+"tippy-arrow"]={borderLeftColor:f.shepherdTextBackground},s),'&[x-placement^="right"]':(l={marginLeft:g},l["."+h+"tippy-arrow"]={borderRightColor:f.shepherdTextBackground},l)};return b.shepherd=to(((u={})["&."+h+"tippy-popper"]=n({},y,((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 io=function(e){function t(t){var n;return(n=e.call(this,t)||this)._onScreenChange=null,n.classPrefix=t.classPrefix,Pe(o(n)),n.closeModalOpening(),n}r(t,e);var n=t.prototype;return n.render=function(e,n){var r=e.classPrefix,o=e.styles;return Se.h("svg",{className:o["modal-overlay-container"],onTouchMove:t.handlePreventModalOverlayTouch},Se.h("defs",null,Se.h("mask",{className:r+"shepherd-modal-mask",height:"100%",id:r+"shepherd-modal-mask",width:"100%",x:"0",y:"0"},Se.h("rect",{className:o["modal-mask-rect"],fill:"#FFFFFF",height:"100%",width:"100%",x:"0",y:"0"}),Se.h("rect",{className:r+"shepherd-modal-mask-opening",fill:"#000000",height:n.openingProperties.height,x:n.openingProperties.x,y:n.openingProperties.y,width:n.openingProperties.width}))),Se.h("rect",{height:"100%",width:"100%",x:"0",y:"0",mask:"url(#"+r+"shepherd-modal-mask)"}))},n.closeModalOpening=function(){this.setState({openingProperties:{height:0,x:0,y:0,width:0}})},n.hide=function(){document.body.classList.remove(this.classPrefix+"shepherd-modal-is-visible"),this._cleanupStepEventListeners()},n.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}})}},n.setupForStep=function(e){this._cleanupStepEventListeners(),e.tour.options.useModalOverlay?(this._styleForStep(e),this.show()):this.hide()},n.show=function(){document.body.classList.add(this.classPrefix+"shepherd-modal-is-visible")},n._addStepEventListeners=function(){window.addEventListener("touchmove",t._preventModalBodyTouch,{passive:!1})},n._cleanupStepEventListeners=function(){this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=void 0),window.removeEventListener("touchmove",t._preventModalBodyTouch,{passive:!1})},n._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()},t._preventModalBodyTouch=function(e){e.preventDefault()},t.handlePreventModalOverlayTouch=function(e){e.stopPropagation()},t}(Se.Component),ao=Se.render,so=function(){var e=0;return function(){return++e}}(),lo=new ke,po=function(t){function i(e){var r;void 0===e&&(e={}),Pe(o(r=t.call(this,e)||this));r.options=n({},{exitOnEsc:!0,includeStyles:!0,keyboardNavigation:!0},e),r.classPrefix=r.options?Hn(r.options.classPrefix):"",r.styles=oo(r.options),r.steps=[],r.addSteps(r.options.steps);["active","cancel","complete","inactive","show","start"].map(function(e){var t;t=e,r.on(t,function(e){(e=e||{}).tour=o(r),lo.trigger(t,e)})});var i=document.querySelector("."+r.classPrefix+"shepherd-modal-overlay-container");return ao(Se.h(io,{classPrefix:r.classPrefix,ref:function(e){return r.modal=e},styles:r.styles}),e.modalContainer||document.body,i),r._setTooltipDefaults(),r._setTourID(),o(r)||o(r)}r(i,t);var a=i.prototype;return a.addStep=function(t){var n=t;return e(n,er)?n.tour=this:n=this._setupStep(n),this.steps.push(n),n},a.addSteps=function(e){var t=this;return Array.isArray(e)&&e.forEach(function(e){t.addStep(e)}),this},a.back=function(){var e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)},a.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")},a.complete=function(){this._done("complete")},a.getById=function(e){return this.steps.find(function(t){return t.id===e})},a.getCurrentStep=function(){return this.currentStep},a.hide=function(){var e=this.getCurrentStep();if(e)return e.hide()},a.isActive=function(){return lo.activeTour===this},a.next=function(){var e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)},a.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())},a.show=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!0);var n=_e(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()))},a.start=function(){this.trigger("start"),this.options.disableScroll&&nr.disableBodyScroll(),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupActiveTour(),this.next()},a._done=function(t){var n,r=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach(function(e){return e.destroy()}),(n=this)&&n.steps.forEach(function(t){if(t.options&&!1===t.options.canClickTarget&&t.options.attachTo){var n=t.target;e(n,HTMLElement)&&(n.style.pointerEvents="auto")}}),this.trigger(t,{index:r}),lo.activeTour=null,this._removeBodyAttrs(),this.trigger("inactive",{tour:this}),this.options.disableScroll&&nr.clearAllBodyScrollLocks(),this.modal.hide(),Ee(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},a._setupActiveTour=function(){this._addBodyAttrs(),this.trigger("active",{tour:this}),lo.activeTour=this},a._setupStep=function(e){return e=n({},this.options.defaultStepOptions,e),new er(this,e)},a._skipStep=function(e,t){var n=this.steps.indexOf(e),r=t?n+1:n-1;this.show(r,t)},a._setTooltipDefaults=function(){Dn.setDefaultProps(rr)},a._updateStateBeforeShow=function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()},a._setTourID=function(){var e=this.options.tourName||"tour",t=so();this.id=e+"--"+t},a._addBodyAttrs=function(){document.body.setAttribute("data-"+this.classPrefix+"shepherd-active-tour",this.id),document.body.classList.add(this.styles.active.trim())},a._removeBodyAttrs=function(){document.body.removeAttribute("data-"+this.classPrefix+"shepherd-active-tour"),document.body.classList.remove(this.styles.active.trim())},i}(ke);return n(lo,{Tour:po,Step:er}),lo})}();
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shepherdjs_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.3
4
+ version: 5.0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jimcheung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-04 00:00:00.000000000 Z
11
+ date: 2019-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -75,7 +75,6 @@ files:
75
75
  - test/shepherdjs_rails_test.rb
76
76
  - test/test_helper.rb
77
77
  - vendor/assets/javascripts/shepherd.min.js
78
- - vendor/assets/javascripts/shepherd.min.js.map
79
78
  homepage: https://github.com/jinhucheung/shepherdjs_rails
80
79
  licenses:
81
80
  - MIT
@@ -96,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
95
  version: '0'
97
96
  requirements: []
98
97
  rubyforge_project:
99
- rubygems_version: 2.7.8
98
+ rubygems_version: 2.7.9
100
99
  signing_key:
101
100
  specification_version: 4
102
101
  summary: shepherdjs_rails wraps the Shepherd JavaScript library so that it can easily
@@ -1 +0,0 @@
1
- {"version":3,"file":"shepherd.min.js","sources":["../../node_modules/es6-symbol/is-implemented.js","../../node_modules/es5-ext/global.js","../../node_modules/type/value/is.js","../../node_modules/es6-symbol/polyfill.js","../../node_modules/type/object/is.js","../../node_modules/type/prototype/is.js","../../node_modules/type/plain-function/is.js","../../node_modules/type/function/is.js","../../node_modules/es5-ext/object/is-value.js","../../node_modules/es5-ext/object/keys/shim.js","../../node_modules/es5-ext/object/keys/is-implemented.js","../../node_modules/es5-ext/object/keys/index.js","../../node_modules/es5-ext/object/valid-value.js","../../node_modules/es5-ext/object/assign/shim.js","../../node_modules/es5-ext/object/assign/is-implemented.js","../../node_modules/es5-ext/object/assign/index.js","../../node_modules/es5-ext/object/normalize-options.js","../../node_modules/es5-ext/string/#/contains/is-implemented.js","../../node_modules/es5-ext/string/#/contains/shim.js","../../node_modules/es5-ext/string/#/contains/index.js","../../node_modules/d/index.js","../../node_modules/es6-symbol/validate-symbol.js","../../node_modules/es6-symbol/is-symbol.js","../../src/js/utils/type-check.js","../../node_modules/es6-symbol/implement.js","../../src/js/evented.js","../../node_modules/preact/dist/preact.mjs","../../src/js/utils/auto-bind.js","../../src/js/utils/bind.js","../../node_modules/tippy.js/esm/tippy.chunk.js","../../node_modules/popper.js/dist/esm/popper.js","../../node_modules/tippy.js/esm/tippy.chunk2.js","../../node_modules/tippy.js/esm/tippy.bundle.js","../../src/js/utils/general.js","../../src/js/components/shepherd-content/shepherd-footer/shepherd-button/index.jsx","../../src/js/components/shepherd-content/shepherd-footer/index.jsx","../../src/js/components/shepherd-content/shepherd-header/index.jsx","../../src/js/components/shepherd-content/shepherd-text/index.jsx","../../src/js/components/shepherd-content/index.jsx","../../src/js/components/shepherd-element/index.jsx","../../node_modules/element-matches/index.js","../../node_modules/smoothscroll-polyfill/dist/smoothscroll.js","../../src/js/step.jsx","../../src/js/utils/modal.jsx","../../node_modules/body-scroll-lock/lib/bodyScrollLock.min.js","../../src/js/utils/tooltip-defaults.js","../../node_modules/@babel/runtime/helpers/esm/extends.js","../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../node_modules/@babel/runtime/helpers/esm/construct.js","../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js","../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js","../../node_modules/polished/dist/polished.es.js","../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../../src/js/styles/variables.js","../../node_modules/es6-object-assign/index.js","../../node_modules/nano-css/index.js","../../node_modules/inline-style-prefixer/utils/capitalizeString.js","../../node_modules/inline-style-prefixer/utils/prefixProperty.js","../../node_modules/inline-style-prefixer/utils/prefixValue.js","../../node_modules/inline-style-prefixer/utils/addNewValuesOnly.js","../../node_modules/inline-style-prefixer/utils/isObject.js","../../node_modules/inline-style-prefixer/static/createPrefixer.js","../../node_modules/inline-style-prefixer/static/staticData.js","../../node_modules/inline-style-prefixer/static/plugins/cursor.js","../../node_modules/css-in-js-utils/lib/isPrefixedValue.js","../../node_modules/inline-style-prefixer/static/plugins/crossFade.js","../../node_modules/inline-style-prefixer/static/plugins/filter.js","../../node_modules/inline-style-prefixer/static/plugins/flex.js","../../node_modules/inline-style-prefixer/static/plugins/flexboxOld.js","../../node_modules/inline-style-prefixer/static/plugins/gradient.js","../../node_modules/inline-style-prefixer/static/plugins/imageSet.js","../../node_modules/inline-style-prefixer/static/plugins/position.js","../../node_modules/inline-style-prefixer/static/plugins/sizing.js","../../node_modules/hyphenate-style-name/index.js","../../node_modules/css-in-js-utils/lib/hyphenateProperty.js","../../node_modules/inline-style-prefixer/static/plugins/transition.js","../../node_modules/inline-style-prefixer/static/index.js","../../node_modules/nano-css/addon/prefixer.js","../../src/js/styles/nano.js","../../node_modules/nano-css/addon/cache.js","../../node_modules/nano-css/addon/nesting.js","../../node_modules/nano-css/addon/rule.js","../../node_modules/nano-css/addon/sheet.js","../../src/js/styles/utils.js","../../src/js/styles/generateStyles.js","../../src/js/components/shepherd-content/shepherd-footer/shepherd-button/styles.js","../../src/js/components/shepherd-content/styles.js","../../src/js/components/shepherd-element/styles.js","../../src/js/components/shepherd-content/shepherd-footer/styles.js","../../src/js/components/shepherd-content/shepherd-header/styles.js","../../src/js/components/shepherd-modal/styles.js","../../src/js/components/shepherd-content/shepherd-text/styles.js","../../src/js/components/shepherd-modal/index.jsx","../../src/js/tour.jsx","../../src/js/utils/cleanup.js","../../src/js/shepherd.js"],"sourcesContent":["'use strict';\n\nvar validTypes = { object: true, symbol: true };\n\nmodule.exports = function () {\n\tvar symbol;\n\tif (typeof Symbol !== 'function') return false;\n\tsymbol = Symbol('test symbol');\n\ttry { String(symbol); } catch (e) { return false; }\n\n\t// Return 'true' also for polyfills\n\tif (!validTypes[typeof Symbol.iterator]) return false;\n\tif (!validTypes[typeof Symbol.toPrimitive]) return false;\n\tif (!validTypes[typeof Symbol.toStringTag]) return false;\n\n\treturn true;\n};\n","module.exports = (function () {\n\tif (this) return this;\n\n\t// Unexpected strict mode (may happen if e.g. bundled into ESM module) be nice\n\n\t// Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis\n\t// In all ES5 engines global object inherits from Object.prototype\n\t// (if you approached one that doesn't please report)\n\tObject.defineProperty(Object.prototype, \"__global__\", {\n\t\tget: function () { return this; },\n\t\tconfigurable: true\n\t});\n\ttry { return __global__; }\n\tfinally { delete Object.prototype.__global__; }\n})();\n","\"use strict\";\n\n// ES3 safe\nvar _undefined = void 0;\n\nmodule.exports = function (value) { return value !== _undefined && value !== null; };\n","// ES2015 Symbol polyfill for environments that do not (or partially) support it\n\n'use strict';\n\nvar d = require('d')\n , validateSymbol = require('./validate-symbol')\n\n , create = Object.create, defineProperties = Object.defineProperties\n , defineProperty = Object.defineProperty, objPrototype = Object.prototype\n , NativeSymbol, SymbolPolyfill, HiddenSymbol, globalSymbols = create(null)\n , isNativeSafe;\n\nif (typeof Symbol === 'function') {\n\tNativeSymbol = Symbol;\n\ttry {\n\t\tString(NativeSymbol());\n\t\tisNativeSafe = true;\n\t} catch (ignore) {}\n}\n\nvar generateName = (function () {\n\tvar created = create(null);\n\treturn function (desc) {\n\t\tvar postfix = 0, name, ie11BugWorkaround;\n\t\twhile (created[desc + (postfix || '')]) ++postfix;\n\t\tdesc += (postfix || '');\n\t\tcreated[desc] = true;\n\t\tname = '@@' + desc;\n\t\tdefineProperty(objPrototype, name, d.gs(null, function (value) {\n\t\t\t// For IE11 issue see:\n\t\t\t// https://connect.microsoft.com/IE/feedbackdetail/view/1928508/\n\t\t\t// ie11-broken-getters-on-dom-objects\n\t\t\t// https://github.com/medikoo/es6-symbol/issues/12\n\t\t\tif (ie11BugWorkaround) return;\n\t\t\tie11BugWorkaround = true;\n\t\t\tdefineProperty(this, name, d(value));\n\t\t\tie11BugWorkaround = false;\n\t\t}));\n\t\treturn name;\n\t};\n}());\n\n// Internal constructor (not one exposed) for creating Symbol instances.\n// This one is used to ensure that `someSymbol instanceof Symbol` always return false\nHiddenSymbol = function Symbol(description) {\n\tif (this instanceof HiddenSymbol) throw new TypeError('Symbol is not a constructor');\n\treturn SymbolPolyfill(description);\n};\n\n// Exposed `Symbol` constructor\n// (returns instances of HiddenSymbol)\nmodule.exports = SymbolPolyfill = function Symbol(description) {\n\tvar symbol;\n\tif (this instanceof Symbol) throw new TypeError('Symbol is not a constructor');\n\tif (isNativeSafe) return NativeSymbol(description);\n\tsymbol = create(HiddenSymbol.prototype);\n\tdescription = (description === undefined ? '' : String(description));\n\treturn defineProperties(symbol, {\n\t\t__description__: d('', description),\n\t\t__name__: d('', generateName(description))\n\t});\n};\ndefineProperties(SymbolPolyfill, {\n\tfor: d(function (key) {\n\t\tif (globalSymbols[key]) return globalSymbols[key];\n\t\treturn (globalSymbols[key] = SymbolPolyfill(String(key)));\n\t}),\n\tkeyFor: d(function (s) {\n\t\tvar key;\n\t\tvalidateSymbol(s);\n\t\tfor (key in globalSymbols) if (globalSymbols[key] === s) return key;\n\t}),\n\n\t// To ensure proper interoperability with other native functions (e.g. Array.from)\n\t// fallback to eventual native implementation of given symbol\n\thasInstance: d('', (NativeSymbol && NativeSymbol.hasInstance) || SymbolPolyfill('hasInstance')),\n\tisConcatSpreadable: d('', (NativeSymbol && NativeSymbol.isConcatSpreadable) ||\n\t\tSymbolPolyfill('isConcatSpreadable')),\n\titerator: d('', (NativeSymbol && NativeSymbol.iterator) || SymbolPolyfill('iterator')),\n\tmatch: d('', (NativeSymbol && NativeSymbol.match) || SymbolPolyfill('match')),\n\treplace: d('', (NativeSymbol && NativeSymbol.replace) || SymbolPolyfill('replace')),\n\tsearch: d('', (NativeSymbol && NativeSymbol.search) || SymbolPolyfill('search')),\n\tspecies: d('', (NativeSymbol && NativeSymbol.species) || SymbolPolyfill('species')),\n\tsplit: d('', (NativeSymbol && NativeSymbol.split) || SymbolPolyfill('split')),\n\ttoPrimitive: d('', (NativeSymbol && NativeSymbol.toPrimitive) || SymbolPolyfill('toPrimitive')),\n\ttoStringTag: d('', (NativeSymbol && NativeSymbol.toStringTag) || SymbolPolyfill('toStringTag')),\n\tunscopables: d('', (NativeSymbol && NativeSymbol.unscopables) || SymbolPolyfill('unscopables'))\n});\n\n// Internal tweaks for real symbol producer\ndefineProperties(HiddenSymbol.prototype, {\n\tconstructor: d(SymbolPolyfill),\n\ttoString: d('', function () { return this.__name__; })\n});\n\n// Proper implementation of methods exposed on Symbol.prototype\n// They won't be accessible on produced symbol instances as they derive from HiddenSymbol.prototype\ndefineProperties(SymbolPolyfill.prototype, {\n\ttoString: d(function () { return 'Symbol (' + validateSymbol(this).__description__ + ')'; }),\n\tvalueOf: d(function () { return validateSymbol(this); })\n});\ndefineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toPrimitive, d('', function () {\n\tvar symbol = validateSymbol(this);\n\tif (typeof symbol === 'symbol') return symbol;\n\treturn symbol.toString();\n}));\ndefineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toStringTag, d('c', 'Symbol'));\n\n// Proper implementaton of toPrimitive and toStringTag for returned symbol instances\ndefineProperty(HiddenSymbol.prototype, SymbolPolyfill.toStringTag,\n\td('c', SymbolPolyfill.prototype[SymbolPolyfill.toStringTag]));\n\n// Note: It's important to define `toPrimitive` as last one, as some implementations\n// implement `toPrimitive` natively without implementing `toStringTag` (or other specified symbols)\n// And that may invoke error in definition flow:\n// See: https://github.com/medikoo/es6-symbol/issues/13#issuecomment-164146149\ndefineProperty(HiddenSymbol.prototype, SymbolPolyfill.toPrimitive,\n\td('c', SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive]));\n","\"use strict\";\n\nvar isValue = require(\"../value/is\");\n\n// prettier-ignore\nvar possibleTypes = { \"object\": true, \"function\": true, \"undefined\": true /* document.all */ };\n\nmodule.exports = function (value) {\n\tif (!isValue(value)) return false;\n\treturn hasOwnProperty.call(possibleTypes, typeof value);\n};\n","\"use strict\";\n\nvar isObject = require(\"../object/is\");\n\nmodule.exports = function (value) {\n\tif (!isObject(value)) return false;\n\ttry {\n\t\tif (!value.constructor) return false;\n\t\treturn value.constructor.prototype === value;\n\t} catch (error) {\n\t\treturn false;\n\t}\n};\n","\"use strict\";\n\nvar isFunction = require(\"../function/is\");\n\nvar classRe = /^\\s*class[\\s{/}]/, functionToString = Function.prototype.toString;\n\nmodule.exports = function (value) {\n\tif (!isFunction(value)) return false;\n\tif (classRe.test(functionToString.call(value))) return false;\n\treturn true;\n};\n","\"use strict\";\n\nvar isPrototype = require(\"../prototype/is\");\n\nmodule.exports = function (value) {\n\tif (typeof value !== \"function\") return false;\n\n\tif (!hasOwnProperty.call(value, \"length\")) return false;\n\n\ttry {\n\t\tif (typeof value.length !== \"number\") return false;\n\t\tif (typeof value.call !== \"function\") return false;\n\t\tif (typeof value.apply !== \"function\") return false;\n\t} catch (error) {\n\t\treturn false;\n\t}\n\n\treturn !isPrototype(value);\n};\n","\"use strict\";\n\nvar _undefined = require(\"../function/noop\")(); // Support ES3 engines\n\nmodule.exports = function (val) {\n return (val !== _undefined) && (val !== null);\n};\n","\"use strict\";\n\nvar isValue = require(\"../is-value\");\n\nvar keys = Object.keys;\n\nmodule.exports = function (object) { return keys(isValue(object) ? Object(object) : object); };\n","\"use strict\";\n\nmodule.exports = function () {\n\ttry {\n\t\tObject.keys(\"primitive\");\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n","\"use strict\";\n\nmodule.exports = require(\"./is-implemented\")() ? Object.keys : require(\"./shim\");\n","\"use strict\";\n\nvar isValue = require(\"./is-value\");\n\nmodule.exports = function (value) {\n\tif (!isValue(value)) throw new TypeError(\"Cannot use null or undefined\");\n\treturn value;\n};\n","\"use strict\";\n\nvar keys = require(\"../keys\")\n , value = require(\"../valid-value\")\n , max = Math.max;\n\nmodule.exports = function (dest, src /*, …srcn*/) {\n\tvar error, i, length = max(arguments.length, 2), assign;\n\tdest = Object(value(dest));\n\tassign = function (key) {\n\t\ttry {\n\t\t\tdest[key] = src[key];\n\t\t} catch (e) {\n\t\t\tif (!error) error = e;\n\t\t}\n\t};\n\tfor (i = 1; i < length; ++i) {\n\t\tsrc = arguments[i];\n\t\tkeys(src).forEach(assign);\n\t}\n\tif (error !== undefined) throw error;\n\treturn dest;\n};\n","\"use strict\";\n\nmodule.exports = function () {\n\tvar assign = Object.assign, obj;\n\tif (typeof assign !== \"function\") return false;\n\tobj = { foo: \"raz\" };\n\tassign(obj, { bar: \"dwa\" }, { trzy: \"trzy\" });\n\treturn (obj.foo + obj.bar + obj.trzy) === \"razdwatrzy\";\n};\n","\"use strict\";\n\nmodule.exports = require(\"./is-implemented\")()\n\t? Object.assign\n\t: require(\"./shim\");\n","\"use strict\";\n\nvar isValue = require(\"./is-value\");\n\nvar forEach = Array.prototype.forEach, create = Object.create;\n\nvar process = function (src, obj) {\n\tvar key;\n\tfor (key in src) obj[key] = src[key];\n};\n\n// eslint-disable-next-line no-unused-vars\nmodule.exports = function (opts1 /*, …options*/) {\n\tvar result = create(null);\n\tforEach.call(arguments, function (options) {\n\t\tif (!isValue(options)) return;\n\t\tprocess(Object(options), result);\n\t});\n\treturn result;\n};\n","\"use strict\";\n\nvar str = \"razdwatrzy\";\n\nmodule.exports = function () {\n\tif (typeof str.contains !== \"function\") return false;\n\treturn (str.contains(\"dwa\") === true) && (str.contains(\"foo\") === false);\n};\n","\"use strict\";\n\nvar indexOf = String.prototype.indexOf;\n\nmodule.exports = function (searchString/*, position*/) {\n\treturn indexOf.call(this, searchString, arguments[1]) > -1;\n};\n","\"use strict\";\n\nmodule.exports = require(\"./is-implemented\")()\n\t? String.prototype.contains\n\t: require(\"./shim\");\n","\"use strict\";\n\nvar isValue = require(\"type/value/is\")\n , isPlainFunction = require(\"type/plain-function/is\")\n , assign = require(\"es5-ext/object/assign\")\n , normalizeOpts = require(\"es5-ext/object/normalize-options\")\n , contains = require(\"es5-ext/string/#/contains\");\n\nvar d = (module.exports = function (dscr, value/*, options*/) {\n\tvar c, e, w, options, desc;\n\tif (arguments.length < 2 || typeof dscr !== \"string\") {\n\t\toptions = value;\n\t\tvalue = dscr;\n\t\tdscr = null;\n\t} else {\n\t\toptions = arguments[2];\n\t}\n\tif (isValue(dscr)) {\n\t\tc = contains.call(dscr, \"c\");\n\t\te = contains.call(dscr, \"e\");\n\t\tw = contains.call(dscr, \"w\");\n\t} else {\n\t\tc = w = true;\n\t\te = false;\n\t}\n\n\tdesc = { value: value, configurable: c, enumerable: e, writable: w };\n\treturn !options ? desc : assign(normalizeOpts(options), desc);\n});\n\nd.gs = function (dscr, get, set/*, options*/) {\n\tvar c, e, options, desc;\n\tif (typeof dscr !== \"string\") {\n\t\toptions = set;\n\t\tset = get;\n\t\tget = dscr;\n\t\tdscr = null;\n\t} else {\n\t\toptions = arguments[3];\n\t}\n\tif (!isValue(get)) {\n\t\tget = undefined;\n\t} else if (!isPlainFunction(get)) {\n\t\toptions = get;\n\t\tget = set = undefined;\n\t} else if (!isValue(set)) {\n\t\tset = undefined;\n\t} else if (!isPlainFunction(set)) {\n\t\toptions = set;\n\t\tset = undefined;\n\t}\n\tif (isValue(dscr)) {\n\t\tc = contains.call(dscr, \"c\");\n\t\te = contains.call(dscr, \"e\");\n\t} else {\n\t\tc = true;\n\t\te = false;\n\t}\n\n\tdesc = { get: get, set: set, configurable: c, enumerable: e };\n\treturn !options ? desc : assign(normalizeOpts(options), desc);\n};\n","'use strict';\n\nvar isSymbol = require('./is-symbol');\n\nmodule.exports = function (value) {\n\tif (!isSymbol(value)) throw new TypeError(value + \" is not a symbol\");\n\treturn value;\n};\n","'use strict';\n\nmodule.exports = function (x) {\n\tif (!x) return false;\n\tif (typeof x === 'symbol') return true;\n\tif (!x.constructor) return false;\n\tif (x.constructor.name !== 'Symbol') return false;\n\treturn (x[x.constructor.toStringTag] === 'Symbol');\n};\n","/**\n * Checks if `value` is classified as an `HTMLElement`.\n * @param {*} value The param to check if it is an HTMLElement\n */\nexport function isElement(value) {\n return value instanceof HTMLElement;\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n * @param {*} value The param to check if it is a function\n */\nexport function isFunction(value) {\n return typeof value === 'function';\n}\n\n/**\n * Checks if `value` is classified as a `Number` object.\n * @param {*} value The param to check if it is a number\n */\nexport function isNumber(value) {\n return typeof value === 'number';\n}\n\n/**\n * Checks if `value` is classified as a `String` object.\n * @param {*} value The param to check if it is a string\n */\nexport function isString(value) {\n return typeof value === 'string';\n}\n\n/**\n * Checks if `value` is undefined.\n * @param {*} value The param to check if it is undefined\n */\nexport function isUndefined(value) {\n return value === undefined;\n}\n","'use strict';\n\nif (!require('./is-implemented')()) {\n\tObject.defineProperty(require('es5-ext/global'), 'Symbol',\n\t\t{ value: require('./polyfill'), configurable: true, enumerable: false,\n\t\t\twritable: true });\n}\n","import { isUndefined } from './utils/type-check';\n\nexport class Evented {\n on(event, handler, ctx) {\n const once = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3];\n\n if (isUndefined(this.bindings)) {\n this.bindings = {};\n }\n if (isUndefined(this.bindings[event])) {\n this.bindings[event] = [];\n }\n this.bindings[event].push({ handler, ctx, once });\n }\n\n once(event, handler, ctx) {\n this.on(event, handler, ctx, true);\n }\n\n off(event, handler) {\n if (isUndefined(this.bindings) || isUndefined(this.bindings[event])) {\n return false;\n }\n\n if (isUndefined(handler)) {\n delete this.bindings[event];\n } else {\n this.bindings[event].forEach((binding, index) => {\n if (binding.handler === handler) {\n this.bindings[event].splice(index, 1);\n }\n });\n }\n }\n\n trigger(event) {\n if (!isUndefined(this.bindings) && this.bindings[event]) {\n const args = Array.prototype.slice.call(arguments, 1);\n\n this.bindings[event].forEach((binding, index) => {\n const { ctx, handler, once } = binding;\n\n const context = ctx || this;\n\n handler.apply(context, args);\n\n if (once) {\n this.bindings[event].splice(index, 1);\n }\n });\n }\n }\n\n}\n","var VNode = function VNode() {};\n\nvar options = {};\n\nvar stack = [];\n\nvar EMPTY_CHILDREN = [];\n\nfunction h(nodeName, attributes) {\n\tvar children = EMPTY_CHILDREN,\n\t lastSimple,\n\t child,\n\t simple,\n\t i;\n\tfor (i = arguments.length; i-- > 2;) {\n\t\tstack.push(arguments[i]);\n\t}\n\tif (attributes && attributes.children != null) {\n\t\tif (!stack.length) stack.push(attributes.children);\n\t\tdelete attributes.children;\n\t}\n\twhile (stack.length) {\n\t\tif ((child = stack.pop()) && child.pop !== undefined) {\n\t\t\tfor (i = child.length; i--;) {\n\t\t\t\tstack.push(child[i]);\n\t\t\t}\n\t\t} else {\n\t\t\tif (typeof child === 'boolean') child = null;\n\n\t\t\tif (simple = typeof nodeName !== 'function') {\n\t\t\t\tif (child == null) child = '';else if (typeof child === 'number') child = String(child);else if (typeof child !== 'string') simple = false;\n\t\t\t}\n\n\t\t\tif (simple && lastSimple) {\n\t\t\t\tchildren[children.length - 1] += child;\n\t\t\t} else if (children === EMPTY_CHILDREN) {\n\t\t\t\tchildren = [child];\n\t\t\t} else {\n\t\t\t\tchildren.push(child);\n\t\t\t}\n\n\t\t\tlastSimple = simple;\n\t\t}\n\t}\n\n\tvar p = new VNode();\n\tp.nodeName = nodeName;\n\tp.children = children;\n\tp.attributes = attributes == null ? undefined : attributes;\n\tp.key = attributes == null ? undefined : attributes.key;\n\n\tif (options.vnode !== undefined) options.vnode(p);\n\n\treturn p;\n}\n\nfunction extend(obj, props) {\n for (var i in props) {\n obj[i] = props[i];\n }return obj;\n}\n\nfunction applyRef(ref, value) {\n if (ref != null) {\n if (typeof ref == 'function') ref(value);else ref.current = value;\n }\n}\n\nvar defer = typeof Promise == 'function' ? Promise.resolve().then.bind(Promise.resolve()) : setTimeout;\n\nfunction cloneElement(vnode, props) {\n return h(vnode.nodeName, extend(extend({}, vnode.attributes), props), arguments.length > 2 ? [].slice.call(arguments, 2) : vnode.children);\n}\n\nvar IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;\n\nvar items = [];\n\nfunction enqueueRender(component) {\n\tif (!component._dirty && (component._dirty = true) && items.push(component) == 1) {\n\t\t(options.debounceRendering || defer)(rerender);\n\t}\n}\n\nfunction rerender() {\n\tvar p;\n\twhile (p = items.pop()) {\n\t\tif (p._dirty) renderComponent(p);\n\t}\n}\n\nfunction isSameNodeType(node, vnode, hydrating) {\n\tif (typeof vnode === 'string' || typeof vnode === 'number') {\n\t\treturn node.splitText !== undefined;\n\t}\n\tif (typeof vnode.nodeName === 'string') {\n\t\treturn !node._componentConstructor && isNamedNode(node, vnode.nodeName);\n\t}\n\treturn hydrating || node._componentConstructor === vnode.nodeName;\n}\n\nfunction isNamedNode(node, nodeName) {\n\treturn node.normalizedNodeName === nodeName || node.nodeName.toLowerCase() === nodeName.toLowerCase();\n}\n\nfunction getNodeProps(vnode) {\n\tvar props = extend({}, vnode.attributes);\n\tprops.children = vnode.children;\n\n\tvar defaultProps = vnode.nodeName.defaultProps;\n\tif (defaultProps !== undefined) {\n\t\tfor (var i in defaultProps) {\n\t\t\tif (props[i] === undefined) {\n\t\t\t\tprops[i] = defaultProps[i];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn props;\n}\n\nfunction createNode(nodeName, isSvg) {\n\tvar node = isSvg ? document.createElementNS('http://www.w3.org/2000/svg', nodeName) : document.createElement(nodeName);\n\tnode.normalizedNodeName = nodeName;\n\treturn node;\n}\n\nfunction removeNode(node) {\n\tvar parentNode = node.parentNode;\n\tif (parentNode) parentNode.removeChild(node);\n}\n\nfunction setAccessor(node, name, old, value, isSvg) {\n\tif (name === 'className') name = 'class';\n\n\tif (name === 'key') {} else if (name === 'ref') {\n\t\tapplyRef(old, null);\n\t\tapplyRef(value, node);\n\t} else if (name === 'class' && !isSvg) {\n\t\tnode.className = value || '';\n\t} else if (name === 'style') {\n\t\tif (!value || typeof value === 'string' || typeof old === 'string') {\n\t\t\tnode.style.cssText = value || '';\n\t\t}\n\t\tif (value && typeof value === 'object') {\n\t\t\tif (typeof old !== 'string') {\n\t\t\t\tfor (var i in old) {\n\t\t\t\t\tif (!(i in value)) node.style[i] = '';\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (var i in value) {\n\t\t\t\tnode.style[i] = typeof value[i] === 'number' && IS_NON_DIMENSIONAL.test(i) === false ? value[i] + 'px' : value[i];\n\t\t\t}\n\t\t}\n\t} else if (name === 'dangerouslySetInnerHTML') {\n\t\tif (value) node.innerHTML = value.__html || '';\n\t} else if (name[0] == 'o' && name[1] == 'n') {\n\t\tvar useCapture = name !== (name = name.replace(/Capture$/, ''));\n\t\tname = name.toLowerCase().substring(2);\n\t\tif (value) {\n\t\t\tif (!old) node.addEventListener(name, eventProxy, useCapture);\n\t\t} else {\n\t\t\tnode.removeEventListener(name, eventProxy, useCapture);\n\t\t}\n\t\t(node._listeners || (node._listeners = {}))[name] = value;\n\t} else if (name !== 'list' && name !== 'type' && !isSvg && name in node) {\n\t\ttry {\n\t\t\tnode[name] = value == null ? '' : value;\n\t\t} catch (e) {}\n\t\tif ((value == null || value === false) && name != 'spellcheck') node.removeAttribute(name);\n\t} else {\n\t\tvar ns = isSvg && name !== (name = name.replace(/^xlink:?/, ''));\n\n\t\tif (value == null || value === false) {\n\t\t\tif (ns) node.removeAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase());else node.removeAttribute(name);\n\t\t} else if (typeof value !== 'function') {\n\t\t\tif (ns) node.setAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase(), value);else node.setAttribute(name, value);\n\t\t}\n\t}\n}\n\nfunction eventProxy(e) {\n\treturn this._listeners[e.type](options.event && options.event(e) || e);\n}\n\nvar mounts = [];\n\nvar diffLevel = 0;\n\nvar isSvgMode = false;\n\nvar hydrating = false;\n\nfunction flushMounts() {\n\tvar c;\n\twhile (c = mounts.shift()) {\n\t\tif (options.afterMount) options.afterMount(c);\n\t\tif (c.componentDidMount) c.componentDidMount();\n\t}\n}\n\nfunction diff(dom, vnode, context, mountAll, parent, componentRoot) {\n\tif (!diffLevel++) {\n\t\tisSvgMode = parent != null && parent.ownerSVGElement !== undefined;\n\n\t\thydrating = dom != null && !('__preactattr_' in dom);\n\t}\n\n\tvar ret = idiff(dom, vnode, context, mountAll, componentRoot);\n\n\tif (parent && ret.parentNode !== parent) parent.appendChild(ret);\n\n\tif (! --diffLevel) {\n\t\thydrating = false;\n\n\t\tif (!componentRoot) flushMounts();\n\t}\n\n\treturn ret;\n}\n\nfunction idiff(dom, vnode, context, mountAll, componentRoot) {\n\tvar out = dom,\n\t prevSvgMode = isSvgMode;\n\n\tif (vnode == null || typeof vnode === 'boolean') vnode = '';\n\n\tif (typeof vnode === 'string' || typeof vnode === 'number') {\n\t\tif (dom && dom.splitText !== undefined && dom.parentNode && (!dom._component || componentRoot)) {\n\t\t\tif (dom.nodeValue != vnode) {\n\t\t\t\tdom.nodeValue = vnode;\n\t\t\t}\n\t\t} else {\n\t\t\tout = document.createTextNode(vnode);\n\t\t\tif (dom) {\n\t\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\t\t\t\trecollectNodeTree(dom, true);\n\t\t\t}\n\t\t}\n\n\t\tout['__preactattr_'] = true;\n\n\t\treturn out;\n\t}\n\n\tvar vnodeName = vnode.nodeName;\n\tif (typeof vnodeName === 'function') {\n\t\treturn buildComponentFromVNode(dom, vnode, context, mountAll);\n\t}\n\n\tisSvgMode = vnodeName === 'svg' ? true : vnodeName === 'foreignObject' ? false : isSvgMode;\n\n\tvnodeName = String(vnodeName);\n\tif (!dom || !isNamedNode(dom, vnodeName)) {\n\t\tout = createNode(vnodeName, isSvgMode);\n\n\t\tif (dom) {\n\t\t\twhile (dom.firstChild) {\n\t\t\t\tout.appendChild(dom.firstChild);\n\t\t\t}\n\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\n\t\t\trecollectNodeTree(dom, true);\n\t\t}\n\t}\n\n\tvar fc = out.firstChild,\n\t props = out['__preactattr_'],\n\t vchildren = vnode.children;\n\n\tif (props == null) {\n\t\tprops = out['__preactattr_'] = {};\n\t\tfor (var a = out.attributes, i = a.length; i--;) {\n\t\t\tprops[a[i].name] = a[i].value;\n\t\t}\n\t}\n\n\tif (!hydrating && vchildren && vchildren.length === 1 && typeof vchildren[0] === 'string' && fc != null && fc.splitText !== undefined && fc.nextSibling == null) {\n\t\tif (fc.nodeValue != vchildren[0]) {\n\t\t\tfc.nodeValue = vchildren[0];\n\t\t}\n\t} else if (vchildren && vchildren.length || fc != null) {\n\t\t\tinnerDiffNode(out, vchildren, context, mountAll, hydrating || props.dangerouslySetInnerHTML != null);\n\t\t}\n\n\tdiffAttributes(out, vnode.attributes, props);\n\n\tisSvgMode = prevSvgMode;\n\n\treturn out;\n}\n\nfunction innerDiffNode(dom, vchildren, context, mountAll, isHydrating) {\n\tvar originalChildren = dom.childNodes,\n\t children = [],\n\t keyed = {},\n\t keyedLen = 0,\n\t min = 0,\n\t len = originalChildren.length,\n\t childrenLen = 0,\n\t vlen = vchildren ? vchildren.length : 0,\n\t j,\n\t c,\n\t f,\n\t vchild,\n\t child;\n\n\tif (len !== 0) {\n\t\tfor (var i = 0; i < len; i++) {\n\t\t\tvar _child = originalChildren[i],\n\t\t\t props = _child['__preactattr_'],\n\t\t\t key = vlen && props ? _child._component ? _child._component.__key : props.key : null;\n\t\t\tif (key != null) {\n\t\t\t\tkeyedLen++;\n\t\t\t\tkeyed[key] = _child;\n\t\t\t} else if (props || (_child.splitText !== undefined ? isHydrating ? _child.nodeValue.trim() : true : isHydrating)) {\n\t\t\t\tchildren[childrenLen++] = _child;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (vlen !== 0) {\n\t\tfor (var i = 0; i < vlen; i++) {\n\t\t\tvchild = vchildren[i];\n\t\t\tchild = null;\n\n\t\t\tvar key = vchild.key;\n\t\t\tif (key != null) {\n\t\t\t\tif (keyedLen && keyed[key] !== undefined) {\n\t\t\t\t\tchild = keyed[key];\n\t\t\t\t\tkeyed[key] = undefined;\n\t\t\t\t\tkeyedLen--;\n\t\t\t\t}\n\t\t\t} else if (min < childrenLen) {\n\t\t\t\t\tfor (j = min; j < childrenLen; j++) {\n\t\t\t\t\t\tif (children[j] !== undefined && isSameNodeType(c = children[j], vchild, isHydrating)) {\n\t\t\t\t\t\t\tchild = c;\n\t\t\t\t\t\t\tchildren[j] = undefined;\n\t\t\t\t\t\t\tif (j === childrenLen - 1) childrenLen--;\n\t\t\t\t\t\t\tif (j === min) min++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\tchild = idiff(child, vchild, context, mountAll);\n\n\t\t\tf = originalChildren[i];\n\t\t\tif (child && child !== dom && child !== f) {\n\t\t\t\tif (f == null) {\n\t\t\t\t\tdom.appendChild(child);\n\t\t\t\t} else if (child === f.nextSibling) {\n\t\t\t\t\tremoveNode(f);\n\t\t\t\t} else {\n\t\t\t\t\tdom.insertBefore(child, f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif (keyedLen) {\n\t\tfor (var i in keyed) {\n\t\t\tif (keyed[i] !== undefined) recollectNodeTree(keyed[i], false);\n\t\t}\n\t}\n\n\twhile (min <= childrenLen) {\n\t\tif ((child = children[childrenLen--]) !== undefined) recollectNodeTree(child, false);\n\t}\n}\n\nfunction recollectNodeTree(node, unmountOnly) {\n\tvar component = node._component;\n\tif (component) {\n\t\tunmountComponent(component);\n\t} else {\n\t\tif (node['__preactattr_'] != null) applyRef(node['__preactattr_'].ref, null);\n\n\t\tif (unmountOnly === false || node['__preactattr_'] == null) {\n\t\t\tremoveNode(node);\n\t\t}\n\n\t\tremoveChildren(node);\n\t}\n}\n\nfunction removeChildren(node) {\n\tnode = node.lastChild;\n\twhile (node) {\n\t\tvar next = node.previousSibling;\n\t\trecollectNodeTree(node, true);\n\t\tnode = next;\n\t}\n}\n\nfunction diffAttributes(dom, attrs, old) {\n\tvar name;\n\n\tfor (name in old) {\n\t\tif (!(attrs && attrs[name] != null) && old[name] != null) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = undefined, isSvgMode);\n\t\t}\n\t}\n\n\tfor (name in attrs) {\n\t\tif (name !== 'children' && name !== 'innerHTML' && (!(name in old) || attrs[name] !== (name === 'value' || name === 'checked' ? dom[name] : old[name]))) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = attrs[name], isSvgMode);\n\t\t}\n\t}\n}\n\nvar recyclerComponents = [];\n\nfunction createComponent(Ctor, props, context) {\n\tvar inst,\n\t i = recyclerComponents.length;\n\n\tif (Ctor.prototype && Ctor.prototype.render) {\n\t\tinst = new Ctor(props, context);\n\t\tComponent.call(inst, props, context);\n\t} else {\n\t\tinst = new Component(props, context);\n\t\tinst.constructor = Ctor;\n\t\tinst.render = doRender;\n\t}\n\n\twhile (i--) {\n\t\tif (recyclerComponents[i].constructor === Ctor) {\n\t\t\tinst.nextBase = recyclerComponents[i].nextBase;\n\t\t\trecyclerComponents.splice(i, 1);\n\t\t\treturn inst;\n\t\t}\n\t}\n\n\treturn inst;\n}\n\nfunction doRender(props, state, context) {\n\treturn this.constructor(props, context);\n}\n\nfunction setComponentProps(component, props, renderMode, context, mountAll) {\n\tif (component._disable) return;\n\tcomponent._disable = true;\n\n\tcomponent.__ref = props.ref;\n\tcomponent.__key = props.key;\n\tdelete props.ref;\n\tdelete props.key;\n\n\tif (typeof component.constructor.getDerivedStateFromProps === 'undefined') {\n\t\tif (!component.base || mountAll) {\n\t\t\tif (component.componentWillMount) component.componentWillMount();\n\t\t} else if (component.componentWillReceiveProps) {\n\t\t\tcomponent.componentWillReceiveProps(props, context);\n\t\t}\n\t}\n\n\tif (context && context !== component.context) {\n\t\tif (!component.prevContext) component.prevContext = component.context;\n\t\tcomponent.context = context;\n\t}\n\n\tif (!component.prevProps) component.prevProps = component.props;\n\tcomponent.props = props;\n\n\tcomponent._disable = false;\n\n\tif (renderMode !== 0) {\n\t\tif (renderMode === 1 || options.syncComponentUpdates !== false || !component.base) {\n\t\t\trenderComponent(component, 1, mountAll);\n\t\t} else {\n\t\t\tenqueueRender(component);\n\t\t}\n\t}\n\n\tapplyRef(component.__ref, component);\n}\n\nfunction renderComponent(component, renderMode, mountAll, isChild) {\n\tif (component._disable) return;\n\n\tvar props = component.props,\n\t state = component.state,\n\t context = component.context,\n\t previousProps = component.prevProps || props,\n\t previousState = component.prevState || state,\n\t previousContext = component.prevContext || context,\n\t isUpdate = component.base,\n\t nextBase = component.nextBase,\n\t initialBase = isUpdate || nextBase,\n\t initialChildComponent = component._component,\n\t skip = false,\n\t snapshot = previousContext,\n\t rendered,\n\t inst,\n\t cbase;\n\n\tif (component.constructor.getDerivedStateFromProps) {\n\t\tstate = extend(extend({}, state), component.constructor.getDerivedStateFromProps(props, state));\n\t\tcomponent.state = state;\n\t}\n\n\tif (isUpdate) {\n\t\tcomponent.props = previousProps;\n\t\tcomponent.state = previousState;\n\t\tcomponent.context = previousContext;\n\t\tif (renderMode !== 2 && component.shouldComponentUpdate && component.shouldComponentUpdate(props, state, context) === false) {\n\t\t\tskip = true;\n\t\t} else if (component.componentWillUpdate) {\n\t\t\tcomponent.componentWillUpdate(props, state, context);\n\t\t}\n\t\tcomponent.props = props;\n\t\tcomponent.state = state;\n\t\tcomponent.context = context;\n\t}\n\n\tcomponent.prevProps = component.prevState = component.prevContext = component.nextBase = null;\n\tcomponent._dirty = false;\n\n\tif (!skip) {\n\t\trendered = component.render(props, state, context);\n\n\t\tif (component.getChildContext) {\n\t\t\tcontext = extend(extend({}, context), component.getChildContext());\n\t\t}\n\n\t\tif (isUpdate && component.getSnapshotBeforeUpdate) {\n\t\t\tsnapshot = component.getSnapshotBeforeUpdate(previousProps, previousState);\n\t\t}\n\n\t\tvar childComponent = rendered && rendered.nodeName,\n\t\t toUnmount,\n\t\t base;\n\n\t\tif (typeof childComponent === 'function') {\n\n\t\t\tvar childProps = getNodeProps(rendered);\n\t\t\tinst = initialChildComponent;\n\n\t\t\tif (inst && inst.constructor === childComponent && childProps.key == inst.__key) {\n\t\t\t\tsetComponentProps(inst, childProps, 1, context, false);\n\t\t\t} else {\n\t\t\t\ttoUnmount = inst;\n\n\t\t\t\tcomponent._component = inst = createComponent(childComponent, childProps, context);\n\t\t\t\tinst.nextBase = inst.nextBase || nextBase;\n\t\t\t\tinst._parentComponent = component;\n\t\t\t\tsetComponentProps(inst, childProps, 0, context, false);\n\t\t\t\trenderComponent(inst, 1, mountAll, true);\n\t\t\t}\n\n\t\t\tbase = inst.base;\n\t\t} else {\n\t\t\tcbase = initialBase;\n\n\t\t\ttoUnmount = initialChildComponent;\n\t\t\tif (toUnmount) {\n\t\t\t\tcbase = component._component = null;\n\t\t\t}\n\n\t\t\tif (initialBase || renderMode === 1) {\n\t\t\t\tif (cbase) cbase._component = null;\n\t\t\t\tbase = diff(cbase, rendered, context, mountAll || !isUpdate, initialBase && initialBase.parentNode, true);\n\t\t\t}\n\t\t}\n\n\t\tif (initialBase && base !== initialBase && inst !== initialChildComponent) {\n\t\t\tvar baseParent = initialBase.parentNode;\n\t\t\tif (baseParent && base !== baseParent) {\n\t\t\t\tbaseParent.replaceChild(base, initialBase);\n\n\t\t\t\tif (!toUnmount) {\n\t\t\t\t\tinitialBase._component = null;\n\t\t\t\t\trecollectNodeTree(initialBase, false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (toUnmount) {\n\t\t\tunmountComponent(toUnmount);\n\t\t}\n\n\t\tcomponent.base = base;\n\t\tif (base && !isChild) {\n\t\t\tvar componentRef = component,\n\t\t\t t = component;\n\t\t\twhile (t = t._parentComponent) {\n\t\t\t\t(componentRef = t).base = base;\n\t\t\t}\n\t\t\tbase._component = componentRef;\n\t\t\tbase._componentConstructor = componentRef.constructor;\n\t\t}\n\t}\n\n\tif (!isUpdate || mountAll) {\n\t\tmounts.push(component);\n\t} else if (!skip) {\n\n\t\tif (component.componentDidUpdate) {\n\t\t\tcomponent.componentDidUpdate(previousProps, previousState, snapshot);\n\t\t}\n\t\tif (options.afterUpdate) options.afterUpdate(component);\n\t}\n\n\twhile (component._renderCallbacks.length) {\n\t\tcomponent._renderCallbacks.pop().call(component);\n\t}if (!diffLevel && !isChild) flushMounts();\n}\n\nfunction buildComponentFromVNode(dom, vnode, context, mountAll) {\n\tvar c = dom && dom._component,\n\t originalComponent = c,\n\t oldDom = dom,\n\t isDirectOwner = c && dom._componentConstructor === vnode.nodeName,\n\t isOwner = isDirectOwner,\n\t props = getNodeProps(vnode);\n\twhile (c && !isOwner && (c = c._parentComponent)) {\n\t\tisOwner = c.constructor === vnode.nodeName;\n\t}\n\n\tif (c && isOwner && (!mountAll || c._component)) {\n\t\tsetComponentProps(c, props, 3, context, mountAll);\n\t\tdom = c.base;\n\t} else {\n\t\tif (originalComponent && !isDirectOwner) {\n\t\t\tunmountComponent(originalComponent);\n\t\t\tdom = oldDom = null;\n\t\t}\n\n\t\tc = createComponent(vnode.nodeName, props, context);\n\t\tif (dom && !c.nextBase) {\n\t\t\tc.nextBase = dom;\n\n\t\t\toldDom = null;\n\t\t}\n\t\tsetComponentProps(c, props, 1, context, mountAll);\n\t\tdom = c.base;\n\n\t\tif (oldDom && dom !== oldDom) {\n\t\t\toldDom._component = null;\n\t\t\trecollectNodeTree(oldDom, false);\n\t\t}\n\t}\n\n\treturn dom;\n}\n\nfunction unmountComponent(component) {\n\tif (options.beforeUnmount) options.beforeUnmount(component);\n\n\tvar base = component.base;\n\n\tcomponent._disable = true;\n\n\tif (component.componentWillUnmount) component.componentWillUnmount();\n\n\tcomponent.base = null;\n\n\tvar inner = component._component;\n\tif (inner) {\n\t\tunmountComponent(inner);\n\t} else if (base) {\n\t\tif (base['__preactattr_'] != null) applyRef(base['__preactattr_'].ref, null);\n\n\t\tcomponent.nextBase = base;\n\n\t\tremoveNode(base);\n\t\trecyclerComponents.push(component);\n\n\t\tremoveChildren(base);\n\t}\n\n\tapplyRef(component.__ref, null);\n}\n\nfunction Component(props, context) {\n\tthis._dirty = true;\n\n\tthis.context = context;\n\n\tthis.props = props;\n\n\tthis.state = this.state || {};\n\n\tthis._renderCallbacks = [];\n}\n\nextend(Component.prototype, {\n\tsetState: function setState(state, callback) {\n\t\tif (!this.prevState) this.prevState = this.state;\n\t\tthis.state = extend(extend({}, this.state), typeof state === 'function' ? state(this.state, this.props) : state);\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\tenqueueRender(this);\n\t},\n\tforceUpdate: function forceUpdate(callback) {\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\trenderComponent(this, 2);\n\t},\n\trender: function render() {}\n});\n\nfunction render(vnode, parent, merge) {\n return diff(merge, vnode, {}, false, parent, false);\n}\n\nfunction createRef() {\n\treturn {};\n}\n\nvar preact = {\n\th: h,\n\tcreateElement: h,\n\tcloneElement: cloneElement,\n\tcreateRef: createRef,\n\tComponent: Component,\n\trender: render,\n\trerender: rerender,\n\toptions: options\n};\n\nexport default preact;\nexport { h, h as createElement, cloneElement, createRef, Component, render, rerender, options };\n//# sourceMappingURL=preact.mjs.map\n","/**\n * Binds all the methods on a JS Class to the `this` context of the class.\n * Adapted from https://github.com/sindresorhus/auto-bind\n * @param {object} self The `this` context of the class\n * @return {object} The `this` context of the class\n */\nexport default function autoBind(self) {\n const keys = Object.getOwnPropertyNames(self.constructor.prototype);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const val = self[key];\n if (key !== 'constructor' && typeof val === 'function') {\n self[key] = val.bind(self);\n }\n }\n\n return self;\n}\n","import { isUndefined } from './type-check';\n\n/**\n * Sets up the handler to determine if we should advance the tour\n * @param {string} selector\n * @param {Step} step The step instance\n * @return {Function}\n * @private\n */\nfunction _setupAdvanceOnHandler(selector, step) {\n return (event) => {\n if (step.isOpen()) {\n const targetIsEl = step.el && event.target === step.el;\n const targetIsSelector = !isUndefined(selector) && event.target.matches(selector);\n\n if (targetIsSelector || targetIsEl) {\n step.tour.next();\n }\n }\n };\n}\n\n/**\n * Bind the event handler for advanceOn\n * @param {Step} step The step instance\n */\nexport function bindAdvance(step) {\n // An empty selector matches the step element\n const { event, selector } = step.options.advanceOn || {};\n if (event) {\n const handler = _setupAdvanceOnHandler(selector, step);\n\n // TODO: this should also bind/unbind on show/hide\n let el;\n try {\n el = document.querySelector(selector);\n } catch(e) {\n // TODO\n }\n if (!isUndefined(selector) && !el) {\n return console.error(`No element was found for the selector supplied to advanceOn: ${selector}`);\n } else if (el) {\n el.addEventListener(event, handler);\n step.on('destroy', () => {\n return el.removeEventListener(event, handler);\n });\n } else {\n document.body.addEventListener(event, handler, true);\n step.on('destroy', () => {\n return document.body.removeEventListener(event, handler, true);\n });\n }\n } else {\n return console.error('advanceOn was defined, but no event name was passed.');\n }\n}\n","/**!\n* tippy.js v5.0.0-beta.0\n* (c) 2017-2019 atomiks\n* MIT License\n*/\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';\nvar ua = isBrowser ? navigator.userAgent : '';\nvar isIE = /MSIE |Trident\\//.test(ua);\nvar isUCBrowser = /UCBrowser\\//.test(ua);\nvar isIOS = isBrowser && /iPhone|iPad|iPod/.test(navigator.platform);\n\nvar defaultProps = {\n allowHTML: true,\n animateFill: false,\n animation: 'fade',\n appendTo: function appendTo() {\n return document.body;\n },\n aria: 'describedby',\n arrow: true,\n boundary: 'scrollParent',\n content: '',\n delay: 0,\n distance: 10,\n duration: [325, 275],\n flip: true,\n flipBehavior: 'flip',\n flipOnUpdate: false,\n followCursor: false,\n hideOnClick: true,\n ignoreAttributes: false,\n inertia: false,\n interactive: false,\n interactiveBorder: 2,\n interactiveDebounce: 0,\n lazy: true,\n maxWidth: 350,\n multiple: false,\n offset: 0,\n onCreate: function onCreate() {},\n onHidden: function onHidden() {},\n onHide: function onHide() {},\n onMount: function onMount() {},\n onShow: function onShow() {},\n onShown: function onShown() {},\n onTrigger: function onTrigger() {},\n onUntrigger: function onUntrigger() {},\n placement: 'top',\n popperOptions: {},\n role: 'tooltip',\n showOnCreate: false,\n sticky: false,\n theme: '',\n touch: true,\n trigger: 'mouseenter focus',\n triggerTarget: null,\n updateDuration: 0,\n zIndex: 9999\n /**\n * If the setProps() method encounters one of these, the popperInstance must be\n * recreated\n */\n\n};\nvar POPPER_INSTANCE_DEPENDENCIES = ['arrow', 'boundary', 'distance', 'flip', 'flipBehavior', 'flipOnUpdate', 'offset', 'placement', 'popperOptions'];\n\nvar PASSIVE = {\n passive: true\n};\nvar PREVENT_OVERFLOW_PADDING = 5;\nvar ROUND_ARROW_INNER_HTML = '<svg viewBox=\"0 0 18 7\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z\"/></svg>';\nvar IOS_CLASS = \"tippy-iOS\";\nvar POPPER_CLASS = \"tippy-popper\";\nvar TOOLTIP_CLASS = \"tippy-tooltip\";\nvar CONTENT_CLASS = \"tippy-content\";\nvar BACKDROP_CLASS = \"tippy-backdrop\";\nvar ARROW_CLASS = \"tippy-arrow\";\nvar SVG_ARROW_CLASS = \"tippy-svg-arrow\";\nvar POPPER_SELECTOR = \".\" + POPPER_CLASS;\nvar TOOLTIP_SELECTOR = \".\" + TOOLTIP_CLASS;\nvar CONTENT_SELECTOR = \".\" + CONTENT_CLASS;\nvar BACKDROP_SELECTOR = \".\" + BACKDROP_CLASS;\nvar ARROW_SELECTOR = \".\" + ARROW_CLASS;\nvar SVG_ARROW_SELECTOR = \".\" + SVG_ARROW_CLASS; // TODO: Work out best way to make these updateable\n\nvar NON_UPDATEABLE_PROPS = ['followCursor'];\n\nvar currentInput = {\n isTouch: false\n};\nvar lastMouseMoveTime = 0;\n/**\n * When a `touchstart` event is fired, it's assumed the user is using touch\n * input. We'll bind a `mousemove` event listener to listen for mouse input in\n * the future. This way, the `isTouch` property is fully dynamic and will handle\n * hybrid devices that use a mix of touch + mouse input.\n */\n\nfunction onDocumentTouchStart() {\n if (currentInput.isTouch) {\n return;\n }\n\n currentInput.isTouch = true;\n\n if (isIOS) {\n document.body.classList.add(IOS_CLASS);\n }\n\n if (window.performance) {\n document.addEventListener('mousemove', onDocumentMouseMove);\n }\n}\n/**\n * When two `mousemove` event are fired consecutively within 20ms, it's assumed\n * the user is using mouse input again. `mousemove` can fire on touch devices as\n * well, but very rarely that quickly.\n */\n\nfunction onDocumentMouseMove() {\n var now = performance.now();\n\n if (now - lastMouseMoveTime < 20) {\n currentInput.isTouch = false;\n document.removeEventListener('mousemove', onDocumentMouseMove);\n\n if (!isIOS) {\n document.body.classList.remove(IOS_CLASS);\n }\n }\n\n lastMouseMoveTime = now;\n}\n/**\n * When an element is in focus and has a tippy, leaving the tab/window and\n * returning causes it to show again. For mouse users this is unexpected, but\n * for keyboard use it makes sense.\n * TODO: find a better technique to solve this problem\n */\n\nfunction onWindowBlur() {\n var _document = document,\n activeElement = _document.activeElement;\n var instance = activeElement._tippy;\n\n if (activeElement && activeElement.blur && instance && !instance.state.isVisible) {\n activeElement.blur();\n }\n}\n/**\n * Adds the needed global event listeners\n */\n\nfunction bindGlobalEventListeners() {\n document.addEventListener('touchstart', onDocumentTouchStart, _extends({}, PASSIVE, {\n capture: true\n }));\n window.addEventListener('blur', onWindowBlur);\n}\n\nvar keys = Object.keys(defaultProps);\n/**\n * Returns an object of optional props from data-tippy-* attributes\n */\n\nfunction getDataAttributeProps(reference) {\n var props = keys.reduce(function (acc, key) {\n var valueAsString = (reference.getAttribute(\"data-tippy-\" + key) || '').trim();\n\n if (!valueAsString) {\n return acc;\n }\n\n if (key === 'content') {\n acc[key] = valueAsString;\n } else {\n try {\n acc[key] = JSON.parse(valueAsString);\n } catch (e) {\n acc[key] = valueAsString;\n }\n }\n\n return acc;\n }, {});\n return props;\n}\n\n/**\n * Determines if the value is a reference element\n */\n\nfunction isReferenceElement(value) {\n return !!(value && value._tippy && !value.classList.contains(POPPER_CLASS));\n}\n/**\n * Safe .hasOwnProperty check, for prototype-less objects\n */\n\nfunction hasOwnProperty(obj, key) {\n return {}.hasOwnProperty.call(obj, key);\n}\n/**\n * Returns an array of elements based on the value\n */\n\nfunction getArrayOfElements(value) {\n if (isRealElement(value)) {\n return [value];\n }\n\n if (value instanceof NodeList) {\n return arrayFrom(value);\n }\n\n if (Array.isArray(value)) {\n return value;\n }\n\n return arrayFrom(document.querySelectorAll(value));\n}\n/**\n * Returns a value at a given index depending on if it's an array or number\n */\n\nfunction getValueAtIndexOrReturn(value, index, defaultValue) {\n if (Array.isArray(value)) {\n var v = value[index];\n return v == null ? Array.isArray(defaultValue) ? defaultValue[index] : defaultValue : v;\n }\n\n return value;\n}\n/**\n * Prevents errors from being thrown while accessing nested modifier objects\n * in `popperOptions`\n */\n\nfunction getModifier(obj, key) {\n return obj && obj.modifiers && obj.modifiers[key];\n}\n/**\n * Determines if the value is a real element\n */\n\nfunction isRealElement(value) {\n return value instanceof Element;\n}\n/**\n * Firefox extensions don't allow setting .innerHTML directly, this will trick\n * it\n */\n\nfunction innerHTML() {\n return 'innerHTML';\n}\n/**\n * Evaluates a function if one, or returns the value\n */\n\nfunction invokeWithArgsOrReturn(value, args) {\n return typeof value === 'function' ? value.apply(null, args) : value;\n}\n/**\n * Sets a popperInstance `flip` modifier's enabled state\n */\n\nfunction setFlipModifierEnabled(modifiers, value) {\n modifiers.filter(function (m) {\n return m.name === 'flip';\n })[0].enabled = value;\n}\n/**\n * Returns a new `div` element\n */\n\nfunction div() {\n return document.createElement('div');\n}\n/**\n * Applies a transition duration to a list of elements\n */\n\nfunction setTransitionDuration(els, value) {\n els.forEach(function (el) {\n if (el) {\n el.style.transitionDuration = value + \"ms\";\n }\n });\n}\n/**\n * Sets the visibility state to elements so they can begin to transition\n */\n\nfunction setVisibilityState(els, state) {\n els.forEach(function (el) {\n if (el) {\n el.setAttribute('data-state', state);\n }\n });\n}\n/**\n * Evaluates the props object by merging data attributes and disabling\n * conflicting props where necessary\n */\n\nfunction evaluateProps(reference, props) {\n var out = _extends({}, props, {\n content: invokeWithArgsOrReturn(props.content, [reference])\n }, props.ignoreAttributes ? {} : getDataAttributeProps(reference));\n\n if (out.animateFill) {\n out.arrow = false;\n }\n\n if (out.arrow || isUCBrowser) {\n out.animateFill = false;\n }\n\n return out;\n}\n/**\n * Debounce utility. To avoid bloating bundle size, we're only passing 1\n * argument here, a more generic function would pass all arguments. Only\n * `onMouseMove` uses this which takes the event object for now.\n */\n\nfunction debounce(fn, ms) {\n // Avoid wrapping in `setTimeout` if ms is 0 anyway\n if (ms === 0) {\n return fn;\n }\n\n var timeout;\n return function (arg) {\n clearTimeout(timeout);\n timeout = setTimeout(function () {\n fn(arg);\n }, ms);\n };\n}\n/**\n * Returns offsets for virtual reference when using a cursor point\n */\n\nfunction getVirtualOffsets(popper, isVerticalPlacement) {\n var size = isVerticalPlacement ? popper.offsetWidth : popper.offsetHeight;\n return {\n size: size,\n x: isVerticalPlacement ? size : 0,\n y: isVerticalPlacement ? 0 : size\n };\n}\n/**\n * Preserves the original function invocation when another function replaces it\n */\n\nfunction preserveInvocation(originalFn, currentFn, args) {\n if (originalFn && originalFn !== currentFn) {\n originalFn.apply(null, args);\n }\n}\n/**\n * Deletes properties from an object (pure)\n */\n\nfunction removeProperties(partialProps, keys) {\n var clone = _extends({}, partialProps);\n\n keys.forEach(function (key) {\n delete clone[key];\n });\n return clone;\n}\n/**\n * Ponyfill for Array.from - converts iterable values to an array\n */\n\nfunction arrayFrom(value) {\n return [].slice.call(value);\n}\n/**\n * Works like Element.prototype.closest, but uses a callback instead\n */\n\nfunction closestCallback(element, callback) {\n while (element) {\n if (callback(element)) {\n return element;\n }\n\n element = element.parentElement;\n }\n\n return null;\n}\n/**\n * Determines if an array or string includes a string\n */\n\nfunction includes(a, b) {\n return a.indexOf(b) > -1;\n}\n\n/**\n * Sets the innerHTML of an element\n */\n\nfunction setInnerHTML(element, html) {\n element[innerHTML()] = isRealElement(html) ? html[innerHTML()] : html;\n}\n/**\n * Sets the content of a tooltip\n */\n\nfunction setContent(contentEl, props) {\n if (isRealElement(props.content)) {\n setInnerHTML(contentEl, '');\n contentEl.appendChild(props.content);\n } else if (typeof props.content !== 'function') {\n var key = props.allowHTML ? 'innerHTML' : 'textContent';\n contentEl[key] = props.content;\n }\n}\n/**\n * Returns the child elements of a popper element\n */\n\nfunction getChildren(popper) {\n return {\n tooltip: popper.querySelector(TOOLTIP_SELECTOR),\n backdrop: popper.querySelector(BACKDROP_SELECTOR),\n content: popper.querySelector(CONTENT_SELECTOR),\n arrow: popper.querySelector(ARROW_SELECTOR) || popper.querySelector(SVG_ARROW_SELECTOR)\n };\n}\n/**\n * Adds `data-inertia` attribute\n */\n\nfunction addInertia(tooltip) {\n tooltip.setAttribute('data-inertia', '');\n}\n/**\n * Removes `data-inertia` attribute\n */\n\nfunction removeInertia(tooltip) {\n tooltip.removeAttribute('data-inertia');\n}\n/**\n * Creates an arrow element and returns it\n */\n\nfunction createArrowElement(arrow) {\n var arrowElement = div();\n\n if (arrow === true) {\n arrowElement.className = ARROW_CLASS;\n } else {\n arrowElement.className = SVG_ARROW_CLASS;\n\n if (isRealElement(arrow)) {\n arrowElement.appendChild(arrow);\n } else {\n setInnerHTML(arrowElement, arrow === 'round' ? ROUND_ARROW_INNER_HTML : arrow);\n }\n }\n\n return arrowElement;\n}\n/**\n * Creates a backdrop element and returns it\n */\n\nfunction createBackdropElement(isVisible) {\n var backdrop = div();\n backdrop.className = BACKDROP_CLASS;\n backdrop.setAttribute('data-state', isVisible ? 'visible' : 'hidden');\n return backdrop;\n}\n/**\n * Adds interactive-related attributes\n */\n\nfunction addInteractive(tooltip) {\n tooltip.setAttribute('data-interactive', '');\n}\n/**\n * Removes interactive-related attributes\n */\n\nfunction removeInteractive(tooltip) {\n tooltip.removeAttribute('data-interactive');\n}\n/**\n * Add/remove transitionend listener from tooltip\n */\n\nfunction updateTransitionEndListener(tooltip, action, listener) {\n var eventName = isUCBrowser && document.body.style.webkitTransition !== undefined ? 'webkitTransitionEnd' : 'transitionend';\n tooltip[action + 'EventListener'](eventName, listener);\n}\n/**\n * Returns the popper's placement, ignoring shifting (top-start, etc)\n */\n\nfunction getBasePlacement(placement) {\n return placement.split('-')[0];\n}\n/**\n * Triggers reflow\n */\n\nfunction reflow(popper) {\n void popper.offsetHeight;\n}\n/**\n * Adds/removes theme from tooltip's classList\n */\n\nfunction updateTheme(tooltip, action, theme) {\n theme.split(' ').forEach(function (name) {\n if (name) {\n tooltip.classList[action](name + \"-theme\");\n }\n });\n}\n/**\n * Constructs the popper element and returns it\n */\n\nfunction createPopperElement(id, props) {\n var popper = div();\n popper.className = POPPER_CLASS;\n popper.style.position = 'absolute';\n popper.style.top = '0';\n popper.style.left = '0';\n var tooltip = div();\n tooltip.className = TOOLTIP_CLASS;\n tooltip.id = \"tippy-\" + id;\n tooltip.setAttribute('data-state', 'hidden');\n tooltip.setAttribute('tabindex', '-1');\n updateTheme(tooltip, 'add', props.theme);\n var content = div();\n content.className = CONTENT_CLASS;\n content.setAttribute('data-state', 'hidden');\n\n if (props.interactive) {\n addInteractive(tooltip);\n }\n\n if (props.arrow) {\n tooltip.setAttribute('data-arrow', '');\n tooltip.appendChild(createArrowElement(props.arrow));\n }\n\n if (props.animateFill) {\n tooltip.appendChild(createBackdropElement(false));\n tooltip.setAttribute('data-animatefill', '');\n }\n\n if (props.inertia) {\n addInertia(tooltip);\n }\n\n setContent(content, props);\n tooltip.appendChild(content);\n popper.appendChild(tooltip);\n updatePopperElement(popper, props, props, false);\n return popper;\n}\n/**\n * Updates the popper element based on the new props\n */\n\nfunction updatePopperElement(popper, prevProps, nextProps, isVisible) {\n var _getChildren = getChildren(popper),\n tooltip = _getChildren.tooltip,\n content = _getChildren.content,\n backdrop = _getChildren.backdrop,\n arrow = _getChildren.arrow;\n\n popper.style.zIndex = '' + nextProps.zIndex;\n tooltip.setAttribute('data-animation', nextProps.animation);\n tooltip.style.maxWidth = nextProps.maxWidth + (typeof nextProps.maxWidth === 'number' ? 'px' : '');\n\n if (nextProps.role) {\n tooltip.setAttribute('role', nextProps.role);\n } else {\n tooltip.removeAttribute('role');\n }\n\n if (prevProps.content !== nextProps.content) {\n setContent(content, nextProps);\n } // animateFill\n\n\n if (!prevProps.animateFill && nextProps.animateFill) {\n tooltip.appendChild(createBackdropElement(isVisible));\n tooltip.setAttribute('data-animatefill', '');\n } else if (prevProps.animateFill && !nextProps.animateFill) {\n tooltip.removeChild(backdrop);\n tooltip.removeAttribute('data-animatefill');\n } // arrow\n\n\n if (!prevProps.arrow && nextProps.arrow) {\n // false to true\n tooltip.appendChild(createArrowElement(nextProps.arrow));\n tooltip.setAttribute('data-arrow', '');\n } else if (prevProps.arrow && !nextProps.arrow) {\n // true to false\n tooltip.removeChild(arrow);\n tooltip.removeAttribute('data-arrow');\n } else if (prevProps.arrow !== nextProps.arrow) {\n // true to 'round' or vice-versa\n tooltip.removeChild(arrow);\n tooltip.appendChild(createArrowElement(nextProps.arrow));\n } // interactive\n\n\n if (!prevProps.interactive && nextProps.interactive) {\n addInteractive(tooltip);\n } else if (prevProps.interactive && !nextProps.interactive) {\n removeInteractive(tooltip);\n } // inertia\n\n\n if (!prevProps.inertia && nextProps.inertia) {\n addInertia(tooltip);\n } else if (prevProps.inertia && !nextProps.inertia) {\n removeInertia(tooltip);\n } // theme\n\n\n if (prevProps.theme !== nextProps.theme) {\n updateTheme(tooltip, 'remove', prevProps.theme);\n updateTheme(tooltip, 'add', nextProps.theme);\n }\n}\n/**\n * Determines if the mouse cursor is outside of the popper's interactive border\n * region\n */\n\nfunction isCursorOutsideInteractiveBorder(popperPlacement, popperRect, event, props) {\n if (!popperPlacement) {\n return true;\n }\n\n var x = event.clientX,\n y = event.clientY;\n var interactiveBorder = props.interactiveBorder,\n distance = props.distance;\n var exceedsTop = popperRect.top - y > (popperPlacement === 'top' ? interactiveBorder + distance : interactiveBorder);\n var exceedsBottom = y - popperRect.bottom > (popperPlacement === 'bottom' ? interactiveBorder + distance : interactiveBorder);\n var exceedsLeft = popperRect.left - x > (popperPlacement === 'left' ? interactiveBorder + distance : interactiveBorder);\n var exceedsRight = x - popperRect.right > (popperPlacement === 'right' ? interactiveBorder + distance : interactiveBorder);\n return exceedsTop || exceedsBottom || exceedsLeft || exceedsRight;\n}\n\nexport { isRealElement as A, arrayFrom as B, POPPER_SELECTOR as C, isReferenceElement as D, isBrowser as E, removeProperties as F, getVirtualOffsets as G, NON_UPDATEABLE_PROPS as N, PREVENT_OVERFLOW_PADDING as P, _extends as _, debounce as a, closestCallback as b, createPopperElement as c, defaultProps as d, evaluateProps as e, isCursorOutsideInteractiveBorder as f, getChildren as g, hasOwnProperty as h, includes as i, getBasePlacement as j, getModifier as k, getValueAtIndexOrReturn as l, PASSIVE as m, currentInput as n, isIE as o, preserveInvocation as p, POPPER_INSTANCE_DEPENDENCIES as q, reflow as r, setFlipModifierEnabled as s, setTransitionDuration as t, updatePopperElement as u, setVisibilityState as v, updateTransitionEndListener as w, invokeWithArgsOrReturn as x, bindGlobalEventListeners as y, getArrayOfElements as z };\n//# sourceMappingURL=tippy.chunk.js.map\n","/**!\n * @fileOverview Kickass library to create and place poppers near their reference elements.\n * @version 1.15.0\n * @license\n * Copyright (c) 2016 Federico Zivolo and contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nvar longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];\nvar timeoutDuration = 0;\nfor (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {\n if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {\n timeoutDuration = 1;\n break;\n }\n}\n\nfunction microtaskDebounce(fn) {\n var called = false;\n return function () {\n if (called) {\n return;\n }\n called = true;\n window.Promise.resolve().then(function () {\n called = false;\n fn();\n });\n };\n}\n\nfunction taskDebounce(fn) {\n var scheduled = false;\n return function () {\n if (!scheduled) {\n scheduled = true;\n setTimeout(function () {\n scheduled = false;\n fn();\n }, timeoutDuration);\n }\n };\n}\n\nvar supportsMicroTasks = isBrowser && window.Promise;\n\n/**\n* Create a debounced version of a method, that's asynchronously deferred\n* but called in the minimum time possible.\n*\n* @method\n* @memberof Popper.Utils\n* @argument {Function} fn\n* @returns {Function}\n*/\nvar debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce;\n\n/**\n * Check if the given variable is a function\n * @method\n * @memberof Popper.Utils\n * @argument {Any} functionToCheck - variable to check\n * @returns {Boolean} answer to: is a function?\n */\nfunction isFunction(functionToCheck) {\n var getType = {};\n return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';\n}\n\n/**\n * Get CSS computed property of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Eement} element\n * @argument {String} property\n */\nfunction getStyleComputedProperty(element, property) {\n if (element.nodeType !== 1) {\n return [];\n }\n // NOTE: 1 DOM access here\n var window = element.ownerDocument.defaultView;\n var css = window.getComputedStyle(element, null);\n return property ? css[property] : css;\n}\n\n/**\n * Returns the parentNode or the host of the element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} parent\n */\nfunction getParentNode(element) {\n if (element.nodeName === 'HTML') {\n return element;\n }\n return element.parentNode || element.host;\n}\n\n/**\n * Returns the scrolling parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} scroll parent\n */\nfunction getScrollParent(element) {\n // Return body, `getScroll` will take care to get the correct `scrollTop` from it\n if (!element) {\n return document.body;\n }\n\n switch (element.nodeName) {\n case 'HTML':\n case 'BODY':\n return element.ownerDocument.body;\n case '#document':\n return element.body;\n }\n\n // Firefox want us to check `-x` and `-y` variations as well\n\n var _getStyleComputedProp = getStyleComputedProperty(element),\n overflow = _getStyleComputedProp.overflow,\n overflowX = _getStyleComputedProp.overflowX,\n overflowY = _getStyleComputedProp.overflowY;\n\n if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {\n return element;\n }\n\n return getScrollParent(getParentNode(element));\n}\n\nvar isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);\nvar isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);\n\n/**\n * Determines if the browser is Internet Explorer\n * @method\n * @memberof Popper.Utils\n * @param {Number} version to check\n * @returns {Boolean} isIE\n */\nfunction isIE(version) {\n if (version === 11) {\n return isIE11;\n }\n if (version === 10) {\n return isIE10;\n }\n return isIE11 || isIE10;\n}\n\n/**\n * Returns the offset parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} offset parent\n */\nfunction getOffsetParent(element) {\n if (!element) {\n return document.documentElement;\n }\n\n var noOffsetParent = isIE(10) ? document.body : null;\n\n // NOTE: 1 DOM access here\n var offsetParent = element.offsetParent || null;\n // Skip hidden elements which don't have an offsetParent\n while (offsetParent === noOffsetParent && element.nextElementSibling) {\n offsetParent = (element = element.nextElementSibling).offsetParent;\n }\n\n var nodeName = offsetParent && offsetParent.nodeName;\n\n if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {\n return element ? element.ownerDocument.documentElement : document.documentElement;\n }\n\n // .offsetParent will return the closest TH, TD or TABLE in case\n // no offsetParent is present, I hate this job...\n if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {\n return getOffsetParent(offsetParent);\n }\n\n return offsetParent;\n}\n\nfunction isOffsetContainer(element) {\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY') {\n return false;\n }\n return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element;\n}\n\n/**\n * Finds the root node (document, shadowDOM root) of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} node\n * @returns {Element} root node\n */\nfunction getRoot(node) {\n if (node.parentNode !== null) {\n return getRoot(node.parentNode);\n }\n\n return node;\n}\n\n/**\n * Finds the offset parent common to the two provided nodes\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element1\n * @argument {Element} element2\n * @returns {Element} common offset parent\n */\nfunction findCommonOffsetParent(element1, element2) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {\n return document.documentElement;\n }\n\n // Here we make sure to give as \"start\" the element that comes first in the DOM\n var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;\n var start = order ? element1 : element2;\n var end = order ? element2 : element1;\n\n // Get common ancestor container\n var range = document.createRange();\n range.setStart(start, 0);\n range.setEnd(end, 0);\n var commonAncestorContainer = range.commonAncestorContainer;\n\n // Both nodes are inside #document\n\n if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) {\n if (isOffsetContainer(commonAncestorContainer)) {\n return commonAncestorContainer;\n }\n\n return getOffsetParent(commonAncestorContainer);\n }\n\n // one of the nodes is inside shadowDOM, find which one\n var element1root = getRoot(element1);\n if (element1root.host) {\n return findCommonOffsetParent(element1root.host, element2);\n } else {\n return findCommonOffsetParent(element1, getRoot(element2).host);\n }\n}\n\n/**\n * Gets the scroll value of the given element in the given side (top and left)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {String} side `top` or `left`\n * @returns {number} amount of scrolled pixels\n */\nfunction getScroll(element) {\n var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top';\n\n var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n var html = element.ownerDocument.documentElement;\n var scrollingElement = element.ownerDocument.scrollingElement || html;\n return scrollingElement[upperSide];\n }\n\n return element[upperSide];\n}\n\n/*\n * Sum or subtract the element scroll values (left and top) from a given rect object\n * @method\n * @memberof Popper.Utils\n * @param {Object} rect - Rect object you want to change\n * @param {HTMLElement} element - The element from the function reads the scroll values\n * @param {Boolean} subtract - set to true if you want to subtract the scroll values\n * @return {Object} rect - The modifier rect object\n */\nfunction includeScroll(rect, element) {\n var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n var modifier = subtract ? -1 : 1;\n rect.top += scrollTop * modifier;\n rect.bottom += scrollTop * modifier;\n rect.left += scrollLeft * modifier;\n rect.right += scrollLeft * modifier;\n return rect;\n}\n\n/*\n * Helper to detect borders of a given element\n * @method\n * @memberof Popper.Utils\n * @param {CSSStyleDeclaration} styles\n * Result of `getStyleComputedProperty` on the given element\n * @param {String} axis - `x` or `y`\n * @return {number} borders - The borders size of the given axis\n */\n\nfunction getBordersSize(styles, axis) {\n var sideA = axis === 'x' ? 'Left' : 'Top';\n var sideB = sideA === 'Left' ? 'Right' : 'Bottom';\n\n return parseFloat(styles['border' + sideA + 'Width'], 10) + parseFloat(styles['border' + sideB + 'Width'], 10);\n}\n\nfunction getSize(axis, body, html, computedStyle) {\n return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);\n}\n\nfunction getWindowSizes(document) {\n var body = document.body;\n var html = document.documentElement;\n var computedStyle = isIE(10) && getComputedStyle(html);\n\n return {\n height: getSize('Height', body, html, computedStyle),\n width: getSize('Width', body, html, computedStyle)\n };\n}\n\nvar classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n\n\n\nvar defineProperty = function (obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n/**\n * Given element offsets, generate an output similar to getBoundingClientRect\n * @method\n * @memberof Popper.Utils\n * @argument {Object} offsets\n * @returns {Object} ClientRect like output\n */\nfunction getClientRect(offsets) {\n return _extends({}, offsets, {\n right: offsets.left + offsets.width,\n bottom: offsets.top + offsets.height\n });\n}\n\n/**\n * Get bounding client rect of given element\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} element\n * @return {Object} client rect\n */\nfunction getBoundingClientRect(element) {\n var rect = {};\n\n // IE10 10 FIX: Please, don't ask, the element isn't\n // considered in DOM in some circumstances...\n // This isn't reproducible in IE10 compatibility mode of IE11\n try {\n if (isIE(10)) {\n rect = element.getBoundingClientRect();\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n rect.top += scrollTop;\n rect.left += scrollLeft;\n rect.bottom += scrollTop;\n rect.right += scrollLeft;\n } else {\n rect = element.getBoundingClientRect();\n }\n } catch (e) {}\n\n var result = {\n left: rect.left,\n top: rect.top,\n width: rect.right - rect.left,\n height: rect.bottom - rect.top\n };\n\n // subtract scrollbar size from sizes\n var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};\n var width = sizes.width || element.clientWidth || result.right - result.left;\n var height = sizes.height || element.clientHeight || result.bottom - result.top;\n\n var horizScrollbar = element.offsetWidth - width;\n var vertScrollbar = element.offsetHeight - height;\n\n // if an hypothetical scrollbar is detected, we must be sure it's not a `border`\n // we make this check conditional for performance reasons\n if (horizScrollbar || vertScrollbar) {\n var styles = getStyleComputedProperty(element);\n horizScrollbar -= getBordersSize(styles, 'x');\n vertScrollbar -= getBordersSize(styles, 'y');\n\n result.width -= horizScrollbar;\n result.height -= vertScrollbar;\n }\n\n return getClientRect(result);\n}\n\nfunction getOffsetRectRelativeToArbitraryNode(children, parent) {\n var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n var isIE10 = isIE(10);\n var isHTML = parent.nodeName === 'HTML';\n var childrenRect = getBoundingClientRect(children);\n var parentRect = getBoundingClientRect(parent);\n var scrollParent = getScrollParent(children);\n\n var styles = getStyleComputedProperty(parent);\n var borderTopWidth = parseFloat(styles.borderTopWidth, 10);\n var borderLeftWidth = parseFloat(styles.borderLeftWidth, 10);\n\n // In cases where the parent is fixed, we must ignore negative scroll in offset calc\n if (fixedPosition && isHTML) {\n parentRect.top = Math.max(parentRect.top, 0);\n parentRect.left = Math.max(parentRect.left, 0);\n }\n var offsets = getClientRect({\n top: childrenRect.top - parentRect.top - borderTopWidth,\n left: childrenRect.left - parentRect.left - borderLeftWidth,\n width: childrenRect.width,\n height: childrenRect.height\n });\n offsets.marginTop = 0;\n offsets.marginLeft = 0;\n\n // Subtract margins of documentElement in case it's being used as parent\n // we do this only on HTML because it's the only element that behaves\n // differently when margins are applied to it. The margins are included in\n // the box of the documentElement, in the other cases not.\n if (!isIE10 && isHTML) {\n var marginTop = parseFloat(styles.marginTop, 10);\n var marginLeft = parseFloat(styles.marginLeft, 10);\n\n offsets.top -= borderTopWidth - marginTop;\n offsets.bottom -= borderTopWidth - marginTop;\n offsets.left -= borderLeftWidth - marginLeft;\n offsets.right -= borderLeftWidth - marginLeft;\n\n // Attach marginTop and marginLeft because in some circumstances we may need them\n offsets.marginTop = marginTop;\n offsets.marginLeft = marginLeft;\n }\n\n if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') {\n offsets = includeScroll(offsets, parent);\n }\n\n return offsets;\n}\n\nfunction getViewportOffsetRectRelativeToArtbitraryNode(element) {\n var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n var html = element.ownerDocument.documentElement;\n var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);\n var width = Math.max(html.clientWidth, window.innerWidth || 0);\n var height = Math.max(html.clientHeight, window.innerHeight || 0);\n\n var scrollTop = !excludeScroll ? getScroll(html) : 0;\n var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;\n\n var offset = {\n top: scrollTop - relativeOffset.top + relativeOffset.marginTop,\n left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,\n width: width,\n height: height\n };\n\n return getClientRect(offset);\n}\n\n/**\n * Check if the given element is fixed or is inside a fixed parent\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {Element} customContainer\n * @returns {Boolean} answer to \"isFixed?\"\n */\nfunction isFixed(element) {\n var nodeName = element.nodeName;\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n return false;\n }\n if (getStyleComputedProperty(element, 'position') === 'fixed') {\n return true;\n }\n var parentNode = getParentNode(element);\n if (!parentNode) {\n return false;\n }\n return isFixed(parentNode);\n}\n\n/**\n * Finds the first parent of an element that has a transformed property defined\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} first transformed parent or documentElement\n */\n\nfunction getFixedPositionOffsetParent(element) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element || !element.parentElement || isIE()) {\n return document.documentElement;\n }\n var el = element.parentElement;\n while (el && getStyleComputedProperty(el, 'transform') === 'none') {\n el = el.parentElement;\n }\n return el || document.documentElement;\n}\n\n/**\n * Computed the boundaries limits and return them\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} popper\n * @param {HTMLElement} reference\n * @param {number} padding\n * @param {HTMLElement} boundariesElement - Element used to define the boundaries\n * @param {Boolean} fixedPosition - Is in fixed position mode\n * @returns {Object} Coordinates of the boundaries\n */\nfunction getBoundaries(popper, reference, padding, boundariesElement) {\n var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n\n // NOTE: 1 DOM access here\n\n var boundaries = { top: 0, left: 0 };\n var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference);\n\n // Handle viewport case\n if (boundariesElement === 'viewport') {\n boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);\n } else {\n // Handle other cases based on DOM element used as boundaries\n var boundariesNode = void 0;\n if (boundariesElement === 'scrollParent') {\n boundariesNode = getScrollParent(getParentNode(reference));\n if (boundariesNode.nodeName === 'BODY') {\n boundariesNode = popper.ownerDocument.documentElement;\n }\n } else if (boundariesElement === 'window') {\n boundariesNode = popper.ownerDocument.documentElement;\n } else {\n boundariesNode = boundariesElement;\n }\n\n var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);\n\n // In case of HTML, we need a different computation\n if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {\n var _getWindowSizes = getWindowSizes(popper.ownerDocument),\n height = _getWindowSizes.height,\n width = _getWindowSizes.width;\n\n boundaries.top += offsets.top - offsets.marginTop;\n boundaries.bottom = height + offsets.top;\n boundaries.left += offsets.left - offsets.marginLeft;\n boundaries.right = width + offsets.left;\n } else {\n // for all the other DOM elements, this one is good\n boundaries = offsets;\n }\n }\n\n // Add paddings\n padding = padding || 0;\n var isPaddingNumber = typeof padding === 'number';\n boundaries.left += isPaddingNumber ? padding : padding.left || 0;\n boundaries.top += isPaddingNumber ? padding : padding.top || 0;\n boundaries.right -= isPaddingNumber ? padding : padding.right || 0;\n boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;\n\n return boundaries;\n}\n\nfunction getArea(_ref) {\n var width = _ref.width,\n height = _ref.height;\n\n return width * height;\n}\n\n/**\n * Utility used to transform the `auto` placement to the placement with more\n * available space.\n * @method\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {\n var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;\n\n if (placement.indexOf('auto') === -1) {\n return placement;\n }\n\n var boundaries = getBoundaries(popper, reference, padding, boundariesElement);\n\n var rects = {\n top: {\n width: boundaries.width,\n height: refRect.top - boundaries.top\n },\n right: {\n width: boundaries.right - refRect.right,\n height: boundaries.height\n },\n bottom: {\n width: boundaries.width,\n height: boundaries.bottom - refRect.bottom\n },\n left: {\n width: refRect.left - boundaries.left,\n height: boundaries.height\n }\n };\n\n var sortedAreas = Object.keys(rects).map(function (key) {\n return _extends({\n key: key\n }, rects[key], {\n area: getArea(rects[key])\n });\n }).sort(function (a, b) {\n return b.area - a.area;\n });\n\n var filteredAreas = sortedAreas.filter(function (_ref2) {\n var width = _ref2.width,\n height = _ref2.height;\n return width >= popper.clientWidth && height >= popper.clientHeight;\n });\n\n var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;\n\n var variation = placement.split('-')[1];\n\n return computedPlacement + (variation ? '-' + variation : '');\n}\n\n/**\n * Get offsets to the reference element\n * @method\n * @memberof Popper.Utils\n * @param {Object} state\n * @param {Element} popper - the popper element\n * @param {Element} reference - the reference element (the popper will be relative to this)\n * @param {Element} fixedPosition - is in fixed position mode\n * @returns {Object} An object containing the offsets which will be applied to the popper\n */\nfunction getReferenceOffsets(state, popper, reference) {\n var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n\n var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference);\n return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);\n}\n\n/**\n * Get the outer sizes of the given element (offset size + margins)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Object} object containing width and height properties\n */\nfunction getOuterSizes(element) {\n var window = element.ownerDocument.defaultView;\n var styles = window.getComputedStyle(element);\n var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);\n var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);\n var result = {\n width: element.offsetWidth + y,\n height: element.offsetHeight + x\n };\n return result;\n}\n\n/**\n * Get the opposite placement of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement\n * @returns {String} flipped placement\n */\nfunction getOppositePlacement(placement) {\n var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}\n\n/**\n * Get offsets to the popper\n * @method\n * @memberof Popper.Utils\n * @param {Object} position - CSS position the Popper will get applied\n * @param {HTMLElement} popper - the popper element\n * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this)\n * @param {String} placement - one of the valid placement options\n * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper\n */\nfunction getPopperOffsets(popper, referenceOffsets, placement) {\n placement = placement.split('-')[0];\n\n // Get popper node sizes\n var popperRect = getOuterSizes(popper);\n\n // Add position, width and height to our offsets object\n var popperOffsets = {\n width: popperRect.width,\n height: popperRect.height\n };\n\n // depending by the popper placement we have to compute its offsets slightly differently\n var isHoriz = ['right', 'left'].indexOf(placement) !== -1;\n var mainSide = isHoriz ? 'top' : 'left';\n var secondarySide = isHoriz ? 'left' : 'top';\n var measurement = isHoriz ? 'height' : 'width';\n var secondaryMeasurement = !isHoriz ? 'height' : 'width';\n\n popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;\n if (placement === secondarySide) {\n popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement];\n } else {\n popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)];\n }\n\n return popperOffsets;\n}\n\n/**\n * Mimics the `find` method of Array\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\nfunction find(arr, check) {\n // use native find if supported\n if (Array.prototype.find) {\n return arr.find(check);\n }\n\n // use `filter` to obtain the same behavior of `find`\n return arr.filter(check)[0];\n}\n\n/**\n * Return the index of the matching object\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\nfunction findIndex(arr, prop, value) {\n // use native findIndex if supported\n if (Array.prototype.findIndex) {\n return arr.findIndex(function (cur) {\n return cur[prop] === value;\n });\n }\n\n // use `find` + `indexOf` if `findIndex` isn't supported\n var match = find(arr, function (obj) {\n return obj[prop] === value;\n });\n return arr.indexOf(match);\n}\n\n/**\n * Loop trough the list of modifiers and run them in order,\n * each of them will then edit the data object.\n * @method\n * @memberof Popper.Utils\n * @param {dataObject} data\n * @param {Array} modifiers\n * @param {String} ends - Optional modifier name used as stopper\n * @returns {dataObject}\n */\nfunction runModifiers(modifiers, data, ends) {\n var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));\n\n modifiersToRun.forEach(function (modifier) {\n if (modifier['function']) {\n // eslint-disable-line dot-notation\n console.warn('`modifier.function` is deprecated, use `modifier.fn`!');\n }\n var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation\n if (modifier.enabled && isFunction(fn)) {\n // Add properties to offsets to make them a complete clientRect object\n // we do this before each modifier to make sure the previous one doesn't\n // mess with these values\n data.offsets.popper = getClientRect(data.offsets.popper);\n data.offsets.reference = getClientRect(data.offsets.reference);\n\n data = fn(data, modifier);\n }\n });\n\n return data;\n}\n\n/**\n * Updates the position of the popper, computing the new offsets and applying\n * the new style.<br />\n * Prefer `scheduleUpdate` over `update` because of performance reasons.\n * @method\n * @memberof Popper\n */\nfunction update() {\n // if popper is destroyed, don't perform any further update\n if (this.state.isDestroyed) {\n return;\n }\n\n var data = {\n instance: this,\n styles: {},\n arrowStyles: {},\n attributes: {},\n flipped: false,\n offsets: {}\n };\n\n // compute reference element offsets\n data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed);\n\n // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding);\n\n // store the computed placement inside `originalPlacement`\n data.originalPlacement = data.placement;\n\n data.positionFixed = this.options.positionFixed;\n\n // compute the popper offsets\n data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement);\n\n data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute';\n\n // run the modifiers\n data = runModifiers(this.modifiers, data);\n\n // the first `update` will call `onCreate` callback\n // the other ones will call `onUpdate` callback\n if (!this.state.isCreated) {\n this.state.isCreated = true;\n this.options.onCreate(data);\n } else {\n this.options.onUpdate(data);\n }\n}\n\n/**\n * Helper used to know if the given modifier is enabled.\n * @method\n * @memberof Popper.Utils\n * @returns {Boolean}\n */\nfunction isModifierEnabled(modifiers, modifierName) {\n return modifiers.some(function (_ref) {\n var name = _ref.name,\n enabled = _ref.enabled;\n return enabled && name === modifierName;\n });\n}\n\n/**\n * Get the prefixed supported property name\n * @method\n * @memberof Popper.Utils\n * @argument {String} property (camelCase)\n * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)\n */\nfunction getSupportedPropertyName(property) {\n var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];\n var upperProp = property.charAt(0).toUpperCase() + property.slice(1);\n\n for (var i = 0; i < prefixes.length; i++) {\n var prefix = prefixes[i];\n var toCheck = prefix ? '' + prefix + upperProp : property;\n if (typeof document.body.style[toCheck] !== 'undefined') {\n return toCheck;\n }\n }\n return null;\n}\n\n/**\n * Destroys the popper.\n * @method\n * @memberof Popper\n */\nfunction destroy() {\n this.state.isDestroyed = true;\n\n // touch DOM only if `applyStyle` modifier is enabled\n if (isModifierEnabled(this.modifiers, 'applyStyle')) {\n this.popper.removeAttribute('x-placement');\n this.popper.style.position = '';\n this.popper.style.top = '';\n this.popper.style.left = '';\n this.popper.style.right = '';\n this.popper.style.bottom = '';\n this.popper.style.willChange = '';\n this.popper.style[getSupportedPropertyName('transform')] = '';\n }\n\n this.disableEventListeners();\n\n // remove the popper if user explicity asked for the deletion on destroy\n // do not use `remove` because IE11 doesn't support it\n if (this.options.removeOnDestroy) {\n this.popper.parentNode.removeChild(this.popper);\n }\n return this;\n}\n\n/**\n * Get the window associated with the element\n * @argument {Element} element\n * @returns {Window}\n */\nfunction getWindow(element) {\n var ownerDocument = element.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView : window;\n}\n\nfunction attachToScrollParents(scrollParent, event, callback, scrollParents) {\n var isBody = scrollParent.nodeName === 'BODY';\n var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;\n target.addEventListener(event, callback, { passive: true });\n\n if (!isBody) {\n attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents);\n }\n scrollParents.push(target);\n}\n\n/**\n * Setup needed event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\nfunction setupEventListeners(reference, options, state, updateBound) {\n // Resize event listener on window\n state.updateBound = updateBound;\n getWindow(reference).addEventListener('resize', state.updateBound, { passive: true });\n\n // Scroll event listener on scroll parents\n var scrollElement = getScrollParent(reference);\n attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents);\n state.scrollElement = scrollElement;\n state.eventsEnabled = true;\n\n return state;\n}\n\n/**\n * It will add resize/scroll events and start recalculating\n * position of the popper element when they are triggered.\n * @method\n * @memberof Popper\n */\nfunction enableEventListeners() {\n if (!this.state.eventsEnabled) {\n this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate);\n }\n}\n\n/**\n * Remove event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\nfunction removeEventListeners(reference, state) {\n // Remove resize event listener on window\n getWindow(reference).removeEventListener('resize', state.updateBound);\n\n // Remove scroll event listener on scroll parents\n state.scrollParents.forEach(function (target) {\n target.removeEventListener('scroll', state.updateBound);\n });\n\n // Reset state\n state.updateBound = null;\n state.scrollParents = [];\n state.scrollElement = null;\n state.eventsEnabled = false;\n return state;\n}\n\n/**\n * It will remove resize/scroll events and won't recalculate popper position\n * when they are triggered. It also won't trigger `onUpdate` callback anymore,\n * unless you call `update` method manually.\n * @method\n * @memberof Popper\n */\nfunction disableEventListeners() {\n if (this.state.eventsEnabled) {\n cancelAnimationFrame(this.scheduleUpdate);\n this.state = removeEventListeners(this.reference, this.state);\n }\n}\n\n/**\n * Tells if a given input is a number\n * @method\n * @memberof Popper.Utils\n * @param {*} input to check\n * @return {Boolean}\n */\nfunction isNumeric(n) {\n return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);\n}\n\n/**\n * Set the style to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the style to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\nfunction setStyles(element, styles) {\n Object.keys(styles).forEach(function (prop) {\n var unit = '';\n // add unit if the value is numeric and is one of the following\n if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) {\n unit = 'px';\n }\n element.style[prop] = styles[prop] + unit;\n });\n}\n\n/**\n * Set the attributes to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the attributes to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\nfunction setAttributes(element, attributes) {\n Object.keys(attributes).forEach(function (prop) {\n var value = attributes[prop];\n if (value !== false) {\n element.setAttribute(prop, attributes[prop]);\n } else {\n element.removeAttribute(prop);\n }\n });\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} data.styles - List of style properties - values to apply to popper element\n * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The same data object\n */\nfunction applyStyle(data) {\n // any property present in `data.styles` will be applied to the popper,\n // in this way we can make the 3rd party modifiers add custom styles to it\n // Be aware, modifiers could override the properties defined in the previous\n // lines of this modifier!\n setStyles(data.instance.popper, data.styles);\n\n // any property present in `data.attributes` will be applied to the popper,\n // they will be set as HTML attributes of the element\n setAttributes(data.instance.popper, data.attributes);\n\n // if arrowElement is defined and arrowStyles has some properties\n if (data.arrowElement && Object.keys(data.arrowStyles).length) {\n setStyles(data.arrowElement, data.arrowStyles);\n }\n\n return data;\n}\n\n/**\n * Set the x-placement attribute before everything else because it could be used\n * to add margins to the popper margins needs to be calculated to get the\n * correct popper offsets.\n * @method\n * @memberof Popper.modifiers\n * @param {HTMLElement} reference - The reference element used to position the popper\n * @param {HTMLElement} popper - The HTML element used as popper\n * @param {Object} options - Popper.js options\n */\nfunction applyStyleOnLoad(reference, popper, options, modifierOptions, state) {\n // compute reference element offsets\n var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed);\n\n // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);\n\n popper.setAttribute('x-placement', placement);\n\n // Apply `position` to popper before anything else because\n // without the position applied we can't guarantee correct computations\n setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' });\n\n return options;\n}\n\n/**\n * @function\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Boolean} shouldRound - If the offsets should be rounded at all\n * @returns {Object} The popper's position offsets rounded\n *\n * The tale of pixel-perfect positioning. It's still not 100% perfect, but as\n * good as it can be within reason.\n * Discussion here: https://github.com/FezVrasta/popper.js/pull/715\n *\n * Low DPI screens cause a popper to be blurry if not using full pixels (Safari\n * as well on High DPI screens).\n *\n * Firefox prefers no rounding for positioning and does not have blurriness on\n * high DPI screens.\n *\n * Only horizontal placement and left/right values need to be considered.\n */\nfunction getRoundedOffsets(data, shouldRound) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var round = Math.round,\n floor = Math.floor;\n\n var noRound = function noRound(v) {\n return v;\n };\n\n var referenceWidth = round(reference.width);\n var popperWidth = round(popper.width);\n\n var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;\n var isVariation = data.placement.indexOf('-') !== -1;\n var sameWidthParity = referenceWidth % 2 === popperWidth % 2;\n var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;\n\n var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;\n var verticalToInteger = !shouldRound ? noRound : round;\n\n return {\n left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),\n top: verticalToInteger(popper.top),\n bottom: verticalToInteger(popper.bottom),\n right: horizontalToInteger(popper.right)\n };\n}\n\nvar isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction computeStyle(data, options) {\n var x = options.x,\n y = options.y;\n var popper = data.offsets.popper;\n\n // Remove this legacy support in Popper.js v2\n\n var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'applyStyle';\n }).gpuAcceleration;\n if (legacyGpuAccelerationOption !== undefined) {\n console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');\n }\n var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;\n\n var offsetParent = getOffsetParent(data.instance.popper);\n var offsetParentRect = getBoundingClientRect(offsetParent);\n\n // Styles\n var styles = {\n position: popper.position\n };\n\n var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);\n\n var sideA = x === 'bottom' ? 'top' : 'bottom';\n var sideB = y === 'right' ? 'left' : 'right';\n\n // if gpuAcceleration is set to `true` and transform is supported,\n // we use `translate3d` to apply the position to the popper we\n // automatically use the supported prefixed version if needed\n var prefixedProperty = getSupportedPropertyName('transform');\n\n // now, let's make a step back and look at this code closely (wtf?)\n // If the content of the popper grows once it's been positioned, it\n // may happen that the popper gets misplaced because of the new content\n // overflowing its reference element\n // To avoid this problem, we provide two options (x and y), which allow\n // the consumer to define the offset origin.\n // If we position a popper on top of a reference element, we can set\n // `x` to `top` to make the popper grow towards its top instead of\n // its bottom.\n var left = void 0,\n top = void 0;\n if (sideA === 'bottom') {\n // when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar)\n // and not the bottom of the html element\n if (offsetParent.nodeName === 'HTML') {\n top = -offsetParent.clientHeight + offsets.bottom;\n } else {\n top = -offsetParentRect.height + offsets.bottom;\n }\n } else {\n top = offsets.top;\n }\n if (sideB === 'right') {\n if (offsetParent.nodeName === 'HTML') {\n left = -offsetParent.clientWidth + offsets.right;\n } else {\n left = -offsetParentRect.width + offsets.right;\n }\n } else {\n left = offsets.left;\n }\n if (gpuAcceleration && prefixedProperty) {\n styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';\n styles[sideA] = 0;\n styles[sideB] = 0;\n styles.willChange = 'transform';\n } else {\n // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties\n var invertTop = sideA === 'bottom' ? -1 : 1;\n var invertLeft = sideB === 'right' ? -1 : 1;\n styles[sideA] = top * invertTop;\n styles[sideB] = left * invertLeft;\n styles.willChange = sideA + ', ' + sideB;\n }\n\n // Attributes\n var attributes = {\n 'x-placement': data.placement\n };\n\n // Update `data` attributes, styles and arrowStyles\n data.attributes = _extends({}, attributes, data.attributes);\n data.styles = _extends({}, styles, data.styles);\n data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);\n\n return data;\n}\n\n/**\n * Helper used to know if the given modifier depends from another one.<br />\n * It checks if the needed modifier is listed and enabled.\n * @method\n * @memberof Popper.Utils\n * @param {Array} modifiers - list of modifiers\n * @param {String} requestingName - name of requesting modifier\n * @param {String} requestedName - name of requested modifier\n * @returns {Boolean}\n */\nfunction isModifierRequired(modifiers, requestingName, requestedName) {\n var requesting = find(modifiers, function (_ref) {\n var name = _ref.name;\n return name === requestingName;\n });\n\n var isRequired = !!requesting && modifiers.some(function (modifier) {\n return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order;\n });\n\n if (!isRequired) {\n var _requesting = '`' + requestingName + '`';\n var requested = '`' + requestedName + '`';\n console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!');\n }\n return isRequired;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction arrow(data, options) {\n var _data$offsets$arrow;\n\n // arrow depends on keepTogether in order to work\n if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {\n return data;\n }\n\n var arrowElement = options.element;\n\n // if arrowElement is a string, suppose it's a CSS selector\n if (typeof arrowElement === 'string') {\n arrowElement = data.instance.popper.querySelector(arrowElement);\n\n // if arrowElement is not found, don't run the modifier\n if (!arrowElement) {\n return data;\n }\n } else {\n // if the arrowElement isn't a query selector we must check that the\n // provided DOM node is child of its popper node\n if (!data.instance.popper.contains(arrowElement)) {\n console.warn('WARNING: `arrow.element` must be child of its popper element!');\n return data;\n }\n }\n\n var placement = data.placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n\n var isVertical = ['left', 'right'].indexOf(placement) !== -1;\n\n var len = isVertical ? 'height' : 'width';\n var sideCapitalized = isVertical ? 'Top' : 'Left';\n var side = sideCapitalized.toLowerCase();\n var altSide = isVertical ? 'left' : 'top';\n var opSide = isVertical ? 'bottom' : 'right';\n var arrowElementSize = getOuterSizes(arrowElement)[len];\n\n //\n // extends keepTogether behavior making sure the popper and its\n // reference have enough pixels in conjunction\n //\n\n // top/left side\n if (reference[opSide] - arrowElementSize < popper[side]) {\n data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize);\n }\n // bottom/right side\n if (reference[side] + arrowElementSize > popper[opSide]) {\n data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide];\n }\n data.offsets.popper = getClientRect(data.offsets.popper);\n\n // compute center of the popper\n var center = reference[side] + reference[len] / 2 - arrowElementSize / 2;\n\n // Compute the sideValue using the updated popper offsets\n // take popper margin in account because we don't have this info available\n var css = getStyleComputedProperty(data.instance.popper);\n var popperMarginSide = parseFloat(css['margin' + sideCapitalized], 10);\n var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width'], 10);\n var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;\n\n // prevent arrowElement from being placed not contiguously to its popper\n sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);\n\n data.arrowElement = arrowElement;\n data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);\n\n return data;\n}\n\n/**\n * Get the opposite placement variation of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement variation\n * @returns {String} flipped placement variation\n */\nfunction getOppositeVariation(variation) {\n if (variation === 'end') {\n return 'start';\n } else if (variation === 'start') {\n return 'end';\n }\n return variation;\n}\n\n/**\n * List of accepted placements to use as values of the `placement` option.<br />\n * Valid placements are:\n * - `auto`\n * - `top`\n * - `right`\n * - `bottom`\n * - `left`\n *\n * Each placement can have a variation from this list:\n * - `-start`\n * - `-end`\n *\n * Variations are interpreted easily if you think of them as the left to right\n * written languages. Horizontally (`top` and `bottom`), `start` is left and `end`\n * is right.<br />\n * Vertically (`left` and `right`), `start` is top and `end` is bottom.\n *\n * Some valid examples are:\n * - `top-end` (on top of reference, right aligned)\n * - `right-start` (on right of reference, top aligned)\n * - `bottom` (on bottom, centered)\n * - `auto-end` (on the side with more space available, alignment depends by placement)\n *\n * @static\n * @type {Array}\n * @enum {String}\n * @readonly\n * @method placements\n * @memberof Popper\n */\nvar placements = ['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'];\n\n// Get rid of `auto` `auto-start` and `auto-end`\nvar validPlacements = placements.slice(3);\n\n/**\n * Given an initial placement, returns all the subsequent placements\n * clockwise (or counter-clockwise).\n *\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement - A valid placement (it accepts variations)\n * @argument {Boolean} counter - Set to true to walk the placements counterclockwise\n * @returns {Array} placements including their variations\n */\nfunction clockwise(placement) {\n var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n var index = validPlacements.indexOf(placement);\n var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));\n return counter ? arr.reverse() : arr;\n}\n\nvar BEHAVIORS = {\n FLIP: 'flip',\n CLOCKWISE: 'clockwise',\n COUNTERCLOCKWISE: 'counterclockwise'\n};\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction flip(data, options) {\n // if `inner` modifier is enabled, we can't use the `flip` modifier\n if (isModifierEnabled(data.instance.modifiers, 'inner')) {\n return data;\n }\n\n if (data.flipped && data.placement === data.originalPlacement) {\n // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides\n return data;\n }\n\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);\n\n var placement = data.placement.split('-')[0];\n var placementOpposite = getOppositePlacement(placement);\n var variation = data.placement.split('-')[1] || '';\n\n var flipOrder = [];\n\n switch (options.behavior) {\n case BEHAVIORS.FLIP:\n flipOrder = [placement, placementOpposite];\n break;\n case BEHAVIORS.CLOCKWISE:\n flipOrder = clockwise(placement);\n break;\n case BEHAVIORS.COUNTERCLOCKWISE:\n flipOrder = clockwise(placement, true);\n break;\n default:\n flipOrder = options.behavior;\n }\n\n flipOrder.forEach(function (step, index) {\n if (placement !== step || flipOrder.length === index + 1) {\n return data;\n }\n\n placement = data.placement.split('-')[0];\n placementOpposite = getOppositePlacement(placement);\n\n var popperOffsets = data.offsets.popper;\n var refOffsets = data.offsets.reference;\n\n // using floor because the reference offsets may contain decimals we are not going to consider here\n var floor = Math.floor;\n var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);\n\n var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);\n var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);\n var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);\n var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);\n\n var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom;\n\n // flip the variation if required\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n\n // flips variation if reference element overflows boundaries\n var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom);\n\n // flips variation if popper content overflows boundaries\n var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);\n\n var flippedVariation = flippedVariationByRef || flippedVariationByContent;\n\n if (overlapsRef || overflowsBoundaries || flippedVariation) {\n // this boolean to detect any flip loop\n data.flipped = true;\n\n if (overlapsRef || overflowsBoundaries) {\n placement = flipOrder[index + 1];\n }\n\n if (flippedVariation) {\n variation = getOppositeVariation(variation);\n }\n\n data.placement = placement + (variation ? '-' + variation : '');\n\n // this object contains `position`, we want to preserve it along with\n // any additional property we may add in the future\n data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));\n\n data = runModifiers(data.instance.modifiers, data, 'flip');\n }\n });\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction keepTogether(data) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n\n var placement = data.placement.split('-')[0];\n var floor = Math.floor;\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n var side = isVertical ? 'right' : 'bottom';\n var opSide = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n\n if (popper[side] < floor(reference[opSide])) {\n data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement];\n }\n if (popper[opSide] > floor(reference[side])) {\n data.offsets.popper[opSide] = floor(reference[side]);\n }\n\n return data;\n}\n\n/**\n * Converts a string containing value + unit into a px value number\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} str - Value + unit string\n * @argument {String} measurement - `height` or `width`\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @returns {Number|String}\n * Value in pixels, or original string if no values were extracted\n */\nfunction toValue(str, measurement, popperOffsets, referenceOffsets) {\n // separate value from unit\n var split = str.match(/((?:\\-|\\+)?\\d*\\.?\\d*)(.*)/);\n var value = +split[1];\n var unit = split[2];\n\n // If it's not a number it's an operator, I guess\n if (!value) {\n return str;\n }\n\n if (unit.indexOf('%') === 0) {\n var element = void 0;\n switch (unit) {\n case '%p':\n element = popperOffsets;\n break;\n case '%':\n case '%r':\n default:\n element = referenceOffsets;\n }\n\n var rect = getClientRect(element);\n return rect[measurement] / 100 * value;\n } else if (unit === 'vh' || unit === 'vw') {\n // if is a vh or vw, we calculate the size based on the viewport\n var size = void 0;\n if (unit === 'vh') {\n size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n } else {\n size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);\n }\n return size / 100 * value;\n } else {\n // if is an explicit pixel unit, we get rid of the unit and keep the value\n // if is an implicit unit, it's px, and we return just the value\n return value;\n }\n}\n\n/**\n * Parse an `offset` string to extrapolate `x` and `y` numeric offsets.\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} offset\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @argument {String} basePlacement\n * @returns {Array} a two cells array with x and y offsets in numbers\n */\nfunction parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {\n var offsets = [0, 0];\n\n // Use height if placement is left or right and index is 0 otherwise use width\n // in this way the first offset will use an axis and the second one\n // will use the other one\n var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1;\n\n // Split the offset string to obtain a list of values and operands\n // The regex addresses values with the plus or minus sign in front (+10, -20, etc)\n var fragments = offset.split(/(\\+|\\-)/).map(function (frag) {\n return frag.trim();\n });\n\n // Detect if the offset string contains a pair of values or a single one\n // they could be separated by comma or space\n var divider = fragments.indexOf(find(fragments, function (frag) {\n return frag.search(/,|\\s/) !== -1;\n }));\n\n if (fragments[divider] && fragments[divider].indexOf(',') === -1) {\n console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');\n }\n\n // If divider is found, we divide the list of values and operands to divide\n // them by ofset X and Y.\n var splitRegex = /\\s*,\\s*|\\s+/;\n var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments];\n\n // Convert the values with units to absolute pixels to allow our computations\n ops = ops.map(function (op, index) {\n // Most of the units rely on the orientation of the popper\n var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';\n var mergeWithPrevious = false;\n return op\n // This aggregates any `+` or `-` sign that aren't considered operators\n // e.g.: 10 + +5 => [10, +, +5]\n .reduce(function (a, b) {\n if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {\n a[a.length - 1] = b;\n mergeWithPrevious = true;\n return a;\n } else if (mergeWithPrevious) {\n a[a.length - 1] += b;\n mergeWithPrevious = false;\n return a;\n } else {\n return a.concat(b);\n }\n }, [])\n // Here we convert the string values into number values (in px)\n .map(function (str) {\n return toValue(str, measurement, popperOffsets, referenceOffsets);\n });\n });\n\n // Loop trough the offsets arrays and execute the operations\n ops.forEach(function (op, index) {\n op.forEach(function (frag, index2) {\n if (isNumeric(frag)) {\n offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);\n }\n });\n });\n return offsets;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @argument {Number|String} options.offset=0\n * The offset value as described in the modifier description\n * @returns {Object} The data object, properly modified\n */\nfunction offset(data, _ref) {\n var offset = _ref.offset;\n var placement = data.placement,\n _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n\n var basePlacement = placement.split('-')[0];\n\n var offsets = void 0;\n if (isNumeric(+offset)) {\n offsets = [+offset, 0];\n } else {\n offsets = parseOffset(offset, popper, reference, basePlacement);\n }\n\n if (basePlacement === 'left') {\n popper.top += offsets[0];\n popper.left -= offsets[1];\n } else if (basePlacement === 'right') {\n popper.top += offsets[0];\n popper.left += offsets[1];\n } else if (basePlacement === 'top') {\n popper.left += offsets[0];\n popper.top -= offsets[1];\n } else if (basePlacement === 'bottom') {\n popper.left += offsets[0];\n popper.top += offsets[1];\n }\n\n data.popper = popper;\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction preventOverflow(data, options) {\n var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper);\n\n // If offsetParent is the reference element, we really want to\n // go one step up and use the next offsetParent as reference to\n // avoid to make this modifier completely useless and look like broken\n if (data.instance.reference === boundariesElement) {\n boundariesElement = getOffsetParent(boundariesElement);\n }\n\n // NOTE: DOM access here\n // resets the popper's position so that the document size can be calculated excluding\n // the size of the popper element itself\n var transformProp = getSupportedPropertyName('transform');\n var popperStyles = data.instance.popper.style; // assignment to help minification\n var top = popperStyles.top,\n left = popperStyles.left,\n transform = popperStyles[transformProp];\n\n popperStyles.top = '';\n popperStyles.left = '';\n popperStyles[transformProp] = '';\n\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed);\n\n // NOTE: DOM access here\n // restores the original style properties after the offsets have been computed\n popperStyles.top = top;\n popperStyles.left = left;\n popperStyles[transformProp] = transform;\n\n options.boundaries = boundaries;\n\n var order = options.priority;\n var popper = data.offsets.popper;\n\n var check = {\n primary: function primary(placement) {\n var value = popper[placement];\n if (popper[placement] < boundaries[placement] && !options.escapeWithReference) {\n value = Math.max(popper[placement], boundaries[placement]);\n }\n return defineProperty({}, placement, value);\n },\n secondary: function secondary(placement) {\n var mainSide = placement === 'right' ? 'left' : 'top';\n var value = popper[mainSide];\n if (popper[placement] > boundaries[placement] && !options.escapeWithReference) {\n value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height));\n }\n return defineProperty({}, mainSide, value);\n }\n };\n\n order.forEach(function (placement) {\n var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';\n popper = _extends({}, popper, check[side](placement));\n });\n\n data.offsets.popper = popper;\n\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction shift(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var shiftvariation = placement.split('-')[1];\n\n // if shift shiftvariation is specified, run the modifier\n if (shiftvariation) {\n var _data$offsets = data.offsets,\n reference = _data$offsets.reference,\n popper = _data$offsets.popper;\n\n var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;\n var side = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n\n var shiftOffsets = {\n start: defineProperty({}, side, reference[side]),\n end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])\n };\n\n data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);\n }\n\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction hide(data) {\n if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) {\n return data;\n }\n\n var refRect = data.offsets.reference;\n var bound = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'preventOverflow';\n }).boundaries;\n\n if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === true) {\n return data;\n }\n\n data.hide = true;\n data.attributes['x-out-of-boundaries'] = '';\n } else {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === false) {\n return data;\n }\n\n data.hide = false;\n data.attributes['x-out-of-boundaries'] = false;\n }\n\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction inner(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n\n var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;\n\n var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;\n\n popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);\n\n data.placement = getOppositePlacement(placement);\n data.offsets.popper = getClientRect(popper);\n\n return data;\n}\n\n/**\n * Modifier function, each modifier can have a function of this type assigned\n * to its `fn` property.<br />\n * These functions will be called on each update, this means that you must\n * make sure they are performant enough to avoid performance bottlenecks.\n *\n * @function ModifierFn\n * @argument {dataObject} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {dataObject} The data object, properly modified\n */\n\n/**\n * Modifiers are plugins used to alter the behavior of your poppers.<br />\n * Popper.js uses a set of 9 modifiers to provide all the basic functionalities\n * needed by the library.\n *\n * Usually you don't want to override the `order`, `fn` and `onLoad` props.\n * All the other properties are configurations that could be tweaked.\n * @namespace modifiers\n */\nvar modifiers = {\n /**\n * Modifier used to shift the popper on the start or end of its reference\n * element.<br />\n * It will read the variation of the `placement` property.<br />\n * It can be one either `-end` or `-start`.\n * @memberof modifiers\n * @inner\n */\n shift: {\n /** @prop {number} order=100 - Index used to define the order of execution */\n order: 100,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: shift\n },\n\n /**\n * The `offset` modifier can shift your popper on both its axis.\n *\n * It accepts the following units:\n * - `px` or unit-less, interpreted as pixels\n * - `%` or `%r`, percentage relative to the length of the reference element\n * - `%p`, percentage relative to the length of the popper element\n * - `vw`, CSS viewport width unit\n * - `vh`, CSS viewport height unit\n *\n * For length is intended the main axis relative to the placement of the popper.<br />\n * This means that if the placement is `top` or `bottom`, the length will be the\n * `width`. In case of `left` or `right`, it will be the `height`.\n *\n * You can provide a single value (as `Number` or `String`), or a pair of values\n * as `String` divided by a comma or one (or more) white spaces.<br />\n * The latter is a deprecated method because it leads to confusion and will be\n * removed in v2.<br />\n * Additionally, it accepts additions and subtractions between different units.\n * Note that multiplications and divisions aren't supported.\n *\n * Valid examples are:\n * ```\n * 10\n * '10%'\n * '10, 10'\n * '10%, 10'\n * '10 + 10%'\n * '10 - 5vh + 3%'\n * '-10px + 5vh, 5px - 6%'\n * ```\n * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap\n * > with their reference element, unfortunately, you will have to disable the `flip` modifier.\n * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).\n *\n * @memberof modifiers\n * @inner\n */\n offset: {\n /** @prop {number} order=200 - Index used to define the order of execution */\n order: 200,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: offset,\n /** @prop {Number|String} offset=0\n * The offset value as described in the modifier description\n */\n offset: 0\n },\n\n /**\n * Modifier used to prevent the popper from being positioned outside the boundary.\n *\n * A scenario exists where the reference itself is not within the boundaries.<br />\n * We can say it has \"escaped the boundaries\" — or just \"escaped\".<br />\n * In this case we need to decide whether the popper should either:\n *\n * - detach from the reference and remain \"trapped\" in the boundaries, or\n * - if it should ignore the boundary and \"escape with its reference\"\n *\n * When `escapeWithReference` is set to`true` and reference is completely\n * outside its boundaries, the popper will overflow (or completely leave)\n * the boundaries in order to remain attached to the edge of the reference.\n *\n * @memberof modifiers\n * @inner\n */\n preventOverflow: {\n /** @prop {number} order=300 - Index used to define the order of execution */\n order: 300,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: preventOverflow,\n /**\n * @prop {Array} [priority=['left','right','top','bottom']]\n * Popper will try to prevent overflow following these priorities by default,\n * then, it could overflow on the left and on top of the `boundariesElement`\n */\n priority: ['left', 'right', 'top', 'bottom'],\n /**\n * @prop {number} padding=5\n * Amount of pixel used to define a minimum distance between the boundaries\n * and the popper. This makes sure the popper always has a little padding\n * between the edges of its container\n */\n padding: 5,\n /**\n * @prop {String|HTMLElement} boundariesElement='scrollParent'\n * Boundaries used by the modifier. Can be `scrollParent`, `window`,\n * `viewport` or any DOM element.\n */\n boundariesElement: 'scrollParent'\n },\n\n /**\n * Modifier used to make sure the reference and its popper stay near each other\n * without leaving any gap between the two. Especially useful when the arrow is\n * enabled and you want to ensure that it points to its reference element.\n * It cares only about the first axis. You can still have poppers with margin\n * between the popper and its reference element.\n * @memberof modifiers\n * @inner\n */\n keepTogether: {\n /** @prop {number} order=400 - Index used to define the order of execution */\n order: 400,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: keepTogether\n },\n\n /**\n * This modifier is used to move the `arrowElement` of the popper to make\n * sure it is positioned between the reference element and its popper element.\n * It will read the outer size of the `arrowElement` node to detect how many\n * pixels of conjunction are needed.\n *\n * It has no effect if no `arrowElement` is provided.\n * @memberof modifiers\n * @inner\n */\n arrow: {\n /** @prop {number} order=500 - Index used to define the order of execution */\n order: 500,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: arrow,\n /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */\n element: '[x-arrow]'\n },\n\n /**\n * Modifier used to flip the popper's placement when it starts to overlap its\n * reference element.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n *\n * **NOTE:** this modifier will interrupt the current update cycle and will\n * restart it if it detects the need to flip the placement.\n * @memberof modifiers\n * @inner\n */\n flip: {\n /** @prop {number} order=600 - Index used to define the order of execution */\n order: 600,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: flip,\n /**\n * @prop {String|Array} behavior='flip'\n * The behavior used to change the popper's placement. It can be one of\n * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid\n * placements (with optional variations)\n */\n behavior: 'flip',\n /**\n * @prop {number} padding=5\n * The popper will flip if it hits the edges of the `boundariesElement`\n */\n padding: 5,\n /**\n * @prop {String|HTMLElement} boundariesElement='viewport'\n * The element which will define the boundaries of the popper position.\n * The popper will never be placed outside of the defined boundaries\n * (except if `keepTogether` is enabled)\n */\n boundariesElement: 'viewport',\n /**\n * @prop {Boolean} flipVariations=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the reference element overlaps its boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariations: false,\n /**\n * @prop {Boolean} flipVariationsByContent=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the popper element overlaps its reference boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariationsByContent: false\n },\n\n /**\n * Modifier used to make the popper flow toward the inner of the reference element.\n * By default, when this modifier is disabled, the popper will be placed outside\n * the reference element.\n * @memberof modifiers\n * @inner\n */\n inner: {\n /** @prop {number} order=700 - Index used to define the order of execution */\n order: 700,\n /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */\n enabled: false,\n /** @prop {ModifierFn} */\n fn: inner\n },\n\n /**\n * Modifier used to hide the popper when its reference element is outside of the\n * popper boundaries. It will set a `x-out-of-boundaries` attribute which can\n * be used to hide with a CSS selector the popper when its reference is\n * out of boundaries.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n * @memberof modifiers\n * @inner\n */\n hide: {\n /** @prop {number} order=800 - Index used to define the order of execution */\n order: 800,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: hide\n },\n\n /**\n * Computes the style that will be applied to the popper element to gets\n * properly positioned.\n *\n * Note that this modifier will not touch the DOM, it just prepares the styles\n * so that `applyStyle` modifier can apply it. This separation is useful\n * in case you need to replace `applyStyle` with a custom implementation.\n *\n * This modifier has `850` as `order` value to maintain backward compatibility\n * with previous versions of Popper.js. Expect the modifiers ordering method\n * to change in future major versions of the library.\n *\n * @memberof modifiers\n * @inner\n */\n computeStyle: {\n /** @prop {number} order=850 - Index used to define the order of execution */\n order: 850,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: computeStyle,\n /**\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: true,\n /**\n * @prop {string} [x='bottom']\n * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.\n * Change this if your popper should grow in a direction different from `bottom`\n */\n x: 'bottom',\n /**\n * @prop {string} [x='left']\n * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.\n * Change this if your popper should grow in a direction different from `right`\n */\n y: 'right'\n },\n\n /**\n * Applies the computed styles to the popper element.\n *\n * All the DOM manipulations are limited to this modifier. This is useful in case\n * you want to integrate Popper.js inside a framework or view library and you\n * want to delegate all the DOM manipulations to it.\n *\n * Note that if you disable this modifier, you must make sure the popper element\n * has its position set to `absolute` before Popper.js can do its work!\n *\n * Just disable this modifier and define your own to achieve the desired effect.\n *\n * @memberof modifiers\n * @inner\n */\n applyStyle: {\n /** @prop {number} order=900 - Index used to define the order of execution */\n order: 900,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: applyStyle,\n /** @prop {Function} */\n onLoad: applyStyleOnLoad,\n /**\n * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: undefined\n }\n};\n\n/**\n * The `dataObject` is an object containing all the information used by Popper.js.\n * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.\n * @name dataObject\n * @property {Object} data.instance The Popper.js instance\n * @property {String} data.placement Placement applied to popper\n * @property {String} data.originalPlacement Placement originally defined on init\n * @property {Boolean} data.flipped True if popper has been flipped by flip modifier\n * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper\n * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier\n * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.boundaries Offsets of the popper boundaries\n * @property {Object} data.offsets The measurements of popper, reference and arrow elements\n * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0\n */\n\n/**\n * Default options provided to Popper.js constructor.<br />\n * These can be overridden using the `options` argument of Popper.js.<br />\n * To override an option, simply pass an object with the same\n * structure of the `options` object, as the 3rd argument. For example:\n * ```\n * new Popper(ref, pop, {\n * modifiers: {\n * preventOverflow: { enabled: false }\n * }\n * })\n * ```\n * @type {Object}\n * @static\n * @memberof Popper\n */\nvar Defaults = {\n /**\n * Popper's placement.\n * @prop {Popper.placements} placement='bottom'\n */\n placement: 'bottom',\n\n /**\n * Set this to true if you want popper to position it self in 'fixed' mode\n * @prop {Boolean} positionFixed=false\n */\n positionFixed: false,\n\n /**\n * Whether events (resize, scroll) are initially enabled.\n * @prop {Boolean} eventsEnabled=true\n */\n eventsEnabled: true,\n\n /**\n * Set to true if you want to automatically remove the popper when\n * you call the `destroy` method.\n * @prop {Boolean} removeOnDestroy=false\n */\n removeOnDestroy: false,\n\n /**\n * Callback called when the popper is created.<br />\n * By default, it is set to no-op.<br />\n * Access Popper.js instance with `data.instance`.\n * @prop {onCreate}\n */\n onCreate: function onCreate() {},\n\n /**\n * Callback called when the popper is updated. This callback is not called\n * on the initialization/creation of the popper, but only on subsequent\n * updates.<br />\n * By default, it is set to no-op.<br />\n * Access Popper.js instance with `data.instance`.\n * @prop {onUpdate}\n */\n onUpdate: function onUpdate() {},\n\n /**\n * List of modifiers used to modify the offsets before they are applied to the popper.\n * They provide most of the functionalities of Popper.js.\n * @prop {modifiers}\n */\n modifiers: modifiers\n};\n\n/**\n * @callback onCreate\n * @param {dataObject} data\n */\n\n/**\n * @callback onUpdate\n * @param {dataObject} data\n */\n\n// Utils\n// Methods\nvar Popper = function () {\n /**\n * Creates a new Popper.js instance.\n * @class Popper\n * @param {Element|referenceObject} reference - The reference element used to position the popper\n * @param {Element} popper - The HTML / XML element used as the popper\n * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)\n * @return {Object} instance - The generated Popper.js instance\n */\n function Popper(reference, popper) {\n var _this = this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n classCallCheck(this, Popper);\n\n this.scheduleUpdate = function () {\n return requestAnimationFrame(_this.update);\n };\n\n // make update() debounced, so that it only runs at most once-per-tick\n this.update = debounce(this.update.bind(this));\n\n // with {} we create a new object with the options inside it\n this.options = _extends({}, Popper.Defaults, options);\n\n // init state\n this.state = {\n isDestroyed: false,\n isCreated: false,\n scrollParents: []\n };\n\n // get reference and popper elements (allow jQuery wrappers)\n this.reference = reference && reference.jquery ? reference[0] : reference;\n this.popper = popper && popper.jquery ? popper[0] : popper;\n\n // Deep merge modifiers options\n this.options.modifiers = {};\n Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {\n _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});\n });\n\n // Refactoring modifiers' list (Object => Array)\n this.modifiers = Object.keys(this.options.modifiers).map(function (name) {\n return _extends({\n name: name\n }, _this.options.modifiers[name]);\n })\n // sort the modifiers by order\n .sort(function (a, b) {\n return a.order - b.order;\n });\n\n // modifiers have the ability to execute arbitrary code when Popper.js get inited\n // such code is executed in the same order of its modifier\n // they could add new properties to their options configuration\n // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!\n this.modifiers.forEach(function (modifierOptions) {\n if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {\n modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);\n }\n });\n\n // fire the first update to position the popper in the right place\n this.update();\n\n var eventsEnabled = this.options.eventsEnabled;\n if (eventsEnabled) {\n // setup event listeners, they will take care of update the position in specific situations\n this.enableEventListeners();\n }\n\n this.state.eventsEnabled = eventsEnabled;\n }\n\n // We can't use class properties because they don't get listed in the\n // class prototype and break stuff like Sinon stubs\n\n\n createClass(Popper, [{\n key: 'update',\n value: function update$$1() {\n return update.call(this);\n }\n }, {\n key: 'destroy',\n value: function destroy$$1() {\n return destroy.call(this);\n }\n }, {\n key: 'enableEventListeners',\n value: function enableEventListeners$$1() {\n return enableEventListeners.call(this);\n }\n }, {\n key: 'disableEventListeners',\n value: function disableEventListeners$$1() {\n return disableEventListeners.call(this);\n }\n\n /**\n * Schedules an update. It will run on the next UI update available.\n * @method scheduleUpdate\n * @memberof Popper\n */\n\n\n /**\n * Collection of utilities useful when writing custom modifiers.\n * Starting from version 1.7, this method is available only if you\n * include `popper-utils.js` before `popper.js`.\n *\n * **DEPRECATION**: This way to access PopperUtils is deprecated\n * and will be removed in v2! Use the PopperUtils module directly instead.\n * Due to the high instability of the methods contained in Utils, we can't\n * guarantee them to follow semver. Use them at your own risk!\n * @static\n * @private\n * @type {Object}\n * @deprecated since version 1.8\n * @member Utils\n * @memberof Popper\n */\n\n }]);\n return Popper;\n}();\n\n/**\n * The `referenceObject` is an object that provides an interface compatible with Popper.js\n * and lets you use it as replacement of a real DOM node.<br />\n * You can use this method to position a popper relatively to a set of coordinates\n * in case you don't have a DOM node to use as reference.\n *\n * ```\n * new Popper(referenceObject, popperNode);\n * ```\n *\n * NB: This feature isn't supported in Internet Explorer 10.\n * @name referenceObject\n * @property {Function} data.getBoundingClientRect\n * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.\n * @property {number} data.clientWidth\n * An ES6 getter that will return the width of the virtual reference element.\n * @property {number} data.clientHeight\n * An ES6 getter that will return the height of the virtual reference element.\n */\n\n\nPopper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;\nPopper.placements = placements;\nPopper.Defaults = Defaults;\n\nexport default Popper;\n//# sourceMappingURL=popper.js.map\n","/**!\n* tippy.js v5.0.0-beta.0\n* (c) 2017-2019 atomiks\n* MIT License\n*/\nimport { h as hasOwnProperty, d as defaultProps, i as includes, e as evaluateProps, a as debounce, c as createPopperElement, g as getChildren, b as closestCallback, f as isCursorOutsideInteractiveBorder, j as getBasePlacement, k as getModifier, _ as _extends, P as PREVENT_OVERFLOW_PADDING, p as preserveInvocation, r as reflow, l as getValueAtIndexOrReturn, m as PASSIVE, n as currentInput, o as isIE, s as setFlipModifierEnabled, N as NON_UPDATEABLE_PROPS, u as updatePopperElement, q as POPPER_INSTANCE_DEPENDENCIES, t as setTransitionDuration, v as setVisibilityState, w as updateTransitionEndListener, x as invokeWithArgsOrReturn, y as bindGlobalEventListeners, z as getArrayOfElements, A as isRealElement, B as arrayFrom, C as POPPER_SELECTOR, D as isReferenceElement, E as isBrowser } from './tippy.chunk.js';\nimport Popper from 'popper.js';\n\nvar version = \"5.0.0-beta.0\";\n\n/**\n * Helpful wrapper around `console.warn()`.\n * TODO: Should we use a cache so it only warns a single time and not spam the\n * console? (Need to consider hot reloading and invalidation though). Chrome\n * already batches warnings as well.\n */\n\nfunction warnWhen(condition, message) {\n if (condition) {\n /* eslint-disable-next-line no-console */\n console.warn(\"[tippy.js WARNING] \" + message);\n }\n}\n/**\n * Helpful wrapper around thrown errors\n */\n\nfunction throwErrorWhen(condition, message) {\n if (condition) {\n throw new Error(\"[tippy.js ERROR] \" + message);\n }\n}\n/**\n * Validates props with the valid `defaultProps` object\n */\n\nfunction validateProps(partialProps) {\n if (partialProps === void 0) {\n partialProps = {};\n }\n\n Object.keys(partialProps).forEach(function (prop) {\n var value = partialProps[prop];\n var didPassTargetProp = prop === 'target';\n var didPassA11yProp = prop === 'a11y';\n var didPassShowOnInitProp = prop === 'showOnInit';\n var didPassArrowTypeProp = prop === 'arrowType';\n var didPassTouchHoldProp = prop === 'touchHold';\n var didPassSizeProp = prop === 'size';\n var didPassGoogleTheme = prop === 'theme' && value === 'google';\n var didSpecifyPlacementInPopperOptions = prop === 'popperOptions' && value && hasOwnProperty(value, 'placement');\n var didPassOtherUnknownProp = !hasOwnProperty(defaultProps, prop) && !didPassTargetProp && !didPassA11yProp && !didPassShowOnInitProp && !includes(['followCursor'], prop);\n warnWhen(didPassTargetProp, 'The `target` prop was removed in v5 and ' + 'replaced with the `delegate()` method. Read more here: ' + 'https//atomiks.github.io/tippyjs/addons#event-delegation');\n warnWhen(didPassA11yProp, 'The `a11y` prop was removed in v5. Make ' + 'sure the element you are giving a tippy to is natively ' + 'focusable, such as <button> or <input>, not <div> or <span>.');\n warnWhen(didPassShowOnInitProp, 'The `showOnInit` prop was renamed to `showOnCreate` in v5.');\n warnWhen(didPassArrowTypeProp, 'The `arrowType` prop was removed in v5 ' + 'in favor of overloading the `arrow` prop. Specify ' + '`arrow: \"' + value + '\"` instead.');\n warnWhen(didPassTouchHoldProp, 'The `touchHold` prop was removed in v5 in favor of overloading the ' + '`touch` prop. Specify `touch: \"hold\"` instead.');\n warnWhen(didPassSizeProp, 'The `size` prop was removed in v5. Instead, use a theme that ' + 'specifies `font-size` and `padding` CSS properties.');\n warnWhen(didPassOtherUnknownProp, '`' + prop + '` is not a valid prop. You ' + 'may have spelled it incorrectly. View all of the valid props ' + 'here: https://atomiks.github.io/tippyjs/all-props/');\n warnWhen(didPassGoogleTheme, 'The included theme `google` was renamed to `material` in v5.');\n warnWhen(didSpecifyPlacementInPopperOptions, 'Specifying `placement` in `popperOptions` is not supported. Use the ' + 'base-level `placement` prop instead.');\n });\n}\n/**\n * Validates the `targets` value passed to `tippy()`\n */\n\nfunction validateTargets(targets) {\n var didPassFalsyValue = !targets;\n var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;\n throwErrorWhen(didPassFalsyValue, '`tippy()` was passed `' + targets + '` (an invalid falsy value) as its targets argument. Valid types are: ' + 'String (CSS selector), Element, Element[], or NodeList.');\n throwErrorWhen(didPassPlainObject, '`tippy()` was passed a plain object (virtual ' + 'reference element) which is no longer supported in v5. Instead, pass ' + 'a placeholder element like `document.createElement(\"div\")`');\n}\n/**\n * Ensures the instance has been configured with the extra prop's functionality\n * if the user is specifying it as a prop\n */\n\nfunction validateExtraPropsFunctionality(instance, partialProps) {\n if (partialProps === void 0) {\n partialProps = {};\n }\n\n var extraProps = ['followCursor'];\n extraProps.forEach(function (prop) {\n if (hasOwnProperty(partialProps, prop) && !instance.__extraProps__[prop]) {\n var didPassFollowCursor = prop === 'followCursor';\n var didPassOtherExtraProp = !didPassFollowCursor;\n warnWhen(didPassFollowCursor, 'The `followCursor` prop was specified, but the instance has not ' + 'been configured with followCursor functionality. In v5, ' + '`followCursor` was moved to `extra-props`. View details: ' + 'https://atomiks.github.io/tippyjs/extra-props/');\n warnWhen(didPassOtherExtraProp, 'The `' + prop + '` prop was specified, but the instance has not been configured ' + 'with ' + prop + ' functionality. View details: ' + 'https://atomiks.github.io/tippyjs/extra-props/');\n }\n });\n}\n\nvar idCounter = 1; // Workaround for IE11's lack of new MouseEvent constructor\n\nvar mouseMoveListeners = [];\n/**\n * Creates and returns a Tippy object. We're using a closure pattern instead of\n * a class so that the exposed object API is clean without private members\n * prefixed with `_`.\n */\n\nfunction createTippy(reference, collectionProps) {\n var props = evaluateProps(reference, collectionProps); // If the reference shouldn't have multiple tippys, return null early\n\n if (!props.multiple && reference._tippy) {\n return null;\n }\n /* ======================= 🔒 Private members 🔒 ======================= */\n\n\n var lastTriggerEventType;\n var showTimeout;\n var hideTimeout;\n var scheduleHideAnimationFrame;\n var isBeingDestroyed = false;\n var hasMountCallbackRun = false;\n var didHideDueToDocumentMouseDown = false;\n var currentMountCallback;\n var currentTransitionEndListener;\n var listeners = [];\n var debouncedOnMouseMove = debounce(onMouseMove, props.interactiveDebounce);\n /* ======================= 🔑 Public members 🔑 ======================= */\n\n var id = idCounter++;\n var popper = createPopperElement(id, props);\n var popperChildren = getChildren(popper);\n var popperInstance = null; // These two elements are static\n\n var tooltip = popperChildren.tooltip,\n content = popperChildren.content;\n var state = {\n // The current real placement (`data-placement` attribute)\n currentPlacement: props.placement,\n // Does the instance have a pending timeout for show()?\n isScheduledToShow: false,\n // Is the instance currently enabled?\n isEnabled: true,\n // Is the tippy currently showing and not transitioning out?\n isVisible: false,\n // Has the instance been destroyed?\n isDestroyed: false,\n // Is the tippy currently mounted to the DOM?\n isMounted: false,\n // Has the tippy finished transitioning in?\n isShown: false\n };\n var instance = {\n // properties\n id: id,\n reference: reference,\n popper: popper,\n popperChildren: popperChildren,\n popperInstance: popperInstance,\n props: props,\n state: state,\n // methods\n clearDelayTimeouts: clearDelayTimeouts,\n setProps: setProps,\n setContent: setContent,\n show: show,\n hide: hide,\n enable: enable,\n disable: disable,\n destroy: destroy\n };\n\n if (process.env.NODE_ENV !== \"production\") {\n Object.defineProperty(instance, 'set', {\n value: function value() {\n warnWhen(true, '`set()` was renamed to `setProps()` in v5.');\n },\n enumerable: false\n });\n Object.defineProperty(instance, '__extraProps__', {\n value: {},\n enumerable: false\n });\n }\n /* ==================== Initial instance mutations =================== */\n\n\n reference._tippy = instance;\n popper._tippy = instance;\n addTriggersToEventListenersTarget();\n\n if (!props.lazy) {\n createPopperInstance();\n }\n\n if (props.showOnCreate) {\n scheduleShow();\n } // Prevent a tippy with a delay from hiding if the cursor left then returned\n // before it started hiding\n\n\n popper.addEventListener('mouseenter', function () {\n if (instance.props.interactive && instance.state.isVisible && lastTriggerEventType === 'mouseenter') {\n instance.clearDelayTimeouts();\n }\n });\n popper.addEventListener('mouseleave', function () {\n if (instance.props.interactive && lastTriggerEventType === 'mouseenter') {\n document.addEventListener('mousemove', debouncedOnMouseMove);\n }\n });\n props.onCreate(instance);\n return instance;\n /* ======================= 🔒 Private methods 🔒 ======================= */\n\n function getNormalizedTouchSettings() {\n var touch = instance.props.touch;\n return Array.isArray(touch) ? touch : [touch, 0];\n }\n\n function getIsCustomTouchBehavior() {\n return getNormalizedTouchSettings()[0] === 'hold';\n }\n\n function getTransitionableElements() {\n return [tooltip, content, instance.popperChildren.backdrop];\n }\n\n function getEventListenersTarget() {\n return instance.props.triggerTarget || reference;\n }\n\n function cleanupInteractiveMouseListeners() {\n document.body.removeEventListener('mouseleave', scheduleHide);\n document.removeEventListener('mousemove', debouncedOnMouseMove);\n mouseMoveListeners = mouseMoveListeners.filter(function (listener) {\n return listener !== debouncedOnMouseMove;\n });\n }\n\n function onDocumentMouseDown(event) {\n // Clicked on interactive popper\n if (instance.props.interactive && popper.contains(event.target)) {\n return;\n } // Clicked on the event listeners target\n\n\n if (getEventListenersTarget().contains(event.target)) {\n if (currentInput.isTouch) {\n return;\n }\n\n if (instance.state.isVisible && includes(instance.props.trigger, 'click')) {\n return;\n }\n }\n\n if (instance.props.hideOnClick === true) {\n instance.clearDelayTimeouts();\n instance.hide(); // `mousedown` event is fired right before `focus`. This lets a tippy with\n // `focus` trigger know that it should not show\n\n didHideDueToDocumentMouseDown = true;\n setTimeout(function () {\n didHideDueToDocumentMouseDown = false;\n }); // The listener gets added in `scheduleShow()`, but this may be hiding it\n // before it shows, and hide()'s early bail-out behavior can prevent it\n // from being cleaned up\n\n if (!instance.state.isMounted) {\n removeDocumentMouseDownListener();\n }\n }\n }\n\n function addDocumentMouseDownListener() {\n document.addEventListener('mousedown', onDocumentMouseDown, true);\n }\n\n function removeDocumentMouseDownListener() {\n document.removeEventListener('mousedown', onDocumentMouseDown, true);\n }\n\n function makeSticky() {\n setTransitionDuration([popper], isIE ? 0 : instance.props.updateDuration);\n var prevRefRect = reference.getBoundingClientRect();\n\n function updatePosition() {\n var currentRefRect = reference.getBoundingClientRect(); // Only schedule an update if the reference rect has changed\n\n if (prevRefRect.top !== currentRefRect.top || prevRefRect.right !== currentRefRect.right || prevRefRect.bottom !== currentRefRect.bottom || prevRefRect.left !== currentRefRect.left) {\n instance.popperInstance.scheduleUpdate();\n }\n\n prevRefRect = currentRefRect;\n\n if (instance.state.isMounted) {\n requestAnimationFrame(updatePosition);\n }\n }\n\n updatePosition();\n }\n\n function onTransitionedOut(duration, callback) {\n onTransitionEnd(duration, function () {\n if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) {\n callback();\n }\n });\n }\n\n function onTransitionedIn(duration, callback) {\n onTransitionEnd(duration, callback);\n }\n\n function onTransitionEnd(duration, callback) {\n /**\n * Listener added as the `transitionend` handler\n */\n function listener(event) {\n if (event.target === tooltip) {\n updateTransitionEndListener(tooltip, 'remove', listener);\n callback();\n }\n } // Make callback synchronous if duration is 0\n // `transitionend` won't fire otherwise\n\n\n if (duration === 0) {\n return callback();\n }\n\n updateTransitionEndListener(tooltip, 'remove', currentTransitionEndListener);\n updateTransitionEndListener(tooltip, 'add', listener);\n currentTransitionEndListener = listener;\n }\n\n function on(eventType, handler, options) {\n if (options === void 0) {\n options = false;\n }\n\n getEventListenersTarget().addEventListener(eventType, handler, options);\n listeners.push({\n eventType: eventType,\n handler: handler,\n options: options\n });\n }\n\n function addTriggersToEventListenersTarget() {\n if (getIsCustomTouchBehavior()) {\n on('touchstart', onTrigger, PASSIVE);\n on('touchend', onMouseLeave, PASSIVE);\n } // `click` for keyboard. Mouse uses `mousedown` (onDocumentMouseDown)\n\n\n if (!includes(instance.props.trigger, 'click')) {\n on('click', function () {\n if (!currentInput.isTouch && instance.props.hideOnClick === true) {\n instance.hide();\n }\n });\n }\n\n instance.props.trigger.trim().split(' ').forEach(function (eventType) {\n if (eventType === 'manual') {\n return;\n }\n\n on(eventType, onTrigger);\n\n switch (eventType) {\n case 'mouseenter':\n on('mouseleave', onMouseLeave);\n break;\n\n case 'focus':\n on(isIE ? 'focusout' : 'blur', onBlur);\n break;\n }\n });\n }\n\n function removeTriggersFromEventListenersTarget() {\n listeners.forEach(function (_ref) {\n var eventType = _ref.eventType,\n handler = _ref.handler,\n options = _ref.options;\n getEventListenersTarget().removeEventListener(eventType, handler, options);\n });\n listeners = [];\n }\n\n function onTrigger(event) {\n if (didHideDueToDocumentMouseDown || !instance.state.isEnabled || isEventListenerStopped(event)) {\n return;\n }\n\n if (!instance.state.isVisible) {\n lastTriggerEventType = event.type;\n\n if (event instanceof MouseEvent) {\n // If scrolling, `mouseenter` events can be fired if the cursor lands\n // over a new target, but `mousemove` events don't get fired. This\n // causes interactive tooltips to get stuck open until the cursor is\n // moved\n mouseMoveListeners.forEach(function (listener) {\n return listener(event);\n });\n }\n } // Toggle show/hide when clicking click-triggered tooltips\n\n\n if (event.type === 'click' && instance.props.hideOnClick !== false && instance.state.isVisible) {\n scheduleHide(event);\n } else {\n var _getNormalizedTouchSe = getNormalizedTouchSettings(),\n value = _getNormalizedTouchSe[0],\n duration = _getNormalizedTouchSe[1];\n\n if (currentInput.isTouch && value === 'hold' && duration) {\n // We can hijack the show timeout here, it will be cleared by\n // `scheduleHide()` when necessary\n showTimeout = setTimeout(function () {\n scheduleShow(event);\n }, duration);\n } else {\n scheduleShow(event);\n }\n }\n }\n\n function onMouseMove(event) {\n var isCursorOverReferenceOrPopper = closestCallback(event.target, function (el) {\n return el === reference || el === popper;\n });\n\n if (isCursorOverReferenceOrPopper) {\n return;\n }\n\n if (isCursorOutsideInteractiveBorder(getBasePlacement(instance.state.currentPlacement), popper.getBoundingClientRect(), event, instance.props)) {\n cleanupInteractiveMouseListeners();\n scheduleHide(event);\n }\n }\n\n function onMouseLeave(event) {\n if (isEventListenerStopped(event)) {\n return;\n }\n\n if (instance.props.interactive) {\n document.body.addEventListener('mouseleave', scheduleHide);\n document.addEventListener('mousemove', debouncedOnMouseMove);\n mouseMoveListeners.push(debouncedOnMouseMove);\n return;\n }\n\n scheduleHide(event);\n }\n\n function onBlur(event) {\n if (event.target !== getEventListenersTarget()) {\n return;\n } // If focus was moved to within the popper\n\n\n if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {\n return;\n }\n\n scheduleHide(event);\n }\n\n function isEventListenerStopped(event) {\n var supportsTouch = 'ontouchstart' in window;\n var isTouchEvent = includes(event.type, 'touch');\n var isCustomTouch = getIsCustomTouchBehavior();\n return supportsTouch && currentInput.isTouch && isCustomTouch && !isTouchEvent || currentInput.isTouch && !isCustomTouch && isTouchEvent;\n }\n\n function createPopperInstance() {\n var popperOptions = instance.props.popperOptions;\n var arrow = instance.popperChildren.arrow;\n var preventOverflowModifier = getModifier(popperOptions, 'preventOverflow');\n\n function applyMutations(data) {\n instance.state.currentPlacement = data.placement;\n\n if (instance.props.flip && !instance.props.flipOnUpdate) {\n if (data.flipped) {\n instance.popperInstance.options.placement = data.placement;\n }\n\n setFlipModifierEnabled(instance.popperInstance.modifiers, false);\n }\n\n tooltip.setAttribute('data-placement', data.placement);\n\n if (data.attributes['x-out-of-boundaries'] !== false) {\n tooltip.setAttribute('data-out-of-boundaries', '');\n } else {\n tooltip.removeAttribute('data-out-of-boundaries');\n }\n\n var basePlacement = getBasePlacement(data.placement);\n var isVerticalPlacement = includes(['top', 'bottom'], basePlacement);\n var isSecondaryPlacement = includes(['bottom', 'right'], basePlacement); // Apply `distance` prop\n\n var tooltipStyles = tooltip.style;\n tooltipStyles.top = '0';\n tooltipStyles.left = '0';\n tooltipStyles[isVerticalPlacement ? 'top' : 'left'] = (isSecondaryPlacement ? 1 : -1) * instance.props.distance + \"px\";\n }\n\n var config = _extends({\n eventsEnabled: false,\n placement: instance.props.placement\n }, popperOptions, {\n modifiers: _extends({}, popperOptions && popperOptions.modifiers, {\n preventOverflow: _extends({\n boundariesElement: instance.props.boundary,\n padding: PREVENT_OVERFLOW_PADDING\n }, preventOverflowModifier),\n // Adds the `distance` calculation to preventOverflow padding\n tippySetPreventOverflowPadding: {\n enabled: true,\n order: 299,\n fn: function fn(data) {\n var basePlacement = getBasePlacement(data.placement);\n var padding = preventOverflowModifier && preventOverflowModifier.padding !== undefined ? preventOverflowModifier.padding : PREVENT_OVERFLOW_PADDING;\n var isPaddingNumber = typeof padding === 'number';\n var paddingObject = {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0\n };\n var computedPadding = Object.keys(paddingObject).reduce(function (obj, key) {\n obj[key] = isPaddingNumber ? padding : padding[key];\n\n if (basePlacement === key) {\n obj[key] = isPaddingNumber ? padding + instance.props.distance : (padding[basePlacement] || 0) + instance.props.distance;\n }\n\n return obj;\n }, paddingObject);\n instance.popperInstance.modifiers.filter(function (m) {\n return m.name === 'preventOverflow';\n })[0].padding = computedPadding;\n return data;\n }\n },\n arrow: _extends({\n element: arrow,\n enabled: !!arrow\n }, getModifier(popperOptions, 'arrow')),\n flip: _extends({\n enabled: instance.props.flip,\n padding: instance.props.distance + PREVENT_OVERFLOW_PADDING,\n behavior: instance.props.flipBehavior\n }, getModifier(popperOptions, 'flip')),\n offset: _extends({\n offset: instance.props.offset\n }, getModifier(popperOptions, 'offset'))\n }),\n onCreate: function onCreate(data) {\n applyMutations(data);\n preserveInvocation(popperOptions && popperOptions.onCreate, config.onCreate, [data]);\n runMountCallback();\n },\n onUpdate: function onUpdate(data) {\n applyMutations(data);\n preserveInvocation(popperOptions && popperOptions.onUpdate, config.onUpdate, [data]);\n runMountCallback();\n }\n });\n\n instance.popperInstance = new Popper(reference, popper, config);\n }\n\n function runMountCallback() {\n if (!hasMountCallbackRun && currentMountCallback) {\n hasMountCallbackRun = true;\n reflow(popper);\n currentMountCallback();\n }\n }\n\n function mount() {\n // The mounting callback (`currentMountCallback`) is only run due to a\n // popperInstance update/create\n hasMountCallbackRun = false;\n var appendTo = instance.props.appendTo;\n var parentNode = appendTo === 'parent' ? reference.parentNode : invokeWithArgsOrReturn(appendTo, [reference]); // The popper element needs to exist on the DOM before its position can be\n // updated as Popper.js needs to read its dimensions\n\n if (!parentNode.contains(popper)) {\n parentNode.appendChild(popper);\n }\n\n if (instance.popperInstance) {\n setFlipModifierEnabled(instance.popperInstance.modifiers, instance.props.flip);\n instance.popperInstance.enableEventListeners(); // Mounting callback invoked in `onUpdate`\n\n instance.popperInstance.scheduleUpdate();\n } else {\n // Mounting callback invoked in `onCreate`\n createPopperInstance();\n instance.popperInstance.enableEventListeners();\n }\n }\n\n function scheduleShow(event) {\n instance.clearDelayTimeouts();\n instance.state.isScheduledToShow = true;\n\n if (!instance.popperInstance) {\n createPopperInstance();\n }\n\n if (event) {\n instance.props.onTrigger(instance, event);\n }\n\n addDocumentMouseDownListener();\n var delay = getValueAtIndexOrReturn(instance.props.delay, 0, defaultProps.delay);\n\n if (delay) {\n showTimeout = setTimeout(function () {\n instance.show();\n }, delay);\n } else {\n instance.show();\n }\n }\n\n function scheduleHide(event) {\n instance.clearDelayTimeouts();\n instance.props.onUntrigger(instance, event);\n\n if (!instance.state.isVisible) {\n removeDocumentMouseDownListener();\n return;\n }\n\n instance.state.isScheduledToShow = false;\n var delay = getValueAtIndexOrReturn(instance.props.delay, 1, defaultProps.delay);\n\n if (delay) {\n hideTimeout = setTimeout(function () {\n if (instance.state.isVisible) {\n instance.hide();\n }\n }, delay);\n } else {\n // Fixes a `transitionend` problem when it fires 1 frame too\n // late sometimes, we don't want hide() to be called.\n scheduleHideAnimationFrame = requestAnimationFrame(function () {\n instance.hide();\n });\n }\n }\n /* ======================= 🔑 Public methods 🔑 ======================= */\n\n\n function enable() {\n instance.state.isEnabled = true;\n }\n\n function disable() {\n instance.state.isEnabled = false;\n }\n\n function clearDelayTimeouts() {\n clearTimeout(showTimeout);\n clearTimeout(hideTimeout);\n cancelAnimationFrame(scheduleHideAnimationFrame);\n } // Cloning as we're deleting non-updateable props in DEV mode\n\n\n function setProps(_ref2) {\n var partialProps = _extends({}, _ref2);\n\n if (process.env.NODE_ENV !== \"production\") {\n warnWhen(instance.state.isDestroyed, '`setProps()` was called on a destroyed instance. ' + 'This is a no-op but indicates a potential memory leak.');\n }\n\n if (instance.state.isDestroyed) {\n return;\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n validateProps(partialProps);\n validateExtraPropsFunctionality(instance, partialProps);\n NON_UPDATEABLE_PROPS.forEach(function (prop) {\n if (hasOwnProperty(partialProps, prop)) {\n delete partialProps[prop];\n warnWhen(true, 'Cannot update `' + prop + '` prop. Destroy this instance and create a new instance instead.');\n }\n });\n }\n\n removeTriggersFromEventListenersTarget();\n var prevProps = instance.props;\n var nextProps = evaluateProps(reference, _extends({}, instance.props, {}, partialProps, {\n ignoreAttributes: true\n }));\n nextProps.ignoreAttributes = hasOwnProperty(partialProps, 'ignoreAttributes') ? partialProps.ignoreAttributes || false : prevProps.ignoreAttributes;\n instance.props = nextProps;\n addTriggersToEventListenersTarget();\n cleanupInteractiveMouseListeners();\n debouncedOnMouseMove = debounce(onMouseMove, nextProps.interactiveDebounce);\n updatePopperElement(popper, prevProps, nextProps, instance.state.isVisible);\n instance.popperChildren = getChildren(popper);\n\n if (instance.popperInstance) {\n if (POPPER_INSTANCE_DEPENDENCIES.some(function (prop) {\n return hasOwnProperty(partialProps, prop) && partialProps[prop] !== prevProps[prop];\n })) {\n instance.popperInstance.destroy();\n createPopperInstance();\n\n if (instance.state.isVisible) {\n instance.popperInstance.enableEventListeners();\n }\n } else {\n instance.popperInstance.update();\n }\n }\n }\n\n function setContent(content) {\n instance.setProps({\n content: content\n });\n }\n\n function show(duration, shouldPreventPopperTransition) {\n if (duration === void 0) {\n duration = getValueAtIndexOrReturn(instance.props.duration, 0, defaultProps.duration);\n }\n\n if (shouldPreventPopperTransition === void 0) {\n shouldPreventPopperTransition = true;\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n warnWhen(instance.state.isDestroyed, '`show()` was called on a destroyed instance. ' + 'This is a no-op but indicates a potential memory leak.');\n } // Early bail-out\n\n\n var isAlreadyVisible = instance.state.isVisible;\n var isDestroyed = instance.state.isDestroyed;\n var isDisabled = !instance.state.isEnabled;\n var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;\n\n if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {\n return;\n } // Normalize `disabled` behavior across browsers.\n // Firefox allows events on disabled elements, but Chrome doesn't.\n // Using a wrapper element (i.e. <span>) is recommended.\n\n\n if (getEventListenersTarget().hasAttribute('disabled')) {\n return;\n }\n\n if (instance.props.onShow(instance) === false) {\n return;\n }\n\n addDocumentMouseDownListener();\n popper.style.visibility = 'visible';\n instance.state.isVisible = true; // Prevent a transition of the popper from its previous position and of the\n // elements at a different placement.\n\n var transitionableElements = getTransitionableElements();\n setTransitionDuration(shouldPreventPopperTransition ? transitionableElements.concat(popper) : transitionableElements, 0);\n\n currentMountCallback = function currentMountCallback() {\n if (!instance.state.isVisible) {\n return;\n } // Double update will apply correct mutations\n\n\n instance.popperInstance.update();\n instance.props.onMount(instance);\n instance.state.isMounted = true; // The content should fade in after the backdrop has mostly filled the\n // tooltip element. `clip-path` is the other alternative but is not well-\n // supported and is buggy on some devices.\n\n content.style.transitionDelay = instance.popperChildren.backdrop ? Math.round(duration / 12) + \"ms\" : '';\n\n if (instance.props.sticky) {\n makeSticky();\n }\n\n setTransitionDuration([popper], instance.props.updateDuration);\n setTransitionDuration(transitionableElements, duration);\n setVisibilityState(transitionableElements, 'visible');\n onTransitionedIn(duration, function () {\n if (instance.props.aria) {\n getEventListenersTarget().setAttribute(\"aria-\" + instance.props.aria, tooltip.id);\n }\n\n instance.props.onShown(instance);\n instance.state.isShown = true;\n });\n };\n\n mount();\n }\n\n function hide(duration) {\n if (duration === void 0) {\n duration = getValueAtIndexOrReturn(instance.props.duration, 1, defaultProps.duration);\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n warnWhen(instance.state.isDestroyed, '`hide()` was called on a destroyed instance. ' + 'This is a no-op but indicates a potential memory leak.');\n } // Early bail-out\n\n\n var isAlreadyHidden = !instance.state.isVisible && !isBeingDestroyed;\n var isDestroyed = instance.state.isDestroyed;\n var isDisabled = !instance.state.isEnabled && !isBeingDestroyed;\n\n if (isAlreadyHidden || isDestroyed || isDisabled) {\n return;\n }\n\n if (instance.props.onHide(instance) === false && !isBeingDestroyed) {\n return;\n }\n\n removeDocumentMouseDownListener();\n popper.style.visibility = 'hidden';\n instance.state.isVisible = false;\n instance.state.isShown = false;\n var transitionableElements = getTransitionableElements();\n setTransitionDuration(transitionableElements, duration);\n setVisibilityState(transitionableElements, 'hidden');\n onTransitionedOut(duration, function () {\n if (instance.props.aria) {\n getEventListenersTarget().removeAttribute(\"aria-\" + instance.props.aria);\n }\n\n instance.popperInstance.disableEventListeners();\n instance.popperInstance.options.placement = instance.props.placement;\n popper.parentNode.removeChild(popper);\n instance.props.onHidden(instance);\n instance.state.isMounted = false;\n });\n }\n\n function destroy() {\n if (process.env.NODE_ENV !== \"production\") {\n warnWhen(instance.state.isDestroyed, '`destroy()` was called on an already-destroyed ' + 'instance. This is a no-op but indicates a potential memory leak.');\n }\n\n if (instance.state.isDestroyed) {\n return;\n }\n\n isBeingDestroyed = true;\n instance.hide(0);\n removeTriggersFromEventListenersTarget();\n delete reference._tippy;\n\n if (instance.popperInstance) {\n instance.popperInstance.destroy();\n }\n\n isBeingDestroyed = false;\n instance.state.isDestroyed = true;\n }\n}\n\n/**\n * Exported module\n */\nfunction tippy(targets, optionalProps) {\n if (process.env.NODE_ENV !== \"production\") {\n validateTargets(targets);\n validateProps(optionalProps);\n }\n\n bindGlobalEventListeners();\n\n var props = _extends({}, defaultProps, {}, optionalProps);\n\n var elements = getArrayOfElements(targets);\n\n if (process.env.NODE_ENV !== \"production\") {\n var isSingleContentElement = isRealElement(props.content);\n var isMoreThanOneReferenceElement = elements.length > 1;\n warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, '`tippy()` was passed a targets argument that will create more than ' + 'one tippy instance, but only a single element was supplied as the ' + '`content` prop. This means the content will only be appended to the ' + 'last tippy element of the list. Instead, use a function that ' + 'returns a cloned version of the element instead, or pass the ' + '.innerHTML of the element.');\n }\n\n var instances = elements.reduce(function (acc, reference) {\n var instance = reference && createTippy(reference, props);\n\n if (instance) {\n if (process.env.NODE_ENV !== \"production\") {\n validateExtraPropsFunctionality(instance, optionalProps);\n }\n\n acc.push(instance);\n }\n\n return acc;\n }, []);\n return isRealElement(targets) ? instances[0] : instances;\n}\n\ntippy.version = version;\ntippy.defaultProps = defaultProps;\ntippy.currentInput = currentInput;\n/**\n * Mutates the defaultProps object by setting the props specified\n */\n\ntippy.setDefaultProps = function (partialProps) {\n if (process.env.NODE_ENV !== \"production\") {\n validateProps(partialProps);\n }\n\n Object.keys(partialProps).forEach(function (key) {\n // @ts-ignore\n defaultProps[key] = partialProps[key];\n });\n};\n/**\n * Hides all visible poppers on the document\n */\n\n\ntippy.hideAll = function (_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n excludedReferenceOrInstance = _ref.exclude,\n duration = _ref.duration;\n\n arrayFrom(document.querySelectorAll(POPPER_SELECTOR)).forEach(function (popper) {\n var instance = popper._tippy;\n\n if (instance) {\n var isExcluded = false;\n\n if (excludedReferenceOrInstance) {\n isExcluded = isReferenceElement(excludedReferenceOrInstance) ? instance.reference === excludedReferenceOrInstance : popper === excludedReferenceOrInstance.popper;\n }\n\n if (!isExcluded) {\n instance.hide(duration);\n }\n }\n });\n};\n\nif (process.env.NODE_ENV !== \"production\") {\n Object.defineProperty(tippy, 'group', {\n value: function value() {\n warnWhen(true, '`tippy.group()` was removed in v5 and replaced with ' + '`createSingleton()`. Read more here: ' + 'https://atomiks.github.io/tippyjs/addons#singleton');\n },\n enumerable: false\n });\n Object.defineProperty(tippy, 'setDefaults', {\n value: function value() {\n warnWhen(true, '`tippy.setDefaults()` was renamed to `tippy.setDefaultProps()` in v5.');\n },\n enumerable: false\n });\n Object.defineProperty(tippy, 'defaults', {\n get: function get() {\n warnWhen(true, 'The `tippy.defaults` property was renamed to `tippy.defaultProps` ' + 'in v5.');\n return undefined;\n },\n enumerable: false\n });\n}\n/**\n * Auto-init tooltips for elements with a `data-tippy=\"...\"` attribute\n */\n\n\nfunction autoInit() {\n arrayFrom(document.querySelectorAll('[data-tippy]')).forEach(function (el) {\n var content = el.getAttribute('data-tippy');\n\n if (content) {\n tippy(el, {\n content: content\n });\n }\n });\n}\n\nif (isBrowser) {\n setTimeout(autoInit);\n}\n\nexport { throwErrorWhen as a, tippy as t };\n//# sourceMappingURL=tippy.chunk2.js.map\n","/**!\n* tippy.js v5.0.0-beta.0\n* (c) 2017-2019 atomiks\n* MIT License\n*/\nimport { E as isBrowser } from './tippy.chunk.js';\nimport { t as tippy } from './tippy.chunk2.js';\nimport 'popper.js';\n\nvar css = \".tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100% - 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}\";\n\n/**\n * Injects a string of CSS styles to a style node in <head>\n */\nfunction injectCSS(css) {\n var style = document.createElement('style');\n style.textContent = css;\n style.setAttribute('data-tippy-stylesheet', '');\n var head = document.head;\n var firstStyleOrLinkTag = head.querySelector('style,link');\n\n if (firstStyleOrLinkTag) {\n head.insertBefore(style, firstStyleOrLinkTag);\n } else {\n head.appendChild(style);\n }\n}\n\nif (isBrowser) {\n injectCSS(css);\n}\n\nexport default tippy;\n//# sourceMappingURL=tippy.bundle.js.map\n","import { isString, isUndefined } from './type-check';\nimport tippy from 'tippy.js';\n\nconst addHasTitleClass = (step) => {\n return { addHasTitleClass: _createClassModifier(`${step.classPrefix}shepherd-has-title`) };\n};\n\nfunction _getCenteredStylePopperModifier(styles) {\n return {\n computeStyle: {\n enabled: true,\n fn(data) {\n data.styles = Object.assign({}, data.styles, {\n left: '50%',\n top: '50%',\n transform: 'translate(-50%, -50%)'\n });\n\n return data;\n }\n },\n addShepherdClass: _createClassModifier(styles.shepherd.trim())\n };\n}\n\n/**\n * Used to compose settings for tippyOptions.popperOptions (https://atomiks.github.io/tippyjs/#popper-options-option)\n * @private\n */\nfunction _getDefaultPopperOptions(styles) {\n return {\n positionFixed: true,\n modifiers: {\n addShepherdClass: _createClassModifier(styles.shepherd.trim())\n }\n };\n}\n\n/**\n * Returns a function, that, as long as it continues to be invoked, will not\n * be triggered. The function will be called after it stops being called for\n * N milliseconds. If `immediate` is passed, trigger the function on the\n * leading edge, instead of the trailing.\n * @param {Function} func The function to invoke\n * @param {Number} wait The time to wait in ms\n * @param {Boolean} immediate If true, the function will be invoked immediately\n * @return {Function}\n */\nexport function debounce(func, wait, immediate) {\n let timeout;\n return function() {\n const context = this;\n const args = arguments;\n const later = function() {\n timeout = null;\n if (!immediate) {\n func.apply(context, args);\n }\n };\n const callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) {\n func.apply(context, args);\n }\n };\n}\n\n/**\n * Ensure class prefix ends in `-`\n * @param {string} prefix The prefix to prepend to the class names generated by nano-css\n * @return {string} The prefix ending in `-`\n */\nexport function normalizePrefix(prefix) {\n if (!isString(prefix) || prefix === '') {\n return '';\n }\n\n return prefix.charAt(prefix.length - 1) !== '-' ? `${prefix}-` : prefix;\n}\n\n/**\n * Checks if options.attachTo.element is a string, and if so, tries to find the element\n * @param {Step} step The step instance\n * @returns {{element, on}}\n * `element` is a qualified HTML Element\n * `on` is a string position value\n */\nexport function parseAttachTo(step) {\n const options = step.options.attachTo || {};\n const returnOpts = Object.assign({}, options);\n\n if (isString(options.element)) {\n // Can't override the element in user opts reference because we can't\n // guarantee that the element will exist in the future.\n try {\n returnOpts.element = document.querySelector(options.element);\n } catch(e) {\n // TODO\n }\n if (!returnOpts.element) {\n console.error(`The element for this Shepherd step was not found ${options.element}`);\n }\n }\n\n return returnOpts;\n}\n\n/**\n * Determines options for the tooltip and initializes\n * `step.tooltip` as a Tippy.js instance.\n * @param {Step} step The step instance\n */\nexport function setupTooltip(step) {\n if (isUndefined(tippy)) {\n throw new Error('Using the attachment feature of Shepherd requires the Tippy.js library');\n }\n\n if (step.tooltip) {\n step.tooltip.destroy();\n }\n\n const attachToOpts = parseAttachTo(step);\n\n step.tooltip = _makeTippyInstance(attachToOpts, step);\n\n step.target = attachToOpts.element;\n}\n\n/**\n * Create a popper modifier for adding the passed className to the popper\n * @param {string} className The class to add to the popper\n * @return {{fn(*): *, enabled: boolean}|*}\n * @private\n */\nfunction _createClassModifier(className) {\n return {\n enabled: true,\n fn(data) {\n data.instance.popper.classList.add(className);\n return data;\n }\n };\n}\n\n/**\n * Generates a `Tippy` instance from a set of base `attachTo` options\n * @param attachToOptions\n * @param {Step} step The step instance\n * @return {tippy|Instance | Instance[]} The final tippy instance\n * @private\n */\nfunction _makeTippyInstance(attachToOptions, step) {\n if (!attachToOptions.element || !attachToOptions.on) {\n return _makeCenteredTippy(step);\n }\n\n const tippyOptions = _makeAttachedTippyOptions(attachToOptions, step);\n\n return tippy(attachToOptions.element, tippyOptions);\n}\n\n/**\n * Generates the hash of options that will be passed to `Tippy` instances\n * target an element in the DOM.\n *\n * @param {Object} attachToOptions The local `attachTo` options\n * @param {Step} step The step instance\n * @return {Object} The final tippy options object\n * @private\n */\nfunction _makeAttachedTippyOptions(attachToOptions, step) {\n const defaultPopperOptions = _getDefaultPopperOptions(step.styles);\n const tippyOptions = {\n content: step.el,\n flipOnUpdate: true,\n placement: attachToOptions.on || 'right',\n ...step.options.tippyOptions\n };\n\n if (step.options.title) {\n Object.assign(defaultPopperOptions.modifiers, addHasTitleClass(step));\n }\n\n if (step.options.tippyOptions && step.options.tippyOptions.popperOptions) {\n Object.assign(defaultPopperOptions, step.options.tippyOptions.popperOptions);\n }\n\n tippyOptions.popperOptions = defaultPopperOptions;\n\n return tippyOptions;\n}\n\n/**\n * Generates a `Tippy` instance for a tooltip that doesn't have a\n * target element in the DOM -- and thus is positioned in the center\n * of the view\n *\n * @param {Step} step The step instance\n * @return {tippy} The final tippy instance\n * @private\n */\nfunction _makeCenteredTippy(step) {\n const centeredStylePopperModifier = _getCenteredStylePopperModifier(step.styles);\n const defaultPopperOptions = _getDefaultPopperOptions(step.styles);\n const tippyOptions = {\n content: step.el,\n placement: 'top',\n ...step.options.tippyOptions\n };\n\n tippyOptions.arrow = false;\n tippyOptions.popperOptions = tippyOptions.popperOptions || {};\n\n if (step.options.title) {\n Object.assign(defaultPopperOptions.modifiers, addHasTitleClass(step));\n }\n\n Object.assign(\n defaultPopperOptions.modifiers,\n centeredStylePopperModifier,\n tippyOptions.popperOptions.modifiers\n );\n\n const finalPopperOptions = Object.assign(\n {},\n defaultPopperOptions,\n tippyOptions.popperOptions\n );\n\n tippyOptions.popperOptions = finalPopperOptions;\n\n return tippy(document.body, tippyOptions);\n}\n","import preact from 'preact';\n\nconst { Component } = preact;\n\nexport default class ShepherdButton extends Component {\n render(props) {\n const { classPrefix, config, styles } = props;\n const { action, classes, secondary, text } = config;\n\n return <button\n className={(classes || '') + styles.button + (secondary ? ` ${classPrefix}shepherd-button-secondary` : '')}\n onClick={action}\n tabindex='0'>\n {text}\n </button>;\n }\n}\n","import preact from 'preact';\nimport ShepherdButton from './shepherd-button';\n\nconst { Component } = preact;\n\nexport default class ShepherdFooter extends Component {\n render(props) {\n const { classPrefix, step, styles } = props;\n const { buttons } = step.options;\n\n return <footer className={styles.footer.trim()}>\n {this._addButtons(buttons, classPrefix, styles)}\n </footer>;\n }\n\n _addButtons(buttons, classPrefix, styles) {\n if (buttons) {\n return buttons.map((config) => {\n return <ShepherdButton classPrefix={classPrefix} config={config} styles={styles}/>;\n });\n }\n\n return null;\n }\n}\n","import preact from 'preact';\n\nconst { Component } = preact;\n\nexport default class ShepherdHeader extends Component {\n constructor(props) {\n super(props);\n\n this.step = props.step;\n\n this.cancelStep = this.cancelStep.bind(this);\n }\n\n render(props) {\n const { labelId, step, styles } = props;\n const { showCancelLink, title } = step.options;\n return <header className={styles.header.trim()}>\n {this.constructor._addTitle(labelId, styles, title)}\n {this._addCancelLink(showCancelLink, styles)}\n </header>;\n }\n\n /**\n * Add a click listener to the cancel link that cancels the tour\n */\n cancelStep(e) {\n e.preventDefault();\n this.step.cancel();\n }\n\n static _addTitle(labelId, styles, title) {\n if (title) {\n return <h3\n id={labelId}\n className={styles.title.trim()}\n >\n {title}\n </h3>;\n }\n\n return null;\n }\n\n _addCancelLink(showCancelLink, styles) {\n if (showCancelLink) {\n return <button\n aria-label='Close Tour'\n className={styles['cancel-link'].trim()}\n onClick={this.cancelStep}\n type='button'\n >\n <span aria-hidden='true'>&times;</span>\n </button>;\n }\n\n return null;\n }\n}\n","import preact from 'preact';\nimport { isFunction } from '../../../utils/type-check';\n\nconst { Component } = preact;\n\nexport default class ShepherdText extends Component {\n render(props) {\n const { descriptionId, step, styles } = props;\n let { text } = step.options;\n\n if (isFunction(text)) {\n text = text.call(step);\n }\n\n return <div\n className={styles.text.trim()}\n dangerouslySetInnerHTML={{ __html: text }}\n id={descriptionId}\n />;\n }\n}\n","import preact from 'preact';\nimport ShepherdFooter from './shepherd-footer';\nimport ShepherdHeader from './shepherd-header';\nimport ShepherdText from './shepherd-text';\nimport { isUndefined } from '../../utils/type-check';\n\nconst { Component } = preact;\n\nexport default class ShepherdContent extends Component {\n render(props) {\n const { classPrefix, descriptionId, labelId, step, styles } = props;\n\n return <div\n className={styles.content.trim()}\n >\n <ShepherdHeader\n labelId={labelId}\n step={step}\n styles={styles}\n />\n\n {ShepherdContent._addShepherdText(descriptionId, step, styles)}\n\n {ShepherdContent._addShepherdFooter(classPrefix, step, styles)}\n </div>;\n }\n\n static _addShepherdText(descriptionId, step, styles) {\n if (!isUndefined(step.options.text)) {\n return <ShepherdText\n descriptionId={descriptionId}\n step={step}\n styles={styles}\n />;\n }\n\n return null;\n }\n\n static _addShepherdFooter(classPrefix, step, styles) {\n if (Array.isArray(step.options.buttons) && step.options.buttons.length) {\n return <ShepherdFooter\n classPrefix={classPrefix}\n step={step}\n styles={styles}\n />;\n }\n\n return null;\n }\n}\n\n","import preact from 'preact';\nimport ShepherdContent from '../shepherd-content';\nimport { isUndefined } from '../../utils/type-check';\n\nconst { Component } = preact;\n\nconst KEY_TAB = 9;\nconst KEY_ESC = 27;\nconst LEFT_ARROW = 37;\nconst RIGHT_ARROW = 39;\n\nexport default class ShepherdElement extends Component {\n constructor(props) {\n super(props);\n\n this.step = props.step;\n this.handleKeyDown = this.handleKeyDown.bind(this);\n }\n\n componentDidMount() {\n // Get all elements that are focusable\n const focusableElements = this.element.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex=\"0\"]');\n const [firstFocusableElement] = focusableElements;\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n\n this.focusableElements = focusableElements;\n this.firstFocusableElement = firstFocusableElement;\n this.lastFocusableElement = lastFocusableElement;\n }\n\n render(props) {\n const { classes, classPrefix, descriptionId, labelId, step, styles } = props;\n const dataStepId = { [`data-${classPrefix}shepherd-step-id`]: step.id };\n\n return <div\n aria-describedby={!isUndefined(step.options.text) ? descriptionId : null}\n aria-labeledby={step.options.title ? labelId : null}\n className={classes + styles.element}\n {...dataStepId}\n onKeyDown={this.handleKeyDown}\n ref={(c) => this.element = c}\n role='dialog'\n tabindex='0'\n >\n <ShepherdContent\n classPrefix={classPrefix}\n descriptionId={descriptionId}\n labelId={labelId}\n step={step}\n styles={styles}\n />\n </div>;\n }\n\n /**\n * Setup keydown events to allow closing the modal with ESC\n *\n * Borrowed from this great post! https://bitsofco.de/accessible-modal-dialog/\n *\n * @private\n */\n handleKeyDown(e) {\n switch (e.keyCode) {\n case KEY_TAB:\n if (this.focusableElements.length === 1) {\n e.preventDefault();\n break;\n }\n // Backward tab\n if (e.shiftKey) {\n if (document.activeElement === this.firstFocusableElement) {\n e.preventDefault();\n this.lastFocusableElement.focus();\n }\n } else {\n if (document.activeElement === this.lastFocusableElement) {\n e.preventDefault();\n this.firstFocusableElement.focus();\n }\n }\n break;\n case KEY_ESC:\n this.step.cancel();\n break;\n case LEFT_ARROW:\n this.step.tour.back();\n break;\n case RIGHT_ARROW:\n this.step.tour.next();\n break;\n default:\n break;\n }\n }\n}\n","if (!Element.prototype.matches) {\n Element.prototype.matches =\n Element.prototype.matchesSelector ||\n Element.prototype.msMatchesSelector ||\n Element.prototype.webkitMatchesSelector;\n}\n","/* smoothscroll v0.4.4 - 2019 - Dustan Kasten, Jeremias Menichelli - MIT License */\n(function () {\n 'use strict';\n\n // polyfill\n function polyfill() {\n // aliases\n var w = window;\n var d = document;\n\n // return if scroll behavior is supported and polyfill is not forced\n if (\n 'scrollBehavior' in d.documentElement.style &&\n w.__forceSmoothScrollPolyfill__ !== true\n ) {\n return;\n }\n\n // globals\n var Element = w.HTMLElement || w.Element;\n var SCROLL_TIME = 468;\n\n // object gathering original scroll methods\n var original = {\n scroll: w.scroll || w.scrollTo,\n scrollBy: w.scrollBy,\n elementScroll: Element.prototype.scroll || scrollElement,\n scrollIntoView: Element.prototype.scrollIntoView\n };\n\n // define timing method\n var now =\n w.performance && w.performance.now\n ? w.performance.now.bind(w.performance)\n : Date.now;\n\n /**\n * indicates if a the current browser is made by Microsoft\n * @method isMicrosoftBrowser\n * @param {String} userAgent\n * @returns {Boolean}\n */\n function isMicrosoftBrowser(userAgent) {\n var userAgentPatterns = ['MSIE ', 'Trident/', 'Edge/'];\n\n return new RegExp(userAgentPatterns.join('|')).test(userAgent);\n }\n\n /*\n * IE has rounding bug rounding down clientHeight and clientWidth and\n * rounding up scrollHeight and scrollWidth causing false positives\n * on hasScrollableSpace\n */\n var ROUNDING_TOLERANCE = isMicrosoftBrowser(w.navigator.userAgent) ? 1 : 0;\n\n /**\n * changes scroll position inside an element\n * @method scrollElement\n * @param {Number} x\n * @param {Number} y\n * @returns {undefined}\n */\n function scrollElement(x, y) {\n this.scrollLeft = x;\n this.scrollTop = y;\n }\n\n /**\n * returns result of applying ease math function to a number\n * @method ease\n * @param {Number} k\n * @returns {Number}\n */\n function ease(k) {\n return 0.5 * (1 - Math.cos(Math.PI * k));\n }\n\n /**\n * indicates if a smooth behavior should be applied\n * @method shouldBailOut\n * @param {Number|Object} firstArg\n * @returns {Boolean}\n */\n function shouldBailOut(firstArg) {\n if (\n firstArg === null ||\n typeof firstArg !== 'object' ||\n firstArg.behavior === undefined ||\n firstArg.behavior === 'auto' ||\n firstArg.behavior === 'instant'\n ) {\n // first argument is not an object/null\n // or behavior is auto, instant or undefined\n return true;\n }\n\n if (typeof firstArg === 'object' && firstArg.behavior === 'smooth') {\n // first argument is an object and behavior is smooth\n return false;\n }\n\n // throw error when behavior is not supported\n throw new TypeError(\n 'behavior member of ScrollOptions ' +\n firstArg.behavior +\n ' is not a valid value for enumeration ScrollBehavior.'\n );\n }\n\n /**\n * indicates if an element has scrollable space in the provided axis\n * @method hasScrollableSpace\n * @param {Node} el\n * @param {String} axis\n * @returns {Boolean}\n */\n function hasScrollableSpace(el, axis) {\n if (axis === 'Y') {\n return el.clientHeight + ROUNDING_TOLERANCE < el.scrollHeight;\n }\n\n if (axis === 'X') {\n return el.clientWidth + ROUNDING_TOLERANCE < el.scrollWidth;\n }\n }\n\n /**\n * indicates if an element has a scrollable overflow property in the axis\n * @method canOverflow\n * @param {Node} el\n * @param {String} axis\n * @returns {Boolean}\n */\n function canOverflow(el, axis) {\n var overflowValue = w.getComputedStyle(el, null)['overflow' + axis];\n\n return overflowValue === 'auto' || overflowValue === 'scroll';\n }\n\n /**\n * indicates if an element can be scrolled in either axis\n * @method isScrollable\n * @param {Node} el\n * @param {String} axis\n * @returns {Boolean}\n */\n function isScrollable(el) {\n var isScrollableY = hasScrollableSpace(el, 'Y') && canOverflow(el, 'Y');\n var isScrollableX = hasScrollableSpace(el, 'X') && canOverflow(el, 'X');\n\n return isScrollableY || isScrollableX;\n }\n\n /**\n * finds scrollable parent of an element\n * @method findScrollableParent\n * @param {Node} el\n * @returns {Node} el\n */\n function findScrollableParent(el) {\n while (el !== d.body && isScrollable(el) === false) {\n el = el.parentNode || el.host;\n }\n\n return el;\n }\n\n /**\n * self invoked function that, given a context, steps through scrolling\n * @method step\n * @param {Object} context\n * @returns {undefined}\n */\n function step(context) {\n var time = now();\n var value;\n var currentX;\n var currentY;\n var elapsed = (time - context.startTime) / SCROLL_TIME;\n\n // avoid elapsed times higher than one\n elapsed = elapsed > 1 ? 1 : elapsed;\n\n // apply easing to elapsed time\n value = ease(elapsed);\n\n currentX = context.startX + (context.x - context.startX) * value;\n currentY = context.startY + (context.y - context.startY) * value;\n\n context.method.call(context.scrollable, currentX, currentY);\n\n // scroll more if we have not reached our destination\n if (currentX !== context.x || currentY !== context.y) {\n w.requestAnimationFrame(step.bind(w, context));\n }\n }\n\n /**\n * scrolls window or element with a smooth behavior\n * @method smoothScroll\n * @param {Object|Node} el\n * @param {Number} x\n * @param {Number} y\n * @returns {undefined}\n */\n function smoothScroll(el, x, y) {\n var scrollable;\n var startX;\n var startY;\n var method;\n var startTime = now();\n\n // define scroll context\n if (el === d.body) {\n scrollable = w;\n startX = w.scrollX || w.pageXOffset;\n startY = w.scrollY || w.pageYOffset;\n method = original.scroll;\n } else {\n scrollable = el;\n startX = el.scrollLeft;\n startY = el.scrollTop;\n method = scrollElement;\n }\n\n // scroll looping over a frame\n step({\n scrollable: scrollable,\n method: method,\n startTime: startTime,\n startX: startX,\n startY: startY,\n x: x,\n y: y\n });\n }\n\n // ORIGINAL METHODS OVERRIDES\n // w.scroll and w.scrollTo\n w.scroll = w.scrollTo = function() {\n // avoid action when no arguments are passed\n if (arguments[0] === undefined) {\n return;\n }\n\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0]) === true) {\n original.scroll.call(\n w,\n arguments[0].left !== undefined\n ? arguments[0].left\n : typeof arguments[0] !== 'object'\n ? arguments[0]\n : w.scrollX || w.pageXOffset,\n // use top prop, second argument if present or fallback to scrollY\n arguments[0].top !== undefined\n ? arguments[0].top\n : arguments[1] !== undefined\n ? arguments[1]\n : w.scrollY || w.pageYOffset\n );\n\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n w,\n d.body,\n arguments[0].left !== undefined\n ? ~~arguments[0].left\n : w.scrollX || w.pageXOffset,\n arguments[0].top !== undefined\n ? ~~arguments[0].top\n : w.scrollY || w.pageYOffset\n );\n };\n\n // w.scrollBy\n w.scrollBy = function() {\n // avoid action when no arguments are passed\n if (arguments[0] === undefined) {\n return;\n }\n\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.scrollBy.call(\n w,\n arguments[0].left !== undefined\n ? arguments[0].left\n : typeof arguments[0] !== 'object' ? arguments[0] : 0,\n arguments[0].top !== undefined\n ? arguments[0].top\n : arguments[1] !== undefined ? arguments[1] : 0\n );\n\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n w,\n d.body,\n ~~arguments[0].left + (w.scrollX || w.pageXOffset),\n ~~arguments[0].top + (w.scrollY || w.pageYOffset)\n );\n };\n\n // Element.prototype.scroll and Element.prototype.scrollTo\n Element.prototype.scroll = Element.prototype.scrollTo = function() {\n // avoid action when no arguments are passed\n if (arguments[0] === undefined) {\n return;\n }\n\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0]) === true) {\n // if one number is passed, throw error to match Firefox implementation\n if (typeof arguments[0] === 'number' && arguments[1] === undefined) {\n throw new SyntaxError('Value could not be converted');\n }\n\n original.elementScroll.call(\n this,\n // use left prop, first number argument or fallback to scrollLeft\n arguments[0].left !== undefined\n ? ~~arguments[0].left\n : typeof arguments[0] !== 'object' ? ~~arguments[0] : this.scrollLeft,\n // use top prop, second argument or fallback to scrollTop\n arguments[0].top !== undefined\n ? ~~arguments[0].top\n : arguments[1] !== undefined ? ~~arguments[1] : this.scrollTop\n );\n\n return;\n }\n\n var left = arguments[0].left;\n var top = arguments[0].top;\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n this,\n this,\n typeof left === 'undefined' ? this.scrollLeft : ~~left,\n typeof top === 'undefined' ? this.scrollTop : ~~top\n );\n };\n\n // Element.prototype.scrollBy\n Element.prototype.scrollBy = function() {\n // avoid action when no arguments are passed\n if (arguments[0] === undefined) {\n return;\n }\n\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0]) === true) {\n original.elementScroll.call(\n this,\n arguments[0].left !== undefined\n ? ~~arguments[0].left + this.scrollLeft\n : ~~arguments[0] + this.scrollLeft,\n arguments[0].top !== undefined\n ? ~~arguments[0].top + this.scrollTop\n : ~~arguments[1] + this.scrollTop\n );\n\n return;\n }\n\n this.scroll({\n left: ~~arguments[0].left + this.scrollLeft,\n top: ~~arguments[0].top + this.scrollTop,\n behavior: arguments[0].behavior\n });\n };\n\n // Element.prototype.scrollIntoView\n Element.prototype.scrollIntoView = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0]) === true) {\n original.scrollIntoView.call(\n this,\n arguments[0] === undefined ? true : arguments[0]\n );\n\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n var scrollableParent = findScrollableParent(this);\n var parentRects = scrollableParent.getBoundingClientRect();\n var clientRects = this.getBoundingClientRect();\n\n if (scrollableParent !== d.body) {\n // reveal element inside parent\n smoothScroll.call(\n this,\n scrollableParent,\n scrollableParent.scrollLeft + clientRects.left - parentRects.left,\n scrollableParent.scrollTop + clientRects.top - parentRects.top\n );\n\n // reveal parent in viewport unless is fixed\n if (w.getComputedStyle(scrollableParent).position !== 'fixed') {\n w.scrollBy({\n left: parentRects.left,\n top: parentRects.top,\n behavior: 'smooth'\n });\n }\n } else {\n // reveal element in viewport\n w.scrollBy({\n left: clientRects.left,\n top: clientRects.top,\n behavior: 'smooth'\n });\n }\n };\n }\n\n if (typeof exports === 'object' && typeof module !== 'undefined') {\n // commonjs\n module.exports = { polyfill: polyfill };\n } else {\n // global\n polyfill();\n }\n\n}());\n","import preact from 'preact';\n\nimport { Evented } from './evented';\nimport autoBind from './utils/auto-bind';\nimport { isElement, isFunction, isUndefined } from './utils/type-check';\nimport { bindAdvance } from './utils/bind';\nimport { setupTooltip, parseAttachTo, normalizePrefix } from './utils/general';\nimport { toggleShepherdModalClass } from './utils/modal';\nimport ShepherdElement from './components/shepherd-element';\n\n// Polyfills\nimport 'element-matches';\nimport smoothscroll from 'smoothscroll-polyfill';\n\nsmoothscroll.polyfill();\n\nconst { render } = preact;\n\n/**\n * Creates incremented ID for each newly created step\n *\n * @return {Function} A function that returns the unique id for the step\n * @private\n */\nconst uniqueId = (function() {\n let id = 0;\n return function() {\n return ++id;\n };\n})();\n\n/**\n * A class representing steps to be added to a tour.\n * @extends {Evented}\n */\nexport class Step extends Evented {\n /**\n * Create a step\n * @param {Tour} tour The tour for the step\n * @param {Object} options The options for the step\n * @param {Object} options.attachTo What element the step should be attached to on the page.\n * It should be an object with the properties `element` and `on`, where `element` is an element selector string\n * or a DOM element and `on` is the optional direction to place the Tippy tooltip.\n *\n * ```js\n * const new Step(tour, {\n * attachTo: { element: '.some .selector-path', on: 'left' },\n * ...moreOptions\n * })'\n * ```\n *\n * If you don’t specify an attachTo the element will appear in the middle of the screen.\n * If you omit the `on` portion of `attachTo`, the element will still be highlighted, but the tooltip will appear\n * in the middle of the screen, without an arrow pointing to the target.\n * @param {HTMLElement|string} options.attachTo.element\n * @param {string} options.attachTo.on\n * @param {Object} options.advanceOn An action on the page which should advance shepherd to the next step.\n * It should be an object with a string `selector` and an `event` name\n * ```js\n * const new Step(tour, {\n * advanceOn: { selector: '.some .selector-path', event: 'click' },\n * ...moreOptions\n * })'\n * ```\n * `event` doesn’t have to be an event inside the tour, it can be any event fired on any element on the page.\n * You can also always manually advance the Tour by calling `myTour.next()`.\n * @param {function} options.beforeShowPromise A function that returns a promise.\n * When the promise resolves, the rest of the `show` code for the step will execute.\n * @param {Object[]} options.buttons An array of buttons to add to the step. These will be rendered in a\n * footer below the main body text.\n * @param {function} options.buttons.button.action A function executed when the button is clicked on\n * You can use action to skip steps or navigate to specific steps, with something like:\n * ```js\n * action: function() {\n * return Shepherd.activeTour.show('some_step_name');\n * }\n * ```\n * @param {string} options.buttons.button.classes Extra classes to apply to the `<a>`\n * @param {boolean} options.buttons.button.secondary If true, a shepherd-button-secondary class is applied to the button\n * @param {string} options.buttons.button.text The HTML text of the button\n * @param {boolean} options.canClickTarget A boolean, that when set to false, will set `pointer-events: none` on the target\n * @param {string} options.classes A string of extra classes to add to the step's content element.\n * @param {string} options.highlightClass An extra class to apply to the `attachTo` element when it is\n * highlighted (that is, when its step is active). You can then target that selector in your CSS.\n * @param {string} options.id The string to use as the `id` for the step.\n * @param {Object} options.tippyOptions Extra [options to pass to tippy.js]{@link https://atomiks.github.io/tippyjs/#all-options}\n * @param {boolean|Object} options.scrollTo Should the element be scrolled to when this step is shown? If true, uses the default `scrollIntoView`,\n * if an object, passes that object as the params to `scrollIntoView` i.e. `{behavior: 'smooth', block: 'center'}`\n * @param {function} options.scrollToHandler A function that lets you override the default scrollTo behavior and\n * define a custom action to do the scrolling, and possibly other logic.\n * @param {boolean} options.showCancelLink Should a cancel “✕” be shown in the header of the step?\n * @param {function} options.showOn A function that, when it returns `true`, will show the step.\n * If it returns false, the step will be skipped.\n * @param {string} options.text The text in the body of the step. It can be one of three types:\n * ```\n * - HTML string\n * - `HTMLElement` object\n * - `Function` to be executed when the step is built. It must return one the two options above.\n * ```\n * @param {string} options.title The step's title. It becomes an `h3` at the top of the step.\n * @param {Object} options.when You can define `show`, `hide`, etc events inside `when`. For example:\n * ```js\n * when: {\n * show: function() {\n * window.scrollTo(0, 0);\n * }\n * }\n * ```\n * @param {Number} options.modalOverlayOpeningPadding An amount of padding to add around the modal overlay opening\n * @return {Step} The newly created Step instance\n */\n constructor(tour, options = {}) {\n super(tour, options);\n this.tour = tour;\n this.classPrefix = this.tour.options ? normalizePrefix(this.tour.options.classPrefix) : '';\n this.styles = tour.styles;\n\n autoBind(this);\n\n this._setOptions(options);\n\n return this;\n }\n\n /**\n * Cancel the tour\n * Triggers the `cancel` event\n */\n cancel() {\n this.tour.cancel();\n this.trigger('cancel');\n }\n\n /**\n * Complete the tour\n * Triggers the `complete` event\n */\n complete() {\n this.tour.complete();\n this.trigger('complete');\n }\n\n /**\n * Remove the step, delete the step's element, and destroy the tippy instance for the step\n * Triggers `destroy` event\n */\n destroy() {\n if (this.tooltip) {\n this.tooltip.destroy();\n this.tooltip = null;\n }\n\n if (isElement(this.el) && this.el.parentNode) {\n this.el.parentNode.removeChild(this.el);\n this.el = null;\n }\n\n if (this.target) {\n this._updateStepTargetOnHide();\n }\n\n this.trigger('destroy');\n }\n\n /**\n * Returns the tour for the step\n * @return {Tour} The tour instance\n */\n getTour() {\n return this.tour;\n }\n\n /**\n * Hide the step and destroy the tippy instance\n */\n hide() {\n this.tour.modal.hide();\n\n this.trigger('before-hide');\n\n document.body.removeAttribute(`data-${this.classPrefix}shepherd-step`);\n\n if (this.target) {\n this._updateStepTargetOnHide();\n }\n\n if (this.tooltip) {\n this.tooltip.hide();\n }\n\n this.trigger('hide');\n }\n\n /**\n * Check if the step is open and visible\n * @return {boolean} True if the step is open and visible\n */\n isOpen() {\n return Boolean(\n this.tooltip &&\n this.tooltip.state &&\n this.tooltip.state.isVisible\n );\n }\n\n /**\n * Wraps `_show` and ensures `beforeShowPromise` resolves before calling show\n * @return {*|Promise}\n */\n show() {\n if (isFunction(this.options.beforeShowPromise)) {\n const beforeShowPromise = this.options.beforeShowPromise();\n if (!isUndefined(beforeShowPromise)) {\n return beforeShowPromise.then(() => this._show());\n }\n }\n this._show();\n }\n\n /**\n * Creates Shepherd element for step based on options\n *\n * @return {Element} The DOM element for the step tooltip\n * @private\n */\n _createTooltipContent() {\n let classes = this.options.classes || '';\n const descriptionId = `${this.id}-description`;\n const labelId = `${this.id}-label`;\n\n if (this.options.showCancelLink) {\n classes += ` ${this.classPrefix}shepherd-has-cancel-link`;\n }\n\n return render(\n <ShepherdElement\n classPrefix={this.classPrefix}\n classes={classes}\n descriptionId={descriptionId}\n labelId={labelId}\n step={this}\n styles={this.styles}\n />,\n null\n );\n }\n\n /**\n * If a custom scrollToHandler is defined, call that, otherwise do the generic\n * scrollIntoView call.\n *\n * @param {boolean|Object} scrollToOptions If true, uses the default `scrollIntoView`,\n * if an object, passes that object as the params to `scrollIntoView` i.e. `{ behavior: 'smooth', block: 'center' }`\n * @private\n */\n _scrollTo(scrollToOptions) {\n const { element } = parseAttachTo(this);\n\n if (isFunction(this.options.scrollToHandler)) {\n this.options.scrollToHandler(element);\n } else if (isElement(element)) {\n element.scrollIntoView(scrollToOptions);\n }\n }\n\n /**\n * Sets the options for the step, maps `when` to events, sets up buttons\n * @param {Object} options The options for the step\n * @private\n */\n _setOptions(options = {}) {\n this.options = options;\n const { when } = this.options;\n\n this.destroy();\n this.id = this.options.id || `step-${uniqueId()}`;\n\n if (when) {\n Object.keys(when).forEach((event) => {\n this.on(event, when[event], this);\n });\n }\n }\n\n /**\n * Create the element and set up the tippy instance\n * @private\n */\n _setupElements() {\n if (!isUndefined(this.el)) {\n this.destroy();\n }\n\n this.el = this._createTooltipContent();\n\n if (this.options.advanceOn) {\n bindAdvance(this);\n }\n\n setupTooltip(this);\n }\n\n /**\n * Triggers `before-show`, generates the tooltip DOM content,\n * sets up a tippy instance for the tooltip, then triggers `show`.\n * @private\n */\n _show() {\n this.trigger('before-show');\n\n if (!this.el) {\n this._setupElements();\n }\n\n this.tour.modal.setupForStep(this);\n this._styleTargetElementForStep(this);\n\n const target = this.target || document.body;\n target.classList.add(`${this.classPrefix}shepherd-enabled`, `${this.classPrefix}shepherd-target`);\n document.body.setAttribute(`data-${this.classPrefix}shepherd-step`, this.id);\n\n if (this.options.scrollTo) {\n setTimeout(() => {\n this._scrollTo(this.options.scrollTo);\n });\n }\n\n this.tooltip.show();\n this.trigger('show');\n this.el.focus();\n }\n\n /**\n * Modulates the styles of the passed step's target element, based on the step's options and\n * the tour's `modal` option, to visually emphasize the element\n *\n * @param step The step object that attaches to the element\n * @private\n */\n _styleTargetElementForStep(step) {\n const targetElement = step.target;\n\n if (!targetElement) {\n return;\n }\n\n toggleShepherdModalClass(targetElement, step.classPrefix);\n\n if (step.options.highlightClass) {\n targetElement.classList.add(step.options.highlightClass);\n }\n\n if (step.options.canClickTarget === false) {\n targetElement.style.pointerEvents = 'none';\n }\n }\n\n /**\n * When a step is hidden, remove the highlightClass and 'shepherd-enabled'\n * and 'shepherd-target' classes\n * @private\n */\n _updateStepTargetOnHide() {\n if (this.options.highlightClass) {\n this.target.classList.remove(this.options.highlightClass);\n }\n\n this.target.classList.remove(`${this.classPrefix}shepherd-enabled`, `${this.classPrefix}shepherd-target`);\n }\n}\n","/**\n * Remove any leftover modal target classes and add the modal target class to the currentElement\n * @param {HTMLElement} currentElement The element for the current step\n * @param {string} classPrefix The prefix to add to the class name\n */\nfunction toggleShepherdModalClass(currentElement, classPrefix) {\n const shepherdModalTarget = document.querySelector(`.${classPrefix}shepherd-modal-target`);\n\n if (shepherdModalTarget) {\n shepherdModalTarget.classList.remove(`${classPrefix}shepherd-modal-target`);\n }\n\n currentElement.classList.add(`${classPrefix}shepherd-modal-target`);\n}\n\nexport {\n toggleShepherdModalClass\n};\n","!function(e,t){if(\"function\"==typeof define&&define.amd)define([\"exports\"],t);else if(\"undefined\"!=typeof exports)t(exports);else{var o={};t(o),e.bodyScrollLock=o}}(this,function(exports){\"use strict\";function r(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}Object.defineProperty(exports,\"__esModule\",{value:!0});var l=!1;if(\"undefined\"!=typeof window){var e={get passive(){l=!0}};window.addEventListener(\"testPassive\",null,e),window.removeEventListener(\"testPassive\",null,e)}var d=\"undefined\"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),c=[],u=!1,a=-1,s=void 0,v=void 0,f=function(t){return c.some(function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))})},m=function(e){var t=e||window.event;return!!f(t.target)||(1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1))},o=function(){setTimeout(function(){void 0!==v&&(document.body.style.paddingRight=v,v=void 0),void 0!==s&&(document.body.style.overflow=s,s=void 0)})};exports.disableBodyScroll=function(i,e){if(d){if(!i)return void console.error(\"disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.\");if(i&&!c.some(function(e){return e.targetElement===i})){var t={targetElement:i,options:e||{}};c=[].concat(r(c),[t]),i.ontouchstart=function(e){1===e.targetTouches.length&&(a=e.targetTouches[0].clientY)},i.ontouchmove=function(e){var t,o,n,r;1===e.targetTouches.length&&(o=i,r=(t=e).targetTouches[0].clientY-a,!f(t.target)&&(o&&0===o.scrollTop&&0<r?m(t):(n=o)&&n.scrollHeight-n.scrollTop<=n.clientHeight&&r<0?m(t):t.stopPropagation()))},u||(document.addEventListener(\"touchmove\",m,l?{passive:!1}:void 0),u=!0)}}else{n=e,setTimeout(function(){if(void 0===v){var e=!!n&&!0===n.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(v=document.body.style.paddingRight,document.body.style.paddingRight=t+\"px\")}void 0===s&&(s=document.body.style.overflow,document.body.style.overflow=\"hidden\")});var o={targetElement:i,options:e||{}};c=[].concat(r(c),[o])}var n},exports.clearAllBodyScrollLocks=function(){d?(c.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),u&&(document.removeEventListener(\"touchmove\",m,l?{passive:!1}:void 0),u=!1),c=[],a=-1):(o(),c=[])},exports.enableBodyScroll=function(t){if(d){if(!t)return void console.error(\"enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.\");t.ontouchstart=null,t.ontouchmove=null,c=c.filter(function(e){return e.targetElement!==t}),u&&0===c.length&&(document.removeEventListener(\"touchmove\",m,l?{passive:!1}:void 0),u=!1)}else(c=c.filter(function(e){return e.targetElement!==t})).length||o()}});\n","export const defaults = {\n trigger: 'manual',\n arrow: true,\n animation: 'fade',\n duration: 420,\n flip: true,\n animateFill: false, // https://atomiks.github.io/tippyjs/#animate-fill-option\n interactive: true, // https://atomiks.github.io/tippyjs/#interactive-option\n hideOnClick: 'toggle', // https://atomiks.github.io/tippyjs/#hide-on-click-option\n multiple: true // https://atomiks.github.io/tippyjs/#multiple-option\n};\n","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf\";\n\nfunction isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nexport default function _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n _construct = Reflect.construct;\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}","import getPrototypeOf from \"./getPrototypeOf\";\nimport setPrototypeOf from \"./setPrototypeOf\";\nimport isNativeFunction from \"./isNativeFunction\";\nimport construct from \"./construct\";\nexport default function _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}","export default function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}","import _extends from '@babel/runtime/helpers/esm/extends';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _wrapNativeSuper from '@babel/runtime/helpers/esm/wrapNativeSuper';\nimport _taggedTemplateLiteralLoose from '@babel/runtime/helpers/esm/taggedTemplateLiteralLoose';\n\nfunction last() {\n var _ref;\n\n return _ref = arguments.length - 1, _ref < 0 || arguments.length <= _ref ? undefined : arguments[_ref];\n}\n\nfunction negation(a) {\n return -a;\n}\n\nfunction addition(a, b) {\n return a + b;\n}\n\nfunction subtraction(a, b) {\n return a - b;\n}\n\nfunction multiplication(a, b) {\n return a * b;\n}\n\nfunction division(a, b) {\n return a / b;\n}\n\nfunction factorial(a) {\n if (a % 1 || !(+a >= 0)) return NaN;\n if (a > 170) return Infinity;else if (a === 0) return 1;else {\n return a * factorial(a - 1);\n }\n}\n\nfunction power(a, b) {\n return Math.pow(a, b);\n}\n\nfunction sqrt(a) {\n return Math.sqrt(a);\n}\n\nfunction max() {\n return Math.max.apply(Math, arguments);\n}\n\nfunction min() {\n return Math.min.apply(Math, arguments);\n}\n\nfunction comma() {\n return Array.of.apply(Array, arguments);\n}\n\nvar defaultMathSymbols = {\n symbols: {\n '!': {\n postfix: {\n symbol: '!',\n f: factorial,\n notation: 'postfix',\n precedence: 6,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: '!',\n regSymbol: '!'\n },\n '^': {\n infix: {\n symbol: '^',\n f: power,\n notation: 'infix',\n precedence: 5,\n rightToLeft: 1,\n argCount: 2\n },\n symbol: '^',\n regSymbol: '\\\\^'\n },\n '*': {\n infix: {\n symbol: '*',\n f: multiplication,\n notation: 'infix',\n precedence: 4,\n rightToLeft: 0,\n argCount: 2\n },\n symbol: '*',\n regSymbol: '\\\\*'\n },\n '/': {\n infix: {\n symbol: '/',\n f: division,\n notation: 'infix',\n precedence: 4,\n rightToLeft: 0,\n argCount: 2\n },\n symbol: '/',\n regSymbol: '/'\n },\n '+': {\n infix: {\n symbol: '+',\n f: addition,\n notation: 'infix',\n precedence: 2,\n rightToLeft: 0,\n argCount: 2\n },\n prefix: {\n symbol: '+',\n f: last,\n notation: 'prefix',\n precedence: 3,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: '+',\n regSymbol: '\\\\+'\n },\n '-': {\n infix: {\n symbol: '-',\n f: subtraction,\n notation: 'infix',\n precedence: 2,\n rightToLeft: 0,\n argCount: 2\n },\n prefix: {\n symbol: '-',\n f: negation,\n notation: 'prefix',\n precedence: 3,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: '-',\n regSymbol: '-'\n },\n ',': {\n infix: {\n symbol: ',',\n f: comma,\n notation: 'infix',\n precedence: 1,\n rightToLeft: 0,\n argCount: 2\n },\n symbol: ',',\n regSymbol: ','\n },\n '(': {\n prefix: {\n symbol: '(',\n f: last,\n notation: 'prefix',\n precedence: 0,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: '(',\n regSymbol: '\\\\('\n },\n ')': {\n postfix: {\n symbol: ')',\n f: undefined,\n notation: 'postfix',\n precedence: 0,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: ')',\n regSymbol: '\\\\)'\n },\n min: {\n func: {\n symbol: 'min',\n f: min,\n notation: 'func',\n precedence: 0,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: 'min',\n regSymbol: 'min\\\\b'\n },\n max: {\n func: {\n symbol: 'max',\n f: max,\n notation: 'func',\n precedence: 0,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: 'max',\n regSymbol: 'max\\\\b'\n },\n sqrt: {\n func: {\n symbol: 'sqrt',\n f: sqrt,\n notation: 'func',\n precedence: 0,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: 'sqrt',\n regSymbol: 'sqrt\\\\b'\n }\n }\n};\n\n// based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js\n\n/**\n * Parse errors.md and turn it into a simple hash of code: message\n * @private\n */\nvar ERRORS = {\n \"1\": \"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\\n\\n\",\n \"2\": \"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\\n\\n\",\n \"3\": \"Passed an incorrect argument to a color function, please pass a string representation of a color.\\n\\n\",\n \"4\": \"Couldn't generate valid rgb string from %s, it returned %s.\\n\\n\",\n \"5\": \"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\\n\\n\",\n \"6\": \"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\\n\\n\",\n \"7\": \"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\\n\\n\",\n \"8\": \"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\\n\\n\",\n \"9\": \"Please provide a number of steps to the modularScale helper.\\n\\n\",\n \"10\": \"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\\n\\n\",\n \"11\": \"Invalid value passed as base to modularScale, expected number or em string but got \\\"%s\\\"\\n\\n\",\n \"12\": \"Expected a string ending in \\\"px\\\" or a number passed as the first argument to %s(), got \\\"%s\\\" instead.\\n\\n\",\n \"13\": \"Expected a string ending in \\\"px\\\" or a number passed as the second argument to %s(), got \\\"%s\\\" instead.\\n\\n\",\n \"14\": \"Passed invalid pixel value (\\\"%s\\\") to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n \"15\": \"Passed invalid base value (\\\"%s\\\") to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n \"16\": \"You must provide a template to this method.\\n\\n\",\n \"17\": \"You passed an unsupported selector state to this method.\\n\\n\",\n \"18\": \"minScreen and maxScreen must be provided as stringified numbers with the same units.\\n\\n\",\n \"19\": \"fromSize and toSize must be provided as stringified numbers with the same units.\\n\\n\",\n \"20\": \"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\\n\\n\",\n \"21\": \"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n \"22\": \"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n \"23\": \"fontFace expects a name of a font-family.\\n\\n\",\n \"24\": \"fontFace expects either the path to the font file(s) or a name of a local copy.\\n\\n\",\n \"25\": \"fontFace expects localFonts to be an array.\\n\\n\",\n \"26\": \"fontFace expects fileFormats to be an array.\\n\\n\",\n \"27\": \"radialGradient requries at least 2 color-stops to properly render.\\n\\n\",\n \"28\": \"Please supply a filename to retinaImage() as the first argument.\\n\\n\",\n \"29\": \"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\\n\\n\",\n \"30\": \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n \"31\": \"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\\n\\n\",\n \"32\": \"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\\n\\n\",\n \"33\": \"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\\n\\n\",\n \"34\": \"borderRadius expects a radius value as a string or number as the second argument.\\n\\n\",\n \"35\": \"borderRadius expects one of \\\"top\\\", \\\"bottom\\\", \\\"left\\\" or \\\"right\\\" as the first argument.\\n\\n\",\n \"36\": \"Property must be a string value.\\n\\n\",\n \"37\": \"Syntax Error at %s.\\n\\n\",\n \"38\": \"Formula contains a function that needs parentheses at %s.\\n\\n\",\n \"39\": \"Formula is missing closing parenthesis at %s.\\n\\n\",\n \"40\": \"Formula has too many closing parentheses at %s.\\n\\n\",\n \"41\": \"All values in a formula must have the same unit or be unitless.\\n\\n\",\n \"42\": \"Please provide a number of steps to the modularScale helper.\\n\\n\",\n \"43\": \"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\\n\\n\",\n \"44\": \"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\\n\\n\",\n \"45\": \"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\\n\\n\",\n \"46\": \"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\\n\\n\",\n \"47\": \"minScreen and maxScreen must be provided as stringified numbers with the same units.\\n\\n\",\n \"48\": \"fromSize and toSize must be provided as stringified numbers with the same units.\\n\\n\",\n \"49\": \"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\\n\\n\",\n \"50\": \"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\\n\\n\",\n \"51\": \"Expects the first argument object to have the properties prop, fromSize, and toSize.\\n\\n\",\n \"52\": \"fontFace expects either the path to the font file(s) or a name of a local copy.\\n\\n\",\n \"53\": \"fontFace expects localFonts to be an array.\\n\\n\",\n \"54\": \"fontFace expects fileFormats to be an array.\\n\\n\",\n \"55\": \"fontFace expects a name of a font-family.\\n\\n\",\n \"56\": \"linearGradient requries at least 2 color-stops to properly render.\\n\\n\",\n \"57\": \"radialGradient requries at least 2 color-stops to properly render.\\n\\n\",\n \"58\": \"Please supply a filename to retinaImage() as the first argument.\\n\\n\",\n \"59\": \"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\\n\\n\",\n \"60\": \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n \"61\": \"Property must be a string value.\\n\\n\",\n \"62\": \"borderRadius expects a radius value as a string or number as the second argument.\\n\\n\",\n \"63\": \"borderRadius expects one of \\\"top\\\", \\\"bottom\\\", \\\"left\\\" or \\\"right\\\" as the first argument.\\n\\n\",\n \"64\": \"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\\n\\n\",\n \"65\": \"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\\n\\n\",\n \"66\": \"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\\n\\n\",\n \"67\": \"You must provide a template to this method.\\n\\n\",\n \"68\": \"You passed an unsupported selector state to this method.\\n\\n\",\n \"69\": \"Expected a string ending in \\\"px\\\" or a number passed as the first argument to %s(), got %s instead.\\n\\n\",\n \"70\": \"Expected a string ending in \\\"px\\\" or a number passed as the second argument to %s(), got %s instead.\\n\\n\",\n \"71\": \"Passed invalid pixel value %s to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n \"72\": \"Passed invalid base value %s to %s(), please pass a value like \\\"12px\\\" or 12.\\n\"\n};\n/**\n * super basic version of sprintf\n * @private\n */\n\nfunction format() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var a = args[0];\n var b = [];\n var c;\n\n for (c = 1; c < args.length; c += 1) {\n b.push(args[c]);\n }\n\n b.forEach(function (d) {\n a = a.replace(/%[a-z]/, d);\n });\n return a;\n}\n/**\n * Create an error file out of errors.md for development and a simple web link to the full errors\n * in production mode.\n * @private\n */\n\n\nvar PolishedError =\n/*#__PURE__*/\nfunction (_Error) {\n _inheritsLoose(PolishedError, _Error);\n\n function PolishedError(code) {\n var _this;\n\n if (process.env.NODE_ENV === 'production') {\n _this = _Error.call(this, \"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#\" + code + \" for more information.\") || this;\n } else {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;\n }\n\n return _assertThisInitialized(_this);\n }\n\n return PolishedError;\n}(\n/*#__PURE__*/\n_wrapNativeSuper(Error));\n\nvar unitRegExp = /((?!\\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\\D|$)|ged|darg?|nrut)/g; // Merges additional math functionality into the defaults.\n\nfunction mergeSymbolMaps(additionalSymbols) {\n var symbolMap = {};\n symbolMap.symbols = additionalSymbols ? _extends({}, defaultMathSymbols.symbols, additionalSymbols.symbols) : _extends({}, defaultMathSymbols.symbols);\n return symbolMap;\n}\n\nfunction exec(operators, values) {\n var _ref;\n\n var op = operators.pop();\n values.push(op.f.apply(op, (_ref = []).concat.apply(_ref, values.splice(-op.argCount))));\n return op.precedence;\n}\n\nfunction calculate(expression, additionalSymbols) {\n var symbolMap = mergeSymbolMaps(additionalSymbols);\n var match;\n var operators = [symbolMap.symbols['('].prefix];\n var values = [];\n var pattern = new RegExp( // Pattern for numbers\n \"\\\\d+(?:\\\\.\\\\d+)?|\" + // ...and patterns for individual operators/function names\n Object.keys(symbolMap.symbols).map(function (key) {\n return symbolMap.symbols[key];\n }) // longer symbols should be listed first\n // $FlowFixMe\n .sort(function (a, b) {\n return b.symbol.length - a.symbol.length;\n }) // $FlowFixMe\n .map(function (val) {\n return val.regSymbol;\n }).join('|') + \"|(\\\\S)\", 'g');\n pattern.lastIndex = 0; // Reset regular expression object\n\n var afterValue = false;\n\n do {\n match = pattern.exec(expression);\n\n var _ref2 = match || [')', undefined],\n token = _ref2[0],\n bad = _ref2[1];\n\n var notNumber = symbolMap.symbols[token];\n var notNewValue = notNumber && !notNumber.prefix && !notNumber.func;\n var notAfterValue = !notNumber || !notNumber.postfix && !notNumber.infix; // Check for syntax errors:\n\n if (bad || (afterValue ? notAfterValue : notNewValue)) {\n throw new PolishedError(37, match ? match.index : expression.length, expression);\n }\n\n if (afterValue) {\n // We either have an infix or postfix operator (they should be mutually exclusive)\n var curr = notNumber.postfix || notNumber.infix;\n\n do {\n var prev = operators[operators.length - 1];\n if ((curr.precedence - prev.precedence || prev.rightToLeft) > 0) break; // Apply previous operator, since it has precedence over current one\n } while (exec(operators, values)); // Exit loop after executing an opening parenthesis or function\n\n\n afterValue = curr.notation === 'postfix';\n\n if (curr.symbol !== ')') {\n operators.push(curr); // Postfix always has precedence over any operator that follows after it\n\n if (afterValue) exec(operators, values);\n }\n } else if (notNumber) {\n // prefix operator or function\n operators.push(notNumber.prefix || notNumber.func);\n\n if (notNumber.func) {\n // Require an opening parenthesis\n match = pattern.exec(expression);\n\n if (!match || match[0] !== '(') {\n throw new PolishedError(38, match ? match.index : expression.length, expression);\n }\n }\n } else {\n // number\n values.push(+token);\n afterValue = true;\n }\n } while (match && operators.length);\n\n if (operators.length) {\n throw new PolishedError(39, match ? match.index : expression.length, expression);\n } else if (match) {\n throw new PolishedError(40, match ? match.index : expression.length, expression);\n } else {\n return values.pop();\n }\n}\n\nfunction reverseString(str) {\n return str.split('').reverse().join('');\n}\n/**\n * Helper for doing math with CSS Units. Accepts a formula as a string. All values in the formula must have the same unit (or be unitless). Supports complex formulas utliziing addition, subtraction, multiplication, division, square root, powers, factorial, min, max, as well as parentheses for order of operation.\n *\n *In cases where you need to do calculations with mixed units where one unit is a [relative length unit](https://developer.mozilla.org/en-US/docs/Web/CSS/length#Relative_length_units), you will want to use [CSS Calc](https://developer.mozilla.org/en-US/docs/Web/CSS/calc).\n *\n * *warning* While we've done everything possible to ensure math safely evalutes formulas expressed as strings, you should always use extreme caution when passing `math` user provided values.\n * @example\n * // Styles as object usage\n * const styles = {\n * fontSize: math('12rem + 8rem'),\n * fontSize: math('(12px + 2px) * 3'),\n * fontSize: math('3px^2 + sqrt(4)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * fontSize: ${math('12rem + 8rem')};\n * fontSize: ${math('(12px + 2px) * 3')};\n * fontSize: ${math('3px^2 + sqrt(4)')};\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n * fontSize: '20rem',\n * fontSize: '42px',\n * fontSize: '11px',\n * }\n */\n\n\nfunction math(formula, additionalSymbols) {\n var reversedFormula = reverseString(formula);\n var formulaMatch = reversedFormula.match(unitRegExp); // Check that all units are the same\n\n if (formulaMatch && !formulaMatch.every(function (unit) {\n return unit === formulaMatch[0];\n })) {\n throw new PolishedError(41);\n }\n\n var cleanFormula = reverseString(reversedFormula.replace(unitRegExp, ''));\n return \"\" + calculate(cleanFormula, additionalSymbols) + (formulaMatch ? reverseString(formulaMatch[0]) : '');\n}\n\n// @private\nfunction capitalizeString(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\nvar positionMap = ['Top', 'Right', 'Bottom', 'Left'];\n\nfunction generateProperty(property, position) {\n if (!property) return position.toLowerCase();\n var splitProperty = property.split('-');\n\n if (splitProperty.length > 1) {\n splitProperty.splice(1, 0, position);\n return splitProperty.reduce(function (acc, val) {\n return \"\" + acc + capitalizeString(val);\n });\n }\n\n var joinedProperty = property.replace(/([a-z])([A-Z])/g, \"$1\" + position + \"$2\");\n return property === joinedProperty ? \"\" + property + position : joinedProperty;\n}\n\nfunction generateStyles(property, valuesWithDefaults) {\n var styles = {};\n\n for (var i = 0; i < valuesWithDefaults.length; i += 1) {\n if (valuesWithDefaults[i] || valuesWithDefaults[i] === 0) {\n styles[generateProperty(property, positionMap[i])] = valuesWithDefaults[i];\n }\n }\n\n return styles;\n}\n/**\n * Enables shorthand for direction-based properties. It accepts a property (hyphenated or camelCased) and up to four values that map to top, right, bottom, and left, respectively. You can optionally pass an empty string to get only the directional values as properties. You can also optionally pass a null argument for a directional value to ignore it.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...directionalProperty('padding', '12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${directionalProperty('padding', '12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'paddingTop': '12px',\n * 'paddingRight': '24px',\n * 'paddingBottom': '36px',\n * 'paddingLeft': '48px'\n * }\n */\n\n\nfunction directionalProperty(property) {\n for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n values[_key - 1] = arguments[_key];\n }\n\n // prettier-ignore\n var firstValue = values[0],\n _values$ = values[1],\n secondValue = _values$ === void 0 ? firstValue : _values$,\n _values$2 = values[2],\n thirdValue = _values$2 === void 0 ? firstValue : _values$2,\n _values$3 = values[3],\n fourthValue = _values$3 === void 0 ? secondValue : _values$3;\n var valuesWithDefaults = [firstValue, secondValue, thirdValue, fourthValue];\n return generateStyles(property, valuesWithDefaults);\n}\n\n/**\n * Check if a string ends with something\n * @private\n */\nfunction endsWith (string, suffix) {\n return string.substr(-suffix.length) === suffix;\n}\n\nvar cssRegex = /^([+-]?(?:\\d+|\\d*\\.\\d+))([a-z]*|%)$/;\n/**\n * Returns a given CSS value minus its unit (or the original value if an invalid string is passed). Optionally returns an array containing the stripped value and the original unit of measure.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * '--dimension': stripUnit('100px'),\n * '--unit': stripUnit('100px')[1],\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * --dimension: ${stripUnit('100px')};\n * --unit: ${stripUnit('100px')[1]};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * '--dimension': 100,\n * '--unit': 'px',\n * }\n */\n\nfunction stripUnit(value, unitReturn) {\n if (typeof value !== 'string') return unitReturn ? [value, undefined] : value;\n var matchedValue = value.match(cssRegex);\n\n if (unitReturn) {\n if (matchedValue) return [parseFloat(value), matchedValue[2]];\n return [value, undefined];\n }\n\n if (matchedValue) return parseFloat(value);\n return value;\n}\n\n/**\n * Factory function that creates pixel-to-x converters\n * @private\n */\n\nvar pxtoFactory = function pxtoFactory(to) {\n return function (pxval, base) {\n if (base === void 0) {\n base = '16px';\n }\n\n var newPxval = pxval;\n var newBase = base;\n\n if (typeof pxval === 'string') {\n if (!endsWith(pxval, 'px')) {\n throw new PolishedError(69, to, pxval);\n }\n\n newPxval = stripUnit(pxval);\n }\n\n if (typeof base === 'string') {\n if (!endsWith(base, 'px')) {\n throw new PolishedError(70, to, base);\n }\n\n newBase = stripUnit(base);\n }\n\n if (typeof newPxval === 'string') {\n throw new PolishedError(71, pxval, to);\n }\n\n if (typeof newBase === 'string') {\n throw new PolishedError(72, base, to);\n }\n\n return \"\" + newPxval / newBase + to;\n };\n};\n\n/**\n * Convert pixel value to ems. The default base value is 16px, but can be changed by passing a\n * second argument to the function.\n * @function\n * @param {string|number} pxval\n * @param {string|number} [base='16px']\n * @example\n * // Styles as object usage\n * const styles = {\n * 'height': em('16px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * height: ${em('16px')}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * 'height': '1em'\n * }\n */\n\nvar em =\n/*#__PURE__*/\npxtoFactory('em');\n\nvar cssRegex$1 = /^([+-]?(?:\\d+|\\d*\\.\\d+))([a-z]*|%)$/;\n/**\n * Returns a given CSS value and its unit as elements of an array.\n *\n * @deprecated - getValueAndUnit has been marked for deprecation in polished 3.0 and will be fully deprecated in 4.0. It's functionality has been been moved to stripUnit as an optional return.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * '--dimension': getValueAndUnit('100px')[0],\n * '--unit': getValueAndUnit('100px')[1],\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * --dimension: ${getValueAndUnit('100px')[0]};\n * --unit: ${getValueAndUnit('100px')[1]};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * '--dimension': 100,\n * '--unit': 'px',\n * }\n */\n\nfunction getValueAndUnit(value) {\n // eslint-disable-next-line no-console\n console.warn(\"getValueAndUnit has been marked for deprecation in polished 3.0 and will be fully deprecated in 4.0. It's functionality has been been moved to stripUnit as an optional return.\");\n if (typeof value !== 'string') return [value, ''];\n var matchedValue = value.match(cssRegex$1);\n if (matchedValue) return [parseFloat(value), matchedValue[2]];\n return [value, undefined];\n}\n\nvar ratioNames = {\n minorSecond: 1.067,\n majorSecond: 1.125,\n minorThird: 1.2,\n majorThird: 1.25,\n perfectFourth: 1.333,\n augFourth: 1.414,\n perfectFifth: 1.5,\n minorSixth: 1.6,\n goldenSection: 1.618,\n majorSixth: 1.667,\n minorSeventh: 1.778,\n majorSeventh: 1.875,\n octave: 2,\n majorTenth: 2.5,\n majorEleventh: 2.667,\n majorTwelfth: 3,\n doubleOctave: 4\n};\n\nfunction getRatio(ratioName) {\n return ratioNames[ratioName];\n}\n/**\n * Establish consistent measurements and spacial relationships throughout your projects by incrementing an em or rem value up or down a defined scale. We provide a list of commonly used scales as pre-defined variables.\n * @example\n * // Styles as object usage\n * const styles = {\n * // Increment two steps up the default scale\n * 'fontSize': modularScale(2)\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * // Increment two steps up the default scale\n * fontSize: ${modularScale(2)}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * 'fontSize': '1.77689em'\n * }\n */\n\n\nfunction modularScale(steps, base, ratio) {\n if (base === void 0) {\n base = '1em';\n }\n\n if (ratio === void 0) {\n ratio = 1.333;\n }\n\n if (typeof steps !== 'number') {\n throw new PolishedError(42);\n }\n\n if (typeof ratio === 'string' && !ratioNames[ratio]) {\n throw new PolishedError(43);\n }\n\n var _ref = typeof base === 'string' ? stripUnit(base, true) : [base, ''],\n realBase = _ref[0],\n unit = _ref[1];\n\n var realRatio = typeof ratio === 'string' ? getRatio(ratio) : ratio;\n\n if (typeof realBase === 'string') {\n throw new PolishedError(44, base);\n }\n\n return \"\" + realBase * Math.pow(realRatio, steps) + unit;\n}\n\n/**\n * Convert pixel value to rems. The default base value is 16px, but can be changed by passing a\n * second argument to the function.\n * @function\n * @param {string|number} pxval\n * @param {string|number} [base='16px']\n * @example\n * // Styles as object usage\n * const styles = {\n * 'height': rem('16px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * height: ${rem('16px')}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * 'height': '1rem'\n * }\n */\n\nvar rem =\n/*#__PURE__*/\npxtoFactory('rem');\n\n/**\n * Returns a CSS calc formula for linear interpolation of a property between two values. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px').\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * fontSize: between('20px', '100px', '400px', '1000px'),\n * fontSize: between('20px', '100px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * fontSize: ${between('20px', '100px', '400px', '1000px')};\n * fontSize: ${between('20px', '100px')}\n * `\n *\n * // CSS as JS Output\n *\n * h1: {\n * 'fontSize': 'calc(-33.33333333333334px + 13.333333333333334vw)',\n * 'fontSize': 'calc(-9.090909090909093px + 9.090909090909092vw)'\n * }\n */\n\nfunction between(fromSize, toSize, minScreen, maxScreen) {\n if (minScreen === void 0) {\n minScreen = '320px';\n }\n\n if (maxScreen === void 0) {\n maxScreen = '1200px';\n }\n\n var _stripUnit = stripUnit(fromSize, true),\n unitlessFromSize = _stripUnit[0],\n fromSizeUnit = _stripUnit[1];\n\n var _stripUnit2 = stripUnit(toSize, true),\n unitlessToSize = _stripUnit2[0],\n toSizeUnit = _stripUnit2[1];\n\n var _stripUnit3 = stripUnit(minScreen, true),\n unitlessMinScreen = _stripUnit3[0],\n minScreenUnit = _stripUnit3[1];\n\n var _stripUnit4 = stripUnit(maxScreen, true),\n unitlessMaxScreen = _stripUnit4[0],\n maxScreenUnit = _stripUnit4[1];\n\n if (typeof unitlessMinScreen !== 'number' || typeof unitlessMaxScreen !== 'number' || !minScreenUnit || !maxScreenUnit || minScreenUnit !== maxScreenUnit) {\n throw new PolishedError(47);\n }\n\n if (typeof unitlessFromSize !== 'number' || typeof unitlessToSize !== 'number' || fromSizeUnit !== toSizeUnit) {\n throw new PolishedError(48);\n }\n\n var slope = (unitlessFromSize - unitlessToSize) / (unitlessMinScreen - unitlessMaxScreen);\n var base = unitlessToSize - slope * unitlessMaxScreen;\n return \"calc(\" + base.toFixed(2) + (fromSizeUnit || '') + \" + \" + (100 * slope).toFixed(2) + \"vw)\";\n}\n\n/**\n * CSS to contain a float (credit to CSSMojo).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...clearFix(),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${clearFix()}\n * `\n *\n * // CSS as JS Output\n *\n * '&::after': {\n * 'clear': 'both',\n * 'content': '\"\"',\n * 'display': 'table'\n * }\n */\nfunction clearFix(parent) {\n var _ref;\n\n if (parent === void 0) {\n parent = '&';\n }\n\n var pseudoSelector = parent + \"::after\";\n return _ref = {}, _ref[pseudoSelector] = {\n clear: 'both',\n content: '\"\"',\n display: 'table'\n }, _ref;\n}\n\n/**\n * CSS to fully cover an area. Can optionally be passed an offset to act as a \"padding\".\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...cover()\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${cover()}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n * 'position': 'absolute',\n * 'top': '0',\n * 'right: '0',\n * 'bottom': '0',\n * 'left: '0'\n * }\n */\nfunction cover(offset) {\n if (offset === void 0) {\n offset = 0;\n }\n\n return {\n position: 'absolute',\n top: offset,\n right: offset,\n bottom: offset,\n left: offset\n };\n}\n\n/**\n * CSS to represent truncated text with an ellipsis.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...ellipsis('250px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${ellipsis('250px')}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n * 'display': 'inline-block',\n * 'maxWidth': '250px',\n * 'overflow': 'hidden',\n * 'textOverflow': 'ellipsis',\n * 'whiteSpace': 'nowrap',\n * 'wordWrap': 'normal'\n * }\n */\nfunction ellipsis(width) {\n if (width === void 0) {\n width = '100%';\n }\n\n return {\n display: 'inline-block',\n maxWidth: width,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n wordWrap: 'normal'\n };\n}\n\n/**\n * Returns a set of media queries that resizes a property (or set of properties) between a provided fromSize and toSize. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px') to constrain the interpolation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...fluidRange(\n * {\n * prop: 'padding',\n * fromSize: '20px',\n * toSize: '100px',\n * },\n * '400px',\n * '1000px',\n * )\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${fluidRange(\n * {\n * prop: 'padding',\n * fromSize: '20px',\n * toSize: '100px',\n * },\n * '400px',\n * '1000px',\n * )}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n * \"@media (min-width: 1000px)\": Object {\n * \"padding\": \"100px\",\n * },\n * \"@media (min-width: 400px)\": Object {\n * \"padding\": \"calc(-33.33333333333334px + 13.333333333333334vw)\",\n * },\n * \"padding\": \"20px\",\n * }\n */\nfunction fluidRange(cssProp, minScreen, maxScreen) {\n if (minScreen === void 0) {\n minScreen = '320px';\n }\n\n if (maxScreen === void 0) {\n maxScreen = '1200px';\n }\n\n if (!Array.isArray(cssProp) && typeof cssProp !== 'object' || cssProp === null) {\n throw new PolishedError(49);\n }\n\n if (Array.isArray(cssProp)) {\n var mediaQueries = {};\n var fallbacks = {};\n\n for (var _iterator = cssProp, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _extends2, _extends3;\n\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var obj = _ref;\n\n if (!obj.prop || !obj.fromSize || !obj.toSize) {\n throw new PolishedError(50);\n }\n\n fallbacks[obj.prop] = obj.fromSize;\n mediaQueries[\"@media (min-width: \" + minScreen + \")\"] = _extends({}, mediaQueries[\"@media (min-width: \" + minScreen + \")\"], (_extends2 = {}, _extends2[obj.prop] = between(obj.fromSize, obj.toSize, minScreen, maxScreen), _extends2));\n mediaQueries[\"@media (min-width: \" + maxScreen + \")\"] = _extends({}, mediaQueries[\"@media (min-width: \" + maxScreen + \")\"], (_extends3 = {}, _extends3[obj.prop] = obj.toSize, _extends3));\n }\n\n return _extends({}, fallbacks, mediaQueries);\n } else {\n var _ref2, _ref3, _ref4;\n\n if (!cssProp.prop || !cssProp.fromSize || !cssProp.toSize) {\n throw new PolishedError(51);\n }\n\n return _ref4 = {}, _ref4[cssProp.prop] = cssProp.fromSize, _ref4[\"@media (min-width: \" + minScreen + \")\"] = (_ref2 = {}, _ref2[cssProp.prop] = between(cssProp.fromSize, cssProp.toSize, minScreen, maxScreen), _ref2), _ref4[\"@media (min-width: \" + maxScreen + \")\"] = (_ref3 = {}, _ref3[cssProp.prop] = cssProp.toSize, _ref3), _ref4;\n }\n}\n\nvar dataURIRegex = /^\\s*data:([a-z]+\\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\\-._~:@/?%\\s]*\\s*$/i;\nvar formatHintMap = {\n woff: 'woff',\n woff2: 'woff2',\n ttf: 'truetype',\n otf: 'opentype',\n eot: 'embedded-opentype',\n svg: 'svg',\n svgz: 'svg'\n};\n\nfunction generateFormatHint(format, formatHint) {\n if (!formatHint) return '';\n return \" format(\\\"\" + formatHintMap[format] + \"\\\")\";\n}\n\nfunction isDataURI(fontFilePath) {\n return !!fontFilePath.match(dataURIRegex);\n}\n\nfunction generateFileReferences(fontFilePath, fileFormats, formatHint) {\n if (isDataURI(fontFilePath)) {\n return \"url(\\\"\" + fontFilePath + \"\\\")\" + generateFormatHint(fileFormats[0], formatHint);\n }\n\n var fileFontReferences = fileFormats.map(function (format) {\n return \"url(\\\"\" + fontFilePath + \".\" + format + \"\\\")\" + generateFormatHint(format, formatHint);\n });\n return fileFontReferences.join(', ');\n}\n\nfunction generateLocalReferences(localFonts) {\n var localFontReferences = localFonts.map(function (font) {\n return \"local(\\\"\" + font + \"\\\")\";\n });\n return localFontReferences.join(', ');\n}\n\nfunction generateSources(fontFilePath, localFonts, fileFormats, formatHint) {\n var fontReferences = [];\n if (localFonts) fontReferences.push(generateLocalReferences(localFonts));\n\n if (fontFilePath) {\n fontReferences.push(generateFileReferences(fontFilePath, fileFormats, formatHint));\n }\n\n return fontReferences.join(', ');\n}\n/**\n * CSS for a @font-face declaration.\n *\n * @example\n * // Styles as object basic usage\n * const styles = {\n * ...fontFace({\n * 'fontFamily': 'Sans-Pro',\n * 'fontFilePath': 'path/to/file'\n * })\n * }\n *\n * // styled-components basic usage\n * const GlobalStyle = createGlobalStyle`${\n * fontFace({\n * 'fontFamily': 'Sans-Pro',\n * 'fontFilePath': 'path/to/file'\n * }\n * )}`\n *\n * // CSS as JS Output\n *\n * '@font-face': {\n * 'fontFamily': 'Sans-Pro',\n * 'src': 'url(\"path/to/file.eot\"), url(\"path/to/file.woff2\"), url(\"path/to/file.woff\"), url(\"path/to/file.ttf\"), url(\"path/to/file.svg\")',\n * }\n */\n\n\nfunction fontFace(_ref) {\n var fontFamily = _ref.fontFamily,\n fontFilePath = _ref.fontFilePath,\n fontStretch = _ref.fontStretch,\n fontStyle = _ref.fontStyle,\n fontVariant = _ref.fontVariant,\n fontWeight = _ref.fontWeight,\n _ref$fileFormats = _ref.fileFormats,\n fileFormats = _ref$fileFormats === void 0 ? ['eot', 'woff2', 'woff', 'ttf', 'svg'] : _ref$fileFormats,\n _ref$formatHint = _ref.formatHint,\n formatHint = _ref$formatHint === void 0 ? false : _ref$formatHint,\n localFonts = _ref.localFonts,\n unicodeRange = _ref.unicodeRange,\n fontDisplay = _ref.fontDisplay,\n fontVariationSettings = _ref.fontVariationSettings,\n fontFeatureSettings = _ref.fontFeatureSettings;\n // Error Handling\n if (!fontFamily) throw new PolishedError(55);\n\n if (!fontFilePath && !localFonts) {\n throw new PolishedError(52);\n }\n\n if (localFonts && !Array.isArray(localFonts)) {\n throw new PolishedError(53);\n }\n\n if (!Array.isArray(fileFormats)) {\n throw new PolishedError(54);\n }\n\n var fontFaceDeclaration = {\n '@font-face': {\n fontFamily: fontFamily,\n src: generateSources(fontFilePath, localFonts, fileFormats, formatHint),\n unicodeRange: unicodeRange,\n fontStretch: fontStretch,\n fontStyle: fontStyle,\n fontVariant: fontVariant,\n fontWeight: fontWeight,\n fontDisplay: fontDisplay,\n fontVariationSettings: fontVariationSettings,\n fontFeatureSettings: fontFeatureSettings\n } // Removes undefined fields for cleaner css object.\n\n };\n return JSON.parse(JSON.stringify(fontFaceDeclaration));\n}\n\n/**\n * CSS to hide text to show a background image in a SEO-friendly way.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * 'backgroundImage': 'url(logo.png)',\n * ...hideText(),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * backgroundImage: url(logo.png);\n * ${hideText()};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n * 'backgroundImage': 'url(logo.png)',\n * 'textIndent': '101%',\n * 'overflow': 'hidden',\n * 'whiteSpace': 'nowrap',\n * }\n */\nfunction hideText() {\n return {\n textIndent: '101%',\n overflow: 'hidden',\n whiteSpace: 'nowrap'\n };\n}\n\n/**\n * CSS to hide content visually but remain accessible to screen readers.\n * from [HTML5 Boilerplate](https://github.com/h5bp/html5-boilerplate/blob/9a176f57af1cfe8ec70300da4621fb9b07e5fa31/src/css/main.css#L121)\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...hideVisually(),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${hideVisually()};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n * 'border': '0',\n * 'clip': 'rect(0 0 0 0)',\n * 'clipPath': 'inset(50%)',\n * 'height': '1px',\n * 'margin': '-1px',\n * 'overflow': 'hidden',\n * 'padding': '0',\n * 'position': 'absolute',\n * 'whiteSpace': 'nowrap',\n * 'width': '1px',\n * }\n */\nfunction hideVisually() {\n return {\n border: '0',\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n };\n}\n\n/**\n * Generates a media query to target HiDPI devices.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * [hiDPI(1.5)]: {\n * width: 200px;\n * }\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${hiDPI(1.5)} {\n * width: 200px;\n * }\n * `\n *\n * // CSS as JS Output\n *\n * '@media only screen and (-webkit-min-device-pixel-ratio: 1.5),\n * only screen and (min--moz-device-pixel-ratio: 1.5),\n * only screen and (-o-min-device-pixel-ratio: 1.5/1),\n * only screen and (min-resolution: 144dpi),\n * only screen and (min-resolution: 1.5dppx)': {\n * 'width': '200px',\n * }\n */\nfunction hiDPI(ratio) {\n if (ratio === void 0) {\n ratio = 1.3;\n }\n\n return \"\\n @media only screen and (-webkit-min-device-pixel-ratio: \" + ratio + \"),\\n only screen and (min--moz-device-pixel-ratio: \" + ratio + \"),\\n only screen and (-o-min-device-pixel-ratio: \" + ratio + \"/1),\\n only screen and (min-resolution: \" + Math.round(ratio * 96) + \"dpi),\\n only screen and (min-resolution: \" + ratio + \"dppx)\\n \";\n}\n\nfunction constructGradientValue(literals) {\n var template = '';\n\n for (var _len = arguments.length, substitutions = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n substitutions[_key - 1] = arguments[_key];\n }\n\n for (var i = 0; i < literals.length; i += 1) {\n template += literals[i];\n\n if (i === substitutions.length - 1 && substitutions[i]) {\n var definedValues = substitutions.filter(function (substitute) {\n return !!substitute;\n }); // Adds leading coma if properties preceed color-stops\n\n if (definedValues.length > 1) {\n template = template.slice(0, -1);\n template += \", \" + substitutions[i]; // No trailing space if color-stops is the only param provided\n } else if (definedValues.length === 1) {\n template += \"\" + substitutions[i];\n }\n } else if (substitutions[i]) {\n template += substitutions[i] + \" \";\n }\n }\n\n return template.trim();\n}\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteralLoose([\"linear-gradient(\", \"\", \")\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\n/**\n * CSS for declaring a linear gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...linearGradient({\n colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n toDirection: 'to top right',\n fallback: '#FFF',\n })\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${linearGradient({\n colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n toDirection: 'to top right',\n fallback: '#FFF',\n })}\n *`\n *\n * // CSS as JS Output\n *\n * div: {\n * 'backgroundColor': '#FFF',\n * 'backgroundImage': 'linear-gradient(to top right, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)',\n * }\n */\nfunction linearGradient(_ref) {\n var colorStops = _ref.colorStops,\n fallback = _ref.fallback,\n _ref$toDirection = _ref.toDirection,\n toDirection = _ref$toDirection === void 0 ? '' : _ref$toDirection;\n\n if (!colorStops || colorStops.length < 2) {\n throw new PolishedError(56);\n }\n\n return {\n backgroundColor: fallback || colorStops[0].split(' ')[0],\n backgroundImage: constructGradientValue(_templateObject(), toDirection, colorStops.join(', '))\n };\n}\n\n/**\n * CSS to normalize abnormalities across browsers (normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css)\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...normalize(),\n * }\n *\n * // styled-components usage\n * const GlobalStyle = createGlobalStyle`${normalize()}`\n *\n * // CSS as JS Output\n *\n * html {\n * lineHeight: 1.15,\n * textSizeAdjust: 100%,\n * } ...\n */\nfunction normalize() {\n var _ref;\n\n return [(_ref = {\n html: {\n lineHeight: '1.15',\n textSizeAdjust: '100%'\n },\n body: {\n margin: '0'\n },\n h1: {\n fontSize: '2em',\n margin: '0.67em 0'\n },\n hr: {\n boxSizing: 'content-box',\n height: '0',\n overflow: 'visible'\n },\n pre: {\n fontFamily: 'monospace, monospace',\n fontSize: '1em'\n },\n a: {\n backgroundColor: 'transparent'\n },\n 'abbr[title]': {\n borderBottom: 'none',\n textDecoration: 'underline'\n }\n }, _ref[\"b,\\n strong\"] = {\n fontWeight: 'bolder'\n }, _ref[\"code,\\n kbd,\\n samp\"] = {\n fontFamily: 'monospace, monospace',\n fontSize: '1em'\n }, _ref.small = {\n fontSize: '80%'\n }, _ref[\"sub,\\n sup\"] = {\n fontSize: '75%',\n lineHeight: '0',\n position: 'relative',\n verticalAlign: 'baseline'\n }, _ref.sub = {\n bottom: '-0.25em'\n }, _ref.sup = {\n top: '-0.5em'\n }, _ref.img = {\n borderStyle: 'none'\n }, _ref[\"button,\\n input,\\n optgroup,\\n select,\\n textarea\"] = {\n fontFamily: 'inherit',\n fontSize: '100%',\n lineHeight: '1.15',\n margin: '0'\n }, _ref[\"button,\\n input\"] = {\n overflow: 'visible'\n }, _ref[\"button,\\n select\"] = {\n textTransform: 'none'\n }, _ref[\"button,\\n html [type=\\\"button\\\"],\\n [type=\\\"reset\\\"],\\n [type=\\\"submit\\\"]\"] = {\n WebkitAppearance: 'button'\n }, _ref[\"button::-moz-focus-inner,\\n [type=\\\"button\\\"]::-moz-focus-inner,\\n [type=\\\"reset\\\"]::-moz-focus-inner,\\n [type=\\\"submit\\\"]::-moz-focus-inner\"] = {\n borderStyle: 'none',\n padding: '0'\n }, _ref[\"button:-moz-focusring,\\n [type=\\\"button\\\"]:-moz-focusring,\\n [type=\\\"reset\\\"]:-moz-focusring,\\n [type=\\\"submit\\\"]:-moz-focusring\"] = {\n outline: '1px dotted ButtonText'\n }, _ref.fieldset = {\n padding: '0.35em 0.625em 0.75em'\n }, _ref.legend = {\n boxSizing: 'border-box',\n color: 'inherit',\n display: 'table',\n maxWidth: '100%',\n padding: '0',\n whiteSpace: 'normal'\n }, _ref.progress = {\n verticalAlign: 'baseline'\n }, _ref.textarea = {\n overflow: 'auto'\n }, _ref[\"[type=\\\"checkbox\\\"],\\n [type=\\\"radio\\\"]\"] = {\n boxSizing: 'border-box',\n padding: '0'\n }, _ref[\"[type=\\\"number\\\"]::-webkit-inner-spin-button,\\n [type=\\\"number\\\"]::-webkit-outer-spin-button\"] = {\n height: 'auto'\n }, _ref['[type=\"search\"]'] = {\n WebkitAppearance: 'textfield',\n outlineOffset: '-2px'\n }, _ref['[type=\"search\"]::-webkit-search-decoration'] = {\n WebkitAppearance: 'none'\n }, _ref['::-webkit-file-upload-button'] = {\n WebkitAppearance: 'button',\n font: 'inherit'\n }, _ref.details = {\n display: 'block'\n }, _ref.summary = {\n display: 'list-item'\n }, _ref.template = {\n display: 'none'\n }, _ref['[hidden]'] = {\n display: 'none'\n }, _ref), {\n 'abbr[title]': {\n textDecoration: 'underline dotted'\n }\n }];\n}\n\nfunction _templateObject$1() {\n var data = _taggedTemplateLiteralLoose([\"radial-gradient(\", \"\", \"\", \"\", \")\"]);\n\n _templateObject$1 = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\n/**\n * CSS for declaring a radial gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...radialGradient({\n * colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n * extent: 'farthest-corner at 45px 45px',\n * position: 'center',\n * shape: 'ellipse',\n * })\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${radialGradient({\n * colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n * extent: 'farthest-corner at 45px 45px',\n * position: 'center',\n * shape: 'ellipse',\n * })}\n *`\n *\n * // CSS as JS Output\n *\n * div: {\n * 'backgroundColor': '#00FFFF',\n * 'backgroundImage': 'radial-gradient(center ellipse farthest-corner at 45px 45px, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)',\n * }\n */\nfunction radialGradient(_ref) {\n var colorStops = _ref.colorStops,\n _ref$extent = _ref.extent,\n extent = _ref$extent === void 0 ? '' : _ref$extent,\n fallback = _ref.fallback,\n _ref$position = _ref.position,\n position = _ref$position === void 0 ? '' : _ref$position,\n _ref$shape = _ref.shape,\n shape = _ref$shape === void 0 ? '' : _ref$shape;\n\n if (!colorStops || colorStops.length < 2) {\n throw new PolishedError(57);\n }\n\n return {\n backgroundColor: fallback || colorStops[0].split(' ')[0],\n backgroundImage: constructGradientValue(_templateObject$1(), position, shape, extent, colorStops.join(', '))\n };\n}\n\n/**\n * A helper to generate a retina background image and non-retina\n * background image. The retina background image will output to a HiDPI media query. The mixin uses\n * a _2x.png filename suffix by default.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...retinaImage('my-img')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${retinaImage('my-img')}\n * `\n *\n * // CSS as JS Output\n * div {\n * backgroundImage: 'url(my-img.png)',\n * '@media only screen and (-webkit-min-device-pixel-ratio: 1.3),\n * only screen and (min--moz-device-pixel-ratio: 1.3),\n * only screen and (-o-min-device-pixel-ratio: 1.3/1),\n * only screen and (min-resolution: 144dpi),\n * only screen and (min-resolution: 1.5dppx)': {\n * backgroundImage: 'url(my-img_2x.png)',\n * }\n * }\n */\nfunction retinaImage(filename, backgroundSize, extension, retinaFilename, retinaSuffix) {\n var _ref;\n\n if (extension === void 0) {\n extension = 'png';\n }\n\n if (retinaSuffix === void 0) {\n retinaSuffix = '_2x';\n }\n\n if (!filename) {\n throw new PolishedError(58);\n } // Replace the dot at the beginning of the passed extension if one exists\n\n\n var ext = extension.replace(/^\\./, '');\n var rFilename = retinaFilename ? retinaFilename + \".\" + ext : \"\" + filename + retinaSuffix + \".\" + ext;\n return _ref = {\n backgroundImage: \"url(\" + filename + \".\" + ext + \")\"\n }, _ref[hiDPI()] = _extends({\n backgroundImage: \"url(\" + rFilename + \")\"\n }, backgroundSize ? {\n backgroundSize: backgroundSize\n } : {}), _ref;\n}\n\n/* eslint-disable key-spacing */\nvar functionsMap = {\n easeInBack: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)',\n easeInCirc: 'cubic-bezier(0.600, 0.040, 0.980, 0.335)',\n easeInCubic: 'cubic-bezier(0.550, 0.055, 0.675, 0.190)',\n easeInExpo: 'cubic-bezier(0.950, 0.050, 0.795, 0.035)',\n easeInQuad: 'cubic-bezier(0.550, 0.085, 0.680, 0.530)',\n easeInQuart: 'cubic-bezier(0.895, 0.030, 0.685, 0.220)',\n easeInQuint: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)',\n easeInSine: 'cubic-bezier(0.470, 0.000, 0.745, 0.715)',\n easeOutBack: 'cubic-bezier(0.175, 0.885, 0.320, 1.275)',\n easeOutCubic: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)',\n easeOutCirc: 'cubic-bezier(0.075, 0.820, 0.165, 1.000)',\n easeOutExpo: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)',\n easeOutQuad: 'cubic-bezier(0.250, 0.460, 0.450, 0.940)',\n easeOutQuart: 'cubic-bezier(0.165, 0.840, 0.440, 1.000)',\n easeOutQuint: 'cubic-bezier(0.230, 1.000, 0.320, 1.000)',\n easeOutSine: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)',\n easeInOutBack: 'cubic-bezier(0.680, -0.550, 0.265, 1.550)',\n easeInOutCirc: 'cubic-bezier(0.785, 0.135, 0.150, 0.860)',\n easeInOutCubic: 'cubic-bezier(0.645, 0.045, 0.355, 1.000)',\n easeInOutExpo: 'cubic-bezier(1.000, 0.000, 0.000, 1.000)',\n easeInOutQuad: 'cubic-bezier(0.455, 0.030, 0.515, 0.955)',\n easeInOutQuart: 'cubic-bezier(0.770, 0.000, 0.175, 1.000)',\n easeInOutQuint: 'cubic-bezier(0.860, 0.000, 0.070, 1.000)',\n easeInOutSine: 'cubic-bezier(0.445, 0.050, 0.550, 0.950)'\n /* eslint-enable key-spacing */\n\n};\n\nfunction getTimingFunction(functionName) {\n return functionsMap[functionName];\n}\n/**\n * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * 'transitionTimingFunction': timingFunctions('easeInQuad')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * transitionTimingFunction: ${timingFunctions('easeInQuad')};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n * 'transitionTimingFunction': 'cubic-bezier(0.550, 0.085, 0.680, 0.530)',\n * }\n */\n\n\nfunction timingFunctions(timingFunction) {\n return getTimingFunction(timingFunction);\n}\n\nvar getBorderWidth = function getBorderWidth(pointingDirection, height, width) {\n var fullWidth = \"\" + width[0] + (width[1] || '');\n var halfWidth = \"\" + width[0] / 2 + (width[1] || '');\n var fullHeight = \"\" + height[0] + (height[1] || '');\n var halfHeight = \"\" + height[0] / 2 + (height[1] || '');\n\n switch (pointingDirection) {\n case 'top':\n return \"0 \" + halfWidth + \" \" + fullHeight + \" \" + halfWidth;\n\n case 'topLeft':\n return fullWidth + \" \" + fullHeight + \" 0 0\";\n\n case 'left':\n return halfHeight + \" \" + fullWidth + \" \" + halfHeight + \" 0\";\n\n case 'bottomLeft':\n return fullWidth + \" 0 0 \" + fullHeight;\n\n case 'bottom':\n return fullHeight + \" \" + halfWidth + \" 0 \" + halfWidth;\n\n case 'bottomRight':\n return \"0 0 \" + fullWidth + \" \" + fullHeight;\n\n case 'right':\n return halfHeight + \" 0 \" + halfHeight + \" \" + fullWidth;\n\n case 'topRight':\n default:\n return \"0 \" + fullWidth + \" \" + fullHeight + \" 0\";\n }\n};\n\nvar getBorderColor = function getBorderColor(pointingDirection, foregroundColor, backgroundColor) {\n switch (pointingDirection) {\n case 'top':\n case 'bottomRight':\n return backgroundColor + \" \" + backgroundColor + \" \" + foregroundColor + \" \" + backgroundColor;\n\n case 'right':\n case 'bottomLeft':\n return backgroundColor + \" \" + backgroundColor + \" \" + backgroundColor + \" \" + foregroundColor;\n\n case 'bottom':\n case 'topLeft':\n return foregroundColor + \" \" + backgroundColor + \" \" + backgroundColor + \" \" + backgroundColor;\n\n case 'left':\n case 'topRight':\n return backgroundColor + \" \" + foregroundColor + \" \" + backgroundColor + \" \" + backgroundColor;\n\n default:\n throw new PolishedError(59);\n }\n};\n/**\n * CSS to represent triangle with any pointing direction with an optional background color.\n *\n * @example\n * // Styles as object usage\n *\n * const styles = {\n * ...triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' })\n * }\n *\n *\n * // styled-components usage\n * const div = styled.div`\n * ${triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' })}\n *\n *\n * // CSS as JS Output\n *\n * div: {\n * 'borderColor': 'transparent transparent transparent red',\n * 'borderStyle': 'solid',\n * 'borderWidth': '50px 0 50px 100px',\n * 'height': '0',\n * 'width': '0',\n * }\n */\n\n\nfunction triangle(_ref) {\n var pointingDirection = _ref.pointingDirection,\n height = _ref.height,\n width = _ref.width,\n foregroundColor = _ref.foregroundColor,\n _ref$backgroundColor = _ref.backgroundColor,\n backgroundColor = _ref$backgroundColor === void 0 ? 'transparent' : _ref$backgroundColor;\n var widthAndUnit = stripUnit(width, true);\n var heightAndUnit = stripUnit(height, true);\n\n if (isNaN(heightAndUnit[0]) || isNaN(widthAndUnit[0])) {\n throw new PolishedError(60);\n }\n\n return {\n width: '0',\n height: '0',\n borderColor: getBorderColor(pointingDirection, foregroundColor, backgroundColor),\n borderStyle: 'solid',\n borderWidth: getBorderWidth(pointingDirection, heightAndUnit, widthAndUnit)\n };\n}\n\n/**\n * Provides an easy way to change the `wordWrap` property.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...wordWrap('break-word')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${wordWrap('break-word')}\n * `\n *\n * // CSS as JS Output\n *\n * const styles = {\n * overflowWrap: 'break-word',\n * wordWrap: 'break-word',\n * wordBreak: 'break-all',\n * }\n */\nfunction wordWrap(wrap) {\n if (wrap === void 0) {\n wrap = 'break-word';\n }\n\n var wordBreak = wrap === 'break-word' ? 'break-all' : wrap;\n return {\n overflowWrap: wrap,\n wordWrap: wrap,\n wordBreak: wordBreak\n };\n}\n\nfunction colorToInt(color) {\n return Math.round(color * 255);\n}\n\nfunction convertToInt(red, green, blue) {\n return colorToInt(red) + \",\" + colorToInt(green) + \",\" + colorToInt(blue);\n}\n\nfunction hslToRgb(hue, saturation, lightness, convert) {\n if (convert === void 0) {\n convert = convertToInt;\n }\n\n if (saturation === 0) {\n // achromatic\n return convert(lightness, lightness, lightness);\n } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV\n\n\n var huePrime = (hue % 360 + 360) % 360 / 60;\n var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;\n var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));\n var red = 0;\n var green = 0;\n var blue = 0;\n\n if (huePrime >= 0 && huePrime < 1) {\n red = chroma;\n green = secondComponent;\n } else if (huePrime >= 1 && huePrime < 2) {\n red = secondComponent;\n green = chroma;\n } else if (huePrime >= 2 && huePrime < 3) {\n green = chroma;\n blue = secondComponent;\n } else if (huePrime >= 3 && huePrime < 4) {\n green = secondComponent;\n blue = chroma;\n } else if (huePrime >= 4 && huePrime < 5) {\n red = secondComponent;\n blue = chroma;\n } else if (huePrime >= 5 && huePrime < 6) {\n red = chroma;\n blue = secondComponent;\n }\n\n var lightnessModification = lightness - chroma / 2;\n var finalRed = red + lightnessModification;\n var finalGreen = green + lightnessModification;\n var finalBlue = blue + lightnessModification;\n return convert(finalRed, finalGreen, finalBlue);\n}\n\nvar namedColorMap = {\n aliceblue: 'f0f8ff',\n antiquewhite: 'faebd7',\n aqua: '00ffff',\n aquamarine: '7fffd4',\n azure: 'f0ffff',\n beige: 'f5f5dc',\n bisque: 'ffe4c4',\n black: '000',\n blanchedalmond: 'ffebcd',\n blue: '0000ff',\n blueviolet: '8a2be2',\n brown: 'a52a2a',\n burlywood: 'deb887',\n cadetblue: '5f9ea0',\n chartreuse: '7fff00',\n chocolate: 'd2691e',\n coral: 'ff7f50',\n cornflowerblue: '6495ed',\n cornsilk: 'fff8dc',\n crimson: 'dc143c',\n cyan: '00ffff',\n darkblue: '00008b',\n darkcyan: '008b8b',\n darkgoldenrod: 'b8860b',\n darkgray: 'a9a9a9',\n darkgreen: '006400',\n darkgrey: 'a9a9a9',\n darkkhaki: 'bdb76b',\n darkmagenta: '8b008b',\n darkolivegreen: '556b2f',\n darkorange: 'ff8c00',\n darkorchid: '9932cc',\n darkred: '8b0000',\n darksalmon: 'e9967a',\n darkseagreen: '8fbc8f',\n darkslateblue: '483d8b',\n darkslategray: '2f4f4f',\n darkslategrey: '2f4f4f',\n darkturquoise: '00ced1',\n darkviolet: '9400d3',\n deeppink: 'ff1493',\n deepskyblue: '00bfff',\n dimgray: '696969',\n dimgrey: '696969',\n dodgerblue: '1e90ff',\n firebrick: 'b22222',\n floralwhite: 'fffaf0',\n forestgreen: '228b22',\n fuchsia: 'ff00ff',\n gainsboro: 'dcdcdc',\n ghostwhite: 'f8f8ff',\n gold: 'ffd700',\n goldenrod: 'daa520',\n gray: '808080',\n green: '008000',\n greenyellow: 'adff2f',\n grey: '808080',\n honeydew: 'f0fff0',\n hotpink: 'ff69b4',\n indianred: 'cd5c5c',\n indigo: '4b0082',\n ivory: 'fffff0',\n khaki: 'f0e68c',\n lavender: 'e6e6fa',\n lavenderblush: 'fff0f5',\n lawngreen: '7cfc00',\n lemonchiffon: 'fffacd',\n lightblue: 'add8e6',\n lightcoral: 'f08080',\n lightcyan: 'e0ffff',\n lightgoldenrodyellow: 'fafad2',\n lightgray: 'd3d3d3',\n lightgreen: '90ee90',\n lightgrey: 'd3d3d3',\n lightpink: 'ffb6c1',\n lightsalmon: 'ffa07a',\n lightseagreen: '20b2aa',\n lightskyblue: '87cefa',\n lightslategray: '789',\n lightslategrey: '789',\n lightsteelblue: 'b0c4de',\n lightyellow: 'ffffe0',\n lime: '0f0',\n limegreen: '32cd32',\n linen: 'faf0e6',\n magenta: 'f0f',\n maroon: '800000',\n mediumaquamarine: '66cdaa',\n mediumblue: '0000cd',\n mediumorchid: 'ba55d3',\n mediumpurple: '9370db',\n mediumseagreen: '3cb371',\n mediumslateblue: '7b68ee',\n mediumspringgreen: '00fa9a',\n mediumturquoise: '48d1cc',\n mediumvioletred: 'c71585',\n midnightblue: '191970',\n mintcream: 'f5fffa',\n mistyrose: 'ffe4e1',\n moccasin: 'ffe4b5',\n navajowhite: 'ffdead',\n navy: '000080',\n oldlace: 'fdf5e6',\n olive: '808000',\n olivedrab: '6b8e23',\n orange: 'ffa500',\n orangered: 'ff4500',\n orchid: 'da70d6',\n palegoldenrod: 'eee8aa',\n palegreen: '98fb98',\n paleturquoise: 'afeeee',\n palevioletred: 'db7093',\n papayawhip: 'ffefd5',\n peachpuff: 'ffdab9',\n peru: 'cd853f',\n pink: 'ffc0cb',\n plum: 'dda0dd',\n powderblue: 'b0e0e6',\n purple: '800080',\n rebeccapurple: '639',\n red: 'f00',\n rosybrown: 'bc8f8f',\n royalblue: '4169e1',\n saddlebrown: '8b4513',\n salmon: 'fa8072',\n sandybrown: 'f4a460',\n seagreen: '2e8b57',\n seashell: 'fff5ee',\n sienna: 'a0522d',\n silver: 'c0c0c0',\n skyblue: '87ceeb',\n slateblue: '6a5acd',\n slategray: '708090',\n slategrey: '708090',\n snow: 'fffafa',\n springgreen: '00ff7f',\n steelblue: '4682b4',\n tan: 'd2b48c',\n teal: '008080',\n thistle: 'd8bfd8',\n tomato: 'ff6347',\n turquoise: '40e0d0',\n violet: 'ee82ee',\n wheat: 'f5deb3',\n white: 'fff',\n whitesmoke: 'f5f5f5',\n yellow: 'ff0',\n yellowgreen: '9acd32'\n /**\n * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.\n * @private\n */\n\n};\n\nfunction nameToHex(color) {\n if (typeof color !== 'string') return color;\n var normalizedColorName = color.toLowerCase();\n return namedColorMap[normalizedColorName] ? \"#\" + namedColorMap[normalizedColorName] : color;\n}\n\nvar hexRegex = /^#[a-fA-F0-9]{6}$/;\nvar hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;\nvar reducedHexRegex = /^#[a-fA-F0-9]{3}$/;\nvar reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;\nvar rgbRegex = /^rgb\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/i;\nvar rgbaRegex = /^rgba\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*([-+]?[0-9]*[.]?[0-9]+)\\s*\\)$/i;\nvar hslRegex = /^hsl\\(\\s*(\\d{0,3}[.]?[0-9]+)\\s*,\\s*(\\d{1,3})%\\s*,\\s*(\\d{1,3})%\\s*\\)$/i;\nvar hslaRegex = /^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;\n/**\n * Returns an RgbColor or RgbaColor object. This utility function is only useful\n * if want to extract a color component. With the color util `toColorString` you\n * can convert a RgbColor or RgbaColor object back to a string.\n *\n * @example\n * // Assigns `{ red: 255, green: 0, blue: 0 }` to color1\n * const color1 = parseToRgb('rgb(255, 0, 0)');\n * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2\n * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)');\n */\n\nfunction parseToRgb(color) {\n if (typeof color !== 'string') {\n throw new PolishedError(3);\n }\n\n var normalizedColor = nameToHex(color);\n\n if (normalizedColor.match(hexRegex)) {\n return {\n red: parseInt(\"\" + normalizedColor[1] + normalizedColor[2], 16),\n green: parseInt(\"\" + normalizedColor[3] + normalizedColor[4], 16),\n blue: parseInt(\"\" + normalizedColor[5] + normalizedColor[6], 16)\n };\n }\n\n if (normalizedColor.match(hexRgbaRegex)) {\n var alpha = parseFloat((parseInt(\"\" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));\n return {\n red: parseInt(\"\" + normalizedColor[1] + normalizedColor[2], 16),\n green: parseInt(\"\" + normalizedColor[3] + normalizedColor[4], 16),\n blue: parseInt(\"\" + normalizedColor[5] + normalizedColor[6], 16),\n alpha: alpha\n };\n }\n\n if (normalizedColor.match(reducedHexRegex)) {\n return {\n red: parseInt(\"\" + normalizedColor[1] + normalizedColor[1], 16),\n green: parseInt(\"\" + normalizedColor[2] + normalizedColor[2], 16),\n blue: parseInt(\"\" + normalizedColor[3] + normalizedColor[3], 16)\n };\n }\n\n if (normalizedColor.match(reducedRgbaHexRegex)) {\n var _alpha = parseFloat((parseInt(\"\" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));\n\n return {\n red: parseInt(\"\" + normalizedColor[1] + normalizedColor[1], 16),\n green: parseInt(\"\" + normalizedColor[2] + normalizedColor[2], 16),\n blue: parseInt(\"\" + normalizedColor[3] + normalizedColor[3], 16),\n alpha: _alpha\n };\n }\n\n var rgbMatched = rgbRegex.exec(normalizedColor);\n\n if (rgbMatched) {\n return {\n red: parseInt(\"\" + rgbMatched[1], 10),\n green: parseInt(\"\" + rgbMatched[2], 10),\n blue: parseInt(\"\" + rgbMatched[3], 10)\n };\n }\n\n var rgbaMatched = rgbaRegex.exec(normalizedColor);\n\n if (rgbaMatched) {\n return {\n red: parseInt(\"\" + rgbaMatched[1], 10),\n green: parseInt(\"\" + rgbaMatched[2], 10),\n blue: parseInt(\"\" + rgbaMatched[3], 10),\n alpha: parseFloat(\"\" + rgbaMatched[4])\n };\n }\n\n var hslMatched = hslRegex.exec(normalizedColor);\n\n if (hslMatched) {\n var hue = parseInt(\"\" + hslMatched[1], 10);\n var saturation = parseInt(\"\" + hslMatched[2], 10) / 100;\n var lightness = parseInt(\"\" + hslMatched[3], 10) / 100;\n var rgbColorString = \"rgb(\" + hslToRgb(hue, saturation, lightness) + \")\";\n var hslRgbMatched = rgbRegex.exec(rgbColorString);\n\n if (!hslRgbMatched) {\n throw new PolishedError(4, normalizedColor, rgbColorString);\n }\n\n return {\n red: parseInt(\"\" + hslRgbMatched[1], 10),\n green: parseInt(\"\" + hslRgbMatched[2], 10),\n blue: parseInt(\"\" + hslRgbMatched[3], 10)\n };\n }\n\n var hslaMatched = hslaRegex.exec(normalizedColor);\n\n if (hslaMatched) {\n var _hue = parseInt(\"\" + hslaMatched[1], 10);\n\n var _saturation = parseInt(\"\" + hslaMatched[2], 10) / 100;\n\n var _lightness = parseInt(\"\" + hslaMatched[3], 10) / 100;\n\n var _rgbColorString = \"rgb(\" + hslToRgb(_hue, _saturation, _lightness) + \")\";\n\n var _hslRgbMatched = rgbRegex.exec(_rgbColorString);\n\n if (!_hslRgbMatched) {\n throw new PolishedError(4, normalizedColor, _rgbColorString);\n }\n\n return {\n red: parseInt(\"\" + _hslRgbMatched[1], 10),\n green: parseInt(\"\" + _hslRgbMatched[2], 10),\n blue: parseInt(\"\" + _hslRgbMatched[3], 10),\n alpha: parseFloat(\"\" + hslaMatched[4])\n };\n }\n\n throw new PolishedError(5);\n}\n\nfunction rgbToHsl(color) {\n // make sure rgb are contained in a set of [0, 255]\n var red = color.red / 255;\n var green = color.green / 255;\n var blue = color.blue / 255;\n var max = Math.max(red, green, blue);\n var min = Math.min(red, green, blue);\n var lightness = (max + min) / 2;\n\n if (max === min) {\n // achromatic\n if (color.alpha !== undefined) {\n return {\n hue: 0,\n saturation: 0,\n lightness: lightness,\n alpha: color.alpha\n };\n } else {\n return {\n hue: 0,\n saturation: 0,\n lightness: lightness\n };\n }\n }\n\n var hue;\n var delta = max - min;\n var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n\n switch (max) {\n case red:\n hue = (green - blue) / delta + (green < blue ? 6 : 0);\n break;\n\n case green:\n hue = (blue - red) / delta + 2;\n break;\n\n default:\n // blue case\n hue = (red - green) / delta + 4;\n break;\n }\n\n hue *= 60;\n\n if (color.alpha !== undefined) {\n return {\n hue: hue,\n saturation: saturation,\n lightness: lightness,\n alpha: color.alpha\n };\n }\n\n return {\n hue: hue,\n saturation: saturation,\n lightness: lightness\n };\n}\n\n/**\n * Returns an HslColor or HslaColor object. This utility function is only useful\n * if want to extract a color component. With the color util `toColorString` you\n * can convert a HslColor or HslaColor object back to a string.\n *\n * @example\n * // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1\n * const color1 = parseToHsl('rgb(255, 0, 0)');\n * // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2\n * const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)');\n */\nfunction parseToHsl(color) {\n // Note: At a later stage we can optimize this function as right now a hsl\n // color would be parsed converted to rgb values and converted back to hsl.\n return rgbToHsl(parseToRgb(color));\n}\n\n/**\n * Reduces hex values if possible e.g. #ff8866 to #f86\n * @private\n */\nvar reduceHexValue = function reduceHexValue(value) {\n if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {\n return \"#\" + value[1] + value[3] + value[5];\n }\n\n return value;\n};\n\nfunction numberToHex(value) {\n var hex = value.toString(16);\n return hex.length === 1 ? \"0\" + hex : hex;\n}\n\nfunction colorToHex(color) {\n return numberToHex(Math.round(color * 255));\n}\n\nfunction convertToHex(red, green, blue) {\n return reduceHexValue(\"#\" + colorToHex(red) + colorToHex(green) + colorToHex(blue));\n}\n\nfunction hslToHex(hue, saturation, lightness) {\n return hslToRgb(hue, saturation, lightness, convertToHex);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible hex notation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: hsl(359, 0.75, 0.4),\n * background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${hsl(359, 0.75, 0.4)};\n * background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#b3191c\";\n * background: \"#b3191c\";\n * }\n */\nfunction hsl(value, saturation, lightness) {\n if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') {\n return hslToHex(value, saturation, lightness);\n } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) {\n return hslToHex(value.hue, value.saturation, value.lightness);\n }\n\n throw new PolishedError(1);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: hsla(359, 0.75, 0.4, 0.7),\n * background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }),\n * background: hsla(359, 0.75, 0.4, 1),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${hsla(359, 0.75, 0.4, 0.7)};\n * background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })};\n * background: ${hsla(359, 0.75, 0.4, 1)};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"rgba(179,25,28,0.7)\";\n * background: \"rgba(179,25,28,0.7)\";\n * background: \"#b3191c\";\n * }\n */\nfunction hsla(value, saturation, lightness, alpha) {\n if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') {\n return alpha >= 1 ? hslToHex(value, saturation, lightness) : \"rgba(\" + hslToRgb(value, saturation, lightness) + \",\" + alpha + \")\";\n } else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) {\n return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : \"rgba(\" + hslToRgb(value.hue, value.saturation, value.lightness) + \",\" + value.alpha + \")\";\n }\n\n throw new PolishedError(2);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible hex notation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: rgb(255, 205, 100),\n * background: rgb({ red: 255, green: 205, blue: 100 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${rgb(255, 205, 100)};\n * background: ${rgb({ red: 255, green: 205, blue: 100 })};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#ffcd64\";\n * background: \"#ffcd64\";\n * }\n */\nfunction rgb(value, green, blue) {\n if (typeof value === 'number' && typeof green === 'number' && typeof blue === 'number') {\n return reduceHexValue(\"#\" + numberToHex(value) + numberToHex(green) + numberToHex(blue));\n } else if (typeof value === 'object' && green === undefined && blue === undefined) {\n return reduceHexValue(\"#\" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));\n }\n\n throw new PolishedError(6);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.\n *\n * Can also be used to fade a color by passing a hex value or named CSS color along with an alpha value.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: rgba(255, 205, 100, 0.7),\n * background: rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 }),\n * background: rgba(255, 205, 100, 1),\n * background: rgba('#ffffff', 0.4),\n * background: rgba('black', 0.7),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${rgba(255, 205, 100, 0.7)};\n * background: ${rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 })};\n * background: ${rgba(255, 205, 100, 1)};\n * background: ${rgba('#ffffff', 0.4)};\n * background: ${rgba('black', 0.7)};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"rgba(255,205,100,0.7)\";\n * background: \"rgba(255,205,100,0.7)\";\n * background: \"#ffcd64\";\n * background: \"rgba(255,255,255,0.4)\";\n * background: \"rgba(0,0,0,0.7)\";\n * }\n */\nfunction rgba(firstValue, secondValue, thirdValue, fourthValue) {\n if (typeof firstValue === 'string' && typeof secondValue === 'number') {\n var rgbValue = parseToRgb(firstValue);\n return \"rgba(\" + rgbValue.red + \",\" + rgbValue.green + \",\" + rgbValue.blue + \",\" + secondValue + \")\";\n } else if (typeof firstValue === 'number' && typeof secondValue === 'number' && typeof thirdValue === 'number' && typeof fourthValue === 'number') {\n return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : \"rgba(\" + firstValue + \",\" + secondValue + \",\" + thirdValue + \",\" + fourthValue + \")\";\n } else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) {\n return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : \"rgba(\" + firstValue.red + \",\" + firstValue.green + \",\" + firstValue.blue + \",\" + firstValue.alpha + \")\";\n }\n\n throw new PolishedError(7);\n}\n\nvar isRgb = function isRgb(color) {\n return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');\n};\n\nvar isRgba = function isRgba(color) {\n return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';\n};\n\nvar isHsl = function isHsl(color) {\n return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');\n};\n\nvar isHsla = function isHsla(color) {\n return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && typeof color.alpha === 'number';\n};\n/**\n * Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string.\n * This util is useful in case you only know on runtime which color object is\n * used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: toColorString({ red: 255, green: 205, blue: 100 }),\n * background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),\n * background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }),\n * background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${toColorString({ red: 255, green: 205, blue: 100 })};\n * background: ${toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};\n * background: ${toColorString({ hue: 240, saturation: 1, lightness: 0.5 })};\n * background: ${toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#ffcd64\";\n * background: \"rgba(255,205,100,0.72)\";\n * background: \"#00f\";\n * background: \"rgba(179,25,25,0.72)\";\n * }\n */\n\n\nfunction toColorString(color) {\n if (typeof color !== 'object') throw new PolishedError(8);\n if (isRgba(color)) return rgba(color);\n if (isRgb(color)) return rgb(color);\n if (isHsla(color)) return hsla(color);\n if (isHsl(color)) return hsl(color);\n throw new PolishedError(8);\n}\n\n// Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js\n// eslint-disable-next-line no-unused-vars\n// eslint-disable-next-line no-unused-vars\n// eslint-disable-next-line no-redeclare\nfunction curried(f, length, acc) {\n return function fn() {\n // eslint-disable-next-line prefer-rest-params\n var combined = acc.concat(Array.prototype.slice.call(arguments));\n return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);\n };\n} // eslint-disable-next-line no-redeclare\n\n\nfunction curry(f) {\n // eslint-disable-line no-redeclare\n return curried(f, f.length, []);\n}\n\n/**\n * Changes the hue of the color. Hue is a number between 0 to 360. The first\n * argument for adjustHue is the amount of degrees the color is rotated around\n * the color wheel, always producing a positive hue value.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: adjustHue(180, '#448'),\n * background: adjustHue('180', 'rgba(101,100,205,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${adjustHue(180, '#448')};\n * background: ${adjustHue('180', 'rgba(101,100,205,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#888844\";\n * background: \"rgba(136,136,68,0.7)\";\n * }\n */\n\nfunction adjustHue(degree, color) {\n if (color === 'transparent') return color;\n var hslColor = parseToHsl(color);\n return toColorString(_extends({}, hslColor, {\n hue: hslColor.hue + parseFloat(degree)\n }));\n} // prettier-ignore\n\n\nvar curriedAdjustHue =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(adjustHue);\n\n/**\n * Returns the complement of the provided color. This is identical to adjustHue(180, <color>).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: complement('#448'),\n * background: complement('rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${complement('#448')};\n * background: ${complement('rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#884\";\n * background: \"rgba(153,153,153,0.7)\";\n * }\n */\n\nfunction complement(color) {\n if (color === 'transparent') return color;\n var hslColor = parseToHsl(color);\n return toColorString(_extends({}, hslColor, {\n hue: (hslColor.hue + 180) % 360\n }));\n}\n\nfunction guard(lowerBoundary, upperBoundary, value) {\n return Math.max(lowerBoundary, Math.min(upperBoundary, value));\n}\n\n/**\n * Returns a string value for the darkened color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: darken(0.2, '#FFCD64'),\n * background: darken('0.2', 'rgba(255,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${darken(0.2, '#FFCD64')};\n * background: ${darken('0.2', 'rgba(255,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#ffbd31\";\n * background: \"rgba(255,189,49,0.7)\";\n * }\n */\n\nfunction darken(amount, color) {\n if (color === 'transparent') return color;\n var hslColor = parseToHsl(color);\n return toColorString(_extends({}, hslColor, {\n lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))\n }));\n} // prettier-ignore\n\n\nvar curriedDarken =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(darken);\n\n/**\n * Decreases the intensity of a color. Its range is between 0 to 1. The first\n * argument of the desaturate function is the amount by how much the color\n * intensity should be decreased.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: desaturate(0.2, '#CCCD64'),\n * background: desaturate('0.2', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${desaturate(0.2, '#CCCD64')};\n * background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#b8b979\";\n * background: \"rgba(184,185,121,0.7)\";\n * }\n */\n\nfunction desaturate(amount, color) {\n if (color === 'transparent') return color;\n var hslColor = parseToHsl(color);\n return toColorString(_extends({}, hslColor, {\n saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))\n }));\n} // prettier-ignore\n\n\nvar curriedDesaturate =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(desaturate);\n\n/**\n * Returns a number (float) representing the luminance of a color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff',\n * background: getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ?\n * 'rgba(58, 133, 255, 1)' :\n * 'rgba(255, 57, 149, 1)',\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff'};\n * background: ${getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ?\n * 'rgba(58, 133, 255, 1)' :\n * 'rgba(255, 57, 149, 1)'};\n *\n * // CSS in JS Output\n *\n * div {\n * background: \"#CCCD64\";\n * background: \"rgba(58, 133, 255, 1)\";\n * }\n */\n\nfunction getLuminance(color) {\n if (color === 'transparent') return 0;\n var rgbColor = parseToRgb(color);\n\n var _Object$keys$map = Object.keys(rgbColor).map(function (key) {\n var channel = rgbColor[key] / 255;\n return channel <= 0.03928 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);\n }),\n r = _Object$keys$map[0],\n g = _Object$keys$map[1],\n b = _Object$keys$map[2];\n\n return parseFloat((0.2126 * r + 0.7152 * g + 0.0722 * b).toFixed(3));\n}\n\n/**\n * Returns the contrast ratio between two colors based on\n * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef).\n *\n * @example\n * const contrastRatio = getContrast('#444', '#fff');\n */\n\nfunction getContrast(color1, color2) {\n var luminance1 = getLuminance(color1);\n var luminance2 = getLuminance(color2);\n return parseFloat((luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05)).toFixed(2));\n}\n\n/**\n * Converts the color to a grayscale, by reducing its saturation to 0.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: grayscale('#CCCD64'),\n * background: grayscale('rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${grayscale('#CCCD64')};\n * background: ${grayscale('rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#999\";\n * background: \"rgba(153,153,153,0.7)\";\n * }\n */\n\nfunction grayscale(color) {\n if (color === 'transparent') return color;\n return toColorString(_extends({}, parseToHsl(color), {\n saturation: 0\n }));\n}\n\n/**\n * Converts a HslColor or HslaColor object to a color string.\n * This util is useful in case you only know on runtime which color object is\n * used. Otherwise we recommend to rely on `hsl` or `hsla`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 }),\n * background: hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 })};\n * background: ${hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#00f\";\n * background: \"rgba(179,25,25,0.72)\";\n * }\n */\nfunction hslToColorString(color) {\n if (typeof color === 'object' && typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number') {\n if (color.alpha && typeof color.alpha === 'number') {\n return hsla({\n hue: color.hue,\n saturation: color.saturation,\n lightness: color.lightness,\n alpha: color.alpha\n });\n }\n\n return hsl({\n hue: color.hue,\n saturation: color.saturation,\n lightness: color.lightness\n });\n }\n\n throw new PolishedError(45);\n}\n\n/**\n * Inverts the red, green and blue values of a color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: invert('#CCCD64'),\n * background: invert('rgba(101,100,205,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${invert('#CCCD64')};\n * background: ${invert('rgba(101,100,205,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#33329b\";\n * background: \"rgba(154,155,50,0.7)\";\n * }\n */\n\nfunction invert(color) {\n if (color === 'transparent') return color; // parse color string to rgb\n\n var value = parseToRgb(color);\n return toColorString(_extends({}, value, {\n red: 255 - value.red,\n green: 255 - value.green,\n blue: 255 - value.blue\n }));\n}\n\n/**\n * Returns a string value for the lightened color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: lighten(0.2, '#CCCD64'),\n * background: lighten('0.2', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${lighten(0.2, '#FFCD64')};\n * background: ${lighten('0.2', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#e5e6b1\";\n * background: \"rgba(229,230,177,0.7)\";\n * }\n */\n\nfunction lighten(amount, color) {\n if (color === 'transparent') return color;\n var hslColor = parseToHsl(color);\n return toColorString(_extends({}, hslColor, {\n lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))\n }));\n} // prettier-ignore\n\n\nvar curriedLighten =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(lighten);\n\n/**\n * Determines which contrast guidelines have been met for two colors.\n * Based on the [contrast calculations recommended by W3](https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced.html).\n *\n * @example\n * const scores = meetsContrastGuidelines('#444', '#fff');\n */\nfunction meetsContrastGuidelines(color1, color2) {\n var contrastRatio = getContrast(color1, color2);\n return {\n AA: contrastRatio >= 4.5,\n AALarge: contrastRatio >= 3,\n AAA: contrastRatio >= 7,\n AAALarge: contrastRatio >= 4.5\n };\n}\n\n/**\n * Mixes the two provided colors together by calculating the average of each of the RGB components weighted to the first color by the provided weight.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: mix(0.5, '#f00', '#00f')\n * background: mix(0.25, '#f00', '#00f')\n * background: mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${mix(0.5, '#f00', '#00f')};\n * background: ${mix(0.25, '#f00', '#00f')};\n * background: ${mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#7f007f\";\n * background: \"#3f00bf\";\n * background: \"rgba(63, 0, 191, 0.75)\";\n * }\n */\n\nfunction mix(weight, color, otherColor) {\n if (color === 'transparent') return otherColor;\n if (otherColor === 'transparent') return color;\n var parsedColor1 = parseToRgb(color);\n\n var color1 = _extends({}, parsedColor1, {\n alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1\n });\n\n var parsedColor2 = parseToRgb(otherColor);\n\n var color2 = _extends({}, parsedColor2, {\n alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1 // The formular is copied from the original Sass implementation:\n // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method\n\n });\n\n var alphaDelta = color1.alpha - color2.alpha;\n var x = parseFloat(weight) * 2 - 1;\n var y = x * alphaDelta === -1 ? x : x + alphaDelta;\n var z = 1 + x * alphaDelta;\n var weight1 = (y / z + 1) / 2.0;\n var weight2 = 1 - weight1;\n var mixedColor = {\n red: Math.floor(color1.red * weight1 + color2.red * weight2),\n green: Math.floor(color1.green * weight1 + color2.green * weight2),\n blue: Math.floor(color1.blue * weight1 + color2.blue * weight2),\n alpha: color1.alpha + (color2.alpha - color1.alpha) * (parseFloat(weight) / 1.0)\n };\n return rgba(mixedColor);\n} // prettier-ignore\n\n\nvar curriedMix =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string, string> */\n(mix);\n\n/**\n * Increases the opacity of a color. Its range for the amount is between 0 to 1.\n *\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: opacify(0.1, 'rgba(255, 255, 255, 0.9)');\n * background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'),\n * background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')};\n * background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')},\n * background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')},\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#fff\";\n * background: \"rgba(255,255,255,0.7)\";\n * background: \"rgba(255,0,0,0.7)\";\n * }\n */\n\nfunction opacify(amount, color) {\n if (color === 'transparent') return color;\n var parsedColor = parseToRgb(color);\n var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;\n\n var colorWithAlpha = _extends({}, parsedColor, {\n alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)\n });\n\n return rgba(colorWithAlpha);\n} // prettier-ignore\n\n\nvar curriedOpacify =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(opacify);\n\n/**\n * Returns black or white (or optional light and dark return colors) for best contrast depending on the luminosity of the given color.\n * Follows [W3C specs for readability](https://www.w3.org/TR/WCAG20-TECHS/G18.html).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * color: readableColor('#000'),\n * color: readableColor('black', '#001', '#ff8'),\n * color: readableColor('white', '#001', '#ff8'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * color: ${readableColor('#000')};\n * color: ${readableColor('black', '#001', '#ff8')};\n * color: ${readableColor('white', '#001', '#ff8')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * color: \"#fff\";\n * color: \"#ff8\";\n * color: \"#001\";\n * }\n */\n\nfunction readableColor(color, lightReturnColor, darkReturnColor) {\n if (lightReturnColor === void 0) {\n lightReturnColor = '#000';\n }\n\n if (darkReturnColor === void 0) {\n darkReturnColor = '#fff';\n }\n\n return getLuminance(color) > 0.179 ? lightReturnColor : darkReturnColor;\n}\n\n/**\n * Converts a RgbColor or RgbaColor object to a color string.\n * This util is useful in case you only know on runtime which color object is\n * used. Otherwise we recommend to rely on `rgb` or `rgba`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: rgbToColorString({ red: 255, green: 205, blue: 100 }),\n * background: rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${rgbToColorString({ red: 255, green: 205, blue: 100 })};\n * background: ${rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#ffcd64\";\n * background: \"rgba(255,205,100,0.72)\";\n * }\n */\nfunction rgbToColorString(color) {\n if (typeof color === 'object' && typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number') {\n if (color.alpha && typeof color.alpha === 'number') {\n return rgba({\n red: color.red,\n green: color.green,\n blue: color.blue,\n alpha: color.alpha\n });\n }\n\n return rgb({\n red: color.red,\n green: color.green,\n blue: color.blue\n });\n }\n\n throw new PolishedError(46);\n}\n\n/**\n * Increases the intensity of a color. Its range is between 0 to 1. The first\n * argument of the saturate function is the amount by how much the color\n * intensity should be increased.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: saturate(0.2, '#CCCD64'),\n * background: saturate('0.2', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${saturate(0.2, '#FFCD64')};\n * background: ${saturate('0.2', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#e0e250\";\n * background: \"rgba(224,226,80,0.7)\";\n * }\n */\n\nfunction saturate(amount, color) {\n if (color === 'transparent') return color;\n var hslColor = parseToHsl(color);\n return toColorString(_extends({}, hslColor, {\n saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))\n }));\n} // prettier-ignore\n\n\nvar curriedSaturate =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(saturate);\n\n/**\n * Sets the hue of a color to the provided value. The hue range can be\n * from 0 and 359.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: setHue(42, '#CCCD64'),\n * background: setHue('244', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${setHue(42, '#CCCD64')};\n * background: ${setHue('244', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#cdae64\";\n * background: \"rgba(107,100,205,0.7)\";\n * }\n */\n\nfunction setHue(hue, color) {\n if (color === 'transparent') return color;\n return toColorString(_extends({}, parseToHsl(color), {\n hue: parseFloat(hue)\n }));\n} // prettier-ignore\n\n\nvar curriedSetHue =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(setHue);\n\n/**\n * Sets the lightness of a color to the provided value. The lightness range can be\n * from 0 and 1.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: setLightness(0.2, '#CCCD64'),\n * background: setLightness('0.75', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${setLightness(0.2, '#CCCD64')};\n * background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#4d4d19\";\n * background: \"rgba(223,224,159,0.7)\";\n * }\n */\n\nfunction setLightness(lightness, color) {\n if (color === 'transparent') return color;\n return toColorString(_extends({}, parseToHsl(color), {\n lightness: parseFloat(lightness)\n }));\n} // prettier-ignore\n\n\nvar curriedSetLightness =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(setLightness);\n\n/**\n * Sets the saturation of a color to the provided value. The saturation range can be\n * from 0 and 1.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: setSaturation(0.2, '#CCCD64'),\n * background: setSaturation('0.75', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${setSaturation(0.2, '#CCCD64')};\n * background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#adad84\";\n * background: \"rgba(228,229,76,0.7)\";\n * }\n */\n\nfunction setSaturation(saturation, color) {\n if (color === 'transparent') return color;\n return toColorString(_extends({}, parseToHsl(color), {\n saturation: parseFloat(saturation)\n }));\n} // prettier-ignore\n\n\nvar curriedSetSaturation =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(setSaturation);\n\n/**\n * Shades a color by mixing it with black. `shade` can produce\n * hue shifts, where as `darken` manipulates the luminance channel and therefore\n * doesn't produce hue shifts.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: shade(0.25, '#00f')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${shade(0.25, '#00f')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#00003f\";\n * }\n */\n\nfunction shade(percentage, color) {\n if (color === 'transparent') return color;\n return curriedMix(parseFloat(percentage), 'rgb(0, 0, 0)', color);\n} // prettier-ignore\n\n\nvar curriedShade =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(shade);\n\n/**\n * Tints a color by mixing it with white. `tint` can produce\n * hue shifts, where as `lighten` manipulates the luminance channel and therefore\n * doesn't produce hue shifts.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: tint(0.25, '#00f')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${tint(0.25, '#00f')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#bfbfff\";\n * }\n */\n\nfunction tint(percentage, color) {\n if (color === 'transparent') return color;\n return curriedMix(parseFloat(percentage), 'rgb(255, 255, 255)', color);\n} // prettier-ignore\n\n\nvar curriedTint =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(tint);\n\n/**\n * Decreases the opacity of a color. Its range for the amount is between 0 to 1.\n *\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: transparentize(0.1, '#fff');\n * background: transparentize(0.2, 'hsl(0, 0%, 100%)'),\n * background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${transparentize(0.1, '#fff')};\n * background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')},\n * background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')},\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"rgba(255,255,255,0.9)\";\n * background: \"rgba(255,255,255,0.8)\";\n * background: \"rgba(255,0,0,0.3)\";\n * }\n */\n\nfunction transparentize(amount, color) {\n if (color === 'transparent') return color;\n var parsedColor = parseToRgb(color);\n var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;\n\n var colorWithAlpha = _extends({}, parsedColor, {\n alpha: guard(0, 1, (alpha * 100 - parseFloat(amount) * 100) / 100)\n });\n\n return rgba(colorWithAlpha);\n} // prettier-ignore\n\n\nvar curriedTransparentize =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(transparentize);\n\n/**\n * Shorthand for easily setting the animation property. Allows either multiple arrays with animations\n * or a single animation spread over the arguments.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s'])\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s'])}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'animation': 'rotate 1s ease-in-out, colorchange 2s'\n * }\n * @example\n * // Styles as object usage\n * const styles = {\n * ...animation('rotate', '1s', 'ease-in-out')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${animation('rotate', '1s', 'ease-in-out')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'animation': 'rotate 1s ease-in-out'\n * }\n */\nfunction animation() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n // Allow single or multiple animations passed\n var multiMode = Array.isArray(args[0]);\n\n if (!multiMode && args.length > 8) {\n throw new PolishedError(64);\n }\n\n var code = args.map(function (arg) {\n if (multiMode && !Array.isArray(arg) || !multiMode && Array.isArray(arg)) {\n throw new PolishedError(65);\n }\n\n if (Array.isArray(arg) && arg.length > 8) {\n throw new PolishedError(66);\n }\n\n return Array.isArray(arg) ? arg.join(' ') : arg;\n }).join(', ');\n return {\n animation: code\n };\n}\n\n/**\n * Shorthand that accepts any number of backgroundImage values as parameters for creating a single background statement.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...backgroundImages('url(\"/image/background.jpg\")', 'linear-gradient(red, green)')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${backgroundImages('url(\"/image/background.jpg\")', 'linear-gradient(red, green)')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'backgroundImage': 'url(\"/image/background.jpg\"), linear-gradient(red, green)'\n * }\n */\nfunction backgroundImages() {\n for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) {\n properties[_key] = arguments[_key];\n }\n\n return {\n backgroundImage: properties.join(', ')\n };\n}\n\n/**\n * Shorthand that accepts any number of background values as parameters for creating a single background statement.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...backgrounds('url(\"/image/background.jpg\")', 'linear-gradient(red, green)', 'center no-repeat')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${backgrounds('url(\"/image/background.jpg\")', 'linear-gradient(red, green)', 'center no-repeat')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'background': 'url(\"/image/background.jpg\"), linear-gradient(red, green), center no-repeat'\n * }\n */\nfunction backgrounds() {\n for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) {\n properties[_key] = arguments[_key];\n }\n\n return {\n background: properties.join(', ')\n };\n}\n\nvar sideMap = ['top', 'right', 'bottom', 'left'];\n/**\n * Shorthand for the border property that splits out individual properties for use with tools like Fela and Styletron. A side keyword can optionally be passed to target only one side's border properties.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...border('1px', 'solid', 'red')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${border('1px', 'solid', 'red')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'borderColor': 'red',\n * 'borderStyle': 'solid',\n * 'borderWidth': `1px`,\n * }\n *\n * // Styles as object usage\n * const styles = {\n * ...border('top', '1px', 'solid', 'red')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${border('top', '1px', 'solid', 'red')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'borderTopColor': 'red',\n * 'borderTopStyle': 'solid',\n * 'borderTopWidth': `1px`,\n * }\n */\n\nfunction border(sideKeyword) {\n for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n values[_key - 1] = arguments[_key];\n }\n\n if (typeof sideKeyword === 'string' && sideMap.indexOf(sideKeyword) >= 0) {\n var _ref;\n\n return _ref = {}, _ref[\"border\" + capitalizeString(sideKeyword) + \"Width\"] = values[0], _ref[\"border\" + capitalizeString(sideKeyword) + \"Style\"] = values[1], _ref[\"border\" + capitalizeString(sideKeyword) + \"Color\"] = values[2], _ref;\n } else {\n values.unshift(sideKeyword);\n return {\n borderWidth: values[0],\n borderStyle: values[1],\n borderColor: values[2]\n };\n }\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...borderColor('red', 'green', 'blue', 'yellow')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${borderColor('red', 'green', 'blue', 'yellow')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'borderTopColor': 'red',\n * 'borderRightColor': 'green',\n * 'borderBottomColor': 'blue',\n * 'borderLeftColor': 'yellow'\n * }\n */\nfunction borderColor() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n return directionalProperty.apply(void 0, ['borderColor'].concat(values));\n}\n\n/**\n * Shorthand that accepts a value for side and a value for radius and applies the radius value to both corners of the side.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...borderRadius('top', '5px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${borderRadius('top', '5px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'borderTopRightRadius': '5px',\n * 'borderTopLeftRadius': '5px',\n * }\n */\nfunction borderRadius(side, radius) {\n var uppercaseSide = capitalizeString(side);\n\n if (!radius && radius !== 0) {\n throw new PolishedError(62);\n }\n\n if (uppercaseSide === 'Top' || uppercaseSide === 'Bottom') {\n var _ref;\n\n return _ref = {}, _ref[\"border\" + uppercaseSide + \"RightRadius\"] = radius, _ref[\"border\" + uppercaseSide + \"LeftRadius\"] = radius, _ref;\n }\n\n if (uppercaseSide === 'Left' || uppercaseSide === 'Right') {\n var _ref2;\n\n return _ref2 = {}, _ref2[\"borderTop\" + uppercaseSide + \"Radius\"] = radius, _ref2[\"borderBottom\" + uppercaseSide + \"Radius\"] = radius, _ref2;\n }\n\n throw new PolishedError(63);\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...borderStyle('solid', 'dashed', 'dotted', 'double')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${borderStyle('solid', 'dashed', 'dotted', 'double')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'borderTopStyle': 'solid',\n * 'borderRightStyle': 'dashed',\n * 'borderBottomStyle': 'dotted',\n * 'borderLeftStyle': 'double'\n * }\n */\nfunction borderStyle() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n return directionalProperty.apply(void 0, ['borderStyle'].concat(values));\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...borderWidth('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${borderWidth('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'borderTopWidth': '12px',\n * 'borderRightWidth': '24px',\n * 'borderBottomWidth': '36px',\n * 'borderLeftWidth': '48px'\n * }\n */\nfunction borderWidth() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n return directionalProperty.apply(void 0, ['borderWidth'].concat(values));\n}\n\nfunction generateSelectors(template, state) {\n var stateSuffix = state ? \":\" + state : '';\n return template(stateSuffix);\n}\n/**\n * Function helper that adds an array of states to a template of selectors. Used in textInputs and buttons.\n * @private\n */\n\n\nfunction statefulSelectors(states, template, stateMap) {\n if (!template) throw new PolishedError(67);\n if (states.length === 0) return generateSelectors(template, null);\n var selectors = [];\n\n for (var i = 0; i < states.length; i += 1) {\n if (stateMap && stateMap.indexOf(states[i]) < 0) {\n throw new PolishedError(68);\n }\n\n selectors.push(generateSelectors(template, states[i]));\n }\n\n selectors = selectors.join(',');\n return selectors;\n}\n\nvar stateMap = [undefined, null, 'active', 'focus', 'hover'];\n\nfunction template(state) {\n return \"button\" + state + \",\\n input[type=\\\"button\\\"]\" + state + \",\\n input[type=\\\"reset\\\"]\" + state + \",\\n input[type=\\\"submit\\\"]\" + state;\n}\n/**\n * Populates selectors that target all buttons. You can pass optional states to append to the selectors.\n * @example\n * // Styles as object usage\n * const styles = {\n * [buttons('active')]: {\n * 'border': 'none'\n * }\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * > ${buttons('active')} {\n * border: none;\n * }\n * `\n *\n * // CSS in JS Output\n *\n * 'button:active,\n * 'input[type=\"button\"]:active,\n * 'input[type=\\\"reset\\\"]:active,\n * 'input[type=\\\"submit\\\"]:active: {\n * 'border': 'none'\n * }\n */\n\n\nfunction buttons() {\n for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) {\n states[_key] = arguments[_key];\n }\n\n return statefulSelectors(states, template, stateMap);\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...margin('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${margin('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'marginTop': '12px',\n * 'marginRight': '24px',\n * 'marginBottom': '36px',\n * 'marginLeft': '48px'\n * }\n */\nfunction margin() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n return directionalProperty.apply(void 0, ['margin'].concat(values));\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...padding('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${padding('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'paddingTop': '12px',\n * 'paddingRight': '24px',\n * 'paddingBottom': '36px',\n * 'paddingLeft': '48px'\n * }\n */\nfunction padding() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n return directionalProperty.apply(void 0, ['padding'].concat(values));\n}\n\nvar positionMap$1 = ['absolute', 'fixed', 'relative', 'static', 'sticky'];\n/**\n * Shorthand accepts up to five values, including null to skip a value, and maps them to their respective directions. The first value can optionally be a position keyword.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...position('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${position('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'top': '12px',\n * 'right': '24px',\n * 'bottom': '36px',\n * 'left': '48px'\n * }\n *\n * // Styles as object usage\n * const styles = {\n * ...position('absolute', '12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${position('absolute', '12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'position': 'absolute',\n * 'top': '12px',\n * 'right': '24px',\n * 'bottom': '36px',\n * 'left': '48px'\n * }\n */\n\nfunction position(positionKeyword) {\n for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n values[_key - 1] = arguments[_key];\n }\n\n if (positionMap$1.indexOf(positionKeyword) >= 0) {\n return _extends({\n position: positionKeyword\n }, directionalProperty.apply(void 0, [''].concat(values)));\n } else {\n var firstValue = positionKeyword; // in this case position is actually the first value\n\n return directionalProperty.apply(void 0, ['', firstValue].concat(values));\n }\n}\n\n/**\n * Shorthand to set the height and width properties in a single statement.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...size('300px', '250px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${size('300px', '250px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'height': '300px',\n * 'width': '250px',\n * }\n */\nfunction size(height, width) {\n if (width === void 0) {\n width = height;\n }\n\n return {\n height: height,\n width: width\n };\n}\n\nvar stateMap$1 = [undefined, null, 'active', 'focus', 'hover'];\n\nfunction template$1(state) {\n return \"input[type=\\\"color\\\"]\" + state + \",\\n input[type=\\\"date\\\"]\" + state + \",\\n input[type=\\\"datetime\\\"]\" + state + \",\\n input[type=\\\"datetime-local\\\"]\" + state + \",\\n input[type=\\\"email\\\"]\" + state + \",\\n input[type=\\\"month\\\"]\" + state + \",\\n input[type=\\\"number\\\"]\" + state + \",\\n input[type=\\\"password\\\"]\" + state + \",\\n input[type=\\\"search\\\"]\" + state + \",\\n input[type=\\\"tel\\\"]\" + state + \",\\n input[type=\\\"text\\\"]\" + state + \",\\n input[type=\\\"time\\\"]\" + state + \",\\n input[type=\\\"url\\\"]\" + state + \",\\n input[type=\\\"week\\\"]\" + state + \",\\n input:not([type])\" + state + \",\\n textarea\" + state;\n}\n/**\n * Populates selectors that target all text inputs. You can pass optional states to append to the selectors.\n * @example\n * // Styles as object usage\n * const styles = {\n * [textInputs('active')]: {\n * 'border': 'none'\n * }\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * > ${textInputs('active')} {\n * border: none;\n * }\n * `\n *\n * // CSS in JS Output\n *\n * 'input[type=\"color\"]:active,\n * input[type=\"date\"]:active,\n * input[type=\"datetime\"]:active,\n * input[type=\"datetime-local\"]:active,\n * input[type=\"email\"]:active,\n * input[type=\"month\"]:active,\n * input[type=\"number\"]:active,\n * input[type=\"password\"]:active,\n * input[type=\"search\"]:active,\n * input[type=\"tel\"]:active,\n * input[type=\"text\"]:active,\n * input[type=\"time\"]:active,\n * input[type=\"url\"]:active,\n * input[type=\"week\"]:active,\n * input:not([type]):active,\n * textarea:active': {\n * 'border': 'none'\n * }\n */\n\n\nfunction textInputs() {\n for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) {\n states[_key] = arguments[_key];\n }\n\n return statefulSelectors(states, template$1, stateMap$1);\n}\n\n/**\n * Accepts any number of transition values as parameters for creating a single transition statement. You may also pass an array of properties as the first parameter that you would like to apply the same transition values to (second parameter).\n * @example\n * // Styles as object usage\n * const styles = {\n * ...transitions('opacity 1.0s ease-in 0s', 'width 2.0s ease-in 2s'),\n * ...transitions(['color', 'background-color'], '2.0s ease-in 2s')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${transitions('opacity 1.0s ease-in 0s', 'width 2.0s ease-in 2s')};\n * ${transitions(['color', 'background-color'], '2.0s ease-in 2s'),};\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'transition': 'opacity 1.0s ease-in 0s, width 2.0s ease-in 2s'\n * 'transition': 'color 2.0s ease-in 2s, background-color 2.0s ease-in 2s',\n * }\n */\n\nfunction transitions() {\n for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) {\n properties[_key] = arguments[_key];\n }\n\n if (Array.isArray(properties[0]) && properties.length === 2) {\n var value = properties[1];\n\n if (typeof value !== 'string') {\n throw new PolishedError(61);\n }\n\n var transitionsString = properties[0].map(function (property) {\n return property + \" \" + value;\n }).join(', ');\n return {\n transition: transitionsString\n };\n } else {\n return {\n transition: properties.join(', ')\n };\n }\n}\n\nexport { curriedAdjustHue as adjustHue, animation, backgroundImages, backgrounds, between, border, borderColor, borderRadius, borderStyle, borderWidth, buttons, clearFix, complement, cover, curriedDarken as darken, curriedDesaturate as desaturate, directionalProperty, ellipsis, em, fluidRange, fontFace, getContrast, getLuminance, getValueAndUnit, grayscale, hiDPI, hideText, hideVisually, hsl, hslToColorString, hsla, invert, curriedLighten as lighten, linearGradient, margin, math, meetsContrastGuidelines, curriedMix as mix, modularScale, normalize, curriedOpacify as opacify, padding, parseToHsl, parseToRgb, position, radialGradient, readableColor, rem, retinaImage, rgb, rgbToColorString, rgba, curriedSaturate as saturate, curriedSetHue as setHue, curriedSetLightness as setLightness, curriedSetSaturation as setSaturation, curriedShade as shade, size, stripUnit, textInputs, timingFunctions, curriedTint as tint, toColorString, transitions, curriedTransparentize as transparentize, triangle, wordWrap };\n","export default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}","import { darken, desaturate, lighten, readableColor, transparentize } from 'polished';\n\nconst styles = {\n arrowSize: 2.1,\n shepherdButtonBorderRadius: '3px',\n shepherdElementBorderRadius: '5px',\n shepherdElementMaxHeight: '100%',\n shepherdElementMaxWidth: '100%',\n shepherdElementZIndex: 9999,\n shepherdTextBackground: '#ffffff',\n shepherdTextLineHeight: '1.3em',\n shepherdTextFontSize: '1rem',\n shepherdThemePrimary: '#3288e6'\n};\n\nexport default function getVariables(options) {\n if (options.styleVariables) {\n Object.assign(styles, options.styleVariables);\n }\n\n if (!styles.shepherdHeaderBackground) {\n styles.shepherdHeaderBackground = darken(0.1, styles.shepherdTextBackground);\n }\n\n if (!styles.shepherdThemeSecondary) {\n styles.shepherdThemeSecondary = desaturate(0.7, lighten(0.4, styles.shepherdThemePrimary));\n }\n\n _setTextColors();\n\n return styles;\n}\n\n/**\n * Set all the text colors to contrasting ones, for readability, if not already defined.\n * @private\n */\nfunction _setTextColors() {\n if (!styles.shepherdThemeTextPrimary) {\n styles.shepherdThemeTextPrimary = transparentize(0.25, readableColor(styles.shepherdThemePrimary));\n }\n\n if (!styles.shepherdThemeTextSecondary) {\n styles.shepherdThemeTextSecondary = transparentize(0.25, readableColor(styles.shepherdThemeSecondary));\n }\n\n if (!styles.shepherdThemeTextHeader) {\n styles.shepherdThemeTextHeader = transparentize(0.25, readableColor(styles.shepherdHeaderBackground));\n }\n\n if (!styles.shepherdThemeTextColor) {\n styles.shepherdThemeTextColor = transparentize(0.25, readableColor(styles.shepherdTextBackground));\n }\n}\n","/**\n * Code refactored from Mozilla Developer Network:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n */\n\n'use strict';\n\nfunction assign(target, firstSource) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nfunction polyfill() {\n if (!Object.assign) {\n Object.defineProperty(Object, 'assign', {\n enumerable: false,\n configurable: true,\n writable: true,\n value: assign\n });\n }\n}\n\nmodule.exports = {\n assign: assign,\n polyfill: polyfill\n};\n","'use strict';\n\nvar KEBAB_REGEX = /[A-Z]/g;\n\nvar hash = function (str) {\n var hash = 5381, i = str.length;\n\n while (i) hash = (hash * 33) ^ str.charCodeAt(--i);\n\n return '_' + (hash >>> 0).toString(36);\n};\n\nexports.create = function (config) {\n config = config || {};\n var assign = config.assign || Object.assign;\n var client = typeof window === 'object';\n\n // Check if we are really in browser environment.\n if (process.env.NODE_ENV !== 'production') {\n if (client) {\n if ((typeof document !== 'object') || !document.getElementsByTagName('HTML')) {\n console.error(\n 'nano-css detected browser environment because of \"window\" global, but ' +\n '\"document\" global seems to be defective.'\n );\n }\n }\n }\n\n var renderer = assign({\n raw: '',\n pfx: '_',\n client: client,\n assign: assign,\n stringify: JSON.stringify,\n kebab: function (prop) {\n return prop.replace(KEBAB_REGEX, '-$&').toLowerCase();\n },\n decl: function (key, value) {\n key = renderer.kebab(key);\n return key + ':' + value + ';';\n },\n hash: function (obj) {\n return hash(renderer.stringify(obj));\n },\n selector: function (parent, selector) {\n return parent + (selector[0] === ':' ? '' : ' ') + selector;\n },\n putRaw: function (rawCssRule) {\n renderer.raw += rawCssRule;\n },\n }, config);\n\n if (renderer.client) {\n if (!renderer.sh)\n document.head.appendChild(renderer.sh = document.createElement('style'));\n\n if (process.env.NODE_ENV !== 'production') {\n renderer.sh.setAttribute('data-nano-css-dev', '');\n\n // Test style sheet used in DEV mode to test if .insetRule() would throw.\n renderer.shTest = document.createElement('style');\n renderer.shTest.setAttribute('data-nano-css-dev-tests', '');\n document.head.appendChild(renderer.shTest);\n }\n\n renderer.putRaw = function (rawCssRule) {\n // .insertRule() is faster than .appendChild(), that's why we use it in PROD.\n // But CSS injected using .insertRule() is not displayed in Chrome Devtools,\n // that's why we use .appendChild in DEV.\n if (process.env.NODE_ENV === 'production') {\n var sheet = renderer.sh.sheet;\n\n // Unknown pseudo-selectors will throw, this try/catch swallows all errors.\n try {\n sheet.insertRule(rawCssRule, sheet.cssRules.length);\n // eslint-disable-next-line no-empty\n } catch (error) {}\n } else {\n // Test if .insertRule() works in dev mode. Unknown pseudo-selectors will throw when\n // .insertRule() is used, but .appendChild() will not throw.\n try {\n renderer.shTest.sheet.insertRule(rawCssRule, renderer.shTest.sheet.cssRules.length);\n } catch (error) {\n if (config.verbose) {\n console.error(error);\n }\n }\n\n // Insert pretty-printed CSS for dev mode.\n renderer.sh.appendChild(document.createTextNode(rawCssRule));\n }\n };\n }\n\n renderer.put = function (selector, decls, atrule) {\n var str = '';\n var prop, value;\n var postponed = [];\n\n for (prop in decls) {\n value = decls[prop];\n\n if ((value instanceof Object) && !(value instanceof Array)) {\n postponed.push(prop);\n } else {\n if ((process.env.NODE_ENV !== 'production') && !renderer.sourcemaps) {\n str += ' ' + renderer.decl(prop, value, selector, atrule) + '\\n';\n } else {\n str += renderer.decl(prop, value, selector, atrule);\n }\n }\n }\n\n if (str) {\n if ((process.env.NODE_ENV !== 'production') && !renderer.sourcemaps) {\n str = '\\n' + selector + ' {\\n' + str + '}\\n';\n } else {\n str = selector + '{' + str + '}';\n }\n renderer.putRaw(atrule ? atrule + '{' + str + '}' : str);\n }\n\n for (var i = 0; i < postponed.length; i++) {\n prop = postponed[i];\n\n if (prop[0] === \"@\" && prop !== \"@font-face\") {\n renderer.putAt(selector, decls[prop], prop);\n } else {\n renderer.put(renderer.selector(selector, prop), decls[prop], atrule);\n }\n }\n };\n\n renderer.putAt = renderer.put;\n\n return renderer;\n};\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = capitalizeString;\nfunction capitalizeString(str) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\nmodule.exports = exports[\"default\"];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = prefixProperty;\n\nvar _capitalizeString = require('./capitalizeString');\n\nvar _capitalizeString2 = _interopRequireDefault(_capitalizeString);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction prefixProperty(prefixProperties, property, style) {\n if (prefixProperties.hasOwnProperty(property)) {\n var newStyle = {};\n var requiredPrefixes = prefixProperties[property];\n var capitalizedProperty = (0, _capitalizeString2.default)(property);\n var keys = Object.keys(style);\n for (var i = 0; i < keys.length; i++) {\n var styleProperty = keys[i];\n if (styleProperty === property) {\n for (var j = 0; j < requiredPrefixes.length; j++) {\n newStyle[requiredPrefixes[j] + capitalizedProperty] = style[property];\n }\n }\n newStyle[styleProperty] = style[styleProperty];\n }\n return newStyle;\n }\n return style;\n}\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = prefixValue;\nfunction prefixValue(plugins, property, value, style, metaData) {\n for (var i = 0, len = plugins.length; i < len; ++i) {\n var processedValue = plugins[i](property, value, style, metaData);\n\n // we can stop processing if a value is returned\n // as all plugin criteria are unique\n if (processedValue) {\n return processedValue;\n }\n }\n}\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = addNewValuesOnly;\nfunction addIfNew(list, value) {\n if (list.indexOf(value) === -1) {\n list.push(value);\n }\n}\n\nfunction addNewValuesOnly(list, values) {\n if (Array.isArray(values)) {\n for (var i = 0, len = values.length; i < len; ++i) {\n addIfNew(list, values[i]);\n }\n } else {\n addIfNew(list, values);\n }\n}\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isObject;\nfunction isObject(value) {\n return value instanceof Object && !Array.isArray(value);\n}\nmodule.exports = exports[\"default\"];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createPrefixer;\n\nvar _prefixProperty = require('../utils/prefixProperty');\n\nvar _prefixProperty2 = _interopRequireDefault(_prefixProperty);\n\nvar _prefixValue = require('../utils/prefixValue');\n\nvar _prefixValue2 = _interopRequireDefault(_prefixValue);\n\nvar _addNewValuesOnly = require('../utils/addNewValuesOnly');\n\nvar _addNewValuesOnly2 = _interopRequireDefault(_addNewValuesOnly);\n\nvar _isObject = require('../utils/isObject');\n\nvar _isObject2 = _interopRequireDefault(_isObject);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createPrefixer(_ref) {\n var prefixMap = _ref.prefixMap,\n plugins = _ref.plugins;\n\n function prefixAll(style) {\n for (var property in style) {\n var value = style[property];\n\n // handle nested objects\n if ((0, _isObject2.default)(value)) {\n style[property] = prefixAll(value);\n // handle array values\n } else if (Array.isArray(value)) {\n var combinedValue = [];\n\n for (var i = 0, len = value.length; i < len; ++i) {\n var processedValue = (0, _prefixValue2.default)(plugins, property, value[i], style, prefixMap);\n (0, _addNewValuesOnly2.default)(combinedValue, processedValue || value[i]);\n }\n\n // only modify the value if it was touched\n // by any plugin to prevent unnecessary mutations\n if (combinedValue.length > 0) {\n style[property] = combinedValue;\n }\n } else {\n var _processedValue = (0, _prefixValue2.default)(plugins, property, value, style, prefixMap);\n\n // only modify the value if it was touched\n // by any plugin to prevent unnecessary mutations\n if (_processedValue) {\n style[property] = _processedValue;\n }\n\n style = (0, _prefixProperty2.default)(prefixMap, property, style);\n }\n }\n\n return style;\n }\n\n return prefixAll;\n}\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar w = [\"Webkit\"];\nvar m = [\"Moz\"];\nvar ms = [\"ms\"];\nvar wm = [\"Webkit\", \"Moz\"];\nvar wms = [\"Webkit\", \"ms\"];\nvar wmms = [\"Webkit\", \"Moz\", \"ms\"];\n\nexports.default = {\n plugins: [],\n prefixMap: { \"appearance\": wm, \"textEmphasisPosition\": w, \"textEmphasis\": w, \"textEmphasisStyle\": w, \"textEmphasisColor\": w, \"boxDecorationBreak\": w, \"maskImage\": w, \"maskMode\": w, \"maskRepeat\": w, \"maskPosition\": w, \"maskClip\": w, \"maskOrigin\": w, \"maskSize\": w, \"maskComposite\": w, \"mask\": w, \"maskBorderSource\": w, \"maskBorderMode\": w, \"maskBorderSlice\": w, \"maskBorderWidth\": w, \"maskBorderOutset\": w, \"maskBorderRepeat\": w, \"maskBorder\": w, \"maskType\": w, \"textDecorationStyle\": w, \"textDecorationSkip\": w, \"textDecorationLine\": w, \"textDecorationColor\": w, \"userSelect\": wmms, \"backdropFilter\": w, \"fontKerning\": w, \"scrollSnapType\": wms, \"scrollSnapPointsX\": wms, \"scrollSnapPointsY\": wms, \"scrollSnapDestination\": wms, \"scrollSnapCoordinate\": wms, \"clipPath\": w, \"shapeImageThreshold\": w, \"shapeImageMargin\": w, \"shapeImageOutside\": w, \"filter\": w, \"hyphens\": wms, \"flowInto\": wms, \"flowFrom\": wms, \"breakBefore\": wms, \"breakAfter\": wms, \"breakInside\": wms, \"regionFragment\": wms, \"writingMode\": wms, \"textOrientation\": w, \"tabSize\": m, \"fontFeatureSettings\": w, \"columnCount\": w, \"columnFill\": w, \"columnGap\": w, \"columnRule\": w, \"columnRuleColor\": w, \"columnRuleStyle\": w, \"columnRuleWidth\": w, \"columns\": w, \"columnSpan\": w, \"columnWidth\": w, \"wrapFlow\": ms, \"wrapThrough\": ms, \"wrapMargin\": ms, \"gridTemplateColumns\": ms, \"gridTemplateRows\": ms, \"gridTemplateAreas\": ms, \"gridTemplate\": ms, \"gridAutoColumns\": ms, \"gridAutoRows\": ms, \"gridAutoFlow\": ms, \"grid\": ms, \"gridRowStart\": ms, \"gridColumnStart\": ms, \"gridRowEnd\": ms, \"gridRow\": ms, \"gridColumn\": ms, \"gridColumnEnd\": ms, \"gridColumnGap\": ms, \"gridRowGap\": ms, \"gridArea\": ms, \"gridGap\": ms, \"textSizeAdjust\": wms }\n};\nmodule.exports = exports[\"default\"];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = cursor;\nvar prefixes = ['-webkit-', '-moz-', ''];\n\nvar values = {\n 'zoom-in': true,\n 'zoom-out': true,\n grab: true,\n grabbing: true\n};\n\nfunction cursor(property, value) {\n if (property === 'cursor' && values.hasOwnProperty(value)) {\n return prefixes.map(function (prefix) {\n return prefix + value;\n });\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isPrefixedValue;\nvar regex = /-webkit-|-moz-|-ms-/;\n\nfunction isPrefixedValue(value) {\n return typeof value === 'string' && regex.test(value);\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = crossFade;\n\nvar _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue');\n\nvar _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// http://caniuse.com/#search=cross-fade\nvar prefixes = ['-webkit-', ''];\nfunction crossFade(property, value) {\n if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.indexOf('cross-fade(') > -1) {\n return prefixes.map(function (prefix) {\n return value.replace(/cross-fade\\(/g, prefix + 'cross-fade(');\n });\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = filter;\n\nvar _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue');\n\nvar _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// http://caniuse.com/#feat=css-filter-function\nvar prefixes = ['-webkit-', ''];\nfunction filter(property, value) {\n if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.indexOf('filter(') > -1) {\n return prefixes.map(function (prefix) {\n return value.replace(/filter\\(/g, prefix + 'filter(');\n });\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = flex;\nvar values = {\n flex: ['-webkit-box', '-moz-box', '-ms-flexbox', '-webkit-flex', 'flex'],\n 'inline-flex': ['-webkit-inline-box', '-moz-inline-box', '-ms-inline-flexbox', '-webkit-inline-flex', 'inline-flex']\n};\n\nfunction flex(property, value) {\n if (property === 'display' && values.hasOwnProperty(value)) {\n return values[value];\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = flexboxOld;\nvar alternativeValues = {\n 'space-around': 'justify',\n 'space-between': 'justify',\n 'flex-start': 'start',\n 'flex-end': 'end',\n 'wrap-reverse': 'multiple',\n wrap: 'multiple',\n flex: 'box',\n 'inline-flex': 'inline-box'\n};\n\nvar alternativeProps = {\n alignItems: 'WebkitBoxAlign',\n justifyContent: 'WebkitBoxPack',\n flexWrap: 'WebkitBoxLines',\n flexGrow: 'WebkitBoxFlex'\n};\n\nfunction flexboxOld(property, value, style) {\n if (property === 'flexDirection' && typeof value === 'string') {\n if (value.indexOf('column') > -1) {\n style.WebkitBoxOrient = 'vertical';\n } else {\n style.WebkitBoxOrient = 'horizontal';\n }\n if (value.indexOf('reverse') > -1) {\n style.WebkitBoxDirection = 'reverse';\n } else {\n style.WebkitBoxDirection = 'normal';\n }\n }\n if (alternativeProps.hasOwnProperty(property)) {\n style[alternativeProps[property]] = alternativeValues[value] || value;\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = gradient;\n\nvar _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue');\n\nvar _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar prefixes = ['-webkit-', '-moz-', ''];\n\nvar values = /linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;\n\nfunction gradient(property, value) {\n if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && values.test(value)) {\n return prefixes.map(function (prefix) {\n return value.replace(values, function (grad) {\n return prefix + grad;\n });\n });\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = imageSet;\n\nvar _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue');\n\nvar _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// http://caniuse.com/#feat=css-image-set\nvar prefixes = ['-webkit-', ''];\nfunction imageSet(property, value) {\n if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.indexOf('image-set(') > -1) {\n return prefixes.map(function (prefix) {\n return value.replace(/image-set\\(/g, prefix + 'image-set(');\n });\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = position;\nfunction position(property, value) {\n if (property === 'position' && value === 'sticky') {\n return ['-webkit-sticky', 'sticky'];\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = sizing;\nvar prefixes = ['-webkit-', '-moz-', ''];\n\nvar properties = {\n maxHeight: true,\n maxWidth: true,\n width: true,\n height: true,\n columnWidth: true,\n minWidth: true,\n minHeight: true\n};\nvar values = {\n 'min-content': true,\n 'max-content': true,\n 'fill-available': true,\n 'fit-content': true,\n 'contain-floats': true\n};\n\nfunction sizing(property, value) {\n if (properties.hasOwnProperty(property) && values.hasOwnProperty(value)) {\n return prefixes.map(function (prefix) {\n return prefix + value;\n });\n }\n}\nmodule.exports = exports['default'];","/* eslint-disable no-var, prefer-template */\nvar uppercasePattern = /[A-Z]/g\nvar msPattern = /^ms-/\nvar cache = {}\n\nfunction toHyphenLower(match) {\n return '-' + match.toLowerCase()\n}\n\nfunction hyphenateStyleName(name) {\n if (cache.hasOwnProperty(name)) {\n return cache[name]\n }\n\n var hName = name.replace(uppercasePattern, toHyphenLower)\n return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)\n}\n\nexport default hyphenateStyleName\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = hyphenateProperty;\n\nvar _hyphenateStyleName = require('hyphenate-style-name');\n\nvar _hyphenateStyleName2 = _interopRequireDefault(_hyphenateStyleName);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction hyphenateProperty(property) {\n return (0, _hyphenateStyleName2.default)(property);\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = transition;\n\nvar _hyphenateProperty = require('css-in-js-utils/lib/hyphenateProperty');\n\nvar _hyphenateProperty2 = _interopRequireDefault(_hyphenateProperty);\n\nvar _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue');\n\nvar _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);\n\nvar _capitalizeString = require('../../utils/capitalizeString');\n\nvar _capitalizeString2 = _interopRequireDefault(_capitalizeString);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar properties = {\n transition: true,\n transitionProperty: true,\n WebkitTransition: true,\n WebkitTransitionProperty: true,\n MozTransition: true,\n MozTransitionProperty: true\n};\n\n\nvar prefixMapping = {\n Webkit: '-webkit-',\n Moz: '-moz-',\n ms: '-ms-'\n};\n\nfunction prefixValue(value, propertyPrefixMap) {\n if ((0, _isPrefixedValue2.default)(value)) {\n return value;\n }\n\n // only split multi values, not cubic beziers\n var multipleValues = value.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g);\n\n for (var i = 0, len = multipleValues.length; i < len; ++i) {\n var singleValue = multipleValues[i];\n var values = [singleValue];\n for (var property in propertyPrefixMap) {\n var dashCaseProperty = (0, _hyphenateProperty2.default)(property);\n\n if (singleValue.indexOf(dashCaseProperty) > -1 && dashCaseProperty !== 'order') {\n var prefixes = propertyPrefixMap[property];\n for (var j = 0, pLen = prefixes.length; j < pLen; ++j) {\n // join all prefixes and create a new value\n values.unshift(singleValue.replace(dashCaseProperty, prefixMapping[prefixes[j]] + dashCaseProperty));\n }\n }\n }\n\n multipleValues[i] = values.join(',');\n }\n\n return multipleValues.join(',');\n}\n\nfunction transition(property, value, style, propertyPrefixMap) {\n // also check for already prefixed transitions\n if (typeof value === 'string' && properties.hasOwnProperty(property)) {\n var outputValue = prefixValue(value, propertyPrefixMap);\n // if the property is already prefixed\n var webkitOutput = outputValue.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g).filter(function (val) {\n return !/-moz-|-ms-/.test(val);\n }).join(',');\n\n if (property.indexOf('Webkit') > -1) {\n return webkitOutput;\n }\n\n var mozOutput = outputValue.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g).filter(function (val) {\n return !/-webkit-|-ms-/.test(val);\n }).join(',');\n\n if (property.indexOf('Moz') > -1) {\n return mozOutput;\n }\n\n style['Webkit' + (0, _capitalizeString2.default)(property)] = webkitOutput;\n style['Moz' + (0, _capitalizeString2.default)(property)] = mozOutput;\n return outputValue;\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createPrefixer = require('./createPrefixer');\n\nvar _createPrefixer2 = _interopRequireDefault(_createPrefixer);\n\nvar _staticData = require('./staticData');\n\nvar _staticData2 = _interopRequireDefault(_staticData);\n\nvar _cursor = require('./plugins/cursor');\n\nvar _cursor2 = _interopRequireDefault(_cursor);\n\nvar _crossFade = require('./plugins/crossFade');\n\nvar _crossFade2 = _interopRequireDefault(_crossFade);\n\nvar _filter = require('./plugins/filter');\n\nvar _filter2 = _interopRequireDefault(_filter);\n\nvar _flex = require('./plugins/flex');\n\nvar _flex2 = _interopRequireDefault(_flex);\n\nvar _flexboxOld = require('./plugins/flexboxOld');\n\nvar _flexboxOld2 = _interopRequireDefault(_flexboxOld);\n\nvar _gradient = require('./plugins/gradient');\n\nvar _gradient2 = _interopRequireDefault(_gradient);\n\nvar _imageSet = require('./plugins/imageSet');\n\nvar _imageSet2 = _interopRequireDefault(_imageSet);\n\nvar _position = require('./plugins/position');\n\nvar _position2 = _interopRequireDefault(_position);\n\nvar _sizing = require('./plugins/sizing');\n\nvar _sizing2 = _interopRequireDefault(_sizing);\n\nvar _transition = require('./plugins/transition');\n\nvar _transition2 = _interopRequireDefault(_transition);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar plugins = [_crossFade2.default, _cursor2.default, _filter2.default, _flexboxOld2.default, _gradient2.default, _imageSet2.default, _position2.default, _sizing2.default, _transition2.default, _flex2.default];\n\nexports.default = (0, _createPrefixer2.default)({\n prefixMap: _staticData2.default.prefixMap,\n plugins: plugins\n});\nmodule.exports = exports['default'];","'use strict';\n\nvar prefixAll = require('inline-style-prefixer/static');\n\nvar CAMEL_REGEX = /-[a-z\\u00E0-\\u00F6\\u00F8-\\u00FE]/g;\n\nvar matchCallback = function (match) {\n return match.slice(1).toUpperCase();\n};\n\nexports.addon = function (renderer) {\n var decl = renderer.decl;\n var origPut = renderer.put;\n\n renderer.camel = function (prop) {\n return prop.replace(CAMEL_REGEX, matchCallback);\n };\n\n renderer.prefix = function (prop, value) {\n var obj = {};\n obj[renderer.camel(prop)] = value;\n obj = prefixAll(obj);\n\n var result = {};\n\n for (var propPrefixed in obj) {\n value = obj[propPrefixed];\n if (propPrefixed.slice(0, 2) === 'ms') {\n propPrefixed = 'M' + propPrefixed.slice(1);\n }\n propPrefixed = renderer.kebab(propPrefixed);\n\n if (value instanceof Array) {\n result[propPrefixed] = value.join(';' + propPrefixed + ':');\n } else {\n result[propPrefixed] = value;\n }\n }\n\n return result;\n };\n\n renderer.decl = function (prop, value) {\n var result = renderer.prefix(prop, value);\n\n var returned = '';\n Object.keys(result).forEach(function (key) {\n var str = decl(key, value);\n returned += str;\n });\n\n return returned;\n };\n\n function newPut(selector, decls, atrule) {\n var indexed = selector.indexOf('::placeholder');\n if (indexed > -1) {\n var split = selector.split(',');\n if (split.length > 1) {\n split.forEach(function(sp) {\n newPut(sp.trim(), decls, atrule);\n });\n return;\n }\n var bareSelect = selector.substring(0, indexed);\n [\n '::-webkit-input-placeholder',\n '::-moz-placeholder',\n ':-ms-input-placeholder',\n ':-moz-placeholder'\n ].forEach(function(ph) {\n origPut(bareSelect + ph, decls, atrule);\n });\n }\n origPut(selector, decls, atrule);\n }\n\n renderer.put = newPut;\n};\n","import { assign } from 'es6-object-assign';\nimport { h } from 'preact';\nimport { create } from 'nano-css';\nimport { addon as addonCache } from 'nano-css/addon/cache';\nimport { addon as addonNesting } from 'nano-css/addon/nesting';\nimport { addon as prefixer } from 'nano-css/addon/prefixer';\nimport { addon as addonRule } from 'nano-css/addon/rule';\nimport { addon as addonSheet } from 'nano-css/addon/sheet';\n\nconst nano = create({\n assign,\n h,\n pfx: ''\n});\n\naddonCache(nano);\naddonNesting(nano);\nprefixer(nano);\naddonRule(nano);\naddonSheet(nano);\n\nconst { rule, sheet } = nano;\n\nexport {\n rule,\n sheet\n};\n\n","'use strict';\n\nexports.addon = function (renderer) {\n var cache = {};\n\n renderer.cache = function (css) {\n if (!css) return '';\n\n var key = renderer.hash(css);\n\n if (!cache[key]) {\n cache[key] = renderer.rule(css, key);\n }\n\n return cache[key];\n };\n};\n","'use strict';\n\nexports.addon = function (renderer) {\n renderer.selector = function (parentSelectors, selector) {\n var parents = parentSelectors.split(',');\n var result = [];\n var selectors = selector.split(',');\n var len1 = parents.length;\n var len2 = selectors.length;\n var i, j, sel, pos, parent, replacedSelector;\n\n for (i = 0; i < len2; i++) {\n sel = selectors[i];\n pos = sel.indexOf('&');\n\n if (pos > -1) {\n for (j = 0; j < len1; j++) {\n parent = parents[j];\n replacedSelector = sel.replace(/&/g, parent);\n result.push(replacedSelector);\n }\n } else {\n for (j = 0; j < len1; j++) {\n parent = parents[j];\n\n if (parent) {\n result.push(parent + ' ' + sel);\n } else {\n result.push(sel);\n }\n }\n }\n }\n\n return result.join(',');\n };\n};\n","'use strict';\n\nexports.addon = function (renderer) {\n if (process.env.NODE_ENV !== 'production') {\n require('./__dev__/warnOnMissingDependencies')('rule', renderer, ['put']);\n }\n\n var blocks;\n\n if (process.env.NODE_ENV !== 'production') {\n blocks = {};\n }\n\n renderer.rule = function (css, block) {\n // Warn user if CSS selectors clash.\n if (process.env.NODE_ENV !== 'production') {\n if (block) {\n if (typeof block !== 'string') {\n throw new TypeError(\n 'nano-css block name must be a string. ' +\n 'For example, use nano.rule({color: \"red\", \"RedText\").'\n );\n }\n\n if (blocks[block]) {\n console.error('Block name \"' + block + '\" used more than once.');\n }\n\n blocks[block] = 1;\n }\n }\n\n block = block || renderer.hash(css);\n block = renderer.pfx + block;\n renderer.put('.' + block, css);\n\n return ' ' + block;\n };\n};\n","'use strict';\n\nexports.addon = function (renderer) {\n if (process.env.NODE_ENV !== 'production') {\n require('./__dev__/warnOnMissingDependencies')('sheet', renderer, ['rule']);\n }\n\n renderer.sheet = function (map, block) {\n var result = {};\n\n if (!block) {\n block = renderer.hash(map);\n }\n\n var onElementModifier = function (elementModifier) {\n var styles = map[elementModifier];\n\n if ((process.env.NODE_ENV !== 'production') && renderer.sourcemaps) {\n // In dev mode emit CSS immediately to generate sourcemaps.\n result[elementModifier] = renderer.rule(styles, block + '-' + elementModifier);\n } else {\n Object.defineProperty(result, elementModifier, {\n configurable: true,\n enumerable: true,\n get: function () {\n var classNames = renderer.rule(styles, block + '-' + elementModifier);\n\n Object.defineProperty(result, elementModifier, {\n value: classNames,\n enumerable: true\n });\n\n return classNames;\n },\n });\n }\n };\n\n for (var elementModifier in map) {\n onElementModifier(elementModifier);\n }\n\n return result;\n };\n};\n","import { lighten, darken, getLuminance } from 'polished';\n\n/**\n * Check the luminance of the color and lighten or darken accordingly\n * @param {string} color The color to check\n * @return {string} The lightened or darkened color\n */\nexport function getLighterOrDarker(color) {\n const l = getLuminance(color);\n if (l > 0.6) {\n return darken(l / 2, color);\n }\n return lighten((1 - l) / 2, color);\n}\n","import getVariables from './variables';\nimport { rule, sheet } from './nano';\nimport { normalizePrefix } from '../utils/general';\n\nimport buttonStyles from '../components/shepherd-content/shepherd-footer/shepherd-button/styles';\nimport contentStyles from '../components/shepherd-content/styles';\nimport elementStyles from '../components/shepherd-element/styles';\nimport footerStyles from '../components/shepherd-content/shepherd-footer/styles';\nimport headerStyles from '../components/shepherd-content/shepherd-header/styles';\nimport modalStyles from '../components/shepherd-modal/styles';\nimport textStyles from '../components/shepherd-content/shepherd-text/styles';\n\nexport function generateStyles(options) {\n const variables = getVariables(options);\n const classPrefix = normalizePrefix(options.classPrefix);\n const tippyPrefix = normalizePrefix(options.tippyClassPrefix);\n\n const styles = {\n active: {\n [`&.${classPrefix}shepherd-modal-is-visible`]: {\n [`:not(.${classPrefix}shepherd-target)`]: {\n pointerEvents: 'none'\n },\n\n [`.${classPrefix}shepherd-button, .${classPrefix}shepherd-cancel-link, .${classPrefix}shepherd-element, .${classPrefix}shepherd-target`]: {\n pointerEvents: 'auto',\n\n '*': {\n pointerEvents: 'auto'\n }\n }\n }\n },\n\n ...buttonStyles(classPrefix, variables),\n ...contentStyles(variables),\n ...elementStyles(),\n ...footerStyles(classPrefix, variables),\n ...headerStyles(classPrefix, variables),\n ...modalStyles(),\n ...textStyles(variables)\n };\n\n if (variables.useDropShadow) {\n styles.element.filter = 'drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2))';\n }\n\n const classes = sheet(styles, `${classPrefix}shepherd`);\n\n const arrowMargin = `calc((${variables.arrowSize} / 2.1) * 16px)`;\n\n const popperThemeArrows = {\n '&[x-placement^=\"top\"]': {\n marginBottom: arrowMargin,\n\n [`.${tippyPrefix}tippy-arrow`]: {\n borderTopColor: variables.shepherdTextBackground\n }\n },\n\n '&[x-placement^=\"bottom\"]': {\n marginTop: arrowMargin,\n\n [`.${tippyPrefix}tippy-arrow`]: {\n borderBottomColor: variables.shepherdTextBackground\n },\n\n [`&.${classPrefix}shepherd-has-title`]: {\n [`.${tippyPrefix}tippy-arrow`]: {\n borderBottomColor: variables.shepherdHeaderBackground\n }\n }\n },\n\n '&[x-placement^=\"left\"]': {\n marginRight: arrowMargin,\n\n [`.${tippyPrefix}tippy-arrow`]: {\n borderLeftColor: variables.shepherdTextBackground\n }\n },\n\n '&[x-placement^=\"right\"]': {\n marginLeft: arrowMargin,\n\n [`.${tippyPrefix}tippy-arrow`]: {\n borderRightColor: variables.shepherdTextBackground\n }\n }\n };\n\n // We have to add the root shepherd class separately\n classes.shepherd = rule({\n [`&.${tippyPrefix}tippy-popper`]: {\n ...popperThemeArrows,\n zIndex: variables.shepherdElementZIndex,\n\n [`.${tippyPrefix}tippy-tooltip`]: {\n backgroundColor: variables.shepherdTextBackground,\n\n [`.${tippyPrefix}tippy-arrow`]: {\n transform: `scale(${variables.arrowSize})`,\n zIndex: variables.shepherdElementZIndex + 1\n },\n\n [`.${tippyPrefix}tippy-content`]: {\n maxHeight: variables.shepherdElementMaxHeight,\n maxWidth: variables.shepherdElementMaxWidth,\n padding: 0,\n textAlign: 'center'\n }\n }\n }\n }, `${classPrefix}shepherd`);\n\n return classes;\n}\n","import { darken } from 'polished';\n\nexport default function buttonStyles(classPrefix, variables) {\n return {\n button: {\n background: variables.shepherdThemePrimary,\n borderRadius: variables.shepherdButtonBorderRadius,\n border: 0,\n color: variables.shepherdThemeTextPrimary,\n cursor: 'pointer',\n display: 'inline-block',\n fontFamily: 'inherit',\n fontSize: '0.8em',\n letterSpacing: '0.1em',\n lineHeight: '1em',\n marginRight: '0.5em',\n padding: '0.75em 2em',\n textTransform: 'uppercase',\n transition: 'all 0.5s ease',\n verticalAlign: 'middle',\n '&:hover': {\n background: darken(0.1, variables.shepherdThemePrimary)\n },\n [`&.${classPrefix}shepherd-button-secondary`]: {\n background: variables.shepherdThemeSecondary,\n color: variables.shepherdThemeTextSecondary,\n '&:hover': {\n background: darken(0.1, variables.shepherdThemeSecondary),\n color: darken(0.1, variables.shepherdThemeTextSecondary)\n }\n }\n }\n };\n}\n","export default function contentStyles(variables) {\n return {\n content: {\n background: variables.shepherdTextBackground,\n borderRadius: variables.shepherdElementBorderRadius,\n fontSize: 'inherit',\n outline: 'none',\n padding: 0\n }\n };\n}\n","export default function elementStyles() {\n return {\n element: {\n 'outline': 'none',\n // We need box-sizing: border-box on shepherd-element and everything under it\n '&, *': {\n '&, &:after, &:before': {\n boxSizing: 'border-box'\n }\n }\n }\n };\n}\n","export default function footerStyles(classPrefix, variables) {\n return {\n footer: {\n borderBottomLeftRadius: variables.shepherdElementBorderRadius,\n borderBottomRightRadius: variables.shepherdElementBorderRadius,\n display: 'flex',\n justifyContent: 'flex-end',\n padding: '0 0.75em 0.75em',\n [`.${classPrefix}shepherd-button`]: {\n '&:last-child': {\n marginRight: 0\n }\n }\n }\n };\n}\n","import { getLighterOrDarker } from '../../../styles/utils';\n\nexport default function headerStyles(classPrefix, variables) {\n return {\n 'cancel-link': {\n background: 'transparent',\n border: 'none',\n color: getLighterOrDarker(variables.shepherdThemeTextColor),\n fontSize: '2em',\n fontWeight: 'normal',\n margin: 0,\n padding: 0,\n position: 'relative',\n textDecoration: 'none',\n transition: 'color 0.5s ease',\n verticalAlign: 'middle',\n '&:hover': {\n color: variables.shepherdThemeTextColor,\n cursor: 'pointer'\n },\n [`.${classPrefix}shepherd-has-title .${classPrefix}shepherd-content &`]: {\n color: getLighterOrDarker(variables.shepherdThemeTextHeader),\n '&:hover': {\n color: variables.shepherdThemeTextHeader\n }\n }\n },\n\n header: {\n alignItems: 'center',\n borderTopLeftRadius: variables.shepherdElementBorderRadius,\n borderTopRightRadius: variables.shepherdElementBorderRadius,\n display: 'flex',\n justifyContent: 'flex-end',\n lineHeight: '2em',\n padding: '0.75em 0.75em 0',\n [`.${classPrefix}shepherd-has-title .${classPrefix}shepherd-content &`]: {\n background: variables.shepherdHeaderBackground,\n padding: '1em'\n }\n },\n\n title: {\n color: variables.shepherdThemeTextHeader,\n display: 'flex',\n flex: '1 0 auto',\n fontSize: '1.1em',\n fontWeight: 'normal',\n margin: 0,\n padding: 0,\n position: 'relative',\n verticalAlign: 'middle'\n }\n };\n}\n","export default function modalStyles() {\n return {\n 'modal-overlay-container': {\n '-ms-filter': 'progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)',\n filter: 'alpha(opacity=50)',\n height: '100vh',\n left: 0,\n opacity: 0.5,\n position: 'fixed',\n top: 0,\n transition: 'all 0.3s ease-out',\n width: '100vw',\n zIndex: 9997\n },\n 'modal-mask-rect': {\n height: '100vh',\n width: '100vw'\n }\n };\n}\n","export default function textStyles(variables) {\n return {\n text: {\n color: variables.shepherdThemeTextColor,\n fontSize: variables.shepherdTextFontSize,\n lineHeight: variables.shepherdTextLineHeight,\n padding: '0.75em',\n p: {\n marginTop: 0,\n\n '&:last-child': {\n marginBottom: 0\n }\n },\n 'a, a:visited, a:active': {\n borderBottom: '1px dotted',\n borderBottomColor: variables.shepherdThemeTextColor,\n color: variables.shepherdThemeTextColor,\n textDecoration: 'none',\n\n '&:hover': {\n borderBottomStyle: 'solid'\n }\n }\n }\n };\n}\n","import preact from 'preact';\nimport { debounce } from '../../utils/general';\nimport autoBind from '../../utils/auto-bind';\n\nconst { Component } = preact;\n\nexport default class ShepherdModal extends Component {\n constructor(props) {\n super(props);\n\n this._onScreenChange = null;\n\n this.classPrefix = props.classPrefix;\n\n autoBind(this);\n\n // Setup initial state\n this.closeModalOpening();\n this.setState({\n style: {\n display: 'none'\n }\n });\n }\n\n render(props, state) {\n const { classPrefix, styles } = props;\n return <svg\n className={styles['modal-overlay-container']}\n onTouchMove={ShepherdModal._preventModalOverlayTouch}\n style={state.style}\n >\n <defs>\n <mask\n className={`${classPrefix}shepherd-modal-mask`}\n height='100%'\n id={`${classPrefix}shepherd-modal-mask`}\n width='100%'\n x='0'\n y='0'\n >\n <rect\n className={styles['modal-mask-rect']}\n fill='#FFFFFF'\n height='100%'\n width='100%'\n x='0'\n y='0'\n />\n <rect\n className={`${classPrefix}shepherd-modal-mask-opening`}\n fill='#000000'\n height={state.openingProperties.height}\n x={state.openingProperties.x}\n y={state.openingProperties.y}\n width={state.openingProperties.width}\n />\n </mask>\n </defs>\n <rect\n height='100%'\n width='100%'\n x='0'\n y='0'\n mask={`url(#${classPrefix}shepherd-modal-mask)`}\n />\n </svg>;\n }\n\n closeModalOpening() {\n this.setState({\n openingProperties: {\n height: 0,\n x: 0,\n y: 0,\n width: 0\n }\n });\n }\n\n /**\n * Hide the modal overlay\n */\n hide() {\n document.body.classList.remove(`${this.classPrefix}shepherd-modal-is-visible`);\n\n this.setState({\n style: {\n display: 'none'\n }\n });\n\n // Ensure we cleanup all event listeners when we hide the modal\n this._cleanupStepEventListeners();\n }\n\n /**\n * Uses the bounds of the element we want the opening overtop of to set the dimensions of the opening and position it\n * @param {HTMLElement} targetElement The element the opening will expose\n * @param {Number} modalOverlayOpeningPadding An amount of padding to add around the modal overlay opening\n */\n positionModalOpening(targetElement, modalOverlayOpeningPadding = 0) {\n if (targetElement.getBoundingClientRect) {\n const { x, y, width, height, left, top } = targetElement.getBoundingClientRect();\n\n // getBoundingClientRect is not consistent. Some browsers use x and y, while others use left and top\n this.setState({\n openingProperties: {\n x: (x || left) - modalOverlayOpeningPadding,\n y: (y || top) - modalOverlayOpeningPadding,\n width: (width + (modalOverlayOpeningPadding * 2)),\n height: (height + (modalOverlayOpeningPadding * 2))\n }\n });\n }\n }\n\n /**\n * If modal is enabled, setup the svg mask opening and modal overlay for the step\n * @param {Step} step The step instance\n */\n setupForStep(step) {\n // Ensure we move listeners from the previous step, before we setup new ones\n this._cleanupStepEventListeners();\n\n if (step.tour.options.useModalOverlay) {\n this._styleForStep(step);\n this.show();\n\n } else {\n this.hide();\n }\n }\n\n /**\n * Show the modal overlay\n */\n show() {\n document.body.classList.add(`${this.classPrefix}shepherd-modal-is-visible`);\n\n this.setState({\n style: {\n display: 'block'\n }\n });\n }\n\n /**\n * Add resize and scroll event listeners\n * @private\n */\n _addStepEventListeners() {\n if (typeof this._onScreenChange === 'function') {\n window.removeEventListener('resize', this._onScreenChange, false);\n window.removeEventListener('scroll', this._onScreenChange, true);\n }\n\n window.addEventListener('resize', this._onScreenChange, false);\n window.addEventListener('scroll', this._onScreenChange, true);\n\n // Prevents window from moving on touch.\n window.addEventListener('touchmove', ShepherdModal._preventModalBodyTouch, { passive: false });\n }\n\n /**\n * Remove resize and scroll event listeners\n * @private\n */\n _cleanupStepEventListeners() {\n if (typeof this._onScreenChange === 'function') {\n window.removeEventListener('resize', this._onScreenChange, false);\n window.removeEventListener('scroll', this._onScreenChange, true);\n\n this._onScreenChange = null;\n }\n window.removeEventListener('touchmove', ShepherdModal._preventModalBodyTouch, {\n passive: false\n });\n }\n\n /**\n * Style the modal for the step\n * @param {Step} step The step to style the opening for\n * @private\n */\n _styleForStep(step) {\n const { modalOverlayOpeningPadding } = step.options;\n\n if (step.target) {\n this.positionModalOpening(step.target, modalOverlayOpeningPadding);\n\n this._onScreenChange = debounce(\n this.positionModalOpening.bind(this, step.target, modalOverlayOpeningPadding),\n 0\n );\n\n this._addStepEventListeners();\n } else {\n this.closeModalOpening();\n }\n }\n\n static _preventModalBodyTouch(e) {\n e.preventDefault();\n }\n\n static _preventModalOverlayTouch(e) {\n e.stopPropagation();\n }\n}\n","import bodyScrollLock from 'body-scroll-lock';\nimport preact from 'preact';\nimport tippy from 'tippy.js';\n\nimport { Evented } from './evented.js';\nimport { Step } from './step.jsx';\nimport autoBind from './utils/auto-bind';\nimport { isElement, isFunction, isString } from './utils/type-check';\nimport { defaults as tooltipDefaults } from './utils/tooltip-defaults';\nimport { cleanupSteps } from './utils/cleanup';\nimport { normalizePrefix } from './utils/general';\nimport { generateStyles } from './styles/generateStyles';\nimport ShepherdModal from './components/shepherd-modal';\n\nconst { render } = preact;\n\n/**\n * Creates incremented ID for each newly created tour\n *\n * @return {Function} A function that returns the unique id for the tour\n * @private\n */\nconst uniqueId = (function() {\n let id = 0;\n return function() {\n return ++id;\n };\n})();\n\nconst Shepherd = new Evented();\n\n/**\n * Class representing the site tour\n * @extends {Evented}\n */\nexport class Tour extends Evented {\n /**\n * @param {Object} options The options for the tour\n * @param {boolean} options.confirmCancel If true, will issue a `window.confirm` before cancelling\n * @param {string} options.confirmCancelMessage The message to display in the confirm dialog\n * @param {Object} options.defaultStepOptions Default options for Steps ({@link Step#constructor}), created through `addStep`\n * @param {boolean} options.disableScroll When set to true, will keep the user from scrolling with the scrollbar,\n * mousewheel, arrow keys, etc. You may want to use this to ensure you are driving the scroll position with the tour.\n * @param {HTMLElement} options.modalContainer An optional container element for the modal.\n * If not set, the modal will be appended to `document.body`.\n * @param {Step[]} options.steps An array of Step instances to initialize the tour with\n * @param {string} options.tourName An optional \"name\" for the tour. This will be appended to the the tour's\n * dynamically generated `id` property -- which is also set on the `body` element as the `data-shepherd-active-tour` attribute\n * whenever the tour becomes active.\n * @param {boolean} options.useModalOverlay Whether or not steps should be placed above a darkened\n * modal overlay. If true, the overlay will create an opening around the target element so that it\n * can remain interactive\n * @returns {Tour}\n */\n constructor(options = {}) {\n super(options);\n\n autoBind(this);\n\n this.options = options;\n this.classPrefix = this.options ? normalizePrefix(this.options.classPrefix) : '';\n this.styles = generateStyles(options);\n this.steps = this.options.steps || [];\n\n // Pass these events onto the global Shepherd object\n const events = ['active', 'cancel', 'complete', 'inactive', 'show', 'start'];\n events.map((event) => {\n ((e) => {\n this.on(e, (opts) => {\n opts = opts || {};\n opts.tour = this;\n Shepherd.trigger(e, opts);\n });\n })(event);\n });\n\n const existingModal = document.querySelector(`.${this.classPrefix}shepherd-modal-overlay-container`);\n render(\n <ShepherdModal\n classPrefix={this.classPrefix}\n ref={(c) => this.modal = c}\n styles={this.styles}\n />,\n options.modalContainer || document.body,\n existingModal\n );\n\n this._setTooltipDefaults();\n this._setTourID();\n\n return this;\n }\n\n /**\n * Adds a new step to the tour\n * @param {Object|Step} options An object containing step options or a Step instance\n * @return {Step} The newly added step\n */\n addStep(options) {\n let step = options;\n\n if (!(step instanceof Step)) {\n step = this._setupStep(step);\n } else {\n step.tour = this;\n }\n\n this.steps.push(step);\n return step;\n }\n\n /**\n * Go to the previous step in the tour\n */\n back() {\n const index = this.steps.indexOf(this.currentStep);\n this.show(index - 1, false);\n }\n\n /**\n * Calls _done() triggering the 'cancel' event\n * If `confirmCancel` is true, will show a window.confirm before cancelling\n */\n cancel() {\n if (this.options.confirmCancel) {\n const cancelMessage = this.options.confirmCancelMessage || 'Are you sure you want to stop the tour?';\n const stopTour = window.confirm(cancelMessage);\n if (stopTour) {\n this._done('cancel');\n }\n } else {\n this._done('cancel');\n }\n }\n\n /**\n * Calls _done() triggering the `complete` event\n */\n complete() {\n this._done('complete');\n }\n\n /**\n * Gets the step from a given id\n * @param {Number|String} id The id of the step to retrieve\n * @return {Step} The step corresponding to the `id`\n */\n getById(id) {\n return this.steps.find((step) => {\n return step.id === id;\n });\n }\n\n /**\n * Gets the current step\n * @returns {Step|null}\n */\n getCurrentStep() {\n return this.currentStep;\n }\n\n /**\n * Hide the current step\n */\n hide() {\n const currentStep = this.getCurrentStep();\n\n if (currentStep) {\n return currentStep.hide();\n }\n }\n\n /**\n * Check if the tour is active\n * @return {boolean}\n */\n isActive() {\n return Shepherd.activeTour === this;\n }\n\n /**\n * Go to the next step in the tour\n * If we are at the end, call `complete`\n */\n next() {\n const index = this.steps.indexOf(this.currentStep);\n\n if (index === this.steps.length - 1) {\n this.complete();\n } else {\n this.show(index + 1, true);\n }\n }\n\n /**\n * Removes the step from the tour\n * @param {String} name The id for the step to remove\n */\n removeStep(name) {\n const current = this.getCurrentStep();\n\n // Find the step, destroy it and remove it from this.steps\n this.steps.some((step, i) => {\n if (step.id === name) {\n if (step.isOpen()) {\n step.hide();\n }\n\n step.destroy();\n this.steps.splice(i, 1);\n\n return true;\n }\n });\n\n if (current && current.id === name) {\n this.currentStep = undefined;\n\n // If we have steps left, show the first one, otherwise just cancel the tour\n this.steps.length ? this.show(0) : this.cancel();\n }\n }\n\n /**\n * Show a specific step in the tour\n * @param {Number|String} key The key to look up the step by\n * @param {Boolean} forward True if we are going forward, false if backward\n */\n show(key = 0, forward = true) {\n const step = isString(key) ? this.getById(key) : this.steps[key];\n\n if (step) {\n this._updateStateBeforeShow();\n\n const shouldSkipStep = isFunction(step.options.showOn) && !step.options.showOn();\n\n // If `showOn` returns false, we want to skip the step, otherwise, show the step like normal\n if (shouldSkipStep) {\n this._skipStep(step, forward);\n } else {\n this.trigger('show', {\n step,\n previous: this.currentStep\n });\n\n this.currentStep = step;\n step.show();\n }\n }\n }\n\n /**\n * Start the tour\n */\n start() {\n this.trigger('start');\n\n if (this.options.disableScroll) {\n bodyScrollLock.disableBodyScroll();\n }\n\n // Save the focused element before the tour opens\n this.focusedElBeforeOpen = document.activeElement;\n\n this.currentStep = null;\n this._setupActiveTour();\n this.next();\n }\n\n /**\n * Called whenever the tour is cancelled or completed, basically anytime we exit the tour\n * @param {String} event The event name to trigger\n * @private\n */\n _done(event) {\n const index = this.steps.indexOf(this.currentStep);\n if (Array.isArray(this.steps)) {\n this.steps.forEach((step) => step.destroy());\n }\n\n cleanupSteps(this);\n\n this.trigger(event, { index });\n\n Shepherd.activeTour = null;\n this._removeBodyAttrs();\n this.trigger('inactive', { tour: this });\n\n if (this.options.disableScroll) {\n bodyScrollLock.clearAllBodyScrollLocks();\n }\n\n this.modal.hide();\n\n // Focus the element that was focused before the tour started\n if (isElement(this.focusedElBeforeOpen)) {\n this.focusedElBeforeOpen.focus();\n }\n }\n\n /**\n * Make this tour \"active\"\n * @private\n */\n _setupActiveTour() {\n this._addBodyAttrs();\n this.trigger('active', { tour: this });\n\n Shepherd.activeTour = this;\n }\n\n /**\n * Setup a new step object\n * @param {Object} stepOptions The object describing the options for the step\n * @return {Step} The step instance\n * @private\n */\n _setupStep(stepOptions) {\n stepOptions = Object.assign({}, this.options.defaultStepOptions, stepOptions);\n\n return new Step(this, stepOptions);\n }\n\n /**\n * Called when `showOn` evaluates to false, to skip the step\n * @param {Step} step The step to skip\n * @param {Boolean} forward True if we are going forward, false if backward\n * @private\n */\n _skipStep(step, forward) {\n const index = this.steps.indexOf(step);\n const nextIndex = forward ? index + 1 : index - 1;\n this.show(nextIndex, forward);\n }\n\n /**\n * Set the tippy defaults\n * @private\n */\n _setTooltipDefaults() {\n tippy.setDefaultProps(tooltipDefaults);\n }\n\n /**\n * Before showing, hide the current step and if the tour is not\n * already active, call `this._setupActiveTour`.\n * @private\n */\n _updateStateBeforeShow() {\n if (this.currentStep) {\n this.currentStep.hide();\n }\n\n if (!this.isActive()) {\n this._setupActiveTour();\n }\n }\n\n /**\n * Sets this.id to `${tourName}--${uuid}`\n * @private\n */\n _setTourID() {\n const tourName = this.options.tourName || 'tour';\n const uuid = uniqueId();\n\n this.id = `${tourName}--${uuid}`;\n }\n\n /**\n * Adds the data-shepherd-active-tour attribute and the 'shepherd-active'\n * class to the body.\n * @private\n */\n _addBodyAttrs() {\n document.body.setAttribute(`data-${this.classPrefix}shepherd-active-tour`, this.id);\n document.body.classList.add(this.styles.active.trim());\n }\n\n /**\n * Removes the data-shepherd-active-tour attribute and the 'shepherd-active'\n * class from the body.\n * @private\n */\n _removeBodyAttrs() {\n document.body.removeAttribute(`data-${this.classPrefix}shepherd-active-tour`);\n document.body.classList.remove(this.styles.active.trim());\n }\n\n}\n\nexport { Shepherd };\n","/**\n * Cleanup the steps and set pointerEvents back to 'auto'\n * @param tour The tour object\n */\nexport function cleanupSteps(tour) {\n if (tour) {\n const { steps } = tour;\n\n steps.forEach((step) => {\n if (step.options && step.options.canClickTarget === false && step.options.attachTo) {\n const stepElement = step.target;\n\n if (stepElement instanceof HTMLElement) {\n stepElement.style.pointerEvents = 'auto';\n }\n }\n });\n }\n}\n","import 'es6-symbol/implement';\n\nimport { Evented } from './evented';\nimport { Step } from './step';\nimport { Shepherd, Tour } from './tour';\n\nObject.assign(Shepherd, { Tour, Step, Evented });\n\nexport default Shepherd;\n"],"names":["validTypes","object","symbol","this","Object","defineProperty","prototype","get","configurable","__global__","NativeSymbol","SymbolPolyfill","HiddenSymbol","isNativeSafe","value","possibleTypes","function","undefined","isValue","hasOwnProperty","call","isObject","constructor","error","classRe","functionToString","Function","toString","length","apply","isPrototype","isFunction","test","val","keys","e","require$$0","TypeError","max","Math","obj","assign","foo","bar","trzy","dest","src","i","arguments","key","forEach","Array","create","process","opts1","result","options","str","indexOf","String","contains","searchString","module","dscr","c","w","desc","enumerable","writable","normalizeOpts","gs","set","isPlainFunction","x","name","toStringTag","defineProperties","objPrototype","globalSymbols","Symbol","ignore","created","generateName","ie11BugWorkaround","postfix","d","description","__description__","__name__","isElement","HTMLElement","isString","isUndefined","for","keyFor","s","validateSymbol","hasInstance","isConcatSpreadable","iterator","match","replace","search","species","split","toPrimitive","unscopables","valueOf","require$$1","require$$2","Evented","on","event","handler","ctx","once","bindings","push","off","binding","index","_this","splice","trigger","args","slice","context","_this2","VNode","stack","EMPTY_CHILDREN","h","nodeName","attributes","lastSimple","child","simple","children","pop","p","extend","props","applyRef","ref","current","defer","Promise","resolve","then","bind","setTimeout","IS_NON_DIMENSIONAL","items","enqueueRender","component","_dirty","rerender","renderComponent","isSameNodeType","node","vnode","hydrating","splitText","_componentConstructor","isNamedNode","normalizedNodeName","toLowerCase","getNodeProps","defaultProps","removeNode","parentNode","removeChild","setAccessor","old","isSvg","style","cssText","innerHTML","__html","useCapture","substring","addEventListener","eventProxy","removeEventListener","_listeners","removeAttribute","ns","removeAttributeNS","setAttributeNS","setAttribute","className","type","mounts","diffLevel","isSvgMode","flushMounts","shift","componentDidMount","diff","dom","mountAll","parent","componentRoot","ownerSVGElement","ret","idiff","appendChild","out","prevSvgMode","_component","nodeValue","document","createTextNode","replaceChild","recollectNodeTree","vnodeName","originalComponent","oldDom","isDirectOwner","isOwner","_parentComponent","setComponentProps","base","unmountComponent","createComponent","nextBase","buildComponentFromVNode","createElementNS","createElement","firstChild","fc","vchildren","a","nextSibling","isHydrating","j","f","vchild","originalChildren","childNodes","keyed","keyedLen","min","len","childrenLen","vlen","_child","__key","trim","insertBefore","innerDiffNode","dangerouslySetInnerHTML","attrs","diffAttributes","unmountOnly","removeChildren","lastChild","next","previousSibling","recyclerComponents","Ctor","inst","render","Component","doRender","state","renderMode","_disable","__ref","getDerivedStateFromProps","componentWillMount","componentWillReceiveProps","prevContext","prevProps","syncComponentUpdates","isChild","rendered","cbase","previousProps","previousState","prevState","previousContext","isUpdate","initialBase","initialChildComponent","skip","snapshot","shouldComponentUpdate","componentWillUpdate","getChildContext","getSnapshotBeforeUpdate","toUnmount","childComponent","childProps","baseParent","componentRef","t","componentDidUpdate","_renderCallbacks","componentWillUnmount","inner","setState","callback","forceUpdate","preact","cloneElement","createRef","merge","autoBind","self","getOwnPropertyNames","bindAdvance","step","advanceOn","selector","console","el","isOpen","targetIsEl","target","matches","tour","_setupAdvanceOnHandler","querySelector","body","_extends","source","isBrowser","window","ua","navigator","userAgent","isIE","isUCBrowser","isIOS","platform","allowHTML","animateFill","animation","appendTo","aria","arrow","boundary","content","delay","distance","duration","flip","flipBehavior","flipOnUpdate","followCursor","hideOnClick","ignoreAttributes","inertia","interactive","interactiveBorder","interactiveDebounce","lazy","maxWidth","multiple","offset","onCreate","onHidden","onHide","onMount","onShow","onShown","onTrigger","onUntrigger","placement","popperOptions","role","showOnCreate","sticky","theme","touch","triggerTarget","updateDuration","zIndex","POPPER_INSTANCE_DEPENDENCIES","PASSIVE","passive","PREVENT_OVERFLOW_PADDING","ROUND_ARROW_INNER_HTML","IOS_CLASS","POPPER_CLASS","TOOLTIP_CLASS","CONTENT_CLASS","BACKDROP_CLASS","ARROW_CLASS","SVG_ARROW_CLASS","POPPER_SELECTOR","TOOLTIP_SELECTOR","CONTENT_SELECTOR","BACKDROP_SELECTOR","ARROW_SELECTOR","SVG_ARROW_SELECTOR","currentInput","isTouch","lastMouseMoveTime","onDocumentTouchStart","classList","add","performance","onDocumentMouseMove","now","remove","onWindowBlur","activeElement","instance","_tippy","blur","isVisible","getValueAtIndexOrReturn","defaultValue","isArray","v","getModifier","modifiers","isRealElement","Element","invokeWithArgsOrReturn","setFlipModifierEnabled","filter","m","enabled","div","setTransitionDuration","els","transitionDuration","setVisibilityState","evaluateProps","reference","reduce","acc","valueAsString","getAttribute","JSON","parse","getDataAttributeProps","debounce","fn","ms","arg","clearTimeout","timeout","preserveInvocation","originalFn","currentFn","arrayFrom","includes","b","setInnerHTML","element","html","setContent","contentEl","getChildren","popper","tooltip","backdrop","addInertia","createArrowElement","arrowElement","createBackdropElement","addInteractive","updateTransitionEndListener","action","listener","eventName","webkitTransition","getBasePlacement","updateTheme","createPopperElement","id","position","top","left","updatePopperElement","nextProps","_getChildren","removeInteractive","removeInertia","longerTimeoutBrowsers","timeoutDuration","called","scheduled","functionToCheck","getStyleComputedProperty","property","nodeType","css","ownerDocument","defaultView","getComputedStyle","getParentNode","host","getScrollParent","_getStyleComputedProp","overflow","overflowX","overflowY","isIE11","MSInputMethodContext","documentMode","isIE10","version","getOffsetParent","documentElement","noOffsetParent","offsetParent","nextElementSibling","getRoot","findCommonOffsetParent","element1","element2","order","compareDocumentPosition","Node","DOCUMENT_POSITION_FOLLOWING","start","end","range","createRange","setStart","setEnd","commonAncestorContainer","firstElementChild","element1root","getScroll","upperSide","scrollingElement","getBordersSize","styles","axis","sideA","sideB","parseFloat","getSize","computedStyle","parseInt","getWindowSizes","height","width","classCallCheck","Constructor","createClass","descriptor","protoProps","staticProps","getClientRect","offsets","right","bottom","getBoundingClientRect","rect","scrollTop","scrollLeft","sizes","clientWidth","clientHeight","horizScrollbar","offsetWidth","vertScrollbar","offsetHeight","getOffsetRectRelativeToArbitraryNode","fixedPosition","isHTML","childrenRect","parentRect","scrollParent","borderTopWidth","borderLeftWidth","marginTop","marginLeft","subtract","modifier","includeScroll","getFixedPositionOffsetParent","parentElement","getBoundaries","padding","boundariesElement","boundaries","excludeScroll","relativeOffset","innerWidth","innerHeight","getViewportOffsetRectRelativeToArtbitraryNode","boundariesNode","isFixed","_getWindowSizes","isPaddingNumber","computeAutoPlacement","refRect","rects","sortedAreas","map","area","_ref","sort","filteredAreas","_ref2","computedPlacement","variation","getReferenceOffsets","getOuterSizes","marginBottom","y","marginRight","getOppositePlacement","hash","matched","getPopperOffsets","referenceOffsets","popperRect","popperOffsets","isHoriz","mainSide","secondarySide","measurement","secondaryMeasurement","find","arr","check","runModifiers","data","ends","prop","findIndex","cur","warn","isModifierEnabled","modifierName","some","getSupportedPropertyName","prefixes","upperProp","charAt","toUpperCase","prefix","toCheck","getWindow","setupEventListeners","updateBound","scrollElement","attachToScrollParents","scrollParents","isBody","eventsEnabled","disableEventListeners","cancelAnimationFrame","scheduleUpdate","isNumeric","n","isNaN","isFinite","setStyles","unit","isFirefox","isModifierRequired","requestingName","requestedName","requesting","isRequired","_requesting","requested","placements","validPlacements","clockwise","counter","concat","reverse","BEHAVIORS","FLIP","CLOCKWISE","COUNTERCLOCKWISE","parseOffset","basePlacement","useHeight","fragments","frag","divider","splitRegex","ops","op","mergeWithPrevious","toValue","index2","Defaults","positionFixed","removeOnDestroy","onUpdate","shiftvariation","_data$offsets","isVertical","side","shiftOffsets","preventOverflow","transformProp","popperStyles","transform","priority","primary","escapeWithReference","secondary","keepTogether","floor","opSide","_data$offsets$arrow","sideCapitalized","altSide","arrowElementSize","center","popperMarginSide","popperBorderSide","sideValue","round","flipped","originalPlacement","placementOpposite","flipOrder","behavior","refOffsets","overlapsRef","overflowsLeft","overflowsRight","overflowsTop","overflowsBottom","overflowsBoundaries","flippedVariationByRef","flipVariations","flippedVariationByContent","flipVariationsByContent","flippedVariation","getOppositeVariation","subtractLength","hide","bound","computeStyle","legacyGpuAccelerationOption","gpuAcceleration","offsetParentRect","shouldRound","noRound","referenceWidth","popperWidth","isVariation","horizontalToInteger","verticalToInteger","getRoundedOffsets","devicePixelRatio","prefixedProperty","willChange","invertTop","invertLeft","x-placement","arrowStyles","applyStyle","onLoad","modifierOptions","Popper","requestAnimationFrame","update","isDestroyed","isCreated","jquery","enableEventListeners","Utils","global","PopperUtils","idCounter","mouseMoveListeners","createTippy","collectionProps","lastTriggerEventType","showTimeout","hideTimeout","scheduleHideAnimationFrame","currentMountCallback","currentTransitionEndListener","isBeingDestroyed","hasMountCallbackRun","didHideDueToDocumentMouseDown","listeners","debouncedOnMouseMove","onMouseMove","popperChildren","currentPlacement","isScheduledToShow","isEnabled","isMounted","isShown","popperInstance","clearDelayTimeouts","setProps","partialProps","removeTriggersFromEventListenersTarget","addTriggersToEventListenersTarget","cleanupInteractiveMouseListeners","destroy","createPopperInstance","show","shouldPreventPopperTransition","isAlreadyVisible","isDisabled","isTouchAndTouchDisabled","getEventListenersTarget","hasAttribute","addDocumentMouseDownListener","visibility","transitionableElements","getTransitionableElements","transitionDelay","prevRefRect","updatePosition","currentRefRect","makeSticky","onTransitionEnd","onTransitionedIn","mount","isAlreadyHidden","removeDocumentMouseDownListener","onTransitionedOut","enable","disable","scheduleShow","getNormalizedTouchSettings","getIsCustomTouchBehavior","scheduleHide","onDocumentMouseDown","eventType","onMouseLeave","onBlur","isEventListenerStopped","MouseEvent","_getNormalizedTouchSe","closestCallback","popperPlacement","clientX","clientY","exceedsTop","exceedsBottom","exceedsLeft","exceedsRight","isCursorOutsideInteractiveBorder","relatedTarget","supportsTouch","isTouchEvent","isCustomTouch","preventOverflowModifier","applyMutations","isVerticalPlacement","isSecondaryPlacement","tooltipStyles","config","tippySetPreventOverflowPadding","paddingObject","computedPadding","runMountCallback","reflow","tippy","targets","optionalProps","capture","instances","NodeList","querySelectorAll","setDefaultProps","hideAll","_temp","excludedReferenceOrInstance","exclude","isExcluded","textContent","head","firstStyleOrLinkTag","injectCSS","addHasTitleClass","_createClassModifier","classPrefix","_getDefaultPopperOptions","addShepherdClass","shepherd","normalizePrefix","parseAttachTo","attachTo","returnOpts","setupTooltip","Error","attachToOpts","attachToOptions","centeredStylePopperModifier","_getCenteredStylePopperModifier","defaultPopperOptions","tippyOptions","title","finalPopperOptions","_makeCenteredTippy","_makeAttachedTippyOptions","_makeTippyInstance","ShepherdButton","classes","text","button","onClick","tabindex","ShepherdFooter","buttons","footer","_addButtons","ShepherdHeader","cancelStep","labelId","showCancelLink","header","_addTitle","_addCancelLink","preventDefault","cancel","ShepherdText","descriptionId","ShepherdContent","_addShepherdText","_addShepherdFooter","ShepherdElement","handleKeyDown","focusableElements","firstFocusableElement","lastFocusableElement","dataStepId","onKeyDown","keyCode","shiftKey","focus","back","matchesSelector","msMatchesSelector","webkitMatchesSelector","polyfill","__forceSmoothScrollPolyfill__","SCROLL_TIME","original","scroll","scrollTo","scrollBy","elementScroll","scrollIntoView","Date","ROUNDING_TOLERANCE","RegExp","join","shouldBailOut","smoothScroll","scrollX","pageXOffset","scrollY","pageYOffset","SyntaxError","scrollableParent","findScrollableParent","parentRects","clientRects","firstArg","hasScrollableSpace","scrollHeight","scrollWidth","canOverflow","overflowValue","isScrollable","isScrollableY","isScrollableX","currentX","currentY","k","elapsed","startTime","cos","PI","startX","startY","method","scrollable","smoothscroll","uniqueId","Step","_setOptions","complete","_updateStepTargetOnHide","getTour","modal","Boolean","beforeShowPromise","_show","_createTooltipContent","_scrollTo","scrollToOptions","scrollToHandler","when","_this3","_setupElements","setupForStep","_styleTargetElementForStep","_this4","currentElement","shepherdModalTarget","targetElement","highlightClass","canClickTarget","pointerEvents","exports","r","o","from","l","u","allowTouchMove","touches","paddingRight","disableBodyScroll","ontouchstart","targetTouches","ontouchmove","stopPropagation","reserveScrollBarGap","clearAllBodyScrollLocks","enableBodyScroll","defaults","_getPrototypeOf","setPrototypeOf","getPrototypeOf","__proto__","_setPrototypeOf","_construct","Parent","Class","Reflect","construct","sham","Proxy","isNativeReflectConstruct","_wrapNativeSuper","_cache","Map","has","Wrapper","PolishedError","_Error","subClass","superClass","code","ReferenceError","_assertThisInitialized","colorToInt","color","convertToInt","red","green","blue","hslToRgb","hue","saturation","lightness","convert","huePrime","chroma","abs","secondComponent","lightnessModification","namedColorMap","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","hexRegex","hexRgbaRegex","reducedHexRegex","reducedRgbaHexRegex","rgbRegex","rgbaRegex","hslRegex","hslaRegex","parseToRgb","normalizedColor","normalizedColorName","nameToHex","alpha","toFixed","_alpha","rgbMatched","exec","rgbaMatched","hslMatched","rgbColorString","hslRgbMatched","hslaMatched","_rgbColorString","_hslRgbMatched","parseToHsl","delta","rgbToHsl","reduceHexValue","numberToHex","hex","colorToHex","convertToHex","hslToHex","rgb","rgba","firstValue","secondValue","thirdValue","fourthValue","rgbValue","isRgb","isRgba","isHsl","isHsla","toColorString","hsla","hsl","curry","curried","combined","guard","lowerBoundary","upperBoundary","darken","amount","hslColor","curriedDarken","desaturate","curriedDesaturate","getLuminance","rgbColor","_Object$keys$map","channel","pow","g","lighten","curriedLighten","readableColor","lightReturnColor","darkReturnColor","transparentize","parsedColor","curriedTransparentize","arrowSize","shepherdButtonBorderRadius","shepherdElementBorderRadius","shepherdElementMaxHeight","shepherdElementMaxWidth","shepherdElementZIndex","shepherdTextBackground","shepherdTextLineHeight","shepherdTextFontSize","shepherdThemePrimary","getVariables","styleVariables","shepherdHeaderBackground","shepherdThemeSecondary","shepherdThemeTextPrimary","shepherdThemeTextSecondary","shepherdThemeTextHeader","shepherdThemeTextColor","_setTextColors","firstSource","to","nextSource","keysArray","nextIndex","nextKey","getOwnPropertyDescriptor","KEBAB_REGEX","prefixProperties","newStyle","requiredPrefixes","capitalizedProperty","_capitalizeString2","default","styleProperty","_capitalizeString","__esModule","plugins","metaData","processedValue","addIfNew","list","values","prefixMap","prefixAll","_isObject2","combinedValue","_prefixValue2","_addNewValuesOnly2","_processedValue","_prefixProperty2","_interopRequireDefault","_prefixProperty","_prefixValue","_addNewValuesOnly","_isObject","wms","appearance","textEmphasisPosition","textEmphasis","textEmphasisStyle","textEmphasisColor","boxDecorationBreak","maskImage","maskMode","maskRepeat","maskPosition","maskClip","maskOrigin","maskSize","maskComposite","mask","maskBorderSource","maskBorderMode","maskBorderSlice","maskBorderWidth","maskBorderOutset","maskBorderRepeat","maskBorder","maskType","textDecorationStyle","textDecorationSkip","textDecorationLine","textDecorationColor","userSelect","backdropFilter","fontKerning","scrollSnapType","scrollSnapPointsX","scrollSnapPointsY","scrollSnapDestination","scrollSnapCoordinate","clipPath","shapeImageThreshold","shapeImageMargin","shapeImageOutside","hyphens","flowInto","flowFrom","breakBefore","breakAfter","breakInside","regionFragment","writingMode","textOrientation","tabSize","fontFeatureSettings","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columns","columnSpan","columnWidth","wrapFlow","wrapThrough","wrapMargin","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridTemplate","gridAutoColumns","gridAutoRows","gridAutoFlow","grid","gridRowStart","gridColumnStart","gridRowEnd","gridRow","gridColumn","gridColumnEnd","gridColumnGap","gridRowGap","gridArea","gridGap","textSizeAdjust","zoom-in","zoom-out","grab","grabbing","regex","_isPrefixedValue2","_isPrefixedValue","flex","inline-flex","WebkitBoxOrient","WebkitBoxDirection","alternativeProps","alternativeValues","space-around","space-between","flex-start","flex-end","wrap-reverse","wrap","alignItems","justifyContent","flexWrap","flexGrow","grad","properties","maxHeight","minWidth","minHeight","min-content","max-content","fill-available","fit-content","contain-floats","uppercasePattern","msPattern","cache","toHyphenLower","hName","_hyphenateStyleName2","_hyphenateStyleName","propertyPrefixMap","outputValue","multipleValues","singleValue","dashCaseProperty","_hyphenateProperty2","pLen","unshift","prefixMapping","prefixValue","webkitOutput","mozOutput","_hyphenateProperty","transition","transitionProperty","WebkitTransition","WebkitTransitionProperty","MozTransition","MozTransitionProperty","Webkit","Moz","_createPrefixer2","_createPrefixer","_staticData2","_staticData","_cursor2","_cursor","_crossFade2","_crossFade","_filter2","_filter","_flex2","_flex","_flexboxOld2","_flexboxOld","_gradient2","_gradient","_imageSet2","_imageSet","_position2","_position","_sizing2","_sizing","_transition2","_transition","CAMEL_REGEX","matchCallback","nano","renderer","raw","pfx","client","stringify","kebab","decl","charCodeAt","putRaw","rawCssRule","sh","sheet","insertRule","cssRules","put","decls","atrule","postponed","putAt","rule","parentSelectors","sel","replacedSelector","parents","selectors","len1","len2","origPut","camel","propPrefixed","returned","newPut","indexed","sp","bareSelect","ph","block","onElementModifier","elementModifier","classNames","getLighterOrDarker","generateStyles","variables","tippyPrefix","tippyClassPrefix","active","background","borderRadius","border","cursor","display","fontFamily","fontSize","letterSpacing","lineHeight","textTransform","verticalAlign","buttonStyles","outline","contentStyles","boxSizing","borderBottomLeftRadius","borderBottomRightRadius","footerStyles","fontWeight","margin","textDecoration","borderTopLeftRadius","borderTopRightRadius","headerStyles","opacity","borderBottom","borderBottomColor","borderBottomStyle","textStyles","useDropShadow","arrowMargin","popperThemeArrows","borderTopColor","borderLeftColor","borderRightColor","backgroundColor","textAlign","ShepherdModal","_onScreenChange","closeModalOpening","onTouchMove","_preventModalOverlayTouch","fill","openingProperties","_cleanupStepEventListeners","positionModalOpening","modalOverlayOpeningPadding","useModalOverlay","_styleForStep","_addStepEventListeners","_preventModalBodyTouch","func","wait","immediate","later","callNow","Shepherd","Tour","steps","opts","existingModal","modalContainer","_setTooltipDefaults","_setTourID","addStep","_setupStep","currentStep","confirmCancel","cancelMessage","confirmCancelMessage","confirm","_done","getById","getCurrentStep","isActive","activeTour","removeStep","forward","_updateStateBeforeShow","showOn","_skipStep","previous","disableScroll","bodyScrollLock","focusedElBeforeOpen","_setupActiveTour","stepElement","_removeBodyAttrs","_addBodyAttrs","stepOptions","defaultStepOptions","tooltipDefaults","tourName","uuid"],"mappings":";;umBAEA,IAAIA,EAAa,CAAEC,QAAQ,EAAMC,QAAQ,KCFxB,WAChB,GAAIC,KAAM,OAAOA,KAOjBC,OAAOC,eAAeD,OAAOE,UAAW,aAAc,CACrDC,IAAK,WAAc,OAAOJ,MAC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