Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
wp-content
/
plugins
/
complianz-gdpr
/
settings
/
build
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[1350],{21350:(t,e,n)=>{n.r(e),n.d(e,{ShepherdTour:()=>nn,ShepherdTourContext:()=>Je,TourMethods:()=>Qe,useShepherdTour:()=>en});var o=n(51609),i=n.n(o),s=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===r}(t)}(t)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(t,e){return!1!==e.clone&&e.isMergeableObject(t)?h((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function c(t,e,n){return t.concat(e).map((function(t){return l(t,n)}))}function a(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function u(t,e){try{return e in t}catch(t){return!1}}function h(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||c,n.isMergeableObject=n.isMergeableObject||s,n.cloneUnlessOtherwiseSpecified=l;var o=Array.isArray(e);return o===Array.isArray(t)?o?n.arrayMerge(t,e,n):function(t,e,n){var o={};return n.isMergeableObject(t)&&a(t).forEach((function(e){o[e]=l(t[e],n)})),a(e).forEach((function(i){(function(t,e){return u(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(u(t,i)&&n.isMergeableObject(e[i])?o[i]=function(t,e){if(!e.customMerge)return h;var n=e.customMerge(t);return"function"==typeof n?n:h}(i,n)(t[i],e[i],n):o[i]=l(e[i],n))})),o}(t,e,n):l(e,n)}h.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return h(t,n,e)}),{})};var d=h;function p(t){return t instanceof HTMLElement}function f(t){return"function"==typeof t}function m(t){return"string"==typeof t}function g(t){return void 0===t}class b{on(t,e,n,o){return void 0===o&&(o=!1),g(this.bindings)&&(this.bindings={}),g(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:o}),this}once(t,e,n){return this.on(t,e,n,!0)}off(t,e){return g(this.bindings)||g(this.bindings[t])||(g(e)?delete this.bindings[t]:this.bindings[t].forEach(((n,o)=>{n.handler===e&&this.bindings[t].splice(o,1)}))),this}trigger(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return!g(this.bindings)&&this.bindings[t]&&this.bindings[t].forEach(((e,o)=>{const{ctx:i,handler:s,once:r}=e,l=i||this;s.apply(l,n),r&&this.bindings[t].splice(o,1)})),this}}function y(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],i=t[o];"constructor"!==o&&"function"==typeof i&&(t[o]=i.bind(t))}return t}function x(t){return m(t)&&""!==t?"-"!==t.charAt(t.length-1)?`${t}-`:t:""}function v(t){return null==t||!t.element||!t.on}function $(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)}))}function w(){return w=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},w.apply(this,arguments)}function E(t,e){if(null==t)return{};var n,o,i={},s=Object.keys(t);for(o=0;o<s.length;o++)n=s[o],e.indexOf(n)>=0||(i[n]=t[n]);return i}const O=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"],T=["mainAxis","crossAxis","limiter"];function S(t){return t.split("-")[0]}function _(t){return t.split("-")[1]}function A(t){return["top","bottom"].includes(S(t))?"x":"y"}function I(t){return"y"===t?"height":"width"}function L(t,e,n){let{reference:o,floating:i}=t;const s=o.x+o.width/2-i.width/2,r=o.y+o.height/2-i.height/2,l=A(e),c=I(l),a=o[c]/2-i[c]/2,u="x"===l;let h;switch(S(e)){case"top":h={x:s,y:o.y-i.height};break;case"bottom":h={x:s,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:r};break;case"left":h={x:o.x-i.width,y:r};break;default:h={x:o.x,y:o.y}}switch(_(e)){case"start":h[l]-=a*(n&&u?-1:1);break;case"end":h[l]+=a*(n&&u?-1:1)}return h}function P(t){return"number"!=typeof t?function(t){return w({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function C(t){return w({},t,{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}async function k(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:s,rects:r,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=e,f=P(p),m=l[d?"floating"===h?"reference":"floating":h],g=C(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(m)))||n?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(l.floating)),boundary:a,rootBoundary:u,strategy:c})),b="floating"===h?w({},r.floating,{x:o,y:i}):r.reference,y=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l.floating)),x=await(null==s.isElement?void 0:s.isElement(y))&&await(null==s.getScale?void 0:s.getScale(y))||{x:1,y:1},v=C(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:y,strategy:c}):b);return{top:(g.top-v.top+f.top)/x.y,bottom:(v.bottom-g.bottom+f.bottom)/x.y,left:(g.left-v.left+f.left)/x.x,right:(v.right-g.right+f.right)/x.x}}const R=Math.min,M=Math.max;function j(t,e,n){return M(t,R(e,n))}const D={left:"right",right:"left",bottom:"top",top:"bottom"};function F(t){return t.replace(/left|right|bottom|top/g,(t=>D[t]))}const H={start:"end",end:"start"};function B(t){return t.replace(/start|end/g,(t=>H[t]))}function N(t){return"x"===t?"y":"x"}const V=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:s,middlewareData:r}=e,{offset:l=0,mainAxis:c=!0,crossAxis:a=!0}=t,u={x:n,y:o},h=A(i),d=N(h);let p=u[h],f=u[d];const m="function"==typeof l?l(e):l,g="number"==typeof m?{mainAxis:m,crossAxis:0}:w({mainAxis:0,crossAxis:0},m);if(c){const t="y"===h?"height":"width",e=s.reference[h]-s.floating[t]+g.mainAxis,n=s.reference[h]+s.reference[t]-g.mainAxis;p<e?p=e:p>n&&(p=n)}if(a){var b,y,x,v;const t="y"===h?"width":"height",e=["top","left"].includes(S(i)),n=s.reference[d]-s.floating[t]+(e&&null!=(b=null==(y=r.offset)?void 0:y[d])?b:0)+(e?0:g.crossAxis),o=s.reference[d]+s.reference[t]+(e?0:null!=(x=null==(v=r.offset)?void 0:v[d])?x:0)-(e?g.crossAxis:0);f<n?f=n:f>o&&(f=o)}return{[h]:p,[d]:f}}}};function W(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function q(t){return W(t).getComputedStyle(t)}function z(t){return K(t)?(t.nodeName||"").toLowerCase():""}let U;function Y(){if(U)return U;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(U=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),U):navigator.userAgent}function X(t){return t instanceof W(t).HTMLElement}function Z(t){return t instanceof W(t).Element}function K(t){return t instanceof W(t).Node}function G(t){return"undefined"!=typeof ShadowRoot&&(t instanceof W(t).ShadowRoot||t instanceof ShadowRoot)}function J(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=q(t);return/auto|scroll|overlay|hidden/.test(e+o+n)&&!["inline","contents"].includes(i)}function Q(t){return["table","td","th"].includes(z(t))}function tt(t){const e=/firefox/i.test(Y()),n=q(t),o=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!o&&"none"!==o||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((t=>n.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const e=n.contain;return null!=e&&e.includes(t)}))}function et(){return!/^((?!chrome|android).)*safari/i.test(Y())}function nt(t){return["html","body","#document"].includes(z(t))}const ot={x:1,y:1};function it(t){const e=!Z(t)&&t.contextElement?t.contextElement:Z(t)?t:null;if(!e)return ot;const n=e.getBoundingClientRect(),o=q(e);let i=n.width/parseFloat(o.width),s=n.height/parseFloat(o.height);return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}function st(t,e,n,o){var i,s,r,l;void 0===e&&(e=!1),void 0===n&&(n=!1);const c=t.getBoundingClientRect();let a=ot;e&&(o?Z(o)&&(a=it(o)):a=it(t));const u=Z(t)?W(t):window,h=!et()&&n,d=(c.left+(h&&null!=(i=null==(s=u.visualViewport)?void 0:s.offsetLeft)?i:0))/a.x,p=(c.top+(h&&null!=(r=null==(l=u.visualViewport)?void 0:l.offsetTop)?r:0))/a.y,f=c.width/a.x,m=c.height/a.y;return{width:f,height:m,top:p,right:d+f,bottom:p+m,left:d,x:d,y:p}}function rt(t){return((K(t)?t.ownerDocument:t.document)||window.document).documentElement}function lt(t){return Z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ct(t){return st(rt(t)).left+lt(t).scrollLeft}function at(t,e,n){const o=X(e),i=rt(e),s=st(t,!0,"fixed"===n,e);let r={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==z(e)||J(i))&&(r=lt(e)),X(e)){const t=st(e,!0);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&(l.x=ct(i));return{x:s.left+r.scrollLeft-l.x,y:s.top+r.scrollTop-l.y,width:s.width,height:s.height}}function ut(t){if("html"===z(t))return t;const e=t.assignedSlot||t.parentNode||(G(t)?t.host:null)||rt(t);return G(e)?e.host:e}function ht(t){return X(t)&&"fixed"!==q(t).position?t.offsetParent:null}function dt(t){const e=W(t);let n=ht(t);for(;n&&Q(n)&&"static"===q(n).position;)n=ht(n);return n&&("html"===z(n)||"body"===z(n)&&"static"===q(n).position&&!tt(n))?e:n||function(t){let e=ut(t);for(;X(e)&&!nt(e);){if(tt(e))return e;e=ut(e)}return null}(t)||e}const pt=Math.min,ft=Math.max;function mt(t){const e=ut(t);return nt(e)?t.ownerDocument.body:X(e)&&J(e)?e:mt(e)}function gt(t,e){var n;void 0===e&&(e=[]);const o=mt(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),s=W(o);return i?e.concat(s,s.visualViewport||[],J(o)?o:[]):e.concat(o,gt(o))}function bt(t,e,n){return"viewport"===e?C(function(t,e){const n=W(t),o=rt(t),i=n.visualViewport;let s=o.clientWidth,r=o.clientHeight,l=0,c=0;if(i){s=i.width,r=i.height;const t=et();(t||!t&&"fixed"===e)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:r,x:l,y:c}}(t,n)):Z(e)?function(t,e){const n=st(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=X(t)?it(t):{x:1,y:1},r=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,a=o*s.y;return{top:a,left:c,right:c+r,bottom:a+l,x:c,y:a,width:r,height:l}}(e,n):C(function(t){var e;const n=rt(t),o=lt(t),i=null==(e=t.ownerDocument)?void 0:e.body,s=ft(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=ft(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let l=-o.scrollLeft+ct(t);const c=-o.scrollTop;return"rtl"===q(i||n).direction&&(l+=ft(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:r,x:l,y:c}}(rt(t)))}const yt={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s="clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let o=gt(t).filter((t=>Z(t)&&"body"!==z(t))),i=null;const s="fixed"===q(t).position;let r=s?ut(t):t;for(;Z(r)&&!nt(r);){const t=q(r),e=tt(r);(s?e||i:e||"static"!==t.position||!i||!["absolute","fixed"].includes(i.position))?i=t:o=o.filter((t=>t!==r)),r=ut(r)}return e.set(t,o),o}(e,this._c):[].concat(n),r=[...s,o],l=r[0],c=r.reduce(((t,n)=>{const o=bt(e,n,i);return t.top=ft(o.top,t.top),t.right=pt(o.right,t.right),t.bottom=pt(o.bottom,t.bottom),t.left=ft(o.left,t.left),t}),bt(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=X(n),s=rt(n);if(n===s)return e;let r={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==z(n)||J(s))&&(r=lt(n)),X(n))){const t=st(n);l=it(n),c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-r.scrollLeft*l.x+c.x,y:e.y*l.y-r.scrollTop*l.y+c.y}},isElement:Z,getDimensions:function(t){if(X(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=st(t);return{width:e.width,height:e.height}},getOffsetParent:dt,getDocumentElement:rt,getScale:it,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||dt,s=this.getDimensions;return{reference:at(e,await i(n),o),floating:w({x:0,y:0},await s(n))}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===q(t).direction};function xt(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const o=function(t,e){const n={strategy:"absolute",middleware:[]},o=function(t){return!(!t.options.arrow||!t.el)&&t.el.querySelector(".shepherd-arrow")}(e);return v(t)||(n.middleware.push(function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:o,middlewareData:i,rects:s,initialPlacement:r,platform:l,elements:c}=e,{mainAxis:a=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",flipAlignment:p=!0}=t,f=E(t,O),m=S(o),g=h||(m!==r&&p?function(t){const e=F(t);return[B(t),e,B(e)]}(r):[F(r)]),b=[r,...g],y=await k(e,f),x=[];let v=(null==(n=i.flip)?void 0:n.overflows)||[];if(a&&x.push(y[m]),u){const{main:t,cross:e}=function(t,e,n){void 0===n&&(n=!1);const o=_(t),i=A(t),s=I(i);let r="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=F(r)),{main:r,cross:F(r)}}(o,s,await(null==l.isRTL?void 0:l.isRTL(c.floating)));x.push(y[t],y[e])}if(v=[...v,{placement:o,overflows:x}],!x.every((t=>t<=0))){var $,w;const t=(null!=($=null==(w=i.flip)?void 0:w.index)?$:0)+1,e=b[t];if(e)return{data:{index:t,overflows:v},reset:{placement:e}};let n="bottom";switch(d){case"bestFit":{var T;const t=null==(T=v.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:T[0].placement;t&&(n=t);break}case"initialPlacement":n=r}if(o!==n)return{reset:{placement:n}}}return{}}}}(),function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:r=!1,limiter:l={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}}}=t,c=E(t,T),a={x:n,y:o},u=await k(e,c),h=A(S(i)),d=N(h);let p=a[h],f=a[d];if(s){const t="y"===h?"bottom":"right";p=j(p+u["y"===h?"top":"left"],p,p-u[t])}if(r){const t="y"===d?"bottom":"right";f=j(f+u["y"===d?"top":"left"],f,f-u[t])}const m=l.fn(w({},e,{[h]:p,[d]:f}));return w({},m,{data:{x:m.x-n,y:m.y-o}})}}}({limiter:V(),crossAxis:!0})),o&&n.middleware.push((t=>({name:"arrow",options:t,async fn(e){const{element:n,padding:o=0}=null!=t?t:{},{x:i,y:s,placement:r,rects:l,platform:c}=e;if(null==n)return{};const a=P(o),u={x:i,y:s},h=A(r),d=_(r),p=I(h),f=await c.getDimensions(n),m="y"===h?"top":"left",g="y"===h?"bottom":"right",b=l.reference[p]+l.reference[h]-u[h]-l.floating[p],y=u[h]-l.reference[h],x=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let v=x?"y"===h?x.clientHeight||0:x.clientWidth||0:0;0===v&&(v=l.floating[p]);const $=b/2-y/2,w=a[m],E=v-f[p]-a[g],O=v/2-f[p]/2+$,T=j(w,O,E),S=("start"===d?a[m]:a[g])>0&&O!==T&&l.reference[p]<=l.floating[p]?O<w?w-O:E-O:0;return{[h]:u[h]-S,data:{[h]:T,centerOffset:O-T}}}}))({element:o})),n.placement=t.on),d(e.options.floatingUIOptions||{},n)}(e,t),i=v(e);return i&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=function(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=!0,animationFrame:l=!1}=o,c=i&&!l,a=c||s?[...Z(t)?gt(t):t.contextElement?gt(t.contextElement):[],...gt(e)]:[];a.forEach((t=>{c&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)}));let u,h=null;if(r){let o=!0;h=new ResizeObserver((()=>{o||n(),o=!1})),Z(t)&&!l&&h.observe(t),Z(t)||!t.contextElement||l||h.observe(t.contextElement),h.observe(e)}let d=l?st(t):null;return l&&function e(){const o=st(t);!d||o.x===d.x&&o.y===d.y&&o.width===d.width&&o.height===d.height||n(),d=o,u=requestAnimationFrame(e)}(),n(),()=>{var t;a.forEach((t=>{c&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)})),null==(t=h)||t.disconnect(),h=null,l&&cancelAnimationFrame(u)}}(n,t.el,(()=>{t.el?function(t,e,n,o){((t,e,n)=>{const o=new Map,i=w({platform:yt},n),s=w({},i.platform,{_c:o});return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,l=s.filter(Boolean),c=await(null==r.isRTL?void 0:r.isRTL(e));let a=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:h}=L(a,o,c),d=o,p={},f=0;for(let n=0;n<l.length;n++){const{name:s,fn:m}=l[n],{x:g,y:b,data:y,reset:x}=await m({x:u,y:h,initialPlacement:o,placement:d,strategy:i,middlewareData:p,rects:a,platform:r,elements:{reference:t,floating:e}});u=null!=g?g:u,h=null!=b?b:h,p=w({},p,{[s]:w({},p[s],y)}),x&&f<=50&&(f++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(a=!0===x.rects?await r.getElementRects({reference:t,floating:e,strategy:i}):x.rects),({x:u,y:h}=L(a,d,c))),n=-1)}return{x:u,y:h,placement:d,strategy:i,middlewareData:p}})(t,e,w({},i,{platform:s}))})(t,e.el,n).then(function(t,e){return n=>{let{x:o,y:i,placement:s,middlewareData:r}=n;return t.el?(e?Object.assign(t.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(t.el.style,{position:"absolute",left:`${o}px`,top:`${i}px`}),t.el.dataset.popperPlacement=s,function(t,e){const n=t.querySelector(".shepherd-arrow");if(n){let t,o,i,s;if(e.arrow){const{x:n,y:i}=e.arrow;t=null!=n?`${n}px`:"",o=null!=i?`${i}px`:""}Object.assign(n.style,{left:t,top:o,right:i,bottom:s})}}(t.el,r),t):t}}(e,o)).then((t=>new Promise((e=>{setTimeout((()=>e(t)),300)})))).then((t=>{t&&t.el&&t.el.focus({preventScroll:!0})}))}(n,t,o,i):t.cleanup()})),t.target=e.element,o}function vt(){}function $t(t,e){for(const n in e)t[n]=e[n];return t}function wt(t){return t()}function Et(){return Object.create(null)}function Ot(t){t.forEach(wt)}function Tt(t){return"function"==typeof t}function St(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function _t(t,e){t.appendChild(e)}function At(t,e,n){t.insertBefore(e,n||null)}function It(t){t.parentNode&&t.parentNode.removeChild(t)}function Lt(t){return document.createElement(t)}function Pt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Ct(t){return document.createTextNode(t)}function kt(){return Ct(" ")}function Rt(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function Mt(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function jt(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)null==e[o]?t.removeAttribute(o):"style"===o?t.style.cssText=e[o]:"__value"===o?t.value=t[o]=e[o]:n[o]&&n[o].set?t[o]=e[o]:Mt(t,o,e[o])}function Dt(t,e,n){t.classList[n?"add":"remove"](e)}let Ft;function Ht(t){Ft=t}function Bt(){if(!Ft)throw new Error("Function called outside component initialization");return Ft}function Nt(t){Bt().$$.after_update.push(t)}const Vt=[],Wt=[],qt=[],zt=[],Ut=Promise.resolve();let Yt=!1;function Xt(t){qt.push(t)}const Zt=new Set;let Kt=0;function Gt(){const t=Ft;do{for(;Kt<Vt.length;){const t=Vt[Kt];Kt++,Ht(t),Jt(t.$$)}for(Ht(null),Vt.length=0,Kt=0;Wt.length;)Wt.pop()();for(let t=0;t<qt.length;t+=1){const e=qt[t];Zt.has(e)||(Zt.add(e),e())}qt.length=0}while(Vt.length);for(;zt.length;)zt.pop()();Yt=!1,Zt.clear(),Ht(t)}function Jt(t){if(null!==t.fragment){t.update(),Ot(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Xt)}}const Qt=new Set;let te;function ee(){te={r:0,c:[],p:te}}function ne(){te.r||Ot(te.c),te=te.p}function oe(t,e){t&&t.i&&(Qt.delete(t),t.i(e))}function ie(t,e,n,o){if(t&&t.o){if(Qt.has(t))return;Qt.add(t),te.c.push((()=>{Qt.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}function se(t){t&&t.c()}function re(t,e,n,o){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,n),o||Xt((()=>{const e=t.$$.on_mount.map(wt).filter(Tt);t.$$.on_destroy?t.$$.on_destroy.push(...e):Ot(e),t.$$.on_mount=[]})),s.forEach(Xt)}function le(t,e){const n=t.$$;null!==n.fragment&&(Ot(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ce(t,e,n,o,i,s,r,l){void 0===l&&(l=[-1]);const c=Ft;Ht(t);const a=t.$$={fragment:null,ctx:[],props:s,update:vt,not_equal:i,bound:Et(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Et(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};r&&r(a.root);let u=!1;if(a.ctx=n?n(t,e.props||{},(function(e,n){const o=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return a.ctx&&i(a.ctx[e],a.ctx[e]=o)&&(!a.skip_bound&&a.bound[e]&&a.bound[e](o),u&&function(t,e){-1===t.$$.dirty[0]&&(Vt.push(t),Yt||(Yt=!0,Ut.then(Gt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],a.update(),u=!0,Ot(a.before_update),a.fragment=!!o&&o(a.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);a.fragment&&a.fragment.l(t),t.forEach(It)}else a.fragment&&a.fragment.c();e.intro&&oe(t.$$.fragment),re(t,e.target,e.anchor,e.customElement),Gt()}Ht(c)}class ae{$destroy(){le(this,1),this.$destroy=vt}$on(t,e){if(!Tt(e))return vt;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function ue(t){let e,n,o,i,s;return{c(){e=Lt("button"),Mt(e,"aria-label",n=t[3]?t[3]:null),Mt(e,"class",o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],Mt(e,"tabindex","0")},m(n,o){At(n,e,o),e.innerHTML=t[5],i||(s=Rt(e,"click",(function(){Tt(t[0])&&t[0].apply(this,arguments)})),i=!0)},p(i,s){let[r]=s;t=i,32&r&&(e.innerHTML=t[5]),8&r&&n!==(n=t[3]?t[3]:null)&&Mt(e,"aria-label",n),18&r&&o!==(o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&Mt(e,"class",o),4&r&&(e.disabled=t[2])},i:vt,o:vt,d(t){t&&It(e),i=!1,s()}}}function he(t,e,n){let o,i,s,r,l,c,{config:a,step:u}=e;function h(t){return f(t)?t.call(u):t}return t.$$set=t=>{"config"in t&&n(6,a=t.config),"step"in t&&n(7,u=t.step)},t.$$.update=()=>{192&t.$$.dirty&&(n(0,o=a.action?a.action.bind(u.tour):null),n(1,i=a.classes),n(2,s=!!a.disabled&&h(a.disabled)),n(3,r=a.label?h(a.label):null),n(4,l=a.secondary),n(5,c=a.text?h(a.text):null))},[o,i,s,r,l,c,a,u]}class de extends ae{constructor(t){super(),ce(this,t,he,ue,St,{config:6,step:7})}}function pe(t,e,n){const o=t.slice();return o[2]=e[n],o}function fe(t){let e,n,o=t[1],i=[];for(let e=0;e<o.length;e+=1)i[e]=me(pe(t,o,e));const s=t=>ie(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=Ct("")},m(t,o){for(let e=0;e<i.length;e+=1)i[e].m(t,o);At(t,e,o),n=!0},p(t,n){if(3&n){let r;for(o=t[1],r=0;r<o.length;r+=1){const s=pe(t,o,r);i[r]?(i[r].p(s,n),oe(i[r],1)):(i[r]=me(s),i[r].c(),oe(i[r],1),i[r].m(e.parentNode,e))}for(ee(),r=o.length;r<i.length;r+=1)s(r);ne()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)oe(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)ie(i[t]);n=!1},d(t){!function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(i,t),t&&It(e)}}}function me(t){let e,n;return e=new de({props:{config:t[2],step:t[0]}}),{c(){se(e.$$.fragment)},m(t,o){re(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.config=t[2]),1&n&&(o.step=t[0]),e.$set(o)},i(t){n||(oe(e.$$.fragment,t),n=!0)},o(t){ie(e.$$.fragment,t),n=!1},d(t){le(e,t)}}}function ge(t){let e,n,o=t[1]&&fe(t);return{c(){e=Lt("footer"),o&&o.c(),Mt(e,"class","shepherd-footer")},m(t,i){At(t,e,i),o&&o.m(e,null),n=!0},p(t,n){let[i]=n;t[1]?o?(o.p(t,i),2&i&&oe(o,1)):(o=fe(t),o.c(),oe(o,1),o.m(e,null)):o&&(ee(),ie(o,1,1,(()=>{o=null})),ne())},i(t){n||(oe(o),n=!0)},o(t){ie(o),n=!1},d(t){t&&It(e),o&&o.d()}}}function be(t,e,n){let o,{step:i}=e;return t.$$set=t=>{"step"in t&&n(0,i=t.step)},t.$$.update=()=>{1&t.$$.dirty&&n(1,o=i.options.buttons)},[i,o]}class ye extends ae{constructor(t){super(),ce(this,t,be,ge,St,{step:0})}}function xe(t){let e,n,o,i,s;return{c(){e=Lt("button"),n=Lt("span"),n.textContent="×",Mt(n,"aria-hidden","true"),Mt(e,"aria-label",o=t[0].label?t[0].label:"Close Tour"),Mt(e,"class","shepherd-cancel-icon"),Mt(e,"type","button")},m(o,r){At(o,e,r),_t(e,n),i||(s=Rt(e,"click",t[1]),i=!0)},p(t,n){let[i]=n;1&i&&o!==(o=t[0].label?t[0].label:"Close Tour")&&Mt(e,"aria-label",o)},i:vt,o:vt,d(t){t&&It(e),i=!1,s()}}}function ve(t,e,n){let{cancelIcon:o,step:i}=e;return t.$$set=t=>{"cancelIcon"in t&&n(0,o=t.cancelIcon),"step"in t&&n(2,i=t.step)},[o,t=>{t.preventDefault(),i.cancel()},i]}class $e extends ae{constructor(t){super(),ce(this,t,ve,xe,St,{cancelIcon:0,step:2})}}function we(t){let e;return{c(){e=Lt("h3"),Mt(e,"id",t[1]),Mt(e,"class","shepherd-title")},m(n,o){At(n,e,o),t[3](e)},p(t,n){let[o]=n;2&o&&Mt(e,"id",t[1])},i:vt,o:vt,d(n){n&&It(e),t[3](null)}}}function Ee(t,e,n){let{labelId:o,element:i,title:s}=e;return Nt((()=>{f(s)&&n(2,s=s()),n(0,i.innerHTML=s,i)})),t.$$set=t=>{"labelId"in t&&n(1,o=t.labelId),"element"in t&&n(0,i=t.element),"title"in t&&n(2,s=t.title)},[i,o,s,function(t){Wt[t?"unshift":"push"]((()=>{i=t,n(0,i)}))}]}class Oe extends ae{constructor(t){super(),ce(this,t,Ee,we,St,{labelId:1,element:0,title:2})}}function Te(t){let e,n;return e=new Oe({props:{labelId:t[0],title:t[2]}}),{c(){se(e.$$.fragment)},m(t,o){re(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.labelId=t[0]),4&n&&(o.title=t[2]),e.$set(o)},i(t){n||(oe(e.$$.fragment,t),n=!0)},o(t){ie(e.$$.fragment,t),n=!1},d(t){le(e,t)}}}function Se(t){let e,n;return e=new $e({props:{cancelIcon:t[3],step:t[1]}}),{c(){se(e.$$.fragment)},m(t,o){re(e,t,o),n=!0},p(t,n){const o={};8&n&&(o.cancelIcon=t[3]),2&n&&(o.step=t[1]),e.$set(o)},i(t){n||(oe(e.$$.fragment,t),n=!0)},o(t){ie(e.$$.fragment,t),n=!1},d(t){le(e,t)}}}function _e(t){let e,n,o,i=t[2]&&Te(t),s=t[3]&&t[3].enabled&&Se(t);return{c(){e=Lt("header"),i&&i.c(),n=kt(),s&&s.c(),Mt(e,"class","shepherd-header")},m(t,r){At(t,e,r),i&&i.m(e,null),_t(e,n),s&&s.m(e,null),o=!0},p(t,o){let[r]=o;t[2]?i?(i.p(t,r),4&r&&oe(i,1)):(i=Te(t),i.c(),oe(i,1),i.m(e,n)):i&&(ee(),ie(i,1,1,(()=>{i=null})),ne()),t[3]&&t[3].enabled?s?(s.p(t,r),8&r&&oe(s,1)):(s=Se(t),s.c(),oe(s,1),s.m(e,null)):s&&(ee(),ie(s,1,1,(()=>{s=null})),ne())},i(t){o||(oe(i),oe(s),o=!0)},o(t){ie(i),ie(s),o=!1},d(t){t&&It(e),i&&i.d(),s&&s.d()}}}function Ae(t,e,n){let o,i,{labelId:s,step:r}=e;return t.$$set=t=>{"labelId"in t&&n(0,s=t.labelId),"step"in t&&n(1,r=t.step)},t.$$.update=()=>{2&t.$$.dirty&&(n(2,o=r.options.title),n(3,i=r.options.cancelIcon))},[s,r,o,i]}class Ie extends ae{constructor(t){super(),ce(this,t,Ae,_e,St,{labelId:0,step:1})}}function Le(t){let e;return{c(){e=Lt("div"),Mt(e,"class","shepherd-text"),Mt(e,"id",t[1])},m(n,o){At(n,e,o),t[3](e)},p(t,n){let[o]=n;2&o&&Mt(e,"id",t[1])},i:vt,o:vt,d(n){n&&It(e),t[3](null)}}}function Pe(t,e,n){let{descriptionId:o,element:i,step:s}=e;return Nt((()=>{let{text:t}=s.options;f(t)&&(t=t.call(s)),p(t)?i.appendChild(t):n(0,i.innerHTML=t,i)})),t.$$set=t=>{"descriptionId"in t&&n(1,o=t.descriptionId),"element"in t&&n(0,i=t.element),"step"in t&&n(2,s=t.step)},[i,o,s,function(t){Wt[t?"unshift":"push"]((()=>{i=t,n(0,i)}))}]}class Ce extends ae{constructor(t){super(),ce(this,t,Pe,Le,St,{descriptionId:1,element:0,step:2})}}function ke(t){let e,n;return e=new Ie({props:{labelId:t[1],step:t[2]}}),{c(){se(e.$$.fragment)},m(t,o){re(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.labelId=t[1]),4&n&&(o.step=t[2]),e.$set(o)},i(t){n||(oe(e.$$.fragment,t),n=!0)},o(t){ie(e.$$.fragment,t),n=!1},d(t){le(e,t)}}}function Re(t){let e,n;return e=new Ce({props:{descriptionId:t[0],step:t[2]}}),{c(){se(e.$$.fragment)},m(t,o){re(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.descriptionId=t[0]),4&n&&(o.step=t[2]),e.$set(o)},i(t){n||(oe(e.$$.fragment,t),n=!0)},o(t){ie(e.$$.fragment,t),n=!1},d(t){le(e,t)}}}function Me(t){let e,n;return e=new ye({props:{step:t[2]}}),{c(){se(e.$$.fragment)},m(t,o){re(e,t,o),n=!0},p(t,n){const o={};4&n&&(o.step=t[2]),e.$set(o)},i(t){n||(oe(e.$$.fragment,t),n=!0)},o(t){ie(e.$$.fragment,t),n=!1},d(t){le(e,t)}}}function je(t){let e,n,o,i,s=!g(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,r=!g(t[2].options.text),l=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,c=s&&ke(t),a=r&&Re(t),u=l&&Me(t);return{c(){e=Lt("div"),c&&c.c(),n=kt(),a&&a.c(),o=kt(),u&&u.c(),Mt(e,"class","shepherd-content")},m(t,s){At(t,e,s),c&&c.m(e,null),_t(e,n),a&&a.m(e,null),_t(e,o),u&&u.m(e,null),i=!0},p(t,i){let[h]=i;4&h&&(s=!g(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled),s?c?(c.p(t,h),4&h&&oe(c,1)):(c=ke(t),c.c(),oe(c,1),c.m(e,n)):c&&(ee(),ie(c,1,1,(()=>{c=null})),ne()),4&h&&(r=!g(t[2].options.text)),r?a?(a.p(t,h),4&h&&oe(a,1)):(a=Re(t),a.c(),oe(a,1),a.m(e,o)):a&&(ee(),ie(a,1,1,(()=>{a=null})),ne()),4&h&&(l=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length),l?u?(u.p(t,h),4&h&&oe(u,1)):(u=Me(t),u.c(),oe(u,1),u.m(e,null)):u&&(ee(),ie(u,1,1,(()=>{u=null})),ne())},i(t){i||(oe(c),oe(a),oe(u),i=!0)},o(t){ie(c),ie(a),ie(u),i=!1},d(t){t&&It(e),c&&c.d(),a&&a.d(),u&&u.d()}}}function De(t,e,n){let{descriptionId:o,labelId:i,step:s}=e;return t.$$set=t=>{"descriptionId"in t&&n(0,o=t.descriptionId),"labelId"in t&&n(1,i=t.labelId),"step"in t&&n(2,s=t.step)},[o,i,s]}class Fe extends ae{constructor(t){super(),ce(this,t,De,je,St,{descriptionId:0,labelId:1,step:2})}}function He(t){let e;return{c(){e=Lt("div"),Mt(e,"class","shepherd-arrow"),Mt(e,"data-popper-arrow","")},m(t,n){At(t,e,n)},d(t){t&&It(e)}}}function Be(t){let e,n,o,i,s,r,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&He();o=new Fe({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let u=[{"aria-describedby":i=g(t[4].options.text)?null:t[2]},{"aria-labelledby":s=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],h={};for(let t=0;t<u.length;t+=1)h=$t(h,u[t]);return{c(){e=Lt("div"),a&&a.c(),n=kt(),se(o.$$.fragment),jt(e,h),Dt(e,"shepherd-has-cancel-icon",t[5]),Dt(e,"shepherd-has-title",t[6]),Dt(e,"shepherd-element",!0)},m(i,s){At(i,e,s),a&&a.m(e,null),_t(e,n),re(o,e,null),t[13](e),r=!0,l||(c=Rt(e,"keydown",t[7]),l=!0)},p(t,l){let[c]=l;t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on?a||(a=He(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const d={};4&c&&(d.descriptionId=t[2]),8&c&&(d.labelId=t[3]),16&c&&(d.step=t[4]),o.$set(d),jt(e,h=function(t,e){const n={},o={},i={$$scope:1};let s=t.length;for(;s--;){const r=t[s],l=e[s];if(l){for(const t in r)t in l||(o[t]=1);for(const t in l)i[t]||(n[t]=l[t],i[t]=1);t[s]=l}else for(const t in r)i[t]=1}for(const t in o)t in n||(n[t]=void 0);return n}(u,[(!r||20&c&&i!==(i=g(t[4].options.text)?null:t[2]))&&{"aria-describedby":i},(!r||24&c&&s!==(s=t[4].options.title?t[3]:null))&&{"aria-labelledby":s},2&c&&t[1],{role:"dialog"},{tabindex:"0"}])),Dt(e,"shepherd-has-cancel-icon",t[5]),Dt(e,"shepherd-has-title",t[6]),Dt(e,"shepherd-element",!0)},i(t){r||(oe(o.$$.fragment,t),r=!0)},o(t){ie(o.$$.fragment,t),r=!1},d(n){n&&It(e),a&&a.d(),le(o),t[13](null),l=!1,c()}}}function Ne(t){return t.split(" ").filter((t=>!!t.length))}function Ve(t,e,n){let o,i,s,{classPrefix:r,element:l,descriptionId:c,firstFocusableElement:a,focusableElements:u,labelId:h,lastFocusableElement:d,step:p,dataStepId:f}=e;var g;return g=()=>{n(1,f={[`data-${r}shepherd-step-id`]:p.id}),n(9,u=l.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,a=u[0]),n(10,d=u[u.length-1])},Bt().$$.on_mount.push(g),Nt((()=>{s!==p.options.classes&&(function(t){if(m(t)){const e=Ne(t);e.length&&l.classList.remove(...e)}}(s),s=p.options.classes,function(t){if(m(t)){const e=Ne(t);e.length&&l.classList.add(...e)}}(s))})),t.$$set=t=>{"classPrefix"in t&&n(11,r=t.classPrefix),"element"in t&&n(0,l=t.element),"descriptionId"in t&&n(2,c=t.descriptionId),"firstFocusableElement"in t&&n(8,a=t.firstFocusableElement),"focusableElements"in t&&n(9,u=t.focusableElements),"labelId"in t&&n(3,h=t.labelId),"lastFocusableElement"in t&&n(10,d=t.lastFocusableElement),"step"in t&&n(4,p=t.step),"dataStepId"in t&&n(1,f=t.dataStepId)},t.$$.update=()=>{16&t.$$.dirty&&(n(5,o=p.options&&p.options.cancelIcon&&p.options.cancelIcon.enabled),n(6,i=p.options&&p.options.title))},[l,f,c,h,p,o,i,t=>{const{tour:e}=p;switch(t.keyCode){case 9:if(0===u.length){t.preventDefault();break}t.shiftKey?(document.activeElement===a||document.activeElement.classList.contains("shepherd-element"))&&(t.preventDefault(),d.focus()):document.activeElement===d&&(t.preventDefault(),a.focus());break;case 27:e.options.exitOnEsc&&p.cancel();break;case 37:e.options.keyboardNavigation&&e.back();break;case 39:e.options.keyboardNavigation&&e.next()}},a,u,d,r,()=>l,function(t){Wt[t?"unshift":"push"]((()=>{l=t,n(0,l)}))}]}class We extends ae{constructor(t){super(),ce(this,t,Ve,Be,St,{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]}}class qe extends b{constructor(t,e){return void 0===e&&(e={}),super(t,e),this.tour=t,this.classPrefix=this.tour.options?x(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,y(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){this.cleanup&&this.cleanup(),this.cleanup=null,p(this.el)&&(this.el.remove(),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")}_resolveAttachToOptions(){return this._resolvedAttachTo=function(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(f(n.element)&&(n.element=n.element.call(t)),m(n.element)){try{n.element=document.querySelector(n.element)}catch(t){}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return Boolean(this.el&&!this.el.hidden)}show(){return f(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then((()=>this._show())):Promise.resolve(this._show())}updateStepOptions(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const t=`${this.id}-description`,e=`${this.id}-label`;return this.shepherdElementComponent=new We({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:e,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(t){const{element:e}=this._getResolvedAttachToOptions();f(this.options.scrollToHandler)?this.options.scrollToHandler(e):e instanceof Element&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(t)}_getClassOptions(t){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=t.classes?t.classes:"",o=e&&e.classes?e.classes:"",i=[...n.split(" "),...o.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(t){void 0===t&&(t={});let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=d({},e||{}),this.options=Object.assign({arrow:!0},e,t,function(t,e){return{floatingUIOptions:d(t.floatingUIOptions||{},e.floatingUIOptions||{})}}(e,t));const{when:n}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${$()}`,n&&Object.keys(n).forEach((t=>{this.on(t,n[t],this)}))}_setupElements(){g(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&function(t){const{event:e,selector:n}=t.options.advanceOn||{};if(!e)return console.error("advanceOn was defined, but no event name was passed.");{const o=function(t,e){return n=>{if(e.isOpen()){const o=e.el&&n.currentTarget===e.el;(!g(t)&&n.currentTarget.matches(t)||o)&&e.tour.next()}}}(n,t);let i;try{i=document.querySelector(n)}catch(t){}if(!g(n)&&!i)return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);i?(i.addEventListener(e,o),t.on("destroy",(()=>i.removeEventListener(e,o)))):(document.body.addEventListener(e,o,!0),t.on("destroy",(()=>document.body.removeEventListener(e,o,!0))))}}(this),xt(this)}_show(){this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout((()=>{this._scrollTo(this.options.scrollTo)})),this.el.hidden=!1;const t=this.shepherdElementComponent.getElement(),e=this.target||document.body;e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`),t.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(t){const e=t.target;e&&(t.options.highlightClass&&e.classList.add(t.options.highlightClass),e.classList.remove("shepherd-target-click-disabled"),!1===t.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const t=this.target||document.body;this.options.highlightClass&&t.classList.remove(this.options.highlightClass),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function ze(t){let e,n,o,i,s;return{c(){e=Pt("svg"),n=Pt("path"),Mt(n,"d",t[2]),Mt(e,"class",o=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m(o,r){At(o,e,r),_t(e,n),t[11](e),i||(s=Rt(e,"touchmove",t[3]),i=!0)},p(t,i){let[s]=i;4&s&&Mt(n,"d",t[2]),2&s&&o!==(o=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&Mt(e,"class",o)},i:vt,o:vt,d(n){n&&It(e),t[11](null),i=!1,s()}}}function Ue(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:Ue(t.parentElement)}function Ye(t,e,n){let{element:o,openingProperties:i}=e;$();let s,r,l=!1;function c(){n(4,i={width:0,height:0,x:0,y:0,r:0})}function a(){n(1,l=!1),p()}function u(t,e,o,s){if(void 0===t&&(t=0),void 0===e&&(e=0),s){const{y:r,height:l}=function(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,i=n.bottom||o+n.height;if(e){const t=e.getBoundingClientRect(),n=t.y||t.top,s=t.bottom||n+t.height;o=Math.max(o,n),i=Math.min(i,s)}return{y:o,height:Math.max(i-o,0)}}(s,o),{x:c,width:a,left:u}=s.getBoundingClientRect();n(4,i={width:a+2*t,height:l+2*t,x:(c||u)-t,y:r-t,r:e})}else c()}function h(){n(1,l=!0)}c();const d=t=>{t.preventDefault()};function p(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",d,{passive:!1})}return t.$$set=t=>{"element"in t&&n(0,o=t.element),"openingProperties"in t&&n(4,i=t.openingProperties)},t.$$.update=()=>{16&t.$$.dirty&&n(2,r=function(t){let{width:e,height:n,x:o=0,y:i=0,r:s=0}=t;const{innerWidth:r,innerHeight:l}=window,{topLeft:c=0,topRight:a=0,bottomRight:u=0,bottomLeft:h=0}="number"==typeof s?{topLeft:s,topRight:s,bottomRight:s,bottomLeft:s}:s;return`M${r},${l}H0V0H${r}V${l}ZM${o+c},${i}a${c},${c},0,0,0-${c},${c}V${n+i-h}a${h},${h},0,0,0,${h},${h}H${e+o-u}a${u},${u},0,0,0,${u}-${u}V${i+a}a${a},${a},0,0,0-${a}-${a}Z`}(i))},[o,l,r,t=>{t.stopPropagation()},i,()=>o,c,a,u,function(t){p(),t.tour.options.useModalOverlay?(function(t){const{modalOverlayOpeningPadding:e,modalOverlayOpeningRadius:n}=t.options,o=Ue(t.target),i=()=>{s=void 0,u(e,n,o,t.target),s=requestAnimationFrame(i)};i(),window.addEventListener("touchmove",d,{passive:!1})}(t),h()):a()},h,function(t){Wt[t?"unshift":"push"]((()=>{o=t,n(0,o)}))}]}class Xe extends ae{constructor(t){super(),ce(this,t,Ye,ze,St,{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]}}const Ze=new b;const Ke="undefined"==typeof window;class Ge{constructor(){}}Ke?Object.assign(Ze,{Tour:Ge,Step:Ge}):Object.assign(Ze,{Tour:class extends b{constructor(t){return void 0===t&&(t={}),super(t),y(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},t),this.classPrefix=x(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map((t=>{(t=>{this.on(t,(e=>{(e=e||{}).tour=this,Ze.trigger(t,e)}))})(t)})),this._setTourID(),this}addStep(t,e){let n=t;return n instanceof qe?n.tour=this:n=new qe(this,n),g(e)?this.steps.push(n):this.steps.splice(e,0,n),n}addSteps(t){return Array.isArray(t)&&t.forEach((t=>{this.addStep(t)})),this}back(){const t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(t)&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find((e=>e.id===t))}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return Ze.activeTour===this}next(){const t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}removeStep(t){const e=this.getCurrentStep();this.steps.some(((e,n)=>{if(e.id===t)return e.isOpen()&&e.hide(),e.destroy(),this.steps.splice(n,1),!0})),e&&e.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t,e){void 0===t&&(t=0),void 0===e&&(e=!0);const n=m(t)?this.getById(t):this.steps[t];n&&(this._updateStateBeforeShow(),f(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,e):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show()))}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(t){const e=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach((t=>t.destroy())),function(t){if(t){const{steps:e}=t;e.forEach((t=>{t.options&&!1===t.options.canClickTarget&&t.options.attachTo&&t.target instanceof HTMLElement&&t.target.classList.remove("shepherd-target-click-disabled")}))}}(this),this.trigger(t,{index:e}),Ze.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===t||"complete"===t)&&this.modal){const t=document.querySelector(".shepherd-modal-overlay-container");t&&t.remove()}p(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Ze.activeTour=this}_setupModal(){this.modal=new Xe({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(t,e){const n=this.steps.indexOf(t);if(n===this.steps.length-1)this.complete();else{const t=e?n+1:n-1;this.show(t,e)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){const t=this.options.tourName||"tour";this.id=`${t}--${$()}`}},Step:qe});var Je=i().createContext(null),Qe=Je.Consumer,tn=function(t,e){if(!t.length)return[];var n=t.map((function(t){var n=t.buttons;return n&&(t.buttons=n.map((function(t){var n=t.action,o=t.classes,i=t.disabled,s=t.label,r=t.secondary,l=t.text,c=t.type;return{action:c?e[c]:n,classes:o,disabled:i,label:s,secondary:r,text:l,type:c}}))),t}));return n.forEach((function(t){return e.addStep(t)}))},en=function(t){var e=t.tourOptions,n=t.steps;return(0,o.useMemo)((function(){var t=new Ze.Tour(e);return tn(n,t),t}),[e,n])},nn=function(t){var e=t.children,n=t.tourOptions,s=t.steps,r=(0,o.useMemo)((function(){var t=new Ze.Tour(n);return tn(s,t),t}),[n,s]);return i().createElement(Je.Provider,{value:r},e)}}}]);