posthog-js 1.427.3 → 1.428.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all-external-dependencies.js +1 -1
- package/dist/all-external-dependencies.js.map +1 -1
- package/dist/array.full.es5.js +1 -1
- package/dist/array.full.es5.js.map +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.js.map +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.full.no-external.js.map +1 -1
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/array.no-external.js.map +1 -1
- package/dist/conversations.js +1 -1
- package/dist/conversations.js.map +1 -1
- package/dist/customizations.full.js +1 -1
- package/dist/customizations.full.js.map +1 -1
- package/dist/customizations.js +1 -1
- package/dist/customizations.js.map +1 -1
- package/dist/dead-clicks-autocapture.js +1 -1
- package/dist/dead-clicks-autocapture.js.map +1 -1
- package/dist/default-extensions.js +1 -1
- package/dist/default-extensions.js.map +1 -1
- package/dist/extension-bundles.js +1 -1
- package/dist/extension-bundles.js.map +1 -1
- package/dist/lazy-recorder.js +1 -1
- package/dist/lazy-recorder.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.full.js +1 -1
- package/dist/module.full.js.map +1 -1
- package/dist/module.full.no-external.js +1 -1
- package/dist/module.full.no-external.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.mjs +1 -1
- package/dist/module.mjs.map +1 -1
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/dist/module.slim.js +1 -1
- package/dist/module.slim.js.map +1 -1
- package/dist/module.slim.no-external.js +1 -1
- package/dist/module.slim.no-external.js.map +1 -1
- package/dist/posthog-recorder.js +1 -1
- package/dist/posthog-recorder.js.map +1 -1
- package/dist/product-tours.js +1 -1
- package/dist/surveys-preview.js +1 -1
- package/dist/surveys.js +1 -1
- package/lib/package.json +1 -1
- package/lib/src/extensions/replay/external/json-ld.js +1 -6
- package/lib/src/extensions/replay/external/json-ld.js.map +1 -1
- package/package.json +5 -5
package/dist/product-tours.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){function t(){return t=Object.assign?Object.assign.bind():function(t){for(var r=1;arguments.length>r;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},t.apply(null,arguments)}!function(r){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e="u">typeof window?window:void 0,n="u">typeof globalThis?globalThis:e,o=null==n?void 0:n.navigator,i=null==n?void 0:n.document;null!=n&&n.XMLHttpRequest&&new n.XMLHttpRequest;var a,l,u,s,c,h,f,d,p,v,m,g,b,y,w,_=null==o?void 0:o.userAgent,x={},k=[],T=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,C=Array.isArray;function S(t,r){for(var e in r)t[e]=r[e];return t}function A(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function q(t,r,e,n,o){var i={type:t,props:r,key:e,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(i),i}function M(t){return t.children}function j(t,r){this.props=t,this.context=r}function $(t,r){if(null==r)return t.__?$(t.__,t.__i+1):null;for(var e;t.__k.length>r;r++)if(null!=(e=t.__k[r])&&null!=e.__e)return e.__e;return"function"==typeof t.type?$(t):null}function E(t){if(t.__P&&t.__d){var r=t.__v,e=r.__e,n=[],o=[],i=S({},r);i.__v=r.__v+1,l.vnode&&l.vnode(i),B(t.__P,i,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,n,null==e?$(r):e,!!(32&r.__u),o),i.__v=r.__v,i.__.__k[i.__i]=i,V(n,i,o),r.__e=r.__=null,i.__e!=e&&I(i)}}function I(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some(function(r){if(null!=r&&null!=r.__e)return t.__e=t.__c.base=r.__e}),I(t)}function L(t){(!t.__d&&(t.__d=!0)&&s.push(t)&&!z.__r++||c!=l.debounceRendering)&&((c=l.debounceRendering)||h)(z)}function z(){try{for(var t,r=1;s.length;)s.length>r&&s.sort(f),t=s.shift(),r=s.length,E(t)}finally{s.length=z.__r=0}}function O(t,r,e,n,o,i,a,l,u,s,c){var h,f,d,p,v,m,g,b=n&&n.__k||k,y=r.length;for(u=R(e,r,b,u,y),h=0;y>h;h++)null!=(d=e.__k[h])&&(f=-1!=d.__i&&b[d.__i]||x,d.__i=h,m=B(t,d,f,o,i,a,l,u,s,c),p=d.__e,d.ref&&f.ref!=d.ref&&(f.ref&&W(f.ref,null,d),c.push(d.ref,d.__c||p,d)),null==v&&null!=p&&(v=p),(g=!!(4&d.__u))||f.__k===d.__k?(u=D(d,u,t,g),g&&f.__e&&(f.__e=null)):"function"==typeof d.type&&void 0!==m?u=m:p&&(u=p.nextSibling),d.__u&=-7);return e.__e=v,u}function R(t,r,e,n,o){var i,a,l,u,s,c=e.length,h=c,f=0;for(t.__k=new Array(o),i=0;o>i;i++)null!=(a=r[i])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=t.__k[i]=q(null,a,null,null,null):C(a)?a=t.__k[i]=q(M,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=t.__k[i]=q(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):t.__k[i]=a,u=i+f,a.__=t,a.__b=t.__b+1,l=null,-1!=(s=a.__i=P(a,e,u,h))&&(h--,(l=e[s])&&(l.__u|=2)),null==l||null==l.__v?(-1==s&&(o>c?f--:c>o&&f++),"function"!=typeof a.type&&(a.__u|=4)):s!=u&&(s==u-1?f--:s==u+1?f++:(s>u?f--:f++,a.__u|=4))):t.__k[i]=null;if(h)for(i=0;c>i;i++)null!=(l=e[i])&&!(2&l.__u)&&(l.__e==n&&(n=$(l)),Y(l,l));return n}function D(t,r,e,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&o.length>i;i++)o[i]&&(o[i].__=t,r=D(o[i],r,e,n));return r}t.__e!=r&&(n&&(r&&t.type&&!r.parentNode&&(r=$(t)),e.insertBefore(t.__e,r||null)),r=t.__e);do{r=r&&r.nextSibling}while(null!=r&&8==r.nodeType);return r}function P(t,r,e,n){var o,i,a,l=t.key,u=t.type,s=r[e],c=null!=s&&!(2&s.__u);if(null===s&&null==l||c&&l==s.key&&u==s.type)return e;if(n>(c?1:0))for(o=e-1,i=e+1;o>=0||r.length>i;)if(null!=(s=r[a=0>o?i++:o--])&&!(2&s.__u)&&l==s.key&&u==s.type)return a;return-1}function N(t,r,e){"-"==r[0]?t.setProperty(r,null==e?"":e):t[r]=null==e?"":"number"!=typeof e||T.test(r)?e:e+"px"}function Z(t,r,e,n,o){var i,a;t:if("style"==r)if("string"==typeof e)t.style.cssText=e;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(r in n)e&&r in e||N(t.style,r,"");if(e)for(r in e)n&&e[r]==n[r]||N(t.style,r,e[r])}else if("o"==r[0]&&"n"==r[1])i=r!=(r=r.replace(m,"$1")),a=r.toLowerCase(),r=a in t||"onFocusOut"==r||"onFocusIn"==r?a.slice(2):r.slice(2),t.l||(t.l={}),t.l[r+i]=e,e?n?e[v]=n[v]:(e[v]=g,t.addEventListener(r,i?y:b,i)):t.removeEventListener(r,i?y:b,i);else{if("http://www.w3.org/2000/svg"==o)r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=r&&"height"!=r&&"href"!=r&&"list"!=r&&"form"!=r&&"tabIndex"!=r&&"download"!=r&&"rowSpan"!=r&&"colSpan"!=r&&"role"!=r&&"popover"!=r&&r in t)try{t[r]=null==e?"":e;break t}catch(t){}"function"==typeof e||(null==e||!1===e&&"-"!=r[4]?t.removeAttribute(r):t.setAttribute(r,"popover"==r&&1==e?"":e))}}function F(t){return function(r){if(this.l){var e=this.l[r.type+t];if(null==r[p])r[p]=g++;else if(e[v]>r[p])return;return e(l.event?l.event(r):r)}}}function B(t,r,e,n,o,i,a,u,s,c){var h,f,d,p,v,m,g,b,y,w,$,_,x,T,q,E,I=r.type;if(void 0!==r.constructor)return null;128&e.__u&&(s=!!(32&e.__u),i=[u=r.__e=e.__e]),(h=l.__b)&&h(r);t:if("function"==typeof I){f=a.length;try{if(y=r.props,w=I.prototype&&I.prototype.render,$=(h=I.contextType)&&n[h.__c],_=h?$?$.props.value:h.__:n,e.__c?b=(d=r.__c=e.__c).__=d.__E:(w?r.__c=d=new I(y,_):(r.__c=d=new j(y,_),d.constructor=I,d.render=G),$&&$.sub(d),d.state||(d.state={}),d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),w&&null==d.__s&&(d.__s=d.state),w&&null!=I.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=S({},d.__s)),S(d.__s,I.getDerivedStateFromProps(y,d.__s))),v=d.props,m=d.state,d.__v=r,p)w&&null==I.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),w&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(w&&null==I.getDerivedStateFromProps&&y!==v&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,_),r.__v==e.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,_)){r.__v!=e.__v&&(d.props=y,d.state=d.__s,d.__d=!1),r.__e=e.__e,r.__k=e.__k,r.__k.some(function(t){t&&(t.__=r)}),k.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&a.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,_),w&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(v,m,g)})}if(d.context=_,d.props=y,d.__P=t,d.__e=!1,x=l.__r,T=0,w)d.state=d.__s,d.__d=!1,x&&x(r),h=d.render(d.props,d.state,d.context),k.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,x&&x(r),h=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&25>++T);d.state=d.__s,null!=d.getChildContext&&(n=S(S({},n),d.getChildContext())),w&&!p&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(v,m)),q=null!=h&&h.type===M&&null==h.key?U(h.props.children):h,u=O(t,C(q)?q:[q],r,e,n,o,i,a,u,s,c),d.base=r.__e,r.__u&=-161,d.__h.length&&a.push(d),b&&(d.__E=d.__=null)}catch(t){if(a.length=f,r.__v=null,s||null!=i)if(t.then){for(r.__u|=s?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;null!=i&&(i[i.indexOf(u)]=null),r.__e=u}else{if(null!=i)for(E=i.length;E--;)A(i[E]);H(r)}else r.__e=e.__e,!r.__k&&e.__k&&(r.__k=e.__k),t.then||H(r);l.__e(t,r,e)}}else null==i&&r.__v==e.__v?(r.__k=e.__k,r.__e=e.__e):u=r.__e=Q(e.__e,r,e,n,o,i,a,s,c);return(h=l.diffed)&&h(r),128&r.__u?void 0:u}function H(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(H))}function V(t,r,e){for(var n=0;e.length>n;n++)W(e[n],e[++n],e[++n]);l.__c&&l.__c(r,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(t){t.call(r)})}catch(t){l.__e(t,r.__v)}})}function U(t){return"object"!=typeof t||null==t||t.__b>0?t:C(t)?t.map(U):void 0!==t.constructor?null:S({},t)}function Q(t,r,e,n,o,i,u,s,c){var h,f,d,p,v,m,g,b=e.props||x,y=r.props,w=r.type;if("svg"==w?o="http://www.w3.org/2000/svg":"math"==w?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(h=0;i.length>h;h++)if((v=i[h])&&"setAttribute"in v==!!w&&(w?v.localName==w:3==v.nodeType)){t=v,i[h]=null;break}if(null==t){if(null==w)return document.createTextNode(y);t=document.createElementNS(o,w,y.is&&y),s&&(l.__m&&l.__m(r,i),s=!1),i=null}if(null==w)b===y||s&&t.data==y||(t.data=y);else{if(i="textarea"==w&&null!=y.defaultValue?null:i&&a.call(t.childNodes),!s&&null!=i)for(b={},h=0;t.attributes.length>h;h++)b[(v=t.attributes[h]).name]=v.value;for(h in b)v=b[h],"dangerouslySetInnerHTML"==h?d=v:"children"==h||h in y||"value"==h&&"defaultValue"in y||"checked"==h&&"defaultChecked"in y||Z(t,h,null,v,o);for(h in y)v=y[h],"children"==h?p=v:"dangerouslySetInnerHTML"==h?f=v:"value"==h?m=v:"checked"==h?g=v:s&&"function"!=typeof v||b[h]===v||Z(t,h,v,b[h],o);if(f)s||d&&(f.__html==d.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),r.__k=[];else if(d&&(t.innerHTML=""),O("template"==r.type?t.content:t,C(p)?p:[p],r,e,n,"foreignObject"==w?"http://www.w3.org/1999/xhtml":o,i,u,i?i[0]:e.__k&&$(e,0),s,c),null!=i)for(h=i.length;h--;)A(i[h]);s&&"textarea"!=w||(h="value","progress"==w&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[h]||"progress"==w&&!m||"option"==w&&m!=b[h])&&Z(t,h,m,b[h],o),h="checked",null!=g&&g!=t[h]&&Z(t,h,g,b[h],o))}return t}function W(t,r,e){try{if("function"==typeof t){var n="function"==typeof t.__u;n&&t.__u(),n&&null==r||(t.__u=t(r))}else t.current=r}catch(t){l.__e(t,e)}}function Y(t,r,e){var n,o;if(l.unmount&&l.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||W(n,null,r)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){l.__e(t,r)}n.base=n.__P=n.__n=null}if(n=t.__k)for(o=0;n.length>o;o++)n[o]&&Y(n[o],r,e||"function"!=typeof t.type);e||A(t.__e),t.__c=t.__=t.__e=void 0}function G(t,r,e){return this.constructor(t,e)}function K(t,r,e){var n,o,i,u;r==document&&(r=document.documentElement),l.__&&l.__(t,r),o=(n="function"==typeof e)?null:e&&e.__k||r.__k,i=[],u=[],B(r,t=(!n&&e||r).__k=function(t,r,e){var n,o,i,l={};for(i in r)"key"==i?n=r[i]:"ref"==i?o=r[i]:l[i]=r[i];if(arguments.length>2&&(l.children=arguments.length>3?a.call(arguments,2):e),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return q(t,l,n,o,null)}(M,null,[t]),o||x,x,r.namespaceURI,!n&&e?[e]:o?null:r.firstChild?a.call(r.childNodes):null,i,!n&&e?e:o?o.__e:r.firstChild,n,u),V(i,t,u),t.props.children=null}a=k.slice,l={__e(t,r,e,n){for(var o,i,a;r=r.__;)if((o=r.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,n||{}),a=o.__d),a)return o.__E=o}catch(r){t=r}throw t}},u=0,j.prototype.setState=function(t,r){var e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=S({},this.state);"function"==typeof t&&(t=t(S({},e),this.props)),t&&S(e,t),null!=t&&this.__v&&(r&&this._sb.push(r),L(this))},j.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),L(this))},j.prototype.render=M,s=[],h="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(t,r){return t.__v.__b-r.__v.__b},z.__r=0,d=Math.random().toString(8),p="__d"+d,v="__a"+d,m=/(PointerCapture)$|Capture$/i,g=0,b=F(!1),y=F(!0),w=0;var J="$product_tours_activated",X="$product_tours_activated_session",tt={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},rt="product tour shown",et="$product_tour_id",nt="$product_tour_name",ot="$product_tour_iteration",it="$product_tour_render_reason",at="$product_tour_step_id",lt="$product_tour_step_order",ut="$product_tour_step_type",st="$product_tour_dismiss_reason",ct="$product_tour_button_text",ht="$product_tour_button_action",ft="$product_tour_button_link",dt="$product_tour_button_tour_id",pt="$product_tour_steps_count",vt="$product_tour_step_selector",mt="$product_tour_step_selector_found",gt="$product_tour_step_element_tag",bt="$product_tour_step_element_id",yt="$product_tour_step_element_classes",wt="$product_tour_step_element_text",_t="$product_tour_error",xt="$product_tour_matches_count",kt="$product_tour_failure_phase",Tt="$product_tour_waited_for_element",Ct="$product_tour_wait_duration_ms",St="$product_tour_banner_selector",At="$product_tour_linked_survey_id",qt="$use_manual_selector",Mt="$inference_data_present",jt="$product_tour_type",Et="events",It="cancelEvents",Lt="$survey_id",zt="$survey_partially_completed",Ot="$survey_questions",Rt="$survey_completed",Dt="$product_tour_id",$t=Object.prototype,Pt=$t.hasOwnProperty,Nt=$t.toString,Zt=Array.isArray||function(t){return"[object Array]"===Nt.call(t)},Ft=t=>"function"==typeof t,Bt=t=>void 0===t,Ht=t=>null===t,Vt=t=>Bt(t)||Ht(t),Ut=t=>"[object Number]"==Nt.call(t)&&t==t,Qt=(t,r,e)=>{function n(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;o>a;a++)i[a-1]=arguments[a];r(()=>{(0,e[n])(t,...i)})}return{debug(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("debug",...r)},info(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("log",...r)},warn(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("warn",...r)},error(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("error",...r)},critical(){for(var r=arguments.length,n=new Array(r),o=0;r>o;o++)n[o]=arguments[o];e.error(t,...n)},createLogger:n=>Qt(t+" "+n,r,e)}},Wt="Mobile",Yt="Tablet",Gt="Android Tablet",Kt="iPad",Jt="Apple Watch",Xt="Nintendo",tr="PlayStation",rr="Xbox",er="Nokia",nr="Ouya",or="Generic "+Wt.toLowerCase(),ir="Generic "+Yt.toLowerCase(),ar=new RegExp(rr,"i"),lr=new RegExp("PlayStation \\w+","i"),ur=new RegExp("Nintendo \\w+","i"),sr=new RegExp("BlackBerry|PlayBook|BB10","i");new RegExp(Xt,"i"),new RegExp(tr,"i"),new RegExp("Windows","i");function cr(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);r>e;e++)n[e]=t[e];return n}function hr(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,l=[],u=!0,s=!1;try{if(i=(e=e.call(t)).next,0===r);else for(;!(u=(n=i.call(e)).done)&&(l.push(n.value),l.length!==r);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,r)||function(t,r){if(t){if("string"==typeof t)return cr(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?cr(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var fr=Object.entries,dr=Object.setPrototypeOf,pr=Object.isFrozen,vr=Object.getPrototypeOf,mr=Object.getOwnPropertyDescriptor,gr=Object.freeze,br=Object.seal,yr=Object.create,wr="undefined"!=typeof Reflect&&Reflect,_r=wr.apply,xr=wr.construct;gr||(gr=function(t){return t}),br||(br=function(t){return t}),_r||(_r=function(t,r){for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;e>o;o++)n[o-2]=arguments[o];return t.apply(r,n)}),xr||(xr=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;r>n;n++)e[n-1]=arguments[n];return new t(...e)});var kr,Tr=Hr([].forEach),Cr=Hr([].lastIndexOf),Sr=Hr([].pop),Ar=Hr([].push),qr=Hr([].splice),Mr=Array.isArray,jr=Hr("".toLowerCase),Er=Hr("".toString),Ir=Hr("".match),Lr=Hr("".replace),zr=Hr("".indexOf),Or=Hr("".trim),Rr=Hr((0).toString),Dr=Hr(Boolean.prototype.toString),$r="undefined"==typeof BigInt?null:Hr(BigInt.prototype.toString),Pr="undefined"==typeof Symbol?null:Hr(Symbol.prototype.toString),Nr=Hr({}.hasOwnProperty),Zr=Hr({}.toString),Fr=Hr(/t/.test),Br=(kr=TypeError,function(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];return xr(kr,r)});function Hr(t){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;e>o;o++)n[o-1]=arguments[o];return _r(t,r,n)}}function Vr(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jr;if(dr&&dr(t,null),!Mr(r))return t;for(var n=r.length;n--;){var o=r[n];if("string"==typeof o){var i=e(o);i!==o&&(pr(r)||(r[n]=i),o=i)}t[o]=!0}return t}function Ur(t){for(var r=0;t.length>r;r++)Nr(t,r)||(t[r]=null);return t}function Qr(t){var r=yr(null);for(var e of fr(t)){var n=hr(e,2),o=n[0],i=n[1];Nr(t,o)&&(r[o]=Mr(i)?Ur(i):i&&"object"==typeof i&&i.constructor===Object?Qr(i):i)}return r}function Wr(t,r){for(;null!==t;){var e=mr(t,r);if(e){if(e.get)return Hr(e.get);if("function"==typeof e.value)return Hr(e.value)}t=vr(t)}return function(){return null}}var Yr=gr(["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"]),Gr=gr(["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"]),Kr=gr(["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"]),Jr=gr(["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"]),Xr=gr(["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"]),te=gr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),re=gr(["#text"]),ee=gr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),ne=gr(["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","dominant-baseline","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-orientation","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"]),oe=gr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),ie=gr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ae=br(/{{[\w\W]*|^[\w\W]*}}/g),le=br(/<%[\w\W]*|^[\w\W]*%>/g),ue=br(/\${[\w\W]*/g),se=br(/^data-[\-\w.\u00B7-\uFFFF]+$/),ce=br(/^aria-[\-\w]+$/),he=br(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fe=br(/^(?:\w+script|data):/i),de=br(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pe=br(/^html$/i),ve=br(/^[a-z][.\w]*(-[.\w]+)+$/i),me=br(/<[/\w!]/g),ge=br(/<[/\w]/g),be=br(/<\/no(script|embed|frames)/i),ye=br(/\/>/i),we=function(){return"undefined"==typeof window?null:window},_e=function(t,r,e,n){return Nr(t,r)&&Mr(t[r])?Vr(n.base?Qr(n.base):{},t[r],n.transform):e},xe=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:we(),e=r=>t(r);if(e.version="3.4.13",e.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return e.isSupported=!1,e;var n,o=r.document,i=o,a=i.currentScript,l=r.HTMLTemplateElement,u=r.Node,s=r.NodeFilter,c=r.DOMParser,h=r.trustedTypes,f=r.Element.prototype,d=Wr(f,"cloneNode"),p=Wr(f,"remove"),v=Wr(f,"nextSibling"),m=Wr(f,"childNodes"),g=Wr(f,"parentNode"),b=Wr(f,"shadowRoot"),y=Wr(f,"attributes"),w=u&&u.prototype?Wr(u.prototype,"nodeType"):null,_=u&&u.prototype?Wr(u.prototype,"nodeName"):null,x=u&&u.prototype?Wr(u.prototype,"ownerDocument"):null;if("function"==typeof l){var k=o.createElement("template");k.content&&k.content.ownerDocument&&(o=k.content.ownerDocument)}var T,C="",S=!1,A=0,q=function(){if(A>0)throw Br('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},M=function(t){q(),A++;try{return n.createHTML(t)}finally{A--}},j=o.implementation,E=o.createNodeIterator,I=o.createDocumentFragment,L=o.getElementsByTagName,z=i.importNode,O={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};e.isSupported="function"==typeof fr&&"function"==typeof g&&j&&void 0!==j.createHTMLDocument;var R=ae,D=le,P=ue,N=se,Z=ce,F=fe,B=de,H=ve,V=he,U=null,Q=Vr({},[...Yr,...Gr,...Kr,...Xr,...re]),W=null,Y=Vr({},[...ee,...ne,...oe,...ie]),G=Object.seal(yr(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}})),K=null,J=null,X=Object.seal(yr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),tt=!0,rt=!0,et=!1,nt=!0,ot=!1,it=!0,at=!1,lt=!1,ut=null,st=null,ct=!1,ht=!1,ft=!1,dt=!1,pt=!0,vt=!1,mt="user-content-",gt=!0,bt=!1,yt={},wt=null,_t=Vr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),xt=null,kt=Vr({},["audio","video","img","source","image","track"]),Tt=null,Ct=Vr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),St="http://www.w3.org/1998/Math/MathML",At="http://www.w3.org/2000/svg",qt="http://www.w3.org/1999/xhtml",Mt=qt,jt=!1,Et=null,It=Vr({},[St,At,qt],Er),Lt=gr(["mi","mo","mn","ms","mtext"]),zt=Vr({},Lt),Ot=gr(["annotation-xml"]),Rt=Vr({},Ot),Dt=Vr({},["title","style","font","a","script"]),$t=null,Pt=["application/xhtml+xml","text/html"],Nt=null,Zt=null,Ft=o.createElement("form"),Bt=function(t){return t instanceof RegExp||t instanceof Function},Ht=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Zt||Zt!==t){t&&"object"==typeof t||(t={}),t=Qr(t),$t=-1===Pt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,U=_e(t,"ALLOWED_TAGS",Q,{transform:Nt="application/xhtml+xml"===$t?Er:jr}),W=_e(t,"ALLOWED_ATTR",Y,{transform:Nt}),Et=_e(t,"ALLOWED_NAMESPACES",It,{transform:Er}),Tt=_e(t,"ADD_URI_SAFE_ATTR",Ct,{transform:Nt,base:Ct}),xt=_e(t,"ADD_DATA_URI_TAGS",kt,{transform:Nt,base:kt}),wt=_e(t,"FORBID_CONTENTS",_t,{transform:Nt}),K=_e(t,"FORBID_TAGS",Qr({}),{transform:Nt}),J=_e(t,"FORBID_ATTR",Qr({}),{transform:Nt}),yt=!!Nr(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?Qr(t.USE_PROFILES):t.USE_PROFILES),tt=!1!==t.ALLOW_ARIA_ATTR,rt=!1!==t.ALLOW_DATA_ATTR,et=t.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ot=t.SAFE_FOR_TEMPLATES||!1,it=!1!==t.SAFE_FOR_XML,at=t.WHOLE_DOCUMENT||!1,ht=t.RETURN_DOM||!1,ft=t.RETURN_DOM_FRAGMENT||!1,dt=t.RETURN_TRUSTED_TYPE||!1,ct=t.FORCE_BODY||!1,pt=!1!==t.SANITIZE_DOM,vt=t.SANITIZE_NAMED_PROPS||!1,gt=!1!==t.KEEP_CONTENT,bt=t.IN_PLACE||!1,V=function(t){try{return Fr(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:he,Mt="string"==typeof t.NAMESPACE?t.NAMESPACE:qt,zt=Nr(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?Qr(t.MATHML_TEXT_INTEGRATION_POINTS):Vr({},Lt),Rt=Nr(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?Qr(t.HTML_INTEGRATION_POINTS):Vr({},Ot);var r=Nr(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?Qr(t.CUSTOM_ELEMENT_HANDLING):yr(null);if(G=yr(null),Nr(r,"tagNameCheck")&&Bt(r.tagNameCheck)&&(G.tagNameCheck=r.tagNameCheck),Nr(r,"attributeNameCheck")&&Bt(r.attributeNameCheck)&&(G.attributeNameCheck=r.attributeNameCheck),Nr(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(G.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),br(G),ot&&(rt=!1),ft&&(ht=!0),yt&&(U=Vr({},re),W=yr(null),!0===yt.html&&(Vr(U,Yr),Vr(W,ee)),!0===yt.svg&&(Vr(U,Gr),Vr(W,ne),Vr(W,ie)),!0===yt.svgFilters&&(Vr(U,Kr),Vr(W,ne),Vr(W,ie)),!0===yt.mathMl&&(Vr(U,Xr),Vr(W,oe),Vr(W,ie))),X.tagCheck=null,X.attributeCheck=null,Nr(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?X.tagCheck=t.ADD_TAGS:Mr(t.ADD_TAGS)&&(U===Q&&(U=Qr(U)),Vr(U,t.ADD_TAGS,Nt))),Nr(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?X.attributeCheck=t.ADD_ATTR:Mr(t.ADD_ATTR)&&(W===Y&&(W=Qr(W)),Vr(W,t.ADD_ATTR,Nt))),Nr(t,"ADD_URI_SAFE_ATTR")&&Mr(t.ADD_URI_SAFE_ATTR)&&Vr(Tt,t.ADD_URI_SAFE_ATTR,Nt),Nr(t,"FORBID_CONTENTS")&&Mr(t.FORBID_CONTENTS)&&(wt===_t&&(wt=Qr(wt)),Vr(wt,t.FORBID_CONTENTS,Nt)),Nr(t,"ADD_FORBID_CONTENTS")&&Mr(t.ADD_FORBID_CONTENTS)&&(wt===_t&&(wt=Qr(wt)),Vr(wt,t.ADD_FORBID_CONTENTS,Nt)),gt&&(U["#text"]=!0),at&&Vr(U,["html","head","body"]),U.table&&(Vr(U,["tbody"]),delete K.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Br('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Br('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');var e=n;n=t.TRUSTED_TYPES_POLICY;try{C=M("")}catch(t){throw n=e,t}}else null===t.TRUSTED_TYPES_POLICY?(n=void 0,C=""):(void 0===n&&(S||(T=function(t,r){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var e=null,n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(e=r.getAttribute(n));var o="dompurify"+(e?"#"+e:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(h,a),S=!0),n=T),n&&"string"==typeof C&&(C=M("")));gr&&gr(t),Zt=t}},Vt=Vr({},[...Gr,...Kr,...Jr]),Ut=Vr({},[...Xr,...te]),Qt=function(t){Ar(e.removed,{element:t});try{g(t).removeChild(t)}catch(r){if(p(t),!g(t))throw Br("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Wt=function(t){Kt(t);var r=m(t);if(r){var e=[];Tr(r,t=>{Ar(e,t)}),Tr(e,t=>{try{p(t)}catch(t){}})}var n=y(t);if(n)for(var o=n.length-1;o>=0;--o){var i=n[o],a=i&&i.name;if("string"==typeof a)try{t.removeAttribute(a)}catch(t){}}},Yt=function(t,r){try{Ar(e.removed,{attribute:r.getAttributeNode(t),from:r})}catch(t){Ar(e.removed,{attribute:null,from:r})}if(r.removeAttribute(t),"is"===t)if(ht||ft)try{Qt(r)}catch(t){}else try{r.setAttribute(t,"")}catch(t){}},Gt=function(t){var r=y(t);if(r)for(var e=r.length-1;e>=0;--e){var n=r[e],o=n&&n.name;if("string"==typeof o&&!W[Nt(o)])try{t.removeAttribute(o)}catch(t){}}},Kt=function(t){for(var r=[t];r.length>0;){var e=r.pop();1===(w?w(e):e.nodeType)&&Gt(e);var n=m(e);if(n)for(var o=n.length-1;o>=0;--o)r.push(n[o])}},Jt=function(t){var r=null,e=null;if(ct)t="<remove></remove>"+t;else{var i=Ir(t,/^[\r\n\t ]+/);e=i&&i[0]}"application/xhtml+xml"===$t&&Mt===qt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var a=n?M(t):t;if(Mt===qt)try{r=(new c).parseFromString(a,$t)}catch(t){}if(!r||!r.documentElement){r=j.createDocument(Mt,"template",null);try{r.documentElement.innerHTML=jt?C:a}catch(t){}}var l=r.body||r.documentElement;return t&&e&&l.insertBefore(o.createTextNode(e),l.childNodes[0]||null),Mt===qt?L.call(r,at?"html":"body")[0]:at?r.documentElement:l},Xt=function(t){var r=x?x(t):t.ownerDocument;return E.call(r||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},tr=function(t){return t=Lr(t,R," "),t=Lr(t,D," "),Lr(t,P," ")},rr=function(t){var r;t.normalize();for(var e=x?x(t):t.ownerDocument,n=E.call(e||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null),o=n.nextNode();o;)o.data=tr(o.data),o=n.nextNode();var i=null===(r=t.querySelectorAll)||void 0===r?void 0:r.call(t,"template");i&&Tr(i,t=>{nr(t.content)&&rr(t.content)})},er=function(t){var r=_?_(t):null;return"string"==typeof r&&"form"===Nt(r)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==y(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==w(t)||t.childNodes!==m(t))},nr=function(t){if(!w||"object"!=typeof t||null===t)return!1;try{return 11===w(t)}catch(t){return!1}},or=function(t){if(!w||"object"!=typeof t||null===t)return!1;try{return"number"==typeof w(t)}catch(t){return!1}};function ir(t,r,n){0!==t.length&&Tr(t,t=>{t.call(e,r,n,Zt)})}var ar=function(t,r,e,n){return 0===t.length?r:r===e||r===n?Qr(r):r},lr=function(t,r){if(ir(O.beforeSanitizeElements,t,null),t!==r&&null===g(t))return bt&&Kt(t),!0;if(er(t))return Qt(t),!0;var n=Nt(_?_(t):t.nodeName);if(U=ar(O.uponSanitizeElement,U,Q,ut),ir(O.uponSanitizeElement,t,{tagName:n,allowedTags:U}),t!==r&&null===g(t))return bt&&Kt(t),!0;if(function(t,r){return!!(it&&t.hasChildNodes()&&!or(t.firstElementChild)&&Fr(me,t.textContent)&&Fr(me,t.innerHTML))||!(!it||t.namespaceURI!==qt||"style"!==r||!or(t.firstElementChild))||7===t.nodeType||!(!it||8!==t.nodeType||!Fr(ge,t.data))}(t,n))return Qt(t),!0;if(K[n]||!(X.tagCheck instanceof Function&&X.tagCheck(n))&&!U[n]){var o=function(t,r,e){if(!K[r]&&cr(r)){if(G.tagNameCheck instanceof RegExp&&Fr(G.tagNameCheck,r))return!1;if(G.tagNameCheck instanceof Function&&G.tagNameCheck(r))return!1}if(gt&&!wt[r]){var n=g(t),o=m(t);if(o&&n)for(var i=o.length-1;i>=0;--i){var a=t===e?d(o[i],!0):o[i];n.insertBefore(a,v(t))}}return Qt(t),!0}(t,n,r);return!1===o&&ir(O.afterSanitizeElements,t,null),o}if(1===(w?w(t):t.nodeType)&&!function(t){var r=g(t);r&&r.tagName||(r={namespaceURI:Mt,tagName:"template"});var e=jr(t.tagName),n=jr(r.tagName);return!!Et[t.namespaceURI]&&(t.namespaceURI===At?function(t,r,e){return r.namespaceURI===qt?"svg"===t:r.namespaceURI===St?"svg"===t&&("annotation-xml"===e||zt[e]):Boolean(Vt[t])}(e,r,n):t.namespaceURI===St?function(t,r,e){return r.namespaceURI===qt?"math"===t:r.namespaceURI===At?"math"===t&&Rt[e]:Boolean(Ut[t])}(e,r,n):t.namespaceURI===qt?function(t,r,e){return!(r.namespaceURI===At&&!Rt[e])&&!(r.namespaceURI===St&&!zt[e])&&!Ut[t]&&(Dt[t]||!Vt[t])}(e,r,n):!("application/xhtml+xml"!==$t||!Et[t.namespaceURI]))}(t))return Qt(t),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&Fr(be,t.innerHTML))return Qt(t),!0;if(ot&&3===t.nodeType){var i=tr(t.textContent);t.textContent!==i&&(Ar(e.removed,{element:t.cloneNode()}),t.textContent=i)}return ir(O.afterSanitizeElements,t,null),!1},ur=function(t,r,e){if(J[r])return!1;if(it&&"patchsrc"===r)return!1;if(it&&"for"===r&&"label"!==t&&"output"!==t)return!1;if(pt&&("id"===r||"name"===r)&&(e in o||e in Ft))return!1;var n=W[r]||X.attributeCheck instanceof Function&&X.attributeCheck(r,t);if(rt&&Fr(N,r));else if(tt&&Fr(Z,r));else if(n){if(Tt[r]);else if(Fr(V,Lr(e,B,"")));else if("src"!==r&&"xlink:href"!==r&&"href"!==r||"script"===t||0!==zr(e,"data:")||!xt[t])if(et&&!Fr(F,Lr(e,B,"")));else if(e)return!1}else if(!(cr(t)&&(G.tagNameCheck instanceof RegExp&&Fr(G.tagNameCheck,t)||G.tagNameCheck instanceof Function&&G.tagNameCheck(t))&&(G.attributeNameCheck instanceof RegExp&&Fr(G.attributeNameCheck,r)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(r,t))||"is"===r&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&&Fr(G.tagNameCheck,e)||G.tagNameCheck instanceof Function&&G.tagNameCheck(e))))return!1;return!0},sr=Vr({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),cr=function(t){return!sr[jr(t)]&&Fr(H,t)},hr=function(t,r,e,o){if(n&&"object"==typeof h&&"function"==typeof h.getAttributeType&&!e)switch(h.getAttributeType(t,r)){case"TrustedHTML":return M(o);case"TrustedScriptURL":return function(t){q(),A++;try{return n.createScriptURL(t)}finally{A--}}(o)}return o},dr=function(t,r,n,o){try{n?t.setAttributeNS(n,r,o):t.setAttribute(r,o),er(t)?Qt(t):Sr(e.removed)}catch(e){Yt(r,t)}},pr=function(t){ir(O.beforeSanitizeAttributes,t,null);var r=t.attributes;if(r&&!er(t)){for(var e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W=ar(O.uponSanitizeAttribute,W,Y,st),forceKeepAttr:void 0},n=r.length,o=Nt(t.nodeName);n--;){var i=r[n],a=i.name,l=i.namespaceURI,u=i.value,s=Nt(a),c=u,h="value"===a?c:Or(c);e.attrName=s,e.attrValue=h,e.keepAttr=!0,e.forceKeepAttr=void 0,ir(O.uponSanitizeAttribute,t,e),h=e.attrValue,!vt||"id"!==s&&"name"!==s||0===zr(h,mt)||(Yt(a,t),h=mt+h),it&&Fr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)||"attributename"===s&&Ir(h,"href")?Yt(a,t):e.forceKeepAttr||(!e.keepAttr||!nt&&Fr(ye,h)?Yt(a,t):(ot&&(h=tr(h)),ur(o,s,h)?(h=hr(o,s,l,h))!==c&&dr(t,a,l,h):Yt(a,t)))}ir(O.afterSanitizeAttributes,t,null)}},vr=function(t){var r=null,e=Xt(t);for(ir(O.beforeSanitizeShadowDOM,t,null);r=e.nextNode();)if(ir(O.uponSanitizeShadowNode,r,null),lr(r,t),pr(r),nr(r.content)&&vr(r.content),1===(w?w(r):r.nodeType)){var n=b(r);nr(n)&&(mr(n),vr(n))}ir(O.afterSanitizeShadowDOM,t,null)},mr=function(t){for(var r=[{node:t,shadow:null}];r.length>0;){var e=r.pop();if(e.shadow)vr(e.shadow);else{var n=e.node,o=1===(w?w(n):n.nodeType),i=m(n);if(i)for(var a=i.length-1;a>=0;--a)r.push({node:i[a],shadow:null});if(o){var l=_?_(n):null;if("string"==typeof l&&"template"===Nt(l)){var u=n.content;nr(u)&&r.push({node:u,shadow:null})}}if(o){var s=b(n);nr(s)&&r.push({node:null,shadow:s},{node:s,shadow:null})}}}};return e.sanitize=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,a=null,l=null,u=null;if((jt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!or(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return Rr(t);case"boolean":return Dr(t);case"bigint":return $r?$r(t):"0";case"symbol":return Pr?Pr(t):"Symbol()";case"undefined":default:return Zr(t);case"function":case"object":if(null===t)return Zr(t);var r=t,e=Wr(r,"toString");if("function"==typeof e){var n=e(r);return"string"==typeof n?n:Zr(n)}return Zr(t)}}(t)))throw Br("dirty is not a string, aborting");if(!e.isSupported)return t;lt?(U=ut,W=st):Ht(r),(O.uponSanitizeElement.length>0||O.uponSanitizeAttribute.length>0)&&(U=Qr(U)),O.uponSanitizeAttribute.length>0&&(W=Qr(W)),e.removed=[];var s=bt&&"string"!=typeof t&&or(t);if(s){!function(t){if(it)for(var r=[t];r.length>0;){var e=r.pop(),n=w?w(e):e.nodeType;if(7===n||8===n&&Fr(ge,e.data))try{p(e)}catch(t){}else{if(1===n){var o=e,i=Nt(_?_(e):e.nodeName);try{o.hasAttribute&&o.hasAttribute("patchsrc")&&o.removeAttribute("patchsrc"),o.hasAttribute&&o.hasAttribute("for")&&"label"!==i&&"output"!==i&&o.removeAttribute("for")}catch(t){}}var a=m(e);if(a)for(var l=a.length-1;l>=0;--l)r.push(a[l])}}}(t);var c=_?_(t):t.nodeName;if("string"==typeof c){var h=Nt(c);if(!U[h]||K[h])throw Wt(t),Br("root node is forbidden and cannot be sanitized in-place")}if(er(t))throw Wt(t),Br("root node is clobbered and cannot be sanitized in-place");try{mr(t)}catch(r){throw Wt(t),r}}else if(or(t))1===(a=(o=Jt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a),mr(a);else{if(!ht&&!ot&&!at&&-1===t.indexOf("<"))return n&&dt?M(t):t;if(!(o=Jt(t)))return ht?null:dt?C:""}o&&ct&&Qt(o.firstChild);var f=s?t:o;try{for(var d=Xt(f);l=d.nextNode();)lr(l,f),pr(l),nr(l.content)&&vr(l.content)}catch(r){throw s&&(Wt(t),Tr(e.removed,t=>{t.element&&Kt(t.element)})),r}if(s)return Tr(e.removed,t=>{t.element&&Kt(t.element)}),ot&&rr(t),t;if(ht){if(ot&&rr(o),ft)for(u=I.call(o.ownerDocument);o.firstChild;)u.appendChild(o.firstChild);else u=o;return(W.shadowroot||W.shadowrootmode)&&(u=z.call(i,u,!0)),u}var v=at?o.outerHTML:o.innerHTML;return at&&U["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&Fr(pe,o.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+v),ot&&(v=tr(v)),n&&dt?M(v):v},e.setConfig=function(){Ht(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),lt=!0,ut=U,st=W},e.clearConfig=function(){Zt=null,lt=!1,ut=null,st=null,n=T,C=""},e.isValidAttribute=function(t,r,e){return Zt||Ht({}),ur(Nt(t),Nt(r),e)},e.addHook=function(t,r){"function"==typeof r&&Nr(O,t)&&Ar(O[t],r)},e.removeHook=function(t,r){if(Nr(O,t)){if(void 0!==r){var e=Cr(O[t],r);return-1===e?void 0:qr(O[t],e,1)[0]}return Sr(O[t])}},e.removeHooks=function(t){Nr(O,t)&&(O[t]=[])},e.removeAllHooks=function(){O={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e}();function ke(t,r){return t.match(/\\?.|^$/g).reduce((t,e)=>('"'!==e||t.sQuote?"'"!==e||t.quote?t.quote||t.sQuote||e!==r?t.a[t.a.length-1]+=e:t.a.push(""):(t.sQuote^=1,t.a[t.a.length-1]+=e):(t.quote^=1,t.a[t.a.length-1]+=e),t),{a:[""]}).a}function Te(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE||t.nodeType===Node.DOCUMENT_NODE}function Ce(t,r){var e=t.parentNode;return e&&e.host&&11===e.nodeType?e.host:e===r?null:e}var Se,Ae,qe=e,Me=(void 0===Se&&(Se=t=>t()),Qt("[Element Inference]",Se,(void 0===Ae&&(Ae=console),{log:Ae.log.bind(Ae),warn:Ae.warn.bind(Ae),error:Ae.error.bind(Ae),debug:Ae.debug.bind(Ae)})));function je(t,r){try{var e=r.get(t);if(!Bt(e))return e;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return r.set(t,n),n}var o=qe.getComputedStyle(t);if("none"===o.display||"hidden"===o.visibility||0===parseFloat(o.opacity))return r.set(t,!1),!1;for(var i=t.parentElement;i;){var a=r.get(i);if(Bt(a)){var l=qe.getComputedStyle(i),u="none"!==l.display&&"hidden"!==l.visibility;if(r.set(i,u),!u)return!1;i=i.parentElement}else{if(!a)return!1;i=i.parentElement}}var s=t.getBoundingClientRect(),c=s.width>0||s.height>0||t.getClientRects().length>0;return r.set(t,c),c}catch(t){return!0}}function Ee(t,r){var e;return(null==(e=function(t){var r,e=null==(r=t.innerText)?void 0:r.trim();return!e||e.length>250?null:e}(t))?void 0:e.toLowerCase())===r.toLowerCase()}function*Ie(t,r,e){var n;try{n=function(t,r,e){return void 0===r&&(r=document),void 0===e&&(e=null),function(t,r,e,n){return void 0===n&&(n=null),t=function(t){function r(){n&&(a.length>0&&/^[~+>]$/.test(a[a.length-1])&&a.push(" "),a.push(n))}var e,n,o,i,a=[],l=[0],u=0,s=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,c=/^\s+$/,h=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(t=t.trim();;){if(n="",(o=h[l[l.length-1]]).lastIndex=u,!(e=o.exec(t))){n=t.substr(u),r();break}if(i=u,(u=o.lastIndex)-e[0].length>i&&(n=t.substring(i,u-e[0].length)),3>l[l.length-1]){if(r(),"["===e[0])l.push(1);else if("("===e[0])l.push(2);else if(/^["']$/.test(e[0]))l.push(3),h[3]=new RegExp(e[0],"g");else if("/*"===e[0])l.push(4);else if(/^[\])]$/.test(e[0])&&l.length>0)l.pop();else if(/^(?:\s+|[~+>])$/.test(e[0])&&(a.length>0&&!c.test(a[a.length-1])&&0===l[l.length-1]&&a.push(" "),1===l[l.length-1]&&5===a.length&&"="===a[2].charAt(a[2].length-1)&&(a[4]=" "+a[4]),c.test(e[0])))continue;a.push(e[0])}else a[a.length-1]+=n,s.test(a[a.length-1])&&(4===l[l.length-1]&&(2>a.length||c.test(a[a.length-2])?a.pop():a[a.length-1]=" ",e[0]=""),l.pop()),a[a.length-1]+=e[0]}return a.join("").trim()}(t),e.querySelector(t),document.head.createShadowRoot||document.head.attachShadow?ke(t,",").reduce((t,r)=>{var o=ke(r.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter(t=>!!t).map(t=>ke(t,">")),i=o.length-1,a=function(t,r,e){void 0===t&&(t=null),void 0===e&&(e=null);var n=[];if(e)n=e;else{var o=function(t){for(var r=0;t.length>r;r++){var e=t[r];n.push(e),e.shadowRoot&&o(e.shadowRoot.querySelectorAll("*"))}};r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*")),o(r.querySelectorAll("*"))}return t?n.filter(r=>r.matches(t)):n}(o[i][o[i].length-1],e,n),l=function(t,r,e){return n=>{for(var o=r,i=n,a=!1;i&&!Te(i);){var l=!0;if(1===t[o].length)l=i.matches(t[o]);else{var u=[].concat(t[o]).reverse(),s=i;for(var c of u){if(!s||!s.matches(c)){l=!1;break}s=Ce(s,e)}}if(l&&0===o){a=!0;break}l&&o--,i=Ce(i,e)}return a}}(o,i,e);return t.concat(a.filter(l))},[]):e.querySelectorAll(t)}(t,0,r,e)}(t)}catch(t){return}for(var o of n){var i=o;r&&!Ee(i,r)||je(i,e)&&(yield i)}}function Le(t,r){var e=0;for(var n of t){if(e===r)return n;e++}return null}function ze(t){try{var r=JSON.parse(t.autoData);if(!Zt(null==r?void 0:r.textGroups)||!Zt(null==r?void 0:r.notextGroups))return Me.error("Invalid autoData structure:",r),null;var e=t.text,n=t.precision,o=void 0===n?1:n,i=null!=e&&!t.excludeText,a=(i?r.textGroups:r.notextGroups).sort((t,r)=>t.cardinality-r.cardinality);if(0===a.length)return null;for(var l=Math.max(1,Math.ceil((1-o)*a.length)),u=new WeakMap,s=0;l>s;s++){var c=a[s],h=new Map,f=null,d=0;for(var p of c.cssSelectors){var v,m=p.offset,g=Le(Ie(p.css,i?e:null,u),m);if(g){var b=(null!==(v=h.get(g))&&void 0!==v?v:0)+1;if(h.set(g,b),b>d&&(d=b,f=g,b>=Math.ceil(c.cssSelectors.length/2)))return f}}if(f)return f}return null}catch(t){return Me.error("Error finding element:",t),null}}var Oe=function(t,r){var n=(void 0===r?{}:r).debugEnabled,o={q(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;o>a;a++)i[a-1]=arguments[a];e&&(e.POSTHOG_DEBUG||n)&&!Bt(e.console)&&e.console&&("__rrweb_original__"in e.console[r]?e.console[r].__rrweb_original__:e.console[r])(t,...i)},debug(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.q("debug",...r)},info(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.q("log",...r)},warn(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.q("warn",...r)},error(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.q("error",...r)},critical(){for(var r=arguments.length,e=new Array(r),n=0;r>n;n++)e[n]=arguments[n];console.error(t,...e)},uninitializedWarning(t){o.error("You must initialize PostHog before calling "+t)},createLogger:(r,e)=>Oe(t+" "+r,e)};return o},Re=Oe("[PostHog.js]"),De=Re.createLogger,$e=De("[Stylesheet Loader]"),Pe=(t,r)=>{if(!(t=>{try{new RegExp(t)}catch(t){return!1}return!0})(r))return!1;try{return new RegExp(r).test(t)}catch(t){return!1}},Ne=t=>t.toLowerCase(),Ze={exact:(t,r)=>r.some(r=>t.some(t=>r===t)),is_not:(t,r)=>r.every(r=>t.every(t=>r!==t)),regex:(t,r)=>r.some(r=>t.some(t=>Pe(r,t))),not_regex:(t,r)=>r.every(r=>t.every(t=>!Pe(r,t))),icontains:(t,r)=>r.map(Ne).some(r=>t.map(Ne).some(t=>r.includes(t))),not_icontains:(t,r)=>r.map(Ne).every(r=>t.map(Ne).every(t=>!r.includes(t))),gt:(t,r)=>r.some(r=>{var e=parseFloat(r);return!isNaN(e)&&t.some(t=>e>parseFloat(t))}),lt:(t,r)=>r.some(r=>{var e=parseFloat(r);return!isNaN(e)&&t.some(t=>e<parseFloat(t))})};function Fe(t,r){return!t||Object.entries(t).every(t=>{var e=t[1],n=null==r?void 0:r[t[0]];if(null==n)return!1;var o=Ze[e.operator];return!!o&&o(e.values,[String(n)])})}function Be(t,r,e,n){var o=null!=n?n:{},i=o.capture,a=o.passive;null==t||t.addEventListener(r,e,{capture:void 0!==i&&i,passive:void 0===a||a})}De("[Surveys]"),Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return Ut(t)&&isFinite(t)&&Math.floor(t)===t}),e&&!Bt(e.crypto)&&crypto;var He,Ve,Ue,Qe,We=null,Ye={si(){if(!Ht(We))return We;var t=!0;if(Bt(e))t=!1;else try{var r="__mplssupport__";Ye.ui(r,"xyz"),'"xyz"'!==Ye.li(r)&&(t=!1),Ye.hi(r)}catch(r){t=!1}return t||Re.error("localStorage unsupported; falling back to cookie store"),We=t,t},ci(t){Re.error("localStorage error: "+t)},li(t){try{return null==e?void 0:e.localStorage.getItem(t)}catch(t){Ye.ci(t)}return null},di(t){try{return JSON.parse(Ye.li(t))||{}}catch(t){}return null},ui(t,r){try{return null==e||e.localStorage.setItem(t,JSON.stringify(r)),!0}catch(t){Ye.ci(t)}return!1},hi(t){try{null==e||e.localStorage.removeItem(t)}catch(t){Ye.ci(t)}}},Ge=null,Ke={si(){if(!Ht(Ge))return Ge;if(Ge=!0,Bt(e))Ge=!1;else try{var t="__support__";Ke.ui(t,"xyz"),'"xyz"'!==Ke.li(t)&&(Ge=!1),Ke.hi(t)}catch(t){Ge=!1}return Ge},ci(t){Re.error("sessionStorage error: ",t)},li(t){try{return null==e?void 0:e.sessionStorage.getItem(t)}catch(t){Ke.ci(t)}return null},di(t){try{return JSON.parse(Ke.li(t))||null}catch(t){}return null},ui(t,r){try{return null==e||e.sessionStorage.setItem(t,JSON.stringify(r)),!0}catch(t){Ke.ci(t)}return!1},hi(t){try{null==e||e.sessionStorage.removeItem(t)}catch(t){Ke.ci(t)}}},Je=0,Xe=[],tn=l,rn=tn.__b,en=tn.__r,nn=tn.diffed,on=tn.__c,an=tn.unmount,ln=tn.__;function un(t,r){tn.__h&&tn.__h(Ve,t,Je||r),Je=0;var e=Ve.__H||(Ve.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function sn(t){return Je=1,function(t,r){var e=un(He++,2);if(e.t=t,!e.__c&&(e.__=[wn(void 0,r),function(t){var r=e.__N?e.__N[0]:e.__[0],n=e.t(r,t);r!==n&&(e.__N=[n,e.__[1]],e.__c.setState({}))}],e.__c=Ve,!Ve.__f)){var n=function(t,r,n){if(!e.__c.__H)return!0;var i=!1,a=e.__c.props!==t;if(e.__c.__H.__.some(function(t){if(t.__N){i=!0;var r=t.__[0];t.__=t.__N,t.__N=void 0,r!==t.__[0]&&(a=!0)}}),o){var l=o.call(this,t,r,n);return i?l||a:l}return!i||a};Ve.__f=!0;var o=Ve.shouldComponentUpdate,i=Ve.componentWillUpdate;Ve.componentWillUpdate=function(t,r,e){if(this.__e){var a=o;o=void 0,n(t,r,e),o=a}i&&i.call(this,t,r,e)},Ve.shouldComponentUpdate=n}return e.__N||e.__}(wn,t)}function cn(t,r){var e=un(He++,3);!tn.__s&&yn(e.__H,r)&&(e.__=t,e.u=r,Ve.__H.__h.push(e))}function hn(t,r){var e=un(He++,4);!tn.__s&&yn(e.__H,r)&&(e.__=t,e.u=r,Ve.__h.push(e))}function fn(t){return Je=5,dn(function(){return{current:t}},[])}function dn(t,r){var e=un(He++,7);return yn(e.__H,r)&&(e.__=t(),e.__H=r,e.__h=t),e.__}function pn(){for(var t;t=Xe.shift();){var r=t.__H;if(t.__P&&r)try{r.__h.some(gn),r.__h.some(bn),r.__h=[]}catch(e){r.__h=[],tn.__e(e,t.__v)}}}tn.__b=function(t){Ve=null,rn&&rn(t)},tn.__=function(t,r){t&&r.__k&&r.__k.__m&&(t.__m=r.__k.__m),ln&&ln(t,r)},tn.__r=function(t){en&&en(t),He=0;var r=(Ve=t.__c).__H;r&&(Ue===Ve?(r.__h=[],Ve.__h=[],r.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(r.__h.length&&pn(),He=0)),Ue=Ve},tn.diffed=function(t){nn&&nn(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(1!==Xe.push(r)&&Qe===tn.requestAnimationFrame||((Qe=tn.requestAnimationFrame)||mn)(pn)),r.__H.__.some(function(t){t.u&&(t.__H=t.u,t.u=void 0)})),Ue=Ve=null},tn.__c=function(t,r){r.some(function(t){try{t.__h.some(gn),t.__h=t.__h.filter(function(t){return!t.__||bn(t)})}catch(e){r.some(function(t){t.__h&&(t.__h=[])}),r=[],tn.__e(e,t.__v)}}),on&&on(t,r)},tn.unmount=function(t){an&&an(t);var r,e=t.__c;e&&e.__H&&(e.__H.__.some(function(t){try{gn(t)}catch(t){r=t}}),e.__H=void 0,r&&tn.__e(r,e.__v))};var vn="function"==typeof requestAnimationFrame;function mn(t){var r,e=function(){clearTimeout(n),vn&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(e,35);vn&&(r=requestAnimationFrame(e))}function gn(t){var r=Ve,e=t.__c;"function"==typeof e&&(t.__c=void 0,e()),Ve=r}function bn(t){var r=Ve;t.__c=t.__(),Ve=r}function yn(t,r){return!t||t.length!==r.length||r.some(function(r,e){return r!==t[e]})}function wn(t,r){return"function"==typeof r?r(t):r}var _n="#020617";function xn(t){if(t.startsWith("#")){var r=t.replace(/^#/,"");return/^[0-9A-Fa-f]{3}$/.test(r)&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]),/^[0-9A-Fa-f]{6}$/.test(r)?"rgb("+parseInt(r.slice(0,2),16)+","+parseInt(r.slice(2,4),16)+","+parseInt(r.slice(4,6),16)+")":"rgb(255, 255, 255)"}return"rgb(255, 255, 255)"}function kn(t){var r;void 0===t&&(t="#eeeded"),"#"===t[0]&&(r=xn(t)),t.startsWith("rgb")&&(r=t);var e={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(e&&(r=xn(e)),!r)return _n;var n=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(n){var o=parseInt(n[1]),i=parseInt(n[2]),a=parseInt(n[3]);return Math.sqrt(o*o*.299+i*i*.587+a*a*.114)>127.5?_n:"white"}return _n}String(2147483645),function(t){function r(t){var e,n;return this.getChildContext||(e=new Set,(n={})[r.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){e=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&e.forEach(function(t){t.__e=!0,L(t)})},this.sub=function(t){e.add(t);var r=t.componentWillUnmount;t.componentWillUnmount=function(){e&&e.delete(t),r&&r.call(t)}}),t.children}r.__c="__cC"+w++,r.__=t,r.Provider=r.__l=(r.Consumer=function(t,r){return t.children(r)}).contextType=r}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed(){},isPopup:!0,onPreviewSubmit(){},onPreviewBack(){},surveySubmissionId:"",properties:void 0,surveyLanguage:null});var Tn="ph_product_tour_shown_",Cn="ph_product_tour_completed_",Sn="ph_product_tour_dismissed_",An="ph_active_product_tour",qn="ph_last_seen_tour_date_",Mn=De("[Product Tours]"),jn=i,En=e;function In(t){var r=((t,r,e)=>{var n=t.createElement("style");n.innerText=r;var o=(t=>{var r;return Ft(t)?t:null==t||null==(r=t.config)?void 0:r.prepare_external_dependency_stylesheet})(e);return o&&(n=o(n)),n||($e.error("prepare_external_dependency_stylesheet returned null"),null)})(jn,':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 #00000026;--ph-tour-max-width:320px;--ph-tour-padding:16px;--ph-tour-z-index:calc(2147480000 + 3646);--ph-tour-overlay-color:#00000080;--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{z-index:var(--ph-tour-z-index);pointer-events:auto;position:fixed;inset:0}.ph-tour-spotlight{z-index:var(--ph-tour-z-index);border-radius:var(--ph-tour-spotlight-border-radius);box-shadow:0 0 0 9999px var(--ph-tour-overlay-color);pointer-events:none;position:fixed}.ph-tour-modal-overlay{z-index:var(--ph-tour-z-index);background:var(--ph-tour-overlay-color);pointer-events:none;position:fixed;inset:0}.ph-tour-tooltip{z-index:calc(var(--ph-tour-z-index) + 1);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);min-width:min(280px,100vw - 16px);max-width:min(var(--ph-tour-max-width), calc(100vw - 16px));padding:var(--ph-tour-padding);padding-top:calc(var(--ph-tour-padding) + 8px);pointer-events:auto;position:fixed}.ph-tour-tooltip--modal{box-shadow:var(--ph-tour-box-shadow)}.ph-tour-arrow{--ph-tour-arrow-offset:0px;border:var(--ph-tour-arrow-size) solid transparent;width:0;height:0;position:absolute}.ph-tour-arrow--top{bottom:100%;left:calc(50% + var(--ph-tour-arrow-offset));border-bottom-color:var(--ph-tour-background-color);transform:translate(-50%)}.ph-tour-arrow--bottom{top:100%;left:calc(50% + var(--ph-tour-arrow-offset));border-top-color:var(--ph-tour-background-color);transform:translate(-50%)}.ph-tour-arrow--left{right:100%;top:calc(50% + var(--ph-tour-arrow-offset));border-right-color:var(--ph-tour-background-color);transform:translateY(-50%)}.ph-tour-arrow--right{left:100%;top:calc(50% + var(--ph-tour-arrow-offset));border-left-color:var(--ph-tour-background-color);transform:translateY(-50%)}.ph-tour-content{color:var(--ph-tour-text-color);margin-bottom:16px;padding-right:24px;font-size:14px;line-height:1.5}.ph-tour-content h1,.ph-tour-content h2{margin-bottom:8px;font-weight:600}.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 ul,.ph-tour-content ol{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{margin-bottom:8px;font-size:14px;font-weight:600}.ph-tour-content a,.ph-tour-content .ph-tour-link{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:#0000000f;border-radius:4px;padding:2px 6px;font-family:SF Mono,Monaco,Consolas,monospace;font-size:.875em}.ph-tour-content pre{background:#0000000a;border-radius:6px;margin-bottom:8px;padding:12px;font-family:SF Mono,Monaco,Consolas,monospace;font-size:13px;line-height:1.5;overflow-x:auto}.ph-tour-content pre code{font-size:inherit;background:0 0;border-radius:0;padding:0}.ph-tour-content pre *,.ph-tour-content code *{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-string,.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp{color:#032f62}.ph-tour-content .hljs-number,.ph-tour-content .hljs-literal,.ph-tour-content .hljs-variable,.ph-tour-content .hljs-template-variable{color:#005cc5}.ph-tour-content .hljs-title,.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-name,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-symbol,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-addition{color:#22863a}.ph-tour-content .hljs-subst,.ph-tour-content .hljs-deletion{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 img,.ph-tour-content .ph-tour-image{border-radius:6px;max-width:100%;height:auto;margin:8px 0;display:block}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;width:100%;padding-bottom:56.25%;position:relative;overflow:hidden}.ph-tour-content .ph-tour-embed-container iframe{border:none;width:100%;height:100%;position:absolute;top:0;left:0}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);margin:8px 0;padding-left:12px;font-style:italic}.ph-tour-footer{justify-content:space-between;align-items:center;gap:12px;display:flex}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{gap:8px;margin-left:auto;display:flex}.ph-tour-button{border-radius:var(--ph-tour-button-border-radius);cursor:pointer;border:none;justify-content:center;align-items:center;padding:8px 16px;font-size:14px;font-weight:500;text-decoration:none;transition:opacity .15s,transform .1s;display:inline-flex}.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);color:var(--ph-tour-button-secondary-text-color);border:1px solid var(--ph-tour-border-color)}.ph-tour-dismiss{cursor:pointer;width:24px;height:24px;color:var(--ph-tour-text-secondary-color);background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;font-size:18px;line-height:1;transition:background .15s,color .15s;display:flex;position:absolute;top:8px;right:8px}.ph-tour-dismiss:hover{color:var(--ph-tour-text-color);background:#00000014}.ph-tour-branding{border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));justify-content:center;align-items:center;gap:6px;margin-top:12px;padding-top:12px;font-size:11px;text-decoration:none;display:flex}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{width:auto;height:14px}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:min(300px,100vw - 16px)}.ph-tour-survey-question{color:var(--ph-tour-text-color);margin-bottom:16px;padding-right:24px;font-size:15px;font-weight:500;line-height:1.4}.ph-tour-survey-input-container{flex-direction:column;gap:12px;display:flex}.ph-tour-survey-textarea{border:1px solid var(--ph-tour-border-color);width:100%;font-size:14px;font-family:var(--ph-tour-font-family);color:var(--ph-tour-text-color);resize:vertical;box-sizing:border-box;background:#fff;border-radius:6px;min-height:80px;padding:10px 12px}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);outline:none;box-shadow:0 0 0 2px #0000000d}.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{flex-direction:column;gap:8px;margin-bottom:8px;display:flex}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);justify-content:space-between;font-size:11px;display:flex}.ph-tour-survey-rating-emoji{justify-content:center;gap:8px;display:flex}.ph-tour-survey-emoji-button{border:2px solid var(--ph-tour-border-color);background:var(--ph-tour-background-color);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;width:44px;height:44px;padding:0;transition:all .15s;display:flex}.ph-tour-survey-emoji-button:hover{border-color:var(--ph-tour-button-color);background:#00000005}.ph-tour-survey-emoji-button--active{border-color:var(--ph-tour-button-color);background: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{width:28px;height:28px;fill:var(--ph-tour-text-color);transition:fill .15s}.ph-tour-survey-rating-numbers{gap:6px;display:grid}.ph-tour-survey-number-button{border:1px solid var(--ph-tour-border-color);background:var(--ph-tour-background-color);font-size:13px;font-weight:500;font-family:var(--ph-tour-font-family);color:var(--ph-tour-text-color);cursor:pointer;border-radius:4px;justify-content:center;align-items:center;padding:8px 4px;transition:all .15s;display:flex}.ph-tour-survey-number-button:hover{border-color:var(--ph-tour-button-color);background:#00000005}.ph-tour-survey-number-button--active{border-color:var(--ph-tour-button-color);background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}@keyframes ph-tour-banner-slide-in{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}.ph-tour-banner-wrapper{animation:ph-tour-banner-slide-in var(--ph-tour-banner-animation-duration,.3s) ease-out forwards;display:grid}.ph-tour-banner-slide{min-height:0;overflow:hidden}.ph-tour-banner{background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);font-family:var(--ph-tour-font-family);justify-content:center;align-items:center;gap:16px;padding:12px 16px;display:flex}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){z-index:var(--ph-tour-z-index);position:sticky;top:0}.ph-tour-banner-content{min-width:0;color:var(--ph-tour-text-color);text-align:center;flex:1;font-size:14px;line-height:1.5}.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{cursor:pointer;width:24px;height:24px;color:var(--ph-tour-text-secondary-color);background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;transition:background .15s,color .15s;display:flex}.ph-tour-banner-dismiss:hover{color:var(--ph-tour-text-color);background:#00000014}',t);return null==r||r.setAttribute("data-ph-product-tour-style","true"),r}function Ln(t){return t.useManualSelector?!!t.selector:!!t.inferenceData}function zn(t){var r;if(null!==(r=t.useManualSelector)&&void 0!==r&&r)return t.selector?function(t){try{var r=jn.querySelectorAll(t);if(0===r.length)return{element:null,error:"not_found",matchCount:0};var e=r[0];return function(t){var r=En.getComputedStyle(t);if("none"===r.display||"hidden"===r.visibility||"0"===r.opacity)return!1;var e=t.getBoundingClientRect();return 0!==e.width&&0!==e.height}(e)?r.length>1?{element:e,error:"multiple_matches",matchCount:r.length}:{element:e,error:null,matchCount:1}:{element:null,error:"not_visible",matchCount:r.length}}catch(t){return{element:null,error:"not_found",matchCount:0}}}(t.selector):{element:null,error:"not_found",matchCount:0};if(!t.inferenceData)return{element:null,error:"not_found",matchCount:0};var e=ze(t.inferenceData);return e?{element:e,error:null,matchCount:1}:{element:null,error:"not_found",matchCount:0}}var On=12;function Rn(t,r,e){var n=Math.max(8+r/2,Math.min(e-8-r/2,t));return{clamped:n,offset:t-n}}function Dn(r,e){var n,o,i=t({},tt,e),a=r.style;a.setProperty("--ph-tour-background-color",i.backgroundColor),a.setProperty("--ph-tour-text-color",i.textColor),a.setProperty("--ph-tour-button-color",i.buttonColor),a.setProperty("--ph-tour-border-radius",i.borderRadius+"px"),a.setProperty("--ph-tour-button-border-radius",i.buttonBorderRadius+"px"),a.setProperty("--ph-tour-border-color",i.borderColor),a.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";var r='BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return t?t+", "+r:"-apple-system, "+r}(i.fontFamily)),a.setProperty("--ph-tour-text-secondary-color",(o=xn(n=i.textColor).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+o[1]+", "+o[2]+", "+o[3]+", 0.6)":n),a.setProperty("--ph-tour-branding-text-color",kn(i.backgroundColor)),a.setProperty("--ph-tour-button-text-color",kn(i.buttonColor)),a.setProperty("--ph-tour-box-shadow",i.boxShadow),a.setProperty("--ph-tour-overlay-color",i.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),a.setProperty("--ph-tour-z-index",String(i.zIndex)),a.setProperty("--ph-tour-button-secondary-color","transparent"),a.setProperty("--ph-tour-button-secondary-text-color",i.textColor),a.setProperty("--ph-tour-max-width","320px"),a.setProperty("--ph-tour-padding","16px")}function $n(t){var r;if(!t)return"";if("string"==typeof t)return Nn(t);if("text"===t.type){var e=Nn(t.text||"");if(t.marks)for(var n of t.marks)switch(n.type){case"bold":e="<strong>"+e+"</strong>";break;case"italic":e="<em>"+e+"</em>";break;case"underline":e="<u>"+e+"</u>";break;case"strike":e="<s>"+e+"</s>"}return e}var o=(null==(r=t.content)?void 0:r.map($n).join(""))||"";switch(t.type){case"doc":default:return o;case"paragraph":return"<p>"+o+"</p>";case"heading":var i,a=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+a+">"+o+"</h"+a+">";case"bulletList":return"<ul>"+o+"</ul>";case"orderedList":return"<ol>"+o+"</ol>";case"listItem":return"<li>"+o+"</li>";case"hardBreak":return"<br>"}}function Pn(t){return t.endsWith("/")?t.slice(0,-1):t}function Nn(t){var r=jn.createElement("div");return r.textContent=t,r.innerHTML}function Zn(t){var r=[];return t.content&&function t(e){var n,o;"image"===e.type&&null!=(n=e.attrs)&&n.src&&r.push(e.attrs.src),null==(o=e.content)||o.forEach(t)}(t.content),r}function Fn(t){var r=t.contentHtml||$n(t.content);return xe.sanitize(r,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]})}var Bn=0;function Hn(t,r,e,n,o,i){r||(r={});var a,u,s=r;if("ref"in s)for(u in s={},r)"ref"==u?a=r[u]:s[u]=r[u];var c={type:t,props:s,key:e,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Bn,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(a=t.defaultProps))for(u in a)void 0===s[u]&&(s[u]=a[u]);return l.vnode&&l.vnode(c),c}var Vn=Hn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Hn("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"})}),Un=Hn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Hn("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"})}),Qn=Hn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Hn("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"})}),Wn=Hn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Hn("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"})}),Yn=Hn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Hn("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"})}),Gn=function(t){var r=(void 0===t?{}:t).fill,e=void 0===r?"currentColor":r;return Hn("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:e,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title-adam",children:[Hn("title",{id:"close-survey-title",className:"adam-testing",children:"Close survey"}),Hn("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:e})]})},Kn=Hn("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Hn("g",{"clip-path":"url(#clip0_2415_6911)",children:[Hn("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Hn("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Hn("g",{mask:"url(#mask0_2415_6911)",children:[Hn("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"}),Hn("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"}),Hn("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"}),Hn("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"}),Hn("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"}),Hn("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"})]})]}),Hn("defs",{children:Hn("clipPath",{id:"clip0_2415_6911",children:Hn("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Jn(t){var r=t.button,e=t.onClick,n=t.cursorStyle,o="ph-tour-button ph-tour-button--"+t.variant;return"link"===r.action&&r.link?Hn("a",{href:r.link,target:"_blank",rel:"noopener noreferrer",class:o,onClick:()=>e(r),children:r.text}):Hn("button",{class:o,onClick:()=>e(r),style:n,children:r.text})}function Xn(t){var r,e,n,o=t.step,i=t.appearance,a=t.stepIndex,l=t.totalSteps,u=t.onNext,s=t.onPrevious,c=t.onDismiss,h=t.onButtonClick,f=null!==(r=null==i?void 0:i.whiteLabel)&&void 0!==r&&r,d=a>=l-1,p=0===a,v=!(o.buttons||"button"!==o.progressionTrigger&&Ln(o)),m=!!o.buttons,g=!!(u||s||c||h),b=g?void 0:{cursor:"default"},y=!f&&p,w=t=>{h&&h(t)};return Hn(M,{children:[Hn("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Gn()}),Hn("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:Fn(o)}}),Hn("div",{class:"ph-tour-footer",children:[l>1&&Hn("span",{class:"ph-tour-progress",children:[a+1," of ",l]}),Hn("div",{class:"ph-tour-buttons",children:[v&&Hn(M,{children:[!p&&Hn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),Hn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:b,children:d?"Done":"Next"})]}),m&&Hn(M,{children:[(null==(e=o.buttons)?void 0:e.secondary)&&Hn(Jn,{button:o.buttons.secondary,variant:"secondary",onClick:w,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&Hn(Jn,{button:o.buttons.primary,variant:"primary",onClick:w,cursorStyle:b})]})]})]}),y&&Hn("a",{href:g?"https://posthog.com/docs/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 ",Kn]})]})}var to=[Qn,Un,Vn],ro=[Wn,Qn,Un,Vn,Yn];function eo(t){var r=t.value,e=t.onChange,n=t.onSubmit,o=t.isInteractive,i=fn(null);return cn(()=>{o&&setTimeout(()=>{var t;return null==(t=i.current)?void 0:t.focus()},100)},[o]),Hn("textarea",{ref:i,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:r,onInput:t=>e(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 no(t){var r=t.survey,e=t.onSubmit,n=t.isInteractive,o=sn(null),i=o[0],a=o[1],l=r.scale||5,u=t=>{n&&(a(t),null==e||e(t))};if("emoji"===(r.display||"emoji"))return Hn("div",{class:"ph-tour-survey-rating-container",children:[Hn("div",{class:"ph-tour-survey-rating-emoji",children:(3===l?to:ro).map((t,r)=>{var e=r+1;return Hn("button",{type:"button",class:"ph-tour-survey-emoji-button "+(i===e?"ph-tour-survey-emoji-button--active":""),onClick:()=>u(e),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+e,children:t},r)})}),(r.lowerBoundLabel||r.upperBoundLabel)&&Hn("div",{class:"ph-tour-survey-rating-labels",children:[Hn("span",{children:r.lowerBoundLabel}),Hn("span",{children:r.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]}}(l);return Hn("div",{class:"ph-tour-survey-rating-container",children:[Hn("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map(t=>Hn("button",{type:"button",class:"ph-tour-survey-number-button "+(i===t?"ph-tour-survey-number-button--active":""),onClick:()=>u(t),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Hn("div",{class:"ph-tour-survey-rating-labels",children:[Hn("span",{children:r.lowerBoundLabel}),Hn("span",{children:r.upperBoundLabel})]})]})}function oo(t){var r,e=t.step,n=t.appearance,o=t.stepIndex,i=t.totalSteps,a=t.onPrevious,l=t.onSubmit,u=t.onDismiss,s=sn(""),c=s[0],h=s[1],f=e.survey,d=null!==(r=null==n?void 0:n.whiteLabel)&&void 0!==r&&r,p=0===o,v="open"===(null==f?void 0:f.type),m=!!(a||l||u),g=m?void 0:{cursor:"default"},b=()=>{null==l||l(c.trim()||null)};return f?Hn(M,{children:[Hn("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:g,children:Gn()}),Hn("div",{class:"ph-tour-survey-question",children:f.questionText}),v?Hn(eo,{value:c,onChange:h,onSubmit:b,isInteractive:m}):Hn(no,{survey:f,onSubmit:l,isInteractive:m}),Hn("div",{class:"ph-tour-footer",children:[Hn("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),Hn("div",{class:"ph-tour-buttons",children:[!p&&Hn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:a,style:g,children:f.backButtonText||"Back"}),v&&Hn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:b,style:g,children:f.submitButtonText||"Submit"})]})]}),!d&&Hn("a",{href:m?"https://posthog.com/product-tours":void 0,target:m?"_blank":void 0,rel:m?"noopener noreferrer":void 0,class:"ph-tour-branding",style:m?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",Kn]})]}):Hn("div",{})}var io=e;function ao(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}function lo(r){var e,n=r.tour,o=r.step,i=r.stepIndex,a=r.totalSteps,l=r.targetElement,u=r.onNext,s=r.onPrevious,c=r.onDismiss,h=r.onSurveySubmit,f=r.onButtonClick,d=sn("entering"),p=d[0],v=d[1],m=sn(null),g=m[0],b=m[1],y=sn(null),w=y[0],_=y[1],x=sn(!1),k=x[0],T=x[1],C=sn(o),S=C[0],A=C[1],q=sn(i),M=q[0],j=q[1],E=fn(null),I=fn(i),L=fn(!1),z=fn(l),O=!Ln(S)||"survey"===S.type;hn(()=>{z.current=l},[l]);var R=function(t){return Je=8,dn(function(){return t},[])}(()=>{var t=z.current;if(t&&E.current){var r=E.current.getBoundingClientRect(),e={width:r.width,height:r.height},n=t.getBoundingClientRect();b(function(t,r){var e=En.innerWidth,n=En.innerHeight,o=r.width,i=r.height,a=t.top,l=n-t.bottom,u=t.left,s=t.top+t.height/2,c=t.left+t.width/2;if(e-t.right>=o+On){var h=t.right+On,f=Rn(s,i,n);return{position:"right",top:f.clamped,left:h,arrowOffset:f.offset}}if(u>=o+On){var d=e-t.left+On,p=Rn(s,i,n);return{position:"left",top:p.clamped,right:d,arrowOffset:p.offset}}if(a>=i+On&&i+On>l){var v=n-t.top+On,m=Rn(c,o,e);return{position:"top",bottom:v,left:m.clamped,arrowOffset:m.offset}}var g=t.bottom+On,b=Rn(c,o,e);return{position:"bottom",top:g,left:b.clamped,arrowOffset:b.offset}}(n,e)),_(function(t,r){return void 0===r&&(r=8),{top:t.top-r+"px",left:t.left-r+"px",width:t.width+2*r+"px",height:t.height+2*r+"px"}}(n)),T(!0)}});hn(()=>{!O&&!k&&E.current&&l&&R()},[O,k,l,R]),cn(()=>{var t=i,r=()=>{I.current===t&&(v("visible"),L.current=!1)},e=()=>{z.current&&Ln(o)&&(z.current.isConnected||(z.current=zn(o).element),z.current)?function(t,r){var e=t.getBoundingClientRect(),n=io.innerHeight,o=io.innerWidth,i=n/6,a=o/6;if(i>e.top||e.bottom>n-i||a>e.left||e.right>o-a){t.scrollIntoView({behavior:"smooth",block:"center"});var l=e.top,u=0,s=!1,c=()=>{if(!s){var e=t.getBoundingClientRect();if(1>Math.abs(e.top-l)){if(++u>=3)return s=!0,void r()}else u=0;l=e.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout(()=>{s||(s=!0,r())},500)}else r()}(z.current,()=>{I.current===t&&(R(),setTimeout(r,50))}):setTimeout(r,50)};if(I.current===i)return I.current=i,L.current=!0,void e();I.current=i,L.current=!0,v("exiting"),setTimeout(()=>{I.current===t&&(Ln(o)&&(b(null),_(null),T(!1)),A(o),j(i),v("entering"),e())},150)},[l,i,o,R]),cn(()=>{if("visible"===p&&!O){var t=()=>{L.current||R()};return Be(io,"scroll",t,{capture:!0}),Be(io,"resize",t),()=>{null==io||io.removeEventListener("scroll",t,!0),null==io||io.removeEventListener("resize",t)}}},[R,p,O]),cn(()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return Be(io,"keydown",t),()=>{null==io||io.removeEventListener("keydown",t)}},[c]);var D,P,N="visible"===p,Z="survey"===S.type,F=O||k,B=t({},S.maxWidth&&{width:"min("+S.maxWidth+"px, calc(100vw - 16px))",maxWidth:"min("+S.maxWidth+"px, calc(100vw - 16px))"},O?t({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(P=function(t,r){switch(void 0===r&&(r="right"),r){case"top_left":return{top:"0",left:"0",transform:"translate(30px, 30px)"};case"top_right":return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case"top_center":return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case"middle_left":return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case"middle_right":return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case"middle_center":return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case"left":return{left:"30px"};case"center":return{left:"50%",transform:"translateX(-50%)"};default:return{right:"30px"}}}(0,null!==(D=S.modalPosition)&&void 0!==D?D:"middle_center"),"top"in P||"bottom"in P?P:t({},P,{bottom:"30px"}))):(()=>{if(!g)return{};var t="left"===g.position||"right"===g.position;return{top:Bt(g.top)?"auto":g.top+"px",bottom:Bt(g.bottom)?"auto":g.bottom+"px",left:Bt(g.left)?"auto":g.left+"px",right:Bt(g.right)?"auto":g.right+"px",transform:t?"translateY(-50%)":"translateX(-50%)"}})());return Hn("div",{class:"ph-tour-container",children:[!1!==(null==(e=n.appearance)?void 0:e.dismissOnClickOutside)&&Hn("div",{class:"ph-tour-click-overlay",onClick(t){t.stopPropagation(),c("user_clicked_outside")}}),Hn("div",{class:"ph-tour-modal-overlay",style:{opacity:O&&N?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),Hn("div",{class:"ph-tour-spotlight",style:t({},N&&F&&w?w:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!O&&N&&F?1:0,transition:"opacity 150ms ease-out"},"click"===S.progressionTrigger&&!O&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==S.progressionTrigger||O?void 0:t=>{t.stopPropagation(),z.current&&z.current.click(),u()}}),Hn("div",{ref:E,class:"ph-tour-tooltip "+(O?"ph-tour-tooltip--modal":"")+" "+(Z?"ph-tour-survey-step":""),style:t({},B,{opacity:N&&F?1:0,transition:"opacity 150ms ease-out"}),onClick(t){t.stopPropagation()},children:[!O&&g&&Hn("div",{class:"ph-tour-arrow ph-tour-arrow--"+ao(g.position),style:0!==g.arrowOffset?{"--ph-tour-arrow-offset":g.arrowOffset+"px"}:void 0}),Z?Hn(oo,{step:S,appearance:n.appearance,stepIndex:M,totalSteps:a,onSubmit:h,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):Hn(Xn,{step:S,appearance:n.appearance,stepIndex:M,totalSteps:a,onNext:u,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:f})]})]})}function uo(t){return Hn("a",{class:t.class,href:t.href,target:"_blank",rel:"noopener noreferrer",onClick:t.onClick,children:t.children})}function so(t){var r=t.onClick,e=t.children;return Hn("div",{class:t.class,role:"button",tabIndex:0,onClick:r,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),r())},style:{cursor:"pointer"},children:e})}function co(t){return Hn("div",{class:t.class,children:t.children})}function ho(r){return Hn("div",{class:"ph-tour-banner-wrapper",children:Hn("div",{class:"ph-tour-banner-slide",children:Hn(fo,t({},r))})})}function fo(t){var r,e=t.step,n=t.onDismiss,o=t.onActionClick,i=null!==(r=e.bannerConfig)&&void 0!==r?r:{behavior:"sticky"},a=i.action,l="always"!==t.displayFrequency,u=["ph-tour-banner","sticky"===i.behavior&&"ph-tour-banner--sticky","custom"===i.behavior&&"ph-tour-banner--custom"].filter(Boolean).join(" "),s=Hn(M,{children:[Hn("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:Fn(e)}}),l&&Hn("button",{class:"ph-tour-banner-dismiss",onClick(t){t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Gn()})]});return"link"===(null==a?void 0:a.type)&&a.link?Hn(uo,{class:u,href:a.link,onClick:o,children:s}):"trigger_tour"===(null==a?void 0:a.type)&&o?Hn(so,{class:u,onClick:o,children:s}):Hn(co,{class:u,children:s})}function po(t){var r,e;return!(null==(r=t.conditions)||!r.events||0>=(null==(e=t.conditions.events.values)?void 0:e.length))}function vo(t){var r,e;return!(null==(r=t.conditions)||!r.actions||0>=(null==(e=t.conditions.actions.values)?void 0:e.length))}var mo=class{on(t,r){return this.Ja[t]||(this.Ja[t]=[]),this.Ja[t].push(r),()=>{this.Ja[t]=this.Ja[t].filter(t=>t!==r)}}emit(t,r){for(var e of this.Ja[t]||[])e(r);for(var n of this.Ja["*"]||[])n(t,r)}constructor(){this.Ja={}}};function go(t,r,e){if(Vt(t))return!1;switch(e){case"exact":return t===r;case"contains":var n=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(t);case"regex":try{return new RegExp(r).test(t)}catch(t){return!1}default:return!1}}var bo,yo=class{constructor(t){this._instance=t,this.th=new Set,this.eh=new Set,this.ih=new mo,this.rh=(t,r)=>this.nh(t,r)&&this.sh(t,r)&&this.oh(t,r)&&this.ah(t,r),this.nh=(t,r)=>null==r||!r.event||(null==t?void 0:t.event)===(null==r?void 0:r.event)}init(){var t,r;Bt(null==(t=this._instance)?void 0:t._addCaptureHook)||(this.uh=null==(r=this._instance)?void 0:r._addCaptureHook((t,r)=>{this.on(t,r)}))}dispose(){var t;null==(t=this.uh)||t.call(this),this.uh=void 0,this.ih=new mo}register(t){var r,e;if(!Bt(null==(r=this._instance)?void 0:r._addCaptureHook)&&(t.forEach(t=>{var r;this.th.add(t),null==(r=t.steps)||r.forEach(t=>{this.eh.add((null==t?void 0:t.event)||"")})}),null!=(e=this._instance)&&e.autocapture)){var n=new Set;this.th.forEach(t=>{var r;null==(r=t.steps)||r.forEach(t=>{null!=t&&t.selector&&n.add(t.selector)})}),this._instance.autocapture.setElementSelectors(n)}}replace(t){this.th.clear(),this.eh.clear(),this.register(t)}on(t,r){null!=r&&0!=t.length&&(this.eh.has(t)||this.eh.has(r.event))&&this.th.forEach(t=>{this.hh(r,t)&&this.ih.emit("actionCaptured",t.name)})}dh(t){this.onAction("actionCaptured",r=>t(r))}hh(t,r){if(null==(null==r?void 0:r.steps))return!1;for(var e of r.steps)if(this.rh(t,e))return!0;return!1}onAction(t,r){return this.ih.on(t,r)}sh(t,r){if(null!=r&&r.url){var e,n=null==t||null==(e=t.properties)?void 0:e.$current_url;if(!n||"string"!=typeof n)return!1;if(!go(n,r.url,r.url_matching||"contains"))return!1}return!0}oh(t,r){return!!this.fh(t,r)&&!!this.ph(t,r)&&!!this.gh(t,r)}fh(t,r){var e;if(null==r||!r.href)return!0;var n=this.mh(t);if(n.length>0)return n.some(t=>go(t.href,r.href,r.href_matching||"exact"));var o,i=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!i&&go((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",r.href,r.href_matching||"exact")}ph(t,r){var e;if(null==r||!r.text)return!0;var n=this.mh(t);if(n.length>0)return n.some(t=>go(t.text,r.text,r.text_matching||"exact")||go(t.$el_text,r.text,r.text_matching||"exact"));var o,i,a,l=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!l&&(o=function(t){for(var r,e=[],n=/(?::|")text="(.*?)"/g;!Vt(r=n.exec(t));)e.includes(r[1])||e.push(r[1]);return e}(l),i=r.text,a=r.text_matching||"exact",o.some(t=>go(t,i,a)))}gh(t,r){var e,n;if(null==r||!r.selector)return!0;if(null!=t&&null!=(e=t.properties)&&null!=(e=e.$element_selectors)&&e.includes(r.selector))return!0;var o=(null==t||null==(n=t.properties)?void 0:n.$elements_chain)||"";if(r.selector_regex&&o)try{return new RegExp(r.selector_regex).test(o)}catch(t){return!1}return!1}mh(t){var r;return null==(null==t||null==(r=t.properties)?void 0:r.$elements)?[]:null==t?void 0:t.properties.$elements}ah(t,r){return null==r||!r.properties||0===r.properties.length||Fe(r.properties.reduce((t,r)=>{var e=Zt(r.value)?r.value.map(String):null!=r.value?[String(r.value)]:[];return t[r.key]={values:e,operator:r.operator||"exact"},t},{}),null==t?void 0:t.properties)}},wo=class{constructor(t){var r;this.yh=[],this._instance=t,this.bh=new Map,this._h=new Map,this.wh=new Map,this.kh=null==(r=this._instance)||null==r.onSessionId?void 0:r.onSessionId(t=>this.Sh(t))}xh(t){return!1}Ch(){return null}Th(t){}Mh(){}Ih(t,r){return!!t&&Fe(t.propertyFilters,null==r?void 0:r.properties)}Eh(t,r){var e=new Map;return t.forEach(t=>{var n;null==(n=t.conditions)||null==(n=n[r])||null==(n=n.values)||n.forEach(r=>{if(null!=r&&r.name){var n=e.get(r.name)||[];n.push(t.id),e.set(r.name,n)}})}),e}Rh(t,r,e){var n=(e===Et?this.bh:this._h).get(t),o=[];return this.Ph(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[e])||null==(o=o.values)?void 0:o.find(r=>r.name===t);return this.Ih(i,r)})}register(t){this.Ah(t,!1)}replace(t){this.Ah(t,!0)}Ah(t,r){var e;Bt(null==(e=this._instance)?void 0:e._addCaptureHook)||(this.Fh(t,r),this.Oh(t,r))}Oh(t,r){var e=t.filter(t=>{var r;return null==(r=t.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length});if(r&&this.wh.clear(),0!==e.length){this.$h||(this.$h=new yo(this._instance),this.$h.init(),this.$h.dh(t=>this.onAction(t)));var n=[];e.forEach(t=>{var r;null==(r=t.conditions)||null==(r=r.actions)||r.values.forEach(r=>{if(n.push(r),r.name){var e,o=null!==(e=this.wh.get(r.name))&&void 0!==e?e:[];o.includes(t.id)||o.push(t.id),this.wh.set(r.name,o)}})}),r?this.$h.replace(n):this.$h.register(n)}else{var o;r&&(null==(o=this.$h)||o.replace([]))}}Dh(t,r){r.forEach((r,e)=>{var n,o=null!==(n=t.get(e))&&void 0!==n?n:[];r.forEach(t=>{o.includes(t)||o.push(t)}),t.set(e,o)})}Fh(t,r){var e,n,o=t.filter(t=>{var r,e;return(null==(r=t.conditions)?void 0:r.events)&&(null==(e=t.conditions)||null==(e=e.events)||null==(e=e.values)?void 0:e.length)>0}),i=t.filter(t=>{var r,e;return(null==(r=t.conditions)?void 0:r.cancelEvents)&&(null==(e=t.conditions)||null==(e=e.cancelEvents)||null==(e=e.values)?void 0:e.length)>0}),a=this.Eh(t,Et),l=this.Eh(t,It);r?(this.bh=a,this._h=l):(this.Dh(this.bh,a),this.Dh(this._h,l)),(0!==o.length||0!==i.length)&&(null!==(e=this.uh)&&void 0!==e||(this.uh=null==(n=this._instance)?void 0:n._addCaptureHook((t,r)=>{this.onEvent(t,r)})))}onEvent(t,r){var e,n,o=this.Lh(),i=(null==r||null==(e=r.properties)?void 0:e.$survey_id)||(null==r||null==(n=r.properties)?void 0:n.$product_tour_id);if(i&&this.getActivatedIds().includes(i)){var a=this.Nh(t,i);if("consume"===a)return o.info("event consumed activated item, removing it",{event:t,itemId:i}),void this.qh([i]);if("persist"===a)return o.info("shown item promoted to persisted activation",{event:t,itemId:i}),this.jh(i),void this.Bh([i])}if(this._h.has(t)){var l=this.Rh(t,r,It);l.length>0&&(o.info("cancel event matched, cancelling items",{event:t,itemsToCancel:l.map(t=>t.id)}),this.qh(l.map(t=>t.id)),l.forEach(t=>this.Hh(t.id)))}if(this.bh.has(t)){o.info("event name matched",{event:t,eventPayload:r,items:this.bh.get(t)});var u=this.Rh(t,r,Et);this.zh(u.map(t=>t.id))}}onAction(t){this.wh.has(t)&&this.zh(this.wh.get(t)||[])}zh(t){var r;if(0!==t.length){var e=!(null==(r=this._instance)||null==r.get_session_id||!r.get_session_id()),n=[];for(var o of t)e&&this.xh(o)?this.jh(o)&&this.Uh(o):n.push(o);n.length>0&&(this.yh=[...new Set([...this.yh,...n])]),this.Lh().info("updating activated items",{activatedItems:this.getActivatedIds()})}}jh(t){this.yh=this.yh.filter(r=>r!==t);var r=this.Wh();return!r.includes(t)&&(this.Vh([...r,t]),this.Gh(),!0)}qh(t){var r=new Set(t);this.yh=this.yh.filter(t=>!r.has(t));var e=this.Zh(),n=e.filter(t=>!r.has(t));n.length!==e.length&&(this.Vh(n),0===n.length&&this.Jh()),this.Bh(t)}Qh(){var t,r=this.Ch();if(!r)return{};var e=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r];return e&&"object"==typeof e?e:{}}Uh(r){if(this.Ch()){var e=this.Qh();this.Th(t({},e,{[r]:Date.now()}))}}Bh(t){if(this.Ch()){var r=this.Qh(),e={},n=!1;for(var o of Object.entries(r)){var i=o[0],a=o[1];t.includes(i)?n=!0:e[i]=a}n&&((t=>{if((t=>t===Object(t)&&!Zt(t))(t)){for(var r in t)if(Pt.call(t,r))return!1;return!0}return!1})(e)?this.Mh():this.Th(e))}}Kh(){this.Ch()&&this.Mh()}getActivationTimestamp(t){if(this.Wh().includes(t)){var r=this.Qh()[t];return Ut(r)?r:void 0}}Zh(){var t,r=this.Xh();return(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r])||[]}Wh(){var t,r,e=this.Zh();if(0===e.length)return[];var n=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[this.Yh()],o=null==(r=this._instance)||null==r.get_session_id?void 0:r.get_session_id();return o&&n===o?e:[]}Gh(){var t,r=null==(t=this._instance)||null==t.get_session_id?void 0:t.get_session_id();r&&this.td(r)}Jh(){this.ed()}Sh(t){var r,e=null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[this.Yh()];if(e&&e!==t){var n=this.Zh(),o=this.Qh();n.length>0&&(this.Vh([]),n.filter(t=>Ut(o[t])).forEach(t=>this.Hh(t))),this.Jh(),this.Kh()}}getActivatedIds(){return[...new Set([...this.Wh(),...this.yh])].filter(t=>!this.rd(t))}dispose(){var t,r,e;null==(t=this.kh)||t.call(this),this.kh=void 0,null==(r=this.uh)||r.call(this),this.uh=void 0,null==(e=this.$h)||e.dispose(),this.$h=void 0}reset(){this.yh=[],this.Zh().length>0&&this.Vh([]),this.Jh(),this.Kh()}getEventToItemsMap(){return this.bh}nd(){return this.$h}},_o=De("[Product Tour Event Receiver]"),xo=class extends wo{constructor(t){super(t)}Xh(){return J}Yh(){return X}sd(){return rt}Ph(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.getProductTours(t)}Hh(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.cancelPendingTour(t)}Lh(){return _o}Vh(t){var r;null==(r=this._instance)||null==(r=r.persistence)||r.register({[J]:t})}td(t){var r;null==(r=this._instance)||null==(r=r.persistence)||r.register({[X]:t})}ed(){var t;null==(t=this._instance)||null==(t=t.persistence)||t.unregister(X)}rd(t){if(!t)return!0;var r=""+Sn+t;return!(!Ye.li(""+Cn+t)&&!Ye.li(r))}Nh(t){return t===this.sd()?"consume":"ignore"}getTours(){return this.getActivatedIds()}},ko=De("[Product Tours]"),To=i,Co=e,So=new Map;function Ao(t,r){var n=t.conditions;if(null==n||!n.url)return!0;var o=function(t){var r,n=null==e||null==(r=e.location)?void 0:r.href;return Bt(n)?void 0:function(t,r){var e,n=null==t||null==(e=t.config)?void 0:e.get_current_url;if(!Ft(n))return r;try{var o=n(r);return(t=>"[object String]"==Nt.call(t))(o)&&o?o:r}catch(t){return Re.error("Error in get_current_url, falling back to window.location.href",t),r}}(t,n)}(r);if(!o)return!1;o!==bo&&(So.clear(),bo=o);var i=So.get(t.id);if(!Bt(i))return i;var a,l=n.urlMatchType||"icontains";return a="exact"===l?Pn(o)===Pn(n.url):Ze[l]([n.url],[o]),So.set(t.id,a),a}function qo(t){var r=new Date;return!(t.start_date&&r<new Date(t.start_date)||t.end_date&&r>new Date(t.end_date))}function Mo(t,r){var n;return qo(t)&&Ao(t,r)&&function(t){var r,n,i;if(!t||0===t.length)return!0;if(!_)return!1;var a,l,u,s,c,h,f=(a={userAgentDataPlatform:null==o||null==(r=o.userAgentData)?void 0:r.platform,maxTouchPoints:null==o?void 0:o.maxTouchPoints,screenWidth:null==e||null==(n=e.screen)?void 0:n.width,screenHeight:null==e||null==(i=e.screen)?void 0:i.height,devicePixelRatio:null==e?void 0:e.devicePixelRatio},(h=function(t){return ur.test(t)?Xt:lr.test(t)?tr:ar.test(t)?rr:new RegExp(nr,"i").test(t)?nr:new RegExp("(Windows Phone|WPDesktop)","i").test(t)?"Windows Phone":/iPad/.test(t)?Kt:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?Jt:sr.test(t)?"BlackBerry":/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(er,"i").test(t)?er:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Wt).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?"Android":Gt:new RegExp("(pda|Mobile)","i").test(t)?or:new RegExp(Yt,"i").test(t)&&!new RegExp("Tablet pc","i").test(t)?ir:""}(_))===Kt||h===Gt||"Kobo"===h||"Kindle Fire"===h||h===ir?Yt:h===Xt||h===rr||h===tr||h===nr?"Console":h===Jt?"Wearable":h?Wt:"Android"===(null==a?void 0:a.userAgentDataPlatform)&&(null!==(l=null==a?void 0:a.maxTouchPoints)&&void 0!==l?l:0)>0?600>Math.min(null!==(u=null==a?void 0:a.screenWidth)&&void 0!==u?u:0,null!==(s=null==a?void 0:a.screenHeight)&&void 0!==s?s:0)/(null!==(c=null==a?void 0:a.devicePixelRatio)&&void 0!==c?c:1)?Wt:Yt:"Desktop");return Ze.icontains(t,[f])}(null==(n=t.conditions)?void 0:n.deviceTypes)}var jo="ph-product-tour-container",Eo="data-ph-tour-trigger",Io=class{constructor(r){var e=this;this.tm=null,this.rm=0,this.nm=!1,this.om=!1,this.im=null,this.am=new Map,this.lm=new Map,this.um=new Set,this.sm=new Set,this.hm=()=>{To.hidden&&this.im?(clearInterval(this.im),this.im=null):To.hidden||this.im||(this.im=setInterval(()=>{this.fm()},1e3),this.fm())},this.nextStep=()=>{if(this.tm){var t=this.tm.steps[this.rm];this.Qs("product tour step completed",{[et]:this.tm.id,[at]:t.id,[lt]:this.rm}),this.tm.steps.length-1>this.rm?(this.dm(this.rm+1),this.pm()):this.vm()}},this.previousStep=()=>{this.tm&&0!==this.rm&&(this.dm(this.rm-1),this.pm())},this.dismissTour=function(t){if(void 0===t&&(t="user_clicked_skip"),e.tm){var r=e.tm.steps[e.rm];e.Qs("product tour dismissed",{[et]:e.tm.id,[at]:r.id,[lt]:e.rm,[st]:t}),e.nm||(Ye.ui(""+Sn+e.tm.id,!0),e._instance.capture("$set",{$set:{["$product_tour_dismissed/"+e.tm.id]:!0}})),Co.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:e.tm.id,reason:t}})),e.gm()}},this.bm=()=>{var t;if(this.tm){var r=this.ym();if(r){var e=null==(t=r.bannerConfig)?void 0:t.action;this.Qs("product tour banner action clicked",{[et]:this.tm.id,[nt]:this.tm.name,[ot]:this.tm.current_iteration||1,[at]:r.id,[lt]:this.rm,[ht]:null==e?void 0:e.type,[ft]:null==e?void 0:e.link,[dt]:null==e?void 0:e.tourId}),"trigger_tour"===(null==e?void 0:e.type)&&e.tourId&&(this.gm(),this.showTourById(e.tourId))}}},this.wm=r=>{if(this.tm){var e=this.tm.steps[this.rm];e&&this.Qs("product tour button clicked",t({[et]:this.tm.id,[nt]:this.tm.name,[ot]:this.tm.current_iteration||1,[at]:e.id,[lt]:this.rm,[ct]:r.text,[ht]:r.action},r.link&&{[ft]:r.link},r.tourId&&{[dt]:r.tourId}))}switch(r.action){case"dismiss":this.dismissTour("user_clicked_skip");break;case"next_step":this.nextStep();break;case"previous_step":this.previousStep();break;case"link":this.vm();break;case"trigger_tour":r.tourId&&(this.vm(),this.showTourById(r.tourId))}},this._instance=r,this._m=new xo(r)}xm(t){for(var r of t.filter(t=>!t.disable_image_preload).flatMap(t=>t.steps.flatMap(Zn)))this.sm.has(r)||(this.sm.add(r),(new Image).src=r)}ym(){var r;if(!this.tm)return null;var e=this.tm.steps[this.rm];if(!e)return null;var n=null!==(r=this._instance.config.override_display_language)&&void 0!==r?r:navigator.language||navigator.userLanguage;return function(r,e){var n;if(!e||!r.translations)return r;var o=r.translations,i=null!==(n=o[e])&&void 0!==n?n:o[e.split("-")[0]];if(!i)return Mn.info('No matching translation for "'+e+'" in step '+r.id+", using default"),r;var a=t({},r);return Bt(i.content)||(a.content=i.content),Bt(i.contentHtml)||(a.contentHtml=i.contentHtml),i.buttons&&a.buttons&&(a.buttons={primary:a.buttons.primary&&t({},a.buttons.primary,i.buttons.primary),secondary:a.buttons.secondary&&t({},a.buttons.secondary,i.buttons.secondary)}),i.survey&&a.survey&&(a.survey=t({},a.survey,i.survey)),a}(e,null!=n?n:null)}dm(t){this.rm=t,this.km()}km(){this.tm&&!this.nm&&Ke.ui(An,{tourId:this.tm.id,stepIndex:this.rm})}Tm(){Ke.hi(An)}Cm(){var t=Ke.li(An);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.im){var t=this.Cm();t?this.Sm(t.tourId,t.stepIndex,()=>{this.Am()}):this.Am()}}Am(){this.im=setInterval(()=>{this.fm()},1e3),this.fm(!0),Be(To,"visibilitychange",this.hm)}Sm(t,r,e){var n;null==(n=this._instance.productTours)||n.getProductTours(n=>{var o=n.find(r=>r.id===t);o?(this.tm=o,this.rm=r,this.om=!0,this.pm()):n.length>0&&this.Tm(),e()})}stop(){this.im&&(clearInterval(this.im),this.im=null),To.removeEventListener("visibilitychange",this.hm),this.qm(),this.Mm(),this.gm()}fm(t){var r;null!=To&&To.getElementById("__POSTHOG_TOOLBAR__")||null==(r=this._instance.productTours)||r.getProductTours(t=>{if(0!==t.length){this.xm(t);var r=new Set,e=t.filter(t=>!this.um.has(t.id)&&(po(t)||vo(t)));e.length>0&&(this._m.register(e),e.forEach(t=>this.um.add(t.id)));var n=this.tm?[]:this._m.getTours();for(var o of t){var i,a=null==(i=o.conditions)?void 0:i.selector;if(a&&(r.add(o.id),this.jm(o,a)),!this.tm){var l=vo(o)||po(o);if(o.auto_launch&&this.Em(o)){if(!l){this.Im(o,"auto");continue}n.includes(o.id)&&this.Im(o,"event")}}}this.am.forEach(t=>{var e=t.tour;r.has(e.id)||this.Lm(e.id)})}else this.qm()},t)}Im(t,r){var e,n=(null==(e=t.conditions)?void 0:e.autoShowDelaySeconds)||0;n>0?this.isTourPending(t.id)||this.queueTourWithDelay(t.id,n,r):this.showTour(t,{reason:r})}Em(t){var r,e,n;if(!Mo(t,this._instance))return ko.info("Tour "+t.id+" failed conditions check"),!1;var o,i,a=null!==(r=t.display_frequency)&&void 0!==r?r:"until_interacted",l=""+Tn+t.id,u=""+Cn+t.id,s=""+Sn+t.id;switch(a){case"show_once":if(Ye.li(l))return ko.info("Tour "+t.id+" already shown (show_once frequency)"),!1;break;case"until_interacted":if(Ye.li(u)||Ye.li(s))return ko.info("Tour "+t.id+" already completed or dismissed"),!1}if(!function(t){if(!t)return!0;var r=t.days,e=t.types;if(!r||!e||0===e.length)return!0;var n=null;for(var o of e){var i=Ye.li(""+qn+o);if(i)try{var a=JSON.parse(i),l=new Date(a);isNaN(l.getTime())||n&&n>=l||(n=l)}catch(t){}}return!n||function(t,r){if(!t||!r)return!0;var e="string"==typeof r?new Date(r):r,n=Math.abs((new Date).getTime()-e.getTime());return Math.ceil(n/864e5)>t}(r,n)}(null==(e=t.conditions)?void 0:e.seenTourWaitPeriod))return ko.info("Cannot show tour "+t.id+": user has seen a "+(null==(o=t.conditions)||null==(o=o.seenTourWaitPeriod)?void 0:o.types)+" tour within the last "+(null==(i=t.conditions)||null==(i=i.seenTourWaitPeriod)?void 0:i.days)+" days."),!1;if(!this.zm({flagKey:t.internal_targeting_flag_key}))return ko.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;var c=null==(n=t.conditions)?void 0:n.linkedFlagVariant;return!!this.zm({flagKey:t.linked_flag_key,flagVariant:c})||(ko.info("Tour "+t.id+" failed feature flag check: "+t.linked_flag_key+", variant: "+c),!1)}showTour(t,r){var e,n=null!==(e=null==r?void 0:r.reason)&&void 0!==e?e:"auto";this.cancelPendingTour(t.id),this.tm=t,this.dm(0);var o=this.pm();return o?(this.Qs(rt,{[et]:t.id,[nt]:t.name,[ot]:t.current_iteration||1,[it]:n,[jt]:t.tour_type}),this.nm||(Ye.ui(""+Tn+t.id,!0),Ye.ui(""+qn+t.tour_type,(new Date).toISOString()),this._instance.capture("$set",{$set:{["$product_tour_shown/"+t.id]:!0}}))):this.gm(),o}showTourById(t,r){var e;ko.info("showTourById("+t+")"),null==(e=this._instance.productTours)||e.getProductTours(e=>{var n=e.find(r=>r.id===t);n?this.showTour(n,{reason:null!=r?r:"api"}):ko.warn("could not find tour",t)})}previewTour(t){ko.info("Previewing tour "+t.id),this.gm(),this.nm=!0,this.tm=t,this.rm=0,this.pm()}vm(){this.tm&&(this.Qs("product tour completed",{[et]:this.tm.id,[pt]:this.tm.steps.length}),this.nm||(Ye.ui(""+Cn+this.tm.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.tm.id]:!0}})),Co.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.tm.id}})),this.gm())}pm(r){var e,n;if(void 0===r&&(r=0),!this.tm)return!1;var o=this.ym();if(!o)return ko.warn("Step "+this.rm+" not found in tour "+this.tm.id),this.gm(),!1;if("banner"===o.type)return this.Om(),this.om=!1,this.Rm(),!0;if("survey"===o.type)return o.survey?(this.Dm(),!0):(ko.warn("Unable to render survey step - survey data not found"),!1);if(!Ln(o))return this.Om(),this.om=!1,this.$m(null),!0;var i=zn(o),a={[qt]:null!==(e=o.useManualSelector)&&void 0!==e&&e,[Mt]:!!o.inferenceData},l="click"===(null==(n=this.rm>0?this.tm.steps[this.rm-1]:null)?void 0:n.progressionTrigger)||this.om;if("not_found"===i.error||"not_visible"===i.error){if(l&&20>r)return setTimeout(()=>{this.pm(r+1)},100),!1;var u=100*r;return this.Pm(i,t({[Tt]:l,[Ct]:u},a)),0!==this.rm||this.om?(ko.warn('Tour "'+this.tm.name+'" dismissed: element for step '+this.rm+" became unavailable ("+i.error+")"+(l?" after waiting "+u+"ms":"")),this.dismissTour("element_unavailable"),!1):(ko.warn('Tour "'+this.tm.name+'" failed to show: element for first step not found ('+i.error+")"),!1)}if("multiple_matches"===i.error&&this.Pm(i,a),!i.element)return!1;var s=i.element,c=function(t){var r;return{tag:t.tagName,id:t.id||void 0,classes:t.className||void 0,text:(null==(r=t.innerText)?void 0:r.slice(0,100))||void 0}}(s);return this.Om(t({[vt]:o.selector,[mt]:!0,[gt]:c.tag,[bt]:c.id,[yt]:c.classes,[wt]:c.text},a)),this.om=!1,this.$m(s),!0}$m(t,r,e){if(this.tm){var n=this.ym();if(n){var o=function(t,r){var e=jo+"-"+t.id,n=To.querySelector("."+e);if(n&&n.shadowRoot)return{shadow:n.shadowRoot,isNewlyCreated:!1};var o=To.createElement("div");o.className=e,Dn(o,t.appearance);var i=o.attachShadow({mode:"open"}),a=In(r);return a&&i.appendChild(a),To.body.appendChild(o),{shadow:i,isNewlyCreated:!0}}(this.tm,this._instance).shadow;K(Hn(lo,{tour:this.tm,step:n,stepIndex:this.rm,totalSteps:this.tm.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:e||this.dismissTour,onSurveySubmit:r,onButtonClick:this.wm}),o)}}}Rm(){if(this.tm){var t=this.ym();if(t){var r,e=function(t,r,e){var n,o=jo+"-"+t.id,i=To.querySelector("."+o);if(i&&i.shadowRoot)return{shadow:i.shadowRoot,isNewlyCreated:!1};var a=To.createElement("div");a.className=o,Dn(a,t.appearance),Bt(null==e||null==(n=e.animation)?void 0:n.duration)||a.style.setProperty("--ph-tour-banner-animation-duration",e.animation.duration+"ms");var l=a.attachShadow({mode:"open"}),u=In(r);if(u&&l.appendChild(u),"custom"===(null==e?void 0:e.behavior)&&e.selector){var s=To.querySelector(e.selector);if(!s)return ko.warn("Custom banner container not found: "+e.selector+". Banner will not be displayed."),null;s.appendChild(a)}else To.body.insertBefore(a,To.body.firstChild);return{shadow:l,isNewlyCreated:!0}}(this.tm,this._instance,t.bannerConfig);if(!e)return this.Qs("product tour banner container selector failed",{[et]:this.tm.id,[St]:null==t||null==(r=t.bannerConfig)?void 0:r.selector}),void this.dismissTour("container_unavailable");var n=e.shadow;K(Hn(ho,{step:t,onDismiss:()=>this.dismissTour("user_clicked_skip"),onActionClick:this.bm,displayFrequency:this.tm.display_frequency}),n)}}}Dm(){var r,e,n;if(this.tm){var o=this.tm.id,i=this.ym();if(i){var a=i.linkedSurveyId,l=i.linkedSurveyQuestionId,u=(null==(r=i.survey)?void 0:r.questionText)||"";this.Om({[At]:a}),this.Qs("survey shown",{[Lt]:a,[Dt]:o,sessionRecordingUrl:null==(e=(n=this._instance).get_session_replay_url)?void 0:e.call(n)}),this.$m(null,r=>{var e,n,i=l?"$survey_response_"+l:"$survey_response";this.Qs("survey sent",t({[Lt]:a,[Dt]:o,[Ot]:[{id:l,question:u,response:r}],[Rt]:!0,sessionRecordingUrl:null==(e=(n=this._instance).get_session_replay_url)?void 0:e.call(n)},!Ht(r)&&{[i]:r})),ko.info("Survey "+a+" completed",Ht(r)?"(skipped)":"with response: "+r),this.nextStep()},t=>{var r,e;this.Qs("survey dismissed",{[Lt]:a,[Dt]:o,[Ot]:[{id:l,question:u,response:null}],[zt]:!1,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),ko.info("Survey "+a+" dismissed"),this.dismissTour(t)}),ko.info("Rendered survey step for tour step "+this.rm)}}}zm(t){var r,e,n=t.flagKey,o=t.flagVariant;if(!n)return!0;var i=!(null==(r=this._instance.featureFlags)||!r.isFeatureEnabled(n,{send_event:!n.startsWith("product-tour-targeting-")})),a=!0;return o&&(a=(null==(e=this._instance.featureFlags)?void 0:e.getFeatureFlag(n,{send_event:!1}))===o||"any"===o),i&&a}gm(){var t;this.tm&&(null!=(t=To.querySelector("."+jo+"-"+this.tm.id))&&t.shadowRoot&&K(null,t.shadowRoot),null==t||t.remove()),this.tm=null,this.rm=0,this.nm=!1,this.om=!1,this.Tm()}jm(t,r){var e=To.querySelector(r),n=this.am.get(t.id);if(e){if(n){if(e===n.element)return;ko.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Lm(t.id)}if(!e.hasAttribute(Eo)){var o=e=>{var n;if(this.tm)ko.info("Tour "+t.id+" trigger clicked but another tour is active");else{var o;if(null==(n=this._instance.productTours)||n.getProductTours(r=>{o=r.find(r=>r.id===t.id)}),!o)return ko.warn("Tour "+t.id+" no longer exists. Removing stale listener."),void this.Lm(t.id);qo(o)?(ko.info("Tour "+t.id+" triggered by click on "+r),this.showTour(o,{reason:"trigger"})?e.preventDefault():ko.info("Tour "+t.id+" failed to show; not intercepting click.")):ko.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")}};Be(e,"click",o),e.setAttribute(Eo,t.id),this.am.set(t.id,{element:e,listener:o,tour:t}),ko.info("Attached trigger listener for tour "+t.id+" on "+r)}}else n&&this.Lm(t.id)}Lm(t){var r=this.am.get(t);r&&(r.element.removeEventListener("click",r.listener),r.element.removeAttribute(Eo),this.am.delete(t),ko.info("Removed trigger listener for tour "+t))}qm(){this.am.forEach((t,r)=>{this.Lm(r)})}Qs(t,r){this.nm||this._instance.capture(t,r)}Om(r){if(this.tm){var e=this.tm.steps[this.rm];this.Qs("product tour step shown",t({[et]:this.tm.id,[at]:e.id,[lt]:this.rm,[ut]:e.type},r))}}Pm(r,e){if(this.tm){var n=this.tm.steps[this.rm];this.Qs("product tour step selector failed",t({[et]:this.tm.id,[at]:n.id,[lt]:this.rm,[vt]:n.selector,[_t]:r.error,[xt]:r.matchCount,[kt]:"runtime"},e))}}getActiveProductTours(t){var r;null==(r=this._instance.productTours)||r.getProductTours((r,e)=>{t(null!=e&&e.isLoaded?r.filter(t=>this.Em(t)):[],e)})}resetTour(t){Ye.hi(""+Tn+t),Ye.hi(""+Cn+t),Ye.hi(""+Sn+t)}resetAllTours(){var t=null==Co?void 0:Co.localStorage;if(t){for(var r=[],e=0;t.length>e;e++){var n=t.key(e);(null!=n&&n.startsWith("ph_product_tour_shown_")||null!=n&&n.startsWith("ph_product_tour_completed_")||null!=n&&n.startsWith("ph_product_tour_dismissed_")||null!=n&&n.startsWith("ph_last_seen_tour_date_"))&&r.push(n)}r.forEach(t=>Ye.hi(t))}}cancelPendingTour(t){var r=this.lm.get(t);r&&(clearTimeout(r),this.lm.delete(t),ko.info("Cancelled pending tour: "+t))}Mm(){this.lm.forEach(t=>clearTimeout(t)),this.lm.clear()}isTourPending(t){return this.lm.has(t)}queueTourWithDelay(t,r,e){ko.info("Queueing tour "+t+" with "+r+"s delay");var n=setTimeout(()=>{this.lm.delete(t),ko.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,e)},1e3*r);this.lm.set(t,n)}};function Lo(t,r){if(i){var e=new Io(t);return r&&e.start(),e}}var zo="undefined"!=typeof globalThis?globalThis:e;zo&&"undefined"==typeof self&&(zo.self=zo),zo&&"undefined"==typeof File&&(zo.File=function(){});var Oo=null!=e?e:{};Oo.__PosthogExtensions__=Oo.__PosthogExtensions__||{},Oo.__PosthogExtensions__.generateProductTours=Lo,r.default=Lo,r.elementIsVisible=je,r.findElement=ze,r.getElementPath=function(t,r){if(void 0===r&&(r=4),!t)return null;for(var e=[],n=t;n&&r>e.length&&"BODY"!==n.tagName;){var o=n.tagName.toLowerCase();n.id?o+="#"+n.id:n.classList.length&&(o+="."+n.classList[0]),e.unshift(o),n=n.parentElement}return e.join(" > ")}}({})}();
|
|
1
|
+
!function(){function t(){return t=Object.assign?Object.assign.bind():function(t){for(var r=1;arguments.length>r;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},t.apply(null,arguments)}!function(r){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e="u">typeof window?window:void 0,n="u">typeof globalThis?globalThis:e,o=null==n?void 0:n.navigator,i=null==n?void 0:n.document;null!=n&&n.XMLHttpRequest&&new n.XMLHttpRequest;var a,l,u,s,c,h,f,d,p,v,m,g,b,y,w,_=null==o?void 0:o.userAgent,x={},k=[],T=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,C=Array.isArray;function S(t,r){for(var e in r)t[e]=r[e];return t}function A(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function q(t,r,e,n,o){var i={type:t,props:r,key:e,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(i),i}function M(t){return t.children}function j(t,r){this.props=t,this.context=r}function $(t,r){if(null==r)return t.__?$(t.__,t.__i+1):null;for(var e;t.__k.length>r;r++)if(null!=(e=t.__k[r])&&null!=e.__e)return e.__e;return"function"==typeof t.type?$(t):null}function E(t){if(t.__P&&t.__d){var r=t.__v,e=r.__e,n=[],o=[],i=S({},r);i.__v=r.__v+1,l.vnode&&l.vnode(i),B(t.__P,i,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,n,null==e?$(r):e,!!(32&r.__u),o),i.__v=r.__v,i.__.__k[i.__i]=i,V(n,i,o),r.__e=r.__=null,i.__e!=e&&I(i)}}function I(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some(function(r){if(null!=r&&null!=r.__e)return t.__e=t.__c.base=r.__e}),I(t)}function L(t){(!t.__d&&(t.__d=!0)&&s.push(t)&&!z.__r++||c!=l.debounceRendering)&&((c=l.debounceRendering)||h)(z)}function z(){try{for(var t,r=1;s.length;)s.length>r&&s.sort(f),t=s.shift(),r=s.length,E(t)}finally{s.length=z.__r=0}}function O(t,r,e,n,o,i,a,l,u,s,c){var h,f,d,p,v,m,g,b=n&&n.__k||k,y=r.length;for(u=R(e,r,b,u,y),h=0;y>h;h++)null!=(d=e.__k[h])&&(f=-1!=d.__i&&b[d.__i]||x,d.__i=h,m=B(t,d,f,o,i,a,l,u,s,c),p=d.__e,d.ref&&f.ref!=d.ref&&(f.ref&&W(f.ref,null,d),c.push(d.ref,d.__c||p,d)),null==v&&null!=p&&(v=p),(g=!!(4&d.__u))||f.__k===d.__k?(u=D(d,u,t,g),g&&f.__e&&(f.__e=null)):"function"==typeof d.type&&void 0!==m?u=m:p&&(u=p.nextSibling),d.__u&=-7);return e.__e=v,u}function R(t,r,e,n,o){var i,a,l,u,s,c=e.length,h=c,f=0;for(t.__k=new Array(o),i=0;o>i;i++)null!=(a=r[i])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=t.__k[i]=q(null,a,null,null,null):C(a)?a=t.__k[i]=q(M,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=t.__k[i]=q(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):t.__k[i]=a,u=i+f,a.__=t,a.__b=t.__b+1,l=null,-1!=(s=a.__i=P(a,e,u,h))&&(h--,(l=e[s])&&(l.__u|=2)),null==l||null==l.__v?(-1==s&&(o>c?f--:c>o&&f++),"function"!=typeof a.type&&(a.__u|=4)):s!=u&&(s==u-1?f--:s==u+1?f++:(s>u?f--:f++,a.__u|=4))):t.__k[i]=null;if(h)for(i=0;c>i;i++)null!=(l=e[i])&&!(2&l.__u)&&(l.__e==n&&(n=$(l)),Y(l,l));return n}function D(t,r,e,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&o.length>i;i++)o[i]&&(o[i].__=t,r=D(o[i],r,e,n));return r}t.__e!=r&&(n&&(r&&t.type&&!r.parentNode&&(r=$(t)),e.insertBefore(t.__e,r||null)),r=t.__e);do{r=r&&r.nextSibling}while(null!=r&&8==r.nodeType);return r}function P(t,r,e,n){var o,i,a,l=t.key,u=t.type,s=r[e],c=null!=s&&!(2&s.__u);if(null===s&&null==l||c&&l==s.key&&u==s.type)return e;if(n>(c?1:0))for(o=e-1,i=e+1;o>=0||r.length>i;)if(null!=(s=r[a=0>o?i++:o--])&&!(2&s.__u)&&l==s.key&&u==s.type)return a;return-1}function N(t,r,e){"-"==r[0]?t.setProperty(r,null==e?"":e):t[r]=null==e?"":"number"!=typeof e||T.test(r)?e:e+"px"}function Z(t,r,e,n,o){var i,a;t:if("style"==r)if("string"==typeof e)t.style.cssText=e;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(r in n)e&&r in e||N(t.style,r,"");if(e)for(r in e)n&&e[r]==n[r]||N(t.style,r,e[r])}else if("o"==r[0]&&"n"==r[1])i=r!=(r=r.replace(m,"$1")),a=r.toLowerCase(),r=a in t||"onFocusOut"==r||"onFocusIn"==r?a.slice(2):r.slice(2),t.l||(t.l={}),t.l[r+i]=e,e?n?e[v]=n[v]:(e[v]=g,t.addEventListener(r,i?y:b,i)):t.removeEventListener(r,i?y:b,i);else{if("http://www.w3.org/2000/svg"==o)r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=r&&"height"!=r&&"href"!=r&&"list"!=r&&"form"!=r&&"tabIndex"!=r&&"download"!=r&&"rowSpan"!=r&&"colSpan"!=r&&"role"!=r&&"popover"!=r&&r in t)try{t[r]=null==e?"":e;break t}catch(t){}"function"==typeof e||(null==e||!1===e&&"-"!=r[4]?t.removeAttribute(r):t.setAttribute(r,"popover"==r&&1==e?"":e))}}function F(t){return function(r){if(this.l){var e=this.l[r.type+t];if(null==r[p])r[p]=g++;else if(e[v]>r[p])return;return e(l.event?l.event(r):r)}}}function B(t,r,e,n,o,i,a,u,s,c){var h,f,d,p,v,m,g,b,y,w,$,_,x,T,q,E,I=r.type;if(void 0!==r.constructor)return null;128&e.__u&&(s=!!(32&e.__u),i=[u=r.__e=e.__e]),(h=l.__b)&&h(r);t:if("function"==typeof I){f=a.length;try{if(y=r.props,w=I.prototype&&I.prototype.render,$=(h=I.contextType)&&n[h.__c],_=h?$?$.props.value:h.__:n,e.__c?b=(d=r.__c=e.__c).__=d.__E:(w?r.__c=d=new I(y,_):(r.__c=d=new j(y,_),d.constructor=I,d.render=G),$&&$.sub(d),d.state||(d.state={}),d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),w&&null==d.__s&&(d.__s=d.state),w&&null!=I.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=S({},d.__s)),S(d.__s,I.getDerivedStateFromProps(y,d.__s))),v=d.props,m=d.state,d.__v=r,p)w&&null==I.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),w&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(w&&null==I.getDerivedStateFromProps&&y!==v&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,_),r.__v==e.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,_)){r.__v!=e.__v&&(d.props=y,d.state=d.__s,d.__d=!1),r.__e=e.__e,r.__k=e.__k,r.__k.some(function(t){t&&(t.__=r)}),k.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&a.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,_),w&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(v,m,g)})}if(d.context=_,d.props=y,d.__P=t,d.__e=!1,x=l.__r,T=0,w)d.state=d.__s,d.__d=!1,x&&x(r),h=d.render(d.props,d.state,d.context),k.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,x&&x(r),h=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&25>++T);d.state=d.__s,null!=d.getChildContext&&(n=S(S({},n),d.getChildContext())),w&&!p&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(v,m)),q=null!=h&&h.type===M&&null==h.key?U(h.props.children):h,u=O(t,C(q)?q:[q],r,e,n,o,i,a,u,s,c),d.base=r.__e,r.__u&=-161,d.__h.length&&a.push(d),b&&(d.__E=d.__=null)}catch(t){if(a.length=f,r.__v=null,s||null!=i)if(t.then){for(r.__u|=s?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;null!=i&&(i[i.indexOf(u)]=null),r.__e=u}else{if(null!=i)for(E=i.length;E--;)A(i[E]);H(r)}else r.__e=e.__e,!r.__k&&e.__k&&(r.__k=e.__k),t.then||H(r);l.__e(t,r,e)}}else null==i&&r.__v==e.__v?(r.__k=e.__k,r.__e=e.__e):u=r.__e=Q(e.__e,r,e,n,o,i,a,s,c);return(h=l.diffed)&&h(r),128&r.__u?void 0:u}function H(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(H))}function V(t,r,e){for(var n=0;e.length>n;n++)W(e[n],e[++n],e[++n]);l.__c&&l.__c(r,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(t){t.call(r)})}catch(t){l.__e(t,r.__v)}})}function U(t){return"object"!=typeof t||null==t||t.__b>0?t:C(t)?t.map(U):void 0!==t.constructor?null:S({},t)}function Q(t,r,e,n,o,i,u,s,c){var h,f,d,p,v,m,g,b=e.props||x,y=r.props,w=r.type;if("svg"==w?o="http://www.w3.org/2000/svg":"math"==w?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(h=0;i.length>h;h++)if((v=i[h])&&"setAttribute"in v==!!w&&(w?v.localName==w:3==v.nodeType)){t=v,i[h]=null;break}if(null==t){if(null==w)return document.createTextNode(y);t=document.createElementNS(o,w,y.is&&y),s&&(l.__m&&l.__m(r,i),s=!1),i=null}if(null==w)b===y||s&&t.data==y||(t.data=y);else{if(i="textarea"==w&&null!=y.defaultValue?null:i&&a.call(t.childNodes),!s&&null!=i)for(b={},h=0;t.attributes.length>h;h++)b[(v=t.attributes[h]).name]=v.value;for(h in b)v=b[h],"dangerouslySetInnerHTML"==h?d=v:"children"==h||h in y||"value"==h&&"defaultValue"in y||"checked"==h&&"defaultChecked"in y||Z(t,h,null,v,o);for(h in y)v=y[h],"children"==h?p=v:"dangerouslySetInnerHTML"==h?f=v:"value"==h?m=v:"checked"==h?g=v:s&&"function"!=typeof v||b[h]===v||Z(t,h,v,b[h],o);if(f)s||d&&(f.__html==d.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),r.__k=[];else if(d&&(t.innerHTML=""),O("template"==r.type?t.content:t,C(p)?p:[p],r,e,n,"foreignObject"==w?"http://www.w3.org/1999/xhtml":o,i,u,i?i[0]:e.__k&&$(e,0),s,c),null!=i)for(h=i.length;h--;)A(i[h]);s&&"textarea"!=w||(h="value","progress"==w&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[h]||"progress"==w&&!m||"option"==w&&m!=b[h])&&Z(t,h,m,b[h],o),h="checked",null!=g&&g!=t[h]&&Z(t,h,g,b[h],o))}return t}function W(t,r,e){try{if("function"==typeof t){var n="function"==typeof t.__u;n&&t.__u(),n&&null==r||(t.__u=t(r))}else t.current=r}catch(t){l.__e(t,e)}}function Y(t,r,e){var n,o;if(l.unmount&&l.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||W(n,null,r)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){l.__e(t,r)}n.base=n.__P=n.__n=null}if(n=t.__k)for(o=0;n.length>o;o++)n[o]&&Y(n[o],r,e||"function"!=typeof t.type);e||A(t.__e),t.__c=t.__=t.__e=void 0}function G(t,r,e){return this.constructor(t,e)}function K(t,r,e){var n,o,i,u;r==document&&(r=document.documentElement),l.__&&l.__(t,r),o=(n="function"==typeof e)?null:e&&e.__k||r.__k,i=[],u=[],B(r,t=(!n&&e||r).__k=function(t,r,e){var n,o,i,l={};for(i in r)"key"==i?n=r[i]:"ref"==i?o=r[i]:l[i]=r[i];if(arguments.length>2&&(l.children=arguments.length>3?a.call(arguments,2):e),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return q(t,l,n,o,null)}(M,null,[t]),o||x,x,r.namespaceURI,!n&&e?[e]:o?null:r.firstChild?a.call(r.childNodes):null,i,!n&&e?e:o?o.__e:r.firstChild,n,u),V(i,t,u),t.props.children=null}a=k.slice,l={__e(t,r,e,n){for(var o,i,a;r=r.__;)if((o=r.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,n||{}),a=o.__d),a)return o.__E=o}catch(r){t=r}throw t}},u=0,j.prototype.setState=function(t,r){var e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=S({},this.state);"function"==typeof t&&(t=t(S({},e),this.props)),t&&S(e,t),null!=t&&this.__v&&(r&&this._sb.push(r),L(this))},j.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),L(this))},j.prototype.render=M,s=[],h="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(t,r){return t.__v.__b-r.__v.__b},z.__r=0,d=Math.random().toString(8),p="__d"+d,v="__a"+d,m=/(PointerCapture)$|Capture$/i,g=0,b=F(!1),y=F(!0),w=0;var J="$product_tours_activated",X="$product_tours_activated_session",tt={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},rt="product tour shown",et="$product_tour_id",nt="$product_tour_name",ot="$product_tour_iteration",it="$product_tour_render_reason",at="$product_tour_step_id",lt="$product_tour_step_order",ut="$product_tour_step_type",st="$product_tour_dismiss_reason",ct="$product_tour_button_text",ht="$product_tour_button_action",ft="$product_tour_button_link",dt="$product_tour_button_tour_id",pt="$product_tour_steps_count",vt="$product_tour_step_selector",mt="$product_tour_step_selector_found",gt="$product_tour_step_element_tag",bt="$product_tour_step_element_id",yt="$product_tour_step_element_classes",wt="$product_tour_step_element_text",_t="$product_tour_error",xt="$product_tour_matches_count",kt="$product_tour_failure_phase",Tt="$product_tour_waited_for_element",Ct="$product_tour_wait_duration_ms",St="$product_tour_banner_selector",At="$product_tour_linked_survey_id",qt="$use_manual_selector",Mt="$inference_data_present",jt="$product_tour_type",Et="events",It="cancelEvents",Lt="$survey_id",zt="$survey_partially_completed",Ot="$survey_questions",Rt="$survey_completed",Dt="$product_tour_id",$t=Object.prototype,Pt=$t.hasOwnProperty,Nt=$t.toString,Zt=Array.isArray||function(t){return"[object Array]"===Nt.call(t)},Ft=t=>"function"==typeof t,Bt=t=>void 0===t,Ht=t=>null===t,Vt=t=>Bt(t)||Ht(t),Ut=t=>"[object Number]"==Nt.call(t)&&t==t,Qt=(t,r,e)=>{function n(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;o>a;a++)i[a-1]=arguments[a];r(()=>{(0,e[n])(t,...i)})}return{debug(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("debug",...r)},info(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("log",...r)},warn(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("warn",...r)},error(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("error",...r)},critical(){for(var r=arguments.length,n=new Array(r),o=0;r>o;o++)n[o]=arguments[o];e.error(t,...n)},createLogger:n=>Qt(t+" "+n,r,e)}},Wt="Mobile",Yt="Tablet",Gt="Android Tablet",Kt="iPad",Jt="Apple Watch",Xt="Nintendo",tr="PlayStation",rr="Xbox",er="Nokia",nr="Ouya",or="Generic "+Wt.toLowerCase(),ir="Generic "+Yt.toLowerCase(),ar=new RegExp(rr,"i"),lr=new RegExp("PlayStation \\w+","i"),ur=new RegExp("Nintendo \\w+","i"),sr=new RegExp("BlackBerry|PlayBook|BB10","i");new RegExp(Xt,"i"),new RegExp(tr,"i"),new RegExp("Windows","i");function cr(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);r>e;e++)n[e]=t[e];return n}function hr(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,l=[],u=!0,s=!1;try{if(i=(e=e.call(t)).next,0===r);else for(;!(u=(n=i.call(e)).done)&&(l.push(n.value),l.length!==r);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,r)||function(t,r){if(t){if("string"==typeof t)return cr(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?cr(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var fr=Object.entries,dr=Object.setPrototypeOf,pr=Object.isFrozen,vr=Object.getPrototypeOf,mr=Object.getOwnPropertyDescriptor,gr=Object.freeze,br=Object.seal,yr=Object.create,wr="undefined"!=typeof Reflect&&Reflect,_r=wr.apply,xr=wr.construct;gr||(gr=function(t){return t}),br||(br=function(t){return t}),_r||(_r=function(t,r){for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;e>o;o++)n[o-2]=arguments[o];return t.apply(r,n)}),xr||(xr=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;r>n;n++)e[n-1]=arguments[n];return new t(...e)});var kr,Tr=Hr([].forEach),Cr=Hr([].lastIndexOf),Sr=Hr([].pop),Ar=Hr([].push),qr=Hr([].splice),Mr=Array.isArray,jr=Hr("".toLowerCase),Er=Hr("".toString),Ir=Hr("".match),Lr=Hr("".replace),zr=Hr("".indexOf),Or=Hr("".trim),Rr=Hr((0).toString),Dr=Hr(Boolean.prototype.toString),$r="undefined"==typeof BigInt?null:Hr(BigInt.prototype.toString),Pr="undefined"==typeof Symbol?null:Hr(Symbol.prototype.toString),Nr=Hr({}.hasOwnProperty),Zr=Hr({}.toString),Fr=Hr(/t/.test),Br=(kr=TypeError,function(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];return xr(kr,r)});function Hr(t){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;e>o;o++)n[o-1]=arguments[o];return _r(t,r,n)}}function Vr(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jr;if(dr&&dr(t,null),!Mr(r))return t;for(var n=r.length;n--;){var o=r[n];if("string"==typeof o){var i=e(o);i!==o&&(pr(r)||(r[n]=i),o=i)}t[o]=!0}return t}function Ur(t){for(var r=0;t.length>r;r++)Nr(t,r)||(t[r]=null);return t}function Qr(t){var r=yr(null);for(var e of fr(t)){var n=hr(e,2),o=n[0],i=n[1];Nr(t,o)&&(r[o]=Mr(i)?Ur(i):i&&"object"==typeof i&&i.constructor===Object?Qr(i):i)}return r}function Wr(t,r){for(;null!==t;){var e=mr(t,r);if(e){if(e.get)return Hr(e.get);if("function"==typeof e.value)return Hr(e.value)}t=vr(t)}return function(){return null}}var Yr=gr(["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"]),Gr=gr(["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"]),Kr=gr(["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"]),Jr=gr(["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"]),Xr=gr(["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"]),te=gr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),re=gr(["#text"]),ee=gr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),ne=gr(["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","dominant-baseline","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-orientation","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"]),oe=gr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),ie=gr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ae=br(/{{[\w\W]*|^[\w\W]*}}/g),le=br(/<%[\w\W]*|^[\w\W]*%>/g),ue=br(/\${[\w\W]*/g),se=br(/^data-[\-\w.\u00B7-\uFFFF]+$/),ce=br(/^aria-[\-\w]+$/),he=br(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fe=br(/^(?:\w+script|data):/i),de=br(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pe=br(/^html$/i),ve=br(/^[a-z][.\w]*(-[.\w]+)+$/i),me=br(/<[/\w!]/g),ge=br(/<[/\w]/g),be=br(/<\/no(script|embed|frames)/i),ye=br(/\/>/i),we=function(){return"undefined"==typeof window?null:window},_e=function(t,r,e,n){return Nr(t,r)&&Mr(t[r])?Vr(n.base?Qr(n.base):{},t[r],n.transform):e},xe=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:we(),e=r=>t(r);if(e.version="3.4.13",e.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return e.isSupported=!1,e;var n,o=r.document,i=o,a=i.currentScript,l=r.HTMLTemplateElement,u=r.Node,s=r.NodeFilter,c=r.DOMParser,h=r.trustedTypes,f=r.Element.prototype,d=Wr(f,"cloneNode"),p=Wr(f,"remove"),v=Wr(f,"nextSibling"),m=Wr(f,"childNodes"),g=Wr(f,"parentNode"),b=Wr(f,"shadowRoot"),y=Wr(f,"attributes"),w=u&&u.prototype?Wr(u.prototype,"nodeType"):null,_=u&&u.prototype?Wr(u.prototype,"nodeName"):null,x=u&&u.prototype?Wr(u.prototype,"ownerDocument"):null;if("function"==typeof l){var k=o.createElement("template");k.content&&k.content.ownerDocument&&(o=k.content.ownerDocument)}var T,C="",S=!1,A=0,q=function(){if(A>0)throw Br('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},M=function(t){q(),A++;try{return n.createHTML(t)}finally{A--}},j=o.implementation,E=o.createNodeIterator,I=o.createDocumentFragment,L=o.getElementsByTagName,z=i.importNode,O={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};e.isSupported="function"==typeof fr&&"function"==typeof g&&j&&void 0!==j.createHTMLDocument;var R=ae,D=le,P=ue,N=se,Z=ce,F=fe,B=de,H=ve,V=he,U=null,Q=Vr({},[...Yr,...Gr,...Kr,...Xr,...re]),W=null,Y=Vr({},[...ee,...ne,...oe,...ie]),G=Object.seal(yr(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}})),K=null,J=null,X=Object.seal(yr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),tt=!0,rt=!0,et=!1,nt=!0,ot=!1,it=!0,at=!1,lt=!1,ut=null,st=null,ct=!1,ht=!1,ft=!1,dt=!1,pt=!0,vt=!1,mt="user-content-",gt=!0,bt=!1,yt={},wt=null,_t=Vr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),xt=null,kt=Vr({},["audio","video","img","source","image","track"]),Tt=null,Ct=Vr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),St="http://www.w3.org/1998/Math/MathML",At="http://www.w3.org/2000/svg",qt="http://www.w3.org/1999/xhtml",Mt=qt,jt=!1,Et=null,It=Vr({},[St,At,qt],Er),Lt=gr(["mi","mo","mn","ms","mtext"]),zt=Vr({},Lt),Ot=gr(["annotation-xml"]),Rt=Vr({},Ot),Dt=Vr({},["title","style","font","a","script"]),$t=null,Pt=["application/xhtml+xml","text/html"],Nt=null,Zt=null,Ft=o.createElement("form"),Bt=function(t){return t instanceof RegExp||t instanceof Function},Ht=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Zt||Zt!==t){t&&"object"==typeof t||(t={}),t=Qr(t),$t=-1===Pt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,U=_e(t,"ALLOWED_TAGS",Q,{transform:Nt="application/xhtml+xml"===$t?Er:jr}),W=_e(t,"ALLOWED_ATTR",Y,{transform:Nt}),Et=_e(t,"ALLOWED_NAMESPACES",It,{transform:Er}),Tt=_e(t,"ADD_URI_SAFE_ATTR",Ct,{transform:Nt,base:Ct}),xt=_e(t,"ADD_DATA_URI_TAGS",kt,{transform:Nt,base:kt}),wt=_e(t,"FORBID_CONTENTS",_t,{transform:Nt}),K=_e(t,"FORBID_TAGS",Qr({}),{transform:Nt}),J=_e(t,"FORBID_ATTR",Qr({}),{transform:Nt}),yt=!!Nr(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?Qr(t.USE_PROFILES):t.USE_PROFILES),tt=!1!==t.ALLOW_ARIA_ATTR,rt=!1!==t.ALLOW_DATA_ATTR,et=t.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ot=t.SAFE_FOR_TEMPLATES||!1,it=!1!==t.SAFE_FOR_XML,at=t.WHOLE_DOCUMENT||!1,ht=t.RETURN_DOM||!1,ft=t.RETURN_DOM_FRAGMENT||!1,dt=t.RETURN_TRUSTED_TYPE||!1,ct=t.FORCE_BODY||!1,pt=!1!==t.SANITIZE_DOM,vt=t.SANITIZE_NAMED_PROPS||!1,gt=!1!==t.KEEP_CONTENT,bt=t.IN_PLACE||!1,V=function(t){try{return Fr(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:he,Mt="string"==typeof t.NAMESPACE?t.NAMESPACE:qt,zt=Nr(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?Qr(t.MATHML_TEXT_INTEGRATION_POINTS):Vr({},Lt),Rt=Nr(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?Qr(t.HTML_INTEGRATION_POINTS):Vr({},Ot);var r=Nr(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?Qr(t.CUSTOM_ELEMENT_HANDLING):yr(null);if(G=yr(null),Nr(r,"tagNameCheck")&&Bt(r.tagNameCheck)&&(G.tagNameCheck=r.tagNameCheck),Nr(r,"attributeNameCheck")&&Bt(r.attributeNameCheck)&&(G.attributeNameCheck=r.attributeNameCheck),Nr(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(G.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),br(G),ot&&(rt=!1),ft&&(ht=!0),yt&&(U=Vr({},re),W=yr(null),!0===yt.html&&(Vr(U,Yr),Vr(W,ee)),!0===yt.svg&&(Vr(U,Gr),Vr(W,ne),Vr(W,ie)),!0===yt.svgFilters&&(Vr(U,Kr),Vr(W,ne),Vr(W,ie)),!0===yt.mathMl&&(Vr(U,Xr),Vr(W,oe),Vr(W,ie))),X.tagCheck=null,X.attributeCheck=null,Nr(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?X.tagCheck=t.ADD_TAGS:Mr(t.ADD_TAGS)&&(U===Q&&(U=Qr(U)),Vr(U,t.ADD_TAGS,Nt))),Nr(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?X.attributeCheck=t.ADD_ATTR:Mr(t.ADD_ATTR)&&(W===Y&&(W=Qr(W)),Vr(W,t.ADD_ATTR,Nt))),Nr(t,"ADD_URI_SAFE_ATTR")&&Mr(t.ADD_URI_SAFE_ATTR)&&Vr(Tt,t.ADD_URI_SAFE_ATTR,Nt),Nr(t,"FORBID_CONTENTS")&&Mr(t.FORBID_CONTENTS)&&(wt===_t&&(wt=Qr(wt)),Vr(wt,t.FORBID_CONTENTS,Nt)),Nr(t,"ADD_FORBID_CONTENTS")&&Mr(t.ADD_FORBID_CONTENTS)&&(wt===_t&&(wt=Qr(wt)),Vr(wt,t.ADD_FORBID_CONTENTS,Nt)),gt&&(U["#text"]=!0),at&&Vr(U,["html","head","body"]),U.table&&(Vr(U,["tbody"]),delete K.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Br('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Br('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');var e=n;n=t.TRUSTED_TYPES_POLICY;try{C=M("")}catch(t){throw n=e,t}}else null===t.TRUSTED_TYPES_POLICY?(n=void 0,C=""):(void 0===n&&(S||(T=function(t,r){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var e=null,n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(e=r.getAttribute(n));var o="dompurify"+(e?"#"+e:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(h,a),S=!0),n=T),n&&"string"==typeof C&&(C=M("")));gr&&gr(t),Zt=t}},Vt=Vr({},[...Gr,...Kr,...Jr]),Ut=Vr({},[...Xr,...te]),Qt=function(t){Ar(e.removed,{element:t});try{g(t).removeChild(t)}catch(r){if(p(t),!g(t))throw Br("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Wt=function(t){Kt(t);var r=m(t);if(r){var e=[];Tr(r,t=>{Ar(e,t)}),Tr(e,t=>{try{p(t)}catch(t){}})}var n=y(t);if(n)for(var o=n.length-1;o>=0;--o){var i=n[o],a=i&&i.name;if("string"==typeof a)try{t.removeAttribute(a)}catch(t){}}},Yt=function(t,r){try{Ar(e.removed,{attribute:r.getAttributeNode(t),from:r})}catch(t){Ar(e.removed,{attribute:null,from:r})}if(r.removeAttribute(t),"is"===t)if(ht||ft)try{Qt(r)}catch(t){}else try{r.setAttribute(t,"")}catch(t){}},Gt=function(t){var r=y(t);if(r)for(var e=r.length-1;e>=0;--e){var n=r[e],o=n&&n.name;if("string"==typeof o&&!W[Nt(o)])try{t.removeAttribute(o)}catch(t){}}},Kt=function(t){for(var r=[t];r.length>0;){var e=r.pop();1===(w?w(e):e.nodeType)&&Gt(e);var n=m(e);if(n)for(var o=n.length-1;o>=0;--o)r.push(n[o])}},Jt=function(t){var r=null,e=null;if(ct)t="<remove></remove>"+t;else{var i=Ir(t,/^[\r\n\t ]+/);e=i&&i[0]}"application/xhtml+xml"===$t&&Mt===qt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var a=n?M(t):t;if(Mt===qt)try{r=(new c).parseFromString(a,$t)}catch(t){}if(!r||!r.documentElement){r=j.createDocument(Mt,"template",null);try{r.documentElement.innerHTML=jt?C:a}catch(t){}}var l=r.body||r.documentElement;return t&&e&&l.insertBefore(o.createTextNode(e),l.childNodes[0]||null),Mt===qt?L.call(r,at?"html":"body")[0]:at?r.documentElement:l},Xt=function(t){var r=x?x(t):t.ownerDocument;return E.call(r||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},tr=function(t){return t=Lr(t,R," "),t=Lr(t,D," "),Lr(t,P," ")},rr=function(t){var r;t.normalize();for(var e=x?x(t):t.ownerDocument,n=E.call(e||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null),o=n.nextNode();o;)o.data=tr(o.data),o=n.nextNode();var i=null===(r=t.querySelectorAll)||void 0===r?void 0:r.call(t,"template");i&&Tr(i,t=>{nr(t.content)&&rr(t.content)})},er=function(t){var r=_?_(t):null;return"string"==typeof r&&"form"===Nt(r)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==y(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==w(t)||t.childNodes!==m(t))},nr=function(t){if(!w||"object"!=typeof t||null===t)return!1;try{return 11===w(t)}catch(t){return!1}},or=function(t){if(!w||"object"!=typeof t||null===t)return!1;try{return"number"==typeof w(t)}catch(t){return!1}};function ir(t,r,n){0!==t.length&&Tr(t,t=>{t.call(e,r,n,Zt)})}var ar=function(t,r,e,n){return 0===t.length?r:r===e||r===n?Qr(r):r},lr=function(t,r){if(ir(O.beforeSanitizeElements,t,null),t!==r&&null===g(t))return bt&&Kt(t),!0;if(er(t))return Qt(t),!0;var n=Nt(_?_(t):t.nodeName);if(U=ar(O.uponSanitizeElement,U,Q,ut),ir(O.uponSanitizeElement,t,{tagName:n,allowedTags:U}),t!==r&&null===g(t))return bt&&Kt(t),!0;if(function(t,r){return!!(it&&t.hasChildNodes()&&!or(t.firstElementChild)&&Fr(me,t.textContent)&&Fr(me,t.innerHTML))||!(!it||t.namespaceURI!==qt||"style"!==r||!or(t.firstElementChild))||7===t.nodeType||!(!it||8!==t.nodeType||!Fr(ge,t.data))}(t,n))return Qt(t),!0;if(K[n]||!(X.tagCheck instanceof Function&&X.tagCheck(n))&&!U[n]){var o=function(t,r,e){if(!K[r]&&cr(r)){if(G.tagNameCheck instanceof RegExp&&Fr(G.tagNameCheck,r))return!1;if(G.tagNameCheck instanceof Function&&G.tagNameCheck(r))return!1}if(gt&&!wt[r]){var n=g(t),o=m(t);if(o&&n)for(var i=o.length-1;i>=0;--i){var a=t===e?d(o[i],!0):o[i];n.insertBefore(a,v(t))}}return Qt(t),!0}(t,n,r);return!1===o&&ir(O.afterSanitizeElements,t,null),o}if(1===(w?w(t):t.nodeType)&&!function(t){var r=g(t);r&&r.tagName||(r={namespaceURI:Mt,tagName:"template"});var e=jr(t.tagName),n=jr(r.tagName);return!!Et[t.namespaceURI]&&(t.namespaceURI===At?function(t,r,e){return r.namespaceURI===qt?"svg"===t:r.namespaceURI===St?"svg"===t&&("annotation-xml"===e||zt[e]):Boolean(Vt[t])}(e,r,n):t.namespaceURI===St?function(t,r,e){return r.namespaceURI===qt?"math"===t:r.namespaceURI===At?"math"===t&&Rt[e]:Boolean(Ut[t])}(e,r,n):t.namespaceURI===qt?function(t,r,e){return!(r.namespaceURI===At&&!Rt[e])&&!(r.namespaceURI===St&&!zt[e])&&!Ut[t]&&(Dt[t]||!Vt[t])}(e,r,n):!("application/xhtml+xml"!==$t||!Et[t.namespaceURI]))}(t))return Qt(t),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&Fr(be,t.innerHTML))return Qt(t),!0;if(ot&&3===t.nodeType){var i=tr(t.textContent);t.textContent!==i&&(Ar(e.removed,{element:t.cloneNode()}),t.textContent=i)}return ir(O.afterSanitizeElements,t,null),!1},ur=function(t,r,e){if(J[r])return!1;if(it&&"patchsrc"===r)return!1;if(it&&"for"===r&&"label"!==t&&"output"!==t)return!1;if(pt&&("id"===r||"name"===r)&&(e in o||e in Ft))return!1;var n=W[r]||X.attributeCheck instanceof Function&&X.attributeCheck(r,t);if(rt&&Fr(N,r));else if(tt&&Fr(Z,r));else if(n){if(Tt[r]);else if(Fr(V,Lr(e,B,"")));else if("src"!==r&&"xlink:href"!==r&&"href"!==r||"script"===t||0!==zr(e,"data:")||!xt[t])if(et&&!Fr(F,Lr(e,B,"")));else if(e)return!1}else if(!(cr(t)&&(G.tagNameCheck instanceof RegExp&&Fr(G.tagNameCheck,t)||G.tagNameCheck instanceof Function&&G.tagNameCheck(t))&&(G.attributeNameCheck instanceof RegExp&&Fr(G.attributeNameCheck,r)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(r,t))||"is"===r&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&&Fr(G.tagNameCheck,e)||G.tagNameCheck instanceof Function&&G.tagNameCheck(e))))return!1;return!0},sr=Vr({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),cr=function(t){return!sr[jr(t)]&&Fr(H,t)},hr=function(t,r,e,o){if(n&&"object"==typeof h&&"function"==typeof h.getAttributeType&&!e)switch(h.getAttributeType(t,r)){case"TrustedHTML":return M(o);case"TrustedScriptURL":return function(t){q(),A++;try{return n.createScriptURL(t)}finally{A--}}(o)}return o},dr=function(t,r,n,o){try{n?t.setAttributeNS(n,r,o):t.setAttribute(r,o),er(t)?Qt(t):Sr(e.removed)}catch(e){Yt(r,t)}},pr=function(t){ir(O.beforeSanitizeAttributes,t,null);var r=t.attributes;if(r&&!er(t)){for(var e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W=ar(O.uponSanitizeAttribute,W,Y,st),forceKeepAttr:void 0},n=r.length,o=Nt(t.nodeName);n--;){var i=r[n],a=i.name,l=i.namespaceURI,u=i.value,s=Nt(a),c=u,h="value"===a?c:Or(c);e.attrName=s,e.attrValue=h,e.keepAttr=!0,e.forceKeepAttr=void 0,ir(O.uponSanitizeAttribute,t,e),h=e.attrValue,!vt||"id"!==s&&"name"!==s||0===zr(h,mt)||(Yt(a,t),h=mt+h),it&&Fr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)||"attributename"===s&&Ir(h,"href")?Yt(a,t):e.forceKeepAttr||(!e.keepAttr||!nt&&Fr(ye,h)?Yt(a,t):(ot&&(h=tr(h)),ur(o,s,h)?(h=hr(o,s,l,h))!==c&&dr(t,a,l,h):Yt(a,t)))}ir(O.afterSanitizeAttributes,t,null)}},vr=function(t){var r=null,e=Xt(t);for(ir(O.beforeSanitizeShadowDOM,t,null);r=e.nextNode();)if(ir(O.uponSanitizeShadowNode,r,null),lr(r,t),pr(r),nr(r.content)&&vr(r.content),1===(w?w(r):r.nodeType)){var n=b(r);nr(n)&&(mr(n),vr(n))}ir(O.afterSanitizeShadowDOM,t,null)},mr=function(t){for(var r=[{node:t,shadow:null}];r.length>0;){var e=r.pop();if(e.shadow)vr(e.shadow);else{var n=e.node,o=1===(w?w(n):n.nodeType),i=m(n);if(i)for(var a=i.length-1;a>=0;--a)r.push({node:i[a],shadow:null});if(o){var l=_?_(n):null;if("string"==typeof l&&"template"===Nt(l)){var u=n.content;nr(u)&&r.push({node:u,shadow:null})}}if(o){var s=b(n);nr(s)&&r.push({node:null,shadow:s},{node:s,shadow:null})}}}};return e.sanitize=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,a=null,l=null,u=null;if((jt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!or(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return Rr(t);case"boolean":return Dr(t);case"bigint":return $r?$r(t):"0";case"symbol":return Pr?Pr(t):"Symbol()";case"undefined":default:return Zr(t);case"function":case"object":if(null===t)return Zr(t);var r=t,e=Wr(r,"toString");if("function"==typeof e){var n=e(r);return"string"==typeof n?n:Zr(n)}return Zr(t)}}(t)))throw Br("dirty is not a string, aborting");if(!e.isSupported)return t;lt?(U=ut,W=st):Ht(r),(O.uponSanitizeElement.length>0||O.uponSanitizeAttribute.length>0)&&(U=Qr(U)),O.uponSanitizeAttribute.length>0&&(W=Qr(W)),e.removed=[];var s=bt&&"string"!=typeof t&&or(t);if(s){!function(t){if(it)for(var r=[t];r.length>0;){var e=r.pop(),n=w?w(e):e.nodeType;if(7===n||8===n&&Fr(ge,e.data))try{p(e)}catch(t){}else{if(1===n){var o=e,i=Nt(_?_(e):e.nodeName);try{o.hasAttribute&&o.hasAttribute("patchsrc")&&o.removeAttribute("patchsrc"),o.hasAttribute&&o.hasAttribute("for")&&"label"!==i&&"output"!==i&&o.removeAttribute("for")}catch(t){}}var a=m(e);if(a)for(var l=a.length-1;l>=0;--l)r.push(a[l])}}}(t);var c=_?_(t):t.nodeName;if("string"==typeof c){var h=Nt(c);if(!U[h]||K[h])throw Wt(t),Br("root node is forbidden and cannot be sanitized in-place")}if(er(t))throw Wt(t),Br("root node is clobbered and cannot be sanitized in-place");try{mr(t)}catch(r){throw Wt(t),r}}else if(or(t))1===(a=(o=Jt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a),mr(a);else{if(!ht&&!ot&&!at&&-1===t.indexOf("<"))return n&&dt?M(t):t;if(!(o=Jt(t)))return ht?null:dt?C:""}o&&ct&&Qt(o.firstChild);var f=s?t:o;try{for(var d=Xt(f);l=d.nextNode();)lr(l,f),pr(l),nr(l.content)&&vr(l.content)}catch(r){throw s&&(Wt(t),Tr(e.removed,t=>{t.element&&Kt(t.element)})),r}if(s)return Tr(e.removed,t=>{t.element&&Kt(t.element)}),ot&&rr(t),t;if(ht){if(ot&&rr(o),ft)for(u=I.call(o.ownerDocument);o.firstChild;)u.appendChild(o.firstChild);else u=o;return(W.shadowroot||W.shadowrootmode)&&(u=z.call(i,u,!0)),u}var v=at?o.outerHTML:o.innerHTML;return at&&U["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&Fr(pe,o.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+v),ot&&(v=tr(v)),n&&dt?M(v):v},e.setConfig=function(){Ht(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),lt=!0,ut=U,st=W},e.clearConfig=function(){Zt=null,lt=!1,ut=null,st=null,n=T,C=""},e.isValidAttribute=function(t,r,e){return Zt||Ht({}),ur(Nt(t),Nt(r),e)},e.addHook=function(t,r){"function"==typeof r&&Nr(O,t)&&Ar(O[t],r)},e.removeHook=function(t,r){if(Nr(O,t)){if(void 0!==r){var e=Cr(O[t],r);return-1===e?void 0:qr(O[t],e,1)[0]}return Sr(O[t])}},e.removeHooks=function(t){Nr(O,t)&&(O[t]=[])},e.removeAllHooks=function(){O={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e}();function ke(t,r){return t.match(/\\?.|^$/g).reduce((t,e)=>('"'!==e||t.sQuote?"'"!==e||t.quote?t.quote||t.sQuote||e!==r?t.a[t.a.length-1]+=e:t.a.push(""):(t.sQuote^=1,t.a[t.a.length-1]+=e):(t.quote^=1,t.a[t.a.length-1]+=e),t),{a:[""]}).a}function Te(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE||t.nodeType===Node.DOCUMENT_NODE}function Ce(t,r){var e=t.parentNode;return e&&e.host&&11===e.nodeType?e.host:e===r?null:e}var Se,Ae,qe=e,Me=(void 0===Se&&(Se=t=>t()),Qt("[Element Inference]",Se,(void 0===Ae&&(Ae=console),{log:Ae.log.bind(Ae),warn:Ae.warn.bind(Ae),error:Ae.error.bind(Ae),debug:Ae.debug.bind(Ae)})));function je(t,r){try{var e=r.get(t);if(!Bt(e))return e;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return r.set(t,n),n}var o=qe.getComputedStyle(t);if("none"===o.display||"hidden"===o.visibility||0===parseFloat(o.opacity))return r.set(t,!1),!1;for(var i=t.parentElement;i;){var a=r.get(i);if(Bt(a)){var l=qe.getComputedStyle(i),u="none"!==l.display&&"hidden"!==l.visibility;if(r.set(i,u),!u)return!1;i=i.parentElement}else{if(!a)return!1;i=i.parentElement}}var s=t.getBoundingClientRect(),c=s.width>0||s.height>0||t.getClientRects().length>0;return r.set(t,c),c}catch(t){return!0}}function Ee(t,r){var e;return(null==(e=function(t){var r,e=null==(r=t.innerText)?void 0:r.trim();return!e||e.length>250?null:e}(t))?void 0:e.toLowerCase())===r.toLowerCase()}function*Ie(t,r,e){var n;try{n=function(t,r,e){return void 0===r&&(r=document),void 0===e&&(e=null),function(t,r,e,n){return void 0===n&&(n=null),t=function(t){function r(){n&&(a.length>0&&/^[~+>]$/.test(a[a.length-1])&&a.push(" "),a.push(n))}var e,n,o,i,a=[],l=[0],u=0,s=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,c=/^\s+$/,h=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(t=t.trim();;){if(n="",(o=h[l[l.length-1]]).lastIndex=u,!(e=o.exec(t))){n=t.substr(u),r();break}if(i=u,(u=o.lastIndex)-e[0].length>i&&(n=t.substring(i,u-e[0].length)),3>l[l.length-1]){if(r(),"["===e[0])l.push(1);else if("("===e[0])l.push(2);else if(/^["']$/.test(e[0]))l.push(3),h[3]=new RegExp(e[0],"g");else if("/*"===e[0])l.push(4);else if(/^[\])]$/.test(e[0])&&l.length>0)l.pop();else if(/^(?:\s+|[~+>])$/.test(e[0])&&(a.length>0&&!c.test(a[a.length-1])&&0===l[l.length-1]&&a.push(" "),1===l[l.length-1]&&5===a.length&&"="===a[2].charAt(a[2].length-1)&&(a[4]=" "+a[4]),c.test(e[0])))continue;a.push(e[0])}else a[a.length-1]+=n,s.test(a[a.length-1])&&(4===l[l.length-1]&&(2>a.length||c.test(a[a.length-2])?a.pop():a[a.length-1]=" ",e[0]=""),l.pop()),a[a.length-1]+=e[0]}return a.join("").trim()}(t),e.querySelector(t),document.head.createShadowRoot||document.head.attachShadow?ke(t,",").reduce((t,r)=>{var o=ke(r.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter(t=>!!t).map(t=>ke(t,">")),i=o.length-1,a=function(t,r,e){void 0===t&&(t=null),void 0===e&&(e=null);var n=[];if(e)n=e;else{var o=function(t){for(var r=0;t.length>r;r++){var e=t[r];n.push(e),e.shadowRoot&&o(e.shadowRoot.querySelectorAll("*"))}};r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*")),o(r.querySelectorAll("*"))}return t?n.filter(r=>r.matches(t)):n}(o[i][o[i].length-1],e,n),l=function(t,r,e){return n=>{for(var o=r,i=n,a=!1;i&&!Te(i);){var l=!0;if(1===t[o].length)l=i.matches(t[o]);else{var u=[].concat(t[o]).reverse(),s=i;for(var c of u){if(!s||!s.matches(c)){l=!1;break}s=Ce(s,e)}}if(l&&0===o){a=!0;break}l&&o--,i=Ce(i,e)}return a}}(o,i,e);return t.concat(a.filter(l))},[]):e.querySelectorAll(t)}(t,0,r,e)}(t)}catch(t){return}for(var o of n){var i=o;r&&!Ee(i,r)||je(i,e)&&(yield i)}}function Le(t,r){var e=0;for(var n of t){if(e===r)return n;e++}return null}function ze(t){try{var r=JSON.parse(t.autoData);if(!Zt(null==r?void 0:r.textGroups)||!Zt(null==r?void 0:r.notextGroups))return Me.error("Invalid autoData structure:",r),null;var e=t.text,n=t.precision,o=void 0===n?1:n,i=null!=e&&!t.excludeText,a=(i?r.textGroups:r.notextGroups).sort((t,r)=>t.cardinality-r.cardinality);if(0===a.length)return null;for(var l=Math.max(1,Math.ceil((1-o)*a.length)),u=new WeakMap,s=0;l>s;s++){var c=a[s],h=new Map,f=null,d=0;for(var p of c.cssSelectors){var v,m=p.offset,g=Le(Ie(p.css,i?e:null,u),m);if(g){var b=(null!==(v=h.get(g))&&void 0!==v?v:0)+1;if(h.set(g,b),b>d&&(d=b,f=g,b>=Math.ceil(c.cssSelectors.length/2)))return f}}if(f)return f}return null}catch(t){return Me.error("Error finding element:",t),null}}var Oe=function(t,r){var n=(void 0===r?{}:r).debugEnabled,o={q(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;o>a;a++)i[a-1]=arguments[a];e&&(e.POSTHOG_DEBUG||n)&&!Bt(e.console)&&e.console&&("__rrweb_original__"in e.console[r]?e.console[r].__rrweb_original__:e.console[r])(t,...i)},debug(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.q("debug",...r)},info(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.q("log",...r)},warn(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.q("warn",...r)},error(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.q("error",...r)},critical(){for(var r=arguments.length,e=new Array(r),n=0;r>n;n++)e[n]=arguments[n];console.error(t,...e)},uninitializedWarning(t){o.error("You must initialize PostHog before calling "+t)},createLogger:(r,e)=>Oe(t+" "+r,e)};return o},Re=Oe("[PostHog.js]"),De=Re.createLogger,$e=De("[Stylesheet Loader]"),Pe=(t,r)=>{if(!(t=>{try{new RegExp(t)}catch(t){return!1}return!0})(r))return!1;try{return new RegExp(r).test(t)}catch(t){return!1}},Ne=t=>t.toLowerCase(),Ze={exact:(t,r)=>r.some(r=>t.some(t=>r===t)),is_not:(t,r)=>r.every(r=>t.every(t=>r!==t)),regex:(t,r)=>r.some(r=>t.some(t=>Pe(r,t))),not_regex:(t,r)=>r.every(r=>t.every(t=>!Pe(r,t))),icontains:(t,r)=>r.map(Ne).some(r=>t.map(Ne).some(t=>r.includes(t))),not_icontains:(t,r)=>r.map(Ne).every(r=>t.map(Ne).every(t=>!r.includes(t))),gt:(t,r)=>r.some(r=>{var e=parseFloat(r);return!isNaN(e)&&t.some(t=>e>parseFloat(t))}),lt:(t,r)=>r.some(r=>{var e=parseFloat(r);return!isNaN(e)&&t.some(t=>e<parseFloat(t))})};function Fe(t,r){return!t||Object.entries(t).every(t=>{var e=t[1],n=null==r?void 0:r[t[0]];if(null==n)return!1;var o=Ze[e.operator];return!!o&&o(e.values,[String(n)])})}function Be(t,r,e,n){var o=null!=n?n:{},i=o.capture,a=o.passive;null==t||t.addEventListener(r,e,{capture:void 0!==i&&i,passive:void 0===a||a})}De("[Surveys]"),Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return Ut(t)&&isFinite(t)&&Math.floor(t)===t}),e&&!Bt(e.crypto)&&crypto;var He,Ve,Ue,Qe,We=null,Ye={si(){if(!Ht(We))return We;var t=!0;if(Bt(e))t=!1;else try{var r="__mplssupport__";Ye.ui(r,"xyz"),'"xyz"'!==Ye.li(r)&&(t=!1),Ye.hi(r)}catch(r){t=!1}return t||Re.error("localStorage unsupported; falling back to cookie store"),We=t,t},ci(t){Re.error("localStorage error: "+t)},li(t){try{return null==e?void 0:e.localStorage.getItem(t)}catch(t){Ye.ci(t)}return null},di(t){try{return JSON.parse(Ye.li(t))||{}}catch(t){}return null},ui(t,r){try{return null==e||e.localStorage.setItem(t,JSON.stringify(r)),!0}catch(t){Ye.ci(t)}return!1},hi(t){try{null==e||e.localStorage.removeItem(t)}catch(t){Ye.ci(t)}}},Ge=null,Ke={si(){if(!Ht(Ge))return Ge;if(Ge=!0,Bt(e))Ge=!1;else try{var t="__support__";Ke.ui(t,"xyz"),'"xyz"'!==Ke.li(t)&&(Ge=!1),Ke.hi(t)}catch(t){Ge=!1}return Ge},ci(t){Re.error("sessionStorage error: ",t)},li(t){try{return null==e?void 0:e.sessionStorage.getItem(t)}catch(t){Ke.ci(t)}return null},di(t){try{return JSON.parse(Ke.li(t))||null}catch(t){}return null},ui(t,r){try{return null==e||e.sessionStorage.setItem(t,JSON.stringify(r)),!0}catch(t){Ke.ci(t)}return!1},hi(t){try{null==e||e.sessionStorage.removeItem(t)}catch(t){Ke.ci(t)}}},Je=0,Xe=[],tn=l,rn=tn.__b,en=tn.__r,nn=tn.diffed,on=tn.__c,an=tn.unmount,ln=tn.__;function un(t,r){tn.__h&&tn.__h(Ve,t,Je||r),Je=0;var e=Ve.__H||(Ve.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function sn(t){return Je=1,function(t,r){var e=un(He++,2);if(e.t=t,!e.__c&&(e.__=[wn(void 0,r),function(t){var r=e.__N?e.__N[0]:e.__[0],n=e.t(r,t);r!==n&&(e.__N=[n,e.__[1]],e.__c.setState({}))}],e.__c=Ve,!Ve.__f)){var n=function(t,r,n){if(!e.__c.__H)return!0;var i=!1,a=e.__c.props!==t;if(e.__c.__H.__.some(function(t){if(t.__N){i=!0;var r=t.__[0];t.__=t.__N,t.__N=void 0,r!==t.__[0]&&(a=!0)}}),o){var l=o.call(this,t,r,n);return i?l||a:l}return!i||a};Ve.__f=!0;var o=Ve.shouldComponentUpdate,i=Ve.componentWillUpdate;Ve.componentWillUpdate=function(t,r,e){if(this.__e){var a=o;o=void 0,n(t,r,e),o=a}i&&i.call(this,t,r,e)},Ve.shouldComponentUpdate=n}return e.__N||e.__}(wn,t)}function cn(t,r){var e=un(He++,3);!tn.__s&&yn(e.__H,r)&&(e.__=t,e.u=r,Ve.__H.__h.push(e))}function hn(t,r){var e=un(He++,4);!tn.__s&&yn(e.__H,r)&&(e.__=t,e.u=r,Ve.__h.push(e))}function fn(t){return Je=5,dn(function(){return{current:t}},[])}function dn(t,r){var e=un(He++,7);return yn(e.__H,r)&&(e.__=t(),e.__H=r,e.__h=t),e.__}function pn(){for(var t;t=Xe.shift();){var r=t.__H;if(t.__P&&r)try{r.__h.some(gn),r.__h.some(bn),r.__h=[]}catch(e){r.__h=[],tn.__e(e,t.__v)}}}tn.__b=function(t){Ve=null,rn&&rn(t)},tn.__=function(t,r){t&&r.__k&&r.__k.__m&&(t.__m=r.__k.__m),ln&&ln(t,r)},tn.__r=function(t){en&&en(t),He=0;var r=(Ve=t.__c).__H;r&&(Ue===Ve?(r.__h=[],Ve.__h=[],r.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(r.__h.length&&pn(),He=0)),Ue=Ve},tn.diffed=function(t){nn&&nn(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(1!==Xe.push(r)&&Qe===tn.requestAnimationFrame||((Qe=tn.requestAnimationFrame)||mn)(pn)),r.__H.__.some(function(t){t.u&&(t.__H=t.u,t.u=void 0)})),Ue=Ve=null},tn.__c=function(t,r){r.some(function(t){try{t.__h.some(gn),t.__h=t.__h.filter(function(t){return!t.__||bn(t)})}catch(e){r.some(function(t){t.__h&&(t.__h=[])}),r=[],tn.__e(e,t.__v)}}),on&&on(t,r)},tn.unmount=function(t){an&&an(t);var r,e=t.__c;e&&e.__H&&(e.__H.__.some(function(t){try{gn(t)}catch(t){r=t}}),e.__H=void 0,r&&tn.__e(r,e.__v))};var vn="function"==typeof requestAnimationFrame;function mn(t){var r,e=function(){clearTimeout(n),vn&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(e,35);vn&&(r=requestAnimationFrame(e))}function gn(t){var r=Ve,e=t.__c;"function"==typeof e&&(t.__c=void 0,e()),Ve=r}function bn(t){var r=Ve;t.__c=t.__(),Ve=r}function yn(t,r){return!t||t.length!==r.length||r.some(function(r,e){return r!==t[e]})}function wn(t,r){return"function"==typeof r?r(t):r}var _n="#020617";function xn(t){if(t.startsWith("#")){var r=t.replace(/^#/,"");return/^[0-9A-Fa-f]{3}$/.test(r)&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]),/^[0-9A-Fa-f]{6}$/.test(r)?"rgb("+parseInt(r.slice(0,2),16)+","+parseInt(r.slice(2,4),16)+","+parseInt(r.slice(4,6),16)+")":"rgb(255, 255, 255)"}return"rgb(255, 255, 255)"}function kn(t){var r;void 0===t&&(t="#eeeded"),"#"===t[0]&&(r=xn(t)),t.startsWith("rgb")&&(r=t);var e={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(e&&(r=xn(e)),!r)return _n;var n=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(n){var o=parseInt(n[1]),i=parseInt(n[2]),a=parseInt(n[3]);return Math.sqrt(o*o*.299+i*i*.587+a*a*.114)>127.5?_n:"white"}return _n}String(2147483645),function(t){function r(t){var e,n;return this.getChildContext||(e=new Set,(n={})[r.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){e=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&e.forEach(function(t){t.__e=!0,L(t)})},this.sub=function(t){e.add(t);var r=t.componentWillUnmount;t.componentWillUnmount=function(){e&&e.delete(t),r&&r.call(t)}}),t.children}r.__c="__cC"+w++,r.__=t,r.Provider=r.__l=(r.Consumer=function(t,r){return t.children(r)}).contextType=r}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed(){},isPopup:!0,onPreviewSubmit(){},onPreviewBack(){},surveySubmissionId:"",properties:void 0,surveyLanguage:null});var Tn="ph_product_tour_shown_",Cn="ph_product_tour_completed_",Sn="ph_product_tour_dismissed_",An="ph_active_product_tour",qn="ph_last_seen_tour_date_",Mn=De("[Product Tours]"),jn=i,En=e;function In(t){var r=((t,r,e)=>{var n=t.createElement("style");n.innerText=r;var o=(t=>{var r;return Ft(t)?t:null==t||null==(r=t.config)?void 0:r.prepare_external_dependency_stylesheet})(e);return o&&(n=o(n)),n||($e.error("prepare_external_dependency_stylesheet returned null"),null)})(jn,':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 #00000026;--ph-tour-max-width:320px;--ph-tour-padding:16px;--ph-tour-z-index:calc(2147480000 + 3646);--ph-tour-overlay-color:#00000080;--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{z-index:var(--ph-tour-z-index);pointer-events:auto;position:fixed;inset:0}.ph-tour-spotlight{z-index:var(--ph-tour-z-index);border-radius:var(--ph-tour-spotlight-border-radius);box-shadow:0 0 0 9999px var(--ph-tour-overlay-color);pointer-events:none;position:fixed}.ph-tour-modal-overlay{z-index:var(--ph-tour-z-index);background:var(--ph-tour-overlay-color);pointer-events:none;position:fixed;inset:0}.ph-tour-tooltip{z-index:calc(var(--ph-tour-z-index) + 1);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);min-width:min(280px,100vw - 16px);max-width:min(var(--ph-tour-max-width), calc(100vw - 16px));padding:var(--ph-tour-padding);padding-top:calc(var(--ph-tour-padding) + 8px);pointer-events:auto;position:fixed}.ph-tour-tooltip--modal{box-shadow:var(--ph-tour-box-shadow)}.ph-tour-arrow{--ph-tour-arrow-offset:0px;border:var(--ph-tour-arrow-size) solid transparent;width:0;height:0;position:absolute}.ph-tour-arrow--top{bottom:100%;left:calc(50% + var(--ph-tour-arrow-offset));border-bottom-color:var(--ph-tour-background-color);transform:translate(-50%)}.ph-tour-arrow--bottom{top:100%;left:calc(50% + var(--ph-tour-arrow-offset));border-top-color:var(--ph-tour-background-color);transform:translate(-50%)}.ph-tour-arrow--left{right:100%;top:calc(50% + var(--ph-tour-arrow-offset));border-right-color:var(--ph-tour-background-color);transform:translateY(-50%)}.ph-tour-arrow--right{left:100%;top:calc(50% + var(--ph-tour-arrow-offset));border-left-color:var(--ph-tour-background-color);transform:translateY(-50%)}.ph-tour-content{color:var(--ph-tour-text-color);margin-bottom:16px;padding-right:24px;font-size:14px;line-height:1.5}.ph-tour-content h1,.ph-tour-content h2{margin-bottom:8px;font-weight:600}.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 ul,.ph-tour-content ol{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{margin-bottom:8px;font-size:14px;font-weight:600}.ph-tour-content a,.ph-tour-content .ph-tour-link{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:#0000000f;border-radius:4px;padding:2px 6px;font-family:SF Mono,Monaco,Consolas,monospace;font-size:.875em}.ph-tour-content pre{background:#0000000a;border-radius:6px;margin-bottom:8px;padding:12px;font-family:SF Mono,Monaco,Consolas,monospace;font-size:13px;line-height:1.5;overflow-x:auto}.ph-tour-content pre code{font-size:inherit;background:0 0;border-radius:0;padding:0}.ph-tour-content pre *,.ph-tour-content code *{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-string,.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp{color:#032f62}.ph-tour-content .hljs-number,.ph-tour-content .hljs-literal,.ph-tour-content .hljs-variable,.ph-tour-content .hljs-template-variable{color:#005cc5}.ph-tour-content .hljs-title,.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-name,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-symbol,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-addition{color:#22863a}.ph-tour-content .hljs-subst,.ph-tour-content .hljs-deletion{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 img,.ph-tour-content .ph-tour-image{border-radius:6px;max-width:100%;height:auto;margin:8px 0;display:block}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;width:100%;padding-bottom:56.25%;position:relative;overflow:hidden}.ph-tour-content .ph-tour-embed-container iframe{border:none;width:100%;height:100%;position:absolute;top:0;left:0}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);margin:8px 0;padding-left:12px;font-style:italic}.ph-tour-footer{justify-content:space-between;align-items:center;gap:12px;display:flex}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{gap:8px;margin-left:auto;display:flex}.ph-tour-button{border-radius:var(--ph-tour-button-border-radius);cursor:pointer;border:none;justify-content:center;align-items:center;padding:8px 16px;font-size:14px;font-weight:500;text-decoration:none;transition:opacity .15s,transform .1s;display:inline-flex}.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);color:var(--ph-tour-button-secondary-text-color);border:1px solid var(--ph-tour-border-color)}.ph-tour-dismiss{cursor:pointer;width:24px;height:24px;color:var(--ph-tour-text-secondary-color);background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;font-size:18px;line-height:1;transition:background .15s,color .15s;display:flex;position:absolute;top:8px;right:8px}.ph-tour-dismiss:hover{color:var(--ph-tour-text-color);background:#00000014}.ph-tour-branding{border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));justify-content:center;align-items:center;gap:6px;margin-top:12px;padding-top:12px;font-size:11px;text-decoration:none;display:flex}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{width:auto;height:14px}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:min(300px,100vw - 16px)}.ph-tour-survey-question{color:var(--ph-tour-text-color);margin-bottom:16px;padding-right:24px;font-size:15px;font-weight:500;line-height:1.4}.ph-tour-survey-input-container{flex-direction:column;gap:12px;display:flex}.ph-tour-survey-textarea{border:1px solid var(--ph-tour-border-color);width:100%;font-size:14px;font-family:var(--ph-tour-font-family);color:var(--ph-tour-text-color);resize:vertical;box-sizing:border-box;background:#fff;border-radius:6px;min-height:80px;padding:10px 12px}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);outline:none;box-shadow:0 0 0 2px #0000000d}.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{flex-direction:column;gap:8px;margin-bottom:8px;display:flex}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);justify-content:space-between;font-size:11px;display:flex}.ph-tour-survey-rating-emoji{justify-content:center;gap:8px;display:flex}.ph-tour-survey-emoji-button{border:2px solid var(--ph-tour-border-color);background:var(--ph-tour-background-color);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;width:44px;height:44px;padding:0;transition:all .15s;display:flex}.ph-tour-survey-emoji-button:hover{border-color:var(--ph-tour-button-color);background:#00000005}.ph-tour-survey-emoji-button--active{border-color:var(--ph-tour-button-color);background: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{width:28px;height:28px;fill:var(--ph-tour-text-color);transition:fill .15s}.ph-tour-survey-rating-numbers{gap:6px;display:grid}.ph-tour-survey-number-button{border:1px solid var(--ph-tour-border-color);background:var(--ph-tour-background-color);font-size:13px;font-weight:500;font-family:var(--ph-tour-font-family);color:var(--ph-tour-text-color);cursor:pointer;border-radius:4px;justify-content:center;align-items:center;padding:8px 4px;transition:all .15s;display:flex}.ph-tour-survey-number-button:hover{border-color:var(--ph-tour-button-color);background:#00000005}.ph-tour-survey-number-button--active{border-color:var(--ph-tour-button-color);background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}@keyframes ph-tour-banner-slide-in{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}.ph-tour-banner-wrapper{animation:ph-tour-banner-slide-in var(--ph-tour-banner-animation-duration,.3s) ease-out forwards;display:grid}.ph-tour-banner-slide{min-height:0;overflow:hidden}.ph-tour-banner{background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);font-family:var(--ph-tour-font-family);justify-content:center;align-items:center;gap:16px;padding:12px 16px;display:flex}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){z-index:var(--ph-tour-z-index);position:sticky;top:0}.ph-tour-banner-content{min-width:0;color:var(--ph-tour-text-color);text-align:center;flex:1;font-size:14px;line-height:1.5}.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{cursor:pointer;width:24px;height:24px;color:var(--ph-tour-text-secondary-color);background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;transition:background .15s,color .15s;display:flex}.ph-tour-banner-dismiss:hover{color:var(--ph-tour-text-color);background:#00000014}',t);return null==r||r.setAttribute("data-ph-product-tour-style","true"),r}function Ln(t){return t.useManualSelector?!!t.selector:!!t.inferenceData}function zn(t){var r;if(null!==(r=t.useManualSelector)&&void 0!==r&&r)return t.selector?function(t){try{var r=jn.querySelectorAll(t);if(0===r.length)return{element:null,error:"not_found",matchCount:0};var e=r[0];return function(t){var r=En.getComputedStyle(t);if("none"===r.display||"hidden"===r.visibility||"0"===r.opacity)return!1;var e=t.getBoundingClientRect();return 0!==e.width&&0!==e.height}(e)?r.length>1?{element:e,error:"multiple_matches",matchCount:r.length}:{element:e,error:null,matchCount:1}:{element:null,error:"not_visible",matchCount:r.length}}catch(t){return{element:null,error:"not_found",matchCount:0}}}(t.selector):{element:null,error:"not_found",matchCount:0};if(!t.inferenceData)return{element:null,error:"not_found",matchCount:0};var e=ze(t.inferenceData);return e?{element:e,error:null,matchCount:1}:{element:null,error:"not_found",matchCount:0}}var On=12;function Rn(t,r,e){var n=Math.max(8+r/2,Math.min(e-8-r/2,t));return{clamped:n,offset:t-n}}function Dn(r,e){var n,o,i=t({},tt,e),a=r.style;a.setProperty("--ph-tour-background-color",i.backgroundColor),a.setProperty("--ph-tour-text-color",i.textColor),a.setProperty("--ph-tour-button-color",i.buttonColor),a.setProperty("--ph-tour-border-radius",i.borderRadius+"px"),a.setProperty("--ph-tour-button-border-radius",i.buttonBorderRadius+"px"),a.setProperty("--ph-tour-border-color",i.borderColor),a.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";var r='BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return t?t+", "+r:"-apple-system, "+r}(i.fontFamily)),a.setProperty("--ph-tour-text-secondary-color",(o=xn(n=i.textColor).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+o[1]+", "+o[2]+", "+o[3]+", 0.6)":n),a.setProperty("--ph-tour-branding-text-color",kn(i.backgroundColor)),a.setProperty("--ph-tour-button-text-color",kn(i.buttonColor)),a.setProperty("--ph-tour-box-shadow",i.boxShadow),a.setProperty("--ph-tour-overlay-color",i.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),a.setProperty("--ph-tour-z-index",String(i.zIndex)),a.setProperty("--ph-tour-button-secondary-color","transparent"),a.setProperty("--ph-tour-button-secondary-text-color",i.textColor),a.setProperty("--ph-tour-max-width","320px"),a.setProperty("--ph-tour-padding","16px")}function $n(t){var r;if(!t)return"";if("string"==typeof t)return Nn(t);if("text"===t.type){var e=Nn(t.text||"");if(t.marks)for(var n of t.marks)switch(n.type){case"bold":e="<strong>"+e+"</strong>";break;case"italic":e="<em>"+e+"</em>";break;case"underline":e="<u>"+e+"</u>";break;case"strike":e="<s>"+e+"</s>"}return e}var o=(null==(r=t.content)?void 0:r.map($n).join(""))||"";switch(t.type){case"doc":default:return o;case"paragraph":return"<p>"+o+"</p>";case"heading":var i,a=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+a+">"+o+"</h"+a+">";case"bulletList":return"<ul>"+o+"</ul>";case"orderedList":return"<ol>"+o+"</ol>";case"listItem":return"<li>"+o+"</li>";case"hardBreak":return"<br>"}}function Pn(t){return t.endsWith("/")?t.slice(0,-1):t}function Nn(t){var r=jn.createElement("div");return r.textContent=t,r.innerHTML}function Zn(t){var r=[];return t.content&&function t(e){var n,o;"image"===e.type&&null!=(n=e.attrs)&&n.src&&r.push(e.attrs.src),null==(o=e.content)||o.forEach(t)}(t.content),r}function Fn(t){var r=t.contentHtml||$n(t.content);return xe.sanitize(r,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]})}var Bn=0;function Hn(t,r,e,n,o,i){r||(r={});var a,u,s=r;if("ref"in s)for(u in s={},r)"ref"==u?a=r[u]:s[u]=r[u];var c={type:t,props:s,key:e,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Bn,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(a=t.defaultProps))for(u in a)void 0===s[u]&&(s[u]=a[u]);return l.vnode&&l.vnode(c),c}var Vn=Hn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Hn("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"})}),Un=Hn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Hn("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"})}),Qn=Hn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Hn("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"})}),Wn=Hn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Hn("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"})}),Yn=Hn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Hn("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"})}),Gn=function(t){var r=(void 0===t?{}:t).fill,e=void 0===r?"currentColor":r;return Hn("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:e,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title-adam",children:[Hn("title",{id:"close-survey-title",className:"adam-testing",children:"Close survey"}),Hn("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:e})]})},Kn=Hn("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Hn("g",{"clip-path":"url(#clip0_2415_6911)",children:[Hn("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Hn("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Hn("g",{mask:"url(#mask0_2415_6911)",children:[Hn("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"}),Hn("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"}),Hn("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"}),Hn("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"}),Hn("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"}),Hn("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"})]})]}),Hn("defs",{children:Hn("clipPath",{id:"clip0_2415_6911",children:Hn("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Jn(t){var r=t.button,e=t.onClick,n=t.cursorStyle,o="ph-tour-button ph-tour-button--"+t.variant;return"link"===r.action&&r.link?Hn("a",{href:r.link,target:"_blank",rel:"noopener noreferrer",class:o,onClick:()=>e(r),children:r.text}):Hn("button",{class:o,onClick:()=>e(r),style:n,children:r.text})}function Xn(t){var r,e,n,o=t.step,i=t.appearance,a=t.stepIndex,l=t.totalSteps,u=t.onNext,s=t.onPrevious,c=t.onDismiss,h=t.onButtonClick,f=null!==(r=null==i?void 0:i.whiteLabel)&&void 0!==r&&r,d=a>=l-1,p=0===a,v=!(o.buttons||"button"!==o.progressionTrigger&&Ln(o)),m=!!o.buttons,g=!!(u||s||c||h),b=g?void 0:{cursor:"default"},y=!f&&p,w=t=>{h&&h(t)};return Hn(M,{children:[Hn("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Gn()}),Hn("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:Fn(o)}}),Hn("div",{class:"ph-tour-footer",children:[l>1&&Hn("span",{class:"ph-tour-progress",children:[a+1," of ",l]}),Hn("div",{class:"ph-tour-buttons",children:[v&&Hn(M,{children:[!p&&Hn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),Hn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:b,children:d?"Done":"Next"})]}),m&&Hn(M,{children:[(null==(e=o.buttons)?void 0:e.secondary)&&Hn(Jn,{button:o.buttons.secondary,variant:"secondary",onClick:w,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&Hn(Jn,{button:o.buttons.primary,variant:"primary",onClick:w,cursorStyle:b})]})]})]}),y&&Hn("a",{href:g?"https://posthog.com/docs/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 ",Kn]})]})}var to=[Qn,Un,Vn],ro=[Wn,Qn,Un,Vn,Yn];function eo(t){var r=t.value,e=t.onChange,n=t.onSubmit,o=t.isInteractive,i=fn(null);return cn(()=>{o&&setTimeout(()=>{var t;return null==(t=i.current)?void 0:t.focus()},100)},[o]),Hn("textarea",{ref:i,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:r,onInput:t=>e(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 no(t){var r=t.survey,e=t.onSubmit,n=t.isInteractive,o=sn(null),i=o[0],a=o[1],l=r.scale||5,u=t=>{n&&(a(t),null==e||e(t))};if("emoji"===(r.display||"emoji"))return Hn("div",{class:"ph-tour-survey-rating-container",children:[Hn("div",{class:"ph-tour-survey-rating-emoji",children:(3===l?to:ro).map((t,r)=>{var e=r+1;return Hn("button",{type:"button",class:"ph-tour-survey-emoji-button "+(i===e?"ph-tour-survey-emoji-button--active":""),onClick:()=>u(e),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+e,children:t},r)})}),(r.lowerBoundLabel||r.upperBoundLabel)&&Hn("div",{class:"ph-tour-survey-rating-labels",children:[Hn("span",{children:r.lowerBoundLabel}),Hn("span",{children:r.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]}}(l);return Hn("div",{class:"ph-tour-survey-rating-container",children:[Hn("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map(t=>Hn("button",{type:"button",class:"ph-tour-survey-number-button "+(i===t?"ph-tour-survey-number-button--active":""),onClick:()=>u(t),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Hn("div",{class:"ph-tour-survey-rating-labels",children:[Hn("span",{children:r.lowerBoundLabel}),Hn("span",{children:r.upperBoundLabel})]})]})}function oo(t){var r,e=t.step,n=t.appearance,o=t.stepIndex,i=t.totalSteps,a=t.onPrevious,l=t.onSubmit,u=t.onDismiss,s=sn(""),c=s[0],h=s[1],f=e.survey,d=null!==(r=null==n?void 0:n.whiteLabel)&&void 0!==r&&r,p=0===o,v="open"===(null==f?void 0:f.type),m=!!(a||l||u),g=m?void 0:{cursor:"default"},b=()=>{null==l||l(c.trim()||null)};return f?Hn(M,{children:[Hn("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:g,children:Gn()}),Hn("div",{class:"ph-tour-survey-question",children:f.questionText}),v?Hn(eo,{value:c,onChange:h,onSubmit:b,isInteractive:m}):Hn(no,{survey:f,onSubmit:l,isInteractive:m}),Hn("div",{class:"ph-tour-footer",children:[Hn("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),Hn("div",{class:"ph-tour-buttons",children:[!p&&Hn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:a,style:g,children:f.backButtonText||"Back"}),v&&Hn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:b,style:g,children:f.submitButtonText||"Submit"})]})]}),!d&&Hn("a",{href:m?"https://posthog.com/product-tours":void 0,target:m?"_blank":void 0,rel:m?"noopener noreferrer":void 0,class:"ph-tour-branding",style:m?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",Kn]})]}):Hn("div",{})}var io=e;function ao(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}function lo(r){var e,n=r.tour,o=r.step,i=r.stepIndex,a=r.totalSteps,l=r.targetElement,u=r.onNext,s=r.onPrevious,c=r.onDismiss,h=r.onSurveySubmit,f=r.onButtonClick,d=sn("entering"),p=d[0],v=d[1],m=sn(null),g=m[0],b=m[1],y=sn(null),w=y[0],_=y[1],x=sn(!1),k=x[0],T=x[1],C=sn(o),S=C[0],A=C[1],q=sn(i),M=q[0],j=q[1],E=fn(null),I=fn(i),L=fn(!1),z=fn(l),O=!Ln(S)||"survey"===S.type;hn(()=>{z.current=l},[l]);var R=function(t){return Je=8,dn(function(){return t},[])}(()=>{var t=z.current;if(t&&E.current){var r=E.current.getBoundingClientRect(),e={width:r.width,height:r.height},n=t.getBoundingClientRect();b(function(t,r){var e=En.innerWidth,n=En.innerHeight,o=r.width,i=r.height,a=t.top,l=n-t.bottom,u=t.left,s=t.top+t.height/2,c=t.left+t.width/2;if(e-t.right>=o+On){var h=t.right+On,f=Rn(s,i,n);return{position:"right",top:f.clamped,left:h,arrowOffset:f.offset}}if(u>=o+On){var d=e-t.left+On,p=Rn(s,i,n);return{position:"left",top:p.clamped,right:d,arrowOffset:p.offset}}if(a>=i+On&&i+On>l){var v=n-t.top+On,m=Rn(c,o,e);return{position:"top",bottom:v,left:m.clamped,arrowOffset:m.offset}}var g=t.bottom+On,b=Rn(c,o,e);return{position:"bottom",top:g,left:b.clamped,arrowOffset:b.offset}}(n,e)),_(function(t,r){return void 0===r&&(r=8),{top:t.top-r+"px",left:t.left-r+"px",width:t.width+2*r+"px",height:t.height+2*r+"px"}}(n)),T(!0)}});hn(()=>{!O&&!k&&E.current&&l&&R()},[O,k,l,R]),cn(()=>{var t=i,r=()=>{I.current===t&&(v("visible"),L.current=!1)},e=()=>{z.current&&Ln(o)&&(z.current.isConnected||(z.current=zn(o).element),z.current)?function(t,r){var e=t.getBoundingClientRect(),n=io.innerHeight,o=io.innerWidth,i=n/6,a=o/6;if(i>e.top||e.bottom>n-i||a>e.left||e.right>o-a){t.scrollIntoView({behavior:"smooth",block:"center"});var l=e.top,u=0,s=!1,c=()=>{if(!s){var e=t.getBoundingClientRect();if(1>Math.abs(e.top-l)){if(++u>=3)return s=!0,void r()}else u=0;l=e.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout(()=>{s||(s=!0,r())},500)}else r()}(z.current,()=>{I.current===t&&(R(),setTimeout(r,50))}):setTimeout(r,50)};if(I.current===i)return I.current=i,L.current=!0,void e();I.current=i,L.current=!0,v("exiting"),setTimeout(()=>{I.current===t&&(Ln(o)&&(b(null),_(null),T(!1)),A(o),j(i),v("entering"),e())},150)},[l,i,o,R]),cn(()=>{if("visible"===p&&!O){var t=()=>{L.current||R()};return Be(io,"scroll",t,{capture:!0}),Be(io,"resize",t),()=>{null==io||io.removeEventListener("scroll",t,!0),null==io||io.removeEventListener("resize",t)}}},[R,p,O]),cn(()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return Be(io,"keydown",t),()=>{null==io||io.removeEventListener("keydown",t)}},[c]);var D,P,N="visible"===p,Z="survey"===S.type,F=O||k,B=t({},S.maxWidth&&{width:"min("+S.maxWidth+"px, calc(100vw - 16px))",maxWidth:"min("+S.maxWidth+"px, calc(100vw - 16px))"},O?t({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(P=function(t,r){switch(void 0===r&&(r="right"),r){case"top_left":return{top:"0",left:"0",transform:"translate(30px, 30px)"};case"top_right":return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case"top_center":return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case"middle_left":return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case"middle_right":return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case"middle_center":return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case"left":return{left:"30px"};case"center":return{left:"50%",transform:"translateX(-50%)"};default:return{right:"30px"}}}(0,null!==(D=S.modalPosition)&&void 0!==D?D:"middle_center"),"top"in P||"bottom"in P?P:t({},P,{bottom:"30px"}))):(()=>{if(!g)return{};var t="left"===g.position||"right"===g.position;return{top:Bt(g.top)?"auto":g.top+"px",bottom:Bt(g.bottom)?"auto":g.bottom+"px",left:Bt(g.left)?"auto":g.left+"px",right:Bt(g.right)?"auto":g.right+"px",transform:t?"translateY(-50%)":"translateX(-50%)"}})());return Hn("div",{class:"ph-tour-container",children:[!1!==(null==(e=n.appearance)?void 0:e.dismissOnClickOutside)&&Hn("div",{class:"ph-tour-click-overlay",onClick(t){t.stopPropagation(),c("user_clicked_outside")}}),Hn("div",{class:"ph-tour-modal-overlay",style:{opacity:O&&N?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),Hn("div",{class:"ph-tour-spotlight",style:t({},N&&F&&w?w:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!O&&N&&F?1:0,transition:"opacity 150ms ease-out"},"click"===S.progressionTrigger&&!O&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==S.progressionTrigger||O?void 0:t=>{t.stopPropagation(),z.current&&z.current.click(),u()}}),Hn("div",{ref:E,class:"ph-tour-tooltip "+(O?"ph-tour-tooltip--modal":"")+" "+(Z?"ph-tour-survey-step":""),style:t({},B,{opacity:N&&F?1:0,transition:"opacity 150ms ease-out"}),onClick(t){t.stopPropagation()},children:[!O&&g&&Hn("div",{class:"ph-tour-arrow ph-tour-arrow--"+ao(g.position),style:0!==g.arrowOffset?{"--ph-tour-arrow-offset":g.arrowOffset+"px"}:void 0}),Z?Hn(oo,{step:S,appearance:n.appearance,stepIndex:M,totalSteps:a,onSubmit:h,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):Hn(Xn,{step:S,appearance:n.appearance,stepIndex:M,totalSteps:a,onNext:u,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:f})]})]})}function uo(t){return Hn("a",{class:t.class,href:t.href,target:"_blank",rel:"noopener noreferrer",onClick:t.onClick,children:t.children})}function so(t){var r=t.onClick,e=t.children;return Hn("div",{class:t.class,role:"button",tabIndex:0,onClick:r,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),r())},style:{cursor:"pointer"},children:e})}function co(t){return Hn("div",{class:t.class,children:t.children})}function ho(r){return Hn("div",{class:"ph-tour-banner-wrapper",children:Hn("div",{class:"ph-tour-banner-slide",children:Hn(fo,t({},r))})})}function fo(t){var r,e=t.step,n=t.onDismiss,o=t.onActionClick,i=null!==(r=e.bannerConfig)&&void 0!==r?r:{behavior:"sticky"},a=i.action,l="always"!==t.displayFrequency,u=["ph-tour-banner","sticky"===i.behavior&&"ph-tour-banner--sticky","custom"===i.behavior&&"ph-tour-banner--custom"].filter(Boolean).join(" "),s=Hn(M,{children:[Hn("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:Fn(e)}}),l&&Hn("button",{class:"ph-tour-banner-dismiss",onClick(t){t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Gn()})]});return"link"===(null==a?void 0:a.type)&&a.link?Hn(uo,{class:u,href:a.link,onClick:o,children:s}):"trigger_tour"===(null==a?void 0:a.type)&&o?Hn(so,{class:u,onClick:o,children:s}):Hn(co,{class:u,children:s})}function po(t){var r,e;return!(null==(r=t.conditions)||!r.events||0>=(null==(e=t.conditions.events.values)?void 0:e.length))}function vo(t){var r,e;return!(null==(r=t.conditions)||!r.actions||0>=(null==(e=t.conditions.actions.values)?void 0:e.length))}var mo=class{on(t,r){return this.Ja[t]||(this.Ja[t]=[]),this.Ja[t].push(r),()=>{this.Ja[t]=this.Ja[t].filter(t=>t!==r)}}emit(t,r){for(var e of this.Ja[t]||[])e(r);for(var n of this.Ja["*"]||[])n(t,r)}constructor(){this.Ja={}}};function go(t,r,e){if(Vt(t))return!1;switch(e){case"exact":return t===r;case"contains":var n=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(t);case"regex":try{return new RegExp(r).test(t)}catch(t){return!1}default:return!1}}var bo,yo=class{constructor(t){this._instance=t,this.th=new Set,this.eh=new Set,this.ih=new mo,this.rh=(t,r)=>this.nh(t,r)&&this.sh(t,r)&&this.oh(t,r)&&this.ah(t,r),this.nh=(t,r)=>null==r||!r.event||(null==t?void 0:t.event)===(null==r?void 0:r.event)}init(){var t,r;Bt(null==(t=this._instance)?void 0:t._addCaptureHook)||(this.uh=null==(r=this._instance)?void 0:r._addCaptureHook((t,r)=>{this.on(t,r)}))}dispose(){var t;null==(t=this.uh)||t.call(this),this.uh=void 0,this.ih=new mo}register(t){var r,e;if(!Bt(null==(r=this._instance)?void 0:r._addCaptureHook)&&(t.forEach(t=>{var r;this.th.add(t),null==(r=t.steps)||r.forEach(t=>{this.eh.add((null==t?void 0:t.event)||"")})}),null!=(e=this._instance)&&e.autocapture)){var n=new Set;this.th.forEach(t=>{var r;null==(r=t.steps)||r.forEach(t=>{null!=t&&t.selector&&n.add(t.selector)})}),this._instance.autocapture.setElementSelectors(n)}}replace(t){this.th.clear(),this.eh.clear(),this.register(t)}on(t,r){null!=r&&0!=t.length&&(this.eh.has(t)||this.eh.has(r.event))&&this.th.forEach(t=>{this.hh(r,t)&&this.ih.emit("actionCaptured",t.name)})}dh(t){this.onAction("actionCaptured",r=>t(r))}hh(t,r){if(null==(null==r?void 0:r.steps))return!1;for(var e of r.steps)if(this.rh(t,e))return!0;return!1}onAction(t,r){return this.ih.on(t,r)}sh(t,r){if(null!=r&&r.url){var e,n=null==t||null==(e=t.properties)?void 0:e.$current_url;if(!n||"string"!=typeof n)return!1;if(!go(n,r.url,r.url_matching||"contains"))return!1}return!0}oh(t,r){return!!this.fh(t,r)&&!!this.ph(t,r)&&!!this.gh(t,r)}fh(t,r){var e;if(null==r||!r.href)return!0;var n=this.mh(t);if(n.length>0)return n.some(t=>go(t.href,r.href,r.href_matching||"exact"));var o,i=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!i&&go((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",r.href,r.href_matching||"exact")}ph(t,r){var e;if(null==r||!r.text)return!0;var n=this.mh(t);if(n.length>0)return n.some(t=>go(t.text,r.text,r.text_matching||"exact")||go(t.$el_text,r.text,r.text_matching||"exact"));var o,i,a,l=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!l&&(o=function(t){for(var r,e=[],n=/(?::|")text="(.*?)"/g;!Vt(r=n.exec(t));)e.includes(r[1])||e.push(r[1]);return e}(l),i=r.text,a=r.text_matching||"exact",o.some(t=>go(t,i,a)))}gh(t,r){var e,n;if(null==r||!r.selector)return!0;if(null!=t&&null!=(e=t.properties)&&null!=(e=e.$element_selectors)&&e.includes(r.selector))return!0;var o=(null==t||null==(n=t.properties)?void 0:n.$elements_chain)||"";if(r.selector_regex&&o)try{return new RegExp(r.selector_regex).test(o)}catch(t){return!1}return!1}mh(t){var r;return null==(null==t||null==(r=t.properties)?void 0:r.$elements)?[]:null==t?void 0:t.properties.$elements}ah(t,r){return null==r||!r.properties||0===r.properties.length||Fe(r.properties.reduce((t,r)=>{var e=Zt(r.value)?r.value.map(String):null!=r.value?[String(r.value)]:[];return t[r.key]={values:e,operator:r.operator||"exact"},t},{}),null==t?void 0:t.properties)}},wo=class{constructor(t){var r;this.yh=[],this._instance=t,this.bh=new Map,this._h=new Map,this.wh=new Map,this.kh=null==(r=this._instance)||null==r.onSessionId?void 0:r.onSessionId(t=>this.Sh(t))}xh(t){return!1}Ch(){return null}Th(t){}Mh(){}Ih(t,r){return!!t&&Fe(t.propertyFilters,null==r?void 0:r.properties)}Eh(t,r){var e=new Map;return t.forEach(t=>{var n;null==(n=t.conditions)||null==(n=n[r])||null==(n=n.values)||n.forEach(r=>{if(null!=r&&r.name){var n=e.get(r.name)||[];n.push(t.id),e.set(r.name,n)}})}),e}Rh(t,r,e){var n=(e===Et?this.bh:this._h).get(t),o=[];return this.Ah(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[e])||null==(o=o.values)?void 0:o.find(r=>r.name===t);return this.Ih(i,r)})}register(t){this.Ph(t,!1)}replace(t){this.Ph(t,!0)}Ph(t,r){var e;Bt(null==(e=this._instance)?void 0:e._addCaptureHook)||(this.Fh(t,r),this.Oh(t,r))}Oh(t,r){var e=t.filter(t=>{var r;return null==(r=t.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length});if(r&&this.wh.clear(),0!==e.length){this.$h||(this.$h=new yo(this._instance),this.$h.init(),this.$h.dh(t=>this.onAction(t)));var n=[];e.forEach(t=>{var r;null==(r=t.conditions)||null==(r=r.actions)||r.values.forEach(r=>{if(n.push(r),r.name){var e,o=null!==(e=this.wh.get(r.name))&&void 0!==e?e:[];o.includes(t.id)||o.push(t.id),this.wh.set(r.name,o)}})}),r?this.$h.replace(n):this.$h.register(n)}else{var o;r&&(null==(o=this.$h)||o.replace([]))}}Dh(t,r){r.forEach((r,e)=>{var n,o=null!==(n=t.get(e))&&void 0!==n?n:[];r.forEach(t=>{o.includes(t)||o.push(t)}),t.set(e,o)})}Fh(t,r){var e,n,o=t.filter(t=>{var r,e;return(null==(r=t.conditions)?void 0:r.events)&&(null==(e=t.conditions)||null==(e=e.events)||null==(e=e.values)?void 0:e.length)>0}),i=t.filter(t=>{var r,e;return(null==(r=t.conditions)?void 0:r.cancelEvents)&&(null==(e=t.conditions)||null==(e=e.cancelEvents)||null==(e=e.values)?void 0:e.length)>0}),a=this.Eh(t,Et),l=this.Eh(t,It);r?(this.bh=a,this._h=l):(this.Dh(this.bh,a),this.Dh(this._h,l)),(0!==o.length||0!==i.length)&&(null!==(e=this.uh)&&void 0!==e||(this.uh=null==(n=this._instance)?void 0:n._addCaptureHook((t,r)=>{this.onEvent(t,r)})))}onEvent(t,r){var e,n,o=this.Lh(),i=(null==r||null==(e=r.properties)?void 0:e.$survey_id)||(null==r||null==(n=r.properties)?void 0:n.$product_tour_id);if(i&&this.getActivatedIds().includes(i)){var a=this.Nh(t,i);if("consume"===a)return o.info("event consumed activated item, removing it",{event:t,itemId:i}),void this.qh([i]);if("persist"===a)return o.info("shown item promoted to persisted activation",{event:t,itemId:i}),this.jh(i),void this.Bh([i])}if(this._h.has(t)){var l=this.Rh(t,r,It);l.length>0&&(o.info("cancel event matched, cancelling items",{event:t,itemsToCancel:l.map(t=>t.id)}),this.qh(l.map(t=>t.id)),l.forEach(t=>this.Hh(t.id)))}if(this.bh.has(t)){o.info("event name matched",{event:t,eventPayload:r,items:this.bh.get(t)});var u=this.Rh(t,r,Et);this.zh(u.map(t=>t.id))}}onAction(t){this.wh.has(t)&&this.zh(this.wh.get(t)||[])}zh(t){var r;if(0!==t.length){var e=!(null==(r=this._instance)||null==r.get_session_id||!r.get_session_id()),n=[];for(var o of t)e&&this.xh(o)?this.jh(o)&&this.Uh(o):n.push(o);n.length>0&&(this.yh=[...new Set([...this.yh,...n])]),this.Lh().info("updating activated items",{activatedItems:this.getActivatedIds()})}}jh(t){this.yh=this.yh.filter(r=>r!==t);var r=this.Wh();return!r.includes(t)&&(this.Vh([...r,t]),this.Gh(),!0)}qh(t){var r=new Set(t);this.yh=this.yh.filter(t=>!r.has(t));var e=this.Zh(),n=e.filter(t=>!r.has(t));n.length!==e.length&&(this.Vh(n),0===n.length&&this.Jh()),this.Bh(t)}Qh(){var t,r=this.Ch();if(!r)return{};var e=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r];return e&&"object"==typeof e?e:{}}Uh(r){if(this.Ch()){var e=this.Qh();this.Th(t({},e,{[r]:Date.now()}))}}Bh(t){if(this.Ch()){var r=this.Qh(),e={},n=!1;for(var o of Object.entries(r)){var i=o[0],a=o[1];t.includes(i)?n=!0:e[i]=a}n&&((t=>{if((t=>t===Object(t)&&!Zt(t))(t)){for(var r in t)if(Pt.call(t,r))return!1;return!0}return!1})(e)?this.Mh():this.Th(e))}}Kh(){this.Ch()&&this.Mh()}getActivationTimestamp(t){if(this.Wh().includes(t)){var r=this.Qh()[t];return Ut(r)?r:void 0}}Zh(){var t,r=this.Xh();return(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r])||[]}Wh(){var t,r,e=this.Zh();if(0===e.length)return[];var n=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[this.Yh()],o=null==(r=this._instance)||null==r.get_session_id?void 0:r.get_session_id();return o&&n===o?e:[]}Gh(){var t,r=null==(t=this._instance)||null==t.get_session_id?void 0:t.get_session_id();r&&this.td(r)}Jh(){this.ed()}Sh(t){var r,e=null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[this.Yh()];if(e&&e!==t){var n=this.Zh(),o=this.Qh();n.length>0&&(this.Vh([]),n.filter(t=>Ut(o[t])).forEach(t=>this.Hh(t))),this.Jh(),this.Kh()}}getActivatedIds(){return[...new Set([...this.Wh(),...this.yh])].filter(t=>!this.rd(t))}dispose(){var t,r,e;null==(t=this.kh)||t.call(this),this.kh=void 0,null==(r=this.uh)||r.call(this),this.uh=void 0,null==(e=this.$h)||e.dispose(),this.$h=void 0}reset(){this.yh=[],this.Zh().length>0&&this.Vh([]),this.Jh(),this.Kh()}getEventToItemsMap(){return this.bh}nd(){return this.$h}},_o=De("[Product Tour Event Receiver]"),xo=class extends wo{constructor(t){super(t)}Xh(){return J}Yh(){return X}sd(){return rt}Ah(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.getProductTours(t)}Hh(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.cancelPendingTour(t)}Lh(){return _o}Vh(t){var r;null==(r=this._instance)||null==(r=r.persistence)||r.register({[J]:t})}td(t){var r;null==(r=this._instance)||null==(r=r.persistence)||r.register({[X]:t})}ed(){var t;null==(t=this._instance)||null==(t=t.persistence)||t.unregister(X)}rd(t){if(!t)return!0;var r=""+Sn+t;return!(!Ye.li(""+Cn+t)&&!Ye.li(r))}Nh(t){return t===this.sd()?"consume":"ignore"}getTours(){return this.getActivatedIds()}},ko=De("[Product Tours]"),To=i,Co=e,So=new Map;function Ao(t,r){var n=t.conditions;if(null==n||!n.url)return!0;var o=function(t){var r,n=null==e||null==(r=e.location)?void 0:r.href;return Bt(n)?void 0:function(t,r){var e,n=null==t||null==(e=t.config)?void 0:e.get_current_url;if(!Ft(n))return r;try{var o=n(r);return(t=>"[object String]"==Nt.call(t))(o)&&o?o:r}catch(t){return Re.error("Error in get_current_url, falling back to window.location.href",t),r}}(t,n)}(r);if(!o)return!1;o!==bo&&(So.clear(),bo=o);var i=So.get(t.id);if(!Bt(i))return i;var a,l=n.urlMatchType||"icontains";return a="exact"===l?Pn(o)===Pn(n.url):Ze[l]([n.url],[o]),So.set(t.id,a),a}function qo(t){var r=new Date;return!(t.start_date&&r<new Date(t.start_date)||t.end_date&&r>new Date(t.end_date))}function Mo(t,r){var n;return qo(t)&&Ao(t,r)&&function(t){var r,n,i;if(!t||0===t.length)return!0;if(!_)return!1;var a,l,u,s,c,h,f=(a={userAgentDataPlatform:null==o||null==(r=o.userAgentData)?void 0:r.platform,maxTouchPoints:null==o?void 0:o.maxTouchPoints,screenWidth:null==e||null==(n=e.screen)?void 0:n.width,screenHeight:null==e||null==(i=e.screen)?void 0:i.height,devicePixelRatio:null==e?void 0:e.devicePixelRatio},(h=function(t){return ur.test(t)?Xt:lr.test(t)?tr:ar.test(t)?rr:new RegExp(nr,"i").test(t)?nr:new RegExp("(Windows Phone|WPDesktop)","i").test(t)?"Windows Phone":/iPad/.test(t)?Kt:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?Jt:sr.test(t)?"BlackBerry":/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(er,"i").test(t)?er:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Wt).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?"Android":Gt:new RegExp("(pda|Mobile)","i").test(t)?or:new RegExp(Yt,"i").test(t)&&!new RegExp("Tablet pc","i").test(t)?ir:""}(_))===Kt||h===Gt||"Kobo"===h||"Kindle Fire"===h||h===ir?Yt:h===Xt||h===rr||h===tr||h===nr?"Console":h===Jt?"Wearable":h?Wt:"Android"===(null==a?void 0:a.userAgentDataPlatform)&&(null!==(l=null==a?void 0:a.maxTouchPoints)&&void 0!==l?l:0)>0?600>Math.min(null!==(u=null==a?void 0:a.screenWidth)&&void 0!==u?u:0,null!==(s=null==a?void 0:a.screenHeight)&&void 0!==s?s:0)/(null!==(c=null==a?void 0:a.devicePixelRatio)&&void 0!==c?c:1)?Wt:Yt:"Desktop");return Ze.icontains(t,[f])}(null==(n=t.conditions)?void 0:n.deviceTypes)}var jo="ph-product-tour-container",Eo="data-ph-tour-trigger",Io=class{constructor(r){var e=this;this.tm=null,this.rm=0,this.nm=!1,this.om=!1,this.im=null,this.am=new Map,this.lm=new Map,this.um=new Set,this.sm=new Set,this.hm=()=>{To.hidden&&this.im?(clearInterval(this.im),this.im=null):To.hidden||this.im||(this.im=setInterval(()=>{this.fm()},1e3),this.fm())},this.nextStep=()=>{if(this.tm){var t=this.tm.steps[this.rm];this.Qs("product tour step completed",{[et]:this.tm.id,[at]:t.id,[lt]:this.rm}),this.tm.steps.length-1>this.rm?(this.dm(this.rm+1),this.pm()):this.vm()}},this.previousStep=()=>{this.tm&&0!==this.rm&&(this.dm(this.rm-1),this.pm())},this.dismissTour=function(t){if(void 0===t&&(t="user_clicked_skip"),e.tm){var r=e.tm.steps[e.rm];e.Qs("product tour dismissed",{[et]:e.tm.id,[at]:r.id,[lt]:e.rm,[st]:t}),e.nm||(Ye.ui(""+Sn+e.tm.id,!0),e._instance.capture("$set",{$set:{["$product_tour_dismissed/"+e.tm.id]:!0}})),Co.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:e.tm.id,reason:t}})),e.gm()}},this.bm=()=>{var t;if(this.tm){var r=this.ym();if(r){var e=null==(t=r.bannerConfig)?void 0:t.action;this.Qs("product tour banner action clicked",{[et]:this.tm.id,[nt]:this.tm.name,[ot]:this.tm.current_iteration||1,[at]:r.id,[lt]:this.rm,[ht]:null==e?void 0:e.type,[ft]:null==e?void 0:e.link,[dt]:null==e?void 0:e.tourId}),"trigger_tour"===(null==e?void 0:e.type)&&e.tourId&&(this.gm(),this.showTourById(e.tourId))}}},this.wm=r=>{if(this.tm){var e=this.tm.steps[this.rm];e&&this.Qs("product tour button clicked",t({[et]:this.tm.id,[nt]:this.tm.name,[ot]:this.tm.current_iteration||1,[at]:e.id,[lt]:this.rm,[ct]:r.text,[ht]:r.action},r.link&&{[ft]:r.link},r.tourId&&{[dt]:r.tourId}))}switch(r.action){case"dismiss":this.dismissTour("user_clicked_skip");break;case"next_step":this.nextStep();break;case"previous_step":this.previousStep();break;case"link":this.vm();break;case"trigger_tour":r.tourId&&(this.vm(),this.showTourById(r.tourId))}},this._instance=r,this._m=new xo(r)}xm(t){for(var r of t.filter(t=>!t.disable_image_preload).flatMap(t=>t.steps.flatMap(Zn)))this.sm.has(r)||(this.sm.add(r),(new Image).src=r)}ym(){var r;if(!this.tm)return null;var e=this.tm.steps[this.rm];if(!e)return null;var n=null!==(r=this._instance.config.override_display_language)&&void 0!==r?r:navigator.language||navigator.userLanguage;return function(r,e){var n;if(!e||!r.translations)return r;var o=r.translations,i=null!==(n=o[e])&&void 0!==n?n:o[e.split("-")[0]];if(!i)return Mn.info('No matching translation for "'+e+'" in step '+r.id+", using default"),r;var a=t({},r);return Bt(i.content)||(a.content=i.content),Bt(i.contentHtml)||(a.contentHtml=i.contentHtml),i.buttons&&a.buttons&&(a.buttons={primary:a.buttons.primary&&t({},a.buttons.primary,i.buttons.primary),secondary:a.buttons.secondary&&t({},a.buttons.secondary,i.buttons.secondary)}),i.survey&&a.survey&&(a.survey=t({},a.survey,i.survey)),a}(e,null!=n?n:null)}dm(t){this.rm=t,this.km()}km(){this.tm&&!this.nm&&Ke.ui(An,{tourId:this.tm.id,stepIndex:this.rm})}Tm(){Ke.hi(An)}Cm(){var t=Ke.li(An);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.im){var t=this.Cm();t?this.Sm(t.tourId,t.stepIndex,()=>{this.Am()}):this.Am()}}Am(){this.im=setInterval(()=>{this.fm()},1e3),this.fm(!0),Be(To,"visibilitychange",this.hm)}Sm(t,r,e){var n;null==(n=this._instance.productTours)||n.getProductTours(n=>{var o=n.find(r=>r.id===t);o?(this.tm=o,this.rm=r,this.om=!0,this.pm()):n.length>0&&this.Tm(),e()})}stop(){this.im&&(clearInterval(this.im),this.im=null),To.removeEventListener("visibilitychange",this.hm),this.qm(),this.Mm(),this.gm()}fm(t){var r;null!=To&&To.getElementById("__POSTHOG_TOOLBAR__")||null==(r=this._instance.productTours)||r.getProductTours(t=>{if(0!==t.length){this.xm(t);var r=new Set,e=t.filter(t=>!this.um.has(t.id)&&(po(t)||vo(t)));e.length>0&&(this._m.register(e),e.forEach(t=>this.um.add(t.id)));var n=this.tm?[]:this._m.getTours();for(var o of t){var i,a=null==(i=o.conditions)?void 0:i.selector;if(a&&(r.add(o.id),this.jm(o,a)),!this.tm){var l=vo(o)||po(o);if(o.auto_launch&&this.Em(o)){if(!l){this.Im(o,"auto");continue}n.includes(o.id)&&this.Im(o,"event")}}}this.am.forEach(t=>{var e=t.tour;r.has(e.id)||this.Lm(e.id)})}else this.qm()},t)}Im(t,r){var e,n=(null==(e=t.conditions)?void 0:e.autoShowDelaySeconds)||0;n>0?this.isTourPending(t.id)||this.queueTourWithDelay(t.id,n,r):this.showTour(t,{reason:r})}Em(t){var r,e,n;if(!Mo(t,this._instance))return ko.info("Tour "+t.id+" failed conditions check"),!1;var o,i,a=null!==(r=t.display_frequency)&&void 0!==r?r:"until_interacted",l=""+Tn+t.id,u=""+Cn+t.id,s=""+Sn+t.id;switch(a){case"show_once":if(Ye.li(l))return ko.info("Tour "+t.id+" already shown (show_once frequency)"),!1;break;case"until_interacted":if(Ye.li(u)||Ye.li(s))return ko.info("Tour "+t.id+" already completed or dismissed"),!1}if(!function(t){if(!t)return!0;var r=t.days,e=t.types;if(!r||!e||0===e.length)return!0;var n=null;for(var o of e){var i=Ye.li(""+qn+o);if(i)try{var a=JSON.parse(i),l=new Date(a);isNaN(l.getTime())||n&&n>=l||(n=l)}catch(t){}}return!n||function(t,r){if(!t||!r)return!0;var e="string"==typeof r?new Date(r):r,n=Math.abs((new Date).getTime()-e.getTime());return Math.ceil(n/864e5)>t}(r,n)}(null==(e=t.conditions)?void 0:e.seenTourWaitPeriod))return ko.info("Cannot show tour "+t.id+": user has seen a "+(null==(o=t.conditions)||null==(o=o.seenTourWaitPeriod)?void 0:o.types)+" tour within the last "+(null==(i=t.conditions)||null==(i=i.seenTourWaitPeriod)?void 0:i.days)+" days."),!1;if(!this.zm({flagKey:t.internal_targeting_flag_key}))return ko.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;var c=null==(n=t.conditions)?void 0:n.linkedFlagVariant;return!!this.zm({flagKey:t.linked_flag_key,flagVariant:c})||(ko.info("Tour "+t.id+" failed feature flag check: "+t.linked_flag_key+", variant: "+c),!1)}showTour(t,r){var e,n=null!==(e=null==r?void 0:r.reason)&&void 0!==e?e:"auto";this.cancelPendingTour(t.id),this.tm=t,this.dm(0);var o=this.pm();return o?(this.Qs(rt,{[et]:t.id,[nt]:t.name,[ot]:t.current_iteration||1,[it]:n,[jt]:t.tour_type}),this.nm||(Ye.ui(""+Tn+t.id,!0),Ye.ui(""+qn+t.tour_type,(new Date).toISOString()),this._instance.capture("$set",{$set:{["$product_tour_shown/"+t.id]:!0}}))):this.gm(),o}showTourById(t,r){var e;ko.info("showTourById("+t+")"),null==(e=this._instance.productTours)||e.getProductTours(e=>{var n=e.find(r=>r.id===t);n?this.showTour(n,{reason:null!=r?r:"api"}):ko.warn("could not find tour",t)})}previewTour(t){ko.info("Previewing tour "+t.id),this.gm(),this.nm=!0,this.tm=t,this.rm=0,this.pm()}vm(){this.tm&&(this.Qs("product tour completed",{[et]:this.tm.id,[pt]:this.tm.steps.length}),this.nm||(Ye.ui(""+Cn+this.tm.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.tm.id]:!0}})),Co.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.tm.id}})),this.gm())}pm(r){var e,n;if(void 0===r&&(r=0),!this.tm)return!1;var o=this.ym();if(!o)return ko.warn("Step "+this.rm+" not found in tour "+this.tm.id),this.gm(),!1;if("banner"===o.type)return this.Om(),this.om=!1,this.Rm(),!0;if("survey"===o.type)return o.survey?(this.Dm(),!0):(ko.warn("Unable to render survey step - survey data not found"),!1);if(!Ln(o))return this.Om(),this.om=!1,this.$m(null),!0;var i=zn(o),a={[qt]:null!==(e=o.useManualSelector)&&void 0!==e&&e,[Mt]:!!o.inferenceData},l="click"===(null==(n=this.rm>0?this.tm.steps[this.rm-1]:null)?void 0:n.progressionTrigger)||this.om;if("not_found"===i.error||"not_visible"===i.error){if(l&&20>r)return setTimeout(()=>{this.pm(r+1)},100),!1;var u=100*r;return this.Pm(i,t({[Tt]:l,[Ct]:u},a)),0!==this.rm||this.om?(ko.warn('Tour "'+this.tm.name+'" dismissed: element for step '+this.rm+" became unavailable ("+i.error+")"+(l?" after waiting "+u+"ms":"")),this.dismissTour("element_unavailable"),!1):(ko.warn('Tour "'+this.tm.name+'" failed to show: element for first step not found ('+i.error+")"),!1)}if("multiple_matches"===i.error&&this.Pm(i,a),!i.element)return!1;var s=i.element,c=function(t){var r;return{tag:t.tagName,id:t.id||void 0,classes:t.className||void 0,text:(null==(r=t.innerText)?void 0:r.slice(0,100))||void 0}}(s);return this.Om(t({[vt]:o.selector,[mt]:!0,[gt]:c.tag,[bt]:c.id,[yt]:c.classes,[wt]:c.text},a)),this.om=!1,this.$m(s),!0}$m(t,r,e){if(this.tm){var n=this.ym();if(n){var o=function(t,r){var e=jo+"-"+t.id,n=To.querySelector("."+e);if(n&&n.shadowRoot)return{shadow:n.shadowRoot,isNewlyCreated:!1};var o=To.createElement("div");o.className=e,Dn(o,t.appearance);var i=o.attachShadow({mode:"open"}),a=In(r);return a&&i.appendChild(a),To.body.appendChild(o),{shadow:i,isNewlyCreated:!0}}(this.tm,this._instance).shadow;K(Hn(lo,{tour:this.tm,step:n,stepIndex:this.rm,totalSteps:this.tm.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:e||this.dismissTour,onSurveySubmit:r,onButtonClick:this.wm}),o)}}}Rm(){if(this.tm){var t=this.ym();if(t){var r,e=function(t,r,e){var n,o=jo+"-"+t.id,i=To.querySelector("."+o);if(i&&i.shadowRoot)return{shadow:i.shadowRoot,isNewlyCreated:!1};var a=To.createElement("div");a.className=o,Dn(a,t.appearance),Bt(null==e||null==(n=e.animation)?void 0:n.duration)||a.style.setProperty("--ph-tour-banner-animation-duration",e.animation.duration+"ms");var l=a.attachShadow({mode:"open"}),u=In(r);if(u&&l.appendChild(u),"custom"===(null==e?void 0:e.behavior)&&e.selector){var s=To.querySelector(e.selector);if(!s)return ko.warn("Custom banner container not found: "+e.selector+". Banner will not be displayed."),null;s.appendChild(a)}else To.body.insertBefore(a,To.body.firstChild);return{shadow:l,isNewlyCreated:!0}}(this.tm,this._instance,t.bannerConfig);if(!e)return this.Qs("product tour banner container selector failed",{[et]:this.tm.id,[St]:null==t||null==(r=t.bannerConfig)?void 0:r.selector}),void this.dismissTour("container_unavailable");var n=e.shadow;K(Hn(ho,{step:t,onDismiss:()=>this.dismissTour("user_clicked_skip"),onActionClick:this.bm,displayFrequency:this.tm.display_frequency}),n)}}}Dm(){var r,e,n;if(this.tm){var o=this.tm.id,i=this.ym();if(i){var a=i.linkedSurveyId,l=i.linkedSurveyQuestionId,u=(null==(r=i.survey)?void 0:r.questionText)||"";this.Om({[At]:a}),this.Qs("survey shown",{[Lt]:a,[Dt]:o,sessionRecordingUrl:null==(e=(n=this._instance).get_session_replay_url)?void 0:e.call(n)}),this.$m(null,r=>{var e,n,i=l?"$survey_response_"+l:"$survey_response";this.Qs("survey sent",t({[Lt]:a,[Dt]:o,[Ot]:[{id:l,question:u,response:r}],[Rt]:!0,sessionRecordingUrl:null==(e=(n=this._instance).get_session_replay_url)?void 0:e.call(n)},!Ht(r)&&{[i]:r})),ko.info("Survey "+a+" completed",Ht(r)?"(skipped)":"with response: "+r),this.nextStep()},t=>{var r,e;this.Qs("survey dismissed",{[Lt]:a,[Dt]:o,[Ot]:[{id:l,question:u,response:null}],[zt]:!1,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),ko.info("Survey "+a+" dismissed"),this.dismissTour(t)}),ko.info("Rendered survey step for tour step "+this.rm)}}}zm(t){var r,e,n=t.flagKey,o=t.flagVariant;if(!n)return!0;var i=!(null==(r=this._instance.featureFlags)||!r.isFeatureEnabled(n,{send_event:!n.startsWith("product-tour-targeting-")})),a=!0;return o&&(a=(null==(e=this._instance.featureFlags)?void 0:e.getFeatureFlag(n,{send_event:!1}))===o||"any"===o),i&&a}gm(){var t;this.tm&&(null!=(t=To.querySelector("."+jo+"-"+this.tm.id))&&t.shadowRoot&&K(null,t.shadowRoot),null==t||t.remove()),this.tm=null,this.rm=0,this.nm=!1,this.om=!1,this.Tm()}jm(t,r){var e=To.querySelector(r),n=this.am.get(t.id);if(e){if(n){if(e===n.element)return;ko.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Lm(t.id)}if(!e.hasAttribute(Eo)){var o=e=>{var n;if(this.tm)ko.info("Tour "+t.id+" trigger clicked but another tour is active");else{var o;if(null==(n=this._instance.productTours)||n.getProductTours(r=>{o=r.find(r=>r.id===t.id)}),!o)return ko.warn("Tour "+t.id+" no longer exists. Removing stale listener."),void this.Lm(t.id);qo(o)?(ko.info("Tour "+t.id+" triggered by click on "+r),this.showTour(o,{reason:"trigger"})?e.preventDefault():ko.info("Tour "+t.id+" failed to show; not intercepting click.")):ko.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")}};Be(e,"click",o),e.setAttribute(Eo,t.id),this.am.set(t.id,{element:e,listener:o,tour:t}),ko.info("Attached trigger listener for tour "+t.id+" on "+r)}}else n&&this.Lm(t.id)}Lm(t){var r=this.am.get(t);r&&(r.element.removeEventListener("click",r.listener),r.element.removeAttribute(Eo),this.am.delete(t),ko.info("Removed trigger listener for tour "+t))}qm(){this.am.forEach((t,r)=>{this.Lm(r)})}Qs(t,r){this.nm||this._instance.capture(t,r)}Om(r){if(this.tm){var e=this.tm.steps[this.rm];this.Qs("product tour step shown",t({[et]:this.tm.id,[at]:e.id,[lt]:this.rm,[ut]:e.type},r))}}Pm(r,e){if(this.tm){var n=this.tm.steps[this.rm];this.Qs("product tour step selector failed",t({[et]:this.tm.id,[at]:n.id,[lt]:this.rm,[vt]:n.selector,[_t]:r.error,[xt]:r.matchCount,[kt]:"runtime"},e))}}getActiveProductTours(t){var r;null==(r=this._instance.productTours)||r.getProductTours((r,e)=>{t(null!=e&&e.isLoaded?r.filter(t=>this.Em(t)):[],e)})}resetTour(t){Ye.hi(""+Tn+t),Ye.hi(""+Cn+t),Ye.hi(""+Sn+t)}resetAllTours(){var t=null==Co?void 0:Co.localStorage;if(t){for(var r=[],e=0;t.length>e;e++){var n=t.key(e);(null!=n&&n.startsWith("ph_product_tour_shown_")||null!=n&&n.startsWith("ph_product_tour_completed_")||null!=n&&n.startsWith("ph_product_tour_dismissed_")||null!=n&&n.startsWith("ph_last_seen_tour_date_"))&&r.push(n)}r.forEach(t=>Ye.hi(t))}}cancelPendingTour(t){var r=this.lm.get(t);r&&(clearTimeout(r),this.lm.delete(t),ko.info("Cancelled pending tour: "+t))}Mm(){this.lm.forEach(t=>clearTimeout(t)),this.lm.clear()}isTourPending(t){return this.lm.has(t)}queueTourWithDelay(t,r,e){ko.info("Queueing tour "+t+" with "+r+"s delay");var n=setTimeout(()=>{this.lm.delete(t),ko.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,e)},1e3*r);this.lm.set(t,n)}};function Lo(t,r){if(i){var e=new Io(t);return r&&e.start(),e}}var zo="undefined"!=typeof globalThis?globalThis:e;zo&&"undefined"==typeof self&&(zo.self=zo),zo&&"undefined"==typeof File&&(zo.File=function(){});var Oo=null!=e?e:{};Oo.__PosthogExtensions__=Oo.__PosthogExtensions__||{},Oo.__PosthogExtensions__.generateProductTours=Lo,r.default=Lo,r.elementIsVisible=je,r.findElement=ze,r.getElementPath=function(t,r){if(void 0===r&&(r=4),!t)return null;for(var e=[],n=t;n&&r>e.length&&"BODY"!==n.tagName;){var o=n.tagName.toLowerCase();n.id?o+="#"+n.id:n.classList.length&&(o+="."+n.classList[0]),e.unshift(o),n=n.parentElement}return e.join(" > ")}}({})}();
|
|
2
2
|
//# sourceMappingURL=product-tours.js.map
|