react-shepherd 6.1.3 → 6.1.4

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.
Files changed (3) hide show
  1. package/dist/index.js +1327 -1286
  2. package/dist/index.umd.cjs +10 -10
  3. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- (function(oe,pe){typeof exports=="object"&&typeof module<"u"?pe(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],pe):(oe=typeof globalThis<"u"?globalThis:oe||self,pe(oe.ShepherdProReact={},oe.require$$0))})(this,function(oe,pe){"use strict";var vt={exports:{}},Ye={};/**
1
+ (function(se,ge){typeof exports=="object"&&typeof module<"u"?ge(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],ge):(se=typeof globalThis<"u"?globalThis:se||self,ge(se.ShepherdProReact={},se.require$$0))})(this,function(se,ge){"use strict";var yt={exports:{}},ze={};/**
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 Jt;function tr(){if(Jt)return Ye;Jt=1;var e=pe,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(c,a,u){var f,h={},d=null,g=null;u!==void 0&&(d=""+u),a.key!==void 0&&(d=""+a.key),a.ref!==void 0&&(g=a.ref);for(f in a)r.call(a,f)&&!s.hasOwnProperty(f)&&(h[f]=a[f]);if(c&&c.defaultProps)for(f in a=c.defaultProps,a)h[f]===void 0&&(h[f]=a[f]);return{$$typeof:t,type:c,key:d,ref:g,props:h,_owner:o.current}}return Ye.Fragment=n,Ye.jsx=i,Ye.jsxs=i,Ye}var ze={};/**
9
+ */var Jt;function tr(){if(Jt)return ze;Jt=1;var e=ge,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(c,a,u){var d,h={},f=null,g=null;u!==void 0&&(f=""+u),a.key!==void 0&&(f=""+a.key),a.ref!==void 0&&(g=a.ref);for(d in a)r.call(a,d)&&!o.hasOwnProperty(d)&&(h[d]=a[d]);if(c&&c.defaultProps)for(d in a=c.defaultProps,a)h[d]===void 0&&(h[d]=a[d]);return{$$typeof:t,type:c,key:f,ref:g,props:h,_owner:i.current}}return ze.Fragment=n,ze.jsx=s,ze.jsxs=s,ze}var qe={};/**
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 Kt;function nr(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){var e=pe,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),v=Symbol.iterator,x="@@iterator";function S(l){if(l===null||typeof l!="object")return null;var p=v&&l[v]||l[x];return typeof p=="function"?p:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(l){{for(var p=arguments.length,b=new Array(p>1?p-1:0),E=1;E<p;E++)b[E-1]=arguments[E];R("error",l,b)}}function R(l,p,b){{var E=w.ReactDebugCurrentFrame,A=E.getStackAddendum();A!==""&&(p+="%s",b=b.concat([A]));var I=b.map(function(C){return String(C)});I.unshift("Warning: "+p),Function.prototype.apply.call(console[l],console,I)}}var y=!1,m=!1,T=!1,B=!1,le=!1,$;$=Symbol.for("react.module.reference");function X(l){return!!(typeof l=="string"||typeof l=="function"||l===r||l===s||le||l===o||l===u||l===f||B||l===g||y||m||T||typeof l=="object"&&l!==null&&(l.$$typeof===d||l.$$typeof===h||l.$$typeof===i||l.$$typeof===c||l.$$typeof===a||l.$$typeof===$||l.getModuleId!==void 0))}function U(l,p,b){var E=l.displayName;if(E)return E;var A=p.displayName||p.name||"";return A!==""?b+"("+A+")":b}function V(l){return l.displayName||"Context"}function D(l){if(l==null)return null;if(typeof l.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case c:var p=l;return V(p)+".Consumer";case i:var b=l;return V(b._context)+".Provider";case a:return U(l,l.render,"ForwardRef");case h:var E=l.displayName||null;return E!==null?E:D(l.type)||"Memo";case d:{var A=l,I=A._payload,C=A._init;try{return D(C(I))}catch{return null}}}return null}var L=Object.assign,G=0,Y,de,we,he,ne,re,ht;function Wn(){}Wn.__reactDisabledLog=!0;function mi(){{if(G===0){Y=console.log,de=console.info,we=console.warn,he=console.error,ne=console.group,re=console.groupCollapsed,ht=console.groupEnd;var l={configurable:!0,enumerable:!0,value:Wn,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}G++}}function bi(){{if(G--,G===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},l,{value:Y}),info:L({},l,{value:de}),warn:L({},l,{value:we}),error:L({},l,{value:he}),group:L({},l,{value:ne}),groupCollapsed:L({},l,{value:re}),groupEnd:L({},l,{value:ht})})}G<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Nt=w.ReactCurrentDispatcher,Wt;function pt(l,p,b){{if(Wt===void 0)try{throw Error()}catch(A){var E=A.stack.trim().match(/\n( *(at )?)/);Wt=E&&E[1]||""}return`
18
- `+Wt+l}}var Vt=!1,gt;{var vi=typeof WeakMap=="function"?WeakMap:Map;gt=new vi}function Vn(l,p){if(!l||Vt)return"";{var b=gt.get(l);if(b!==void 0)return b}var E;Vt=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=Nt.current,Nt.current=null,mi();try{if(p){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(z){E=z}Reflect.construct(l,[],C)}else{try{C.call()}catch(z){E=z}l.call(C.prototype)}}else{try{throw Error()}catch(z){E=z}l()}}catch(z){if(z&&E&&typeof z.stack=="string"){for(var O=z.stack.split(`
19
- `),H=E.stack.split(`
20
- `),F=O.length-1,j=H.length-1;F>=1&&j>=0&&O[F]!==H[j];)j--;for(;F>=1&&j>=0;F--,j--)if(O[F]!==H[j]){if(F!==1||j!==1)do if(F--,j--,j<0||O[F]!==H[j]){var Z=`
21
- `+O[F].replace(" at new "," at ");return l.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",l.displayName)),typeof l=="function"&&gt.set(l,Z),Z}while(F>=1&&j>=0);break}}}finally{Vt=!1,Nt.current=I,bi(),Error.prepareStackTrace=A}var Ue=l?l.displayName||l.name:"",Pe=Ue?pt(Ue):"";return typeof l=="function"&&gt.set(l,Pe),Pe}function yi(l,p,b){return Vn(l,!1)}function _i(l){var p=l.prototype;return!!(p&&p.isReactComponent)}function mt(l,p,b){if(l==null)return"";if(typeof l=="function")return Vn(l,_i(l));if(typeof l=="string")return pt(l);switch(l){case u:return pt("Suspense");case f:return pt("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case a:return yi(l.render);case h:return mt(l.type,p,b);case d:{var E=l,A=E._payload,I=E._init;try{return mt(I(A),p,b)}catch{}}}return""}var et=Object.prototype.hasOwnProperty,Hn={},$n=w.ReactDebugCurrentFrame;function bt(l){if(l){var p=l._owner,b=mt(l.type,l._source,p?p.type:null);$n.setExtraStackFrame(b)}else $n.setExtraStackFrame(null)}function wi(l,p,b,E,A){{var I=Function.call.bind(et);for(var C in l)if(I(l,C)){var O=void 0;try{if(typeof l[C]!="function"){var H=Error((E||"React class")+": "+b+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw H.name="Invariant Violation",H}O=l[C](p,C,E,b,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){O=F}O&&!(O instanceof Error)&&(bt(A),_("%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).",E||"React class",b,C,typeof O),bt(null)),O instanceof Error&&!(O.message in Hn)&&(Hn[O.message]=!0,bt(A),_("Failed %s type: %s",b,O.message),bt(null))}}}var xi=Array.isArray;function Ht(l){return xi(l)}function Ei(l){{var p=typeof Symbol=="function"&&Symbol.toStringTag,b=p&&l[Symbol.toStringTag]||l.constructor.name||"Object";return b}}function Si(l){try{return Un(l),!1}catch{return!0}}function Un(l){return""+l}function Yn(l){if(Si(l))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ei(l)),Un(l)}var tt=w.ReactCurrentOwner,Oi={key:!0,ref:!0,__self:!0,__source:!0},zn,qn,$t;$t={};function Ri(l){if(et.call(l,"ref")){var p=Object.getOwnPropertyDescriptor(l,"ref").get;if(p&&p.isReactWarning)return!1}return l.ref!==void 0}function Ti(l){if(et.call(l,"key")){var p=Object.getOwnPropertyDescriptor(l,"key").get;if(p&&p.isReactWarning)return!1}return l.key!==void 0}function Ci(l,p){if(typeof l.ref=="string"&&tt.current&&p&&tt.current.stateNode!==p){var b=D(tt.current.type);$t[b]||(_('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',D(tt.current.type),l.ref),$t[b]=!0)}}function Ai(l,p){{var b=function(){zn||(zn=!0,_("%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)",p))};b.isReactWarning=!0,Object.defineProperty(l,"key",{get:b,configurable:!0})}}function Pi(l,p){{var b=function(){qn||(qn=!0,_("%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)",p))};b.isReactWarning=!0,Object.defineProperty(l,"ref",{get:b,configurable:!0})}}var ki=function(l,p,b,E,A,I,C){var O={$$typeof:t,type:l,key:p,ref:b,props:C,_owner:I};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function Ii(l,p,b,E,A){{var I,C={},O=null,H=null;b!==void 0&&(Yn(b),O=""+b),Ti(p)&&(Yn(p.key),O=""+p.key),Ri(p)&&(H=p.ref,Ci(p,A));for(I in p)et.call(p,I)&&!Oi.hasOwnProperty(I)&&(C[I]=p[I]);if(l&&l.defaultProps){var F=l.defaultProps;for(I in F)C[I]===void 0&&(C[I]=F[I])}if(O||H){var j=typeof l=="function"?l.displayName||l.name||"Unknown":l;O&&Ai(C,j),H&&Pi(C,j)}return ki(l,O,H,A,E,tt.current,C)}}var Ut=w.ReactCurrentOwner,Jn=w.ReactDebugCurrentFrame;function $e(l){if(l){var p=l._owner,b=mt(l.type,l._source,p?p.type:null);Jn.setExtraStackFrame(b)}else Jn.setExtraStackFrame(null)}var Yt;Yt=!1;function zt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function Kn(){{if(Ut.current){var l=D(Ut.current.type);if(l)return`
17
+ */var Kt;function nr(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){var e=ge,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),v=Symbol.iterator,E="@@iterator";function S(l){if(l===null||typeof l!="object")return null;var p=v&&l[v]||l[E];return typeof p=="function"?p:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(l){{for(var p=arguments.length,b=new Array(p>1?p-1:0),x=1;x<p;x++)b[x-1]=arguments[x];R("error",l,b)}}function R(l,p,b){{var x=w.ReactDebugCurrentFrame,A=x.getStackAddendum();A!==""&&(p+="%s",b=b.concat([A]));var I=b.map(function(C){return String(C)});I.unshift("Warning: "+p),Function.prototype.apply.call(console[l],console,I)}}var y=!1,m=!1,T=!1,V=!1,ae=!1,X;X=Symbol.for("react.module.reference");function Z(l){return!!(typeof l=="string"||typeof l=="function"||l===r||l===o||ae||l===i||l===u||l===d||V||l===g||y||m||T||typeof l=="object"&&l!==null&&(l.$$typeof===f||l.$$typeof===h||l.$$typeof===s||l.$$typeof===c||l.$$typeof===a||l.$$typeof===X||l.getModuleId!==void 0))}function N(l,p,b){var x=l.displayName;if(x)return x;var A=p.displayName||p.name||"";return A!==""?b+"("+A+")":b}function D(l){return l.displayName||"Context"}function j(l){if(l==null)return null;if(typeof l.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case c:var p=l;return D(p)+".Consumer";case s:var b=l;return D(b._context)+".Provider";case a:return N(l,l.render,"ForwardRef");case h:var x=l.displayName||null;return x!==null?x:j(l.type)||"Memo";case f:{var A=l,I=A._payload,C=A._init;try{return j(C(I))}catch{return null}}}return null}var F=Object.assign,$=0,B,ie,pe,Q,Y,oe,pt;function Nn(){}Nn.__reactDisabledLog=!0;function yo(){{if($===0){B=console.log,ie=console.info,pe=console.warn,Q=console.error,Y=console.group,oe=console.groupCollapsed,pt=console.groupEnd;var l={configurable:!0,enumerable:!0,value:Nn,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}$++}}function _o(){{if($--,$===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},l,{value:B}),info:F({},l,{value:ie}),warn:F({},l,{value:pe}),error:F({},l,{value:Q}),group:F({},l,{value:Y}),groupCollapsed:F({},l,{value:oe}),groupEnd:F({},l,{value:pt})})}$<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Vt=w.ReactCurrentDispatcher,Nt;function gt(l,p,b){{if(Nt===void 0)try{throw Error()}catch(A){var x=A.stack.trim().match(/\n( *(at )?)/);Nt=x&&x[1]||""}return`
18
+ `+Nt+l}}var Bt=!1,mt;{var wo=typeof WeakMap=="function"?WeakMap:Map;mt=new wo}function Bn(l,p){if(!l||Bt)return"";{var b=mt.get(l);if(b!==void 0)return b}var x;Bt=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=Vt.current,Vt.current=null,yo();try{if(p){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(q){x=q}Reflect.construct(l,[],C)}else{try{C.call()}catch(q){x=q}l.call(C.prototype)}}else{try{throw Error()}catch(q){x=q}l()}}catch(q){if(q&&x&&typeof q.stack=="string"){for(var O=q.stack.split(`
19
+ `),z=x.stack.split(`
20
+ `),L=O.length-1,H=z.length-1;L>=1&&H>=0&&O[L]!==z[H];)H--;for(;L>=1&&H>=0;L--,H--)if(O[L]!==z[H]){if(L!==1||H!==1)do if(L--,H--,H<0||O[L]!==z[H]){var ee=`
21
+ `+O[L].replace(" at new "," at ");return l.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",l.displayName)),typeof l=="function"&&mt.set(l,ee),ee}while(L>=1&&H>=0);break}}}finally{Bt=!1,Vt.current=I,_o(),Error.prepareStackTrace=A}var Ue=l?l.displayName||l.name:"",Pe=Ue?gt(Ue):"";return typeof l=="function"&&mt.set(l,Pe),Pe}function Eo(l,p,b){return Bn(l,!1)}function xo(l){var p=l.prototype;return!!(p&&p.isReactComponent)}function bt(l,p,b){if(l==null)return"";if(typeof l=="function")return Bn(l,xo(l));if(typeof l=="string")return gt(l);switch(l){case u:return gt("Suspense");case d:return gt("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case a:return Eo(l.render);case h:return bt(l.type,p,b);case f:{var x=l,A=x._payload,I=x._init;try{return bt(I(A),p,b)}catch{}}}return""}var et=Object.prototype.hasOwnProperty,Wn={},$n=w.ReactDebugCurrentFrame;function vt(l){if(l){var p=l._owner,b=bt(l.type,l._source,p?p.type:null);$n.setExtraStackFrame(b)}else $n.setExtraStackFrame(null)}function So(l,p,b,x,A){{var I=Function.call.bind(et);for(var C in l)if(I(l,C)){var O=void 0;try{if(typeof l[C]!="function"){var z=Error((x||"React class")+": "+b+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z.name="Invariant Violation",z}O=l[C](p,C,x,b,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(L){O=L}O&&!(O instanceof Error)&&(vt(A),_("%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).",x||"React class",b,C,typeof O),vt(null)),O instanceof Error&&!(O.message in Wn)&&(Wn[O.message]=!0,vt(A),_("Failed %s type: %s",b,O.message),vt(null))}}}var Oo=Array.isArray;function Wt(l){return Oo(l)}function Ro(l){{var p=typeof Symbol=="function"&&Symbol.toStringTag,b=p&&l[Symbol.toStringTag]||l.constructor.name||"Object";return b}}function To(l){try{return Yn(l),!1}catch{return!0}}function Yn(l){return""+l}function Un(l){if(To(l))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ro(l)),Yn(l)}var tt=w.ReactCurrentOwner,Co={key:!0,ref:!0,__self:!0,__source:!0},zn,qn,$t;$t={};function Ao(l){if(et.call(l,"ref")){var p=Object.getOwnPropertyDescriptor(l,"ref").get;if(p&&p.isReactWarning)return!1}return l.ref!==void 0}function Po(l){if(et.call(l,"key")){var p=Object.getOwnPropertyDescriptor(l,"key").get;if(p&&p.isReactWarning)return!1}return l.key!==void 0}function ko(l,p){if(typeof l.ref=="string"&&tt.current&&p&&tt.current.stateNode!==p){var b=j(tt.current.type);$t[b]||(_('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',j(tt.current.type),l.ref),$t[b]=!0)}}function Io(l,p){{var b=function(){zn||(zn=!0,_("%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)",p))};b.isReactWarning=!0,Object.defineProperty(l,"key",{get:b,configurable:!0})}}function Mo(l,p){{var b=function(){qn||(qn=!0,_("%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)",p))};b.isReactWarning=!0,Object.defineProperty(l,"ref",{get:b,configurable:!0})}}var Fo=function(l,p,b,x,A,I,C){var O={$$typeof:t,type:l,key:p,ref:b,props:C,_owner:I};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function Lo(l,p,b,x,A){{var I,C={},O=null,z=null;b!==void 0&&(Un(b),O=""+b),Po(p)&&(Un(p.key),O=""+p.key),Ao(p)&&(z=p.ref,ko(p,A));for(I in p)et.call(p,I)&&!Co.hasOwnProperty(I)&&(C[I]=p[I]);if(l&&l.defaultProps){var L=l.defaultProps;for(I in L)C[I]===void 0&&(C[I]=L[I])}if(O||z){var H=typeof l=="function"?l.displayName||l.name||"Unknown":l;O&&Io(C,H),z&&Mo(C,H)}return Fo(l,O,z,A,x,tt.current,C)}}var Yt=w.ReactCurrentOwner,Jn=w.ReactDebugCurrentFrame;function Ye(l){if(l){var p=l._owner,b=bt(l.type,l._source,p?p.type:null);Jn.setExtraStackFrame(b)}else Jn.setExtraStackFrame(null)}var Ut;Ut=!1;function zt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function Kn(){{if(Yt.current){var l=j(Yt.current.type);if(l)return`
22
22
 
23
- Check the render method of \``+l+"`."}return""}}function Mi(l){return""}var Xn={};function Fi(l){{var p=Kn();if(!p){var b=typeof l=="string"?l:l.displayName||l.name;b&&(p=`
23
+ Check the render method of \``+l+"`."}return""}}function Do(l){return""}var Xn={};function jo(l){{var p=Kn();if(!p){var b=typeof l=="string"?l:l.displayName||l.name;b&&(p=`
24
24
 
25
- Check the top-level render call using <`+b+">.")}return p}}function Gn(l,p){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var b=Fi(p);if(Xn[b])return;Xn[b]=!0;var E="";l&&l._owner&&l._owner!==Ut.current&&(E=" It was passed a child from "+D(l._owner.type)+"."),$e(l),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',b,E),$e(null)}}function Zn(l,p){{if(typeof l!="object")return;if(Ht(l))for(var b=0;b<l.length;b++){var E=l[b];zt(E)&&Gn(E,p)}else if(zt(l))l._store&&(l._store.validated=!0);else if(l){var A=S(l);if(typeof A=="function"&&A!==l.entries)for(var I=A.call(l),C;!(C=I.next()).done;)zt(C.value)&&Gn(C.value,p)}}}function Li(l){{var p=l.type;if(p==null||typeof p=="string")return;var b;if(typeof p=="function")b=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===a||p.$$typeof===h))b=p.propTypes;else return;if(b){var E=D(p);wi(b,l.props,"prop",E,l)}else if(p.PropTypes!==void 0&&!Yt){Yt=!0;var A=D(p);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ji(l){{for(var p=Object.keys(l.props),b=0;b<p.length;b++){var E=p[b];if(E!=="children"&&E!=="key"){$e(l),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E),$e(null);break}}l.ref!==null&&($e(l),_("Invalid attribute `ref` supplied to `React.Fragment`."),$e(null))}}var Qn={};function er(l,p,b,E,A,I){{var C=X(l);if(!C){var O="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(O+=" 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 H=Mi();H?O+=H:O+=Kn();var F;l===null?F="null":Ht(l)?F="array":l!==void 0&&l.$$typeof===t?(F="<"+(D(l.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):F=typeof l,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",F,O)}var j=Ii(l,p,b,A,I);if(j==null)return j;if(C){var Z=p.children;if(Z!==void 0)if(E)if(Ht(Z)){for(var Ue=0;Ue<Z.length;Ue++)Zn(Z[Ue],l);Object.freeze&&Object.freeze(Z)}else _("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 Zn(Z,l)}if(et.call(p,"key")){var Pe=D(l),z=Object.keys(p).filter(function(Hi){return Hi!=="key"}),qt=z.length>0?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}";if(!Qn[Pe+qt]){var Vi=z.length>0?"{"+z.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+b+">.")}return p}}function Gn(l,p){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var b=jo(p);if(Xn[b])return;Xn[b]=!0;var x="";l&&l._owner&&l._owner!==Yt.current&&(x=" It was passed a child from "+j(l._owner.type)+"."),Ye(l),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',b,x),Ye(null)}}function Zn(l,p){{if(typeof l!="object")return;if(Wt(l))for(var b=0;b<l.length;b++){var x=l[b];zt(x)&&Gn(x,p)}else if(zt(l))l._store&&(l._store.validated=!0);else if(l){var A=S(l);if(typeof A=="function"&&A!==l.entries)for(var I=A.call(l),C;!(C=I.next()).done;)zt(C.value)&&Gn(C.value,p)}}}function Ho(l){{var p=l.type;if(p==null||typeof p=="string")return;var b;if(typeof p=="function")b=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===a||p.$$typeof===h))b=p.propTypes;else return;if(b){var x=j(p);So(b,l.props,"prop",x,l)}else if(p.PropTypes!==void 0&&!Ut){Ut=!0;var A=j(p);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vo(l){{for(var p=Object.keys(l.props),b=0;b<p.length;b++){var x=p[b];if(x!=="children"&&x!=="key"){Ye(l),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),Ye(null);break}}l.ref!==null&&(Ye(l),_("Invalid attribute `ref` supplied to `React.Fragment`."),Ye(null))}}var Qn={};function er(l,p,b,x,A,I){{var C=Z(l);if(!C){var O="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(O+=" 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 z=Do();z?O+=z:O+=Kn();var L;l===null?L="null":Wt(l)?L="array":l!==void 0&&l.$$typeof===t?(L="<"+(j(l.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):L=typeof l,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",L,O)}var H=Lo(l,p,b,A,I);if(H==null)return H;if(C){var ee=p.children;if(ee!==void 0)if(x)if(Wt(ee)){for(var Ue=0;Ue<ee.length;Ue++)Zn(ee[Ue],l);Object.freeze&&Object.freeze(ee)}else _("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 Zn(ee,l)}if(et.call(p,"key")){var Pe=j(l),q=Object.keys(p).filter(function(Uo){return Uo!=="key"}),qt=q.length>0?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}";if(!Qn[Pe+qt]){var Yo=q.length>0?"{"+q.join(": ..., ")+": ...}":"{}";_(`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} />`,qt,Pe,Vi,Pe),Qn[Pe+qt]=!0}}return l===r?ji(j):Li(j),j}}function Di(l,p,b){return er(l,p,b,!0)}function Bi(l,p,b){return er(l,p,b,!1)}var Ni=Bi,Wi=Di;ze.Fragment=r,ze.jsx=Ni,ze.jsxs=Wi}()),ze}process.env.NODE_ENV==="production"?vt.exports=tr():vt.exports=nr();var rr=vt.exports;/*! shepherd.js 14.0.1 */function or(e){return e instanceof Element}function qe(e){return e instanceof HTMLElement}function ge(e){return typeof e=="function"}function Je(e){return typeof e=="string"}function N(e){return e===void 0}class yt{on(t,n,r,o=!1){var s;return N(this.bindings)&&(this.bindings={}),N(this.bindings[t])&&(this.bindings[t]=[]),(s=this.bindings[t])==null||s.push({handler:n,ctx:r,once:o}),this}once(t,n,r){return this.on(t,n,r,!0)}off(t,n){if(N(this.bindings)||N(this.bindings[t]))return this;if(N(n))delete this.bindings[t];else{var r;(r=this.bindings[t])==null||r.forEach((o,s)=>{if(o.handler===n){var i;(i=this.bindings[t])==null||i.splice(s,1)}})}return this}trigger(t,...n){if(!N(this.bindings)&&this.bindings[t]){var r;(r=this.bindings[t])==null||r.forEach((o,s)=>{const{ctx:i,handler:c,once:a}=o,u=i||this;if(c.apply(u,n),a){var f;(f=this.bindings[t])==null||f.splice(s,1)}})}return this}}function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(null,arguments)}function Xt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const me={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};me.defaultMerge;function ir(e,t){return t}function Gt(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:cr(e)?1:e instanceof Set?3:e instanceof Map?4:5}function sr(e){const t=new Set;for(const n of e)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(r);return t}function lr(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function Zt(e){return{*[Symbol.iterator](){for(const t of e)for(const n of t)yield n}}}const Qt=new Set(["[object Object]","[object Module]"]);function cr(e){if(!Qt.has(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const n=t.prototype;return!(n===null||typeof n!="object"||!Qt.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function ar(e,t,n){const r={};for(const o of sr(e)){const s=[];for(const a of e)lr(a,o)&&s.push(a[o]);if(s.length===0)continue;const i=t.metaDataUpdater(n,{key:o,parents:e}),c=tn(s,t,i);c!==me.skip&&(o==="__proto__"?Object.defineProperty(r,o,{value:c,configurable:!0,enumerable:!0,writable:!0}):r[o]=c)}return r}function ur(e){return e.flat()}function fr(e){return new Set(Zt(e))}function dr(e){return new Map(Zt(e))}function en(e){return e.at(-1)}var _t=Object.freeze({__proto__:null,mergeArrays:ur,mergeMaps:dr,mergeOthers:en,mergeRecords:ar,mergeSets:fr});function wt(...e){return hr({})(...e)}function hr(e,t){const n=pr(e,r);function r(...o){return tn(o,n,t)}return r}function pr(e,t){var n,r;return{defaultMergeFunctions:_t,mergeFunctions:W({},_t,Object.fromEntries(Object.entries(e).filter(([o,s])=>Object.hasOwn(_t,o)).map(([o,s])=>s===!1?[o,en]:[o,s]))),metaDataUpdater:(n=e.metaDataUpdater)!=null?n:ir,deepmerge:t,useImplicitDefaultMerging:(r=e.enableImplicitDefaultMerging)!=null?r:!1,actions:me}}function tn(e,t,n){if(e.length===0)return;if(e.length===1)return xt(e,t,n);const r=Gt(e[0]);if(r!==0&&r!==5){for(let o=1;o<e.length;o++)if(Gt(e[o])!==r)return xt(e,t,n)}switch(r){case 1:return gr(e,t,n);case 2:return mr(e,t,n);case 3:return br(e,t,n);case 4:return vr(e,t,n);default:return xt(e,t,n)}}function gr(e,t,n){const r=t.mergeFunctions.mergeRecords(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):r}function mr(e,t,n){const r=t.mergeFunctions.mergeArrays(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):r}function br(e,t,n){const r=t.mergeFunctions.mergeSets(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):r}function vr(e,t,n){const r=t.mergeFunctions.mergeMaps(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):r}function xt(e,t,n){const r=t.mergeFunctions.mergeOthers(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}function Et(e){const t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){const r=t[n],o=e[r];r!=="constructor"&&typeof o=="function"&&(e[r]=o.bind(e))}return e}function yr(e,t){return n=>{if(e.isOpen()){const r=e.el&&n.currentTarget===e.el;(!N(t)&&n.currentTarget.matches(t)||r)&&e.tour.next()}}}function _r(e){const{event:t,selector:n}=e.options.advanceOn||{};if(t){const r=yr(e,n);let o=null;if(!N(n)&&(o=document.querySelector(n),!o))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);o?(o.addEventListener(t,r),e.on("destroy",()=>o.removeEventListener(t,r))):(document.body.addEventListener(t,r,!0),e.on("destroy",()=>document.body.removeEventListener(t,r,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class wr{constructor(t){}}class xr{constructor(t,n){}}function nn(e){return!Je(e)||e===""?"":e.charAt(e.length-1)!=="-"?`${e}-`:e}function Er(e){const t=e.options.attachTo||{},n=Object.assign({},t);if(ge(n.element)&&(n.element=n.element.call(e)),Je(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${t.element}`)}return n}function rn(e){return e==null?!0:!e.element||!e.on}function on(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t=="x"?n:n&3|8).toString(16)})}const ke=Math.min,xe=Math.max,nt=Math.round,rt=Math.floor,be=e=>({x:e,y:e}),Sr={left:"right",right:"left",bottom:"top",top:"bottom"},Or={start:"end",end:"start"};function St(e,t,n){return xe(e,ke(t,n))}function Ie(e,t){return typeof e=="function"?e(t):e}function Ee(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function Ot(e){return e==="x"?"y":"x"}function Rt(e){return e==="y"?"height":"width"}function Me(e){return["top","bottom"].includes(Ee(e))?"y":"x"}function Tt(e){return Ot(Me(e))}function Rr(e,t,n){n===void 0&&(n=!1);const r=ot(e),o=Tt(e),s=Rt(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=it(i)),[i,it(i)]}function Tr(e){const t=it(e);return[Ct(e),t,Ct(t)]}function Ct(e){return e.replace(/start|end/g,t=>Or[t])}function Cr(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function Ar(e,t,n,r){const o=ot(e);let s=Cr(Ee(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Ct)))),s}function it(e){return e.replace(/left|right|bottom|top/g,t=>Sr[t])}function Pr(e){return W({top:0,right:0,bottom:0,left:0},e)}function sn(e){return typeof e!="number"?Pr(e):{top:e,right:e,bottom:e,left:e}}function st(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}const kr=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Ir=["mainAxis","crossAxis","limiter"];function ln(e,t,n){let{reference:r,floating:o}=e;const s=Me(t),i=Tt(t),c=Rt(i),a=Ee(t),u=s==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,d=r[c]/2-o[c]/2;let g;switch(a){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(ot(t)){case"start":g[i]-=d*(n&&u?-1:1);break;case"end":g[i]+=d*(n&&u?-1:1);break}return g}const Mr=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,c=s.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=ln(u,r,a),d=r,g={},v=0;for(let x=0;x<c.length;x++){const{name:S,fn:w}=c[x],{x:_,y:R,data:y,reset:m}=await w({x:f,y:h,initialPlacement:r,placement:d,strategy:o,middlewareData:g,rects:u,platform:i,elements:{reference:e,floating:t}});f=_??f,h=R??h,g=W({},g,{[S]:W({},g[S],y)}),m&&v<=50&&(v++,typeof m=="object"&&(m.placement&&(d=m.placement),m.rects&&(u=m.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):m.rects),{x:f,y:h}=ln(u,d,a)),x=-1)}return{x:f,y:h,placement:d,strategy:o,middlewareData:g}};async function cn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:c,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:g=0}=Ie(t,e),v=sn(g),S=c[d?h==="floating"?"reference":"floating":h],w=st(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(S)))==null||n?S:S.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:a})),_=h==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),y=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},m=st(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:R,strategy:a}):_);return{top:(w.top-m.top+v.top)/y.y,bottom:(m.bottom-w.bottom+v.bottom)/y.y,left:(w.left-m.left+v.left)/y.x,right:(m.right-w.right+v.right)/y.x}}const Fr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:c,middlewareData:a}=t,{element:u,padding:f=0}=Ie(e,t)||{};if(u==null)return{};const h=sn(f),d={x:n,y:r},g=Tt(o),v=Rt(g),x=await i.getDimensions(u),S=g==="y",w=S?"top":"left",_=S?"bottom":"right",R=S?"clientHeight":"clientWidth",y=s.reference[v]+s.reference[g]-d[g]-s.floating[v],m=d[g]-s.reference[g],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let B=T?T[R]:0;(!B||!await(i.isElement==null?void 0:i.isElement(T)))&&(B=c.floating[R]||s.floating[v]);const le=y/2-m/2,$=B/2-x[v]/2-1,X=ke(h[w],$),U=ke(h[_],$),V=X,D=B-x[v]-U,L=B/2-x[v]/2+le,G=St(V,L,D),Y=!a.arrow&&ot(o)!=null&&L!==G&&s.reference[v]/2-(L<V?X:U)-x[v]/2<0,de=Y?L<V?L-V:L-D:0;return{[g]:d[g]+de,data:W({[g]:G,centerOffset:L-G-de},Y&&{alignmentOffset:de}),reset:Y}}}),Lr=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,o;const{placement:s,middlewareData:i,rects:c,initialPlacement:a,platform:u,elements:f}=n,h=Ie(t,n),{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:w=!0}=h,_=Xt(h,kr);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const R=Ee(s),y=Me(a),m=Ee(a)===a,T=await(u.isRTL==null?void 0:u.isRTL(f.floating)),B=v||(m||!w?[it(a)]:Tr(a)),le=S!=="none";!v&&le&&B.push(...Ar(a,w,S,T));const $=[a,...B],X=await cn(n,_),U=[];let V=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&U.push(X[R]),g){const Y=Rr(s,c,T);U.push(X[Y[0]],X[Y[1]])}if(V=[...V,{placement:s,overflows:U}],!U.every(Y=>Y<=0)){var D,L;const Y=(((D=i.flip)==null?void 0:D.index)||0)+1,de=$[Y];if(de)return{data:{index:Y,overflows:V},reset:{placement:de}};let we=(L=V.filter(he=>he.overflows[0]<=0).sort((he,ne)=>he.overflows[1]-ne.overflows[1])[0])==null?void 0:L.placement;if(!we)switch(x){case"bestFit":{var G;const he=(G=V.filter(ne=>{if(le){const re=Me(ne.placement);return re===y||re==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(re=>re>0).reduce((re,ht)=>re+ht,0)]).sort((ne,re)=>ne[1]-re[1])[0])==null?void 0:G[0];he&&(we=he);break}case"initialPlacement":we=a;break}if(s!==we)return{reset:{placement:we}}}return{}}}},jr=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:o,placement:s}=n,i=Ie(t,n),{mainAxis:c=!0,crossAxis:a=!1,limiter:u={fn:_=>{let{x:R,y}=_;return{x:R,y}}}}=i,f=Xt(i,Ir),h={x:r,y:o},d=await cn(n,f),g=Me(Ee(s)),v=Ot(g);let x=h[v],S=h[g];if(c){const _=v==="y"?"top":"left",R=v==="y"?"bottom":"right",y=x+d[_],m=x-d[R];x=St(y,x,m)}if(a){const _=g==="y"?"top":"left",R=g==="y"?"bottom":"right",y=S+d[_],m=S-d[R];S=St(y,S,m)}const w=u.fn(W({},n,{[v]:x,[g]:S}));return W({},w,{data:{x:w.x-r,y:w.y-o}})}}},Dr=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:r,y:o,placement:s,rects:i,middlewareData:c}=n,{offset:a=0,mainAxis:u=!0,crossAxis:f=!0}=Ie(t,n),h={x:r,y:o},d=Me(s),g=Ot(d);let v=h[g],x=h[d];const S=Ie(a,n),w=typeof S=="number"?{mainAxis:S,crossAxis:0}:W({mainAxis:0,crossAxis:0},S);if(u){const y=g==="y"?"height":"width",m=i.reference[g]-i.floating[y]+w.mainAxis,T=i.reference[g]+i.reference[y]-w.mainAxis;v<m?v=m:v>T&&(v=T)}if(f){var _,R;const y=g==="y"?"width":"height",m=["top","left"].includes(Ee(s)),T=i.reference[d]-i.floating[y]+(m&&((_=c.offset)==null?void 0:_[d])||0)+(m?0:w.crossAxis),B=i.reference[d]+i.reference[y]+(m?0:((R=c.offset)==null?void 0:R[d])||0)-(m?w.crossAxis:0);x<T?x=T:x>B&&(x=B)}return{[g]:v,[d]:x}}}};function Fe(e){return an(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ce(e){var t;return(t=(an(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function an(e){return e instanceof Node||e instanceof q(e).Node}function Q(e){return e instanceof Element||e instanceof q(e).Element}function ie(e){return e instanceof HTMLElement||e instanceof q(e).HTMLElement}function un(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}function Ke(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Br(e){return["table","td","th"].includes(Fe(e))}function lt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function At(e){const t=Pt(),n=Q(e)?ee(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Nr(e){let t=ve(e);for(;ie(t)&&!Le(t);){if(At(t))return t;if(lt(t))return null;t=ve(t)}return null}function Pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Le(e){return["html","body","#document"].includes(Fe(e))}function ee(e){return q(e).getComputedStyle(e)}function ct(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ve(e){if(Fe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||un(e)&&e.host||ce(e);return un(t)?t.host:t}function fn(e){const t=ve(e);return Le(t)?e.ownerDocument?e.ownerDocument.body:e.body:ie(t)&&Ke(t)?t:fn(t)}function Xe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=fn(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=q(o);return s?t.concat(i,i.visualViewport||[],Ke(o)?o:[],i.frameElement&&n?Xe(i.frameElement):[]):t.concat(o,Xe(o,[],n))}function dn(e){const t=ee(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ie(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,c=nt(n)!==s||nt(r)!==i;return c&&(n=s,r=i),{width:n,height:r,$:c}}function kt(e){return Q(e)?e:e.contextElement}function je(e){const t=kt(e);if(!ie(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=dn(t);let i=(s?nt(n.width):n.width)/r,c=(s?nt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Wr=be(0);function hn(e){const t=q(e);return!Pt()||!t.visualViewport?Wr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==q(e)?!1:t}function Se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=kt(e);let i=be(1);t&&(r?Q(r)&&(i=je(r)):i=je(e));const c=Vr(s,n,r)?hn(s):be(0);let a=(o.left+c.x)/i.x,u=(o.top+c.y)/i.y,f=o.width/i.x,h=o.height/i.y;if(s){const d=q(s),g=r&&Q(r)?q(r):r;let v=d,x=v.frameElement;for(;x&&r&&g!==v;){const S=je(x),w=x.getBoundingClientRect(),_=ee(x),R=w.left+(x.clientLeft+parseFloat(_.paddingLeft))*S.x,y=w.top+(x.clientTop+parseFloat(_.paddingTop))*S.y;a*=S.x,u*=S.y,f*=S.x,h*=S.y,a+=R,u+=y,v=q(x),x=v.frameElement}}return st({width:f,height:h,x:a,y:u})}function Hr(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=ce(r),c=t?lt(t.floating):!1;if(r===i||c&&s)return n;let a={scrollLeft:0,scrollTop:0},u=be(1);const f=be(0),h=ie(r);if((h||!h&&!s)&&((Fe(r)!=="body"||Ke(i))&&(a=ct(r)),ie(r))){const d=Se(r);u=je(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+f.x,y:n.y*u.y-a.scrollTop*u.y+f.y}}function $r(e){return Array.from(e.getClientRects())}function pn(e){return Se(ce(e)).left+ct(e).scrollLeft}function Ur(e){const t=ce(e),n=ct(e),r=e.ownerDocument.body,o=xe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=xe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+pn(e);const c=-n.scrollTop;return ee(r).direction==="rtl"&&(i+=xe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:c}}function Yr(e,t){const n=q(e),r=ce(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,c=0,a=0;if(o){s=o.width,i=o.height;const u=Pt();(!u||u&&t==="fixed")&&(c=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:c,y:a}}function zr(e,t){const n=Se(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ie(e)?je(e):be(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,a=o*s.x,u=r*s.y;return{width:i,height:c,x:a,y:u}}function gn(e,t,n){let r;if(t==="viewport")r=Yr(e,n);else if(t==="document")r=Ur(ce(e));else if(Q(t))r=zr(t,n);else{const o=hn(e);r=W({},t,{x:t.x-o.x,y:t.y-o.y})}return st(r)}function mn(e,t){const n=ve(e);return n===t||!Q(n)||Le(n)?!1:ee(n).position==="fixed"||mn(n,t)}function qr(e,t){const n=t.get(e);if(n)return n;let r=Xe(e,[],!1).filter(c=>Q(c)&&Fe(c)!=="body"),o=null;const s=ee(e).position==="fixed";let i=s?ve(e):e;for(;Q(i)&&!Le(i);){const c=ee(i),a=At(i);!a&&c.position==="fixed"&&(o=null),(s?!a&&!o:!a&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ke(i)&&!a&&mn(e,i))?r=r.filter(f=>f!==i):o=c,i=ve(i)}return t.set(e,r),r}function Jr(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?lt(t)?[]:qr(t,this._c):[].concat(n),r],c=i[0],a=i.reduce((u,f)=>{const h=gn(t,f,o);return u.top=xe(h.top,u.top),u.right=ke(h.right,u.right),u.bottom=ke(h.bottom,u.bottom),u.left=xe(h.left,u.left),u},gn(t,c,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Kr(e){const{width:t,height:n}=dn(e);return{width:t,height:n}}function Xr(e,t,n){const r=ie(t),o=ce(t),s=n==="fixed",i=Se(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const a=be(0);if(r||!r&&!s)if((Fe(t)!=="body"||Ke(o))&&(c=ct(t)),r){const h=Se(t,!0,s,t);a.x=h.x+t.clientLeft,a.y=h.y+t.clientTop}else o&&(a.x=pn(o));const u=i.left+c.scrollLeft-a.x,f=i.top+c.scrollTop-a.y;return{x:u,y:f,width:i.width,height:i.height}}function It(e){return ee(e).position==="static"}function bn(e,t){return!ie(e)||ee(e).position==="fixed"?null:t?t(e):e.offsetParent}function vn(e,t){const n=q(e);if(lt(e))return n;if(!ie(e)){let o=ve(e);for(;o&&!Le(o);){if(Q(o)&&!It(o))return o;o=ve(o)}return n}let r=bn(e,t);for(;r&&Br(r)&&It(r);)r=bn(r,t);return r&&Le(r)&&It(r)&&!At(r)?n:r||Nr(e)||n}const Gr=async function(t){const n=this.getOffsetParent||vn,r=this.getDimensions,o=await r(t.floating);return{reference:Xr(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Zr(e){return ee(e).direction==="rtl"}const Qr={convertOffsetParentRelativeRectToViewportRelativeRect:Hr,getDocumentElement:ce,getClippingRect:Jr,getOffsetParent:vn,getElementRects:Gr,getClientRects:$r,getDimensions:Kr,getScale:je,isElement:Q,isRTL:Zr};function eo(e,t){let n=null,r;const o=ce(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function i(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),s();const{left:u,top:f,width:h,height:d}=e.getBoundingClientRect();if(c||t(),!h||!d)return;const g=rt(f),v=rt(o.clientWidth-(u+h)),x=rt(o.clientHeight-(f+d)),S=rt(u),_={rootMargin:-g+"px "+-v+"px "+-x+"px "+-S+"px",threshold:xe(0,ke(1,a))||1};let R=!0;function y(m){const T=m[0].intersectionRatio;if(T!==a){if(!R)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}R=!1}try{n=new IntersectionObserver(y,W({},_,{root:o.ownerDocument}))}catch{n=new IntersectionObserver(y,_)}n.observe(e)}return i(!0),s}function to(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=kt(e),f=o||s?[...u?Xe(u):[],...Xe(t)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const h=u&&c?eo(u,n):null;let d=-1,g=null;i&&(g=new ResizeObserver(w=>{let[_]=w;_&&_.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var R;(R=g)==null||R.observe(t)})),n()}),u&&!a&&g.observe(u),g.observe(t));let v,x=a?Se(e):null;a&&S();function S(){const w=Se(e);x&&(w.x!==x.x||w.y!==x.y||w.width!==x.width||w.height!==x.height)&&n(),x=w,v=requestAnimationFrame(S)}return n(),()=>{var w;f.forEach(_=>{o&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),h==null||h(),(w=g)==null||w.disconnect(),g=null,a&&cancelAnimationFrame(v)}}const no=jr,ro=Lr,oo=Fr,io=Dr,so=(e,t,n)=>{const r=new Map,o=W({platform:Qr},n),s=W({},o.platform,{_c:r});return Mr(e,t,W({},o,{platform:s}))};function lo(e){e.cleanup&&e.cleanup();const t=e._getResolvedAttachToOptions();let n=t.element;const r=po(t,e),o=rn(t);return o&&(n=document.body,e.shepherdElementComponent.getElement().classList.add("shepherd-centered")),e.cleanup=to(n,e.el,()=>{if(!e.el){e.cleanup==null||e.cleanup();return}uo(n,e,r,o)}),e.target=t.element,r}function co(e,t){return{floatingUIOptions:wt(e.floatingUIOptions||{},t.floatingUIOptions||{})}}function ao(e){e.cleanup&&e.cleanup(),e.cleanup=null}function uo(e,t,n,r){return so(e,t.el,n).then(fo(t,r)).then(o=>new Promise(s=>{setTimeout(()=>s(o),300)})).then(o=>{o!=null&&o.el&&o.el.focus({preventScroll:!0})})}function fo(e,t){return({x:n,y:r,placement:o,middlewareData:s})=>(e.el&&(t?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:`${n}px`,top:`${r}px`}),e.el.dataset.popperPlacement=o,ho(e.el,s)),e)}function ho(e,t){const n=e.querySelector(".shepherd-arrow");if(qe(n)&&t.arrow){const{x:r,y:o}=t.arrow;Object.assign(n.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:""})}}function po(e,t){const n={strategy:"absolute"};n.middleware=[];const r=go(t);if(!rn(e)){if(n.middleware.push(ro(),no({limiter:io(),crossAxis:!0})),r){var s,i;const c=(e==null||(s=e.on)==null?void 0:s.includes("-start"))||(e==null||(i=e.on)==null?void 0:i.includes("-end"));n.middleware.push(oo({element:r,padding:c?4:0}))}n.placement=e.on}return wt(n,t.options.floatingUIOptions||{})}function go(e){return e.options.arrow&&e.el?e.el.querySelector(".shepherd-arrow"):!1}function J(){}function mo(e,t){for(const n in t)e[n]=t[n];return e}function yn(e){return e()}function _n(){return Object.create(null)}function Ge(e){e.forEach(yn)}function Mt(e){return typeof e=="function"}function ae(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function bo(e){return Object.keys(e).length===0}function De(e,t){e.appendChild(t)}function te(e,t,n){e.insertBefore(t,n||null)}function K(e){e.parentNode&&e.parentNode.removeChild(e)}function vo(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function se(e){return document.createElement(e)}function wn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function xn(e){return document.createTextNode(e)}function at(){return xn(" ")}function yo(){return xn("")}function ut(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function k(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const _o=["width","height"];function En(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&_o.indexOf(r)===-1?e[r]=t[r]:k(e,r,t[r])}function wo(e){return Array.from(e.childNodes)}function Be(e,t,n){e.classList.toggle(t,!!n)}let Ze;function Qe(e){Ze=e}function Sn(){if(!Ze)throw new Error("Function called outside component initialization");return Ze}function xo(e){Sn().$$.on_mount.push(e)}function Ft(e){Sn().$$.after_update.push(e)}const Ne=[],We=[];let Ve=[];const On=[],Eo=Promise.resolve();let Lt=!1;function So(){Lt||(Lt=!0,Eo.then(Rn))}function jt(e){Ve.push(e)}const Dt=new Set;let He=0;function Rn(){if(He!==0)return;const e=Ze;do{try{for(;He<Ne.length;){const t=Ne[He];He++,Qe(t),Oo(t.$$)}}catch(t){throw Ne.length=0,He=0,t}for(Qe(null),Ne.length=0,He=0;We.length;)We.pop()();for(let t=0;t<Ve.length;t+=1){const n=Ve[t];Dt.has(n)||(Dt.add(n),n())}Ve.length=0}while(Ne.length);for(;On.length;)On.pop()();Lt=!1,Dt.clear(),Qe(e)}function Oo(e){if(e.fragment!==null){e.update(),Ge(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(jt)}}function Ro(e){const t=[],n=[];Ve.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ve=t}const ft=new Set;let Oe;function Re(){Oe={r:0,c:[],p:Oe}}function Te(){Oe.r||Ge(Oe.c),Oe=Oe.p}function P(e,t){e&&e.i&&(ft.delete(e),e.i(t))}function M(e,t,n,r){if(e&&e.o){if(ft.has(e))return;ft.add(e),Oe.c.push(()=>{ft.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Tn(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function To(e,t){const n={},r={},o={$$scope:1};let s=e.length;for(;s--;){const i=e[s],c=t[s];if(c){for(const a in i)a in c||(r[a]=1);for(const a in c)o[a]||(n[a]=c[a],o[a]=1);e[s]=c}else for(const a in i)o[a]=1}for(const i in r)i in n||(n[i]=void 0);return n}function Ce(e){e&&e.c()}function ye(e,t,n){const{fragment:r,after_update:o}=e.$$;r&&r.m(t,n),jt(()=>{const s=e.$$.on_mount.map(yn).filter(Mt);e.$$.on_destroy?e.$$.on_destroy.push(...s):Ge(s),e.$$.on_mount=[]}),o.forEach(jt)}function _e(e,t){const n=e.$$;n.fragment!==null&&(Ro(n.after_update),Ge(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Co(e,t){e.$$.dirty[0]===-1&&(Ne.push(e),So(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ue(e,t,n,r,o,s,i=null,c=[-1]){const a=Ze;Qe(e);const u=e.$$={fragment:null,ctx:[],props:s,update:J,not_equal:o,bound:_n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:_n(),dirty:c,skip_bound:!1,root:t.target||a.$$.root};i&&i(u.root);let f=!1;if(u.ctx=n?n(e,t.props||{},(h,d,...g)=>{const v=g.length?g[0]:d;return u.ctx&&o(u.ctx[h],u.ctx[h]=v)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](v),f&&Co(e,h)),d}):[],u.update(),f=!0,Ge(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const h=wo(t.target);u.fragment&&u.fragment.l(h),h.forEach(K)}else u.fragment&&u.fragment.c();t.intro&&P(e.$$.fragment),ye(e,t.target,t.anchor),Rn()}Qe(a)}class fe{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){_e(this,1),this.$destroy=J}$on(t,n){if(!Mt(n))return J;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(t){this.$$set&&!bo(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ao="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ao);function Po(e){let t,n,r,o,s;return{c(){t=se("button"),k(t,"aria-label",n=e[3]?e[3]:null),k(t,"class",r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`),t.disabled=e[2],k(t,"tabindex","0"),k(t,"type","button")},m(i,c){te(i,t,c),t.innerHTML=e[5],o||(s=ut(t,"click",function(){Mt(e[0])&&e[0].apply(this,arguments)}),o=!0)},p(i,[c]){e=i,c&32&&(t.innerHTML=e[5]),c&8&&n!==(n=e[3]?e[3]:null)&&k(t,"aria-label",n),c&18&&r!==(r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`)&&k(t,"class",r),c&4&&(t.disabled=e[2])},i:J,o:J,d(i){i&&K(t),o=!1,s()}}}function ko(e,t,n){let{config:r,step:o}=t,s,i,c,a,u,f;function h(d){return ge(d)?d=d.call(o):d}return e.$$set=d=>{"config"in d&&n(6,r=d.config),"step"in d&&n(7,o=d.step)},e.$$.update=()=>{e.$$.dirty&192&&(n(0,s=r.action?r.action.bind(o.tour):null),n(1,i=r.classes),n(2,c=r.disabled?h(r.disabled):!1),n(3,a=r.label?h(r.label):null),n(4,u=r.secondary),n(5,f=r.text?h(r.text):null))},[s,i,c,a,u,f,r,o]}class Io extends fe{constructor(t){super(),ue(this,t,ko,Po,ae,{config:6,step:7})}}function Cn(e,t,n){const r=e.slice();return r[2]=t[n],r}function An(e){let t,n,r=Tn(e[1]),o=[];for(let i=0;i<r.length;i+=1)o[i]=Pn(Cn(e,r,i));const s=i=>M(o[i],1,1,()=>{o[i]=null});return{c(){for(let i=0;i<o.length;i+=1)o[i].c();t=yo()},m(i,c){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(i,c);te(i,t,c),n=!0},p(i,c){if(c&3){r=Tn(i[1]);let a;for(a=0;a<r.length;a+=1){const u=Cn(i,r,a);o[a]?(o[a].p(u,c),P(o[a],1)):(o[a]=Pn(u),o[a].c(),P(o[a],1),o[a].m(t.parentNode,t))}for(Re(),a=r.length;a<o.length;a+=1)s(a);Te()}},i(i){if(!n){for(let c=0;c<r.length;c+=1)P(o[c]);n=!0}},o(i){o=o.filter(Boolean);for(let c=0;c<o.length;c+=1)M(o[c]);n=!1},d(i){i&&K(t),vo(o,i)}}}function Pn(e){let t,n;return t=new Io({props:{config:e[2],step:e[0]}}),{c(){Ce(t.$$.fragment)},m(r,o){ye(t,r,o),n=!0},p(r,o){const s={};o&2&&(s.config=r[2]),o&1&&(s.step=r[0]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Mo(e){let t,n,r=e[1]&&An(e);return{c(){t=se("footer"),r&&r.c(),k(t,"class","shepherd-footer")},m(o,s){te(o,t,s),r&&r.m(t,null),n=!0},p(o,[s]){o[1]?r?(r.p(o,s),s&2&&P(r,1)):(r=An(o),r.c(),P(r,1),r.m(t,null)):r&&(Re(),M(r,1,1,()=>{r=null}),Te())},i(o){n||(P(r),n=!0)},o(o){M(r),n=!1},d(o){o&&K(t),r&&r.d()}}}function Fo(e,t,n){let r,{step:o}=t;return e.$$set=s=>{"step"in s&&n(0,o=s.step)},e.$$.update=()=>{e.$$.dirty&1&&n(1,r=o.options.buttons)},[o,r]}class Lo extends fe{constructor(t){super(),ue(this,t,Fo,Mo,ae,{step:0})}}function jo(e){let t,n,r,o,s;return{c(){t=se("button"),n=se("span"),n.textContent="×",k(n,"aria-hidden","true"),k(t,"aria-label",r=e[0].label?e[0].label:"Close Tour"),k(t,"class","shepherd-cancel-icon"),k(t,"type","button")},m(i,c){te(i,t,c),De(t,n),o||(s=ut(t,"click",e[1]),o=!0)},p(i,[c]){c&1&&r!==(r=i[0].label?i[0].label:"Close Tour")&&k(t,"aria-label",r)},i:J,o:J,d(i){i&&K(t),o=!1,s()}}}function Do(e,t,n){let{cancelIcon:r,step:o}=t;const s=i=>{i.preventDefault(),o.cancel()};return e.$$set=i=>{"cancelIcon"in i&&n(0,r=i.cancelIcon),"step"in i&&n(2,o=i.step)},[r,s,o]}class Bo extends fe{constructor(t){super(),ue(this,t,Do,jo,ae,{cancelIcon:0,step:2})}}function No(e){let t;return{c(){t=se("h3"),k(t,"id",e[1]),k(t,"class","shepherd-title")},m(n,r){te(n,t,r),e[3](t)},p(n,[r]){r&2&&k(t,"id",n[1])},i:J,o:J,d(n){n&&K(t),e[3](null)}}}function Wo(e,t,n){let{labelId:r,element:o,title:s}=t;Ft(()=>{ge(s)&&n(2,s=s()),n(0,o.innerHTML=s,o)});function i(c){We[c?"unshift":"push"](()=>{o=c,n(0,o)})}return e.$$set=c=>{"labelId"in c&&n(1,r=c.labelId),"element"in c&&n(0,o=c.element),"title"in c&&n(2,s=c.title)},[o,r,s,i]}class Vo extends fe{constructor(t){super(),ue(this,t,Wo,No,ae,{labelId:1,element:0,title:2})}}function kn(e){let t,n;return t=new Vo({props:{labelId:e[0],title:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,o){ye(t,r,o),n=!0},p(r,o){const s={};o&1&&(s.labelId=r[0]),o&4&&(s.title=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function In(e){let t,n;return t=new Bo({props:{cancelIcon:e[3],step:e[1]}}),{c(){Ce(t.$$.fragment)},m(r,o){ye(t,r,o),n=!0},p(r,o){const s={};o&8&&(s.cancelIcon=r[3]),o&2&&(s.step=r[1]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Ho(e){let t,n,r,o=e[2]&&kn(e),s=e[3]&&e[3].enabled&&In(e);return{c(){t=se("header"),o&&o.c(),n=at(),s&&s.c(),k(t,"class","shepherd-header")},m(i,c){te(i,t,c),o&&o.m(t,null),De(t,n),s&&s.m(t,null),r=!0},p(i,[c]){i[2]?o?(o.p(i,c),c&4&&P(o,1)):(o=kn(i),o.c(),P(o,1),o.m(t,n)):o&&(Re(),M(o,1,1,()=>{o=null}),Te()),i[3]&&i[3].enabled?s?(s.p(i,c),c&8&&P(s,1)):(s=In(i),s.c(),P(s,1),s.m(t,null)):s&&(Re(),M(s,1,1,()=>{s=null}),Te())},i(i){r||(P(o),P(s),r=!0)},o(i){M(o),M(s),r=!1},d(i){i&&K(t),o&&o.d(),s&&s.d()}}}function $o(e,t,n){let{labelId:r,step:o}=t,s,i;return e.$$set=c=>{"labelId"in c&&n(0,r=c.labelId),"step"in c&&n(1,o=c.step)},e.$$.update=()=>{e.$$.dirty&2&&(n(2,s=o.options.title),n(3,i=o.options.cancelIcon))},[r,o,s,i]}class Uo extends fe{constructor(t){super(),ue(this,t,$o,Ho,ae,{labelId:0,step:1})}}function Yo(e){let t;return{c(){t=se("div"),k(t,"class","shepherd-text"),k(t,"id",e[1])},m(n,r){te(n,t,r),e[3](t)},p(n,[r]){r&2&&k(t,"id",n[1])},i:J,o:J,d(n){n&&K(t),e[3](null)}}}function zo(e,t,n){let{descriptionId:r,element:o,step:s}=t;Ft(()=>{let{text:c}=s.options;ge(c)&&(c=c.call(s)),qe(c)?o.appendChild(c):n(0,o.innerHTML=c,o)});function i(c){We[c?"unshift":"push"](()=>{o=c,n(0,o)})}return e.$$set=c=>{"descriptionId"in c&&n(1,r=c.descriptionId),"element"in c&&n(0,o=c.element),"step"in c&&n(2,s=c.step)},[o,r,s,i]}class qo extends fe{constructor(t){super(),ue(this,t,zo,Yo,ae,{descriptionId:1,element:0,step:2})}}function Mn(e){let t,n;return t=new Uo({props:{labelId:e[1],step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,o){ye(t,r,o),n=!0},p(r,o){const s={};o&2&&(s.labelId=r[1]),o&4&&(s.step=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Fn(e){let t,n;return t=new qo({props:{descriptionId:e[0],step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,o){ye(t,r,o),n=!0},p(r,o){const s={};o&1&&(s.descriptionId=r[0]),o&4&&(s.step=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Ln(e){let t,n;return t=new Lo({props:{step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,o){ye(t,r,o),n=!0},p(r,o){const s={};o&4&&(s.step=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Jo(e){let t,n=!N(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,r,o=!N(e[2].options.text),s,i=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length,c,a=n&&Mn(e),u=o&&Fn(e),f=i&&Ln(e);return{c(){t=se("div"),a&&a.c(),r=at(),u&&u.c(),s=at(),f&&f.c(),k(t,"class","shepherd-content"),k(t,"tabindex","0")},m(h,d){te(h,t,d),a&&a.m(t,null),De(t,r),u&&u.m(t,null),De(t,s),f&&f.m(t,null),c=!0},p(h,[d]){d&4&&(n=!N(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?a?(a.p(h,d),d&4&&P(a,1)):(a=Mn(h),a.c(),P(a,1),a.m(t,r)):a&&(Re(),M(a,1,1,()=>{a=null}),Te()),d&4&&(o=!N(h[2].options.text)),o?u?(u.p(h,d),d&4&&P(u,1)):(u=Fn(h),u.c(),P(u,1),u.m(t,s)):u&&(Re(),M(u,1,1,()=>{u=null}),Te()),d&4&&(i=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),i?f?(f.p(h,d),d&4&&P(f,1)):(f=Ln(h),f.c(),P(f,1),f.m(t,null)):f&&(Re(),M(f,1,1,()=>{f=null}),Te())},i(h){c||(P(a),P(u),P(f),c=!0)},o(h){M(a),M(u),M(f),c=!1},d(h){h&&K(t),a&&a.d(),u&&u.d(),f&&f.d()}}}function Ko(e,t,n){let{descriptionId:r,labelId:o,step:s}=t;return e.$$set=i=>{"descriptionId"in i&&n(0,r=i.descriptionId),"labelId"in i&&n(1,o=i.labelId),"step"in i&&n(2,s=i.step)},[r,o,s]}class Xo extends fe{constructor(t){super(),ue(this,t,Ko,Jo,ae,{descriptionId:0,labelId:1,step:2})}}function jn(e){let t;return{c(){t=se("div"),k(t,"class","shepherd-arrow"),k(t,"data-popper-arrow","")},m(n,r){te(n,t,r)},d(n){n&&K(t)}}}function Go(e){let t,n,r,o,s,i,c,a,u=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on&&jn();r=new Xo({props:{descriptionId:e[2],labelId:e[3],step:e[4]}});let f=[{"aria-describedby":o=N(e[4].options.text)?null:e[2]},{"aria-labelledby":s=e[4].options.title?e[3]:null},e[1],{open:"true"}],h={};for(let d=0;d<f.length;d+=1)h=mo(h,f[d]);return{c(){t=se("dialog"),u&&u.c(),n=at(),Ce(r.$$.fragment),En(t,h),Be(t,"shepherd-has-cancel-icon",e[5]),Be(t,"shepherd-has-title",e[6]),Be(t,"shepherd-element",!0)},m(d,g){te(d,t,g),u&&u.m(t,null),De(t,n),ye(r,t,null),e[13](t),i=!0,c||(a=ut(t,"keydown",e[7]),c=!0)},p(d,[g]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?u||(u=jn(),u.c(),u.m(t,n)):u&&(u.d(1),u=null);const v={};g&4&&(v.descriptionId=d[2]),g&8&&(v.labelId=d[3]),g&16&&(v.step=d[4]),r.$set(v),En(t,h=To(f,[(!i||g&20&&o!==(o=N(d[4].options.text)?null:d[2]))&&{"aria-describedby":o},(!i||g&24&&s!==(s=d[4].options.title?d[3]:null))&&{"aria-labelledby":s},g&2&&d[1],{open:"true"}])),Be(t,"shepherd-has-cancel-icon",d[5]),Be(t,"shepherd-has-title",d[6]),Be(t,"shepherd-element",!0)},i(d){i||(P(r.$$.fragment,d),i=!0)},o(d){M(r.$$.fragment,d),i=!1},d(d){d&&K(t),u&&u.d(),_e(r),e[13](null),c=!1,a()}}}const Zo=9,Qo=27,ei=37,ti=39;function Dn(e){return e.split(" ").filter(t=>!!t.length)}function ni(e,t,n){let{classPrefix:r,element:o,descriptionId:s,firstFocusableElement:i,focusableElements:c,labelId:a,lastFocusableElement:u,step:f,dataStepId:h}=t,d,g,v;const x=()=>o;xo(()=>{n(1,h={[`data-${r}shepherd-step-id`]:f.id}),n(9,c=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,i=c[0]),n(10,u=c[c.length-1])}),Ft(()=>{v!==f.options.classes&&S()});function S(){w(v),v=f.options.classes,_(v)}function w(m){if(Je(m)){const T=Dn(m);T.length&&o.classList.remove(...T)}}function _(m){if(Je(m)){const T=Dn(m);T.length&&o.classList.add(...T)}}const R=m=>{const{tour:T}=f;switch(m.keyCode){case Zo:if(c.length===0){m.preventDefault();break}m.shiftKey?(document.activeElement===i||document.activeElement.classList.contains("shepherd-element"))&&(m.preventDefault(),u.focus()):document.activeElement===u&&(m.preventDefault(),i.focus());break;case Qo:T.options.exitOnEsc&&(m.preventDefault(),m.stopPropagation(),f.cancel());break;case ei:T.options.keyboardNavigation&&(m.preventDefault(),m.stopPropagation(),T.back());break;case ti:T.options.keyboardNavigation&&(m.preventDefault(),m.stopPropagation(),T.next());break}};function y(m){We[m?"unshift":"push"](()=>{o=m,n(0,o)})}return e.$$set=m=>{"classPrefix"in m&&n(11,r=m.classPrefix),"element"in m&&n(0,o=m.element),"descriptionId"in m&&n(2,s=m.descriptionId),"firstFocusableElement"in m&&n(8,i=m.firstFocusableElement),"focusableElements"in m&&n(9,c=m.focusableElements),"labelId"in m&&n(3,a=m.labelId),"lastFocusableElement"in m&&n(10,u=m.lastFocusableElement),"step"in m&&n(4,f=m.step),"dataStepId"in m&&n(1,h=m.dataStepId)},e.$$.update=()=>{e.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,g=f.options&&f.options.title))},[o,h,s,a,f,d,g,R,i,c,u,r,x,y]}class ri extends fe{constructor(t){super(),ue(this,t,ni,Go,ae,{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 Bt extends yt{constructor(t,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=t,this.classPrefix=this.tour.options?nn(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,Et(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){ao(this),qe(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var t;(t=this.tour.modal)==null||t.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=Er(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return ge(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const t=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new ri({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(t){const{element:n}=this._getResolvedAttachToOptions();ge(this.options.scrollToHandler)?this.options.scrollToHandler(n):or(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(t)}_getClassOptions(t){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,r=t.classes?t.classes:"",o=n&&n.classes?n.classes:"",s=[...r.split(" "),...o.split(" ")],i=new Set(s);return Array.from(i).join(" ").trim()}_setOptions(t={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=wt({},n||{}),this.options=Object.assign({arrow:!0},n,t,co(n,t));const{when:r}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${on()}`,r&&Object.keys(r).forEach(o=>{this.on(o,r[o],this)})}_setupElements(){N(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&_r(this),lo(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(t=this.tour.modal)==null||t.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(),r=this.target||document.body;r.classList.add(`${this.classPrefix}shepherd-enabled`),r.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(t){const n=t.target;n&&(t.options.highlightClass&&n.classList.add(t.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),t.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const t=this.target||document.body;this.options.highlightClass&&t.classList.remove(this.options.highlightClass),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function oi(e){if(e){const{steps:t}=e;t.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&qe(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function ii({width:e,height:t,x:n=0,y:r=0,r:o=0}){const{innerWidth:s,innerHeight:i}=window,{topLeft:c=0,topRight:a=0,bottomRight:u=0,bottomLeft:f=0}=typeof o=="number"?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${s},${i}H0V0H${s}V${i}ZM${n+c},${r}a${c},${c},0,0,0-${c},${c}V${t+r-f}a${f},${f},0,0,0,${f},${f}H${e+n-u}a${u},${u},0,0,0,${u}-${u}V${r+a}a${a},${a},0,0,0-${a}-${a}Z`}function si(e){let t,n,r,o,s;return{c(){t=wn("svg"),n=wn("path"),k(n,"d",e[2]),k(t,"class",r=`${e[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(i,c){te(i,t,c),De(t,n),e[11](t),o||(s=ut(t,"touchmove",e[3]),o=!0)},p(i,[c]){c&4&&k(n,"d",i[2]),c&2&&r!==(r=`${i[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&k(t,"class",r)},i:J,o:J,d(i){i&&K(t),e[11](null),o=!1,s()}}}function Bn(e){if(!e)return null;const n=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return n!=="hidden"&&n!=="visible"&&e.scrollHeight>=e.clientHeight?e:Bn(e.parentElement)}function li(e){let t={top:0,left:0};if(!e)return t;let n=e.ownerDocument.defaultView;for(;n!==window.top;){var r;const i=(r=n)==null?void 0:r.frameElement;if(i){var o,s;const c=i.getBoundingClientRect();t.top+=c.top+((o=c.scrollTop)!=null?o:0),t.left+=c.left+((s=c.scrollLeft)!=null?s:0)}n=n.parent}return t}function ci(e,t){const n=e.getBoundingClientRect();let r=n.y||n.top,o=n.bottom||r+n.height;if(t){const i=t.getBoundingClientRect(),c=i.y||i.top,a=i.bottom||c+i.height;r=Math.max(r,c),o=Math.min(o,a)}const s=Math.max(o-r,0);return{y:r,height:s}}function ai(e,t,n){let{element:r,openingProperties:o}=t,s=!1,i,c;u();const a=()=>r;function u(){n(4,o={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,s=!1),w()}function h(y=0,m=0,T=0,B=0,le,$){if($){const{y:X,height:U}=ci($,le),{x:V,width:D,left:L}=$.getBoundingClientRect();n(4,o={width:D+y*2,height:U+y*2,x:(V||L)+T-y,y:X+B-y,r:m})}else u()}function d(y){w(),y.tour.options.useModalOverlay?(_(y),g()):f()}function g(){n(1,s=!0)}const v=y=>{y.preventDefault()},x=y=>{y.stopPropagation()};function S(){window.addEventListener("touchmove",v,{passive:!1})}function w(){i&&(cancelAnimationFrame(i),i=void 0),window.removeEventListener("touchmove",v,{passive:!1})}function _(y){const{modalOverlayOpeningPadding:m,modalOverlayOpeningRadius:T,modalOverlayOpeningXOffset:B=0,modalOverlayOpeningYOffset:le=0}=y.options,$=li(y.target),X=Bn(y.target),U=()=>{i=void 0,h(m,T,B+$.left,le+$.top,X,y.target),i=requestAnimationFrame(U)};U(),S()}function R(y){We[y?"unshift":"push"](()=>{r=y,n(0,r)})}return e.$$set=y=>{"element"in y&&n(0,r=y.element),"openingProperties"in y&&n(4,o=y.openingProperties)},e.$$.update=()=>{e.$$.dirty&16&&n(2,c=ii(o))},[r,s,c,x,o,a,u,f,h,d,g,R]}class ui extends fe{constructor(t){super(),ue(this,t,ai,si,ae,{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 fi extends yt{constructor(){super(),this.activeTour=void 0,Et(this)}}class di extends yt{constructor(t={}){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,Et(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,t),this.classPrefix=nn(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(s=>{this.on(s,i=>{i=i||{},i.tour=this,Ae.trigger(s,i)})})(o)}),this._setTourID(t.id),this}addStep(t,n){let r=t;return r instanceof Bt?r.tour=this:r=new Bt(this,r),N(n)?this.steps.push(r):this.steps.splice(n,0,r),r}addSteps(t){return Array.isArray(t)&&t.forEach(n=>{this.addStep(n)}),this}back(){const t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}async cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;ge(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(t),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find(n=>n.id===t)}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return Ae.activeTour===this}next(){const t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}removeStep(t){const n=this.getCurrentStep();this.steps.some((r,o)=>{if(r.id===t)return r.isOpen()&&r.hide(),r.destroy(),this.steps.splice(o,1),!0}),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t=0,n=!0){const r=Je(t)?this.getById(t):this.steps[t];r&&(this._updateStateBeforeShow(),ge(r.options.showOn)&&!r.options.showOn()?this._skipStep(r,n):(this.currentStep=r,this.trigger("show",{step:r,previous:this.currentStep}),r.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(t){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(r=>r.destroy()),oi(this),this.trigger(t,{index:n}),Ae.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(t==="cancel"||t==="complete")&&this.modal){const r=document.querySelector(".shepherd-modal-overlay-container");r&&(r.remove(),this.modal=null)}qe(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Ae.activeTour=this}setupModal(){this.modal=new ui({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(t,n){const r=this.steps.indexOf(t);if(r===this.steps.length-1)this.complete();else{const o=n?r+1:r-1;this.show(o,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(t){const n=this.options.tourName||"tour",r=t||on();this.id=`${n}--${r}`}}const Ae=new fi,Nn=typeof window>"u";Ae.Step=Nn?wr:Bt,Ae.Tour=Nn?xr:di;const dt=pe.createContext(void 0),hi=dt.Consumer,pi=()=>{const e=pe.useContext(dt);if(!e)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:t}=e;return t},gi=({children:e})=>rr.jsx(dt.Provider,{value:{Shepherd:Ae},children:e});oe.JourneyMethods=hi,oe.ShepherdJourneyContext=dt,oe.ShepherdJourneyProvider=gi,oe.useShepherd=pi,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,qt,Pe,Yo,Pe),Qn[Pe+qt]=!0}}return l===r?Vo(H):Ho(H),H}}function No(l,p,b){return er(l,p,b,!0)}function Bo(l,p,b){return er(l,p,b,!1)}var Wo=Bo,$o=No;qe.Fragment=r,qe.jsx=Wo,qe.jsxs=$o}()),qe}process.env.NODE_ENV==="production"?yt.exports=tr():yt.exports=nr();var rr=yt.exports;/*! shepherd.js 14.1.0 */function ir(e){return e instanceof Element}function ke(e){return e instanceof HTMLElement}function me(e){return typeof e=="function"}function Je(e){return typeof e=="string"}function W(e){return e===void 0}class _t{on(t,n,r,i=!1){var o;return W(this.bindings)&&(this.bindings={}),W(this.bindings[t])&&(this.bindings[t]=[]),(o=this.bindings[t])==null||o.push({handler:n,ctx:r,once:i}),this}once(t,n,r){return this.on(t,n,r,!0)}off(t,n){if(W(this.bindings)||W(this.bindings[t]))return this;if(W(n))delete this.bindings[t];else{var r;(r=this.bindings[t])==null||r.forEach((i,o)=>{if(i.handler===n){var s;(s=this.bindings[t])==null||s.splice(o,1)}})}return this}trigger(t,...n){if(!W(this.bindings)&&this.bindings[t]){var r;(r=this.bindings[t])==null||r.forEach((i,o)=>{const{ctx:s,handler:c,once:a}=i,u=s||this;if(c.apply(u,n),a){var d;(d=this.bindings[t])==null||d.splice(o,1)}})}return this}}function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(null,arguments)}function Xt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const be={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};be.defaultMerge;function or(e,t){return t}function sr(e,t){return e.filter(n=>n!==void 0)}var Gt;(function(e){e[e.NOT=0]="NOT",e[e.RECORD=1]="RECORD",e[e.ARRAY=2]="ARRAY",e[e.SET=3]="SET",e[e.MAP=4]="MAP",e[e.OTHER=5]="OTHER"})(Gt||(Gt={}));function Zt(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:ar(e)?1:e instanceof Set?3:e instanceof Map?4:5}function lr(e){const t=new Set;for(const n of e)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(r);return t}function cr(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function Qt(e){return{*[Symbol.iterator](){for(const t of e)for(const n of t)yield n}}}const en=new Set(["[object Object]","[object Module]"]);function ar(e){if(!en.has(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const n=t.prototype;return!(n===null||typeof n!="object"||!en.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function ur(e,t,n){const r={};for(const i of lr(e)){const o=[];for(const a of e)cr(a,i)&&o.push(a[i]);if(o.length===0)continue;const s=t.metaDataUpdater(n,{key:i,parents:e}),c=tn(o,t,s);c!==be.skip&&(i==="__proto__"?Object.defineProperty(r,i,{value:c,configurable:!0,enumerable:!0,writable:!0}):r[i]=c)}return r}function fr(e){return e.flat()}function dr(e){return new Set(Qt(e))}function hr(e){return new Map(Qt(e))}function pr(e){return e.at(-1)}const nt={mergeRecords:ur,mergeArrays:fr,mergeSets:dr,mergeMaps:hr,mergeOthers:pr};function wt(...e){return gr({})(...e)}function gr(e,t){const n=mr(e,r);function r(...i){return tn(i,n,t)}return r}function mr(e,t){var n,r,i;return{defaultMergeFunctions:nt,mergeFunctions:U({},nt,Object.fromEntries(Object.entries(e).filter(([o,s])=>Object.hasOwn(nt,o)).map(([o,s])=>s===!1?[o,nt.mergeOthers]:[o,s]))),metaDataUpdater:(n=e.metaDataUpdater)!=null?n:or,deepmerge:t,useImplicitDefaultMerging:(r=e.enableImplicitDefaultMerging)!=null?r:!1,filterValues:e.filterValues===!1?void 0:(i=e.filterValues)!=null?i:sr,actions:be}}function tn(e,t,n){var r;const i=(r=t.filterValues==null?void 0:t.filterValues(e,n))!=null?r:e;if(i.length===0)return;if(i.length===1)return Et(i,t,n);const o=Zt(i[0]);if(o!==0&&o!==5){for(let s=1;s<i.length;s++)if(Zt(i[s])!==o)return Et(i,t,n)}switch(o){case 1:return br(i,t,n);case 2:return vr(i,t,n);case 3:return yr(i,t,n);case 4:return _r(i,t,n);default:return Et(i,t,n)}}function br(e,t,n){const r=t.mergeFunctions.mergeRecords(e,t,n);return r===be.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):r}function vr(e,t,n){const r=t.mergeFunctions.mergeArrays(e,t,n);return r===be.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):r}function yr(e,t,n){const r=t.mergeFunctions.mergeSets(e,t,n);return r===be.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):r}function _r(e,t,n){const r=t.mergeFunctions.mergeMaps(e,t,n);return r===be.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):r}function Et(e,t,n){const r=t.mergeFunctions.mergeOthers(e,t,n);return r===be.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}function xt(e){const t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){const r=t[n],i=e[r];r!=="constructor"&&typeof i=="function"&&(e[r]=i.bind(e))}return e}function wr(e,t){return n=>{if(e.isOpen()){const r=e.el&&n.currentTarget===e.el;(!W(t)&&n.currentTarget.matches(t)||r)&&e.tour.next()}}}function Er(e){const{event:t,selector:n}=e.options.advanceOn||{};if(t){const r=wr(e,n);let i=null;if(!W(n)&&(i=document.querySelector(n),!i))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);i?(i.addEventListener(t,r),e.on("destroy",()=>i.removeEventListener(t,r))):(document.body.addEventListener(t,r,!0),e.on("destroy",()=>document.body.removeEventListener(t,r,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class xr{constructor(t){}}class Sr{constructor(t,n){}}function nn(e){return!Je(e)||e===""?"":e.charAt(e.length-1)!=="-"?`${e}-`:e}function Or(e){const t=e.options.attachTo||{},n=Object.assign({},t);if(me(n.element)&&(n.element=n.element.call(e)),Je(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${t.element}`)}return n}function Rr(e){return e.options.extraHighlights?e.options.extraHighlights.flatMap(t=>Array.from(document.querySelectorAll(t))):[]}function rn(e){return e==null?!0:!e.element||!e.on}function on(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t=="x"?n:n&3|8).toString(16)})}const Ie=Math.min,Ee=Math.max,rt=Math.round,it=Math.floor,ve=e=>({x:e,y:e}),Tr={left:"right",right:"left",bottom:"top",top:"bottom"},Cr={start:"end",end:"start"};function St(e,t,n){return Ee(e,Ie(t,n))}function Me(e,t){return typeof e=="function"?e(t):e}function xe(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function Ot(e){return e==="x"?"y":"x"}function Rt(e){return e==="y"?"height":"width"}function Fe(e){return["top","bottom"].includes(xe(e))?"y":"x"}function Tt(e){return Ot(Fe(e))}function Ar(e,t,n){n===void 0&&(n=!1);const r=ot(e),i=Tt(e),o=Rt(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=st(s)),[s,st(s)]}function Pr(e){const t=st(e);return[Ct(e),t,Ct(t)]}function Ct(e){return e.replace(/start|end/g,t=>Cr[t])}function kr(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function Ir(e,t,n,r){const i=ot(e);let o=kr(xe(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Ct)))),o}function st(e){return e.replace(/left|right|bottom|top/g,t=>Tr[t])}function Mr(e){return U({top:0,right:0,bottom:0,left:0},e)}function sn(e){return typeof e!="number"?Mr(e):{top:e,right:e,bottom:e,left:e}}function lt(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}const Fr=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Lr=["mainAxis","crossAxis","limiter"];function ln(e,t,n){let{reference:r,floating:i}=e;const o=Fe(t),s=Tt(t),c=Rt(s),a=xe(t),u=o==="y",d=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,f=r[c]/2-i[c]/2;let g;switch(a){case"top":g={x:d,y:r.y-i.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-i.width,y:h};break;default:g={x:r.x,y:r.y}}switch(ot(t)){case"start":g[s]-=f*(n&&u?-1:1);break;case"end":g[s]+=f*(n&&u?-1:1);break}return g}const Dr=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,c=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=ln(u,r,a),f=r,g={},v=0;for(let E=0;E<c.length;E++){const{name:S,fn:w}=c[E],{x:_,y:R,data:y,reset:m}=await w({x:d,y:h,initialPlacement:r,placement:f,strategy:i,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});d=_??d,h=R??h,g=U({},g,{[S]:U({},g[S],y)}),m&&v<=50&&(v++,typeof m=="object"&&(m.placement&&(f=m.placement),m.rects&&(u=m.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):m.rects),{x:d,y:h}=ln(u,f,a)),E=-1)}return{x:d,y:h,placement:f,strategy:i,middlewareData:g}};async function cn(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:c,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:g=0}=Me(t,e),v=sn(g),S=c[f?h==="floating"?"reference":"floating":h],w=lt(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(S)))==null||n?S:S.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:a})),_=h==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),y=await(o.isElement==null?void 0:o.isElement(R))?await(o.getScale==null?void 0:o.getScale(R))||{x:1,y:1}:{x:1,y:1},m=lt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:R,strategy:a}):_);return{top:(w.top-m.top+v.top)/y.y,bottom:(m.bottom-w.bottom+v.bottom)/y.y,left:(w.left-m.left+v.left)/y.x,right:(m.right-w.right+v.right)/y.x}}const jr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:c,middlewareData:a}=t,{element:u,padding:d=0}=Me(e,t)||{};if(u==null)return{};const h=sn(d),f={x:n,y:r},g=Tt(i),v=Rt(g),E=await s.getDimensions(u),S=g==="y",w=S?"top":"left",_=S?"bottom":"right",R=S?"clientHeight":"clientWidth",y=o.reference[v]+o.reference[g]-f[g]-o.floating[v],m=f[g]-o.reference[g],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let V=T?T[R]:0;(!V||!await(s.isElement==null?void 0:s.isElement(T)))&&(V=c.floating[R]||o.floating[v]);const ae=y/2-m/2,X=V/2-E[v]/2-1,Z=Ie(h[w],X),N=Ie(h[_],X),D=Z,j=V-E[v]-N,F=V/2-E[v]/2+ae,$=St(D,F,j),B=!a.arrow&&ot(i)!=null&&F!==$&&o.reference[v]/2-(F<D?Z:N)-E[v]/2<0,ie=B?F<D?F-D:F-j:0;return{[g]:f[g]+ie,data:U({[g]:$,centerOffset:F-$-ie},B&&{alignmentOffset:ie}),reset:B}}}),Hr=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,i;const{placement:o,middlewareData:s,rects:c,initialPlacement:a,platform:u,elements:d}=n,h=Me(t,n),{mainAxis:f=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:w=!0}=h,_=Xt(h,Fr);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const R=xe(o),y=Fe(a),m=xe(a)===a,T=await(u.isRTL==null?void 0:u.isRTL(d.floating)),V=v||(m||!w?[st(a)]:Pr(a)),ae=S!=="none";!v&&ae&&V.push(...Ir(a,w,S,T));const X=[a,...V],Z=await cn(n,_),N=[];let D=((i=s.flip)==null?void 0:i.overflows)||[];if(f&&N.push(Z[R]),g){const B=Ar(o,c,T);N.push(Z[B[0]],Z[B[1]])}if(D=[...D,{placement:o,overflows:N}],!N.every(B=>B<=0)){var j,F;const B=(((j=s.flip)==null?void 0:j.index)||0)+1,ie=X[B];if(ie)return{data:{index:B,overflows:D},reset:{placement:ie}};let pe=(F=D.filter(Q=>Q.overflows[0]<=0).sort((Q,Y)=>Q.overflows[1]-Y.overflows[1])[0])==null?void 0:F.placement;if(!pe)switch(E){case"bestFit":{var $;const Q=($=D.filter(Y=>{if(ae){const oe=Fe(Y.placement);return oe===y||oe==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(oe=>oe>0).reduce((oe,pt)=>oe+pt,0)]).sort((Y,oe)=>Y[1]-oe[1])[0])==null?void 0:$[0];Q&&(pe=Q);break}case"initialPlacement":pe=a;break}if(o!==pe)return{reset:{placement:pe}}}return{}}}},Vr=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:i,placement:o}=n,s=Me(t,n),{mainAxis:c=!0,crossAxis:a=!1,limiter:u={fn:_=>{let{x:R,y}=_;return{x:R,y}}}}=s,d=Xt(s,Lr),h={x:r,y:i},f=await cn(n,d),g=Fe(xe(o)),v=Ot(g);let E=h[v],S=h[g];if(c){const _=v==="y"?"top":"left",R=v==="y"?"bottom":"right",y=E+f[_],m=E-f[R];E=St(y,E,m)}if(a){const _=g==="y"?"top":"left",R=g==="y"?"bottom":"right",y=S+f[_],m=S-f[R];S=St(y,S,m)}const w=u.fn(U({},n,{[v]:E,[g]:S}));return U({},w,{data:{x:w.x-r,y:w.y-i}})}}},Nr=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:r,y:i,placement:o,rects:s,middlewareData:c}=n,{offset:a=0,mainAxis:u=!0,crossAxis:d=!0}=Me(t,n),h={x:r,y:i},f=Fe(o),g=Ot(f);let v=h[g],E=h[f];const S=Me(a,n),w=typeof S=="number"?{mainAxis:S,crossAxis:0}:U({mainAxis:0,crossAxis:0},S);if(u){const y=g==="y"?"height":"width",m=s.reference[g]-s.floating[y]+w.mainAxis,T=s.reference[g]+s.reference[y]-w.mainAxis;v<m?v=m:v>T&&(v=T)}if(d){var _,R;const y=g==="y"?"width":"height",m=["top","left"].includes(xe(o)),T=s.reference[f]-s.floating[y]+(m&&((_=c.offset)==null?void 0:_[f])||0)+(m?0:w.crossAxis),V=s.reference[f]+s.reference[y]+(m?0:((R=c.offset)==null?void 0:R[f])||0)-(m?w.crossAxis:0);E<T?E=T:E>V&&(E=V)}return{[g]:v,[f]:E}}}};function Le(e){return an(e)?(e.nodeName||"").toLowerCase():"#document"}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ue(e){var t;return(t=(an(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function an(e){return e instanceof Node||e instanceof J(e).Node}function te(e){return e instanceof Element||e instanceof J(e).Element}function le(e){return e instanceof HTMLElement||e instanceof J(e).HTMLElement}function un(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}function Ke(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ne(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Br(e){return["table","td","th"].includes(Le(e))}function ct(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function At(e){const t=Pt(),n=te(e)?ne(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Wr(e){let t=ye(e);for(;le(t)&&!De(t);){if(At(t))return t;if(ct(t))return null;t=ye(t)}return null}function Pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function De(e){return["html","body","#document"].includes(Le(e))}function ne(e){return J(e).getComputedStyle(e)}function at(e){return te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ye(e){if(Le(e)==="html")return e;const t=e.assignedSlot||e.parentNode||un(e)&&e.host||ue(e);return un(t)?t.host:t}function fn(e){const t=ye(e);return De(t)?e.ownerDocument?e.ownerDocument.body:e.body:le(t)&&Ke(t)?t:fn(t)}function Xe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=fn(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=J(i);return o?t.concat(s,s.visualViewport||[],Ke(i)?i:[],s.frameElement&&n?Xe(s.frameElement):[]):t.concat(i,Xe(i,[],n))}function dn(e){const t=ne(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=le(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,c=rt(n)!==o||rt(r)!==s;return c&&(n=o,r=s),{width:n,height:r,$:c}}function kt(e){return te(e)?e:e.contextElement}function je(e){const t=kt(e);if(!le(t))return ve(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=dn(t);let s=(o?rt(n.width):n.width)/r,c=(o?rt(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const $r=ve(0);function hn(e){const t=J(e);return!Pt()||!t.visualViewport?$r:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==J(e)?!1:t}function Se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=kt(e);let s=ve(1);t&&(r?te(r)&&(s=je(r)):s=je(e));const c=Yr(o,n,r)?hn(o):ve(0);let a=(i.left+c.x)/s.x,u=(i.top+c.y)/s.y,d=i.width/s.x,h=i.height/s.y;if(o){const f=J(o),g=r&&te(r)?J(r):r;let v=f,E=v.frameElement;for(;E&&r&&g!==v;){const S=je(E),w=E.getBoundingClientRect(),_=ne(E),R=w.left+(E.clientLeft+parseFloat(_.paddingLeft))*S.x,y=w.top+(E.clientTop+parseFloat(_.paddingTop))*S.y;a*=S.x,u*=S.y,d*=S.x,h*=S.y,a+=R,u+=y,v=J(E),E=v.frameElement}}return lt({width:d,height:h,x:a,y:u})}function Ur(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=ue(r),c=t?ct(t.floating):!1;if(r===s||c&&o)return n;let a={scrollLeft:0,scrollTop:0},u=ve(1);const d=ve(0),h=le(r);if((h||!h&&!o)&&((Le(r)!=="body"||Ke(s))&&(a=at(r)),le(r))){const f=Se(r);u=je(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x,y:n.y*u.y-a.scrollTop*u.y+d.y}}function zr(e){return Array.from(e.getClientRects())}function pn(e){return Se(ue(e)).left+at(e).scrollLeft}function qr(e){const t=ue(e),n=at(e),r=e.ownerDocument.body,i=Ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+pn(e);const c=-n.scrollTop;return ne(r).direction==="rtl"&&(s+=Ee(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:c}}function Jr(e,t){const n=J(e),r=ue(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,c=0,a=0;if(i){o=i.width,s=i.height;const u=Pt();(!u||u&&t==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:c,y:a}}function Kr(e,t){const n=Se(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=le(e)?je(e):ve(1),s=e.clientWidth*o.x,c=e.clientHeight*o.y,a=i*o.x,u=r*o.y;return{width:s,height:c,x:a,y:u}}function gn(e,t,n){let r;if(t==="viewport")r=Jr(e,n);else if(t==="document")r=qr(ue(e));else if(te(t))r=Kr(t,n);else{const i=hn(e);r=U({},t,{x:t.x-i.x,y:t.y-i.y})}return lt(r)}function mn(e,t){const n=ye(e);return n===t||!te(n)||De(n)?!1:ne(n).position==="fixed"||mn(n,t)}function Xr(e,t){const n=t.get(e);if(n)return n;let r=Xe(e,[],!1).filter(c=>te(c)&&Le(c)!=="body"),i=null;const o=ne(e).position==="fixed";let s=o?ye(e):e;for(;te(s)&&!De(s);){const c=ne(s),a=At(s);!a&&c.position==="fixed"&&(i=null),(o?!a&&!i:!a&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ke(s)&&!a&&mn(e,s))?r=r.filter(d=>d!==s):i=c,s=ye(s)}return t.set(e,r),r}function Gr(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ct(t)?[]:Xr(t,this._c):[].concat(n),r],c=s[0],a=s.reduce((u,d)=>{const h=gn(t,d,i);return u.top=Ee(h.top,u.top),u.right=Ie(h.right,u.right),u.bottom=Ie(h.bottom,u.bottom),u.left=Ee(h.left,u.left),u},gn(t,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Zr(e){const{width:t,height:n}=dn(e);return{width:t,height:n}}function Qr(e,t,n){const r=le(t),i=ue(t),o=n==="fixed",s=Se(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const a=ve(0);if(r||!r&&!o)if((Le(t)!=="body"||Ke(i))&&(c=at(t)),r){const h=Se(t,!0,o,t);a.x=h.x+t.clientLeft,a.y=h.y+t.clientTop}else i&&(a.x=pn(i));const u=s.left+c.scrollLeft-a.x,d=s.top+c.scrollTop-a.y;return{x:u,y:d,width:s.width,height:s.height}}function It(e){return ne(e).position==="static"}function bn(e,t){return!le(e)||ne(e).position==="fixed"?null:t?t(e):e.offsetParent}function vn(e,t){const n=J(e);if(ct(e))return n;if(!le(e)){let i=ye(e);for(;i&&!De(i);){if(te(i)&&!It(i))return i;i=ye(i)}return n}let r=bn(e,t);for(;r&&Br(r)&&It(r);)r=bn(r,t);return r&&De(r)&&It(r)&&!At(r)?n:r||Wr(e)||n}const ei=async function(t){const n=this.getOffsetParent||vn,r=this.getDimensions,i=await r(t.floating);return{reference:Qr(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function ti(e){return ne(e).direction==="rtl"}const ni={convertOffsetParentRelativeRectToViewportRelativeRect:Ur,getDocumentElement:ue,getClippingRect:Gr,getOffsetParent:vn,getElementRects:ei,getClientRects:zr,getDimensions:Zr,getScale:je,isElement:te,isRTL:ti};function ri(e,t){let n=null,r;const i=ue(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),o();const{left:u,top:d,width:h,height:f}=e.getBoundingClientRect();if(c||t(),!h||!f)return;const g=it(d),v=it(i.clientWidth-(u+h)),E=it(i.clientHeight-(d+f)),S=it(u),_={rootMargin:-g+"px "+-v+"px "+-E+"px "+-S+"px",threshold:Ee(0,Ie(1,a))||1};let R=!0;function y(m){const T=m[0].intersectionRatio;if(T!==a){if(!R)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{n=new IntersectionObserver(y,U({},_,{root:i.ownerDocument}))}catch{n=new IntersectionObserver(y,_)}n.observe(e)}return s(!0),o}function ii(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=kt(e),d=i||o?[...u?Xe(u):[],...Xe(t)]:[];d.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const h=u&&c?ri(u,n):null;let f=-1,g=null;s&&(g=new ResizeObserver(w=>{let[_]=w;_&&_.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var R;(R=g)==null||R.observe(t)})),n()}),u&&!a&&g.observe(u),g.observe(t));let v,E=a?Se(e):null;a&&S();function S(){const w=Se(e);E&&(w.x!==E.x||w.y!==E.y||w.width!==E.width||w.height!==E.height)&&n(),E=w,v=requestAnimationFrame(S)}return n(),()=>{var w;d.forEach(_=>{i&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),h==null||h(),(w=g)==null||w.disconnect(),g=null,a&&cancelAnimationFrame(v)}}const oi=Vr,si=Hr,li=jr,ci=Nr,ai=(e,t,n)=>{const r=new Map,i=U({platform:ni},n),o=U({},i.platform,{_c:r});return Dr(e,t,U({},i,{platform:o}))};function ui(e){e.cleanup&&e.cleanup();const t=e._getResolvedAttachToOptions();let n=t.element;const r=mi(t,e),i=rn(t);return i&&(n=document.body,e.shepherdElementComponent.getElement().classList.add("shepherd-centered")),e.cleanup=ii(n,e.el,()=>{if(!e.el){e.cleanup==null||e.cleanup();return}hi(n,e,r,i)}),e.target=t.element,r}function fi(e,t){return{floatingUIOptions:wt(e.floatingUIOptions||{},t.floatingUIOptions||{})}}function di(e){e.cleanup&&e.cleanup(),e.cleanup=null}function hi(e,t,n,r){return ai(e,t.el,n).then(pi(t,r)).then(i=>new Promise(o=>{setTimeout(()=>o(i),300)})).then(i=>{i!=null&&i.el&&i.el.focus({preventScroll:!0})})}function pi(e,t){return({x:n,y:r,placement:i,middlewareData:o})=>(e.el&&(t?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:`${n}px`,top:`${r}px`}),e.el.dataset.popperPlacement=i,gi(e.el,o)),e)}function gi(e,t){const n=e.querySelector(".shepherd-arrow");if(ke(n)&&t.arrow){const{x:r,y:i}=t.arrow;Object.assign(n.style,{left:r!=null?`${r}px`:"",top:i!=null?`${i}px`:""})}}function mi(e,t){const n={strategy:"absolute"};n.middleware=[];const r=bi(t);if(!rn(e)){if(n.middleware.push(si(),oi({limiter:ci(),crossAxis:!0})),r){var o,s;const c=(e==null||(o=e.on)==null?void 0:o.includes("-start"))||(e==null||(s=e.on)==null?void 0:s.includes("-end"));n.middleware.push(li({element:r,padding:c?4:0}))}n.placement=e.on}return wt(n,t.options.floatingUIOptions||{})}function bi(e){return e.options.arrow&&e.el?e.el.querySelector(".shepherd-arrow"):!1}function K(){}function vi(e,t){for(const n in t)e[n]=t[n];return e}function yn(e){return e()}function _n(){return Object.create(null)}function Ge(e){e.forEach(yn)}function Mt(e){return typeof e=="function"}function fe(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function yi(e){return Object.keys(e).length===0}function He(e,t){e.appendChild(t)}function re(e,t,n){e.insertBefore(t,n||null)}function G(e){e.parentNode&&e.parentNode.removeChild(e)}function _i(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function ce(e){return document.createElement(e)}function wn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function En(e){return document.createTextNode(e)}function ut(){return En(" ")}function wi(){return En("")}function ft(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function k(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const Ei=["width","height"];function xn(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&Ei.indexOf(r)===-1?e[r]=t[r]:k(e,r,t[r])}function xi(e){return Array.from(e.childNodes)}function Ve(e,t,n){e.classList.toggle(t,!!n)}let Ze;function Qe(e){Ze=e}function Sn(){if(!Ze)throw new Error("Function called outside component initialization");return Ze}function Si(e){Sn().$$.on_mount.push(e)}function Ft(e){Sn().$$.after_update.push(e)}const Ne=[],Be=[];let We=[];const On=[],Oi=Promise.resolve();let Lt=!1;function Ri(){Lt||(Lt=!0,Oi.then(Rn))}function Dt(e){We.push(e)}const jt=new Set;let $e=0;function Rn(){if($e!==0)return;const e=Ze;do{try{for(;$e<Ne.length;){const t=Ne[$e];$e++,Qe(t),Ti(t.$$)}}catch(t){throw Ne.length=0,$e=0,t}for(Qe(null),Ne.length=0,$e=0;Be.length;)Be.pop()();for(let t=0;t<We.length;t+=1){const n=We[t];jt.has(n)||(jt.add(n),n())}We.length=0}while(Ne.length);for(;On.length;)On.pop()();Lt=!1,jt.clear(),Qe(e)}function Ti(e){if(e.fragment!==null){e.update(),Ge(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Dt)}}function Ci(e){const t=[],n=[];We.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),We=t}const dt=new Set;let Oe;function Re(){Oe={r:0,c:[],p:Oe}}function Te(){Oe.r||Ge(Oe.c),Oe=Oe.p}function P(e,t){e&&e.i&&(dt.delete(e),e.i(t))}function M(e,t,n,r){if(e&&e.o){if(dt.has(e))return;dt.add(e),Oe.c.push(()=>{dt.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Tn(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Ai(e,t){const n={},r={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],c=t[o];if(c){for(const a in s)a in c||(r[a]=1);for(const a in c)i[a]||(n[a]=c[a],i[a]=1);e[o]=c}else for(const a in s)i[a]=1}for(const s in r)s in n||(n[s]=void 0);return n}function Ce(e){e&&e.c()}function _e(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),Dt(()=>{const o=e.$$.on_mount.map(yn).filter(Mt);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ge(o),e.$$.on_mount=[]}),i.forEach(Dt)}function we(e,t){const n=e.$$;n.fragment!==null&&(Ci(n.after_update),Ge(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Pi(e,t){e.$$.dirty[0]===-1&&(Ne.push(e),Ri(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function de(e,t,n,r,i,o,s=null,c=[-1]){const a=Ze;Qe(e);const u=e.$$={fragment:null,ctx:[],props:o,update:K,not_equal:i,bound:_n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:_n(),dirty:c,skip_bound:!1,root:t.target||a.$$.root};s&&s(u.root);let d=!1;if(u.ctx=n?n(e,t.props||{},(h,f,...g)=>{const v=g.length?g[0]:f;return u.ctx&&i(u.ctx[h],u.ctx[h]=v)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](v),d&&Pi(e,h)),f}):[],u.update(),d=!0,Ge(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const h=xi(t.target);u.fragment&&u.fragment.l(h),h.forEach(G)}else u.fragment&&u.fragment.c();t.intro&&P(e.$$.fragment),_e(e,t.target,t.anchor),Rn()}Qe(a)}class he{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){we(this,1),this.$destroy=K}$on(t,n){if(!Mt(n))return K;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!yi(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ki="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ki);function Ii(e){let t,n,r,i,o;return{c(){t=ce("button"),k(t,"aria-label",n=e[3]?e[3]:null),k(t,"class",r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`),t.disabled=e[2],k(t,"tabindex","0"),k(t,"type","button")},m(s,c){re(s,t,c),t.innerHTML=e[5],i||(o=ft(t,"click",function(){Mt(e[0])&&e[0].apply(this,arguments)}),i=!0)},p(s,[c]){e=s,c&32&&(t.innerHTML=e[5]),c&8&&n!==(n=e[3]?e[3]:null)&&k(t,"aria-label",n),c&18&&r!==(r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`)&&k(t,"class",r),c&4&&(t.disabled=e[2])},i:K,o:K,d(s){s&&G(t),i=!1,o()}}}function Mi(e,t,n){let{config:r,step:i}=t,o,s,c,a,u,d;function h(f){return me(f)?f=f.call(i):f}return e.$$set=f=>{"config"in f&&n(6,r=f.config),"step"in f&&n(7,i=f.step)},e.$$.update=()=>{e.$$.dirty&192&&(n(0,o=r.action?r.action.bind(i.tour):null),n(1,s=r.classes),n(2,c=r.disabled?h(r.disabled):!1),n(3,a=r.label?h(r.label):null),n(4,u=r.secondary),n(5,d=r.text?h(r.text):null))},[o,s,c,a,u,d,r,i]}class Fi extends he{constructor(t){super(),de(this,t,Mi,Ii,fe,{config:6,step:7})}}function Cn(e,t,n){const r=e.slice();return r[2]=t[n],r}function An(e){let t,n,r=Tn(e[1]),i=[];for(let s=0;s<r.length;s+=1)i[s]=Pn(Cn(e,r,s));const o=s=>M(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();t=wi()},m(s,c){for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(s,c);re(s,t,c),n=!0},p(s,c){if(c&3){r=Tn(s[1]);let a;for(a=0;a<r.length;a+=1){const u=Cn(s,r,a);i[a]?(i[a].p(u,c),P(i[a],1)):(i[a]=Pn(u),i[a].c(),P(i[a],1),i[a].m(t.parentNode,t))}for(Re(),a=r.length;a<i.length;a+=1)o(a);Te()}},i(s){if(!n){for(let c=0;c<r.length;c+=1)P(i[c]);n=!0}},o(s){i=i.filter(Boolean);for(let c=0;c<i.length;c+=1)M(i[c]);n=!1},d(s){s&&G(t),_i(i,s)}}}function Pn(e){let t,n;return t=new Fi({props:{config:e[2],step:e[0]}}),{c(){Ce(t.$$.fragment)},m(r,i){_e(t,r,i),n=!0},p(r,i){const o={};i&2&&(o.config=r[2]),i&1&&(o.step=r[0]),t.$set(o)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){we(t,r)}}}function Li(e){let t,n,r=e[1]&&An(e);return{c(){t=ce("footer"),r&&r.c(),k(t,"class","shepherd-footer")},m(i,o){re(i,t,o),r&&r.m(t,null),n=!0},p(i,[o]){i[1]?r?(r.p(i,o),o&2&&P(r,1)):(r=An(i),r.c(),P(r,1),r.m(t,null)):r&&(Re(),M(r,1,1,()=>{r=null}),Te())},i(i){n||(P(r),n=!0)},o(i){M(r),n=!1},d(i){i&&G(t),r&&r.d()}}}function Di(e,t,n){let r,{step:i}=t;return e.$$set=o=>{"step"in o&&n(0,i=o.step)},e.$$.update=()=>{e.$$.dirty&1&&n(1,r=i.options.buttons)},[i,r]}class ji extends he{constructor(t){super(),de(this,t,Di,Li,fe,{step:0})}}function Hi(e){let t,n,r,i,o;return{c(){t=ce("button"),n=ce("span"),n.textContent="×",k(n,"aria-hidden","true"),k(t,"aria-label",r=e[0].label?e[0].label:"Close Tour"),k(t,"class","shepherd-cancel-icon"),k(t,"type","button")},m(s,c){re(s,t,c),He(t,n),i||(o=ft(t,"click",e[1]),i=!0)},p(s,[c]){c&1&&r!==(r=s[0].label?s[0].label:"Close Tour")&&k(t,"aria-label",r)},i:K,o:K,d(s){s&&G(t),i=!1,o()}}}function Vi(e,t,n){let{cancelIcon:r,step:i}=t;const o=s=>{s.preventDefault(),i.cancel()};return e.$$set=s=>{"cancelIcon"in s&&n(0,r=s.cancelIcon),"step"in s&&n(2,i=s.step)},[r,o,i]}class Ni extends he{constructor(t){super(),de(this,t,Vi,Hi,fe,{cancelIcon:0,step:2})}}function Bi(e){let t;return{c(){t=ce("h3"),k(t,"id",e[1]),k(t,"class","shepherd-title")},m(n,r){re(n,t,r),e[3](t)},p(n,[r]){r&2&&k(t,"id",n[1])},i:K,o:K,d(n){n&&G(t),e[3](null)}}}function Wi(e,t,n){let{labelId:r,element:i,title:o}=t;Ft(()=>{me(o)&&n(2,o=o()),n(0,i.innerHTML=o,i)});function s(c){Be[c?"unshift":"push"](()=>{i=c,n(0,i)})}return e.$$set=c=>{"labelId"in c&&n(1,r=c.labelId),"element"in c&&n(0,i=c.element),"title"in c&&n(2,o=c.title)},[i,r,o,s]}class $i extends he{constructor(t){super(),de(this,t,Wi,Bi,fe,{labelId:1,element:0,title:2})}}function kn(e){let t,n;return t=new $i({props:{labelId:e[0],title:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,i){_e(t,r,i),n=!0},p(r,i){const o={};i&1&&(o.labelId=r[0]),i&4&&(o.title=r[2]),t.$set(o)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){we(t,r)}}}function In(e){let t,n;return t=new Ni({props:{cancelIcon:e[3],step:e[1]}}),{c(){Ce(t.$$.fragment)},m(r,i){_e(t,r,i),n=!0},p(r,i){const o={};i&8&&(o.cancelIcon=r[3]),i&2&&(o.step=r[1]),t.$set(o)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){we(t,r)}}}function Yi(e){let t,n,r,i=e[2]&&kn(e),o=e[3]&&e[3].enabled&&In(e);return{c(){t=ce("header"),i&&i.c(),n=ut(),o&&o.c(),k(t,"class","shepherd-header")},m(s,c){re(s,t,c),i&&i.m(t,null),He(t,n),o&&o.m(t,null),r=!0},p(s,[c]){s[2]?i?(i.p(s,c),c&4&&P(i,1)):(i=kn(s),i.c(),P(i,1),i.m(t,n)):i&&(Re(),M(i,1,1,()=>{i=null}),Te()),s[3]&&s[3].enabled?o?(o.p(s,c),c&8&&P(o,1)):(o=In(s),o.c(),P(o,1),o.m(t,null)):o&&(Re(),M(o,1,1,()=>{o=null}),Te())},i(s){r||(P(i),P(o),r=!0)},o(s){M(i),M(o),r=!1},d(s){s&&G(t),i&&i.d(),o&&o.d()}}}function Ui(e,t,n){let{labelId:r,step:i}=t,o,s;return e.$$set=c=>{"labelId"in c&&n(0,r=c.labelId),"step"in c&&n(1,i=c.step)},e.$$.update=()=>{e.$$.dirty&2&&(n(2,o=i.options.title),n(3,s=i.options.cancelIcon))},[r,i,o,s]}class zi extends he{constructor(t){super(),de(this,t,Ui,Yi,fe,{labelId:0,step:1})}}function qi(e){let t;return{c(){t=ce("div"),k(t,"class","shepherd-text"),k(t,"id",e[1])},m(n,r){re(n,t,r),e[3](t)},p(n,[r]){r&2&&k(t,"id",n[1])},i:K,o:K,d(n){n&&G(t),e[3](null)}}}function Ji(e,t,n){let{descriptionId:r,element:i,step:o}=t;Ft(()=>{let{text:c}=o.options;me(c)&&(c=c.call(o)),ke(c)?i.appendChild(c):n(0,i.innerHTML=c,i)});function s(c){Be[c?"unshift":"push"](()=>{i=c,n(0,i)})}return e.$$set=c=>{"descriptionId"in c&&n(1,r=c.descriptionId),"element"in c&&n(0,i=c.element),"step"in c&&n(2,o=c.step)},[i,r,o,s]}class Ki extends he{constructor(t){super(),de(this,t,Ji,qi,fe,{descriptionId:1,element:0,step:2})}}function Mn(e){let t,n;return t=new zi({props:{labelId:e[1],step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,i){_e(t,r,i),n=!0},p(r,i){const o={};i&2&&(o.labelId=r[1]),i&4&&(o.step=r[2]),t.$set(o)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){we(t,r)}}}function Fn(e){let t,n;return t=new Ki({props:{descriptionId:e[0],step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,i){_e(t,r,i),n=!0},p(r,i){const o={};i&1&&(o.descriptionId=r[0]),i&4&&(o.step=r[2]),t.$set(o)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){we(t,r)}}}function Ln(e){let t,n;return t=new ji({props:{step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,i){_e(t,r,i),n=!0},p(r,i){const o={};i&4&&(o.step=r[2]),t.$set(o)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){we(t,r)}}}function Xi(e){let t,n=!W(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,r,i=!W(e[2].options.text),o,s=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length,c,a=n&&Mn(e),u=i&&Fn(e),d=s&&Ln(e);return{c(){t=ce("div"),a&&a.c(),r=ut(),u&&u.c(),o=ut(),d&&d.c(),k(t,"class","shepherd-content"),k(t,"tabindex","0")},m(h,f){re(h,t,f),a&&a.m(t,null),He(t,r),u&&u.m(t,null),He(t,o),d&&d.m(t,null),c=!0},p(h,[f]){f&4&&(n=!W(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?a?(a.p(h,f),f&4&&P(a,1)):(a=Mn(h),a.c(),P(a,1),a.m(t,r)):a&&(Re(),M(a,1,1,()=>{a=null}),Te()),f&4&&(i=!W(h[2].options.text)),i?u?(u.p(h,f),f&4&&P(u,1)):(u=Fn(h),u.c(),P(u,1),u.m(t,o)):u&&(Re(),M(u,1,1,()=>{u=null}),Te()),f&4&&(s=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),s?d?(d.p(h,f),f&4&&P(d,1)):(d=Ln(h),d.c(),P(d,1),d.m(t,null)):d&&(Re(),M(d,1,1,()=>{d=null}),Te())},i(h){c||(P(a),P(u),P(d),c=!0)},o(h){M(a),M(u),M(d),c=!1},d(h){h&&G(t),a&&a.d(),u&&u.d(),d&&d.d()}}}function Gi(e,t,n){let{descriptionId:r,labelId:i,step:o}=t;return e.$$set=s=>{"descriptionId"in s&&n(0,r=s.descriptionId),"labelId"in s&&n(1,i=s.labelId),"step"in s&&n(2,o=s.step)},[r,i,o]}class Zi extends he{constructor(t){super(),de(this,t,Gi,Xi,fe,{descriptionId:0,labelId:1,step:2})}}function Dn(e){let t;return{c(){t=ce("div"),k(t,"class","shepherd-arrow"),k(t,"data-popper-arrow","")},m(n,r){re(n,t,r)},d(n){n&&G(t)}}}function Qi(e){let t,n,r,i,o,s,c,a,u=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on&&Dn();r=new Zi({props:{descriptionId:e[2],labelId:e[3],step:e[4]}});let d=[{"aria-describedby":i=W(e[4].options.text)?null:e[2]},{"aria-labelledby":o=e[4].options.title?e[3]:null},e[1],{open:"true"}],h={};for(let f=0;f<d.length;f+=1)h=vi(h,d[f]);return{c(){t=ce("dialog"),u&&u.c(),n=ut(),Ce(r.$$.fragment),xn(t,h),Ve(t,"shepherd-has-cancel-icon",e[5]),Ve(t,"shepherd-has-title",e[6]),Ve(t,"shepherd-element",!0)},m(f,g){re(f,t,g),u&&u.m(t,null),He(t,n),_e(r,t,null),e[13](t),s=!0,c||(a=ft(t,"keydown",e[7]),c=!0)},p(f,[g]){f[4].options.arrow&&f[4].options.attachTo&&f[4].options.attachTo.element&&f[4].options.attachTo.on?u||(u=Dn(),u.c(),u.m(t,n)):u&&(u.d(1),u=null);const v={};g&4&&(v.descriptionId=f[2]),g&8&&(v.labelId=f[3]),g&16&&(v.step=f[4]),r.$set(v),xn(t,h=Ai(d,[(!s||g&20&&i!==(i=W(f[4].options.text)?null:f[2]))&&{"aria-describedby":i},(!s||g&24&&o!==(o=f[4].options.title?f[3]:null))&&{"aria-labelledby":o},g&2&&f[1],{open:"true"}])),Ve(t,"shepherd-has-cancel-icon",f[5]),Ve(t,"shepherd-has-title",f[6]),Ve(t,"shepherd-element",!0)},i(f){s||(P(r.$$.fragment,f),s=!0)},o(f){M(r.$$.fragment,f),s=!1},d(f){f&&G(t),u&&u.d(),we(r),e[13](null),c=!1,a()}}}const eo=9,to=27,no=37,ro=39;function jn(e){return e.split(" ").filter(t=>!!t.length)}function io(e,t,n){let{classPrefix:r,element:i,descriptionId:o,firstFocusableElement:s,focusableElements:c,labelId:a,lastFocusableElement:u,step:d,dataStepId:h}=t,f,g,v;const E=()=>i;Si(()=>{n(1,h={[`data-${r}shepherd-step-id`]:d.id}),n(9,c=i.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=c[0]),n(10,u=c[c.length-1])}),Ft(()=>{v!==d.options.classes&&S()});function S(){w(v),v=d.options.classes,_(v)}function w(m){if(Je(m)){const T=jn(m);T.length&&i.classList.remove(...T)}}function _(m){if(Je(m)){const T=jn(m);T.length&&i.classList.add(...T)}}const R=m=>{const{tour:T}=d;switch(m.keyCode){case eo:if(c.length===0){m.preventDefault();break}m.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(m.preventDefault(),u.focus()):document.activeElement===u&&(m.preventDefault(),s.focus());break;case to:T.options.exitOnEsc&&(m.preventDefault(),m.stopPropagation(),d.cancel());break;case no:T.options.keyboardNavigation&&(m.preventDefault(),m.stopPropagation(),T.back());break;case ro:T.options.keyboardNavigation&&(m.preventDefault(),m.stopPropagation(),T.next());break}};function y(m){Be[m?"unshift":"push"](()=>{i=m,n(0,i)})}return e.$$set=m=>{"classPrefix"in m&&n(11,r=m.classPrefix),"element"in m&&n(0,i=m.element),"descriptionId"in m&&n(2,o=m.descriptionId),"firstFocusableElement"in m&&n(8,s=m.firstFocusableElement),"focusableElements"in m&&n(9,c=m.focusableElements),"labelId"in m&&n(3,a=m.labelId),"lastFocusableElement"in m&&n(10,u=m.lastFocusableElement),"step"in m&&n(4,d=m.step),"dataStepId"in m&&n(1,h=m.dataStepId)},e.$$.update=()=>{e.$$.dirty&16&&(n(5,f=d.options&&d.options.cancelIcon&&d.options.cancelIcon.enabled),n(6,g=d.options&&d.options.title))},[i,h,o,a,d,f,g,R,s,c,u,r,E,y]}class oo extends he{constructor(t){super(),de(this,t,io,Qi,fe,{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 Ht extends _t{constructor(t,n={}){return super(),this._resolvedAttachTo=void 0,this._resolvedExtraHighlightElements=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=t,this.classPrefix=this.tour.options?nn(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,xt(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){di(this),ke(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var t;(t=this.tour.modal)==null||t.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveExtraHiglightElements(){return this._resolvedExtraHighlightElements=Rr(this),this._resolvedExtraHighlightElements}_resolveAttachToOptions(){return this._resolvedAttachTo=Or(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return me(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const t=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new oo({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(t){const{element:n}=this._getResolvedAttachToOptions();me(this.options.scrollToHandler)?this.options.scrollToHandler(n):ir(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(t)}_getClassOptions(t){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,r=t.classes?t.classes:"",i=n&&n.classes?n.classes:"",o=[...r.split(" "),...i.split(" ")],s=new Set(o);return Array.from(s).join(" ").trim()}_setOptions(t={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=wt({},n||{}),this.options=Object.assign({arrow:!0},n,t,fi(n,t));const{when:r}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${on()}`,r&&Object.keys(r).forEach(i=>{this.on(i,r[i],this)})}_setupElements(){W(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Er(this),ui(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),this._resolveExtraHiglightElements(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(t=this.tour.modal)==null||t.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(),r=this.target||document.body,i=this._resolvedExtraHighlightElements;r.classList.add(`${this.classPrefix}shepherd-enabled`),r.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),i==null||i.forEach(o=>{o.classList.add(`${this.classPrefix}shepherd-enabled`),o.classList.add(`${this.classPrefix}shepherd-target`)}),this.trigger("show")}_styleTargetElementForStep(t){const n=t.target,r=t._resolvedExtraHighlightElements;if(!n)return;const i=t.options.highlightClass;i&&(n.classList.add(i),r==null||r.forEach(o=>o.classList.add(i))),n.classList.remove("shepherd-target-click-disabled"),r==null||r.forEach(o=>o.classList.remove("shepherd-target-click-disabled")),t.options.canClickTarget===!1&&(n.classList.add("shepherd-target-click-disabled"),r==null||r.forEach(o=>o.classList.add("shepherd-target-click-disabled")))}_updateStepTargetOnHide(){const t=this.target||document.body,n=this._resolvedExtraHighlightElements,r=this.options.highlightClass;r&&(t.classList.remove(r),n==null||n.forEach(i=>i.classList.remove(r))),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`),n==null||n.forEach(i=>{i.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)})}}function so(e){if(e){const{steps:t}=e;t.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&(ke(n.target)&&n.target.classList.remove("shepherd-target-click-disabled"),n._resolvedExtraHighlightElements&&n._resolvedExtraHighlightElements.forEach(r=>{ke(r)&&r.classList.remove("shepherd-target-click-disabled")}))})}}function lo(e){let t="";const{innerWidth:n,innerHeight:r}=window;return e.forEach(i=>{const{width:o,height:s,x:c=0,y:a=0,r:u=0}=i,{topLeft:d=0,topRight:h=0,bottomRight:f=0,bottomLeft:g=0}=typeof u=="number"?{topLeft:u,topRight:u,bottomRight:u,bottomLeft:u}:u;t+=`M${c+d},${a} a${d},${d},0,0,0-${d},${d} V${s+a-g} a${g},${g},0,0,0,${g},${g} H${o+c-f} a${f},${f},0,0,0,${f}-${f} V${a+h} a${h},${h},0,0,0-${h}-${h} Z`}),`M${n},${r} H0 V0 H${n} V${r} Z ${t}`.replace(/\s/g,"")}function co(e){let t,n,r,i,o;return{c(){t=wn("svg"),n=wn("path"),k(n,"d",e[2]),k(t,"class",r=`${e[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,c){re(s,t,c),He(t,n),e[11](t),i||(o=ft(t,"touchmove",e[3]),i=!0)},p(s,[c]){c&4&&k(n,"d",s[2]),c&2&&r!==(r=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&k(t,"class",r)},i:K,o:K,d(s){s&&G(t),e[11](null),i=!1,o()}}}function Hn(e){if(!e)return null;const n=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return n!=="hidden"&&n!=="visible"&&e.scrollHeight>=e.clientHeight?e:Hn(e.parentElement)}function ao(e){let t={top:0,left:0};if(!e)return t;let n=e.ownerDocument.defaultView;for(;n!==window.top;){var r;const s=(r=n)==null?void 0:r.frameElement;if(s){var i,o;const c=s.getBoundingClientRect();t.top+=c.top+((i=c.scrollTop)!=null?i:0),t.left+=c.left+((o=c.scrollLeft)!=null?o:0)}n=n.parent}return t}function uo(e,t){const n=e.getBoundingClientRect();let r=n.y||n.top,i=n.bottom||r+n.height;if(t){const s=t.getBoundingClientRect(),c=s.y||s.top,a=s.bottom||c+s.height;r=Math.max(r,c),i=Math.min(i,a)}const o=Math.max(i-r,0);return{y:r,height:o}}function fo(e,t,n){let{element:r,openingProperties:i}=t,o=!1,s,c;u();const a=()=>r;function u(){n(4,i=[{width:0,height:0,x:0,y:0,r:0}])}function d(){n(1,o=!1),w()}function h(y=0,m=0,T=0,V=0,ae,X,Z){if(X){const N=[X,...Z||[]];n(4,i=[]);for(const D of N){if(!D||N.indexOf(D)!==N.lastIndexOf(D))continue;const{y:j,height:F}=uo(D,ae),{x:$,width:B,left:ie}=D.getBoundingClientRect();N.some(Q=>{if(Q===D)return!1;const Y=Q.getBoundingClientRect();return $>=Y.left&&$+B<=Y.right&&j>=Y.top&&j+F<=Y.bottom})||i.push({width:B+y*2,height:F+y*2,x:($||ie)+T-y,y:j+V-y,r:m})}}else u()}function f(y){w(),y.tour.options.useModalOverlay?(_(y),g()):d()}function g(){n(1,o=!0)}const v=y=>{y.preventDefault()},E=y=>{y.stopPropagation()};function S(){window.addEventListener("touchmove",v,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",v,{passive:!1})}function _(y){const{modalOverlayOpeningPadding:m,modalOverlayOpeningRadius:T,modalOverlayOpeningXOffset:V=0,modalOverlayOpeningYOffset:ae=0}=y.options,X=ao(y.target),Z=Hn(y.target),N=()=>{s=void 0,h(m,T,V+X.left,ae+X.top,Z,y.target,y._resolvedExtraHighlightElements),s=requestAnimationFrame(N)};N(),S()}function R(y){Be[y?"unshift":"push"](()=>{r=y,n(0,r)})}return e.$$set=y=>{"element"in y&&n(0,r=y.element),"openingProperties"in y&&n(4,i=y.openingProperties)},e.$$.update=()=>{e.$$.dirty&16&&n(2,c=lo(i))},[r,o,c,E,i,a,u,d,h,f,g,R]}class ho extends he{constructor(t){super(),de(this,t,fo,co,fe,{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 po extends _t{constructor(){super(),this.activeTour=void 0,xt(this)}}class go extends _t{constructor(t={}){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,xt(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,t),this.classPrefix=nn(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(i=>{(o=>{this.on(o,s=>{s=s||{},s.tour=this,Ae.trigger(o,s)})})(i)}),this._setTourID(t.id),this}addStep(t,n){let r=t;return r instanceof Ht?r.tour=this:r=new Ht(this,r),W(n)?this.steps.push(r):this.steps.splice(n,0,r),r}addSteps(t){return Array.isArray(t)&&t.forEach(n=>{this.addStep(n)}),this}back(){const t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}async cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;me(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(t),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find(n=>n.id===t)}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return Ae.activeTour===this}next(){const t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}removeStep(t){const n=this.getCurrentStep();this.steps.some((r,i)=>{if(r.id===t)return r.isOpen()&&r.hide(),r.destroy(),this.steps.splice(i,1),!0}),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t=0,n=!0){const r=Je(t)?this.getById(t):this.steps[t];r&&(this._updateStateBeforeShow(),me(r.options.showOn)&&!r.options.showOn()?this._skipStep(r,n):(this.currentStep=r,this.trigger("show",{step:r,previous:this.currentStep}),r.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(t){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(r=>r.destroy()),so(this),this.trigger(t,{index:n}),Ae.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(t==="cancel"||t==="complete")&&this.modal){const r=document.querySelector(".shepherd-modal-overlay-container");r&&(r.remove(),this.modal=null)}ke(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Ae.activeTour=this}setupModal(){this.modal=new ho({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(t,n){const r=this.steps.indexOf(t);if(r===this.steps.length-1)this.complete();else{const i=n?r+1:r-1;this.show(i,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(t){const n=this.options.tourName||"tour",r=t||on();this.id=`${n}--${r}`}}const Ae=new po,Vn=typeof window>"u";Ae.Step=Vn?xr:Ht,Ae.Tour=Vn?Sr:go;const ht=ge.createContext(void 0),mo=ht.Consumer,bo=()=>{const e=ge.useContext(ht);if(!e)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:t}=e;return t},vo=({children:e})=>rr.jsx(ht.Provider,{value:{Shepherd:Ae},children:e});se.JourneyMethods=mo,se.ShepherdJourneyContext=ht,se.ShepherdJourneyProvider=vo,se.useShepherd=bo,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-shepherd",
3
- "version": "6.1.3",
3
+ "version": "6.1.4",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "src"
25
25
  ],
26
26
  "dependencies": {
27
- "shepherd.js": "14.0.1"
27
+ "shepherd.js": "14.1.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@testing-library/jest-dom": "^6.2.0",
@@ -34,7 +34,7 @@
34
34
  "@vitest/ui": "^2.1.1",
35
35
  "happy-dom": "^14.11.0",
36
36
  "typescript": "^5.4.5",
37
- "vite": "^5.3.6",
37
+ "vite": "^5.4.9",
38
38
  "vite-plugin-dts": "^3.9.1",
39
39
  "vitest": "^2.1.1"
40
40
  },