posthog-js 1.321.2 → 1.321.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/array.full.es5.js +1 -1
  2. package/dist/array.full.js +1 -1
  3. package/dist/array.full.no-external.js +1 -1
  4. package/dist/array.js +1 -1
  5. package/dist/array.no-external.js +1 -1
  6. package/dist/customizations.full.js +1 -1
  7. package/dist/lazy-recorder.js +1 -1
  8. package/dist/main.js +1 -1
  9. package/dist/main.js.map +1 -1
  10. package/dist/module.d.ts +1 -0
  11. package/dist/module.full.d.ts +1 -0
  12. package/dist/module.full.js +1 -1
  13. package/dist/module.full.js.map +1 -1
  14. package/dist/module.full.no-external.d.ts +1 -0
  15. package/dist/module.full.no-external.js +1 -1
  16. package/dist/module.full.no-external.js.map +1 -1
  17. package/dist/module.js +1 -1
  18. package/dist/module.js.map +1 -1
  19. package/dist/module.no-external.d.ts +1 -0
  20. package/dist/module.no-external.js +1 -1
  21. package/dist/module.no-external.js.map +1 -1
  22. package/dist/posthog-recorder.js +1 -1
  23. package/dist/product-tours-preview.d.ts +1 -0
  24. package/dist/product-tours-preview.js +1 -1
  25. package/dist/product-tours-preview.js.map +1 -1
  26. package/dist/product-tours.js +1 -1
  27. package/dist/product-tours.js.map +1 -1
  28. package/dist/src/extensions/product-tours/product-tours-utils.d.ts +9 -3
  29. package/dist/src/posthog-product-tours-types.d.ts +1 -0
  30. package/dist/surveys-preview.d.ts +1 -0
  31. package/lib/package.json +1 -1
  32. package/lib/src/extensions/product-tours/components/ProductTourTooltip.js +37 -14
  33. package/lib/src/extensions/product-tours/components/ProductTourTooltip.js.map +1 -1
  34. package/lib/src/extensions/product-tours/product-tours-utils.d.ts +9 -3
  35. package/lib/src/extensions/product-tours/product-tours-utils.js +13 -24
  36. package/lib/src/extensions/product-tours/product-tours-utils.js.map +1 -1
  37. package/lib/src/posthog-product-tours-types.d.ts +1 -0
  38. package/lib/src/posthog-product-tours-types.js +1 -0
  39. package/lib/src/posthog-product-tours-types.js.map +1 -1
  40. package/package.json +2 -2
