react-shepherd 6.0.1 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1351 -1343
- package/dist/index.umd.cjs +8 -8
- package/package.json +2 -2
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(gt,
|
|
1
|
+
(function(gt,Pt){typeof exports=="object"&&typeof module<"u"?Pt(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],Pt):(gt=typeof globalThis<"u"?globalThis:gt||self,Pt(gt.ShepherdProReact={},gt.require$$0))})(this,function(gt,Pt){"use strict";var Pn={exports:{}},De={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Wo;function Xi(){if(Wo)return De;Wo=1;var t=Pt,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(l,c,a){var f,h={},d=null,p=null;a!==void 0&&(d=""+a),c.key!==void 0&&(d=""+c.key),c.ref!==void 0&&(p=c.ref);for(f in c)o.call(c,f)&&!i.hasOwnProperty(f)&&(h[f]=c[f]);if(l&&l.defaultProps)for(f in c=l.defaultProps,c)h[f]===void 0&&(h[f]=c[f]);return{$$typeof:e,type:l,key:d,ref:p,props:h,_owner:r.current}}return De.Fragment=n,De.jsx=s,De.jsxs=s,De}var Fe={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
17
|
+
*/var No;function Gi(){return No||(No=1,process.env.NODE_ENV!=="production"&&function(){var t=Pt,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator,y="@@iterator";function _(u){if(u===null||typeof u!="object")return null;var v=m&&u[m]||u[y];return typeof v=="function"?v:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(u){{for(var v=arguments.length,E=new Array(v>1?v-1:0),T=1;T<v;T++)E[T-1]=arguments[T];S("error",u,E)}}function S(u,v,E){{var T=w.ReactDebugCurrentFrame,k=T.getStackAddendum();k!==""&&(v+="%s",E=E.concat([k]));var j=E.map(function(R){return String(R)});j.unshift("Warning: "+v),Function.prototype.apply.call(console[u],console,j)}}var b=!1,g=!1,O=!1,P=!1,V=!1,I;I=Symbol.for("react.module.reference");function B(u){return!!(typeof u=="string"||typeof u=="function"||u===o||u===i||V||u===r||u===a||u===f||P||u===p||b||g||O||typeof u=="object"&&u!==null&&(u.$$typeof===d||u.$$typeof===h||u.$$typeof===s||u.$$typeof===l||u.$$typeof===c||u.$$typeof===I||u.getModuleId!==void 0))}function N(u,v,E){var T=u.displayName;if(T)return T;var k=v.displayName||v.name||"";return k!==""?E+"("+k+")":E}function U(u){return u.displayName||"Context"}function A(u){if(u==null)return null;if(typeof u.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case o:return"Fragment";case n:return"Portal";case i:return"Profiler";case r:return"StrictMode";case a:return"Suspense";case f:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case l:var v=u;return U(v)+".Consumer";case s:var E=u;return U(E._context)+".Provider";case c:return N(u,u.render,"ForwardRef");case h:var T=u.displayName||null;return T!==null?T:A(u.type)||"Memo";case d:{var k=u,j=k._payload,R=k._init;try{return A(R(j))}catch{return null}}}return null}var $=Object.assign,q=0,H,W,et,_t,$n,ki,Mi;function Li(){}Li.__reactDisabledLog=!0;function Nu(){{if(q===0){H=console.log,W=console.info,et=console.warn,_t=console.error,$n=console.group,ki=console.groupCollapsed,Mi=console.groupEnd;var u={configurable:!0,enumerable:!0,value:Li,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}q++}}function Hu(){{if(q--,q===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},u,{value:H}),info:$({},u,{value:W}),warn:$({},u,{value:et}),error:$({},u,{value:_t}),group:$({},u,{value:$n}),groupCollapsed:$({},u,{value:ki}),groupEnd:$({},u,{value:Mi})})}q<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ao=w.ReactCurrentDispatcher,Po;function Cn(u,v,E){{if(Po===void 0)try{throw Error()}catch(k){var T=k.stack.trim().match(/\n( *(at )?)/);Po=T&&T[1]||""}return`
|
|
18
|
+
`+Po+u}}var ko=!1,Rn;{var Vu=typeof WeakMap=="function"?WeakMap:Map;Rn=new Vu}function Di(u,v){if(!u||ko)return"";{var E=Rn.get(u);if(E!==void 0)return E}var T;ko=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=Ao.current,Ao.current=null,Nu();try{if(v){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(ot){T=ot}Reflect.construct(u,[],R)}else{try{R.call()}catch(ot){T=ot}u.call(R.prototype)}}else{try{throw Error()}catch(ot){T=ot}u()}}catch(ot){if(ot&&T&&typeof ot.stack=="string"){for(var C=ot.stack.split(`
|
|
19
19
|
`),nt=T.stack.split(`
|
|
20
20
|
`),J=C.length-1,X=nt.length-1;J>=1&&X>=0&&C[J]!==nt[X];)X--;for(;J>=1&&X>=0;J--,X--)if(C[J]!==nt[X]){if(J!==1||X!==1)do if(J--,X--,X<0||C[J]!==nt[X]){var ut=`
|
|
21
|
-
`+C[J].replace(" at new "," at ");return u.displayName&&ut.includes("<anonymous>")&&(ut=ut.replace("<anonymous>",u.displayName)),typeof u=="function"&&
|
|
21
|
+
`+C[J].replace(" at new "," at ");return u.displayName&&ut.includes("<anonymous>")&&(ut=ut.replace("<anonymous>",u.displayName)),typeof u=="function"&&Rn.set(u,ut),ut}while(J>=1&&X>=0);break}}}finally{ko=!1,Ao.current=j,Hu(),Error.prepareStackTrace=k}var Le=u?u.displayName||u.name:"",ce=Le?Cn(Le):"";return typeof u=="function"&&Rn.set(u,ce),ce}function Uu(u,v,E){return Di(u,!1)}function qu(u){var v=u.prototype;return!!(v&&v.isReactComponent)}function In(u,v,E){if(u==null)return"";if(typeof u=="function")return Di(u,qu(u));if(typeof u=="string")return Cn(u);switch(u){case a:return Cn("Suspense");case f:return Cn("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case c:return Uu(u.render);case h:return In(u.type,v,E);case d:{var T=u,k=T._payload,j=T._init;try{return In(j(k),v,E)}catch{}}}return""}var Qe=Object.prototype.hasOwnProperty,Fi={},ji=w.ReactDebugCurrentFrame;function An(u){if(u){var v=u._owner,E=In(u.type,u._source,v?v.type:null);ji.setExtraStackFrame(E)}else ji.setExtraStackFrame(null)}function Yu(u,v,E,T,k){{var j=Function.call.bind(Qe);for(var R in u)if(j(u,R)){var C=void 0;try{if(typeof u[R]!="function"){var nt=Error((T||"React class")+": "+E+" type `"+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[R]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nt.name="Invariant Violation",nt}C=u[R](v,R,T,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(J){C=J}C&&!(C instanceof Error)&&(An(k),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",T||"React class",E,R,typeof C),An(null)),C instanceof Error&&!(C.message in Fi)&&(Fi[C.message]=!0,An(k),x("Failed %s type: %s",E,C.message),An(null))}}}var Ku=Array.isArray;function Mo(u){return Ku(u)}function zu(u){{var v=typeof Symbol=="function"&&Symbol.toStringTag,E=v&&u[Symbol.toStringTag]||u.constructor.name||"Object";return E}}function Ju(u){try{return Bi(u),!1}catch{return!0}}function Bi(u){return""+u}function Wi(u){if(Ju(u))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zu(u)),Bi(u)}var tn=w.ReactCurrentOwner,Xu={key:!0,ref:!0,__self:!0,__source:!0},Ni,Hi,Lo;Lo={};function Gu(u){if(Qe.call(u,"ref")){var v=Object.getOwnPropertyDescriptor(u,"ref").get;if(v&&v.isReactWarning)return!1}return u.ref!==void 0}function Zu(u){if(Qe.call(u,"key")){var v=Object.getOwnPropertyDescriptor(u,"key").get;if(v&&v.isReactWarning)return!1}return u.key!==void 0}function Qu(u,v){if(typeof u.ref=="string"&&tn.current&&v&&tn.current.stateNode!==v){var E=A(tn.current.type);Lo[E]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(tn.current.type),u.ref),Lo[E]=!0)}}function tf(u,v){{var E=function(){Ni||(Ni=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};E.isReactWarning=!0,Object.defineProperty(u,"key",{get:E,configurable:!0})}}function ef(u,v){{var E=function(){Hi||(Hi=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};E.isReactWarning=!0,Object.defineProperty(u,"ref",{get:E,configurable:!0})}}var nf=function(u,v,E,T,k,j,R){var C={$$typeof:e,type:u,key:v,ref:E,props:R,_owner:j};return C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(C,"_self",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.defineProperty(C,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C};function of(u,v,E,T,k){{var j,R={},C=null,nt=null;E!==void 0&&(Wi(E),C=""+E),Zu(v)&&(Wi(v.key),C=""+v.key),Gu(v)&&(nt=v.ref,Qu(v,k));for(j in v)Qe.call(v,j)&&!Xu.hasOwnProperty(j)&&(R[j]=v[j]);if(u&&u.defaultProps){var J=u.defaultProps;for(j in J)R[j]===void 0&&(R[j]=J[j])}if(C||nt){var X=typeof u=="function"?u.displayName||u.name||"Unknown":u;C&&tf(R,X),nt&&ef(R,X)}return nf(u,C,nt,k,T,tn.current,R)}}var Do=w.ReactCurrentOwner,Vi=w.ReactDebugCurrentFrame;function Me(u){if(u){var v=u._owner,E=In(u.type,u._source,v?v.type:null);Vi.setExtraStackFrame(E)}else Vi.setExtraStackFrame(null)}var Fo;Fo=!1;function jo(u){return typeof u=="object"&&u!==null&&u.$$typeof===e}function Ui(){{if(Do.current){var u=A(Do.current.type);if(u)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+u+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+u+"`."}return""}}function rf(u){return""}var qi={};function sf(u){{var v=Ui();if(!v){var E=typeof u=="string"?u:u.displayName||u.name;E&&(v=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+E+">.")}return v}}function
|
|
25
|
+
Check the top-level render call using <`+E+">.")}return v}}function Yi(u,v){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var E=sf(v);if(qi[E])return;qi[E]=!0;var T="";u&&u._owner&&u._owner!==Do.current&&(T=" It was passed a child from "+A(u._owner.type)+"."),Me(u),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,T),Me(null)}}function Ki(u,v){{if(typeof u!="object")return;if(Mo(u))for(var E=0;E<u.length;E++){var T=u[E];jo(T)&&Yi(T,v)}else if(jo(u))u._store&&(u._store.validated=!0);else if(u){var k=_(u);if(typeof k=="function"&&k!==u.entries)for(var j=k.call(u),R;!(R=j.next()).done;)jo(R.value)&&Yi(R.value,v)}}}function lf(u){{var v=u.type;if(v==null||typeof v=="string")return;var E;if(typeof v=="function")E=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===c||v.$$typeof===h))E=v.propTypes;else return;if(E){var T=A(v);Yu(E,u.props,"prop",T,u)}else if(v.PropTypes!==void 0&&!Fo){Fo=!0;var k=A(v);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function cf(u){{for(var v=Object.keys(u.props),E=0;E<v.length;E++){var T=v[E];if(T!=="children"&&T!=="key"){Me(u),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",T),Me(null);break}}u.ref!==null&&(Me(u),x("Invalid attribute `ref` supplied to `React.Fragment`."),Me(null))}}var zi={};function Ji(u,v,E,T,k,j){{var R=B(u);if(!R){var C="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var nt=rf();nt?C+=nt:C+=Ui();var J;u===null?J="null":Mo(u)?J="array":u!==void 0&&u.$$typeof===e?(J="<"+(A(u.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):J=typeof u,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",J,C)}var X=of(u,v,E,k,j);if(X==null)return X;if(R){var ut=v.children;if(ut!==void 0)if(T)if(Mo(ut)){for(var Le=0;Le<ut.length;Le++)Ki(ut[Le],u);Object.freeze&&Object.freeze(ut)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ki(ut,u)}if(Qe.call(v,"key")){var ce=A(u),ot=Object.keys(v).filter(function(pf){return pf!=="key"}),Bo=ot.length>0?"{key: someKey, "+ot.join(": ..., ")+": ...}":"{key: someKey}";if(!zi[ce+Bo]){var hf=ot.length>0?"{"+ot.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Fo,ae,df,ae),Yi[ae+Fo]=!0}}return u===o?lf(X):sf(X),X}}function cf(u,v,E){return zi(u,v,E,!0)}function af(u,v,E){return zi(u,v,E,!1)}var uf=af,ff=cf;Fe.Fragment=o,Fe.jsx=uf,Fe.jsxs=ff}()),Fe}process.env.NODE_ENV==="production"?In.exports=Ki():In.exports=Ji();var Xi=In.exports;/*! shepherd.js 13.0.0 */function Gi(t){return t instanceof Element}function je(t){return t instanceof HTMLElement}function Pt(t){return typeof t=="function"}function Be(t){return typeof t=="string"}function G(t){return t===void 0}class Rn{on(e,n,o,r=!1){var i;return G(this.bindings)&&(this.bindings={}),G(this.bindings[e])&&(this.bindings[e]=[]),(i=this.bindings[e])==null||i.push({handler:n,ctx:o,once:r}),this}once(e,n,o){return this.on(e,n,o,!0)}off(e,n){if(G(this.bindings)||G(this.bindings[e]))return this;if(G(n))delete this.bindings[e];else{var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{if(r.handler===n){var s;(s=this.bindings[e])==null||s.splice(i,1)}})}return this}trigger(e,...n){if(!G(this.bindings)&&this.bindings[e]){var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{const{ctx:s,handler:l,once:c}=r,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[e])==null||f.splice(i,1)}})}return this}}function Q(){return Q=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Q.apply(null,arguments)}function Wo(t,e){if(t==null)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)>=0)continue;n[o]=t[o]}return n}const kt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};kt.defaultMerge;function Zi(t,e){return e}function No(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:es(t)?1:t instanceof Set?3:t instanceof Map?4:5}function Qi(t){const e=new Set;for(const n of t)for(const o of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(o);return e}function ts(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function Ho(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}const Vo=new Set(["[object Object]","[object Module]"]);function es(t){if(!Vo.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!Vo.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function ns(t,e,n){const o={};for(const r of Qi(t)){const i=[];for(const c of t)ts(c,r)&&i.push(c[r]);if(i.length===0)continue;const s=e.metaDataUpdater(n,{key:r,parents:t}),l=qo(i,e,s);l!==kt.skip&&(r==="__proto__"?Object.defineProperty(o,r,{value:l,configurable:!0,enumerable:!0,writable:!0}):o[r]=l)}return o}function os(t){return t.flat()}function rs(t){return new Set(Ho(t))}function is(t){return new Map(Ho(t))}function Uo(t){return t.at(-1)}var An=Object.freeze({__proto__:null,mergeArrays:os,mergeMaps:is,mergeOthers:Uo,mergeRecords:ns,mergeSets:rs});function Pn(...t){return ss({})(...t)}function ss(t,e){const n=ls(t,o);function o(...r){return qo(r,n,e)}return o}function ls(t,e){var n,o;return{defaultMergeFunctions:An,mergeFunctions:Q({},An,Object.fromEntries(Object.entries(t).filter(([r,i])=>Object.hasOwn(An,r)).map(([r,i])=>i===!1?[r,Uo]:[r,i]))),metaDataUpdater:(n=t.metaDataUpdater)!=null?n:Zi,deepmerge:e,useImplicitDefaultMerging:(o=t.enableImplicitDefaultMerging)!=null?o:!1,actions:kt}}function qo(t,e,n){if(t.length===0)return;if(t.length===1)return kn(t,e,n);const o=No(t[0]);if(o!==0&&o!==5){for(let r=1;r<t.length;r++)if(No(t[r])!==o)return kn(t,e,n)}switch(o){case 1:return cs(t,e,n);case 2:return as(t,e,n);case 3:return us(t,e,n);case 4:return fs(t,e,n);default:return kn(t,e,n)}}function cs(t,e,n){const o=e.mergeFunctions.mergeRecords(t,e,n);return o===kt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):o}function as(t,e,n){const o=e.mergeFunctions.mergeArrays(t,e,n);return o===kt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):o}function us(t,e,n){const o=e.mergeFunctions.mergeSets(t,e,n);return o===kt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):o}function fs(t,e,n){const o=e.mergeFunctions.mergeMaps(t,e,n);return o===kt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):o}function kn(t,e,n){const o=e.mergeFunctions.mergeOthers(t,e,n);return o===kt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):o}function Mn(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],r=t[o];o!=="constructor"&&typeof r=="function"&&(t[o]=r.bind(t))}return t}function ds(t,e){return n=>{if(t.isOpen()){const o=t.el&&n.currentTarget===t.el;(!G(e)&&n.currentTarget.matches(e)||o)&&t.tour.next()}}}function hs(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const o=ds(t,n);let r=null;if(!G(n)&&(r=document.querySelector(n),!r))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);r?(r.addEventListener(e,o),t.on("destroy",()=>r.removeEventListener(e,o))):(document.body.addEventListener(e,o,!0),t.on("destroy",()=>document.body.removeEventListener(e,o,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class ps{constructor(e){}}class gs{constructor(e,n){}}function Yo(t){return!Be(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function ms(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(Pt(n.element)&&(n.element=n.element.call(t)),Be(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function zo(t){return t==null?!0:!t.element||!t.on}function Ko(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)})}const ue=Math.min,zt=Math.max,en=Math.round,nn=Math.floor,Mt=t=>({x:t,y:t}),bs={left:"right",right:"left",bottom:"top",top:"bottom"},ys={start:"end",end:"start"};function Ln(t,e,n){return zt(t,ue(e,n))}function fe(t,e){return typeof t=="function"?t(e):t}function Kt(t){return t.split("-")[0]}function on(t){return t.split("-")[1]}function Dn(t){return t==="x"?"y":"x"}function Fn(t){return t==="y"?"height":"width"}function rn(t){return["top","bottom"].includes(Kt(t))?"y":"x"}function jn(t){return Dn(rn(t))}function vs(t,e,n){n===void 0&&(n=!1);const o=on(t),r=jn(t),i=Fn(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=sn(s)),[s,sn(s)]}function ws(t){const e=sn(t);return[Bn(t),e,Bn(e)]}function Bn(t){return t.replace(/start|end/g,e=>ys[e])}function xs(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}function _s(t,e,n,o){const r=on(t);let i=xs(Kt(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(Bn)))),i}function sn(t){return t.replace(/left|right|bottom|top/g,e=>bs[e])}function Es(t){return Q({top:0,right:0,bottom:0,left:0},t)}function Jo(t){return typeof t!="number"?Es(t):{top:t,right:t,bottom:t,left:t}}function ln(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}const Ss=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Os=["mainAxis","crossAxis","limiter"];function Xo(t,e,n){let{reference:o,floating:r}=t;const i=rn(e),s=jn(e),l=Fn(s),c=Kt(e),a=i==="y",f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:h};break;case"left":p={x:o.x-r.width,y:h};break;default:p={x:o.x,y:o.y}}switch(on(e)){case"start":p[s]-=d*(n&&a?-1:1);break;case"end":p[s]+=d*(n&&a?-1:1);break}return p}const Ts=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Xo(a,o,c),d=o,p={},m=0;for(let y=0;y<l.length;y++){const{name:_,fn:w}=l[y],{x,y:S,data:b,reset:g}=await w({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,h=S??h,p=Q({},p,{[_]:Q({},p[_],b)}),g&&m<=50&&(m++,typeof g=="object"&&(g.placement&&(d=g.placement),g.rects&&(a=g.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):g.rects),{x:f,y:h}=Xo(a,d,c)),y=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:p}};async function Go(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=fe(e,t),m=Jo(p),_=l[d?h==="floating"?"reference":"floating":h],w=ln(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(_)))==null||n?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),x=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),b=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},g=ln(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:S,strategy:c}):x);return{top:(w.top-g.top+m.top)/b.y,bottom:(g.bottom-w.bottom+m.bottom)/b.y,left:(w.left-g.left+m.left)/b.x,right:(g.right-w.right+m.right)/b.x}}const $s=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:f=0}=fe(t,e)||{};if(a==null)return{};const h=Jo(f),d={x:n,y:o},p=jn(r),m=Fn(p),y=await s.getDimensions(a),_=p==="y",w=_?"top":"left",x=_?"bottom":"right",S=_?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],g=d[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let P=O?O[S]:0;(!P||!await(s.isElement==null?void 0:s.isElement(O)))&&(P=l.floating[S]||i.floating[m]);const V=b/2-g/2,R=P/2-y[m]/2-1,B=ue(h[w],R),N=ue(h[x],R),U=B,A=P-y[m]-N,$=P/2-y[m]/2+V,q=Ln(U,$,A),H=!c.arrow&&on(r)!=null&&$!==q&&i.reference[m]/2-($<U?B:N)-y[m]/2<0,W=H?$<U?$-U:$-A:0;return{[p]:d[p]+W,data:Q({[p]:q,centerOffset:$-q-W},H&&{alignmentOffset:W}),reset:H}}}),Cs=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var o,r;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:a,elements:f}=n,h=fe(e,n),{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:w=!0}=h,x=Wo(h,Ss);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const S=Kt(i),b=Kt(c)===c,g=await(a.isRTL==null?void 0:a.isRTL(f.floating)),O=m||(b||!w?[sn(c)]:ws(c));!m&&_!=="none"&&O.push(..._s(c,w,_,g));const P=[c,...O],V=await Go(n,x),R=[];let B=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&R.push(V[S]),p){const $=vs(i,l,g);R.push(V[$[0]],V[$[1]])}if(B=[...B,{placement:i,overflows:R}],!R.every($=>$<=0)){var N,U;const $=(((N=s.flip)==null?void 0:N.index)||0)+1,q=P[$];if(q)return{data:{index:$,overflows:B},reset:{placement:q}};let H=(U=B.filter(W=>W.overflows[0]<=0).sort((W,et)=>W.overflows[1]-et.overflows[1])[0])==null?void 0:U.placement;if(!H)switch(y){case"bestFit":{var A;const W=(A=B.map(et=>[et.placement,et.overflows.filter(_t=>_t>0).reduce((_t,Sn)=>_t+Sn,0)]).sort((et,_t)=>et[1]-_t[1])[0])==null?void 0:A[0];W&&(H=W);break}case"initialPlacement":H=c;break}if(i!==H)return{reset:{placement:H}}}return{}}}},Is=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:o,y:r,placement:i}=n,s=fe(e,n),{mainAxis:l=!0,crossAxis:c=!1,limiter:a={fn:x=>{let{x:S,y:b}=x;return{x:S,y:b}}}}=s,f=Wo(s,Os),h={x:o,y:r},d=await Go(n,f),p=rn(Kt(i)),m=Dn(p);let y=h[m],_=h[p];if(l){const x=m==="y"?"top":"left",S=m==="y"?"bottom":"right",b=y+d[x],g=y-d[S];y=Ln(b,y,g)}if(c){const x=p==="y"?"top":"left",S=p==="y"?"bottom":"right",b=_+d[x],g=_-d[S];_=Ln(b,_,g)}const w=a.fn(Q({},n,{[m]:y,[p]:_}));return Q({},w,{data:{x:w.x-o,y:w.y-r}})}}},Rs=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:o,y:r,placement:i,rects:s,middlewareData:l}=n,{offset:c=0,mainAxis:a=!0,crossAxis:f=!0}=fe(e,n),h={x:o,y:r},d=rn(i),p=Dn(d);let m=h[p],y=h[d];const _=fe(c,n),w=typeof _=="number"?{mainAxis:_,crossAxis:0}:Q({mainAxis:0,crossAxis:0},_);if(a){const b=p==="y"?"height":"width",g=s.reference[p]-s.floating[b]+w.mainAxis,O=s.reference[p]+s.reference[b]-w.mainAxis;m<g?m=g:m>O&&(m=O)}if(f){var x,S;const b=p==="y"?"width":"height",g=["top","left"].includes(Kt(i)),O=s.reference[d]-s.floating[b]+(g&&((x=l.offset)==null?void 0:x[d])||0)+(g?0:w.crossAxis),P=s.reference[d]+s.reference[b]+(g?0:((S=l.offset)==null?void 0:S[d])||0)-(g?w.crossAxis:0);y<O?y=O:y>P&&(y=P)}return{[p]:m,[d]:y}}}};function de(t){return Zo(t)?(t.nodeName||"").toLowerCase():"#document"}function rt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Et(t){var e;return(e=(Zo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Zo(t){return t instanceof Node||t instanceof rt(t).Node}function mt(t){return t instanceof Element||t instanceof rt(t).Element}function bt(t){return t instanceof HTMLElement||t instanceof rt(t).HTMLElement}function Qo(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof rt(t).ShadowRoot}function We(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=ft(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function As(t){return["table","td","th"].includes(de(t))}function Wn(t){const e=Nn(),n=ft(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ps(t){let e=Lt(t);for(;bt(e)&&!he(e);){if(Wn(e))return e;e=Lt(e)}return null}function Nn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function he(t){return["html","body","#document"].includes(de(t))}function ft(t){return rt(t).getComputedStyle(t)}function cn(t){return mt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Lt(t){if(de(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Qo(t)&&t.host||Et(t);return Qo(e)?e.host:e}function tr(t){const e=Lt(t);return he(e)?t.ownerDocument?t.ownerDocument.body:t.body:bt(e)&&We(e)?e:tr(e)}function Ne(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=tr(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=rt(r);return i?e.concat(s,s.visualViewport||[],We(r)?r:[],s.frameElement&&n?Ne(s.frameElement):[]):e.concat(r,Ne(r,[],n))}function er(t){const e=ft(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=bt(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,l=en(n)!==i||en(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function Hn(t){return mt(t)?t:t.contextElement}function pe(t){const e=Hn(t);if(!bt(e))return Mt(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=er(e);let s=(i?en(n.width):n.width)/o,l=(i?en(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const ks=Mt(0);function nr(t){const e=rt(t);return!Nn()||!e.visualViewport?ks:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ms(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==rt(t)?!1:e}function Jt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Hn(t);let s=Mt(1);e&&(o?mt(o)&&(s=pe(o)):s=pe(t));const l=Ms(i,n,o)?nr(i):Mt(0);let c=(r.left+l.x)/s.x,a=(r.top+l.y)/s.y,f=r.width/s.x,h=r.height/s.y;if(i){const d=rt(i),p=o&&mt(o)?rt(o):o;let m=d,y=m.frameElement;for(;y&&o&&p!==m;){const _=pe(y),w=y.getBoundingClientRect(),x=ft(y),S=w.left+(y.clientLeft+parseFloat(x.paddingLeft))*_.x,b=w.top+(y.clientTop+parseFloat(x.paddingTop))*_.y;c*=_.x,a*=_.y,f*=_.x,h*=_.y,c+=S,a+=b,m=rt(y),y=m.frameElement}}return ln({width:f,height:h,x:c,y:a})}const Ls=[":popover-open",":modal"];function Vn(t){return Ls.some(e=>{try{return t.matches(e)}catch{return!1}})}function Ds(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=Et(o),l=e?Vn(e.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},a=Mt(1);const f=Mt(0),h=bt(o);if((h||!h&&!i)&&((de(o)!=="body"||We(s))&&(c=cn(o)),bt(o))){const d=Jt(o);a=pe(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function Fs(t){return Array.from(t.getClientRects())}function or(t){return Jt(Et(t)).left+cn(t).scrollLeft}function js(t){const e=Et(t),n=cn(t),o=t.ownerDocument.body,r=zt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=zt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+or(t);const l=-n.scrollTop;return ft(o).direction==="rtl"&&(s+=zt(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function Bs(t,e){const n=rt(t),o=Et(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const a=Nn();(!a||a&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function Ws(t,e){const n=Jt(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=bt(t)?pe(t):Mt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=r*i.x,a=o*i.y;return{width:s,height:l,x:c,y:a}}function rr(t,e,n){let o;if(e==="viewport")o=Bs(t,n);else if(e==="document")o=js(Et(t));else if(mt(e))o=Ws(e,n);else{const r=nr(t);o=Q({},e,{x:e.x-r.x,y:e.y-r.y})}return ln(o)}function ir(t,e){const n=Lt(t);return n===e||!mt(n)||he(n)?!1:ft(n).position==="fixed"||ir(n,e)}function Ns(t,e){const n=e.get(t);if(n)return n;let o=Ne(t,[],!1).filter(l=>mt(l)&&de(l)!=="body"),r=null;const i=ft(t).position==="fixed";let s=i?Lt(t):t;for(;mt(s)&&!he(s);){const l=ft(s),c=Wn(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||We(s)&&!c&&ir(t,s))?o=o.filter(f=>f!==s):r=l,s=Lt(s)}return e.set(t,o),o}function Hs(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?Vn(e)?[]:Ns(e,this._c):[].concat(n),o],l=s[0],c=s.reduce((a,f)=>{const h=rr(e,f,r);return a.top=zt(h.top,a.top),a.right=ue(h.right,a.right),a.bottom=ue(h.bottom,a.bottom),a.left=zt(h.left,a.left),a},rr(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Vs(t){const{width:e,height:n}=er(t);return{width:e,height:n}}function Us(t,e,n){const o=bt(e),r=Et(e),i=n==="fixed",s=Jt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Mt(0);if(o||!o&&!i)if((de(e)!=="body"||We(r))&&(l=cn(e)),o){const h=Jt(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else r&&(c.x=or(r));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function Un(t){return ft(t).position==="static"}function sr(t,e){return!bt(t)||ft(t).position==="fixed"?null:e?e(t):t.offsetParent}function lr(t,e){const n=rt(t);if(Vn(t))return n;if(!bt(t)){let r=Lt(t);for(;r&&!he(r);){if(mt(r)&&!Un(r))return r;r=Lt(r)}return n}let o=sr(t,e);for(;o&&As(o)&&Un(o);)o=sr(o,e);return o&&he(o)&&Un(o)&&!Wn(o)?n:o||Ps(t)||n}const qs=async function(e){const n=this.getOffsetParent||lr,o=this.getDimensions,r=await o(e.floating);return{reference:Us(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ys(t){return ft(t).direction==="rtl"}const zs={convertOffsetParentRelativeRectToViewportRelativeRect:Ds,getDocumentElement:Et,getClippingRect:Hs,getOffsetParent:lr,getElementRects:qs,getClientRects:Fs,getDimensions:Vs,getScale:pe,isElement:mt,isRTL:Ys};function Ks(t,e){let n=null,o;const r=Et(t);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:a,top:f,width:h,height:d}=t.getBoundingClientRect();if(l||e(),!h||!d)return;const p=nn(f),m=nn(r.clientWidth-(a+h)),y=nn(r.clientHeight-(f+d)),_=nn(a),x={rootMargin:-p+"px "+-m+"px "+-y+"px "+-_+"px",threshold:zt(0,ue(1,c))||1};let S=!0;function b(g){const O=g[0].intersectionRatio;if(O!==c){if(!S)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}S=!1}try{n=new IntersectionObserver(b,Q({},x,{root:r.ownerDocument}))}catch{n=new IntersectionObserver(b,x)}n.observe(t)}return s(!0),i}function Js(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=Hn(t),f=r||i?[...a?Ne(a):[],...Ne(e)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=a&&l?Ks(a,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(e)})),n()}),a&&!c&&p.observe(a),p.observe(e));let m,y=c?Jt(t):null;c&&_();function _(){const w=Jt(t);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&n(),y=w,m=requestAnimationFrame(_)}return n(),()=>{var w;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const Xs=Is,Gs=Cs,Zs=$s,Qs=Rs,tl=(t,e,n)=>{const o=new Map,r=Q({platform:zs},n),i=Q({},r.platform,{_c:o});return Ts(t,e,Q({},r,{platform:i}))};function el(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const o=ll(e,t),r=zo(e);return r&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=Js(n,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}rl(n,t,o,r)}),t.target=e.element,o}function nl(t,e){return{floatingUIOptions:Pn(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function ol(t){t.cleanup&&t.cleanup(),t.cleanup=null}function rl(t,e,n,o){return tl(t,e.el,n).then(il(e,o)).then(r=>new Promise(i=>{setTimeout(()=>i(r),300)})).then(r=>{r!=null&&r.el&&r.el.focus({preventScroll:!0})})}function il(t,e){return({x:n,y:o,placement:r,middlewareData:i})=>(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:`${n}px`,top:`${o}px`}),t.el.dataset.popperPlacement=r,sl(t.el,i)),t)}function sl(t,e){const n=t.querySelector(".shepherd-arrow");if(je(n)&&e.arrow){const{x:o,y:r}=e.arrow;Object.assign(n.style,{left:o!=null?`${o}px`:"",top:r!=null?`${r}px`:""})}}function ll(t,e){const n={strategy:"absolute"};n.middleware=[];const o=cl(e);return zo(t)||(n.middleware.push(Gs(),Xs({limiter:Qs(),crossAxis:!0})),o&&n.middleware.push(Zs({element:o})),n.placement=t.on),Pn(e.options.floatingUIOptions||{},n)}function cl(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function it(){}function al(t,e){for(const n in e)t[n]=e[n];return t}function cr(t){return t()}function ar(){return Object.create(null)}function He(t){t.forEach(cr)}function qn(t){return typeof t=="function"}function St(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function ul(t){return Object.keys(t).length===0}function ge(t,e){t.appendChild(e)}function dt(t,e,n){t.insertBefore(e,n||null)}function ct(t){t.parentNode&&t.parentNode.removeChild(t)}function fl(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function yt(t){return document.createElement(t)}function ur(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function fr(t){return document.createTextNode(t)}function an(){return fr(" ")}function dl(){return fr("")}function un(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function D(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const hl=["width","height"];function dr(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)e[o]==null?t.removeAttribute(o):o==="style"?t.style.cssText=e[o]:o==="__value"?t.value=t[o]=e[o]:n[o]&&n[o].set&&hl.indexOf(o)===-1?t[o]=e[o]:D(t,o,e[o])}function pl(t){return Array.from(t.childNodes)}function me(t,e,n){t.classList.toggle(e,!!n)}let Ve;function Ue(t){Ve=t}function hr(){if(!Ve)throw new Error("Function called outside component initialization");return Ve}function gl(t){hr().$$.on_mount.push(t)}function Yn(t){hr().$$.after_update.push(t)}const be=[],ye=[];let ve=[];const pr=[],ml=Promise.resolve();let zn=!1;function bl(){zn||(zn=!0,ml.then(gr))}function Kn(t){ve.push(t)}const Jn=new Set;let we=0;function gr(){if(we!==0)return;const t=Ve;do{try{for(;we<be.length;){const e=be[we];we++,Ue(e),yl(e.$$)}}catch(e){throw be.length=0,we=0,e}for(Ue(null),be.length=0,we=0;ye.length;)ye.pop()();for(let e=0;e<ve.length;e+=1){const n=ve[e];Jn.has(n)||(Jn.add(n),n())}ve.length=0}while(be.length);for(;pr.length;)pr.pop()();zn=!1,Jn.clear(),Ue(t)}function yl(t){if(t.fragment!==null){t.update(),He(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Kn)}}function vl(t){const e=[],n=[];ve.forEach(o=>t.indexOf(o)===-1?e.push(o):n.push(o)),n.forEach(o=>o()),ve=e}const fn=new Set;let Xt;function Gt(){Xt={r:0,c:[],p:Xt}}function Zt(){Xt.r||He(Xt.c),Xt=Xt.p}function M(t,e){t&&t.i&&(fn.delete(t),t.i(e))}function Y(t,e,n,o){if(t&&t.o){if(fn.has(t))return;fn.add(t),Xt.c.push(()=>{fn.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}else o&&o()}function mr(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function wl(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const s=t[i],l=e[i];if(l){for(const c in s)c in l||(o[c]=1);for(const c in l)r[c]||(n[c]=l[c],r[c]=1);t[i]=l}else for(const c in s)r[c]=1}for(const s in o)s in n||(n[s]=void 0);return n}function Qt(t){t&&t.c()}function Dt(t,e,n){const{fragment:o,after_update:r}=t.$$;o&&o.m(e,n),Kn(()=>{const i=t.$$.on_mount.map(cr).filter(qn);t.$$.on_destroy?t.$$.on_destroy.push(...i):He(i),t.$$.on_mount=[]}),r.forEach(Kn)}function Ft(t,e){const n=t.$$;n.fragment!==null&&(vl(n.after_update),He(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function xl(t,e){t.$$.dirty[0]===-1&&(be.push(t),bl(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ot(t,e,n,o,r,i,s=null,l=[-1]){const c=Ve;Ue(t);const a=t.$$={fragment:null,ctx:[],props:i,update:it,not_equal:r,bound:ar(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:ar(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(t,e.props||{},(h,d,...p)=>{const m=p.length?p[0]:d;return a.ctx&&r(a.ctx[h],a.ctx[h]=m)&&(!a.skip_bound&&a.bound[h]&&a.bound[h](m),f&&xl(t,h)),d}):[],a.update(),f=!0,He(a.before_update),a.fragment=o?o(a.ctx):!1,e.target){if(e.hydrate){const h=pl(e.target);a.fragment&&a.fragment.l(h),h.forEach(ct)}else a.fragment&&a.fragment.c();e.intro&&M(t.$$.fragment),Dt(t,e.target,e.anchor),gr()}Ue(c)}class Tt{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){Ft(this,1),this.$destroy=it}$on(e,n){if(!qn(n))return it;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const r=o.indexOf(n);r!==-1&&o.splice(r,1)}}$set(e){this.$$set&&!ul(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const _l="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_l);function El(t){let e,n,o,r,i;return{c(){e=yt("button"),D(e,"aria-label",n=t[3]?t[3]:null),D(e,"class",o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],D(e,"tabindex","0"),D(e,"type","button")},m(s,l){dt(s,e,l),e.innerHTML=t[5],r||(i=un(e,"click",function(){qn(t[0])&&t[0].apply(this,arguments)}),r=!0)},p(s,[l]){t=s,l&32&&(e.innerHTML=t[5]),l&8&&n!==(n=t[3]?t[3]:null)&&D(e,"aria-label",n),l&18&&o!==(o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&D(e,"class",o),l&4&&(e.disabled=t[2])},i:it,o:it,d(s){s&&ct(e),r=!1,i()}}}function Sl(t,e,n){let{config:o,step:r}=e,i,s,l,c,a,f;function h(d){return Pt(d)?d=d.call(r):d}return t.$$set=d=>{"config"in d&&n(6,o=d.config),"step"in d&&n(7,r=d.step)},t.$$.update=()=>{t.$$.dirty&192&&(n(0,i=o.action?o.action.bind(r.tour):null),n(1,s=o.classes),n(2,l=o.disabled?h(o.disabled):!1),n(3,c=o.label?h(o.label):null),n(4,a=o.secondary),n(5,f=o.text?h(o.text):null))},[i,s,l,c,a,f,o,r]}class Ol extends Tt{constructor(e){super(),Ot(this,e,Sl,El,St,{config:6,step:7})}}function br(t,e,n){const o=t.slice();return o[2]=e[n],o}function yr(t){let e,n,o=mr(t[1]),r=[];for(let s=0;s<o.length;s+=1)r[s]=vr(br(t,o,s));const i=s=>Y(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s<r.length;s+=1)r[s].c();e=dl()},m(s,l){for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(s,l);dt(s,e,l),n=!0},p(s,l){if(l&3){o=mr(s[1]);let c;for(c=0;c<o.length;c+=1){const a=br(s,o,c);r[c]?(r[c].p(a,l),M(r[c],1)):(r[c]=vr(a),r[c].c(),M(r[c],1),r[c].m(e.parentNode,e))}for(Gt(),c=o.length;c<r.length;c+=1)i(c);Zt()}},i(s){if(!n){for(let l=0;l<o.length;l+=1)M(r[l]);n=!0}},o(s){r=r.filter(Boolean);for(let l=0;l<r.length;l+=1)Y(r[l]);n=!1},d(s){s&&ct(e),fl(r,s)}}}function vr(t){let e,n;return e=new Ol({props:{config:t[2],step:t[0]}}),{c(){Qt(e.$$.fragment)},m(o,r){Dt(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.config=o[2]),r&1&&(i.step=o[0]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){Ft(e,o)}}}function Tl(t){let e,n,o=t[1]&&yr(t);return{c(){e=yt("footer"),o&&o.c(),D(e,"class","shepherd-footer")},m(r,i){dt(r,e,i),o&&o.m(e,null),n=!0},p(r,[i]){r[1]?o?(o.p(r,i),i&2&&M(o,1)):(o=yr(r),o.c(),M(o,1),o.m(e,null)):o&&(Gt(),Y(o,1,1,()=>{o=null}),Zt())},i(r){n||(M(o),n=!0)},o(r){Y(o),n=!1},d(r){r&&ct(e),o&&o.d()}}}function $l(t,e,n){let o,{step:r}=e;return t.$$set=i=>{"step"in i&&n(0,r=i.step)},t.$$.update=()=>{t.$$.dirty&1&&n(1,o=r.options.buttons)},[r,o]}class Cl extends Tt{constructor(e){super(),Ot(this,e,$l,Tl,St,{step:0})}}function Il(t){let e,n,o,r,i;return{c(){e=yt("button"),n=yt("span"),n.textContent="×",D(n,"aria-hidden","true"),D(e,"aria-label",o=t[0].label?t[0].label:"Close Tour"),D(e,"class","shepherd-cancel-icon"),D(e,"type","button")},m(s,l){dt(s,e,l),ge(e,n),r||(i=un(e,"click",t[1]),r=!0)},p(s,[l]){l&1&&o!==(o=s[0].label?s[0].label:"Close Tour")&&D(e,"aria-label",o)},i:it,o:it,d(s){s&&ct(e),r=!1,i()}}}function Rl(t,e,n){let{cancelIcon:o,step:r}=e;const i=s=>{s.preventDefault(),r.cancel()};return t.$$set=s=>{"cancelIcon"in s&&n(0,o=s.cancelIcon),"step"in s&&n(2,r=s.step)},[o,i,r]}class Al extends Tt{constructor(e){super(),Ot(this,e,Rl,Il,St,{cancelIcon:0,step:2})}}function Pl(t){let e;return{c(){e=yt("h3"),D(e,"id",t[1]),D(e,"class","shepherd-title")},m(n,o){dt(n,e,o),t[3](e)},p(n,[o]){o&2&&D(e,"id",n[1])},i:it,o:it,d(n){n&&ct(e),t[3](null)}}}function kl(t,e,n){let{labelId:o,element:r,title:i}=e;Yn(()=>{Pt(i)&&n(2,i=i()),n(0,r.innerHTML=i,r)});function s(l){ye[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"labelId"in l&&n(1,o=l.labelId),"element"in l&&n(0,r=l.element),"title"in l&&n(2,i=l.title)},[r,o,i,s]}class Ml extends Tt{constructor(e){super(),Ot(this,e,kl,Pl,St,{labelId:1,element:0,title:2})}}function wr(t){let e,n;return e=new Ml({props:{labelId:t[0],title:t[2]}}),{c(){Qt(e.$$.fragment)},m(o,r){Dt(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.labelId=o[0]),r&4&&(i.title=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){Ft(e,o)}}}function xr(t){let e,n;return e=new Al({props:{cancelIcon:t[3],step:t[1]}}),{c(){Qt(e.$$.fragment)},m(o,r){Dt(e,o,r),n=!0},p(o,r){const i={};r&8&&(i.cancelIcon=o[3]),r&2&&(i.step=o[1]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){Ft(e,o)}}}function Ll(t){let e,n,o,r=t[2]&&wr(t),i=t[3]&&t[3].enabled&&xr(t);return{c(){e=yt("header"),r&&r.c(),n=an(),i&&i.c(),D(e,"class","shepherd-header")},m(s,l){dt(s,e,l),r&&r.m(e,null),ge(e,n),i&&i.m(e,null),o=!0},p(s,[l]){s[2]?r?(r.p(s,l),l&4&&M(r,1)):(r=wr(s),r.c(),M(r,1),r.m(e,n)):r&&(Gt(),Y(r,1,1,()=>{r=null}),Zt()),s[3]&&s[3].enabled?i?(i.p(s,l),l&8&&M(i,1)):(i=xr(s),i.c(),M(i,1),i.m(e,null)):i&&(Gt(),Y(i,1,1,()=>{i=null}),Zt())},i(s){o||(M(r),M(i),o=!0)},o(s){Y(r),Y(i),o=!1},d(s){s&&ct(e),r&&r.d(),i&&i.d()}}}function Dl(t,e,n){let{labelId:o,step:r}=e,i,s;return t.$$set=l=>{"labelId"in l&&n(0,o=l.labelId),"step"in l&&n(1,r=l.step)},t.$$.update=()=>{t.$$.dirty&2&&(n(2,i=r.options.title),n(3,s=r.options.cancelIcon))},[o,r,i,s]}class Fl extends Tt{constructor(e){super(),Ot(this,e,Dl,Ll,St,{labelId:0,step:1})}}function jl(t){let e;return{c(){e=yt("div"),D(e,"class","shepherd-text"),D(e,"id",t[1])},m(n,o){dt(n,e,o),t[3](e)},p(n,[o]){o&2&&D(e,"id",n[1])},i:it,o:it,d(n){n&&ct(e),t[3](null)}}}function Bl(t,e,n){let{descriptionId:o,element:r,step:i}=e;Yn(()=>{let{text:l}=i.options;Pt(l)&&(l=l.call(i)),je(l)?r.appendChild(l):n(0,r.innerHTML=l,r)});function s(l){ye[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"descriptionId"in l&&n(1,o=l.descriptionId),"element"in l&&n(0,r=l.element),"step"in l&&n(2,i=l.step)},[r,o,i,s]}class Wl extends Tt{constructor(e){super(),Ot(this,e,Bl,jl,St,{descriptionId:1,element:0,step:2})}}function _r(t){let e,n;return e=new Fl({props:{labelId:t[1],step:t[2]}}),{c(){Qt(e.$$.fragment)},m(o,r){Dt(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.labelId=o[1]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){Ft(e,o)}}}function Er(t){let e,n;return e=new Wl({props:{descriptionId:t[0],step:t[2]}}),{c(){Qt(e.$$.fragment)},m(o,r){Dt(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.descriptionId=o[0]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){Ft(e,o)}}}function Sr(t){let e,n;return e=new Cl({props:{step:t[2]}}),{c(){Qt(e.$$.fragment)},m(o,r){Dt(e,o,r),n=!0},p(o,r){const i={};r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){Ft(e,o)}}}function Nl(t){let e,n=!G(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o,r=!G(t[2].options.text),i,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l,c=n&&_r(t),a=r&&Er(t),f=s&&Sr(t);return{c(){e=yt("div"),c&&c.c(),o=an(),a&&a.c(),i=an(),f&&f.c(),D(e,"class","shepherd-content")},m(h,d){dt(h,e,d),c&&c.m(e,null),ge(e,o),a&&a.m(e,null),ge(e,i),f&&f.m(e,null),l=!0},p(h,[d]){d&4&&(n=!G(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?c?(c.p(h,d),d&4&&M(c,1)):(c=_r(h),c.c(),M(c,1),c.m(e,o)):c&&(Gt(),Y(c,1,1,()=>{c=null}),Zt()),d&4&&(r=!G(h[2].options.text)),r?a?(a.p(h,d),d&4&&M(a,1)):(a=Er(h),a.c(),M(a,1),a.m(e,i)):a&&(Gt(),Y(a,1,1,()=>{a=null}),Zt()),d&4&&(s=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),s?f?(f.p(h,d),d&4&&M(f,1)):(f=Sr(h),f.c(),M(f,1),f.m(e,null)):f&&(Gt(),Y(f,1,1,()=>{f=null}),Zt())},i(h){l||(M(c),M(a),M(f),l=!0)},o(h){Y(c),Y(a),Y(f),l=!1},d(h){h&&ct(e),c&&c.d(),a&&a.d(),f&&f.d()}}}function Hl(t,e,n){let{descriptionId:o,labelId:r,step:i}=e;return t.$$set=s=>{"descriptionId"in s&&n(0,o=s.descriptionId),"labelId"in s&&n(1,r=s.labelId),"step"in s&&n(2,i=s.step)},[o,r,i]}class Vl extends Tt{constructor(e){super(),Ot(this,e,Hl,Nl,St,{descriptionId:0,labelId:1,step:2})}}function Or(t){let e;return{c(){e=yt("div"),D(e,"class","shepherd-arrow"),D(e,"data-popper-arrow","")},m(n,o){dt(n,e,o)},d(n){n&&ct(e)}}}function Ul(t){let e,n,o,r,i,s,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&Or();o=new Vl({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let f=[{"aria-describedby":r=G(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=al(h,f[d]);return{c(){e=yt("div"),a&&a.c(),n=an(),Qt(o.$$.fragment),dr(e,h),me(e,"shepherd-has-cancel-icon",t[5]),me(e,"shepherd-has-title",t[6]),me(e,"shepherd-element",!0)},m(d,p){dt(d,e,p),a&&a.m(e,null),ge(e,n),Dt(o,e,null),t[13](e),s=!0,l||(c=un(e,"keydown",t[7]),l=!0)},p(d,[p]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?a||(a=Or(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const m={};p&4&&(m.descriptionId=d[2]),p&8&&(m.labelId=d[3]),p&16&&(m.step=d[4]),o.$set(m),dr(e,h=wl(f,[(!s||p&20&&r!==(r=G(d[4].options.text)?null:d[2]))&&{"aria-describedby":r},(!s||p&24&&i!==(i=d[4].options.title?d[3]:null))&&{"aria-labelledby":i},p&2&&d[1],{role:"dialog"},{tabindex:"0"}])),me(e,"shepherd-has-cancel-icon",d[5]),me(e,"shepherd-has-title",d[6]),me(e,"shepherd-element",!0)},i(d){s||(M(o.$$.fragment,d),s=!0)},o(d){Y(o.$$.fragment,d),s=!1},d(d){d&&ct(e),a&&a.d(),Ft(o),t[13](null),l=!1,c()}}}const ql=9,Yl=27,zl=37,Kl=39;function Tr(t){return t.split(" ").filter(e=>!!e.length)}function Jl(t,e,n){let{classPrefix:o,element:r,descriptionId:i,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:h}=e,d,p,m;const y=()=>r;gl(()=>{n(1,h={[`data-${o}shepherd-step-id`]:f.id}),n(9,l=r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),Yn(()=>{m!==f.options.classes&&_()});function _(){w(m),m=f.options.classes,x(m)}function w(g){if(Be(g)){const O=Tr(g);O.length&&r.classList.remove(...O)}}function x(g){if(Be(g)){const O=Tr(g);O.length&&r.classList.add(...O)}}const S=g=>{const{tour:O}=f;switch(g.keyCode){case ql:if(l.length===0){g.preventDefault();break}g.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(g.preventDefault(),a.focus()):document.activeElement===a&&(g.preventDefault(),s.focus());break;case Yl:O.options.exitOnEsc&&(g.preventDefault(),g.stopPropagation(),f.cancel());break;case zl:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.back());break;case Kl:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.next());break}};function b(g){ye[g?"unshift":"push"](()=>{r=g,n(0,r)})}return t.$$set=g=>{"classPrefix"in g&&n(11,o=g.classPrefix),"element"in g&&n(0,r=g.element),"descriptionId"in g&&n(2,i=g.descriptionId),"firstFocusableElement"in g&&n(8,s=g.firstFocusableElement),"focusableElements"in g&&n(9,l=g.focusableElements),"labelId"in g&&n(3,c=g.labelId),"lastFocusableElement"in g&&n(10,a=g.lastFocusableElement),"step"in g&&n(4,f=g.step),"dataStepId"in g&&n(1,h=g.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,p=f.options&&f.options.title))},[r,h,i,c,f,d,p,S,s,l,a,o,y,b]}class Xl extends Tt{constructor(e){super(),Ot(this,e,Jl,Ul,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 Xn extends Rn{constructor(e,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?Yo(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,Mn(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){ol(this),je(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=ms(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return Pt(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new Xl({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:n}=this._getResolvedAttachToOptions();Pt(this.options.scrollToHandler)?this.options.scrollToHandler(n):Gi(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(e)}_getClassOptions(e){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e.classes?e.classes:"",r=n&&n.classes?n.classes:"",i=[...o.split(" "),...r.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(e={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=Pn({},n||{}),this.options=Object.assign({arrow:!0},n,e,nl(n,e));const{when:o}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${Ko()}`,o&&Object.keys(o).forEach(r=>{this.on(r,o[r],this)})}_setupElements(){G(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&hs(this),el(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),o=this.target||document.body;o.classList.add(`${this.classPrefix}shepherd-enabled`),o.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const n=e.target;n&&(e.options.highlightClass&&n.classList.add(e.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),e.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function Gl(t){if(t){const{steps:e}=t;e.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&je(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function Zl({width:t,height:e,x:n=0,y:o=0,r=0}){const{innerWidth:i,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof r=="number"?{topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}:r;return`M${i},${s}H0V0H${i}V${s}ZM${n+l},${o}a${l},${l},0,0,0-${l},${l}V${e+o-f}a${f},${f},0,0,0,${f},${f}H${t+n-a}a${a},${a},0,0,0,${a}-${a}V${o+c}a${c},${c},0,0,0-${c}-${c}Z`}function Ql(t){let e,n,o,r,i;return{c(){e=ur("svg"),n=ur("path"),D(n,"d",t[2]),D(e,"class",o=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){dt(s,e,l),ge(e,n),t[11](e),r||(i=un(e,"touchmove",t[3]),r=!0)},p(s,[l]){l&4&&D(n,"d",s[2]),l&2&&o!==(o=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&D(e,"class",o)},i:it,o:it,d(s){s&&ct(e),t[11](null),r=!1,i()}}}function $r(t){if(!t)return null;const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return n!=="hidden"&&n!=="visible"&&t.scrollHeight>=t.clientHeight?t:$r(t.parentElement)}function tc(t){let e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;for(;n!==window.top;){var o;const s=(o=n)==null?void 0:o.frameElement;if(s){var r,i;const l=s.getBoundingClientRect();e.top+=l.top+((r=l.scrollTop)!=null?r:0),e.left+=l.left+((i=l.scrollLeft)!=null?i:0)}n=n.parent}return e}function ec(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,r=n.bottom||o+n.height;if(e){const s=e.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;o=Math.max(o,l),r=Math.min(r,c)}const i=Math.max(r-o,0);return{y:o,height:i}}function nc(t,e,n){let{element:o,openingProperties:r}=e,i=!1,s,l;a();const c=()=>o;function a(){n(4,r={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,i=!1),w()}function h(b=0,g=0,O=0,P=0,V,R){if(R){const{y:B,height:N}=ec(R,V),{x:U,width:A,left:$}=R.getBoundingClientRect();n(4,r={width:A+b*2,height:N+b*2,x:(U||$)+O-b,y:B+P-b,r:g})}else a()}function d(b){w(),b.tour.options.useModalOverlay?(x(b),p()):f()}function p(){n(1,i=!0)}const m=b=>{b.preventDefault()},y=b=>{b.stopPropagation()};function _(){window.addEventListener("touchmove",m,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",m,{passive:!1})}function x(b){const{modalOverlayOpeningPadding:g,modalOverlayOpeningRadius:O,modalOverlayOpeningXOffset:P=0,modalOverlayOpeningYOffset:V=0}=b.options,R=tc(b.target),B=$r(b.target),N=()=>{s=void 0,h(g,O,P+R.left,V+R.top,B,b.target),s=requestAnimationFrame(N)};N(),_()}function S(b){ye[b?"unshift":"push"](()=>{o=b,n(0,o)})}return t.$$set=b=>{"element"in b&&n(0,o=b.element),"openingProperties"in b&&n(4,r=b.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&n(2,l=Zl(r))},[o,i,l,y,r,c,a,f,h,d,p,S]}class oc extends Tt{constructor(e){super(),Ot(this,e,nc,Ql,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]}}class rc extends Rn{constructor(){super(),this.activeTour=void 0,Mn(this)}}class ic extends Rn{constructor(e={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,Mn(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,e),this.classPrefix=Yo(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(r=>{(i=>{this.on(i,s=>{s=s||{},s.tour=this,te.trigger(i,s)})})(r)}),this._setTourID(e.id),this}addStep(e,n){let o=e;return o instanceof Xn?o.tour=this:o=new Xn(this,o),G(n)?this.steps.push(o):this.steps.splice(n,0,o),o}addSteps(e){return Array.isArray(e)&&e.forEach(n=>{this.addStep(n)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;Pt(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(e),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(n=>n.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return te.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const n=this.getCurrentStep();this.steps.some((o,r)=>{if(o.id===e)return o.isOpen()&&o.hide(),o.destroy(),this.steps.splice(r,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,n=!0){const o=Be(e)?this.getById(e):this.steps[e];o&&(this._updateStateBeforeShow(),Pt(o.options.showOn)&&!o.options.showOn()?this._skipStep(o,n):(this.trigger("show",{step:o,previous:this.currentStep}),this.currentStep=o,o.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(o=>o.destroy()),Gl(this),this.trigger(e,{index:n}),te.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){const o=document.querySelector(".shepherd-modal-overlay-container");o&&(o.remove(),this.modal=null)}je(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),te.activeTour=this}setupModal(){this.modal=new oc({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,n){const o=this.steps.indexOf(e);if(o===this.steps.length-1)this.complete();else{const r=n?o+1:o-1;this.show(r,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const n=this.options.tourName||"tour",o=e||Ko();this.id=`${n}--${o}`}}const te=new rc,Cr=typeof window>"u";te.Step=Cr?ps:Xn,te.Tour=Cr?gs:ic;var sc=Object.defineProperty,Ir=t=>{throw TypeError(t)},lc=(t,e,n)=>e in t?sc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,jt=(t,e,n)=>lc(t,typeof e!="symbol"?e+"":e,n),Rr=(t,e,n)=>e.has(t)||Ir("Cannot "+n),Bt=(t,e,n)=>(Rr(t,e,"read from private field"),n?n.call(t):e.get(t)),Gn=(t,e,n)=>e.has(t)?Ir("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Zn=(t,e,n,o)=>(Rr(t,e,"write to private field"),e.set(t,n),n);/*! shepherd.js 13.0.0 */function cc(t){return t instanceof Element}function qe(t){return t instanceof HTMLElement}function Wt(t){return typeof t=="function"}function Ye(t){return typeof t=="string"}function Z(t){return t===void 0}class Qn{on(e,n,o,r=!1){var i;return Z(this.bindings)&&(this.bindings={}),Z(this.bindings[e])&&(this.bindings[e]=[]),(i=this.bindings[e])==null||i.push({handler:n,ctx:o,once:r}),this}once(e,n,o){return this.on(e,n,o,!0)}off(e,n){if(Z(this.bindings)||Z(this.bindings[e]))return this;if(Z(n))delete this.bindings[e];else{var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{if(r.handler===n){var s;(s=this.bindings[e])==null||s.splice(i,1)}})}return this}trigger(e,...n){if(!Z(this.bindings)&&this.bindings[e]){var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{const{ctx:s,handler:l,once:c}=r,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[e])==null||f.splice(i,1)}})}return this}}function tt(){return tt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},tt.apply(null,arguments)}function Ar(t,e){if(t==null)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)>=0)continue;n[o]=t[o]}return n}const Nt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};Nt.defaultMerge;function ac(t,e){return e}function Pr(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:dc(t)?1:t instanceof Set?3:t instanceof Map?4:5}function uc(t){const e=new Set;for(const n of t)for(const o of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(o);return e}function fc(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function kr(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}const Mr=new Set(["[object Object]","[object Module]"]);function dc(t){if(!Mr.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!Mr.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function hc(t,e,n){const o={};for(const r of uc(t)){const i=[];for(const c of t)fc(c,r)&&i.push(c[r]);if(i.length===0)continue;const s=e.metaDataUpdater(n,{key:r,parents:t}),l=Dr(i,e,s);l!==Nt.skip&&(r==="__proto__"?Object.defineProperty(o,r,{value:l,configurable:!0,enumerable:!0,writable:!0}):o[r]=l)}return o}function pc(t){return t.flat()}function gc(t){return new Set(kr(t))}function mc(t){return new Map(kr(t))}function Lr(t){return t.at(-1)}var to=Object.freeze({__proto__:null,mergeArrays:pc,mergeMaps:mc,mergeOthers:Lr,mergeRecords:hc,mergeSets:gc});function eo(...t){return bc({})(...t)}function bc(t,e){const n=yc(t,o);function o(...r){return Dr(r,n,e)}return o}function yc(t,e){var n,o;return{defaultMergeFunctions:to,mergeFunctions:tt({},to,Object.fromEntries(Object.entries(t).filter(([r,i])=>Object.hasOwn(to,r)).map(([r,i])=>i===!1?[r,Lr]:[r,i]))),metaDataUpdater:(n=t.metaDataUpdater)!=null?n:ac,deepmerge:e,useImplicitDefaultMerging:(o=t.enableImplicitDefaultMerging)!=null?o:!1,actions:Nt}}function Dr(t,e,n){if(t.length===0)return;if(t.length===1)return no(t,e,n);const o=Pr(t[0]);if(o!==0&&o!==5){for(let r=1;r<t.length;r++)if(Pr(t[r])!==o)return no(t,e,n)}switch(o){case 1:return vc(t,e,n);case 2:return wc(t,e,n);case 3:return xc(t,e,n);case 4:return _c(t,e,n);default:return no(t,e,n)}}function vc(t,e,n){const o=e.mergeFunctions.mergeRecords(t,e,n);return o===Nt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):o}function wc(t,e,n){const o=e.mergeFunctions.mergeArrays(t,e,n);return o===Nt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):o}function xc(t,e,n){const o=e.mergeFunctions.mergeSets(t,e,n);return o===Nt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):o}function _c(t,e,n){const o=e.mergeFunctions.mergeMaps(t,e,n);return o===Nt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):o}function no(t,e,n){const o=e.mergeFunctions.mergeOthers(t,e,n);return o===Nt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):o}function oo(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],r=t[o];o!=="constructor"&&typeof r=="function"&&(t[o]=r.bind(t))}return t}function Ec(t,e){return n=>{if(t.isOpen()){const o=t.el&&n.currentTarget===t.el;(!Z(e)&&n.currentTarget.matches(e)||o)&&t.tour.next()}}}function Sc(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const o=Ec(t,n);let r=null;if(!Z(n)&&(r=document.querySelector(n),!r))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);r?(r.addEventListener(e,o),t.on("destroy",()=>r.removeEventListener(e,o))):(document.body.addEventListener(e,o,!0),t.on("destroy",()=>document.body.removeEventListener(e,o,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class Oc{constructor(e){}}class Tc{constructor(e,n){}}function Fr(t){return!Ye(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function $c(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(Wt(n.element)&&(n.element=n.element.call(t)),Ye(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function jr(t){return t==null?!0:!t.element||!t.on}function Br(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)})}const xe=Math.min,ee=Math.max,dn=Math.round,hn=Math.floor,Ht=t=>({x:t,y:t}),Cc={left:"right",right:"left",bottom:"top",top:"bottom"},Ic={start:"end",end:"start"};function ro(t,e,n){return ee(t,xe(e,n))}function _e(t,e){return typeof t=="function"?t(e):t}function ne(t){return t.split("-")[0]}function pn(t){return t.split("-")[1]}function io(t){return t==="x"?"y":"x"}function so(t){return t==="y"?"height":"width"}function gn(t){return["top","bottom"].includes(ne(t))?"y":"x"}function lo(t){return io(gn(t))}function Rc(t,e,n){n===void 0&&(n=!1);const o=pn(t),r=lo(t),i=so(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=mn(s)),[s,mn(s)]}function Ac(t){const e=mn(t);return[co(t),e,co(e)]}function co(t){return t.replace(/start|end/g,e=>Ic[e])}function Pc(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}function kc(t,e,n,o){const r=pn(t);let i=Pc(ne(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(co)))),i}function mn(t){return t.replace(/left|right|bottom|top/g,e=>Cc[e])}function Mc(t){return tt({top:0,right:0,bottom:0,left:0},t)}function Wr(t){return typeof t!="number"?Mc(t):{top:t,right:t,bottom:t,left:t}}function bn(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}const Lc=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Dc=["mainAxis","crossAxis","limiter"];function Nr(t,e,n){let{reference:o,floating:r}=t;const i=gn(e),s=lo(e),l=so(s),c=ne(e),a=i==="y",f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:h};break;case"left":p={x:o.x-r.width,y:h};break;default:p={x:o.x,y:o.y}}switch(pn(e)){case"start":p[s]-=d*(n&&a?-1:1);break;case"end":p[s]+=d*(n&&a?-1:1);break}return p}const Fc=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Nr(a,o,c),d=o,p={},m=0;for(let y=0;y<l.length;y++){const{name:_,fn:w}=l[y],{x,y:S,data:b,reset:g}=await w({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,h=S??h,p=tt({},p,{[_]:tt({},p[_],b)}),g&&m<=50&&(m++,typeof g=="object"&&(g.placement&&(d=g.placement),g.rects&&(a=g.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):g.rects),{x:f,y:h}=Nr(a,d,c)),y=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:p}};async function Hr(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=_e(e,t),m=Wr(p),y=l[d?h==="floating"?"reference":"floating":h],_=bn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),w=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},b=bn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:x,strategy:c}):w);return{top:(_.top-b.top+m.top)/S.y,bottom:(b.bottom-_.bottom+m.bottom)/S.y,left:(_.left-b.left+m.left)/S.x,right:(b.right-_.right+m.right)/S.x}}const jc=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:f=0}=_e(t,e)||{};if(a==null)return{};const h=Wr(f),d={x:n,y:o},p=lo(r),m=so(p),y=await s.getDimensions(a),_=p==="y",w=_?"top":"left",x=_?"bottom":"right",S=_?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],g=d[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let P=O?O[S]:0;(!P||!await(s.isElement==null?void 0:s.isElement(O)))&&(P=l.floating[S]||i.floating[m]);const V=b/2-g/2,R=P/2-y[m]/2-1,B=xe(h[w],R),N=xe(h[x],R),U=B,A=P-y[m]-N,$=P/2-y[m]/2+V,q=ro(U,$,A),H=!c.arrow&&pn(r)!=null&&$!==q&&i.reference[m]/2-($<U?B:N)-y[m]/2<0,W=H?$<U?$-U:$-A:0;return{[p]:d[p]+W,data:tt({[p]:q,centerOffset:$-q-W},H&&{alignmentOffset:W}),reset:H}}}),Bc=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:a}=e,f=_e(t,e),{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:_=!0}=f,w=Ar(f,Lc);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=ne(r),S=ne(l)===l,b=await(c.isRTL==null?void 0:c.isRTL(a.floating)),g=p||(S||!_?[mn(l)]:Ac(l));!p&&y!=="none"&&g.push(...kc(l,_,y,b));const O=[l,...g],P=await Hr(e,w),V=[];let R=((o=i.flip)==null?void 0:o.overflows)||[];if(h&&V.push(P[x]),d){const A=Rc(r,s,b);V.push(P[A[0]],P[A[1]])}if(R=[...R,{placement:r,overflows:V}],!V.every(A=>A<=0)){var B,N;const A=(((B=i.flip)==null?void 0:B.index)||0)+1,$=O[A];if($)return{data:{index:A,overflows:R},reset:{placement:$}};let q=(N=R.filter(H=>H.overflows[0]<=0).sort((H,W)=>H.overflows[1]-W.overflows[1])[0])==null?void 0:N.placement;if(!q)switch(m){case"bestFit":{var U;const H=(U=R.map(W=>[W.placement,W.overflows.filter(et=>et>0).reduce((et,_t)=>et+_t,0)]).sort((W,et)=>W[1]-et[1])[0])==null?void 0:U[0];H&&(q=H);break}case"initialPlacement":q=l;break}if(r!==q)return{reset:{placement:q}}}return{}}}},Wc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,i=_e(t,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:w=>{let{x,y:S}=w;return{x,y:S}}}}=i,a=Ar(i,Dc),f={x:n,y:o},h=await Hr(e,a),d=gn(ne(r)),p=io(d);let m=f[p],y=f[d];if(s){const w=p==="y"?"top":"left",x=p==="y"?"bottom":"right",S=m+h[w],b=m-h[x];m=ro(S,m,b)}if(l){const w=d==="y"?"top":"left",x=d==="y"?"bottom":"right",S=y+h[w],b=y-h[x];y=ro(S,y,b)}const _=c.fn(tt({},e,{[p]:m,[d]:y}));return tt({},_,{data:{x:_.x-n,y:_.y-o}})}}},Nc=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:l=0,mainAxis:c=!0,crossAxis:a=!0}=_e(t,e),f={x:n,y:o},h=gn(r),d=io(h);let p=f[d],m=f[h];const y=_e(l,e),_=typeof y=="number"?{mainAxis:y,crossAxis:0}:tt({mainAxis:0,crossAxis:0},y);if(c){const S=d==="y"?"height":"width",b=i.reference[d]-i.floating[S]+_.mainAxis,g=i.reference[d]+i.reference[S]-_.mainAxis;p<b?p=b:p>g&&(p=g)}if(a){var w,x;const S=d==="y"?"width":"height",b=["top","left"].includes(ne(r)),g=i.reference[h]-i.floating[S]+(b&&((w=s.offset)==null?void 0:w[h])||0)+(b?0:_.crossAxis),O=i.reference[h]+i.reference[S]+(b?0:((x=s.offset)==null?void 0:x[h])||0)-(b?_.crossAxis:0);m<g?m=g:m>O&&(m=O)}return{[d]:p,[h]:m}}}};function Ee(t){return Vr(t)?(t.nodeName||"").toLowerCase():"#document"}function st(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function $t(t){var e;return(e=(Vr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Vr(t){return t instanceof Node||t instanceof st(t).Node}function vt(t){return t instanceof Element||t instanceof st(t).Element}function wt(t){return t instanceof HTMLElement||t instanceof st(t).HTMLElement}function Ur(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof st(t).ShadowRoot}function ze(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function Hc(t){return["table","td","th"].includes(Ee(t))}function ao(t){const e=uo(),n=ht(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Vc(t){let e=Vt(t);for(;wt(e)&&!Se(e);){if(ao(e))return e;e=Vt(e)}return null}function uo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Se(t){return["html","body","#document"].includes(Ee(t))}function ht(t){return st(t).getComputedStyle(t)}function yn(t){return vt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vt(t){if(Ee(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ur(t)&&t.host||$t(t);return Ur(e)?e.host:e}function qr(t){const e=Vt(t);return Se(e)?t.ownerDocument?t.ownerDocument.body:t.body:wt(e)&&ze(e)?e:qr(e)}function Ke(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=qr(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=st(r);return i?e.concat(s,s.visualViewport||[],ze(r)?r:[],s.frameElement&&n?Ke(s.frameElement):[]):e.concat(r,Ke(r,[],n))}function Yr(t){const e=ht(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=wt(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,l=dn(n)!==i||dn(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function fo(t){return vt(t)?t:t.contextElement}function Oe(t){const e=fo(t);if(!wt(e))return Ht(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Yr(e);let s=(i?dn(n.width):n.width)/o,l=(i?dn(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Uc=Ht(0);function zr(t){const e=st(t);return!uo()||!e.visualViewport?Uc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qc(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==st(t)?!1:e}function oe(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=fo(t);let s=Ht(1);e&&(o?vt(o)&&(s=Oe(o)):s=Oe(t));const l=qc(i,n,o)?zr(i):Ht(0);let c=(r.left+l.x)/s.x,a=(r.top+l.y)/s.y,f=r.width/s.x,h=r.height/s.y;if(i){const d=st(i),p=o&&vt(o)?st(o):o;let m=d,y=m.frameElement;for(;y&&o&&p!==m;){const _=Oe(y),w=y.getBoundingClientRect(),x=ht(y),S=w.left+(y.clientLeft+parseFloat(x.paddingLeft))*_.x,b=w.top+(y.clientTop+parseFloat(x.paddingTop))*_.y;c*=_.x,a*=_.y,f*=_.x,h*=_.y,c+=S,a+=b,m=st(y),y=m.frameElement}}return bn({width:f,height:h,x:c,y:a})}const Yc=[":popover-open",":modal"];function ho(t){return Yc.some(e=>{try{return t.matches(e)}catch{return!1}})}function zc(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=$t(o),l=e?ho(e.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},a=Ht(1);const f=Ht(0),h=wt(o);if((h||!h&&!i)&&((Ee(o)!=="body"||ze(s))&&(c=yn(o)),wt(o))){const d=oe(o);a=Oe(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function Kc(t){return Array.from(t.getClientRects())}function Kr(t){return oe($t(t)).left+yn(t).scrollLeft}function Jc(t){const e=$t(t),n=yn(t),o=t.ownerDocument.body,r=ee(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=ee(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Kr(t);const l=-n.scrollTop;return ht(o).direction==="rtl"&&(s+=ee(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function Xc(t,e){const n=st(t),o=$t(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const a=uo();(!a||a&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function Gc(t,e){const n=oe(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=wt(t)?Oe(t):Ht(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=r*i.x,a=o*i.y;return{width:s,height:l,x:c,y:a}}function Jr(t,e,n){let o;if(e==="viewport")o=Xc(t,n);else if(e==="document")o=Jc($t(t));else if(vt(e))o=Gc(e,n);else{const r=zr(t);o=tt({},e,{x:e.x-r.x,y:e.y-r.y})}return bn(o)}function Xr(t,e){const n=Vt(t);return n===e||!vt(n)||Se(n)?!1:ht(n).position==="fixed"||Xr(n,e)}function Zc(t,e){const n=e.get(t);if(n)return n;let o=Ke(t,[],!1).filter(l=>vt(l)&&Ee(l)!=="body"),r=null;const i=ht(t).position==="fixed";let s=i?Vt(t):t;for(;vt(s)&&!Se(s);){const l=ht(s),c=ao(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&r&&["absolute","fixed"].includes(r.position)||ze(s)&&!c&&Xr(t,s))?o=o.filter(a=>a!==s):r=l,s=Vt(s)}return e.set(t,o),o}function Qc(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[...n==="clippingAncestors"?ho(e)?[]:Zc(e,this._c):[].concat(n),o],s=i[0],l=i.reduce((c,a)=>{const f=Jr(e,a,r);return c.top=ee(f.top,c.top),c.right=xe(f.right,c.right),c.bottom=xe(f.bottom,c.bottom),c.left=ee(f.left,c.left),c},Jr(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ta(t){const{width:e,height:n}=Yr(t);return{width:e,height:n}}function ea(t,e,n){const o=wt(e),r=$t(e),i=n==="fixed",s=oe(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Ht(0);if(o||!o&&!i)if((Ee(e)!=="body"||ze(r))&&(l=yn(e)),o){const h=oe(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else r&&(c.x=Kr(r));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function po(t){return ht(t).position==="static"}function Gr(t,e){return!wt(t)||ht(t).position==="fixed"?null:e?e(t):t.offsetParent}function Zr(t,e){const n=st(t);if(ho(t))return n;if(!wt(t)){let r=Vt(t);for(;r&&!Se(r);){if(vt(r)&&!po(r))return r;r=Vt(r)}return n}let o=Gr(t,e);for(;o&&Hc(o)&&po(o);)o=Gr(o,e);return o&&Se(o)&&po(o)&&!ao(o)?n:o||Vc(t)||n}const na=async function(t){const e=this.getOffsetParent||Zr,n=this.getDimensions,o=await n(t.floating);return{reference:ea(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function oa(t){return ht(t).direction==="rtl"}const ra={convertOffsetParentRelativeRectToViewportRelativeRect:zc,getDocumentElement:$t,getClippingRect:Qc,getOffsetParent:Zr,getElementRects:na,getClientRects:Kc,getDimensions:ta,getScale:Oe,isElement:vt,isRTL:oa};function ia(t,e){let n=null,o;const r=$t(t);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:a,top:f,width:h,height:d}=t.getBoundingClientRect();if(l||e(),!h||!d)return;const p=hn(f),m=hn(r.clientWidth-(a+h)),y=hn(r.clientHeight-(f+d)),_=hn(a),w={rootMargin:-p+"px "+-m+"px "+-y+"px "+-_+"px",threshold:ee(0,xe(1,c))||1};let x=!0;function S(b){const g=b[0].intersectionRatio;if(g!==c){if(!x)return s();g?s(!1,g):o=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,tt({},w,{root:r.ownerDocument}))}catch{n=new IntersectionObserver(S,w)}n.observe(t)}return s(!0),i}function sa(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=fo(t),f=r||i?[...a?Ke(a):[],...Ke(e)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=a&&l?ia(a,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(e)})),n()}),a&&!c&&p.observe(a),p.observe(e));let m,y=c?oe(t):null;c&&_();function _(){const w=oe(t);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&n(),y=w,m=requestAnimationFrame(_)}return n(),()=>{var w;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const la=Wc,ca=Bc,aa=jc,ua=Nc,fa=(t,e,n)=>{const o=new Map,r=tt({platform:ra},n),i=tt({},r.platform,{_c:o});return Fc(t,e,tt({},r,{platform:i}))};function da(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const o=ya(e,t),r=jr(e);return r&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=sa(n,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}ga(n,t,o,r)}),t.target=e.element,o}function ha(t,e){return{floatingUIOptions:eo(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function pa(t){t.cleanup&&t.cleanup(),t.cleanup=null}function ga(t,e,n,o){return fa(t,e.el,n).then(ma(e,o)).then(r=>new Promise(i=>{setTimeout(()=>i(r),300)})).then(r=>{r!=null&&r.el&&r.el.focus({preventScroll:!0})})}function ma(t,e){return({x:n,y:o,placement:r,middlewareData:i})=>(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:`${n}px`,top:`${o}px`}),t.el.dataset.popperPlacement=r,ba(t.el,i)),t)}function ba(t,e){const n=t.querySelector(".shepherd-arrow");if(qe(n)&&e.arrow){const{x:o,y:r}=e.arrow;Object.assign(n.style,{left:o!=null?`${o}px`:"",top:r!=null?`${r}px`:""})}}function ya(t,e){const n={strategy:"absolute"};n.middleware=[];const o=va(e);return jr(t)||(n.middleware.push(ca(),la({limiter:ua(),crossAxis:!0})),o&&n.middleware.push(aa({element:o})),n.placement=t.on),eo(e.options.floatingUIOptions||{},n)}function va(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function lt(){}function wa(t,e){for(const n in e)t[n]=e[n];return t}function Qr(t){return t()}function ti(){return Object.create(null)}function Je(t){t.forEach(Qr)}function go(t){return typeof t=="function"}function Ct(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function xa(t){return Object.keys(t).length===0}function Te(t,e){t.appendChild(e)}function pt(t,e,n){t.insertBefore(e,n||null)}function at(t){t.parentNode&&t.parentNode.removeChild(t)}function _a(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function xt(t){return document.createElement(t)}function ei(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ni(t){return document.createTextNode(t)}function vn(){return ni(" ")}function Ea(){return ni("")}function wn(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function F(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Sa=["width","height"];function oi(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)e[o]==null?t.removeAttribute(o):o==="style"?t.style.cssText=e[o]:o==="__value"?t.value=t[o]=e[o]:n[o]&&n[o].set&&Sa.indexOf(o)===-1?t[o]=e[o]:F(t,o,e[o])}function Oa(t){return Array.from(t.childNodes)}function $e(t,e,n){t.classList.toggle(e,!!n)}let Xe;function Ge(t){Xe=t}function ri(){if(!Xe)throw new Error("Function called outside component initialization");return Xe}function Ta(t){ri().$$.on_mount.push(t)}function mo(t){ri().$$.after_update.push(t)}const Ce=[],Ie=[];let Re=[];const ii=[],$a=Promise.resolve();let bo=!1;function Ca(){bo||(bo=!0,$a.then(si))}function yo(t){Re.push(t)}const vo=new Set;let Ae=0;function si(){if(Ae!==0)return;const t=Xe;do{try{for(;Ae<Ce.length;){const e=Ce[Ae];Ae++,Ge(e),Ia(e.$$)}}catch(e){throw Ce.length=0,Ae=0,e}for(Ge(null),Ce.length=0,Ae=0;Ie.length;)Ie.pop()();for(let e=0;e<Re.length;e+=1){const n=Re[e];vo.has(n)||(vo.add(n),n())}Re.length=0}while(Ce.length);for(;ii.length;)ii.pop()();bo=!1,vo.clear(),Ge(t)}function Ia(t){if(t.fragment!==null){t.update(),Je(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(yo)}}function Ra(t){const e=[],n=[];Re.forEach(o=>t.indexOf(o)===-1?e.push(o):n.push(o)),n.forEach(o=>o()),Re=e}const xn=new Set;let re;function ie(){re={r:0,c:[],p:re}}function se(){re.r||Je(re.c),re=re.p}function L(t,e){t&&t.i&&(xn.delete(t),t.i(e))}function z(t,e,n,o){if(t&&t.o){if(xn.has(t))return;xn.add(t),re.c.push(()=>{xn.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}else o&&o()}function li(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Aa(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const s=t[i],l=e[i];if(l){for(const c in s)c in l||(o[c]=1);for(const c in l)r[c]||(n[c]=l[c],r[c]=1);t[i]=l}else for(const c in s)r[c]=1}for(const s in o)s in n||(n[s]=void 0);return n}function le(t){t&&t.c()}function Ut(t,e,n){const{fragment:o,after_update:r}=t.$$;o&&o.m(e,n),yo(()=>{const i=t.$$.on_mount.map(Qr).filter(go);t.$$.on_destroy?t.$$.on_destroy.push(...i):Je(i),t.$$.on_mount=[]}),r.forEach(yo)}function qt(t,e){const n=t.$$;n.fragment!==null&&(Ra(n.after_update),Je(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Pa(t,e){t.$$.dirty[0]===-1&&(Ce.push(t),Ca(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function It(t,e,n,o,r,i,s=null,l=[-1]){const c=Xe;Ge(t);const a=t.$$={fragment:null,ctx:[],props:i,update:lt,not_equal:r,bound:ti(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:ti(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(t,e.props||{},(h,d,...p)=>{const m=p.length?p[0]:d;return a.ctx&&r(a.ctx[h],a.ctx[h]=m)&&(!a.skip_bound&&a.bound[h]&&a.bound[h](m),f&&Pa(t,h)),d}):[],a.update(),f=!0,Je(a.before_update),a.fragment=o?o(a.ctx):!1,e.target){if(e.hydrate){const h=Oa(e.target);a.fragment&&a.fragment.l(h),h.forEach(at)}else a.fragment&&a.fragment.c();e.intro&&L(t.$$.fragment),Ut(t,e.target,e.anchor),si()}Ge(c)}class Rt{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){qt(this,1),this.$destroy=lt}$on(e,n){if(!go(n))return lt;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const r=o.indexOf(n);r!==-1&&o.splice(r,1)}}$set(e){this.$$set&&!xa(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ka="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ka);function Ma(t){let e,n,o,r,i;return{c(){e=xt("button"),F(e,"aria-label",n=t[3]?t[3]:null),F(e,"class",o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],F(e,"tabindex","0"),F(e,"type","button")},m(s,l){pt(s,e,l),e.innerHTML=t[5],r||(i=wn(e,"click",function(){go(t[0])&&t[0].apply(this,arguments)}),r=!0)},p(s,[l]){t=s,l&32&&(e.innerHTML=t[5]),l&8&&n!==(n=t[3]?t[3]:null)&&F(e,"aria-label",n),l&18&&o!==(o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&F(e,"class",o),l&4&&(e.disabled=t[2])},i:lt,o:lt,d(s){s&&at(e),r=!1,i()}}}function La(t,e,n){let{config:o,step:r}=e,i,s,l,c,a,f;function h(d){return Wt(d)?d=d.call(r):d}return t.$$set=d=>{"config"in d&&n(6,o=d.config),"step"in d&&n(7,r=d.step)},t.$$.update=()=>{t.$$.dirty&192&&(n(0,i=o.action?o.action.bind(r.tour):null),n(1,s=o.classes),n(2,l=o.disabled?h(o.disabled):!1),n(3,c=o.label?h(o.label):null),n(4,a=o.secondary),n(5,f=o.text?h(o.text):null))},[i,s,l,c,a,f,o,r]}class Da extends Rt{constructor(e){super(),It(this,e,La,Ma,Ct,{config:6,step:7})}}function ci(t,e,n){const o=t.slice();return o[2]=e[n],o}function ai(t){let e,n,o=li(t[1]),r=[];for(let s=0;s<o.length;s+=1)r[s]=ui(ci(t,o,s));const i=s=>z(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s<r.length;s+=1)r[s].c();e=Ea()},m(s,l){for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(s,l);pt(s,e,l),n=!0},p(s,l){if(l&3){o=li(s[1]);let c;for(c=0;c<o.length;c+=1){const a=ci(s,o,c);r[c]?(r[c].p(a,l),L(r[c],1)):(r[c]=ui(a),r[c].c(),L(r[c],1),r[c].m(e.parentNode,e))}for(ie(),c=o.length;c<r.length;c+=1)i(c);se()}},i(s){if(!n){for(let l=0;l<o.length;l+=1)L(r[l]);n=!0}},o(s){r=r.filter(Boolean);for(let l=0;l<r.length;l+=1)z(r[l]);n=!1},d(s){s&&at(e),_a(r,s)}}}function ui(t){let e,n;return e=new Da({props:{config:t[2],step:t[0]}}),{c(){le(e.$$.fragment)},m(o,r){Ut(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.config=o[2]),r&1&&(i.step=o[0]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){z(e.$$.fragment,o),n=!1},d(o){qt(e,o)}}}function Fa(t){let e,n,o=t[1]&&ai(t);return{c(){e=xt("footer"),o&&o.c(),F(e,"class","shepherd-footer")},m(r,i){pt(r,e,i),o&&o.m(e,null),n=!0},p(r,[i]){r[1]?o?(o.p(r,i),i&2&&L(o,1)):(o=ai(r),o.c(),L(o,1),o.m(e,null)):o&&(ie(),z(o,1,1,()=>{o=null}),se())},i(r){n||(L(o),n=!0)},o(r){z(o),n=!1},d(r){r&&at(e),o&&o.d()}}}function ja(t,e,n){let o,{step:r}=e;return t.$$set=i=>{"step"in i&&n(0,r=i.step)},t.$$.update=()=>{t.$$.dirty&1&&n(1,o=r.options.buttons)},[r,o]}class Ba extends Rt{constructor(e){super(),It(this,e,ja,Fa,Ct,{step:0})}}function Wa(t){let e,n,o,r,i;return{c(){e=xt("button"),n=xt("span"),n.textContent="×",F(n,"aria-hidden","true"),F(e,"aria-label",o=t[0].label?t[0].label:"Close Tour"),F(e,"class","shepherd-cancel-icon"),F(e,"type","button")},m(s,l){pt(s,e,l),Te(e,n),r||(i=wn(e,"click",t[1]),r=!0)},p(s,[l]){l&1&&o!==(o=s[0].label?s[0].label:"Close Tour")&&F(e,"aria-label",o)},i:lt,o:lt,d(s){s&&at(e),r=!1,i()}}}function Na(t,e,n){let{cancelIcon:o,step:r}=e;const i=s=>{s.preventDefault(),r.cancel()};return t.$$set=s=>{"cancelIcon"in s&&n(0,o=s.cancelIcon),"step"in s&&n(2,r=s.step)},[o,i,r]}class Ha extends Rt{constructor(e){super(),It(this,e,Na,Wa,Ct,{cancelIcon:0,step:2})}}function Va(t){let e;return{c(){e=xt("h3"),F(e,"id",t[1]),F(e,"class","shepherd-title")},m(n,o){pt(n,e,o),t[3](e)},p(n,[o]){o&2&&F(e,"id",n[1])},i:lt,o:lt,d(n){n&&at(e),t[3](null)}}}function Ua(t,e,n){let{labelId:o,element:r,title:i}=e;mo(()=>{Wt(i)&&n(2,i=i()),n(0,r.innerHTML=i,r)});function s(l){Ie[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"labelId"in l&&n(1,o=l.labelId),"element"in l&&n(0,r=l.element),"title"in l&&n(2,i=l.title)},[r,o,i,s]}class qa extends Rt{constructor(e){super(),It(this,e,Ua,Va,Ct,{labelId:1,element:0,title:2})}}function fi(t){let e,n;return e=new qa({props:{labelId:t[0],title:t[2]}}),{c(){le(e.$$.fragment)},m(o,r){Ut(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.labelId=o[0]),r&4&&(i.title=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){z(e.$$.fragment,o),n=!1},d(o){qt(e,o)}}}function di(t){let e,n;return e=new Ha({props:{cancelIcon:t[3],step:t[1]}}),{c(){le(e.$$.fragment)},m(o,r){Ut(e,o,r),n=!0},p(o,r){const i={};r&8&&(i.cancelIcon=o[3]),r&2&&(i.step=o[1]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){z(e.$$.fragment,o),n=!1},d(o){qt(e,o)}}}function Ya(t){let e,n,o,r=t[2]&&fi(t),i=t[3]&&t[3].enabled&&di(t);return{c(){e=xt("header"),r&&r.c(),n=vn(),i&&i.c(),F(e,"class","shepherd-header")},m(s,l){pt(s,e,l),r&&r.m(e,null),Te(e,n),i&&i.m(e,null),o=!0},p(s,[l]){s[2]?r?(r.p(s,l),l&4&&L(r,1)):(r=fi(s),r.c(),L(r,1),r.m(e,n)):r&&(ie(),z(r,1,1,()=>{r=null}),se()),s[3]&&s[3].enabled?i?(i.p(s,l),l&8&&L(i,1)):(i=di(s),i.c(),L(i,1),i.m(e,null)):i&&(ie(),z(i,1,1,()=>{i=null}),se())},i(s){o||(L(r),L(i),o=!0)},o(s){z(r),z(i),o=!1},d(s){s&&at(e),r&&r.d(),i&&i.d()}}}function za(t,e,n){let{labelId:o,step:r}=e,i,s;return t.$$set=l=>{"labelId"in l&&n(0,o=l.labelId),"step"in l&&n(1,r=l.step)},t.$$.update=()=>{t.$$.dirty&2&&(n(2,i=r.options.title),n(3,s=r.options.cancelIcon))},[o,r,i,s]}class Ka extends Rt{constructor(e){super(),It(this,e,za,Ya,Ct,{labelId:0,step:1})}}function Ja(t){let e;return{c(){e=xt("div"),F(e,"class","shepherd-text"),F(e,"id",t[1])},m(n,o){pt(n,e,o),t[3](e)},p(n,[o]){o&2&&F(e,"id",n[1])},i:lt,o:lt,d(n){n&&at(e),t[3](null)}}}function Xa(t,e,n){let{descriptionId:o,element:r,step:i}=e;mo(()=>{let{text:l}=i.options;Wt(l)&&(l=l.call(i)),qe(l)?r.appendChild(l):n(0,r.innerHTML=l,r)});function s(l){Ie[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"descriptionId"in l&&n(1,o=l.descriptionId),"element"in l&&n(0,r=l.element),"step"in l&&n(2,i=l.step)},[r,o,i,s]}class Ga extends Rt{constructor(e){super(),It(this,e,Xa,Ja,Ct,{descriptionId:1,element:0,step:2})}}function hi(t){let e,n;return e=new Ka({props:{labelId:t[1],step:t[2]}}),{c(){le(e.$$.fragment)},m(o,r){Ut(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.labelId=o[1]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){z(e.$$.fragment,o),n=!1},d(o){qt(e,o)}}}function pi(t){let e,n;return e=new Ga({props:{descriptionId:t[0],step:t[2]}}),{c(){le(e.$$.fragment)},m(o,r){Ut(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.descriptionId=o[0]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){z(e.$$.fragment,o),n=!1},d(o){qt(e,o)}}}function gi(t){let e,n;return e=new Ba({props:{step:t[2]}}),{c(){le(e.$$.fragment)},m(o,r){Ut(e,o,r),n=!0},p(o,r){const i={};r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){z(e.$$.fragment,o),n=!1},d(o){qt(e,o)}}}function Za(t){let e,n=!Z(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o,r=!Z(t[2].options.text),i,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l,c=n&&hi(t),a=r&&pi(t),f=s&&gi(t);return{c(){e=xt("div"),c&&c.c(),o=vn(),a&&a.c(),i=vn(),f&&f.c(),F(e,"class","shepherd-content")},m(h,d){pt(h,e,d),c&&c.m(e,null),Te(e,o),a&&a.m(e,null),Te(e,i),f&&f.m(e,null),l=!0},p(h,[d]){d&4&&(n=!Z(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?c?(c.p(h,d),d&4&&L(c,1)):(c=hi(h),c.c(),L(c,1),c.m(e,o)):c&&(ie(),z(c,1,1,()=>{c=null}),se()),d&4&&(r=!Z(h[2].options.text)),r?a?(a.p(h,d),d&4&&L(a,1)):(a=pi(h),a.c(),L(a,1),a.m(e,i)):a&&(ie(),z(a,1,1,()=>{a=null}),se()),d&4&&(s=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),s?f?(f.p(h,d),d&4&&L(f,1)):(f=gi(h),f.c(),L(f,1),f.m(e,null)):f&&(ie(),z(f,1,1,()=>{f=null}),se())},i(h){l||(L(c),L(a),L(f),l=!0)},o(h){z(c),z(a),z(f),l=!1},d(h){h&&at(e),c&&c.d(),a&&a.d(),f&&f.d()}}}function Qa(t,e,n){let{descriptionId:o,labelId:r,step:i}=e;return t.$$set=s=>{"descriptionId"in s&&n(0,o=s.descriptionId),"labelId"in s&&n(1,r=s.labelId),"step"in s&&n(2,i=s.step)},[o,r,i]}class tu extends Rt{constructor(e){super(),It(this,e,Qa,Za,Ct,{descriptionId:0,labelId:1,step:2})}}function mi(t){let e;return{c(){e=xt("div"),F(e,"class","shepherd-arrow"),F(e,"data-popper-arrow","")},m(n,o){pt(n,e,o)},d(n){n&&at(e)}}}function eu(t){let e,n,o,r,i,s,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&mi();o=new tu({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let f=[{"aria-describedby":r=Z(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=wa(h,f[d]);return{c(){e=xt("div"),a&&a.c(),n=vn(),le(o.$$.fragment),oi(e,h),$e(e,"shepherd-has-cancel-icon",t[5]),$e(e,"shepherd-has-title",t[6]),$e(e,"shepherd-element",!0)},m(d,p){pt(d,e,p),a&&a.m(e,null),Te(e,n),Ut(o,e,null),t[13](e),s=!0,l||(c=wn(e,"keydown",t[7]),l=!0)},p(d,[p]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?a||(a=mi(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const m={};p&4&&(m.descriptionId=d[2]),p&8&&(m.labelId=d[3]),p&16&&(m.step=d[4]),o.$set(m),oi(e,h=Aa(f,[(!s||p&20&&r!==(r=Z(d[4].options.text)?null:d[2]))&&{"aria-describedby":r},(!s||p&24&&i!==(i=d[4].options.title?d[3]:null))&&{"aria-labelledby":i},p&2&&d[1],{role:"dialog"},{tabindex:"0"}])),$e(e,"shepherd-has-cancel-icon",d[5]),$e(e,"shepherd-has-title",d[6]),$e(e,"shepherd-element",!0)},i(d){s||(L(o.$$.fragment,d),s=!0)},o(d){z(o.$$.fragment,d),s=!1},d(d){d&&at(e),a&&a.d(),qt(o),t[13](null),l=!1,c()}}}const nu=9,ou=27,ru=37,iu=39;function bi(t){return t.split(" ").filter(e=>!!e.length)}function su(t,e,n){let{classPrefix:o,element:r,descriptionId:i,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:h}=e,d,p,m;const y=()=>r;Ta(()=>{n(1,h={[`data-${o}shepherd-step-id`]:f.id}),n(9,l=r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),mo(()=>{m!==f.options.classes&&_()});function _(){w(m),m=f.options.classes,x(m)}function w(g){if(Ye(g)){const O=bi(g);O.length&&r.classList.remove(...O)}}function x(g){if(Ye(g)){const O=bi(g);O.length&&r.classList.add(...O)}}const S=g=>{const{tour:O}=f;switch(g.keyCode){case nu:if(l.length===0){g.preventDefault();break}g.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(g.preventDefault(),a.focus()):document.activeElement===a&&(g.preventDefault(),s.focus());break;case ou:O.options.exitOnEsc&&(g.preventDefault(),g.stopPropagation(),f.cancel());break;case ru:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.back());break;case iu:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.next());break}};function b(g){Ie[g?"unshift":"push"](()=>{r=g,n(0,r)})}return t.$$set=g=>{"classPrefix"in g&&n(11,o=g.classPrefix),"element"in g&&n(0,r=g.element),"descriptionId"in g&&n(2,i=g.descriptionId),"firstFocusableElement"in g&&n(8,s=g.firstFocusableElement),"focusableElements"in g&&n(9,l=g.focusableElements),"labelId"in g&&n(3,c=g.labelId),"lastFocusableElement"in g&&n(10,a=g.lastFocusableElement),"step"in g&&n(4,f=g.step),"dataStepId"in g&&n(1,h=g.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,p=f.options&&f.options.title))},[r,h,i,c,f,d,p,S,s,l,a,o,y,b]}class lu extends Rt{constructor(e){super(),It(this,e,su,eu,Ct,{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 wo extends Qn{constructor(e,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?Fr(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,oo(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){pa(this),qe(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=$c(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return Wt(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new lu({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:n}=this._getResolvedAttachToOptions();Wt(this.options.scrollToHandler)?this.options.scrollToHandler(n):cc(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(e)}_getClassOptions(e){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e.classes?e.classes:"",r=n&&n.classes?n.classes:"",i=[...o.split(" "),...r.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(e={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=eo({},n||{}),this.options=Object.assign({arrow:!0},n,e,ha(n,e));const{when:o}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${Br()}`,o&&Object.keys(o).forEach(r=>{this.on(r,o[r],this)})}_setupElements(){Z(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Sc(this),da(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),o=this.target||document.body;o.classList.add(`${this.classPrefix}shepherd-enabled`),o.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const n=e.target;n&&(e.options.highlightClass&&n.classList.add(e.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),e.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function cu(t){if(t){const{steps:e}=t;e.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&qe(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function au({width:t,height:e,x:n=0,y:o=0,r=0}){const{innerWidth:i,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof r=="number"?{topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}:r;return`M${i},${s}H0V0H${i}V${s}ZM${n+l},${o}a${l},${l},0,0,0-${l},${l}V${e+o-f}a${f},${f},0,0,0,${f},${f}H${t+n-a}a${a},${a},0,0,0,${a}-${a}V${o+c}a${c},${c},0,0,0-${c}-${c}Z`}function uu(t){let e,n,o,r,i;return{c(){e=ei("svg"),n=ei("path"),F(n,"d",t[2]),F(e,"class",o=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){pt(s,e,l),Te(e,n),t[11](e),r||(i=wn(e,"touchmove",t[3]),r=!0)},p(s,[l]){l&4&&F(n,"d",s[2]),l&2&&o!==(o=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&F(e,"class",o)},i:lt,o:lt,d(s){s&&at(e),t[11](null),r=!1,i()}}}function yi(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return e!=="hidden"&&e!=="visible"&&t.scrollHeight>=t.clientHeight?t:yi(t.parentElement)}function fu(t){let e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;for(;n!==window.top;){var o;const s=(o=n)==null?void 0:o.frameElement;if(s){var r,i;const l=s.getBoundingClientRect();e.top+=l.top+((r=l.scrollTop)!=null?r:0),e.left+=l.left+((i=l.scrollLeft)!=null?i:0)}n=n.parent}return e}function du(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,r=n.bottom||o+n.height;if(e){const s=e.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;o=Math.max(o,l),r=Math.min(r,c)}const i=Math.max(r-o,0);return{y:o,height:i}}function hu(t,e,n){let{element:o,openingProperties:r}=e,i=!1,s,l;a();const c=()=>o;function a(){n(4,r={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,i=!1),w()}function h(b=0,g=0,O=0,P=0,V,R){if(R){const{y:B,height:N}=du(R,V),{x:U,width:A,left:$}=R.getBoundingClientRect();n(4,r={width:A+b*2,height:N+b*2,x:(U||$)+O-b,y:B+P-b,r:g})}else a()}function d(b){w(),b.tour.options.useModalOverlay?(x(b),p()):f()}function p(){n(1,i=!0)}const m=b=>{b.preventDefault()},y=b=>{b.stopPropagation()};function _(){window.addEventListener("touchmove",m,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",m,{passive:!1})}function x(b){const{modalOverlayOpeningPadding:g,modalOverlayOpeningRadius:O,modalOverlayOpeningXOffset:P=0,modalOverlayOpeningYOffset:V=0}=b.options,R=fu(b.target),B=yi(b.target),N=()=>{s=void 0,h(g,O,P+R.left,V+R.top,B,b.target),s=requestAnimationFrame(N)};N(),_()}function S(b){Ie[b?"unshift":"push"](()=>{o=b,n(0,o)})}return t.$$set=b=>{"element"in b&&n(0,o=b.element),"openingProperties"in b&&n(4,r=b.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&n(2,l=au(r))},[o,i,l,y,r,c,a,f,h,d,p,S]}class pu extends Rt{constructor(e){super(),It(this,e,hu,uu,Ct,{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]}}class vi extends Qn{constructor(){super(),this.activeTour=void 0,oo(this)}}class gu extends Qn{constructor(e={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,oo(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,e),this.classPrefix=Fr(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(r=>{this.on(r,i=>{i=i||{},i.tour=this,Yt.trigger(r,i)})})(o)}),this._setTourID(e.id),this}addStep(e,n){let o=e;return o instanceof wo?o.tour=this:o=new wo(this,o),Z(n)?this.steps.push(o):this.steps.splice(n,0,o),o}addSteps(e){return Array.isArray(e)&&e.forEach(n=>{this.addStep(n)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;Wt(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(e),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(n=>n.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return Yt.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const n=this.getCurrentStep();this.steps.some((o,r)=>{if(o.id===e)return o.isOpen()&&o.hide(),o.destroy(),this.steps.splice(r,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,n=!0){const o=Ye(e)?this.getById(e):this.steps[e];o&&(this._updateStateBeforeShow(),Wt(o.options.showOn)&&!o.options.showOn()?this._skipStep(o,n):(this.trigger("show",{step:o,previous:this.currentStep}),this.currentStep=o,o.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(o=>o.destroy()),cu(this),this.trigger(e,{index:n}),Yt.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){const o=document.querySelector(".shepherd-modal-overlay-container");o&&(o.remove(),this.modal=null)}qe(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Yt.activeTour=this}setupModal(){this.modal=new pu({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,n){const o=this.steps.indexOf(e);if(o===this.steps.length-1)this.complete();else{const r=n?o+1:o-1;this.show(r,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const n=this.options.tourName||"tour",o=e||Br();this.id=`${n}--${o}`}}const Yt=new vi,wi=typeof window>"u";Yt.Step=wi?Oc:wo,Yt.Tour=wi?Tc:gu;const xo=(t,e)=>e.some(n=>t instanceof n);let xi,_i;function mu(){return xi||(xi=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function bu(){return _i||(_i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const _o=new WeakMap,Eo=new WeakMap,_n=new WeakMap;function yu(t){const e=new Promise((n,o)=>{const r=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{n(ce(t.result)),r()},s=()=>{o(t.error),r()};t.addEventListener("success",i),t.addEventListener("error",s)});return _n.set(e,t),e}function vu(t){if(_o.has(t))return;const e=new Promise((n,o)=>{const r=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{n(),r()},s=()=>{o(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});_o.set(t,e)}let So={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return _o.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ce(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Ei(t){So=t(So)}function wu(t){return bu().includes(t)?function(...e){return t.apply(Oo(this),e),ce(this.request)}:function(...e){return ce(t.apply(Oo(this),e))}}function xu(t){return typeof t=="function"?wu(t):(t instanceof IDBTransaction&&vu(t),xo(t,mu())?new Proxy(t,So):t)}function ce(t){if(t instanceof IDBRequest)return yu(t);if(Eo.has(t))return Eo.get(t);const e=xu(t);return e!==t&&(Eo.set(t,e),_n.set(e,t)),e}const Oo=t=>_n.get(t);function _u(t,e,{blocked:n,upgrade:o,blocking:r,terminated:i}={}){const s=indexedDB.open(t,e),l=ce(s);return o&&s.addEventListener("upgradeneeded",c=>{o(ce(s.result),c.oldVersion,c.newVersion,ce(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),l.then(c=>{i&&c.addEventListener("close",()=>i()),r&&c.addEventListener("versionchange",a=>r(a.oldVersion,a.newVersion,a))}).catch(()=>{}),l}const Eu=["get","getKey","getAll","getAllKeys","count"],Su=["put","add","delete","clear"],To=new Map;function Si(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(To.get(e))return To.get(e);const n=e.replace(/FromIndex$/,""),o=e!==n,r=Su.includes(n);if(!(n in(o?IDBIndex:IDBObjectStore).prototype)||!(r||Eu.includes(n)))return;const i=async function(s,...l){const c=this.transaction(s,r?"readwrite":"readonly");let a=c.store;return o&&(a=a.index(l.shift())),(await Promise.all([a[n](...l),r&&c.done]))[0]};return To.set(e,i),i}Ei(t=>({...t,get:(e,n,o)=>Si(e,n)||t.get(e,n,o),has:(e,n)=>!!Si(e,n)||t.has(e,n)}));const Ou=["continue","continuePrimaryKey","advance"],Oi={},$o=new WeakMap,Ti=new WeakMap,Tu={get(t,e){if(!Ou.includes(e))return t[e];let n=Oi[e];return n||(n=Oi[e]=function(...o){$o.set(this,Ti.get(this)[e](...o))}),n}};async function*$u(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const n=new Proxy(e,Tu);for(Ti.set(n,e),_n.set(n,Oo(e));e;)yield n,e=await($o.get(n)||e.continue()),$o.delete(n)}function $i(t,e){return e===Symbol.asyncIterator&&xo(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&xo(t,[IDBIndex,IDBObjectStore])}Ei(t=>({...t,get(e,n,o){return $i(e,n)?$u:t.get(e,n,o)},has(e,n){return $i(e,n)||t.has(e,n)}}));var Pe,ke,Ze;class Cu{constructor(e,n,o){if(Gn(this,Pe),Gn(this,ke),Gn(this,Ze),jt(this,"tourStateDb"),!e)throw new Error("Shepherd Pro: Missing required apiKey option.");if(!n)throw new Error("Shepherd Pro: Missing required apiPath option.");Zn(this,Pe,e),Zn(this,ke,n),Zn(this,Ze,o)}getConfig(){return{apiKey:Bt(this,Pe),apiPath:Bt(this,ke),properties:Bt(this,Ze)}}async getTourState(){try{const e=await fetch(`${Bt(this,ke)}/api/v1/state`,{headers:{Authorization:`ApiKey ${Bt(this,Pe)}`,"Content-Type":"application/json"},method:"GET"});if(!e.ok)throw new Error("Could not fetch state for tours 🐑");const{data:n}=await e.json();if(this.tourStateDb=await _u("TourState",1,{upgrade(o){o.createObjectStore("tours",{keyPath:"uniqueId"})}}),Array.isArray(n)&&n.length){const o=this.tourStateDb.transaction("tours","readwrite"),r=n.map(i=>o.store.put(i));await Promise.all([...r,o.done])}}catch(e){throw new Error("Error fetching data: "+(e instanceof Error?e.message:"Unknown error"))}}async sendEvents(e){e.data.properties=Bt(this,Ze);try{const n=await fetch(`${Bt(this,ke)}/api/v1/actor`,{headers:{Authorization:`ApiKey ${Bt(this,Pe)}`,"Content-Type":"application/json"},method:"POST",body:JSON.stringify(e)});if(!n.ok)throw new Error("Could not create an event 🐑");const{data:o}=await n.json();return o}catch(n){throw new Error("Error fetching data: "+(n instanceof Error?n.message:"Unknown error"))}}}Pe=new WeakMap,ke=new WeakMap,Ze=new WeakMap;function Iu(t){let e={};if(t.navigator){const n=t.navigator.userAgent;e={...e,$os:Au(t),$browser:Ci(n,t.navigator.vendor,!!t.opera),$referrer:t.document.referrer,$referring_domain:ku(t.document.referrer),$device:Pu(n),$current_url:t.location.href,$host:t.location.host,$pathname:t.location.pathname,$browser_version:Ru(n,t.navigator.vendor,!!t.opera),$screen_height:t.screen.height,$screen_width:t.screen.width,$screen_dpr:t.devicePixelRatio}}return e={...e,$lib:"js",$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:new Date().getTime()/1e3},e}function K(t,e){return t.indexOf(e)>=0}function Ci(t,e,n){return e=e||"",n||K(t," OPR/")?K(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":K(t,"IEMobile")||K(t,"WPDesktop")?"Internet Explorer Mobile":K(t,"SamsungBrowser/")?"Samsung Internet":K(t,"Edge")||K(t,"Edg/")?"Microsoft Edge":K(t,"FBIOS")?"Facebook Mobile":K(t,"Chrome")?"Chrome":K(t,"CriOS")?"Chrome iOS":K(t,"UCWEB")||K(t,"UCBrowser")?"UC Browser":K(t,"FxiOS")?"Firefox iOS":K(e,"Apple")?K(t,"Mobile")?"Mobile Safari":"Safari":K(t,"Android")?"Android Mobile":K(t,"Konqueror")?"Konqueror":K(t,"Firefox")?"Firefox":K(t,"MSIE")||K(t,"Trident/")?"Internet Explorer":K(t,"Gecko")?"Mozilla":""}function Ru(t,e,n){const o={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},r=Ci(t,e,n),i=o[r]||void 0;if(i===void 0)return null;const s=t.match(i);return s?parseFloat(s[s.length-2]):null}function Au(t){const e=t.navigator.userAgent;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""}function Pu(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""}function ku(t){const e=t.split("/");return e.length>=3?e[2]:""}const Mu="https://shepherdpro.com",Co="shepherdPro:userId";class Lu extends Yt.Tour{constructor(e){super(e),jt(this,"events",["active","cancel","complete","show"]),jt(this,"currentUserId",null),this.currentUserId=localStorage.getItem(Co);const{dataRequester:n}=Ii;n&&this.trackedEvents.forEach(o=>this.on(o,r=>{const{tour:i}=r,{id:s,steps:l}=i;let c;if(o!=="active"){const{step:f}=r;f&&(c=l.findIndex(h=>h.id===f.id)+1)}const a={currentUserId:this.currentUserId,eventType:o,journeyData:{id:s,currentStep:c,numberOfSteps:l.length,tourOptions:i.options}};n==null||n.sendEvents({data:a})}))}}class Du extends vi{constructor(){super(),jt(this,"apiKey"),jt(this,"apiPath"),jt(this,"dataRequester"),jt(this,"isProEnabled",!1),jt(this,"properties"),this.Tour=Lu}async init(e,n,o){if(!e)throw new Error("Shepherd Pro: Missing required apiKey option.");if(this.apiKey=e,this.apiPath=n??Mu,this.properties=o??{},this.properties.context=Iu(window),this.apiKey){this.dataRequester=new Cu(this.apiKey,this.apiPath,this.properties);const r=localStorage.getItem(Co),i=[this.dataRequester.getTourState()];r||i.push(this.createNewActor()),await Promise.all(i)}}async createNewActor(){if(!this.dataRequester)return;const e=await this.dataRequester.sendEvents({data:{currentUserId:null,eventType:"setup"}});localStorage.setItem(Co,String(e.actorId))}async isTourEnabled(e){var n;if(!this.dataRequester)return;const o=await((n=this.dataRequester.tourStateDb)==null?void 0:n.get("tours",e));return(o==null?void 0:o.isActive)??!0}}const Ii=new Du,Ri=Object.assign(Ii,Yt),En=At.createContext(void 0),Fu=En.Consumer,ju=()=>{const t=At.useContext(En);if(!t)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:e}=t;return e},Bu=({apiKey:t,apiPath:e,properties:n,children:o})=>{let r=te;return typeof window<"u"&&t&&(r=Ri,Ri.init(t,e,n)),Xi.jsx(En.Provider,{value:{Shepherd:r},children:o})};gt.JourneyMethods=Fu,gt.ShepherdJourneyContext=En,gt.ShepherdJourneyProvider=Bu,gt.useShepherd=ju,Object.defineProperty(gt,Symbol.toStringTag,{value:"Module"})});
|
|
30
|
+
<%s key={someKey} {...props} />`,Bo,ce,hf,ce),zi[ce+Bo]=!0}}return u===o?cf(X):lf(X),X}}function af(u,v,E){return Ji(u,v,E,!0)}function uf(u,v,E){return Ji(u,v,E,!1)}var ff=uf,df=af;Fe.Fragment=o,Fe.jsx=ff,Fe.jsxs=df}()),Fe}process.env.NODE_ENV==="production"?Pn.exports=Xi():Pn.exports=Gi();var Zi=Pn.exports;/*! shepherd.js 13.0.0 */function Qi(t){return t instanceof Element}function je(t){return t instanceof HTMLElement}function kt(t){return typeof t=="function"}function Be(t){return typeof t=="string"}function G(t){return t===void 0}class kn{on(e,n,o,r=!1){var i;return G(this.bindings)&&(this.bindings={}),G(this.bindings[e])&&(this.bindings[e]=[]),(i=this.bindings[e])==null||i.push({handler:n,ctx:o,once:r}),this}once(e,n,o){return this.on(e,n,o,!0)}off(e,n){if(G(this.bindings)||G(this.bindings[e]))return this;if(G(n))delete this.bindings[e];else{var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{if(r.handler===n){var s;(s=this.bindings[e])==null||s.splice(i,1)}})}return this}trigger(e,...n){if(!G(this.bindings)&&this.bindings[e]){var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{const{ctx:s,handler:l,once:c}=r,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[e])==null||f.splice(i,1)}})}return this}}function Q(){return Q=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Q.apply(null,arguments)}function Ho(t,e){if(t==null)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)>=0)continue;n[o]=t[o]}return n}const Mt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};Mt.defaultMerge;function ts(t,e){return e}function Vo(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:os(t)?1:t instanceof Set?3:t instanceof Map?4:5}function es(t){const e=new Set;for(const n of t)for(const o of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(o);return e}function ns(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function Uo(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}const qo=new Set(["[object Object]","[object Module]"]);function os(t){if(!qo.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!qo.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function rs(t,e,n){const o={};for(const r of es(t)){const i=[];for(const c of t)ns(c,r)&&i.push(c[r]);if(i.length===0)continue;const s=e.metaDataUpdater(n,{key:r,parents:t}),l=Ko(i,e,s);l!==Mt.skip&&(r==="__proto__"?Object.defineProperty(o,r,{value:l,configurable:!0,enumerable:!0,writable:!0}):o[r]=l)}return o}function is(t){return t.flat()}function ss(t){return new Set(Uo(t))}function ls(t){return new Map(Uo(t))}function Yo(t){return t.at(-1)}var Mn=Object.freeze({__proto__:null,mergeArrays:is,mergeMaps:ls,mergeOthers:Yo,mergeRecords:rs,mergeSets:ss});function Ln(...t){return cs({})(...t)}function cs(t,e){const n=as(t,o);function o(...r){return Ko(r,n,e)}return o}function as(t,e){var n,o;return{defaultMergeFunctions:Mn,mergeFunctions:Q({},Mn,Object.fromEntries(Object.entries(t).filter(([r,i])=>Object.hasOwn(Mn,r)).map(([r,i])=>i===!1?[r,Yo]:[r,i]))),metaDataUpdater:(n=t.metaDataUpdater)!=null?n:ts,deepmerge:e,useImplicitDefaultMerging:(o=t.enableImplicitDefaultMerging)!=null?o:!1,actions:Mt}}function Ko(t,e,n){if(t.length===0)return;if(t.length===1)return Dn(t,e,n);const o=Vo(t[0]);if(o!==0&&o!==5){for(let r=1;r<t.length;r++)if(Vo(t[r])!==o)return Dn(t,e,n)}switch(o){case 1:return us(t,e,n);case 2:return fs(t,e,n);case 3:return ds(t,e,n);case 4:return hs(t,e,n);default:return Dn(t,e,n)}}function us(t,e,n){const o=e.mergeFunctions.mergeRecords(t,e,n);return o===Mt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):o}function fs(t,e,n){const o=e.mergeFunctions.mergeArrays(t,e,n);return o===Mt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):o}function ds(t,e,n){const o=e.mergeFunctions.mergeSets(t,e,n);return o===Mt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):o}function hs(t,e,n){const o=e.mergeFunctions.mergeMaps(t,e,n);return o===Mt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):o}function Dn(t,e,n){const o=e.mergeFunctions.mergeOthers(t,e,n);return o===Mt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):o}function Fn(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],r=t[o];o!=="constructor"&&typeof r=="function"&&(t[o]=r.bind(t))}return t}function ps(t,e){return n=>{if(t.isOpen()){const o=t.el&&n.currentTarget===t.el;(!G(e)&&n.currentTarget.matches(e)||o)&&t.tour.next()}}}function gs(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const o=ps(t,n);let r=null;if(!G(n)&&(r=document.querySelector(n),!r))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);r?(r.addEventListener(e,o),t.on("destroy",()=>r.removeEventListener(e,o))):(document.body.addEventListener(e,o,!0),t.on("destroy",()=>document.body.removeEventListener(e,o,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class ms{constructor(e){}}class bs{constructor(e,n){}}function zo(t){return!Be(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function ys(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(kt(n.element)&&(n.element=n.element.call(t)),Be(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function Jo(t){return t==null?!0:!t.element||!t.on}function Xo(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)})}const ae=Math.min,Yt=Math.max,en=Math.round,nn=Math.floor,Lt=t=>({x:t,y:t}),vs={left:"right",right:"left",bottom:"top",top:"bottom"},ws={start:"end",end:"start"};function jn(t,e,n){return Yt(t,ae(e,n))}function ue(t,e){return typeof t=="function"?t(e):t}function Kt(t){return t.split("-")[0]}function on(t){return t.split("-")[1]}function Bn(t){return t==="x"?"y":"x"}function Wn(t){return t==="y"?"height":"width"}function rn(t){return["top","bottom"].includes(Kt(t))?"y":"x"}function Nn(t){return Bn(rn(t))}function xs(t,e,n){n===void 0&&(n=!1);const o=on(t),r=Nn(t),i=Wn(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=sn(s)),[s,sn(s)]}function _s(t){const e=sn(t);return[Hn(t),e,Hn(e)]}function Hn(t){return t.replace(/start|end/g,e=>ws[e])}function Es(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}function Ss(t,e,n,o){const r=on(t);let i=Es(Kt(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(Hn)))),i}function sn(t){return t.replace(/left|right|bottom|top/g,e=>vs[e])}function Os(t){return Q({top:0,right:0,bottom:0,left:0},t)}function Go(t){return typeof t!="number"?Os(t):{top:t,right:t,bottom:t,left:t}}function ln(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}const Ts=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],$s=["mainAxis","crossAxis","limiter"];function Zo(t,e,n){let{reference:o,floating:r}=t;const i=rn(e),s=Nn(e),l=Wn(s),c=Kt(e),a=i==="y",f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:h};break;case"left":p={x:o.x-r.width,y:h};break;default:p={x:o.x,y:o.y}}switch(on(e)){case"start":p[s]-=d*(n&&a?-1:1);break;case"end":p[s]+=d*(n&&a?-1:1);break}return p}const Cs=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Zo(a,o,c),d=o,p={},m=0;for(let y=0;y<l.length;y++){const{name:_,fn:w}=l[y],{x,y:S,data:b,reset:g}=await w({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,h=S??h,p=Q({},p,{[_]:Q({},p[_],b)}),g&&m<=50&&(m++,typeof g=="object"&&(g.placement&&(d=g.placement),g.rects&&(a=g.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):g.rects),{x:f,y:h}=Zo(a,d,c)),y=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:p}};async function Qo(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=ue(e,t),m=Go(p),_=l[d?h==="floating"?"reference":"floating":h],w=ln(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(_)))==null||n?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),x=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),b=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},g=ln(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:S,strategy:c}):x);return{top:(w.top-g.top+m.top)/b.y,bottom:(g.bottom-w.bottom+m.bottom)/b.y,left:(w.left-g.left+m.left)/b.x,right:(g.right-w.right+m.right)/b.x}}const Rs=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:f=0}=ue(t,e)||{};if(a==null)return{};const h=Go(f),d={x:n,y:o},p=Nn(r),m=Wn(p),y=await s.getDimensions(a),_=p==="y",w=_?"top":"left",x=_?"bottom":"right",S=_?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],g=d[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let P=O?O[S]:0;(!P||!await(s.isElement==null?void 0:s.isElement(O)))&&(P=l.floating[S]||i.floating[m]);const V=b/2-g/2,I=P/2-y[m]/2-1,B=ae(h[w],I),N=ae(h[x],I),U=B,A=P-y[m]-N,$=P/2-y[m]/2+V,q=jn(U,$,A),H=!c.arrow&&on(r)!=null&&$!==q&&i.reference[m]/2-($<U?B:N)-y[m]/2<0,W=H?$<U?$-U:$-A:0;return{[p]:d[p]+W,data:Q({[p]:q,centerOffset:$-q-W},H&&{alignmentOffset:W}),reset:H}}}),Is=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var o,r;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:a,elements:f}=n,h=ue(e,n),{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:w=!0}=h,x=Ho(h,Ts);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const S=Kt(i),b=Kt(c)===c,g=await(a.isRTL==null?void 0:a.isRTL(f.floating)),O=m||(b||!w?[sn(c)]:_s(c));!m&&_!=="none"&&O.push(...Ss(c,w,_,g));const P=[c,...O],V=await Qo(n,x),I=[];let B=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&I.push(V[S]),p){const $=xs(i,l,g);I.push(V[$[0]],V[$[1]])}if(B=[...B,{placement:i,overflows:I}],!I.every($=>$<=0)){var N,U;const $=(((N=s.flip)==null?void 0:N.index)||0)+1,q=P[$];if(q)return{data:{index:$,overflows:B},reset:{placement:q}};let H=(U=B.filter(W=>W.overflows[0]<=0).sort((W,et)=>W.overflows[1]-et.overflows[1])[0])==null?void 0:U.placement;if(!H)switch(y){case"bestFit":{var A;const W=(A=B.map(et=>[et.placement,et.overflows.filter(_t=>_t>0).reduce((_t,$n)=>_t+$n,0)]).sort((et,_t)=>et[1]-_t[1])[0])==null?void 0:A[0];W&&(H=W);break}case"initialPlacement":H=c;break}if(i!==H)return{reset:{placement:H}}}return{}}}},As=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:o,y:r,placement:i}=n,s=ue(e,n),{mainAxis:l=!0,crossAxis:c=!1,limiter:a={fn:x=>{let{x:S,y:b}=x;return{x:S,y:b}}}}=s,f=Ho(s,$s),h={x:o,y:r},d=await Qo(n,f),p=rn(Kt(i)),m=Bn(p);let y=h[m],_=h[p];if(l){const x=m==="y"?"top":"left",S=m==="y"?"bottom":"right",b=y+d[x],g=y-d[S];y=jn(b,y,g)}if(c){const x=p==="y"?"top":"left",S=p==="y"?"bottom":"right",b=_+d[x],g=_-d[S];_=jn(b,_,g)}const w=a.fn(Q({},n,{[m]:y,[p]:_}));return Q({},w,{data:{x:w.x-o,y:w.y-r}})}}},Ps=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:o,y:r,placement:i,rects:s,middlewareData:l}=n,{offset:c=0,mainAxis:a=!0,crossAxis:f=!0}=ue(e,n),h={x:o,y:r},d=rn(i),p=Bn(d);let m=h[p],y=h[d];const _=ue(c,n),w=typeof _=="number"?{mainAxis:_,crossAxis:0}:Q({mainAxis:0,crossAxis:0},_);if(a){const b=p==="y"?"height":"width",g=s.reference[p]-s.floating[b]+w.mainAxis,O=s.reference[p]+s.reference[b]-w.mainAxis;m<g?m=g:m>O&&(m=O)}if(f){var x,S;const b=p==="y"?"width":"height",g=["top","left"].includes(Kt(i)),O=s.reference[d]-s.floating[b]+(g&&((x=l.offset)==null?void 0:x[d])||0)+(g?0:w.crossAxis),P=s.reference[d]+s.reference[b]+(g?0:((S=l.offset)==null?void 0:S[d])||0)-(g?w.crossAxis:0);y<O?y=O:y>P&&(y=P)}return{[p]:m,[d]:y}}}};function fe(t){return tr(t)?(t.nodeName||"").toLowerCase():"#document"}function rt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Et(t){var e;return(e=(tr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function tr(t){return t instanceof Node||t instanceof rt(t).Node}function mt(t){return t instanceof Element||t instanceof rt(t).Element}function bt(t){return t instanceof HTMLElement||t instanceof rt(t).HTMLElement}function er(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof rt(t).ShadowRoot}function We(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=ft(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function ks(t){return["table","td","th"].includes(fe(t))}function Vn(t){const e=Un(),n=ft(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ms(t){let e=Dt(t);for(;bt(e)&&!de(e);){if(Vn(e))return e;e=Dt(e)}return null}function Un(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function de(t){return["html","body","#document"].includes(fe(t))}function ft(t){return rt(t).getComputedStyle(t)}function cn(t){return mt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dt(t){if(fe(t)==="html")return t;const e=t.assignedSlot||t.parentNode||er(t)&&t.host||Et(t);return er(e)?e.host:e}function nr(t){const e=Dt(t);return de(e)?t.ownerDocument?t.ownerDocument.body:t.body:bt(e)&&We(e)?e:nr(e)}function Ne(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=nr(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=rt(r);return i?e.concat(s,s.visualViewport||[],We(r)?r:[],s.frameElement&&n?Ne(s.frameElement):[]):e.concat(r,Ne(r,[],n))}function or(t){const e=ft(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=bt(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,l=en(n)!==i||en(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function qn(t){return mt(t)?t:t.contextElement}function he(t){const e=qn(t);if(!bt(e))return Lt(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=or(e);let s=(i?en(n.width):n.width)/o,l=(i?en(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Ls=Lt(0);function rr(t){const e=rt(t);return!Un()||!e.visualViewport?Ls:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ds(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==rt(t)?!1:e}function zt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=qn(t);let s=Lt(1);e&&(o?mt(o)&&(s=he(o)):s=he(t));const l=Ds(i,n,o)?rr(i):Lt(0);let c=(r.left+l.x)/s.x,a=(r.top+l.y)/s.y,f=r.width/s.x,h=r.height/s.y;if(i){const d=rt(i),p=o&&mt(o)?rt(o):o;let m=d,y=m.frameElement;for(;y&&o&&p!==m;){const _=he(y),w=y.getBoundingClientRect(),x=ft(y),S=w.left+(y.clientLeft+parseFloat(x.paddingLeft))*_.x,b=w.top+(y.clientTop+parseFloat(x.paddingTop))*_.y;c*=_.x,a*=_.y,f*=_.x,h*=_.y,c+=S,a+=b,m=rt(y),y=m.frameElement}}return ln({width:f,height:h,x:c,y:a})}const Fs=[":popover-open",":modal"];function Yn(t){return Fs.some(e=>{try{return t.matches(e)}catch{return!1}})}function js(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=Et(o),l=e?Yn(e.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},a=Lt(1);const f=Lt(0),h=bt(o);if((h||!h&&!i)&&((fe(o)!=="body"||We(s))&&(c=cn(o)),bt(o))){const d=zt(o);a=he(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function Bs(t){return Array.from(t.getClientRects())}function ir(t){return zt(Et(t)).left+cn(t).scrollLeft}function Ws(t){const e=Et(t),n=cn(t),o=t.ownerDocument.body,r=Yt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Yt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ir(t);const l=-n.scrollTop;return ft(o).direction==="rtl"&&(s+=Yt(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function Ns(t,e){const n=rt(t),o=Et(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const a=Un();(!a||a&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function Hs(t,e){const n=zt(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=bt(t)?he(t):Lt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=r*i.x,a=o*i.y;return{width:s,height:l,x:c,y:a}}function sr(t,e,n){let o;if(e==="viewport")o=Ns(t,n);else if(e==="document")o=Ws(Et(t));else if(mt(e))o=Hs(e,n);else{const r=rr(t);o=Q({},e,{x:e.x-r.x,y:e.y-r.y})}return ln(o)}function lr(t,e){const n=Dt(t);return n===e||!mt(n)||de(n)?!1:ft(n).position==="fixed"||lr(n,e)}function Vs(t,e){const n=e.get(t);if(n)return n;let o=Ne(t,[],!1).filter(l=>mt(l)&&fe(l)!=="body"),r=null;const i=ft(t).position==="fixed";let s=i?Dt(t):t;for(;mt(s)&&!de(s);){const l=ft(s),c=Vn(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||We(s)&&!c&&lr(t,s))?o=o.filter(f=>f!==s):r=l,s=Dt(s)}return e.set(t,o),o}function Us(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?Yn(e)?[]:Vs(e,this._c):[].concat(n),o],l=s[0],c=s.reduce((a,f)=>{const h=sr(e,f,r);return a.top=Yt(h.top,a.top),a.right=ae(h.right,a.right),a.bottom=ae(h.bottom,a.bottom),a.left=Yt(h.left,a.left),a},sr(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function qs(t){const{width:e,height:n}=or(t);return{width:e,height:n}}function Ys(t,e,n){const o=bt(e),r=Et(e),i=n==="fixed",s=zt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Lt(0);if(o||!o&&!i)if((fe(e)!=="body"||We(r))&&(l=cn(e)),o){const h=zt(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else r&&(c.x=ir(r));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function Kn(t){return ft(t).position==="static"}function cr(t,e){return!bt(t)||ft(t).position==="fixed"?null:e?e(t):t.offsetParent}function ar(t,e){const n=rt(t);if(Yn(t))return n;if(!bt(t)){let r=Dt(t);for(;r&&!de(r);){if(mt(r)&&!Kn(r))return r;r=Dt(r)}return n}let o=cr(t,e);for(;o&&ks(o)&&Kn(o);)o=cr(o,e);return o&&de(o)&&Kn(o)&&!Vn(o)?n:o||Ms(t)||n}const Ks=async function(e){const n=this.getOffsetParent||ar,o=this.getDimensions,r=await o(e.floating);return{reference:Ys(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zs(t){return ft(t).direction==="rtl"}const Js={convertOffsetParentRelativeRectToViewportRelativeRect:js,getDocumentElement:Et,getClippingRect:Us,getOffsetParent:ar,getElementRects:Ks,getClientRects:Bs,getDimensions:qs,getScale:he,isElement:mt,isRTL:zs};function Xs(t,e){let n=null,o;const r=Et(t);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:a,top:f,width:h,height:d}=t.getBoundingClientRect();if(l||e(),!h||!d)return;const p=nn(f),m=nn(r.clientWidth-(a+h)),y=nn(r.clientHeight-(f+d)),_=nn(a),x={rootMargin:-p+"px "+-m+"px "+-y+"px "+-_+"px",threshold:Yt(0,ae(1,c))||1};let S=!0;function b(g){const O=g[0].intersectionRatio;if(O!==c){if(!S)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}S=!1}try{n=new IntersectionObserver(b,Q({},x,{root:r.ownerDocument}))}catch{n=new IntersectionObserver(b,x)}n.observe(t)}return s(!0),i}function Gs(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=qn(t),f=r||i?[...a?Ne(a):[],...Ne(e)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=a&&l?Xs(a,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(e)})),n()}),a&&!c&&p.observe(a),p.observe(e));let m,y=c?zt(t):null;c&&_();function _(){const w=zt(t);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&n(),y=w,m=requestAnimationFrame(_)}return n(),()=>{var w;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const Zs=As,Qs=Is,tl=Rs,el=Ps,nl=(t,e,n)=>{const o=new Map,r=Q({platform:Js},n),i=Q({},r.platform,{_c:o});return Cs(t,e,Q({},r,{platform:i}))};function ol(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const o=al(e,t),r=Jo(e);return r&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=Gs(n,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}sl(n,t,o,r)}),t.target=e.element,o}function rl(t,e){return{floatingUIOptions:Ln(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function il(t){t.cleanup&&t.cleanup(),t.cleanup=null}function sl(t,e,n,o){return nl(t,e.el,n).then(ll(e,o)).then(r=>new Promise(i=>{setTimeout(()=>i(r),300)})).then(r=>{r!=null&&r.el&&r.el.focus({preventScroll:!0})})}function ll(t,e){return({x:n,y:o,placement:r,middlewareData:i})=>(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:`${n}px`,top:`${o}px`}),t.el.dataset.popperPlacement=r,cl(t.el,i)),t)}function cl(t,e){const n=t.querySelector(".shepherd-arrow");if(je(n)&&e.arrow){const{x:o,y:r}=e.arrow;Object.assign(n.style,{left:o!=null?`${o}px`:"",top:r!=null?`${r}px`:""})}}function al(t,e){const n={strategy:"absolute"};n.middleware=[];const o=ul(e);return Jo(t)||(n.middleware.push(Qs(),Zs({limiter:el(),crossAxis:!0})),o&&n.middleware.push(tl({element:o})),n.placement=t.on),Ln(e.options.floatingUIOptions||{},n)}function ul(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function it(){}function fl(t,e){for(const n in e)t[n]=e[n];return t}function ur(t){return t()}function fr(){return Object.create(null)}function He(t){t.forEach(ur)}function zn(t){return typeof t=="function"}function St(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function dl(t){return Object.keys(t).length===0}function pe(t,e){t.appendChild(e)}function dt(t,e,n){t.insertBefore(e,n||null)}function ct(t){t.parentNode&&t.parentNode.removeChild(t)}function hl(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function yt(t){return document.createElement(t)}function dr(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function hr(t){return document.createTextNode(t)}function an(){return hr(" ")}function pl(){return hr("")}function un(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function D(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const gl=["width","height"];function pr(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)e[o]==null?t.removeAttribute(o):o==="style"?t.style.cssText=e[o]:o==="__value"?t.value=t[o]=e[o]:n[o]&&n[o].set&&gl.indexOf(o)===-1?t[o]=e[o]:D(t,o,e[o])}function ml(t){return Array.from(t.childNodes)}function ge(t,e,n){t.classList.toggle(e,!!n)}let Ve;function Ue(t){Ve=t}function gr(){if(!Ve)throw new Error("Function called outside component initialization");return Ve}function bl(t){gr().$$.on_mount.push(t)}function Jn(t){gr().$$.after_update.push(t)}const me=[],be=[];let ye=[];const mr=[],yl=Promise.resolve();let Xn=!1;function vl(){Xn||(Xn=!0,yl.then(br))}function Gn(t){ye.push(t)}const Zn=new Set;let ve=0;function br(){if(ve!==0)return;const t=Ve;do{try{for(;ve<me.length;){const e=me[ve];ve++,Ue(e),wl(e.$$)}}catch(e){throw me.length=0,ve=0,e}for(Ue(null),me.length=0,ve=0;be.length;)be.pop()();for(let e=0;e<ye.length;e+=1){const n=ye[e];Zn.has(n)||(Zn.add(n),n())}ye.length=0}while(me.length);for(;mr.length;)mr.pop()();Xn=!1,Zn.clear(),Ue(t)}function wl(t){if(t.fragment!==null){t.update(),He(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Gn)}}function xl(t){const e=[],n=[];ye.forEach(o=>t.indexOf(o)===-1?e.push(o):n.push(o)),n.forEach(o=>o()),ye=e}const fn=new Set;let Jt;function Xt(){Jt={r:0,c:[],p:Jt}}function Gt(){Jt.r||He(Jt.c),Jt=Jt.p}function M(t,e){t&&t.i&&(fn.delete(t),t.i(e))}function Y(t,e,n,o){if(t&&t.o){if(fn.has(t))return;fn.add(t),Jt.c.push(()=>{fn.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}else o&&o()}function yr(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function _l(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const s=t[i],l=e[i];if(l){for(const c in s)c in l||(o[c]=1);for(const c in l)r[c]||(n[c]=l[c],r[c]=1);t[i]=l}else for(const c in s)r[c]=1}for(const s in o)s in n||(n[s]=void 0);return n}function Zt(t){t&&t.c()}function Ft(t,e,n){const{fragment:o,after_update:r}=t.$$;o&&o.m(e,n),Gn(()=>{const i=t.$$.on_mount.map(ur).filter(zn);t.$$.on_destroy?t.$$.on_destroy.push(...i):He(i),t.$$.on_mount=[]}),r.forEach(Gn)}function jt(t,e){const n=t.$$;n.fragment!==null&&(xl(n.after_update),He(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function El(t,e){t.$$.dirty[0]===-1&&(me.push(t),vl(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ot(t,e,n,o,r,i,s=null,l=[-1]){const c=Ve;Ue(t);const a=t.$$={fragment:null,ctx:[],props:i,update:it,not_equal:r,bound:fr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:fr(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(t,e.props||{},(h,d,...p)=>{const m=p.length?p[0]:d;return a.ctx&&r(a.ctx[h],a.ctx[h]=m)&&(!a.skip_bound&&a.bound[h]&&a.bound[h](m),f&&El(t,h)),d}):[],a.update(),f=!0,He(a.before_update),a.fragment=o?o(a.ctx):!1,e.target){if(e.hydrate){const h=ml(e.target);a.fragment&&a.fragment.l(h),h.forEach(ct)}else a.fragment&&a.fragment.c();e.intro&&M(t.$$.fragment),Ft(t,e.target,e.anchor),br()}Ue(c)}class Tt{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){jt(this,1),this.$destroy=it}$on(e,n){if(!zn(n))return it;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const r=o.indexOf(n);r!==-1&&o.splice(r,1)}}$set(e){this.$$set&&!dl(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Sl="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Sl);function Ol(t){let e,n,o,r,i;return{c(){e=yt("button"),D(e,"aria-label",n=t[3]?t[3]:null),D(e,"class",o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],D(e,"tabindex","0"),D(e,"type","button")},m(s,l){dt(s,e,l),e.innerHTML=t[5],r||(i=un(e,"click",function(){zn(t[0])&&t[0].apply(this,arguments)}),r=!0)},p(s,[l]){t=s,l&32&&(e.innerHTML=t[5]),l&8&&n!==(n=t[3]?t[3]:null)&&D(e,"aria-label",n),l&18&&o!==(o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&D(e,"class",o),l&4&&(e.disabled=t[2])},i:it,o:it,d(s){s&&ct(e),r=!1,i()}}}function Tl(t,e,n){let{config:o,step:r}=e,i,s,l,c,a,f;function h(d){return kt(d)?d=d.call(r):d}return t.$$set=d=>{"config"in d&&n(6,o=d.config),"step"in d&&n(7,r=d.step)},t.$$.update=()=>{t.$$.dirty&192&&(n(0,i=o.action?o.action.bind(r.tour):null),n(1,s=o.classes),n(2,l=o.disabled?h(o.disabled):!1),n(3,c=o.label?h(o.label):null),n(4,a=o.secondary),n(5,f=o.text?h(o.text):null))},[i,s,l,c,a,f,o,r]}class $l extends Tt{constructor(e){super(),Ot(this,e,Tl,Ol,St,{config:6,step:7})}}function vr(t,e,n){const o=t.slice();return o[2]=e[n],o}function wr(t){let e,n,o=yr(t[1]),r=[];for(let s=0;s<o.length;s+=1)r[s]=xr(vr(t,o,s));const i=s=>Y(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s<r.length;s+=1)r[s].c();e=pl()},m(s,l){for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(s,l);dt(s,e,l),n=!0},p(s,l){if(l&3){o=yr(s[1]);let c;for(c=0;c<o.length;c+=1){const a=vr(s,o,c);r[c]?(r[c].p(a,l),M(r[c],1)):(r[c]=xr(a),r[c].c(),M(r[c],1),r[c].m(e.parentNode,e))}for(Xt(),c=o.length;c<r.length;c+=1)i(c);Gt()}},i(s){if(!n){for(let l=0;l<o.length;l+=1)M(r[l]);n=!0}},o(s){r=r.filter(Boolean);for(let l=0;l<r.length;l+=1)Y(r[l]);n=!1},d(s){s&&ct(e),hl(r,s)}}}function xr(t){let e,n;return e=new $l({props:{config:t[2],step:t[0]}}),{c(){Zt(e.$$.fragment)},m(o,r){Ft(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.config=o[2]),r&1&&(i.step=o[0]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){jt(e,o)}}}function Cl(t){let e,n,o=t[1]&&wr(t);return{c(){e=yt("footer"),o&&o.c(),D(e,"class","shepherd-footer")},m(r,i){dt(r,e,i),o&&o.m(e,null),n=!0},p(r,[i]){r[1]?o?(o.p(r,i),i&2&&M(o,1)):(o=wr(r),o.c(),M(o,1),o.m(e,null)):o&&(Xt(),Y(o,1,1,()=>{o=null}),Gt())},i(r){n||(M(o),n=!0)},o(r){Y(o),n=!1},d(r){r&&ct(e),o&&o.d()}}}function Rl(t,e,n){let o,{step:r}=e;return t.$$set=i=>{"step"in i&&n(0,r=i.step)},t.$$.update=()=>{t.$$.dirty&1&&n(1,o=r.options.buttons)},[r,o]}class Il extends Tt{constructor(e){super(),Ot(this,e,Rl,Cl,St,{step:0})}}function Al(t){let e,n,o,r,i;return{c(){e=yt("button"),n=yt("span"),n.textContent="×",D(n,"aria-hidden","true"),D(e,"aria-label",o=t[0].label?t[0].label:"Close Tour"),D(e,"class","shepherd-cancel-icon"),D(e,"type","button")},m(s,l){dt(s,e,l),pe(e,n),r||(i=un(e,"click",t[1]),r=!0)},p(s,[l]){l&1&&o!==(o=s[0].label?s[0].label:"Close Tour")&&D(e,"aria-label",o)},i:it,o:it,d(s){s&&ct(e),r=!1,i()}}}function Pl(t,e,n){let{cancelIcon:o,step:r}=e;const i=s=>{s.preventDefault(),r.cancel()};return t.$$set=s=>{"cancelIcon"in s&&n(0,o=s.cancelIcon),"step"in s&&n(2,r=s.step)},[o,i,r]}class kl extends Tt{constructor(e){super(),Ot(this,e,Pl,Al,St,{cancelIcon:0,step:2})}}function Ml(t){let e;return{c(){e=yt("h3"),D(e,"id",t[1]),D(e,"class","shepherd-title")},m(n,o){dt(n,e,o),t[3](e)},p(n,[o]){o&2&&D(e,"id",n[1])},i:it,o:it,d(n){n&&ct(e),t[3](null)}}}function Ll(t,e,n){let{labelId:o,element:r,title:i}=e;Jn(()=>{kt(i)&&n(2,i=i()),n(0,r.innerHTML=i,r)});function s(l){be[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"labelId"in l&&n(1,o=l.labelId),"element"in l&&n(0,r=l.element),"title"in l&&n(2,i=l.title)},[r,o,i,s]}class Dl extends Tt{constructor(e){super(),Ot(this,e,Ll,Ml,St,{labelId:1,element:0,title:2})}}function _r(t){let e,n;return e=new Dl({props:{labelId:t[0],title:t[2]}}),{c(){Zt(e.$$.fragment)},m(o,r){Ft(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.labelId=o[0]),r&4&&(i.title=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){jt(e,o)}}}function Er(t){let e,n;return e=new kl({props:{cancelIcon:t[3],step:t[1]}}),{c(){Zt(e.$$.fragment)},m(o,r){Ft(e,o,r),n=!0},p(o,r){const i={};r&8&&(i.cancelIcon=o[3]),r&2&&(i.step=o[1]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){jt(e,o)}}}function Fl(t){let e,n,o,r=t[2]&&_r(t),i=t[3]&&t[3].enabled&&Er(t);return{c(){e=yt("header"),r&&r.c(),n=an(),i&&i.c(),D(e,"class","shepherd-header")},m(s,l){dt(s,e,l),r&&r.m(e,null),pe(e,n),i&&i.m(e,null),o=!0},p(s,[l]){s[2]?r?(r.p(s,l),l&4&&M(r,1)):(r=_r(s),r.c(),M(r,1),r.m(e,n)):r&&(Xt(),Y(r,1,1,()=>{r=null}),Gt()),s[3]&&s[3].enabled?i?(i.p(s,l),l&8&&M(i,1)):(i=Er(s),i.c(),M(i,1),i.m(e,null)):i&&(Xt(),Y(i,1,1,()=>{i=null}),Gt())},i(s){o||(M(r),M(i),o=!0)},o(s){Y(r),Y(i),o=!1},d(s){s&&ct(e),r&&r.d(),i&&i.d()}}}function jl(t,e,n){let{labelId:o,step:r}=e,i,s;return t.$$set=l=>{"labelId"in l&&n(0,o=l.labelId),"step"in l&&n(1,r=l.step)},t.$$.update=()=>{t.$$.dirty&2&&(n(2,i=r.options.title),n(3,s=r.options.cancelIcon))},[o,r,i,s]}class Bl extends Tt{constructor(e){super(),Ot(this,e,jl,Fl,St,{labelId:0,step:1})}}function Wl(t){let e;return{c(){e=yt("div"),D(e,"class","shepherd-text"),D(e,"id",t[1])},m(n,o){dt(n,e,o),t[3](e)},p(n,[o]){o&2&&D(e,"id",n[1])},i:it,o:it,d(n){n&&ct(e),t[3](null)}}}function Nl(t,e,n){let{descriptionId:o,element:r,step:i}=e;Jn(()=>{let{text:l}=i.options;kt(l)&&(l=l.call(i)),je(l)?r.appendChild(l):n(0,r.innerHTML=l,r)});function s(l){be[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"descriptionId"in l&&n(1,o=l.descriptionId),"element"in l&&n(0,r=l.element),"step"in l&&n(2,i=l.step)},[r,o,i,s]}class Hl extends Tt{constructor(e){super(),Ot(this,e,Nl,Wl,St,{descriptionId:1,element:0,step:2})}}function Sr(t){let e,n;return e=new Bl({props:{labelId:t[1],step:t[2]}}),{c(){Zt(e.$$.fragment)},m(o,r){Ft(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.labelId=o[1]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){jt(e,o)}}}function Or(t){let e,n;return e=new Hl({props:{descriptionId:t[0],step:t[2]}}),{c(){Zt(e.$$.fragment)},m(o,r){Ft(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.descriptionId=o[0]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){jt(e,o)}}}function Tr(t){let e,n;return e=new Il({props:{step:t[2]}}),{c(){Zt(e.$$.fragment)},m(o,r){Ft(e,o,r),n=!0},p(o,r){const i={};r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){Y(e.$$.fragment,o),n=!1},d(o){jt(e,o)}}}function Vl(t){let e,n=!G(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o,r=!G(t[2].options.text),i,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l,c=n&&Sr(t),a=r&&Or(t),f=s&&Tr(t);return{c(){e=yt("div"),c&&c.c(),o=an(),a&&a.c(),i=an(),f&&f.c(),D(e,"class","shepherd-content")},m(h,d){dt(h,e,d),c&&c.m(e,null),pe(e,o),a&&a.m(e,null),pe(e,i),f&&f.m(e,null),l=!0},p(h,[d]){d&4&&(n=!G(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?c?(c.p(h,d),d&4&&M(c,1)):(c=Sr(h),c.c(),M(c,1),c.m(e,o)):c&&(Xt(),Y(c,1,1,()=>{c=null}),Gt()),d&4&&(r=!G(h[2].options.text)),r?a?(a.p(h,d),d&4&&M(a,1)):(a=Or(h),a.c(),M(a,1),a.m(e,i)):a&&(Xt(),Y(a,1,1,()=>{a=null}),Gt()),d&4&&(s=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),s?f?(f.p(h,d),d&4&&M(f,1)):(f=Tr(h),f.c(),M(f,1),f.m(e,null)):f&&(Xt(),Y(f,1,1,()=>{f=null}),Gt())},i(h){l||(M(c),M(a),M(f),l=!0)},o(h){Y(c),Y(a),Y(f),l=!1},d(h){h&&ct(e),c&&c.d(),a&&a.d(),f&&f.d()}}}function Ul(t,e,n){let{descriptionId:o,labelId:r,step:i}=e;return t.$$set=s=>{"descriptionId"in s&&n(0,o=s.descriptionId),"labelId"in s&&n(1,r=s.labelId),"step"in s&&n(2,i=s.step)},[o,r,i]}class ql extends Tt{constructor(e){super(),Ot(this,e,Ul,Vl,St,{descriptionId:0,labelId:1,step:2})}}function $r(t){let e;return{c(){e=yt("div"),D(e,"class","shepherd-arrow"),D(e,"data-popper-arrow","")},m(n,o){dt(n,e,o)},d(n){n&&ct(e)}}}function Yl(t){let e,n,o,r,i,s,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&$r();o=new ql({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let f=[{"aria-describedby":r=G(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=fl(h,f[d]);return{c(){e=yt("div"),a&&a.c(),n=an(),Zt(o.$$.fragment),pr(e,h),ge(e,"shepherd-has-cancel-icon",t[5]),ge(e,"shepherd-has-title",t[6]),ge(e,"shepherd-element",!0)},m(d,p){dt(d,e,p),a&&a.m(e,null),pe(e,n),Ft(o,e,null),t[13](e),s=!0,l||(c=un(e,"keydown",t[7]),l=!0)},p(d,[p]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?a||(a=$r(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const m={};p&4&&(m.descriptionId=d[2]),p&8&&(m.labelId=d[3]),p&16&&(m.step=d[4]),o.$set(m),pr(e,h=_l(f,[(!s||p&20&&r!==(r=G(d[4].options.text)?null:d[2]))&&{"aria-describedby":r},(!s||p&24&&i!==(i=d[4].options.title?d[3]:null))&&{"aria-labelledby":i},p&2&&d[1],{role:"dialog"},{tabindex:"0"}])),ge(e,"shepherd-has-cancel-icon",d[5]),ge(e,"shepherd-has-title",d[6]),ge(e,"shepherd-element",!0)},i(d){s||(M(o.$$.fragment,d),s=!0)},o(d){Y(o.$$.fragment,d),s=!1},d(d){d&&ct(e),a&&a.d(),jt(o),t[13](null),l=!1,c()}}}const Kl=9,zl=27,Jl=37,Xl=39;function Cr(t){return t.split(" ").filter(e=>!!e.length)}function Gl(t,e,n){let{classPrefix:o,element:r,descriptionId:i,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:h}=e,d,p,m;const y=()=>r;bl(()=>{n(1,h={[`data-${o}shepherd-step-id`]:f.id}),n(9,l=r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),Jn(()=>{m!==f.options.classes&&_()});function _(){w(m),m=f.options.classes,x(m)}function w(g){if(Be(g)){const O=Cr(g);O.length&&r.classList.remove(...O)}}function x(g){if(Be(g)){const O=Cr(g);O.length&&r.classList.add(...O)}}const S=g=>{const{tour:O}=f;switch(g.keyCode){case Kl:if(l.length===0){g.preventDefault();break}g.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(g.preventDefault(),a.focus()):document.activeElement===a&&(g.preventDefault(),s.focus());break;case zl:O.options.exitOnEsc&&(g.preventDefault(),g.stopPropagation(),f.cancel());break;case Jl:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.back());break;case Xl:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.next());break}};function b(g){be[g?"unshift":"push"](()=>{r=g,n(0,r)})}return t.$$set=g=>{"classPrefix"in g&&n(11,o=g.classPrefix),"element"in g&&n(0,r=g.element),"descriptionId"in g&&n(2,i=g.descriptionId),"firstFocusableElement"in g&&n(8,s=g.firstFocusableElement),"focusableElements"in g&&n(9,l=g.focusableElements),"labelId"in g&&n(3,c=g.labelId),"lastFocusableElement"in g&&n(10,a=g.lastFocusableElement),"step"in g&&n(4,f=g.step),"dataStepId"in g&&n(1,h=g.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,p=f.options&&f.options.title))},[r,h,i,c,f,d,p,S,s,l,a,o,y,b]}class Zl extends Tt{constructor(e){super(),Ot(this,e,Gl,Yl,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 Qn extends kn{constructor(e,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?zo(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,Fn(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){il(this),je(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=ys(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return kt(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new Zl({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:n}=this._getResolvedAttachToOptions();kt(this.options.scrollToHandler)?this.options.scrollToHandler(n):Qi(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(e)}_getClassOptions(e){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e.classes?e.classes:"",r=n&&n.classes?n.classes:"",i=[...o.split(" "),...r.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(e={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=Ln({},n||{}),this.options=Object.assign({arrow:!0},n,e,rl(n,e));const{when:o}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${Xo()}`,o&&Object.keys(o).forEach(r=>{this.on(r,o[r],this)})}_setupElements(){G(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&gs(this),ol(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),o=this.target||document.body;o.classList.add(`${this.classPrefix}shepherd-enabled`),o.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const n=e.target;n&&(e.options.highlightClass&&n.classList.add(e.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),e.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function Ql(t){if(t){const{steps:e}=t;e.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&je(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function tc({width:t,height:e,x:n=0,y:o=0,r=0}){const{innerWidth:i,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof r=="number"?{topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}:r;return`M${i},${s}H0V0H${i}V${s}ZM${n+l},${o}a${l},${l},0,0,0-${l},${l}V${e+o-f}a${f},${f},0,0,0,${f},${f}H${t+n-a}a${a},${a},0,0,0,${a}-${a}V${o+c}a${c},${c},0,0,0-${c}-${c}Z`}function ec(t){let e,n,o,r,i;return{c(){e=dr("svg"),n=dr("path"),D(n,"d",t[2]),D(e,"class",o=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){dt(s,e,l),pe(e,n),t[11](e),r||(i=un(e,"touchmove",t[3]),r=!0)},p(s,[l]){l&4&&D(n,"d",s[2]),l&2&&o!==(o=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&D(e,"class",o)},i:it,o:it,d(s){s&&ct(e),t[11](null),r=!1,i()}}}function Rr(t){if(!t)return null;const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return n!=="hidden"&&n!=="visible"&&t.scrollHeight>=t.clientHeight?t:Rr(t.parentElement)}function nc(t){let e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;for(;n!==window.top;){var o;const s=(o=n)==null?void 0:o.frameElement;if(s){var r,i;const l=s.getBoundingClientRect();e.top+=l.top+((r=l.scrollTop)!=null?r:0),e.left+=l.left+((i=l.scrollLeft)!=null?i:0)}n=n.parent}return e}function oc(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,r=n.bottom||o+n.height;if(e){const s=e.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;o=Math.max(o,l),r=Math.min(r,c)}const i=Math.max(r-o,0);return{y:o,height:i}}function rc(t,e,n){let{element:o,openingProperties:r}=e,i=!1,s,l;a();const c=()=>o;function a(){n(4,r={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,i=!1),w()}function h(b=0,g=0,O=0,P=0,V,I){if(I){const{y:B,height:N}=oc(I,V),{x:U,width:A,left:$}=I.getBoundingClientRect();n(4,r={width:A+b*2,height:N+b*2,x:(U||$)+O-b,y:B+P-b,r:g})}else a()}function d(b){w(),b.tour.options.useModalOverlay?(x(b),p()):f()}function p(){n(1,i=!0)}const m=b=>{b.preventDefault()},y=b=>{b.stopPropagation()};function _(){window.addEventListener("touchmove",m,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",m,{passive:!1})}function x(b){const{modalOverlayOpeningPadding:g,modalOverlayOpeningRadius:O,modalOverlayOpeningXOffset:P=0,modalOverlayOpeningYOffset:V=0}=b.options,I=nc(b.target),B=Rr(b.target),N=()=>{s=void 0,h(g,O,P+I.left,V+I.top,B,b.target),s=requestAnimationFrame(N)};N(),_()}function S(b){be[b?"unshift":"push"](()=>{o=b,n(0,o)})}return t.$$set=b=>{"element"in b&&n(0,o=b.element),"openingProperties"in b&&n(4,r=b.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&n(2,l=tc(r))},[o,i,l,y,r,c,a,f,h,d,p,S]}class ic extends Tt{constructor(e){super(),Ot(this,e,rc,ec,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]}}class sc extends kn{constructor(){super(),this.activeTour=void 0,Fn(this)}}class lc extends kn{constructor(e={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,Fn(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,e),this.classPrefix=zo(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(r=>{(i=>{this.on(i,s=>{s=s||{},s.tour=this,Qt.trigger(i,s)})})(r)}),this._setTourID(e.id),this}addStep(e,n){let o=e;return o instanceof Qn?o.tour=this:o=new Qn(this,o),G(n)?this.steps.push(o):this.steps.splice(n,0,o),o}addSteps(e){return Array.isArray(e)&&e.forEach(n=>{this.addStep(n)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;kt(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(e),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(n=>n.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return Qt.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const n=this.getCurrentStep();this.steps.some((o,r)=>{if(o.id===e)return o.isOpen()&&o.hide(),o.destroy(),this.steps.splice(r,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,n=!0){const o=Be(e)?this.getById(e):this.steps[e];o&&(this._updateStateBeforeShow(),kt(o.options.showOn)&&!o.options.showOn()?this._skipStep(o,n):(this.trigger("show",{step:o,previous:this.currentStep}),this.currentStep=o,o.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(o=>o.destroy()),Ql(this),this.trigger(e,{index:n}),Qt.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){const o=document.querySelector(".shepherd-modal-overlay-container");o&&(o.remove(),this.modal=null)}je(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Qt.activeTour=this}setupModal(){this.modal=new ic({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,n){const o=this.steps.indexOf(e);if(o===this.steps.length-1)this.complete();else{const r=n?o+1:o-1;this.show(r,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const n=this.options.tourName||"tour",o=e||Xo();this.id=`${n}--${o}`}}const Qt=new sc,Ir=typeof window>"u";Qt.Step=Ir?ms:Qn,Qt.Tour=Ir?bs:lc;var cc=Object.defineProperty,Ar=t=>{throw TypeError(t)},ac=(t,e,n)=>e in t?cc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,we=(t,e,n)=>ac(t,typeof e!="symbol"?e+"":e,n),Pr=(t,e,n)=>e.has(t)||Ar("Cannot "+n),$t=(t,e,n)=>(Pr(t,e,"read from private field"),n?n.call(t):e.get(t)),dn=(t,e,n)=>e.has(t)?Ar("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),hn=(t,e,n,o)=>(Pr(t,e,"write to private field"),e.set(t,n),n);/*! shepherd.js 13.0.0 */function uc(t){return t instanceof Element}function qe(t){return t instanceof HTMLElement}function Bt(t){return typeof t=="function"}function Ye(t){return typeof t=="string"}function Z(t){return t===void 0}class to{on(e,n,o,r=!1){var i;return Z(this.bindings)&&(this.bindings={}),Z(this.bindings[e])&&(this.bindings[e]=[]),(i=this.bindings[e])==null||i.push({handler:n,ctx:o,once:r}),this}once(e,n,o){return this.on(e,n,o,!0)}off(e,n){if(Z(this.bindings)||Z(this.bindings[e]))return this;if(Z(n))delete this.bindings[e];else{var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{if(r.handler===n){var s;(s=this.bindings[e])==null||s.splice(i,1)}})}return this}trigger(e,...n){if(!Z(this.bindings)&&this.bindings[e]){var o;(o=this.bindings[e])==null||o.forEach((r,i)=>{const{ctx:s,handler:l,once:c}=r,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[e])==null||f.splice(i,1)}})}return this}}function tt(){return tt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},tt.apply(null,arguments)}function kr(t,e){if(t==null)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)>=0)continue;n[o]=t[o]}return n}const Wt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};Wt.defaultMerge;function fc(t,e){return e}function Mr(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:pc(t)?1:t instanceof Set?3:t instanceof Map?4:5}function dc(t){const e=new Set;for(const n of t)for(const o of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(o);return e}function hc(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function Lr(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}const Dr=new Set(["[object Object]","[object Module]"]);function pc(t){if(!Dr.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!Dr.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function gc(t,e,n){const o={};for(const r of dc(t)){const i=[];for(const c of t)hc(c,r)&&i.push(c[r]);if(i.length===0)continue;const s=e.metaDataUpdater(n,{key:r,parents:t}),l=jr(i,e,s);l!==Wt.skip&&(r==="__proto__"?Object.defineProperty(o,r,{value:l,configurable:!0,enumerable:!0,writable:!0}):o[r]=l)}return o}function mc(t){return t.flat()}function bc(t){return new Set(Lr(t))}function yc(t){return new Map(Lr(t))}function Fr(t){return t.at(-1)}var eo=Object.freeze({__proto__:null,mergeArrays:mc,mergeMaps:yc,mergeOthers:Fr,mergeRecords:gc,mergeSets:bc});function no(...t){return vc({})(...t)}function vc(t,e){const n=wc(t,o);function o(...r){return jr(r,n,e)}return o}function wc(t,e){var n,o;return{defaultMergeFunctions:eo,mergeFunctions:tt({},eo,Object.fromEntries(Object.entries(t).filter(([r,i])=>Object.hasOwn(eo,r)).map(([r,i])=>i===!1?[r,Fr]:[r,i]))),metaDataUpdater:(n=t.metaDataUpdater)!=null?n:fc,deepmerge:e,useImplicitDefaultMerging:(o=t.enableImplicitDefaultMerging)!=null?o:!1,actions:Wt}}function jr(t,e,n){if(t.length===0)return;if(t.length===1)return oo(t,e,n);const o=Mr(t[0]);if(o!==0&&o!==5){for(let r=1;r<t.length;r++)if(Mr(t[r])!==o)return oo(t,e,n)}switch(o){case 1:return xc(t,e,n);case 2:return _c(t,e,n);case 3:return Ec(t,e,n);case 4:return Sc(t,e,n);default:return oo(t,e,n)}}function xc(t,e,n){const o=e.mergeFunctions.mergeRecords(t,e,n);return o===Wt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):o}function _c(t,e,n){const o=e.mergeFunctions.mergeArrays(t,e,n);return o===Wt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):o}function Ec(t,e,n){const o=e.mergeFunctions.mergeSets(t,e,n);return o===Wt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):o}function Sc(t,e,n){const o=e.mergeFunctions.mergeMaps(t,e,n);return o===Wt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):o}function oo(t,e,n){const o=e.mergeFunctions.mergeOthers(t,e,n);return o===Wt.defaultMerge||e.useImplicitDefaultMerging&&o===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):o}function ro(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],r=t[o];o!=="constructor"&&typeof r=="function"&&(t[o]=r.bind(t))}return t}function Oc(t,e){return n=>{if(t.isOpen()){const o=t.el&&n.currentTarget===t.el;(!Z(e)&&n.currentTarget.matches(e)||o)&&t.tour.next()}}}function Tc(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const o=Oc(t,n);let r=null;if(!Z(n)&&(r=document.querySelector(n),!r))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);r?(r.addEventListener(e,o),t.on("destroy",()=>r.removeEventListener(e,o))):(document.body.addEventListener(e,o,!0),t.on("destroy",()=>document.body.removeEventListener(e,o,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class $c{constructor(e){}}class Cc{constructor(e,n){}}function Br(t){return!Ye(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function Rc(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(Bt(n.element)&&(n.element=n.element.call(t)),Ye(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function Wr(t){return t==null?!0:!t.element||!t.on}function Nr(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)})}const xe=Math.min,te=Math.max,pn=Math.round,gn=Math.floor,Nt=t=>({x:t,y:t}),Ic={left:"right",right:"left",bottom:"top",top:"bottom"},Ac={start:"end",end:"start"};function io(t,e,n){return te(t,xe(e,n))}function _e(t,e){return typeof t=="function"?t(e):t}function ee(t){return t.split("-")[0]}function mn(t){return t.split("-")[1]}function so(t){return t==="x"?"y":"x"}function lo(t){return t==="y"?"height":"width"}function bn(t){return["top","bottom"].includes(ee(t))?"y":"x"}function co(t){return so(bn(t))}function Pc(t,e,n){n===void 0&&(n=!1);const o=mn(t),r=co(t),i=lo(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=yn(s)),[s,yn(s)]}function kc(t){const e=yn(t);return[ao(t),e,ao(e)]}function ao(t){return t.replace(/start|end/g,e=>Ac[e])}function Mc(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}function Lc(t,e,n,o){const r=mn(t);let i=Mc(ee(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(ao)))),i}function yn(t){return t.replace(/left|right|bottom|top/g,e=>Ic[e])}function Dc(t){return tt({top:0,right:0,bottom:0,left:0},t)}function Hr(t){return typeof t!="number"?Dc(t):{top:t,right:t,bottom:t,left:t}}function vn(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}const Fc=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],jc=["mainAxis","crossAxis","limiter"];function Vr(t,e,n){let{reference:o,floating:r}=t;const i=bn(e),s=co(e),l=lo(s),c=ee(e),a=i==="y",f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:h};break;case"left":p={x:o.x-r.width,y:h};break;default:p={x:o.x,y:o.y}}switch(mn(e)){case"start":p[s]-=d*(n&&a?-1:1);break;case"end":p[s]+=d*(n&&a?-1:1);break}return p}const Bc=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Vr(a,o,c),d=o,p={},m=0;for(let y=0;y<l.length;y++){const{name:_,fn:w}=l[y],{x,y:S,data:b,reset:g}=await w({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,h=S??h,p=tt({},p,{[_]:tt({},p[_],b)}),g&&m<=50&&(m++,typeof g=="object"&&(g.placement&&(d=g.placement),g.rects&&(a=g.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):g.rects),{x:f,y:h}=Vr(a,d,c)),y=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:p}};async function Ur(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=_e(e,t),m=Hr(p),y=l[d?h==="floating"?"reference":"floating":h],_=vn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),w=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},b=vn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:x,strategy:c}):w);return{top:(_.top-b.top+m.top)/S.y,bottom:(b.bottom-_.bottom+m.bottom)/S.y,left:(_.left-b.left+m.left)/S.x,right:(b.right-_.right+m.right)/S.x}}const Wc=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:f=0}=_e(t,e)||{};if(a==null)return{};const h=Hr(f),d={x:n,y:o},p=co(r),m=lo(p),y=await s.getDimensions(a),_=p==="y",w=_?"top":"left",x=_?"bottom":"right",S=_?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],g=d[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let P=O?O[S]:0;(!P||!await(s.isElement==null?void 0:s.isElement(O)))&&(P=l.floating[S]||i.floating[m]);const V=b/2-g/2,I=P/2-y[m]/2-1,B=xe(h[w],I),N=xe(h[x],I),U=B,A=P-y[m]-N,$=P/2-y[m]/2+V,q=io(U,$,A),H=!c.arrow&&mn(r)!=null&&$!==q&&i.reference[m]/2-($<U?B:N)-y[m]/2<0,W=H?$<U?$-U:$-A:0;return{[p]:d[p]+W,data:tt({[p]:q,centerOffset:$-q-W},H&&{alignmentOffset:W}),reset:H}}}),Nc=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:a}=e,f=_e(t,e),{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:_=!0}=f,w=kr(f,Fc);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=ee(r),S=ee(l)===l,b=await(c.isRTL==null?void 0:c.isRTL(a.floating)),g=p||(S||!_?[yn(l)]:kc(l));!p&&y!=="none"&&g.push(...Lc(l,_,y,b));const O=[l,...g],P=await Ur(e,w),V=[];let I=((o=i.flip)==null?void 0:o.overflows)||[];if(h&&V.push(P[x]),d){const A=Pc(r,s,b);V.push(P[A[0]],P[A[1]])}if(I=[...I,{placement:r,overflows:V}],!V.every(A=>A<=0)){var B,N;const A=(((B=i.flip)==null?void 0:B.index)||0)+1,$=O[A];if($)return{data:{index:A,overflows:I},reset:{placement:$}};let q=(N=I.filter(H=>H.overflows[0]<=0).sort((H,W)=>H.overflows[1]-W.overflows[1])[0])==null?void 0:N.placement;if(!q)switch(m){case"bestFit":{var U;const H=(U=I.map(W=>[W.placement,W.overflows.filter(et=>et>0).reduce((et,_t)=>et+_t,0)]).sort((W,et)=>W[1]-et[1])[0])==null?void 0:U[0];H&&(q=H);break}case"initialPlacement":q=l;break}if(r!==q)return{reset:{placement:q}}}return{}}}},Hc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,i=_e(t,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:w=>{let{x,y:S}=w;return{x,y:S}}}}=i,a=kr(i,jc),f={x:n,y:o},h=await Ur(e,a),d=bn(ee(r)),p=so(d);let m=f[p],y=f[d];if(s){const w=p==="y"?"top":"left",x=p==="y"?"bottom":"right",S=m+h[w],b=m-h[x];m=io(S,m,b)}if(l){const w=d==="y"?"top":"left",x=d==="y"?"bottom":"right",S=y+h[w],b=y-h[x];y=io(S,y,b)}const _=c.fn(tt({},e,{[p]:m,[d]:y}));return tt({},_,{data:{x:_.x-n,y:_.y-o}})}}},Vc=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:l=0,mainAxis:c=!0,crossAxis:a=!0}=_e(t,e),f={x:n,y:o},h=bn(r),d=so(h);let p=f[d],m=f[h];const y=_e(l,e),_=typeof y=="number"?{mainAxis:y,crossAxis:0}:tt({mainAxis:0,crossAxis:0},y);if(c){const S=d==="y"?"height":"width",b=i.reference[d]-i.floating[S]+_.mainAxis,g=i.reference[d]+i.reference[S]-_.mainAxis;p<b?p=b:p>g&&(p=g)}if(a){var w,x;const S=d==="y"?"width":"height",b=["top","left"].includes(ee(r)),g=i.reference[h]-i.floating[S]+(b&&((w=s.offset)==null?void 0:w[h])||0)+(b?0:_.crossAxis),O=i.reference[h]+i.reference[S]+(b?0:((x=s.offset)==null?void 0:x[h])||0)-(b?_.crossAxis:0);m<g?m=g:m>O&&(m=O)}return{[d]:p,[h]:m}}}};function Ee(t){return qr(t)?(t.nodeName||"").toLowerCase():"#document"}function st(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ct(t){var e;return(e=(qr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qr(t){return t instanceof Node||t instanceof st(t).Node}function vt(t){return t instanceof Element||t instanceof st(t).Element}function wt(t){return t instanceof HTMLElement||t instanceof st(t).HTMLElement}function Yr(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof st(t).ShadowRoot}function Ke(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function Uc(t){return["table","td","th"].includes(Ee(t))}function uo(t){const e=fo(),n=ht(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function qc(t){let e=Ht(t);for(;wt(e)&&!Se(e);){if(uo(e))return e;e=Ht(e)}return null}function fo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Se(t){return["html","body","#document"].includes(Ee(t))}function ht(t){return st(t).getComputedStyle(t)}function wn(t){return vt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ht(t){if(Ee(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Yr(t)&&t.host||Ct(t);return Yr(e)?e.host:e}function Kr(t){const e=Ht(t);return Se(e)?t.ownerDocument?t.ownerDocument.body:t.body:wt(e)&&Ke(e)?e:Kr(e)}function ze(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Kr(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=st(r);return i?e.concat(s,s.visualViewport||[],Ke(r)?r:[],s.frameElement&&n?ze(s.frameElement):[]):e.concat(r,ze(r,[],n))}function zr(t){const e=ht(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=wt(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,l=pn(n)!==i||pn(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function ho(t){return vt(t)?t:t.contextElement}function Oe(t){const e=ho(t);if(!wt(e))return Nt(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=zr(e);let s=(i?pn(n.width):n.width)/o,l=(i?pn(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Yc=Nt(0);function Jr(t){const e=st(t);return!fo()||!e.visualViewport?Yc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Kc(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==st(t)?!1:e}function ne(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=ho(t);let s=Nt(1);e&&(o?vt(o)&&(s=Oe(o)):s=Oe(t));const l=Kc(i,n,o)?Jr(i):Nt(0);let c=(r.left+l.x)/s.x,a=(r.top+l.y)/s.y,f=r.width/s.x,h=r.height/s.y;if(i){const d=st(i),p=o&&vt(o)?st(o):o;let m=d,y=m.frameElement;for(;y&&o&&p!==m;){const _=Oe(y),w=y.getBoundingClientRect(),x=ht(y),S=w.left+(y.clientLeft+parseFloat(x.paddingLeft))*_.x,b=w.top+(y.clientTop+parseFloat(x.paddingTop))*_.y;c*=_.x,a*=_.y,f*=_.x,h*=_.y,c+=S,a+=b,m=st(y),y=m.frameElement}}return vn({width:f,height:h,x:c,y:a})}const zc=[":popover-open",":modal"];function po(t){return zc.some(e=>{try{return t.matches(e)}catch{return!1}})}function Jc(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=Ct(o),l=e?po(e.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},a=Nt(1);const f=Nt(0),h=wt(o);if((h||!h&&!i)&&((Ee(o)!=="body"||Ke(s))&&(c=wn(o)),wt(o))){const d=ne(o);a=Oe(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function Xc(t){return Array.from(t.getClientRects())}function Xr(t){return ne(Ct(t)).left+wn(t).scrollLeft}function Gc(t){const e=Ct(t),n=wn(t),o=t.ownerDocument.body,r=te(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=te(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Xr(t);const l=-n.scrollTop;return ht(o).direction==="rtl"&&(s+=te(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}function Zc(t,e){const n=st(t),o=Ct(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const a=fo();(!a||a&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:l,y:c}}function Qc(t,e){const n=ne(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=wt(t)?Oe(t):Nt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=r*i.x,a=o*i.y;return{width:s,height:l,x:c,y:a}}function Gr(t,e,n){let o;if(e==="viewport")o=Zc(t,n);else if(e==="document")o=Gc(Ct(t));else if(vt(e))o=Qc(e,n);else{const r=Jr(t);o=tt({},e,{x:e.x-r.x,y:e.y-r.y})}return vn(o)}function Zr(t,e){const n=Ht(t);return n===e||!vt(n)||Se(n)?!1:ht(n).position==="fixed"||Zr(n,e)}function ta(t,e){const n=e.get(t);if(n)return n;let o=ze(t,[],!1).filter(l=>vt(l)&&Ee(l)!=="body"),r=null;const i=ht(t).position==="fixed";let s=i?Ht(t):t;for(;vt(s)&&!Se(s);){const l=ht(s),c=uo(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&r&&["absolute","fixed"].includes(r.position)||Ke(s)&&!c&&Zr(t,s))?o=o.filter(a=>a!==s):r=l,s=Ht(s)}return e.set(t,o),o}function ea(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[...n==="clippingAncestors"?po(e)?[]:ta(e,this._c):[].concat(n),o],s=i[0],l=i.reduce((c,a)=>{const f=Gr(e,a,r);return c.top=te(f.top,c.top),c.right=xe(f.right,c.right),c.bottom=xe(f.bottom,c.bottom),c.left=te(f.left,c.left),c},Gr(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function na(t){const{width:e,height:n}=zr(t);return{width:e,height:n}}function oa(t,e,n){const o=wt(e),r=Ct(e),i=n==="fixed",s=ne(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Nt(0);if(o||!o&&!i)if((Ee(e)!=="body"||Ke(r))&&(l=wn(e)),o){const h=ne(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else r&&(c.x=Xr(r));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function go(t){return ht(t).position==="static"}function Qr(t,e){return!wt(t)||ht(t).position==="fixed"?null:e?e(t):t.offsetParent}function ti(t,e){const n=st(t);if(po(t))return n;if(!wt(t)){let r=Ht(t);for(;r&&!Se(r);){if(vt(r)&&!go(r))return r;r=Ht(r)}return n}let o=Qr(t,e);for(;o&&Uc(o)&&go(o);)o=Qr(o,e);return o&&Se(o)&&go(o)&&!uo(o)?n:o||qc(t)||n}const ra=async function(t){const e=this.getOffsetParent||ti,n=this.getDimensions,o=await n(t.floating);return{reference:oa(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ia(t){return ht(t).direction==="rtl"}const sa={convertOffsetParentRelativeRectToViewportRelativeRect:Jc,getDocumentElement:Ct,getClippingRect:ea,getOffsetParent:ti,getElementRects:ra,getClientRects:Xc,getDimensions:na,getScale:Oe,isElement:vt,isRTL:ia};function la(t,e){let n=null,o;const r=Ct(t);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:a,top:f,width:h,height:d}=t.getBoundingClientRect();if(l||e(),!h||!d)return;const p=gn(f),m=gn(r.clientWidth-(a+h)),y=gn(r.clientHeight-(f+d)),_=gn(a),w={rootMargin:-p+"px "+-m+"px "+-y+"px "+-_+"px",threshold:te(0,xe(1,c))||1};let x=!0;function S(b){const g=b[0].intersectionRatio;if(g!==c){if(!x)return s();g?s(!1,g):o=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,tt({},w,{root:r.ownerDocument}))}catch{n=new IntersectionObserver(S,w)}n.observe(t)}return s(!0),i}function ca(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=ho(t),f=r||i?[...a?ze(a):[],...ze(e)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=a&&l?la(a,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(e)})),n()}),a&&!c&&p.observe(a),p.observe(e));let m,y=c?ne(t):null;c&&_();function _(){const w=ne(t);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&n(),y=w,m=requestAnimationFrame(_)}return n(),()=>{var w;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const aa=Hc,ua=Nc,fa=Wc,da=Vc,ha=(t,e,n)=>{const o=new Map,r=tt({platform:sa},n),i=tt({},r.platform,{_c:o});return Bc(t,e,tt({},r,{platform:i}))};function pa(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const o=wa(e,t),r=Wr(e);return r&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=ca(n,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}ba(n,t,o,r)}),t.target=e.element,o}function ga(t,e){return{floatingUIOptions:no(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function ma(t){t.cleanup&&t.cleanup(),t.cleanup=null}function ba(t,e,n,o){return ha(t,e.el,n).then(ya(e,o)).then(r=>new Promise(i=>{setTimeout(()=>i(r),300)})).then(r=>{r!=null&&r.el&&r.el.focus({preventScroll:!0})})}function ya(t,e){return({x:n,y:o,placement:r,middlewareData:i})=>(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:`${n}px`,top:`${o}px`}),t.el.dataset.popperPlacement=r,va(t.el,i)),t)}function va(t,e){const n=t.querySelector(".shepherd-arrow");if(qe(n)&&e.arrow){const{x:o,y:r}=e.arrow;Object.assign(n.style,{left:o!=null?`${o}px`:"",top:r!=null?`${r}px`:""})}}function wa(t,e){const n={strategy:"absolute"};n.middleware=[];const o=xa(e);return Wr(t)||(n.middleware.push(ua(),aa({limiter:da(),crossAxis:!0})),o&&n.middleware.push(fa({element:o})),n.placement=t.on),no(e.options.floatingUIOptions||{},n)}function xa(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function lt(){}function _a(t,e){for(const n in e)t[n]=e[n];return t}function ei(t){return t()}function ni(){return Object.create(null)}function Je(t){t.forEach(ei)}function mo(t){return typeof t=="function"}function Rt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function Ea(t){return Object.keys(t).length===0}function Te(t,e){t.appendChild(e)}function pt(t,e,n){t.insertBefore(e,n||null)}function at(t){t.parentNode&&t.parentNode.removeChild(t)}function Sa(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function xt(t){return document.createElement(t)}function oi(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ri(t){return document.createTextNode(t)}function xn(){return ri(" ")}function Oa(){return ri("")}function _n(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function F(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Ta=["width","height"];function ii(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)e[o]==null?t.removeAttribute(o):o==="style"?t.style.cssText=e[o]:o==="__value"?t.value=t[o]=e[o]:n[o]&&n[o].set&&Ta.indexOf(o)===-1?t[o]=e[o]:F(t,o,e[o])}function $a(t){return Array.from(t.childNodes)}function $e(t,e,n){t.classList.toggle(e,!!n)}let Xe;function Ge(t){Xe=t}function si(){if(!Xe)throw new Error("Function called outside component initialization");return Xe}function Ca(t){si().$$.on_mount.push(t)}function bo(t){si().$$.after_update.push(t)}const Ce=[],Re=[];let Ie=[];const li=[],Ra=Promise.resolve();let yo=!1;function Ia(){yo||(yo=!0,Ra.then(ci))}function vo(t){Ie.push(t)}const wo=new Set;let Ae=0;function ci(){if(Ae!==0)return;const t=Xe;do{try{for(;Ae<Ce.length;){const e=Ce[Ae];Ae++,Ge(e),Aa(e.$$)}}catch(e){throw Ce.length=0,Ae=0,e}for(Ge(null),Ce.length=0,Ae=0;Re.length;)Re.pop()();for(let e=0;e<Ie.length;e+=1){const n=Ie[e];wo.has(n)||(wo.add(n),n())}Ie.length=0}while(Ce.length);for(;li.length;)li.pop()();yo=!1,wo.clear(),Ge(t)}function Aa(t){if(t.fragment!==null){t.update(),Je(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(vo)}}function Pa(t){const e=[],n=[];Ie.forEach(o=>t.indexOf(o)===-1?e.push(o):n.push(o)),n.forEach(o=>o()),Ie=e}const En=new Set;let oe;function re(){oe={r:0,c:[],p:oe}}function ie(){oe.r||Je(oe.c),oe=oe.p}function L(t,e){t&&t.i&&(En.delete(t),t.i(e))}function K(t,e,n,o){if(t&&t.o){if(En.has(t))return;En.add(t),oe.c.push(()=>{En.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}else o&&o()}function ai(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function ka(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const s=t[i],l=e[i];if(l){for(const c in s)c in l||(o[c]=1);for(const c in l)r[c]||(n[c]=l[c],r[c]=1);t[i]=l}else for(const c in s)r[c]=1}for(const s in o)s in n||(n[s]=void 0);return n}function se(t){t&&t.c()}function Vt(t,e,n){const{fragment:o,after_update:r}=t.$$;o&&o.m(e,n),vo(()=>{const i=t.$$.on_mount.map(ei).filter(mo);t.$$.on_destroy?t.$$.on_destroy.push(...i):Je(i),t.$$.on_mount=[]}),r.forEach(vo)}function Ut(t,e){const n=t.$$;n.fragment!==null&&(Pa(n.after_update),Je(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ma(t,e){t.$$.dirty[0]===-1&&(Ce.push(t),Ia(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function It(t,e,n,o,r,i,s=null,l=[-1]){const c=Xe;Ge(t);const a=t.$$={fragment:null,ctx:[],props:i,update:lt,not_equal:r,bound:ni(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:ni(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(t,e.props||{},(h,d,...p)=>{const m=p.length?p[0]:d;return a.ctx&&r(a.ctx[h],a.ctx[h]=m)&&(!a.skip_bound&&a.bound[h]&&a.bound[h](m),f&&Ma(t,h)),d}):[],a.update(),f=!0,Je(a.before_update),a.fragment=o?o(a.ctx):!1,e.target){if(e.hydrate){const h=$a(e.target);a.fragment&&a.fragment.l(h),h.forEach(at)}else a.fragment&&a.fragment.c();e.intro&&L(t.$$.fragment),Vt(t,e.target,e.anchor),ci()}Ge(c)}class At{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){Ut(this,1),this.$destroy=lt}$on(e,n){if(!mo(n))return lt;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const r=o.indexOf(n);r!==-1&&o.splice(r,1)}}$set(e){this.$$set&&!Ea(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const La="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(La);function Da(t){let e,n,o,r,i;return{c(){e=xt("button"),F(e,"aria-label",n=t[3]?t[3]:null),F(e,"class",o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],F(e,"tabindex","0"),F(e,"type","button")},m(s,l){pt(s,e,l),e.innerHTML=t[5],r||(i=_n(e,"click",function(){mo(t[0])&&t[0].apply(this,arguments)}),r=!0)},p(s,[l]){t=s,l&32&&(e.innerHTML=t[5]),l&8&&n!==(n=t[3]?t[3]:null)&&F(e,"aria-label",n),l&18&&o!==(o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&F(e,"class",o),l&4&&(e.disabled=t[2])},i:lt,o:lt,d(s){s&&at(e),r=!1,i()}}}function Fa(t,e,n){let{config:o,step:r}=e,i,s,l,c,a,f;function h(d){return Bt(d)?d=d.call(r):d}return t.$$set=d=>{"config"in d&&n(6,o=d.config),"step"in d&&n(7,r=d.step)},t.$$.update=()=>{t.$$.dirty&192&&(n(0,i=o.action?o.action.bind(r.tour):null),n(1,s=o.classes),n(2,l=o.disabled?h(o.disabled):!1),n(3,c=o.label?h(o.label):null),n(4,a=o.secondary),n(5,f=o.text?h(o.text):null))},[i,s,l,c,a,f,o,r]}class ja extends At{constructor(e){super(),It(this,e,Fa,Da,Rt,{config:6,step:7})}}function ui(t,e,n){const o=t.slice();return o[2]=e[n],o}function fi(t){let e,n,o=ai(t[1]),r=[];for(let s=0;s<o.length;s+=1)r[s]=di(ui(t,o,s));const i=s=>K(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s<r.length;s+=1)r[s].c();e=Oa()},m(s,l){for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(s,l);pt(s,e,l),n=!0},p(s,l){if(l&3){o=ai(s[1]);let c;for(c=0;c<o.length;c+=1){const a=ui(s,o,c);r[c]?(r[c].p(a,l),L(r[c],1)):(r[c]=di(a),r[c].c(),L(r[c],1),r[c].m(e.parentNode,e))}for(re(),c=o.length;c<r.length;c+=1)i(c);ie()}},i(s){if(!n){for(let l=0;l<o.length;l+=1)L(r[l]);n=!0}},o(s){r=r.filter(Boolean);for(let l=0;l<r.length;l+=1)K(r[l]);n=!1},d(s){s&&at(e),Sa(r,s)}}}function di(t){let e,n;return e=new ja({props:{config:t[2],step:t[0]}}),{c(){se(e.$$.fragment)},m(o,r){Vt(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.config=o[2]),r&1&&(i.step=o[0]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){Ut(e,o)}}}function Ba(t){let e,n,o=t[1]&&fi(t);return{c(){e=xt("footer"),o&&o.c(),F(e,"class","shepherd-footer")},m(r,i){pt(r,e,i),o&&o.m(e,null),n=!0},p(r,[i]){r[1]?o?(o.p(r,i),i&2&&L(o,1)):(o=fi(r),o.c(),L(o,1),o.m(e,null)):o&&(re(),K(o,1,1,()=>{o=null}),ie())},i(r){n||(L(o),n=!0)},o(r){K(o),n=!1},d(r){r&&at(e),o&&o.d()}}}function Wa(t,e,n){let o,{step:r}=e;return t.$$set=i=>{"step"in i&&n(0,r=i.step)},t.$$.update=()=>{t.$$.dirty&1&&n(1,o=r.options.buttons)},[r,o]}class Na extends At{constructor(e){super(),It(this,e,Wa,Ba,Rt,{step:0})}}function Ha(t){let e,n,o,r,i;return{c(){e=xt("button"),n=xt("span"),n.textContent="×",F(n,"aria-hidden","true"),F(e,"aria-label",o=t[0].label?t[0].label:"Close Tour"),F(e,"class","shepherd-cancel-icon"),F(e,"type","button")},m(s,l){pt(s,e,l),Te(e,n),r||(i=_n(e,"click",t[1]),r=!0)},p(s,[l]){l&1&&o!==(o=s[0].label?s[0].label:"Close Tour")&&F(e,"aria-label",o)},i:lt,o:lt,d(s){s&&at(e),r=!1,i()}}}function Va(t,e,n){let{cancelIcon:o,step:r}=e;const i=s=>{s.preventDefault(),r.cancel()};return t.$$set=s=>{"cancelIcon"in s&&n(0,o=s.cancelIcon),"step"in s&&n(2,r=s.step)},[o,i,r]}class Ua extends At{constructor(e){super(),It(this,e,Va,Ha,Rt,{cancelIcon:0,step:2})}}function qa(t){let e;return{c(){e=xt("h3"),F(e,"id",t[1]),F(e,"class","shepherd-title")},m(n,o){pt(n,e,o),t[3](e)},p(n,[o]){o&2&&F(e,"id",n[1])},i:lt,o:lt,d(n){n&&at(e),t[3](null)}}}function Ya(t,e,n){let{labelId:o,element:r,title:i}=e;bo(()=>{Bt(i)&&n(2,i=i()),n(0,r.innerHTML=i,r)});function s(l){Re[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"labelId"in l&&n(1,o=l.labelId),"element"in l&&n(0,r=l.element),"title"in l&&n(2,i=l.title)},[r,o,i,s]}class Ka extends At{constructor(e){super(),It(this,e,Ya,qa,Rt,{labelId:1,element:0,title:2})}}function hi(t){let e,n;return e=new Ka({props:{labelId:t[0],title:t[2]}}),{c(){se(e.$$.fragment)},m(o,r){Vt(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.labelId=o[0]),r&4&&(i.title=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){Ut(e,o)}}}function pi(t){let e,n;return e=new Ua({props:{cancelIcon:t[3],step:t[1]}}),{c(){se(e.$$.fragment)},m(o,r){Vt(e,o,r),n=!0},p(o,r){const i={};r&8&&(i.cancelIcon=o[3]),r&2&&(i.step=o[1]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){Ut(e,o)}}}function za(t){let e,n,o,r=t[2]&&hi(t),i=t[3]&&t[3].enabled&&pi(t);return{c(){e=xt("header"),r&&r.c(),n=xn(),i&&i.c(),F(e,"class","shepherd-header")},m(s,l){pt(s,e,l),r&&r.m(e,null),Te(e,n),i&&i.m(e,null),o=!0},p(s,[l]){s[2]?r?(r.p(s,l),l&4&&L(r,1)):(r=hi(s),r.c(),L(r,1),r.m(e,n)):r&&(re(),K(r,1,1,()=>{r=null}),ie()),s[3]&&s[3].enabled?i?(i.p(s,l),l&8&&L(i,1)):(i=pi(s),i.c(),L(i,1),i.m(e,null)):i&&(re(),K(i,1,1,()=>{i=null}),ie())},i(s){o||(L(r),L(i),o=!0)},o(s){K(r),K(i),o=!1},d(s){s&&at(e),r&&r.d(),i&&i.d()}}}function Ja(t,e,n){let{labelId:o,step:r}=e,i,s;return t.$$set=l=>{"labelId"in l&&n(0,o=l.labelId),"step"in l&&n(1,r=l.step)},t.$$.update=()=>{t.$$.dirty&2&&(n(2,i=r.options.title),n(3,s=r.options.cancelIcon))},[o,r,i,s]}class Xa extends At{constructor(e){super(),It(this,e,Ja,za,Rt,{labelId:0,step:1})}}function Ga(t){let e;return{c(){e=xt("div"),F(e,"class","shepherd-text"),F(e,"id",t[1])},m(n,o){pt(n,e,o),t[3](e)},p(n,[o]){o&2&&F(e,"id",n[1])},i:lt,o:lt,d(n){n&&at(e),t[3](null)}}}function Za(t,e,n){let{descriptionId:o,element:r,step:i}=e;bo(()=>{let{text:l}=i.options;Bt(l)&&(l=l.call(i)),qe(l)?r.appendChild(l):n(0,r.innerHTML=l,r)});function s(l){Re[l?"unshift":"push"](()=>{r=l,n(0,r)})}return t.$$set=l=>{"descriptionId"in l&&n(1,o=l.descriptionId),"element"in l&&n(0,r=l.element),"step"in l&&n(2,i=l.step)},[r,o,i,s]}class Qa extends At{constructor(e){super(),It(this,e,Za,Ga,Rt,{descriptionId:1,element:0,step:2})}}function gi(t){let e,n;return e=new Xa({props:{labelId:t[1],step:t[2]}}),{c(){se(e.$$.fragment)},m(o,r){Vt(e,o,r),n=!0},p(o,r){const i={};r&2&&(i.labelId=o[1]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){Ut(e,o)}}}function mi(t){let e,n;return e=new Qa({props:{descriptionId:t[0],step:t[2]}}),{c(){se(e.$$.fragment)},m(o,r){Vt(e,o,r),n=!0},p(o,r){const i={};r&1&&(i.descriptionId=o[0]),r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){Ut(e,o)}}}function bi(t){let e,n;return e=new Na({props:{step:t[2]}}),{c(){se(e.$$.fragment)},m(o,r){Vt(e,o,r),n=!0},p(o,r){const i={};r&4&&(i.step=o[2]),e.$set(i)},i(o){n||(L(e.$$.fragment,o),n=!0)},o(o){K(e.$$.fragment,o),n=!1},d(o){Ut(e,o)}}}function tu(t){let e,n=!Z(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o,r=!Z(t[2].options.text),i,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l,c=n&&gi(t),a=r&&mi(t),f=s&&bi(t);return{c(){e=xt("div"),c&&c.c(),o=xn(),a&&a.c(),i=xn(),f&&f.c(),F(e,"class","shepherd-content")},m(h,d){pt(h,e,d),c&&c.m(e,null),Te(e,o),a&&a.m(e,null),Te(e,i),f&&f.m(e,null),l=!0},p(h,[d]){d&4&&(n=!Z(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?c?(c.p(h,d),d&4&&L(c,1)):(c=gi(h),c.c(),L(c,1),c.m(e,o)):c&&(re(),K(c,1,1,()=>{c=null}),ie()),d&4&&(r=!Z(h[2].options.text)),r?a?(a.p(h,d),d&4&&L(a,1)):(a=mi(h),a.c(),L(a,1),a.m(e,i)):a&&(re(),K(a,1,1,()=>{a=null}),ie()),d&4&&(s=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),s?f?(f.p(h,d),d&4&&L(f,1)):(f=bi(h),f.c(),L(f,1),f.m(e,null)):f&&(re(),K(f,1,1,()=>{f=null}),ie())},i(h){l||(L(c),L(a),L(f),l=!0)},o(h){K(c),K(a),K(f),l=!1},d(h){h&&at(e),c&&c.d(),a&&a.d(),f&&f.d()}}}function eu(t,e,n){let{descriptionId:o,labelId:r,step:i}=e;return t.$$set=s=>{"descriptionId"in s&&n(0,o=s.descriptionId),"labelId"in s&&n(1,r=s.labelId),"step"in s&&n(2,i=s.step)},[o,r,i]}class nu extends At{constructor(e){super(),It(this,e,eu,tu,Rt,{descriptionId:0,labelId:1,step:2})}}function yi(t){let e;return{c(){e=xt("div"),F(e,"class","shepherd-arrow"),F(e,"data-popper-arrow","")},m(n,o){pt(n,e,o)},d(n){n&&at(e)}}}function ou(t){let e,n,o,r,i,s,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&yi();o=new nu({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let f=[{"aria-describedby":r=Z(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=_a(h,f[d]);return{c(){e=xt("div"),a&&a.c(),n=xn(),se(o.$$.fragment),ii(e,h),$e(e,"shepherd-has-cancel-icon",t[5]),$e(e,"shepherd-has-title",t[6]),$e(e,"shepherd-element",!0)},m(d,p){pt(d,e,p),a&&a.m(e,null),Te(e,n),Vt(o,e,null),t[13](e),s=!0,l||(c=_n(e,"keydown",t[7]),l=!0)},p(d,[p]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?a||(a=yi(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const m={};p&4&&(m.descriptionId=d[2]),p&8&&(m.labelId=d[3]),p&16&&(m.step=d[4]),o.$set(m),ii(e,h=ka(f,[(!s||p&20&&r!==(r=Z(d[4].options.text)?null:d[2]))&&{"aria-describedby":r},(!s||p&24&&i!==(i=d[4].options.title?d[3]:null))&&{"aria-labelledby":i},p&2&&d[1],{role:"dialog"},{tabindex:"0"}])),$e(e,"shepherd-has-cancel-icon",d[5]),$e(e,"shepherd-has-title",d[6]),$e(e,"shepherd-element",!0)},i(d){s||(L(o.$$.fragment,d),s=!0)},o(d){K(o.$$.fragment,d),s=!1},d(d){d&&at(e),a&&a.d(),Ut(o),t[13](null),l=!1,c()}}}const ru=9,iu=27,su=37,lu=39;function vi(t){return t.split(" ").filter(e=>!!e.length)}function cu(t,e,n){let{classPrefix:o,element:r,descriptionId:i,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:h}=e,d,p,m;const y=()=>r;Ca(()=>{n(1,h={[`data-${o}shepherd-step-id`]:f.id}),n(9,l=r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),bo(()=>{m!==f.options.classes&&_()});function _(){w(m),m=f.options.classes,x(m)}function w(g){if(Ye(g)){const O=vi(g);O.length&&r.classList.remove(...O)}}function x(g){if(Ye(g)){const O=vi(g);O.length&&r.classList.add(...O)}}const S=g=>{const{tour:O}=f;switch(g.keyCode){case ru:if(l.length===0){g.preventDefault();break}g.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(g.preventDefault(),a.focus()):document.activeElement===a&&(g.preventDefault(),s.focus());break;case iu:O.options.exitOnEsc&&(g.preventDefault(),g.stopPropagation(),f.cancel());break;case su:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.back());break;case lu:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.next());break}};function b(g){Re[g?"unshift":"push"](()=>{r=g,n(0,r)})}return t.$$set=g=>{"classPrefix"in g&&n(11,o=g.classPrefix),"element"in g&&n(0,r=g.element),"descriptionId"in g&&n(2,i=g.descriptionId),"firstFocusableElement"in g&&n(8,s=g.firstFocusableElement),"focusableElements"in g&&n(9,l=g.focusableElements),"labelId"in g&&n(3,c=g.labelId),"lastFocusableElement"in g&&n(10,a=g.lastFocusableElement),"step"in g&&n(4,f=g.step),"dataStepId"in g&&n(1,h=g.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,p=f.options&&f.options.title))},[r,h,i,c,f,d,p,S,s,l,a,o,y,b]}class au extends At{constructor(e){super(),It(this,e,cu,ou,Rt,{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 xo extends to{constructor(e,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?Br(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,ro(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){ma(this),qe(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=Rc(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return Bt(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new au({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:n}=this._getResolvedAttachToOptions();Bt(this.options.scrollToHandler)?this.options.scrollToHandler(n):uc(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(e)}_getClassOptions(e){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e.classes?e.classes:"",r=n&&n.classes?n.classes:"",i=[...o.split(" "),...r.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(e={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=no({},n||{}),this.options=Object.assign({arrow:!0},n,e,ga(n,e));const{when:o}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${Nr()}`,o&&Object.keys(o).forEach(r=>{this.on(r,o[r],this)})}_setupElements(){Z(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Tc(this),pa(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),o=this.target||document.body;o.classList.add(`${this.classPrefix}shepherd-enabled`),o.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const n=e.target;n&&(e.options.highlightClass&&n.classList.add(e.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),e.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function uu(t){if(t){const{steps:e}=t;e.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&qe(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function fu({width:t,height:e,x:n=0,y:o=0,r=0}){const{innerWidth:i,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof r=="number"?{topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}:r;return`M${i},${s}H0V0H${i}V${s}ZM${n+l},${o}a${l},${l},0,0,0-${l},${l}V${e+o-f}a${f},${f},0,0,0,${f},${f}H${t+n-a}a${a},${a},0,0,0,${a}-${a}V${o+c}a${c},${c},0,0,0-${c}-${c}Z`}function du(t){let e,n,o,r,i;return{c(){e=oi("svg"),n=oi("path"),F(n,"d",t[2]),F(e,"class",o=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){pt(s,e,l),Te(e,n),t[11](e),r||(i=_n(e,"touchmove",t[3]),r=!0)},p(s,[l]){l&4&&F(n,"d",s[2]),l&2&&o!==(o=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&F(e,"class",o)},i:lt,o:lt,d(s){s&&at(e),t[11](null),r=!1,i()}}}function wi(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return e!=="hidden"&&e!=="visible"&&t.scrollHeight>=t.clientHeight?t:wi(t.parentElement)}function hu(t){let e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;for(;n!==window.top;){var o;const s=(o=n)==null?void 0:o.frameElement;if(s){var r,i;const l=s.getBoundingClientRect();e.top+=l.top+((r=l.scrollTop)!=null?r:0),e.left+=l.left+((i=l.scrollLeft)!=null?i:0)}n=n.parent}return e}function pu(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,r=n.bottom||o+n.height;if(e){const s=e.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;o=Math.max(o,l),r=Math.min(r,c)}const i=Math.max(r-o,0);return{y:o,height:i}}function gu(t,e,n){let{element:o,openingProperties:r}=e,i=!1,s,l;a();const c=()=>o;function a(){n(4,r={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,i=!1),w()}function h(b=0,g=0,O=0,P=0,V,I){if(I){const{y:B,height:N}=pu(I,V),{x:U,width:A,left:$}=I.getBoundingClientRect();n(4,r={width:A+b*2,height:N+b*2,x:(U||$)+O-b,y:B+P-b,r:g})}else a()}function d(b){w(),b.tour.options.useModalOverlay?(x(b),p()):f()}function p(){n(1,i=!0)}const m=b=>{b.preventDefault()},y=b=>{b.stopPropagation()};function _(){window.addEventListener("touchmove",m,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",m,{passive:!1})}function x(b){const{modalOverlayOpeningPadding:g,modalOverlayOpeningRadius:O,modalOverlayOpeningXOffset:P=0,modalOverlayOpeningYOffset:V=0}=b.options,I=hu(b.target),B=wi(b.target),N=()=>{s=void 0,h(g,O,P+I.left,V+I.top,B,b.target),s=requestAnimationFrame(N)};N(),_()}function S(b){Re[b?"unshift":"push"](()=>{o=b,n(0,o)})}return t.$$set=b=>{"element"in b&&n(0,o=b.element),"openingProperties"in b&&n(4,r=b.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&n(2,l=fu(r))},[o,i,l,y,r,c,a,f,h,d,p,S]}class mu extends At{constructor(e){super(),It(this,e,gu,du,Rt,{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]}}class xi extends to{constructor(){super(),this.activeTour=void 0,ro(this)}}class bu extends to{constructor(e={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,ro(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,e),this.classPrefix=Br(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(r=>{this.on(r,i=>{i=i||{},i.tour=this,qt.trigger(r,i)})})(o)}),this._setTourID(e.id),this}addStep(e,n){let o=e;return o instanceof xo?o.tour=this:o=new xo(this,o),Z(n)?this.steps.push(o):this.steps.splice(n,0,o),o}addSteps(e){return Array.isArray(e)&&e.forEach(n=>{this.addStep(n)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;Bt(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(e),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(n=>n.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return qt.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const n=this.getCurrentStep();this.steps.some((o,r)=>{if(o.id===e)return o.isOpen()&&o.hide(),o.destroy(),this.steps.splice(r,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,n=!0){const o=Ye(e)?this.getById(e):this.steps[e];o&&(this._updateStateBeforeShow(),Bt(o.options.showOn)&&!o.options.showOn()?this._skipStep(o,n):(this.trigger("show",{step:o,previous:this.currentStep}),this.currentStep=o,o.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(o=>o.destroy()),uu(this),this.trigger(e,{index:n}),qt.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){const o=document.querySelector(".shepherd-modal-overlay-container");o&&(o.remove(),this.modal=null)}qe(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),qt.activeTour=this}setupModal(){this.modal=new mu({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,n){const o=this.steps.indexOf(e);if(o===this.steps.length-1)this.complete();else{const r=n?o+1:o-1;this.show(r,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const n=this.options.tourName||"tour",o=e||Nr();this.id=`${n}--${o}`}}const qt=new xi,_i=typeof window>"u";qt.Step=_i?$c:xo,qt.Tour=_i?Cc:bu;const _o=(t,e)=>e.some(n=>t instanceof n);let Ei,Si;function yu(){return Ei||(Ei=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function vu(){return Si||(Si=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Eo=new WeakMap,So=new WeakMap,Sn=new WeakMap;function wu(t){const e=new Promise((n,o)=>{const r=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{n(le(t.result)),r()},s=()=>{o(t.error),r()};t.addEventListener("success",i),t.addEventListener("error",s)});return Sn.set(e,t),e}function xu(t){if(Eo.has(t))return;const e=new Promise((n,o)=>{const r=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{n(),r()},s=()=>{o(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});Eo.set(t,e)}let Oo={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Eo.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return le(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Oi(t){Oo=t(Oo)}function _u(t){return vu().includes(t)?function(...e){return t.apply(To(this),e),le(this.request)}:function(...e){return le(t.apply(To(this),e))}}function Eu(t){return typeof t=="function"?_u(t):(t instanceof IDBTransaction&&xu(t),_o(t,yu())?new Proxy(t,Oo):t)}function le(t){if(t instanceof IDBRequest)return wu(t);if(So.has(t))return So.get(t);const e=Eu(t);return e!==t&&(So.set(t,e),Sn.set(e,t)),e}const To=t=>Sn.get(t);function Su(t,e,{blocked:n,upgrade:o,blocking:r,terminated:i}={}){const s=indexedDB.open(t,e),l=le(s);return o&&s.addEventListener("upgradeneeded",c=>{o(le(s.result),c.oldVersion,c.newVersion,le(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),l.then(c=>{i&&c.addEventListener("close",()=>i()),r&&c.addEventListener("versionchange",a=>r(a.oldVersion,a.newVersion,a))}).catch(()=>{}),l}const Ou=["get","getKey","getAll","getAllKeys","count"],Tu=["put","add","delete","clear"],$o=new Map;function Ti(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if($o.get(e))return $o.get(e);const n=e.replace(/FromIndex$/,""),o=e!==n,r=Tu.includes(n);if(!(n in(o?IDBIndex:IDBObjectStore).prototype)||!(r||Ou.includes(n)))return;const i=async function(s,...l){const c=this.transaction(s,r?"readwrite":"readonly");let a=c.store;return o&&(a=a.index(l.shift())),(await Promise.all([a[n](...l),r&&c.done]))[0]};return $o.set(e,i),i}Oi(t=>({...t,get:(e,n,o)=>Ti(e,n)||t.get(e,n,o),has:(e,n)=>!!Ti(e,n)||t.has(e,n)}));const $u=["continue","continuePrimaryKey","advance"],$i={},Co=new WeakMap,Ci=new WeakMap,Cu={get(t,e){if(!$u.includes(e))return t[e];let n=$i[e];return n||(n=$i[e]=function(...o){Co.set(this,Ci.get(this)[e](...o))}),n}};async function*Ru(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const n=new Proxy(e,Cu);for(Ci.set(n,e),Sn.set(n,To(e));e;)yield n,e=await(Co.get(n)||e.continue()),Co.delete(n)}function Ri(t,e){return e===Symbol.asyncIterator&&_o(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&_o(t,[IDBIndex,IDBObjectStore])}Oi(t=>({...t,get(e,n,o){return Ri(e,n)?Ru:t.get(e,n,o)},has(e,n){return Ri(e,n)||t.has(e,n)}}));var Pe,ke,Ze;class Iu{constructor(e,n,o){if(dn(this,Pe),dn(this,ke),dn(this,Ze),we(this,"tourStateDb"),!e)throw new Error("Shepherd Pro: Missing required apiKey option.");if(!n)throw new Error("Shepherd Pro: Missing required apiPath option.");hn(this,Pe,e),hn(this,ke,n),hn(this,Ze,o)}getConfig(){return{apiKey:$t(this,Pe),apiPath:$t(this,ke),properties:$t(this,Ze)}}async getTourState(){try{const e=await fetch(`${$t(this,ke)}/api/v1/state`,{headers:{Authorization:`ApiKey ${$t(this,Pe)}`,"Content-Type":"application/json"},method:"GET"});if(!e.ok)throw new Error("Could not fetch state for tours 🐑");const{data:n}=await e.json();if(this.tourStateDb=await Su("TourState",1,{upgrade(o){o.createObjectStore("tours",{keyPath:"uniqueId"})}}),Array.isArray(n)&&n.length){const o=this.tourStateDb.transaction("tours","readwrite"),r=n.map(i=>o.store.put(i));await Promise.all([...r,o.done])}}catch(e){throw new Error("Error fetching data: "+(e instanceof Error?e.message:"Unknown error"))}}async sendEvents(e){e.data.properties=$t(this,Ze);try{const n=await fetch(`${$t(this,ke)}/api/v1/actor`,{headers:{Authorization:`ApiKey ${$t(this,Pe)}`,"Content-Type":"application/json"},method:"POST",body:JSON.stringify(e)});if(!n.ok)throw new Error("Could not create an event 🐑");const{data:o}=await n.json();return o}catch(n){throw new Error("Error fetching data: "+(n instanceof Error?n.message:"Unknown error"))}}}Pe=new WeakMap,ke=new WeakMap,Ze=new WeakMap;function Au(t){let e={};if(t.navigator){const n=t.navigator.userAgent;e={...e,$os:ku(t),$browser:Ii(n,t.navigator.vendor,!!t.opera),$referrer:t.document.referrer,$referring_domain:Lu(t.document.referrer),$device:Mu(n),$current_url:t.location.href,$host:t.location.host,$pathname:t.location.pathname,$browser_version:Pu(n,t.navigator.vendor,!!t.opera),$screen_height:t.screen.height,$screen_width:t.screen.width,$screen_dpr:t.devicePixelRatio}}return e={...e,$lib:"js",$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:new Date().getTime()/1e3},e}function z(t,e){return t.indexOf(e)>=0}function Ii(t,e,n){return e=e||"",n||z(t," OPR/")?z(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":z(t,"IEMobile")||z(t,"WPDesktop")?"Internet Explorer Mobile":z(t,"SamsungBrowser/")?"Samsung Internet":z(t,"Edge")||z(t,"Edg/")?"Microsoft Edge":z(t,"FBIOS")?"Facebook Mobile":z(t,"Chrome")?"Chrome":z(t,"CriOS")?"Chrome iOS":z(t,"UCWEB")||z(t,"UCBrowser")?"UC Browser":z(t,"FxiOS")?"Firefox iOS":z(e,"Apple")?z(t,"Mobile")?"Mobile Safari":"Safari":z(t,"Android")?"Android Mobile":z(t,"Konqueror")?"Konqueror":z(t,"Firefox")?"Firefox":z(t,"MSIE")||z(t,"Trident/")?"Internet Explorer":z(t,"Gecko")?"Mozilla":""}function Pu(t,e,n){const o={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},r=Ii(t,e,n),i=o[r]||void 0;if(i===void 0)return null;const s=t.match(i);return s?parseFloat(s[s.length-2]):null}function ku(t){const e=t.navigator.userAgent;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""}function Mu(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""}function Lu(t){const e=t.split("/");return e.length>=3?e[2]:""}const Du="https://shepherdpro.com",Ro="shepherdPro:userId";var On;class Ai extends qt.Tour{constructor(e){super(e),dn(this,On,null),hn(this,On,localStorage.getItem(Ro));const{dataRequester:n}=Io;n&&this.trackedEvents.forEach(o=>this.on(o,r=>{const{tour:i}=r,{id:s,steps:l}=i;let c;if(o!=="active"){const{step:f}=r;f&&(c=l.findIndex(h=>h.id===f.id)+1)}const a={currentUserId:$t(this,On),eventType:o,journeyData:{id:s,currentStep:c,numberOfSteps:l.length,tourOptions:i.options}};n==null||n.sendEvents({data:a})}))}async start(){await Io.isTourEnabled(this.options.id)&&super.start()}}On=new WeakMap,we(Ai,"trackedEvents",["active","cancel","complete","show"]);class Fu extends xi{constructor(){super(),we(this,"apiKey"),we(this,"apiPath"),we(this,"dataRequester"),we(this,"properties"),this.Tour=Ai}async init(e,n,o){if(!e)throw new Error("Shepherd Pro: Missing required apiKey option.");if(this.apiKey=e,this.apiPath=n??Du,this.properties=o??{},this.properties.context=Au(window),this.apiKey){this.dataRequester=new Iu(this.apiKey,this.apiPath,this.properties);const r=localStorage.getItem(Ro),i=[this.dataRequester.getTourState()];r||i.push(this.createNewActor()),await Promise.all(i)}}async createNewActor(){if(!this.dataRequester)return;const e=await this.dataRequester.sendEvents({data:{currentUserId:null,eventType:"setup"}});localStorage.setItem(Ro,String(e.actorId))}async isTourEnabled(e){var n;if(!this.dataRequester)return;const o=await((n=this.dataRequester.tourStateDb)==null?void 0:n.get("tours",e));return(o==null?void 0:o.isActive)??!0}}const Io=new Fu,Pi=Object.assign(Io,qt),Tn=Pt.createContext(void 0),ju=Tn.Consumer,Bu=()=>{const t=Pt.useContext(Tn);if(!t)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:e}=t;return e},Wu=({apiKey:t,apiPath:e,properties:n,children:o})=>{let r=Qt;return typeof window<"u"&&t&&(r=Pi,Pi.init(t,e,n)),Zi.jsx(Tn.Provider,{value:{Shepherd:r},children:o})};gt.JourneyMethods=ju,gt.ShepherdJourneyContext=Tn,gt.ShepherdJourneyProvider=Wu,gt.useShepherd=Bu,Object.defineProperty(gt,Symbol.toStringTag,{value:"Module"})});
|