diff --git a/core/.eslintrc.json b/core/.eslintrc.json
index 7cd9b27b3754f85f2cf4d54e44fa6510a0f6c111..8feef6e695cfe7d560a7695e3f3853c7051da1c2 100644
--- a/core/.eslintrc.json
+++ b/core/.eslintrc.json
@@ -19,6 +19,7 @@
     "Backbone": true,
     "Modernizr": true,
     "Popper": true,
+    "Shepherd": true,
     "Sortable": true,
     "once": true,
     "CKEDITOR": true,
diff --git a/core/assets/vendor/shepherd/shepherd.min.js b/core/assets/vendor/shepherd/shepherd.min.js
new file mode 100644
index 0000000000000000000000000000000000000000..8bd7ec79789712806816964fd61d3436f96c11fb
--- /dev/null
+++ b/core/assets/vendor/shepherd/shepherd.min.js
@@ -0,0 +1,117 @@
+/*! shepherd.js 8.3.1 */
+
+'use strict';(function(G,ca){"object"===typeof exports&&"undefined"!==typeof module?module.exports=ca():"function"===typeof define&&define.amd?define(ca):(G="undefined"!==typeof globalThis?globalThis:G||self,G.Shepherd=ca())})(this,function(){function G(a,b){return!1!==b.clone&&b.isMergeableObject(a)?V(Array.isArray(a)?[]:{},a,b):a}function ca(a,b,c){return a.concat(b).map(function(a){return G(a,c)})}function tb(a){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(a).filter(function(b){return a.propertyIsEnumerable(b)}):
+[]}function Ia(a){return Object.keys(a).concat(tb(a))}function Ja(a,b){try{return b in a}catch(c){return!1}}function ub(a,b,c){var d={};c.isMergeableObject(a)&&Ia(a).forEach(function(b){d[b]=G(a[b],c)});Ia(b).forEach(function(e){if(!Ja(a,e)||Object.hasOwnProperty.call(a,e)&&Object.propertyIsEnumerable.call(a,e))if(Ja(a,e)&&c.isMergeableObject(b[e])){if(c.customMerge){var f=c.customMerge(e);f="function"===typeof f?f:V}else f=V;d[e]=f(a[e],b[e],c)}else d[e]=G(b[e],c)});return d}function V(a,b,c){c=
+c||{};c.arrayMerge=c.arrayMerge||ca;c.isMergeableObject=c.isMergeableObject||vb;c.cloneUnlessOtherwiseSpecified=G;var d=Array.isArray(b),e=Array.isArray(a);return d!==e?G(b,c):d?c.arrayMerge(a,b,c):ub(a,b,c)}function W(a){return"function"===typeof a}function da(a){return"string"===typeof a}function Ka(a){let b=Object.getOwnPropertyNames(a.constructor.prototype);for(let c=0;c<b.length;c++){let d=b[c],e=a[d];"constructor"!==d&&"function"===typeof e&&(a[d]=e.bind(a))}return a}function wb(a,b){return c=>
+{if(b.isOpen()){let d=b.el&&c.currentTarget===b.el;(void 0!==a&&c.currentTarget.matches(a)||d)&&b.tour.next()}}}function xb(a){let {event:b,selector:c}=a.options.advanceOn||{};if(b){let d=wb(c,a),e;try{e=document.querySelector(c)}catch(f){}if(void 0===c||e)e?(e.addEventListener(b,d),a.on("destroy",()=>e.removeEventListener(b,d))):(document.body.addEventListener(b,d,!0),a.on("destroy",()=>document.body.removeEventListener(b,d,!0)));else return console.error(`No element was found for the selector supplied to advanceOn: ${c}`)}else return console.error("advanceOn was defined, but no event name was passed.")}
+function B(a){return a?(a.nodeName||"").toLowerCase():null}function z(a){return null==a?window:"[object Window]"!==a.toString()?(a=a.ownerDocument)?a.defaultView||window:window:a}function ea(a){var b=z(a).Element;return a instanceof b||a instanceof Element}function y(a){var b=z(a).HTMLElement;return a instanceof b||a instanceof HTMLElement}function La(a){if("undefined"===typeof ShadowRoot)return!1;var b=z(a).ShadowRoot;return a instanceof b||a instanceof ShadowRoot}function F(a){return a.split("-")[0]}
+function X(a){a=a.getBoundingClientRect();return{width:a.width,height:a.height,top:a.top,right:a.right,bottom:a.bottom,left:a.left,x:a.left,y:a.top}}function ta(a){var b=X(a),c=a.offsetWidth,d=a.offsetHeight;1>=Math.abs(b.width-c)&&(c=b.width);1>=Math.abs(b.height-d)&&(d=b.height);return{x:a.offsetLeft,y:a.offsetTop,width:c,height:d}}function Ma(a,b){var c=b.getRootNode&&b.getRootNode();if(a.contains(b))return!0;if(c&&La(c)){do{if(b&&a.isSameNode(b))return!0;b=b.parentNode||b.host}while(b)}return!1}
+function H(a){return z(a).getComputedStyle(a)}function L(a){return((ea(a)?a.ownerDocument:a.document)||window.document).documentElement}function la(a){return"html"===B(a)?a:a.assignedSlot||a.parentNode||(La(a)?a.host:null)||L(a)}function Na(a){return y(a)&&"fixed"!==H(a).position?a.offsetParent:null}function fa(a){for(var b=z(a),c=Na(a);c&&0<=["table","td","th"].indexOf(B(c))&&"static"===H(c).position;)c=Na(c);if(c&&("html"===B(c)||"body"===B(c)&&"static"===H(c).position))return b;if(!c)a:{c=-1!==
+navigator.userAgent.toLowerCase().indexOf("firefox");if(-1===navigator.userAgent.indexOf("Trident")||!y(a)||"fixed"!==H(a).position)for(a=la(a);y(a)&&0>["html","body"].indexOf(B(a));){var d=H(a);if("none"!==d.transform||"none"!==d.perspective||"paint"===d.contain||-1!==["transform","perspective"].indexOf(d.willChange)||c&&"filter"===d.willChange||c&&d.filter&&"none"!==d.filter){c=a;break a}else a=a.parentNode}c=null}return c||b}function ua(a){return 0<=["top","bottom"].indexOf(a)?"x":"y"}function Oa(a){return Object.assign({},
+{top:0,right:0,bottom:0,left:0},a)}function Pa(a,b){return b.reduce(function(b,d){b[d]=a;return b},{})}function Qa(a){var b,c=a.popper,d=a.popperRect,e=a.placement,f=a.offsets,h=a.position,k=a.gpuAcceleration,m=a.adaptive;a=a.roundOffsets;if(!0===a){a=f.y;var g=window.devicePixelRatio||1;a={x:ma(ma(f.x*g)/g)||0,y:ma(ma(a*g)/g)||0}}else a="function"===typeof a?a(f):f;g=a;a=g.x;a=void 0===a?0:a;g=g.y;g=void 0===g?0:g;var l=f.hasOwnProperty("x");f=f.hasOwnProperty("y");var p="left",t="top",A=window;
+if(m){var C=fa(c),u="clientHeight",D="clientWidth";C===z(c)&&(C=L(c),"static"!==H(C).position&&(u="scrollHeight",D="scrollWidth"));"top"===e&&(t="bottom",g-=C[u]-d.height,g*=k?1:-1);"left"===e&&(p="right",a-=C[D]-d.width,a*=k?1:-1)}c=Object.assign({position:h},m&&yb);if(k){var v;return Object.assign({},c,(v={},v[t]=f?"0":"",v[p]=l?"0":"",v.transform=2>(A.devicePixelRatio||1)?"translate("+a+"px, "+g+"px)":"translate3d("+a+"px, "+g+"px, 0)",v))}return Object.assign({},c,(b={},b[t]=f?g+"px":"",b[p]=
+l?a+"px":"",b.transform="",b))}function na(a){return a.replace(/left|right|bottom|top/g,function(a){return zb[a]})}function Ra(a){return a.replace(/start|end/g,function(a){return Ab[a]})}function va(a){a=z(a);return{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function wa(a){return X(L(a)).left+va(a).scrollLeft}function xa(a){a=H(a);return/auto|scroll|overlay|hidden/.test(a.overflow+a.overflowY+a.overflowX)}function Sa(a){return 0<=["html","body","#document"].indexOf(B(a))?a.ownerDocument.body:
+y(a)&&xa(a)?a:Sa(la(a))}function ha(a,b){var c;void 0===b&&(b=[]);var d=Sa(a);a=d===(null==(c=a.ownerDocument)?void 0:c.body);c=z(d);d=a?[c].concat(c.visualViewport||[],xa(d)?d:[]):d;b=b.concat(d);return a?b:b.concat(ha(la(d)))}function ya(a){return Object.assign({},a,{left:a.x,top:a.y,right:a.x+a.width,bottom:a.y+a.height})}function Ta(a,b){if("viewport"===b){b=z(a);var c=L(a);b=b.visualViewport;var d=c.clientWidth;c=c.clientHeight;var e=0,f=0;b&&(d=b.width,c=b.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||
+(e=b.offsetLeft,f=b.offsetTop));a={width:d,height:c,x:e+wa(a),y:f};a=ya(a)}else y(b)?(a=X(b),a.top+=b.clientTop,a.left+=b.clientLeft,a.bottom=a.top+b.clientHeight,a.right=a.left+b.clientWidth,a.width=b.clientWidth,a.height=b.clientHeight,a.x=a.left,a.y=a.top):(f=L(a),a=L(f),d=va(f),b=null==(c=f.ownerDocument)?void 0:c.body,c=E(a.scrollWidth,a.clientWidth,b?b.scrollWidth:0,b?b.clientWidth:0),e=E(a.scrollHeight,a.clientHeight,b?b.scrollHeight:0,b?b.clientHeight:0),f=-d.scrollLeft+wa(f),d=-d.scrollTop,
+"rtl"===H(b||a).direction&&(f+=E(a.clientWidth,b?b.clientWidth:0)-c),a=ya({width:c,height:e,x:f,y:d}));return a}function Bb(a){var b=ha(la(a)),c=0<=["absolute","fixed"].indexOf(H(a).position)&&y(a)?fa(a):a;return ea(c)?b.filter(function(a){return ea(a)&&Ma(a,c)&&"body"!==B(a)}):[]}function Cb(a,b,c){b="clippingParents"===b?Bb(a):[].concat(b);c=[].concat(b,[c]);c=c.reduce(function(b,c){c=Ta(a,c);b.top=E(c.top,b.top);b.right=M(c.right,b.right);b.bottom=M(c.bottom,b.bottom);b.left=E(c.left,b.left);return b},
+Ta(a,c[0]));c.width=c.right-c.left;c.height=c.bottom-c.top;c.x=c.left;c.y=c.top;return c}function Ua(a){var b=a.reference,c=a.element,d=(a=a.placement)?F(a):null;a=a?a.split("-")[1]:null;var e=b.x+b.width/2-c.width/2,f=b.y+b.height/2-c.height/2;switch(d){case "top":e={x:e,y:b.y-c.height};break;case "bottom":e={x:e,y:b.y+b.height};break;case "right":e={x:b.x+b.width,y:f};break;case "left":e={x:b.x-c.width,y:f};break;default:e={x:b.x,y:b.y}}d=d?ua(d):null;if(null!=d)switch(f="y"===d?"height":"width",
+a){case "start":e[d]-=b[f]/2-c[f]/2;break;case "end":e[d]+=b[f]/2-c[f]/2}return e}function ia(a,b){void 0===b&&(b={});var c=b;b=c.placement;b=void 0===b?a.placement:b;var d=c.boundary,e=void 0===d?"clippingParents":d;d=c.rootBoundary;var f=void 0===d?"viewport":d;d=c.elementContext;d=void 0===d?"popper":d;var h=c.altBoundary,k=void 0===h?!1:h;c=c.padding;c=void 0===c?0:c;c=Oa("number"!==typeof c?c:Pa(c,ja));var m=a.elements.reference;h=a.rects.popper;k=a.elements[k?"popper"===d?"reference":"popper":
+d];e=Cb(ea(k)?k:k.contextElement||L(a.elements.popper),e,f);f=X(m);k=Ua({reference:f,element:h,strategy:"absolute",placement:b});h=ya(Object.assign({},h,k));f="popper"===d?h:f;var g={top:e.top-f.top+c.top,bottom:f.bottom-e.bottom+c.bottom,left:e.left-f.left+c.left,right:f.right-e.right+c.right};a=a.modifiersData.offset;if("popper"===d&&a){var l=a[b];Object.keys(g).forEach(function(a){var b=0<=["right","bottom"].indexOf(a)?1:-1,c=0<=["top","bottom"].indexOf(a)?"y":"x";g[a]+=l[c]*b})}return g}function Db(a,
+b){void 0===b&&(b={});var c=b.boundary,d=b.rootBoundary,e=b.padding,f=b.flipVariations,h=b.allowedAutoPlacements,k=void 0===h?Va:h,m=b.placement.split("-")[1];b=m?f?Wa:Wa.filter(function(a){return a.split("-")[1]===m}):ja;f=b.filter(function(a){return 0<=k.indexOf(a)});0===f.length&&(f=b);var g=f.reduce(function(b,f){b[f]=ia(a,{placement:f,boundary:c,rootBoundary:d,padding:e})[F(f)];return b},{});return Object.keys(g).sort(function(a,b){return g[a]-g[b]})}function Eb(a){if("auto"===F(a))return[];
+var b=na(a);return[Ra(a),b,Ra(b)]}function Xa(a,b,c){void 0===c&&(c={x:0,y:0});return{top:a.top-b.height-c.y,right:a.right-b.width+c.x,bottom:a.bottom-b.height+c.y,left:a.left-b.width-c.x}}function Ya(a){return["top","right","bottom","left"].some(function(b){return 0<=a[b]})}function Fb(a,b,c){void 0===c&&(c=!1);var d=L(b);a=X(a);var e=y(b),f={scrollLeft:0,scrollTop:0},h={x:0,y:0};if(e||!e&&!c){if("body"!==B(b)||xa(d))f=b!==z(b)&&y(b)?{scrollLeft:b.scrollLeft,scrollTop:b.scrollTop}:va(b);y(b)?(h=
+X(b),h.x+=b.clientLeft,h.y+=b.clientTop):d&&(h.x=wa(d))}return{x:a.left+f.scrollLeft-h.x,y:a.top+f.scrollTop-h.y,width:a.width,height:a.height}}function Gb(a){function b(a){d.add(a.name);[].concat(a.requires||[],a.requiresIfExists||[]).forEach(function(a){d.has(a)||(a=c.get(a))&&b(a)});e.push(a)}var c=new Map,d=new Set,e=[];a.forEach(function(a){c.set(a.name,a)});a.forEach(function(a){d.has(a.name)||b(a)});return e}function Hb(a){var b=Gb(a);return Ib.reduce(function(a,d){return a.concat(b.filter(function(a){return a.phase===
+d}))},[])}function Jb(a){var b;return function(){b||(b=new Promise(function(c){Promise.resolve().then(function(){b=void 0;c(a())})}));return b}}function Kb(a){var b=a.reduce(function(a,b){var c=a[b.name];a[b.name]=c?Object.assign({},c,b,{options:Object.assign({},c.options,b.options),data:Object.assign({},c.data,b.data)}):b;return a},{});return Object.keys(b).map(function(a){return b[a]})}function Za(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];return!b.some(function(a){return!(a&&
+"function"===typeof a.getBoundingClientRect)})}function za(){za=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a};return za.apply(this,arguments)}function Lb(){return[{name:"applyStyles",fn({state:a}){Object.keys(a.elements).forEach(b=>{if("popper"===b){var c=a.attributes[b]||{},d=a.elements[b];Object.assign(d.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"});
+Object.keys(c).forEach(a=>{let b=c[a];!1===b?d.removeAttribute(a):d.setAttribute(a,!0===b?"":b)})}})}},{name:"computeStyles",options:{adaptive:!1}}]}function Mb(a){let b=Lb(),c={placement:"top",strategy:"fixed",modifiers:[{name:"focusAfterRender",enabled:!0,phase:"afterWrite",fn(){setTimeout(()=>{a.el&&a.el.focus()},300)}}]};return c=za({},c,{modifiers:Array.from(new Set([...c.modifiers,...b]))})}function $a(a){return da(a)&&""!==a?"-"!==a.charAt(a.length-1)?`${a}-`:a:""}function Aa(a){a=a.options.attachTo||
+{};let b=Object.assign({},a);if(da(a.element)){try{b.element=document.querySelector(a.element)}catch(c){}b.element||console.error(`The element for this Shepherd step was not found ${a.element}`)}return b}function Ba(){let a=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,b=>{let c=(a+16*Math.random())%16|0;a=Math.floor(a/16);return("x"==b?c:c&3|8).toString(16)})}function Nb(a,b){let c={modifiers:[{name:"preventOverflow",options:{altAxis:!0,tether:!1}},{name:"focusAfterRender",
+enabled:!0,phase:"afterWrite",fn(){setTimeout(()=>{b.el&&b.el.focus()},300)}}],strategy:"absolute"};b.isCentered()?c=Mb(b):c.placement=a.on;(a=b.tour&&b.tour.options&&b.tour.options.defaultStepOptions)&&(c=ab(a,c));return c=ab(b.options,c)}function ab(a,b){if(a.popperOptions){let c=Object.assign({},b,a.popperOptions);if(a.popperOptions.modifiers&&0<a.popperOptions.modifiers.length){let d=a.popperOptions.modifiers.map(a=>a.name);b=b.modifiers.filter(a=>!d.includes(a.name));c.modifiers=Array.from(new Set([...b,
+...a.popperOptions.modifiers]))}return c}return b}function x(){}function Ob(a,b){for(let c in b)a[c]=b[c];return a}function Y(a){return a()}function bb(a){return"function"===typeof a}function I(a,b){return a!=a?b==b:a!==b||a&&"object"===typeof a||"function"===typeof a}function w(a){a.parentNode.removeChild(a)}function cb(a){return document.createElementNS("http://www.w3.org/2000/svg",a)}function oa(a,b,c,d){a.addEventListener(b,c,d);return()=>a.removeEventListener(b,c,d)}function q(a,b,c){null==c?
+a.removeAttribute(b):a.getAttribute(b)!==c&&a.setAttribute(b,c)}function db(a,b){let c=Object.getOwnPropertyDescriptors(a.__proto__);for(let d in b)null==b[d]?a.removeAttribute(d):"style"===d?a.style.cssText=b[d]:"__value"===d?a.value=a[d]=b[d]:c[d]&&c[d].set?a[d]=b[d]:q(a,d,b[d])}function Z(a,b,c){a.classList[c?"add":"remove"](b)}function pa(){if(!P)throw Error("Function called outside component initialization");return P}function Ca(a){qa.push(a)}function eb(){if(!Da){Da=!0;do{for(var a=0;a<ka.length;a+=
+1){var b=ka[a];P=b;b=b.$$;if(null!==b.fragment){b.update();b.before_update.forEach(Y);let a=b.dirty;b.dirty=[-1];b.fragment&&b.fragment.p(b.ctx,a);b.after_update.forEach(Ca)}}P=null;for(ka.length=0;aa.length;)aa.pop()();for(a=0;a<qa.length;a+=1)b=qa[a],Ea.has(b)||(Ea.add(b),b());qa.length=0}while(ka.length);for(;fb.length;)fb.pop()();Da=Fa=!1;Ea.clear()}}function Q(){R={r:0,c:[],p:R}}function S(){R.r||R.c.forEach(Y);R=R.p}function n(a,b){a&&a.i&&(ra.delete(a),a.i(b))}function r(a,b,c,d){a&&a.o&&!ra.has(a)&&
+(ra.add(a),R.c.push(()=>{ra.delete(a);d&&(c&&a.d(1),d())}),a.o(b))}function T(a){a&&a.c()}function N(a,b,c,d){let {fragment:e,on_mount:f,on_destroy:h,after_update:k}=a.$$;e&&e.m(b,c);d||Ca(()=>{let b=f.map(Y).filter(bb);h?h.push(...b):b.forEach(Y);a.$$.on_mount=[]});k.forEach(Ca)}function O(a,b){a=a.$$;null!==a.fragment&&(a.on_destroy.forEach(Y),a.fragment&&a.fragment.d(b),a.on_destroy=a.fragment=null,a.ctx=[])}function J(a,b,c,d,e,f,h=[-1]){let k=P;P=a;let m=a.$$={fragment:null,ctx:null,props:f,
+update:x,not_equal:e,bound:Object.create(null),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(k?k.$$.context:b.context||[]),callbacks:Object.create(null),dirty:h,skip_bound:!1},g=!1;m.ctx=c?c(a,b.props||{},(b,c,...d)=>{d=d.length?d[0]:c;if(m.ctx&&e(m.ctx[b],m.ctx[b]=d)){if(!m.skip_bound&&m.bound[b])m.bound[b](d);g&&(-1===a.$$.dirty[0]&&(ka.push(a),Fa||(Fa=!0,Pb.then(eb)),a.$$.dirty.fill(0)),a.$$.dirty[b/31|0]|=1<<b%31)}return c}):[];m.update();g=!0;m.before_update.forEach(Y);
+m.fragment=d?d(m.ctx):!1;b.target&&(b.hydrate?(c=Array.from(b.target.childNodes),m.fragment&&m.fragment.l(c),c.forEach(w)):m.fragment&&m.fragment.c(),b.intro&&n(a.$$.fragment),N(a,b.target,b.anchor,b.customElement),eb());P=k}function Qb(a){let b,c,d,e,f;return{c(){b=document.createElement("button");q(b,"aria-label",c=a[3]?a[3]:null);q(b,"class",d=`${a[1]||""} shepherd-button ${a[4]?"shepherd-button-secondary":""}`);b.disabled=a[2];q(b,"tabindex","0")},m(c,d){c.insertBefore(b,d||null);b.innerHTML=
+a[5];e||(f=oa(b,"click",function(){bb(a[0])&&a[0].apply(this,arguments)}),e=!0)},p(e,[f]){a=e;f&32&&(b.innerHTML=a[5]);f&8&&c!==(c=a[3]?a[3]:null)&&q(b,"aria-label",c);f&18&&d!==(d=`${a[1]||""} shepherd-button ${a[4]?"shepherd-button-secondary":""}`)&&q(b,"class",d);f&4&&(b.disabled=a[2])},i:x,o:x,d(a){a&&w(b);e=!1;f()}}}function Rb(a,b,c){let {config:d}=b,{step:e}=b,f,h,k,m,g,l;a.$$set=a=>{"config"in a&&c(6,d=a.config);"step"in a&&c(7,e=a.step)};a.$$.update=()=>{if(a.$$.dirty&192){c(0,f=d.action?
+d.action.bind(e.tour):null);c(1,h=d.classes);if(d.disabled){var b=d.disabled;b=W(b)?b.call(e):b}else b=!1;c(2,k=b);c(3,m=d.label);c(4,g=d.secondary);c(5,l=d.text)}};return[f,h,k,m,g,l,d,e]}function gb(a,b,c){a=a.slice();a[2]=b[c];return a}function hb(a){let b,c,d=a[1],e=[];for(let b=0;b<d.length;b+=1)e[b]=ib(gb(a,d,b));let f=a=>r(e[a],1,1,()=>{e[a]=null});return{c(){for(let a=0;a<e.length;a+=1)e[a].c();b=document.createTextNode("")},m(a,d){for(let b=0;b<e.length;b+=1)e[b].m(a,d);a.insertBefore(b,
+d||null);c=!0},p(a,c){if(c&3){d=a[1];let h;for(h=0;h<d.length;h+=1){let f=gb(a,d,h);e[h]?(e[h].p(f,c),n(e[h],1)):(e[h]=ib(f),e[h].c(),n(e[h],1),e[h].m(b.parentNode,b))}Q();for(h=d.length;h<e.length;h+=1)f(h);S()}},i(a){if(!c){for(a=0;a<d.length;a+=1)n(e[a]);c=!0}},o(a){e=e.filter(Boolean);for(a=0;a<e.length;a+=1)r(e[a]);c=!1},d(a){var c=e;for(let b=0;b<c.length;b+=1)c[b]&&c[b].d(a);a&&w(b)}}}function ib(a){let b,c;b=new Sb({props:{config:a[2],step:a[0]}});return{c(){T(b.$$.fragment)},m(a,e){N(b,a,
+e);c=!0},p(a,c){let d={};c&2&&(d.config=a[2]);c&1&&(d.step=a[0]);b.$set(d)},i(a){c||(n(b.$$.fragment,a),c=!0)},o(a){r(b.$$.fragment,a);c=!1},d(a){O(b,a)}}}function Tb(a){let b,c,d=a[1]&&hb(a);return{c(){b=document.createElement("footer");d&&d.c();q(b,"class","shepherd-footer")},m(a,f){a.insertBefore(b,f||null);d&&d.m(b,null);c=!0},p(a,[c]){a[1]?d?(d.p(a,c),c&2&&n(d,1)):(d=hb(a),d.c(),n(d,1),d.m(b,null)):d&&(Q(),r(d,1,1,()=>{d=null}),S())},i(a){c||(n(d),c=!0)},o(a){r(d);c=!1},d(a){a&&w(b);d&&d.d()}}}
+function Ub(a,b,c){let d,{step:e}=b;a.$$set=a=>{"step"in a&&c(0,e=a.step)};a.$$.update=()=>{a.$$.dirty&1&&c(1,d=e.options.buttons)};return[e,d]}function Vb(a){let b,c,d,e,f;return{c(){b=document.createElement("button");c=document.createElement("span");c.textContent="\u00d7";q(c,"aria-hidden","true");q(b,"aria-label",d=a[0].label?a[0].label:"Close Tour");q(b,"class","shepherd-cancel-icon");q(b,"type","button")},m(d,k){d.insertBefore(b,k||null);b.appendChild(c);e||(f=oa(b,"click",a[1]),e=!0)},p(a,[c]){c&
+1&&d!==(d=a[0].label?a[0].label:"Close Tour")&&q(b,"aria-label",d)},i:x,o:x,d(a){a&&w(b);e=!1;f()}}}function Wb(a,b,c){let {cancelIcon:d}=b,{step:e}=b;a.$$set=a=>{"cancelIcon"in a&&c(0,d=a.cancelIcon);"step"in a&&c(2,e=a.step)};return[d,a=>{a.preventDefault();e.cancel()},e]}function Xb(a){let b;return{c(){b=document.createElement("h3");q(b,"id",a[1]);q(b,"class","shepherd-title")},m(c,d){c.insertBefore(b,d||null);a[3](b)},p(a,[d]){d&2&&q(b,"id",a[1])},i:x,o:x,d(c){c&&w(b);a[3](null)}}}function Yb(a,
+b,c){let {labelId:d}=b,{element:e}=b,{title:f}=b;pa().$$.after_update.push(()=>{W(f)&&c(2,f=f());c(0,e.innerHTML=f,e)});a.$$set=a=>{"labelId"in a&&c(1,d=a.labelId);"element"in a&&c(0,e=a.element);"title"in a&&c(2,f=a.title)};return[e,d,f,function(a){aa[a?"unshift":"push"](()=>{e=a;c(0,e)})}]}function jb(a){let b,c;b=new Zb({props:{labelId:a[0],title:a[2]}});return{c(){T(b.$$.fragment)},m(a,e){N(b,a,e);c=!0},p(a,c){let d={};c&1&&(d.labelId=a[0]);c&4&&(d.title=a[2]);b.$set(d)},i(a){c||(n(b.$$.fragment,
+a),c=!0)},o(a){r(b.$$.fragment,a);c=!1},d(a){O(b,a)}}}function kb(a){let b,c;b=new $b({props:{cancelIcon:a[3],step:a[1]}});return{c(){T(b.$$.fragment)},m(a,e){N(b,a,e);c=!0},p(a,c){let d={};c&8&&(d.cancelIcon=a[3]);c&2&&(d.step=a[1]);b.$set(d)},i(a){c||(n(b.$$.fragment,a),c=!0)},o(a){r(b.$$.fragment,a);c=!1},d(a){O(b,a)}}}function ac(a){let b,c,d,e=a[2]&&jb(a),f=a[3]&&a[3].enabled&&kb(a);return{c(){b=document.createElement("header");e&&e.c();c=document.createTextNode(" ");f&&f.c();q(b,"class","shepherd-header")},
+m(a,k){a.insertBefore(b,k||null);e&&e.m(b,null);b.appendChild(c);f&&f.m(b,null);d=!0},p(a,[d]){a[2]?e?(e.p(a,d),d&4&&n(e,1)):(e=jb(a),e.c(),n(e,1),e.m(b,c)):e&&(Q(),r(e,1,1,()=>{e=null}),S());a[3]&&a[3].enabled?f?(f.p(a,d),d&8&&n(f,1)):(f=kb(a),f.c(),n(f,1),f.m(b,null)):f&&(Q(),r(f,1,1,()=>{f=null}),S())},i(a){d||(n(e),n(f),d=!0)},o(a){r(e);r(f);d=!1},d(a){a&&w(b);e&&e.d();f&&f.d()}}}function bc(a,b,c){let {labelId:d}=b,{step:e}=b,f,h;a.$$set=a=>{"labelId"in a&&c(0,d=a.labelId);"step"in a&&c(1,e=
+a.step)};a.$$.update=()=>{a.$$.dirty&2&&(c(2,f=e.options.title),c(3,h=e.options.cancelIcon))};return[d,e,f,h]}function cc(a){let b;return{c(){b=document.createElement("div");q(b,"class","shepherd-text");q(b,"id",a[1])},m(c,d){c.insertBefore(b,d||null);a[3](b)},p(a,[d]){d&2&&q(b,"id",a[1])},i:x,o:x,d(c){c&&w(b);a[3](null)}}}function dc(a,b,c){let {descriptionId:d}=b,{element:e}=b,{step:f}=b;pa().$$.after_update.push(()=>{let {text:a}=f.options;W(a)&&(a=a.call(f));a instanceof HTMLElement?e.appendChild(a):
+c(0,e.innerHTML=a,e)});a.$$set=a=>{"descriptionId"in a&&c(1,d=a.descriptionId);"element"in a&&c(0,e=a.element);"step"in a&&c(2,f=a.step)};return[e,d,f,function(a){aa[a?"unshift":"push"](()=>{e=a;c(0,e)})}]}function lb(a){let b,c;b=new ec({props:{labelId:a[1],step:a[2]}});return{c(){T(b.$$.fragment)},m(a,e){N(b,a,e);c=!0},p(a,c){let d={};c&2&&(d.labelId=a[1]);c&4&&(d.step=a[2]);b.$set(d)},i(a){c||(n(b.$$.fragment,a),c=!0)},o(a){r(b.$$.fragment,a);c=!1},d(a){O(b,a)}}}function mb(a){let b,c;b=new fc({props:{descriptionId:a[0],
+step:a[2]}});return{c(){T(b.$$.fragment)},m(a,e){N(b,a,e);c=!0},p(a,c){let d={};c&1&&(d.descriptionId=a[0]);c&4&&(d.step=a[2]);b.$set(d)},i(a){c||(n(b.$$.fragment,a),c=!0)},o(a){r(b.$$.fragment,a);c=!1},d(a){O(b,a)}}}function nb(a){let b,c;b=new gc({props:{step:a[2]}});return{c(){T(b.$$.fragment)},m(a,e){N(b,a,e);c=!0},p(a,c){let d={};c&4&&(d.step=a[2]);b.$set(d)},i(a){c||(n(b.$$.fragment,a),c=!0)},o(a){r(b.$$.fragment,a);c=!1},d(a){O(b,a)}}}function hc(a){let b,c=void 0!==a[2].options.title||a[2].options.cancelIcon&&
+a[2].options.cancelIcon.enabled,d,e=void 0!==a[2].options.text,f,h=Array.isArray(a[2].options.buttons)&&a[2].options.buttons.length,k,m=c&&lb(a),g=e&&mb(a),l=h&&nb(a);return{c(){b=document.createElement("div");m&&m.c();d=document.createTextNode(" ");g&&g.c();f=document.createTextNode(" ");l&&l.c();q(b,"class","shepherd-content")},m(a,c){a.insertBefore(b,c||null);m&&m.m(b,null);b.appendChild(d);g&&g.m(b,null);b.appendChild(f);l&&l.m(b,null);k=!0},p(a,[k]){k&4&&(c=void 0!==a[2].options.title||a[2].options.cancelIcon&&
+a[2].options.cancelIcon.enabled);c?m?(m.p(a,k),k&4&&n(m,1)):(m=lb(a),m.c(),n(m,1),m.m(b,d)):m&&(Q(),r(m,1,1,()=>{m=null}),S());k&4&&(e=void 0!==a[2].options.text);e?g?(g.p(a,k),k&4&&n(g,1)):(g=mb(a),g.c(),n(g,1),g.m(b,f)):g&&(Q(),r(g,1,1,()=>{g=null}),S());k&4&&(h=Array.isArray(a[2].options.buttons)&&a[2].options.buttons.length);h?l?(l.p(a,k),k&4&&n(l,1)):(l=nb(a),l.c(),n(l,1),l.m(b,null)):l&&(Q(),r(l,1,1,()=>{l=null}),S())},i(a){k||(n(m),n(g),n(l),k=!0)},o(a){r(m);r(g);r(l);k=!1},d(a){a&&w(b);m&&
+m.d();g&&g.d();l&&l.d()}}}function ic(a,b,c){let {descriptionId:d}=b,{labelId:e}=b,{step:f}=b;a.$$set=a=>{"descriptionId"in a&&c(0,d=a.descriptionId);"labelId"in a&&c(1,e=a.labelId);"step"in a&&c(2,f=a.step)};return[d,e,f]}function ob(a){let b;return{c(){b=document.createElement("div");q(b,"class","shepherd-arrow");q(b,"data-popper-arrow","")},m(a,d){a.insertBefore(b,d||null)},d(a){a&&w(b)}}}function jc(a){let b,c,d,e,f,h,k,m,g=a[4].options.arrow&&a[4].options.attachTo&&a[4].options.attachTo.element&&
+a[4].options.attachTo.on&&ob();d=new kc({props:{descriptionId:a[2],labelId:a[3],step:a[4]}});let l=[{"aria-describedby":e=void 0!==a[4].options.text?a[2]:null},{"aria-labelledby":f=a[4].options.title?a[3]:null},a[1],{role:"dialog"},{tabindex:"0"}],p={};for(let a=0;a<l.length;a+=1)p=Ob(p,l[a]);return{c(){b=document.createElement("div");g&&g.c();c=document.createTextNode(" ");T(d.$$.fragment);db(b,p);Z(b,"shepherd-has-cancel-icon",a[5]);Z(b,"shepherd-has-title",a[6]);Z(b,"shepherd-element",!0)},m(e,
+f){e.insertBefore(b,f||null);g&&g.m(b,null);b.appendChild(c);N(d,b,null);a[13](b);h=!0;k||(m=oa(b,"keydown",a[7]),k=!0)},p(a,[k]){a[4].options.arrow&&a[4].options.attachTo&&a[4].options.attachTo.element&&a[4].options.attachTo.on?g||(g=ob(),g.c(),g.m(b,c)):g&&(g.d(1),g=null);var m={};k&4&&(m.descriptionId=a[2]);k&8&&(m.labelId=a[3]);k&16&&(m.step=a[4]);d.$set(m);m=b;{k=[(!h||k&20&&e!==(e=void 0!==a[4].options.text?a[2]:null))&&{"aria-describedby":e},(!h||k&24&&f!==(f=a[4].options.title?a[3]:null))&&
+{"aria-labelledby":f},k&2&&a[1],{role:"dialog"},{tabindex:"0"}];let b={},c={},d={$$scope:1},g=l.length;for(;g--;){let a=l[g],e=k[g];if(e){for(u in a)u in e||(c[u]=1);for(let a in e)d[a]||(b[a]=e[a],d[a]=1);l[g]=e}else for(let b in a)d[b]=1}for(let a in c)a in b||(b[a]=void 0);var u=b}db(m,p=u);Z(b,"shepherd-has-cancel-icon",a[5]);Z(b,"shepherd-has-title",a[6]);Z(b,"shepherd-element",!0)},i(a){h||(n(d.$$.fragment,a),h=!0)},o(a){r(d.$$.fragment,a);h=!1},d(c){c&&w(b);g&&g.d();O(d);a[13](null);k=!1;m()}}}
+function pb(a){return a.split(" ").filter(a=>!!a.length)}function lc(a,b,c){let {classPrefix:d}=b,{element:e}=b,{descriptionId:f}=b,{firstFocusableElement:h}=b,{focusableElements:k}=b,{labelId:m}=b,{lastFocusableElement:g}=b,{step:l}=b,{dataStepId:p}=b,t,A,C;pa().$$.on_mount.push(()=>{c(1,p={[`data-${d}shepherd-step-id`]:l.id});c(9,k=e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'));c(8,h=k[0]);
+c(10,g=k[k.length-1])});pa().$$.after_update.push(()=>{if(C!==l.options.classes){var a=C;da(a)&&(a=pb(a),a.length&&e.classList.remove(...a));a=C=l.options.classes;da(a)&&(a=pb(a),a.length&&e.classList.add(...a))}});a.$$set=a=>{"classPrefix"in a&&c(11,d=a.classPrefix);"element"in a&&c(0,e=a.element);"descriptionId"in a&&c(2,f=a.descriptionId);"firstFocusableElement"in a&&c(8,h=a.firstFocusableElement);"focusableElements"in a&&c(9,k=a.focusableElements);"labelId"in a&&c(3,m=a.labelId);"lastFocusableElement"in
+a&&c(10,g=a.lastFocusableElement);"step"in a&&c(4,l=a.step);"dataStepId"in a&&c(1,p=a.dataStepId)};a.$$.update=()=>{a.$$.dirty&16&&(c(5,t=l.options&&l.options.cancelIcon&&l.options.cancelIcon.enabled),c(6,A=l.options&&l.options.title))};return[e,p,f,m,l,t,A,a=>{const {tour:b}=l;switch(a.keyCode){case 9:if(0===k.length){a.preventDefault();break}if(a.shiftKey){if(document.activeElement===h||document.activeElement.classList.contains("shepherd-element"))a.preventDefault(),g.focus()}else document.activeElement===
+g&&(a.preventDefault(),h.focus());break;case 27:b.options.exitOnEsc&&l.cancel();break;case 37:b.options.keyboardNavigation&&b.back();break;case 39:b.options.keyboardNavigation&&b.next()}},h,k,g,d,()=>e,function(a){aa[a?"unshift":"push"](()=>{e=a;c(0,e)})}]}function mc(a){a&&({steps:a}=a,a.forEach(a=>{a.options&&!1===a.options.canClickTarget&&a.options.attachTo&&a.target instanceof HTMLElement&&a.target.classList.remove("shepherd-target-click-disabled")}))}function nc({width:a,height:b,x:c=0,y:d=0,
+r:e=0}){let {innerWidth:f,innerHeight:h}=window;return`M${f},${h}\
+H0\
+V0\
+H${f}\
+V${h}\
+Z\
+M${c+e},${d}\
+a${e},${e},0,0,0-${e},${e}\
+V${b+d-e}\
+a${e},${e},0,0,0,${e},${e}\
+H${a+c-e}\
+a${e},${e},0,0,0,${e}-${e}\
+V${d+e}\
+a${e},${e},0,0,0-${e}-${e}\
+Z`}function oc(a){let b,c,d,e,f;return{c(){b=cb("svg");c=cb("path");q(c,"d",a[2]);q(b,"class",d=`${a[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(d,k){d.insertBefore(b,k||null);b.appendChild(c);a[11](b);e||(f=oa(b,"touchmove",a[3]),e=!0)},p(a,[e]){e&4&&q(c,"d",a[2]);e&2&&d!==(d=`${a[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&q(b,"class",d)},i:x,o:x,d(c){c&&w(b);a[11](null);e=!1;f()}}}function qb(a){if(!a)return null;let b=a instanceof HTMLElement&&
+window.getComputedStyle(a).overflowY;return"hidden"!==b&&"visible"!==b&&a.scrollHeight>=a.clientHeight?a:qb(a.parentElement)}function pc(a,b,c){function d(){c(4,l={width:0,height:0,x:0,y:0,r:0})}function e(){c(1,p=!1);k()}function f(a=0,b=0,e,f){if(f){var g=f.getBoundingClientRect();var u=g.y||g.top;g=g.bottom||u+g.height;if(e){var h=e.getBoundingClientRect();e=h.y||h.top;h=h.bottom||e+h.height;u=Math.max(u,e);g=Math.min(g,h)}u={y:u,height:Math.max(g-u,0)};let {y:d,height:k}=u,{x:m,width:p,left:A}=
+f.getBoundingClientRect();c(4,l={width:p+2*a,height:k+2*a,x:(m||A)-a,y:d-a,r:b})}else d()}function h(){c(1,p=!0)}function k(){t&&(cancelAnimationFrame(t),t=void 0);window.removeEventListener("touchmove",C,{passive:!1})}function m(a){let {modalOverlayOpeningPadding:b,modalOverlayOpeningRadius:c}=a.options,d=qb(a.target),e=()=>{t=void 0;f(b,c,d,a.target);t=requestAnimationFrame(e)};e();window.addEventListener("touchmove",C,{passive:!1})}let {element:g}=b,{openingProperties:l}=b;Ba();let p=!1,t=void 0,
+A;d();let C=a=>{a.preventDefault()};a.$$set=a=>{"element"in a&&c(0,g=a.element);"openingProperties"in a&&c(4,l=a.openingProperties)};a.$$.update=()=>{a.$$.dirty&16&&c(2,A=nc(l))};return[g,p,A,a=>{a.stopPropagation()},l,()=>g,d,e,f,function(a){k();a.tour.options.useModalOverlay?(m(a),h()):e()},h,function(a){aa[a?"unshift":"push"](()=>{g=a;c(0,g)})}]}var vb=function(a){var b;if(b=!!a&&"object"===typeof a)b=Object.prototype.toString.call(a),b=!("[object RegExp]"===b||"[object Date]"===b||a.$$typeof===
+qc);return b},qc="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;V.all=function(a,b){if(!Array.isArray(a))throw Error("first argument should be an array");return a.reduce(function(a,d){return V(a,d,b)},{})};var rc=V;class Ga{on(a,b,c,d=!1){void 0===this.bindings&&(this.bindings={});void 0===this.bindings[a]&&(this.bindings[a]=[]);this.bindings[a].push({handler:b,ctx:c,once:d});return this}once(a,b,c){return this.on(a,b,c,!0)}off(a,b){if(void 0===this.bindings||void 0===this.bindings[a])return this;
+void 0===b?delete this.bindings[a]:this.bindings[a].forEach((c,d)=>{c.handler===b&&this.bindings[a].splice(d,1)});return this}trigger(a,...b){void 0!==this.bindings&&this.bindings[a]&&this.bindings[a].forEach((c,d)=>{let {ctx:e,handler:f,once:h}=c;f.apply(e||this,b);h&&this.bindings[a].splice(d,1)});return this}}var ja=["top","bottom","right","left"],Wa=ja.reduce(function(a,b){return a.concat([b+"-start",b+"-end"])},[]),Va=[].concat(ja,["auto"]).reduce(function(a,b){return a.concat([b,b+"-start",
+b+"-end"])},[]),Ib="beforeRead read afterRead beforeMain main afterMain beforeWrite write afterWrite".split(" "),E=Math.max,M=Math.min,ma=Math.round,yb={top:"auto",right:"auto",bottom:"auto",left:"auto"},sa={passive:!0},zb={left:"right",right:"left",bottom:"top",top:"bottom"},Ab={start:"end",end:"start"},rb={placement:"bottom",modifiers:[],strategy:"absolute"},sc=function(a){void 0===a&&(a={});var b=a.defaultModifiers,c=void 0===b?[]:b;a=a.defaultOptions;var d=void 0===a?rb:a;return function(a,b,
+h){function e(){g.orderedModifiers.forEach(function(a){var b=a.name,c=a.options;c=void 0===c?{}:c;a=a.effect;"function"===typeof a&&(b=a({state:g,name:b,instance:t,options:c}),l.push(b||function(){}))})}function f(){l.forEach(function(a){return a()});l=[]}void 0===h&&(h=d);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},rb,d),modifiersData:{},elements:{reference:a,popper:b},attributes:{},styles:{}},l=[],p=!1,t={state:g,setOptions:function(h){f();g.options=Object.assign({},d,
+g.options,h);g.scrollParents={reference:ea(a)?ha(a):a.contextElement?ha(a.contextElement):[],popper:ha(b)};h=Hb(Kb([].concat(c,g.options.modifiers)));g.orderedModifiers=h.filter(function(a){return a.enabled});e();return t.update()},forceUpdate:function(){if(!p){var a=g.elements,b=a.reference;a=a.popper;if(Za(b,a))for(g.rects={reference:Fb(b,fa(a),"fixed"===g.options.strategy),popper:ta(a)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(a){return g.modifiersData[a.name]=
+Object.assign({},a.data)}),b=0;b<g.orderedModifiers.length;b++)if(!0===g.reset)g.reset=!1,b=-1;else{var c=g.orderedModifiers[b];a=c.fn;var d=c.options;d=void 0===d?{}:d;c=c.name;"function"===typeof a&&(g=a({state:g,options:d,name:c,instance:t})||g)}}},update:Jb(function(){return new Promise(function(a){t.forceUpdate();a(g)})}),destroy:function(){f();p=!0}};if(!Za(a,b))return t;t.setOptions(h).then(function(a){if(!p&&h.onFirstUpdate)h.onFirstUpdate(a)});return t}}({defaultModifiers:[{name:"eventListeners",
+enabled:!0,phase:"write",fn:function(){},effect:function(a){var b=a.state,c=a.instance;a=a.options;var d=a.scroll,e=void 0===d?!0:d;a=a.resize;var f=void 0===a?!0:a,h=z(b.elements.popper),k=[].concat(b.scrollParents.reference,b.scrollParents.popper);e&&k.forEach(function(a){a.addEventListener("scroll",c.update,sa)});f&&h.addEventListener("resize",c.update,sa);return function(){e&&k.forEach(function(a){a.removeEventListener("scroll",c.update,sa)});f&&h.removeEventListener("resize",c.update,sa)}},data:{}},
+{name:"popperOffsets",enabled:!0,phase:"read",fn:function(a){var b=a.state;b.modifiersData[a.name]=Ua({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(a){var b=a.state,c=a.options;a=c.gpuAcceleration;a=void 0===a?!0:a;var d=c.adaptive;d=void 0===d?!0:d;c=c.roundOffsets;c=void 0===c?!0:c;a={placement:F(b.placement),popper:b.elements.popper,popperRect:b.rects.popper,gpuAcceleration:a};
+null!=b.modifiersData.popperOffsets&&(b.styles.popper=Object.assign({},b.styles.popper,Qa(Object.assign({},a,{offsets:b.modifiersData.popperOffsets,position:b.options.strategy,adaptive:d,roundOffsets:c}))));null!=b.modifiersData.arrow&&(b.styles.arrow=Object.assign({},b.styles.arrow,Qa(Object.assign({},a,{offsets:b.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c}))));b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-placement":b.placement})},data:{}},{name:"applyStyles",
+enabled:!0,phase:"write",fn:function(a){var b=a.state;Object.keys(b.elements).forEach(function(a){var c=b.styles[a]||{},e=b.attributes[a]||{},f=b.elements[a];y(f)&&B(f)&&(Object.assign(f.style,c),Object.keys(e).forEach(function(a){var b=e[a];!1===b?f.removeAttribute(a):f.setAttribute(a,!0===b?"":b)}))})},effect:function(a){var b=a.state,c={popper:{position:b.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(b.elements.popper.style,c.popper);b.styles=
+c;b.elements.arrow&&Object.assign(b.elements.arrow.style,c.arrow);return function(){Object.keys(b.elements).forEach(function(a){var d=b.elements[a],f=b.attributes[a]||{};a=Object.keys(b.styles.hasOwnProperty(a)?b.styles[a]:c[a]).reduce(function(a,b){a[b]="";return a},{});y(d)&&B(d)&&(Object.assign(d.style,a),Object.keys(f).forEach(function(a){d.removeAttribute(a)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(a){var b=a.state,c=a.name;
+a=a.options.offset;var d=void 0===a?[0,0]:a;a=Va.reduce(function(a,c){var e=b.rects;var f=F(c);var h=0<=["left","top"].indexOf(f)?-1:1,k="function"===typeof d?d(Object.assign({},e,{placement:c})):d;e=k[0];k=k[1];e=e||0;k=(k||0)*h;f=0<=["left","right"].indexOf(f)?{x:k,y:e}:{x:e,y:k};a[c]=f;return a},{});var e=a[b.placement],f=e.x;e=e.y;null!=b.modifiersData.popperOffsets&&(b.modifiersData.popperOffsets.x+=f,b.modifiersData.popperOffsets.y+=e);b.modifiersData[c]=a}},{name:"flip",enabled:!0,phase:"main",
+fn:function(a){var b=a.state,c=a.options;a=a.name;if(!b.modifiersData[a]._skip){var d=c.mainAxis;d=void 0===d?!0:d;var e=c.altAxis;e=void 0===e?!0:e;var f=c.fallbackPlacements,h=c.padding,k=c.boundary,m=c.rootBoundary,g=c.altBoundary,l=c.flipVariations,p=void 0===l?!0:l,t=c.allowedAutoPlacements;c=b.options.placement;l=F(c);f=f||(l!==c&&p?Eb(c):[na(c)]);var A=[c].concat(f).reduce(function(a,c){return a.concat("auto"===F(c)?Db(b,{placement:c,boundary:k,rootBoundary:m,padding:h,flipVariations:p,allowedAutoPlacements:t}):
+c)},[]);c=b.rects.reference;f=b.rects.popper;var n=new Map;l=!0;for(var u=A[0],D=0;D<A.length;D++){var v=A[D],q=F(v),r="start"===v.split("-")[1],U=0<=["top","bottom"].indexOf(q),x=U?"width":"height",w=ia(b,{placement:v,boundary:k,rootBoundary:m,altBoundary:g,padding:h});r=U?r?"right":"left":r?"bottom":"top";c[x]>f[x]&&(r=na(r));x=na(r);U=[];d&&U.push(0>=w[q]);e&&U.push(0>=w[r],0>=w[x]);if(U.every(function(a){return a})){u=v;l=!1;break}n.set(v,U)}if(l)for(d=function(a){var b=A.find(function(b){if(b=
+n.get(b))return b.slice(0,a).every(function(a){return a})});if(b)return u=b,"break"},e=p?3:1;0<e&&"break"!==d(e);e--);b.placement!==u&&(b.modifiersData[a]._skip=!0,b.placement=u,b.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(a){var b=a.state,c=a.options;a=a.name;var d=c.mainAxis,e=void 0===d?!0:d;d=c.altAxis;var f=void 0===d?!1:d;d=c.tether;d=void 0===d?!0:d;var h=c.tetherOffset,k=void 0===h?0:h,m=ia(b,{boundary:c.boundary,rootBoundary:c.rootBoundary,
+padding:c.padding,altBoundary:c.altBoundary});c=F(b.placement);var g=b.placement.split("-")[1],l=!g,p=ua(c);c="x"===p?"y":"x";h=b.modifiersData.popperOffsets;var t=b.rects.reference,n=b.rects.popper,q="function"===typeof k?k(Object.assign({},b.rects,{placement:b.placement})):k;k={x:0,y:0};if(h){if(e||f){var u="y"===p?"top":"left",D="y"===p?"bottom":"right",v="y"===p?"height":"width",r=h[p],x=h[p]+m[u],w=h[p]-m[D],z=d?-n[v]/2:0,y="start"===g?t[v]:n[v];g="start"===g?-n[v]:-t[v];n=b.elements.arrow;n=
+d&&n?ta(n):{width:0,height:0};var B=b.modifiersData["arrow#persistent"]?b.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0};u=B[u];D=B[D];n=E(0,M(t[v],n[v]));y=l?t[v]/2-z-n-u-q:y-n-u-q;t=l?-t[v]/2+z+n+D+q:g+n+D+q;l=b.elements.arrow&&fa(b.elements.arrow);q=b.modifiersData.offset?b.modifiersData.offset[b.placement][p]:0;l=h[p]+y-q-(l?"y"===p?l.clientTop||0:l.clientLeft||0:0);t=h[p]+t-q;e&&(e=d?M(x,l):x,w=d?E(w,t):w,e=E(e,M(r,w)),h[p]=e,k[p]=e-r);f&&(f=h[c],e=f+m["x"===p?"top":
+"left"],m=f-m["x"===p?"bottom":"right"],e=d?M(e,l):e,d=d?E(m,t):m,d=E(e,M(f,d)),h[c]=d,k[c]=d-f)}b.modifiersData[a]=k}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(a){var b,c=a.state,d=a.name,e=a.options,f=c.elements.arrow,h=c.modifiersData.popperOffsets,k=F(c.placement);a=ua(k);k=0<=["left","right"].indexOf(k)?"height":"width";if(f&&h){e=e.padding;e="function"===typeof e?e(Object.assign({},c.rects,{placement:c.placement})):e;e=Oa("number"!==typeof e?e:Pa(e,ja));
+var m=ta(f),g="y"===a?"top":"left",l="y"===a?"bottom":"right",p=c.rects.reference[k]+c.rects.reference[a]-h[a]-c.rects.popper[k];h=h[a]-c.rects.reference[a];f=(f=fa(f))?"y"===a?f.clientHeight||0:f.clientWidth||0:0;h=f/2-m[k]/2+(p/2-h/2);k=E(e[g],M(h,f-m[k]-e[l]));c.modifiersData[d]=(b={},b[a]=k,b.centerOffset=k-h,b)}},effect:function(a){var b=a.state;a=a.options.element;a=void 0===a?"[data-popper-arrow]":a;if(null!=a){if("string"===typeof a&&(a=b.elements.popper.querySelector(a),!a))return;Ma(b.elements.popper,
+a)&&(b.elements.arrow=a)}},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(a){var b=a.state;a=a.name;var c=b.rects.reference,d=b.rects.popper,e=b.modifiersData.preventOverflow,f=ia(b,{elementContext:"reference"}),h=ia(b,{altBoundary:!0});c=Xa(f,c);d=Xa(h,d,e);e=Ya(c);h=Ya(d);b.modifiersData[a]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:e,hasPopperEscaped:h};b.attributes.popper=
+Object.assign({},b.attributes.popper,{"data-popper-reference-hidden":e,"data-popper-escaped":h})}}]});let P,ka=[],aa=[],qa=[],fb=[],Pb=Promise.resolve(),Fa=!1,Da=!1,Ea=new Set,ra=new Set,R;class K{$destroy(){O(this,1);this.$destroy=x}$on(a,b){let c=this.$$.callbacks[a]||(this.$$.callbacks[a]=[]);c.push(b);return()=>{let a=c.indexOf(b);-1!==a&&c.splice(a,1)}}$set(a){this.$$set&&0!==Object.keys(a).length&&(this.$$.skip_bound=!0,this.$$set(a),this.$$.skip_bound=!1)}}class Sb extends K{constructor(a){super();
+J(this,a,Rb,Qb,I,{config:6,step:7})}}class gc extends K{constructor(a){super();J(this,a,Ub,Tb,I,{step:0})}}class $b extends K{constructor(a){super();J(this,a,Wb,Vb,I,{cancelIcon:0,step:2})}}class Zb extends K{constructor(a){super();J(this,a,Yb,Xb,I,{labelId:1,element:0,title:2})}}class ec extends K{constructor(a){super();J(this,a,bc,ac,I,{labelId:0,step:1})}}class fc extends K{constructor(a){super();J(this,a,dc,cc,I,{descriptionId:1,element:0,step:2})}}class kc extends K{constructor(a){super();J(this,
+a,ic,hc,I,{descriptionId:0,labelId:1,step:2})}}class tc extends K{constructor(a){super();J(this,a,lc,jc,I,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}var sb=function(a,b){return b={exports:{}},a(b,b.exports),b.exports}(function(a,b){(function(){a.exports={polyfill:function(){function a(a,b){this.scrollLeft=a;this.scrollTop=b}function b(a){if(null===
+a||"object"!==typeof a||void 0===a.behavior||"auto"===a.behavior||"instant"===a.behavior)return!0;if("object"===typeof a&&"smooth"===a.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+a.behavior+" is not a valid value for enumeration ScrollBehavior.");}function e(a,b){if("Y"===b)return a.clientHeight+r<a.scrollHeight;if("X"===b)return a.clientWidth+r<a.scrollWidth}function f(a,b){a=g.getComputedStyle(a,null)["overflow"+b];return"auto"===a||"scroll"===a}function h(a){var b=
+e(a,"Y")&&f(a,"Y");a=e(a,"X")&&f(a,"X");return b||a}function k(a){var b=(q()-a.startTime)/468;var c=.5*(1-Math.cos(Math.PI*(1<b?1:b)));b=a.startX+(a.x-a.startX)*c;c=a.startY+(a.y-a.startY)*c;a.method.call(a.scrollable,b,c);b===a.x&&c===a.y||g.requestAnimationFrame(k.bind(g,a))}function m(b,c,d){var e=q();if(b===l.body){var f=g;var h=g.scrollX||g.pageXOffset;b=g.scrollY||g.pageYOffset;var u=n.scroll}else f=b,h=b.scrollLeft,b=b.scrollTop,u=a;k({scrollable:f,method:u,startTime:e,startX:h,startY:b,x:c,
+y:d})}var g=window,l=document;if(!("scrollBehavior"in l.documentElement.style&&!0!==g.__forceSmoothScrollPolyfill__)){var p=g.HTMLElement||g.Element,n={scroll:g.scroll||g.scrollTo,scrollBy:g.scrollBy,elementScroll:p.prototype.scroll||a,scrollIntoView:p.prototype.scrollIntoView},q=g.performance&&g.performance.now?g.performance.now.bind(g.performance):Date.now,r=/MSIE |Trident\/|Edge\//.test(g.navigator.userAgent)?1:0;g.scroll=g.scrollTo=function(a,c){void 0!==a&&(!0===b(a)?n.scroll.call(g,void 0!==
+a.left?a.left:"object"!==typeof a?a:g.scrollX||g.pageXOffset,void 0!==a.top?a.top:void 0!==c?c:g.scrollY||g.pageYOffset):m.call(g,l.body,void 0!==a.left?~~a.left:g.scrollX||g.pageXOffset,void 0!==a.top?~~a.top:g.scrollY||g.pageYOffset))};g.scrollBy=function(a,c){void 0!==a&&(b(a)?n.scrollBy.call(g,void 0!==a.left?a.left:"object"!==typeof a?a:0,void 0!==a.top?a.top:void 0!==c?c:0):m.call(g,l.body,~~a.left+(g.scrollX||g.pageXOffset),~~a.top+(g.scrollY||g.pageYOffset)))};p.prototype.scroll=p.prototype.scrollTo=
+function(a,c){if(void 0!==a)if(!0===b(a)){if("number"===typeof a&&void 0===c)throw new SyntaxError("Value could not be converted");n.elementScroll.call(this,void 0!==a.left?~~a.left:"object"!==typeof a?~~a:this.scrollLeft,void 0!==a.top?~~a.top:void 0!==c?~~c:this.scrollTop)}else c=a.left,a=a.top,m.call(this,this,"undefined"===typeof c?this.scrollLeft:~~c,"undefined"===typeof a?this.scrollTop:~~a)};p.prototype.scrollBy=function(a,c){void 0!==a&&(!0===b(a)?n.elementScroll.call(this,void 0!==a.left?
+~~a.left+this.scrollLeft:~~a+this.scrollLeft,void 0!==a.top?~~a.top+this.scrollTop:~~c+this.scrollTop):this.scroll({left:~~a.left+this.scrollLeft,top:~~a.top+this.scrollTop,behavior:a.behavior}))};p.prototype.scrollIntoView=function(a){if(!0===b(a))n.scrollIntoView.call(this,void 0===a?!0:a);else{for(a=this;a!==l.body&&!1===h(a);)a=a.parentNode||a.host;var c=a.getBoundingClientRect(),d=this.getBoundingClientRect();a!==l.body?(m.call(this,a,a.scrollLeft+d.left-c.left,a.scrollTop+d.top-c.top),"fixed"!==
+g.getComputedStyle(a).position&&g.scrollBy({left:c.left,top:c.top,behavior:"smooth"})):g.scrollBy({left:d.left,top:d.top,behavior:"smooth"})}}}}}})()});sb.polyfill;sb.polyfill();class Ha extends Ga{constructor(a,b={}){super(a,b);this.tour=a;this.classPrefix=this.tour.options?$a(this.tour.options.classPrefix):"";this.styles=a.styles;Ka(this);this._setOptions(b);return this}cancel(){this.tour.cancel();this.trigger("cancel")}complete(){this.tour.complete();this.trigger("complete")}destroy(){this.tooltip&&
+(this.tooltip.destroy(),this.tooltip=null);this.el instanceof HTMLElement&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null);this._updateStepTargetOnHide();this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide();this.trigger("before-hide");this.el&&(this.el.hidden=!0);this._updateStepTargetOnHide();this.trigger("hide")}isCentered(){let a=Aa(this);return!a.element||!a.on}isOpen(){return!(!this.el||this.el.hidden)}show(){if(W(this.options.beforeShowPromise)){let a=
+this.options.beforeShowPromise();if(void 0!==a)return a.then(()=>this._show())}this._show()}updateStepOptions(a){Object.assign(this.options,a);this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){this.shepherdElementComponent=new tc({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:`${this.id}-description`,labelId:`${this.id}-label`,step:this,
+styles:this.styles}});return this.shepherdElementComponent.getElement()}_scrollTo(a){let {element:b}=Aa(this);W(this.options.scrollToHandler)?this.options.scrollToHandler(b):b instanceof Element&&"function"===typeof b.scrollIntoView&&b.scrollIntoView(a)}_getClassOptions(a){var b=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;b=b&&b.classes?b.classes:"";a=[...(a.classes?a.classes:"").split(" "),...b.split(" ")];a=new Set(a);return Array.from(a).join(" ").trim()}_setOptions(a={}){let b=
+this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;b=rc({},b||{});this.options=Object.assign({arrow:!0},b,a);let {when:c}=this.options;this.options.classes=this._getClassOptions(a);this.destroy();this.id=this.options.id||`step-${Ba()}`;c&&Object.keys(c).forEach(a=>{this.on(a,c[a],this)})}_setupElements(){void 0!==this.el&&this.destroy();this.el=this._createTooltipContent();this.options.advanceOn&&xb(this);{this.tooltip&&this.tooltip.destroy();let a=Aa(this),b=a.element,c=Nb(a,this);
+this.isCentered()&&(b=document.body,this.shepherdElementComponent.getElement().classList.add("shepherd-centered"));this.tooltip=sc(b,this.el,c);this.target=a.element}}_show(){this.trigger("before-show");this._setupElements();this.tour.modal||this.tour._setupModal();this.tour.modal.setupForStep(this);this._styleTargetElementForStep(this);this.el.hidden=!1;this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)});this.el.hidden=!1;let a=this.shepherdElementComponent.getElement(),
+b=this.target||document.body;b.classList.add(`${this.classPrefix}shepherd-enabled`);b.classList.add(`${this.classPrefix}shepherd-target`);a.classList.add("shepherd-enabled");this.trigger("show")}_styleTargetElementForStep(a){let b=a.target;b&&(a.options.highlightClass&&b.classList.add(a.options.highlightClass),!1===a.options.canClickTarget&&b.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){let a=this.target||document.body;this.options.highlightClass&&a.classList.remove(this.options.highlightClass);
+a.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}class uc extends K{constructor(a){super();J(this,a,pc,oc,I,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}
+let ba=new Ga;class vc extends Ga{constructor(a={}){super(a);Ka(this);this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},a);this.classPrefix=$a(this.options.classPrefix);this.steps=[];this.addSteps(this.options.steps);"active cancel complete inactive show start".split(" ").map(a=>{(a=>{this.on(a,b=>{b=b||{};b.tour=this;ba.trigger(a,b)})})(a)});this._setTourID();return this}addStep(a,b){a instanceof Ha?a.tour=this:a=new Ha(this,a);void 0!==b?this.steps.splice(b,0,a):this.steps.push(a);
+return a}addSteps(a){Array.isArray(a)&&a.forEach(a=>{this.addStep(a)});return this}back(){let a=this.steps.indexOf(this.currentStep);this.show(a-1,!1)}cancel(){this.options.confirmCancel?window.confirm(this.options.confirmCancelMessage||"Are you sure you want to stop the tour?")&&this._done("cancel"):this._done("cancel")}complete(){this._done("complete")}getById(a){return this.steps.find(b=>b.id===a)}getCurrentStep(){return this.currentStep}hide(){let a=this.getCurrentStep();if(a)return a.hide()}isActive(){return ba.activeTour===
+this}next(){let a=this.steps.indexOf(this.currentStep);a===this.steps.length-1?this.complete():this.show(a+1,!0)}removeStep(a){let b=this.getCurrentStep();this.steps.some((b,d)=>{if(b.id===a)return b.isOpen()&&b.hide(),b.destroy(),this.steps.splice(d,1),!0});b&&b.id===a&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(a=0,b=!0){if(a=da(a)?this.getById(a):this.steps[a])this._updateStateBeforeShow(),W(a.options.showOn)&&!a.options.showOn()?this._skipStep(a,b):(this.trigger("show",
+{step:a,previous:this.currentStep}),this.currentStep=a,a.show())}start(){this.trigger("start");this.focusedElBeforeOpen=document.activeElement;this.currentStep=null;this._setupModal();this._setupActiveTour();this.next()}_done(a){let b=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach(a=>a.destroy());mc(this);this.trigger(a,{index:b});ba.activeTour=null;this.trigger("inactive",{tour:this});this.modal&&this.modal.hide();"cancel"!==a&&"complete"!==a||!this.modal||(a=
+document.querySelector(".shepherd-modal-overlay-container"))&&a.remove();this.focusedElBeforeOpen instanceof HTMLElement&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this});ba.activeTour=this}_setupModal(){this.modal=new uc({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(a,b){a=this.steps.indexOf(a);this.show(b?a+1:a-1,b)}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide();this.isActive()||
+this._setupActiveTour()}_setTourID(){this.id=`${this.options.tourName||"tour"}--${Ba()}`}}Object.assign(ba,{Tour:vc,Step:Ha});return ba})
+//# sourceMappingURL=shepherd.min.js.map
diff --git a/core/assets/vendor/shepherd/shepherd.min.js.map b/core/assets/vendor/shepherd/shepherd.min.js.map
new file mode 100644
index 0000000000000000000000000000000000000000..e015420b1719cd7eda91c018f434920740715ebd
--- /dev/null
+++ b/core/assets/vendor/shepherd/shepherd.min.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"shepherd.min.js","sources":["../../node_modules/deepmerge/dist/cjs.js","../../src/js/utils/type-check.js","../../src/js/utils/auto-bind.js","../../src/js/utils/bind.js","../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../node_modules/@popperjs/core/lib/dom-utils/contains.js","../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../node_modules/@popperjs/core/lib/enums.js","../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../node_modules/@popperjs/core/lib/utils/getVariation.js","../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../node_modules/@popperjs/core/lib/modifiers/flip.js","../../node_modules/@popperjs/core/lib/modifiers/hide.js","../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../node_modules/@popperjs/core/lib/utils/debounce.js","../../node_modules/@popperjs/core/lib/utils/mergeByName.js","../../node_modules/@popperjs/core/lib/createPopper.js","../../src/js/utils/popper-options.js","../../src/js/utils/general.js","../../node_modules/svelte/internal/index.mjs","../../src/js/components/shepherd-button.svelte","../../src/js/components/shepherd-footer.svelte","../../src/js/components/shepherd-cancel-icon.svelte","../../src/js/components/shepherd-title.svelte","../../src/js/components/shepherd-header.svelte","../../src/js/components/shepherd-text.svelte","../../src/js/components/shepherd-content.svelte","../../src/js/components/shepherd-element.svelte","../../src/js/utils/cleanup.js","../../src/js/utils/overlay-path.js","../../src/js/components/shepherd-modal.svelte","../../src/js/evented.js","../../node_modules/@popperjs/core/lib/utils/math.js","../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../node_modules/@popperjs/core/lib/popper.js","../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../node_modules/@popperjs/core/lib/modifiers/offset.js","../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../node_modules/@popperjs/core/lib/utils/within.js","../../node_modules/@popperjs/core/lib/modifiers/arrow.js","../../node_modules/smoothscroll-polyfill/dist/smoothscroll.js","../../src/js/step.js","../../src/js/tour.js","../../src/js/shepherd.js"],"sourcesContent":["'use strict';\n\nvar isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction getMergeFunction(key, options) {\n\tif (!options.customMerge) {\n\t\treturn deepmerge\n\t}\n\tvar customMerge = options.customMerge(key);\n\treturn typeof customMerge === 'function' ? customMerge : deepmerge\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n\treturn Object.getOwnPropertySymbols\n\t\t? Object.getOwnPropertySymbols(target).filter(function(symbol) {\n\t\t\treturn target.propertyIsEnumerable(symbol)\n\t\t})\n\t\t: []\n}\n\nfunction getKeys(target) {\n\treturn Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))\n}\n\nfunction propertyIsOnObject(object, property) {\n\ttry {\n\t\treturn property in object\n\t} catch(_) {\n\t\treturn false\n\t}\n}\n\n// Protects from prototype poisoning and unexpected merging up the prototype chain.\nfunction propertyIsUnsafe(target, key) {\n\treturn propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n\t\t&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n\t\t\t&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tgetKeys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tgetKeys(source).forEach(function(key) {\n\t\tif (propertyIsUnsafe(target, key)) {\n\t\t\treturn\n\t\t}\n\n\t\tif (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n\t\t\tdestination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\t// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n\t// implementations can use it. The caller may not replace it.\n\toptions.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nmodule.exports = deepmerge_1;\n","/**\n * Checks if `value` is classified as an `Element`.\n * @param {*} value The param to check if it is an Element\n */\nexport function isElement(value) {\n  return value instanceof Element;\n}\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 isHTMLElement(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 `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","/**\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.currentTarget === step.el;\n      const targetIsSelector = !isUndefined(selector) && event.currentTarget.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","export default function getNodeName(element) {\n  return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n  if (node == null) {\n    return window;\n  }\n\n  if (node.toString() !== '[object Window]') {\n    var ownerDocument = node.ownerDocument;\n    return ownerDocument ? ownerDocument.defaultView || window : window;\n  }\n\n  return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n  var OwnElement = getWindow(node).Element;\n  return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n  var OwnElement = getWindow(node).HTMLElement;\n  return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n  // IE 11 has no ShadowRoot\n  if (typeof ShadowRoot === 'undefined') {\n    return false;\n  }\n\n  var OwnElement = getWindow(node).ShadowRoot;\n  return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n  return placement.split('-')[0];\n}","export default function getBoundingClientRect(element) {\n  var rect = element.getBoundingClientRect();\n  return {\n    width: rect.width,\n    height: rect.height,\n    top: rect.top,\n    right: rect.right,\n    bottom: rect.bottom,\n    left: rect.left,\n    x: rect.left,\n    y: rect.top\n  };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n  var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n  // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n  var width = element.offsetWidth;\n  var height = element.offsetHeight;\n\n  if (Math.abs(clientRect.width - width) <= 1) {\n    width = clientRect.width;\n  }\n\n  if (Math.abs(clientRect.height - height) <= 1) {\n    height = clientRect.height;\n  }\n\n  return {\n    x: element.offsetLeft,\n    y: element.offsetTop,\n    width: width,\n    height: height\n  };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n  var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n  if (parent.contains(child)) {\n    return true;\n  } // then fallback to custom implementation with Shadow DOM support\n  else if (rootNode && isShadowRoot(rootNode)) {\n      var next = child;\n\n      do {\n        if (next && parent.isSameNode(next)) {\n          return true;\n        } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n        next = next.parentNode || next.host;\n      } while (next);\n    } // Give up, the result is false\n\n\n  return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n  return getWindow(element).getComputedStyle(element);\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n  // $FlowFixMe[incompatible-return]: assume body is always available\n  return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n  element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n  if (getNodeName(element) === 'html') {\n    return element;\n  }\n\n  return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n    // $FlowFixMe[incompatible-return]\n    // $FlowFixMe[prop-missing]\n    element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n    element.parentNode || ( // DOM Element detected\n    isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n    // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n    getDocumentElement(element) // fallback\n\n  );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\n\nfunction getTrueOffsetParent(element) {\n  if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n  getComputedStyle(element).position === 'fixed') {\n    return null;\n  }\n\n  return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n  var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n  var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n  if (isIE && isHTMLElement(element)) {\n    // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n    var elementCss = getComputedStyle(element);\n\n    if (elementCss.position === 'fixed') {\n      return null;\n    }\n  }\n\n  var currentNode = getParentNode(element);\n\n  while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n    var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n    // create a containing block.\n    // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n    if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n      return currentNode;\n    } else {\n      currentNode = currentNode.parentNode;\n    }\n  }\n\n  return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n  var window = getWindow(element);\n  var offsetParent = getTrueOffsetParent(element);\n\n  while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n    offsetParent = getTrueOffsetParent(offsetParent);\n  }\n\n  if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n    return window;\n  }\n\n  return offsetParent || getContainingBlock(element) || window;\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n  return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","export default function getMainAxisFromPlacement(placement) {\n  return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n  return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function getFreshSideObject() {\n  return {\n    top: 0,\n    right: 0,\n    bottom: 0,\n    left: 0\n  };\n}","export default function expandToHashMap(value, keys) {\n  return keys.reduce(function (hashMap, key) {\n    hashMap[key] = value;\n    return hashMap;\n  }, {});\n}","import { top, left, right, bottom } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n  top: 'auto',\n  right: 'auto',\n  bottom: 'auto',\n  left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref) {\n  var x = _ref.x,\n      y = _ref.y;\n  var win = window;\n  var dpr = win.devicePixelRatio || 1;\n  return {\n    x: round(round(x * dpr) / dpr) || 0,\n    y: round(round(y * dpr) / dpr) || 0\n  };\n}\n\nexport function mapToStyles(_ref2) {\n  var _Object$assign2;\n\n  var popper = _ref2.popper,\n      popperRect = _ref2.popperRect,\n      placement = _ref2.placement,\n      offsets = _ref2.offsets,\n      position = _ref2.position,\n      gpuAcceleration = _ref2.gpuAcceleration,\n      adaptive = _ref2.adaptive,\n      roundOffsets = _ref2.roundOffsets;\n\n  var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,\n      _ref3$x = _ref3.x,\n      x = _ref3$x === void 0 ? 0 : _ref3$x,\n      _ref3$y = _ref3.y,\n      y = _ref3$y === void 0 ? 0 : _ref3$y;\n\n  var hasX = offsets.hasOwnProperty('x');\n  var hasY = offsets.hasOwnProperty('y');\n  var sideX = left;\n  var sideY = top;\n  var win = window;\n\n  if (adaptive) {\n    var offsetParent = getOffsetParent(popper);\n    var heightProp = 'clientHeight';\n    var widthProp = 'clientWidth';\n\n    if (offsetParent === getWindow(popper)) {\n      offsetParent = getDocumentElement(popper);\n\n      if (getComputedStyle(offsetParent).position !== 'static') {\n        heightProp = 'scrollHeight';\n        widthProp = 'scrollWidth';\n      }\n    } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n    offsetParent = offsetParent;\n\n    if (placement === top) {\n      sideY = bottom; // $FlowFixMe[prop-missing]\n\n      y -= offsetParent[heightProp] - popperRect.height;\n      y *= gpuAcceleration ? 1 : -1;\n    }\n\n    if (placement === left) {\n      sideX = right; // $FlowFixMe[prop-missing]\n\n      x -= offsetParent[widthProp] - popperRect.width;\n      x *= gpuAcceleration ? 1 : -1;\n    }\n  }\n\n  var commonStyles = Object.assign({\n    position: position\n  }, adaptive && unsetSides);\n\n  if (gpuAcceleration) {\n    var _Object$assign;\n\n    return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n  }\n\n  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref4) {\n  var state = _ref4.state,\n      options = _ref4.options;\n  var _options$gpuAccelerat = options.gpuAcceleration,\n      gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n      _options$adaptive = options.adaptive,\n      adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n      _options$roundOffsets = options.roundOffsets,\n      roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n\n  if (process.env.NODE_ENV !== \"production\") {\n    var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';\n\n    if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {\n      return transitionProperty.indexOf(property) >= 0;\n    })) {\n      console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: \"transform\", \"top\", \"right\", \"bottom\", \"left\".', '\\n\\n', 'Disable the \"computeStyles\" modifier\\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\\n\\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));\n    }\n  }\n\n  var commonStyles = {\n    placement: getBasePlacement(state.placement),\n    popper: state.elements.popper,\n    popperRect: state.rects.popper,\n    gpuAcceleration: gpuAcceleration\n  };\n\n  if (state.modifiersData.popperOffsets != null) {\n    state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n      offsets: state.modifiersData.popperOffsets,\n      position: state.options.strategy,\n      adaptive: adaptive,\n      roundOffsets: roundOffsets\n    })));\n  }\n\n  if (state.modifiersData.arrow != null) {\n    state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n      offsets: state.modifiersData.arrow,\n      position: 'absolute',\n      adaptive: false,\n      roundOffsets: roundOffsets\n    })));\n  }\n\n  state.attributes.popper = Object.assign({}, state.attributes.popper, {\n    'data-popper-placement': state.placement\n  });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'computeStyles',\n  enabled: true,\n  phase: 'beforeWrite',\n  fn: computeStyles,\n  data: {}\n};","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n  return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n  return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","var hash = {\n  left: 'right',\n  right: 'left',\n  bottom: 'top',\n  top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n  return placement.replace(/left|right|bottom|top/g, function (matched) {\n    return hash[matched];\n  });\n}","var hash = {\n  start: 'end',\n  end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n  return placement.replace(/start|end/g, function (matched) {\n    return hash[matched];\n  });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n  var win = getWindow(node);\n  var scrollLeft = win.pageXOffset;\n  var scrollTop = win.pageYOffset;\n  return {\n    scrollLeft: scrollLeft,\n    scrollTop: scrollTop\n  };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n  // If <html> has a CSS width greater than the viewport, then this will be\n  // incorrect for RTL.\n  // Popper 1 is broken in this case and never had a bug report so let's assume\n  // it's not an issue. I don't think anyone ever specifies width on <html>\n  // anyway.\n  // Browsers where the left scrollbar doesn't cause an issue report `0` for\n  // this (e.g. Edge 2019, IE11, Safari)\n  return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n  // Firefox wants us to check `-x` and `-y` variations as well\n  var _getComputedStyle = getComputedStyle(element),\n      overflow = _getComputedStyle.overflow,\n      overflowX = _getComputedStyle.overflowX,\n      overflowY = _getComputedStyle.overflowY;\n\n  return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n  if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n    // $FlowFixMe[incompatible-return]: assume body is always available\n    return node.ownerDocument.body;\n  }\n\n  if (isHTMLElement(node) && isScrollParent(node)) {\n    return node;\n  }\n\n  return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n  var _element$ownerDocumen;\n\n  if (list === void 0) {\n    list = [];\n  }\n\n  var scrollParent = getScrollParent(element);\n  var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n  var win = getWindow(scrollParent);\n  var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n  var updatedList = list.concat(target);\n  return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n  updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n  return Object.assign({}, rect, {\n    left: rect.x,\n    top: rect.y,\n    right: rect.x + rect.width,\n    bottom: rect.y + rect.height\n  });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element) {\n  var rect = getBoundingClientRect(element);\n  rect.top = rect.top + element.clientTop;\n  rect.left = rect.left + element.clientLeft;\n  rect.bottom = rect.top + element.clientHeight;\n  rect.right = rect.left + element.clientWidth;\n  rect.width = element.clientWidth;\n  rect.height = element.clientHeight;\n  rect.x = rect.left;\n  rect.y = rect.top;\n  return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent) {\n  return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n  var clippingParents = listScrollParents(getParentNode(element));\n  var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n  var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n  if (!isElement(clipperElement)) {\n    return [];\n  } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n  return clippingParents.filter(function (clippingParent) {\n    return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n  });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary) {\n  var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n  var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n  var firstClippingParent = clippingParents[0];\n  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n    var rect = getClientRectFromMixedType(element, clippingParent);\n    accRect.top = max(rect.top, accRect.top);\n    accRect.right = min(rect.right, accRect.right);\n    accRect.bottom = min(rect.bottom, accRect.bottom);\n    accRect.left = max(rect.left, accRect.left);\n    return accRect;\n  }, getClientRectFromMixedType(element, firstClippingParent));\n  clippingRect.width = clippingRect.right - clippingRect.left;\n  clippingRect.height = clippingRect.bottom - clippingRect.top;\n  clippingRect.x = clippingRect.left;\n  clippingRect.y = clippingRect.top;\n  return clippingRect;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nexport default function getViewportRect(element) {\n  var win = getWindow(element);\n  var html = getDocumentElement(element);\n  var visualViewport = win.visualViewport;\n  var width = html.clientWidth;\n  var height = html.clientHeight;\n  var x = 0;\n  var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper\n  // can be obscured underneath it.\n  // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even\n  // if it isn't open, so if this isn't available, the popper will be detected\n  // to overflow the bottom of the screen too early.\n\n  if (visualViewport) {\n    width = visualViewport.width;\n    height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)\n    // In Chrome, it returns a value very close to 0 (+/-) but contains rounding\n    // errors due to floating point numbers, so we need to check precision.\n    // Safari returns a number <= 0, usually < -1 when pinch-zoomed\n    // Feature detection fails in mobile emulation mode in Chrome.\n    // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <\n    // 0.001\n    // Fallback here: \"Not Safari\" userAgent\n\n    if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {\n      x = visualViewport.offsetLeft;\n      y = visualViewport.offsetTop;\n    }\n  }\n\n  return {\n    width: width,\n    height: height,\n    x: x + getWindowScrollBarX(element),\n    y: y\n  };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n  var _element$ownerDocumen;\n\n  var html = getDocumentElement(element);\n  var winScroll = getWindowScroll(element);\n  var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n  var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n  var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n  var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n  var y = -winScroll.scrollTop;\n\n  if (getComputedStyle(body || html).direction === 'rtl') {\n    x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n  }\n\n  return {\n    width: width,\n    height: height,\n    x: x,\n    y: y\n  };\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n  var reference = _ref.reference,\n      element = _ref.element,\n      placement = _ref.placement;\n  var basePlacement = placement ? getBasePlacement(placement) : null;\n  var variation = placement ? getVariation(placement) : null;\n  var commonX = reference.x + reference.width / 2 - element.width / 2;\n  var commonY = reference.y + reference.height / 2 - element.height / 2;\n  var offsets;\n\n  switch (basePlacement) {\n    case top:\n      offsets = {\n        x: commonX,\n        y: reference.y - element.height\n      };\n      break;\n\n    case bottom:\n      offsets = {\n        x: commonX,\n        y: reference.y + reference.height\n      };\n      break;\n\n    case right:\n      offsets = {\n        x: reference.x + reference.width,\n        y: commonY\n      };\n      break;\n\n    case left:\n      offsets = {\n        x: reference.x - element.width,\n        y: commonY\n      };\n      break;\n\n    default:\n      offsets = {\n        x: reference.x,\n        y: reference.y\n      };\n  }\n\n  var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n  if (mainAxis != null) {\n    var len = mainAxis === 'y' ? 'height' : 'width';\n\n    switch (variation) {\n      case start:\n        offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n        break;\n\n      case end:\n        offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n        break;\n\n      default:\n    }\n  }\n\n  return offsets;\n}","export default function getVariation(placement) {\n  return placement.split('-')[1];\n}","import getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n  if (options === void 0) {\n    options = {};\n  }\n\n  var _options = options,\n      _options$placement = _options.placement,\n      placement = _options$placement === void 0 ? state.placement : _options$placement,\n      _options$boundary = _options.boundary,\n      boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n      _options$rootBoundary = _options.rootBoundary,\n      rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n      _options$elementConte = _options.elementContext,\n      elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n      _options$altBoundary = _options.altBoundary,\n      altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n      _options$padding = _options.padding,\n      padding = _options$padding === void 0 ? 0 : _options$padding;\n  var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n  var altContext = elementContext === popper ? reference : popper;\n  var referenceElement = state.elements.reference;\n  var popperRect = state.rects.popper;\n  var element = state.elements[altBoundary ? altContext : elementContext];\n  var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);\n  var referenceClientRect = getBoundingClientRect(referenceElement);\n  var popperOffsets = computeOffsets({\n    reference: referenceClientRect,\n    element: popperRect,\n    strategy: 'absolute',\n    placement: placement\n  });\n  var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n  var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n  // 0 or negative = within the clipping rect\n\n  var overflowOffsets = {\n    top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n    bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n    left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n    right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n  };\n  var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n  if (elementContext === popper && offsetData) {\n    var offset = offsetData[placement];\n    Object.keys(overflowOffsets).forEach(function (key) {\n      var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n      var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n      overflowOffsets[key] += offset[axis] * multiply;\n    });\n  }\n\n  return overflowOffsets;\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n  if (options === void 0) {\n    options = {};\n  }\n\n  var _options = options,\n      placement = _options.placement,\n      boundary = _options.boundary,\n      rootBoundary = _options.rootBoundary,\n      padding = _options.padding,\n      flipVariations = _options.flipVariations,\n      _options$allowedAutoP = _options.allowedAutoPlacements,\n      allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n  var variation = getVariation(placement);\n  var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n    return getVariation(placement) === variation;\n  }) : basePlacements;\n  var allowedPlacements = placements.filter(function (placement) {\n    return allowedAutoPlacements.indexOf(placement) >= 0;\n  });\n\n  if (allowedPlacements.length === 0) {\n    allowedPlacements = placements;\n\n    if (process.env.NODE_ENV !== \"production\") {\n      console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, \"auto\" cannot be used to allow \"bottom-start\".', 'Use \"auto-start\" instead.'].join(' '));\n    }\n  } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n  var overflows = allowedPlacements.reduce(function (acc, placement) {\n    acc[placement] = detectOverflow(state, {\n      placement: placement,\n      boundary: boundary,\n      rootBoundary: rootBoundary,\n      padding: padding\n    })[getBasePlacement(placement)];\n    return acc;\n  }, {});\n  return Object.keys(overflows).sort(function (a, b) {\n    return overflows[a] - overflows[b];\n  });\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n  if (getBasePlacement(placement) === auto) {\n    return [];\n  }\n\n  var oppositePlacement = getOppositePlacement(placement);\n  return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n  var state = _ref.state,\n      options = _ref.options,\n      name = _ref.name;\n\n  if (state.modifiersData[name]._skip) {\n    return;\n  }\n\n  var _options$mainAxis = options.mainAxis,\n      checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n      _options$altAxis = options.altAxis,\n      checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n      specifiedFallbackPlacements = options.fallbackPlacements,\n      padding = options.padding,\n      boundary = options.boundary,\n      rootBoundary = options.rootBoundary,\n      altBoundary = options.altBoundary,\n      _options$flipVariatio = options.flipVariations,\n      flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n      allowedAutoPlacements = options.allowedAutoPlacements;\n  var preferredPlacement = state.options.placement;\n  var basePlacement = getBasePlacement(preferredPlacement);\n  var isBasePlacement = basePlacement === preferredPlacement;\n  var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n  var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n    return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n      placement: placement,\n      boundary: boundary,\n      rootBoundary: rootBoundary,\n      padding: padding,\n      flipVariations: flipVariations,\n      allowedAutoPlacements: allowedAutoPlacements\n    }) : placement);\n  }, []);\n  var referenceRect = state.rects.reference;\n  var popperRect = state.rects.popper;\n  var checksMap = new Map();\n  var makeFallbackChecks = true;\n  var firstFittingPlacement = placements[0];\n\n  for (var i = 0; i < placements.length; i++) {\n    var placement = placements[i];\n\n    var _basePlacement = getBasePlacement(placement);\n\n    var isStartVariation = getVariation(placement) === start;\n    var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n    var len = isVertical ? 'width' : 'height';\n    var overflow = detectOverflow(state, {\n      placement: placement,\n      boundary: boundary,\n      rootBoundary: rootBoundary,\n      altBoundary: altBoundary,\n      padding: padding\n    });\n    var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n    if (referenceRect[len] > popperRect[len]) {\n      mainVariationSide = getOppositePlacement(mainVariationSide);\n    }\n\n    var altVariationSide = getOppositePlacement(mainVariationSide);\n    var checks = [];\n\n    if (checkMainAxis) {\n      checks.push(overflow[_basePlacement] <= 0);\n    }\n\n    if (checkAltAxis) {\n      checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n    }\n\n    if (checks.every(function (check) {\n      return check;\n    })) {\n      firstFittingPlacement = placement;\n      makeFallbackChecks = false;\n      break;\n    }\n\n    checksMap.set(placement, checks);\n  }\n\n  if (makeFallbackChecks) {\n    // `2` may be desired in some cases – research later\n    var numberOfChecks = flipVariations ? 3 : 1;\n\n    var _loop = function _loop(_i) {\n      var fittingPlacement = placements.find(function (placement) {\n        var checks = checksMap.get(placement);\n\n        if (checks) {\n          return checks.slice(0, _i).every(function (check) {\n            return check;\n          });\n        }\n      });\n\n      if (fittingPlacement) {\n        firstFittingPlacement = fittingPlacement;\n        return \"break\";\n      }\n    };\n\n    for (var _i = numberOfChecks; _i > 0; _i--) {\n      var _ret = _loop(_i);\n\n      if (_ret === \"break\") break;\n    }\n  }\n\n  if (state.placement !== firstFittingPlacement) {\n    state.modifiersData[name]._skip = true;\n    state.placement = firstFittingPlacement;\n    state.reset = true;\n  }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'flip',\n  enabled: true,\n  phase: 'main',\n  fn: flip,\n  requiresIfExists: ['offset'],\n  data: {\n    _skip: false\n  }\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n  if (preventedOffsets === void 0) {\n    preventedOffsets = {\n      x: 0,\n      y: 0\n    };\n  }\n\n  return {\n    top: overflow.top - rect.height - preventedOffsets.y,\n    right: overflow.right - rect.width + preventedOffsets.x,\n    bottom: overflow.bottom - rect.height + preventedOffsets.y,\n    left: overflow.left - rect.width - preventedOffsets.x\n  };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n  return [top, right, bottom, left].some(function (side) {\n    return overflow[side] >= 0;\n  });\n}\n\nfunction hide(_ref) {\n  var state = _ref.state,\n      name = _ref.name;\n  var referenceRect = state.rects.reference;\n  var popperRect = state.rects.popper;\n  var preventedOffsets = state.modifiersData.preventOverflow;\n  var referenceOverflow = detectOverflow(state, {\n    elementContext: 'reference'\n  });\n  var popperAltOverflow = detectOverflow(state, {\n    altBoundary: true\n  });\n  var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n  var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n  var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n  var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n  state.modifiersData[name] = {\n    referenceClippingOffsets: referenceClippingOffsets,\n    popperEscapeOffsets: popperEscapeOffsets,\n    isReferenceHidden: isReferenceHidden,\n    hasPopperEscaped: hasPopperEscaped\n  };\n  state.attributes.popper = Object.assign({}, state.attributes.popper, {\n    'data-popper-reference-hidden': isReferenceHidden,\n    'data-popper-escaped': hasPopperEscaped\n  });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'hide',\n  enabled: true,\n  phase: 'main',\n  requiresIfExists: ['preventOverflow'],\n  fn: hide\n};","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\"; // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n  if (isFixed === void 0) {\n    isFixed = false;\n  }\n\n  var documentElement = getDocumentElement(offsetParent);\n  var rect = getBoundingClientRect(elementOrVirtualElement);\n  var isOffsetParentAnElement = isHTMLElement(offsetParent);\n  var scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  var offsets = {\n    x: 0,\n    y: 0\n  };\n\n  if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n    if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n    isScrollParent(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n\n    if (isHTMLElement(offsetParent)) {\n      offsets = getBoundingClientRect(offsetParent);\n      offsets.x += offsetParent.clientLeft;\n      offsets.y += offsetParent.clientTop;\n    } else if (documentElement) {\n      offsets.x = getWindowScrollBarX(documentElement);\n    }\n  }\n\n  return {\n    x: rect.left + scroll.scrollLeft - offsets.x,\n    y: rect.top + scroll.scrollTop - offsets.y,\n    width: rect.width,\n    height: rect.height\n  };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n  if (node === getWindow(node) || !isHTMLElement(node)) {\n    return getWindowScroll(node);\n  } else {\n    return getHTMLElementScroll(node);\n  }\n}","export default function getHTMLElementScroll(element) {\n  return {\n    scrollLeft: element.scrollLeft,\n    scrollTop: element.scrollTop\n  };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n  var map = new Map();\n  var visited = new Set();\n  var result = [];\n  modifiers.forEach(function (modifier) {\n    map.set(modifier.name, modifier);\n  }); // On visiting object, check for its dependencies and visit them recursively\n\n  function sort(modifier) {\n    visited.add(modifier.name);\n    var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n    requires.forEach(function (dep) {\n      if (!visited.has(dep)) {\n        var depModifier = map.get(dep);\n\n        if (depModifier) {\n          sort(depModifier);\n        }\n      }\n    });\n    result.push(modifier);\n  }\n\n  modifiers.forEach(function (modifier) {\n    if (!visited.has(modifier.name)) {\n      // check for visited object\n      sort(modifier);\n    }\n  });\n  return result;\n}\n\nexport default function orderModifiers(modifiers) {\n  // order based on dependencies\n  var orderedModifiers = order(modifiers); // order based on phase\n\n  return modifierPhases.reduce(function (acc, phase) {\n    return acc.concat(orderedModifiers.filter(function (modifier) {\n      return modifier.phase === phase;\n    }));\n  }, []);\n}","export default function debounce(fn) {\n  var pending;\n  return function () {\n    if (!pending) {\n      pending = new Promise(function (resolve) {\n        Promise.resolve().then(function () {\n          pending = undefined;\n          resolve(fn());\n        });\n      });\n    }\n\n    return pending;\n  };\n}","export default function mergeByName(modifiers) {\n  var merged = modifiers.reduce(function (merged, current) {\n    var existing = merged[current.name];\n    merged[current.name] = existing ? Object.assign({}, existing, current, {\n      options: Object.assign({}, existing.options, current.options),\n      data: Object.assign({}, existing.data, current.data)\n    }) : current;\n    return merged;\n  }, {}); // IE11 does not support Object.values\n\n  return Object.keys(merged).map(function (key) {\n    return merged[key];\n  });\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport getComputedStyle from \"./dom-utils/getComputedStyle.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport validateModifiers from \"./utils/validateModifiers.js\";\nimport uniqueBy from \"./utils/uniqueBy.js\";\nimport getBasePlacement from \"./utils/getBasePlacement.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nimport { auto } from \"./enums.js\";\nvar INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';\nvar INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';\nvar DEFAULT_OPTIONS = {\n  placement: 'bottom',\n  modifiers: [],\n  strategy: 'absolute'\n};\n\nfunction areValidElements() {\n  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n    args[_key] = arguments[_key];\n  }\n\n  return !args.some(function (element) {\n    return !(element && typeof element.getBoundingClientRect === 'function');\n  });\n}\n\nexport function popperGenerator(generatorOptions) {\n  if (generatorOptions === void 0) {\n    generatorOptions = {};\n  }\n\n  var _generatorOptions = generatorOptions,\n      _generatorOptions$def = _generatorOptions.defaultModifiers,\n      defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n      _generatorOptions$def2 = _generatorOptions.defaultOptions,\n      defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n  return function createPopper(reference, popper, options) {\n    if (options === void 0) {\n      options = defaultOptions;\n    }\n\n    var state = {\n      placement: 'bottom',\n      orderedModifiers: [],\n      options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n      modifiersData: {},\n      elements: {\n        reference: reference,\n        popper: popper\n      },\n      attributes: {},\n      styles: {}\n    };\n    var effectCleanupFns = [];\n    var isDestroyed = false;\n    var instance = {\n      state: state,\n      setOptions: function setOptions(options) {\n        cleanupModifierEffects();\n        state.options = Object.assign({}, defaultOptions, state.options, options);\n        state.scrollParents = {\n          reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n          popper: listScrollParents(popper)\n        }; // Orders the modifiers based on their dependencies and `phase`\n        // properties\n\n        var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n        state.orderedModifiers = orderedModifiers.filter(function (m) {\n          return m.enabled;\n        }); // Validate the provided modifiers so that the consumer will get warned\n        // if one of the modifiers is invalid for any reason\n\n        if (process.env.NODE_ENV !== \"production\") {\n          var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {\n            var name = _ref.name;\n            return name;\n          });\n          validateModifiers(modifiers);\n\n          if (getBasePlacement(state.options.placement) === auto) {\n            var flipModifier = state.orderedModifiers.find(function (_ref2) {\n              var name = _ref2.name;\n              return name === 'flip';\n            });\n\n            if (!flipModifier) {\n              console.error(['Popper: \"auto\" placements require the \"flip\" modifier be', 'present and enabled to work.'].join(' '));\n            }\n          }\n\n          var _getComputedStyle = getComputedStyle(popper),\n              marginTop = _getComputedStyle.marginTop,\n              marginRight = _getComputedStyle.marginRight,\n              marginBottom = _getComputedStyle.marginBottom,\n              marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can\n          // cause bugs with positioning, so we'll warn the consumer\n\n\n          if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {\n            return parseFloat(margin);\n          })) {\n            console.warn(['Popper: CSS \"margin\" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));\n          }\n        }\n\n        runModifierEffects();\n        return instance.update();\n      },\n      // Sync update – it will always be executed, even if not necessary. This\n      // is useful for low frequency updates where sync behavior simplifies the\n      // logic.\n      // For high frequency updates (e.g. `resize` and `scroll` events), always\n      // prefer the async Popper#update method\n      forceUpdate: function forceUpdate() {\n        if (isDestroyed) {\n          return;\n        }\n\n        var _state$elements = state.elements,\n            reference = _state$elements.reference,\n            popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n        // anymore\n\n        if (!areValidElements(reference, popper)) {\n          if (process.env.NODE_ENV !== \"production\") {\n            console.error(INVALID_ELEMENT_ERROR);\n          }\n\n          return;\n        } // Store the reference and popper rects to be read by modifiers\n\n\n        state.rects = {\n          reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n          popper: getLayoutRect(popper)\n        }; // Modifiers have the ability to reset the current update cycle. The\n        // most common use case for this is the `flip` modifier changing the\n        // placement, which then needs to re-run all the modifiers, because the\n        // logic was previously ran for the previous placement and is therefore\n        // stale/incorrect\n\n        state.reset = false;\n        state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n        // is filled with the initial data specified by the modifier. This means\n        // it doesn't persist and is fresh on each update.\n        // To ensure persistent data, use `${name}#persistent`\n\n        state.orderedModifiers.forEach(function (modifier) {\n          return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n        });\n        var __debug_loops__ = 0;\n\n        for (var index = 0; index < state.orderedModifiers.length; index++) {\n          if (process.env.NODE_ENV !== \"production\") {\n            __debug_loops__ += 1;\n\n            if (__debug_loops__ > 100) {\n              console.error(INFINITE_LOOP_ERROR);\n              break;\n            }\n          }\n\n          if (state.reset === true) {\n            state.reset = false;\n            index = -1;\n            continue;\n          }\n\n          var _state$orderedModifie = state.orderedModifiers[index],\n              fn = _state$orderedModifie.fn,\n              _state$orderedModifie2 = _state$orderedModifie.options,\n              _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n              name = _state$orderedModifie.name;\n\n          if (typeof fn === 'function') {\n            state = fn({\n              state: state,\n              options: _options,\n              name: name,\n              instance: instance\n            }) || state;\n          }\n        }\n      },\n      // Async and optimistically optimized update – it will not be executed if\n      // not necessary (debounced to run at most once-per-tick)\n      update: debounce(function () {\n        return new Promise(function (resolve) {\n          instance.forceUpdate();\n          resolve(state);\n        });\n      }),\n      destroy: function destroy() {\n        cleanupModifierEffects();\n        isDestroyed = true;\n      }\n    };\n\n    if (!areValidElements(reference, popper)) {\n      if (process.env.NODE_ENV !== \"production\") {\n        console.error(INVALID_ELEMENT_ERROR);\n      }\n\n      return instance;\n    }\n\n    instance.setOptions(options).then(function (state) {\n      if (!isDestroyed && options.onFirstUpdate) {\n        options.onFirstUpdate(state);\n      }\n    }); // Modifiers have the ability to execute arbitrary code before the first\n    // update cycle runs. They will be executed in the same order as the update\n    // cycle. This is useful when a modifier adds some persistent data that\n    // other modifiers need to use, but the modifier is run after the dependent\n    // one.\n\n    function runModifierEffects() {\n      state.orderedModifiers.forEach(function (_ref3) {\n        var name = _ref3.name,\n            _ref3$options = _ref3.options,\n            options = _ref3$options === void 0 ? {} : _ref3$options,\n            effect = _ref3.effect;\n\n        if (typeof effect === 'function') {\n          var cleanupFn = effect({\n            state: state,\n            name: name,\n            instance: instance,\n            options: options\n          });\n\n          var noopFn = function noopFn() {};\n\n          effectCleanupFns.push(cleanupFn || noopFn);\n        }\n      });\n    }\n\n    function cleanupModifierEffects() {\n      effectCleanupFns.forEach(function (fn) {\n        return fn();\n      });\n      effectCleanupFns = [];\n    }\n\n    return instance;\n  };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","function _getCenteredStylePopperModifier() {\n  return [\n    {\n      name: 'applyStyles',\n      fn({ state }) {\n        Object.keys(state.elements).forEach((name) => {\n          if (name !== 'popper') {\n            return;\n          }\n          const style = {\n            position: 'fixed',\n            left: '50%',\n            top: '50%',\n            transform: 'translate(-50%, -50%)'\n          };\n\n          const attributes = state.attributes[name] || {};\n          const element = state.elements[name];\n\n          Object.assign(element.style, style);\n          Object.keys(attributes).forEach((name) => {\n            const value = attributes[name];\n            if (value === false) {\n              element.removeAttribute(name);\n            } else {\n              element.setAttribute(name, value === true ? '' : value);\n            }\n          });\n        });\n      }\n    },\n    {\n      name: 'computeStyles',\n      options: {\n        adaptive: false\n      }\n    }\n  ];\n}\n\n/**\n * Generates the array of options 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 {Object} The final Popper options object\n */\nexport function makeCenteredPopper(step) {\n  const centeredStylePopperModifier = _getCenteredStylePopperModifier();\n\n  let popperOptions = {\n    placement: 'top',\n    strategy: 'fixed',\n    modifiers: [\n      {\n        name: 'focusAfterRender',\n        enabled: true,\n        phase: 'afterWrite',\n        fn() {\n          setTimeout(() => {\n            if (step.el) {\n              step.el.focus();\n            }\n          }, 300);\n        }\n      }\n    ]\n  };\n\n  popperOptions = {\n    ...popperOptions,\n    modifiers: Array.from(\n      new Set([...popperOptions.modifiers, ...centeredStylePopperModifier])\n    )\n  };\n\n  return popperOptions;\n}\n","import { createPopper } from '@popperjs/core';\nimport { isString } from './type-check';\nimport { makeCenteredPopper } from './popper-options';\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(\n        `The element for this Shepherd step was not found ${options.element}`\n      );\n    }\n  }\n\n  return returnOpts;\n}\n\n/**\n * Determines options for the tooltip and initializes\n * `step.tooltip` as a Popper instance.\n * @param {Step} step The step instance\n */\nexport function setupTooltip(step) {\n  if (step.tooltip) {\n    step.tooltip.destroy();\n  }\n\n  const attachToOptions = parseAttachTo(step);\n\n  let target = attachToOptions.element;\n  const popperOptions = getPopperOptions(attachToOptions, step);\n\n  if (step.isCentered()) {\n    target = document.body;\n    const content = step.shepherdElementComponent.getElement();\n    content.classList.add('shepherd-centered');\n  }\n\n  step.tooltip = createPopper(target, step.el, popperOptions);\n  step.target = attachToOptions.element;\n\n  return popperOptions;\n}\n\n/**\n * Create a unique id for steps, tours, modals, etc\n * @return {string}\n */\nexport function uuid() {\n  let d = Date.now();\n  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n    const r = (d + Math.random() * 16) % 16 | 0;\n    d = Math.floor(d / 16);\n    return (c == 'x' ? r : (r & 0x3) | 0x8).toString(16);\n  });\n}\n\n/**\n * Gets the `Popper` options from a set of base `attachTo` options\n * @param attachToOptions\n * @param {Step} step The step instance\n * @return {Object}\n * @private\n */\nexport function getPopperOptions(attachToOptions, step) {\n  let popperOptions = {\n    modifiers: [\n      {\n        name: 'preventOverflow',\n        options: {\n          altAxis: true,\n          tether: false\n        }\n      },\n      {\n        name: 'focusAfterRender',\n        enabled: true,\n        phase: 'afterWrite',\n        fn() {\n          setTimeout(() => {\n            if (step.el) {\n              step.el.focus();\n            }\n          }, 300);\n        }\n      }\n    ],\n    strategy: 'absolute'\n  };\n\n  if (step.isCentered()) {\n    popperOptions = makeCenteredPopper(step);\n  } else {\n    popperOptions.placement = attachToOptions.on;\n  }\n\n  const defaultStepOptions =\n    step.tour && step.tour.options && step.tour.options.defaultStepOptions;\n\n  if (defaultStepOptions) {\n    popperOptions = _mergeModifiers(defaultStepOptions, popperOptions);\n  }\n\n  popperOptions = _mergeModifiers(step.options, popperOptions);\n\n  return popperOptions;\n}\n\nfunction _mergeModifiers(stepOptions, popperOptions) {\n  if (stepOptions.popperOptions) {\n    let mergedPopperOptions = Object.assign(\n      {},\n      popperOptions,\n      stepOptions.popperOptions\n    );\n\n    if (\n      stepOptions.popperOptions.modifiers &&\n      stepOptions.popperOptions.modifiers.length > 0\n    ) {\n      const names = stepOptions.popperOptions.modifiers.map((mod) => mod.name);\n      const filteredModifiers = popperOptions.modifiers.filter(\n        (mod) => !names.includes(mod.name)\n      );\n\n      mergedPopperOptions.modifiers = Array.from(\n        new Set([...filteredModifiers, ...stepOptions.popperOptions.modifiers])\n      );\n    }\n\n    return mergedPopperOptions;\n  }\n\n  return popperOptions;\n}\n","function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n    // @ts-ignore\n    for (const k in src)\n        tar[k] = src[k];\n    return tar;\n}\nfunction is_promise(value) {\n    return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n    element.__svelte_meta = {\n        loc: { file, line, column, char }\n    };\n}\nfunction run(fn) {\n    return fn();\n}\nfunction blank_object() {\n    return Object.create(null);\n}\nfunction run_all(fns) {\n    fns.forEach(run);\n}\nfunction is_function(thing) {\n    return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n    return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n    return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n    return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n    if (store != null && typeof store.subscribe !== 'function') {\n        throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n    }\n}\nfunction subscribe(store, ...callbacks) {\n    if (store == null) {\n        return noop;\n    }\n    const unsub = store.subscribe(...callbacks);\n    return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n    let value;\n    subscribe(store, _ => value = _)();\n    return value;\n}\nfunction component_subscribe(component, store, callback) {\n    component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n    if (definition) {\n        const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n        return definition[0](slot_ctx);\n    }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n    return definition[1] && fn\n        ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n        : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n    if (definition[2] && fn) {\n        const lets = definition[2](fn(dirty));\n        if ($$scope.dirty === undefined) {\n            return lets;\n        }\n        if (typeof lets === 'object') {\n            const merged = [];\n            const len = Math.max($$scope.dirty.length, lets.length);\n            for (let i = 0; i < len; i += 1) {\n                merged[i] = $$scope.dirty[i] | lets[i];\n            }\n            return merged;\n        }\n        return $$scope.dirty | lets;\n    }\n    return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n    const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n    if (slot_changes) {\n        const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n        slot.p(slot_context, slot_changes);\n    }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n    const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n    if (slot_changes) {\n        const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n        slot.p(slot_context, slot_changes);\n    }\n}\nfunction exclude_internal_props(props) {\n    const result = {};\n    for (const k in props)\n        if (k[0] !== '$')\n            result[k] = props[k];\n    return result;\n}\nfunction compute_rest_props(props, keys) {\n    const rest = {};\n    keys = new Set(keys);\n    for (const k in props)\n        if (!keys.has(k) && k[0] !== '$')\n            rest[k] = props[k];\n    return rest;\n}\nfunction compute_slots(slots) {\n    const result = {};\n    for (const key in slots) {\n        result[key] = true;\n    }\n    return result;\n}\nfunction once(fn) {\n    let ran = false;\n    return function (...args) {\n        if (ran)\n            return;\n        ran = true;\n        fn.call(this, ...args);\n    };\n}\nfunction null_to_empty(value) {\n    return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n    store.set(value);\n    return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n    return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n    ? () => window.performance.now()\n    : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n    now = fn;\n}\nfunction set_raf(fn) {\n    raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n    tasks.forEach(task => {\n        if (!task.c(now)) {\n            tasks.delete(task);\n            task.f();\n        }\n    });\n    if (tasks.size !== 0)\n        raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n    tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n    let task;\n    if (tasks.size === 0)\n        raf(run_tasks);\n    return {\n        promise: new Promise(fulfill => {\n            tasks.add(task = { c: callback, f: fulfill });\n        }),\n        abort() {\n            tasks.delete(task);\n        }\n    };\n}\n\nfunction append(target, node) {\n    target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n    target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n    node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n    for (let i = 0; i < iterations.length; i += 1) {\n        if (iterations[i])\n            iterations[i].d(detaching);\n    }\n}\nfunction element(name) {\n    return document.createElement(name);\n}\nfunction element_is(name, is) {\n    return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n    const target = {};\n    for (const k in obj) {\n        if (has_prop(obj, k)\n            // @ts-ignore\n            && exclude.indexOf(k) === -1) {\n            // @ts-ignore\n            target[k] = obj[k];\n        }\n    }\n    return target;\n}\nfunction svg_element(name) {\n    return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n    return document.createTextNode(data);\n}\nfunction space() {\n    return text(' ');\n}\nfunction empty() {\n    return text('');\n}\nfunction listen(node, event, handler, options) {\n    node.addEventListener(event, handler, options);\n    return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n    return function (event) {\n        event.preventDefault();\n        // @ts-ignore\n        return fn.call(this, event);\n    };\n}\nfunction stop_propagation(fn) {\n    return function (event) {\n        event.stopPropagation();\n        // @ts-ignore\n        return fn.call(this, event);\n    };\n}\nfunction self(fn) {\n    return function (event) {\n        // @ts-ignore\n        if (event.target === this)\n            fn.call(this, event);\n    };\n}\nfunction attr(node, attribute, value) {\n    if (value == null)\n        node.removeAttribute(attribute);\n    else if (node.getAttribute(attribute) !== value)\n        node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n    // @ts-ignore\n    const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n    for (const key in attributes) {\n        if (attributes[key] == null) {\n            node.removeAttribute(key);\n        }\n        else if (key === 'style') {\n            node.style.cssText = attributes[key];\n        }\n        else if (key === '__value') {\n            node.value = node[key] = attributes[key];\n        }\n        else if (descriptors[key] && descriptors[key].set) {\n            node[key] = attributes[key];\n        }\n        else {\n            attr(node, key, attributes[key]);\n        }\n    }\n}\nfunction set_svg_attributes(node, attributes) {\n    for (const key in attributes) {\n        attr(node, key, attributes[key]);\n    }\n}\nfunction set_custom_element_data(node, prop, value) {\n    if (prop in node) {\n        node[prop] = value;\n    }\n    else {\n        attr(node, prop, value);\n    }\n}\nfunction xlink_attr(node, attribute, value) {\n    node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n    const value = new Set();\n    for (let i = 0; i < group.length; i += 1) {\n        if (group[i].checked)\n            value.add(group[i].__value);\n    }\n    if (!checked) {\n        value.delete(__value);\n    }\n    return Array.from(value);\n}\nfunction to_number(value) {\n    return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n    const array = [];\n    for (let i = 0; i < ranges.length; i += 1) {\n        array.push({ start: ranges.start(i), end: ranges.end(i) });\n    }\n    return array;\n}\nfunction children(element) {\n    return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n    for (let i = 0; i < nodes.length; i += 1) {\n        const node = nodes[i];\n        if (node.nodeName === name) {\n            let j = 0;\n            const remove = [];\n            while (j < node.attributes.length) {\n                const attribute = node.attributes[j++];\n                if (!attributes[attribute.name]) {\n                    remove.push(attribute.name);\n                }\n            }\n            for (let k = 0; k < remove.length; k++) {\n                node.removeAttribute(remove[k]);\n            }\n            return nodes.splice(i, 1)[0];\n        }\n    }\n    return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n    for (let i = 0; i < nodes.length; i += 1) {\n        const node = nodes[i];\n        if (node.nodeType === 3) {\n            node.data = '' + data;\n            return nodes.splice(i, 1)[0];\n        }\n    }\n    return text(data);\n}\nfunction claim_space(nodes) {\n    return claim_text(nodes, ' ');\n}\nfunction set_data(text, data) {\n    data = '' + data;\n    if (text.wholeText !== data)\n        text.data = data;\n}\nfunction set_input_value(input, value) {\n    input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n    try {\n        input.type = type;\n    }\n    catch (e) {\n        // do nothing\n    }\n}\nfunction set_style(node, key, value, important) {\n    node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n    for (let i = 0; i < select.options.length; i += 1) {\n        const option = select.options[i];\n        if (option.__value === value) {\n            option.selected = true;\n            return;\n        }\n    }\n}\nfunction select_options(select, value) {\n    for (let i = 0; i < select.options.length; i += 1) {\n        const option = select.options[i];\n        option.selected = ~value.indexOf(option.__value);\n    }\n}\nfunction select_value(select) {\n    const selected_option = select.querySelector(':checked') || select.options[0];\n    return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n    return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n    if (crossorigin === undefined) {\n        crossorigin = false;\n        try {\n            if (typeof window !== 'undefined' && window.parent) {\n                void window.parent.document;\n            }\n        }\n        catch (error) {\n            crossorigin = true;\n        }\n    }\n    return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n    const computed_style = getComputedStyle(node);\n    if (computed_style.position === 'static') {\n        node.style.position = 'relative';\n    }\n    const iframe = element('iframe');\n    iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n        'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n    iframe.setAttribute('aria-hidden', 'true');\n    iframe.tabIndex = -1;\n    const crossorigin = is_crossorigin();\n    let unsubscribe;\n    if (crossorigin) {\n        iframe.src = \"data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}</script>\";\n        unsubscribe = listen(window, 'message', (event) => {\n            if (event.source === iframe.contentWindow)\n                fn();\n        });\n    }\n    else {\n        iframe.src = 'about:blank';\n        iframe.onload = () => {\n            unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n        };\n    }\n    append(node, iframe);\n    return () => {\n        if (crossorigin) {\n            unsubscribe();\n        }\n        else if (unsubscribe && iframe.contentWindow) {\n            unsubscribe();\n        }\n        detach(iframe);\n    };\n}\nfunction toggle_class(element, name, toggle) {\n    element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n    const e = document.createEvent('CustomEvent');\n    e.initCustomEvent(type, false, false, detail);\n    return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n    return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n    constructor(anchor = null) {\n        this.a = anchor;\n        this.e = this.n = null;\n    }\n    m(html, target, anchor = null) {\n        if (!this.e) {\n            this.e = element(target.nodeName);\n            this.t = target;\n            this.h(html);\n        }\n        this.i(anchor);\n    }\n    h(html) {\n        this.e.innerHTML = html;\n        this.n = Array.from(this.e.childNodes);\n    }\n    i(anchor) {\n        for (let i = 0; i < this.n.length; i += 1) {\n            insert(this.t, this.n[i], anchor);\n        }\n    }\n    p(html) {\n        this.d();\n        this.h(html);\n        this.i(this.a);\n    }\n    d() {\n        this.n.forEach(detach);\n    }\n}\nfunction attribute_to_object(attributes) {\n    const result = {};\n    for (const attribute of attributes) {\n        result[attribute.name] = attribute.value;\n    }\n    return result;\n}\nfunction get_custom_elements_slots(element) {\n    const result = {};\n    element.childNodes.forEach((node) => {\n        result[node.slot || 'default'] = true;\n    });\n    return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n    let hash = 5381;\n    let i = str.length;\n    while (i--)\n        hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n    return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n    const step = 16.666 / duration;\n    let keyframes = '{\\n';\n    for (let p = 0; p <= 1; p += step) {\n        const t = a + (b - a) * ease(p);\n        keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n    }\n    const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n    const name = `__svelte_${hash(rule)}_${uid}`;\n    const doc = node.ownerDocument;\n    active_docs.add(doc);\n    const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n    const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n    if (!current_rules[name]) {\n        current_rules[name] = true;\n        stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n    }\n    const animation = node.style.animation || '';\n    node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n    active += 1;\n    return name;\n}\nfunction delete_rule(node, name) {\n    const previous = (node.style.animation || '').split(', ');\n    const next = previous.filter(name\n        ? anim => anim.indexOf(name) < 0 // remove specific animation\n        : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n    );\n    const deleted = previous.length - next.length;\n    if (deleted) {\n        node.style.animation = next.join(', ');\n        active -= deleted;\n        if (!active)\n            clear_rules();\n    }\n}\nfunction clear_rules() {\n    raf(() => {\n        if (active)\n            return;\n        active_docs.forEach(doc => {\n            const stylesheet = doc.__svelte_stylesheet;\n            let i = stylesheet.cssRules.length;\n            while (i--)\n                stylesheet.deleteRule(i);\n            doc.__svelte_rules = {};\n        });\n        active_docs.clear();\n    });\n}\n\nfunction create_animation(node, from, fn, params) {\n    if (!from)\n        return noop;\n    const to = node.getBoundingClientRect();\n    if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n        return noop;\n    const { delay = 0, duration = 300, easing = identity, \n    // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n    start: start_time = now() + delay, \n    // @ts-ignore todo:\n    end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n    let running = true;\n    let started = false;\n    let name;\n    function start() {\n        if (css) {\n            name = create_rule(node, 0, 1, duration, delay, easing, css);\n        }\n        if (!delay) {\n            started = true;\n        }\n    }\n    function stop() {\n        if (css)\n            delete_rule(node, name);\n        running = false;\n    }\n    loop(now => {\n        if (!started && now >= start_time) {\n            started = true;\n        }\n        if (started && now >= end) {\n            tick(1, 0);\n            stop();\n        }\n        if (!running) {\n            return false;\n        }\n        if (started) {\n            const p = now - start_time;\n            const t = 0 + 1 * easing(p / duration);\n            tick(t, 1 - t);\n        }\n        return true;\n    });\n    start();\n    tick(0, 1);\n    return stop;\n}\nfunction fix_position(node) {\n    const style = getComputedStyle(node);\n    if (style.position !== 'absolute' && style.position !== 'fixed') {\n        const { width, height } = style;\n        const a = node.getBoundingClientRect();\n        node.style.position = 'absolute';\n        node.style.width = width;\n        node.style.height = height;\n        add_transform(node, a);\n    }\n}\nfunction add_transform(node, a) {\n    const b = node.getBoundingClientRect();\n    if (a.left !== b.left || a.top !== b.top) {\n        const style = getComputedStyle(node);\n        const transform = style.transform === 'none' ? '' : style.transform;\n        node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n    }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n    current_component = component;\n}\nfunction get_current_component() {\n    if (!current_component)\n        throw new Error('Function called outside component initialization');\n    return current_component;\n}\nfunction beforeUpdate(fn) {\n    get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n    get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n    get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n    get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n    const component = get_current_component();\n    return (type, detail) => {\n        const callbacks = component.$$.callbacks[type];\n        if (callbacks) {\n            // TODO are there situations where events could be dispatched\n            // in a server (non-DOM) environment?\n            const event = custom_event(type, detail);\n            callbacks.slice().forEach(fn => {\n                fn.call(component, event);\n            });\n        }\n    };\n}\nfunction setContext(key, context) {\n    get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n    return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n    return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n    const callbacks = component.$$.callbacks[event.type];\n    if (callbacks) {\n        callbacks.slice().forEach(fn => fn(event));\n    }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n    if (!update_scheduled) {\n        update_scheduled = true;\n        resolved_promise.then(flush);\n    }\n}\nfunction tick() {\n    schedule_update();\n    return resolved_promise;\n}\nfunction add_render_callback(fn) {\n    render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n    flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n    if (flushing)\n        return;\n    flushing = true;\n    do {\n        // first, call beforeUpdate functions\n        // and update components\n        for (let i = 0; i < dirty_components.length; i += 1) {\n            const component = dirty_components[i];\n            set_current_component(component);\n            update(component.$$);\n        }\n        set_current_component(null);\n        dirty_components.length = 0;\n        while (binding_callbacks.length)\n            binding_callbacks.pop()();\n        // then, once components are updated, call\n        // afterUpdate functions. This may cause\n        // subsequent updates...\n        for (let i = 0; i < render_callbacks.length; i += 1) {\n            const callback = render_callbacks[i];\n            if (!seen_callbacks.has(callback)) {\n                // ...so guard against infinite loops\n                seen_callbacks.add(callback);\n                callback();\n            }\n        }\n        render_callbacks.length = 0;\n    } while (dirty_components.length);\n    while (flush_callbacks.length) {\n        flush_callbacks.pop()();\n    }\n    update_scheduled = false;\n    flushing = false;\n    seen_callbacks.clear();\n}\nfunction update($$) {\n    if ($$.fragment !== null) {\n        $$.update();\n        run_all($$.before_update);\n        const dirty = $$.dirty;\n        $$.dirty = [-1];\n        $$.fragment && $$.fragment.p($$.ctx, dirty);\n        $$.after_update.forEach(add_render_callback);\n    }\n}\n\nlet promise;\nfunction wait() {\n    if (!promise) {\n        promise = Promise.resolve();\n        promise.then(() => {\n            promise = null;\n        });\n    }\n    return promise;\n}\nfunction dispatch(node, direction, kind) {\n    node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n    outros = {\n        r: 0,\n        c: [],\n        p: outros // parent group\n    };\n}\nfunction check_outros() {\n    if (!outros.r) {\n        run_all(outros.c);\n    }\n    outros = outros.p;\n}\nfunction transition_in(block, local) {\n    if (block && block.i) {\n        outroing.delete(block);\n        block.i(local);\n    }\n}\nfunction transition_out(block, local, detach, callback) {\n    if (block && block.o) {\n        if (outroing.has(block))\n            return;\n        outroing.add(block);\n        outros.c.push(() => {\n            outroing.delete(block);\n            if (callback) {\n                if (detach)\n                    block.d(1);\n                callback();\n            }\n        });\n        block.o(local);\n    }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n    let config = fn(node, params);\n    let running = false;\n    let animation_name;\n    let task;\n    let uid = 0;\n    function cleanup() {\n        if (animation_name)\n            delete_rule(node, animation_name);\n    }\n    function go() {\n        const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n        if (css)\n            animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n        tick(0, 1);\n        const start_time = now() + delay;\n        const end_time = start_time + duration;\n        if (task)\n            task.abort();\n        running = true;\n        add_render_callback(() => dispatch(node, true, 'start'));\n        task = loop(now => {\n            if (running) {\n                if (now >= end_time) {\n                    tick(1, 0);\n                    dispatch(node, true, 'end');\n                    cleanup();\n                    return running = false;\n                }\n                if (now >= start_time) {\n                    const t = easing((now - start_time) / duration);\n                    tick(t, 1 - t);\n                }\n            }\n            return running;\n        });\n    }\n    let started = false;\n    return {\n        start() {\n            if (started)\n                return;\n            delete_rule(node);\n            if (is_function(config)) {\n                config = config();\n                wait().then(go);\n            }\n            else {\n                go();\n            }\n        },\n        invalidate() {\n            started = false;\n        },\n        end() {\n            if (running) {\n                cleanup();\n                running = false;\n            }\n        }\n    };\n}\nfunction create_out_transition(node, fn, params) {\n    let config = fn(node, params);\n    let running = true;\n    let animation_name;\n    const group = outros;\n    group.r += 1;\n    function go() {\n        const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n        if (css)\n            animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n        const start_time = now() + delay;\n        const end_time = start_time + duration;\n        add_render_callback(() => dispatch(node, false, 'start'));\n        loop(now => {\n            if (running) {\n                if (now >= end_time) {\n                    tick(0, 1);\n                    dispatch(node, false, 'end');\n                    if (!--group.r) {\n                        // this will result in `end()` being called,\n                        // so we don't need to clean up here\n                        run_all(group.c);\n                    }\n                    return false;\n                }\n                if (now >= start_time) {\n                    const t = easing((now - start_time) / duration);\n                    tick(1 - t, t);\n                }\n            }\n            return running;\n        });\n    }\n    if (is_function(config)) {\n        wait().then(() => {\n            // @ts-ignore\n            config = config();\n            go();\n        });\n    }\n    else {\n        go();\n    }\n    return {\n        end(reset) {\n            if (reset && config.tick) {\n                config.tick(1, 0);\n            }\n            if (running) {\n                if (animation_name)\n                    delete_rule(node, animation_name);\n                running = false;\n            }\n        }\n    };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n    let config = fn(node, params);\n    let t = intro ? 0 : 1;\n    let running_program = null;\n    let pending_program = null;\n    let animation_name = null;\n    function clear_animation() {\n        if (animation_name)\n            delete_rule(node, animation_name);\n    }\n    function init(program, duration) {\n        const d = program.b - t;\n        duration *= Math.abs(d);\n        return {\n            a: t,\n            b: program.b,\n            d,\n            duration,\n            start: program.start,\n            end: program.start + duration,\n            group: program.group\n        };\n    }\n    function go(b) {\n        const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n        const program = {\n            start: now() + delay,\n            b\n        };\n        if (!b) {\n            // @ts-ignore todo: improve typings\n            program.group = outros;\n            outros.r += 1;\n        }\n        if (running_program || pending_program) {\n            pending_program = program;\n        }\n        else {\n            // if this is an intro, and there's a delay, we need to do\n            // an initial tick and/or apply CSS animation immediately\n            if (css) {\n                clear_animation();\n                animation_name = create_rule(node, t, b, duration, delay, easing, css);\n            }\n            if (b)\n                tick(0, 1);\n            running_program = init(program, duration);\n            add_render_callback(() => dispatch(node, b, 'start'));\n            loop(now => {\n                if (pending_program && now > pending_program.start) {\n                    running_program = init(pending_program, duration);\n                    pending_program = null;\n                    dispatch(node, running_program.b, 'start');\n                    if (css) {\n                        clear_animation();\n                        animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n                    }\n                }\n                if (running_program) {\n                    if (now >= running_program.end) {\n                        tick(t = running_program.b, 1 - t);\n                        dispatch(node, running_program.b, 'end');\n                        if (!pending_program) {\n                            // we're done\n                            if (running_program.b) {\n                                // intro — we can tidy up immediately\n                                clear_animation();\n                            }\n                            else {\n                                // outro — needs to be coordinated\n                                if (!--running_program.group.r)\n                                    run_all(running_program.group.c);\n                            }\n                        }\n                        running_program = null;\n                    }\n                    else if (now >= running_program.start) {\n                        const p = now - running_program.start;\n                        t = running_program.a + running_program.d * easing(p / running_program.duration);\n                        tick(t, 1 - t);\n                    }\n                }\n                return !!(running_program || pending_program);\n            });\n        }\n    }\n    return {\n        run(b) {\n            if (is_function(config)) {\n                wait().then(() => {\n                    // @ts-ignore\n                    config = config();\n                    go(b);\n                });\n            }\n            else {\n                go(b);\n            }\n        },\n        end() {\n            clear_animation();\n            running_program = pending_program = null;\n        }\n    };\n}\n\nfunction handle_promise(promise, info) {\n    const token = info.token = {};\n    function update(type, index, key, value) {\n        if (info.token !== token)\n            return;\n        info.resolved = value;\n        let child_ctx = info.ctx;\n        if (key !== undefined) {\n            child_ctx = child_ctx.slice();\n            child_ctx[key] = value;\n        }\n        const block = type && (info.current = type)(child_ctx);\n        let needs_flush = false;\n        if (info.block) {\n            if (info.blocks) {\n                info.blocks.forEach((block, i) => {\n                    if (i !== index && block) {\n                        group_outros();\n                        transition_out(block, 1, 1, () => {\n                            if (info.blocks[i] === block) {\n                                info.blocks[i] = null;\n                            }\n                        });\n                        check_outros();\n                    }\n                });\n            }\n            else {\n                info.block.d(1);\n            }\n            block.c();\n            transition_in(block, 1);\n            block.m(info.mount(), info.anchor);\n            needs_flush = true;\n        }\n        info.block = block;\n        if (info.blocks)\n            info.blocks[index] = block;\n        if (needs_flush) {\n            flush();\n        }\n    }\n    if (is_promise(promise)) {\n        const current_component = get_current_component();\n        promise.then(value => {\n            set_current_component(current_component);\n            update(info.then, 1, info.value, value);\n            set_current_component(null);\n        }, error => {\n            set_current_component(current_component);\n            update(info.catch, 2, info.error, error);\n            set_current_component(null);\n            if (!info.hasCatch) {\n                throw error;\n            }\n        });\n        // if we previously had a then/catch block, destroy it\n        if (info.current !== info.pending) {\n            update(info.pending, 0);\n            return true;\n        }\n    }\n    else {\n        if (info.current !== info.then) {\n            update(info.then, 1, info.value, promise);\n            return true;\n        }\n        info.resolved = promise;\n    }\n}\n\nconst globals = (typeof window !== 'undefined'\n    ? window\n    : typeof globalThis !== 'undefined'\n        ? globalThis\n        : global);\n\nfunction destroy_block(block, lookup) {\n    block.d(1);\n    lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n    transition_out(block, 1, 1, () => {\n        lookup.delete(block.key);\n    });\n}\nfunction fix_and_destroy_block(block, lookup) {\n    block.f();\n    destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n    block.f();\n    outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n    let o = old_blocks.length;\n    let n = list.length;\n    let i = o;\n    const old_indexes = {};\n    while (i--)\n        old_indexes[old_blocks[i].key] = i;\n    const new_blocks = [];\n    const new_lookup = new Map();\n    const deltas = new Map();\n    i = n;\n    while (i--) {\n        const child_ctx = get_context(ctx, list, i);\n        const key = get_key(child_ctx);\n        let block = lookup.get(key);\n        if (!block) {\n            block = create_each_block(key, child_ctx);\n            block.c();\n        }\n        else if (dynamic) {\n            block.p(child_ctx, dirty);\n        }\n        new_lookup.set(key, new_blocks[i] = block);\n        if (key in old_indexes)\n            deltas.set(key, Math.abs(i - old_indexes[key]));\n    }\n    const will_move = new Set();\n    const did_move = new Set();\n    function insert(block) {\n        transition_in(block, 1);\n        block.m(node, next);\n        lookup.set(block.key, block);\n        next = block.first;\n        n--;\n    }\n    while (o && n) {\n        const new_block = new_blocks[n - 1];\n        const old_block = old_blocks[o - 1];\n        const new_key = new_block.key;\n        const old_key = old_block.key;\n        if (new_block === old_block) {\n            // do nothing\n            next = new_block.first;\n            o--;\n            n--;\n        }\n        else if (!new_lookup.has(old_key)) {\n            // remove old block\n            destroy(old_block, lookup);\n            o--;\n        }\n        else if (!lookup.has(new_key) || will_move.has(new_key)) {\n            insert(new_block);\n        }\n        else if (did_move.has(old_key)) {\n            o--;\n        }\n        else if (deltas.get(new_key) > deltas.get(old_key)) {\n            did_move.add(new_key);\n            insert(new_block);\n        }\n        else {\n            will_move.add(old_key);\n            o--;\n        }\n    }\n    while (o--) {\n        const old_block = old_blocks[o];\n        if (!new_lookup.has(old_block.key))\n            destroy(old_block, lookup);\n    }\n    while (n)\n        insert(new_blocks[n - 1]);\n    return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n    const keys = new Set();\n    for (let i = 0; i < list.length; i++) {\n        const key = get_key(get_context(ctx, list, i));\n        if (keys.has(key)) {\n            throw new Error('Cannot have duplicate keys in a keyed each');\n        }\n        keys.add(key);\n    }\n}\n\nfunction get_spread_update(levels, updates) {\n    const update = {};\n    const to_null_out = {};\n    const accounted_for = { $$scope: 1 };\n    let i = levels.length;\n    while (i--) {\n        const o = levels[i];\n        const n = updates[i];\n        if (n) {\n            for (const key in o) {\n                if (!(key in n))\n                    to_null_out[key] = 1;\n            }\n            for (const key in n) {\n                if (!accounted_for[key]) {\n                    update[key] = n[key];\n                    accounted_for[key] = 1;\n                }\n            }\n            levels[i] = n;\n        }\n        else {\n            for (const key in o) {\n                accounted_for[key] = 1;\n            }\n        }\n    }\n    for (const key in to_null_out) {\n        if (!(key in update))\n            update[key] = undefined;\n    }\n    return update;\n}\nfunction get_spread_object(spread_props) {\n    return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n    'allowfullscreen',\n    'allowpaymentrequest',\n    'async',\n    'autofocus',\n    'autoplay',\n    'checked',\n    'controls',\n    'default',\n    'defer',\n    'disabled',\n    'formnovalidate',\n    'hidden',\n    'ismap',\n    'loop',\n    'multiple',\n    'muted',\n    'nomodule',\n    'novalidate',\n    'open',\n    'playsinline',\n    'readonly',\n    'required',\n    'reversed',\n    'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n    const attributes = Object.assign({}, ...args);\n    if (classes_to_add) {\n        if (attributes.class == null) {\n            attributes.class = classes_to_add;\n        }\n        else {\n            attributes.class += ' ' + classes_to_add;\n        }\n    }\n    let str = '';\n    Object.keys(attributes).forEach(name => {\n        if (invalid_attribute_name_character.test(name))\n            return;\n        const value = attributes[name];\n        if (value === true)\n            str += ' ' + name;\n        else if (boolean_attributes.has(name.toLowerCase())) {\n            if (value)\n                str += ' ' + name;\n        }\n        else if (value != null) {\n            str += ` ${name}=\"${String(value).replace(/\"/g, '&#34;').replace(/'/g, '&#39;')}\"`;\n        }\n    });\n    return str;\n}\nconst escaped = {\n    '\"': '&quot;',\n    \"'\": '&#39;',\n    '&': '&amp;',\n    '<': '&lt;',\n    '>': '&gt;'\n};\nfunction escape(html) {\n    return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n    let str = '';\n    for (let i = 0; i < items.length; i += 1) {\n        str += fn(items[i], i);\n    }\n    return str;\n}\nconst missing_component = {\n    $$render: () => ''\n};\nfunction validate_component(component, name) {\n    if (!component || !component.$$render) {\n        if (name === 'svelte:component')\n            name += ' this={...}';\n        throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n    }\n    return component;\n}\nfunction debug(file, line, column, values) {\n    console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n    console.log(values); // eslint-disable-line no-console\n    return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n    function $$render(result, props, bindings, slots, context) {\n        const parent_component = current_component;\n        const $$ = {\n            on_destroy,\n            context: new Map(parent_component ? parent_component.$$.context : context || []),\n            // these will be immediately discarded\n            on_mount: [],\n            before_update: [],\n            after_update: [],\n            callbacks: blank_object()\n        };\n        set_current_component({ $$ });\n        const html = fn(result, props, bindings, slots);\n        set_current_component(parent_component);\n        return html;\n    }\n    return {\n        render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n            on_destroy = [];\n            const result = { title: '', head: '', css: new Set() };\n            const html = $$render(result, props, {}, $$slots, context);\n            run_all(on_destroy);\n            return {\n                html,\n                css: {\n                    code: Array.from(result.css).map(css => css.code).join('\\n'),\n                    map: null // TODO\n                },\n                head: result.title + result.head\n            };\n        },\n        $$render\n    };\n}\nfunction add_attribute(name, value, boolean) {\n    if (value == null || (boolean && !value))\n        return '';\n    return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n    return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n    const index = component.$$.props[name];\n    if (index !== undefined) {\n        component.$$.bound[index] = callback;\n        callback(component.$$.ctx[index]);\n    }\n}\nfunction create_component(block) {\n    block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n    block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n    const { fragment, on_mount, on_destroy, after_update } = component.$$;\n    fragment && fragment.m(target, anchor);\n    if (!customElement) {\n        // onMount happens before the initial afterUpdate\n        add_render_callback(() => {\n            const new_on_destroy = on_mount.map(run).filter(is_function);\n            if (on_destroy) {\n                on_destroy.push(...new_on_destroy);\n            }\n            else {\n                // Edge case - component was destroyed immediately,\n                // most likely as a result of a binding initialising\n                run_all(new_on_destroy);\n            }\n            component.$$.on_mount = [];\n        });\n    }\n    after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n    const $$ = component.$$;\n    if ($$.fragment !== null) {\n        run_all($$.on_destroy);\n        $$.fragment && $$.fragment.d(detaching);\n        // TODO null out other refs, including component.$$ (but need to\n        // preserve final state?)\n        $$.on_destroy = $$.fragment = null;\n        $$.ctx = [];\n    }\n}\nfunction make_dirty(component, i) {\n    if (component.$$.dirty[0] === -1) {\n        dirty_components.push(component);\n        schedule_update();\n        component.$$.dirty.fill(0);\n    }\n    component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n    const parent_component = current_component;\n    set_current_component(component);\n    const $$ = component.$$ = {\n        fragment: null,\n        ctx: null,\n        // state\n        props,\n        update: noop,\n        not_equal,\n        bound: blank_object(),\n        // lifecycle\n        on_mount: [],\n        on_destroy: [],\n        on_disconnect: [],\n        before_update: [],\n        after_update: [],\n        context: new Map(parent_component ? parent_component.$$.context : options.context || []),\n        // everything else\n        callbacks: blank_object(),\n        dirty,\n        skip_bound: false\n    };\n    let ready = false;\n    $$.ctx = instance\n        ? instance(component, options.props || {}, (i, ret, ...rest) => {\n            const value = rest.length ? rest[0] : ret;\n            if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n                if (!$$.skip_bound && $$.bound[i])\n                    $$.bound[i](value);\n                if (ready)\n                    make_dirty(component, i);\n            }\n            return ret;\n        })\n        : [];\n    $$.update();\n    ready = true;\n    run_all($$.before_update);\n    // `false` as a special case of no DOM component\n    $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n    if (options.target) {\n        if (options.hydrate) {\n            const nodes = children(options.target);\n            // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n            $$.fragment && $$.fragment.l(nodes);\n            nodes.forEach(detach);\n        }\n        else {\n            // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n            $$.fragment && $$.fragment.c();\n        }\n        if (options.intro)\n            transition_in(component.$$.fragment);\n        mount_component(component, options.target, options.anchor, options.customElement);\n        flush();\n    }\n    set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n    SvelteElement = class extends HTMLElement {\n        constructor() {\n            super();\n            this.attachShadow({ mode: 'open' });\n        }\n        connectedCallback() {\n            const { on_mount } = this.$$;\n            this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n            // @ts-ignore todo: improve typings\n            for (const key in this.$$.slotted) {\n                // @ts-ignore todo: improve typings\n                this.appendChild(this.$$.slotted[key]);\n            }\n        }\n        attributeChangedCallback(attr, _oldValue, newValue) {\n            this[attr] = newValue;\n        }\n        disconnectedCallback() {\n            run_all(this.$$.on_disconnect);\n        }\n        $destroy() {\n            destroy_component(this, 1);\n            this.$destroy = noop;\n        }\n        $on(type, callback) {\n            // TODO should this delegate to addEventListener?\n            const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n            callbacks.push(callback);\n            return () => {\n                const index = callbacks.indexOf(callback);\n                if (index !== -1)\n                    callbacks.splice(index, 1);\n            };\n        }\n        $set($$props) {\n            if (this.$$set && !is_empty($$props)) {\n                this.$$.skip_bound = true;\n                this.$$set($$props);\n                this.$$.skip_bound = false;\n            }\n        }\n    };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n    $destroy() {\n        destroy_component(this, 1);\n        this.$destroy = noop;\n    }\n    $on(type, callback) {\n        const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n        callbacks.push(callback);\n        return () => {\n            const index = callbacks.indexOf(callback);\n            if (index !== -1)\n                callbacks.splice(index, 1);\n        };\n    }\n    $set($$props) {\n        if (this.$$set && !is_empty($$props)) {\n            this.$$.skip_bound = true;\n            this.$$set($$props);\n            this.$$.skip_bound = false;\n        }\n    }\n}\n\nfunction dispatch_dev(type, detail) {\n    document.dispatchEvent(custom_event(type, Object.assign({ version: '3.37.0' }, detail)));\n}\nfunction append_dev(target, node) {\n    dispatch_dev('SvelteDOMInsert', { target, node });\n    append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n    dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n    insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n    dispatch_dev('SvelteDOMRemove', { node });\n    detach(node);\n}\nfunction detach_between_dev(before, after) {\n    while (before.nextSibling && before.nextSibling !== after) {\n        detach_dev(before.nextSibling);\n    }\n}\nfunction detach_before_dev(after) {\n    while (after.previousSibling) {\n        detach_dev(after.previousSibling);\n    }\n}\nfunction detach_after_dev(before) {\n    while (before.nextSibling) {\n        detach_dev(before.nextSibling);\n    }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n    const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n    if (has_prevent_default)\n        modifiers.push('preventDefault');\n    if (has_stop_propagation)\n        modifiers.push('stopPropagation');\n    dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n    const dispose = listen(node, event, handler, options);\n    return () => {\n        dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n        dispose();\n    };\n}\nfunction attr_dev(node, attribute, value) {\n    attr(node, attribute, value);\n    if (value == null)\n        dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n    else\n        dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n    node[property] = value;\n    dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n    node.dataset[property] = value;\n    dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n    data = '' + data;\n    if (text.wholeText === data)\n        return;\n    dispatch_dev('SvelteDOMSetData', { node: text, data });\n    text.data = data;\n}\nfunction validate_each_argument(arg) {\n    if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n        let msg = '{#each} only iterates over array-like objects.';\n        if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n            msg += ' You can use a spread to convert this iterable into an array.';\n        }\n        throw new Error(msg);\n    }\n}\nfunction validate_slots(name, slot, keys) {\n    for (const slot_key of Object.keys(slot)) {\n        if (!~keys.indexOf(slot_key)) {\n            console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n        }\n    }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n    constructor(options) {\n        if (!options || (!options.target && !options.$$inline)) {\n            throw new Error(\"'target' is a required option\");\n        }\n        super();\n    }\n    $destroy() {\n        super.$destroy();\n        this.$destroy = () => {\n            console.warn('Component was already destroyed'); // eslint-disable-line no-console\n        };\n    }\n    $capture_state() { }\n    $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * <script lang=\"ts\">\n * \timport { MyComponent } from \"component-library\";\n * </script>\n * <MyComponent foo={'bar'} />\n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n    constructor(options) {\n        super(options);\n    }\n}\nfunction loop_guard(timeout) {\n    const start = Date.now();\n    return () => {\n        if (Date.now() - start > timeout) {\n            throw new Error('Infinite loop detected');\n        }\n    };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","<script>\n  import { isFunction } from '../utils/type-check';\n\n  export let config, step;\n  let action, classes, disabled, label, secondary, text;\n\n  $: {\n    action = config.action ? config.action.bind(step.tour) : null;\n    classes = config.classes;\n    disabled = config.disabled ? getDisabled(config.disabled) : false;\n    label = config.label;\n    secondary = config.secondary;\n    text = config.text;\n  }\n\n  function getDisabled(disabled) {\n      if (isFunction(disabled)) {\n          return disabled = disabled.call(step);\n      }\n      return disabled\n  }\n\n</script>\n\n<style global>\n  .shepherd-button {\n    background: rgb(50, 136, 230);\n    border: 0;\n    border-radius: 3px;\n    color: rgba(255, 255, 255, 0.75);\n    cursor: pointer;\n    margin-right: 0.5rem;\n    padding: 0.5rem 1.5rem;\n    transition: all 0.5s ease;\n  }\n\n  .shepherd-button:not(:disabled):hover {\n    background: rgb(25, 111, 204);\n    color: rgba(255, 255, 255, 0.75);\n  }\n\n  .shepherd-button.shepherd-button-secondary {\n    background: rgb(241, 242, 243);\n    color: rgba(0, 0, 0, 0.75);\n  }\n\n  .shepherd-button.shepherd-button-secondary:not(:disabled):hover {\n    background: rgb(214, 217, 219);\n    color: rgba(0, 0, 0, 0.75);\n  }\n\n  .shepherd-button:disabled {\n    cursor: not-allowed;\n  }\n</style>\n\n<button\n  aria-label=\"{label ? label : null}\"\n  class=\"{`${(classes || '')} shepherd-button ${(secondary ? 'shepherd-button-secondary' : '')}`}\"\n  disabled={disabled}\n  on:click={action}\n  tabindex=\"0\"\n>\n    {@html text}\n</button>\n","<script>\n  import ShepherdButton from './shepherd-button.svelte';\n\n  export let step;\n\n  $: buttons = step.options.buttons;\n</script>\n\n<style global>\n  .shepherd-footer {\n    border-bottom-left-radius: 5px;\n    border-bottom-right-radius: 5px;\n    display: flex;\n    justify-content: flex-end;\n    padding: 0 0.75rem 0.75rem;\n  }\n\n  .shepherd-footer .shepherd-button:last-child {\n    margin-right: 0;\n  }\n</style>\n\n<footer class=\"shepherd-footer\">\n    {#if buttons}\n        {#each buttons as config}\n          <ShepherdButton\n            {config}\n            {step}\n          />\n        {/each}\n    {/if}\n</footer>\n","<script>\n  export let cancelIcon, step;\n\n  /**\n   * Add a click listener to the cancel link that cancels the tour\n   */\n  const handleCancelClick = (e) => {\n    e.preventDefault();\n    step.cancel();\n  };\n</script>\n\n<style global>\n  .shepherd-cancel-icon {\n    background: transparent;\n    border: none;\n    color: rgba(128, 128, 128, 0.75);\n    font-size: 2em;\n    cursor: pointer;\n    font-weight: normal;\n    margin: 0;\n    padding: 0;\n    transition: color 0.5s ease;\n  }\n\n  .shepherd-cancel-icon:hover {\n    color: rgba(0, 0, 0, 0.75);\n  }\n\n  .shepherd-has-title .shepherd-content .shepherd-cancel-icon {\n    color: rgba(128, 128, 128, 0.75);\n  }\n\n  .shepherd-has-title .shepherd-content .shepherd-cancel-icon:hover {\n    color: rgba(0, 0, 0, 0.75);\n  }\n</style>\n\n<button\n  aria-label=\"{cancelIcon.label ? cancelIcon.label : 'Close Tour'}\"\n  class=\"shepherd-cancel-icon\"\n  on:click={handleCancelClick}\n  type=\"button\"\n>\n  <span aria-hidden=\"true\">&times;</span>\n</button>\n","<script>\n  import { afterUpdate } from 'svelte';\n  import { isFunction } from '../utils/type-check';\n  \n  export let labelId, element, title;\n  \n  afterUpdate(() => {\n    if (isFunction(title)) {\n      title = title();\n    }\n    \n    element.innerHTML = title;\n  });\n</script>\n\n<style global>\n  .shepherd-title {\n    color: rgba(0, 0, 0, 0.75);\n    display: flex;\n    font-size: 1rem;\n    font-weight: normal;\n    flex: 1 0 auto;\n    margin: 0;\n    padding: 0;\n  }\n</style>\n\n<h3\n  bind:this={element}\n  id=\"{labelId}\"\n  class=\"shepherd-title\"\n>\n</h3>\n","<script>\n  import ShepherdCancelIcon from './shepherd-cancel-icon.svelte';\n  import ShepherdTitle from './shepherd-title.svelte';\n\n  export let labelId, step;\n  let title, cancelIcon;\n\n  $: {\n      title = step.options.title;\n      cancelIcon = step.options.cancelIcon;\n  }\n</script>\n\n<style global>\n  .shepherd-header {\n    align-items: center;\n    border-top-left-radius: 5px;\n    border-top-right-radius: 5px;\n    display: flex;\n    justify-content: flex-end;\n    line-height: 2em;\n    padding: 0.75rem 0.75rem 0;\n  }\n\n  .shepherd-has-title .shepherd-content .shepherd-header {\n    background: #e6e6e6;\n    padding: 1em;\n  }\n</style>\n\n<header class=\"shepherd-header\">\n    {#if title}\n      <ShepherdTitle\n        {labelId}\n        {title}\n      />\n    {/if}\n\n    {#if cancelIcon && cancelIcon.enabled}\n      <ShepherdCancelIcon\n        {cancelIcon}\n        {step}\n      />\n    {/if}\n</header>\n","<script>\n  import { afterUpdate } from 'svelte';\n  import { isHTMLElement, isFunction } from '../utils/type-check';\n\n  export let descriptionId, element, step;\n\n  afterUpdate(() => {\n    let { text } = step.options;\n\n    if (isFunction(text)) {\n      text = text.call(step);\n    }\n\n    if (isHTMLElement(text)) {\n      element.appendChild(text);\n    } else {\n      element.innerHTML = text;\n    }\n  });\n</script>\n\n<style global>\n  .shepherd-text {\n    color: rgba(0, 0, 0, 0.75);\n    font-size: 1rem;\n    line-height: 1.3em;\n    padding: 0.75em;\n  }\n\n  .shepherd-text p {\n    margin-top: 0;\n  }\n\n  .shepherd-text p:last-child {\n    margin-bottom: 0;\n  }\n</style>\n\n<div\n  bind:this={element}\n  class=\"shepherd-text\"\n  id=\"{descriptionId}\"\n>\n</div>\n\n","<script>\n  import ShepherdFooter from './shepherd-footer.svelte';\n  import ShepherdHeader from './shepherd-header.svelte';\n  import ShepherdText from './shepherd-text.svelte';\n  import { isUndefined } from '../utils/type-check.js';\n\n  export let descriptionId, labelId, step;\n</script>\n\n<style global>\n  .shepherd-content {\n    border-radius: 5px;\n    outline: none;\n    padding: 0;\n  }\n</style>\n\n<div\n  class=\"shepherd-content\"\n>\n  {#if !isUndefined(step.options.title) || (step.options.cancelIcon && step.options.cancelIcon.enabled)}\n    <ShepherdHeader\n      {labelId}\n      {step}\n    />\n  {/if}\n\n  {#if !isUndefined(step.options.text)}\n    <ShepherdText\n      {descriptionId}\n      {step}\n    />\n  {/if}\n\n  {#if Array.isArray(step.options.buttons) && step.options.buttons.length}\n    <ShepherdFooter\n      {step}\n    />\n  {/if}\n</div>\n","<script>\n  import { onMount, afterUpdate } from 'svelte';\n  import ShepherdContent from './shepherd-content.svelte';\n  import { isUndefined, isString } from '../utils/type-check.js';\n\n  const KEY_TAB = 9;\n  const KEY_ESC = 27;\n  const LEFT_ARROW = 37;\n  const RIGHT_ARROW = 39;\n\n  export let classPrefix, element, descriptionId, firstFocusableElement,\n    focusableElements, labelId, lastFocusableElement, step, dataStepId;\n\n  let hasCancelIcon, hasTitle, classes;\n\n  $: {\n    hasCancelIcon = step.options && step.options.cancelIcon && step.options.cancelIcon.enabled;\n    hasTitle = step.options && step.options.title;\n  }\n\n  export const getElement = () => element;\n\n  onMount(() => {\n    // Get all elements that are focusable\n    dataStepId = { [`data-${classPrefix}shepherd-step-id`]: step.id };\n    focusableElements = element.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex=\"0\"]');\n    firstFocusableElement = focusableElements[0];\n    lastFocusableElement = focusableElements[focusableElements.length - 1];\n  });\n\n  afterUpdate(() => {\n    if(classes !== step.options.classes) {\n      updateDynamicClasses();\n    }\n  });\n\n  function updateDynamicClasses() {\n      removeClasses(classes);\n      classes = step.options.classes;\n      addClasses(classes);\n  }\n\n  function removeClasses(classes) {\n    if (isString(classes)) {\n      const oldClasses = getClassesArray(classes);\n      if (oldClasses.length) {\n        element.classList.remove(...oldClasses);\n      }\n    }\n  }\n\n  function addClasses(classes) {\n    if(isString(classes)) {\n      const newClasses = getClassesArray(classes);\n      if (newClasses.length) {\n        element.classList.add(...newClasses);\n      }\n    }\n  }\n\n  function getClassesArray(classes) {\n     return classes.split(' ').filter(className => !!className.length);\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  const handleKeyDown = (e) => {\n    const { tour } = step;\n    switch (e.keyCode) {\n      case KEY_TAB:\n        if (focusableElements.length === 0) {\n          e.preventDefault();\n          break;\n        }\n        // Backward tab\n        if (e.shiftKey) {\n          if (document.activeElement === firstFocusableElement || document.activeElement.classList.contains('shepherd-element')) {\n            e.preventDefault();\n            lastFocusableElement.focus();\n          }\n        } else {\n          if (document.activeElement === lastFocusableElement) {\n            e.preventDefault();\n            firstFocusableElement.focus();\n          }\n        }\n        break;\n      case KEY_ESC:\n        if (tour.options.exitOnEsc) {\n          step.cancel();\n        }\n        break;\n      case LEFT_ARROW:\n        if (tour.options.keyboardNavigation) {\n          tour.back();\n        }\n        break;\n      case RIGHT_ARROW:\n        if (tour.options.keyboardNavigation) {\n          tour.next();\n        }\n        break;\n      default:\n        break;\n    }\n  };\n</script>\n\n<style global>\n  .shepherd-element {\n    background: #fff;\n    border-radius: 5px;\n    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);\n    max-width: 400px;\n    opacity: 0;\n    outline: none;\n    transition: opacity 0.3s, visibility 0.3s;\n    visibility: hidden;\n    width: 100%;\n    z-index: 9999;\n  }\n\n  .shepherd-enabled.shepherd-element {\n    opacity: 1;\n    visibility: visible;\n  }\n\n  .shepherd-element[data-popper-reference-hidden]:not(.shepherd-centered) {\n    opacity: 0;\n    pointer-events: none;\n    visibility: hidden;\n  }\n\n  .shepherd-element, .shepherd-element *,\n  .shepherd-element *:after,\n  .shepherd-element *:before {\n    box-sizing: border-box;\n  }\n\n  .shepherd-arrow,\n  .shepherd-arrow::before {\n    position: absolute;\n    width: 16px;\n    height: 16px;\n    z-index: -1;\n  }\n\n  .shepherd-arrow:before {\n    content: '';\n    transform: rotate(45deg);\n    background: #fff  ;\n  }\n\n  .shepherd-element[data-popper-placement^='top'] > .shepherd-arrow {\n    bottom: -8px;\n  }\n\n  .shepherd-element[data-popper-placement^='bottom'] > .shepherd-arrow {\n    top: -8px;\n  }\n\n  .shepherd-element[data-popper-placement^='left'] > .shepherd-arrow {\n    right: -8px;\n  }\n\n  .shepherd-element[data-popper-placement^='right'] > .shepherd-arrow {\n    left: -8px;\n  }\n\n  .shepherd-element.shepherd-centered > .shepherd-arrow {\n    opacity: 0;\n  }\n\n\n  /**\n  * Arrow on top of tooltip centered horizontally, with title color\n  */\n  .shepherd-element.shepherd-has-title[data-popper-placement^='bottom'] > .shepherd-arrow::before {\n    background-color: #e6e6e6;\n  }\n\n  .shepherd-target-click-disabled.shepherd-enabled.shepherd-target,\n  .shepherd-target-click-disabled.shepherd-enabled.shepherd-target * {\n    pointer-events: none;\n  }\n</style>\n\n<div\n  aria-describedby={!isUndefined(step.options.text) ? descriptionId : null}\n  aria-labelledby={step.options.title ? labelId : null}\n  bind:this={element}\n  class:shepherd-has-cancel-icon=\"{hasCancelIcon}\"\n  class:shepherd-has-title=\"{hasTitle}\"\n  class:shepherd-element=\"{true}\"\n  {...dataStepId}\n  on:keydown={handleKeyDown}\n  role=\"dialog\"\n  tabindex=\"0\"\n>\n    {#if step.options.arrow && step.options.attachTo && step.options.attachTo.element && step.options.attachTo.on}\n      <div class=\"shepherd-arrow\" data-popper-arrow></div>\n    {/if}\n  <ShepherdContent\n    {descriptionId}\n    {labelId}\n    {step}\n  />\n</div>\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        if (step.target instanceof HTMLElement) {\n          step.target.classList.remove('shepherd-target-click-disabled');\n        }\n      }\n    });\n  }\n}\n","/**\n * Generates the svg path data for a rounded rectangle overlay\n * @param {Object} dimension - Dimensions of rectangle.\n * @param {number} width - Width.\n * @param {number} height - Height.\n * @param {number} [x=0] - Offset from top left corner in x axis. default 0.\n * @param {number} [y=0] - Offset from top left corner in y axis. default 0.\n * @param {number} [r=0] - Corner Radius. Keep this smaller than  half of width or height.\n * @returns {string} - Rounded rectangle overlay path data.\n */\nexport function makeOverlayPath({ width, height, x = 0, y = 0, r = 0 }) {\n  const { innerWidth: w, innerHeight: h } = window;\n\n  return `M${w},${h}\\\nH0\\\nV0\\\nH${w}\\\nV${h}\\\nZ\\\nM${x + r},${y}\\\na${r},${r},0,0,0-${r},${r}\\\nV${height + y - r}\\\na${r},${r},0,0,0,${r},${r}\\\nH${width + x - r}\\\na${r},${r},0,0,0,${r}-${r}\\\nV${y + r}\\\na${r},${r},0,0,0-${r}-${r}\\\nZ`;\n}\n","<script>\n  import { uuid } from '../utils/general.js';\n  import { makeOverlayPath } from '../utils/overlay-path.js';\n\n  export let element, openingProperties;\n  const guid = uuid();\n  let modalIsVisible = false;\n  let rafId = undefined;\n  let pathDefinition;\n\n  $: pathDefinition = makeOverlayPath(openingProperties);\n\n  closeModalOpening();\n\n  export const getElement = () => element;\n\n  export function closeModalOpening() {\n    openingProperties = {\n      width: 0,\n      height: 0,\n      x: 0,\n      y: 0,\n      r: 0\n    };\n  }\n\n  /**\n   * Hide the modal overlay\n   */\n  export function hide() {\n    modalIsVisible = false;\n\n    // Ensure we cleanup all event listeners when we hide the modal\n    _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 {Number} modalOverlayOpeningPadding An amount of padding to add around the modal overlay opening\n   * @param {Number} modalOverlayOpeningRadius An amount of border radius to add around the modal overlay opening\n   * @param {HTMLElement} scrollParent The scrollable parent of the target element\n   * @param {HTMLElement} targetElement The element the opening will expose\n   */\n  export function positionModal(\n    modalOverlayOpeningPadding = 0,\n    modalOverlayOpeningRadius = 0,\n    scrollParent,\n    targetElement\n  ) {\n    if (targetElement) {\n      const { y, height } = _getVisibleHeight(targetElement, scrollParent);\n      const { x, width, left } = targetElement.getBoundingClientRect();\n\n      // getBoundingClientRect is not consistent. Some browsers use x and y, while others use left and top\n      openingProperties = {\n        width: width + modalOverlayOpeningPadding * 2,\n        height: height + modalOverlayOpeningPadding * 2,\n        x: (x || left) - modalOverlayOpeningPadding,\n        y: y - modalOverlayOpeningPadding,\n        r: modalOverlayOpeningRadius\n      };\n    } else {\n      closeModalOpening();\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  export function setupForStep(step) {\n    // Ensure we move listeners from the previous step, before we setup new ones\n    _cleanupStepEventListeners();\n\n    if (step.tour.options.useModalOverlay) {\n      _styleForStep(step);\n      show();\n    } else {\n      hide();\n    }\n  }\n\n  /**\n   * Show the modal overlay\n   */\n  export function show() {\n    modalIsVisible = true;\n  }\n\n  const _preventModalBodyTouch = (e) => {\n    e.preventDefault();\n  };\n\n  const _preventModalOverlayTouch = (e) => {\n    e.stopPropagation();\n  };\n\n  /**\n   * Add touchmove event listener\n   * @private\n   */\n  function _addStepEventListeners() {\n    // Prevents window from moving on touch.\n    window.addEventListener('touchmove', _preventModalBodyTouch, {\n      passive: false\n    });\n  }\n\n  /**\n   * Cancel the requestAnimationFrame loop and remove touchmove event listeners\n   * @private\n   */\n  function _cleanupStepEventListeners() {\n    if (rafId) {\n      cancelAnimationFrame(rafId);\n      rafId = undefined;\n    }\n\n    window.removeEventListener('touchmove', _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  function _styleForStep(step) {\n    const {\n      modalOverlayOpeningPadding,\n      modalOverlayOpeningRadius\n    } = step.options;\n\n    const scrollParent = _getScrollParent(step.target);\n\n    // Setup recursive function to call requestAnimationFrame to update the modal opening position\n    const rafLoop = () => {\n      rafId = undefined;\n      positionModal(\n        modalOverlayOpeningPadding,\n        modalOverlayOpeningRadius,\n        scrollParent,\n        step.target\n      );\n      rafId = requestAnimationFrame(rafLoop);\n    };\n\n    rafLoop();\n\n    _addStepEventListeners();\n  }\n\n  /**\n   * Find the closest scrollable parent element\n   * @param {HTMLElement} element The target element\n   * @returns {HTMLElement}\n   * @private\n   */\n  function _getScrollParent(element) {\n    if (!element) {\n      return null;\n    }\n\n    const isHtmlElement = element instanceof HTMLElement;\n    const overflowY =\n      isHtmlElement && window.getComputedStyle(element).overflowY;\n    const isScrollable = overflowY !== 'hidden' && overflowY !== 'visible';\n\n    if (isScrollable && element.scrollHeight >= element.clientHeight) {\n      return element;\n    }\n\n    return _getScrollParent(element.parentElement);\n  }\n\n  /**\n   * Get the visible height of the target element relative to its scrollParent.\n   * If there is no scroll parent, the height of the element is returned.\n   *\n   * @param {HTMLElement} element The target element\n   * @param {HTMLElement} [scrollParent] The scrollable parent element\n   * @returns {{y: number, height: number}}\n   * @private\n   */\n  function _getVisibleHeight(element, scrollParent) {\n    const elementRect = element.getBoundingClientRect();\n    let top = elementRect.y || elementRect.top;\n    let bottom = elementRect.bottom || top + elementRect.height;\n\n    if (scrollParent) {\n      const scrollRect = scrollParent.getBoundingClientRect();\n      const scrollTop = scrollRect.y || scrollRect.top;\n      const scrollBottom = scrollRect.bottom || scrollTop + scrollRect.height;\n\n      top = Math.max(top, scrollTop);\n      bottom = Math.min(bottom, scrollBottom);\n    }\n\n    const height = Math.max(bottom - top, 0); // Default to 0 if height is negative\n\n    return { y: top, height };\n  }\n</script>\n\n<svg\n  bind:this={element}\n  class={`${\n    modalIsVisible ? 'shepherd-modal-is-visible' : ''\n  } shepherd-modal-overlay-container`}\n  on:touchmove={_preventModalOverlayTouch}\n>\n  <path d={pathDefinition} />\n</svg>\n\n<style global>\n  .shepherd-modal-overlay-container {\n    height: 0;\n    left: 0;\n    opacity: 0;\n    overflow: hidden;\n    pointer-events: none;\n    position: fixed;\n    top: 0;\n    transition: all 0.3s ease-out, height 0ms 0.3s, opacity 0.3s 0ms;\n    width: 100vw;\n    z-index: 9997;\n  }\n\n  .shepherd-modal-overlay-container.shepherd-modal-is-visible {\n    height: 100vh;\n    opacity: 0.5;\n    transition: all 0.3s ease-out, height 0s 0s, opacity 0.3s 0s;\n  }\n\n  .shepherd-modal-overlay-container.shepherd-modal-is-visible path {\n    pointer-events: all;\n  }\n</style>\n","import { isUndefined } from './utils/type-check';\n\nexport class Evented {\n  on(event, handler, ctx, once = false) {\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    return this;\n  }\n\n  once(event, handler, ctx) {\n    return this.on(event, handler, ctx, true);\n  }\n\n  off(event, handler) {\n    if (isUndefined(this.bindings) ||\n      isUndefined(this.bindings[event])) {\n      return this;\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    return this;\n  }\n\n  trigger(event, ...args) {\n    if (!isUndefined(this.bindings) && this.bindings[event]) {\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    return this;\n  }\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n  passive: true\n};\n\nfunction effect(_ref) {\n  var state = _ref.state,\n      instance = _ref.instance,\n      options = _ref.options;\n  var _options$scroll = options.scroll,\n      scroll = _options$scroll === void 0 ? true : _options$scroll,\n      _options$resize = options.resize,\n      resize = _options$resize === void 0 ? true : _options$resize;\n  var window = getWindow(state.elements.popper);\n  var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n  if (scroll) {\n    scrollParents.forEach(function (scrollParent) {\n      scrollParent.addEventListener('scroll', instance.update, passive);\n    });\n  }\n\n  if (resize) {\n    window.addEventListener('resize', instance.update, passive);\n  }\n\n  return function () {\n    if (scroll) {\n      scrollParents.forEach(function (scrollParent) {\n        scrollParent.removeEventListener('scroll', instance.update, passive);\n      });\n    }\n\n    if (resize) {\n      window.removeEventListener('resize', instance.update, passive);\n    }\n  };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'eventListeners',\n  enabled: true,\n  phase: 'write',\n  fn: function fn() {},\n  effect: effect,\n  data: {}\n};","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n  defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n  var state = _ref.state,\n      name = _ref.name;\n  // Offsets are the actual position the popper needs to have to be\n  // properly positioned near its reference element\n  // This is the most basic placement, and will be adjusted by\n  // the modifiers in the next step\n  state.modifiersData[name] = computeOffsets({\n    reference: state.rects.reference,\n    element: state.rects.popper,\n    strategy: 'absolute',\n    placement: state.placement\n  });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'popperOffsets',\n  enabled: true,\n  phase: 'read',\n  fn: popperOffsets,\n  data: {}\n};","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n  var state = _ref.state;\n  Object.keys(state.elements).forEach(function (name) {\n    var style = state.styles[name] || {};\n    var attributes = state.attributes[name] || {};\n    var element = state.elements[name]; // arrow is optional + virtual elements\n\n    if (!isHTMLElement(element) || !getNodeName(element)) {\n      return;\n    } // Flow doesn't support to extend this property, but it's the most\n    // effective way to apply styles to an HTMLElement\n    // $FlowFixMe[cannot-write]\n\n\n    Object.assign(element.style, style);\n    Object.keys(attributes).forEach(function (name) {\n      var value = attributes[name];\n\n      if (value === false) {\n        element.removeAttribute(name);\n      } else {\n        element.setAttribute(name, value === true ? '' : value);\n      }\n    });\n  });\n}\n\nfunction effect(_ref2) {\n  var state = _ref2.state;\n  var initialStyles = {\n    popper: {\n      position: state.options.strategy,\n      left: '0',\n      top: '0',\n      margin: '0'\n    },\n    arrow: {\n      position: 'absolute'\n    },\n    reference: {}\n  };\n  Object.assign(state.elements.popper.style, initialStyles.popper);\n  state.styles = initialStyles;\n\n  if (state.elements.arrow) {\n    Object.assign(state.elements.arrow.style, initialStyles.arrow);\n  }\n\n  return function () {\n    Object.keys(state.elements).forEach(function (name) {\n      var element = state.elements[name];\n      var attributes = state.attributes[name] || {};\n      var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n      var style = styleProperties.reduce(function (style, property) {\n        style[property] = '';\n        return style;\n      }, {}); // arrow is optional + virtual elements\n\n      if (!isHTMLElement(element) || !getNodeName(element)) {\n        return;\n      }\n\n      Object.assign(element.style, style);\n      Object.keys(attributes).forEach(function (attribute) {\n        element.removeAttribute(attribute);\n      });\n    });\n  };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'applyStyles',\n  enabled: true,\n  phase: 'write',\n  fn: applyStyles,\n  effect: effect,\n  requires: ['computeStyles']\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\";\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n  var basePlacement = getBasePlacement(placement);\n  var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n  var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n    placement: placement\n  })) : offset,\n      skidding = _ref[0],\n      distance = _ref[1];\n\n  skidding = skidding || 0;\n  distance = (distance || 0) * invertDistance;\n  return [left, right].indexOf(basePlacement) >= 0 ? {\n    x: distance,\n    y: skidding\n  } : {\n    x: skidding,\n    y: distance\n  };\n}\n\nfunction offset(_ref2) {\n  var state = _ref2.state,\n      options = _ref2.options,\n      name = _ref2.name;\n  var _options$offset = options.offset,\n      offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n  var data = placements.reduce(function (acc, placement) {\n    acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n    return acc;\n  }, {});\n  var _data$state$placement = data[state.placement],\n      x = _data$state$placement.x,\n      y = _data$state$placement.y;\n\n  if (state.modifiersData.popperOffsets != null) {\n    state.modifiersData.popperOffsets.x += x;\n    state.modifiersData.popperOffsets.y += y;\n  }\n\n  state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'offset',\n  enabled: true,\n  phase: 'main',\n  requires: ['popperOffsets'],\n  fn: offset\n};","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport within from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { max as mathMax, min as mathMin } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n  var state = _ref.state,\n      options = _ref.options,\n      name = _ref.name;\n  var _options$mainAxis = options.mainAxis,\n      checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n      _options$altAxis = options.altAxis,\n      checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n      boundary = options.boundary,\n      rootBoundary = options.rootBoundary,\n      altBoundary = options.altBoundary,\n      padding = options.padding,\n      _options$tether = options.tether,\n      tether = _options$tether === void 0 ? true : _options$tether,\n      _options$tetherOffset = options.tetherOffset,\n      tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n  var overflow = detectOverflow(state, {\n    boundary: boundary,\n    rootBoundary: rootBoundary,\n    padding: padding,\n    altBoundary: altBoundary\n  });\n  var basePlacement = getBasePlacement(state.placement);\n  var variation = getVariation(state.placement);\n  var isBasePlacement = !variation;\n  var mainAxis = getMainAxisFromPlacement(basePlacement);\n  var altAxis = getAltAxis(mainAxis);\n  var popperOffsets = state.modifiersData.popperOffsets;\n  var referenceRect = state.rects.reference;\n  var popperRect = state.rects.popper;\n  var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n    placement: state.placement\n  })) : tetherOffset;\n  var data = {\n    x: 0,\n    y: 0\n  };\n\n  if (!popperOffsets) {\n    return;\n  }\n\n  if (checkMainAxis || checkAltAxis) {\n    var mainSide = mainAxis === 'y' ? top : left;\n    var altSide = mainAxis === 'y' ? bottom : right;\n    var len = mainAxis === 'y' ? 'height' : 'width';\n    var offset = popperOffsets[mainAxis];\n    var min = popperOffsets[mainAxis] + overflow[mainSide];\n    var max = popperOffsets[mainAxis] - overflow[altSide];\n    var additive = tether ? -popperRect[len] / 2 : 0;\n    var minLen = variation === start ? referenceRect[len] : popperRect[len];\n    var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n    // outside the reference bounds\n\n    var arrowElement = state.elements.arrow;\n    var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n      width: 0,\n      height: 0\n    };\n    var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n    var arrowPaddingMin = arrowPaddingObject[mainSide];\n    var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n    // to include its full size in the calculation. If the reference is small\n    // and near the edge of a boundary, the popper can overflow even if the\n    // reference is not overflowing as well (e.g. virtual elements with no\n    // width or height)\n\n    var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n    var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;\n    var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;\n    var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n    var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n    var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;\n    var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;\n    var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;\n\n    if (checkMainAxis) {\n      var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n      popperOffsets[mainAxis] = preventedOffset;\n      data[mainAxis] = preventedOffset - offset;\n    }\n\n    if (checkAltAxis) {\n      var _mainSide = mainAxis === 'x' ? top : left;\n\n      var _altSide = mainAxis === 'x' ? bottom : right;\n\n      var _offset = popperOffsets[altAxis];\n\n      var _min = _offset + overflow[_mainSide];\n\n      var _max = _offset - overflow[_altSide];\n\n      var _preventedOffset = within(tether ? mathMin(_min, tetherMin) : _min, _offset, tether ? mathMax(_max, tetherMax) : _max);\n\n      popperOffsets[altAxis] = _preventedOffset;\n      data[altAxis] = _preventedOffset - _offset;\n    }\n  }\n\n  state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'preventOverflow',\n  enabled: true,\n  phase: 'main',\n  fn: preventOverflow,\n  requiresIfExists: ['offset']\n};","export default function getAltAxis(axis) {\n  return axis === 'x' ? 'y' : 'x';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport default function within(min, value, max) {\n  return mathMax(min, mathMin(value, max));\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport within from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n  padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n    placement: state.placement\n  })) : padding;\n  return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n  var _state$modifiersData$;\n\n  var state = _ref.state,\n      name = _ref.name,\n      options = _ref.options;\n  var arrowElement = state.elements.arrow;\n  var popperOffsets = state.modifiersData.popperOffsets;\n  var basePlacement = getBasePlacement(state.placement);\n  var axis = getMainAxisFromPlacement(basePlacement);\n  var isVertical = [left, right].indexOf(basePlacement) >= 0;\n  var len = isVertical ? 'height' : 'width';\n\n  if (!arrowElement || !popperOffsets) {\n    return;\n  }\n\n  var paddingObject = toPaddingObject(options.padding, state);\n  var arrowRect = getLayoutRect(arrowElement);\n  var minProp = axis === 'y' ? top : left;\n  var maxProp = axis === 'y' ? bottom : right;\n  var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n  var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n  var arrowOffsetParent = getOffsetParent(arrowElement);\n  var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n  var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n  // outside of the popper bounds\n\n  var min = paddingObject[minProp];\n  var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n  var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n  var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n  var axisProp = axis;\n  state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n  var state = _ref2.state,\n      options = _ref2.options;\n  var _options$element = options.element,\n      arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n  if (arrowElement == null) {\n    return;\n  } // CSS selector\n\n\n  if (typeof arrowElement === 'string') {\n    arrowElement = state.elements.popper.querySelector(arrowElement);\n\n    if (!arrowElement) {\n      return;\n    }\n  }\n\n  if (process.env.NODE_ENV !== \"production\") {\n    if (!isHTMLElement(arrowElement)) {\n      console.error(['Popper: \"arrow\" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));\n    }\n  }\n\n  if (!contains(state.elements.popper, arrowElement)) {\n    if (process.env.NODE_ENV !== \"production\") {\n      console.error(['Popper: \"arrow\" modifier\\'s `element` must be a child of the popper', 'element.'].join(' '));\n    }\n\n    return;\n  }\n\n  state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'arrow',\n  enabled: true,\n  phase: 'main',\n  fn: arrow,\n  effect: effect,\n  requires: ['popperOffsets'],\n  requiresIfExists: ['preventOverflow']\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 merge from 'deepmerge';\nimport { Evented } from './evented.js';\nimport autoBind from './utils/auto-bind.js';\nimport { isElement, isHTMLElement, isFunction, isUndefined } from './utils/type-check.js';\nimport { bindAdvance } from './utils/bind.js';\nimport {\n  setupTooltip,\n  parseAttachTo,\n  normalizePrefix,\n  uuid\n} from './utils/general.js';\nimport ShepherdElement from './components/shepherd-element.svelte';\n\n// Polyfills\nimport smoothscroll from 'smoothscroll-polyfill';\nsmoothscroll.polyfill();\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 {boolean} options.arrow Whether to display the arrow for the tooltip or not. Defaults to `true`.\n   * @param {object} options.attachTo The element the step should be attached to on the page.\n   * An object with properties `element` and `on`.\n   *\n   * ```js\n   * const step = 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 An element selector string or a DOM element.\n   * @param {string} options.attachTo.on The optional direction to place the Popper tooltip relative to the element.\n   *   - Possible string values: 'auto', 'auto-start', 'auto-end', 'top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'\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 step = 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   * It is automatically bound to the `tour` the step is associated with, so things like `this.next` will\n   * work inside the action.\n   * You can use action to skip steps or navigate to specific steps, with something like:\n   * ```js\n   * action() {\n   *   return this.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.disabled Should the button be disabled?\n   * @param {string} options.buttons.button.label The aria-label text of the button\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 {object} options.cancelIcon Options for the cancel icon\n   * @param {boolean} options.cancelIcon.enabled Should a cancel “✕” be shown in the header of the step?\n   * @param {string} options.cancelIcon.label The label to add for `aria-label`\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 {number} options.modalOverlayOpeningPadding An amount of padding to add around the modal overlay opening\n   * @param {number} options.modalOverlayOpeningRadius An amount of border radius to add around the modal overlay opening\n   * @param {object} options.popperOptions Extra options to pass to Popper\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 {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. It can be one of two types:\n   * ```\n   * - HTML string\n   * - `Function` to be executed when the step is built. It must return HTML string.\n   * ```\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   * @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\n      ? normalizePrefix(this.tour.options.classPrefix)\n      : '';\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 Popper 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 (isHTMLElement(this.el) && this.el.parentNode) {\n      this.el.parentNode.removeChild(this.el);\n      this.el = null;\n    }\n\n    this._updateStepTargetOnHide();\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\n   */\n  hide() {\n    this.tour.modal.hide();\n\n    this.trigger('before-hide');\n\n    if (this.el) {\n      this.el.hidden = true;\n    }\n\n    this._updateStepTargetOnHide();\n\n    this.trigger('hide');\n  }\n\n  /**\n   * Checks if the step should be centered or not\n   * @return {boolean} True if the step is centered\n   */\n  isCentered() {\n    const attachToOptions = parseAttachTo(this);\n    return !attachToOptions.element || !attachToOptions.on;\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(this.el && !this.el.hidden);\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   * Updates the options of the step.\n   *\n   * @param {Object} options The options for the step\n   */\n  updateStepOptions(options) {\n    Object.assign(this.options, options);\n\n    if (this.shepherdElementComponent) {\n      this.shepherdElementComponent.$set({ step: this });\n    }\n  }\n\n  /**\n   * Returns the element for the step\n   * @return {HTMLElement|null|undefined} The element instance. undefined if it has never been shown, null if it has been destroyed\n   */\n  getElement() {\n    return this.el;\n  }\n\n  /**\n   * Returns the target for the step\n   * @return {HTMLElement|null|undefined} The element instance. undefined if it has never been shown, null if query string has not been found\n   */\n  getTarget() {\n    return this.target;\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    const descriptionId = `${this.id}-description`;\n    const labelId = `${this.id}-label`;\n\n    this.shepherdElementComponent = new ShepherdElement({\n      target: this.tour.options.stepsContainer || document.body,\n      props: {\n        classPrefix: this.classPrefix,\n        descriptionId,\n        labelId,\n        step: this,\n        styles: this.styles\n      }\n    });\n\n    return this.shepherdElementComponent.getElement();\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 (\n      isElement(element) &&\n      typeof element.scrollIntoView === 'function'\n    ) {\n      element.scrollIntoView(scrollToOptions);\n    }\n  }\n\n  /**\n   * _getClassOptions gets all possible classes for the step\n   * @param {Object} stepOptions The step specific options\n   * @returns {String} unique string from array of classes\n   * @private\n   */\n  _getClassOptions(stepOptions) {\n    const defaultStepOptions =\n      this.tour && this.tour.options && this.tour.options.defaultStepOptions;\n    const stepClasses = stepOptions.classes ? stepOptions.classes : '';\n    const defaultStepOptionsClasses =\n      defaultStepOptions && defaultStepOptions.classes\n        ? defaultStepOptions.classes\n        : '';\n    const allClasses = [\n      ...stepClasses.split(' '),\n      ...defaultStepOptionsClasses.split(' ')\n    ];\n    const uniqClasses = new Set(allClasses);\n\n    return Array.from(uniqClasses).join(' ').trim();\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    let tourOptions =\n      this.tour && this.tour.options && this.tour.options.defaultStepOptions;\n\n    tourOptions = merge({}, tourOptions || {});\n\n    this.options = Object.assign(\n      {\n        arrow: true\n      },\n      tourOptions,\n      options\n    );\n\n    const { when } = this.options;\n\n    this.options.classes = this._getClassOptions(options);\n\n    this.destroy();\n    this.id = this.options.id || `step-${uuid()}`;\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 Popper 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    setupTooltip(this);\n  }\n\n  /**\n   * Triggers `before-show`, generates the tooltip DOM content,\n   * sets up a Popper instance for the tooltip, then triggers `show`.\n   * @private\n   */\n  _show() {\n    this.trigger('before-show');\n\n    this._setupElements();\n\n    if (!this.tour.modal) {\n      this.tour._setupModal();\n    }\n\n    this.tour.modal.setupForStep(this);\n    this._styleTargetElementForStep(this);\n    this.el.hidden = false;\n\n    // start scrolling to target before showing the step\n    if (this.options.scrollTo) {\n      setTimeout(() => {\n        this._scrollTo(this.options.scrollTo);\n      });\n    }\n\n    this.el.hidden = false;\n\n    const content = this.shepherdElementComponent.getElement();\n    const target = this.target || document.body;\n    target.classList.add(`${this.classPrefix}shepherd-enabled`);\n    target.classList.add(`${this.classPrefix}shepherd-target`);\n    content.classList.add('shepherd-enabled');\n\n    this.trigger('show');\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    if (step.options.highlightClass) {\n      targetElement.classList.add(step.options.highlightClass);\n    }\n\n    if (step.options.canClickTarget === false) {\n      targetElement.classList.add('shepherd-target-click-disabled');\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    const target = this.target || document.body;\n\n    if (this.options.highlightClass) {\n      target.classList.remove(this.options.highlightClass);\n    }\n\n    target.classList.remove(\n      'shepherd-target-click-disabled',\n      `${this.classPrefix}shepherd-enabled`,\n      `${this.classPrefix}shepherd-target`\n    );\n  }\n}\n","import { Evented } from './evented.js';\nimport { Step } from './step.js';\nimport autoBind from './utils/auto-bind.js';\nimport { isHTMLElement, isFunction, isString, isUndefined } from './utils/type-check.js';\nimport { cleanupSteps } from './utils/cleanup.js';\nimport { normalizePrefix, uuid } from './utils/general.js';\nimport ShepherdModal from './components/shepherd-modal.svelte';\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 {string} options.classPrefix The prefix to add to the `shepherd-enabled` and `shepherd-target` class names as well as the `data-shepherd-step-id`.\n   * @param {Object} options.defaultStepOptions Default options for Steps ({@link Step#constructor}), created through `addStep`\n   * @param {boolean} options.exitOnEsc Exiting the tour with the escape key will be enabled unless this is explicitly\n   * set to false.\n   * @param {boolean} options.keyboardNavigation Navigating the tour via left and right arrow keys will be enabled\n   * unless this is explicitly set to false.\n   * @param {HTMLElement} options.stepsContainer An optional container element for the steps.\n   * If not set, the steps will be appended to `document.body`.\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 {object[] | Step[]} options.steps An array of step options objects or 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    const defaultTourOptions = {\n      exitOnEsc: true,\n      keyboardNavigation: true\n    };\n\n    this.options = Object.assign({}, defaultTourOptions, options);\n    this.classPrefix = normalizePrefix(this.options.classPrefix);\n    this.steps = [];\n    this.addSteps(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    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   * @param {number} index The optional index to insert the step at. If undefined, the step\n   * is added to the end of the array.\n   * @return {Step} The newly added step\n   */\n  addStep(options, index) {\n    let step = options;\n\n    if (!(step instanceof Step)) {\n      step = new Step(this, step);\n    } else {\n      step.tour = this;\n    }\n\n    if (!isUndefined(index)) {\n      this.steps.splice(index, 0, step);\n    } else {\n      this.steps.push(step);\n    }\n\n    return step;\n  }\n\n  /**\n   * Add multiple steps to the tour\n   * @param {Array<object> | Array<Step>} steps The steps to add to the tour\n   */\n  addSteps(steps) {\n    if (Array.isArray(steps)) {\n      steps.forEach((step) => {\n        this.addStep(step);\n      });\n    }\n\n    return this;\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    // Save the focused element before the tour opens\n    this.focusedElBeforeOpen = document.activeElement;\n\n    this.currentStep = null;\n\n    this._setupModal();\n\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.trigger('inactive', { tour: this });\n\n    if (this.modal) {\n      this.modal.hide();\n    }\n\n    if (event === 'cancel' || event === 'complete') {\n      if (this.modal) {\n        const modalContainer = document.querySelector('.shepherd-modal-overlay-container');\n\n        if (modalContainer) {\n          modalContainer.remove();\n        }\n      }\n    }\n\n    // Focus the element that was focused before the tour started\n    if (isHTMLElement(this.focusedElBeforeOpen)) {\n      this.focusedElBeforeOpen.focus();\n    }\n  }\n\n  /**\n   * Make this tour \"active\"\n   * @private\n   */\n  _setupActiveTour() {\n    this.trigger('active', { tour: this });\n\n    Shepherd.activeTour = this;\n  }\n\n  /**\n   * _setupModal create the modal container and instance\n   * @private\n   */\n  _setupModal() {\n    this.modal = new ShepherdModal({\n      target: this.options.modalContainer || document.body,\n      props:\n      {\n        classPrefix: this.classPrefix,\n        styles: this.styles\n      }\n    });\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   * 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\n    this.id = `${tourName}--${uuid()}`;\n  }\n}\n\nexport { Shepherd };\n","import { Step } from './step.js';\nimport { Shepherd, Tour } from './tour.js';\n\nObject.assign(Shepherd, { Tour, Step });\n\nexport default Shepherd;\n"],"names":["cloneUnlessOtherwiseSpecified","value","options","deepmerge","Array","defaultArrayMerge","target","source","element","getEnumerableOwnPropertySymbols","Object","symbol","getKeys","propertyIsOnObject","object","property","_","mergeObject","destination","key","customMerge","getMergeFunction","isMergeableObject","sourceIsArray","targetIsArray","isFunction","isString","autoBind","self","i","keys","val","_setupAdvanceOnHandler","selector","step","event","undefined","targetIsEl","bindAdvance","el","document","e","handler","console","getNodeName","toLowerCase","getWindow","node","window","ownerDocument","isElement","OwnElement","Element","isHTMLElement","HTMLElement","isShadowRoot","ShadowRoot","getBasePlacement","placement","getBoundingClientRect","rect","width","height","top","right","bottom","left","x","y","getLayoutRect","clientRect","Math","contains","parent","child","rootNode","next","getComputedStyle","getDocumentElement","documentElement","getParentNode","getTrueOffsetParent","getOffsetParent","offsetParent","indexOf","isFirefox","navigator","getContainingBlock","elementCss","currentNode","css","getMainAxisFromPlacement","mergePaddingObject","paddingObject","expandToHashMap","hashMap","mapToStyles","_ref2","_Object$assign2","popper","popperRect","offsets","position","gpuAcceleration","adaptive","roundOffsets","roundOffsetsByDPR","_ref","dpr","win","round","_ref3","_ref3$x","_ref3$y","hasX","hasY","sideX","sideY","heightProp","widthProp","commonStyles","unsetSides","_Object$assign","getOppositePlacement","matched","hash","getOppositeVariationPlacement","getWindowScroll","scrollLeft","scrollTop","getWindowScrollBarX","isScrollParent","_getComputedStyle","test","getScrollParent","listScrollParents","list","_element$ownerDocumen","scrollParent","isBody","concat","updatedList","rectToClientRect","getClientRectFromMixedType","clippingParent","viewport","html","visualViewport","winScroll","body","max","getClippingParents","clippingParents","clipperElement","canEscapeClipping","getClippingRect","boundary","rootBoundary","mainClippingParents","clippingRect","accRect","min","computeOffsets","reference","basePlacement","variation","commonX","commonY","mainAxis","len","start","end","detectOverflow","state","_options","_options$placement","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","padding","basePlacements","referenceElement","clippingClientRect","referenceClientRect","popperOffsets","strategy","popperClientRect","elementClientRect","overflowOffsets","offsetData","offset","multiply","axis","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","allPlacements","placements","variationPlacements","allowedPlacements","overflows","acc","a","b","getExpandedFallbackPlacements","auto","oppositePlacement","getSideOffsets","overflow","preventedOffsets","isAnySideFullyClipped","some","side","getCompositeRect","elementOrVirtualElement","isFixed","isOffsetParentAnElement","scroll","order","modifiers","sort","modifier","visited","requires","dep","depModifier","map","result","Map","Set","orderModifiers","orderedModifiers","modifierPhases","phase","debounce","fn","pending","Promise","resolve","mergeByName","merged","current","existing","data","areValidElements","_len","arguments","args","_key","_getCenteredStylePopperModifier","name","transform","attributes","makeCenteredPopper","popperOptions","enabled","setTimeout","centeredStylePopperModifier","normalizePrefix","prefix","parseAttachTo","returnOpts","uuid","d","Date","replace","c","toString","r","getPopperOptions","attachToOptions","altAxis","tether","_mergeModifiers","defaultStepOptions","stepOptions","mergedPopperOptions","filteredModifiers","noop","assign","tar","src","run","is_function","thing","safe_not_equal","detach","svg_element","listen","attr","attribute","set_attributes","descriptors","toggle_class","toggle","get_current_component","current_component","Error","add_render_callback","render_callbacks","flush","flushing","dirty_components","component","$$","fns","dirty","binding_callbacks","seen_callbacks","callback","flush_callbacks","update_scheduled","group_outros","outros","p","check_outros","transition_in","block","local","outroing","transition_out","create_component","mount_component","anchor","customElement","fragment","on_mount","on_destroy","after_update","new_on_destroy","destroy_component","detaching","init","instance","create_fragment","not_equal","props","ctx","update","bound","on_disconnect","before_update","context","parent_component","callbacks","skip_bound","ready","ret","rest","resolved_promise","nodes","config","action","classes","disabled","label","secondary","text","getDisabled","iterations","buttons","cancelIcon","labelId","title","descriptionId","$$scope","levels","n","to_null_out","accounted_for","getClassesArray","className","classPrefix","firstFocusableElement","focusableElements","lastFocusableElement","dataStepId","hasCancelIcon","hasTitle","oldClasses","newClasses","tour","cleanupSteps","steps","makeOverlayPath","innerWidth","w","innerHeight","h","_getScrollParent","closeModalOpening","openingProperties","hide","modalIsVisible","_cleanupStepEventListeners","positionModal","modalOverlayOpeningPadding","modalOverlayOpeningRadius","targetElement","_getVisibleHeight","elementRect","scrollBottom","show","rafId","cancelAnimationFrame","_preventModalBodyTouch","passive","_styleForStep","requestAnimationFrame","rafLoop","pathDefinition","isNonNullObject","stringValue","REACT_ELEMENT_TYPE","canUseSymbol","Symbol","deepmerge.all","array","prev","Evented","on","once","bindings","off","binding","index","trigger","reduce","DEFAULT_OPTIONS","createPopper","popperGenerator","generatorOptions","_generatorOptions$def","_generatorOptions","defaultModifiers","_generatorOptions$def2","defaultOptions","runModifierEffects","_ref3$options","effect","cleanupFn","effectCleanupFns","noopFn","cleanupModifierEffects","modifiersData","elements","styles","isDestroyed","setOptions","m","forceUpdate","_state$elements","_state$orderedModifie","_state$orderedModifie2","destroy","eventListeners","_options$scroll","_options$resize","resize","scrollParents","popperOffsets$1","computeStyles$1","computeStyles","_ref4","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","applyStyles$1","applyStyles","style","effect$2","initialStyles","margin","arrow","styleProperties","offset$1","_options$offset","distanceAndSkiddingToXY","invertDistance","rects","skidding","distance","_data$state$placement","flip$1","flip","_options$mainAxis","checkMainAxis","_options$altAxis","checkAltAxis","specifiedFallbackPlacements","_options$flipVariatio","preferredPlacement","fallbackPlacements","isBasePlacement","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","isVertical","mainVariationSide","altVariationSide","checks","check","_loop","_i","fittingPlacement","requiresIfExists","_skip","preventOverflow$1","preventOverflow","_options$tether","_options$tetherOffset","tetherOffset","tetherOffsetValue","mainSide","altSide","additive","minLen","maxLen","arrowElement","arrowRect","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","mathMax","min$1","mathMin","minOffset","maxOffset","arrowOffsetParent","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offset","_min","_max","_preventedOffset","arrow$1","_state$modifiersData$","minProp","maxProp","endDiff","startDiff","clientSize","center","effect$1","_options$element","hide$1","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","SvelteComponent","$destroy","$on","type","$set","$$props","$$set","module","polyfill","scrollElement","shouldBailOut","firstArg","TypeError","hasScrollableSpace","ROUNDING_TOLERANCE","canOverflow","overflowValue","isScrollable","isScrollableY","isScrollableX","elapsed","now","SCROLL_TIME","currentX","currentY","smoothScroll","startTime","scrollable","startX","startY","method","original","scrollBy","elementScroll","scrollIntoView","isMicrosoftBrowser","w.scrollTo","w.scrollBy","Element.prototype.scrollTo","SyntaxError","Element.prototype.scrollBy","behavior","Element.prototype.scrollIntoView","parentRects","scrollableParent","clientRects","smoothscroll","Step","constructor","cancel","complete","tooltip","parentNode","getTour","isCentered","isOpen","Boolean","hidden","beforeShowPromise","_show","updateStepOptions","shepherdElementComponent","getElement","getTarget","_createTooltipContent","ShepherdElement","stepsContainer","_scrollTo","scrollToOptions","scrollToHandler","_getClassOptions","uniqClasses","_setOptions","tourOptions","merge","when","id","_setupElements","advanceOn","content","modal","scrollTo","_styleTargetElementForStep","_updateStepTargetOnHide","highlightClass","Tour","exitOnEsc","keyboardNavigation","events","opts","Shepherd","addStep","addSteps","back","confirmCancel","getById","find","getCurrentStep","currentStep","isActive","length","removeStep","forward","previous","_done","modalContainer","focusedElBeforeOpen","_setupActiveTour","_setupModal","ShepherdModal","_skipStep","_updateStateBeforeShow","_setTourID"],"mappings":";;mPA+BAA,QAASA,EAAT,CAAuCC,CAAvC,CAA8CC,CAA9C,CAAuD,OAC5B,CAAA,CAAlBA,GAAAA,CAAAA,MAAAA,EAA2BA,CAAAA,kBAAAA,CAA0BD,CAA1BC,CAA3BA,CACLC,CAAAA,CALIC,KAAAA,QAAAA,CAKkBH,CALlBG,CAAAA,CAAqB,EAArBA,CAA0B,EAK9BD,CAA8BF,CAA9BE,CAAqCD,CAArCC,CADKD,CAELD,CAHmD,CAMvDI,QAASA,GAAT,CAA2BC,CAA3B,CAAmCC,CAAnC,CAA2CL,CAA3C,CAAoD,OAC5CI,EAAAA,OAAAA,CAAcC,CAAdD,CAAAA,IAAAA,CAA0B,SAASE,EAAS,OAC3CR,EAAAA,CAA8BQ,C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QAAAA,GAG/BiW,GAAAA,CAAa,IAAbA,eAEahW,EAAO,CAAE2Y,MAAAA,CAAF,EAEpB+N,GAAAA,WAAAA,CAAsB,kBACT,WAAY,CAAE3Q,KAAM,IAAR,EAErB,KAAAiQ,yBAIU,YAAVhmB,GAAgC,aAAVA,GACpBgmB,CAAA,IAAAA;8DAIAyB,CAAAA,OAAAA,EAMY,KAAAC,+BxE9RIvmB,8CwEkQX,CAqCbwmB,gBAAgB,EAAG,cACJ,SAAU,CAAE5R,KAAM,IAAR,EAEvB2Q,GAAAA,WAAAA,CAAsB,IAHL,CAUnBkB,WAAW,EAAG,YACC,IAAIC,EAAJ,CAAkB,CAC7B1pB,OAAQ,IAAAJ,QAAA0pB,eAARtpB,EAAuCkC,QAAAA,KADV,CAE7B6S,MACA,CACEoC,YAAa,IAAAA,YADf,CAEE0E,OAAQ,IAAAA,OAFV,CAH6B,CAAlB,CADD,CAiBd8N,SAAS,CAAC/nB,CAAD,CAAOunB,CAAP,CAAgB,6CAGFA,EAHE,CAWzBS,sBAAsB,EAAG,CACnB,IAAAb,qCAIC,KAAAC,SAAA;uBALkB,CAczBa,UAAU,EAAG,SAGA,wBAAA,QAAA,KAAexZ,EAAAA,EAAf,EAHA,CA1VR,CCXPjQ,MAAAA,OAAAA,CAAcmoB,EAAdnoB,CAAwB,CAAE8nB,KAAAA,EAAF,CAAQtC,KAAAA,EAAR,CAAxBxlB;"}
\ No newline at end of file
diff --git a/core/core.libraries.yml b/core/core.libraries.yml
index 55d225acc91869eb4131ea73ecd5e0db6e8a6a92..eafec1e0a8f54881ccb54747a4e7d8157bf835bd 100644
--- a/core/core.libraries.yml
+++ b/core/core.libraries.yml
@@ -503,9 +503,20 @@ jquery.joyride:
     gpl-compatible: true
   js:
     assets/vendor/jquery-joyride/jquery.joyride-2.1.js: { }
+  deprecated: The "%library_id%" asset library is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use the core/shepherd library instead. See https://www.drupal.org/node/3195234
   dependencies:
     - core/jquery
 
+shepherd:
+  remote: https://github.com/shipshapecode/shepherd
+  version: "8.3.1"
+  license:
+    name: MIT
+    url: https://raw.githubusercontent.com/shipshapecode/shepherd/v8.3.1/LICENSE
+    gpl-compatible: true
+  js:
+    assets/vendor/shepherd/shepherd.min.js: { minified: true }
+
 jquery.once:
   remote: https://github.com/RobLoach/jquery-once
   version: "2.2.3"
diff --git a/core/modules/block/config/optional/tour.tour.block-layout.yml b/core/modules/block/config/optional/tour.tour.block-layout.yml
index 52992991f66441e8105313ea0465549335cc5463..0b01a6bb0e925c34c959d227661f9334db098108 100644
--- a/core/modules/block/config/optional/tour.tour.block-layout.yml
+++ b/core/modules/block/config/optional/tour.tour.block-layout.yml
@@ -21,24 +21,21 @@ tips:
     label: 'Place Blocks'
     body: 'Any custom or contributed block can be added to a particular region by clicking on a button Place block. A new block can also be created by clicking on Place Block'
     weight: 2
-    attributes:
-      data-class: button--small
+    selector: '.button--small'
   block-region:
     id: block-region
     plugin: text
     label: 'Block Region'
     body: 'Assign or change the region of a block by clicking here. A dropdown list with all the regions will appear.You can place one block in multiple regions.'
     weight: 3
-    attributes:
-      data-class: block-region-select
+    selector: '.block-region-select'
   configure-block:
     id: configure-block
     plugin: text
     label: 'Configure Block'
     body: 'By Clicking on "Configure" you can go ahead and edit the contents of the block, deal with the visibility settings and even change the placement of where it is on your theme.'
     weight: 4
-    attributes:
-      data-class: dropbutton-widget
+    selector: '.dropbutton-widget'
   custom-block-library:
     id: custom-block-library
     plugin: text
diff --git a/core/modules/jsonapi/tests/src/Functional/TourTest.php b/core/modules/jsonapi/tests/src/Functional/TourTest.php
index 77c8b9e98be9dc024127ffe71d6b63b8eb7a6e10..2206a445fb56c3720d35bbb4428bf80886e6e121 100644
--- a/core/modules/jsonapi/tests/src/Functional/TourTest.php
+++ b/core/modules/jsonapi/tests/src/Functional/TourTest.php
@@ -67,9 +67,7 @@ protected function createEntity() {
           'label' => 'Llama',
           'body' => 'Who handle the awesomeness of llamas?',
           'weight' => 100,
-          'attributes' => [
-            'data-id' => 'tour-llama-1',
-          ],
+          'selector' => '#tour-llama-1',
         ],
       ],
     ]);
@@ -119,9 +117,7 @@ protected function getExpectedDocument() {
               'label' => 'Llama',
               'body' => 'Who handle the awesomeness of llamas?',
               'weight' => 100,
-              'attributes' => [
-                'data-id' => 'tour-llama-1',
-              ],
+              'selector' => '#tour-llama-1',
             ],
           ],
           'drupal_internal__id' => 'tour-llama',
diff --git a/core/modules/language/config/optional/tour.tour.language-add.yml b/core/modules/language/config/optional/tour.tour.language-add.yml
index 5d5c373097e8731f668c5b6ee7bfde693f72ba09..53fdc3593d47d873f44d2cf9668f1308cf92d02f 100644
--- a/core/modules/language/config/optional/tour.tour.language-add.yml
+++ b/core/modules/language/config/optional/tour.tour.language-add.yml
@@ -21,8 +21,7 @@ tips:
     label: 'Select language'
     body: '<p>Choose a language from the list, or choose "Custom language..." at the end of the list.</p><p>Click the "Add language" button when you are done choosing your language.</p><p>When adding a custom language, you will get an additional form where you can provide the name, code, and direction of the language.</p>'
     weight: 2
-    attributes:
-      data-id: edit-predefined-langcode
+    selector: '#edit-predefined-langcode'
   language-add-continue:
     id: language-add-continue
     plugin: text
diff --git a/core/modules/language/config/optional/tour.tour.language-edit.yml b/core/modules/language/config/optional/tour.tour.language-edit.yml
index 8e63cdb8f2bd785397a4c80d6de9f24aceed9cc1..6e60d8501a6771fd0ed4d1defc224184b05ad9b2 100644
--- a/core/modules/language/config/optional/tour.tour.language-edit.yml
+++ b/core/modules/language/config/optional/tour.tour.language-edit.yml
@@ -21,24 +21,21 @@ tips:
     label: 'Language code'
     body: '<p>You cannot change the code of a language on the site, since it is used by the system to keep track of the language.</p>'
     weight: 2
-    attributes:
-      data-id: edit-langcode-view
+    selector: '#edit-langcode-view'
   language-edit-label:
     id: language-edit-label
     plugin: text
     label: 'Language name'
     body: '<p>The language name is used throughout the site for all users and is written in English. Names of built-in languages can be translated using the Interface Translation module, and names of both built-in and custom languages can be translated using the Configuration Translation module.</p>'
     weight: 3
-    attributes:
-      data-id: edit-label
+    selector: '#edit-label'
   language-edit-direction:
     id: language-edit-direction
     plugin: text
     label: 'Language direction'
     body: '<p>Choose if the language is a "Left to right" or "Right to left" language.</p><p>Note that not all themes support "Right to left" layouts, so test your theme if you are using "Right to left".</p>'
     weight: 4
-    attributes:
-      data-id: edit-direction--wrapper--description
+    selector: '#edit-direction--wrapper--description'
   language-edit-continue:
     id: language-edit-continue
     plugin: text
diff --git a/core/modules/language/config/optional/tour.tour.language.yml b/core/modules/language/config/optional/tour.tour.language.yml
index 2d310cbf4fe6d24f36f430a93b0b8e7677f4f5f1..1149058fd138e85f6e33af43ddb8868eeaa72715 100644
--- a/core/modules/language/config/optional/tour.tour.language.yml
+++ b/core/modules/language/config/optional/tour.tour.language.yml
@@ -21,32 +21,28 @@ tips:
     label: 'Adding languages'
     body: '<p>To add more languages to your site, click the "Add language" button.</p><p>Added languages will be displayed in the language list and can then be edited or deleted.</p>'
     weight: 2
-    attributes:
-      data-class: button-action
+    selector: '.button-action'
   language-reorder:
     id: language-reorder
     plugin: text
     label: 'Reordering languages'
     body: '<p>To reorder the languages on your site, use the drag icons next to each language.</p><p>The order shown here is the display order for language lists on the site such as in the language switcher blocks provided by the Interface Translation and Content Translation modules.</p><p>When you are done with reordering the languages, click the "Save configuration" button for the changes to take effect.</p>'
     weight: 3
-    attributes:
-      data-class: draggable
+    selector: '.draggable'
   language-default:
     id: language-default
     plugin: text
     label: 'Set a language as default'
     body: '<p>You can change the default language of the site by choosing one of your configured languages as default. The site will use the default language in situations where no choice is made but a language should be set, for example as the language of the displayed interface.</p>'
     weight: 4
-    attributes:
-      data-class: js-form-item-site-default-language
+    selector: '.js-form-item-site-default-language'
   language-operations:
     id: language-operations
     plugin: text
     label: 'Modifying languages'
     body: '<p>Operations are provided for editing and deleting your languages.</p><p>You can edit the name and the direction of the language.</p><p>Deleted languages can be added back at a later time. Deleting a language will remove all interface translations associated with it, and content in this language will be set to be language neutral. Note that you cannot delete the default language of the site.</p>'
     weight: 5
-    attributes:
-      data-class: dropbutton-wrapper
+    selector: '.dropbutton-wrapper'
   language-continue:
     id: language-continue
     plugin: text
diff --git a/core/modules/locale/config/optional/tour.tour.locale.yml b/core/modules/locale/config/optional/tour.tour.locale.yml
index b6b376cf6a1866fad9db55d57aca36b4ffd1c4b3..bcd7a9ce4e00824f47321343baf55f7c8ad8d24c 100644
--- a/core/modules/locale/config/optional/tour.tour.locale.yml
+++ b/core/modules/locale/config/optional/tour.tour.locale.yml
@@ -21,48 +21,42 @@ tips:
     label: 'Translation language'
     body: 'Choose the language you want to translate.'
     weight: 2
-    attributes:
-      data-id: edit-langcode
+    selector: '#edit-langcode'
   locale-search:
     id: locale-search
     plugin: text
     label: Search
     body: 'Enter the specific word or sentence you want to translate, you can also write just a part of a word.'
     weight: 3
-    attributes:
-      data-id: edit-string
+    selector: '#edit-string'
   locale-filter:
     id: locale-filter
     plugin: text
     label: 'Filter the search'
     body: 'You can search for untranslated strings if you want to translate something that isn''t translated yet. If you want to modify an existing translation, you might want to search only for translated strings.'
     weight: 4
-    attributes:
-      data-id: edit-translation
+    selector: '#edit-translation'
   locale-submit:
     id: locale-submit
     plugin: text
     label: 'Apply your search criteria'
     body: 'To apply your search criteria, click on the <em>Filter</em> button.'
     weight: 5
-    attributes:
-      data-id: edit-submit
+    selector: '#edit-submit'
   locale-translate:
     id: locale-translate
     plugin: text
     label: Translate
     body: 'You can write your own translation in the text fields of the right column. Try to figure out in which context the text will be used in order to translate it in the appropriate way.'
     weight: 6
-    attributes:
-      data-class: js-form-type-textarea
+    selector: '.js-form-type-textarea'
   locale-validate:
     id: locale-validate
     plugin: text
     label: 'Validate the translation'
     body: 'When you have finished your translations, click on the <em>Save translations</em> button. You must save your translations, each time before changing the page or making a new search.'
     weight: 7
-    attributes:
-      data-id: edit-submit--2
+    selector: '#edit-submit--2'
   locale-continue:
     id: locale-continue
     plugin: text
diff --git a/core/modules/tour/config/schema/tour.schema.yml b/core/modules/tour/config/schema/tour.schema.yml
index caf73639ed255352689f271d94d8b5f9d77ba2b6..e9c137cf48b0704d6c3037175b4af3b28fe5bc90 100644
--- a/core/modules/tour/config/schema/tour.schema.yml
+++ b/core/modules/tour/config/schema/tour.schema.yml
@@ -43,9 +43,17 @@ tour.tip:
       type: integer
       label: 'Weight'
     location:
+      deprecated: "The tour.tip 'location' config schema property is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Instead use 'position'. The value must be a valid placement accepted by PopperJS. See https://www.drupal.org/node/3204093"
       type: string
       label: 'Location'
+    position:
+      type: string
+      label: 'Position'
+    selector:
+      type: string
+      label: 'Selector'
     attributes:
+      deprecated: "The tour.tip 'attributes' config schema property is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Instead of 'data-class' and 'data-id' attributes, use 'selector' to specify the element a tip attaches to. See https://www.drupal.org/node/3204093"
       type: sequence
       label: 'Attributes'
       sequence:
diff --git a/core/modules/tour/css/tour.module.css b/core/modules/tour/css/tour.module.css
index 16c849ab0480f21ef2b8bd8715e838bdcbd93e54..a4ef6ebd733c33e2ab1fdd813db675a909b215b2 100644
--- a/core/modules/tour/css/tour.module.css
+++ b/core/modules/tour/css/tour.module.css
@@ -11,7 +11,7 @@
   float: left;
 }
 
-/* Override placement of the tour progress indicator. */
+/* Style the tour progress indicator. */
 .tour-progress {
   position: absolute;
   right: 20px; /* LTR */
@@ -22,122 +22,132 @@
   left: 20px;
 }
 
-/* Default styles for the container */
-.joyride-tip-guide {
+/**
+ * The following are largely Shepherd's default styles, with a few modifications
+ * to facilitate a graceful transition from Joyride, the library used prior to
+ * Shepherd.
+ */
+.shepherd-footer {
+  display: flex;
+  justify-content: flex-start;
+  padding: 0 20px 20px;
+}
+
+.shepherd-footer .shepherd-button:last-child {
+  margin-right: 0;
+}
+
+.shepherd-cancel-icon {
   position: absolute;
+  top: 20px;
+  right: 20px;
+  margin: 0;
+  padding: 0;
+  cursor: pointer;
+  border: none;
+  background: transparent;
+  line-height: 1em;
+}
+
+.shepherd-title {
+  margin: 0;
+  padding: 0;
+}
+
+.shepherd-header {
+  position: relative;
+  margin-bottom: 10px;
+  padding: 20px 50px 0 20px;
+}
+
+.shepherd-text {
+  padding: 0 20px;
+}
+
+.shepherd-text p {
+  margin: 0 0 1.4em;
+}
+
+.shepherd-element {
   z-index: 101;
-  top: 0;
-  left: 0;
-  display: none;
   width: 300px;
   background: #fff;
 }
 
 @media only screen and (max-width: 767px) {
-  .joyride-tip-guide {
+  .shepherd-element {
     left: 2.5%;
     width: 85%;
   }
 }
 
-.joyride-content-wrapper {
-  position: relative;
-  padding: 20px 50px 20px 20px;  /* LTR */
-}
-[dir="rtl"] .joyride-content-wrapper {
-  padding: 20px 20px 20px 50px;
-}
-
-/* Add a little css triangle pip, older browser just miss out on the fanciness of it. */
-.joyride-tip-guide .joyride-nub {
-  position: absolute;
-  left: 22px;
-  display: block;
-  width: 0;
-  height: 0;
+.shepherd-enabled.shepherd-element {
+  opacity: 1;
 }
 
-.joyride-tip-guide .joyride-nub.top {
-  top: -28px;
-  bottom: auto;
+.shepherd-element[data-popper-reference-hidden]:not(.shepherd-centered) {
+  opacity: 0;
 }
 
-.joyride-tip-guide .joyride-nub.bottom {
-  bottom: -28px;
+.shepherd-element,
+.shepherd-element *,
+.shepherd-element :after,
+.shepherd-element :before {
+  box-sizing: border-box;
 }
 
-.joyride-tip-guide .joyride-nub.right {
-  top: 22px;
-  right: -28px;
-  bottom: auto;
-  left: auto;
+.shepherd-arrow,
+.shepherd-arrow:before {
+  position: absolute;
+  width: 16px;
+  height: 16px;
 }
 
-.joyride-tip-guide .joyride-nub.left {
-  top: 22px;
-  right: auto;
-  bottom: auto;
-  left: -28px;
+.shepherd-arrow:before {
+  content: "";
+  transform: rotate(45deg);
+  background: #fff;
 }
 
-.joyride-tip-guide .joyride-nub.top-right {
-  top: -28px;
-  right: 28px;
-  bottom: auto;
-  left: auto;
+.shepherd-element[data-popper-placement^=top] > .shepherd-arrow {
+  bottom: -8px;
 }
 
-.joyride-tip-guide .tour-tip-label {
-  margin-top: 0;
+.shepherd-element[data-popper-placement^=bottom] > .shepherd-arrow {
+  top: -8px;
 }
 
-.joyride-tip-guide p {
-  margin: 0 0 1.4em;
+.shepherd-element[data-popper-placement^=left] > .shepherd-arrow {
+  right: -8px;
 }
 
-.joyride-timer-indicator-wrap {
-  position: absolute;
-  right: 17px;
-  bottom: 16px;
-  width: 50px;
-  height: 3px;
-}
-.joyride-timer-indicator {
-  display: block;
-  width: 0;
-  height: inherit;
+.shepherd-element[data-popper-placement^=right] > .shepherd-arrow {
+  left: -8px;
 }
 
-.joyride-close-tip {
-  position: absolute;
-  top: 20px;
-  right: 20px; /* LTR */
-  line-height: 1em;
-}
-[dir="rtl"] .joyride-close-tip {
-  right: auto;
-  left: 20px;
+.shepherd-target-click-disabled.shepherd-enabled.shepherd-target,
+.shepherd-target-click-disabled.shepherd-enabled.shepherd-target * {
+  pointer-events: none;
 }
 
-.joyride-modal-bg {
+.shepherd-modal-overlay-container {
   position: fixed;
   z-index: 100;
   top: 0;
   left: 0;
-  display: none;
-  width: 100%;
-  height: 100%;
-  cursor: pointer;
+  overflow: hidden;
+  width: 100vw;
+  height: 0;
+  pointer-events: none;
+  opacity: 0;
+  fill-rule: evenodd;
 }
 
-.joyride-expose-wrapper {
-  position: absolute;
-  z-index: 102;
+.shepherd-modal-overlay-container.shepherd-modal-is-visible {
+  height: 100vh;
+  opacity: 0.5;
 }
 
-.joyride-expose-cover {
-  position: absolute;
-  z-index: 10000;
-  top: 0;
-  left: 0;
+.shepherd-modal-overlay-container.shepherd-modal-is-visible path {
+  pointer-events: all;
 }
diff --git a/core/modules/tour/js/tour.es6.js b/core/modules/tour/js/tour.es6.js
index 27ad054a54b47b76ae87e6f6addbdd919704e648..e682e3db7ed35ea6c275edf8f6154865bf5f3b55 100644
--- a/core/modules/tour/js/tour.es6.js
+++ b/core/modules/tour/js/tour.es6.js
@@ -3,7 +3,7 @@
  * Attaches behaviors for the Tour module's toolbar tab.
  */
 
-(function ($, Backbone, Drupal, document) {
+(($, Backbone, Drupal, settings, document, Shepherd) => {
   const queryString = decodeURI(window.location.search);
 
   /**
@@ -29,6 +29,7 @@
         .once('tour')
         .each(() => {
           const model = new Drupal.tour.models.StateModel();
+          // eslint-disable-next-line no-new
           new Drupal.tour.views.ToggleTourView({
             el: $(context).find('#toolbar-tab-tour'),
             model,
@@ -36,14 +37,16 @@
 
           model
             // Allow other scripts to respond to tour events.
-            .on('change:isActive', (model, isActive) => {
+            .on('change:isActive', (tourModel, isActive) => {
               $(document).trigger(
                 isActive ? 'drupalTourStarted' : 'drupalTourStopped',
               );
-            })
-            // Initialization: check whether a tour is available on the current
-            // page.
-            .set('tour', $(context).find('ol#tour'));
+            });
+          // Initialization: check whether a tour is available on the current
+          // page.
+          if (settings._tour_internal) {
+            model.set('tour', settings._tour_internal);
+          }
 
           // Start the tour immediately if toggled via query string.
           if (/tour=?/i.test(queryString)) {
@@ -138,7 +141,7 @@
         this.$el
           .find('button')
           .toggleClass('is-active', isActive)
-          .prop('aria-pressed', isActive);
+          .attr('aria-pressed', isActive);
         return this;
       },
 
@@ -147,27 +150,105 @@
        */
       toggleTour() {
         if (this.model.get('isActive')) {
-          const $tour = this._getTour();
-          this._removeIrrelevantTourItems($tour, this._getDocument());
+          this._removeIrrelevantTourItems(this._getTour());
+          const tourItems = this.model.get('tour');
           const that = this;
-          const close = Drupal.t('Close');
-          if ($tour.find('li').length) {
-            $tour.joyride({
-              autoStart: true,
-              postRideCallback() {
-                that.model.set('isActive', false);
-              },
-              // HTML segments for tip layout.
-              template: {
-                link: `<a href="#close" class="joyride-close-tip" aria-label="${close}">&times;</a>`,
-                button:
-                  '<a href="#" class="button button--primary joyride-next-tip"></a>',
+
+          if (tourItems.length) {
+            // If Joyride is positioned relative to the top or bottom of an
+            // element, and its secondary position is right or left, then the
+            // arrow is also positioned right or left. Shepherd defaults to
+            // center positioning the arrow.
+            //
+            // In most cases, this arrow positioning difference has
+            // little impact. However, tours built with Joyride may have tips
+            // using a higher level selector than the element the tip is
+            // expected to point to, and relied on Joyride's arrow positioning
+            // to align the arrow with the expected reference element. Joyride's
+            // arrow positioning behavior is replicated here to prevent those
+            // use cases from causing UI regressions.
+            //
+            // This modifier is provided here instead of TourViewBuilder (where
+            // most position modifications are) because it includes adding a
+            // JavaScript callback function.
+            settings.tourShepherdConfig.defaultStepOptions.popperOptions.modifiers.push(
+              {
+                name: 'moveArrowJoyridePosition',
+                enabled: true,
+                phase: 'write',
+                fn({ state }) {
+                  const { arrow } = state.elements;
+                  const { placement } = state;
+                  if (
+                    arrow &&
+                    /^top|bottom/.test(placement) &&
+                    /-start|-end$/.test(placement)
+                  ) {
+                    const horizontalPosition = placement.split('-')[1];
+                    const offset =
+                      horizontalPosition === 'start'
+                        ? 28
+                        : state.elements.popper.clientWidth - 56;
+                    arrow.style.transform = `translate3d(${offset}px, 0px, 0px)`;
+                  }
+                },
               },
+            );
+            const shepherdTour = new Shepherd.Tour(settings.tourShepherdConfig);
+            shepherdTour.on('cancel', () => {
+              that.model.set('isActive', false);
+            });
+            shepherdTour.on('complete', () => {
+              that.model.set('isActive', false);
+            });
+
+            tourItems.forEach((tourStepConfig, index) => {
+              // Create the configuration for a given tour step by using values
+              // defined in TourViewBuilder.
+              // @see \Drupal\tour\TourViewBuilder::viewMultiple()
+              const tourItemOptions = {
+                title: tourStepConfig.title
+                  ? Drupal.checkPlain(tourStepConfig.title)
+                  : null,
+                text: () => Drupal.theme('tourItemContent', tourStepConfig),
+                attachTo: tourStepConfig.attachTo,
+                buttons: [Drupal.tour.nextButton(shepherdTour, tourStepConfig)],
+                classes: tourStepConfig.classes,
+                index,
+              };
+
+              tourItemOptions.when = {
+                show() {
+                  const nextButton =
+                    shepherdTour.currentStep.el.querySelector('footer button');
+
+                  // Drupal disables Shepherd's built in focus after item
+                  // creation functionality due to focus being set on the tour
+                  // item container after every scroll and resize event. In its
+                  // place, the 'next' button is focused here.
+                  nextButton.focus();
+
+                  // When Stable or Stable 9 are part of the active theme, the
+                  // Drupal.tour.convertToJoyrideMarkup() function is available.
+                  // This function converts Shepherd markup to Joyride markup,
+                  // facilitating the use of the Shepherd library that is
+                  // backwards compatible with customizations intended for
+                  // Joyride.
+                  // The Drupal.tour.convertToJoyrideMarkup() function is
+                  // internal, and will eventually be removed from Drupal core.
+                  if (Drupal.tour.hasOwnProperty('convertToJoyrideMarkup')) {
+                    Drupal.tour.convertToJoyrideMarkup(shepherdTour);
+                  }
+                },
+              };
+
+              shepherdTour.addStep(tourItemOptions);
             });
-            this.model.set({ isActive: true, activeTour: $tour });
+            shepherdTour.start();
+            this.model.set({ isActive: true, activeTour: shepherdTour });
           }
         } else {
-          this.model.get('activeTour').joyride('destroy');
+          this.model.get('activeTour').cancel();
           this.model.set({ isActive: false, activeTour: [] });
         }
       },
@@ -187,24 +268,13 @@
       /**
        * Gets the tour.
        *
-       * @return {jQuery}
-       *   A jQuery element pointing to an `<ol>` containing tour items.
+       * @return {array}
+       *   An array of Shepherd tour item objects.
        */
       _getTour() {
         return this.model.get('tour');
       },
 
-      /**
-       * Gets the relevant document as a jQuery element.
-       *
-       * @return {jQuery}
-       *   A jQuery element pointing to the document within which a tour would be
-       *   started given the current state.
-       */
-      _getDocument() {
-        return $(document);
-      },
-
       /**
        * Removes tour items for elements that don't have matching page elements.
        *
@@ -215,62 +285,133 @@
        * page element or don't have the "bar" class.</caption>
        * http://example.com/foo?tips=bar
        *
-       * @param {jQuery} $tour
-       *   A jQuery element pointing to an `<ol>` containing tour items.
-       * @param {jQuery} $document
-       *   A jQuery element pointing to the document within which the elements
-       *   should be sought.
-       *
-       * @see Drupal.tour.views.ToggleTourView#_getDocument
+       * @param {Object[]} tourItems
+       *   An array containing tour Step config objects.
+       *   The object properties relevant to this function:
+       *   - classes {string}: A string of classes to be added to the tour step
+       *     when rendered.
+       *   - selector {string}: The selector a tour step is associated with.
        */
-      _removeIrrelevantTourItems($tour, $document) {
-        let removals = false;
+      _removeIrrelevantTourItems(tourItems) {
         const tips = /tips=([^&]+)/.exec(queryString);
-        $tour.find('li').each(function () {
-          const $this = $(this);
-          const itemId = $this.attr('data-id');
-          const itemClass = $this.attr('data-class');
+        const filteredTour = tourItems.filter((tourItem) => {
           // If the query parameter 'tips' is set, remove all tips that don't
-          // have the matching class.
-          if (tips && !$(this).hasClass(tips[1])) {
-            removals = true;
-            $this.remove();
-            return;
-          }
-          // Remove tip from the DOM if there is no corresponding page element.
+          // have the matching class. The `tourItem` variable is a step config
+          // object, and the 'classes' property is a ShepherdJS Step() config
+          // option that provides a string.
           if (
-            (!itemId && !itemClass) ||
-            (itemId && $document.find(`#${itemId}`).length) ||
-            (itemClass && $document.find(`.${itemClass}`).length)
+            tips &&
+            tourItem.hasOwnProperty('classes') &&
+            tourItem.classes.indexOf(tips[1]) === -1
           ) {
-            return;
+            return false;
           }
-          removals = true;
-          $this.remove();
+
+          // If a selector is configured but there isn't a matching element,
+          // return false.
+          return !(
+            tourItem.selector && !document.querySelector(tourItem.selector)
+          );
         });
 
-        // If there were removals, we'll have to do some clean-up.
-        if (removals) {
-          const total = $tour.find('li').length;
-          if (!total) {
-            this.model.set({ tour: [] });
-          }
+        // If there are tours filtered, we'll have to update model.
+        if (tourItems.length !== filteredTour.length) {
+          filteredTour.forEach((filteredTourItem, filteredTourItemId) => {
+            filteredTour[filteredTourItemId].counter = Drupal.t(
+              '!tour_item of !total',
+              {
+                '!tour_item': filteredTourItemId + 1,
+                '!total': filteredTour.length,
+              },
+            );
 
-          $tour
-            .find('li')
-            // Rebuild the progress data.
-            .each(function (index) {
-              const progress = Drupal.t('!tour_item of !total', {
-                '!tour_item': index + 1,
-                '!total': total,
-              });
-              $(this).find('.tour-progress').text(progress);
-            })
-            // Update the last item to have "End tour" as the button.
-            .eq(-1)
-            .attr('data-text', Drupal.t('End tour'));
+            if (filteredTourItemId === filteredTour.length - 1) {
+              filteredTour[filteredTourItemId].cancelText =
+                Drupal.t('End tour');
+            }
+          });
+          this.model.set('tour', filteredTour);
         }
       },
     },
   );
-})(jQuery, Backbone, Drupal, document);
+
+  /**
+   * Provides an object that will become the tour item's 'next' button.
+   *
+   * Similar to a theme function, themes can override this function to customize
+   * the resulting button. Unlike a theme function, it returns an object instead
+   * of a string, which is why it is not part of Drupal.theme.
+   *
+   * @param {Tour} shepherdTour
+   *  A class representing a Shepherd site tour.
+   * @param {Object} tourStepConfig
+   *   An object generated in TourViewBuilder used for creating the options
+   *   passed to `Tour.addStep(options)`.
+   *   Contains the following properties:
+   *   - id {string}: The tour.tip ID specified by its config
+   *   - selector {string|null}: The selector of the element the tour step is
+   *     attaching to.
+   *   - module {string}: The module providing the tip plugin used by this step.
+   *   - counter {string}: A string indicating which tour step this is out of
+   *     how many total steps.
+   *   - attachTo {Object} This is directly mapped to the `attachTo` Step()
+   *     option. It has two properties:
+   *     - element {string}: The selector of the element the step attaches to.
+   *     - on {string}: a PopperJS compatible string to specify step position.
+   *   - classes {string}: Will be added to the class attribute of the step.
+   *   - body {string}: Markup that is mapped to the `text` Step() option. Will
+   *     become the step content.
+   *   - title {string}: is mapped to the `title` Step() option.
+   *
+   * @return {{classes: string, action: string, text: string}}
+   *    An object structured in the manner Shepherd requires to create the
+   *    'next' button.
+   *
+   * @see https://shepherdjs.dev/docs/Tour.html
+   * @see \Drupal\tour\TourViewBuilder::viewMultiple()
+   * @see https://shepherdjs.dev/docs/Step.html
+   */
+  Drupal.tour.nextButton = (shepherdTour, tourStepConfig) => {
+    return {
+      classes: 'button button--primary',
+      text: tourStepConfig.cancelText
+        ? tourStepConfig.cancelText
+        : Drupal.t('Next'),
+      action: tourStepConfig.cancelText
+        ? shepherdTour.cancel
+        : shepherdTour.next,
+    };
+  };
+
+  /**
+   * Theme function for tour item content.
+   *
+   * @param {Object} tourStepConfig
+   *   An object generated in TourViewBuilder used for creating the options
+   *   passed to `Tour.addStep(options)`.
+   *   Contains the following properties:
+   *   - id {string}: The tour.tip ID specified by its config
+   *   - selector {string|null}: The selector of the element the tour step is
+   *     attaching to.
+   *   - module {string}: The module providing the tip plugin used by this step.
+   *   - counter {string}: A string indicating which tour step this is out of
+   *     how many total steps.
+   *   - attachTo {Object} This is directly mapped to the `attachTo` Step()
+   *     option. It has two properties:
+   *     - element {string}: The selector of the element the step attaches to.
+   *     - on {string}: a PopperJS compatible string to specify step position.
+   *   - classes {string}: Will be added to the class attribute of the step.
+   *   - body {string}: Markup that is mapped to the `text` Step() option. Will
+   *     become the step content.
+   *   - title {string}: is mapped to the `title` Step() option.
+   *
+   * @return {string}
+   *   The tour item content markup.
+   *
+   * @see \Drupal\tour\TourViewBuilder::viewMultiple()
+   * @see https://shepherdjs.dev/docs/Step.html
+   */
+  Drupal.theme.tourItemContent = (tourStepConfig) =>
+    `${tourStepConfig.body}<div class="tour-progress">${tourStepConfig.counter}</div>`;
+})(jQuery, Backbone, Drupal, drupalSettings, document, window.Shepherd);
diff --git a/core/modules/tour/js/tour.js b/core/modules/tour/js/tour.js
index 1b5be3791a6d65342d72d5c17838e4eab58c3f0d..a54c41d759f3e6874faa48afa9a448608727b2f4 100644
--- a/core/modules/tour/js/tour.js
+++ b/core/modules/tour/js/tour.js
@@ -5,7 +5,7 @@
 * @preserve
 **/
 
-(function ($, Backbone, Drupal, document) {
+(function ($, Backbone, Drupal, settings, document, Shepherd) {
   var queryString = decodeURI(window.location.search);
   Drupal.behaviors.tour = {
     attach: function attach(context) {
@@ -15,9 +15,13 @@
           el: $(context).find('#toolbar-tab-tour'),
           model: model
         });
-        model.on('change:isActive', function (model, isActive) {
+        model.on('change:isActive', function (tourModel, isActive) {
           $(document).trigger(isActive ? 'drupalTourStarted' : 'drupalTourStopped');
-        }).set('tour', $(context).find('ol#tour'));
+        });
+
+        if (settings._tour_internal) {
+          model.set('tour', settings._tour_internal);
+        }
 
         if (/tour=?/i.test(queryString)) {
           model.set('isActive', true);
@@ -47,36 +51,71 @@
     render: function render() {
       this.$el.toggleClass('hidden', this._getTour().length === 0);
       var isActive = this.model.get('isActive');
-      this.$el.find('button').toggleClass('is-active', isActive).prop('aria-pressed', isActive);
+      this.$el.find('button').toggleClass('is-active', isActive).attr('aria-pressed', isActive);
       return this;
     },
     toggleTour: function toggleTour() {
       if (this.model.get('isActive')) {
-        var $tour = this._getTour();
-
-        this._removeIrrelevantTourItems($tour, this._getDocument());
+        this._removeIrrelevantTourItems(this._getTour());
 
+        var tourItems = this.model.get('tour');
         var that = this;
-        var close = Drupal.t('Close');
 
-        if ($tour.find('li').length) {
-          $tour.joyride({
-            autoStart: true,
-            postRideCallback: function postRideCallback() {
-              that.model.set('isActive', false);
-            },
-            template: {
-              link: "<a href=\"#close\" class=\"joyride-close-tip\" aria-label=\"".concat(close, "\">&times;</a>"),
-              button: '<a href="#" class="button button--primary joyride-next-tip"></a>'
+        if (tourItems.length) {
+          settings.tourShepherdConfig.defaultStepOptions.popperOptions.modifiers.push({
+            name: 'moveArrowJoyridePosition',
+            enabled: true,
+            phase: 'write',
+            fn: function fn(_ref) {
+              var state = _ref.state;
+              var arrow = state.elements.arrow;
+              var placement = state.placement;
+
+              if (arrow && /^top|bottom/.test(placement) && /-start|-end$/.test(placement)) {
+                var horizontalPosition = placement.split('-')[1];
+                var offset = horizontalPosition === 'start' ? 28 : state.elements.popper.clientWidth - 56;
+                arrow.style.transform = "translate3d(".concat(offset, "px, 0px, 0px)");
+              }
             }
           });
+          var shepherdTour = new Shepherd.Tour(settings.tourShepherdConfig);
+          shepherdTour.on('cancel', function () {
+            that.model.set('isActive', false);
+          });
+          shepherdTour.on('complete', function () {
+            that.model.set('isActive', false);
+          });
+          tourItems.forEach(function (tourStepConfig, index) {
+            var tourItemOptions = {
+              title: tourStepConfig.title ? Drupal.checkPlain(tourStepConfig.title) : null,
+              text: function text() {
+                return Drupal.theme('tourItemContent', tourStepConfig);
+              },
+              attachTo: tourStepConfig.attachTo,
+              buttons: [Drupal.tour.nextButton(shepherdTour, tourStepConfig)],
+              classes: tourStepConfig.classes,
+              index: index
+            };
+            tourItemOptions.when = {
+              show: function show() {
+                var nextButton = shepherdTour.currentStep.el.querySelector('footer button');
+                nextButton.focus();
+
+                if (Drupal.tour.hasOwnProperty('convertToJoyrideMarkup')) {
+                  Drupal.tour.convertToJoyrideMarkup(shepherdTour);
+                }
+              }
+            };
+            shepherdTour.addStep(tourItemOptions);
+          });
+          shepherdTour.start();
           this.model.set({
             isActive: true,
-            activeTour: $tour
+            activeTour: shepherdTour
           });
         }
       } else {
-        this.model.get('activeTour').joyride('destroy');
+        this.model.get('activeTour').cancel();
         this.model.set({
           isActive: false,
           activeTour: []
@@ -91,48 +130,41 @@
     _getTour: function _getTour() {
       return this.model.get('tour');
     },
-    _getDocument: function _getDocument() {
-      return $(document);
-    },
-    _removeIrrelevantTourItems: function _removeIrrelevantTourItems($tour, $document) {
-      var removals = false;
+    _removeIrrelevantTourItems: function _removeIrrelevantTourItems(tourItems) {
       var tips = /tips=([^&]+)/.exec(queryString);
-      $tour.find('li').each(function () {
-        var $this = $(this);
-        var itemId = $this.attr('data-id');
-        var itemClass = $this.attr('data-class');
-
-        if (tips && !$(this).hasClass(tips[1])) {
-          removals = true;
-          $this.remove();
-          return;
+      var filteredTour = tourItems.filter(function (tourItem) {
+        if (tips && tourItem.hasOwnProperty('classes') && tourItem.classes.indexOf(tips[1]) === -1) {
+          return false;
         }
 
-        if (!itemId && !itemClass || itemId && $document.find("#".concat(itemId)).length || itemClass && $document.find(".".concat(itemClass)).length) {
-          return;
-        }
-
-        removals = true;
-        $this.remove();
+        return !(tourItem.selector && !document.querySelector(tourItem.selector));
       });
 
-      if (removals) {
-        var total = $tour.find('li').length;
-
-        if (!total) {
-          this.model.set({
-            tour: []
+      if (tourItems.length !== filteredTour.length) {
+        filteredTour.forEach(function (filteredTourItem, filteredTourItemId) {
+          filteredTour[filteredTourItemId].counter = Drupal.t('!tour_item of !total', {
+            '!tour_item': filteredTourItemId + 1,
+            '!total': filteredTour.length
           });
-        }
 
-        $tour.find('li').each(function (index) {
-          var progress = Drupal.t('!tour_item of !total', {
-            '!tour_item': index + 1,
-            '!total': total
-          });
-          $(this).find('.tour-progress').text(progress);
-        }).eq(-1).attr('data-text', Drupal.t('End tour'));
+          if (filteredTourItemId === filteredTour.length - 1) {
+            filteredTour[filteredTourItemId].cancelText = Drupal.t('End tour');
+          }
+        });
+        this.model.set('tour', filteredTour);
       }
     }
   });
-})(jQuery, Backbone, Drupal, document);
\ No newline at end of file
+
+  Drupal.tour.nextButton = function (shepherdTour, tourStepConfig) {
+    return {
+      classes: 'button button--primary',
+      text: tourStepConfig.cancelText ? tourStepConfig.cancelText : Drupal.t('Next'),
+      action: tourStepConfig.cancelText ? shepherdTour.cancel : shepherdTour.next
+    };
+  };
+
+  Drupal.theme.tourItemContent = function (tourStepConfig) {
+    return "".concat(tourStepConfig.body, "<div class=\"tour-progress\">").concat(tourStepConfig.counter, "</div>");
+  };
+})(jQuery, Backbone, Drupal, drupalSettings, document, window.Shepherd);
\ No newline at end of file
diff --git a/core/modules/tour/src/Plugin/tour/tip/TipPluginText.php b/core/modules/tour/src/Plugin/tour/tip/TipPluginText.php
index 7724c676472afff7e963e686f8f6c1ba08153968..f82b95eb4fadded241772d55edd7b72bde7db694 100644
--- a/core/modules/tour/src/Plugin/tour/tip/TipPluginText.php
+++ b/core/modules/tour/src/Plugin/tour/tip/TipPluginText.php
@@ -2,10 +2,10 @@
 
 namespace Drupal\tour\Plugin\tour\tip;
 
-use Drupal\Component\Utility\Html;
 use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
 use Drupal\Core\Utility\Token;
 use Drupal\tour\TipPluginBase;
+use Drupal\tour\TourTipPluginInterface;
 use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
@@ -16,7 +16,7 @@
  *   title = @Translation("Text")
  * )
  */
-class TipPluginText extends TipPluginBase implements ContainerFactoryPluginInterface {
+class TipPluginText extends TipPluginBase implements ContainerFactoryPluginInterface, TourTipPluginInterface {
 
   /**
    * The body text which is used for render of this Text Tip.
@@ -32,20 +32,6 @@ class TipPluginText extends TipPluginBase implements ContainerFactoryPluginInter
    */
   protected $token;
 
-  /**
-   * The forced position of where the tip will be located.
-   *
-   * @var string
-   */
-  protected $location;
-
-  /**
-   * Unique aria-id.
-   *
-   * @var string
-   */
-  protected $ariaId;
-
   /**
    * Constructs a \Drupal\tour\Plugin\tour\tip\TipPluginText object.
    *
@@ -70,58 +56,27 @@ public static function create(ContainerInterface $container, array $configuratio
     return new static($configuration, $plugin_id, $plugin_definition, $container->get('token'));
   }
 
-  /**
-   * Returns an ID that is guaranteed uniqueness.
-   *
-   * @return string
-   *   A unique id to be used to generate aria attributes.
-   */
-  public function getAriaId() {
-    if (!$this->ariaId) {
-      $this->ariaId = Html::getUniqueId($this->get('id'));
-    }
-    return $this->ariaId;
-  }
-
-  /**
-   * Returns body of the text tip.
-   *
-   * @return string
-   *   The tip body.
-   */
-  public function getBody() {
-    return $this->get('body');
-  }
-
-  /**
-   * Returns location of the text tip.
-   *
-   * @return string
-   *   The tip location.
-   */
-  public function getLocation() {
-    return $this->get('location');
-  }
-
   /**
    * {@inheritdoc}
    */
-  public function getAttributes() {
-    $attributes = parent::getAttributes();
-    $attributes['data-aria-describedby'] = 'tour-tip-' . $this->getAriaId() . '-contents';
-    $attributes['data-aria-labelledby'] = 'tour-tip-' . $this->getAriaId() . '-label';
-    if ($location = $this->get('location')) {
-      $attributes['data-options'] = 'tipLocation:' . $location;
-    }
-    return $attributes;
+  public function getBody(): array {
+    return [
+      '#type' => 'html_tag',
+      '#tag' => 'p',
+      '#value' => $this->token->replace($this->get('body')),
+      '#attributes' => [
+        'class' => ['tour-tip-body'],
+      ],
+    ];
   }
 
   /**
    * {@inheritdoc}
    */
   public function getOutput() {
-    $output = '<h2 class="tour-tip-label" id="tour-tip-' . $this->getAriaId() . '-label">' . Html::escape($this->getLabel()) . '</h2>';
-    $output .= '<p class="tour-tip-body" id="tour-tip-' . $this->getAriaId() . '-contents">' . $this->token->replace($this->getBody()) . '</p>';
+    // Call parent to trigger error when calling this function.
+    parent::getOutput();
+    $output = '<p class="tour-tip-body">' . $this->token->replace($this->get('body')) . '</p>';
     return ['#markup' => $output];
   }
 
diff --git a/core/modules/tour/src/TipPluginBase.php b/core/modules/tour/src/TipPluginBase.php
index b76084728723e4a12ad5e018c69caad40143dca4..8eab8ccede3796b84d9a10e104e725fa68e6197d 100644
--- a/core/modules/tour/src/TipPluginBase.php
+++ b/core/modules/tour/src/TipPluginBase.php
@@ -32,9 +32,24 @@ abstract class TipPluginBase extends PluginBase implements TipPluginInterface {
    * The attributes that will be applied to the markup of this tip.
    *
    * @var array
+   *
+   * @deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no
+   *   direct replacement. Note that this was never actually used.
+   *
+   * @see https://www.drupal.org/node/3204096
    */
   protected $attributes;
 
+  /**
+   * {@inheritdoc}
+   */
+  public function __construct(array $configuration, $plugin_id, $plugin_definition) {
+    parent::__construct($configuration, $plugin_id, $plugin_definition);
+    if (!$this instanceof TourTipPluginInterface) {
+      @trigger_error('Implementing ' . __NAMESPACE__ . '\TipPluginInterface without also implementing ' . __NAMESPACE__ . '\TourTipPluginInterface is deprecated in drupal:9.2.0. See https://www.drupal.org/node/3204096', E_USER_DEPRECATED);
+    }
+  }
+
   /**
    * {@inheritdoc}
    */
@@ -58,9 +73,34 @@ public function getWeight() {
 
   /**
    * {@inheritdoc}
+   *
+   * @todo remove in https://drupal.org/node/3195193
    */
   public function getAttributes() {
-    return $this->get('attributes') ?: [];
+    // This method is deprecated and rewritten to be as backwards compatible as
+    // possible with pre-existing uses. Due to the flexibility of tip plugins,
+    // this backwards compatibility can't be fully guaranteed. Because of this,
+    // we trigger a warning to caution the use of this function. This warning
+    // does not stop page execution, but will be logged.
+    trigger_error(__NAMESPACE__ . '\TipPluginInterface::getAttributes is deprecated. Tour tip plugins should implement ' . __NAMESPACE__ . '\TourTipPluginInterface and Tour configs should use the \'selector\' property instead of \'attributes\' to target an element.', E_USER_WARNING);
+
+    // The _tour_update_joyride() updates the deprecated 'attributes' property
+    // to the current 'selector' property. It's possible that additional
+    // attributes not supported by Drupal core exist and these need to merged
+    // in.
+    $attributes = $this->get('attributes') ?: [];
+
+    // Convert the selector property to the expected structure.
+    $selector = $this->get('selector');
+    $first_char = substr($selector, 0, 1);
+    if ($first_char === '#') {
+      $attributes['data-id'] = substr($selector, 1);
+    }
+    elseif ($first_char === '.') {
+      $attributes['data-class'] = substr($selector, 1);
+    }
+
+    return $attributes;
   }
 
   /**
@@ -79,4 +119,81 @@ public function set($key, $value) {
     $this->configuration[$key] = $value;
   }
 
+  /**
+   * This method should not be used. It is deprecated from TipPluginInterface.
+   *
+   * @return array
+   *   An intentionally empty array.
+   *
+   * @todo remove in https://drupal.org/node/3195193
+   */
+  public function getOutput() {
+    // The getOutput() method was a requirement of TipPluginInterface, but was
+    // not part of TipPluginBase prior to it being deprecated. As a result, all
+    // tip plugins have their own implementations of getOutput() making it
+    // unlikely that this implementation will be called. If it does get called,
+    // however, the tour tip will have no content due to this method returning
+    // an empty array. To help tour tips from unexpectedly having no content, a
+    // warning is triggered. This warning does not stop page
+    // execution, but will be logged.
+    trigger_error(__NAMESPACE__ . 'TipPluginInterface::getOutput is deprecated. Use getBody() instead. See https://www.drupal.org/node/3204096', E_USER_WARNING);
+
+    // This class must implement TipPluginInterface, but this method is
+    // deprecated. An empty array is returned to meet interface requirements.
+    return [];
+  }
+
+  /**
+   * Determines the placement of the tip relative to the element.
+   *
+   * If null, the tip will automatically determine the best position based on
+   * the element's position in the viewport.
+   *
+   * @return string|null
+   *   The tip placement relative to the element.
+   *
+   * @see https://shepherdjs.dev/docs/Step.html
+   */
+  public function getLocation(): ?string {
+    $location = $this->get('position');
+
+    // The location values accepted by PopperJS, the library used for
+    // positioning the tip.
+    assert(in_array(trim($location), [
+      'auto',
+      'auto-start',
+      'auto-end',
+      'top',
+      'top-start',
+      'top-end',
+      'bottom',
+      'bottom-start',
+      'bottom-end',
+      'right',
+      'right-start',
+      'right-end',
+      'left',
+      'left-start',
+      'left-end',
+      '',
+    ], TRUE), "$location is not a valid Tour Tip position value");
+
+    return $location;
+  }
+
+  /**
+   * The selector the tour tip will attach to.
+   *
+   * This is mapped to the `attachTo.element` property of the Shepherd tooltip
+   * options.
+   *
+   * @return null|string
+   *   A selector string, or null for an unattached tip.
+   *
+   * @see https://shepherdjs.dev/docs/Step.html
+   */
+  public function getSelector(): ?string {
+    return $this->get('selector');
+  }
+
 }
diff --git a/core/modules/tour/src/TipPluginInterface.php b/core/modules/tour/src/TipPluginInterface.php
index 8de76f3198069f9941d18334bb7e3472746cf8fc..a7fa22c3668f978bdde6c9a0c75e2b7e8afa9218 100644
--- a/core/modules/tour/src/TipPluginInterface.php
+++ b/core/modules/tour/src/TipPluginInterface.php
@@ -39,6 +39,10 @@ public function getWeight();
   /**
    * Returns an array of attributes for the tip wrapper.
    *
+   * @deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. The
+   *   attributes property is no longer used.
+   * @see https://www.drupal.org/node/3204093
+   *
    * @return array
    *   An array of classes and values.
    */
@@ -69,6 +73,11 @@ public function set($key, $value);
   /**
    * Returns a renderable array.
    *
+   * @deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use
+   *   getBody() instead, and do not include the tip label in the returned
+   *   output.
+   * @see https://www.drupal.org/node/3195234
+   *
    * @return array
    *   A renderable array.
    */
diff --git a/core/modules/tour/src/TourTipPluginInterface.php b/core/modules/tour/src/TourTipPluginInterface.php
new file mode 100644
index 0000000000000000000000000000000000000000..ad2807cc513461ddb044bc6a13c7c5c4e9c9b43e
--- /dev/null
+++ b/core/modules/tour/src/TourTipPluginInterface.php
@@ -0,0 +1,58 @@
+<?php
+
+namespace Drupal\tour;
+
+/**
+ * Defines an interface for tour items.
+ *
+ * @see \Drupal\tour\Annotation\Tip
+ * @see \Drupal\tour\TipPluginBase
+ * @see \Drupal\tour\TipPluginManager
+ * @see plugin_api
+ *
+ * @todo move all methods to TipPluginInterface and deprecate this interface in
+ *   https://drupal.org/node/3195193
+ */
+interface TourTipPluginInterface extends TipPluginInterface {
+
+  /**
+   * Returns the selector the tour tip will attach to.
+   *
+   * This typically maps to the Shepherd Step options `attachTo.element`
+   * property.
+   *
+   * @return null|string
+   *   A selector string, or null for an unattached tip.
+   *
+   * @see https://shepherdjs.dev/docs/Step.html
+   */
+  public function getSelector() : ?string;
+
+  /**
+   * Returns the body content of the tooltip.
+   *
+   * This typically maps to the Shepherd Step options `text` property.
+   *
+   * @return array
+   *   A render array.
+   *
+   * @see https://shepherdjs.dev/docs/Step.html
+   */
+  public function getBody(): array;
+
+  /**
+   * Returns the configured placement of the tip relative to the element.
+   *
+   * If null, the tip will automatically determine the best position based on
+   * the element's position in the viewport.
+   *
+   * This typically maps to the Shepherd Step options `attachTo.on` property.
+   *
+   * @return string|null
+   *   The tip placement relative to the element.
+   *
+   * @see https://shepherdjs.dev/docs/Step.html
+   */
+  public function getLocation(): ?string;
+
+}
diff --git a/core/modules/tour/src/TourViewBuilder.php b/core/modules/tour/src/TourViewBuilder.php
index a9bfe5a5fdcf2582db7c1b013486ca977ff937eb..df75f78b5eedf3e88268a4fd99e5e2687a13a916 100644
--- a/core/modules/tour/src/TourViewBuilder.php
+++ b/core/modules/tour/src/TourViewBuilder.php
@@ -2,6 +2,7 @@
 
 namespace Drupal\tour;
 
+use Drupal\Core\Cache\Cache;
 use Drupal\Core\Entity\EntityViewBuilder;
 use Drupal\Component\Utility\Html;
 
@@ -15,58 +16,171 @@ class TourViewBuilder extends EntityViewBuilder {
    */
   public function viewMultiple(array $entities = [], $view_mode = 'full', $langcode = NULL) {
     /** @var \Drupal\tour\TourInterface[] $entities */
-    $build = [];
+    $tour = [];
+    $cache_tags = [];
+    $total_tips = 0;
     foreach ($entities as $entity_id => $entity) {
-      $tips = $entity->getTips();
-      $count = count($tips);
-      $list_items = [];
+      $tour[$entity_id] = $entity->getTips();
+      $total_tips += count($tour[$entity_id]);
+      $cache_tags = Cache::mergeTags($cache_tags, $entity->getCacheTags());
+    }
+
+    $items = [];
+    foreach ($tour as $tour_id => $tips) {
+      $tourEntity = $entities[$tour_id];
+
       foreach ($tips as $index => $tip) {
-        if ($output = $tip->getOutput()) {
-          $attributes = [
-            'class' => [
-              'tip-module-' . Html::cleanCssIdentifier($entity->getModule()),
-              'tip-type-' . Html::cleanCssIdentifier($tip->getPluginId()),
-              'tip-' . Html::cleanCssIdentifier($tip->id()),
-            ],
+        $classes = [
+          'tip-module-' . Html::getClass($tourEntity->getModule()),
+          'tip-type-' . Html::getClass($tip->getPluginId()),
+          'tip-' . Html::getClass($tip->id()),
+        ];
+
+        $selector = $tip->getSelector();
+        $location = $tip->getLocation();
+
+        // If $location is null, it's possible that a value is available
+        // by directly accessing the `location` property. This can occur if
+        // a tour with the deprecated `location` property was installed and
+        // tour_post_update_joyride_selectors_to_selector_property() has not run
+        // with it installed.
+        // @see tour_post_update_joyride_selectors_to_selector_property()
+
+        if (!$location && $location = $tip->get('location')) {
+          // If the `location` property still has a value, this means the tip
+          // is configured for Joyride. The position value must be appended with
+          // '-start' to provide the same experience as Joyride.
+          $location = $location . '-start';
+        }
+
+        // @todo remove conditional in https://drupal.org/node/3195193, as all
+        //   instances will already be instances of TourTipPluginInterface.
+        if ($tip instanceof TourTipPluginInterface) {
+          $body_render_array = $tip->getBody();
+          $body = (string) \Drupal::service('renderer')->renderPlain($body_render_array);
+          $output = [
+            'body' => $body,
+            'title' => Html::escape($tip->getLabel()),
           ];
-          $list_items[] = [
-            'output' => $output,
-            'counter' => [
-              '#type' => 'container',
-              '#attributes' => [
-                'class' => [
-                  'tour-progress',
-                ],
-              ],
-              '#children' => t('@tour_item of @total', ['@tour_item' => $index + 1, '@total' => $count]),
+
+          $selector = $tip->getSelector();
+        }
+        else {
+          // This condition is met if the tip does not implement
+          // TourTipPluginInterface. This means the tour tip must be constructed
+          // with the deprecated getOutput() method. The resulting tour tip
+          // should be largely identical, with the following exceptions:
+          // 1 - If the tour tip `attributes` property included anything other
+          //     than `data-class` or `data-id`, these additional attributes
+          //     will not be available in the resulting tour tip. Note that such
+          //     uses are uncommon.
+          // 2 - Although the tour tip content is identical, the markup
+          //     structure will be different due to being rendered by Shepherd
+          //     instead of Joyride. Themes extending Stable or Stable 9 will
+          //     not experience these changes as a script is provided that
+          //     reconstructs each tip to match Joyride's markup structure.
+          $attributes = (array) $tip->get('attributes');
+          if (array_diff(['data-class', 'data-id'], array_keys($attributes + ['data-class', 'data-id']))) {
+            trigger_error('The tour tips only support data-class and data-id attributes and they will have to be upgraded manually. See https://www.drupal.org/node/3204093', E_USER_WARNING);
+          }
+          $tour_render_array = $tip->getOutput();
+          if (!empty($tour_render_array)) {
+            // The output render array intentionally omits title. The deprecated
+            // getOutput() returns a render array with the title and main
+            // content.
+            $output = [
+              'body' => (string) \Drupal::service('renderer')->renderPlain($tour_render_array),
+            ];
+
+            // Add a class so JavaScript in Stable themes can identify deprecated
+            // tip plugins. The logic used to make markup backwards compatible
+            // with Joyride is different depending on the type of
+            // plugin used.
+            $classes[] = 'tip-uses-get-output';
+          }
+        }
+
+        if ($output) {
+          $items[] = [
+            'id' => $tip->id(),
+            'selector' => $selector,
+            'module' => $tourEntity->getModule(),
+            'type' => $tip->getPluginId(),
+            'counter' => $this->t('@tour_item of @total', [
+              '@tour_item' => $index + 1,
+              '@total' => $total_tips,
+            ]),
+            'attachTo' => [
+               'element' => $selector,
+               'on' => $location ?? 'bottom-start',
             ],
-            '#wrapper_attributes' => $tip->getAttributes() + $attributes,
-          ];
+            // Shepherd expects classes to be provided as a string.
+            'classes' => implode(' ', $classes),
+          ] + $output;
         }
       }
-      // If there is at least one tour item, build the tour.
-      if ($list_items) {
-        end($list_items);
-        $key = key($list_items);
-        $list_items[$key]['#wrapper_attributes']['data-text'] = t('End tour');
-        $build[$entity_id] = [
-          '#theme' => 'item_list',
-          '#items' => $list_items,
-          '#list_type' => 'ol',
-          '#attributes' => [
-            'id' => 'tour',
-            'class' => [
-              'hidden',
-            ],
+    }
+
+    // If there is at least one tour item, build the tour.
+    if ($items) {
+      end($items);
+      $key = key($items);
+      $items[$key]['cancelText'] = t('End tour');
+    }
+
+    $build = [
+      '#cache' => [
+        'tags' => $cache_tags,
+      ],
+    ];
+
+    // If at least one tour was built, attach tips and the tour library.
+    if ($items) {
+      $build['#attached']['drupalSettings']['tourShepherdConfig'] = [
+        'defaultStepOptions' => [
+          'classes' => 'drupal-tour',
+          'cancelIcon' => [
+            'enabled' => TRUE,
+            'label' => $this->t('Close'),
           ],
-          '#cache' => [
-            'tags' => $entity->getCacheTags(),
+          'modalOverlayOpeningPadding' => 3,
+          'scrollTo' => [
+            'behavior' => 'smooth',
+            'block' => 'center',
           ],
-        ];
-      }
-    }
-    // If at least one tour was built, attach the tour library.
-    if ($build) {
+          'popperOptions' => [
+            'modifiers' => [
+              // Prevent overlap with the element being highlighted.
+              [
+                'name' => 'offset',
+                'options' => [
+                  'offset' => [-10, 20],
+                ],
+              ],
+              // Pad the arrows so they don't hit the edge of rounded corners.
+              [
+                'name' => 'arrow',
+                'options' => [
+                  'padding' => 12,
+                ],
+              ],
+              // Disable Shepherd's focusAfterRender modifier, which results in
+              // the tour item container being focused on any scroll or resize
+              // event.
+              [
+                'name' => 'focusAfterRender',
+                'enabled' => FALSE,
+              ],
+
+            ],
+          ],
+        ],
+        'useModalOverlay' => TRUE,
+      ];
+      // This property is used for storing the tour items. It may change without
+      // notice and should not be extended or modified in contrib.
+      // see: https://www.drupal.org/project/drupal/issues/3214593
+      $build['#attached']['drupalSettings']['_tour_internal'] = $items;
       $build['#attached']['library'][] = 'tour/tour';
     }
     return $build;
diff --git a/core/modules/tour/tests/fixtures/addTourLegacyConfig.php b/core/modules/tour/tests/fixtures/addTourLegacyConfig.php
new file mode 100644
index 0000000000000000000000000000000000000000..8d37c90d021e2351a601705f6205a6736a9a440f
--- /dev/null
+++ b/core/modules/tour/tests/fixtures/addTourLegacyConfig.php
@@ -0,0 +1,27 @@
+<?php
+
+/**
+ * @file
+ * Adds deprecated tour config for testing updates.
+ *
+ * @see https://www.drupal.org/node/3022401
+ */
+
+use Drupal\Core\Database\Database;
+use Drupal\Core\Serialization\Yaml;
+
+$connection = Database::getConnection();
+
+$tour_with_location = Yaml::decode(file_get_contents(__DIR__ . '/legacy_config/tour.tour.tour-test-legacy-location.yml'));
+$connection->insert('config')
+  ->fields([
+    'collection',
+    'name',
+    'data',
+  ])
+  ->values([
+    'collection' => '',
+    'name' => 'tour.tour.tour-test-legacy-location',
+    'data' => serialize($tour_with_location),
+  ])
+  ->execute();
diff --git a/core/modules/tour/tests/fixtures/legacy_config/tour.tour.tour-test-legacy-location.yml b/core/modules/tour/tests/fixtures/legacy_config/tour.tour.tour-test-legacy-location.yml
new file mode 100644
index 0000000000000000000000000000000000000000..6de9d25fe601f031882756b791c20200d8c35064
--- /dev/null
+++ b/core/modules/tour/tests/fixtures/legacy_config/tour.tour.tour-test-legacy-location.yml
@@ -0,0 +1,30 @@
+id: tour-test-legacy-location
+module: tour_test
+label: 'Tour test the location property'
+routes:
+  - route_name: some_tour_route
+tips:
+  location-test-top:
+    id: location-test-top
+    plugin: text
+    label: 'Top position'
+    body: 'Top that, top that'
+    location: top
+  location-test-bottom:
+    id: location-test-bottom
+    plugin: text
+    label: 'Bottom position'
+    body: 'You can give all that you can, but you will never top that'
+    location: bottom
+  location-test-left:
+    id: location-test-left
+    plugin: text
+    label: 'Left position'
+    body: "You can dream until you're blue but you can never top that, huh-huh!"
+    location: left
+  location-test-right:
+    id: location-test-right
+    plugin: text
+    label: 'Right position'
+    body: "I don't really give a [pause] about trying to top that"
+    location: right
diff --git a/core/modules/tour/tests/fixtures/legacy_config/tour.tour.tour-test-legacy.yml b/core/modules/tour/tests/fixtures/legacy_config/tour.tour.tour-test-legacy.yml
new file mode 100644
index 0000000000000000000000000000000000000000..51ab1397fa5f6fa20993f951733bb619aa6f12a0
--- /dev/null
+++ b/core/modules/tour/tests/fixtures/legacy_config/tour.tour.tour-test-legacy.yml
@@ -0,0 +1,29 @@
+id: tour-test-legacy
+module: tour_test
+label: 'Tour test Legacy'
+langcode: en
+routes:
+  - route_name: tour_test.legacy
+tips:
+  tour-test-legacy-1:
+    id: tour-test-legacy-1
+    plugin: text_legacy
+    label: 'The first tip'
+    body: 'Is <a href="[site:url]">[site:name]</a> always the best dressed?'
+    weight: 1
+    attributes:
+      data-id: tour-test-1
+  tour-test-legacy-3:
+    id: tour-test-legacy-3
+    plugin: image_legacy
+    label: 'The awesome image'
+    url: 'http://local/image.png'
+    weight: 1
+  tour-test-legacy-6:
+    id: tour-test-legacy-6
+    plugin: text_legacy
+    label: 'Im a list'
+    body: '<p>Im all these things:</p><ul><li>Modal</li><li>Awesome</li></ul>'
+    weight: 6
+    attributes:
+      data-class: tour-test-5
diff --git a/core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php b/core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php
index dc866a6c9595f04bfd13207c364fd25f2eda1c89..5bc8b20c38582614759ada37e6c7fb03a6e7d0c7 100644
--- a/core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php
+++ b/core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php
@@ -50,9 +50,7 @@ protected function createEntity() {
           'label' => 'Llama',
           'body' => 'Who handle the awesomeness of llamas?',
           'weight' => 100,
-          'attributes' => [
-            'data-id' => 'tour-llama-1',
-          ],
+          'selector' => '#tour-llama-1',
         ],
       ],
     ]);
@@ -84,9 +82,7 @@ protected function getExpectedNormalizedEntity() {
           'label' => 'Llama',
           'body' => 'Who handle the awesomeness of llamas?',
           'weight' => 100,
-          'attributes' => [
-            'data-id' => 'tour-llama-1',
-          ],
+          'selector' => '#tour-llama-1',
         ],
       ],
       'uuid' => $this->entity->uuid(),
diff --git a/core/modules/tour/tests/src/Functional/TourTest.php b/core/modules/tour/tests/src/Functional/TourTest.php
index 43e6fd7edb9655cf14ef300873c0122ff317f1d3..02ad1bec041f02ffbffafffea84eaf0f18198bd5 100644
--- a/core/modules/tour/tests/src/Functional/TourTest.php
+++ b/core/modules/tour/tests/src/Functional/TourTest.php
@@ -75,33 +75,57 @@ public function testTourFunctionality() {
     $this->assertTourTips($tips);
     $this->assertTourTips();
 
-    $elements = $this->xpath('//li[@data-id=:data_id and @class=:classes and ./p//a[@href=:href and contains(., :text)]]', [
-      ':classes' => 'tip-module-tour-test tip-type-text tip-tour-test-1',
-      ':data_id' => 'tour-test-1',
-      ':href' => Url::fromRoute('<front>', [], ['absolute' => TRUE])->toString(),
-      ':text' => 'Drupal',
-    ]);
+    $tips = $this->getTourTips();
+
+    $href = Url::fromRoute('<front>', [], ['absolute' => TRUE])->toString();
+    $elements = [];
+    foreach ($tips as $tip) {
+      if ($tip['id'] == 'tour-test-1' && $tip['module'] == 'tour_test' && $tip['type'] == 'text' && strpos($tip['body'], $href) !== FALSE && strpos($tip['body'], 'Drupal') !== FALSE) {
+        $elements[] = $tip;
+      }
+    }
     $this->assertCount(1, $elements, 'Found Token replacement.');
 
-    $elements = $this->cssSelect("li[data-id=tour-test-1] h2:contains('The first tip')");
+    $elements = $this->findTip([
+      'id' => 'tour-test-1',
+      'title' => 'The first tip',
+    ]);
     $this->assertCount(1, $elements, 'Found English variant of tip 1.');
 
-    $elements = $this->cssSelect("li[data-id=tour-test-2] h2:contains('The quick brown fox')");
+    $elements = $this->findTip([
+      'id' => 'tour-test-2',
+      'title' => 'The quick brown fox',
+    ]);
     $this->assertNotCount(1, $elements, 'Did not find English variant of tip 2.');
 
-    $elements = $this->cssSelect("li[data-id=tour-test-1] h2:contains('La pioggia cade in spagna')");
+    $elements = $this->findTip([
+      'id' => 'tour-test-1',
+      'title' => 'La pioggia cade in spagna',
+    ]);
     $this->assertNotCount(1, $elements, 'Did not find Italian variant of tip 1.');
 
     // Ensure that plugins work.
-    $elements = $this->xpath('//img[@src="http://local/image.png"]');
+    $elements = [];
+    foreach ($tips as $tip) {
+      if (strpos($tip['body'], 'http://local/image.png') !== FALSE) {
+        $elements[] = $tip;
+      }
+    }
     $this->assertCount(1, $elements, 'Image plugin tip found.');
 
     // Navigate to tour-test-2/subpath and verify the tour_test_2 tip is found.
     $this->drupalGet('tour-test-2/subpath');
-    $elements = $this->cssSelect("li[data-id=tour-test-2] h2:contains('The quick brown fox')");
+
+    $elements = $this->findTip([
+      'id' => 'tour-test-2',
+      'title' => 'The quick brown fox',
+    ]);
     $this->assertCount(1, $elements, 'Found English variant of tip 2.');
 
-    $elements = $this->cssSelect("li[data-id=tour-test-1] h2:contains('The first tip')");
+    $elements = $this->findTip([
+      'id' => 'tour-test-1',
+      'title' => 'The first tip',
+    ]);
     $this->assertNotCount(1, $elements, 'Did not find English variant of tip 1.');
 
     // Enable Italian language and navigate to it/tour-test1 and verify italian
@@ -109,10 +133,16 @@ public function testTourFunctionality() {
     ConfigurableLanguage::createFromLangcode('it')->save();
     $this->drupalGet('it/tour-test-1');
 
-    $elements = $this->cssSelect("li[data-id=tour-test-1] h2:contains('La pioggia cade in spagna')");
+    $elements = $this->findTip([
+      'id' => 'tour-test-1',
+      'title' => 'La pioggia cade in spagna',
+    ]);
     $this->assertCount(1, $elements, 'Found Italian variant of tip 1.');
 
-    $elements = $this->cssSelect("li[data-id=tour-test-2] h2:contains('The quick brown fox')");
+    $elements = $this->findTip([
+      'id' => 'tour-test-2',
+      'title' => 'The quick brown fox',
+    ]);
     $this->assertNotCount(1, $elements, 'Did not find English variant of tip 1.');
 
     // Programmatically create a tour for use through the remainder of the test.
@@ -131,9 +161,7 @@ public function testTourFunctionality() {
           'label' => 'The rain in spain',
           'body' => 'Falls mostly on the plain.',
           'weight' => '100',
-          'attributes' => [
-            'data-id' => 'tour-code-test-1',
-          ],
+          'selector' => '#tour-code-test-1',
         ],
         'tour-code-test-2' => [
           'id' => 'tour-code-test-2',
@@ -141,9 +169,7 @@ public function testTourFunctionality() {
           'label' => 'The awesome image',
           'url' => 'http://local/image.png',
           'weight' => 1,
-          'attributes' => [
-            'data-id' => 'tour-code-test-2',
-          ],
+          'selector' => '#tour-code-test-2',
         ],
       ],
     ]);
@@ -165,12 +191,19 @@ public function testTourFunctionality() {
 
     // Navigate to tour-test-1 and verify the new tip is found.
     $this->drupalGet('tour-test-1');
-    $elements = $this->cssSelect("li[data-id=tour-code-test-1] h2:contains('The rain in spain')");
+
+    $elements = $this->findTip([
+      'id' => 'tour-code-test-1',
+      'title' => 'The rain in spain',
+    ]);
     $this->assertCount(1, $elements, 'Found the required tip markup for tip 4');
 
     // Verify that the weight sorting works by ensuring the lower weight item
     // (tip 4) has the 'End tour' button.
-    $elements = $this->cssSelect("li[data-id=tour-code-test-1][data-text='End tour']");
+    $elements = $this->findTip([
+      'id' => 'tour-code-test-1',
+      'text' => 'End tour',
+    ]);
     $this->assertCount(1, $elements, 'Found code tip was weighted last and had "End tour".');
 
     // Test hook_tour_alter().
@@ -179,22 +212,68 @@ public function testTourFunctionality() {
     // Navigate to tour-test-3 and verify the tour_test_1 tip is found with
     // appropriate classes.
     $this->drupalGet('tour-test-3/foo');
-    $elements = $this->xpath('//li[@data-id=:data_id and @class=:classes and ./h2[contains(., :text)]]', [
-      ':classes' => 'tip-module-tour-test tip-type-text tip-tour-test-1',
-      ':data_id' => 'tour-test-1',
-      ':text' => 'The first tip',
+
+    $elements = $this->findTip([
+      'id' => 'tour-test-1',
+      'module' => 'tour_test',
+      'type' => 'text',
+      'title' => 'The first tip',
     ]);
     $this->assertCount(1, $elements, 'Found English variant of tip 1.');
 
     // Navigate to tour-test-3 and verify the tour_test_1 tip is not found with
     // appropriate classes.
     $this->drupalGet('tour-test-3/bar');
-    $elements = $this->xpath('//li[@data-id=:data_id and @class=:classes and ./h2[contains(., :text)]]', [
-      ':classes' => 'tip-module-tour-test tip-type-text tip-tour-test-1',
-      ':data_id' => 'tour-test-1',
-      ':text' => 'The first tip',
+
+    $elements = $this->findTip([
+      'id' => 'tour-test-1',
+      'module' => 'tour_test',
+      'type' => 'text',
+      'title' => 'The first tip',
     ]);
     $this->assertCount(0, $elements, 'Did not find English variant of tip 1.');
   }
 
+  /**
+   * Gets tour tips from the JavaScript drupalSettings variable.
+   *
+   * @return array
+   *   A list of tips and their data.
+   */
+  protected function getTourTips() {
+    $tips = [];
+    $drupalSettings = $this->getDrupalSettings();
+    if (isset($drupalSettings['_tour_internal'])) {
+      foreach ($drupalSettings['_tour_internal'] as $tip) {
+        $tips[] = $tip;
+      }
+    }
+
+    return $tips;
+  }
+
+  /**
+   * Find specific tips by their parameters in the list of tips.
+   *
+   * @param array $params
+   *   The list of search parameters and their values.
+   *
+   * @return array
+   *   A list of tips which match the parameters.
+   */
+  protected function findTip(array $params) {
+    $tips = $this->getTourTips();
+    $elements = [];
+    foreach ($tips as $tip) {
+      foreach ($params as $param => $value) {
+        if (isset($tip[$param]) && $tip[$param] != $value) {
+          continue 2;
+        }
+      }
+      $elements[] = $tip;
+    }
+
+    return $elements;
+  }
+
 }
diff --git a/core/modules/tour/tests/src/Functional/TourTestBase.php b/core/modules/tour/tests/src/Functional/TourTestBase.php
index 5c2ccbd43ff59f2234c70b0c21ba6da874f4ac51..23f2190f42376d3a568698e338728f9aff48c45d 100644
--- a/core/modules/tour/tests/src/Functional/TourTestBase.php
+++ b/core/modules/tour/tests/src/Functional/TourTestBase.php
@@ -33,13 +33,14 @@ abstract class TourTestBase extends BrowserTestBase {
   public function assertTourTips($tips = []) {
     // Get the rendered tips and their data-id and data-class attributes.
     if (empty($tips)) {
-      // Tips are rendered as <li> elements inside <ol id="tour">.
-      $rendered_tips = $this->xpath('//ol[@id = "tour"]//li[starts-with(@class, "tip")]');
-      foreach ($rendered_tips as $rendered_tip) {
-        $tips[] = [
-          'data-id' => $rendered_tip->getAttribute('data-id'),
-          'data-class' => $rendered_tip->getAttribute('data-class'),
-        ];
+      // Tips are rendered as drupalSettings values.
+      $drupalSettings = $this->getDrupalSettings();
+      if (isset($drupalSettings['_tour_internal'])) {
+        foreach ($drupalSettings['_tour_internal'] as $tip) {
+          $tips[] = [
+            'selector' => $tip['selector'] ?? NULL,
+          ];
+        }
       }
     }
 
diff --git a/core/modules/tour/tests/src/Functional/Update/TourTipDeprecatedConfigModuleInstallTest.php b/core/modules/tour/tests/src/Functional/Update/TourTipDeprecatedConfigModuleInstallTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..48777588b46b77d291aa2e6cf36f4291a9baf102
--- /dev/null
+++ b/core/modules/tour/tests/src/Functional/Update/TourTipDeprecatedConfigModuleInstallTest.php
@@ -0,0 +1,61 @@
+<?php
+
+namespace Drupal\Tests\tour\Functional\Update;
+
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Confirms that legacy tour tips are updated when module config is imported.
+ *
+ * @group tour
+ * @group legacy
+ */
+class TourTipDeprecatedConfigModuleInstallTest extends BrowserTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected static $modules = ['tour'];
+
+  /**
+   * {@inheritdoc}
+   */
+  protected $defaultTheme = 'stark';
+
+  /**
+   * Test ensuring that tour config is updated on config import.
+   */
+  public function testModuleInstall() {
+    $this->expectDeprecation("The tour.tip 'attributes' config schema property is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Instead of 'data-class' and 'data-id' attributes, use 'selector' to specify the element a tip attaches to. See https://www.drupal.org/node/3204093");
+    $this->expectDeprecation("The tour.tip 'location' config schema property is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Instead use 'position'. The value must be a valid placement accepted by PopperJS. See https://www.drupal.org/node/3204093");
+
+    $this->container->get('module_installer')->install(['tour_test', 'tour_legacy_test']);
+    $updated_legacy_tour_config = $this->container->get('config.factory')->get('tour.tour.tour-test-legacy');
+    $updated_tips = $updated_legacy_tour_config->get('tips');
+
+    // Confirm that tour-test-1 uses `selector` instead of `data-id`.
+    $this->assertSame('#tour-test-1', $updated_tips['tour-test-legacy-1']['selector']);
+    $this->assertArrayNotHasKey('attributes', $updated_tips['tour-test-legacy-1']);
+
+    // Confirm that tour-test-5 uses `selector` instead of `data-class`.
+    $this->assertSame('.tour-test-5', $updated_tips['tour-test-legacy-6']['selector']);
+    $this->assertArrayNotHasKey('attributes', $updated_tips['tour-test-legacy-6']);
+
+    // Confirm that tour-test-legacy-7 uses `selector` instead of `data-class`.
+    $this->assertSame('.tour-test-7', $updated_tips['tour-test-legacy-7']['selector']);
+    $this->assertSame(['foo' => 'bar'], $updated_tips['tour-test-legacy-7']['attributes']);
+
+    $updated_legacy_location_tour_config = $this->container->get('config.factory')->get('tour.tour.tour-test-legacy-location');
+    $updated_location_tips = $updated_legacy_location_tour_config->get('tips');
+
+    $this->assertSame('top-start', $updated_location_tips['location-test-top']['position']);
+    $this->assertArrayNotHasKey('location', $updated_location_tips['location-test-top']);
+    $this->assertEquals('bottom-start', $updated_location_tips['location-test-bottom']['position']);
+    $this->assertArrayNotHasKey('location', $updated_location_tips['location-test-bottom']);
+    $this->assertEquals('right-start', $updated_location_tips['location-test-right']['position']);
+    $this->assertArrayNotHasKey('location', $updated_location_tips['location-test-right']);
+    $this->assertEquals('left-start', $updated_location_tips['location-test-left']['position']);
+    $this->assertArrayNotHasKey('location', $updated_location_tips['location-test-left']);
+  }
+
+}
diff --git a/core/modules/tour/tests/src/Functional/Update/TourTipDeprecatedConfigUpdateTest.php b/core/modules/tour/tests/src/Functional/Update/TourTipDeprecatedConfigUpdateTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..680cf9fb93835564f9f5a1888d401394f3b15935
--- /dev/null
+++ b/core/modules/tour/tests/src/Functional/Update/TourTipDeprecatedConfigUpdateTest.php
@@ -0,0 +1,75 @@
+<?php
+
+namespace Drupal\Tests\tour\Functional\Update;
+
+use Drupal\FunctionalTests\Update\UpdatePathTestBase;
+
+/**
+ * Confirms tour tip deprecated config is updated properly.
+ *
+ * @group tour
+ *
+ * @see tour_post_update_joyride_selectors_to_selector_property()
+ * @see tour_tour_presave()
+ */
+class TourTipDeprecatedConfigUpdateTest extends UpdatePathTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setDatabaseDumpFiles() {
+    $this->databaseDumpFiles = [
+      __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-9.0.0.bare.standard.php.gz',
+    ];
+  }
+
+  /**
+   * Tests tour_post_update_joyride_selectors_to_selector_property().
+   *
+   * Confirms that tour_post_update_joyride_selectors_to_selector_property()
+   * populates the `selector` and `location` properties.
+   *
+   * Joyride-based tours used the `data-id` and `data-class` attributes to
+   * associate a tour tip with an element. This was changed to a `selector`
+   * property.
+   *
+   * Joyride-based tours also used the `location` to configure the positioning
+   * of the tour tip.
+   *
+   * Existing tours are updated to use this new property via
+   * tour_post_update_joyride_selectors_to_selector_property(), and this test
+   * confirms it is done properly.
+   *
+   * @see tour_tour_presave()
+   */
+  public function testUpdate() {
+    $legacy_tour_config = $this->container->get('config.factory')->get('tour.tour.views-ui');
+    $tips = $legacy_tour_config->get('tips');
+
+    // Confirm the existing tour tip configurations match expectations.
+    $this->assertFalse(isset($tips['views-ui-view-admin']['selector']));
+    $this->assertEquals('views-display-extra-actions', $tips['views-ui-view-admin']['attributes']['data-id']);
+    $this->assertEquals('views-ui-display-tab-bucket.format', $tips['views-ui-format']['attributes']['data-class']);
+    $this->assertSame('left', $tips['views-ui-view-admin']['location']);
+    $this->assertArrayNotHasKey('position', $tips['views-ui-view-admin']);
+
+    $this->runUpdates();
+
+    $updated_legacy_tour_config = $this->container->get('config.factory')->get('tour.tour.views-ui');
+    $updated_tips = $updated_legacy_tour_config->get('tips');
+
+    // Confirm that views-ui-view-admin uses `selector` instead of `data-id`.
+    $this->assertSame('#views-display-extra-actions', $updated_tips['views-ui-view-admin']['selector']);
+
+    // Confirm that views-ui-format uses `selector` instead of `data-class`.
+    $this->assertSame('.views-ui-display-tab-bucket.format', $updated_tips['views-ui-format']['selector']);
+
+    // Assert that the deprecated attributes key has been removed now that it is
+    // empty.
+    $this->assertArrayNotHasKey('attributes', $updated_tips['views-ui-view-admin']);
+
+    $this->assertSame('left-start', $updated_tips['views-ui-view-admin']['position']);
+    $this->assertArrayNotHasKey('location', $updated_tips['views-ui-view-admin']);
+  }
+
+}
diff --git a/core/modules/tour/tests/src/FunctionalJavascript/TourJavascriptTest.php b/core/modules/tour/tests/src/FunctionalJavascript/TourJavascriptTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..64ccd4dde0ae0fa63e47dddacf00df89f757bed0
--- /dev/null
+++ b/core/modules/tour/tests/src/FunctionalJavascript/TourJavascriptTest.php
@@ -0,0 +1,131 @@
+<?php
+
+namespace Drupal\Tests\tour\FunctionalJavascript;
+
+use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
+
+/**
+ * General Tour tests that require JavaScript.
+ *
+ * @group tour
+ */
+class TourJavascriptTest extends WebDriverTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected static $modules = [
+    'tour',
+    'tour_test',
+    'toolbar',
+  ];
+
+  /**
+   * {@inheritdoc}
+   */
+  protected $defaultTheme = 'stark';
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setUp(): void {
+    parent::setUp();
+
+    $admin_user = $this->drupalCreateUser([
+      'access toolbar',
+      'access tour',
+    ]);
+    $this->drupalLogin($admin_user);
+  }
+
+  /**
+   * Confirm the 'tips' and 'tour 'query arguments.
+   */
+  public function testQueryArg() {
+    $assert_session = $this->assertSession();
+
+    $this->drupalGet('tour-test-1');
+    $assert_session->assertNoElementAfterWait('css', '.tip-tour-test-1');
+    $assert_session->pageTextContains('Where does the rain in Spain fail?');
+    $assert_session->pageTextNotContains('Im all these things');
+    $assert_session->pageTextNotContains('The first tip');
+
+    $this->drupalGet('tour-test-1', [
+      'query' => [
+        'tips' => 'tip-tour-test-6',
+      ],
+    ]);
+    $this->assertNotNull($assert_session->waitForElementVisible('css', '.tip-tour-test-6'));
+    $assert_session->pageTextContains('Im all these things');
+
+    $this->drupalGet('tour-test-1', [
+      'query' => [
+        'tour' => '1',
+      ],
+    ]);
+    $this->assertNotNull($assert_session->waitForElementVisible('css', '.tip-tour-test-1'));
+    $assert_session->pageTextContains('The first tip');
+  }
+
+  /**
+   * Tests stepping through a tour.
+   */
+  public function testGeneralTourUse() {
+    $page = $this->getSession()->getPage();
+    $assert_session = $this->assertSession();
+
+    $this->drupalGet('tour-test-1');
+
+    $assert_session->assertNoElementAfterWait('css', '.tip-tour-test-1');
+
+    // Open the tour.
+    $page->find('css', '#toolbar-tab-tour button')->press();
+
+    // Confirm the tour can be cancelled.
+    $tip_to_close = $assert_session->waitForElementVisible('css', '.shepherd-enabled.tip-tour-test-1');
+    $this->assertNotNull($tip_to_close);
+    $tip_text = $tip_to_close->getText();
+    $this->assertStringContainsString('always the best dressed', $tip_text);
+    $this->assertStringContainsString('1 of 3', $tip_text);
+    $this->assertStringNotContainsString('End tour', $tip_text);
+
+    // Cancel the tour.
+    $tip_to_close->find('css', '.shepherd-cancel-icon')->press();
+    $assert_session->assertNoElementAfterWait('css', '.tip-tour-test-1');
+    $assert_session->assertNoElementAfterWait('css', '.shepherd-enabled');
+
+    // Navigate through the three steps of the tour.
+    $page->find('css', '#toolbar-tab-tour button')->press();
+    $tip1 = $assert_session->waitForElementVisible('css', '.shepherd-enabled.tip-tour-test-1');
+    $this->assertNotNull($tip1);
+
+    // Click the next button.
+    $tip1->find('css', '.button--primary:contains("Next")')->press();
+
+    // The second tour tip should appear, confirm it has the expected content.
+    $tip2 = $assert_session->waitForElementVisible('css', '.shepherd-enabled.tip-tour-test-3');
+    $assert_session->pageTextNotContains('always the best dressed');
+    $tip_text = $tip2->getText();
+    $this->assertStringContainsString('The awesome image', $tip_text);
+    $this->assertStringContainsString('2 of 3', $tip_text);
+    $this->assertStringNotContainsString('End tour', $tip_text);
+
+    // Click the next button.
+    $tip2->find('css', '.button--primary:contains("Next")')->press();
+
+    // The third tour tip should appear, confirm it has the expected content.
+    $tip3 = $assert_session->waitForElementVisible('css', '.shepherd-enabled.tip-tour-test-6');
+    $assert_session->pageTextNotContains('The awesome image');
+    $tip_text = $tip3->getText();
+    $this->assertStringContainsString('Im all these things', $tip_text);
+    $this->assertStringContainsString('3 of 3', $tip_text);
+    $this->assertStringNotContainsString('Next', $tip_text);
+
+    // The final tip should have a button to end the tour. Press and confirm all
+    // tips removed.
+    $tip3->find('css', '.button--primary:contains("End tour")')->press();
+    $assert_session->assertNoElementAfterWait('css', '.shepherd-enabled');
+    $assert_session->pageTextNotContains('The awesome image');
+  }
+
+}
diff --git a/core/modules/tour/tests/src/FunctionalJavascript/TourLegacyTest.php b/core/modules/tour/tests/src/FunctionalJavascript/TourLegacyTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..f33a80f5f7d3569de3162f6819edd417ea188b55
--- /dev/null
+++ b/core/modules/tour/tests/src/FunctionalJavascript/TourLegacyTest.php
@@ -0,0 +1,143 @@
+<?php
+
+namespace Drupal\Tests\tour\FunctionalJavascript;
+
+use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
+
+/**
+ * Tests Tour's backwards compatible markup and legacy config.
+ *
+ * @group tour
+ * @group legacy
+ */
+class TourLegacyTest extends WebDriverTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected static $modules = [
+    'tour',
+    'tour_legacy_test',
+    'toolbar',
+  ];
+
+  /**
+   * {@inheritdoc}
+   */
+  protected $defaultTheme = 'stable';
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setUp(): void {
+    parent::setUp();
+
+    $admin_user = $this->drupalCreateUser([
+      'access toolbar',
+      'access tour',
+    ]);
+    $this->drupalLogin($admin_user);
+  }
+
+  /**
+   * Confirms backwards compatible markup.
+   *
+   * @param string $path
+   *   The path to check.
+   * @param string $theme
+   *   The theme used by the tests.
+   *
+   * @dataProvider providerTestTourTipMarkup
+   */
+  public function testTourTipMarkup(string $path, string $theme = NULL) {
+    // Install the specified theme and make it default if that is not already
+    // the case.
+    if ($theme) {
+      $theme_manager = $this->container->get('theme.manager');
+      $this->container->get('theme_installer')->install([$theme], TRUE);
+
+      $system_theme_config = $this->container->get('config.factory')->getEditable('system.theme');
+      $system_theme_config
+        ->set('default', $theme)
+        ->save();
+      $this->rebuildAll();
+      $this->assertSame($theme, $theme_manager->getActiveTheme()->getName());
+    }
+
+    $page = $this->getSession()->getPage();
+    $assert_session = $this->assertSession();
+    $this->drupalGet($path);
+
+    $assert_session->waitForElementVisible('css', '#toolbar-tab-tour button');
+    $page->find('css', '#toolbar-tab-tour button')->press();
+    $this->assertToolTipMarkup(0, 'top');
+    $page->find('css', '.joyride-tip-guide[data-index="0"]')->clickLink('Next');
+    $this->assertToolTipMarkup(1, '', 'image');
+    $page->find('css', '.joyride-tip-guide[data-index="1"]')->clickLink('Next');
+    $this->assertToolTipMarkup(2, 'top', 'body');
+    $tip_content = $assert_session->waitForElementVisible('css', '.joyride-tip-guide[data-index="2"] .joyride-content-wrapper');
+
+    $additional_paragraph = $tip_content->find('css', '.tour-tip-body + p');
+    $this->assertNotNull($additional_paragraph, 'Tip 3 has an additional paragraph that is a sibling to the main paragraph.');
+    $additional_list = $tip_content->find('css', '.tour-tip-body + p + ul');
+    $this->assertNotNull($additional_list, 'Tip 3 has an additional unordered list that is a sibling to the main paragraph.');
+  }
+
+  /**
+   * Asserts the markup structure of a tip.
+   *
+   * @param int $index
+   *   The position of the tip within the tour.
+   * @param string $nub_position
+   *   The expected position of the nub arrow.
+   * @param string $joyride_content_container_name
+   *   For identifying classnames specific to a tip type.
+   */
+  private function assertToolTipMarkup($index, $nub_position, $joyride_content_container_name = 'body') {
+    $assert_session = $this->assertSession();
+    $tip = $assert_session->waitForElementVisible('css', ".joyride-tip-guide[data-index=\"$index\"]");
+    $this->assertNotNull($tip, 'The tour tip element is present.');
+
+    $nub = $tip->find('css', ".joyride-tip-guide[data-index=\"$index\"] > .joyride-nub");
+    $this->assertNotNull($nub, 'The nub element is present.');
+    if (!empty($nub_position)) {
+      $this->assertTrue($nub->hasClass($nub_position), 'The nub has a class that indicates its configured position.');
+    }
+
+    $content_wrapper = $tip->find('css', '.joyride-nub + .joyride-content-wrapper');
+    $this->assertNotNull($content_wrapper, 'The joyride content wrapper exists, and is the next sibling of the nub.');
+
+    $label = $tip->find('css', '.joyride-content-wrapper > h2.tour-tip-label:first-child');
+    $this->assertNotNull($label, 'The tour tip label is an h2, and is the first child of the content wrapper.');
+
+    $tip_content = $content_wrapper->find('css', "h2.tour-tip-label + p.tour-tip-$joyride_content_container_name");
+    $this->assertNotNull($tip_content, 'The tip\'s main paragraph is the next sibling of the label, and has the expected wrapper class.');
+
+    $tour_progress = $content_wrapper->find('css', "h2.tour-tip-label + p.tour-tip-$joyride_content_container_name ~ div.tour-progress");
+    $this->assertNotNull($tour_progress, 'The div containing tour progress info is present, and is the next sibling of the main paragraph.');
+
+    $next_item = $content_wrapper->find('css', ".tour-progress + a.joyride-next-tip.button.button--primary");
+    $this->assertNotNull($next_item, 'The "Next" link is present, and the next sibling of the div containing progress info.');
+
+    $close_tour = $content_wrapper->find('css', ".joyride-content-wrapper > a.joyride-close-tip:last-child");
+    $this->assertNotNull($close_tour, 'The "Close" link is present, is an immediate child of the content wrapper, and is the last child.');
+  }
+
+  /**
+   * Data Provider.
+   *
+   * @return \string[][]
+   *   An array with two potential items:
+   *   - The different path the test will run on.
+   *   - The active theme when running the tests.
+   */
+  public function providerTestTourTipMarkup() {
+    return [
+      'Using the the deprecated TipPlugin with Stable theme' => ['tour-test-legacy'],
+      'Using current TourTipPlugin with Stable theme' => ['tour-test-1'],
+      'Using the the deprecated TipPlugin with Stable 9 theme' => ['tour-test-legacy', 'stable9'],
+      'Using current TourTipPlugin with Stable 9 theme' => ['tour-test-1', 'stable9'],
+    ];
+  }
+
+}
diff --git a/core/modules/tour/tests/src/Kernel/TourPluginTest.php b/core/modules/tour/tests/src/Kernel/TourPluginTest.php
index 03c49771351a887f3f72059cca1a5a309cdeb572..3b96b3773615d646d31961e16441cc27d9f115ff 100644
--- a/core/modules/tour/tests/src/Kernel/TourPluginTest.php
+++ b/core/modules/tour/tests/src/Kernel/TourPluginTest.php
@@ -3,6 +3,8 @@
 namespace Drupal\Tests\tour\Kernel;
 
 use Drupal\KernelTests\KernelTestBase;
+use Drupal\tour\Entity\Tour;
+use PHPUnit\Framework\Error\Warning;
 
 /**
  * Tests the functionality of tour plugins.
@@ -25,6 +27,9 @@ class TourPluginTest extends KernelTestBase {
    */
   protected $pluginManager;
 
+  /**
+   * {@inheritdoc}
+   */
   protected function setUp(): void {
     parent::setUp();
 
@@ -39,4 +44,60 @@ public function testTourPlugins() {
     $this->assertCount(1, $this->pluginManager->getDefinitions(), 'Only tour plugins for the enabled modules were returned.');
   }
 
+  /**
+   * Test that warnings and deprecations are triggered.
+   *
+   * @group legacy
+   */
+  public function testDeprecatedMethodWarningsErrors() {
+    \Drupal::service('module_installer')->install(['tour_legacy_test']);
+    $tip = Tour::load('tour-test')->getTips()[0];
+
+    // These are E_USER_WARNING severity errors that supplement existing
+    // deprecation errors. These warnings are triggered when methods are called
+    // that are designed to be backwards compatible, but aren't able to 100%
+    // promise this due to the many ways that tip plugins can be extended.
+    try {
+      $tip->getOutput();
+      $this->fail('No getOutput() warning triggered.');
+    }
+    catch (Warning $e) {
+      $this->assertSame('Drupal\tourTipPluginInterface::getOutput is deprecated. Use getBody() instead. See https://www.drupal.org/node/3204096', $e->getMessage());
+    }
+
+    try {
+      $tip->getAttributes();
+      $this->fail('No getAttributes() warning triggered.');
+    }
+    catch (Warning $e) {
+      $this->assertSame('Drupal\tour\TipPluginInterface::getAttributes is deprecated. Tour tip plugins should implement Drupal\tour\TourTipPluginInterface and Tour configs should use the \'selector\' property instead of \'attributes\' to target an element.', $e->getMessage());
+    }
+
+    // Remove PHPUnits conversion of warning to exceptions.
+    set_error_handler(function () {});
+    $tip = Tour::load('tour-test-legacy')->getTips()[3];
+    $attributes = $tip->getAttributes();
+    restore_error_handler();
+    $this->assertSame([
+      'foo' => 'bar',
+      'data-class' => 'tour-test-7',
+      'data-aria-describedby' => 'tour-tip-tour-test-legacy-7-contents',
+      'data-aria-labelledby' => 'tour-tip-tour-test-legacy-7-label',
+    ], $attributes);
+
+    $this->expectDeprecation('Implementing Drupal\tour\TipPluginInterface without also implementing Drupal\tour\TourTipPluginInterface is deprecated in drupal:9.2.0. See https://www.drupal.org/node/3204096');
+    $this->expectDeprecation("The tour.tip 'attributes' config schema property is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Instead of 'data-class' and 'data-id' attributes, use 'selector' to specify the element a tip attaches to. See https://www.drupal.org/node/3204093");
+    $this->expectDeprecation("The tour.tip 'location' config schema property is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Instead use 'position'. The value must be a valid placement accepted by PopperJS. See https://www.drupal.org/node/3204093");
+
+    try {
+      \Drupal::entityTypeManager()
+        ->getViewBuilder('tour')
+        ->viewMultiple([Tour::load('tour-test-legacy')], 'full');
+      $this->fail('No deprecated interface warning triggered.');
+    }
+    catch (Warning $e) {
+      $this->assertSame('The tour tips only support data-class and data-id attributes and they will have to be upgraded manually. See https://www.drupal.org/node/3204093', $e->getMessage());
+    }
+  }
+
 }
diff --git a/core/modules/tour/tests/src/Unit/Plugin/tour/tip/TipPluginTextTest.php b/core/modules/tour/tests/src/Unit/Plugin/tour/tip/TipPluginTextTest.php
deleted file mode 100644
index 65a6d514573274649c04dfcdb0d6fe639f54b90c..0000000000000000000000000000000000000000
--- a/core/modules/tour/tests/src/Unit/Plugin/tour/tip/TipPluginTextTest.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-namespace Drupal\Tests\tour\Unit\Plugin\tour\tip;
-
-use Drupal\Tests\UnitTestCase;
-use Drupal\tour\Plugin\tour\tip\TipPluginText;
-
-/**
- * @coversDefaultClass \Drupal\tour\Plugin\tour\tip\TipPluginText
- * @group tour
- */
-class TipPluginTextTest extends UnitTestCase {
-
-  /**
-   * Tests that getAriaId returns unique id per plugin instance.
-   *
-   * @see \Drupal\tour\Plugin\tour\tip\TipPluginText::getAriaId()
-   * @runTestsInSeparateProcesses
-   * This test calls \Drupal\Component\Utility\Html::getUniqueId() which uses a
-   * static list. Run this test in a separate process to prevent side effects.
-   */
-  public function testGetAriaId() {
-    $id_instance_one = 'one';
-    $id_instance_two = 'two';
-    $config_instance_one = [
-      'id' => $id_instance_one,
-    ];
-    $config_instance_two = [
-      'id' => $id_instance_two,
-    ];
-    $definition = [];
-    $plugin_id = 'text';
-    $token = $this->createMock('\Drupal\Core\Utility\Token');
-    $instance_one = new TipPluginText($config_instance_one, $plugin_id, $definition, $token);
-    $instance_two = new TipPluginText($config_instance_two, $plugin_id, $definition, $token);
-    $instance_three = new TipPluginText($config_instance_one, $plugin_id, $definition, $token);
-
-    $this->assertEquals($id_instance_one, $instance_one->getAriaId());
-    $this->assertEquals($id_instance_two, $instance_two->getAriaId());
-    $this->assertNotEquals($instance_one->getAriaId(), $instance_two->getAriaId());
-    $this->assertNotEquals($instance_one->getAriaId(), $instance_three->getAriaId());
-  }
-
-}
diff --git a/core/modules/tour/tests/src/Unit/TipPluginBaseTest.php b/core/modules/tour/tests/src/Unit/TipPluginBaseTest.php
new file mode 100644
index 0000000000000000000000000000000000000000..5db0e3ab32895232419827eabdde4f3bb1df9899
--- /dev/null
+++ b/core/modules/tour/tests/src/Unit/TipPluginBaseTest.php
@@ -0,0 +1,30 @@
+<?php
+
+namespace Drupal\Tests\tour\Unit;
+
+use Drupal\Tests\UnitTestCase;
+use Drupal\tour\TipPluginBase;
+
+/**
+ * @coversDefaultClass \Drupal\tour\TipPluginBase
+ *
+ * @group tour
+ */
+class TipPluginBaseTest extends UnitTestCase {
+
+  /**
+   * @covers ::getLocation
+   */
+  public function testGetLocationAssertion() {
+    $base_plugin = $this->getMockForAbstractClass(TipPluginBase::class, [], '', FALSE);
+
+    $base_plugin->set('position', 'right');
+    $this->assertSame('right', $base_plugin->getLocation());
+
+    $base_plugin->set('position', 'not_valid');
+    $this->expectException(\AssertionError::class);
+    $this->expectExceptionMessage('not_valid is not a valid Tour Tip position value');
+    $base_plugin->getLocation();
+  }
+
+}
diff --git a/core/modules/tour/tests/tour_legacy_test/config/install/tour.tour.tour-test-legacy-location.yml b/core/modules/tour/tests/tour_legacy_test/config/install/tour.tour.tour-test-legacy-location.yml
new file mode 100644
index 0000000000000000000000000000000000000000..6de9d25fe601f031882756b791c20200d8c35064
--- /dev/null
+++ b/core/modules/tour/tests/tour_legacy_test/config/install/tour.tour.tour-test-legacy-location.yml
@@ -0,0 +1,30 @@
+id: tour-test-legacy-location
+module: tour_test
+label: 'Tour test the location property'
+routes:
+  - route_name: some_tour_route
+tips:
+  location-test-top:
+    id: location-test-top
+    plugin: text
+    label: 'Top position'
+    body: 'Top that, top that'
+    location: top
+  location-test-bottom:
+    id: location-test-bottom
+    plugin: text
+    label: 'Bottom position'
+    body: 'You can give all that you can, but you will never top that'
+    location: bottom
+  location-test-left:
+    id: location-test-left
+    plugin: text
+    label: 'Left position'
+    body: "You can dream until you're blue but you can never top that, huh-huh!"
+    location: left
+  location-test-right:
+    id: location-test-right
+    plugin: text
+    label: 'Right position'
+    body: "I don't really give a [pause] about trying to top that"
+    location: right
diff --git a/core/modules/tour/tests/tour_legacy_test/config/install/tour.tour.tour-test-legacy.yml b/core/modules/tour/tests/tour_legacy_test/config/install/tour.tour.tour-test-legacy.yml
new file mode 100644
index 0000000000000000000000000000000000000000..8c8e5a72ffc363ddcb3e18b1c13b7d724acbba18
--- /dev/null
+++ b/core/modules/tour/tests/tour_legacy_test/config/install/tour.tour.tour-test-legacy.yml
@@ -0,0 +1,38 @@
+id: tour-test-legacy
+module: tour_test
+label: 'Tour test Legacy'
+langcode: en
+routes:
+  - route_name: tour_test.legacy
+tips:
+  tour-test-legacy-1:
+    id: tour-test-legacy-1
+    plugin: text_legacy
+    label: 'The first legacy tip'
+    body: 'Is <a href="[site:url]">[site:name]</a> always the best dressed?'
+    weight: 1
+    attributes:
+      data-id: tour-test-1
+  tour-test-legacy-3:
+    id: tour-test-legacy-3
+    plugin: image_legacy
+    label: 'The awesome legacy image'
+    url: 'http://local/image.png'
+    weight: 1
+  tour-test-legacy-6:
+    id: tour-test-legacy-6
+    plugin: text_legacy
+    label: 'Im a legacy list'
+    body: '<p>Im all these things:</p><ul><li>Modal</li><li>Awesome</li></ul>'
+    weight: 6
+    attributes:
+      data-class: tour-test-5
+  tour-test-legacy-7:
+    id: tour-test-legacy-7
+    plugin: text_legacy
+    label: 'Im a legacy list with more attributes'
+    body: '<p>More attributes</p>'
+    weight: 8
+    attributes:
+      data-class: tour-test-7
+      foo: bar
diff --git a/core/modules/tour/tests/tour_legacy_test/config/schema/tour_legacy_test.schema.yml b/core/modules/tour/tests/tour_legacy_test/config/schema/tour_legacy_test.schema.yml
new file mode 100644
index 0000000000000000000000000000000000000000..7e90ed43d10f953da060281bb746c3e0b03b3f69
--- /dev/null
+++ b/core/modules/tour/tests/tour_legacy_test/config/schema/tour_legacy_test.schema.yml
@@ -0,0 +1,17 @@
+# Schema for the configuration files of the Tour Test Legacy module.
+
+tour.tip.image_legacy:
+  type: tour.tip
+  label: 'Image tour tip'
+  mapping:
+    url:
+      type: uri
+      label: 'Image URL'
+
+tour.tip.text_legacy:
+  type: tour.tip
+  label: 'Textual tour tip'
+  mapping:
+    body:
+      type: text
+      label: 'Body'
diff --git a/core/modules/tour/tests/tour_legacy_test/tour_legacy_test.info.yml b/core/modules/tour/tests/tour_legacy_test/tour_legacy_test.info.yml
new file mode 100644
index 0000000000000000000000000000000000000000..ecf2e051c023048860a16e83c35df9cb2ff77644
--- /dev/null
+++ b/core/modules/tour/tests/tour_legacy_test/tour_legacy_test.info.yml
@@ -0,0 +1,8 @@
+name: Tour legacy plugin tests
+type: module
+description: Tests related to deprecated plugins.
+package: Testing
+version: VERSION
+dependencies:
+  - drupal:tour
+  - drupal:tour_test
diff --git a/core/modules/tour/tests/tour_legacy_test/tour_legacy_test.routing.yml b/core/modules/tour/tests/tour_legacy_test/tour_legacy_test.routing.yml
new file mode 100644
index 0000000000000000000000000000000000000000..a3eae77374dc57f0092e506a92c2ba4e1e0e0454
--- /dev/null
+++ b/core/modules/tour/tests/tour_legacy_test/tour_legacy_test.routing.yml
@@ -0,0 +1,8 @@
+tour_test.legacy:
+  path: '/tour-test-legacy'
+  defaults:
+    _controller: '\Drupal\tour_test\Controller\TourTestController::tourTest1'
+  options:
+    _admin_route: TRUE
+  requirements:
+    _access: 'TRUE'
diff --git a/core/modules/tour/tests/tour_test/config/install/tour.tour.tour-test-2.yml b/core/modules/tour/tests/tour_test/config/install/tour.tour.tour-test-2.yml
index 9734cde977e2899f9e1680c1dd61604ccc8cd666..26cc8dd9e4318d3bbc89ab4190b046a11cbf05eb 100644
--- a/core/modules/tour/tests/tour_test/config/install/tour.tour.tour-test-2.yml
+++ b/core/modules/tour/tests/tour_test/config/install/tour.tour.tour-test-2.yml
@@ -11,5 +11,4 @@ tips:
     label: 'The quick brown fox'
     body: 'Per lo più in pianura.'
     weight: 2
-    attributes:
-      data-id: tour-test-2
+    selector: '#tour-test-2'
diff --git a/core/modules/tour/tests/tour_test/config/install/tour.tour.tour-test.yml b/core/modules/tour/tests/tour_test/config/install/tour.tour.tour-test.yml
index 4236f724e0347583ed58aa13d8887993d947030c..cfb9b317b0dd5b8fb9f29bca3f21df5072fdaa4c 100644
--- a/core/modules/tour/tests/tour_test/config/install/tour.tour.tour-test.yml
+++ b/core/modules/tour/tests/tour_test/config/install/tour.tour.tour-test.yml
@@ -14,16 +14,14 @@ tips:
     label: 'The first tip'
     body: 'Is <a href="[site:url]">[site:name]</a> always the best dressed?'
     weight: 1
-    attributes:
-      data-id: tour-test-1
+    selector: '#tour-test-1'
   tour-test-action:
     id: tour-test-3
     plugin: text
     label: 'The action'
     body: 'The action button of awesome'
     weight: 2
-    attributes:
-      data-class: button-action
+    selector: '.button-action'
   tour-test-3:
     id: tour-test-3
     plugin: image
@@ -36,5 +34,4 @@ tips:
     label: 'Im a list'
     body: '<p>Im all these things:</p><ul><li>Modal</li><li>Awesome</li></ul>'
     weight: 6
-    attributes:
-      data-id: tour-test-3
+    selector: '#tour-test-3'
diff --git a/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImage.php b/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImage.php
index 68f15bb7f1eff41c5e16cbbb00cabef9b055e520..763b76b6af52d64324b3fd0d9fa344a42a28a8ad 100644
--- a/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImage.php
+++ b/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImage.php
@@ -2,8 +2,11 @@
 
 namespace Drupal\tour_test\Plugin\tour\tip;
 
-use Drupal\Component\Utility\Html;
+use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
+use Drupal\Core\Utility\Token;
 use Drupal\tour\TipPluginBase;
+use Drupal\tour\TourTipPluginInterface;
+use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
  * Displays an image as a tip.
@@ -13,7 +16,7 @@
  *   title = @Translation("Image")
  * )
  */
-class TipPluginImage extends TipPluginBase {
+class TipPluginImage extends TipPluginBase implements ContainerFactoryPluginInterface, TourTipPluginInterface {
 
   /**
    * The url which is used for the image in this Tip.
@@ -31,18 +34,54 @@ class TipPluginImage extends TipPluginBase {
    */
   protected $alt;
 
+  /**
+   * Token service.
+   *
+   * @var \Drupal\Core\Utility\Token
+   */
+  protected $token;
+
+  /**
+   * Constructs a \Drupal\tour\Plugin\tour\tip\TipPluginText object.
+   *
+   * @param array $configuration
+   *   A configuration array containing information about the plugin instance.
+   * @param string $plugin_id
+   *   The plugin_id for the plugin instance.
+   * @param mixed $plugin_definition
+   *   The plugin implementation definition.
+   * @param \Drupal\Core\Utility\Token $token
+   *   The token service.
+   */
+  public function __construct(array $configuration, $plugin_id, $plugin_definition, Token $token) {
+    parent::__construct($configuration, $plugin_id, $plugin_definition);
+    $this->token = $token;
+  }
+
   /**
    * {@inheritdoc}
    */
-  public function getOutput() {
-    $prefix = '<h2 class="tour-tip-label" id="tour-tip-' . $this->get('ariaId') . '-label">' . Html::escape($this->get('label')) . '</h2>';
-    $prefix .= '<p class="tour-tip-image" id="tour-tip-' . $this->get('ariaId') . '-contents">';
-    return [
-      '#prefix' => $prefix,
+  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
+    return new static($configuration, $plugin_id, $plugin_definition, $container->get('token'));
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getBody(): array {
+    $image = [
       '#theme' => 'image',
       '#uri' => $this->get('url'),
       '#alt' => $this->get('alt'),
-      '#suffix' => '</p>',
+    ];
+
+    return [
+      '#type' => 'html_tag',
+      '#tag' => 'p',
+      '#attributes' => [
+        'class' => ['tour-tip-image'],
+      ],
+      'image' => $image,
     ];
   }
 
diff --git a/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImageLegacy.php b/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImageLegacy.php
new file mode 100644
index 0000000000000000000000000000000000000000..303e33f5e3eb9e4489f41880e54038e174b21ff9
--- /dev/null
+++ b/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImageLegacy.php
@@ -0,0 +1,99 @@
+<?php
+
+namespace Drupal\tour_test\Plugin\tour\tip;
+
+use Drupal\Component\Utility\Html;
+use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
+use Drupal\Core\Utility\Token;
+use Drupal\tour\TipPluginBase;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+/**
+ * Displays an image as a tip.
+ *
+ * @Tip(
+ *   id = "image_legacy",
+ *   title = @Translation("Image Legacy")
+ * )
+ */
+class TipPluginImageLegacy extends TipPluginBase implements ContainerFactoryPluginInterface {
+
+  /**
+   * The url which is used for the image in this Tip.
+   *
+   * @var string
+   *   A url used for the image.
+   */
+  protected $url;
+
+  /**
+   * The alt text which is used for the image in this Tip.
+   *
+   * @var string
+   *   An alt text used for the image.
+   */
+  protected $alt;
+
+  /**
+   * Token service.
+   *
+   * @var \Drupal\Core\Utility\Token
+   */
+  protected $token;
+
+  /**
+   * Constructs a TipPluginImageLegacy object.
+   *
+   * @param array $configuration
+   *   A configuration array containing information about the plugin instance.
+   * @param string $plugin_id
+   *   The plugin_id for the plugin instance.
+   * @param mixed $plugin_definition
+   *   The plugin implementation definition.
+   * @param \Drupal\Core\Utility\Token $token
+   *   The token service.
+   */
+  public function __construct(array $configuration, $plugin_id, $plugin_definition, Token $token) {
+    parent::__construct($configuration, $plugin_id, $plugin_definition);
+    $this->token = $token;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
+    return new static($configuration, $plugin_id, $plugin_definition, $container->get('token'));
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getConfigurationOrNot() {
+    $image = [
+      '#theme' => 'image',
+      '#uri' => $this->get('url'),
+      '#alt' => $this->get('alt'),
+    ];
+
+    return [
+      'title' => Html::escape($this->get('label')),
+      'body' => $this->token->replace(\Drupal::service('renderer')->renderPlain($image)),
+    ];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getOutput() {
+    $prefix = '<h2 class="tour-tip-label" id="tour-tip-' . $this->get('ariaId') . '-label">' . Html::escape($this->get('label')) . '</h2>';
+    $prefix .= '<p class="tour-tip-image" id="tour-tip-' . $this->get('ariaId') . '-contents">';
+    return [
+      '#prefix' => $prefix,
+      '#theme' => 'image',
+      '#uri' => $this->get('url'),
+      '#alt' => $this->get('alt'),
+      '#suffix' => '</p>',
+    ];
+  }
+
+}
diff --git a/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginTextLegacy.php b/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginTextLegacy.php
new file mode 100644
index 0000000000000000000000000000000000000000..c610e0b16a071915cdd59231e67144393e0ce76c
--- /dev/null
+++ b/core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginTextLegacy.php
@@ -0,0 +1,118 @@
+<?php
+
+namespace Drupal\tour_test\Plugin\tour\tip;
+
+use Drupal\Component\Utility\Html;
+use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
+use Drupal\Core\Utility\Token;
+use Drupal\tour\TipPluginBase;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+/**
+ * Displays some text as a tip.
+ *
+ * @Tip(
+ *   id = "text_legacy",
+ *   title = @Translation("Text Legacy")
+ * )
+ */
+class TipPluginTextLegacy extends TipPluginBase implements ContainerFactoryPluginInterface {
+
+  /**
+   * The body text which is used for render of this Text Tip.
+   *
+   * @var string
+   */
+  protected $body;
+
+  /**
+   * Token service.
+   *
+   * @var \Drupal\Core\Utility\Token
+   */
+  protected $token;
+
+  /**
+   * The forced position of where the tip will be located.
+   *
+   * @var string
+   */
+  protected $location;
+
+  /**
+   * Unique aria-id.
+   *
+   * @var string
+   */
+  protected $ariaId;
+
+  /**
+   * Constructs a TipPluginTextLegacy object.
+   *
+   * @param array $configuration
+   *   A configuration array containing information about the plugin instance.
+   * @param string $plugin_id
+   *   The plugin_id for the plugin instance.
+   * @param mixed $plugin_definition
+   *   The plugin implementation definition.
+   * @param \Drupal\Core\Utility\Token $token
+   *   The token service.
+   */
+  public function __construct(array $configuration, $plugin_id, $plugin_definition, Token $token) {
+    parent::__construct($configuration, $plugin_id, $plugin_definition);
+    $this->token = $token;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
+    return new static($configuration, $plugin_id, $plugin_definition, $container->get('token'));
+  }
+
+  /**
+   * Returns an ID that is guaranteed uniqueness.
+   *
+   * @return string
+   *   A unique id to be used to generate aria attributes.
+   */
+  public function getAriaId() {
+    if (!$this->ariaId) {
+      $this->ariaId = Html::getUniqueId($this->get('id'));
+    }
+    return $this->ariaId;
+  }
+
+  /**
+   * Returns body of the text tip.
+   *
+   * @return string
+   *   The tip body.
+   */
+  public function getBody() {
+    return $this->get('body');
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getAttributes() {
+    $attributes = parent::getAttributes();
+    $attributes['data-aria-describedby'] = 'tour-tip-' . $this->getAriaId() . '-contents';
+    $attributes['data-aria-labelledby'] = 'tour-tip-' . $this->getAriaId() . '-label';
+    if ($location = $this->get('location')) {
+      $attributes['data-options'] = 'tipLocation:' . $location;
+    }
+    return $attributes;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getOutput() {
+    $output = '<h2 class="tour-tip-label" id="tour-tip-' . $this->getAriaId() . '-label">' . Html::escape($this->getLabel()) . '</h2>';
+    $output .= '<p class="tour-tip-body" id="tour-tip-' . $this->getAriaId() . '-contents">' . $this->token->replace($this->getBody()) . '</p>';
+    return ['#markup' => $output];
+  }
+
+}
diff --git a/core/modules/tour/tour.libraries.yml b/core/modules/tour/tour.libraries.yml
index 9e573988c9dba6b2af9a70df418e095162edea9d..2b408ebd82eac3d08c4dd7efb3f88d00f8083e4c 100644
--- a/core/modules/tour/tour.libraries.yml
+++ b/core/modules/tour/tour.libraries.yml
@@ -7,7 +7,7 @@ tour:
     - core/jquery.once
     - core/drupal
     - core/backbone
-    - core/jquery.joyride
+    - core/shepherd
     - tour/tour-styling
 
 tour-styling:
diff --git a/core/modules/tour/tour.module b/core/modules/tour/tour.module
index e6bbd2ae63a04cfe97167ab6d8b6047ecb9e6680..3430921877d4865af55aeb6a1102765f9933379a 100644
--- a/core/modules/tour/tour.module
+++ b/core/modules/tour/tour.module
@@ -114,3 +114,82 @@ function tour_tour_insert($entity) {
 function tour_tour_update($entity) {
   \Drupal::service('plugin.manager.tour.tip')->clearCachedDefinitions();
 }
+
+/**
+ * Implements hook_ENTITY_TYPE_presave() for tour entities.
+ *
+ * @todo https://www.drupal.org/i/3195823 Remove once deprecated properties are
+ *   no longer supported.
+ */
+function tour_tour_presave(Tour $tour) {
+  _tour_update_joyride($tour);
+}
+
+/**
+ * Updates a tour to make it compatible with the Shepherd library.
+ *
+ * @param \Drupal\tour\Entity\Tour $tour
+ *   The tour to update.
+ * @param bool $trigger_deprecation
+ *   (optional) Whether to trigger deprecations. Defaults to TRUE.
+ *
+ * @return bool
+ *   Whether or not the entity needs saving.
+ *
+ * @see tour_post_update_joyride_selectors_to_selector_property()
+ *
+ * @internal
+ *
+ * @todo https://www.drupal.org/i/3195823 Remove once deprecated properties are
+ *   no longer supported.
+ */
+function _tour_update_joyride(Tour $tour, bool $trigger_deprecation = TRUE): bool {
+  $needs_save = FALSE;
+
+  // Update jQuery Joyride based plugins into a new, more structured format that
+  // is compatible with Shepherd.
+  $tips = $tour->get('tips');
+  foreach ($tips as &$tip) {
+    if (isset($tip['attributes']['data-class']) || isset($tip['attributes']['data-id'])) {
+      if ($trigger_deprecation) {
+        @trigger_error("The tour.tip 'attributes' config schema property is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Instead of 'data-class' and 'data-id' attributes, use 'selector' to specify the element a tip attaches to. See https://www.drupal.org/node/3204093", E_USER_DEPRECATED);
+      }
+
+      $needs_save = TRUE;
+      $selector = isset($tip['attributes']['data-class']) ? ".{$tip['attributes']['data-class']}" : NULL;
+      $selector = isset($tip['attributes']['data-id']) ? "#{$tip['attributes']['data-id']}" : $selector;
+      $tip['selector'] = $selector;
+
+      // Although the attributes property is deprecated, only the properties
+      // with 1:1 equivalents are unset.
+      unset($tip['attributes']['data-class'], $tip['attributes']['data-id']);
+      // Remove attributes if it is now empty.
+      if (empty($tip['attributes'])) {
+        unset($tip['attributes']);
+      }
+    }
+    if (isset($tip['location'])) {
+      if ($trigger_deprecation) {
+        @trigger_error("The tour.tip 'location' config schema property is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Instead use 'position'. The value must be a valid placement accepted by PopperJS. See https://www.drupal.org/node/3204093", E_USER_DEPRECATED);
+      }
+      $needs_save = TRUE;
+
+      // Joyride only supports four location options: 'top', 'bottom',
+      // 'left', and 'right'. Shepherd also accepts these as options, but they
+      // result in different behavior. A given Joyride location option will
+      // provide the same results in Shepherd if '-start' is appended to it (
+      // e.g. the 'left-start' option in Shepherd positions the element the
+      // same way that 'left' does in Joyride.
+      //
+      // @see https://shepherdjs.dev/docs/Step.html
+      $tip['position'] = $tip['location'] . '-start';
+      unset($tip['location']);
+    }
+  }
+
+  if ($needs_save) {
+    $tour->set('tips', $tips);
+  }
+
+  return $needs_save;
+}
diff --git a/core/modules/tour/tour.post_update.php b/core/modules/tour/tour.post_update.php
new file mode 100644
index 0000000000000000000000000000000000000000..f9396a6c7cb8b1839d57d0173bf48da638f95299
--- /dev/null
+++ b/core/modules/tour/tour.post_update.php
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * @file
+ * Post update functions for Tour.
+ */
+
+use Drupal\Core\Config\Entity\ConfigEntityUpdater;
+use Drupal\tour\Entity\Tour;
+
+/**
+ * Convert Joyride selectors to `selector` property.
+ *
+ * @see tour_tour_presave()
+ */
+function tour_post_update_joyride_selectors_to_selector_property(array &$sandbox = NULL) {
+  $config_entity_updater = \Drupal::classResolver(ConfigEntityUpdater::class);
+  $config_entity_updater->update($sandbox, 'tour', function (Tour $tour) {
+    return _tour_update_joyride($tour, FALSE);
+  });
+}
diff --git a/core/modules/views_ui/config/optional/tour.tour.views-ui.yml b/core/modules/views_ui/config/optional/tour.tour.views-ui.yml
index 42193dd6f5fd96b71b7f9cd3188270ffaf6460a3..09a6b2a5c0db1bad87ead1e469c04a447102973a 100644
--- a/core/modules/views_ui/config/optional/tour.tour.views-ui.yml
+++ b/core/modules/views_ui/config/optional/tour.tour.views-ui.yml
@@ -24,71 +24,62 @@ tips:
     label: 'Displays in this view'
     body: 'A display is a way of outputting the results, e.g., as a page or a block. A view can contain multiple displays, which are listed here. The active display is highlighted.'
     weight: 2
-    attributes:
-      data-id: views-display-top
+    selector: '#views-display-top'
   views-ui-view-admin:
     id: views-ui-view-admin
     plugin: text
     label: 'View administration'
     body: 'Perform administrative tasks, including adding a description and creating a clone. Click the drop-down button to view the available options.'
     weight: 3
-    location: left
-    attributes:
-      data-id: views-display-extra-actions
+    position: right
+    selector: '#views-display-extra-actions'
   views-ui-format:
     id: views-ui-format
     plugin: text
     label: 'Output format'
     body: 'Choose how to output results. E.g., choose <em>Content</em> to output each item completely, using your configured display settings. Or choose <em>Fields</em>, which allows you to output only specific fields for each result. Additional formats can be added by installing modules to <em>extend</em> Drupal''s base functionality.'
     weight: 4
-    attributes:
-      data-class: views-ui-display-tab-bucket.format
+    selector: '.views-ui-display-tab-bucket.format'
   views-ui-fields:
     id: views-ui-fields
     plugin: text
     label: Fields
     body: 'If this view uses fields, they are listed here. You can click on a field to configure it.'
     weight: 5
-    attributes:
-      data-class: views-ui-display-tab-bucket.field
+    selector: '.views-ui-display-tab-bucket.field'
   views-ui-filter:
     id: views-ui-filter
     plugin: text
     label: 'Filter your view'
     body: 'Add filters to limit the results in the output. E.g., to only show content that is <em>published</em>, you would add a filter for <em>Published</em> and select <em>Yes</em>.'
     weight: 6
-    attributes:
-      data-class: views-ui-display-tab-bucket.filter
+    selector: '.views-ui-display-tab-bucket.filter'
   views-ui-filter-operations:
     id: views-ui-filter-operations
     plugin: text
     label: 'Filter actions'
     body: 'Add, rearrange or remove filters.'
     weight: 7
-    attributes:
-      data-class: 'views-ui-display-tab-bucket.filter .dropbutton-widget'
+    selector: '.views-ui-display-tab-bucket.filter .dropbutton-widget'
   views-ui-sorts:
     id: views-ui-sorts
     plugin: text
     label: 'Sort Criteria'
     body: 'Control the order in which the results are output. Click on an active sort rule to configure it.'
     weight: 8
-    attributes:
-      data-class: views-ui-display-tab-bucket.sort
+    selector: '.views-ui-display-tab-bucket.sort'
   views-ui-sorts-operations:
     id: views-ui-sorts-operations
     plugin: text
     label: 'Sort actions'
     body: 'Add, rearrange or remove sorting rules.'
     weight: 9
-    attributes:
-      data-class: 'views-ui-display-tab-bucket.sort .dropbutton-widget'
+    selector: '.views-ui-display-tab-bucket.sort .dropbutton-widget'
   views-ui-preview:
     id: views-ui-preview
     plugin: text
     label: Preview
     body: 'Show a preview of the view output.'
     weight: 10
-    location: left
-    attributes:
-      data-id: preview-submit
+    position: right
+    selector: '#preview-submit'
diff --git a/core/profiles/demo_umami/config/install/tour.tour.umami-front.yml b/core/profiles/demo_umami/config/install/tour.tour.umami-front.yml
index 7772bf22846ae744e16330ee500ba6f5f07546b1..58003cb5689dbcad8a030f51f10b79530feafcd0 100644
--- a/core/profiles/demo_umami/config/install/tour.tour.umami-front.yml
+++ b/core/profiles/demo_umami/config/install/tour.tour.umami-front.yml
@@ -27,45 +27,40 @@ tips:
     label: Navigation
     body: This is the main navigation menu for the Umami website. It is simple to create and administer menus and you can create as many menus as your site requires. For example, this site provides this main navigation as well as the user navigation displayed above.
     weight: 3
-    location: left
-    attributes:
-      data-class: menu-main__link.is-active
+    position: right
+    selector: '.menu-main__link.is-active'
   umami-theme:
     id: umami-theme
     plugin: text
     label: The Umami theme
     body: This website uses the custom Umami theme to style its appearance. This theme has been created using CSS and by customizing Drupal's HTML templates that are built using the popular Twig templating system. Themes are also available for download and installation.
     weight: 4
-    location: right
-    attributes:
-      data-class: block-type-banner-block .summary
+    position: left
+    selector: '.block-type-banner-block .summary'
   managing-content:
     id: managing-content
     plugin: text
     label: Managing content
     body: This example website provides a collection of articles and recipes that demonstrate how content can easily be managed in a flexible and structured way.
     weight: 5
-    location: right
-    attributes:
-      data-class: view-promoted-items--single .read-more__link
+    position: left
+    selector: '.view-promoted-items--single .read-more__link'
   umami-front-views:
     id: umami-front-content
     plugin: text
     label: Configuring content display
     body:  Display modes can be configured to provide different presentations of content. These promoted articles and recipes use the display modes feature to format the images with different ratios.
     weight: 6
-    location: left
-    attributes:
-      data-class: view-promoted-items--double .node:nth-child(1)
+    position: right
+    selector: '.view-promoted-items--double .node:nth-child(1)'
   umami-views:
     id: umami-views
     plugin: text
     label: Displaying content with Views
     body: Drupal makes it simple to create lists of filtered content and control how the content is displayed using the Views feature. This latest recipes example uses a view to fetch the most recent four recipes, displays the view as a block that is positioned on the front page with the block system.
     weight: 7
-    location: right
-    attributes:
-      data-class: view-frontpage .node:nth-child(1)
+    position: left
+    selector: '.view-frontpage .node:nth-child(1)'
   front-bookend:
     id: front-bookend
     plugin: text
diff --git a/core/profiles/demo_umami/themes/umami/css/components/tour/tour.theme.css b/core/profiles/demo_umami/themes/umami/css/components/tour/tour.theme.css
index 953954abfa28e6b12b7436400095425e1ccc3a98..64ee4f64f30aba836231e02dbba1963a92f14c5a 100644
--- a/core/profiles/demo_umami/themes/umami/css/components/tour/tour.theme.css
+++ b/core/profiles/demo_umami/themes/umami/css/components/tour/tour.theme.css
@@ -1,9 +1,28 @@
-.joyride-tip-guide .tour-tip-label {
-  margin-top: 0;
+.shepherd-element:focus {
+  outline-width: 1px;
+  outline-style: dotted;
+  outline-color: #008068;
+  outline-offset: 2px;
+  box-shadow: none;
 }
 
-.joyride-tip-guide h2 {
-  margin: 10px 0;
+.shepherd-cancel-icon {
+  line-height: 1;
+}
+
+.shepherd-cancel-icon:focus {
+  color: #fff;
+  background-color: transparent;
+}
+
+.shepherd-cancel-icon:hover,
+.shepherd-cancel-icon:focus {
+  color: #000;
+  background-color: #efefef;
+}
+
+.shepherd-title {
+  margin: 0;
   color: #fff;
   font-family: "Lucida Grande", "Lucida Sans Unicode", "DejaVu Sans", "Lucida Sans", sans-serif;
   font-size: 18px;
@@ -11,19 +30,13 @@
   line-height: 20px;
 }
 
-.joyride-tip-guide p {
+.shepherd-text p {
   font-size: 13px;
   line-height: 18px;
 }
 
-.joyride-tip-guide .button {
+.shepherd-button {
   padding: 4px 1.5em;
   font-size: 14px;
   line-height: 17px;
 }
-
-.joyride-tip-guide a:hover,
-.joyride-tip-guide a:focus {
-  color: #000;
-  background-color: #efefef;
-}
diff --git a/core/tests/Drupal/KernelTests/Core/Config/DefaultConfigTest.php b/core/tests/Drupal/KernelTests/Core/Config/DefaultConfigTest.php
index df8a41e797ed0d635f140ebcbb49a70836c1a3ff..32c13c720f6f4e183b72d5d6fe31cc7bcb67aa20 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/DefaultConfigTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/DefaultConfigTest.php
@@ -25,6 +25,27 @@ class DefaultConfigTest extends KernelTestBase {
    */
   protected static $modules = ['system', 'config_test'];
 
+  /**
+   * Config files to be ignored by this test.
+   *
+   * @var array
+   */
+  protected $toSkip = [
+    // Skip files provided by the config_schema_test module since that module
+    // is explicitly for testing schema.
+    'config_schema_test.ignore',
+    'config_schema_test.noschema',
+    'config_schema_test.plugin_types',
+    'config_schema_test.someschema.somemodule.section_one.subsection',
+    'config_schema_test.someschema.somemodule.section_two.subsection',
+    'config_schema_test.someschema.with_parents',
+    'config_schema_test.someschema',
+    // Skip tour-test-legacy files as they intentionally have deprecated
+    // properties.
+    'tour.tour.tour-test-legacy',
+    'tour.tour.tour-test-legacy-location',
+  ];
+
   /**
    * Themes which provide default configuration and need enabling.
    *
@@ -62,11 +83,8 @@ public function testDefaultConfig() {
     // Create a configuration storage with access to default configuration in
     // every module, profile and theme.
     $default_config_storage = new TestInstallStorage();
-
     foreach ($default_config_storage->listAll() as $config_name) {
-      // Skip files provided by the config_schema_test module since that module
-      // is explicitly for testing schema.
-      if (strpos($config_name, 'config_schema_test') === 0) {
+      if (in_array($config_name, $this->toSkip)) {
         continue;
       }
 
diff --git a/core/themes/bartik/bartik.info.yml b/core/themes/bartik/bartik.info.yml
index 7a184637bbb3c00f81d7e46d6cd23d1ca073ef52..0789d8eae02c1f8b4638b39794c90056131aa34d 100644
--- a/core/themes/bartik/bartik.info.yml
+++ b/core/themes/bartik/bartik.info.yml
@@ -42,6 +42,8 @@ libraries-extend:
     - bartik/classy.media_library
   media_library/widget:
     - bartik/classy.media_library
+  tour/tour:
+    - bartik/tour
   user/drupal.user:
     - bartik/user
 
diff --git a/core/themes/bartik/bartik.libraries.yml b/core/themes/bartik/bartik.libraries.yml
index 820687e00125ccb80d8d6ae573e5e1bb28a71937..1c9dc2bfdc658135d543e1c22b12cf8dccd309e6 100644
--- a/core/themes/bartik/bartik.libraries.yml
+++ b/core/themes/bartik/bartik.libraries.yml
@@ -114,6 +114,11 @@ classy.base:
       css/classy/components/tabs.css: { weight: -10 }
       css/classy/components/textarea.css: { weight: -10 }
       css/classy/components/ui-dialog.css: { weight: -10 }
+tour:
+  version: VERSION
+  css:
+    component:
+      css/components/tour.css: {}
 
 user:
   version: VERSION
diff --git a/core/themes/bartik/css/components/tour.css b/core/themes/bartik/css/components/tour.css
new file mode 100644
index 0000000000000000000000000000000000000000..1afedf0572a6cea64f055c6f0f842bf700a6df26
--- /dev/null
+++ b/core/themes/bartik/css/components/tour.css
@@ -0,0 +1,10 @@
+.shepherd-cancel-icon {
+  text-decoration: none;
+  color: #0071b3;
+  border-bottom: 1px dotted;
+}
+
+.shepherd-cancel-icon:hover,
+.shepherd-cancel-icon:focus {
+  color: #008ee2;
+}
diff --git a/core/themes/claro/claro.libraries.yml b/core/themes/claro/claro.libraries.yml
index cde2ce22db10ab76a05dbe2393c4cf2f52457a60..01e6bf75d1e05ad25930b543d39cc98c264e25f5 100644
--- a/core/themes/claro/claro.libraries.yml
+++ b/core/themes/claro/claro.libraries.yml
@@ -160,7 +160,7 @@ tour-styling:
   version: VERSION
   css:
     theme:
-      css/components/tour.theme.css: {}
+      css/theme/tour.theme.css: {}
 
 media-form:
   version: VERSION
diff --git a/core/themes/claro/css/components/tour.theme.css b/core/themes/claro/css/components/tour.theme.css
deleted file mode 100644
index cdad084fa148c98ca9def279dd9b5516c98e407c..0000000000000000000000000000000000000000
--- a/core/themes/claro/css/components/tour.theme.css
+++ /dev/null
@@ -1,127 +0,0 @@
-/*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/3084859
- * @preserve
- */
-
-/**
- * @file
- * Styles for Tour theme.
- */
-
-/* Default styles for the container */
-
-.joyride-tip-guide {
-  color: #fff;
-  border-radius: 0.3125rem;
-  background: #000;
-  background: rgba(0, 0, 0, 0.8);
-}
-
-/* Mobile */
-
-@media only screen and (max-width: 47.9375rem) {
-  .joyride-tip-guide {
-    border-radius: 0;
-  }
-}
-
-/* Add a little css triangle pip, older browser just miss out on the fanciness of it. */
-
-.joyride-tip-guide .joyride-nub {
-  border: solid 14px rgba(0, 0, 0, 0.8);
-}
-
-.joyride-tip-guide .joyride-nub.top {
-  border-top-color: transparent;
-  border-right-color: transparent;
-  border-left-color: transparent;
-}
-
-.joyride-tip-guide .joyride-nub.bottom {
-  border-right-color: transparent;
-  border-bottom-color: transparent;
-  border-left-color: transparent;
-}
-
-.joyride-tip-guide .joyride-nub.right {
-  border-top-color: transparent;
-  border-right-color: transparent; /* LTR */
-  border-bottom-color: transparent;
-}
-
-[dir="rtl"] .joyride-tip-guide .joyride-nub.right {
-  border-right-color: rgba(0, 0, 0, 0.8);
-  border-left-color: transparent;
-}
-
-.joyride-tip-guide .joyride-nub.left {
-  border-top-color: transparent;
-  border-bottom-color: transparent;
-  border-left-color: transparent; /* LTR */
-}
-
-[dir="rtl"] .joyride-tip-guide .joyride-nub.left {
-  border-right-color: transparent;
-  border-left-color: rgba(0, 0, 0, 0.8);
-}
-
-.joyride-tip-guide .joyride-nub.top-right {
-  border-top-color: transparent;
-  border-right-color: transparent;
-  border-left-color: transparent;
-}
-
-/* Typography */
-
-.joyride-tip-guide h2 {
-  color: #fff;
-}
-
-.joyride-tip-guide p {
-  line-height: 1.385em;
-}
-
-.joyride-tip-guide a {
-  color: #fff;
-}
-
-/* Button Style */
-
-.joyride-tip-guide .joyride-next-tip {
-  margin: 0;
-}
-
-.joyride-timer-indicator-wrap {
-  border: solid 1px rgba(255, 255, 255, 0.1);
-}
-
-.joyride-timer-indicator {
-  background: rgba(255, 255, 255, 0.25);
-}
-
-.joyride-close-tip {
-  text-decoration: none;
-  color: rgba(255, 255, 255, 0.4);
-  font-size: 1.4em;
-  font-weight: bold;
-}
-
-.joyride-close-tip:hover,
-.joyride-close-tip:focus {
-  text-decoration: none;
-  color: rgba(255, 255, 255, 0.9);
-}
-
-.joyride-modal-bg {
-  background: rgba(0, 0, 0, 0.5);
-}
-
-.joyride-expose-wrapper {
-  background-color: #fff;
-}
-
-.joyride-expose-cover {
-  background: transparent;
-}
diff --git a/core/themes/claro/css/components/tour.theme.pcss.css b/core/themes/claro/css/components/tour.theme.pcss.css
deleted file mode 100644
index b3ac8a2cb4c1fbffbe8be62b860d57eaff82f52d..0000000000000000000000000000000000000000
--- a/core/themes/claro/css/components/tour.theme.pcss.css
+++ /dev/null
@@ -1,103 +0,0 @@
-/**
- * @file
- * Styles for Tour theme.
- */
-
-/* Default styles for the container */
-.joyride-tip-guide {
-  color: #fff;
-  border-radius: 5px;
-  background: #000;
-  background: rgba(0, 0, 0, 0.8);
-}
-
-/* Mobile */
-@media only screen and (max-width: 767px) {
-  .joyride-tip-guide {
-    border-radius: 0;
-  }
-}
-
-/* Add a little css triangle pip, older browser just miss out on the fanciness of it. */
-.joyride-tip-guide .joyride-nub {
-  border: solid 14px rgba(0, 0, 0, 0.8);
-}
-.joyride-tip-guide .joyride-nub.top {
-  border-top-color: transparent;
-  border-right-color: transparent;
-  border-left-color: transparent;
-}
-.joyride-tip-guide .joyride-nub.bottom {
-  border-right-color: transparent;
-  border-bottom-color: transparent;
-  border-left-color: transparent;
-}
-.joyride-tip-guide .joyride-nub.right {
-  border-top-color: transparent;
-  border-right-color: transparent; /* LTR */
-  border-bottom-color: transparent;
-}
-[dir="rtl"] .joyride-tip-guide .joyride-nub.right {
-  border-right-color: rgba(0, 0, 0, 0.8);
-  border-left-color: transparent;
-}
-.joyride-tip-guide .joyride-nub.left {
-  border-top-color: transparent;
-  border-bottom-color: transparent;
-  border-left-color: transparent; /* LTR */
-}
-[dir="rtl"] .joyride-tip-guide .joyride-nub.left {
-  border-right-color: transparent;
-  border-left-color: rgba(0, 0, 0, 0.8);
-}
-.joyride-tip-guide .joyride-nub.top-right {
-  border-top-color: transparent;
-  border-right-color: transparent;
-  border-left-color: transparent;
-}
-
-/* Typography */
-.joyride-tip-guide h2 {
-  color: #fff;
-}
-.joyride-tip-guide p {
-  line-height: 1.385em;
-}
-.joyride-tip-guide a {
-  color: #fff;
-}
-
-/* Button Style */
-.joyride-tip-guide .joyride-next-tip {
-  margin: 0;
-}
-.joyride-timer-indicator-wrap {
-  border: solid 1px rgba(255, 255, 255, 0.1);
-}
-.joyride-timer-indicator {
-  background: rgba(255, 255, 255, 0.25);
-}
-
-.joyride-close-tip {
-  text-decoration: none;
-  color: rgba(255, 255, 255, 0.4);
-  font-size: 1.4em;
-  font-weight: bold;
-}
-.joyride-close-tip:hover,
-.joyride-close-tip:focus {
-  text-decoration: none;
-  color: rgba(255, 255, 255, 0.9);
-}
-
-.joyride-modal-bg {
-  background: rgba(0, 0, 0, 0.5);
-}
-
-.joyride-expose-wrapper {
-  background-color: #fff;
-}
-
-.joyride-expose-cover {
-  background: transparent;
-}
diff --git a/core/themes/claro/css/theme/tour.theme.css b/core/themes/claro/css/theme/tour.theme.css
new file mode 100644
index 0000000000000000000000000000000000000000..f96d4e99c67f88b9a02bbea9e2f7b589e05bb68e
--- /dev/null
+++ b/core/themes/claro/css/theme/tour.theme.css
@@ -0,0 +1,100 @@
+/*
+ * DO NOT EDIT THIS FILE.
+ * See the following change record for more information,
+ * https://www.drupal.org/node/3084859
+ * @preserve
+ */
+
+/**
+ * @file
+ * Styles for Tour theme.
+ */
+
+/* Default styles for the container */
+
+.shepherd-element {
+  color: #fff;
+  border-radius: 0.3125rem;
+  background-color: #000;
+  background-color: rgba(0, 0, 0, 0.8);
+}
+
+.shepherd-element:focus {
+  outline: 2px dotted transparent;
+  box-shadow: 0 0 0 2px #fff, 0 0 0 5px #26a769;
+}
+
+/* Mobile */
+
+@media only screen and (max-width: 47.9375rem) {
+  .shepherd-element {
+    border-radius: 0;
+  }
+}
+
+.shepherd-arrow:before {
+  background: none;
+}
+
+/* Add a little css triangle pip, older browser just miss out on the fanciness of it. */
+
+.shepherd-arrow {
+  border: solid 14px rgba(0, 0, 0, 0.8);
+}
+
+.shepherd-element[data-popper-placement^=top] > .shepherd-arrow {
+  bottom: -1.75rem;
+  border-right-color: transparent;
+  border-bottom-color: transparent;
+  border-left-color: transparent;
+}
+
+.shepherd-element[data-popper-placement^=bottom] > .shepherd-arrow {
+  top: -1.75rem;
+  border-top-color: transparent;
+  border-right-color: transparent;
+  border-left-color: transparent;
+}
+
+.shepherd-element[data-popper-placement^=left] > .shepherd-arrow {
+  right: -1.75rem;
+  border-top-color: transparent;
+  border-right-color: transparent; /* LTR */
+  border-bottom-color: transparent;
+}
+
+.shepherd-element[data-popper-placement^=right] > .shepherd-arrow {
+  left: -1.75rem;
+  border-top-color: transparent;
+  border-bottom-color: transparent;
+  border-left-color: transparent; /* LTR */
+}
+
+.shepherd-text p {
+  line-height: 1.385em;
+}
+
+.shepherd-text a {
+  color: #fff;
+}
+
+.shepherd-cancel-icon {
+  color: #fff;
+  font-size: 1.4em;
+  font-weight: bold;
+  line-height: 1;
+}
+
+.shepherd-cancel-icon:hover,
+.shepherd-cancel-icon:focus {
+  color: rgba(255, 255, 255, 0.9);
+}
+
+.shepherd-button {
+  margin: 0;
+}
+
+.shepherd-content *:focus {
+  outline: 2px dotted transparent;
+  box-shadow: 0 0 0 2px #fff, 0 0 0 5px #26a769;
+}
diff --git a/core/themes/claro/css/theme/tour.theme.pcss.css b/core/themes/claro/css/theme/tour.theme.pcss.css
new file mode 100644
index 0000000000000000000000000000000000000000..4be6746694120cb57b0fe8cf49dad82a7b1ca526
--- /dev/null
+++ b/core/themes/claro/css/theme/tour.theme.pcss.css
@@ -0,0 +1,90 @@
+/**
+ * @file
+ * Styles for Tour theme.
+ */
+
+@import "../base/variables.pcss.css";
+
+/* Default styles for the container */
+.shepherd-element {
+  color: #fff;
+  border-radius: 5px;
+  background-color: #000;
+  background-color: rgba(0, 0, 0, 0.8);
+}
+
+.shepherd-element:focus {
+  outline: 2px dotted transparent;
+  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 5px var(--color-focus);
+}
+
+/* Mobile */
+@media only screen and (max-width: 767px) {
+  .shepherd-element {
+    border-radius: 0;
+  }
+}
+
+.shepherd-arrow:before {
+  background: none;
+}
+
+/* Add a little css triangle pip, older browser just miss out on the fanciness of it. */
+.shepherd-arrow {
+  border: solid 14px rgba(0, 0, 0, 0.8);
+}
+
+.shepherd-element[data-popper-placement^=top] > .shepherd-arrow {
+  bottom: -28px;
+  border-right-color: transparent;
+  border-bottom-color: transparent;
+  border-left-color: transparent;
+}
+
+.shepherd-element[data-popper-placement^=bottom] > .shepherd-arrow {
+  top: -28px;
+  border-top-color: transparent;
+  border-right-color: transparent;
+  border-left-color: transparent;
+}
+
+.shepherd-element[data-popper-placement^=left] > .shepherd-arrow {
+  right: -28px;
+  border-top-color: transparent;
+  border-right-color: transparent; /* LTR */
+  border-bottom-color: transparent;
+}
+
+.shepherd-element[data-popper-placement^=right] > .shepherd-arrow {
+  left: -28px;
+  border-top-color: transparent;
+  border-bottom-color: transparent;
+  border-left-color: transparent; /* LTR */
+}
+
+.shepherd-text p {
+  line-height: 1.385em;
+}
+.shepherd-text a {
+  color: #fff;
+}
+
+.shepherd-cancel-icon {
+  color: #fff;
+  font-size: 1.4em;
+  font-weight: bold;
+  line-height: 1;
+}
+.shepherd-cancel-icon:hover,
+.shepherd-cancel-icon:focus {
+  color: rgba(255, 255, 255, 0.9);
+}
+
+.shepherd-button {
+  margin: 0;
+}
+
+.shepherd-content *:focus {
+  outline: 2px dotted transparent;
+  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 5px var(--color-focus);
+}
diff --git a/core/themes/seven/css/components/tour.theme.css b/core/themes/seven/css/components/tour.theme.css
index b3ac8a2cb4c1fbffbe8be62b860d57eaff82f52d..e77d9ff58b2d9e704127d8d84946f191e5aedb3d 100644
--- a/core/themes/seven/css/components/tour.theme.css
+++ b/core/themes/seven/css/components/tour.theme.css
@@ -4,100 +4,76 @@
  */
 
 /* Default styles for the container */
-.joyride-tip-guide {
+.shepherd-element {
   color: #fff;
   border-radius: 5px;
-  background: #000;
-  background: rgba(0, 0, 0, 0.8);
+  background-color: #000;
+  background-color: rgba(0, 0, 0, 0.8);
+}
+
+.shepherd-element:focus {
+  outline: none;
+  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 0 8px #40b6ff;
 }
 
 /* Mobile */
 @media only screen and (max-width: 767px) {
-  .joyride-tip-guide {
+  .shepherd-element {
     border-radius: 0;
   }
 }
 
+.shepherd-arrow:before {
+  background: none;
+}
+
 /* Add a little css triangle pip, older browser just miss out on the fanciness of it. */
-.joyride-tip-guide .joyride-nub {
+.shepherd-arrow {
   border: solid 14px rgba(0, 0, 0, 0.8);
 }
-.joyride-tip-guide .joyride-nub.top {
-  border-top-color: transparent;
+
+.shepherd-element[data-popper-placement^=top] > .shepherd-arrow {
+  bottom: -28px;
   border-right-color: transparent;
+  border-bottom-color: transparent;
   border-left-color: transparent;
 }
-.joyride-tip-guide .joyride-nub.bottom {
+
+.shepherd-element[data-popper-placement^=bottom] > .shepherd-arrow {
+  top: -28px;
+  border-top-color: transparent;
   border-right-color: transparent;
-  border-bottom-color: transparent;
   border-left-color: transparent;
 }
-.joyride-tip-guide .joyride-nub.right {
+
+.shepherd-element[data-popper-placement^=left] > .shepherd-arrow {
+  right: -28px;
   border-top-color: transparent;
   border-right-color: transparent; /* LTR */
   border-bottom-color: transparent;
 }
-[dir="rtl"] .joyride-tip-guide .joyride-nub.right {
-  border-right-color: rgba(0, 0, 0, 0.8);
-  border-left-color: transparent;
-}
-.joyride-tip-guide .joyride-nub.left {
+
+.shepherd-element[data-popper-placement^=right] > .shepherd-arrow {
+  left: -28px;
   border-top-color: transparent;
   border-bottom-color: transparent;
   border-left-color: transparent; /* LTR */
 }
-[dir="rtl"] .joyride-tip-guide .joyride-nub.left {
-  border-right-color: transparent;
-  border-left-color: rgba(0, 0, 0, 0.8);
-}
-.joyride-tip-guide .joyride-nub.top-right {
-  border-top-color: transparent;
-  border-right-color: transparent;
-  border-left-color: transparent;
-}
 
-/* Typography */
-.joyride-tip-guide h2 {
-  color: #fff;
-}
-.joyride-tip-guide p {
+.shepherd-text p {
   line-height: 1.385em;
 }
-.joyride-tip-guide a {
+.shepherd-text a {
   color: #fff;
 }
 
-/* Button Style */
-.joyride-tip-guide .joyride-next-tip {
-  margin: 0;
-}
-.joyride-timer-indicator-wrap {
-  border: solid 1px rgba(255, 255, 255, 0.1);
-}
-.joyride-timer-indicator {
-  background: rgba(255, 255, 255, 0.25);
-}
-
-.joyride-close-tip {
-  text-decoration: none;
-  color: rgba(255, 255, 255, 0.4);
+.shepherd-cancel-icon {
+  color: #fff;
+  font-family: "Open Sans", Verdana, sans-serif;
   font-size: 1.4em;
   font-weight: bold;
 }
-.joyride-close-tip:hover,
-.joyride-close-tip:focus {
-  text-decoration: none;
-  color: rgba(255, 255, 255, 0.9);
-}
-
-.joyride-modal-bg {
-  background: rgba(0, 0, 0, 0.5);
-}
-
-.joyride-expose-wrapper {
-  background-color: #fff;
-}
 
-.joyride-expose-cover {
-  background: transparent;
+.shepherd-cancel-icon:hover {
+  color: rgba(255, 255, 255, 0.8);
 }
diff --git a/core/themes/stable/css/tour/tour.module.css b/core/themes/stable/css/tour/tour.module.css
index 16c849ab0480f21ef2b8bd8715e838bdcbd93e54..b5de43f199e8a4d049749aa994d9fcd8f34b9478 100644
--- a/core/themes/stable/css/tour/tour.module.css
+++ b/core/themes/stable/css/tour/tour.module.css
@@ -141,3 +141,33 @@
   top: 0;
   left: 0;
 }
+
+/* In Joyride, display: block is added as an inline style. */
+.shepherd-element.joyride-tip-guide {
+  display: block;
+}
+.shepherd-element.joyride-tip-guide[hidden] {
+  display: none;
+}
+
+.shepherd-modal-overlay-container {
+  position: fixed;
+  z-index: 100;
+  top: 0;
+  left: 0;
+  overflow: hidden;
+  width: 100vw;
+  height: 0;
+  pointer-events: none;
+  opacity: 0;
+  fill-rule: evenodd;
+}
+
+.shepherd-modal-overlay-container.shepherd-modal-is-visible {
+  height: 100vh;
+  opacity: 0.5;
+}
+
+.shepherd-modal-overlay-container.shepherd-modal-is-visible path {
+  pointer-events: all;
+}
diff --git a/core/themes/stable/js/tour.es6.js b/core/themes/stable/js/tour.es6.js
new file mode 100644
index 0000000000000000000000000000000000000000..6d5e66b5061105df80650fe49356e86f459b6b5d
--- /dev/null
+++ b/core/themes/stable/js/tour.es6.js
@@ -0,0 +1,169 @@
+/**
+ * @file
+ * Provides backwards compatibility for Tours that no longer use Joyride.
+ */
+
+((Drupal) => {
+  /**
+   * Converts the markup of a Shepherd tour tip to match Joyride.
+   *
+   * @param {Tour} shepherdTour
+   *   A ShepherdJS tour object.
+   *
+   * @internal
+   */
+  Drupal.tour.convertToJoyrideMarkup = (shepherdTour) => {
+    /**
+     * Changes the tag of an element.
+     *
+     * @param {HTMLElement} element
+     *  The element that will have its tag changed.
+     * @param {string} tag
+     *  The tag the element should be changed to.
+     */
+    const changeTag = (element, tag) => {
+      if (element) {
+        const newTagElement = document.createElement(tag);
+        [...element.attributes].forEach((attr) => {
+          newTagElement.setAttribute(attr.name, attr.value);
+        });
+        newTagElement.innerHTML = element.innerHTML;
+        element.parentNode.replaceChild(newTagElement, element);
+      }
+    };
+
+    // Create variables for the elements that will be rearranged.
+    const shepherdElement = shepherdTour.currentStep.el;
+    const shepherdContent = shepherdElement.querySelector('.shepherd-content');
+    const shepherdCancel = shepherdElement.querySelector(
+      '.shepherd-cancel-icon',
+    );
+    const shepherdTitle = shepherdElement.querySelector('.shepherd-title');
+    const shepherdText = shepherdElement.querySelector('.shepherd-text');
+    const shepherdNext = shepherdElement.querySelector('footer .button');
+    const tourProgress = shepherdElement.querySelector('.tour-progress');
+
+    // Add attributes to the elements so they match what they were when Joyride
+    // was providing Tour functionality.
+    shepherdElement.classList.add('joyride-tip-guide');
+    shepherdContent.classList.add('joyride-content-wrapper');
+    shepherdNext.classList.add('joyride-next-tip');
+    shepherdNext.setAttribute('href', '#');
+    shepherdNext.setAttribute('role', 'button');
+    shepherdNext.removeAttribute('type');
+    shepherdCancel.classList.add('joyride-close-tip');
+    shepherdCancel.removeAttribute('type');
+    shepherdCancel.setAttribute('href', '#');
+    shepherdCancel.setAttribute('role', 'button');
+    shepherdElement.setAttribute(
+      'data-index',
+      shepherdTour.currentStep.options.index,
+    );
+    shepherdElement.querySelector('footer').remove();
+
+    // If the class list includes `tip-uses-get-output`, then the tip was created
+    // by a deprecated tip plugin. This means the markup has some differences
+    // that require some different steps to rebuild it as Joyride BC markup.
+    // @todo remove the contents of the 'if' in this conditional in
+    //   https://drupal.org/node/3195193.
+    if (shepherdElement.classList.contains('tip-uses-get-output')) {
+      // Move the next button.
+      shepherdText.appendChild(shepherdNext);
+
+      // Move the cancel button and remove the now unnecessary header.
+      shepherdText.appendChild(shepherdCancel);
+      shepherdContent.querySelector('.shepherd-header').remove();
+
+      // Remove empty paragraphs from the text container markup.
+      Array.from(shepherdText.children).forEach((node) => {
+        if (
+          node.tagName === 'P' &&
+          node.textContent === '' &&
+          node.classList.length === 0
+        ) {
+          node.remove();
+        }
+      });
+
+      // Move the contents of shepherdText directly into shepherdContent to
+      // remove the now redundant `<p>` provided by TipPlugin. Shepherd already
+      // wraps its content in a `<p>`, so the Plugin provided tag is redundant.
+      shepherdContent.innerHTML = shepherdText.innerHTML;
+    } else {
+      // Rearrange elements so their structure matches Joyride's.
+      shepherdContent.insertBefore(shepherdTitle, shepherdContent.firstChild);
+      shepherdContent.insertBefore(tourProgress, shepherdText.nextSibling);
+      shepherdContent.appendChild(shepherdCancel);
+      shepherdContent.querySelector('.shepherd-header').remove();
+      shepherdContent.insertBefore(shepherdNext, tourProgress.nextSibling);
+      shepherdCancel.innerHTML = '<span aria-hidden="true">×</span>';
+      shepherdTitle.classList.add('tour-tip-label');
+
+      // Convert elements to use the tags they used in Joyride.
+      changeTag(shepherdTitle, 'h2');
+
+      // Remove the wrapper Shepherd adds for tip content.
+      shepherdText.outerHTML = shepherdText.innerHTML;
+    }
+
+    // Convert the next and cancel buttons to links so they match Joyride's
+    // markup. They must be re-queried as they were potentially moved elsewhere
+    // in the DOM.
+    changeTag(shepherdElement.querySelector('.joyride-close-tip'), 'a');
+    changeTag(shepherdElement.querySelector('.joyride-next-tip'), 'a');
+
+    // The arrow protruding from a tip pointing to the element it references.
+    const shepherdArrow = shepherdElement.querySelector('.shepherd-arrow');
+
+    if (shepherdArrow) {
+      shepherdArrow.classList.add('joyride-nub');
+
+      if (shepherdTour.currentStep.options.attachTo.on) {
+        // Shepherd's positions are opposite of Joyride's as they specify the
+        // tip location relative to the corresponding element as opposed to
+        // their location on the tip itself.
+        const stepToTipPosition = {
+          bottom: 'top',
+          top: 'bottom',
+          left: 'right',
+          right: 'left',
+        };
+        shepherdArrow.classList.add(
+          // Split at '-' as shepherd positioning accommodates dash-delimited
+          // secondary axis positioning.
+          // shepherdTour.currentStep.options.attachTo.on.split('-')[0]
+          stepToTipPosition[
+            // Split at '-' as shepherd positioning accommodates dash-delimited
+            // secondary axis positioning.
+            shepherdTour.currentStep.options.attachTo.on.split('-')[0]
+          ],
+        );
+      }
+      changeTag(shepherdArrow, 'span');
+    } else {
+      // If there is no Shepherd arrow, there still needs to be markup for a
+      // non-displayed nub to match Joyride's markup.
+      const nub = document.createElement('span');
+      nub.classList.add('joyride-nub');
+      nub.setAttribute('style', 'display: none;');
+      shepherdElement.insertBefore(nub, shepherdElement.firstChild);
+    }
+
+    // When the next and cancel buttons were converted to links, they became
+    // new DOM elements that no longer have their associated event listeners.
+    // The events must be reintroduced here.
+    shepherdElement
+      .querySelector('.joyride-next-tip')
+      .addEventListener('click', (e) => {
+        e.preventDefault();
+        shepherdTour.next();
+      });
+    shepherdElement
+      .querySelector('.joyride-close-tip')
+      .addEventListener('click', (e) => {
+        e.preventDefault();
+        shepherdTour.cancel();
+      });
+    shepherdElement.querySelector('.joyride-next-tip').focus();
+  };
+})(Drupal);
diff --git a/core/themes/stable/js/tour.js b/core/themes/stable/js/tour.js
new file mode 100644
index 0000000000000000000000000000000000000000..20eda20a167f5c3928b2e88b2b945d47ee4e1e25
--- /dev/null
+++ b/core/themes/stable/js/tour.js
@@ -0,0 +1,112 @@
+/**
+* DO NOT EDIT THIS FILE.
+* See the following change record for more information,
+* https://www.drupal.org/node/2815083
+* @preserve
+**/
+
+function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
+
+function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
+
+function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
+
+function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
+
+function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
+
+function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
+
+(function (Drupal) {
+  Drupal.tour.convertToJoyrideMarkup = function (shepherdTour) {
+    var changeTag = function changeTag(element, tag) {
+      if (element) {
+        var newTagElement = document.createElement(tag);
+
+        _toConsumableArray(element.attributes).forEach(function (attr) {
+          newTagElement.setAttribute(attr.name, attr.value);
+        });
+
+        newTagElement.innerHTML = element.innerHTML;
+        element.parentNode.replaceChild(newTagElement, element);
+      }
+    };
+
+    var shepherdElement = shepherdTour.currentStep.el;
+    var shepherdContent = shepherdElement.querySelector('.shepherd-content');
+    var shepherdCancel = shepherdElement.querySelector('.shepherd-cancel-icon');
+    var shepherdTitle = shepherdElement.querySelector('.shepherd-title');
+    var shepherdText = shepherdElement.querySelector('.shepherd-text');
+    var shepherdNext = shepherdElement.querySelector('footer .button');
+    var tourProgress = shepherdElement.querySelector('.tour-progress');
+    shepherdElement.classList.add('joyride-tip-guide');
+    shepherdContent.classList.add('joyride-content-wrapper');
+    shepherdNext.classList.add('joyride-next-tip');
+    shepherdNext.setAttribute('href', '#');
+    shepherdNext.setAttribute('role', 'button');
+    shepherdNext.removeAttribute('type');
+    shepherdCancel.classList.add('joyride-close-tip');
+    shepherdCancel.removeAttribute('type');
+    shepherdCancel.setAttribute('href', '#');
+    shepherdCancel.setAttribute('role', 'button');
+    shepherdElement.setAttribute('data-index', shepherdTour.currentStep.options.index);
+    shepherdElement.querySelector('footer').remove();
+
+    if (shepherdElement.classList.contains('tip-uses-get-output')) {
+      shepherdText.appendChild(shepherdNext);
+      shepherdText.appendChild(shepherdCancel);
+      shepherdContent.querySelector('.shepherd-header').remove();
+      Array.from(shepherdText.children).forEach(function (node) {
+        if (node.tagName === 'P' && node.textContent === '' && node.classList.length === 0) {
+          node.remove();
+        }
+      });
+      shepherdContent.innerHTML = shepherdText.innerHTML;
+    } else {
+      shepherdContent.insertBefore(shepherdTitle, shepherdContent.firstChild);
+      shepherdContent.insertBefore(tourProgress, shepherdText.nextSibling);
+      shepherdContent.appendChild(shepherdCancel);
+      shepherdContent.querySelector('.shepherd-header').remove();
+      shepherdContent.insertBefore(shepherdNext, tourProgress.nextSibling);
+      shepherdCancel.innerHTML = '<span aria-hidden="true">×</span>';
+      shepherdTitle.classList.add('tour-tip-label');
+      changeTag(shepherdTitle, 'h2');
+      shepherdText.outerHTML = shepherdText.innerHTML;
+    }
+
+    changeTag(shepherdElement.querySelector('.joyride-close-tip'), 'a');
+    changeTag(shepherdElement.querySelector('.joyride-next-tip'), 'a');
+    var shepherdArrow = shepherdElement.querySelector('.shepherd-arrow');
+
+    if (shepherdArrow) {
+      shepherdArrow.classList.add('joyride-nub');
+
+      if (shepherdTour.currentStep.options.attachTo.on) {
+        var stepToTipPosition = {
+          bottom: 'top',
+          top: 'bottom',
+          left: 'right',
+          right: 'left'
+        };
+        shepherdArrow.classList.add(stepToTipPosition[shepherdTour.currentStep.options.attachTo.on.split('-')[0]]);
+      }
+
+      changeTag(shepherdArrow, 'span');
+    } else {
+      var nub = document.createElement('span');
+      nub.classList.add('joyride-nub');
+      nub.setAttribute('style', 'display: none;');
+      shepherdElement.insertBefore(nub, shepherdElement.firstChild);
+    }
+
+    shepherdElement.querySelector('.joyride-next-tip').addEventListener('click', function (e) {
+      e.preventDefault();
+      shepherdTour.next();
+    });
+    shepherdElement.querySelector('.joyride-close-tip').addEventListener('click', function (e) {
+      e.preventDefault();
+      shepherdTour.cancel();
+    });
+    shepherdElement.querySelector('.joyride-next-tip').focus();
+  };
+})(Drupal);
\ No newline at end of file
diff --git a/core/themes/stable/stable.info.yml b/core/themes/stable/stable.info.yml
index 511d88444619c2a8a64fa634013b988525e60d29..d75e28ba5cbb23fa6da0cff2001e10a26ce199f0 100644
--- a/core/themes/stable/stable.info.yml
+++ b/core/themes/stable/stable.info.yml
@@ -306,3 +306,5 @@ libraries-extend:
     - stable/drupal.ajax
   user/drupal.user:
     - stable/drupal.user
+  tour/tour:
+    - stable/tour
diff --git a/core/themes/stable/stable.libraries.yml b/core/themes/stable/stable.libraries.yml
index 8ef4f9928d4e04986a0e75e2712b32620588ccc5..ad6765cb124ffdd3f77f60cdeee70554e5dd1836 100644
--- a/core/themes/stable/stable.libraries.yml
+++ b/core/themes/stable/stable.libraries.yml
@@ -19,3 +19,8 @@ normalize:
     base:
       css/core/assets/vendor/normalize-css/normalize.css: { weight: -20 }
       css/core/normalize-fixes.css: { weight: -19 }
+
+tour:
+  version: VERSION
+  js:
+    js/tour.js: {}
diff --git a/core/themes/stable9/css/tour/tour.module.css b/core/themes/stable9/css/tour/tour.module.css
index 16c849ab0480f21ef2b8bd8715e838bdcbd93e54..b5de43f199e8a4d049749aa994d9fcd8f34b9478 100644
--- a/core/themes/stable9/css/tour/tour.module.css
+++ b/core/themes/stable9/css/tour/tour.module.css
@@ -141,3 +141,33 @@
   top: 0;
   left: 0;
 }
+
+/* In Joyride, display: block is added as an inline style. */
+.shepherd-element.joyride-tip-guide {
+  display: block;
+}
+.shepherd-element.joyride-tip-guide[hidden] {
+  display: none;
+}
+
+.shepherd-modal-overlay-container {
+  position: fixed;
+  z-index: 100;
+  top: 0;
+  left: 0;
+  overflow: hidden;
+  width: 100vw;
+  height: 0;
+  pointer-events: none;
+  opacity: 0;
+  fill-rule: evenodd;
+}
+
+.shepherd-modal-overlay-container.shepherd-modal-is-visible {
+  height: 100vh;
+  opacity: 0.5;
+}
+
+.shepherd-modal-overlay-container.shepherd-modal-is-visible path {
+  pointer-events: all;
+}
diff --git a/core/themes/stable9/js/tour.es6.js b/core/themes/stable9/js/tour.es6.js
new file mode 100644
index 0000000000000000000000000000000000000000..6d5e66b5061105df80650fe49356e86f459b6b5d
--- /dev/null
+++ b/core/themes/stable9/js/tour.es6.js
@@ -0,0 +1,169 @@
+/**
+ * @file
+ * Provides backwards compatibility for Tours that no longer use Joyride.
+ */
+
+((Drupal) => {
+  /**
+   * Converts the markup of a Shepherd tour tip to match Joyride.
+   *
+   * @param {Tour} shepherdTour
+   *   A ShepherdJS tour object.
+   *
+   * @internal
+   */
+  Drupal.tour.convertToJoyrideMarkup = (shepherdTour) => {
+    /**
+     * Changes the tag of an element.
+     *
+     * @param {HTMLElement} element
+     *  The element that will have its tag changed.
+     * @param {string} tag
+     *  The tag the element should be changed to.
+     */
+    const changeTag = (element, tag) => {
+      if (element) {
+        const newTagElement = document.createElement(tag);
+        [...element.attributes].forEach((attr) => {
+          newTagElement.setAttribute(attr.name, attr.value);
+        });
+        newTagElement.innerHTML = element.innerHTML;
+        element.parentNode.replaceChild(newTagElement, element);
+      }
+    };
+
+    // Create variables for the elements that will be rearranged.
+    const shepherdElement = shepherdTour.currentStep.el;
+    const shepherdContent = shepherdElement.querySelector('.shepherd-content');
+    const shepherdCancel = shepherdElement.querySelector(
+      '.shepherd-cancel-icon',
+    );
+    const shepherdTitle = shepherdElement.querySelector('.shepherd-title');
+    const shepherdText = shepherdElement.querySelector('.shepherd-text');
+    const shepherdNext = shepherdElement.querySelector('footer .button');
+    const tourProgress = shepherdElement.querySelector('.tour-progress');
+
+    // Add attributes to the elements so they match what they were when Joyride
+    // was providing Tour functionality.
+    shepherdElement.classList.add('joyride-tip-guide');
+    shepherdContent.classList.add('joyride-content-wrapper');
+    shepherdNext.classList.add('joyride-next-tip');
+    shepherdNext.setAttribute('href', '#');
+    shepherdNext.setAttribute('role', 'button');
+    shepherdNext.removeAttribute('type');
+    shepherdCancel.classList.add('joyride-close-tip');
+    shepherdCancel.removeAttribute('type');
+    shepherdCancel.setAttribute('href', '#');
+    shepherdCancel.setAttribute('role', 'button');
+    shepherdElement.setAttribute(
+      'data-index',
+      shepherdTour.currentStep.options.index,
+    );
+    shepherdElement.querySelector('footer').remove();
+
+    // If the class list includes `tip-uses-get-output`, then the tip was created
+    // by a deprecated tip plugin. This means the markup has some differences
+    // that require some different steps to rebuild it as Joyride BC markup.
+    // @todo remove the contents of the 'if' in this conditional in
+    //   https://drupal.org/node/3195193.
+    if (shepherdElement.classList.contains('tip-uses-get-output')) {
+      // Move the next button.
+      shepherdText.appendChild(shepherdNext);
+
+      // Move the cancel button and remove the now unnecessary header.
+      shepherdText.appendChild(shepherdCancel);
+      shepherdContent.querySelector('.shepherd-header').remove();
+
+      // Remove empty paragraphs from the text container markup.
+      Array.from(shepherdText.children).forEach((node) => {
+        if (
+          node.tagName === 'P' &&
+          node.textContent === '' &&
+          node.classList.length === 0
+        ) {
+          node.remove();
+        }
+      });
+
+      // Move the contents of shepherdText directly into shepherdContent to
+      // remove the now redundant `<p>` provided by TipPlugin. Shepherd already
+      // wraps its content in a `<p>`, so the Plugin provided tag is redundant.
+      shepherdContent.innerHTML = shepherdText.innerHTML;
+    } else {
+      // Rearrange elements so their structure matches Joyride's.
+      shepherdContent.insertBefore(shepherdTitle, shepherdContent.firstChild);
+      shepherdContent.insertBefore(tourProgress, shepherdText.nextSibling);
+      shepherdContent.appendChild(shepherdCancel);
+      shepherdContent.querySelector('.shepherd-header').remove();
+      shepherdContent.insertBefore(shepherdNext, tourProgress.nextSibling);
+      shepherdCancel.innerHTML = '<span aria-hidden="true">×</span>';
+      shepherdTitle.classList.add('tour-tip-label');
+
+      // Convert elements to use the tags they used in Joyride.
+      changeTag(shepherdTitle, 'h2');
+
+      // Remove the wrapper Shepherd adds for tip content.
+      shepherdText.outerHTML = shepherdText.innerHTML;
+    }
+
+    // Convert the next and cancel buttons to links so they match Joyride's
+    // markup. They must be re-queried as they were potentially moved elsewhere
+    // in the DOM.
+    changeTag(shepherdElement.querySelector('.joyride-close-tip'), 'a');
+    changeTag(shepherdElement.querySelector('.joyride-next-tip'), 'a');
+
+    // The arrow protruding from a tip pointing to the element it references.
+    const shepherdArrow = shepherdElement.querySelector('.shepherd-arrow');
+
+    if (shepherdArrow) {
+      shepherdArrow.classList.add('joyride-nub');
+
+      if (shepherdTour.currentStep.options.attachTo.on) {
+        // Shepherd's positions are opposite of Joyride's as they specify the
+        // tip location relative to the corresponding element as opposed to
+        // their location on the tip itself.
+        const stepToTipPosition = {
+          bottom: 'top',
+          top: 'bottom',
+          left: 'right',
+          right: 'left',
+        };
+        shepherdArrow.classList.add(
+          // Split at '-' as shepherd positioning accommodates dash-delimited
+          // secondary axis positioning.
+          // shepherdTour.currentStep.options.attachTo.on.split('-')[0]
+          stepToTipPosition[
+            // Split at '-' as shepherd positioning accommodates dash-delimited
+            // secondary axis positioning.
+            shepherdTour.currentStep.options.attachTo.on.split('-')[0]
+          ],
+        );
+      }
+      changeTag(shepherdArrow, 'span');
+    } else {
+      // If there is no Shepherd arrow, there still needs to be markup for a
+      // non-displayed nub to match Joyride's markup.
+      const nub = document.createElement('span');
+      nub.classList.add('joyride-nub');
+      nub.setAttribute('style', 'display: none;');
+      shepherdElement.insertBefore(nub, shepherdElement.firstChild);
+    }
+
+    // When the next and cancel buttons were converted to links, they became
+    // new DOM elements that no longer have their associated event listeners.
+    // The events must be reintroduced here.
+    shepherdElement
+      .querySelector('.joyride-next-tip')
+      .addEventListener('click', (e) => {
+        e.preventDefault();
+        shepherdTour.next();
+      });
+    shepherdElement
+      .querySelector('.joyride-close-tip')
+      .addEventListener('click', (e) => {
+        e.preventDefault();
+        shepherdTour.cancel();
+      });
+    shepherdElement.querySelector('.joyride-next-tip').focus();
+  };
+})(Drupal);
diff --git a/core/themes/stable9/js/tour.js b/core/themes/stable9/js/tour.js
new file mode 100644
index 0000000000000000000000000000000000000000..20eda20a167f5c3928b2e88b2b945d47ee4e1e25
--- /dev/null
+++ b/core/themes/stable9/js/tour.js
@@ -0,0 +1,112 @@
+/**
+* DO NOT EDIT THIS FILE.
+* See the following change record for more information,
+* https://www.drupal.org/node/2815083
+* @preserve
+**/
+
+function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
+
+function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
+
+function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
+
+function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
+
+function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
+
+function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
+
+(function (Drupal) {
+  Drupal.tour.convertToJoyrideMarkup = function (shepherdTour) {
+    var changeTag = function changeTag(element, tag) {
+      if (element) {
+        var newTagElement = document.createElement(tag);
+
+        _toConsumableArray(element.attributes).forEach(function (attr) {
+          newTagElement.setAttribute(attr.name, attr.value);
+        });
+
+        newTagElement.innerHTML = element.innerHTML;
+        element.parentNode.replaceChild(newTagElement, element);
+      }
+    };
+
+    var shepherdElement = shepherdTour.currentStep.el;
+    var shepherdContent = shepherdElement.querySelector('.shepherd-content');
+    var shepherdCancel = shepherdElement.querySelector('.shepherd-cancel-icon');
+    var shepherdTitle = shepherdElement.querySelector('.shepherd-title');
+    var shepherdText = shepherdElement.querySelector('.shepherd-text');
+    var shepherdNext = shepherdElement.querySelector('footer .button');
+    var tourProgress = shepherdElement.querySelector('.tour-progress');
+    shepherdElement.classList.add('joyride-tip-guide');
+    shepherdContent.classList.add('joyride-content-wrapper');
+    shepherdNext.classList.add('joyride-next-tip');
+    shepherdNext.setAttribute('href', '#');
+    shepherdNext.setAttribute('role', 'button');
+    shepherdNext.removeAttribute('type');
+    shepherdCancel.classList.add('joyride-close-tip');
+    shepherdCancel.removeAttribute('type');
+    shepherdCancel.setAttribute('href', '#');
+    shepherdCancel.setAttribute('role', 'button');
+    shepherdElement.setAttribute('data-index', shepherdTour.currentStep.options.index);
+    shepherdElement.querySelector('footer').remove();
+
+    if (shepherdElement.classList.contains('tip-uses-get-output')) {
+      shepherdText.appendChild(shepherdNext);
+      shepherdText.appendChild(shepherdCancel);
+      shepherdContent.querySelector('.shepherd-header').remove();
+      Array.from(shepherdText.children).forEach(function (node) {
+        if (node.tagName === 'P' && node.textContent === '' && node.classList.length === 0) {
+          node.remove();
+        }
+      });
+      shepherdContent.innerHTML = shepherdText.innerHTML;
+    } else {
+      shepherdContent.insertBefore(shepherdTitle, shepherdContent.firstChild);
+      shepherdContent.insertBefore(tourProgress, shepherdText.nextSibling);
+      shepherdContent.appendChild(shepherdCancel);
+      shepherdContent.querySelector('.shepherd-header').remove();
+      shepherdContent.insertBefore(shepherdNext, tourProgress.nextSibling);
+      shepherdCancel.innerHTML = '<span aria-hidden="true">×</span>';
+      shepherdTitle.classList.add('tour-tip-label');
+      changeTag(shepherdTitle, 'h2');
+      shepherdText.outerHTML = shepherdText.innerHTML;
+    }
+
+    changeTag(shepherdElement.querySelector('.joyride-close-tip'), 'a');
+    changeTag(shepherdElement.querySelector('.joyride-next-tip'), 'a');
+    var shepherdArrow = shepherdElement.querySelector('.shepherd-arrow');
+
+    if (shepherdArrow) {
+      shepherdArrow.classList.add('joyride-nub');
+
+      if (shepherdTour.currentStep.options.attachTo.on) {
+        var stepToTipPosition = {
+          bottom: 'top',
+          top: 'bottom',
+          left: 'right',
+          right: 'left'
+        };
+        shepherdArrow.classList.add(stepToTipPosition[shepherdTour.currentStep.options.attachTo.on.split('-')[0]]);
+      }
+
+      changeTag(shepherdArrow, 'span');
+    } else {
+      var nub = document.createElement('span');
+      nub.classList.add('joyride-nub');
+      nub.setAttribute('style', 'display: none;');
+      shepherdElement.insertBefore(nub, shepherdElement.firstChild);
+    }
+
+    shepherdElement.querySelector('.joyride-next-tip').addEventListener('click', function (e) {
+      e.preventDefault();
+      shepherdTour.next();
+    });
+    shepherdElement.querySelector('.joyride-close-tip').addEventListener('click', function (e) {
+      e.preventDefault();
+      shepherdTour.cancel();
+    });
+    shepherdElement.querySelector('.joyride-next-tip').focus();
+  };
+})(Drupal);
\ No newline at end of file
diff --git a/core/themes/stable9/stable9.info.yml b/core/themes/stable9/stable9.info.yml
index a07fdd7d203be5eb78f07d9131000d75b233ea31..9dc52ab3af880440ae8f392ff68b7f4ca6767787 100644
--- a/core/themes/stable9/stable9.info.yml
+++ b/core/themes/stable9/stable9.info.yml
@@ -320,3 +320,7 @@ libraries-override:
       theme:
         css/views_ui.admin.theme.css: css/views_ui/views_ui.admin.theme.css
         css/views_ui.contextual.css: css/views_ui/views_ui.contextual.css
+
+libraries-extend:
+  tour/tour:
+    - stable9/tour
diff --git a/core/themes/stable9/stable9.libraries.yml b/core/themes/stable9/stable9.libraries.yml
index 3da52842e029cf0cd0be2268e828747ef483e3bc..d905a49a3eb722b5ce1432f292899a72a2bbd486 100644
--- a/core/themes/stable9/stable9.libraries.yml
+++ b/core/themes/stable9/stable9.libraries.yml
@@ -9,3 +9,8 @@ normalize:
     base:
       css/core/assets/vendor/normalize-css/normalize.css: { weight: -20 }
       css/core/normalize-fixes.css: { weight: -19 }
+
+tour:
+  version: VERSION
+  js:
+    js/tour.js: {}