@@ -1,2 +1,2 @@
1
- !function(t){"use strict";var e="undefined"!=typeof window?window:void 0,r="undefined"!=typeof globalThis?globalThis:e;"undefined"==typeof self&&(r.self=r),"undefined"==typeof File&&(r.File=function(){});var n=null==r?void 0:r.navigator,o=null==r?void 0:r.document;null==r||r.location,null==r||r.fetch,null!=r&&r.XMLHttpRequest&&"withCredentials"in new r.XMLHttpRequest&&r.XMLHttpRequest,null==r||r.AbortController,null==n||n.userAgent;var i=null!=e?e:{};function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(null,arguments)}var u,a,s,c,d,p,f,h,v,m,g,b,y={},_=[],x=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function k(t,e){for(var r in e)t[r]=e[r];return t}function T(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function C(t,e,r,n,o){var i={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=a.vnode&&a.vnode(i),i}function S(t){return t.children}function q(t,e){this.props=t,this.context=e}function A(t,e){if(null==e)return t.__?A(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?A(t):null}function M(t){var e,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return M(t)}}function L(t){(!t.__d&&(t.__d=!0)&&c.push(t)&&!$.__r++||d!=a.debounceRendering)&&((d=a.debounceRendering)||p)($)}function $(){for(var t,e,r,n,o,i,l,u=1;c.length;)c.length>u&&c.sort(f),t=c.shift(),u=c.length,t.__d&&(r=void 0,n=void 0,o=(n=(e=t).__v).__e,i=[],l=[],e.__P&&((r=k({},n)).__v=n.__v+1,a.vnode&&a.vnode(r),D(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[o]:null,i,null==o?A(n):o,!!(32&n.__u),l),r.__v=n.__v,r.__.__k[r.__i]=r,O(i,r,l),n.__e=n.__=null,r.__e!=o&&M(r)));$.__r=0}function E(t,e,r,n,o,i,l,u,a,s,c){var d,p,f,h,v,m,g,b=n&&n.__k||_,x=e.length;for(a=function(t,e,r,n,o){var i,l,u,a,s,c=r.length,d=c,p=0;for(t.__k=new Array(o),i=0;i<o;i++)null!=(l=e[i])&&"boolean"!=typeof l&&"function"!=typeof l?("string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?l=t.__k[i]=C(null,l,null,null,null):w(l)?l=t.__k[i]=C(S,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[i]=C(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):t.__k[i]=l,a=i+p,l.__=t,l.__b=t.__b+1,u=null,-1!=(s=l.__i=j(l,r,a,d))&&(d--,(u=r[s])&&(u.__u|=2)),null==u||null==u.__v?(-1==s&&(o>c?p--:o<c&&p++),"function"!=typeof l.type&&(l.__u|=4)):s!=a&&(s==a-1?p--:s==a+1?p++:(s>a?p--:p++,l.__u|=4))):t.__k[i]=null;if(d)for(i=0;i<c;i++)null!=(u=r[i])&&0==(2&u.__u)&&(u.__e==n&&(n=A(u)),V(u,u));return n}(r,e,b,a,x),d=0;d<x;d++)null!=(f=r.__k[d])&&(p=-1==f.__i?y:b[f.__i]||y,f.__i=d,m=D(t,f,p,o,i,l,u,a,s,c),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&H(p.ref,null,f),c.push(f.ref,f.__c||h,f)),null==v&&null!=h&&(v=h),(g=!!(4&f.__u))||p.__k===f.__k?a=I(f,a,t,g):"function"==typeof f.type&&void 0!==m?a=m:h&&(a=h.nextSibling),f.__u&=-7);return r.__e=v,a}function I(t,e,r,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=t,e=I(o[i],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=A(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function j(t,e,r,n){var o,i,l,u=t.key,a=t.type,s=e[r],c=null!=s&&0==(2&s.__u);if(null===s&&null==u||c&&u==s.key&&a==s.type)return r;if(n>(c?1:0))for(o=r-1,i=r+1;o>=0||i<e.length;)if(null!=(s=e[l=o>=0?o--:i++])&&0==(2&s.__u)&&u==s.key&&a==s.type)return l;return-1}function z(t,e,r){"-"==e[0]?t.setProperty(e,null==r?"":r):t[e]=null==r?"":"number"!=typeof r||x.test(e)?r:r+"px"}function R(t,e,r,n,o){var i,l;t:if("style"==e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||z(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||z(t.style,e,r[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(h,"$1")),l=e.toLowerCase(),e=l in t||"onFocusOut"==e||"onFocusIn"==e?l.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=r,r?n?r.u=n.u:(r.u=v,t.addEventListener(e,i?g:m,i)):t.removeEventListener(e,i?g:m,i);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==r?"":r;break t}catch(t){}"function"==typeof r||(null==r||!1===r&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==r?"":r))}}function Z(t){return function(e){if(this.l){var r=this.l[e.type+t];if(null==e.t)e.t=v++;else if(e.t<r.u)return;return r(a.event?a.event(e):e)}}}function D(t,e,r,n,o,i,l,u,s,c){var d,p,f,h,v,m,g,b,y,_,x,$,C,A,M,L,I,j=e.type;if(void 0!==e.constructor)return null;128&r.__u&&(s=!!(32&r.__u),i=[u=e.__e=r.__e]),(d=a.__b)&&d(e);t:if("function"==typeof j)try{if(b=e.props,y="prototype"in j&&j.prototype.render,_=(d=j.contextType)&&n[d.__c],x=d?_?_.props.value:d.__:n,r.__c?g=(p=e.__c=r.__c).__=p.__E:(y?e.__c=p=new j(b,x):(e.__c=p=new q(b,x),p.constructor=j,p.render=B),_&&_.sub(p),p.state||(p.state={}),p.__n=n,f=p.__d=!0,p.__h=[],p._sb=[]),y&&null==p.__s&&(p.__s=p.state),y&&null!=j.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=k({},p.__s)),k(p.__s,j.getDerivedStateFromProps(b,p.__s))),h=p.props,v=p.state,p.__v=e,f)y&&null==j.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),y&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(y&&null==j.getDerivedStateFromProps&&b!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(b,x),e.__v==r.__v||!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(b,p.__s,x)){for(e.__v!=r.__v&&(p.props=b,p.state=p.__s,p.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some((function(t){t&&(t.__=e)})),$=0;$<p._sb.length;$++)p.__h.push(p._sb[$]);p._sb=[],p.__h.length&&l.push(p);break t}null!=p.componentWillUpdate&&p.componentWillUpdate(b,p.__s,x),y&&null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(h,v,m)}))}if(p.context=x,p.props=b,p.__P=t,p.__e=!1,C=a.__r,A=0,y){for(p.state=p.__s,p.__d=!1,C&&C(e),d=p.render(p.props,p.state,p.context),M=0;M<p._sb.length;M++)p.__h.push(p._sb[M]);p._sb=[]}else do{p.__d=!1,C&&C(e),d=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++A<25);p.state=p.__s,null!=p.getChildContext&&(n=k(k({},n),p.getChildContext())),y&&!f&&null!=p.getSnapshotBeforeUpdate&&(m=p.getSnapshotBeforeUpdate(h,v)),L=d,null!=d&&d.type===S&&null==d.key&&(L=N(d.props.children)),u=E(t,w(L)?L:[L],e,r,n,o,i,l,u,s,c),p.base=e.__e,e.__u&=-161,p.__h.length&&l.push(p),g&&(p.__E=p.__=null)}catch(t){if(e.__v=null,s||null!=i)if(t.then){for(e.__u|=s?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;i[i.indexOf(u)]=null,e.__e=u}else{for(I=i.length;I--;)T(i[I]);P(e)}else e.__e=r.__e,e.__k=r.__k,t.then||P(e);a.__e(t,e,r)}else null==i&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):u=e.__e=F(r.__e,e,r,n,o,i,l,s,c);return(d=a.diffed)&&d(e),128&e.__u?void 0:u}function P(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(P)}function O(t,e,r){for(var n=0;n<r.length;n++)H(r[n],r[++n],r[++n]);a.__c&&a.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){a.__e(t,e.__v)}}))}function N(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:w(t)?t.map(N):k({},t)}function F(t,e,r,n,o,i,l,s,c){var d,p,f,h,v,m,g,b=r.props||y,_=e.props,x=e.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(d=0;d<i.length;d++)if((v=i[d])&&"setAttribute"in v==!!x&&(x?v.localName==x:3==v.nodeType)){t=v,i[d]=null;break}if(null==t){if(null==x)return document.createTextNode(_);t=document.createElementNS(o,x,_.is&&_),s&&(a.__m&&a.__m(e,i),s=!1),i=null}if(null==x)b===_||s&&t.data==_||(t.data=_);else{if(i=i&&u.call(t.childNodes),!s&&null!=i)for(b={},d=0;d<t.attributes.length;d++)b[(v=t.attributes[d]).name]=v.value;for(d in b)if(v=b[d],"children"==d);else if("dangerouslySetInnerHTML"==d)f=v;else if(!(d in _)){if("value"==d&&"defaultValue"in _||"checked"==d&&"defaultChecked"in _)continue;R(t,d,null,v,o)}for(d in _)v=_[d],"children"==d?h=v:"dangerouslySetInnerHTML"==d?p=v:"value"==d?m=v:"checked"==d?g=v:s&&"function"!=typeof v||b[d]===v||R(t,d,v,b[d],o);if(p)s||f&&(p.__html==f.__html||p.__html==t.innerHTML)||(t.innerHTML=p.__html),e.__k=[];else if(f&&(t.innerHTML=""),E("template"==e.type?t.content:t,w(h)?h:[h],e,r,n,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,i,l,i?i[0]:r.__k&&A(r,0),s,c),null!=i)for(d=i.length;d--;)T(i[d]);s||(d="value","progress"==x&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[d]||"progress"==x&&!m||"option"==x&&m!=b[d])&&R(t,d,m,b[d],o),d="checked",null!=g&&g!=t[d]&&R(t,d,g,b[d],o))}return t}function H(t,e,r){try{if("function"==typeof t){var n="function"==typeof t.__u;n&&t.__u(),n&&null==e||(t.__u=t(e))}else t.current=e}catch(t){a.__e(t,r)}}function V(t,e,r){var n,o;if(a.unmount&&a.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||H(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){a.__e(t,e)}n.base=n.__P=null}if(n=t.__k)for(o=0;o<n.length;o++)n[o]&&V(n[o],e,r||"function"!=typeof t.type);r||T(t.__e),t.__c=t.__=t.__e=void 0}function B(t,e,r){return this.constructor(t,r)}function U(t,e,r){var n,o,i;e==document&&(e=document.documentElement),a.__&&a.__(t,e),n=!1?null:e.__k,o=[],i=[],D(e,t=e.__k=function(t,e,r){var n,o,i,l={};for(i in e)"key"==i?n=e[i]:"ref"==i?o=e[i]:l[i]=e[i];if(arguments.length>2&&(l.children=arguments.length>3?u.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return C(t,l,n,o,null)}(S,null,[t]),n||y,y,e.namespaceURI,n?null:e.firstChild?u.call(e.childNodes):null,o,n?n.__e:e.firstChild,false,i),O(o,t,i)}u=_.slice,a={__e:function(t,e,r,n){for(var o,i,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,n||{}),l=o.__d),l)return o.__E=o}catch(e){t=e}throw t}},s=0,q.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=k({},this.state),"function"==typeof t&&(t=t(k({},r),this.props)),t&&k(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),L(this))},q.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),L(this))},q.prototype.render=S,c=[],p="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(t,e){return t.__v.__b-e.__v.__b},$.__r=0,h=/(PointerCapture)$|Capture$/i,v=0,m=Z(!1),g=Z(!0),b=0;var Q=function(t){return t.Activation="events",t.Cancellation="cancelEvents",t}({}),W=function(t){return t.Button="button",t.Tab="tab",t.Selector="selector",t}({}),Y=function(t){return t.TopLeft="top_left",t.TopRight="top_right",t.TopCenter="top_center",t.MiddleLeft="middle_left",t.MiddleRight="middle_right",t.MiddleCenter="middle_center",t.Left="left",t.Center="center",t.Right="right",t.NextToTrigger="next_to_trigger",t}({}),X=function(t){return t.Popover="popover",t.API="api",t.Widget="widget",t.ExternalSurvey="external_survey",t}({}),G=function(t){return t.SHOWN="survey shown",t.DISMISSED="survey dismissed",t.SENT="survey sent",t.ABANDONED="survey abandoned",t}({}),J=function(t){return t.SURVEY_ID="$survey_id",t.SURVEY_NAME="$survey_name",t.SURVEY_RESPONSE="$survey_response",t.SURVEY_ITERATION="$survey_iteration",t.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",t.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",t.SURVEY_SUBMISSION_ID="$survey_submission_id",t.SURVEY_QUESTIONS="$survey_questions",t.SURVEY_COMPLETED="$survey_completed",t.PRODUCT_TOUR_ID="$product_tour_id",t.SURVEY_LAST_SEEN_DATE="$survey_last_seen_date",t}({}),{entries:K,setPrototypeOf:tt,isFrozen:et,getPrototypeOf:rt,getOwnPropertyDescriptor:nt}=Object,{freeze:ot,seal:it,create:lt}=Object,{apply:ut,construct:at}="undefined"!=typeof Reflect&&Reflect;ot||(ot=function(t){return t}),it||(it=function(t){return t}),ut||(ut=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return t.apply(e,n)}),at||(at=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return new t(...r)});var st,ct=Tt(Array.prototype.forEach),dt=Tt(Array.prototype.lastIndexOf),pt=Tt(Array.prototype.pop),ft=Tt(Array.prototype.push),ht=Tt(Array.prototype.splice),vt=Tt(String.prototype.toLowerCase),mt=Tt(String.prototype.toString),gt=Tt(String.prototype.match),bt=Tt(String.prototype.replace),yt=Tt(String.prototype.indexOf),_t=Tt(String.prototype.trim),xt=Tt(Object.prototype.hasOwnProperty),wt=Tt(RegExp.prototype.test),kt=(st=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return at(st,e)});function Tt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return ut(t,e,n)}}function Ct(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vt;tt&&tt(t,null);for(var n=e.length;n--;){var o=e[n];if("string"==typeof o){var i=r(o);i!==o&&(et(e)||(e[n]=i),o=i)}t[o]=!0}return t}function St(t){for(var e=0;e<t.length;e++){xt(t,e)||(t[e]=null)}return t}function qt(t){var e=lt(null);for(var[r,n]of K(t)){xt(t,r)&&(Array.isArray(n)?e[r]=St(n):n&&"object"==typeof n&&n.constructor===Object?e[r]=qt(n):e[r]=n)}return e}function At(t,e){for(;null!==t;){var r=nt(t,e);if(r){if(r.get)return Tt(r.get);if("function"==typeof r.value)return Tt(r.value)}t=rt(t)}return function(){return null}}var Mt=ot(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$t=ot(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Lt=ot(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Et=ot(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),It=ot(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),jt=ot(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),zt=ot(["#text"]),Rt=ot(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Zt=ot(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Dt=ot(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pt=ot(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ot=it(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Nt=it(/<%[\w\W]*|[\w\W]*%>/gm),Ft=it(/\$\{[\w\W]*/gm),Ht=it(/^data-[\-\w.\u00B7-\uFFFF]+$/),Vt=it(/^aria-[\-\w]+$/),Bt=it(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ut=it(/^(?:\w+script|data):/i),Qt=it(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wt=it(/^html$/i),Yt=it(/^[a-z][.\w]*(-[.\w]+)+$/i),Xt=Object.freeze({__proto__:null,ARIA_ATTR:Vt,ATTR_WHITESPACE:Qt,CUSTOM_ELEMENT:Yt,DATA_ATTR:Ht,DOCTYPE_NAME:Wt,ERB_EXPR:Nt,IS_ALLOWED_URI:Bt,IS_SCRIPT_OR_DATA:Ut,MUSTACHE_EXPR:Ot,TMPLIT_EXPR:Ft}),Gt=1,Jt=3,Kt=7,te=8,ee=9,re=function(){return"undefined"==typeof window?null:window};var ne=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),r=e=>t(e);if(r.version="3.3.1",r.removed=[],!e||!e.document||e.document.nodeType!==ee||!e.Element)return r.isSupported=!1,r;var n,{document:o}=e,i=o,l=i.currentScript,{DocumentFragment:u,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:d,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:v}=e,m=c.prototype,g=At(m,"cloneNode"),b=At(m,"remove"),y=At(m,"nextSibling"),_=At(m,"childNodes"),x=At(m,"parentNode");if("function"==typeof a){var w=o.createElement("template");w.content&&w.content.ownerDocument&&(o=w.content.ownerDocument)}var k="",{implementation:T,createNodeIterator:C,createDocumentFragment:S,getElementsByTagName:q}=o,{importNode:A}=i,M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof K&&"function"==typeof x&&T&&void 0!==T.createHTMLDocument;var{MUSTACHE_EXPR:L,ERB_EXPR:E,TMPLIT_EXPR:I,DATA_ATTR:j,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:R,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:D}=Xt,{IS_ALLOWED_URI:P}=Xt,O=null,N=Ct({},[...Mt,...$t,...Lt,...It,...zt]),F=null,H=Ct({},[...Rt,...Zt,...Dt,...Pt]),V=Object.seal(lt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,U=null,Q=Object.seal(lt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),W=!0,Y=!0,X=!1,G=!0,J=!1,tt=!0,et=!1,rt=!1,nt=!1,it=!1,ut=!1,at=!1,st=!0,Tt=!1,St=!0,Ot=!1,Nt={},Ft=null,Ht=Ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Vt=null,Ut=Ct({},["audio","video","img","source","image","track"]),Qt=null,Yt=Ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ne="http://www.w3.org/1998/Math/MathML",oe="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml",le=ie,ue=!1,ae=null,se=Ct({},[ne,oe,ie],mt),ce=Ct({},["mi","mo","mn","ms","mtext"]),de=Ct({},["annotation-xml"]),pe=Ct({},["title","style","font","a","script"]),fe=null,he=["application/xhtml+xml","text/html"],ve=null,me=null,ge=o.createElement("form"),be=function(t){return t instanceof RegExp||t instanceof Function},ye=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!me||me!==t){if(t&&"object"==typeof t||(t={}),t=qt(t),fe=-1===he.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===fe?mt:vt,O=xt(t,"ALLOWED_TAGS")?Ct({},t.ALLOWED_TAGS,ve):N,F=xt(t,"ALLOWED_ATTR")?Ct({},t.ALLOWED_ATTR,ve):H,ae=xt(t,"ALLOWED_NAMESPACES")?Ct({},t.ALLOWED_NAMESPACES,mt):se,Qt=xt(t,"ADD_URI_SAFE_ATTR")?Ct(qt(Yt),t.ADD_URI_SAFE_ATTR,ve):Yt,Vt=xt(t,"ADD_DATA_URI_TAGS")?Ct(qt(Ut),t.ADD_DATA_URI_TAGS,ve):Ut,Ft=xt(t,"FORBID_CONTENTS")?Ct({},t.FORBID_CONTENTS,ve):Ht,B=xt(t,"FORBID_TAGS")?Ct({},t.FORBID_TAGS,ve):qt({}),U=xt(t,"FORBID_ATTR")?Ct({},t.FORBID_ATTR,ve):qt({}),Nt=!!xt(t,"USE_PROFILES")&&t.USE_PROFILES,W=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,X=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,J=t.SAFE_FOR_TEMPLATES||!1,tt=!1!==t.SAFE_FOR_XML,et=t.WHOLE_DOCUMENT||!1,it=t.RETURN_DOM||!1,ut=t.RETURN_DOM_FRAGMENT||!1,at=t.RETURN_TRUSTED_TYPE||!1,nt=t.FORCE_BODY||!1,st=!1!==t.SANITIZE_DOM,Tt=t.SANITIZE_NAMED_PROPS||!1,St=!1!==t.KEEP_CONTENT,Ot=t.IN_PLACE||!1,P=t.ALLOWED_URI_REGEXP||Bt,le=t.NAMESPACE||ie,ce=t.MATHML_TEXT_INTEGRATION_POINTS||ce,de=t.HTML_INTEGRATION_POINTS||de,V=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&be(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&be(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&(Y=!1),ut&&(it=!0),Nt&&(O=Ct({},zt),F=[],!0===Nt.html&&(Ct(O,Mt),Ct(F,Rt)),!0===Nt.svg&&(Ct(O,$t),Ct(F,Zt),Ct(F,Pt)),!0===Nt.svgFilters&&(Ct(O,Lt),Ct(F,Zt),Ct(F,Pt)),!0===Nt.mathMl&&(Ct(O,It),Ct(F,Dt),Ct(F,Pt))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?Q.tagCheck=t.ADD_TAGS:(O===N&&(O=qt(O)),Ct(O,t.ADD_TAGS,ve))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?Q.attributeCheck=t.ADD_ATTR:(F===H&&(F=qt(F)),Ct(F,t.ADD_ATTR,ve))),t.ADD_URI_SAFE_ATTR&&Ct(Qt,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Ft===Ht&&(Ft=qt(Ft)),Ct(Ft,t.FORBID_CONTENTS,ve)),t.ADD_FORBID_CONTENTS&&(Ft===Ht&&(Ft=qt(Ft)),Ct(Ft,t.ADD_FORBID_CONTENTS,ve)),St&&(O["#text"]=!0),et&&Ct(O,["html","head","body"]),O.table&&(Ct(O,["tbody"]),delete B.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');n=t.TRUSTED_TYPES_POLICY,k=n.createHTML("")}else void 0===n&&(n=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(v,l)),null!==n&&"string"==typeof k&&(k=n.createHTML(""));ot&&ot(t),me=t}},_e=Ct({},[...$t,...Lt,...Et]),xe=Ct({},[...It,...jt]),we=function(t){ft(r.removed,{element:t});try{x(t).removeChild(t)}catch(e){b(t)}},ke=function(t,e){try{ft(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){ft(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(it||ut)try{we(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Te=function(t){var e=null,r=null;if(nt)t="<remove></remove>"+t;else{var i=gt(t,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===fe&&le===ie&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var l=n?n.createHTML(t):t;if(le===ie)try{e=(new h).parseFromString(l,fe)}catch(t){}if(!e||!e.documentElement){e=T.createDocument(le,"template",null);try{e.documentElement.innerHTML=ue?k:l}catch(t){}}var u=e.body||e.documentElement;return t&&r&&u.insertBefore(o.createTextNode(r),u.childNodes[0]||null),le===ie?q.call(e,et?"html":"body")[0]:et?e.documentElement:u},Ce=function(t){return C.call(t.ownerDocument||t,t,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Se=function(t){return t instanceof f&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof p)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},qe=function(t){return"function"==typeof s&&t instanceof s};function Ae(t,e,n){ct(t,(t=>{t.call(r,e,n,me)}))}var Me=function(t){var e=null;if(Ae(M.beforeSanitizeElements,t,null),Se(t))return we(t),!0;var n=ve(t.nodeName);if(Ae(M.uponSanitizeElement,t,{tagName:n,allowedTags:O}),tt&&t.hasChildNodes()&&!qe(t.firstElementChild)&&wt(/<[/\w!]/g,t.innerHTML)&&wt(/<[/\w!]/g,t.textContent))return we(t),!0;if(t.nodeType===Kt)return we(t),!0;if(tt&&t.nodeType===te&&wt(/<[/\w]/g,t.data))return we(t),!0;if(!(Q.tagCheck instanceof Function&&Q.tagCheck(n))&&(!O[n]||B[n])){if(!B[n]&&Le(n)){if(V.tagNameCheck instanceof RegExp&&wt(V.tagNameCheck,n))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(n))return!1}if(St&&!Ft[n]){var o=x(t)||t.parentNode,i=_(t)||t.childNodes;if(i&&o)for(var l=i.length-1;l>=0;--l){var u=g(i[l],!0);u.__removalCount=(t.__removalCount||0)+1,o.insertBefore(u,y(t))}}return we(t),!0}return t instanceof c&&!function(t){var e=x(t);e&&e.tagName||(e={namespaceURI:le,tagName:"template"});var r=vt(t.tagName),n=vt(e.tagName);return!!ae[t.namespaceURI]&&(t.namespaceURI===oe?e.namespaceURI===ie?"svg"===r:e.namespaceURI===ne?"svg"===r&&("annotation-xml"===n||ce[n]):Boolean(_e[r]):t.namespaceURI===ne?e.namespaceURI===ie?"math"===r:e.namespaceURI===oe?"math"===r&&de[n]:Boolean(xe[r]):t.namespaceURI===ie?!(e.namespaceURI===oe&&!de[n])&&!(e.namespaceURI===ne&&!ce[n])&&!xe[r]&&(pe[r]||!_e[r]):!("application/xhtml+xml"!==fe||!ae[t.namespaceURI]))}(t)?(we(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!wt(/<\/no(script|embed|frames)/i,t.innerHTML)?(J&&t.nodeType===Jt&&(e=t.textContent,ct([L,E,I],(t=>{e=bt(e,t," ")})),t.textContent!==e&&(ft(r.removed,{element:t.cloneNode()}),t.textContent=e)),Ae(M.afterSanitizeElements,t,null),!1):(we(t),!0)},$e=function(t,e,r){if(st&&("id"===e||"name"===e)&&(r in o||r in ge))return!1;if(Y&&!U[e]&&wt(j,e));else if(W&&wt(z,e));else if(Q.attributeCheck instanceof Function&&Q.attributeCheck(e,t));else if(!F[e]||U[e]){if(!(Le(t)&&(V.tagNameCheck instanceof RegExp&&wt(V.tagNameCheck,t)||V.tagNameCheck instanceof Function&&V.tagNameCheck(t))&&(V.attributeNameCheck instanceof RegExp&&wt(V.attributeNameCheck,e)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(e,t))||"is"===e&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&wt(V.tagNameCheck,r)||V.tagNameCheck instanceof Function&&V.tagNameCheck(r))))return!1}else if(Qt[e]);else if(wt(P,bt(r,Z,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==yt(r,"data:")||!Vt[t]){if(X&&!wt(R,bt(r,Z,"")));else if(r)return!1}else;return!0},Le=function(t){return"annotation-xml"!==t&&gt(t,D)},Ee=function(t){Ae(M.beforeSanitizeAttributes,t,null);var{attributes:e}=t;if(e&&!Se(t)){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0},i=e.length,l=function(){var l=e[i],{name:u,namespaceURI:a,value:s}=l,c=ve(u),d=s,p="value"===u?d:_t(d);if(o.attrName=c,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,Ae(M.uponSanitizeAttribute,t,o),p=o.attrValue,!Tt||"id"!==c&&"name"!==c||(ke(u,t),p="user-content-"+p),tt&&wt(/((--!?|])>)|<\/(style|title|textarea)/i,p))return ke(u,t),0;if("attributename"===c&&gt(p,"href"))return ke(u,t),0;if(o.forceKeepAttr)return 0;if(!o.keepAttr)return ke(u,t),0;if(!G&&wt(/\/>/i,p))return ke(u,t),0;J&&ct([L,E,I],(t=>{p=bt(p,t," ")}));var f=ve(t.nodeName);if(!$e(f,c,p))return ke(u,t),0;if(n&&"object"==typeof v&&"function"==typeof v.getAttributeType)if(a);else switch(v.getAttributeType(f,c)){case"TrustedHTML":p=n.createHTML(p);break;case"TrustedScriptURL":p=n.createScriptURL(p)}if(p!==d)try{a?t.setAttributeNS(a,u,p):t.setAttribute(u,p),Se(t)?we(t):pt(r.removed)}catch(e){ke(u,t)}};i--;)l();Ae(M.afterSanitizeAttributes,t,null)}},Ie=function t(e){var r=null,n=Ce(e);for(Ae(M.beforeSanitizeShadowDOM,e,null);r=n.nextNode();)Ae(M.uponSanitizeShadowNode,r,null),Me(r),Ee(r),r.content instanceof u&&t(r.content);Ae(M.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,l=null,a=null,c=null;if((ue=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!qe(t)){if("function"!=typeof t.toString)throw kt("toString is not a function");if("string"!=typeof(t=t.toString()))throw kt("dirty is not a string, aborting")}if(!r.isSupported)return t;if(rt||ye(e),r.removed=[],"string"==typeof t&&(Ot=!1),Ot){if(t.nodeName){var d=ve(t.nodeName);if(!O[d]||B[d])throw kt("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)(l=(o=Te("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===Gt&&"BODY"===l.nodeName||"HTML"===l.nodeName?o=l:o.appendChild(l);else{if(!it&&!J&&!et&&-1===t.indexOf("<"))return n&&at?n.createHTML(t):t;if(!(o=Te(t)))return it?null:at?k:""}o&&nt&&we(o.firstChild);for(var p=Ce(Ot?t:o);a=p.nextNode();)Me(a),Ee(a),a.content instanceof u&&Ie(a.content);if(Ot)return t;if(it){if(ut)for(c=S.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(F.shadowroot||F.shadowrootmode)&&(c=A.call(i,c,!0)),c}var f=et?o.outerHTML:o.innerHTML;return et&&O["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&wt(Wt,o.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+f),J&&ct([L,E,I],(t=>{f=bt(f,t," ")})),n&&at?n.createHTML(f):f},r.setConfig=function(){ye(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),rt=!0},r.clearConfig=function(){me=null,rt=!1},r.isValidAttribute=function(t,e,r){me||ye({});var n=ve(t),o=ve(e);return $e(n,o,r)},r.addHook=function(t,e){"function"==typeof e&&ft(M[t],e)},r.removeHook=function(t,e){if(void 0!==e){var r=dt(M[t],e);return-1===r?void 0:ht(M[t],r,1)[0]}return pt(M[t])},r.removeHooks=function(t){M[t]=[]},r.removeAllHooks=function(){M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),oe={backgroundColor:"#ffffff",textColor:"#1d1f27",buttonColor:"#1d1f27",borderRadius:8,buttonBorderRadius:6,borderColor:"#e5e7eb",fontFamily:"system-ui",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",showOverlay:!0,whiteLabel:!1,dismissOnClickOutside:!0},ie=function(t){return t.TopLeft="top_left",t.TopCenter="top_center",t.TopRight="top_right",t.MiddleLeft="middle_left",t.MiddleCenter="middle_center",t.MiddleRight="middle_right",t.Left="left",t.Right="right",t.Center="center",t}({}),le=function(t){return t.Regex="regex",t.NotRegex="not_regex",t.Exact="exact",t.IsNot="is_not",t.Icontains="icontains",t.NotIcontains="not_icontains",t}({}),ue=Array.isArray,ae=Object.prototype.toString,se=ue||function(t){return"[object Array]"===ae.call(t)},ce=t=>void 0===t,de=t=>null===t,pe=t=>ce(t)||de(t);var fe=(t,e,r)=>{function n(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),l=1;l<o;l++)i[l-1]=arguments[l];e((()=>{(0,r[n])(t,...i)}))}var o={info:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("log",...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("warn",...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("error",...e)},critical:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];r.error(t,...n)},createLogger:n=>fe(t+" "+n,e,r)};return o},he=t=>t();var ve=function(t,r){var{debugEnabled:n}=void 0===r?{}:r,o={o:function(r){if(e&&(i.POSTHOG_DEBUG||n)&&!ce(e.console)&&e.console){for(var o=("__rrweb_original__"in e.console[r]?e.console[r].__rrweb_original__:e.console[r]),l=arguments.length,u=new Array(l>1?l-1:0),a=1;a<l;a++)u[a-1]=arguments[a];o(t,...u)}},info:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("log",...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("warn",...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("error",...e)},critical:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];console.error(t,...r)},uninitializedWarning:t=>{o.error("You must initialize PostHog before calling "+t)},createLogger:(e,r)=>ve(t+" "+e,r)};return o},me=ve("[PostHog.js]"),ge=me.createLogger,be=ge("[Stylesheet Loader]"),ye=(t,e,r)=>{var n=t.createElement("style");return n.innerText=e,n||(be.error("prepare_external_dependency_stylesheet returned null"),null)};function _e(t,e,r,n){var{capture:o=!1,passive:i=!0}=null!=n?n:{};null==t||t.addEventListener(e,r,{capture:o,passive:i})}ge("[Surveys]"),null!=n&&n.sendBeacon;var xe=function(t,e){if(!function(t){try{new RegExp(t)}catch(t){return!1}return!0}(e))return!1;try{return new RegExp(e).test(t)}catch(t){return!1}},we={exact:(t,e)=>e.some((e=>t.some((t=>e===t)))),is_not:(t,e)=>e.every((e=>t.every((t=>e!==t)))),regex:(t,e)=>e.some((e=>t.some((t=>xe(e,t))))),not_regex:(t,e)=>e.every((e=>t.every((t=>!xe(e,t))))),icontains:(t,e)=>e.map(ke).some((e=>t.map(ke).some((t=>e.includes(t))))),not_icontains:(t,e)=>e.map(ke).every((e=>t.map(ke).every((t=>!e.includes(t))))),gt:(t,e)=>e.some((e=>{var r=parseFloat(e);return!isNaN(r)&&t.some((t=>r>parseFloat(t)))})),lt:(t,e)=>e.some((e=>{var r=parseFloat(e);return!isNaN(r)&&t.some((t=>r<parseFloat(t)))}))},ke=t=>t.toLowerCase();function Te(t,e){return!t||Object.entries(t).every((t=>{var[r,n]=t,o=null==e?void 0:e[r];if(ce(o)||de(o))return!1;var i=[String(o)],l=we[n.operator];return!!l&&l(n.values,i)}))}var Ce,Se,qe,Ae,Me=0,$e=[],Le=a,Ee=Le.__b,Ie=Le.__r,je=Le.diffed,ze=Le.__c,Re=Le.unmount,Ze=Le.__;function De(t,e){Le.__h&&Le.__h(Se,t,Me||e),Me=0;var r=Se.__H||(Se.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Pe(t){return Me=1,function(t,e,r){var n=De(Ce++,2);if(n.t=t,!n.__c&&(n.__=[Ye(void 0,e),function(t){var e=n.__N?n.__N[0]:n.__[0],r=n.t(e,t);e!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=Se,!Se.__f)){var o=function(t,e,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,e,r);var l=n.__c.props!==t;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(l=!0)}})),i&&i.call(this,t,e,r)||l};Se.__f=!0;var i=Se.shouldComponentUpdate,l=Se.componentWillUpdate;Se.componentWillUpdate=function(t,e,r){if(this.__e){var n=i;i=void 0,o(t,e,r),i=n}l&&l.call(this,t,e,r)},Se.shouldComponentUpdate=o}return n.__N||n.__}(Ye,t)}function Oe(t,e){var r=De(Ce++,3);!Le.__s&&We(r.__H,e)&&(r.__=t,r.u=e,Se.__H.__h.push(r))}function Ne(t){return Me=5,Fe((function(){return{current:t}}),[])}function Fe(t,e){var r=De(Ce++,7);return We(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function He(){for(var t;t=$e.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ue),t.__H.__h.forEach(Qe),t.__H.__h=[]}catch(e){t.__H.__h=[],Le.__e(e,t.__v)}}Le.__b=function(t){Se=null,Ee&&Ee(t)},Le.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Ze&&Ze(t,e)},Le.__r=function(t){Ie&&Ie(t),Ce=0;var e=(Se=t.__c).__H;e&&(qe===Se?(e.__h=[],Se.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(e.__h.forEach(Ue),e.__h.forEach(Qe),e.__h=[],Ce=0)),qe=Se},Le.diffed=function(t){je&&je(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==$e.push(e)&&Ae===Le.requestAnimationFrame||((Ae=Le.requestAnimationFrame)||Be)(He)),e.__H.__.forEach((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),qe=Se=null},Le.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Ue),t.__h=t.__h.filter((function(t){return!t.__||Qe(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],Le.__e(r,t.__v)}})),ze&&ze(t,e)},Le.unmount=function(t){Re&&Re(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{Ue(t)}catch(t){e=t}})),r.__H=void 0,e&&Le.__e(e,r.__v))};var Ve="function"==typeof requestAnimationFrame;function Be(t){var e,r=function(){clearTimeout(n),Ve&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);Ve&&(e=requestAnimationFrame(r))}function Ue(t){var e=Se,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),Se=e}function Qe(t){var e=Se;t.__c=t.__(),Se=e}function We(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function Ye(t,e){return"function"==typeof e?e(t):e}var Xe="#020617",Ge={backgroundColor:"#eeeded",position:Y.Right};function Je(t){if(t.startsWith("#")){var e=t.replace(/^#/,"");return/^[0-9A-Fa-f]{3}$/.test(e)&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),/^[0-9A-Fa-f]{6}$/.test(e)?"rgb("+parseInt(e.slice(0,2),16)+","+parseInt(e.slice(2,4),16)+","+parseInt(e.slice(4,6),16)+")":"rgb(255, 255, 255)"}return"rgb(255, 255, 255)"}function Ke(t){var e;void 0===t&&(t=Ge.backgroundColor),"#"===t[0]&&(e=Je(t)),t.startsWith("rgb")&&(e=t);var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}[t.toLowerCase()];if(r&&(e=Je(r)),!e)return Xe;var n=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(n){var o=parseInt(n[1]),i=parseInt(n[2]),l=parseInt(n[3]);return Math.sqrt(o*o*.299+i*i*.587+l*l*.114)>127.5?Xe:"white"}return Xe}!function(t){function e(t){var r,n;return this.getChildContext||(r=new Set,(n={})[e.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&r.forEach((function(t){t.__e=!0,L(t)}))},this.sub=function(t){r.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r&&r.delete(t),e&&e.call(t)}}),t.children}e.__c="__cC"+b++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed:()=>{},isPopup:!0,onPreviewSubmit:()=>{},surveySubmissionId:"",properties:void 0});var tr=':host{--ph-tour-font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI","Roboto",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ph-tour-background-color:#fff;--ph-tour-text-color:#1d1f27;--ph-tour-text-secondary-color:#6b7280;--ph-tour-button-color:#1d1f27;--ph-tour-button-text-color:#fff;--ph-tour-button-secondary-color:transparent;--ph-tour-button-secondary-text-color:#1d1f27;--ph-tour-border-color:#e5e7eb;--ph-tour-border-radius:8px;--ph-tour-button-border-radius:6px;--ph-tour-box-shadow:0 4px 12px rgba(0,0,0,.15);--ph-tour-max-width:320px;--ph-tour-padding:16px;--ph-tour-z-index:2147483646;--ph-tour-overlay-color:rgba(0,0,0,.5);--ph-tour-spotlight-padding:8px;--ph-tour-spotlight-border-radius:4px;--ph-tour-arrow-size:8px}.ph-tour-container *{box-sizing:border-box;font-family:var(--ph-tour-font-family);margin:0;padding:0}.ph-tour-click-overlay{bottom:0;left:0;pointer-events:auto;position:fixed;right:0;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-spotlight{border-radius:var(--ph-tour-spotlight-border-radius);box-shadow:0 0 0 9999px var(--ph-tour-overlay-color)}.ph-tour-modal-overlay,.ph-tour-spotlight{pointer-events:none;position:fixed;z-index:var(--ph-tour-z-index)}.ph-tour-modal-overlay{background:var(--ph-tour-overlay-color);bottom:0;left:0;right:0;top:0}.ph-tour-tooltip{background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:var(--ph-tour-border-radius);box-shadow:var(--ph-tour-box-shadow);max-width:var(--ph-tour-max-width);min-width:280px;padding:var(--ph-tour-padding);padding-top:calc(var(--ph-tour-padding) + 8px);pointer-events:auto;position:fixed;z-index:calc(var(--ph-tour-z-index) + 1)}.ph-tour-tooltip--modal{box-shadow:0 8px 32px rgba(0,0,0,.2),0 2px 8px rgba(0,0,0,.1)}.ph-tour-arrow{border:var(--ph-tour-arrow-size) solid transparent;height:0;position:absolute;width:0}.ph-tour-arrow--top{border-bottom-color:var(--ph-tour-background-color);bottom:100%;left:50%;transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);left:50%;top:100%;transform:translateX(-50%)}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%;top:50%;transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%;top:50%;transform:translateY(-50%)}.ph-tour-content{color:var(--ph-tour-text-color);font-size:14px;line-height:1.5;margin-bottom:16px;padding-right:24px}.ph-tour-content h1,.ph-tour-content h2{font-weight:600;margin-bottom:8px}.ph-tour-content h1{font-size:18px}.ph-tour-content h2{font-size:16px}.ph-tour-content p{margin-bottom:8px}.ph-tour-content p:last-child{margin-bottom:0}.ph-tour-content strong{font-weight:600}.ph-tour-content em{font-style:italic}.ph-tour-content ol,.ph-tour-content ul{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{font-size:14px;font-weight:600;margin-bottom:8px}.ph-tour-content .ph-tour-link,.ph-tour-content a{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:rgba(0,0,0,.06);border-radius:4px;font-size:.875em;padding:2px 6px}.ph-tour-content code,.ph-tour-content pre{font-family:SF Mono,Monaco,Consolas,monospace}.ph-tour-content pre{background:rgba(0,0,0,.04);border-radius:6px;font-size:13px;line-height:1.5;margin-bottom:8px;overflow-x:auto;padding:12px}.ph-tour-content pre code{background:transparent;border-radius:0;font-size:inherit;padding:0}.ph-tour-content code *,.ph-tour-content pre *{font-family:inherit}.ph-tour-content .hljs-comment,.ph-tour-content .hljs-quote{color:#6a737d;font-style:italic}.ph-tour-content .hljs-keyword,.ph-tour-content .hljs-selector-tag{color:#d73a49}.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp,.ph-tour-content .hljs-string{color:#032f62}.ph-tour-content .hljs-literal,.ph-tour-content .hljs-number,.ph-tour-content .hljs-template-variable,.ph-tour-content .hljs-variable{color:#005cc5}.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-title,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-addition,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-name,.ph-tour-content .hljs-symbol{color:#22863a}.ph-tour-content .hljs-deletion,.ph-tour-content .hljs-subst{color:#b31d28}.ph-tour-content .hljs-meta{color:#032f62}.ph-tour-content .hljs-emphasis{font-style:italic}.ph-tour-content .hljs-strong{font-weight:700}.ph-tour-content .ph-tour-image,.ph-tour-content img{border-radius:6px;display:block;height:auto;margin:8px 0;max-width:100%}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;overflow:hidden;padding-bottom:56.25%;position:relative;width:100%}.ph-tour-content .ph-tour-embed-container iframe{border:none;height:100%;left:0;position:absolute;top:0;width:100%}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);font-style:italic;margin:8px 0;padding-left:12px}.ph-tour-footer{align-items:center;display:flex;gap:12px;justify-content:space-between}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{display:flex;gap:8px;margin-left:auto}.ph-tour-button{align-items:center;border:none;border-radius:var(--ph-tour-button-border-radius);cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;justify-content:center;padding:8px 16px;transition:opacity .15s ease,transform .1s ease}.ph-tour-button:hover{opacity:.9}.ph-tour-button:active{transform:scale(.98)}.ph-tour-button--primary{background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-button--secondary{background:var(--ph-tour-button-secondary-color);border:1px solid var(--ph-tour-border-color);color:var(--ph-tour-button-secondary-text-color)}.ph-tour-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}.ph-tour-branding{align-items:center;border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));display:flex;font-size:11px;gap:6px;justify-content:center;margin-top:12px;padding-top:12px;text-decoration:none}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{height:14px;width:auto}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:300px}.ph-tour-survey-question{color:var(--ph-tour-text-color);font-size:15px;font-weight:500;line-height:1.4;margin-bottom:16px;padding-right:24px}.ph-tour-survey-input-container{display:flex;flex-direction:column;gap:12px}.ph-tour-survey-textarea{background:#fff;border:1px solid var(--ph-tour-border-color);border-radius:6px;box-sizing:border-box;color:var(--ph-tour-text-color);font-family:var(--ph-tour-font-family);font-size:14px;min-height:80px;padding:10px 12px;resize:vertical;width:100%}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);box-shadow:0 0 0 2px rgba(0,0,0,.05);outline:none}.ph-tour-survey-textarea::placeholder{color:var(--ph-tour-text-secondary-color)}.ph-tour-survey-submit{align-self:flex-end}.ph-tour-survey-rating-container{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);display:flex;font-size:11px;justify-content:space-between}.ph-tour-survey-rating-emoji{display:flex;gap:8px;justify-content:center}.ph-tour-survey-emoji-button{align-items:center;background:var(--ph-tour-background-color);border:2px solid var(--ph-tour-border-color);border-radius:8px;cursor:pointer;display:flex;height:44px;justify-content:center;padding:0;transition:all .15s ease;width:44px}.ph-tour-survey-emoji-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active svg{fill:var(--ph-tour-button-text-color)}.ph-tour-survey-emoji-button svg{fill:var(--ph-tour-text-color);height:28px;transition:fill .15s ease;width:28px}.ph-tour-survey-rating-numbers{display:grid;gap:6px}.ph-tour-survey-number-button{align-items:center;background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:4px;color:var(--ph-tour-text-color);cursor:pointer;display:flex;font-family:var(--ph-tour-font-family);font-size:13px;font-weight:500;justify-content:center;padding:8px 4px;transition:all .15s ease}.ph-tour-survey-number-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-number-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-banner{align-items:center;background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);display:flex;font-family:var(--ph-tour-font-family);gap:16px;justify-content:center;padding:12px 16px}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){position:sticky;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-banner-content{color:var(--ph-tour-text-color);flex:1;font-size:14px;line-height:1.5;min-width:0;text-align:center}.ph-tour-banner-content p{margin:0}.ph-tour-banner-content strong{font-weight:600}.ph-tour-banner-content em{font-style:italic}.ph-tour-banner-content a{color:inherit;text-decoration:underline}.ph-tour-banner-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-banner-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}',er=o,rr=e;function nr(){var t=ye(er,tr);return null==t||t.setAttribute("data-ph-product-tour-style","true"),t}function or(t){try{var e=er.querySelectorAll(t);if(0===e.length)return{element:null,error:"not_found",matchCount:0};var r=e[0];return function(t){var e=rr.getComputedStyle(t);if("none"===e.display||"hidden"===e.visibility||"0"===e.opacity)return!1;var r=t.getBoundingClientRect();if(0===r.width||0===r.height)return!1;return!0}(r)?e.length>1?{element:r,error:"multiple_matches",matchCount:e.length}:{element:r,error:null,matchCount:1}:{element:null,error:"not_visible",matchCount:e.length}}catch(t){return{element:null,error:"not_found",matchCount:0}}}var ir=12,lr=320,ur=180;function ar(t,e){var r,n,o,i=l({},oe,e),u=t.style;u.setProperty("--ph-tour-background-color",i.backgroundColor),u.setProperty("--ph-tour-text-color",i.textColor),u.setProperty("--ph-tour-button-color",i.buttonColor),u.setProperty("--ph-tour-border-radius",i.borderRadius+"px"),u.setProperty("--ph-tour-button-border-radius",i.buttonBorderRadius+"px"),u.setProperty("--ph-tour-border-color",i.borderColor),u.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";var e='BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return t?t+", "+e:"-apple-system, "+e}(i.fontFamily)),u.setProperty("--ph-tour-text-secondary-color",(r=i.textColor,n=.6,(o=Je(r).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+o[1]+", "+o[2]+", "+o[3]+", "+n+")":r)),u.setProperty("--ph-tour-branding-text-color",Ke(i.backgroundColor)),u.setProperty("--ph-tour-button-text-color",Ke(i.buttonColor)),u.setProperty("--ph-tour-box-shadow",i.boxShadow),u.setProperty("--ph-tour-overlay-color",i.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),u.setProperty("--ph-tour-button-secondary-color","transparent"),u.setProperty("--ph-tour-button-secondary-text-color",i.textColor),u.setProperty("--ph-tour-max-width","320px"),u.setProperty("--ph-tour-padding","16px")}function sr(t){var e;if(!t)return"";if("string"==typeof t)return dr(t);if("text"===t.type){var r=dr(t.text||"");if(t.marks)for(var n of t.marks)switch(n.type){case"bold":r="<strong>"+r+"</strong>";break;case"italic":r="<em>"+r+"</em>";break;case"underline":r="<u>"+r+"</u>";break;case"strike":r="<s>"+r+"</s>"}return r}var o=(null==(e=t.content)?void 0:e.map(sr).join(""))||"";switch(t.type){case"doc":default:return o;case"paragraph":return"<p>"+o+"</p>";case"heading":var i,l=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+l+">"+o+"</h"+l+">";case"bulletList":return"<ul>"+o+"</ul>";case"orderedList":return"<ol>"+o+"</ol>";case"listItem":return"<li>"+o+"</li>";case"hardBreak":return"<br>"}}function cr(t){return t.endsWith("/")?t.slice(0,-1):t}function dr(t){var e=er.createElement("div");return e.textContent=t,e.innerHTML}function pr(t){return t.contentHtml?ne.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):sr(t.content)}function fr(t,e,r){return void 0===e&&(e=document),void 0===r&&(r=null),function(t,e,r,n){void 0===n&&(n=null);return t=function(t){function e(){n&&(l.length>0&&/^[~+>]$/.test(l[l.length-1])&&l.push(" "),l.push(n))}var r,n,o,i,l=[],u=[0],a=0,s=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,c=/^\s+$/,d=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(t=t.trim();;){if(n="",(o=d[u[u.length-1]]).lastIndex=a,!(r=o.exec(t))){n=t.substr(a),e();break}if((i=a)<(a=o.lastIndex)-r[0].length&&(n=t.substring(i,a-r[0].length)),u[u.length-1]<3){if(e(),"["===r[0])u.push(1);else if("("===r[0])u.push(2);else if(/^["']$/.test(r[0]))u.push(3),d[3]=new RegExp(r[0],"g");else if("/*"===r[0])u.push(4);else if(/^[\])]$/.test(r[0])&&u.length>0)u.pop();else if(/^(?:\s+|[~+>])$/.test(r[0])&&(l.length>0&&!c.test(l[l.length-1])&&0===u[u.length-1]&&l.push(" "),1===u[u.length-1]&&5===l.length&&"="===l[2].charAt(l[2].length-1)&&(l[4]=" "+l[4]),c.test(r[0])))continue;l.push(r[0])}else l[l.length-1]+=n,s.test(l[l.length-1])&&(4===u[u.length-1]&&(l.length<2||c.test(l[l.length-2])?l.pop():l[l.length-1]=" ",r[0]=""),u.pop()),l[l.length-1]+=r[0]}return l.join("").trim()}(t),r.querySelector(t),document.head.createShadowRoot||document.head.attachShadow?hr(t,",").reduce(((t,e)=>{var o=hr(e.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((t=>!!t)).map((t=>hr(t,">"))),i=o.length-1,l=function(t,e,r){void 0===t&&(t=null);void 0===r&&(r=null);var n=[];if(r)n=r;else{var o=function(t){for(var e=0;e<t.length;e++){var r=t[e];n.push(r),r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*"))}};e.shadowRoot&&o(e.shadowRoot.querySelectorAll("*")),o(e.querySelectorAll("*"))}return t?n.filter((e=>e.matches(t))):n}(o[i][o[i].length-1],r,n),u=function(t,e,r){return n=>{for(var o=e,i=n,l=!1;i&&!vr(i);){var u=!0;if(1===t[o].length)u=i.matches(t[o]);else{var a=[].concat(t[o]).reverse(),s=i;for(var c of a){if(!s||!s.matches(c)){u=!1;break}s=mr(s,r)}}if(u&&0===o){l=!0;break}u&&o--,i=mr(i,r)}return l}}(o,i,r);return t=t.concat(l.filter(u))}),[]):r.querySelectorAll(t)}(t,0,e,r)}function hr(t,e){return t.match(/\\?.|^$/g).reduce(((t,r)=>('"'!==r||t.sQuote?"'"!==r||t.quote?t.quote||t.sQuote||r!==e?t.a[t.a.length-1]+=r:t.a.push(""):(t.sQuote^=1,t.a[t.a.length-1]+=r):(t.quote^=1,t.a[t.a.length-1]+=r),t)),{a:[""]}).a}function vr(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE||t.nodeType===Node.DOCUMENT_NODE}function mr(t,e){var r=t.parentNode;return r&&r.host&&11===r.nodeType?r.host:r===e?null:r}var gr,br,yr=e,_r=(void 0===gr&&(gr=he),fe("[Element Inference]",gr,(void 0===br&&(br=console),{log:br.log.bind(br),warn:br.warn.bind(br),error:br.error.bind(br),debug:br.debug.bind(br)})));function xr(t,e){try{var r=e.get(t);if(!ce(r))return r;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return e.set(t,n),n}var o=yr.getComputedStyle(t);if("none"===o.display||"hidden"===o.visibility||0===parseFloat(o.opacity))return e.set(t,!1),!1;for(var i=t.parentElement;i;){var l=e.get(i);if(ce(l)){var u=yr.getComputedStyle(i),a="none"!==u.display&&"hidden"!==u.visibility;if(e.set(i,a),!a)return!1;i=i.parentElement}else{if(!l)return!1;i=i.parentElement}}var s=t.getBoundingClientRect(),c=s.width>0||s.height>0||t.getClientRects().length>0;return e.set(t,c),c}catch(t){return!0}}function wr(t,e){var r=function(t){var e,r=null==(e=t.innerText)?void 0:e.trim();return!r||r.length>250?null:r}(t);return(null==r?void 0:r.toLowerCase())===e.toLowerCase()}function*kr(t,e,r){var n;try{n=fr(t)}catch(t){return}for(var o of n){var i=o;e&&!wr(i,e)||xr(i,r)&&(yield i)}}function Tr(t,e){var r=0;for(var n of t){if(r===e)return n;r++}return null}function Cr(t){try{var e=JSON.parse(t.autoData);if(!se(null==e?void 0:e.textGroups)||!se(null==e?void 0:e.notextGroups))return _r.error("Invalid autoData structure:",e),null;var{text:r,excludeText:n}=t,o=null!=r&&!n,i=(o?e.textGroups:e.notextGroups).sort(((t,e)=>t.cardinality-e.cardinality));if(0===i.length)return null;var l=new WeakMap;for(var u of i){var a=new Map,s=null,c=0;for(var{css:d,offset:p}of u.cssSelectors){var f,h=Tr(kr(d,o?r:null,l),p);if(h){var v=(null!==(f=a.get(h))&&void 0!==f?f:0)+1;if(a.set(h,v),v>c&&(c=v,s=h,v>=Math.ceil(u.cssSelectors.length/2)))return s}}if(s)return s}return null}catch(t){return _r.error("Error finding element:",t),null}}var Sr=0;function qr(t,e,r,n,o,i){e||(e={});var l,u,s=e;if("ref"in s)for(u in s={},e)"ref"==u?l=e[u]:s[u]=e[u];var c={type:t,props:s,key:r,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Sr,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(l=t.defaultProps))for(u in l)void 0===s[u]&&(s[u]=l[u]);return a.vnode&&a.vnode(c),c}var Ar=qr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:qr("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146 272q66 0 121.5-35.5T682-393h-52q-23 40-63 61.5T480.5-310q-46.5 0-87-21T331-393h-53q26 61 81 96.5T480-261Zm0 181q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),Mr=qr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:qr("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm20 194h253v-49H354v49ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),$r=qr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:qr("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146.174 116Q413-417 358.5-379.5T278-280h53q22-42 62.173-65t87.5-23Q528-368 567.5-344.5T630-280h52q-25-63-79.826-100-54.826-37-122-37ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),Lr=qr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:qr("path",{d:"M480-417q-67 0-121.5 37.5T278-280h404q-25-63-80-100t-122-37Zm-183-72 50-45 45 45 31-36-45-45 45-45-31-36-45 45-50-45-31 36 45 45-45 45 31 36Zm272 0 44-45 51 45 31-36-45-45 45-45-31-36-51 45-44-45-31 36 44 45-44 45 31 36ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142 0 241-99t99-241q0-142-99-241t-241-99q-142 0-241 99t-99 241q0 142 99 241t241 99Z"})}),Er=qr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:qr("path",{d:"M479.504-261Q537-261 585.5-287q48.5-26 78.5-72.4 6-11.6-.75-22.6-6.75-11-20.25-11H316.918Q303-393 296.5-382t-.5 22.6q30 46.4 78.5 72.4 48.5 26 105.004 26ZM347-578l27 27q7.636 8 17.818 8Q402-543 410-551q8-8 8-18t-8-18l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.636-8 17.818Q276-559 284-551q8 8 18 8t18-8l27-27Zm267 0 27 27q7.714 8 18 8t18-8q8-7.636 8-17.818Q685-579 677-587l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.714-8 18t8 18q7.636 8 17.818 8Q579-543 587-551l27-27ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),Ir=qr("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title",children:[qr("title",{id:"close-survey-title",children:"Close survey"}),qr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.164752 0.164752C0.384422 -0.0549175 0.740578 -0.0549175 0.960248 0.164752L6 5.20451L11.0398 0.164752C11.2594 -0.0549175 11.6156 -0.0549175 11.8352 0.164752C12.0549 0.384422 12.0549 0.740578 11.8352 0.960248L6.79549 6L11.8352 11.0398C12.0549 11.2594 12.0549 11.6156 11.8352 11.8352C11.6156 12.0549 11.2594 12.0549 11.0398 11.8352L6 6.79549L0.960248 11.8352C0.740578 12.0549 0.384422 12.0549 0.164752 11.8352C-0.0549175 11.6156 -0.0549175 11.2594 0.164752 11.0398L5.20451 6L0.164752 0.960248C-0.0549175 0.740578 -0.0549175 0.384422 0.164752 0.164752Z",fill:"black"})]}),jr=qr("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[qr("g",{"clip-path":"url(#clip0_2415_6911)",children:[qr("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:qr("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),qr("g",{mask:"url(#mask0_2415_6911)",children:[qr("path",{d:"M5.77226 8.02931C5.59388 8.37329 5.08474 8.37329 4.90634 8.02931L4.4797 7.20672C4.41155 7.07535 4.41155 6.9207 4.4797 6.78933L4.90634 5.96669C5.08474 5.62276 5.59388 5.62276 5.77226 5.96669L6.19893 6.78933C6.26709 6.9207 6.26709 7.07535 6.19893 7.20672L5.77226 8.02931ZM5.77226 12.6946C5.59388 13.0386 5.08474 13.0386 4.90634 12.6946L4.4797 11.872C4.41155 11.7406 4.41155 11.586 4.4797 11.4546L4.90634 10.632C5.08474 10.288 5.59388 10.288 5.77226 10.632L6.19893 11.4546C6.26709 11.586 6.26709 11.7406 6.19893 11.872L5.77226 12.6946Z",fill:"#1D4AFF"}),qr("path",{d:"M0.5 10.9238C0.5 10.508 1.02142 10.2998 1.32637 10.5938L3.54508 12.7327C3.85003 13.0267 3.63405 13.5294 3.20279 13.5294H0.984076C0.716728 13.5294 0.5 13.3205 0.5 13.0627V10.9238ZM0.5 8.67083C0.5 8.79459 0.551001 8.91331 0.641783 9.00081L5.19753 13.3927C5.28831 13.4802 5.41144 13.5294 5.53982 13.5294H8.0421C8.47337 13.5294 8.68936 13.0267 8.3844 12.7327L1.32637 5.92856C1.02142 5.63456 0.5 5.84278 0.5 6.25854V8.67083ZM0.5 4.00556C0.5 4.12932 0.551001 4.24802 0.641783 4.33554L10.0368 13.3927C10.1276 13.4802 10.2508 13.5294 10.3791 13.5294H12.8814C13.3127 13.5294 13.5287 13.0267 13.2237 12.7327L1.32637 1.26329C1.02142 0.969312 0.5 1.17752 0.5 1.59327V4.00556ZM5.33931 4.00556C5.33931 4.12932 5.39033 4.24802 5.4811 4.33554L14.1916 12.7327C14.4965 13.0267 15.0179 12.8185 15.0179 12.4028V9.99047C15.0179 9.86671 14.9669 9.74799 14.8762 9.66049L6.16568 1.26329C5.86071 0.969307 5.33931 1.17752 5.33931 1.59327V4.00556ZM11.005 1.26329C10.7 0.969307 10.1786 1.17752 10.1786 1.59327V4.00556C10.1786 4.12932 10.2296 4.24802 10.3204 4.33554L14.1916 8.06748C14.4965 8.36148 15.0179 8.15325 15.0179 7.7375V5.3252C15.0179 5.20144 14.9669 5.08272 14.8762 4.99522L11.005 1.26329Z",fill:"#F9BD2B"}),qr("path",{d:"M21.0852 10.981L16.5288 6.58843C16.2238 6.29443 15.7024 6.50266 15.7024 6.91841V13.0627C15.7024 13.3205 15.9191 13.5294 16.1865 13.5294H23.2446C23.5119 13.5294 23.7287 13.3205 23.7287 13.0627V12.5032C23.7287 12.2455 23.511 12.0396 23.2459 12.0063C22.4323 11.9042 21.6713 11.546 21.0852 10.981ZM18.0252 12.0365C17.5978 12.0365 17.251 11.7021 17.251 11.2901C17.251 10.878 17.5978 10.5436 18.0252 10.5436C18.4527 10.5436 18.7996 10.878 18.7996 11.2901C18.7996 11.7021 18.4527 12.0365 18.0252 12.0365Z",fill:"currentColor"}),qr("path",{d:"M0.5 13.0627C0.5 13.3205 0.716728 13.5294 0.984076 13.5294H3.20279C3.63405 13.5294 3.85003 13.0267 3.54508 12.7327L1.32637 10.5938C1.02142 10.2998 0.5 10.508 0.5 10.9238V13.0627ZM5.33931 5.13191L1.32637 1.26329C1.02142 0.969306 0.5 1.17752 0.5 1.59327V4.00556C0.5 4.12932 0.551001 4.24802 0.641783 4.33554L5.33931 8.86412V5.13191ZM1.32637 5.92855C1.02142 5.63455 0.5 5.84278 0.5 6.25853V8.67083C0.5 8.79459 0.551001 8.91331 0.641783 9.00081L5.33931 13.5294V9.79717L1.32637 5.92855Z",fill:"#1D4AFF"}),qr("path",{d:"M10.1787 5.3252C10.1787 5.20144 10.1277 5.08272 10.0369 4.99522L6.16572 1.26329C5.8608 0.969306 5.33936 1.17752 5.33936 1.59327V4.00556C5.33936 4.12932 5.39037 4.24802 5.48114 4.33554L10.1787 8.86412V5.3252ZM5.33936 13.5294H8.04214C8.47341 13.5294 8.6894 13.0267 8.38443 12.7327L5.33936 9.79717V13.5294ZM5.33936 5.13191V8.67083C5.33936 8.79459 5.39037 8.91331 5.48114 9.00081L10.1787 13.5294V9.99047C10.1787 9.86671 10.1277 9.74803 10.0369 9.66049L5.33936 5.13191Z",fill:"#F54E00"}),qr("path",{d:"M29.375 11.6667H31.3636V8.48772H33.0249C34.8499 8.48772 36.0204 7.4443 36.0204 5.83052C36.0204 4.21681 34.8499 3.17334 33.0249 3.17334H29.375V11.6667ZM31.3636 6.84972V4.81136H32.8236C33.5787 4.81136 34.0318 5.19958 34.0318 5.83052C34.0318 6.4615 33.5787 6.84972 32.8236 6.84972H31.3636ZM39.618 11.7637C41.5563 11.7637 42.9659 10.429 42.9659 8.60905C42.9659 6.78905 41.5563 5.45438 39.618 5.45438C37.6546 5.45438 36.2701 6.78905 36.2701 8.60905C36.2701 10.429 37.6546 11.7637 39.618 11.7637ZM38.1077 8.60905C38.1077 7.63838 38.7118 6.97105 39.618 6.97105C40.5116 6.97105 41.1157 7.63838 41.1157 8.60905C41.1157 9.57972 40.5116 10.2471 39.618 10.2471C38.7118 10.2471 38.1077 9.57972 38.1077 8.60905ZM46.1482 11.7637C47.6333 11.7637 48.6402 10.8658 48.6402 9.81025C48.6402 7.33505 45.2294 8.13585 45.2294 7.16518C45.2294 6.8983 45.5189 6.72843 45.9342 6.72843C46.3622 6.72843 46.8782 6.98318 47.0418 7.54132L48.527 6.94678C48.2375 6.06105 47.1677 5.45438 45.8713 5.45438C44.4743 5.45438 43.6058 6.25518 43.6058 7.21372C43.6058 9.53118 46.9663 8.88812 46.9663 9.84665C46.9663 10.1864 46.6391 10.417 46.1482 10.417C45.4434 10.417 44.9525 9.94376 44.8015 9.3735L43.3164 9.93158C43.6436 10.8537 44.6001 11.7637 46.1482 11.7637ZM53.4241 11.606L53.2982 10.0651C53.0843 10.1743 52.8074 10.2106 52.5808 10.2106C52.1278 10.2106 51.8257 9.89523 51.8257 9.34918V7.03172H53.3612V5.55145H51.8257V3.78001H49.9755V5.55145H48.9687V7.03172H49.9755V9.57972C49.9755 11.06 51.0202 11.7637 52.3921 11.7637C52.7696 11.7637 53.122 11.7031 53.4241 11.606ZM59.8749 3.17334V6.47358H56.376V3.17334H54.3874V11.6667H56.376V8.11158H59.8749V11.6667H61.8761V3.17334H59.8749ZM66.2899 11.7637C68.2281 11.7637 69.6378 10.429 69.6378 8.60905C69.6378 6.78905 68.2281 5.45438 66.2899 5.45438C64.3265 5.45438 62.942 6.78905 62.942 8.60905C62.942 10.429 64.3265 11.7637 66.2899 11.7637ZM64.7796 8.60905C64.7796 7.63838 65.3837 6.97105 66.2899 6.97105C67.1835 6.97105 67.7876 7.63838 67.7876 8.60905C67.7876 9.57972 67.1835 10.2471 66.2899 10.2471C65.3837 10.2471 64.7796 9.57972 64.7796 8.60905ZM73.2088 11.4725C73.901 11.4725 74.5177 11.242 74.845 10.8416V11.424C74.845 12.1034 74.2786 12.5767 73.4102 12.5767C72.7935 12.5767 72.2523 12.2854 72.1642 11.788L70.4776 12.0428C70.7042 13.1955 71.925 13.972 73.4102 13.972C75.361 13.972 76.6574 12.8679 76.6574 11.2298V5.55145H74.8324V6.07318C74.4926 5.69705 73.9136 5.45438 73.171 5.45438C71.409 5.45438 70.3014 6.61918 70.3014 8.46345C70.3014 10.3077 71.409 11.4725 73.2088 11.4725ZM72.1012 8.46345C72.1012 7.55345 72.655 6.97105 73.5109 6.97105C74.3793 6.97105 74.9331 7.55345 74.9331 8.46345C74.9331 9.37345 74.3793 9.95585 73.5109 9.95585C72.655 9.95585 72.1012 9.37345 72.1012 8.46345Z",fill:"currentColor"})]})]}),qr("defs",{children:qr("clipPath",{id:"clip0_2415_6911",children:qr("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function zr(t){var{button:e,variant:r,onClick:n,cursorStyle:o}=t,i="ph-tour-button ph-tour-button--"+r;return"link"===e.action&&e.link?qr("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",class:i,children:e.text}):qr("button",{class:i,onClick:()=>n(e),style:o,children:e.text})}function Rr(t){var e,r,n,{step:o,appearance:i,stepIndex:l,totalSteps:u,onNext:a,onPrevious:s,onDismiss:c,onButtonClick:d}=t,p=null!==(e=null==i?void 0:i.whiteLabel)&&void 0!==e&&e,f=l>=u-1,h=0===l,v=!o.buttons&&("button"===o.progressionTrigger||"modal"===o.type),m=!!o.buttons,g=!!(a||s||c||d),b=g?void 0:{cursor:"default"},y=t=>{d&&d(t)};return qr(S,{children:[qr("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Ir}),qr("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:pr(o)}}),qr("div",{class:"ph-tour-footer",children:[u>1&&qr("span",{class:"ph-tour-progress",children:[l+1," of ",u]}),qr("div",{class:"ph-tour-buttons",children:[v&&qr(S,{children:[!h&&qr("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),qr("button",{class:"ph-tour-button ph-tour-button--primary",onClick:a,style:b,children:f?"Done":"Next"})]}),m&&qr(S,{children:[(null==(r=o.buttons)?void 0:r.secondary)&&qr(zr,{button:o.buttons.secondary,variant:"secondary",onClick:y,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&qr(zr,{button:o.buttons.primary,variant:"primary",onClick:y,cursorStyle:b})]})]})]}),!p&&qr("a",{href:g?"https://posthog.com/product-tours":void 0,target:g?"_blank":void 0,rel:g?"noopener noreferrer":void 0,class:"ph-tour-branding",style:g?void 0:{cursor:"default",pointerEvents:"none"},children:["Tour by ",jr]})]})}qr("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:qr("path",{d:"M5.30769 10.6923L4.77736 11.2226C4.91801 11.3633 5.10878 11.4423 5.30769 11.4423C5.5066 11.4423 5.69737 11.3633 5.83802 11.2226L5.30769 10.6923ZM15.5303 1.53033C15.8232 1.23744 15.8232 0.762563 15.5303 0.46967C15.2374 0.176777 14.7626 0.176777 14.4697 0.46967L15.5303 1.53033ZM1.53033 5.85429C1.23744 5.56139 0.762563 5.56139 0.46967 5.85429C0.176777 6.14718 0.176777 6.62205 0.46967 6.91495L1.53033 5.85429ZM5.83802 11.2226L15.5303 1.53033L14.4697 0.46967L4.77736 10.162L5.83802 11.2226ZM0.46967 6.91495L4.77736 11.2226L5.83802 10.162L1.53033 5.85429L0.46967 6.91495Z",fill:"currentColor"})});var Zr=[$r,Mr,Ar],Dr=[Lr,$r,Mr,Ar,Er];function Pr(t){var{value:e,onChange:r,onSubmit:n,isInteractive:o}=t,i=Ne(null);Oe((()=>{o&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[o]);return qr("textarea",{ref:i,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:e,onInput:t=>r(t.target.value),onKeyDown:t=>{"Enter"===t.key&&t.metaKey&&o&&(t.preventDefault(),null==n||n())},disabled:!o,style:o?void 0:{cursor:"default"}})}function Or(t){var{survey:e,onSubmit:r,isInteractive:n}=t,[o,i]=Pe(null),l=e.display||"emoji",u=e.scale||5,a=t=>{n&&(i(t),null==r||r(t))};if("emoji"===l)return qr("div",{class:"ph-tour-survey-rating-container",children:[qr("div",{class:"ph-tour-survey-rating-emoji",children:(3===u?Zr:Dr).map(((t,e)=>{var r=e+1;return qr("button",{type:"button",class:"ph-tour-survey-emoji-button "+(o===r?"ph-tour-survey-emoji-button--active":""),onClick:()=>a(r),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+r,children:t},e)}))}),(e.lowerBoundLabel||e.upperBoundLabel)&&qr("div",{class:"ph-tour-survey-rating-labels",children:[qr("span",{children:e.lowerBoundLabel}),qr("span",{children:e.upperBoundLabel})]})]});var s=function(t){switch(t){case 5:default:return[1,2,3,4,5];case 10:return[0,1,2,3,4,5,6,7,8,9,10]}}(u);return qr("div",{class:"ph-tour-survey-rating-container",children:[qr("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>qr("button",{type:"button",class:"ph-tour-survey-number-button "+(o===t?"ph-tour-survey-number-button--active":""),onClick:()=>a(t),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(e.lowerBoundLabel||e.upperBoundLabel)&&qr("div",{class:"ph-tour-survey-rating-labels",children:[qr("span",{children:e.lowerBoundLabel}),qr("span",{children:e.upperBoundLabel})]})]})}function Nr(t){var e,{step:r,appearance:n,stepIndex:o,totalSteps:i,onPrevious:l,onSubmit:u,onDismiss:a}=t,[s,c]=Pe(""),d=r.survey,p=null!==(e=null==n?void 0:n.whiteLabel)&&void 0!==e&&e,f=0===o,h="open"===(null==d?void 0:d.type),v=!!(l||u||a),m=v?void 0:{cursor:"default"},g=()=>{null==u||u(s.trim()||null)};return d?qr(S,{children:[qr("button",{class:"ph-tour-dismiss",onClick:a,"aria-label":"Close survey",style:m,children:Ir}),qr("div",{class:"ph-tour-survey-question",children:d.questionText}),h?qr(Pr,{value:s,onChange:c,onSubmit:g,isInteractive:v}):qr(Or,{survey:d,onSubmit:u,isInteractive:v}),qr("div",{class:"ph-tour-footer",children:[qr("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),qr("div",{class:"ph-tour-buttons",children:[!f&&qr("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:l,style:m,children:"Back"}),h&&qr("button",{class:"ph-tour-button ph-tour-button--primary",onClick:g,style:m,children:"Submit"})]})]}),!p&&qr("a",{href:v?"https://posthog.com/product-tours":void 0,target:v?"_blank":void 0,rel:v?"noopener noreferrer":void 0,class:"ph-tour-branding",style:v?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",jr]})]}):qr("div",{})}var Fr=e;function Hr(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}var Vr=150;function Br(t){var e,{tour:r,step:n,stepIndex:o,totalSteps:i,targetElement:u,onNext:a,onPrevious:s,onDismiss:c,onSurveySubmit:d,onButtonClick:p}=t,[f,h]=Pe("entering"),[v,m]=Pe(null),[g,b]=Pe(null),[y,_]=Pe(n),[x,w]=Pe(o),k=Ne(o),T=Ne(!1),C="modal"===y.type||"survey"===y.type,S=function(t,e){return Me=8,Fe((function(){return t}),e)}((()=>{if(u){var t,e,r=u.getBoundingClientRect();m(function(t){var e,r,n,o=rr.innerWidth,i=rr.innerHeight-t.bottom,l=t.left;return o-t.right>=lr+ir?(e="right",r=t.top+t.height/2-ur/2,n=t.right+ir):l>=lr+ir?(e="left",r=t.top+t.height/2-ur/2,n=t.left-lr-ir):i>=ur+ir?(e="bottom",r=t.bottom+ir,n=t.left+t.width/2-lr/2):(e="top",r=t.top-ur-ir,n=t.left+t.width/2-lr/2),{top:r,left:n,position:e}}(r)),b((void 0===e&&(e=8),{top:(t=r).top-e+"px",left:t.left-e+"px",width:t.width+2*e+"px",height:t.height+2*e+"px"}))}}),[u]);Oe((()=>{var t=o,e=k.current!==o,r=()=>{k.current===t&&(h("visible"),T.current=!1)},i=()=>{u&&"element"===n.type?function(t,e){var r=t.getBoundingClientRect(),n=Fr.innerHeight,o=Fr.innerWidth,i=n/6,l=o/6;if(r.top>=i&&r.bottom<=n-i&&r.left>=l&&r.right<=o-l)e();else{t.scrollIntoView({behavior:"smooth",block:"center"});var u=r.top,a=0,s=!1,c=()=>{if(!s){var r=t.getBoundingClientRect();if(Math.abs(r.top-u)<1){if(++a>=3)return s=!0,void e()}else a=0;u=r.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout((()=>{s||(s=!0,e())}),500)}}(u,(()=>{k.current===t&&(S(),setTimeout(r,50))})):setTimeout(r,50)};if(!e)return k.current=o,T.current=!0,void i();k.current=o,T.current=!0,h("exiting"),setTimeout((()=>{k.current===t&&("element"===n.type&&(m(null),b(null)),_(n),w(o),h("entering"),i())}),Vr)}),[u,o,n,S]),Oe((()=>{if("visible"===f&&!C){var t=()=>{T.current||S()};return _e(Fr,"scroll",t,{capture:!0}),_e(Fr,"resize",t),()=>{null==Fr||Fr.removeEventListener("scroll",t,!0),null==Fr||Fr.removeEventListener("resize",t)}}}),[S,f,C]),Oe((()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return _e(Fr,"keydown",t),()=>{null==Fr||Fr.removeEventListener("keydown",t)}}),[c]);var q,A,M="visible"===f,L="survey"===y.type,E=C||!de(v),I=l({},y.maxWidth&&{width:y.maxWidth+"px",maxWidth:y.maxWidth+"px"},C?l({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(A=function(t,e,r){if(void 0===e&&(e=Y.Right),t===X.ExternalSurvey)return{};switch(e){case Y.TopLeft:return{top:"0",left:"0",transform:"translate(30px, 30px)"};case Y.TopRight:return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case Y.TopCenter:return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case Y.MiddleLeft:return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case Y.MiddleRight:return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case Y.MiddleCenter:return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case Y.Left:return{left:"30px"};case Y.Center:return{left:"50%",transform:"translateX(-50%)"};default:case Y.Right:return{right:t===X.Widget&&r===W.Tab?"60px":"30px"}}}(void 0,null!==(q=y.modalPosition)&&void 0!==q?q:ie.MiddleCenter),"top"in A||"bottom"in A?A:l({},A,{bottom:"30px"}))):{top:v?v.top+"px":"0",left:v?v.left+"px":"0"});return qr("div",{class:"ph-tour-container",children:[!1!==(null==(e=r.appearance)?void 0:e.dismissOnClickOutside)&&qr("div",{class:"ph-tour-click-overlay",onClick:t=>{t.stopPropagation(),c("user_clicked_outside")}}),qr("div",{class:"ph-tour-modal-overlay",style:{opacity:C&&M?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),qr("div",{class:"ph-tour-spotlight",style:l({},M&&E&&g?g:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!C&&M&&E?1:0,transition:"opacity 150ms ease-out"},"click"===y.progressionTrigger&&!C&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==y.progressionTrigger||C?void 0:t=>{t.stopPropagation(),u&&u.click(),a()}}),qr("div",{class:"ph-tour-tooltip "+(C?"ph-tour-tooltip--modal":"")+" "+(L?"ph-tour-survey-step":""),style:l({},I,{opacity:M&&E?1:0,transition:"opacity 150ms ease-out"}),onClick:t=>{t.stopPropagation()},children:[!C&&v&&qr("div",{class:"ph-tour-arrow ph-tour-arrow--"+Hr(v.position)}),L?qr(Nr,{step:y,appearance:r.appearance,stepIndex:x,totalSteps:i,onSubmit:d,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):qr(Rr,{step:y,appearance:r.appearance,stepIndex:x,totalSteps:i,onNext:a,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:p})]})]})}function Ur(t){var{class:e,href:r,children:n}=t;return qr("a",{class:e,href:r,target:"_blank",rel:"noopener noreferrer",children:n})}function Qr(t){var{class:e,onClick:r,children:n}=t;return qr("div",{class:e,role:"button",tabIndex:0,onClick:r,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),r())},style:{cursor:"pointer"},children:n})}function Wr(t){var{class:e,children:r}=t;return qr("div",{class:e,children:r})}function Yr(t){var e,{step:r,onDismiss:n,onTriggerTour:o}=t,i=null!==(e=r.bannerConfig)&&void 0!==e?e:{behavior:"sticky"},l=i.action,u=["ph-tour-banner","sticky"===i.behavior&&"ph-tour-banner--sticky"].filter(Boolean).join(" "),a=qr(S,{children:[qr("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:pr(r)}}),qr("button",{class:"ph-tour-banner-dismiss",onClick:t=>{t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Ir})]});return"link"===(null==l?void 0:l.type)&&l.link?qr(Ur,{class:u,href:l.link,children:a}):"trigger_tour"===(null==l?void 0:l.type)&&o?qr(Qr,{class:u,onClick:o,children:a}):qr(Wr,{class:u,children:a})}Math.trunc||(Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return(t=>"[object Number]"==ae.call(t)&&t==t)(t)&&isFinite(t)&&Math.floor(t)===t}),e&&!ce(e.crypto)&&crypto.getRandomValues;var Xr=null,Gr={i:function(){if(!de(Xr))return Xr;var t=!0;if(ce(e))t=!1;else try{var r="__mplssupport__";Gr.p(r,"xyz"),'"xyz"'!==Gr.h(r)&&(t=!1),Gr.v(r)}catch(e){t=!1}return t||me.error("localStorage unsupported; falling back to cookie store"),Xr=t,t},m:function(t){me.error("localStorage error: "+t)},h:function(t){try{return null==e?void 0:e.localStorage.getItem(t)}catch(t){Gr.m(t)}return null},k:function(t){try{return JSON.parse(Gr.h(t))||{}}catch(t){}return null},p:function(t,r){try{null==e||e.localStorage.setItem(t,JSON.stringify(r))}catch(t){Gr.m(t)}},v:function(t){try{null==e||e.localStorage.removeItem(t)}catch(t){Gr.m(t)}}},Jr=null,Kr={i:function(){if(!de(Jr))return Jr;if(Jr=!0,ce(e))Jr=!1;else try{var t="__support__";Kr.p(t,"xyz"),'"xyz"'!==Kr.h(t)&&(Jr=!1),Kr.v(t)}catch(t){Jr=!1}return Jr},m:function(t){me.error("sessionStorage error: ",t)},h:function(t){try{return null==e?void 0:e.sessionStorage.getItem(t)}catch(t){Kr.m(t)}return null},k:function(t){try{return JSON.parse(Kr.h(t))||null}catch(t){}return null},p:function(t,r){try{null==e||e.sessionStorage.setItem(t,JSON.stringify(r))}catch(t){Kr.m(t)}},v:function(t){try{null==e||e.sessionStorage.removeItem(t)}catch(t){Kr.m(t)}}},tn="ph_product_tour_completed_",en="ph_product_tour_dismissed_",rn="ph_active_product_tour";function nn(t){var e,r;return!!(null!=(e=t.conditions)&&e.events&&(null==(r=t.conditions.events.values)?void 0:r.length)>0)}function on(t){var e,r;return!!(null!=(e=t.conditions)&&e.actions&&(null==(r=t.conditions.actions.values)?void 0:r.length)>0)}class ln{constructor(){this.T={},this.T={}}on(t,e){return this.T[t]||(this.T[t]=[]),this.T[t].push(e),()=>{this.T[t]=this.T[t].filter((t=>t!==e))}}emit(t,e){for(var r of this.T[t]||[])r(e);for(var n of this.T["*"]||[])n(t,e)}}function un(t,e,r){if(pe(t))return!1;switch(r){case"exact":return t===e;case"contains":var n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch(t){return!1}default:return!1}}class an{constructor(t){this.C=new ln,this.S=(t,e)=>this.q(t,e)&&this.A(t,e)&&this.M(t,e)&&this.$(t,e),this.q=(t,e)=>null==e||!e.event||(null==t?void 0:t.event)===(null==e?void 0:e.event),this._instance=t,this.L=new Set,this.I=new Set}init(){var t;if(!ce(null==(t=this._instance)?void 0:t.j)){var e;null==(e=this._instance)||e.j(((t,e)=>{this.on(t,e)}))}}register(t){var e,r;if(!ce(null==(e=this._instance)?void 0:e.j)&&(t.forEach((t=>{var e,r;null==(e=this.I)||e.add(t),null==(r=t.steps)||r.forEach((t=>{var e;null==(e=this.L)||e.add((null==t?void 0:t.event)||"")}))})),null!=(r=this._instance)&&r.autocapture)){var n,o=new Set;t.forEach((t=>{var e;null==(e=t.steps)||e.forEach((t=>{null!=t&&t.selector&&o.add(null==t?void 0:t.selector)}))})),null==(n=this._instance)||n.autocapture.setElementSelectors(o)}}on(t,e){var r;null!=e&&0!=t.length&&(this.L.has(t)||this.L.has(null==e?void 0:e.event))&&this.I&&(null==(r=this.I)?void 0:r.size)>0&&this.I.forEach((t=>{this.R(e,t)&&this.C.emit("actionCaptured",t.name)}))}Z(t){this.onAction("actionCaptured",(e=>t(e)))}R(t,e){if(null==(null==e?void 0:e.steps))return!1;for(var r of e.steps)if(this.S(t,r))return!0;return!1}onAction(t,e){return this.C.on(t,e)}A(t,e){if(null!=e&&e.url){var r,n=null==t||null==(r=t.properties)?void 0:r.$current_url;if(!n||"string"!=typeof n)return!1;if(!un(n,e.url,e.url_matching||"contains"))return!1}return!0}M(t,e){return!!this.D(t,e)&&(!!this.P(t,e)&&!!this.O(t,e))}D(t,e){var r;if(null==e||!e.href)return!0;var n=this.N(t);if(n.length>0)return n.some((t=>un(t.href,e.href,e.href_matching||"exact")));var o,i=(null==t||null==(r=t.properties)?void 0:r.$elements_chain)||"";return!!i&&un((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",e.href,e.href_matching||"exact")}P(t,e){var r;if(null==e||!e.text)return!0;var n=this.N(t);if(n.length>0)return n.some((t=>un(t.text,e.text,e.text_matching||"exact")||un(t.$el_text,e.text,e.text_matching||"exact")));var o,i,l,u=(null==t||null==(r=t.properties)?void 0:r.$elements_chain)||"";return!!u&&(o=function(t){for(var e,r=[],n=/(?::|")text="(.*?)"/g;!pe(e=n.exec(t));)r.includes(e[1])||r.push(e[1]);return r}(u),i=e.text,l=e.text_matching||"exact",o.some((t=>un(t,i,l))))}O(t,e){var r,n;if(null==e||!e.selector)return!0;var o=null==t||null==(r=t.properties)?void 0:r.$element_selectors;if(null!=o&&o.includes(e.selector))return!0;var i=(null==t||null==(n=t.properties)?void 0:n.$elements_chain)||"";if(e.selector_regex&&i)try{return new RegExp(e.selector_regex).test(i)}catch(t){return!1}return!1}N(t){var e;return null==(null==t||null==(e=t.properties)?void 0:e.$elements)?[]:null==t?void 0:t.properties.$elements}$(t,e){return null==e||!e.properties||0===e.properties.length||Te(e.properties.reduce(((t,e)=>{var r=se(e.value)?e.value.map(String):null!=e.value?[String(e.value)]:[];return t[e.key]={values:r,operator:e.operator||"exact"},t}),{}),null==t?void 0:t.properties)}}class sn{constructor(t){this._instance=t,this.F=new Map,this.H=new Map,this.V=new Map}B(t,e){return!!t&&Te(t.propertyFilters,null==e?void 0:e.properties)}U(t,e){var r=new Map;return t.forEach((t=>{var n;null==(n=t.conditions)||null==(n=n[e])||null==(n=n.values)||n.forEach((e=>{if(null!=e&&e.name){var n=r.get(e.name)||[];n.push(t.id),r.set(e.name,n)}}))})),r}W(t,e,r){var n=(r===Q.Activation?this.F:this.H).get(t),o=[];return this.Y((t=>{o=t.filter((t=>null==n?void 0:n.includes(t.id)))})),o.filter((n=>{var o,i=null==(o=n.conditions)||null==(o=o[r])||null==(o=o.values)?void 0:o.find((e=>e.name===t));return this.B(i,e)}))}register(t){var e;ce(null==(e=this._instance)?void 0:e.j)||(this.X(t),this.G(t))}G(t){var e=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.actions)&&(null==(r=t.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0}));if(0!==e.length){if(null==this.J){this.J=new an(this._instance),this.J.init();this.J.Z((t=>{this.onAction(t)}))}e.forEach((t=>{var e,r,n,o,i;t.conditions&&null!=(e=t.conditions)&&e.actions&&null!=(r=t.conditions)&&null!=(r=r.actions)&&r.values&&(null==(n=t.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(o=this.J)||o.register(t.conditions.actions.values),null==(i=t.conditions)||null==(i=i.actions)||null==(i=i.values)||i.forEach((e=>{if(e&&e.name){var r=this.V.get(e.name);r&&r.push(t.id),this.V.set(e.name,r||[t.id])}})))}))}}X(t){var e,r=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.events)&&(null==(r=t.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.length)>0})),n=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.cancelEvents)&&(null==(r=t.conditions)||null==(r=r.cancelEvents)||null==(r=r.values)?void 0:r.length)>0}));if(0!==r.length||0!==n.length){null==(e=this._instance)||e.j(((t,e)=>{this.onEvent(t,e)})),this.F=this.U(t,Q.Activation),this.H=this.U(t,Q.Cancellation)}}onEvent(t,e){var r,n=this.K(),o=this.tt(),i=this.et(),l=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[o])||[];if(i===t&&e&&l.length>0){var u,a;n.info("event matched, removing item from activated items",{event:t,eventPayload:e,existingActivatedItems:l});var s=(null==e||null==(u=e.properties)?void 0:u.$survey_id)||(null==e||null==(a=e.properties)?void 0:a.$product_tour_id);if(s){var c=l.indexOf(s);c>=0&&(l.splice(c,1),this.rt(l))}}else{if(this.H.has(t)){var d=this.W(t,e,Q.Cancellation);d.length>0&&(n.info("cancel event matched, cancelling items",{event:t,itemsToCancel:d.map((t=>t.id))}),d.forEach((t=>{var e=l.indexOf(t.id);e>=0&&l.splice(e,1),this.nt(t.id)})),this.rt(l))}if(this.F.has(t)){n.info("event name matched",{event:t,eventPayload:e,items:this.F.get(t)});var p=this.W(t,e,Q.Activation);this.rt(l.concat(p.map((t=>t.id))||[]))}}}onAction(t){var e,r=this.tt(),n=(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[r])||[];this.V.has(t)&&this.rt(n.concat(this.V.get(t)||[]))}rt(t){var e,r=this.K(),n=this.tt(),o=[...new Set(t)].filter((t=>!this.ot(t)));r.info("updating activated items",{activatedItems:o}),null==(e=this._instance)||null==(e=e.persistence)||e.register({[n]:o})}getActivatedIds(){var t,e=this.tt(),r=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[e];return r||[]}getEventToItemsMap(){return this.F}it(){return this.J}}var cn=ge("[Product Tour Event Receiver]");class dn extends sn{constructor(t){super(t)}tt(){return"$product_tours_activated"}et(){return"product tour shown"}Y(t){var e;null==(e=this._instance)||null==(e=e.productTours)||e.getProductTours(t)}nt(t){var e;null==(e=this._instance)||null==(e=e.productTours)||e.cancelPendingTour(t)}K(){return cn}ot(t){if(!t)return!0;var e=""+tn+t,r=""+en+t;return!(!Gr.h(e)&&!Gr.h(r))}getTours(){return this.getActivatedIds()}}var pn=ge("[Product Tours]"),fn=o,hn=e;function vn(t){var e=new Date;if(t.start_date&&e<new Date(t.start_date))return!1;if(t.end_date&&e>new Date(t.end_date))return!1;return!0}function mn(t){return vn(t)&&function(t){var e,r=t.conditions;if(null==r||!r.url)return!0;var n=null==hn||null==(e=hn.location)?void 0:e.href;if(!n)return!1;var o=r.urlMatchType||le.Icontains;if(o===le.Exact)return cr(n)===cr(r.url);var i=[r.url];return we[o](i,[n])}(t)}var gn="ph-product-tour-container",bn="data-ph-tour-trigger";class yn{constructor(t){var e=this;this.ut=null,this.st=0,this.ct=!1,this.dt=!1,this.ft=null,this.ht=new Map,this.vt=new Map,this.bt=new Set,this.yt=()=>{fn.hidden&&this.ft?(clearInterval(this.ft),this.ft=null):fn.hidden||this.ft||(this.ft=setInterval((()=>{this._t()}),1e3),this._t())},this.nextStep=()=>{if(this.ut){var t=this.ut.steps[this.st];this.xt("product tour step completed",{$product_tour_id:this.ut.id,$product_tour_step_id:t.id,$product_tour_step_order:this.st}),this.st<this.ut.steps.length-1?(this.wt(this.st+1),this.kt()):this.Tt()}},this.previousStep=()=>{this.ut&&0!==this.st&&(this.wt(this.st-1),this.kt())},this.dismissTour=function(t){if(void 0===t&&(t="user_clicked_skip"),e.ut){var r=e.ut.steps[e.st];e.xt("product tour dismissed",{$product_tour_id:e.ut.id,$product_tour_step_id:r.id,$product_tour_step_order:e.st,$product_tour_dismiss_reason:t}),e.ct||Gr.p(""+en+e.ut.id,!0),hn.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:e.ut.id,reason:t}})),e.Ct()}},this.St=t=>{switch(t.action){case"dismiss":this.dismissTour("user_clicked_skip");break;case"next_step":this.nextStep();break;case"previous_step":this.previousStep();break;case"trigger_tour":t.tourId&&(this.Ct(),this.showTourById(t.tourId))}},this._instance=t,this.qt=new dn(t)}wt(t){this.st=t,this.At()}At(){this.ut&&!this.ct&&Kr.p(rn,{tourId:this.ut.id,stepIndex:this.st})}Mt(){Kr.v(rn)}$t(){var t=Kr.h(rn);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.ft){var t=this.$t();t?this.Lt(t.tourId,t.stepIndex,(()=>{this.Et()})):this.Et()}}Et(){this.ft=setInterval((()=>{this._t()}),1e3),this._t(),_e(fn,"visibilitychange",this.yt)}Lt(t,e,r){var n;null==(n=this._instance.productTours)||n.getProductTours((n=>{var o=n.find((e=>e.id===t));o?(this.ut=o,this.st=e,this.dt=!0,this.kt()):n.length>0&&this.Mt(),r()}))}stop(){this.ft&&(clearInterval(this.ft),this.ft=null),fn.removeEventListener("visibilitychange",this.yt),this.It(),this.jt(),this.Ct()}_t(){var t;null!=fn&&fn.getElementById("__POSTHOG_TOOLBAR__")||null==(t=this._instance.productTours)||t.getProductTours((t=>{if(0!==t.length){var e=new Set,r=t.filter((t=>!this.bt.has(t.id)&&(nn(t)||on(t))));r.length>0&&(this.qt.register(r),r.forEach((t=>this.bt.add(t.id))));var n=this.ut?[]:this.qt.getTours();for(var o of t){var i,l=null==(i=o.conditions)?void 0:i.selector;if(l&&(e.add(o.id),this.zt(o,l)),!this.ut){var u=on(o)||nn(o);if(o.auto_launch&&this.Rt(o)){if(!u){this.Zt(o,"auto");continue}n.includes(o.id)&&this.Zt(o,"event")}}}this.ht.forEach((t=>{var{tour:r}=t;e.has(r.id)||this.Dt(r.id)}))}else this.It()}))}Zt(t,e){var r,n=(null==(r=t.conditions)?void 0:r.autoShowDelaySeconds)||0;n>0?this.isTourPending(t.id)||this.queueTourWithDelay(t.id,n,e):this.showTour(t,{reason:e})}Rt(t){if(!mn(t))return pn.info("Tour "+t.id+" failed conditions check"),!1;var e,r=""+tn+t.id,n=""+en+t.id;if(Gr.h(r)||Gr.h(n))return pn.info("Tour "+t.id+" already completed or dismissed"),!1;if(t.internal_targeting_flag_key&&!(null==(e=this._instance.featureFlags)?void 0:e.getFeatureFlag(t.internal_targeting_flag_key)))return pn.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;return!0}showTour(t,e){var r,n=null!==(r=null==e?void 0:e.reason)&&void 0!==r?r:"auto";this.cancelPendingTour(t.id);for(var o=[],i=0;i<t.steps.length;i++){var l=t.steps[i];if(l.selector){var u=or(l.selector);"not_found"!==u.error&&"not_visible"!==u.error||o.push({stepIndex:i,stepId:l.id,selector:l.selector,error:u.error,matchCount:u.matchCount})}}if(o.length>0){for(var a of o)this.xt("product tour step selector failed",{$product_tour_id:t.id,$product_tour_step_id:a.stepId,$product_tour_step_order:a.stepIndex,$product_tour_step_selector:a.selector,$product_tour_error:a.error,$product_tour_matches_count:a.matchCount,$product_tour_failure_phase:"validation"});var s=o.map((t=>"Step "+t.stepIndex+': "'+t.selector+'" ('+t.error+")"));if(pn.warn('Tour "'+t.name+'" ('+t.id+"): "+o.length+" selector(s) failed to match:\n - "+s.join("\n - ")+(!0===(null==e?void 0:e.enableStrictValidation)?"\n\nenableStrictValidation is true, not displaying tour.":"")),!0===(null==e?void 0:e.enableStrictValidation))return}this.ut=t,this.wt(0),this.xt("product tour shown",{$product_tour_id:t.id,$product_tour_name:t.name,$product_tour_iteration:t.current_iteration||1,$product_tour_render_reason:n}),this.kt()}showTourById(t,e){var r;pn.info("showTourById("+t+")"),null==(r=this._instance.productTours)||r.getProductTours((r=>{var n=r.find((e=>e.id===t));n?this.showTour(n,{reason:null!=e?e:"api"}):pn.warn("could not find tour",t)}))}previewTour(t){pn.info("Previewing tour "+t.id),this.Ct(),this.ct=!0,this.ut=t,this.st=0,this.kt()}Tt(){this.ut&&(this.xt("product tour completed",{$product_tour_id:this.ut.id,$product_tour_steps_count:this.ut.steps.length}),this.ct||(Gr.p(""+tn+this.ut.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.ut.id]:!0}})),hn.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.ut.id}})),this.Ct())}kt(t){if(void 0===t&&(t=0),this.ut){var e=this.ut.steps[this.st];if(!e)return pn.warn("Step "+this.st+" not found in tour "+this.ut.id),void this.Ct();if("banner"===e.type)return this.xt("product tour step shown",{$product_tour_id:this.ut.id,$product_tour_step_id:e.id,$product_tour_step_order:this.st,$product_tour_step_type:"banner"}),this.dt=!1,void this.Pt();if("survey"!==e.type){if("modal"===e.type)return this.xt("product tour step shown",{$product_tour_id:this.ut.id,$product_tour_step_id:e.id,$product_tour_step_order:this.st,$product_tour_step_type:"modal"}),this.dt=!1,void this.Ot(null);if(e.selector){var r,n=or(e.selector),o=e.inferenceData?{$inference_data_present:!0,$inference_found:!!(r=Cr(e.inferenceData)),$inference_matches_selector:n.element===r}:{$inference_data_present:!1},i=this.st>0?this.ut.steps[this.st-1]:null,u="click"===(null==i?void 0:i.progressionTrigger)||this.dt;if("not_found"===n.error||"not_visible"===n.error){if(u&&t<20)return void setTimeout((()=>{this.kt(t+1)}),100);var a=100*t;return this.xt("product tour step selector failed",l({$product_tour_id:this.ut.id,$product_tour_step_id:e.id,$product_tour_step_order:this.st,$product_tour_step_selector:e.selector,$product_tour_error:n.error,$product_tour_matches_count:n.matchCount,$product_tour_failure_phase:"runtime",$product_tour_waited_for_element:u,$product_tour_wait_duration_ms:a},o)),pn.warn('Tour "'+this.ut.name+'" dismissed: element for step '+this.st+" became unavailable ("+n.error+")"+(u?" after waiting "+a+"ms":"")),void this.dismissTour("element_unavailable")}if("multiple_matches"===n.error&&this.xt("product tour step selector failed",l({$product_tour_id:this.ut.id,$product_tour_step_id:e.id,$product_tour_step_order:this.st,$product_tour_step_selector:e.selector,$product_tour_error:n.error,$product_tour_matches_count:n.matchCount,$product_tour_failure_phase:"runtime"},o)),n.element){var s=n.element,c=function(t){var e;return{tag:t.tagName,id:t.id||void 0,classes:t.className||void 0,text:(null==(e=t.innerText)?void 0:e.slice(0,100))||void 0}}(s);this.xt("product tour step shown",l({$product_tour_id:this.ut.id,$product_tour_step_id:e.id,$product_tour_step_order:this.st,$product_tour_step_selector:e.selector,$product_tour_step_selector_found:!0,$product_tour_step_element_tag:c.tag,$product_tour_step_element_id:c.id,$product_tour_step_element_classes:c.classes,$product_tour_step_element_text:c.text},o)),this.dt=!1,this.Ot(s)}}else pn.warn("Unable to render element step - no selector defined.")}else e.survey?this.Nt():pn.warn("Unable to render survey step - survey data not found")}}Ot(t,e,r){if(this.ut){var n=this.ut.steps[this.st],{shadow:o}=function(t){var e=gn+"-"+t.id,r=fn.querySelector("."+e);if(r&&r.shadowRoot)return{shadow:r.shadowRoot,isNewlyCreated:!1};var n=fn.createElement("div");n.className=e,ar(n,t.appearance);var o=n.attachShadow({mode:"open"}),i=nr();return i&&o.appendChild(i),fn.body.appendChild(n),{shadow:o,isNewlyCreated:!0}}(this.ut);U(qr(Br,{tour:this.ut,step:n,stepIndex:this.st,totalSteps:this.ut.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:r||this.dismissTour,onSurveySubmit:e,onButtonClick:this.St}),o)}}Pt(){if(this.ut){var t=this.ut.steps[this.st],{shadow:e}=function(t){var e=gn+"-"+t.id,r=fn.querySelector("."+e);if(r&&r.shadowRoot)return{shadow:r.shadowRoot,isNewlyCreated:!1};var n=fn.createElement("div");n.className=e,ar(n,t.appearance);var o=n.attachShadow({mode:"open"}),i=nr();return i&&o.appendChild(i),fn.body.insertBefore(n,fn.body.firstChild),{shadow:o,isNewlyCreated:!0}}(this.ut);U(qr(Yr,{step:t,onDismiss:()=>this.dismissTour("user_clicked_skip"),onTriggerTour:()=>{var e,r=null==(e=t.bannerConfig)||null==(e=e.action)?void 0:e.tourId;r&&(this.Ct(),this.showTourById(r))}}),e)}}Nt(){var t,e,r;if(this.ut){var n=this.ut.id,o=this.ut.steps[this.st],i=o.linkedSurveyId,u=o.linkedSurveyQuestionId,a=(null==(t=o.survey)?void 0:t.questionText)||"";this.xt("product tour step shown",{$product_tour_id:this.ut.id,$product_tour_step_id:o.id,$product_tour_step_order:this.st,$product_tour_step_type:"survey",$product_tour_linked_survey_id:i}),this.xt(G.SHOWN,{[J.SURVEY_ID]:i,[J.PRODUCT_TOUR_ID]:n,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)});this.Ot(null,(t=>{var e,r,o=u?"$survey_response_"+u:"$survey_response";this.xt(G.SENT,l({[J.SURVEY_ID]:i,[J.PRODUCT_TOUR_ID]:n,[J.SURVEY_QUESTIONS]:[{id:u,question:a,response:t}],[J.SURVEY_COMPLETED]:!0,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)},!de(t)&&{[o]:t})),pn.info("Survey "+i+" completed",de(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var e,r;this.xt(G.DISMISSED,{[J.SURVEY_ID]:i,[J.PRODUCT_TOUR_ID]:n,[J.SURVEY_QUESTIONS]:[{id:u,question:a,response:null}],[J.SURVEY_PARTIALLY_COMPLETED]:!1,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)}),pn.info("Survey "+i+" dismissed"),this.dismissTour(t)})),pn.info("Rendered survey step for tour step "+this.st)}}Ct(){var t,e,r;this.ut&&(t=this.ut.id,e=gn+"-"+t,null!=(r=fn.querySelector("."+e))&&r.shadowRoot&&U(null,r.shadowRoot),null==r||r.remove()),this.ut=null,this.st=0,this.ct=!1,this.dt=!1,this.Mt()}zt(t,e){var r=fn.querySelector(e),n=this.ht.get(t.id);if(r){if(n){if(r===n.element)return;pn.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Dt(t.id)}if(!r.hasAttribute(bn)){var o=r=>{r.stopPropagation(),this.ut?pn.info("Tour "+t.id+" trigger clicked but another tour is active"):vn(t)?(pn.info("Tour "+t.id+" triggered by click on "+e),this.showTour(t,{reason:"trigger"})):pn.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")};_e(r,"click",o),r.setAttribute(bn,t.id),this.ht.set(t.id,{element:r,listener:o,tour:t}),pn.info("Attached trigger listener for tour "+t.id+" on "+e)}}else n&&this.Dt(t.id)}Dt(t){var e=this.ht.get(t);e&&(e.element.removeEventListener("click",e.listener),e.element.removeAttribute(bn),this.ht.delete(t),pn.info("Removed trigger listener for tour "+t))}It(){this.ht.forEach(((t,e)=>{this.Dt(e)}))}xt(t,e){this.ct||this._instance.capture(t,e)}getActiveProductTours(t){var e;null==(e=this._instance.productTours)||e.getProductTours(((e,r)=>{if(null!=r&&r.isLoaded){var n=e.filter((t=>this.Rt(t)));t(n,r)}else t([],r)}))}resetTour(t){Gr.v(""+tn+t),Gr.v(""+en+t)}resetAllTours(){var t=null==hn?void 0:hn.localStorage;if(t){for(var e=[],r=0;r<t.length;r++){var n=t.key(r);(null!=n&&n.startsWith(tn)||null!=n&&n.startsWith(en))&&e.push(n)}e.forEach((t=>Gr.v(t)))}}cancelPendingTour(t){var e=this.vt.get(t);e&&(clearTimeout(e),this.vt.delete(t),pn.info("Cancelled pending tour: "+t))}jt(){this.vt.forEach((t=>clearTimeout(t))),this.vt.clear()}isTourPending(t){return this.vt.has(t)}queueTourWithDelay(t,e,r){pn.info("Queueing tour "+t+" with "+e+"s delay");var n=setTimeout((()=>{this.vt.delete(t),pn.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,r)}),1e3*e);this.vt.set(t,n)}}function _n(t,e){if(o){var r=new yn(t);return e&&r.start(),r}}i.__PosthogExtensions__=i.__PosthogExtensions__||{},i.__PosthogExtensions__.generateProductTours=_n,t.default=_n,t.elementIsVisible=xr,t.findElement=Cr,t.getElementPath=function(t,e){if(void 0===e&&(e=4),!t)return null;for(var r=[],n=t;n&&r.length<e&&"BODY"!==n.tagName;){var o=n.tagName.toLowerCase();n.id?o+="#"+n.id:n.classList.length&&(o+="."+n.classList[0]),r.unshift(o),n=n.parentElement}return r.join(" > ")},Object.defineProperty(t,"__esModule",{value:!0})}({});
1
+ !function(t){"use strict";var e="undefined"!=typeof window?window:void 0,r="undefined"!=typeof globalThis?globalThis:e;"undefined"==typeof self&&(r.self=r),"undefined"==typeof File&&(r.File=function(){});var n=null==r?void 0:r.navigator,o=null==r?void 0:r.document;null==r||r.location,null==r||r.fetch,null!=r&&r.XMLHttpRequest&&"withCredentials"in new r.XMLHttpRequest&&r.XMLHttpRequest,null==r||r.AbortController,null==n||n.userAgent;var i=null!=e?e:{};function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(null,arguments)}var u,a,s,c,d,p,h,f,v,m,g,b,y={},_=[],x=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function k(t,e){for(var r in e)t[r]=e[r];return t}function T(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function C(t,e,r,n,o){var i={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=a.vnode&&a.vnode(i),i}function S(t){return t.children}function q(t,e){this.props=t,this.context=e}function A(t,e){if(null==e)return t.__?A(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?A(t):null}function M(t){var e,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return M(t)}}function L(t){(!t.__d&&(t.__d=!0)&&c.push(t)&&!$.__r++||d!=a.debounceRendering)&&((d=a.debounceRendering)||p)($)}function $(){for(var t,e,r,n,o,i,l,u=1;c.length;)c.length>u&&c.sort(h),t=c.shift(),u=c.length,t.__d&&(r=void 0,n=void 0,o=(n=(e=t).__v).__e,i=[],l=[],e.__P&&((r=k({},n)).__v=n.__v+1,a.vnode&&a.vnode(r),D(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[o]:null,i,null==o?A(n):o,!!(32&n.__u),l),r.__v=n.__v,r.__.__k[r.__i]=r,O(i,r,l),n.__e=n.__=null,r.__e!=o&&M(r)));$.__r=0}function E(t,e,r,n,o,i,l,u,a,s,c){var d,p,h,f,v,m,g,b=n&&n.__k||_,x=e.length;for(a=function(t,e,r,n,o){var i,l,u,a,s,c=r.length,d=c,p=0;for(t.__k=new Array(o),i=0;i<o;i++)null!=(l=e[i])&&"boolean"!=typeof l&&"function"!=typeof l?("string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?l=t.__k[i]=C(null,l,null,null,null):w(l)?l=t.__k[i]=C(S,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[i]=C(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):t.__k[i]=l,a=i+p,l.__=t,l.__b=t.__b+1,u=null,-1!=(s=l.__i=j(l,r,a,d))&&(d--,(u=r[s])&&(u.__u|=2)),null==u||null==u.__v?(-1==s&&(o>c?p--:o<c&&p++),"function"!=typeof l.type&&(l.__u|=4)):s!=a&&(s==a-1?p--:s==a+1?p++:(s>a?p--:p++,l.__u|=4))):t.__k[i]=null;if(d)for(i=0;i<c;i++)null!=(u=r[i])&&0==(2&u.__u)&&(u.__e==n&&(n=A(u)),V(u,u));return n}(r,e,b,a,x),d=0;d<x;d++)null!=(h=r.__k[d])&&(p=-1==h.__i?y:b[h.__i]||y,h.__i=d,m=D(t,h,p,o,i,l,u,a,s,c),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&H(p.ref,null,h),c.push(h.ref,h.__c||f,h)),null==v&&null!=f&&(v=f),(g=!!(4&h.__u))||p.__k===h.__k?a=I(h,a,t,g):"function"==typeof h.type&&void 0!==m?a=m:f&&(a=f.nextSibling),h.__u&=-7);return r.__e=v,a}function I(t,e,r,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=t,e=I(o[i],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=A(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function j(t,e,r,n){var o,i,l,u=t.key,a=t.type,s=e[r],c=null!=s&&0==(2&s.__u);if(null===s&&null==u||c&&u==s.key&&a==s.type)return r;if(n>(c?1:0))for(o=r-1,i=r+1;o>=0||i<e.length;)if(null!=(s=e[l=o>=0?o--:i++])&&0==(2&s.__u)&&u==s.key&&a==s.type)return l;return-1}function z(t,e,r){"-"==e[0]?t.setProperty(e,null==r?"":r):t[e]=null==r?"":"number"!=typeof r||x.test(e)?r:r+"px"}function R(t,e,r,n,o){var i,l;t:if("style"==e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||z(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||z(t.style,e,r[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(f,"$1")),l=e.toLowerCase(),e=l in t||"onFocusOut"==e||"onFocusIn"==e?l.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=r,r?n?r.u=n.u:(r.u=v,t.addEventListener(e,i?g:m,i)):t.removeEventListener(e,i?g:m,i);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==r?"":r;break t}catch(t){}"function"==typeof r||(null==r||!1===r&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==r?"":r))}}function Z(t){return function(e){if(this.l){var r=this.l[e.type+t];if(null==e.t)e.t=v++;else if(e.t<r.u)return;return r(a.event?a.event(e):e)}}}function D(t,e,r,n,o,i,l,u,s,c){var d,p,h,f,v,m,g,b,y,_,x,$,C,A,M,L,I,j=e.type;if(void 0!==e.constructor)return null;128&r.__u&&(s=!!(32&r.__u),i=[u=e.__e=r.__e]),(d=a.__b)&&d(e);t:if("function"==typeof j)try{if(b=e.props,y="prototype"in j&&j.prototype.render,_=(d=j.contextType)&&n[d.__c],x=d?_?_.props.value:d.__:n,r.__c?g=(p=e.__c=r.__c).__=p.__E:(y?e.__c=p=new j(b,x):(e.__c=p=new q(b,x),p.constructor=j,p.render=B),_&&_.sub(p),p.state||(p.state={}),p.__n=n,h=p.__d=!0,p.__h=[],p._sb=[]),y&&null==p.__s&&(p.__s=p.state),y&&null!=j.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=k({},p.__s)),k(p.__s,j.getDerivedStateFromProps(b,p.__s))),f=p.props,v=p.state,p.__v=e,h)y&&null==j.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),y&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(y&&null==j.getDerivedStateFromProps&&b!==f&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(b,x),e.__v==r.__v||!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(b,p.__s,x)){for(e.__v!=r.__v&&(p.props=b,p.state=p.__s,p.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some((function(t){t&&(t.__=e)})),$=0;$<p._sb.length;$++)p.__h.push(p._sb[$]);p._sb=[],p.__h.length&&l.push(p);break t}null!=p.componentWillUpdate&&p.componentWillUpdate(b,p.__s,x),y&&null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(f,v,m)}))}if(p.context=x,p.props=b,p.__P=t,p.__e=!1,C=a.__r,A=0,y){for(p.state=p.__s,p.__d=!1,C&&C(e),d=p.render(p.props,p.state,p.context),M=0;M<p._sb.length;M++)p.__h.push(p._sb[M]);p._sb=[]}else do{p.__d=!1,C&&C(e),d=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++A<25);p.state=p.__s,null!=p.getChildContext&&(n=k(k({},n),p.getChildContext())),y&&!h&&null!=p.getSnapshotBeforeUpdate&&(m=p.getSnapshotBeforeUpdate(f,v)),L=d,null!=d&&d.type===S&&null==d.key&&(L=N(d.props.children)),u=E(t,w(L)?L:[L],e,r,n,o,i,l,u,s,c),p.base=e.__e,e.__u&=-161,p.__h.length&&l.push(p),g&&(p.__E=p.__=null)}catch(t){if(e.__v=null,s||null!=i)if(t.then){for(e.__u|=s?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;i[i.indexOf(u)]=null,e.__e=u}else{for(I=i.length;I--;)T(i[I]);P(e)}else e.__e=r.__e,e.__k=r.__k,t.then||P(e);a.__e(t,e,r)}else null==i&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):u=e.__e=F(r.__e,e,r,n,o,i,l,s,c);return(d=a.diffed)&&d(e),128&e.__u?void 0:u}function P(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(P)}function O(t,e,r){for(var n=0;n<r.length;n++)H(r[n],r[++n],r[++n]);a.__c&&a.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){a.__e(t,e.__v)}}))}function N(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:w(t)?t.map(N):k({},t)}function F(t,e,r,n,o,i,l,s,c){var d,p,h,f,v,m,g,b=r.props||y,_=e.props,x=e.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(d=0;d<i.length;d++)if((v=i[d])&&"setAttribute"in v==!!x&&(x?v.localName==x:3==v.nodeType)){t=v,i[d]=null;break}if(null==t){if(null==x)return document.createTextNode(_);t=document.createElementNS(o,x,_.is&&_),s&&(a.__m&&a.__m(e,i),s=!1),i=null}if(null==x)b===_||s&&t.data==_||(t.data=_);else{if(i=i&&u.call(t.childNodes),!s&&null!=i)for(b={},d=0;d<t.attributes.length;d++)b[(v=t.attributes[d]).name]=v.value;for(d in b)if(v=b[d],"children"==d);else if("dangerouslySetInnerHTML"==d)h=v;else if(!(d in _)){if("value"==d&&"defaultValue"in _||"checked"==d&&"defaultChecked"in _)continue;R(t,d,null,v,o)}for(d in _)v=_[d],"children"==d?f=v:"dangerouslySetInnerHTML"==d?p=v:"value"==d?m=v:"checked"==d?g=v:s&&"function"!=typeof v||b[d]===v||R(t,d,v,b[d],o);if(p)s||h&&(p.__html==h.__html||p.__html==t.innerHTML)||(t.innerHTML=p.__html),e.__k=[];else if(h&&(t.innerHTML=""),E("template"==e.type?t.content:t,w(f)?f:[f],e,r,n,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,i,l,i?i[0]:r.__k&&A(r,0),s,c),null!=i)for(d=i.length;d--;)T(i[d]);s||(d="value","progress"==x&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[d]||"progress"==x&&!m||"option"==x&&m!=b[d])&&R(t,d,m,b[d],o),d="checked",null!=g&&g!=t[d]&&R(t,d,g,b[d],o))}return t}function H(t,e,r){try{if("function"==typeof t){var n="function"==typeof t.__u;n&&t.__u(),n&&null==e||(t.__u=t(e))}else t.current=e}catch(t){a.__e(t,r)}}function V(t,e,r){var n,o;if(a.unmount&&a.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||H(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){a.__e(t,e)}n.base=n.__P=null}if(n=t.__k)for(o=0;o<n.length;o++)n[o]&&V(n[o],e,r||"function"!=typeof t.type);r||T(t.__e),t.__c=t.__=t.__e=void 0}function B(t,e,r){return this.constructor(t,r)}function U(t,e,r){var n,o,i;e==document&&(e=document.documentElement),a.__&&a.__(t,e),n=!1?null:e.__k,o=[],i=[],D(e,t=e.__k=function(t,e,r){var n,o,i,l={};for(i in e)"key"==i?n=e[i]:"ref"==i?o=e[i]:l[i]=e[i];if(arguments.length>2&&(l.children=arguments.length>3?u.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return C(t,l,n,o,null)}(S,null,[t]),n||y,y,e.namespaceURI,n?null:e.firstChild?u.call(e.childNodes):null,o,n?n.__e:e.firstChild,false,i),O(o,t,i)}u=_.slice,a={__e:function(t,e,r,n){for(var o,i,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,n||{}),l=o.__d),l)return o.__E=o}catch(e){t=e}throw t}},s=0,q.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=k({},this.state),"function"==typeof t&&(t=t(k({},r),this.props)),t&&k(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),L(this))},q.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),L(this))},q.prototype.render=S,c=[],p="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,h=function(t,e){return t.__v.__b-e.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,v=0,m=Z(!1),g=Z(!0),b=0;var Q=function(t){return t.Activation="events",t.Cancellation="cancelEvents",t}({}),W=function(t){return t.Button="button",t.Tab="tab",t.Selector="selector",t}({}),Y=function(t){return t.TopLeft="top_left",t.TopRight="top_right",t.TopCenter="top_center",t.MiddleLeft="middle_left",t.MiddleRight="middle_right",t.MiddleCenter="middle_center",t.Left="left",t.Center="center",t.Right="right",t.NextToTrigger="next_to_trigger",t}({}),X=function(t){return t.Popover="popover",t.API="api",t.Widget="widget",t.ExternalSurvey="external_survey",t}({}),G=function(t){return t.SHOWN="survey shown",t.DISMISSED="survey dismissed",t.SENT="survey sent",t.ABANDONED="survey abandoned",t}({}),J=function(t){return t.SURVEY_ID="$survey_id",t.SURVEY_NAME="$survey_name",t.SURVEY_RESPONSE="$survey_response",t.SURVEY_ITERATION="$survey_iteration",t.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",t.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",t.SURVEY_SUBMISSION_ID="$survey_submission_id",t.SURVEY_QUESTIONS="$survey_questions",t.SURVEY_COMPLETED="$survey_completed",t.PRODUCT_TOUR_ID="$product_tour_id",t.SURVEY_LAST_SEEN_DATE="$survey_last_seen_date",t}({}),{entries:K,setPrototypeOf:tt,isFrozen:et,getPrototypeOf:rt,getOwnPropertyDescriptor:nt}=Object,{freeze:ot,seal:it,create:lt}=Object,{apply:ut,construct:at}="undefined"!=typeof Reflect&&Reflect;ot||(ot=function(t){return t}),it||(it=function(t){return t}),ut||(ut=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return t.apply(e,n)}),at||(at=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return new t(...r)});var st,ct=Tt(Array.prototype.forEach),dt=Tt(Array.prototype.lastIndexOf),pt=Tt(Array.prototype.pop),ht=Tt(Array.prototype.push),ft=Tt(Array.prototype.splice),vt=Tt(String.prototype.toLowerCase),mt=Tt(String.prototype.toString),gt=Tt(String.prototype.match),bt=Tt(String.prototype.replace),yt=Tt(String.prototype.indexOf),_t=Tt(String.prototype.trim),xt=Tt(Object.prototype.hasOwnProperty),wt=Tt(RegExp.prototype.test),kt=(st=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return at(st,e)});function Tt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return ut(t,e,n)}}function Ct(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vt;tt&&tt(t,null);for(var n=e.length;n--;){var o=e[n];if("string"==typeof o){var i=r(o);i!==o&&(et(e)||(e[n]=i),o=i)}t[o]=!0}return t}function St(t){for(var e=0;e<t.length;e++){xt(t,e)||(t[e]=null)}return t}function qt(t){var e=lt(null);for(var[r,n]of K(t)){xt(t,r)&&(Array.isArray(n)?e[r]=St(n):n&&"object"==typeof n&&n.constructor===Object?e[r]=qt(n):e[r]=n)}return e}function At(t,e){for(;null!==t;){var r=nt(t,e);if(r){if(r.get)return Tt(r.get);if("function"==typeof r.value)return Tt(r.value)}t=rt(t)}return function(){return null}}var Mt=ot(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$t=ot(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Lt=ot(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Et=ot(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),It=ot(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),jt=ot(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),zt=ot(["#text"]),Rt=ot(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Zt=ot(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Dt=ot(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pt=ot(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ot=it(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Nt=it(/<%[\w\W]*|[\w\W]*%>/gm),Ft=it(/\$\{[\w\W]*/gm),Ht=it(/^data-[\-\w.\u00B7-\uFFFF]+$/),Vt=it(/^aria-[\-\w]+$/),Bt=it(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ut=it(/^(?:\w+script|data):/i),Qt=it(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wt=it(/^html$/i),Yt=it(/^[a-z][.\w]*(-[.\w]+)+$/i),Xt=Object.freeze({__proto__:null,ARIA_ATTR:Vt,ATTR_WHITESPACE:Qt,CUSTOM_ELEMENT:Yt,DATA_ATTR:Ht,DOCTYPE_NAME:Wt,ERB_EXPR:Nt,IS_ALLOWED_URI:Bt,IS_SCRIPT_OR_DATA:Ut,MUSTACHE_EXPR:Ot,TMPLIT_EXPR:Ft}),Gt=1,Jt=3,Kt=7,te=8,ee=9,re=function(){return"undefined"==typeof window?null:window};var ne=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),r=e=>t(e);if(r.version="3.3.1",r.removed=[],!e||!e.document||e.document.nodeType!==ee||!e.Element)return r.isSupported=!1,r;var n,{document:o}=e,i=o,l=i.currentScript,{DocumentFragment:u,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:d,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:v}=e,m=c.prototype,g=At(m,"cloneNode"),b=At(m,"remove"),y=At(m,"nextSibling"),_=At(m,"childNodes"),x=At(m,"parentNode");if("function"==typeof a){var w=o.createElement("template");w.content&&w.content.ownerDocument&&(o=w.content.ownerDocument)}var k="",{implementation:T,createNodeIterator:C,createDocumentFragment:S,getElementsByTagName:q}=o,{importNode:A}=i,M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof K&&"function"==typeof x&&T&&void 0!==T.createHTMLDocument;var{MUSTACHE_EXPR:L,ERB_EXPR:E,TMPLIT_EXPR:I,DATA_ATTR:j,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:R,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:D}=Xt,{IS_ALLOWED_URI:P}=Xt,O=null,N=Ct({},[...Mt,...$t,...Lt,...It,...zt]),F=null,H=Ct({},[...Rt,...Zt,...Dt,...Pt]),V=Object.seal(lt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,U=null,Q=Object.seal(lt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),W=!0,Y=!0,X=!1,G=!0,J=!1,tt=!0,et=!1,rt=!1,nt=!1,it=!1,ut=!1,at=!1,st=!0,Tt=!1,St=!0,Ot=!1,Nt={},Ft=null,Ht=Ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Vt=null,Ut=Ct({},["audio","video","img","source","image","track"]),Qt=null,Yt=Ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ne="http://www.w3.org/1998/Math/MathML",oe="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml",le=ie,ue=!1,ae=null,se=Ct({},[ne,oe,ie],mt),ce=Ct({},["mi","mo","mn","ms","mtext"]),de=Ct({},["annotation-xml"]),pe=Ct({},["title","style","font","a","script"]),he=null,fe=["application/xhtml+xml","text/html"],ve=null,me=null,ge=o.createElement("form"),be=function(t){return t instanceof RegExp||t instanceof Function},ye=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!me||me!==t){if(t&&"object"==typeof t||(t={}),t=qt(t),he=-1===fe.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===he?mt:vt,O=xt(t,"ALLOWED_TAGS")?Ct({},t.ALLOWED_TAGS,ve):N,F=xt(t,"ALLOWED_ATTR")?Ct({},t.ALLOWED_ATTR,ve):H,ae=xt(t,"ALLOWED_NAMESPACES")?Ct({},t.ALLOWED_NAMESPACES,mt):se,Qt=xt(t,"ADD_URI_SAFE_ATTR")?Ct(qt(Yt),t.ADD_URI_SAFE_ATTR,ve):Yt,Vt=xt(t,"ADD_DATA_URI_TAGS")?Ct(qt(Ut),t.ADD_DATA_URI_TAGS,ve):Ut,Ft=xt(t,"FORBID_CONTENTS")?Ct({},t.FORBID_CONTENTS,ve):Ht,B=xt(t,"FORBID_TAGS")?Ct({},t.FORBID_TAGS,ve):qt({}),U=xt(t,"FORBID_ATTR")?Ct({},t.FORBID_ATTR,ve):qt({}),Nt=!!xt(t,"USE_PROFILES")&&t.USE_PROFILES,W=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,X=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,J=t.SAFE_FOR_TEMPLATES||!1,tt=!1!==t.SAFE_FOR_XML,et=t.WHOLE_DOCUMENT||!1,it=t.RETURN_DOM||!1,ut=t.RETURN_DOM_FRAGMENT||!1,at=t.RETURN_TRUSTED_TYPE||!1,nt=t.FORCE_BODY||!1,st=!1!==t.SANITIZE_DOM,Tt=t.SANITIZE_NAMED_PROPS||!1,St=!1!==t.KEEP_CONTENT,Ot=t.IN_PLACE||!1,P=t.ALLOWED_URI_REGEXP||Bt,le=t.NAMESPACE||ie,ce=t.MATHML_TEXT_INTEGRATION_POINTS||ce,de=t.HTML_INTEGRATION_POINTS||de,V=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&be(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&be(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&(Y=!1),ut&&(it=!0),Nt&&(O=Ct({},zt),F=[],!0===Nt.html&&(Ct(O,Mt),Ct(F,Rt)),!0===Nt.svg&&(Ct(O,$t),Ct(F,Zt),Ct(F,Pt)),!0===Nt.svgFilters&&(Ct(O,Lt),Ct(F,Zt),Ct(F,Pt)),!0===Nt.mathMl&&(Ct(O,It),Ct(F,Dt),Ct(F,Pt))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?Q.tagCheck=t.ADD_TAGS:(O===N&&(O=qt(O)),Ct(O,t.ADD_TAGS,ve))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?Q.attributeCheck=t.ADD_ATTR:(F===H&&(F=qt(F)),Ct(F,t.ADD_ATTR,ve))),t.ADD_URI_SAFE_ATTR&&Ct(Qt,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Ft===Ht&&(Ft=qt(Ft)),Ct(Ft,t.FORBID_CONTENTS,ve)),t.ADD_FORBID_CONTENTS&&(Ft===Ht&&(Ft=qt(Ft)),Ct(Ft,t.ADD_FORBID_CONTENTS,ve)),St&&(O["#text"]=!0),et&&Ct(O,["html","head","body"]),O.table&&(Ct(O,["tbody"]),delete B.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');n=t.TRUSTED_TYPES_POLICY,k=n.createHTML("")}else void 0===n&&(n=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(v,l)),null!==n&&"string"==typeof k&&(k=n.createHTML(""));ot&&ot(t),me=t}},_e=Ct({},[...$t,...Lt,...Et]),xe=Ct({},[...It,...jt]),we=function(t){ht(r.removed,{element:t});try{x(t).removeChild(t)}catch(e){b(t)}},ke=function(t,e){try{ht(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){ht(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(it||ut)try{we(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Te=function(t){var e=null,r=null;if(nt)t="<remove></remove>"+t;else{var i=gt(t,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===he&&le===ie&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var l=n?n.createHTML(t):t;if(le===ie)try{e=(new f).parseFromString(l,he)}catch(t){}if(!e||!e.documentElement){e=T.createDocument(le,"template",null);try{e.documentElement.innerHTML=ue?k:l}catch(t){}}var u=e.body||e.documentElement;return t&&r&&u.insertBefore(o.createTextNode(r),u.childNodes[0]||null),le===ie?q.call(e,et?"html":"body")[0]:et?e.documentElement:u},Ce=function(t){return C.call(t.ownerDocument||t,t,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Se=function(t){return t instanceof h&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof p)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},qe=function(t){return"function"==typeof s&&t instanceof s};function Ae(t,e,n){ct(t,(t=>{t.call(r,e,n,me)}))}var Me=function(t){var e=null;if(Ae(M.beforeSanitizeElements,t,null),Se(t))return we(t),!0;var n=ve(t.nodeName);if(Ae(M.uponSanitizeElement,t,{tagName:n,allowedTags:O}),tt&&t.hasChildNodes()&&!qe(t.firstElementChild)&&wt(/<[/\w!]/g,t.innerHTML)&&wt(/<[/\w!]/g,t.textContent))return we(t),!0;if(t.nodeType===Kt)return we(t),!0;if(tt&&t.nodeType===te&&wt(/<[/\w]/g,t.data))return we(t),!0;if(!(Q.tagCheck instanceof Function&&Q.tagCheck(n))&&(!O[n]||B[n])){if(!B[n]&&Le(n)){if(V.tagNameCheck instanceof RegExp&&wt(V.tagNameCheck,n))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(n))return!1}if(St&&!Ft[n]){var o=x(t)||t.parentNode,i=_(t)||t.childNodes;if(i&&o)for(var l=i.length-1;l>=0;--l){var u=g(i[l],!0);u.__removalCount=(t.__removalCount||0)+1,o.insertBefore(u,y(t))}}return we(t),!0}return t instanceof c&&!function(t){var e=x(t);e&&e.tagName||(e={namespaceURI:le,tagName:"template"});var r=vt(t.tagName),n=vt(e.tagName);return!!ae[t.namespaceURI]&&(t.namespaceURI===oe?e.namespaceURI===ie?"svg"===r:e.namespaceURI===ne?"svg"===r&&("annotation-xml"===n||ce[n]):Boolean(_e[r]):t.namespaceURI===ne?e.namespaceURI===ie?"math"===r:e.namespaceURI===oe?"math"===r&&de[n]:Boolean(xe[r]):t.namespaceURI===ie?!(e.namespaceURI===oe&&!de[n])&&!(e.namespaceURI===ne&&!ce[n])&&!xe[r]&&(pe[r]||!_e[r]):!("application/xhtml+xml"!==he||!ae[t.namespaceURI]))}(t)?(we(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!wt(/<\/no(script|embed|frames)/i,t.innerHTML)?(J&&t.nodeType===Jt&&(e=t.textContent,ct([L,E,I],(t=>{e=bt(e,t," ")})),t.textContent!==e&&(ht(r.removed,{element:t.cloneNode()}),t.textContent=e)),Ae(M.afterSanitizeElements,t,null),!1):(we(t),!0)},$e=function(t,e,r){if(st&&("id"===e||"name"===e)&&(r in o||r in ge))return!1;if(Y&&!U[e]&&wt(j,e));else if(W&&wt(z,e));else if(Q.attributeCheck instanceof Function&&Q.attributeCheck(e,t));else if(!F[e]||U[e]){if(!(Le(t)&&(V.tagNameCheck instanceof RegExp&&wt(V.tagNameCheck,t)||V.tagNameCheck instanceof Function&&V.tagNameCheck(t))&&(V.attributeNameCheck instanceof RegExp&&wt(V.attributeNameCheck,e)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(e,t))||"is"===e&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&wt(V.tagNameCheck,r)||V.tagNameCheck instanceof Function&&V.tagNameCheck(r))))return!1}else if(Qt[e]);else if(wt(P,bt(r,Z,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==yt(r,"data:")||!Vt[t]){if(X&&!wt(R,bt(r,Z,"")));else if(r)return!1}else;return!0},Le=function(t){return"annotation-xml"!==t&&gt(t,D)},Ee=function(t){Ae(M.beforeSanitizeAttributes,t,null);var{attributes:e}=t;if(e&&!Se(t)){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0},i=e.length,l=function(){var l=e[i],{name:u,namespaceURI:a,value:s}=l,c=ve(u),d=s,p="value"===u?d:_t(d);if(o.attrName=c,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,Ae(M.uponSanitizeAttribute,t,o),p=o.attrValue,!Tt||"id"!==c&&"name"!==c||(ke(u,t),p="user-content-"+p),tt&&wt(/((--!?|])>)|<\/(style|title|textarea)/i,p))return ke(u,t),0;if("attributename"===c&&gt(p,"href"))return ke(u,t),0;if(o.forceKeepAttr)return 0;if(!o.keepAttr)return ke(u,t),0;if(!G&&wt(/\/>/i,p))return ke(u,t),0;J&&ct([L,E,I],(t=>{p=bt(p,t," ")}));var h=ve(t.nodeName);if(!$e(h,c,p))return ke(u,t),0;if(n&&"object"==typeof v&&"function"==typeof v.getAttributeType)if(a);else switch(v.getAttributeType(h,c)){case"TrustedHTML":p=n.createHTML(p);break;case"TrustedScriptURL":p=n.createScriptURL(p)}if(p!==d)try{a?t.setAttributeNS(a,u,p):t.setAttribute(u,p),Se(t)?we(t):pt(r.removed)}catch(e){ke(u,t)}};i--;)l();Ae(M.afterSanitizeAttributes,t,null)}},Ie=function t(e){var r=null,n=Ce(e);for(Ae(M.beforeSanitizeShadowDOM,e,null);r=n.nextNode();)Ae(M.uponSanitizeShadowNode,r,null),Me(r),Ee(r),r.content instanceof u&&t(r.content);Ae(M.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,l=null,a=null,c=null;if((ue=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!qe(t)){if("function"!=typeof t.toString)throw kt("toString is not a function");if("string"!=typeof(t=t.toString()))throw kt("dirty is not a string, aborting")}if(!r.isSupported)return t;if(rt||ye(e),r.removed=[],"string"==typeof t&&(Ot=!1),Ot){if(t.nodeName){var d=ve(t.nodeName);if(!O[d]||B[d])throw kt("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)(l=(o=Te("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===Gt&&"BODY"===l.nodeName||"HTML"===l.nodeName?o=l:o.appendChild(l);else{if(!it&&!J&&!et&&-1===t.indexOf("<"))return n&&at?n.createHTML(t):t;if(!(o=Te(t)))return it?null:at?k:""}o&&nt&&we(o.firstChild);for(var p=Ce(Ot?t:o);a=p.nextNode();)Me(a),Ee(a),a.content instanceof u&&Ie(a.content);if(Ot)return t;if(it){if(ut)for(c=S.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(F.shadowroot||F.shadowrootmode)&&(c=A.call(i,c,!0)),c}var h=et?o.outerHTML:o.innerHTML;return et&&O["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&wt(Wt,o.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+h),J&&ct([L,E,I],(t=>{h=bt(h,t," ")})),n&&at?n.createHTML(h):h},r.setConfig=function(){ye(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),rt=!0},r.clearConfig=function(){me=null,rt=!1},r.isValidAttribute=function(t,e,r){me||ye({});var n=ve(t),o=ve(e);return $e(n,o,r)},r.addHook=function(t,e){"function"==typeof e&&ht(M[t],e)},r.removeHook=function(t,e){if(void 0!==e){var r=dt(M[t],e);return-1===r?void 0:ft(M[t],r,1)[0]}return pt(M[t])},r.removeHooks=function(t){M[t]=[]},r.removeAllHooks=function(){M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),oe={backgroundColor:"#ffffff",textColor:"#1d1f27",buttonColor:"#1d1f27",borderRadius:8,buttonBorderRadius:6,borderColor:"#e5e7eb",fontFamily:"system-ui",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",showOverlay:!0,whiteLabel:!1,dismissOnClickOutside:!0,zIndex:2147483646},ie=function(t){return t.TopLeft="top_left",t.TopCenter="top_center",t.TopRight="top_right",t.MiddleLeft="middle_left",t.MiddleCenter="middle_center",t.MiddleRight="middle_right",t.Left="left",t.Right="right",t.Center="center",t}({}),le=function(t){return t.Regex="regex",t.NotRegex="not_regex",t.Exact="exact",t.IsNot="is_not",t.Icontains="icontains",t.NotIcontains="not_icontains",t}({}),ue=Array.isArray,ae=Object.prototype.toString,se=ue||function(t){return"[object Array]"===ae.call(t)},ce=t=>void 0===t,de=t=>null===t,pe=t=>ce(t)||de(t);var he=(t,e,r)=>{function n(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),l=1;l<o;l++)i[l-1]=arguments[l];e((()=>{(0,r[n])(t,...i)}))}var o={info:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("log",...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("warn",...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("error",...e)},critical:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];r.error(t,...n)},createLogger:n=>he(t+" "+n,e,r)};return o},fe=t=>t();var ve=function(t,r){var{debugEnabled:n}=void 0===r?{}:r,o={o:function(r){if(e&&(i.POSTHOG_DEBUG||n)&&!ce(e.console)&&e.console){for(var o=("__rrweb_original__"in e.console[r]?e.console[r].__rrweb_original__:e.console[r]),l=arguments.length,u=new Array(l>1?l-1:0),a=1;a<l;a++)u[a-1]=arguments[a];o(t,...u)}},info:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("log",...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("warn",...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("error",...e)},critical:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];console.error(t,...r)},uninitializedWarning:t=>{o.error("You must initialize PostHog before calling "+t)},createLogger:(e,r)=>ve(t+" "+e,r)};return o},me=ve("[PostHog.js]"),ge=me.createLogger,be=ge("[Stylesheet Loader]"),ye=(t,e,r)=>{var n=t.createElement("style");return n.innerText=e,n||(be.error("prepare_external_dependency_stylesheet returned null"),null)};function _e(t,e,r,n){var{capture:o=!1,passive:i=!0}=null!=n?n:{};null==t||t.addEventListener(e,r,{capture:o,passive:i})}ge("[Surveys]"),null!=n&&n.sendBeacon;var xe=function(t,e){if(!function(t){try{new RegExp(t)}catch(t){return!1}return!0}(e))return!1;try{return new RegExp(e).test(t)}catch(t){return!1}},we={exact:(t,e)=>e.some((e=>t.some((t=>e===t)))),is_not:(t,e)=>e.every((e=>t.every((t=>e!==t)))),regex:(t,e)=>e.some((e=>t.some((t=>xe(e,t))))),not_regex:(t,e)=>e.every((e=>t.every((t=>!xe(e,t))))),icontains:(t,e)=>e.map(ke).some((e=>t.map(ke).some((t=>e.includes(t))))),not_icontains:(t,e)=>e.map(ke).every((e=>t.map(ke).every((t=>!e.includes(t))))),gt:(t,e)=>e.some((e=>{var r=parseFloat(e);return!isNaN(r)&&t.some((t=>r>parseFloat(t)))})),lt:(t,e)=>e.some((e=>{var r=parseFloat(e);return!isNaN(r)&&t.some((t=>r<parseFloat(t)))}))},ke=t=>t.toLowerCase();function Te(t,e){return!t||Object.entries(t).every((t=>{var[r,n]=t,o=null==e?void 0:e[r];if(ce(o)||de(o))return!1;var i=[String(o)],l=we[n.operator];return!!l&&l(n.values,i)}))}var Ce,Se,qe,Ae,Me=0,$e=[],Le=a,Ee=Le.__b,Ie=Le.__r,je=Le.diffed,ze=Le.__c,Re=Le.unmount,Ze=Le.__;function De(t,e){Le.__h&&Le.__h(Se,t,Me||e),Me=0;var r=Se.__H||(Se.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Pe(t){return Me=1,function(t,e,r){var n=De(Ce++,2);if(n.t=t,!n.__c&&(n.__=[Ye(void 0,e),function(t){var e=n.__N?n.__N[0]:n.__[0],r=n.t(e,t);e!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=Se,!Se.__f)){var o=function(t,e,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,e,r);var l=n.__c.props!==t;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(l=!0)}})),i&&i.call(this,t,e,r)||l};Se.__f=!0;var i=Se.shouldComponentUpdate,l=Se.componentWillUpdate;Se.componentWillUpdate=function(t,e,r){if(this.__e){var n=i;i=void 0,o(t,e,r),i=n}l&&l.call(this,t,e,r)},Se.shouldComponentUpdate=o}return n.__N||n.__}(Ye,t)}function Oe(t,e){var r=De(Ce++,3);!Le.__s&&We(r.__H,e)&&(r.__=t,r.u=e,Se.__H.__h.push(r))}function Ne(t){return Me=5,Fe((function(){return{current:t}}),[])}function Fe(t,e){var r=De(Ce++,7);return We(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function He(){for(var t;t=$e.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ue),t.__H.__h.forEach(Qe),t.__H.__h=[]}catch(e){t.__H.__h=[],Le.__e(e,t.__v)}}Le.__b=function(t){Se=null,Ee&&Ee(t)},Le.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Ze&&Ze(t,e)},Le.__r=function(t){Ie&&Ie(t),Ce=0;var e=(Se=t.__c).__H;e&&(qe===Se?(e.__h=[],Se.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(e.__h.forEach(Ue),e.__h.forEach(Qe),e.__h=[],Ce=0)),qe=Se},Le.diffed=function(t){je&&je(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==$e.push(e)&&Ae===Le.requestAnimationFrame||((Ae=Le.requestAnimationFrame)||Be)(He)),e.__H.__.forEach((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),qe=Se=null},Le.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Ue),t.__h=t.__h.filter((function(t){return!t.__||Qe(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],Le.__e(r,t.__v)}})),ze&&ze(t,e)},Le.unmount=function(t){Re&&Re(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{Ue(t)}catch(t){e=t}})),r.__H=void 0,e&&Le.__e(e,r.__v))};var Ve="function"==typeof requestAnimationFrame;function Be(t){var e,r=function(){clearTimeout(n),Ve&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);Ve&&(e=requestAnimationFrame(r))}function Ue(t){var e=Se,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),Se=e}function Qe(t){var e=Se;t.__c=t.__(),Se=e}function We(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function Ye(t,e){return"function"==typeof e?e(t):e}var Xe="#020617",Ge={backgroundColor:"#eeeded",position:Y.Right};function Je(t){if(t.startsWith("#")){var e=t.replace(/^#/,"");return/^[0-9A-Fa-f]{3}$/.test(e)&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),/^[0-9A-Fa-f]{6}$/.test(e)?"rgb("+parseInt(e.slice(0,2),16)+","+parseInt(e.slice(2,4),16)+","+parseInt(e.slice(4,6),16)+")":"rgb(255, 255, 255)"}return"rgb(255, 255, 255)"}function Ke(t){var e;void 0===t&&(t=Ge.backgroundColor),"#"===t[0]&&(e=Je(t)),t.startsWith("rgb")&&(e=t);var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}[t.toLowerCase()];if(r&&(e=Je(r)),!e)return Xe;var n=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(n){var o=parseInt(n[1]),i=parseInt(n[2]),l=parseInt(n[3]);return Math.sqrt(o*o*.299+i*i*.587+l*l*.114)>127.5?Xe:"white"}return Xe}!function(t){function e(t){var r,n;return this.getChildContext||(r=new Set,(n={})[e.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&r.forEach((function(t){t.__e=!0,L(t)}))},this.sub=function(t){r.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r&&r.delete(t),e&&e.call(t)}}),t.children}e.__c="__cC"+b++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed:()=>{},isPopup:!0,onPreviewSubmit:()=>{},surveySubmissionId:"",properties:void 0});var tr=':host{--ph-tour-font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI","Roboto",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ph-tour-background-color:#fff;--ph-tour-text-color:#1d1f27;--ph-tour-text-secondary-color:#6b7280;--ph-tour-button-color:#1d1f27;--ph-tour-button-text-color:#fff;--ph-tour-button-secondary-color:transparent;--ph-tour-button-secondary-text-color:#1d1f27;--ph-tour-border-color:#e5e7eb;--ph-tour-border-radius:8px;--ph-tour-button-border-radius:6px;--ph-tour-box-shadow:0 4px 12px rgba(0,0,0,.15);--ph-tour-max-width:320px;--ph-tour-padding:16px;--ph-tour-z-index:2147483646;--ph-tour-overlay-color:rgba(0,0,0,.5);--ph-tour-spotlight-padding:8px;--ph-tour-spotlight-border-radius:4px;--ph-tour-arrow-size:8px}.ph-tour-container *{box-sizing:border-box;font-family:var(--ph-tour-font-family);margin:0;padding:0}.ph-tour-click-overlay{bottom:0;left:0;pointer-events:auto;position:fixed;right:0;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-spotlight{border-radius:var(--ph-tour-spotlight-border-radius);box-shadow:0 0 0 9999px var(--ph-tour-overlay-color)}.ph-tour-modal-overlay,.ph-tour-spotlight{pointer-events:none;position:fixed;z-index:var(--ph-tour-z-index)}.ph-tour-modal-overlay{background:var(--ph-tour-overlay-color);bottom:0;left:0;right:0;top:0}.ph-tour-tooltip{background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:var(--ph-tour-border-radius);box-shadow:var(--ph-tour-box-shadow);max-width:var(--ph-tour-max-width);min-width:280px;padding:var(--ph-tour-padding);padding-top:calc(var(--ph-tour-padding) + 8px);pointer-events:auto;position:fixed;z-index:calc(var(--ph-tour-z-index) + 1)}.ph-tour-tooltip--modal{box-shadow:0 8px 32px rgba(0,0,0,.2),0 2px 8px rgba(0,0,0,.1)}.ph-tour-arrow{border:var(--ph-tour-arrow-size) solid transparent;height:0;position:absolute;width:0}.ph-tour-arrow--top{border-bottom-color:var(--ph-tour-background-color);bottom:100%;left:50%;transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);left:50%;top:100%;transform:translateX(-50%)}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%;top:50%;transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%;top:50%;transform:translateY(-50%)}.ph-tour-content{color:var(--ph-tour-text-color);font-size:14px;line-height:1.5;margin-bottom:16px;padding-right:24px}.ph-tour-content h1,.ph-tour-content h2{font-weight:600;margin-bottom:8px}.ph-tour-content h1{font-size:18px}.ph-tour-content h2{font-size:16px}.ph-tour-content p{margin-bottom:8px}.ph-tour-content p:last-child{margin-bottom:0}.ph-tour-content strong{font-weight:600}.ph-tour-content em{font-style:italic}.ph-tour-content ol,.ph-tour-content ul{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{font-size:14px;font-weight:600;margin-bottom:8px}.ph-tour-content .ph-tour-link,.ph-tour-content a{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:rgba(0,0,0,.06);border-radius:4px;font-size:.875em;padding:2px 6px}.ph-tour-content code,.ph-tour-content pre{font-family:SF Mono,Monaco,Consolas,monospace}.ph-tour-content pre{background:rgba(0,0,0,.04);border-radius:6px;font-size:13px;line-height:1.5;margin-bottom:8px;overflow-x:auto;padding:12px}.ph-tour-content pre code{background:transparent;border-radius:0;font-size:inherit;padding:0}.ph-tour-content code *,.ph-tour-content pre *{font-family:inherit}.ph-tour-content .hljs-comment,.ph-tour-content .hljs-quote{color:#6a737d;font-style:italic}.ph-tour-content .hljs-keyword,.ph-tour-content .hljs-selector-tag{color:#d73a49}.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp,.ph-tour-content .hljs-string{color:#032f62}.ph-tour-content .hljs-literal,.ph-tour-content .hljs-number,.ph-tour-content .hljs-template-variable,.ph-tour-content .hljs-variable{color:#005cc5}.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-title,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-addition,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-name,.ph-tour-content .hljs-symbol{color:#22863a}.ph-tour-content .hljs-deletion,.ph-tour-content .hljs-subst{color:#b31d28}.ph-tour-content .hljs-meta{color:#032f62}.ph-tour-content .hljs-emphasis{font-style:italic}.ph-tour-content .hljs-strong{font-weight:700}.ph-tour-content .ph-tour-image,.ph-tour-content img{border-radius:6px;display:block;height:auto;margin:8px 0;max-width:100%}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;overflow:hidden;padding-bottom:56.25%;position:relative;width:100%}.ph-tour-content .ph-tour-embed-container iframe{border:none;height:100%;left:0;position:absolute;top:0;width:100%}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);font-style:italic;margin:8px 0;padding-left:12px}.ph-tour-footer{align-items:center;display:flex;gap:12px;justify-content:space-between}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{display:flex;gap:8px;margin-left:auto}.ph-tour-button{align-items:center;border:none;border-radius:var(--ph-tour-button-border-radius);cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;justify-content:center;padding:8px 16px;transition:opacity .15s ease,transform .1s ease}.ph-tour-button:hover{opacity:.9}.ph-tour-button:active{transform:scale(.98)}.ph-tour-button--primary{background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-button--secondary{background:var(--ph-tour-button-secondary-color);border:1px solid var(--ph-tour-border-color);color:var(--ph-tour-button-secondary-text-color)}.ph-tour-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}.ph-tour-branding{align-items:center;border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));display:flex;font-size:11px;gap:6px;justify-content:center;margin-top:12px;padding-top:12px;text-decoration:none}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{height:14px;width:auto}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:300px}.ph-tour-survey-question{color:var(--ph-tour-text-color);font-size:15px;font-weight:500;line-height:1.4;margin-bottom:16px;padding-right:24px}.ph-tour-survey-input-container{display:flex;flex-direction:column;gap:12px}.ph-tour-survey-textarea{background:#fff;border:1px solid var(--ph-tour-border-color);border-radius:6px;box-sizing:border-box;color:var(--ph-tour-text-color);font-family:var(--ph-tour-font-family);font-size:14px;min-height:80px;padding:10px 12px;resize:vertical;width:100%}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);box-shadow:0 0 0 2px rgba(0,0,0,.05);outline:none}.ph-tour-survey-textarea::placeholder{color:var(--ph-tour-text-secondary-color)}.ph-tour-survey-submit{align-self:flex-end}.ph-tour-survey-rating-container{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);display:flex;font-size:11px;justify-content:space-between}.ph-tour-survey-rating-emoji{display:flex;gap:8px;justify-content:center}.ph-tour-survey-emoji-button{align-items:center;background:var(--ph-tour-background-color);border:2px solid var(--ph-tour-border-color);border-radius:8px;cursor:pointer;display:flex;height:44px;justify-content:center;padding:0;transition:all .15s ease;width:44px}.ph-tour-survey-emoji-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active svg{fill:var(--ph-tour-button-text-color)}.ph-tour-survey-emoji-button svg{fill:var(--ph-tour-text-color);height:28px;transition:fill .15s ease;width:28px}.ph-tour-survey-rating-numbers{display:grid;gap:6px}.ph-tour-survey-number-button{align-items:center;background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:4px;color:var(--ph-tour-text-color);cursor:pointer;display:flex;font-family:var(--ph-tour-font-family);font-size:13px;font-weight:500;justify-content:center;padding:8px 4px;transition:all .15s ease}.ph-tour-survey-number-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-number-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-banner{align-items:center;background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);display:flex;font-family:var(--ph-tour-font-family);gap:16px;justify-content:center;padding:12px 16px}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){position:sticky;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-banner-content{color:var(--ph-tour-text-color);flex:1;font-size:14px;line-height:1.5;min-width:0;text-align:center}.ph-tour-banner-content p{margin:0}.ph-tour-banner-content strong{font-weight:600}.ph-tour-banner-content em{font-style:italic}.ph-tour-banner-content a{color:inherit;text-decoration:underline}.ph-tour-banner-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-banner-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}',er=o,rr=e;function nr(){var t=ye(er,tr);return null==t||t.setAttribute("data-ph-product-tour-style","true"),t}function or(t){try{var e=er.querySelectorAll(t);if(0===e.length)return{element:null,error:"not_found",matchCount:0};var r=e[0];return function(t){var e=rr.getComputedStyle(t);if("none"===e.display||"hidden"===e.visibility||"0"===e.opacity)return!1;var r=t.getBoundingClientRect();if(0===r.width||0===r.height)return!1;return!0}(r)?e.length>1?{element:r,error:"multiple_matches",matchCount:e.length}:{element:r,error:null,matchCount:1}:{element:null,error:"not_visible",matchCount:e.length}}catch(t){return{element:null,error:"not_found",matchCount:0}}}var ir=12;function lr(t,e){var r,n,o,i=l({},oe,e),u=t.style;u.setProperty("--ph-tour-background-color",i.backgroundColor),u.setProperty("--ph-tour-text-color",i.textColor),u.setProperty("--ph-tour-button-color",i.buttonColor),u.setProperty("--ph-tour-border-radius",i.borderRadius+"px"),u.setProperty("--ph-tour-button-border-radius",i.buttonBorderRadius+"px"),u.setProperty("--ph-tour-border-color",i.borderColor),u.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";var e='BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return t?t+", "+e:"-apple-system, "+e}(i.fontFamily)),u.setProperty("--ph-tour-text-secondary-color",(r=i.textColor,n=.6,(o=Je(r).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+o[1]+", "+o[2]+", "+o[3]+", "+n+")":r)),u.setProperty("--ph-tour-branding-text-color",Ke(i.backgroundColor)),u.setProperty("--ph-tour-button-text-color",Ke(i.buttonColor)),u.setProperty("--ph-tour-box-shadow",i.boxShadow),u.setProperty("--ph-tour-overlay-color",i.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),u.setProperty("--ph-tour-z-index",String(i.zIndex)),u.setProperty("--ph-tour-button-secondary-color","transparent"),u.setProperty("--ph-tour-button-secondary-text-color",i.textColor),u.setProperty("--ph-tour-max-width","320px"),u.setProperty("--ph-tour-padding","16px")}function ur(t){var e;if(!t)return"";if("string"==typeof t)return sr(t);if("text"===t.type){var r=sr(t.text||"");if(t.marks)for(var n of t.marks)switch(n.type){case"bold":r="<strong>"+r+"</strong>";break;case"italic":r="<em>"+r+"</em>";break;case"underline":r="<u>"+r+"</u>";break;case"strike":r="<s>"+r+"</s>"}return r}var o=(null==(e=t.content)?void 0:e.map(ur).join(""))||"";switch(t.type){case"doc":default:return o;case"paragraph":return"<p>"+o+"</p>";case"heading":var i,l=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+l+">"+o+"</h"+l+">";case"bulletList":return"<ul>"+o+"</ul>";case"orderedList":return"<ol>"+o+"</ol>";case"listItem":return"<li>"+o+"</li>";case"hardBreak":return"<br>"}}function ar(t){return t.endsWith("/")?t.slice(0,-1):t}function sr(t){var e=er.createElement("div");return e.textContent=t,e.innerHTML}function cr(t){return t.contentHtml?ne.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):ur(t.content)}function dr(t,e,r){return void 0===e&&(e=document),void 0===r&&(r=null),function(t,e,r,n){void 0===n&&(n=null);return t=function(t){function e(){n&&(l.length>0&&/^[~+>]$/.test(l[l.length-1])&&l.push(" "),l.push(n))}var r,n,o,i,l=[],u=[0],a=0,s=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,c=/^\s+$/,d=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(t=t.trim();;){if(n="",(o=d[u[u.length-1]]).lastIndex=a,!(r=o.exec(t))){n=t.substr(a),e();break}if((i=a)<(a=o.lastIndex)-r[0].length&&(n=t.substring(i,a-r[0].length)),u[u.length-1]<3){if(e(),"["===r[0])u.push(1);else if("("===r[0])u.push(2);else if(/^["']$/.test(r[0]))u.push(3),d[3]=new RegExp(r[0],"g");else if("/*"===r[0])u.push(4);else if(/^[\])]$/.test(r[0])&&u.length>0)u.pop();else if(/^(?:\s+|[~+>])$/.test(r[0])&&(l.length>0&&!c.test(l[l.length-1])&&0===u[u.length-1]&&l.push(" "),1===u[u.length-1]&&5===l.length&&"="===l[2].charAt(l[2].length-1)&&(l[4]=" "+l[4]),c.test(r[0])))continue;l.push(r[0])}else l[l.length-1]+=n,s.test(l[l.length-1])&&(4===u[u.length-1]&&(l.length<2||c.test(l[l.length-2])?l.pop():l[l.length-1]=" ",r[0]=""),u.pop()),l[l.length-1]+=r[0]}return l.join("").trim()}(t),r.querySelector(t),document.head.createShadowRoot||document.head.attachShadow?pr(t,",").reduce(((t,e)=>{var o=pr(e.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((t=>!!t)).map((t=>pr(t,">"))),i=o.length-1,l=function(t,e,r){void 0===t&&(t=null);void 0===r&&(r=null);var n=[];if(r)n=r;else{var o=function(t){for(var e=0;e<t.length;e++){var r=t[e];n.push(r),r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*"))}};e.shadowRoot&&o(e.shadowRoot.querySelectorAll("*")),o(e.querySelectorAll("*"))}return t?n.filter((e=>e.matches(t))):n}(o[i][o[i].length-1],r,n),u=function(t,e,r){return n=>{for(var o=e,i=n,l=!1;i&&!hr(i);){var u=!0;if(1===t[o].length)u=i.matches(t[o]);else{var a=[].concat(t[o]).reverse(),s=i;for(var c of a){if(!s||!s.matches(c)){u=!1;break}s=fr(s,r)}}if(u&&0===o){l=!0;break}u&&o--,i=fr(i,r)}return l}}(o,i,r);return t=t.concat(l.filter(u))}),[]):r.querySelectorAll(t)}(t,0,e,r)}function pr(t,e){return t.match(/\\?.|^$/g).reduce(((t,r)=>('"'!==r||t.sQuote?"'"!==r||t.quote?t.quote||t.sQuote||r!==e?t.a[t.a.length-1]+=r:t.a.push(""):(t.sQuote^=1,t.a[t.a.length-1]+=r):(t.quote^=1,t.a[t.a.length-1]+=r),t)),{a:[""]}).a}function hr(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE||t.nodeType===Node.DOCUMENT_NODE}function fr(t,e){var r=t.parentNode;return r&&r.host&&11===r.nodeType?r.host:r===e?null:r}var vr,mr,gr=e,br=(void 0===vr&&(vr=fe),he("[Element Inference]",vr,(void 0===mr&&(mr=console),{log:mr.log.bind(mr),warn:mr.warn.bind(mr),error:mr.error.bind(mr),debug:mr.debug.bind(mr)})));function yr(t,e){try{var r=e.get(t);if(!ce(r))return r;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return e.set(t,n),n}var o=gr.getComputedStyle(t);if("none"===o.display||"hidden"===o.visibility||0===parseFloat(o.opacity))return e.set(t,!1),!1;for(var i=t.parentElement;i;){var l=e.get(i);if(ce(l)){var u=gr.getComputedStyle(i),a="none"!==u.display&&"hidden"!==u.visibility;if(e.set(i,a),!a)return!1;i=i.parentElement}else{if(!l)return!1;i=i.parentElement}}var s=t.getBoundingClientRect(),c=s.width>0||s.height>0||t.getClientRects().length>0;return e.set(t,c),c}catch(t){return!0}}function _r(t,e){var r=function(t){var e,r=null==(e=t.innerText)?void 0:e.trim();return!r||r.length>250?null:r}(t);return(null==r?void 0:r.toLowerCase())===e.toLowerCase()}function*xr(t,e,r){var n;try{n=dr(t)}catch(t){return}for(var o of n){var i=o;e&&!_r(i,e)||yr(i,r)&&(yield i)}}function wr(t,e){var r=0;for(var n of t){if(r===e)return n;r++}return null}function kr(t){try{var e=JSON.parse(t.autoData);if(!se(null==e?void 0:e.textGroups)||!se(null==e?void 0:e.notextGroups))return br.error("Invalid autoData structure:",e),null;var{text:r,excludeText:n}=t,o=null!=r&&!n,i=(o?e.textGroups:e.notextGroups).sort(((t,e)=>t.cardinality-e.cardinality));if(0===i.length)return null;var l=new WeakMap;for(var u of i){var a=new Map,s=null,c=0;for(var{css:d,offset:p}of u.cssSelectors){var h,f=wr(xr(d,o?r:null,l),p);if(f){var v=(null!==(h=a.get(f))&&void 0!==h?h:0)+1;if(a.set(f,v),v>c&&(c=v,s=f,v>=Math.ceil(u.cssSelectors.length/2)))return s}}if(s)return s}return null}catch(t){return br.error("Error finding element:",t),null}}var Tr=0;function Cr(t,e,r,n,o,i){e||(e={});var l,u,s=e;if("ref"in s)for(u in s={},e)"ref"==u?l=e[u]:s[u]=e[u];var c={type:t,props:s,key:r,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Tr,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(l=t.defaultProps))for(u in l)void 0===s[u]&&(s[u]=l[u]);return a.vnode&&a.vnode(c),c}var Sr=Cr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cr("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146 272q66 0 121.5-35.5T682-393h-52q-23 40-63 61.5T480.5-310q-46.5 0-87-21T331-393h-53q26 61 81 96.5T480-261Zm0 181q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),qr=Cr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cr("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm20 194h253v-49H354v49ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),Ar=Cr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cr("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146.174 116Q413-417 358.5-379.5T278-280h53q22-42 62.173-65t87.5-23Q528-368 567.5-344.5T630-280h52q-25-63-79.826-100-54.826-37-122-37ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),Mr=Cr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cr("path",{d:"M480-417q-67 0-121.5 37.5T278-280h404q-25-63-80-100t-122-37Zm-183-72 50-45 45 45 31-36-45-45 45-45-31-36-45 45-50-45-31 36 45 45-45 45 31 36Zm272 0 44-45 51 45 31-36-45-45 45-45-31-36-51 45-44-45-31 36 44 45-44 45 31 36ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142 0 241-99t99-241q0-142-99-241t-241-99q-142 0-241 99t-99 241q0 142 99 241t241 99Z"})}),$r=Cr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cr("path",{d:"M479.504-261Q537-261 585.5-287q48.5-26 78.5-72.4 6-11.6-.75-22.6-6.75-11-20.25-11H316.918Q303-393 296.5-382t-.5 22.6q30 46.4 78.5 72.4 48.5 26 105.004 26ZM347-578l27 27q7.636 8 17.818 8Q402-543 410-551q8-8 8-18t-8-18l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.636-8 17.818Q276-559 284-551q8 8 18 8t18-8l27-27Zm267 0 27 27q7.714 8 18 8t18-8q8-7.636 8-17.818Q685-579 677-587l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.714-8 18t8 18q7.636 8 17.818 8Q579-543 587-551l27-27ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),Lr=Cr("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title",children:[Cr("title",{id:"close-survey-title",children:"Close survey"}),Cr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.164752 0.164752C0.384422 -0.0549175 0.740578 -0.0549175 0.960248 0.164752L6 5.20451L11.0398 0.164752C11.2594 -0.0549175 11.6156 -0.0549175 11.8352 0.164752C12.0549 0.384422 12.0549 0.740578 11.8352 0.960248L6.79549 6L11.8352 11.0398C12.0549 11.2594 12.0549 11.6156 11.8352 11.8352C11.6156 12.0549 11.2594 12.0549 11.0398 11.8352L6 6.79549L0.960248 11.8352C0.740578 12.0549 0.384422 12.0549 0.164752 11.8352C-0.0549175 11.6156 -0.0549175 11.2594 0.164752 11.0398L5.20451 6L0.164752 0.960248C-0.0549175 0.740578 -0.0549175 0.384422 0.164752 0.164752Z",fill:"black"})]}),Er=Cr("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Cr("g",{"clip-path":"url(#clip0_2415_6911)",children:[Cr("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Cr("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Cr("g",{mask:"url(#mask0_2415_6911)",children:[Cr("path",{d:"M5.77226 8.02931C5.59388 8.37329 5.08474 8.37329 4.90634 8.02931L4.4797 7.20672C4.41155 7.07535 4.41155 6.9207 4.4797 6.78933L4.90634 5.96669C5.08474 5.62276 5.59388 5.62276 5.77226 5.96669L6.19893 6.78933C6.26709 6.9207 6.26709 7.07535 6.19893 7.20672L5.77226 8.02931ZM5.77226 12.6946C5.59388 13.0386 5.08474 13.0386 4.90634 12.6946L4.4797 11.872C4.41155 11.7406 4.41155 11.586 4.4797 11.4546L4.90634 10.632C5.08474 10.288 5.59388 10.288 5.77226 10.632L6.19893 11.4546C6.26709 11.586 6.26709 11.7406 6.19893 11.872L5.77226 12.6946Z",fill:"#1D4AFF"}),Cr("path",{d:"M0.5 10.9238C0.5 10.508 1.02142 10.2998 1.32637 10.5938L3.54508 12.7327C3.85003 13.0267 3.63405 13.5294 3.20279 13.5294H0.984076C0.716728 13.5294 0.5 13.3205 0.5 13.0627V10.9238ZM0.5 8.67083C0.5 8.79459 0.551001 8.91331 0.641783 9.00081L5.19753 13.3927C5.28831 13.4802 5.41144 13.5294 5.53982 13.5294H8.0421C8.47337 13.5294 8.68936 13.0267 8.3844 12.7327L1.32637 5.92856C1.02142 5.63456 0.5 5.84278 0.5 6.25854V8.67083ZM0.5 4.00556C0.5 4.12932 0.551001 4.24802 0.641783 4.33554L10.0368 13.3927C10.1276 13.4802 10.2508 13.5294 10.3791 13.5294H12.8814C13.3127 13.5294 13.5287 13.0267 13.2237 12.7327L1.32637 1.26329C1.02142 0.969312 0.5 1.17752 0.5 1.59327V4.00556ZM5.33931 4.00556C5.33931 4.12932 5.39033 4.24802 5.4811 4.33554L14.1916 12.7327C14.4965 13.0267 15.0179 12.8185 15.0179 12.4028V9.99047C15.0179 9.86671 14.9669 9.74799 14.8762 9.66049L6.16568 1.26329C5.86071 0.969307 5.33931 1.17752 5.33931 1.59327V4.00556ZM11.005 1.26329C10.7 0.969307 10.1786 1.17752 10.1786 1.59327V4.00556C10.1786 4.12932 10.2296 4.24802 10.3204 4.33554L14.1916 8.06748C14.4965 8.36148 15.0179 8.15325 15.0179 7.7375V5.3252C15.0179 5.20144 14.9669 5.08272 14.8762 4.99522L11.005 1.26329Z",fill:"#F9BD2B"}),Cr("path",{d:"M21.0852 10.981L16.5288 6.58843C16.2238 6.29443 15.7024 6.50266 15.7024 6.91841V13.0627C15.7024 13.3205 15.9191 13.5294 16.1865 13.5294H23.2446C23.5119 13.5294 23.7287 13.3205 23.7287 13.0627V12.5032C23.7287 12.2455 23.511 12.0396 23.2459 12.0063C22.4323 11.9042 21.6713 11.546 21.0852 10.981ZM18.0252 12.0365C17.5978 12.0365 17.251 11.7021 17.251 11.2901C17.251 10.878 17.5978 10.5436 18.0252 10.5436C18.4527 10.5436 18.7996 10.878 18.7996 11.2901C18.7996 11.7021 18.4527 12.0365 18.0252 12.0365Z",fill:"currentColor"}),Cr("path",{d:"M0.5 13.0627C0.5 13.3205 0.716728 13.5294 0.984076 13.5294H3.20279C3.63405 13.5294 3.85003 13.0267 3.54508 12.7327L1.32637 10.5938C1.02142 10.2998 0.5 10.508 0.5 10.9238V13.0627ZM5.33931 5.13191L1.32637 1.26329C1.02142 0.969306 0.5 1.17752 0.5 1.59327V4.00556C0.5 4.12932 0.551001 4.24802 0.641783 4.33554L5.33931 8.86412V5.13191ZM1.32637 5.92855C1.02142 5.63455 0.5 5.84278 0.5 6.25853V8.67083C0.5 8.79459 0.551001 8.91331 0.641783 9.00081L5.33931 13.5294V9.79717L1.32637 5.92855Z",fill:"#1D4AFF"}),Cr("path",{d:"M10.1787 5.3252C10.1787 5.20144 10.1277 5.08272 10.0369 4.99522L6.16572 1.26329C5.8608 0.969306 5.33936 1.17752 5.33936 1.59327V4.00556C5.33936 4.12932 5.39037 4.24802 5.48114 4.33554L10.1787 8.86412V5.3252ZM5.33936 13.5294H8.04214C8.47341 13.5294 8.6894 13.0267 8.38443 12.7327L5.33936 9.79717V13.5294ZM5.33936 5.13191V8.67083C5.33936 8.79459 5.39037 8.91331 5.48114 9.00081L10.1787 13.5294V9.99047C10.1787 9.86671 10.1277 9.74803 10.0369 9.66049L5.33936 5.13191Z",fill:"#F54E00"}),Cr("path",{d:"M29.375 11.6667H31.3636V8.48772H33.0249C34.8499 8.48772 36.0204 7.4443 36.0204 5.83052C36.0204 4.21681 34.8499 3.17334 33.0249 3.17334H29.375V11.6667ZM31.3636 6.84972V4.81136H32.8236C33.5787 4.81136 34.0318 5.19958 34.0318 5.83052C34.0318 6.4615 33.5787 6.84972 32.8236 6.84972H31.3636ZM39.618 11.7637C41.5563 11.7637 42.9659 10.429 42.9659 8.60905C42.9659 6.78905 41.5563 5.45438 39.618 5.45438C37.6546 5.45438 36.2701 6.78905 36.2701 8.60905C36.2701 10.429 37.6546 11.7637 39.618 11.7637ZM38.1077 8.60905C38.1077 7.63838 38.7118 6.97105 39.618 6.97105C40.5116 6.97105 41.1157 7.63838 41.1157 8.60905C41.1157 9.57972 40.5116 10.2471 39.618 10.2471C38.7118 10.2471 38.1077 9.57972 38.1077 8.60905ZM46.1482 11.7637C47.6333 11.7637 48.6402 10.8658 48.6402 9.81025C48.6402 7.33505 45.2294 8.13585 45.2294 7.16518C45.2294 6.8983 45.5189 6.72843 45.9342 6.72843C46.3622 6.72843 46.8782 6.98318 47.0418 7.54132L48.527 6.94678C48.2375 6.06105 47.1677 5.45438 45.8713 5.45438C44.4743 5.45438 43.6058 6.25518 43.6058 7.21372C43.6058 9.53118 46.9663 8.88812 46.9663 9.84665C46.9663 10.1864 46.6391 10.417 46.1482 10.417C45.4434 10.417 44.9525 9.94376 44.8015 9.3735L43.3164 9.93158C43.6436 10.8537 44.6001 11.7637 46.1482 11.7637ZM53.4241 11.606L53.2982 10.0651C53.0843 10.1743 52.8074 10.2106 52.5808 10.2106C52.1278 10.2106 51.8257 9.89523 51.8257 9.34918V7.03172H53.3612V5.55145H51.8257V3.78001H49.9755V5.55145H48.9687V7.03172H49.9755V9.57972C49.9755 11.06 51.0202 11.7637 52.3921 11.7637C52.7696 11.7637 53.122 11.7031 53.4241 11.606ZM59.8749 3.17334V6.47358H56.376V3.17334H54.3874V11.6667H56.376V8.11158H59.8749V11.6667H61.8761V3.17334H59.8749ZM66.2899 11.7637C68.2281 11.7637 69.6378 10.429 69.6378 8.60905C69.6378 6.78905 68.2281 5.45438 66.2899 5.45438C64.3265 5.45438 62.942 6.78905 62.942 8.60905C62.942 10.429 64.3265 11.7637 66.2899 11.7637ZM64.7796 8.60905C64.7796 7.63838 65.3837 6.97105 66.2899 6.97105C67.1835 6.97105 67.7876 7.63838 67.7876 8.60905C67.7876 9.57972 67.1835 10.2471 66.2899 10.2471C65.3837 10.2471 64.7796 9.57972 64.7796 8.60905ZM73.2088 11.4725C73.901 11.4725 74.5177 11.242 74.845 10.8416V11.424C74.845 12.1034 74.2786 12.5767 73.4102 12.5767C72.7935 12.5767 72.2523 12.2854 72.1642 11.788L70.4776 12.0428C70.7042 13.1955 71.925 13.972 73.4102 13.972C75.361 13.972 76.6574 12.8679 76.6574 11.2298V5.55145H74.8324V6.07318C74.4926 5.69705 73.9136 5.45438 73.171 5.45438C71.409 5.45438 70.3014 6.61918 70.3014 8.46345C70.3014 10.3077 71.409 11.4725 73.2088 11.4725ZM72.1012 8.46345C72.1012 7.55345 72.655 6.97105 73.5109 6.97105C74.3793 6.97105 74.9331 7.55345 74.9331 8.46345C74.9331 9.37345 74.3793 9.95585 73.5109 9.95585C72.655 9.95585 72.1012 9.37345 72.1012 8.46345Z",fill:"currentColor"})]})]}),Cr("defs",{children:Cr("clipPath",{id:"clip0_2415_6911",children:Cr("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Ir(t){var{button:e,variant:r,onClick:n,cursorStyle:o}=t,i="ph-tour-button ph-tour-button--"+r;return"link"===e.action&&e.link?Cr("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",class:i,children:e.text}):Cr("button",{class:i,onClick:()=>n(e),style:o,children:e.text})}function jr(t){var e,r,n,{step:o,appearance:i,stepIndex:l,totalSteps:u,onNext:a,onPrevious:s,onDismiss:c,onButtonClick:d}=t,p=null!==(e=null==i?void 0:i.whiteLabel)&&void 0!==e&&e,h=l>=u-1,f=0===l,v=!o.buttons&&("button"===o.progressionTrigger||"modal"===o.type),m=!!o.buttons,g=!!(a||s||c||d),b=g?void 0:{cursor:"default"},y=t=>{d&&d(t)};return Cr(S,{children:[Cr("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Lr}),Cr("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:cr(o)}}),Cr("div",{class:"ph-tour-footer",children:[u>1&&Cr("span",{class:"ph-tour-progress",children:[l+1," of ",u]}),Cr("div",{class:"ph-tour-buttons",children:[v&&Cr(S,{children:[!f&&Cr("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),Cr("button",{class:"ph-tour-button ph-tour-button--primary",onClick:a,style:b,children:h?"Done":"Next"})]}),m&&Cr(S,{children:[(null==(r=o.buttons)?void 0:r.secondary)&&Cr(Ir,{button:o.buttons.secondary,variant:"secondary",onClick:y,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&Cr(Ir,{button:o.buttons.primary,variant:"primary",onClick:y,cursorStyle:b})]})]})]}),!p&&Cr("a",{href:g?"https://posthog.com/product-tours":void 0,target:g?"_blank":void 0,rel:g?"noopener noreferrer":void 0,class:"ph-tour-branding",style:g?void 0:{cursor:"default",pointerEvents:"none"},children:["Tour by ",Er]})]})}Cr("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Cr("path",{d:"M5.30769 10.6923L4.77736 11.2226C4.91801 11.3633 5.10878 11.4423 5.30769 11.4423C5.5066 11.4423 5.69737 11.3633 5.83802 11.2226L5.30769 10.6923ZM15.5303 1.53033C15.8232 1.23744 15.8232 0.762563 15.5303 0.46967C15.2374 0.176777 14.7626 0.176777 14.4697 0.46967L15.5303 1.53033ZM1.53033 5.85429C1.23744 5.56139 0.762563 5.56139 0.46967 5.85429C0.176777 6.14718 0.176777 6.62205 0.46967 6.91495L1.53033 5.85429ZM5.83802 11.2226L15.5303 1.53033L14.4697 0.46967L4.77736 10.162L5.83802 11.2226ZM0.46967 6.91495L4.77736 11.2226L5.83802 10.162L1.53033 5.85429L0.46967 6.91495Z",fill:"currentColor"})});var zr=[Ar,qr,Sr],Rr=[Mr,Ar,qr,Sr,$r];function Zr(t){var{value:e,onChange:r,onSubmit:n,isInteractive:o}=t,i=Ne(null);Oe((()=>{o&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[o]);return Cr("textarea",{ref:i,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:e,onInput:t=>r(t.target.value),onKeyDown:t=>{"Enter"===t.key&&t.metaKey&&o&&(t.preventDefault(),null==n||n())},disabled:!o,style:o?void 0:{cursor:"default"}})}function Dr(t){var{survey:e,onSubmit:r,isInteractive:n}=t,[o,i]=Pe(null),l=e.display||"emoji",u=e.scale||5,a=t=>{n&&(i(t),null==r||r(t))};if("emoji"===l)return Cr("div",{class:"ph-tour-survey-rating-container",children:[Cr("div",{class:"ph-tour-survey-rating-emoji",children:(3===u?zr:Rr).map(((t,e)=>{var r=e+1;return Cr("button",{type:"button",class:"ph-tour-survey-emoji-button "+(o===r?"ph-tour-survey-emoji-button--active":""),onClick:()=>a(r),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+r,children:t},e)}))}),(e.lowerBoundLabel||e.upperBoundLabel)&&Cr("div",{class:"ph-tour-survey-rating-labels",children:[Cr("span",{children:e.lowerBoundLabel}),Cr("span",{children:e.upperBoundLabel})]})]});var s=function(t){switch(t){case 5:default:return[1,2,3,4,5];case 10:return[0,1,2,3,4,5,6,7,8,9,10]}}(u);return Cr("div",{class:"ph-tour-survey-rating-container",children:[Cr("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>Cr("button",{type:"button",class:"ph-tour-survey-number-button "+(o===t?"ph-tour-survey-number-button--active":""),onClick:()=>a(t),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(e.lowerBoundLabel||e.upperBoundLabel)&&Cr("div",{class:"ph-tour-survey-rating-labels",children:[Cr("span",{children:e.lowerBoundLabel}),Cr("span",{children:e.upperBoundLabel})]})]})}function Pr(t){var e,{step:r,appearance:n,stepIndex:o,totalSteps:i,onPrevious:l,onSubmit:u,onDismiss:a}=t,[s,c]=Pe(""),d=r.survey,p=null!==(e=null==n?void 0:n.whiteLabel)&&void 0!==e&&e,h=0===o,f="open"===(null==d?void 0:d.type),v=!!(l||u||a),m=v?void 0:{cursor:"default"},g=()=>{null==u||u(s.trim()||null)};return d?Cr(S,{children:[Cr("button",{class:"ph-tour-dismiss",onClick:a,"aria-label":"Close survey",style:m,children:Lr}),Cr("div",{class:"ph-tour-survey-question",children:d.questionText}),f?Cr(Zr,{value:s,onChange:c,onSubmit:g,isInteractive:v}):Cr(Dr,{survey:d,onSubmit:u,isInteractive:v}),Cr("div",{class:"ph-tour-footer",children:[Cr("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),Cr("div",{class:"ph-tour-buttons",children:[!h&&Cr("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:l,style:m,children:"Back"}),f&&Cr("button",{class:"ph-tour-button ph-tour-button--primary",onClick:g,style:m,children:"Submit"})]})]}),!p&&Cr("a",{href:v?"https://posthog.com/product-tours":void 0,target:v?"_blank":void 0,rel:v?"noopener noreferrer":void 0,class:"ph-tour-branding",style:v?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",Er]})]}):Cr("div",{})}var Or=e;function Nr(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}var Fr=150;function Hr(t){var e,{tour:r,step:n,stepIndex:o,totalSteps:i,targetElement:u,onNext:a,onPrevious:s,onDismiss:c,onSurveySubmit:d,onButtonClick:p}=t,[h,f]=Pe("entering"),[v,m]=Pe(null),[g,b]=Pe(null),[y,_]=Pe(!1),[x,w]=Pe(n),[k,T]=Pe(o),C=Ne(null),S=Ne(o),q=Ne(!1),A="modal"===x.type||"survey"===x.type,M=function(t,e){return Me=8,Fe((function(){return t}),e)}((()=>{if(u&&C.current){var t=C.current.getBoundingClientRect(),e={width:t.width,height:t.height},r=u.getBoundingClientRect();m(function(t,e){var r=rr.innerWidth,n=rr.innerHeight,{width:o,height:i}=e,l=t.top,u=n-t.bottom,a=t.left,s=r-t.right,c=t.top+t.height/2,d=t.left+t.width/2;return s>=o+ir?{position:"right",top:c,left:t.right+ir}:a>=o+ir?{position:"left",top:c,right:r-t.left+ir}:l>=i+ir&&u<i+ir?{position:"top",bottom:n-t.top+ir,left:d}:{position:"bottom",top:t.bottom+ir,left:d}}(r,e)),b(function(t,e){return void 0===e&&(e=8),{top:t.top-e+"px",left:t.left-e+"px",width:t.width+2*e+"px",height:t.height+2*e+"px"}}(r)),_(!0)}}),[u]);!function(t,e){var r=De(Ce++,4);!Le.__s&&We(r.__H,e)&&(r.__=t,r.u=e,Se.__h.push(r))}((()=>{!A&&!y&&C.current&&u&&M()}),[A,y,u,M]),Oe((()=>{var t=o,e=S.current!==o,r=()=>{S.current===t&&(f("visible"),q.current=!1)},i=()=>{u&&"element"===n.type?function(t,e){var r=t.getBoundingClientRect(),n=Or.innerHeight,o=Or.innerWidth,i=n/6,l=o/6;if(r.top>=i&&r.bottom<=n-i&&r.left>=l&&r.right<=o-l)e();else{t.scrollIntoView({behavior:"smooth",block:"center"});var u=r.top,a=0,s=!1,c=()=>{if(!s){var r=t.getBoundingClientRect();if(Math.abs(r.top-u)<1){if(++a>=3)return s=!0,void e()}else a=0;u=r.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout((()=>{s||(s=!0,e())}),500)}}(u,(()=>{S.current===t&&(M(),setTimeout(r,50))})):setTimeout(r,50)};if(!e)return S.current=o,q.current=!0,void i();S.current=o,q.current=!0,f("exiting"),setTimeout((()=>{S.current===t&&("element"===n.type&&(m(null),b(null),_(!1)),w(n),T(o),f("entering"),i())}),Fr)}),[u,o,n,M]),Oe((()=>{if("visible"===h&&!A){var t=()=>{q.current||M()};return _e(Or,"scroll",t,{capture:!0}),_e(Or,"resize",t),()=>{null==Or||Or.removeEventListener("scroll",t,!0),null==Or||Or.removeEventListener("resize",t)}}}),[M,h,A]),Oe((()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return _e(Or,"keydown",t),()=>{null==Or||Or.removeEventListener("keydown",t)}}),[c]);var L,E,I="visible"===h,j="survey"===x.type,z=A||y,R=l({},x.maxWidth&&{width:x.maxWidth+"px",maxWidth:x.maxWidth+"px"},A?l({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(E=function(t,e,r){if(void 0===e&&(e=Y.Right),t===X.ExternalSurvey)return{};switch(e){case Y.TopLeft:return{top:"0",left:"0",transform:"translate(30px, 30px)"};case Y.TopRight:return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case Y.TopCenter:return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case Y.MiddleLeft:return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case Y.MiddleRight:return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case Y.MiddleCenter:return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case Y.Left:return{left:"30px"};case Y.Center:return{left:"50%",transform:"translateX(-50%)"};default:case Y.Right:return{right:t===X.Widget&&r===W.Tab?"60px":"30px"}}}(void 0,null!==(L=x.modalPosition)&&void 0!==L?L:ie.MiddleCenter),"top"in E||"bottom"in E?E:l({},E,{bottom:"30px"}))):(()=>{if(!v)return{};var t="left"===v.position||"right"===v.position;return{top:ce(v.top)?"auto":v.top+"px",bottom:ce(v.bottom)?"auto":v.bottom+"px",left:ce(v.left)?"auto":v.left+"px",right:ce(v.right)?"auto":v.right+"px",transform:t?"translateY(-50%)":"translateX(-50%)"}})());return Cr("div",{class:"ph-tour-container",children:[!1!==(null==(e=r.appearance)?void 0:e.dismissOnClickOutside)&&Cr("div",{class:"ph-tour-click-overlay",onClick:t=>{t.stopPropagation(),c("user_clicked_outside")}}),Cr("div",{class:"ph-tour-modal-overlay",style:{opacity:A&&I?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),Cr("div",{class:"ph-tour-spotlight",style:l({},I&&z&&g?g:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!A&&I&&z?1:0,transition:"opacity 150ms ease-out"},"click"===x.progressionTrigger&&!A&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==x.progressionTrigger||A?void 0:t=>{t.stopPropagation(),u&&u.click(),a()}}),Cr("div",{ref:C,class:"ph-tour-tooltip "+(A?"ph-tour-tooltip--modal":"")+" "+(j?"ph-tour-survey-step":""),style:l({},R,{opacity:I&&z?1:0,transition:"opacity 150ms ease-out"}),onClick:t=>{t.stopPropagation()},children:[!A&&v&&Cr("div",{class:"ph-tour-arrow ph-tour-arrow--"+Nr(v.position)}),j?Cr(Pr,{step:x,appearance:r.appearance,stepIndex:k,totalSteps:i,onSubmit:d,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):Cr(jr,{step:x,appearance:r.appearance,stepIndex:k,totalSteps:i,onNext:a,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:p})]})]})}function Vr(t){var{class:e,href:r,children:n}=t;return Cr("a",{class:e,href:r,target:"_blank",rel:"noopener noreferrer",children:n})}function Br(t){var{class:e,onClick:r,children:n}=t;return Cr("div",{class:e,role:"button",tabIndex:0,onClick:r,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),r())},style:{cursor:"pointer"},children:n})}function Ur(t){var{class:e,children:r}=t;return Cr("div",{class:e,children:r})}function Qr(t){var e,{step:r,onDismiss:n,onTriggerTour:o}=t,i=null!==(e=r.bannerConfig)&&void 0!==e?e:{behavior:"sticky"},l=i.action,u=["ph-tour-banner","sticky"===i.behavior&&"ph-tour-banner--sticky"].filter(Boolean).join(" "),a=Cr(S,{children:[Cr("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:cr(r)}}),Cr("button",{class:"ph-tour-banner-dismiss",onClick:t=>{t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Lr})]});return"link"===(null==l?void 0:l.type)&&l.link?Cr(Vr,{class:u,href:l.link,children:a}):"trigger_tour"===(null==l?void 0:l.type)&&o?Cr(Br,{class:u,onClick:o,children:a}):Cr(Ur,{class:u,children:a})}Math.trunc||(Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return(t=>"[object Number]"==ae.call(t)&&t==t)(t)&&isFinite(t)&&Math.floor(t)===t}),e&&!ce(e.crypto)&&crypto.getRandomValues;var Wr=null,Yr={i:function(){if(!de(Wr))return Wr;var t=!0;if(ce(e))t=!1;else try{var r="__mplssupport__";Yr.p(r,"xyz"),'"xyz"'!==Yr.h(r)&&(t=!1),Yr.v(r)}catch(e){t=!1}return t||me.error("localStorage unsupported; falling back to cookie store"),Wr=t,t},m:function(t){me.error("localStorage error: "+t)},h:function(t){try{return null==e?void 0:e.localStorage.getItem(t)}catch(t){Yr.m(t)}return null},k:function(t){try{return JSON.parse(Yr.h(t))||{}}catch(t){}return null},p:function(t,r){try{null==e||e.localStorage.setItem(t,JSON.stringify(r))}catch(t){Yr.m(t)}},v:function(t){try{null==e||e.localStorage.removeItem(t)}catch(t){Yr.m(t)}}},Xr=null,Gr={i:function(){if(!de(Xr))return Xr;if(Xr=!0,ce(e))Xr=!1;else try{var t="__support__";Gr.p(t,"xyz"),'"xyz"'!==Gr.h(t)&&(Xr=!1),Gr.v(t)}catch(t){Xr=!1}return Xr},m:function(t){me.error("sessionStorage error: ",t)},h:function(t){try{return null==e?void 0:e.sessionStorage.getItem(t)}catch(t){Gr.m(t)}return null},k:function(t){try{return JSON.parse(Gr.h(t))||null}catch(t){}return null},p:function(t,r){try{null==e||e.sessionStorage.setItem(t,JSON.stringify(r))}catch(t){Gr.m(t)}},v:function(t){try{null==e||e.sessionStorage.removeItem(t)}catch(t){Gr.m(t)}}},Jr="ph_product_tour_completed_",Kr="ph_product_tour_dismissed_",tn="ph_active_product_tour";function en(t){var e,r;return!!(null!=(e=t.conditions)&&e.events&&(null==(r=t.conditions.events.values)?void 0:r.length)>0)}function rn(t){var e,r;return!!(null!=(e=t.conditions)&&e.actions&&(null==(r=t.conditions.actions.values)?void 0:r.length)>0)}class nn{constructor(){this.T={},this.T={}}on(t,e){return this.T[t]||(this.T[t]=[]),this.T[t].push(e),()=>{this.T[t]=this.T[t].filter((t=>t!==e))}}emit(t,e){for(var r of this.T[t]||[])r(e);for(var n of this.T["*"]||[])n(t,e)}}function on(t,e,r){if(pe(t))return!1;switch(r){case"exact":return t===e;case"contains":var n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch(t){return!1}default:return!1}}class ln{constructor(t){this.C=new nn,this.S=(t,e)=>this.q(t,e)&&this.A(t,e)&&this.M(t,e)&&this.$(t,e),this.q=(t,e)=>null==e||!e.event||(null==t?void 0:t.event)===(null==e?void 0:e.event),this._instance=t,this.L=new Set,this.I=new Set}init(){var t;if(!ce(null==(t=this._instance)?void 0:t.j)){var e;null==(e=this._instance)||e.j(((t,e)=>{this.on(t,e)}))}}register(t){var e,r;if(!ce(null==(e=this._instance)?void 0:e.j)&&(t.forEach((t=>{var e,r;null==(e=this.I)||e.add(t),null==(r=t.steps)||r.forEach((t=>{var e;null==(e=this.L)||e.add((null==t?void 0:t.event)||"")}))})),null!=(r=this._instance)&&r.autocapture)){var n,o=new Set;t.forEach((t=>{var e;null==(e=t.steps)||e.forEach((t=>{null!=t&&t.selector&&o.add(null==t?void 0:t.selector)}))})),null==(n=this._instance)||n.autocapture.setElementSelectors(o)}}on(t,e){var r;null!=e&&0!=t.length&&(this.L.has(t)||this.L.has(null==e?void 0:e.event))&&this.I&&(null==(r=this.I)?void 0:r.size)>0&&this.I.forEach((t=>{this.R(e,t)&&this.C.emit("actionCaptured",t.name)}))}Z(t){this.onAction("actionCaptured",(e=>t(e)))}R(t,e){if(null==(null==e?void 0:e.steps))return!1;for(var r of e.steps)if(this.S(t,r))return!0;return!1}onAction(t,e){return this.C.on(t,e)}A(t,e){if(null!=e&&e.url){var r,n=null==t||null==(r=t.properties)?void 0:r.$current_url;if(!n||"string"!=typeof n)return!1;if(!on(n,e.url,e.url_matching||"contains"))return!1}return!0}M(t,e){return!!this.D(t,e)&&(!!this.P(t,e)&&!!this.O(t,e))}D(t,e){var r;if(null==e||!e.href)return!0;var n=this.N(t);if(n.length>0)return n.some((t=>on(t.href,e.href,e.href_matching||"exact")));var o,i=(null==t||null==(r=t.properties)?void 0:r.$elements_chain)||"";return!!i&&on((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",e.href,e.href_matching||"exact")}P(t,e){var r;if(null==e||!e.text)return!0;var n=this.N(t);if(n.length>0)return n.some((t=>on(t.text,e.text,e.text_matching||"exact")||on(t.$el_text,e.text,e.text_matching||"exact")));var o,i,l,u=(null==t||null==(r=t.properties)?void 0:r.$elements_chain)||"";return!!u&&(o=function(t){for(var e,r=[],n=/(?::|")text="(.*?)"/g;!pe(e=n.exec(t));)r.includes(e[1])||r.push(e[1]);return r}(u),i=e.text,l=e.text_matching||"exact",o.some((t=>on(t,i,l))))}O(t,e){var r,n;if(null==e||!e.selector)return!0;var o=null==t||null==(r=t.properties)?void 0:r.$element_selectors;if(null!=o&&o.includes(e.selector))return!0;var i=(null==t||null==(n=t.properties)?void 0:n.$elements_chain)||"";if(e.selector_regex&&i)try{return new RegExp(e.selector_regex).test(i)}catch(t){return!1}return!1}N(t){var e;return null==(null==t||null==(e=t.properties)?void 0:e.$elements)?[]:null==t?void 0:t.properties.$elements}$(t,e){return null==e||!e.properties||0===e.properties.length||Te(e.properties.reduce(((t,e)=>{var r=se(e.value)?e.value.map(String):null!=e.value?[String(e.value)]:[];return t[e.key]={values:r,operator:e.operator||"exact"},t}),{}),null==t?void 0:t.properties)}}class un{constructor(t){this._instance=t,this.F=new Map,this.H=new Map,this.V=new Map}B(t,e){return!!t&&Te(t.propertyFilters,null==e?void 0:e.properties)}U(t,e){var r=new Map;return t.forEach((t=>{var n;null==(n=t.conditions)||null==(n=n[e])||null==(n=n.values)||n.forEach((e=>{if(null!=e&&e.name){var n=r.get(e.name)||[];n.push(t.id),r.set(e.name,n)}}))})),r}W(t,e,r){var n=(r===Q.Activation?this.F:this.H).get(t),o=[];return this.Y((t=>{o=t.filter((t=>null==n?void 0:n.includes(t.id)))})),o.filter((n=>{var o,i=null==(o=n.conditions)||null==(o=o[r])||null==(o=o.values)?void 0:o.find((e=>e.name===t));return this.B(i,e)}))}register(t){var e;ce(null==(e=this._instance)?void 0:e.j)||(this.X(t),this.G(t))}G(t){var e=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.actions)&&(null==(r=t.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0}));if(0!==e.length){if(null==this.J){this.J=new ln(this._instance),this.J.init();this.J.Z((t=>{this.onAction(t)}))}e.forEach((t=>{var e,r,n,o,i;t.conditions&&null!=(e=t.conditions)&&e.actions&&null!=(r=t.conditions)&&null!=(r=r.actions)&&r.values&&(null==(n=t.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(o=this.J)||o.register(t.conditions.actions.values),null==(i=t.conditions)||null==(i=i.actions)||null==(i=i.values)||i.forEach((e=>{if(e&&e.name){var r=this.V.get(e.name);r&&r.push(t.id),this.V.set(e.name,r||[t.id])}})))}))}}X(t){var e,r=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.events)&&(null==(r=t.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.length)>0})),n=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.cancelEvents)&&(null==(r=t.conditions)||null==(r=r.cancelEvents)||null==(r=r.values)?void 0:r.length)>0}));if(0!==r.length||0!==n.length){null==(e=this._instance)||e.j(((t,e)=>{this.onEvent(t,e)})),this.F=this.U(t,Q.Activation),this.H=this.U(t,Q.Cancellation)}}onEvent(t,e){var r,n=this.K(),o=this.tt(),i=this.et(),l=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[o])||[];if(i===t&&e&&l.length>0){var u,a;n.info("event matched, removing item from activated items",{event:t,eventPayload:e,existingActivatedItems:l});var s=(null==e||null==(u=e.properties)?void 0:u.$survey_id)||(null==e||null==(a=e.properties)?void 0:a.$product_tour_id);if(s){var c=l.indexOf(s);c>=0&&(l.splice(c,1),this.rt(l))}}else{if(this.H.has(t)){var d=this.W(t,e,Q.Cancellation);d.length>0&&(n.info("cancel event matched, cancelling items",{event:t,itemsToCancel:d.map((t=>t.id))}),d.forEach((t=>{var e=l.indexOf(t.id);e>=0&&l.splice(e,1),this.nt(t.id)})),this.rt(l))}if(this.F.has(t)){n.info("event name matched",{event:t,eventPayload:e,items:this.F.get(t)});var p=this.W(t,e,Q.Activation);this.rt(l.concat(p.map((t=>t.id))||[]))}}}onAction(t){var e,r=this.tt(),n=(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[r])||[];this.V.has(t)&&this.rt(n.concat(this.V.get(t)||[]))}rt(t){var e,r=this.K(),n=this.tt(),o=[...new Set(t)].filter((t=>!this.ot(t)));r.info("updating activated items",{activatedItems:o}),null==(e=this._instance)||null==(e=e.persistence)||e.register({[n]:o})}getActivatedIds(){var t,e=this.tt(),r=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[e];return r||[]}getEventToItemsMap(){return this.F}it(){return this.J}}var an=ge("[Product Tour Event Receiver]");class sn extends un{constructor(t){super(t)}tt(){return"$product_tours_activated"}et(){return"product tour shown"}Y(t){var e;null==(e=this._instance)||null==(e=e.productTours)||e.getProductTours(t)}nt(t){var e;null==(e=this._instance)||null==(e=e.productTours)||e.cancelPendingTour(t)}K(){return an}ot(t){if(!t)return!0;var e=""+Jr+t,r=""+Kr+t;return!(!Yr.h(e)&&!Yr.h(r))}getTours(){return this.getActivatedIds()}}var cn=ge("[Product Tours]"),dn=o,pn=e;function hn(t){var e=new Date;if(t.start_date&&e<new Date(t.start_date))return!1;if(t.end_date&&e>new Date(t.end_date))return!1;return!0}function fn(t){return hn(t)&&function(t){var e,r=t.conditions;if(null==r||!r.url)return!0;var n=null==pn||null==(e=pn.location)?void 0:e.href;if(!n)return!1;var o=r.urlMatchType||le.Icontains;if(o===le.Exact)return ar(n)===ar(r.url);var i=[r.url];return we[o](i,[n])}(t)}var vn="ph-product-tour-container",mn="data-ph-tour-trigger";class gn{constructor(t){var e=this;this.ut=null,this.st=0,this.ct=!1,this.dt=!1,this.ht=null,this.ft=new Map,this.vt=new Map,this.bt=new Set,this.yt=()=>{dn.hidden&&this.ht?(clearInterval(this.ht),this.ht=null):dn.hidden||this.ht||(this.ht=setInterval((()=>{this._t()}),1e3),this._t())},this.nextStep=()=>{if(this.ut){var t=this.ut.steps[this.st];this.xt("product tour step completed",{$product_tour_id:this.ut.id,$product_tour_step_id:t.id,$product_tour_step_order:this.st}),this.st<this.ut.steps.length-1?(this.wt(this.st+1),this.kt()):this.Tt()}},this.previousStep=()=>{this.ut&&0!==this.st&&(this.wt(this.st-1),this.kt())},this.dismissTour=function(t){if(void 0===t&&(t="user_clicked_skip"),e.ut){var r=e.ut.steps[e.st];e.xt("product tour dismissed",{$product_tour_id:e.ut.id,$product_tour_step_id:r.id,$product_tour_step_order:e.st,$product_tour_dismiss_reason:t}),e.ct||Yr.p(""+Kr+e.ut.id,!0),pn.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:e.ut.id,reason:t}})),e.Ct()}},this.St=t=>{switch(t.action){case"dismiss":this.dismissTour("user_clicked_skip");break;case"next_step":this.nextStep();break;case"previous_step":this.previousStep();break;case"trigger_tour":t.tourId&&(this.Ct(),this.showTourById(t.tourId))}},this._instance=t,this.qt=new sn(t)}wt(t){this.st=t,this.At()}At(){this.ut&&!this.ct&&Gr.p(tn,{tourId:this.ut.id,stepIndex:this.st})}Mt(){Gr.v(tn)}$t(){var t=Gr.h(tn);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.ht){var t=this.$t();t?this.Lt(t.tourId,t.stepIndex,(()=>{this.Et()})):this.Et()}}Et(){this.ht=setInterval((()=>{this._t()}),1e3),this._t(),_e(dn,"visibilitychange",this.yt)}Lt(t,e,r){var n;null==(n=this._instance.productTours)||n.getProductTours((n=>{var o=n.find((e=>e.id===t));o?(this.ut=o,this.st=e,this.dt=!0,this.kt()):n.length>0&&this.Mt(),r()}))}stop(){this.ht&&(clearInterval(this.ht),this.ht=null),dn.removeEventListener("visibilitychange",this.yt),this.It(),this.jt(),this.Ct()}_t(){var t;null!=dn&&dn.getElementById("__POSTHOG_TOOLBAR__")||null==(t=this._instance.productTours)||t.getProductTours((t=>{if(0!==t.length){var e=new Set,r=t.filter((t=>!this.bt.has(t.id)&&(en(t)||rn(t))));r.length>0&&(this.qt.register(r),r.forEach((t=>this.bt.add(t.id))));var n=this.ut?[]:this.qt.getTours();for(var o of t){var i,l=null==(i=o.conditions)?void 0:i.selector;if(l&&(e.add(o.id),this.zt(o,l)),!this.ut){var u=rn(o)||en(o);if(o.auto_launch&&this.Rt(o)){if(!u){this.Zt(o,"auto");continue}n.includes(o.id)&&this.Zt(o,"event")}}}this.ft.forEach((t=>{var{tour:r}=t;e.has(r.id)||this.Dt(r.id)}))}else this.It()}))}Zt(t,e){var r,n=(null==(r=t.conditions)?void 0:r.autoShowDelaySeconds)||0;n>0?this.isTourPending(t.id)||this.queueTourWithDelay(t.id,n,e):this.showTour(t,{reason:e})}Rt(t){if(!fn(t))return cn.info("Tour "+t.id+" failed conditions check"),!1;var e,r=""+Jr+t.id,n=""+Kr+t.id;if(Yr.h(r)||Yr.h(n))return cn.info("Tour "+t.id+" already completed or dismissed"),!1;if(t.internal_targeting_flag_key&&!(null==(e=this._instance.featureFlags)?void 0:e.getFeatureFlag(t.internal_targeting_flag_key)))return cn.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;return!0}showTour(t,e){var r,n=null!==(r=null==e?void 0:e.reason)&&void 0!==r?r:"auto";this.cancelPendingTour(t.id);for(var o=[],i=0;i<t.steps.length;i++){var l=t.steps[i];if(l.selector){var u=or(l.selector);"not_found"!==u.error&&"not_visible"!==u.error||o.push({stepIndex:i,stepId:l.id,selector:l.selector,error:u.error,matchCount:u.matchCount})}}if(o.length>0){for(var a of o)this.xt("product tour step selector failed",{$product_tour_id:t.id,$product_tour_step_id:a.stepId,$product_tour_step_order:a.stepIndex,$product_tour_step_selector:a.selector,$product_tour_error:a.error,$product_tour_matches_count:a.matchCount,$product_tour_failure_phase:"validation"});var s=o.map((t=>"Step "+t.stepIndex+': "'+t.selector+'" ('+t.error+")"));if(cn.warn('Tour "'+t.name+'" ('+t.id+"): "+o.length+" selector(s) failed to match:\n - "+s.join("\n - ")+(!0===(null==e?void 0:e.enableStrictValidation)?"\n\nenableStrictValidation is true, not displaying tour.":"")),!0===(null==e?void 0:e.enableStrictValidation))return}this.ut=t,this.wt(0),this.xt("product tour shown",{$product_tour_id:t.id,$product_tour_name:t.name,$product_tour_iteration:t.current_iteration||1,$product_tour_render_reason:n}),this.kt()}showTourById(t,e){var r;cn.info("showTourById("+t+")"),null==(r=this._instance.productTours)||r.getProductTours((r=>{var n=r.find((e=>e.id===t));n?this.showTour(n,{reason:null!=e?e:"api"}):cn.warn("could not find tour",t)}))}previewTour(t){cn.info("Previewing tour "+t.id),this.Ct(),this.ct=!0,this.ut=t,this.st=0,this.kt()}Tt(){this.ut&&(this.xt("product tour completed",{$product_tour_id:this.ut.id,$product_tour_steps_count:this.ut.steps.length}),this.ct||(Yr.p(""+Jr+this.ut.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.ut.id]:!0}})),pn.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.ut.id}})),this.Ct())}kt(t){if(void 0===t&&(t=0),this.ut){var e=this.ut.steps[this.st];if(!e)return cn.warn("Step "+this.st+" not found in tour "+this.ut.id),void this.Ct();if("banner"===e.type)return this.xt("product tour step shown",{$product_tour_id:this.ut.id,$product_tour_step_id:e.id,$product_tour_step_order:this.st,$product_tour_step_type:"banner"}),this.dt=!1,void this.Pt();if("survey"!==e.type){if("modal"===e.type)return this.xt("product tour step shown",{$product_tour_id:this.ut.id,$product_tour_step_id:e.id,$product_tour_step_order:this.st,$product_tour_step_type:"modal"}),this.dt=!1,void this.Ot(null);if(e.selector){var r,n=or(e.selector),o=e.inferenceData?{$inference_data_present:!0,$inference_found:!!(r=kr(e.inferenceData)),$inference_matches_selector:n.element===r}:{$inference_data_present:!1},i=this.st>0?this.ut.steps[this.st-1]:null,u="click"===(null==i?void 0:i.progressionTrigger)||this.dt;if("not_found"===n.error||"not_visible"===n.error){if(u&&t<20)return void setTimeout((()=>{this.kt(t+1)}),100);var a=100*t;return this.xt("product tour step selector failed",l({$product_tour_id:this.ut.id,$product_tour_step_id:e.id,$product_tour_step_order:this.st,$product_tour_step_selector:e.selector,$product_tour_error:n.error,$product_tour_matches_count:n.matchCount,$product_tour_failure_phase:"runtime",$product_tour_waited_for_element:u,$product_tour_wait_duration_ms:a},o)),cn.warn('Tour "'+this.ut.name+'" dismissed: element for step '+this.st+" became unavailable ("+n.error+")"+(u?" after waiting "+a+"ms":"")),void this.dismissTour("element_unavailable")}if("multiple_matches"===n.error&&this.xt("product tour step selector failed",l({$product_tour_id:this.ut.id,$product_tour_step_id:e.id,$product_tour_step_order:this.st,$product_tour_step_selector:e.selector,$product_tour_error:n.error,$product_tour_matches_count:n.matchCount,$product_tour_failure_phase:"runtime"},o)),n.element){var s=n.element,c=function(t){var e;return{tag:t.tagName,id:t.id||void 0,classes:t.className||void 0,text:(null==(e=t.innerText)?void 0:e.slice(0,100))||void 0}}(s);this.xt("product tour step shown",l({$product_tour_id:this.ut.id,$product_tour_step_id:e.id,$product_tour_step_order:this.st,$product_tour_step_selector:e.selector,$product_tour_step_selector_found:!0,$product_tour_step_element_tag:c.tag,$product_tour_step_element_id:c.id,$product_tour_step_element_classes:c.classes,$product_tour_step_element_text:c.text},o)),this.dt=!1,this.Ot(s)}}else cn.warn("Unable to render element step - no selector defined.")}else e.survey?this.Nt():cn.warn("Unable to render survey step - survey data not found")}}Ot(t,e,r){if(this.ut){var n=this.ut.steps[this.st],{shadow:o}=function(t){var e=vn+"-"+t.id,r=dn.querySelector("."+e);if(r&&r.shadowRoot)return{shadow:r.shadowRoot,isNewlyCreated:!1};var n=dn.createElement("div");n.className=e,lr(n,t.appearance);var o=n.attachShadow({mode:"open"}),i=nr();return i&&o.appendChild(i),dn.body.appendChild(n),{shadow:o,isNewlyCreated:!0}}(this.ut);U(Cr(Hr,{tour:this.ut,step:n,stepIndex:this.st,totalSteps:this.ut.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:r||this.dismissTour,onSurveySubmit:e,onButtonClick:this.St}),o)}}Pt(){if(this.ut){var t=this.ut.steps[this.st],{shadow:e}=function(t){var e=vn+"-"+t.id,r=dn.querySelector("."+e);if(r&&r.shadowRoot)return{shadow:r.shadowRoot,isNewlyCreated:!1};var n=dn.createElement("div");n.className=e,lr(n,t.appearance);var o=n.attachShadow({mode:"open"}),i=nr();return i&&o.appendChild(i),dn.body.insertBefore(n,dn.body.firstChild),{shadow:o,isNewlyCreated:!0}}(this.ut);U(Cr(Qr,{step:t,onDismiss:()=>this.dismissTour("user_clicked_skip"),onTriggerTour:()=>{var e,r=null==(e=t.bannerConfig)||null==(e=e.action)?void 0:e.tourId;r&&(this.Ct(),this.showTourById(r))}}),e)}}Nt(){var t,e,r;if(this.ut){var n=this.ut.id,o=this.ut.steps[this.st],i=o.linkedSurveyId,u=o.linkedSurveyQuestionId,a=(null==(t=o.survey)?void 0:t.questionText)||"";this.xt("product tour step shown",{$product_tour_id:this.ut.id,$product_tour_step_id:o.id,$product_tour_step_order:this.st,$product_tour_step_type:"survey",$product_tour_linked_survey_id:i}),this.xt(G.SHOWN,{[J.SURVEY_ID]:i,[J.PRODUCT_TOUR_ID]:n,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)});this.Ot(null,(t=>{var e,r,o=u?"$survey_response_"+u:"$survey_response";this.xt(G.SENT,l({[J.SURVEY_ID]:i,[J.PRODUCT_TOUR_ID]:n,[J.SURVEY_QUESTIONS]:[{id:u,question:a,response:t}],[J.SURVEY_COMPLETED]:!0,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)},!de(t)&&{[o]:t})),cn.info("Survey "+i+" completed",de(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var e,r;this.xt(G.DISMISSED,{[J.SURVEY_ID]:i,[J.PRODUCT_TOUR_ID]:n,[J.SURVEY_QUESTIONS]:[{id:u,question:a,response:null}],[J.SURVEY_PARTIALLY_COMPLETED]:!1,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)}),cn.info("Survey "+i+" dismissed"),this.dismissTour(t)})),cn.info("Rendered survey step for tour step "+this.st)}}Ct(){var t,e,r;this.ut&&(t=this.ut.id,e=vn+"-"+t,null!=(r=dn.querySelector("."+e))&&r.shadowRoot&&U(null,r.shadowRoot),null==r||r.remove()),this.ut=null,this.st=0,this.ct=!1,this.dt=!1,this.Mt()}zt(t,e){var r=dn.querySelector(e),n=this.ft.get(t.id);if(r){if(n){if(r===n.element)return;cn.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Dt(t.id)}if(!r.hasAttribute(mn)){var o=r=>{r.stopPropagation(),this.ut?cn.info("Tour "+t.id+" trigger clicked but another tour is active"):hn(t)?(cn.info("Tour "+t.id+" triggered by click on "+e),this.showTour(t,{reason:"trigger"})):cn.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")};_e(r,"click",o),r.setAttribute(mn,t.id),this.ft.set(t.id,{element:r,listener:o,tour:t}),cn.info("Attached trigger listener for tour "+t.id+" on "+e)}}else n&&this.Dt(t.id)}Dt(t){var e=this.ft.get(t);e&&(e.element.removeEventListener("click",e.listener),e.element.removeAttribute(mn),this.ft.delete(t),cn.info("Removed trigger listener for tour "+t))}It(){this.ft.forEach(((t,e)=>{this.Dt(e)}))}xt(t,e){this.ct||this._instance.capture(t,e)}getActiveProductTours(t){var e;null==(e=this._instance.productTours)||e.getProductTours(((e,r)=>{if(null!=r&&r.isLoaded){var n=e.filter((t=>this.Rt(t)));t(n,r)}else t([],r)}))}resetTour(t){Yr.v(""+Jr+t),Yr.v(""+Kr+t)}resetAllTours(){var t=null==pn?void 0:pn.localStorage;if(t){for(var e=[],r=0;r<t.length;r++){var n=t.key(r);(null!=n&&n.startsWith(Jr)||null!=n&&n.startsWith(Kr))&&e.push(n)}e.forEach((t=>Yr.v(t)))}}cancelPendingTour(t){var e=this.vt.get(t);e&&(clearTimeout(e),this.vt.delete(t),cn.info("Cancelled pending tour: "+t))}jt(){this.vt.forEach((t=>clearTimeout(t))),this.vt.clear()}isTourPending(t){return this.vt.has(t)}queueTourWithDelay(t,e,r){cn.info("Queueing tour "+t+" with "+e+"s delay");var n=setTimeout((()=>{this.vt.delete(t),cn.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,r)}),1e3*e);this.vt.set(t,n)}}function bn(t,e){if(o){var r=new gn(t);return e&&r.start(),r}}i.__PosthogExtensions__=i.__PosthogExtensions__||{},i.__PosthogExtensions__.generateProductTours=bn,t.default=bn,t.elementIsVisible=yr,t.findElement=kr,t.getElementPath=function(t,e){if(void 0===e&&(e=4),!t)return null;for(var r=[],n=t;n&&r.length<e&&"BODY"!==n.tagName;){var o=n.tagName.toLowerCase();n.id?o+="#"+n.id:n.classList.length&&(o+="."+n.classList[0]),r.unshift(o),n=n.parentElement}return r.join(" > ")},Object.defineProperty(t,"__esModule",{value:!0})}({});
2
2
  //# sourceMappingURL=product-tours.js.map