Your IP : 216.73.217.142


Current Path : /home/u4uwebca/public_html/4uweb.design/media/plg_system_guidedtours/js/
Upload File :
Current File : /home/u4uwebca/public_html/4uweb.design/media/plg_system_guidedtours/js/guidedtours-es5.min.js

!function(){"use strict";function t(){t=function(){return e};var e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof d?e:d,s=Object.create(i.prototype),a=new _(r||[]);return o(s,"_invoke",{value:S(t,n,a)}),s}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p={};function d(){}function h(){}function v(){}var m={};u(m,s,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(O([])));y&&y!==n&&r.call(y,s)&&(m=y);var b=v.prototype=d.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,i,s,a){var c=f(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):e.resolve(l).then((function(t){u.value=t,s(u)}),(function(t){return n("throw",t,s,a)}))}a(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=E(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function $(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function O(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return h.prototype=v,o(b,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},x(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},x(b),u(b,c,"Generator"),u(b,s,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return s.type="throw",s.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function e(t,e,n,r,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function n(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var s=t.apply(n,r);function a(t){e(s,o,i,a,c,"next",t)}function c(t){e(s,o,i,a,c,"throw",t)}a(void 0)}))}}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=r.key,i=void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"))?i:String(i)),r)}var o,i}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,s(t,e)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var c=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===u}(t)}(t)};var u="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(t,e){return!1!==e.clone&&e.isMergeableObject(t)?v((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function f(t,e,n){return t.concat(e).map((function(t){return l(t,n)}))}function p(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function d(t,e){try{return e in t}catch(t){return!1}}function h(t,e,n){var r={};return n.isMergeableObject(t)&&p(t).forEach((function(e){r[e]=l(t[e],n)})),p(e).forEach((function(o){(function(t,e){return d(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(d(t,o)&&n.isMergeableObject(e[o])?r[o]=function(t,e){if(!e.customMerge)return v;var n=e.customMerge(t);return"function"==typeof n?n:v}(o,n)(t[o],e[o],n):r[o]=l(e[o],n))})),r}function v(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||f,n.isMergeableObject=n.isMergeableObject||c,n.cloneUnlessOtherwiseSpecified=l;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):h(t,e,n):l(e,n)}v.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return v(t,n,e)}),{})};var m=v;function g(t){return t instanceof HTMLElement}function y(t){return"function"==typeof t}function b(t){return"string"==typeof t}function x(t){return void 0===t}var w=function(){function t(){}var e=t.prototype;return e.on=function(t,e,n,r){return void 0===r&&(r=!1),x(this.bindings)&&(this.bindings={}),x(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:r}),this},e.once=function(t,e,n){return this.on(t,e,n,!0)},e.off=function(t,e){var n=this;return x(this.bindings)||x(this.bindings[t])||(x(e)?delete this.bindings[t]:this.bindings[t].forEach((function(r,o){r.handler===e&&n.bindings[t].splice(o,1)}))),this},e.trigger=function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return!x(this.bindings)&&this.bindings[t]&&this.bindings[t].forEach((function(n,o){var i=n.ctx,s=n.handler,a=n.once,c=i||e;s.apply(c,r),a&&e.bindings[t].splice(o,1)})),this},t}();function S(t){for(var e=Object.getOwnPropertyNames(t.constructor.prototype),n=0;n<e.length;n++){var r=e[n],o=t[r];"constructor"!==r&&"function"==typeof o&&(t[r]=o.bind(t))}return t}function E(t){var e=t.options.advanceOn||{},n=e.event,r=e.selector;if(!n)return console.error("advanceOn was defined, but no event name was passed.");var o,i=function(t,e){return function(n){if(e.isOpen()){var r=e.el&&n.currentTarget===e.el;(!x(t)&&n.currentTarget.matches(t)||r)&&e.tour.next()}}}(r,t);try{o=document.querySelector(r)}catch(t){}if(!x(r)&&!o)return console.error("No element was found for the selector supplied to advanceOn: "+r);o?(o.addEventListener(n,i),t.on("destroy",(function(){return o.removeEventListener(n,i)}))):(document.body.addEventListener(n,i,!0),t.on("destroy",(function(){return document.body.removeEventListener(n,i,!0)})))}function $(t){return b(t)&&""!==t?"-"!==t.charAt(t.length-1)?t+"-":t:""}function T(t){return null==t||(!t.element||!t.on)}function _(){var t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)}))}function O(){return O=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},O.apply(this,arguments)}function L(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}var I=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"],k=["mainAxis","crossAxis","limiter"];function A(t){return t.split("-")[0]}function P(t){return t.split("-")[1]}function j(t){return["top","bottom"].includes(A(t))?"x":"y"}function C(t){return"y"===t?"height":"width"}function R(t,e,n){var r,o=t.reference,i=t.floating,s=o.x+o.width/2-i.width/2,a=o.y+o.height/2-i.height/2,c=j(e),u=C(c),l=o[u]/2-i[u]/2,f="x"===c;switch(A(e)){case"top":r={x:s,y:o.y-i.height};break;case"bottom":r={x:s,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:a};break;case"left":r={x:o.x-i.width,y:a};break;default:r={x:o.x,y:o.y}}switch(P(e)){case"start":r[c]-=l*(n&&f?-1:1);break;case"end":r[c]+=l*(n&&f?-1:1)}return r}var M=function(){var e=n(t().mark((function e(n,r,o){var i,s,a,c,u,l,f,p,d,h,v,m,g,y,b,x,w,S,E,$,T,_,L,I,k,A,P;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=o.placement,s=void 0===i?"bottom":i,a=o.strategy,c=void 0===a?"absolute":a,u=o.middleware,l=void 0===u?[]:u,f=o.platform,p=l.filter(Boolean),t.next=4,null==f.isRTL?void 0:f.isRTL(r);case 4:return d=t.sent,t.next=7,f.getElementRects({reference:n,floating:r,strategy:c});case 7:h=t.sent,v=R(h,s,d),m=v.x,g=v.y,y=s,b={},x=0,w=0;case 13:if(!(w<p.length)){t.next=46;break}return E=p[w],$=E.name,T=E.fn,t.next=17,T({x:m,y:g,initialPlacement:s,placement:y,strategy:c,middlewareData:b,rects:h,platform:f,elements:{reference:n,floating:r}});case 17:if(_=t.sent,L=_.x,I=_.y,k=_.data,A=_.reset,m=null!=L?L:m,g=null!=I?I:g,b=O({},b,((S={})[$]=O({},b[$],k),S)),!(A&&x<=50)){t.next=43;break}if(x++,"object"!=typeof A){t.next=41;break}if(A.placement&&(y=A.placement),!A.rects){t.next=38;break}if(!0!==A.rects){t.next=36;break}return t.next=33,f.getElementRects({reference:n,floating:r,strategy:c});case 33:t.t0=t.sent,t.next=37;break;case 36:t.t0=A.rects;case 37:h=t.t0;case 38:P=R(h,y,d),m=P.x,g=P.y;case 41:return w=-1,t.abrupt("continue",43);case 43:w++,t.next=13;break;case 46:return t.abrupt("return",{x:m,y:g,placement:y,strategy:c,middlewareData:b});case 47:case"end":return t.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();function D(t){return"number"!=typeof t?function(t){return O({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function N(t){return O({},t,{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function F(t,e){return H.apply(this,arguments)}function H(){return H=n(t().mark((function e(n,r){var o,i,s,a,c,u,l,f,p,d,h,v,m,g,y,b,x,w,S,E,$,T,_,L,I;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===r&&(r={}),i=n.x,s=n.y,a=n.platform,c=n.rects,u=n.elements,l=n.strategy,p=(f=r).boundary,d=void 0===p?"clippingAncestors":p,h=f.rootBoundary,v=void 0===h?"viewport":h,m=f.elementContext,g=void 0===m?"floating":m,y=f.altBoundary,b=void 0!==y&&y,x=f.padding,w=D(void 0===x?0:x),S="floating"===g?"reference":"floating",E=u[b?S:g],t.t0=N,t.t1=a,t.next=10,null==a.isElement?void 0:a.isElement(E);case 10:if(t.t2=o=t.sent,null==t.t2){t.next=15;break}t.t3=o,t.next=16;break;case 15:t.t3=!0;case 16:if(!t.t3){t.next=20;break}t.t4=E,t.next=26;break;case 20:if(t.t5=E.contextElement,t.t5){t.next=25;break}return t.next=24,null==a.getDocumentElement?void 0:a.getDocumentElement(u.floating);case 24:t.t5=t.sent;case 25:t.t4=t.t5;case 26:return t.t6=t.t4,t.t7=d,t.t8=v,t.t9=l,t.t10={element:t.t6,boundary:t.t7,rootBoundary:t.t8,strategy:t.t9},t.next=33,t.t1.getClippingRect.call(t.t1,t.t10);case 33:return t.t11=t.sent,$=(0,t.t0)(t.t11),T="floating"===g?O({},c.floating,{x:i,y:s}):c.reference,t.next=38,null==a.getOffsetParent?void 0:a.getOffsetParent(u.floating);case 38:return _=t.sent,t.next=41,null==a.isElement?void 0:a.isElement(_);case 41:if(!t.sent){t.next=50;break}return t.next=44,null==a.getScale?void 0:a.getScale(_);case 44:if(t.t13=t.sent,t.t13){t.next=47;break}t.t13={x:1,y:1};case 47:t.t12=t.t13,t.next=51;break;case 50:t.t12={x:1,y:1};case 51:if(L=t.t12,t.t14=N,!a.convertOffsetParentRelativeRectToViewportRelativeRect){t.next=59;break}return t.next=56,a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:_,strategy:l});case 56:t.t15=t.sent,t.next=60;break;case 59:t.t15=T;case 60:return t.t16=t.t15,I=(0,t.t14)(t.t16),t.abrupt("return",{top:($.top-I.top+w.top)/L.y,bottom:(I.bottom-$.bottom+w.bottom)/L.y,left:($.left-I.left+w.left)/L.x,right:(I.right-$.right+w.right)/L.x});case 63:case"end":return t.stop()}}),e)}))),H.apply(this,arguments)}var U=Math.min,q=Math.max;function B(t,e,n){return q(t,U(e,n))}var G=function(e){return{name:"arrow",options:e,fn:function(r){return n(t().mark((function n(){var o,i,s,a,c,u,l,f,p,d,h,v,m,g,y,b,x,w,S,E,$,T,_,O,L,I,k,A,R,M,N;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=(s=null!=e?e:{}).element,c=s.padding,u=void 0===c?0:c,l=r.x,f=r.y,p=r.placement,d=r.rects,h=r.platform,null!=a){t.next=4;break}return t.abrupt("return",{});case 4:return v=D(u),m={x:l,y:f},g=j(p),y=P(p),b=C(g),t.next=11,h.getDimensions(a);case 11:return x=t.sent,w="y"===g?"top":"left",S="y"===g?"bottom":"right",E=d.reference[b]+d.reference[g]-m[g]-d.floating[b],$=m[g]-d.reference[g],t.next=18,null==h.getOffsetParent?void 0:h.getOffsetParent(a);case 18:return T=t.sent,0===(_=T?"y"===g?T.clientHeight||0:T.clientWidth||0:0)&&(_=d.floating[b]),O=E/2-$/2,L=v[w],I=_-x[b]-v[S],k=_/2-x[b]/2+O,A=B(L,k,I),R="start"===y?v[w]:v[S],M=R>0&&k!==A&&d.reference[b]<=d.floating[b],N=M?k<L?L-k:I-k:0,t.abrupt("return",((i={})[g]=m[g]-N,i.data=((o={})[g]=A,o.centerOffset=k-A,o),i));case 30:case"end":return t.stop()}}),n)})))()}}},J={left:"right",right:"left",bottom:"top",top:"bottom"};function V(t){return t.replace(/left|right|bottom|top/g,(function(t){return J[t]}))}function W(t,e,n){void 0===n&&(n=!1);var r=P(t),o=j(t),i=C(o),s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=V(s)),{main:s,cross:V(s)}}var Y={start:"end",end:"start"};function z(t){return t.replace(/start|end/g,(function(t){return Y[t]}))}function X(t){var e=V(t);return[z(t),e,z(e)]}var K=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:function(r){return n(t().mark((function n(){var o,i,s,a,c,u,l,f,p,d,h,v,m,g,y,b,x,w,S,E,$,T,_,O,k,P,j,C,R,M,D,N,H,U,q;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.placement,s=r.middlewareData,a=r.rects,c=r.initialPlacement,u=r.platform,l=r.elements,p=(f=e).mainAxis,d=void 0===p||p,h=f.crossAxis,v=void 0===h||h,m=f.fallbackPlacements,g=f.fallbackStrategy,y=void 0===g?"bestFit":g,b=f.flipAlignment,x=void 0===b||b,w=L(e,I),S=A(i),E=S===c,$=m||(E||!x?[V(c)]:X(c)),T=[c].concat($),t.next=8,F(r,w);case 8:if(_=t.sent,O=[],k=(null==(o=s.flip)?void 0:o.overflows)||[],d&&O.push(_[S]),!v){t.next=23;break}return t.t0=W,t.t1=i,t.t2=a,t.next=18,null==u.isRTL?void 0:u.isRTL(l.floating);case 18:t.t3=t.sent,P=(0,t.t0)(t.t1,t.t2,t.t3),j=P.main,C=P.cross,O.push(_[j],_[C]);case 23:if(k=[].concat(k,[{placement:i,overflows:O}]),O.every((function(t){return t<=0}))){t.next=40;break}if(D=(null!=(R=null==(M=s.flip)?void 0:M.index)?R:0)+1,!(N=T[D])){t.next=29;break}return t.abrupt("return",{data:{index:D,overflows:k},reset:{placement:N}});case 29:H="bottom",t.t4=y,t.next="bestFit"===t.t4?33:"initialPlacement"===t.t4?36:38;break;case 33:return q=null==(U=k.map((function(t){return[t,t.overflows.filter((function(t){return t>0})).reduce((function(t,e){return t+e}),0)]})).sort((function(t,e){return t[1]-e[1]}))[0])?void 0:U[0].placement,q&&(H=q),t.abrupt("break",38);case 36:return H=c,t.abrupt("break",38);case 38:if(i===H){t.next=40;break}return t.abrupt("return",{reset:{placement:H}});case 40:return t.abrupt("return",{});case 41:case"end":return t.stop()}}),n)})))()}}};function Z(t){return"x"===t?"y":"x"}var Q,tt=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:function(r){return n(t().mark((function n(){var o,i,s,a,c,u,l,f,p,d,h,v,m,g,y,b,x,w,S,E,$,T,_,I,P;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.x,s=r.y,a=r.placement,u=(c=e).mainAxis,l=void 0===u||u,f=c.crossAxis,p=void 0!==f&&f,d=c.limiter,h=void 0===d?{fn:function(t){return{x:t.x,y:t.y}}}:d,v=L(e,k),m={x:i,y:s},t.next=5,F(r,v);case 5:return g=t.sent,y=j(A(a)),b=Z(y),x=m[y],w=m[b],l&&(S="y"===y?"bottom":"right",E=x+g["y"===y?"top":"left"],$=x-g[S],x=B(E,x,$)),p&&(T="y"===b?"bottom":"right",_=w+g["y"===b?"top":"left"],I=w-g[T],w=B(_,w,I)),P=h.fn(O({},r,((o={})[y]=x,o[b]=w,o))),t.abrupt("return",O({},P,{data:{x:P.x-i,y:P.y-s}}));case 14:case"end":return t.stop()}}),n)})))()}}},et=function(t){return void 0===t&&(t={}),{options:t,fn:function(e){var n,r=e.x,o=e.y,i=e.placement,s=e.rects,a=e.middlewareData,c=t,u=c.offset,l=void 0===u?0:u,f=c.mainAxis,p=void 0===f||f,d=c.crossAxis,h=void 0===d||d,v={x:r,y:o},m=j(i),g=Z(m),y=v[m],b=v[g],x="function"==typeof l?l(e):l,w="number"==typeof x?{mainAxis:x,crossAxis:0}:O({mainAxis:0,crossAxis:0},x);if(p){var S="y"===m?"height":"width",E=s.reference[m]-s.floating[S]+w.mainAxis,$=s.reference[m]+s.reference[S]-w.mainAxis;y<E?y=E:y>$&&(y=$)}if(h){var T,_,L,I,k="y"===m?"width":"height",P=["top","left"].includes(A(i)),C=s.reference[g]-s.floating[k]+(P&&null!=(T=null==(_=a.offset)?void 0:_[g])?T:0)+(P?0:w.crossAxis),R=s.reference[g]+s.reference[k]+(P?0:null!=(L=null==(I=a.offset)?void 0:I[g])?L:0)-(P?w.crossAxis:0);b<C?b=C:b>R&&(b=R)}return(n={})[m]=y,n[g]=b,n}}};function nt(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function rt(t){return nt(t).getComputedStyle(t)}function ot(t){return ct(t)?(t.nodeName||"").toLowerCase():""}function it(){if(Q)return Q;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?Q=t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function st(t){return t instanceof nt(t).HTMLElement}function at(t){return t instanceof nt(t).Element}function ct(t){return t instanceof nt(t).Node}function ut(t){return"undefined"!=typeof ShadowRoot&&(t instanceof nt(t).ShadowRoot||t instanceof ShadowRoot)}function lt(t){var e=rt(t),n=e.overflow,r=e.overflowX,o=e.overflowY,i=e.display;return/auto|scroll|overlay|hidden/.test(n+o+r)&&!["inline","contents"].includes(i)}function ft(t){return["table","td","th"].includes(ot(t))}function pt(t){var e=/firefox/i.test(it()),n=rt(t),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((function(t){return n.willChange.includes(t)}))||["paint","layout","strict","content"].some((function(t){var e=n.contain;return null!=e&&e.includes(t)}))}function dt(){return!/^((?!chrome|android).)*safari/i.test(it())}function ht(t){return["html","body","#document"].includes(ot(t))}var vt={x:1,y:1};function mt(t){var e=!at(t)&&t.contextElement?t.contextElement:at(t)?t:null;if(!e)return vt;var n=e.getBoundingClientRect(),r=rt(e),o=n.width/parseFloat(r.width),i=n.height/parseFloat(r.height);return o&&Number.isFinite(o)||(o=1),i&&Number.isFinite(i)||(i=1),{x:o,y:i}}function gt(t,e,n,r){var o,i,s,a;void 0===e&&(e=!1),void 0===n&&(n=!1);var c=t.getBoundingClientRect(),u=vt;e&&(r?at(r)&&(u=mt(r)):u=mt(t));var l=at(t)?nt(t):window,f=!dt()&&n,p=(c.left+(f&&null!=(o=null==(i=l.visualViewport)?void 0:i.offsetLeft)?o:0))/u.x,d=(c.top+(f&&null!=(s=null==(a=l.visualViewport)?void 0:a.offsetTop)?s:0))/u.y,h=c.width/u.x,v=c.height/u.y;return{width:h,height:v,top:d,right:p+h,bottom:d+v,left:p,x:p,y:d}}function yt(t){return((ct(t)?t.ownerDocument:t.document)||window.document).documentElement}function bt(t){return at(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xt(t){return gt(yt(t)).left+bt(t).scrollLeft}function wt(t,e,n){var r=st(e),o=yt(e),i=gt(t,!0,"fixed"===n,e),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==ot(e)||lt(o))&&(s=bt(e)),st(e)){var c=gt(e,!0);a.x=c.x+e.clientLeft,a.y=c.y+e.clientTop}else o&&(a.x=xt(o));return{x:i.left+s.scrollLeft-a.x,y:i.top+s.scrollTop-a.y,width:i.width,height:i.height}}function St(t){if("html"===ot(t))return t;var e=t.assignedSlot||t.parentNode||(ut(t)?t.host:null)||yt(t);return ut(e)?e.host:e}function Et(t){return st(t)&&"fixed"!==rt(t).position?t.offsetParent:null}function $t(t){for(var e=nt(t),n=Et(t);n&&ft(n)&&"static"===rt(n).position;)n=Et(n);return n&&("html"===ot(n)||"body"===ot(n)&&"static"===rt(n).position&&!pt(n))?e:n||function(t){for(var e=St(t);st(e)&&!ht(e);){if(pt(e))return e;e=St(e)}return null}(t)||e}var Tt=Math.min,_t=Math.max;function Ot(t){var e=St(t);return ht(e)?t.ownerDocument.body:st(e)&&lt(e)?e:Ot(e)}function Lt(t,e){var n;void 0===e&&(e=[]);var r=Ot(t),o=r===(null==(n=t.ownerDocument)?void 0:n.body),i=nt(r);return o?e.concat(i,i.visualViewport||[],lt(r)?r:[]):e.concat(r,Lt(r))}function It(t,e,n){return"viewport"===e?N(function(t,e){var n=nt(t),r=yt(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var u=dt();(u||!u&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}(t,n)):at(e)?function(t,e){var n=gt(t,!0,"fixed"===e),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=st(t)?mt(t):{x:1,y:1},s=t.clientWidth*i.x,a=t.clientHeight*i.y,c=o*i.x,u=r*i.y;return{top:u,left:c,right:c+s,bottom:u+a,x:c,y:u,width:s,height:a}}(e,n):N(function(t){var e,n=yt(t),r=bt(t),o=null==(e=t.ownerDocument)?void 0:e.body,i=_t(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=_t(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+xt(t),c=-r.scrollTop;return"rtl"===rt(o||n).direction&&(a+=_t(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}(yt(t)))}var kt={getClippingRect:function(t){var e=t.element,n=t.boundary,r=t.rootBoundary,o=t.strategy,i="clippingAncestors"===n?function(t,e){var n=e.get(t);if(n)return n;for(var r=Lt(t).filter((function(t){return at(t)&&"body"!==ot(t)})),o=null,i="fixed"===rt(t).position,s=i?St(t):t;at(s)&&!ht(s);){var a=rt(s),c=pt(s);(i?c||o:c||"static"!==a.position||!o||!["absolute","fixed"].includes(o.position))?o=a:r=r.filter((function(t){return t!==s})),s=St(s)}return e.set(t,r),r}(e,this._c):[].concat(n),s=[].concat(i,[r]),a=s[0],c=s.reduce((function(t,n){var r=It(e,n,o);return t.top=_t(r.top,t.top),t.right=Tt(r.right,t.right),t.bottom=Tt(r.bottom,t.bottom),t.left=_t(r.left,t.left),t}),It(e,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var e=t.rect,n=t.offsetParent,r=t.strategy,o=st(n),i=yt(n);if(n===i)return e;var s={scrollLeft:0,scrollTop:0},a={x:1,y:1},c={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==ot(n)||lt(i))&&(s=bt(n)),st(n))){var u=gt(n);a=mt(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+c.x,y:e.y*a.y-s.scrollTop*a.y+c.y}},isElement:at,getDimensions:function(t){if(st(t))return{width:t.offsetWidth,height:t.offsetHeight};var e=gt(t);return{width:e.width,height:e.height}},getOffsetParent:$t,getDocumentElement:yt,getScale:mt,getElementRects:function(e){var r=this;return n(t().mark((function n(){var o,i,s,a,c;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.reference,i=e.floating,s=e.strategy,a=r.getOffsetParent||$t,c=r.getDimensions,t.t0=wt,t.t1=o,t.next=7,a(i);case 7:return t.t2=t.sent,t.t3=s,t.t4=(0,t.t0)(t.t1,t.t2,t.t3),t.t5=O,t.t6={x:0,y:0},t.next=14,c(i);case 14:return t.t7=t.sent,t.t8=(0,t.t5)(t.t6,t.t7),t.abrupt("return",{reference:t.t4,floating:t.t8});case 17:case"end":return t.stop()}}),n)})))()},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===rt(t).direction}};var At,Pt=function(t,e,n){var r=new Map,o=O({platform:kt},n),i=O({},o.platform,{_c:r});return M(t,e,O({},o,{platform:i}))};function jt(t){t.cleanup&&t.cleanup();var e=t._getResolvedAttachToOptions(),n=e.element,r=function(t,e){var n={strategy:"absolute",middleware:[]},r=function(t){if(t.options.arrow&&t.el)return t.el.querySelector(".shepherd-arrow");return!1}(e),o=T(t);o||(n.middleware.push(K(),tt({limiter:et(),crossAxis:!0})),r&&n.middleware.push(G({element:r})),n.placement=t.on);return m(e.options.floatingUIOptions||{},n)}(e,t),o=T(e);o&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered"));return t.cleanup=function(t,e,n,r){void 0===r&&(r={});var o=r,i=o.ancestorScroll,s=void 0===i||i,a=o.ancestorResize,c=void 0===a||a,u=o.elementResize,l=void 0===u||u,f=o.animationFrame,p=void 0!==f&&f,d=s&&!p,h=d||c?[].concat(at(t)?Lt(t):t.contextElement?Lt(t.contextElement):[],Lt(e)):[];h.forEach((function(t){d&&t.addEventListener("scroll",n,{passive:!0}),c&&t.addEventListener("resize",n)}));var v,m=null;if(l){var g=!0;m=new ResizeObserver((function(){g||n(),g=!1})),at(t)&&!p&&m.observe(t),at(t)||!t.contextElement||p||m.observe(t.contextElement),m.observe(e)}var y=p?gt(t):null;return p&&function e(){var r=gt(t);!y||r.x===y.x&&r.y===y.y&&r.width===y.width&&r.height===y.height||n(),y=r,v=requestAnimationFrame(e)}(),n(),function(){var t;h.forEach((function(t){d&&t.removeEventListener("scroll",n),c&&t.removeEventListener("resize",n)})),null==(t=m)||t.disconnect(),m=null,p&&cancelAnimationFrame(v)}}(n,t.el,(function(){t.el?function(t,e,n,r){Pt(t,e.el,n).then(function(t,e){return function(n){var r=n.x,o=n.y,i=n.placement,s=n.middlewareData;return t.el?(e?Object.assign(t.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(t.el.style,{position:"absolute",left:r+"px",top:o+"px"}),t.el.dataset.popperPlacement=i,function(t,e){var n=t.querySelector(".shepherd-arrow");if(n){var r,o,i,s;if(e.arrow){var a=e.arrow,c=a.x,u=a.y;r=null!=c?c+"px":"",o=null!=u?u+"px":""}Object.assign(n.style,{left:r,top:o,right:i,bottom:s})}}(t.el,s),t):t}}(e,r)).then((function(t){return new Promise((function(e){setTimeout((function(){return e(t)}),300)}))})).then((function(t){t&&t.el&&t.el.focus({preventScroll:!0})}))}(n,t,r,o):t.cleanup()})),t.target=e.element,r}function Ct(){}function Rt(t,e){for(var n in e)t[n]=e[n];return t}function Mt(t){return t()}function Dt(){return Object.create(null)}function Nt(t){t.forEach(Mt)}function Ft(t){return"function"==typeof t}function Ht(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function Ut(t,e){t.appendChild(e)}function qt(t,e,n){t.insertBefore(e,n||null)}function Bt(t){t.parentNode&&t.parentNode.removeChild(t)}function Gt(t){return document.createElement(t)}function Jt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Vt(t){return document.createTextNode(t)}function Wt(){return Vt(" ")}function Yt(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function zt(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Xt(t,e){var n=Object.getOwnPropertyDescriptors(t.__proto__);for(var r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set?t[r]=e[r]:zt(t,r,e[r])}function Kt(t,e,n){t.classList[n?"add":"remove"](e)}function Zt(t){At=t}function Qt(){if(!At)throw new Error("Function called outside component initialization");return At}function te(t){Qt().$$.after_update.push(t)}var ee=[],ne=[],re=[],oe=[],ie=Promise.resolve(),se=!1;function ae(t){re.push(t)}var ce=new Set,ue=0;function le(){var t=At;do{for(;ue<ee.length;){var e=ee[ue];ue++,Zt(e),fe(e.$$)}for(Zt(null),ee.length=0,ue=0;ne.length;)ne.pop()();for(var n=0;n<re.length;n+=1){var r=re[n];ce.has(r)||(ce.add(r),r())}re.length=0}while(ee.length);for(;oe.length;)oe.pop()();se=!1,ce.clear(),Zt(t)}function fe(t){if(null!==t.fragment){t.update(),Nt(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ae)}}var pe,de=new Set;function he(){pe={r:0,c:[],p:pe}}function ve(){pe.r||Nt(pe.c),pe=pe.p}function me(t,e){t&&t.i&&(de.delete(t),t.i(e))}function ge(t,e,n,r){if(t&&t.o){if(de.has(t))return;de.add(t),pe.c.push((function(){de.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}function ye(t){t&&t.c()}function be(t,e,n,r){var o=t.$$,i=o.fragment,s=o.after_update;i&&i.m(e,n),r||ae((function(){var e,n=t.$$.on_mount.map(Mt).filter(Ft);t.$$.on_destroy?(e=t.$$.on_destroy).push.apply(e,n):Nt(n);t.$$.on_mount=[]})),s.forEach(ae)}function xe(t,e){var n=t.$$;null!==n.fragment&&(Nt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function we(t,e){-1===t.$$.dirty[0]&&(ee.push(t),se||(se=!0,ie.then(le)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Se(t,e,n,r,o,i,s,a){void 0===a&&(a=[-1]);var c=At;Zt(t);var u=t.$$={fragment:null,ctx:[],props:i,update:Ct,not_equal:o,bound:Dt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Dt(),dirty:a,skip_bound:!1,root:e.target||c.$$.root};s&&s(u.root);var l=!1;if(u.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),l&&we(t,e)),n})):[],u.update(),l=!0,Nt(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){var f=function(t){return Array.from(t.childNodes)}(e.target);u.fragment&&u.fragment.l(f),f.forEach(Bt)}else u.fragment&&u.fragment.c();e.intro&&me(t.$$.fragment),be(t,e.target,e.anchor,e.customElement),le()}Zt(c)}var Ee=function(){function t(){}var e=t.prototype;return e.$destroy=function(){xe(this,1),this.$destroy=Ct},e.$on=function(t,e){if(!Ft(e))return Ct;var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}},e.$set=function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)},t}();function $e(t){var e,n,r,o,i;return{c:function(){zt(e=Gt("button"),"aria-label",n=t[3]?t[3]:null),zt(e,"class",r=(t[1]||"")+" shepherd-button "+(t[4]?"shepherd-button-secondary":"")),e.disabled=t[2],zt(e,"tabindex","0")},m:function(n,r){qt(n,e,r),e.innerHTML=t[5],o||(i=Yt(e,"click",(function(){Ft(t[0])&&t[0].apply(this,arguments)})),o=!0)},p:function(o,i){var s=i[0];t=o,32&s&&(e.innerHTML=t[5]),8&s&&n!==(n=t[3]?t[3]:null)&&zt(e,"aria-label",n),18&s&&r!==(r=(t[1]||"")+" shepherd-button "+(t[4]?"shepherd-button-secondary":""))&&zt(e,"class",r),4&s&&(e.disabled=t[2])},i:Ct,o:Ct,d:function(t){t&&Bt(e),o=!1,i()}}}function Te(t,e,n){var r,o,i,s,a,c,u=e.config,l=e.step;function f(t){return y(t)?t.call(l):t}return t.$$set=function(t){"config"in t&&n(6,u=t.config),"step"in t&&n(7,l=t.step)},t.$$.update=function(){192&t.$$.dirty&&(n(0,r=u.action?u.action.bind(l.tour):null),n(1,o=u.classes),n(2,i=!!u.disabled&&f(u.disabled)),n(3,s=u.label?f(u.label):null),n(4,a=u.secondary),n(5,c=u.text?f(u.text):null))},[r,o,i,s,a,c,u,l]}var _e=function(t){function e(e){var n;return Se(a(n=t.call(this)||this),e,Te,$e,Ht,{config:6,step:7}),n}return i(e,t),e}(Ee);function Oe(t,e,n){var r=t.slice();return r[2]=e[n],r}function Le(t){for(var e,n,r=t[1],o=[],i=0;i<r.length;i+=1)o[i]=Ie(Oe(t,r,i));var s=function(t){return ge(o[t],1,1,(function(){o[t]=null}))};return{c:function(){for(var t=0;t<o.length;t+=1)o[t].c();e=Vt("")},m:function(t,r){for(var i=0;i<o.length;i+=1)o[i].m(t,r);qt(t,e,r),n=!0},p:function(t,n){if(3&n){var i;for(r=t[1],i=0;i<r.length;i+=1){var a=Oe(t,r,i);o[i]?(o[i].p(a,n),me(o[i],1)):(o[i]=Ie(a),o[i].c(),me(o[i],1),o[i].m(e.parentNode,e))}for(he(),i=r.length;i<o.length;i+=1)s(i);ve()}},i:function(t){if(!n){for(var e=0;e<r.length;e+=1)me(o[e]);n=!0}},o:function(t){o=o.filter(Boolean);for(var e=0;e<o.length;e+=1)ge(o[e]);n=!1},d:function(t){!function(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(o,t),t&&Bt(e)}}}function Ie(t){var e,n;return e=new _e({props:{config:t[2],step:t[0]}}),{c:function(){ye(e.$$.fragment)},m:function(t,r){be(e,t,r),n=!0},p:function(t,n){var r={};2&n&&(r.config=t[2]),1&n&&(r.step=t[0]),e.$set(r)},i:function(t){n||(me(e.$$.fragment,t),n=!0)},o:function(t){ge(e.$$.fragment,t),n=!1},d:function(t){xe(e,t)}}}function ke(t){var e,n,r=t[1]&&Le(t);return{c:function(){e=Gt("footer"),r&&r.c(),zt(e,"class","shepherd-footer")},m:function(t,o){qt(t,e,o),r&&r.m(e,null),n=!0},p:function(t,n){var o=n[0];t[1]?r?(r.p(t,o),2&o&&me(r,1)):((r=Le(t)).c(),me(r,1),r.m(e,null)):r&&(he(),ge(r,1,1,(function(){r=null})),ve())},i:function(t){n||(me(r),n=!0)},o:function(t){ge(r),n=!1},d:function(t){t&&Bt(e),r&&r.d()}}}function Ae(t,e,n){var r,o=e.step;return t.$$set=function(t){"step"in t&&n(0,o=t.step)},t.$$.update=function(){1&t.$$.dirty&&n(1,r=o.options.buttons)},[o,r]}var Pe=function(t){function e(e){var n;return Se(a(n=t.call(this)||this),e,Ae,ke,Ht,{step:0}),n}return i(e,t),e}(Ee);function je(t){var e,n,r,o,i;return{c:function(){e=Gt("button"),(n=Gt("span")).textContent="×",zt(n,"aria-hidden","true"),zt(e,"aria-label",r=t[0].label?t[0].label:"Close Tour"),zt(e,"class","shepherd-cancel-icon"),zt(e,"type","button")},m:function(r,s){qt(r,e,s),Ut(e,n),o||(i=Yt(e,"click",t[1]),o=!0)},p:function(t,n){1&n[0]&&r!==(r=t[0].label?t[0].label:"Close Tour")&&zt(e,"aria-label",r)},i:Ct,o:Ct,d:function(t){t&&Bt(e),o=!1,i()}}}function Ce(t,e,n){var r=e.cancelIcon,o=e.step;return t.$$set=function(t){"cancelIcon"in t&&n(0,r=t.cancelIcon),"step"in t&&n(2,o=t.step)},[r,function(t){t.preventDefault(),o.cancel()},o]}var Re=function(t){function e(e){var n;return Se(a(n=t.call(this)||this),e,Ce,je,Ht,{cancelIcon:0,step:2}),n}return i(e,t),e}(Ee);function Me(t){var e;return{c:function(){zt(e=Gt("h3"),"id",t[1]),zt(e,"class","shepherd-title")},m:function(n,r){qt(n,e,r),t[3](e)},p:function(t,n){2&n[0]&&zt(e,"id",t[1])},i:Ct,o:Ct,d:function(n){n&&Bt(e),t[3](null)}}}function De(t,e,n){var r=e.labelId,o=e.element,i=e.title;return te((function(){y(i)&&n(2,i=i()),n(0,o.innerHTML=i,o)})),t.$$set=function(t){"labelId"in t&&n(1,r=t.labelId),"element"in t&&n(0,o=t.element),"title"in t&&n(2,i=t.title)},[o,r,i,function(t){ne[t?"unshift":"push"]((function(){n(0,o=t)}))}]}var Ne=function(t){function e(e){var n;return Se(a(n=t.call(this)||this),e,De,Me,Ht,{labelId:1,element:0,title:2}),n}return i(e,t),e}(Ee);function Fe(t){var e,n;return e=new Ne({props:{labelId:t[0],title:t[2]}}),{c:function(){ye(e.$$.fragment)},m:function(t,r){be(e,t,r),n=!0},p:function(t,n){var r={};1&n&&(r.labelId=t[0]),4&n&&(r.title=t[2]),e.$set(r)},i:function(t){n||(me(e.$$.fragment,t),n=!0)},o:function(t){ge(e.$$.fragment,t),n=!1},d:function(t){xe(e,t)}}}function He(t){var e,n;return e=new Re({props:{cancelIcon:t[3],step:t[1]}}),{c:function(){ye(e.$$.fragment)},m:function(t,r){be(e,t,r),n=!0},p:function(t,n){var r={};8&n&&(r.cancelIcon=t[3]),2&n&&(r.step=t[1]),e.$set(r)},i:function(t){n||(me(e.$$.fragment,t),n=!0)},o:function(t){ge(e.$$.fragment,t),n=!1},d:function(t){xe(e,t)}}}function Ue(t){var e,n,r,o=t[2]&&Fe(t),i=t[3]&&t[3].enabled&&He(t);return{c:function(){e=Gt("header"),o&&o.c(),n=Wt(),i&&i.c(),zt(e,"class","shepherd-header")},m:function(t,s){qt(t,e,s),o&&o.m(e,null),Ut(e,n),i&&i.m(e,null),r=!0},p:function(t,r){var s=r[0];t[2]?o?(o.p(t,s),4&s&&me(o,1)):((o=Fe(t)).c(),me(o,1),o.m(e,n)):o&&(he(),ge(o,1,1,(function(){o=null})),ve()),t[3]&&t[3].enabled?i?(i.p(t,s),8&s&&me(i,1)):((i=He(t)).c(),me(i,1),i.m(e,null)):i&&(he(),ge(i,1,1,(function(){i=null})),ve())},i:function(t){r||(me(o),me(i),r=!0)},o:function(t){ge(o),ge(i),r=!1},d:function(t){t&&Bt(e),o&&o.d(),i&&i.d()}}}function qe(t,e,n){var r,o,i=e.labelId,s=e.step;return t.$$set=function(t){"labelId"in t&&n(0,i=t.labelId),"step"in t&&n(1,s=t.step)},t.$$.update=function(){2&t.$$.dirty&&(n(2,r=s.options.title),n(3,o=s.options.cancelIcon))},[i,s,r,o]}var Be=function(t){function e(e){var n;return Se(a(n=t.call(this)||this),e,qe,Ue,Ht,{labelId:0,step:1}),n}return i(e,t),e}(Ee);function Ge(t){var e;return{c:function(){zt(e=Gt("div"),"class","shepherd-text"),zt(e,"id",t[1])},m:function(n,r){qt(n,e,r),t[3](e)},p:function(t,n){2&n[0]&&zt(e,"id",t[1])},i:Ct,o:Ct,d:function(n){n&&Bt(e),t[3](null)}}}function Je(t,e,n){var r=e.descriptionId,o=e.element,i=e.step;return te((function(){var t=i.options.text;y(t)&&(t=t.call(i)),g(t)?o.appendChild(t):n(0,o.innerHTML=t,o)})),t.$$set=function(t){"descriptionId"in t&&n(1,r=t.descriptionId),"element"in t&&n(0,o=t.element),"step"in t&&n(2,i=t.step)},[o,r,i,function(t){ne[t?"unshift":"push"]((function(){n(0,o=t)}))}]}var Ve=function(t){function e(e){var n;return Se(a(n=t.call(this)||this),e,Je,Ge,Ht,{descriptionId:1,element:0,step:2}),n}return i(e,t),e}(Ee);function We(t){var e,n;return e=new Be({props:{labelId:t[1],step:t[2]}}),{c:function(){ye(e.$$.fragment)},m:function(t,r){be(e,t,r),n=!0},p:function(t,n){var r={};2&n&&(r.labelId=t[1]),4&n&&(r.step=t[2]),e.$set(r)},i:function(t){n||(me(e.$$.fragment,t),n=!0)},o:function(t){ge(e.$$.fragment,t),n=!1},d:function(t){xe(e,t)}}}function Ye(t){var e,n;return e=new Ve({props:{descriptionId:t[0],step:t[2]}}),{c:function(){ye(e.$$.fragment)},m:function(t,r){be(e,t,r),n=!0},p:function(t,n){var r={};1&n&&(r.descriptionId=t[0]),4&n&&(r.step=t[2]),e.$set(r)},i:function(t){n||(me(e.$$.fragment,t),n=!0)},o:function(t){ge(e.$$.fragment,t),n=!1},d:function(t){xe(e,t)}}}function ze(t){var e,n;return e=new Pe({props:{step:t[2]}}),{c:function(){ye(e.$$.fragment)},m:function(t,r){be(e,t,r),n=!0},p:function(t,n){var r={};4&n&&(r.step=t[2]),e.$set(r)},i:function(t){n||(me(e.$$.fragment,t),n=!0)},o:function(t){ge(e.$$.fragment,t),n=!1},d:function(t){xe(e,t)}}}function Xe(t){var e,n,r,o,i=!x(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,s=!x(t[2].options.text),a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,c=i&&We(t),u=s&&Ye(t),l=a&&ze(t);return{c:function(){e=Gt("div"),c&&c.c(),n=Wt(),u&&u.c(),r=Wt(),l&&l.c(),zt(e,"class","shepherd-content")},m:function(t,i){qt(t,e,i),c&&c.m(e,null),Ut(e,n),u&&u.m(e,null),Ut(e,r),l&&l.m(e,null),o=!0},p:function(t,o){var f=o[0];4&f&&(i=!x(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled),i?c?(c.p(t,f),4&f&&me(c,1)):((c=We(t)).c(),me(c,1),c.m(e,n)):c&&(he(),ge(c,1,1,(function(){c=null})),ve()),4&f&&(s=!x(t[2].options.text)),s?u?(u.p(t,f),4&f&&me(u,1)):((u=Ye(t)).c(),me(u,1),u.m(e,r)):u&&(he(),ge(u,1,1,(function(){u=null})),ve()),4&f&&(a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length),a?l?(l.p(t,f),4&f&&me(l,1)):((l=ze(t)).c(),me(l,1),l.m(e,null)):l&&(he(),ge(l,1,1,(function(){l=null})),ve())},i:function(t){o||(me(c),me(u),me(l),o=!0)},o:function(t){ge(c),ge(u),ge(l),o=!1},d:function(t){t&&Bt(e),c&&c.d(),u&&u.d(),l&&l.d()}}}function Ke(t,e,n){var r=e.descriptionId,o=e.labelId,i=e.step;return t.$$set=function(t){"descriptionId"in t&&n(0,r=t.descriptionId),"labelId"in t&&n(1,o=t.labelId),"step"in t&&n(2,i=t.step)},[r,o,i]}var Ze=function(t){function e(e){var n;return Se(a(n=t.call(this)||this),e,Ke,Xe,Ht,{descriptionId:0,labelId:1,step:2}),n}return i(e,t),e}(Ee);function Qe(t){var e;return{c:function(){zt(e=Gt("div"),"class","shepherd-arrow"),zt(e,"data-popper-arrow","")},m:function(t,n){qt(t,e,n)},d:function(t){t&&Bt(e)}}}function tn(t){var e,n,r,o,i,s,a,c,u=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&Qe();r=new Ze({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});for(var l=[{"aria-describedby":o=x(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],f={},p=0;p<l.length;p+=1)f=Rt(f,l[p]);return{c:function(){e=Gt("div"),u&&u.c(),n=Wt(),ye(r.$$.fragment),Xt(e,f),Kt(e,"shepherd-has-cancel-icon",t[5]),Kt(e,"shepherd-has-title",t[6]),Kt(e,"shepherd-element",!0)},m:function(o,i){qt(o,e,i),u&&u.m(e,null),Ut(e,n),be(r,e,null),t[13](e),s=!0,a||(c=Yt(e,"keydown",t[7]),a=!0)},p:function(t,a){var c=a[0];t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on?u||((u=Qe()).c(),u.m(e,n)):u&&(u.d(1),u=null);var p={};4&c&&(p.descriptionId=t[2]),8&c&&(p.labelId=t[3]),16&c&&(p.step=t[4]),r.$set(p),Xt(e,f=function(t,e){for(var n={},r={},o={$$scope:1},i=t.length;i--;){var s=t[i],a=e[i];if(a){for(var c in s)c in a||(r[c]=1);for(var u in a)o[u]||(n[u]=a[u],o[u]=1);t[i]=a}else for(var l in s)o[l]=1}for(var f in r)f in n||(n[f]=void 0);return n}(l,[(!s||20&c&&o!==(o=x(t[4].options.text)?null:t[2]))&&{"aria-describedby":o},(!s||24&c&&i!==(i=t[4].options.title?t[3]:null))&&{"aria-labelledby":i},2&c&&t[1],{role:"dialog"},{tabindex:"0"}])),Kt(e,"shepherd-has-cancel-icon",t[5]),Kt(e,"shepherd-has-title",t[6]),Kt(e,"shepherd-element",!0)},i:function(t){s||(me(r.$$.fragment,t),s=!0)},o:function(t){ge(r.$$.fragment,t),s=!1},d:function(n){n&&Bt(e),u&&u.d(),xe(r),t[13](null),a=!1,c()}}}var en=9,nn=27,rn=37,on=39;function sn(t){return t.split(" ").filter((function(t){return!!t.length}))}function an(t,e,n){var r,o,i,s,a=e.classPrefix,c=e.element,u=e.descriptionId,l=e.firstFocusableElement,f=e.focusableElements,p=e.labelId,d=e.lastFocusableElement,h=e.step,v=e.dataStepId;s=function(){var t;n(1,((t={})["data-"+a+"shepherd-step-id"]=h.id,v=t)),n(9,f=c.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,l=f[0]),n(10,d=f[f.length-1])},Qt().$$.on_mount.push(s),te((function(){i!==h.options.classes&&(function(t){if(b(t)){var e,n=sn(t);n.length&&(e=c.classList).remove.apply(e,n)}}(i),function(t){if(b(t)){var e,n=sn(t);n.length&&(e=c.classList).add.apply(e,n)}}(i=h.options.classes))}));return t.$$set=function(t){"classPrefix"in t&&n(11,a=t.classPrefix),"element"in t&&n(0,c=t.element),"descriptionId"in t&&n(2,u=t.descriptionId),"firstFocusableElement"in t&&n(8,l=t.firstFocusableElement),"focusableElements"in t&&n(9,f=t.focusableElements),"labelId"in t&&n(3,p=t.labelId),"lastFocusableElement"in t&&n(10,d=t.lastFocusableElement),"step"in t&&n(4,h=t.step),"dataStepId"in t&&n(1,v=t.dataStepId)},t.$$.update=function(){16&t.$$.dirty&&(n(5,r=h.options&&h.options.cancelIcon&&h.options.cancelIcon.enabled),n(6,o=h.options&&h.options.title))},[c,v,u,p,h,r,o,function(t){var e=h.tour;switch(t.keyCode){case en:if(0===f.length){t.preventDefault();break}t.shiftKey?(document.activeElement===l||document.activeElement.classList.contains("shepherd-element"))&&(t.preventDefault(),d.focus()):document.activeElement===d&&(t.preventDefault(),l.focus());break;case nn:e.options.exitOnEsc&&h.cancel();break;case rn:e.options.keyboardNavigation&&e.back();break;case on:e.options.keyboardNavigation&&e.next()}},l,f,d,a,function(){return c},function(t){ne[t?"unshift":"push"]((function(){n(0,c=t)}))}]}var cn=function(t){function e(e){var n;return Se(a(n=t.call(this)||this),e,an,tn,Ht,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12}),n}return i(e,t),o(e,[{key:"getElement",get:function(){return this.$$.ctx[12]}}]),e}(Ee),un=function(t){function e(e,n){var r;return void 0===n&&(n={}),(r=t.call(this,e,n)||this).tour=e,r.classPrefix=r.tour.options?$(r.tour.options.classPrefix):"",r.styles=e.styles,r._resolvedAttachTo=null,S(a(r)),r._setOptions(n),a(r)||a(r)}i(e,t);var n=e.prototype;return n.cancel=function(){this.tour.cancel(),this.trigger("cancel")},n.complete=function(){this.tour.complete(),this.trigger("complete")},n.destroy=function(){var t;(t=this).cleanup&&t.cleanup(),t.cleanup=null,g(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")},n.getTour=function(){return this.tour},n.hide=function(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")},n._resolveAttachToOptions=function(){return this._resolvedAttachTo=function(t){var e=t.options.attachTo||{},n=Object.assign({},e);if(y(n.element)&&(n.element=n.element.call(t)),b(n.element)){try{n.element=document.querySelector(n.element)}catch(t){}n.element||console.error("The element for this Shepherd step was not found "+e.element)}return n}(this),this._resolvedAttachTo},n._getResolvedAttachToOptions=function(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo},n.isOpen=function(){return Boolean(this.el&&!this.el.hidden)},n.show=function(){var t=this;return y(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then((function(){return t._show()})):Promise.resolve(this._show())},n.updateStepOptions=function(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})},n.getElement=function(){return this.el},n.getTarget=function(){return this.target},n._createTooltipContent=function(){var t=this.id+"-description",e=this.id+"-label";return this.shepherdElementComponent=new cn({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:e,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()},n._scrollTo=function(t){var e=this._getResolvedAttachToOptions().element;y(this.options.scrollToHandler)?this.options.scrollToHandler(e):e instanceof Element&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(t)},n._getClassOptions=function(t){var e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=t.classes?t.classes:"",r=e&&e.classes?e.classes:"",o=[].concat(n.split(" "),r.split(" ")),i=new Set(o);return Array.from(i).join(" ").trim()},n._setOptions=function(t){var e=this;void 0===t&&(t={});var n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=m({},n||{}),this.options=Object.assign({arrow:!0},n,t,function(t,e){return{floatingUIOptions:m(t.floatingUIOptions||{},e.floatingUIOptions||{})}}(n,t));var r=this.options.when;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||"step-"+_(),r&&Object.keys(r).forEach((function(t){e.on(t,r[t],e)}))},n._setupElements=function(){x(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&E(this),jt(this)},n._show=function(){var t=this;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout((function(){t._scrollTo(t.options.scrollTo)})),this.el.hidden=!1;var e=this.shepherdElementComponent.getElement(),n=this.target||document.body;n.classList.add(this.classPrefix+"shepherd-enabled"),n.classList.add(this.classPrefix+"shepherd-target"),e.classList.add("shepherd-enabled"),this.trigger("show")},n._styleTargetElementForStep=function(t){var e=t.target;e&&(t.options.highlightClass&&e.classList.add(t.options.highlightClass),e.classList.remove("shepherd-target-click-disabled"),!1===t.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))},n._updateStepTargetOnHide=function(){var t=this.target||document.body;this.options.highlightClass&&t.classList.remove(this.options.highlightClass),t.classList.remove("shepherd-target-click-disabled",this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target")},e}(w);function ln(t){var e,n,r,o,i;return{c:function(){e=Jt("svg"),zt(n=Jt("path"),"d",t[2]),zt(e,"class",r=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m:function(r,s){qt(r,e,s),Ut(e,n),t[11](e),o||(i=Yt(e,"touchmove",t[3]),o=!0)},p:function(t,o){var i=o[0];4&i&&zt(n,"d",t[2]),2&i&&r!==(r=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&zt(e,"class",r)},i:Ct,o:Ct,d:function(n){n&&Bt(e),t[11](null),o=!1,i()}}}function fn(t){if(!t)return null;var e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:fn(t.parentElement)}function pn(t,e,n){var r=e.element,o=e.openingProperties;_();var i,s=!1,a=void 0;c();function c(){n(4,o={width:0,height:0,x:0,y:0,r:0})}function u(){n(1,s=!1),d()}function l(t,e,r,i){if(void 0===t&&(t=0),void 0===e&&(e=0),i){var s=function(t,e){var n=t.getBoundingClientRect(),r=n.y||n.top,o=n.bottom||r+n.height;if(e){var i=e.getBoundingClientRect(),s=i.y||i.top,a=i.bottom||s+i.height;r=Math.max(r,s),o=Math.min(o,a)}return{y:r,height:Math.max(o-r,0)}}(i,r),a=s.y,u=s.height,l=i.getBoundingClientRect(),f=l.x,p=l.width,d=l.left;n(4,o={width:p+2*t,height:u+2*t,x:(f||d)-t,y:a-t,r:e})}else c()}function f(){n(1,s=!0)}var p=function(t){t.preventDefault()};function d(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",p,{passive:!1})}return t.$$set=function(t){"element"in t&&n(0,r=t.element),"openingProperties"in t&&n(4,o=t.openingProperties)},t.$$.update=function(){var e,r,s,a,c,u,l,f,p,d,h,v,m,g,y,b,x,w,S,E,$;16&t.$$.dirty&&n(2,(r=(e=o).width,s=e.height,a=e.x,c=void 0===a?0:a,u=e.y,l=void 0===u?0:u,f=e.r,p=void 0===f?0:f,d=window,h=d.innerWidth,v=d.innerHeight,g=(m="number"==typeof p?{topLeft:p,topRight:p,bottomRight:p,bottomLeft:p}:p).topLeft,y=void 0===g?0:g,b=m.topRight,x=void 0===b?0:b,w=m.bottomRight,S=void 0===w?0:w,E=m.bottomLeft,i="M"+h+","+v+"H0V0H"+h+"V"+v+"ZM"+(c+y)+","+l+"a"+y+","+y+",0,0,0-"+y+","+y+"V"+(s+l-($=void 0===E?0:E))+"a"+$+","+$+",0,0,0,"+$+","+$+"H"+(r+c-S)+"a"+S+","+S+",0,0,0,"+S+"-"+S+"V"+(l+x)+"a"+x+","+x+",0,0,0-"+x+"-"+x+"Z"))},[r,s,i,function(t){t.stopPropagation()},o,function(){return r},c,u,l,function(t){d(),t.tour.options.useModalOverlay?(!function(t){var e=t.options,n=e.modalOverlayOpeningPadding,r=e.modalOverlayOpeningRadius,o=fn(t.target),i=function e(){a=void 0,l(n,r,o,t.target),a=requestAnimationFrame(e)};i(),window.addEventListener("touchmove",p,{passive:!1})}(t),f()):u()},f,function(t){ne[t?"unshift":"push"]((function(){n(0,r=t)}))}]}var dn=function(t){function e(e){var n;return Se(a(n=t.call(this)||this),e,pn,ln,Ht,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10}),n}return i(e,t),o(e,[{key:"getElement",get:function(){return this.$$.ctx[5]}},{key:"closeModalOpening",get:function(){return this.$$.ctx[6]}},{key:"hide",get:function(){return this.$$.ctx[7]}},{key:"positionModal",get:function(){return this.$$.ctx[8]}},{key:"setupForStep",get:function(){return this.$$.ctx[9]}},{key:"show",get:function(){return this.$$.ctx[10]}}]),e}(Ee),hn=new w,vn=function(t){function e(e){var n;void 0===e&&(e={}),S(a(n=t.call(this,e)||this));n.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},e),n.classPrefix=$(n.options.classPrefix),n.steps=[],n.addSteps(n.options.steps);return["active","cancel","complete","inactive","show","start"].map((function(t){var e;e=t,n.on(e,(function(t){(t=t||{}).tour=a(n),hn.trigger(e,t)}))})),n._setTourID(),a(n)||a(n)}i(e,t);var n=e.prototype;return n.addStep=function(t,e){var n=t;return n instanceof un?n.tour=this:n=new un(this,n),x(e)?this.steps.push(n):this.steps.splice(e,0,n),n},n.addSteps=function(t){var e=this;return Array.isArray(t)&&t.forEach((function(t){e.addStep(t)})),this},n.back=function(){var t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)},n.cancel=function(){if(this.options.confirmCancel){var t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(t)&&this._done("cancel")}else this._done("cancel")},n.complete=function(){this._done("complete")},n.getById=function(t){return this.steps.find((function(e){return e.id===t}))},n.getCurrentStep=function(){return this.currentStep},n.hide=function(){var t=this.getCurrentStep();if(t)return t.hide()},n.isActive=function(){return hn.activeTour===this},n.next=function(){var t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)},n.removeStep=function(t){var e=this,n=this.getCurrentStep();this.steps.some((function(n,r){if(n.id===t)return n.isOpen()&&n.hide(),n.destroy(),e.steps.splice(r,1),!0})),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())},n.show=function(t,e){void 0===t&&(t=0),void 0===e&&(e=!0);var n=b(t)?this.getById(t):this.steps[t];n&&(this._updateStateBeforeShow(),y(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,e):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show()))},n.start=function(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()},n._done=function(t){var e,n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach((function(t){return t.destroy()})),(e=this)&&e.steps.forEach((function(t){t.options&&!1===t.options.canClickTarget&&t.options.attachTo&&t.target instanceof HTMLElement&&t.target.classList.remove("shepherd-target-click-disabled")})),this.trigger(t,{index:n}),hn.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===t||"complete"===t)&&this.modal){var r=document.querySelector(".shepherd-modal-overlay-container");r&&r.remove()}g(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},n._setupActiveTour=function(){this.trigger("active",{tour:this}),hn.activeTour=this},n._setupModal=function(){this.modal=new dn({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})},n._skipStep=function(t,e){var n=this.steps.indexOf(t);if(n===this.steps.length-1)this.complete();else{var r=e?n+1:n-1;this.show(r,e)}},n._updateStateBeforeShow=function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()},n._setTourID=function(){var t=this.options.tourName||"tour";this.id=t+"--"+_()},e}(w),mn=function(){};if("undefined"==typeof window?Object.assign(hn,{Tour:mn,Step:mn}):Object.assign(hn,{Tour:vn,Step:un}),!Joomla)throw new Error("Joomla API is not properly initialised");function gn(){sessionStorage.removeItem("currentStepId"),sessionStorage.removeItem("stepCount"),sessionStorage.removeItem("tourId"),sessionStorage.removeItem("tourToken"),sessionStorage.removeItem("previousStepUrl")}function yn(t,e,n){var r=t.querySelector(".shepherd-header"),o=document.createElement("div");o.classList.add("shepherd-progress"),o.setAttribute("role","status"),o.setAttribute("aria-label",Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_STEP_NUMBER_OF").replace("{number}",e).replace("{total}",n));var i=document.createElement("span");i.setAttribute("aria-hidden",!0),i.innerText=e+"/"+n,o.appendChild(i),r.insertBefore(o,t.querySelector(".shepherd-cancel-icon"))}function bn(t,e,n){t&&!t.disabled?t.focus():e&&!e.disabled?e.focus():n.focus()}function xn(t){sessionStorage.setItem("tourId",t.id),sessionStorage.setItem("stepCount",String(t.steps.length));var e=sessionStorage.getItem("currentStepId"),n=null,r=-1;null!=e&&Number(e)>-1&&(r=void 0!==t.steps[e]?Number(e):-1)>0&&(n=t.steps[r-1]);var o=function(){var t=new hn.Tour({defaultStepOptions:{cancelIcon:{enabled:!0,label:Joomla.Text._("JCANCEL")},classes:"shepherd-theme-arrows",scrollTo:{behavior:"smooth",block:"center"}},useModalOverlay:!0,keyboardNavigation:!0});return t.on("cancel",(function(){gn(),t.steps=[]})),t}();if(r<0){var i=Joomla.getOptions("system.paths").rootFull;if(window.location.href!==i+t.steps[0].url)return void(window.location.href=i+t.steps[0].url);!function(t,e){t.addStep({title:e.title,text:e.description,classes:"shepherd-theme-arrows",buttons:[{classes:"btn btn-primary shepherd-button-primary",action:function(){return this.next()},text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_START")}],id:"tourinfo",when:{show:function(){sessionStorage.setItem("currentStepId","tourinfo"),yn(this.getElement(),1,sessionStorage.getItem("stepCount"))}}})}(o,t.steps[0]),r=1}for(var s,a=t.steps.length,c=function(e){if(s=[],(null===n||e>r||"redirect"===t.steps[e].type)&&function(t,e){t.push({text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_BACK"),classes:"btn btn-secondary shepherd-button-secondary",action:function(){if("redirect"===e.type){sessionStorage.setItem("currentStepId",e.id-1);var t=sessionStorage.getItem("previousStepUrl");t&&(sessionStorage.removeItem("previousStepUrl"),window.location.href=t)}return this.back()}})}(s,t.steps[e]),t&&t.steps[e].target&&"interactive"===t.steps[e].type){var i=document.querySelector(t.steps[e].target);if(i&&t&&t.steps&&t.steps[e]&&t.steps[e].interactive_type)switch(t.steps[e].interactive_type){case"submit":i.addEventListener("click",(function(){sessionStorage.setItem("currentStepId",t.steps[e].id+1)}));break;case"text":i.step_id=e,i.hasAttribute("required")&&["email","password","search","tel","text","url"].includes(i.type)&&["input","focus"].forEach((function(t){return i.addEventListener(t,(function(t){t.target.value.trim().length?function(t){var e=document.querySelector(".step-next-button-"+t.currentTarget.step_id);e.removeAttribute("disabled"),e.classList.remove("disabled")}(t):function(t){var e=document.querySelector(".step-next-button-"+t.currentTarget.step_id);e.setAttribute("disabled","disabled"),e.classList.add("disabled")}(t)}))}));break;case"button":o.next()}}e<a-1?(t&&"interactive"!==t.steps[e].type||t&&"text"===t.steps[e].interactive_type||t&&"other"===t.steps[e].interactive_type)&&function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=""),t.push({text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_NEXT"),classes:"btn btn-primary shepherd-button-primary step-next-button-"+e.id+" "+r,action:function(){return this.next()},disabled:n})}(s,t.steps[e]):function(t){t.push({text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_COMPLETE"),classes:"btn btn-primary shepherd-button-primary",action:function(){return this.cancel()}})}(s),function(t,e,n){var r=new hn.Step(t,{title:e.title,text:e.description,classes:"shepherd-theme-arrows",buttons:n,id:e.id,arrow:!0,beforeShowPromise:function(){return new Promise((function(e){if(t.currentStep.options.attachTo.element){var n=t.currentStep.options.attachTo.element.split(","),r=t.currentStep.options.attachTo.on;t.currentStep.options.attachTo.element="",t.currentStep.options.attachTo.on="center";for(var o=0;o<n.length;o+=1){var i=document.querySelector(n[o]);if(null!=i&&!i.disabled&&!i.readonly&&"none"!==i.style.display){t.currentStep.options.attachTo.element=n[o],t.currentStep.options.attachTo.on=r;break}}}if("redirect"===t.currentStep.options.attachTo.type){var s=Joomla.getOptions("system.paths").rootFull+t.currentStep.options.attachTo.url;window.location.href!==s?(sessionStorage.setItem("currentStepId",t.currentStep.id),sessionStorage.setItem("previousStepUrl",window.location.href),window.location.href=s):e()}else e()})).catch((function(){}))},when:{show:function(){var t=this.getElement(),e=this.getTarget();if(t.setAttribute("aria-live","assertive"),sessionStorage.setItem("currentStepId",this.id),yn(t,this.id+1,sessionStorage.getItem("stepCount")),e&&"interactive"===this.options.attachTo.type){var n=t.querySelector(".shepherd-cancel-icon"),r=t.querySelector(".shepherd-button-primary"),o=t.querySelector(".shepherd-button-secondary");"input"===e.tagName.toLowerCase()&&e.hasAttribute("required")&&["email","password","search","tel","text","url"].includes(e.type)&&(e.value.trim().length?(r.removeAttribute("disabled"),r.classList.remove("disabled")):(r.setAttribute("disabled","disabled"),r.classList.add("disabled"))),n.addEventListener("keydown",(function(t){"Tab"===t.key&&("joomla-field-fancy-select"===e.tagName.toLowerCase()?(e.querySelector(".choices").click(),e.querySelector(".choices input").focus()):"joomla-field-fancy-select"===e.parentElement.tagName.toLowerCase()?(e.click(),e.querySelector("input").focus()):(e.focus(),t.preventDefault()))})),"iframe"===e.tagName.toLowerCase()?e.contentWindow.document.body.addEventListener("blur",(function(t){setTimeout((function(){bn(r,o,n)}),1),t.preventDefault()})):"joomla-field-fancy-select"===e.tagName.toLowerCase()?e.querySelector(".choices input").addEventListener("blur",(function(t){bn(r,o,n),t.preventDefault()})):"joomla-field-fancy-select"===e.parentElement.tagName.toLowerCase()?e.querySelector("input").addEventListener("blur",(function(t){bn(r,o,n),t.preventDefault()})):e.addEventListener("blur",(function(t){bn(r,o,n),t.preventDefault()}))}}}});if(e.target?r.updateStepOptions({attachTo:{element:e.target,on:e.position,url:e.url,type:e.type,interactive_type:e.interactive_type}}):r.updateStepOptions({attachTo:{url:e.url,type:e.type,interactive_type:e.interactive_type}}),"next"!==e.type){var o=Joomla.getOptions("system.paths").root+"/"+e.url;sessionStorage.getItem(o)&&sessionStorage.removeItem(o)}t.addStep(r)}(o,t.steps[e],s),n=t.steps[e]},u=r;u<a;u+=1)c(u);o.start()}function wn(t){if(t>0){var e=Joomla.getOptions("system.paths").rootFull+"administrator/index.php?option=com_ajax&plugin=guidedtours&group=system&format=json&id="+t;fetch(e).then((function(t){return t.json()})).then((function(t){t.success||(t.messages&&Joomla.renderMessages(t.messages),gn()),xn(t.data)})).catch((function(t){gn();var e={error:[Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_TOUR_ERROR")]};throw Joomla.renderMessages(e),new Error(t)}))}}document.querySelector("body").addEventListener("click",(function(t){t.target&&t.target.classList.contains("button-start-guidedtour")&&(void 0===t.target.getAttribute("data-id")||t.target.getAttribute("data-id")<=0?Joomla.renderMessages({error:[Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_COULD_NOT_LOAD_THE_TOUR")]}):(sessionStorage.setItem("tourToken",String(Joomla.getOptions("com_guidedtours.token"))),wn(t.target.getAttribute("data-id"))))}));var Sn=sessionStorage.getItem("tourId");Sn>0&&sessionStorage.getItem("tourToken")===String(Joomla.getOptions("com_guidedtours.token"))?wn(Sn):gn()}();