UNPKG

posthog-js

Version:

Posthog-js allows you to automatically capture usage and send events to PostHog.

2 lines • 78 kB
var t,e,n,o,r,i,l,a,u,c,s,f,p,d,h,m={},b=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function y(t,e){for(var n in e)t[n]=e[n];return t}function x(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function w(t,o,r,i,l){var a={type:t,props:o,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==l?++n:l,__i:-1,__u:0};return null==l&&null!=e.vnode&&e.vnode(a),a}function k(t){return t.children}function T(t,e){this.props=t,this.context=e}function $(t,e){if(null==e)return t.__?$(t.__,t.__i+1):null;for(var n;t.__k.length>e;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?$(t):null}function q(t){if(t.__P&&t.__d){var n=t.__v,o=n.__e,r=[],i=[],l=y({},n);l.__v=n.__v+1,e.vnode&&e.vnode(l),L(t.__P,l,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,r,null==o?$(n):o,!!(32&n.__u),i),l.__v=n.__v,l.__.__k[l.__i]=l,R(r,l,i),n.__e=n.__=null,l.__e!=o&&S(l)}}function S(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some(function(e){if(null!=e&&null!=e.__e)return t.__e=t.__c.base=e.__e}),S(t)}function j(t){(!t.__d&&(t.__d=!0)&&o.push(t)&&!_.__r++||r!=e.debounceRendering)&&((r=e.debounceRendering)||i)(_)}function _(){try{for(var t,e=1;o.length;)o.length>e&&o.sort(l),t=o.shift(),e=o.length,q(t)}finally{o.length=_.__r=0}}function z(t,e,n,o,r,i,l,a,u,c,s){var f,p,d,h,g,v,y,x=o&&o.__k||b,w=e.length;for(u=C(n,e,x,u,w),f=0;w>f;f++)null!=(d=n.__k[f])&&(p=-1!=d.__i&&x[d.__i]||m,d.__i=f,v=L(t,d,p,r,i,l,a,u,c,s),h=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&P(p.ref,null,d),s.push(d.ref,d.__c||h,d)),null==g&&null!=h&&(g=h),(y=!!(4&d.__u))||p.__k===d.__k?(u=A(d,u,t,y),y&&p.__e&&(p.__e=null)):"function"==typeof d.type&&void 0!==v?u=v:h&&(u=h.nextSibling),d.__u&=-7);return n.__e=g,u}function C(t,e,n,o,r){var i,l,a,u,c,s=n.length,f=s,p=0;for(t.__k=new Array(r),i=0;r>i;i++)null!=(l=e[i])&&"boolean"!=typeof l&&"function"!=typeof l?("string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?l=t.__k[i]=w(null,l,null,null,null):v(l)?l=t.__k[i]=w(k,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[i]=w(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):t.__k[i]=l,u=i+p,l.__=t,l.__b=t.__b+1,a=null,-1!=(c=l.__i=M(l,n,u,f))&&(f--,(a=n[c])&&(a.__u|=2)),null==a||null==a.__v?(-1==c&&(r>s?p--:s>r&&p++),"function"!=typeof l.type&&(l.__u|=4)):c!=u&&(c==u-1?p--:c==u+1?p++:(c>u?p--:p++,l.__u|=4))):t.__k[i]=null;if(f)for(i=0;s>i;i++)null!=(a=n[i])&&!(2&a.__u)&&(a.__e==o&&(o=$(a)),B(a,a));return o}function A(t,e,n,o){var r,i;if("function"==typeof t.type){for(r=t.__k,i=0;r&&r.length>i;i++)r[i]&&(r[i].__=t,e=A(r[i],e,n,o));return e}t.__e!=e&&(o&&(e&&t.type&&!e.parentNode&&(e=$(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function M(t,e,n,o){var r,i,l,a=t.key,u=t.type,c=e[n],s=null!=c&&!(2&c.__u);if(null===c&&null==a||s&&a==c.key&&u==c.type)return n;if(o>(s?1:0))for(r=n-1,i=n+1;r>=0||e.length>i;)if(null!=(c=e[l=0>r?i++:r--])&&!(2&c.__u)&&a==c.key&&u==c.type)return l;return-1}function I(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||g.test(e)?n:n+"px"}function O(t,e,n,o,r){var i,l;t:if("style"==e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||I(t.style,e,"");if(n)for(e in n)o&&n[e]==o[e]||I(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(s,"$1")),l=e.toLowerCase(),e=l in t||"onFocusOut"==e||"onFocusIn"==e?l.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?o?n[c]=o[c]:(n[c]=f,t.addEventListener(e,i?d:p,i)):t.removeEventListener(e,i?d:p,i);else{if("http://www.w3.org/2000/svg"==r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function E(t){return function(n){if(this.l){var o=this.l[n.type+t];if(null==n[u])n[u]=f++;else if(o[c]>n[u])return;return o(e.event?e.event(n):n)}}}function L(t,n,o,r,i,l,a,u,c,s){var f,p,d,h,m,g,w,q,S,j,$,_,C,A,M,I,O=n.type;if(void 0!==n.constructor)return null;128&o.__u&&(c=!!(32&o.__u),l=[u=n.__e=o.__e]),(f=e.__b)&&f(n);t:if("function"==typeof O){p=a.length;try{if(S=n.props,j=O.prototype&&O.prototype.render,$=(f=O.contextType)&&r[f.__c],_=f?$?$.props.value:f.__:r,o.__c?q=(d=n.__c=o.__c).__=d.__E:(j?n.__c=d=new O(S,_):(n.__c=d=new T(S,_),d.constructor=O,d.render=Z),$&&$.sub(d),d.state||(d.state={}),d.__n=r,h=d.__d=!0,d.__h=[],d._sb=[]),j&&null==d.__s&&(d.__s=d.state),j&&null!=O.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=y({},d.__s)),y(d.__s,O.getDerivedStateFromProps(S,d.__s))),m=d.props,g=d.state,d.__v=n,h)j&&null==O.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),j&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(j&&null==O.getDerivedStateFromProps&&S!==m&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(S,_),n.__v==o.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(S,d.__s,_)){n.__v!=o.__v&&(d.props=S,d.state=d.__s,d.__d=!1),n.__e=o.__e,n.__k=o.__k,n.__k.some(function(t){t&&(t.__=n)}),b.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&a.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(S,d.__s,_),j&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(m,g,w)})}if(d.context=_,d.props=S,d.__P=t,d.__e=!1,C=e.__r,A=0,j)d.state=d.__s,d.__d=!1,C&&C(n),f=d.render(d.props,d.state,d.context),b.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,C&&C(n),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&25>++A);d.state=d.__s,null!=d.getChildContext&&(r=y(y({},r),d.getChildContext())),j&&!h&&null!=d.getSnapshotBeforeUpdate&&(w=d.getSnapshotBeforeUpdate(m,g)),M=null!=f&&f.type===k&&null==f.key?N(f.props.children):f,u=z(t,v(M)?M:[M],n,o,r,i,l,a,u,c,s),d.base=n.__e,n.__u&=-161,d.__h.length&&a.push(d),q&&(d.__E=d.__=null)}catch(t){if(a.length=p,n.__v=null,c||null!=l)if(t.then){for(n.__u|=c?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;null!=l&&(l[l.indexOf(u)]=null),n.__e=u}else{if(null!=l)for(I=l.length;I--;)x(l[I]);D(n)}else n.__e=o.__e,!n.__k&&o.__k&&(n.__k=o.__k),t.then||D(n);e.__e(t,n,o)}}else null==l&&n.__v==o.__v?(n.__k=o.__k,n.__e=o.__e):u=n.__e=F(o.__e,n,o,r,i,l,a,c,s);return(f=e.diffed)&&f(n),128&n.__u?void 0:u}function D(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(D))}function R(t,n,o){for(var r=0;o.length>r;r++)P(o[r],o[++r],o[++r]);e.__c&&e.__c(n,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(t){t.call(n)})}catch(t){e.__e(t,n.__v)}})}function N(t){return"object"!=typeof t||null==t||t.__b>0?t:v(t)?t.map(N):void 0!==t.constructor?null:y({},t)}function F(n,o,r,i,l,a,u,c,s){var f,p,d,h,b,g,y,w=r.props||m,k=o.props,T=o.type;if("svg"==T?l="http://www.w3.org/2000/svg":"math"==T?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=a)for(f=0;a.length>f;f++)if((b=a[f])&&"setAttribute"in b==!!T&&(T?b.localName==T:3==b.nodeType)){n=b,a[f]=null;break}if(null==n){if(null==T)return document.createTextNode(k);n=document.createElementNS(l,T,k.is&&k),c&&(e.__m&&e.__m(o,a),c=!1),a=null}if(null==T)w===k||c&&n.data==k||(n.data=k);else{if(a="textarea"==T&&null!=k.defaultValue?null:a&&t.call(n.childNodes),!c&&null!=a)for(w={},f=0;n.attributes.length>f;f++)w[(b=n.attributes[f]).name]=b.value;for(f in w)b=w[f],"dangerouslySetInnerHTML"==f?d=b:"children"==f||f in k||"value"==f&&"defaultValue"in k||"checked"==f&&"defaultChecked"in k||O(n,f,null,b,l);for(f in k)b=k[f],"children"==f?h=b:"dangerouslySetInnerHTML"==f?p=b:"value"==f?g=b:"checked"==f?y=b:c&&"function"!=typeof b||w[f]===b||O(n,f,b,w[f],l);if(p)c||d&&(p.__html==d.__html||p.__html==n.innerHTML)||(n.innerHTML=p.__html),o.__k=[];else if(d&&(n.innerHTML=""),z("template"==o.type?n.content:n,v(h)?h:[h],o,r,i,"foreignObject"==T?"http://www.w3.org/1999/xhtml":l,a,u,a?a[0]:r.__k&&$(r,0),c,s),null!=a)for(f=a.length;f--;)x(a[f]);c&&"textarea"!=T||(f="value","progress"==T&&null==g?n.removeAttribute("value"):null!=g&&(g!==n[f]||"progress"==T&&!g||"option"==T&&g!=w[f])&&O(n,f,g,w[f],l),f="checked",null!=y&&y!=n[f]&&O(n,f,y,w[f],l))}return n}function P(t,n,o){try{if("function"==typeof t){var r="function"==typeof t.__u;r&&t.__u(),r&&null==n||(t.__u=t(n))}else t.current=n}catch(t){e.__e(t,o)}}function B(t,n,o){var r,i;if(e.unmount&&e.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||P(r,null,n)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){e.__e(t,n)}r.base=r.__P=r.__n=null}if(r=t.__k)for(i=0;r.length>i;i++)r[i]&&B(r[i],n,o||"function"!=typeof t.type);o||x(t.__e),t.__c=t.__=t.__e=void 0}function Z(t,e,n){return this.constructor(t,n)}t=b.slice,e={__e(t,e,n,o){for(var r,i,l;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(t)),l=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,o||{}),l=r.__d),l)return r.__E=r}catch(e){t=e}throw t}},n=0,T.prototype.setState=function(t,e){var n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=y({},this.state);"function"==typeof t&&(t=t(y({},n),this.props)),t&&y(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),j(this))},T.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),j(this))},T.prototype.render=k,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(t,e){return t.__v.__b-e.__v.__b},_.__r=0,a=Math.random().toString(8),u="__d"+a,c="__a"+a,s=/(PointerCapture)$|Capture$/i,f=0,p=E(!1),d=E(!0),h=0;const Q="u">typeof globalThis?globalThis:"u">typeof window?window:void 0,H=null==Q?void 0:Q.document;function U(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);e>n;n++)o[n]=t[n];return o}function Y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,l,a=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(u=(o=i.call(n)).done)&&(a.push(o.value),a.length!==e);u=!0);}catch(t){c=!0,r=t}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return U(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(t,e):void 0}}(t,e)||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.")}()}null!=Q&&Q.XMLHttpRequest&&new Q.XMLHttpRequest;const G=Object.entries,W=Object.setPrototypeOf,V=Object.isFrozen,K=Object.getPrototypeOf,X=Object.getOwnPropertyDescriptor;let J=Object.freeze,tt=Object.seal,et=Object.create,nt="undefined"!=typeof Reflect&&Reflect,ot=nt.apply,rt=nt.construct;J||(J=function(t){return t}),tt||(tt=function(t){return t}),ot||(ot=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;n>r;r++)o[r-2]=arguments[r];return t.apply(e,o)}),rt||(rt=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;e>o;o++)n[o-1]=arguments[o];return new t(...n)});const it=jt([].forEach),lt=jt([].lastIndexOf),at=jt([].pop),ut=jt([].push),ct=jt([].splice),st=Array.isArray,ft=jt("".toLowerCase),pt=jt("".toString),dt=jt("".match),ht=jt("".replace),mt=jt("".indexOf),bt=jt("".trim),gt=jt((0).toString),vt=jt(Boolean.prototype.toString),yt="undefined"==typeof BigInt?null:jt(BigInt.prototype.toString),xt="undefined"==typeof Symbol?null:jt(Symbol.prototype.toString),wt=jt({}.hasOwnProperty),kt=jt({}.toString),Tt=jt(/t/.test),qt=(St=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;t>n;n++)e[n]=arguments[n];return rt(St,e)});var St;function jt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;n>r;r++)o[r-1]=arguments[r];return ot(t,e,o)}}function _t(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ft;if(W&&W(t,null),!st(e))return t;let o=e.length;for(;o--;){let r=e[o];if("string"==typeof r){const t=n(r);t!==r&&(V(e)||(e[o]=t),r=t)}t[r]=!0}return t}function zt(t){for(let e=0;t.length>e;e++)wt(t,e)||(t[e]=null);return t}function Ct(t){const e=et(null);for(const o of G(t)){var n=Y(o,2);const r=n[0],i=n[1];wt(t,r)&&(e[r]=st(i)?zt(i):i&&"object"==typeof i&&i.constructor===Object?Ct(i):i)}return e}function At(t,e){for(;null!==t;){const n=X(t,e);if(n){if(n.get)return jt(n.get);if("function"==typeof n.value)return jt(n.value)}t=K(t)}return function(){return null}}const Mt=J(["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"]),It=J(["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"]),Ot=J(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Et=J(["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"]),Lt=J(["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"]),Dt=J(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$t=J(["#text"]),Rt=J(["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"]),Nt=J(["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"]),Ft=J(["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"]),Pt=J(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Bt=tt(/{{[\w\W]*|^[\w\W]*}}/g),Zt=tt(/<%[\w\W]*|^[\w\W]*%>/g),Qt=tt(/\${[\w\W]*/g),Ht=tt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ut=tt(/^aria-[\-\w]+$/),Yt=tt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gt=tt(/^(?:\w+script|data):/i),Wt=tt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vt=tt(/^html$/i),Kt=tt(/^[a-z][.\w]*(-[.\w]+)+$/i),Xt=tt(/<[/\w!]/g),Jt=tt(/<[/\w]/g),te=tt(/<\/no(script|embed|frames)/i),ee=tt(/\/>/i),ne=function(){return"undefined"==typeof window?null:window},oe=function(t,e,n,o){return wt(t,e)&&st(t[e])?_t(o.base?Ct(o.base):{},t[e],o.transform):n};var re=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne();const n=e=>t(e);if(n.version="3.4.13",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let o=e.document;const r=o,i=r.currentScript,l=e.HTMLTemplateElement,a=e.Node,u=e.NodeFilter,c=e.DOMParser,s=e.trustedTypes,f=e.Element.prototype,p=At(f,"cloneNode"),d=At(f,"remove"),h=At(f,"nextSibling"),m=At(f,"childNodes"),b=At(f,"parentNode"),g=At(f,"shadowRoot"),v=At(f,"attributes"),y=a&&a.prototype?At(a.prototype,"nodeType"):null,x=a&&a.prototype?At(a.prototype,"nodeName"):null,w=a&&a.prototype?At(a.prototype,"ownerDocument"):null;if("function"==typeof l){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let k,T,q="",S=!1,j=0;const _=function(){if(j>0)throw qt('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.')},z=function(t){_(),j++;try{return k.createHTML(t)}finally{j--}},C=o.implementation,A=o.createNodeIterator,M=o.createDocumentFragment,I=o.getElementsByTagName,O=r.importNode;let E={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof G&&"function"==typeof b&&C&&void 0!==C.createHTMLDocument;const L=Bt,D=Zt,R=Qt,N=Ht,F=Ut,P=Gt,B=Wt,Z=Kt;let Q=Yt,H=null;const U=_t({},[...Mt,...It,...Ot,...Lt,...$t]);let Y=null;const W=_t({},[...Rt,...Nt,...Ft,...Pt]);let V=Object.seal(et(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,X=null;const nt=Object.seal(et(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ot=!0,rt=!0,St=!1,jt=!0,zt=!1,re=!0,ie=!1,le=!1,ae=null,ue=null,ce=!1,se=!1,fe=!1,pe=!1,de=!0,he=!1;const me="user-content-";let be=!0,ge=!1,ve={},ye=null;const xe=_t({},["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"]);let we=null;const ke=_t({},["audio","video","img","source","image","track"]);let Te=null;const qe=_t({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Se="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",_e="http://www.w3.org/1999/xhtml";let ze=_e,Ce=!1,Ae=null;const Me=_t({},[Se,je,_e],pt),Ie=J(["mi","mo","mn","ms","mtext"]);let Oe=_t({},Ie);const Ee=J(["annotation-xml"]);let Le=_t({},Ee);const De=_t({},["title","style","font","a","script"]);let $e=null;const Re=["application/xhtml+xml","text/html"];let Ne=null,Fe=null;const Pe=o.createElement("form"),Be=function(t){return t instanceof RegExp||t instanceof Function},Ze=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Fe&&Fe===t)return;t&&"object"==typeof t||(t={}),t=Ct(t),$e=-1===Re.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Ne="application/xhtml+xml"===$e?pt:ft,H=oe(t,"ALLOWED_TAGS",U,{transform:Ne}),Y=oe(t,"ALLOWED_ATTR",W,{transform:Ne}),Ae=oe(t,"ALLOWED_NAMESPACES",Me,{transform:pt}),Te=oe(t,"ADD_URI_SAFE_ATTR",qe,{transform:Ne,base:qe}),we=oe(t,"ADD_DATA_URI_TAGS",ke,{transform:Ne,base:ke}),ye=oe(t,"FORBID_CONTENTS",xe,{transform:Ne}),K=oe(t,"FORBID_TAGS",Ct({}),{transform:Ne}),X=oe(t,"FORBID_ATTR",Ct({}),{transform:Ne}),ve=!!wt(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?Ct(t.USE_PROFILES):t.USE_PROFILES),ot=!1!==t.ALLOW_ARIA_ATTR,rt=!1!==t.ALLOW_DATA_ATTR,St=t.ALLOW_UNKNOWN_PROTOCOLS||!1,jt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,zt=t.SAFE_FOR_TEMPLATES||!1,re=!1!==t.SAFE_FOR_XML,ie=t.WHOLE_DOCUMENT||!1,se=t.RETURN_DOM||!1,fe=t.RETURN_DOM_FRAGMENT||!1,pe=t.RETURN_TRUSTED_TYPE||!1,ce=t.FORCE_BODY||!1,de=!1!==t.SANITIZE_DOM,he=t.SANITIZE_NAMED_PROPS||!1,be=!1!==t.KEEP_CONTENT,ge=t.IN_PLACE||!1,Q=function(t){try{return Tt(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:Yt,ze="string"==typeof t.NAMESPACE?t.NAMESPACE:_e,Oe=wt(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?Ct(t.MATHML_TEXT_INTEGRATION_POINTS):_t({},Ie),Le=wt(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?Ct(t.HTML_INTEGRATION_POINTS):_t({},Ee);const e=wt(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?Ct(t.CUSTOM_ELEMENT_HANDLING):et(null);if(V=et(null),wt(e,"tagNameCheck")&&Be(e.tagNameCheck)&&(V.tagNameCheck=e.tagNameCheck),wt(e,"attributeNameCheck")&&Be(e.attributeNameCheck)&&(V.attributeNameCheck=e.attributeNameCheck),wt(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),tt(V),zt&&(rt=!1),fe&&(se=!0),ve&&(H=_t({},$t),Y=et(null),!0===ve.html&&(_t(H,Mt),_t(Y,Rt)),!0===ve.svg&&(_t(H,It),_t(Y,Nt),_t(Y,Pt)),!0===ve.svgFilters&&(_t(H,Ot),_t(Y,Nt),_t(Y,Pt)),!0===ve.mathMl&&(_t(H,Lt),_t(Y,Ft),_t(Y,Pt))),nt.tagCheck=null,nt.attributeCheck=null,wt(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?nt.tagCheck=t.ADD_TAGS:st(t.ADD_TAGS)&&(H===U&&(H=Ct(H)),_t(H,t.ADD_TAGS,Ne))),wt(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?nt.attributeCheck=t.ADD_ATTR:st(t.ADD_ATTR)&&(Y===W&&(Y=Ct(Y)),_t(Y,t.ADD_ATTR,Ne))),wt(t,"ADD_URI_SAFE_ATTR")&&st(t.ADD_URI_SAFE_ATTR)&&_t(Te,t.ADD_URI_SAFE_ATTR,Ne),wt(t,"FORBID_CONTENTS")&&st(t.FORBID_CONTENTS)&&(ye===xe&&(ye=Ct(ye)),_t(ye,t.FORBID_CONTENTS,Ne)),wt(t,"ADD_FORBID_CONTENTS")&&st(t.ADD_FORBID_CONTENTS)&&(ye===xe&&(ye=Ct(ye)),_t(ye,t.ADD_FORBID_CONTENTS,Ne)),be&&(H["#text"]=!0),ie&&_t(H,["html","head","body"]),H.table&&(_t(H,["tbody"]),delete K.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw qt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw qt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=k;k=t.TRUSTED_TYPES_POLICY;try{q=z("")}catch(t){throw k=e,t}}else null===t.TRUSTED_TYPES_POLICY?(k=void 0,q=""):(void 0===k&&(S||(T=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(s,i),S=!0),k=T),k&&"string"==typeof q&&(q=z("")));J&&J(t),Fe=t},Qe=_t({},[...It,...Ot,...Et]),He=_t({},[...Lt,...Dt]),Ue=function(t){ut(n.removed,{element:t});try{b(t).removeChild(t)}catch(e){if(d(t),!b(t))throw qt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ye=function(t){Ve(t);const e=m(t);if(e){const t=[];it(e,e=>{ut(t,e)}),it(t,t=>{try{d(t)}catch(t){}})}const n=v(t);if(n)for(let e=n.length-1;e>=0;--e){const o=n[e],r=o&&o.name;if("string"==typeof r)try{t.removeAttribute(r)}catch(t){}}},Ge=function(t,e){try{ut(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){ut(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(se||fe)try{Ue(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},We=function(t){const e=v(t);if(e)for(let n=e.length-1;n>=0;--n){const o=e[n],r=o&&o.name;if("string"==typeof r&&!Y[Ne(r)])try{t.removeAttribute(r)}catch(t){}}},Ve=function(t){const e=[t];for(;e.length>0;){const t=e.pop();1===(y?y(t):t.nodeType)&&We(t);const n=m(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},Ke=function(t){let e=null,n=null;if(ce)t="<remove></remove>"+t;else{const e=dt(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===$e&&ze===_e&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=k?z(t):t;if(ze===_e)try{e=(new c).parseFromString(r,$e)}catch(t){}if(!e||!e.documentElement){e=C.createDocument(ze,"template",null);try{e.documentElement.innerHTML=Ce?q:r}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),ze===_e?I.call(e,ie?"html":"body")[0]:ie?e.documentElement:i},Xe=function(t){const e=w?w(t):t.ownerDocument;return A.call(e||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Je=function(t){return t=ht(t,L," "),t=ht(t,D," "),ht(t,R," ")},tn=function(t){var e;t.normalize();const n=w?w(t):t.ownerDocument,o=A.call(n||t,t,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let r=o.nextNode();for(;r;)r.data=Je(r.data),r=o.nextNode();const i=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");i&&it(i,t=>{nn(t.content)&&tn(t.content)})},en=function(t){const e=x?x(t):null;return"string"==typeof e&&"form"===Ne(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==v(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==y(t)||t.childNodes!==m(t))},nn=function(t){if(!y||"object"!=typeof t||null===t)return!1;try{return 11===y(t)}catch(t){return!1}},on=function(t){if(!y||"object"!=typeof t||null===t)return!1;try{return"number"==typeof y(t)}catch(t){return!1}};function rn(t,e,o){0!==t.length&&it(t,t=>{t.call(n,e,o,Fe)})}const ln=function(t,e,n,o){return 0===t.length?e:e===n||e===o?Ct(e):e},an=function(t,e){if(rn(E.beforeSanitizeElements,t,null),t!==e&&null===b(t))return ge&&Ve(t),!0;if(en(t))return Ue(t),!0;const o=Ne(x?x(t):t.nodeName);if(H=ln(E.uponSanitizeElement,H,U,ae),rn(E.uponSanitizeElement,t,{tagName:o,allowedTags:H}),t!==e&&null===b(t))return ge&&Ve(t),!0;if(function(t,e){return!!(re&&t.hasChildNodes()&&!on(t.firstElementChild)&&Tt(Xt,t.textContent)&&Tt(Xt,t.innerHTML))||!(!re||t.namespaceURI!==_e||"style"!==e||!on(t.firstElementChild))||7===t.nodeType||!(!re||8!==t.nodeType||!Tt(Jt,t.data))}(t,o))return Ue(t),!0;if(K[o]||!(nt.tagCheck instanceof Function&&nt.tagCheck(o))&&!H[o]){const n=function(t,e,n){if(!K[e]&&sn(e)){if(V.tagNameCheck instanceof RegExp&&Tt(V.tagNameCheck,e))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(e))return!1}if(be&&!ye[e]){const e=b(t),o=m(t);if(o&&e)for(let r=o.length-1;r>=0;--r){const i=t===n?p(o[r],!0):o[r];e.insertBefore(i,h(t))}}return Ue(t),!0}(t,o,e);return!1===n&&rn(E.afterSanitizeElements,t,null),n}if(1===(y?y(t):t.nodeType)&&!function(t){let e=b(t);e&&e.tagName||(e={namespaceURI:ze,tagName:"template"});const n=ft(t.tagName),o=ft(e.tagName);return!!Ae[t.namespaceURI]&&(t.namespaceURI===je?function(t,e,n){return e.namespaceURI===_e?"svg"===t:e.namespaceURI===Se?"svg"===t&&("annotation-xml"===n||Oe[n]):Boolean(Qe[t])}(n,e,o):t.namespaceURI===Se?function(t,e,n){return e.namespaceURI===_e?"math"===t:e.namespaceURI===je?"math"===t&&Le[n]:Boolean(He[t])}(n,e,o):t.namespaceURI===_e?function(t,e,n){return!(e.namespaceURI===je&&!Le[n])&&!(e.namespaceURI===Se&&!Oe[n])&&!He[t]&&(De[t]||!Qe[t])}(n,e,o):!("application/xhtml+xml"!==$e||!Ae[t.namespaceURI]))}(t))return Ue(t),!0;if(("noscript"===o||"noembed"===o||"noframes"===o)&&Tt(te,t.innerHTML))return Ue(t),!0;if(zt&&3===t.nodeType){const e=Je(t.textContent);t.textContent!==e&&(ut(n.removed,{element:t.cloneNode()}),t.textContent=e)}return rn(E.afterSanitizeElements,t,null),!1},un=function(t,e,n){if(X[e])return!1;if(re&&"patchsrc"===e)return!1;if(re&&"for"===e&&"label"!==t&&"output"!==t)return!1;if(de&&("id"===e||"name"===e)&&(n in o||n in Pe))return!1;const r=Y[e]||nt.attributeCheck instanceof Function&&nt.attributeCheck(e,t);if(rt&&Tt(N,e));else if(ot&&Tt(F,e));else if(r){if(Te[e]);else if(Tt(Q,ht(n,B,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==mt(n,"data:")||!we[t])if(St&&!Tt(P,ht(n,B,"")));else if(n)return!1}else if(!(sn(t)&&(V.tagNameCheck instanceof RegExp&&Tt(V.tagNameCheck,t)||V.tagNameCheck instanceof Function&&V.tagNameCheck(t))&&(V.attributeNameCheck instanceof RegExp&&Tt(V.attributeNameCheck,e)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(e,t))||"is"===e&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&Tt(V.tagNameCheck,n)||V.tagNameCheck instanceof Function&&V.tagNameCheck(n))))return!1;return!0},cn=_t({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),sn=function(t){return!cn[ft(t)]&&Tt(Z,t)},fn=function(t,e,n,o){if(k&&"object"==typeof s&&"function"==typeof s.getAttributeType&&!n)switch(s.getAttributeType(t,e)){case"TrustedHTML":return z(o);case"TrustedScriptURL":return function(t){_(),j++;try{return k.createScriptURL(t)}finally{j--}}(o)}return o},pn=function(t,e,o,r){try{o?t.setAttributeNS(o,e,r):t.setAttribute(e,r),en(t)?Ue(t):at(n.removed)}catch(n){Ge(e,t)}},dn=function(t){rn(E.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||en(t))return;Y=ln(E.uponSanitizeAttribute,Y,W,ue);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let o=e.length;const r=Ne(t.nodeName);for(;o--;){const i=e[o],l=i.name,a=i.namespaceURI,u=i.value,c=Ne(l),s=u;let f="value"===l?s:bt(s);n.attrName=c,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,rn(E.uponSanitizeAttribute,t,n),f=n.attrValue,!he||"id"!==c&&"name"!==c||0===mt(f,me)||(Ge(l,t),f=me+f),re&&Tt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)||"attributename"===c&&dt(f,"href")?Ge(l,t):n.forceKeepAttr||(!n.keepAttr||!jt&&Tt(ee,f)?Ge(l,t):(zt&&(f=Je(f)),un(r,c,f)?(f=fn(r,c,a,f),f!==s&&pn(t,l,a,f)):Ge(l,t)))}rn(E.afterSanitizeAttributes,t,null)},hn=function(t){let e=null;const n=Xe(t);for(rn(E.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(rn(E.uponSanitizeShadowNode,e,null),an(e,t),dn(e),nn(e.content)&&hn(e.content),1===(y?y(e):e.nodeType)){const t=g(e);nn(t)&&(mn(t),hn(t))}rn(E.afterSanitizeShadowDOM,t,null)},mn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){hn(t.shadow);continue}const n=t.node,o=1===(y?y(n):n.nodeType),r=m(n);if(r)for(let t=r.length-1;t>=0;--t)e.push({node:r[t],shadow:null});if(o){const t=x?x(n):null;if("string"==typeof t&&"template"===Ne(t)){const t=n.content;nn(t)&&e.push({node:t,shadow:null})}}if(o){const t=g(n);nn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,l=null,a=null;if(Ce=!t,Ce&&(t="\x3c!--\x3e"),"string"!=typeof t&&!on(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return gt(t);case"boolean":return vt(t);case"bigint":return yt?yt(t):"0";case"symbol":return xt?xt(t):"Symbol()";case"undefined":default:return kt(t);case"function":case"object":{if(null===t)return kt(t);const e=t,n=At(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:kt(t)}return kt(t)}}}(t)))throw qt("dirty is not a string, aborting");if(!n.isSupported)return t;le?(H=ae,Y=ue):Ze(e),(E.uponSanitizeElement.length>0||E.uponSanitizeAttribute.length>0)&&(H=Ct(H)),E.uponSanitizeAttribute.length>0&&(Y=Ct(Y)),n.removed=[];const u=ge&&"string"!=typeof t&&on(t);if(u){!function(t){if(!re)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=y?y(t):t.nodeType;if(7===n||8===n&&Tt(Jt,t.data)){try{d(t)}catch(t){}continue}if(1===n){const e=t,n=Ne(x?x(t):t.nodeName);try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&"label"!==n&&"output"!==n&&e.removeAttribute("for")}catch(t){}}const o=m(t);if(o)for(let t=o.length-1;t>=0;--t)e.push(o[t])}}(t);const e=x?x(t):t.nodeName;if("string"==typeof e){const n=Ne(e);if(!H[n]||K[n])throw Ye(t),qt("root node is forbidden and cannot be sanitized in-place")}if(en(t))throw Ye(t),qt("root node is clobbered and cannot be sanitized in-place");try{mn(t)}catch(e){throw Ye(t),e}}else if(on(t))o=Ke("\x3c!----\x3e"),i=o.ownerDocument.importNode(t,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i),mn(i);else{if(!se&&!zt&&!ie&&-1===t.indexOf("<"))return k&&pe?z(t):t;if(o=Ke(t),!o)return se?null:pe?q:""}o&&ce&&Ue(o.firstChild);const c=u?t:o;try{const t=Xe(c);for(;l=t.nextNode();)an(l,c),dn(l),nn(l.content)&&hn(l.content)}catch(e){throw u&&(Ye(t),it(n.removed,t=>{t.element&&Ve(t.element)})),e}if(u)return it(n.removed,t=>{t.element&&Ve(t.element)}),zt&&tn(t),t;if(se){if(zt&&tn(o),fe)for(a=M.call(o.ownerDocument);o.firstChild;)a.appendChild(o.firstChild);else a=o;return(Y.shadowroot||Y.shadowrootmode)&&(a=O.call(r,a,!0)),a}let s=ie?o.outerHTML:o.innerHTML;return ie&&H["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&Tt(Vt,o.ownerDocument.doctype.name)&&(s="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+s),zt&&(s=Je(s)),k&&pe?z(s):s},n.setConfig=function(){Ze(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),le=!0,ae=H,ue=Y},n.clearConfig=function(){Fe=null,le=!1,ae=null,ue=null,k=T,q=""},n.isValidAttribute=function(t,e,n){Fe||Ze({});const o=Ne(t),r=Ne(e);return un(o,r,n)},n.addHook=function(t,e){"function"==typeof e&&wt(E,t)&&ut(E[t],e)},n.removeHook=function(t,e){if(wt(E,t)){if(void 0!==e){const n=lt(E[t],e);return-1===n?void 0:ct(E[t],n,1)[0]}return at(E[t])}},n.removeHooks=function(t){wt(E,t)&&(E[t]=[])},n.removeAllHooks=function(){E={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const ie={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},le=(t,e,n)=>{function o(o,...r){e(()=>{(0,n[o])(t,...r)})}return{debug(...t){o("debug",...t)},info(...t){o("log",...t)},warn(...t){o("warn",...t)},error(...t){o("error",...t)},critical(...e){n.error(t,...e)},createLogger:o=>le(`${t} ${o}`,e,n)}},ae=t=>t();function ue(t){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ue(t)}function ce(t,e,n){return(e=function(t){var e=function(t){if("object"!=ue(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ue(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function se(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function fe(t){for(var e=1;arguments.length>e;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?se(Object(n),!0).forEach(function(e){ce(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}!function(t,e=ae){le("[Element Inference]",e,function(t=console){return{log:t.log.bind(t),warn:t.warn.bind(t),error:t.error.bind(t),debug:t.debug.bind(t)}}())}();const pe=(t,{debugEnabled:e}={})=>{const n={N(n,...o){let r;try{r=typeof window>"u"?void 0:window}catch(t){return}r&&(r.POSTHOG_DEBUG||e)&&!(t=>void 0===t)(r.console)&&r.console&&("__rrweb_original__"in r.console[n]?r.console[n].__rrweb_original__:r.console[n])(t,...o)},debug(...t){n.N("debug",...t)},info(...t){n.N("log",...t)},warn(...t){n.N("warn",...t)},error(...t){n.N("error",...t)},critical(...e){console.error(t,...e)},uninitializedWarning(t){n.error(`You must initialize PostHog before calling ${t}`)},createLogger:(e,n)=>pe(`${t} ${e}`,n)};return n},de=pe("[PostHog.js]").createLogger,he=de("[Stylesheet Loader]");var me,be,ge,ve,ye=0,xe=[],we=e,ke=we.__b,Te=we.__r,qe=we.diffed,Se=we.__c,je=we.unmount,_e=we.__;function ze(t,e){we.__h&&we.__h(be,t,ye||e),ye=0;var n=be.__H||(be.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function Ce(t){return ye=1,function(t,e){var n=ze(me++,2);if(n.t=t,!n.__c&&(n.__=[De(void 0,e),function(t){var e=n.__N?n.__N[0]:n.__[0],o=n.t(e,t);e!==o&&(n.__N=[o,n.__[1]],n.__c.setState({}))}],n.__c=be,!be.__f)){var o=function(t,e,o){if(!n.__c.__H)return!0;var i=!1,l=n.__c.props!==t;if(n.__c.__H.__.some(function(t){if(t.__N){i=!0;var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(l=!0)}}),r){var a=r.call(this,t,e,o);return i?a||l:a}return!i||l};be.__f=!0;var r=be.shouldComponentUpdate,i=be.componentWillUpdate;be.componentWillUpdate=function(t,e,n){if(this.__e){var l=r;r=void 0,o(t,e,n),r=l}i&&i.call(this,t,e,n)},be.shouldComponentUpdate=o}return n.__N||n.__}(De,t)}function Ae(){for(var t;t=xe.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(Oe),e.__h.some(Ee),e.__h=[]}catch(n){e.__h=[],we.__e(n,t.__v)}}}we.__b=function(t){be=null,ke&&ke(t)},we.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),_e&&_e(t,e)},we.__r=function(t){Te&&Te(t),me=0;var e=(be=t.__c).__H;e&&(ge===be?(e.__h=[],be.__h=[],e.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.length&&Ae(),me=0)),ge=be},we.diffed=function(t){qe&&qe(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==xe.push(e)&&ve===we.requestAnimationFrame||((ve=we.requestAnimationFrame)||Ie)(Ae)),e.__H.__.some(function(t){t.u&&(t.__H=t.u,t.u=void 0)})),ge=be=null},we.__c=function(t,e){e.some(function(t){try{t.__h.some(Oe),t.__h=t.__h.filter(function(t){return!t.__||Ee(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],we.__e(n,t.__v)}}),Se&&Se(t,e)},we.unmount=function(t){je&&je(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.some(function(t){try{Oe(t)}catch(t){e=t}}),n.__H=void 0,e&&we.__e(e,n.__v))};var Me="function"==typeof requestAnimationFrame;function Ie(t){var e,n=function(){clearTimeout(o),Me&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,35);Me&&(e=requestAnimationFrame(n))}function Oe(t){var e=be,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),be=e}function Ee(t){var e=be;t.__c=t.__(),be=e}function Le(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}function De(t,e){return"function"==typeof e?e(t):e}const $e="#020617";function Re(t){if(t.startsWith("#")){let e=t.replace(/^#/,"");return/^[0-9A-Fa-f]{3}$/.test(e)&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),/^[0-9A-Fa-f]{6}$/.test(e)?`rgb(${parseInt(e.slice(0,2),16)},${parseInt(e.slice(2,4),16)},${parseInt(e.slice(4,6),16)})`:"rgb(255, 255, 255)"}return"rgb(255, 255, 255)"}function Ne(t="#eeeded"){let e;"#"===t[0]&&(e=Re(t)),t.startsWith("rgb")&&(e=t);const n={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(n&&(e=Re(n)),!e)return $e;const o=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(o){const t=parseInt(o[1]),e=parseInt(o[2]),n=parseInt(o[3]);return Math.sqrt(t*t*.299+e*e*.587+n*n*.114)>127.5?$e:"white"}return $e}String(2147483645),function(t){function e(t){var n,o;return this.getChildContext||(n=new Set,(o={})[e.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&n.forEach(function(t){t.__e=!0,j(t)})},this.sub=function(t){n.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.delete(t),e&&e.call(t)}}),t.children}e.__c="__cC"+h++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed(){},isPopup:!0,onPreviewSubmit(){},onPreviewBack(){},surveySubmissionId:"",properties:void 0,surveyLanguage:null}),de("[Product Tours]");const Fe=H;function Pe(t){return t.useManualSelector?!!t.selector:!!t.inferenceData}function Be(t){var e;if(!t)return"";if("string"==typeof t)return Ze(t);if("text"===t.type){let e=Ze(t.text||"");if(t.marks)for(const 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}const n=(null===(e=t.content)||void 0===e?void 0:e.map(Be).join(""))||"";switch(t.type){case"doc":default:return n;case"paragraph":return`<p>${n}</p>`;case"heading":{var o;const e=(null===(o=t.attrs)||void 0===o?void 0:o.level)||1;return`<h${e}>${n}</h${e}>`}case"bulletList":return`<ul>${n}</ul>`;case"orderedList":return`<ol>${n}</ol>`;case"listItem":return`<li>${n}</li>`;case"hardBreak":return"<br>"}}function Ze(t){const e=Fe.createElement("div");return e.textContent=t,e.innerHTML}function Qe(t){const e=t.contentHtml||Be(t.content);return re.sanitize(e,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]})}var He=0;function Ue(t,n,o,r,i,l){n||(n={});var a,u,c=n;if("ref"in c)for(u in c={},n)"ref"==u?a=n[u]:c[u]=n[u];var s={type:t,props:c,key:o,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--He,__i:-1,__u:0,__source:i,__self:l};if("function"==typeof t&&(a=t.defaultProps))for(u in a)void 0===c[u]&&(c[u]=a[u]);return e.vnode&&e.vnode(s),s}const Ye=Ue("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ue("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"})}),Ge=Ue("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ue("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"})}),We=Ue("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ue("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"})}),Ve=Ue("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ue("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"})}),Ke=Ue("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ue("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"})}),Xe=({fill:t="currentColor"}={})=>Ue("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:t,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title-adam",children:[Ue("title",{id:"close-survey-title",className:"adam-testing",children:"Close survey"}),Ue("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:t})]}),Je=Ue("svg",{width:"80",height:"14",viewBox:"0 0 160 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ue("g",{"clip-path":"url(#ph-survey-logo-clip)",children:[Ue("path",{fill:"currentColor",d:"m50 23.34-.35-.05A4.5 4.5 0 0 1 47 21.97L35.56 10.1c-.3-.33-.86-.1-.86.35V27.5c0 .27.22.5.5.5h13.78c1.48 0 2.67-1.2 2.67-2.67v-.1a1.9 1.9 0 0 0-1.67-1.89zm-10.81.2a1.8 1.8 0 1 1 0-3.58 1.8 1.8 0 0 1 0 3.58"}),Ue("path",{fill:"#0054ff",d:"M.87 19.13a.5.5 0 0 0-.87.34v5.94a2.6 2.6 0 0 0 2.59 2.58H7.8a.5.5 0 0 0 .37-.84zM.86 8.4c-.3-.32-.86-.1-.86.36v6.73q0 .2.13.34l8.81 9.68 1.8 2.06v-8.82zM4.59.82A2.67 2.67 0 0 0 0 2.68v1.93q0 .4.27.69l10.47 10.95v-9.1z"}),Ue("path",{fill:"#ff5506",d:"M11.36 28h7.08a.5.5 0 0 0 .36-.85l-8.05-8.4v8.8l.23.28q.16.17.38.17m-.61-11.76 8.84 9.25 2.1 2.33q.1.11.27.14V18.7L10.75 7.15zm0-13.7v1.41a2 2 0 0 0 .55 1.28L21.96 16.2V7.65L15.32.8a2.67 2.67 0 0 0-4.57 1.71z"}),Ue("path",{fill:"#ffb70f",d:"M22.06 28h7.76a.5.5 0 0 0 .36-.86l-8.22-8.45v9.27l.09.02zM31 25.49l1.13 1.14c.32.31.85.09.85-.35v-7.3l-.49-.51L21.96 7.64v8.55zM22.52 5.73l9.62 9.89c.3.32.86.1.86-.35V7.46L26.56.82a2.67 2.67 0 0 0-4.59 1.84v1.7c0 .51.2 1 .57 1.37z"})]}),Ue("path",{fill:"currentColor",d:"M64.9 22.88c-.67 0-1.23-.56-1.23-1.24V5.24c0-.69.56-1.24 1.24-1.24h6.55c3.89 0 6.39 2.32 6.39 5.9 0 3.6-2.5 5.91-6.4 5.91h-3.53v5.83c0 .68-.56 1.24-1.24 1.24zm3.02-11.94c0 .68.55 1.23 1.23 1.23h1.88c1.6 0 2.58-.86 2.58-2.26s-.97-2.27-2.58-2.27h-1.88c-.68 0-1.23.55-1.23 1.23zM84.71 23.1c-4.18 0-7.14-2.97-7.14-7.02s2.96-7.01 7.14-7.01c4.14 0 7.14 2.97 7.14 7.01 0 4.05-3 7.01-7.14 7.01m-3.22-7.02c0 2.16 1.3 3.64 3.22 3.64 1.9 0 3.2-1.48 3.2-3.64s-1.3-3.64-3.2-3.64c-1.93 0-3.22 1.48-3.22 3.64m16.34 7.03a6.2 6.2 0 0 1-5.54-3.01c-.34-.57-.01-1.26.6-1.5l.77-.3c.7-.27 1.45.15 1.92.73a2.8 2.8 0 0 0 2.25 1.08c1.05 0 1.75-.51 1.75-1.27 0-2.13-7.17-.7-7.17-5.85 0-2.13 1.85-3.91 4.83-3.91 2.27 0 4.2.9 5.17 2.31.36.53.05 1.2-.54 1.44l-.85.35c-.68.29-1.45-.14-2-.63a2.5 2.5 0 0 0-1.64-.64c-.89 0-1.5.38-1.5.97 0 2.16 7.27.38 7.27 5.88 0 2.35-2.15 4.34-5.32 4.34m14.64-1.31c.04.57-.3 1.1-.86 1.2q-.6.1-1.27.11c-2.92 0-5.15-1.56-5.15-4.85v-5.66h-.91c-.69 0-1.24-.56-1.24-1.24v-.82c0-.68.55-1.23 1.24-1.23h.91v-2.7c0-.69.55-1.24 1.23-1.24h1.48c.68 0 1.24.55 1.24 1.23v2.7h2.04c.68 0 1.23.56 1.23 1.24v.82c0 .68-.55 1.24-1.23 1.24h-2.04v5.15c0 1.2.64 1.91 1.6 1.91.75 0 1.6.5 1.66 1.25zM125.5 5.23c0-.68.55-1.23 1.23-1.23h1.8c.68 0 1.23.55 1.23 1.23v16.41c0 .68-.55 1.24-1.23 1.24h-1.8c-.68 0-1.23-.56-1.23-1.24v-5.43c0-.68-.56-1.23-1.24-1.23h-5c-.67 0-1.23.55-1.23 1.23v5.43c0 .68-.55 1.24-1.23 1.24h-1.77c-.69 0-1.24-.56-1.24-1.24V5.24c0-.69.55-1.24 1.24-1.24h1.77c.68 0 1.23.55 1.23 1.23v4.87c0 .68.56 1.23 1.24 1.23h5c.67 0 1.23-.55 1.23-1.23zm12.87 17.87c-4.19 0-7.14-2.97-7.14-7.02s2.95-7.01 7.14-7.01c4.13 0 7.14 2.97 7.14 7.01 0 4.05-3 7.01-7.14 7.01m-3.22-7.02c0 2.16 1.29 3.64 3.22 3.64 1.9 0 3.2-1.48 3.2-3.64s-1.3-3.64-3.2-3.64c-1.93 0-3.22 1.48-3.22 3.64m17.17 6.37c-3.84 0-6.2-2.58-6.2-6.68s2.36-6.69 6.12-6.69c1.58 0 2.82.54 3.54 1.37 0-.64.52-1.15 1.16-1.15h1.5c.68 0 1.24.55 1.24 1.23V21.9c0 3.64-2.77 6.09-6.93 6.09-2.64 0-4.9-1.2-5.85-3.09-.31-.62.16-1.29.85-1.4l1.14-.17c.67-.11 1.29.4 1.78.85.5.46 1.26.7 2.08.7 1.85 0 3.06-1.04 3.06-2.55v-1.3c-.7.9-2.01 1.4-3.49 1.4m-2.36-6.68c0 2.02 1.18 3.31 3 3.31 1.86 0 3.04-1.29 3.04-3.31s-1.18-3.32-3.03-3.32c-1.83 0-3.01 1.3-3.01 3.32"}),Ue("defs",{children:Ue("clipPath",{id:"ph-survey-logo-clip",children:Ue("path",{fill:"#fff",d:"M0 0h51.67v28H0z"})})})]});function tn({class:t,href:e,onClick:n,children:o}){return Ue("a",{class:t,href:e,target:"_blank",rel:"noopener noreferrer",onClick:n,children:o})}function en({class:t,onClick:e,children:n}){return Ue("div",{class:t,role:"button",tabIndex:0,onClick:e,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e())},style:{cursor:"pointer"},children:n})}function nn({class:t,children:e}){return Ue("div",{class:t,children:e})}function on(t){return Ue("div",{class:"ph-tour-banner-wrapper",children:Ue("div",{class:"ph-tour-banner-slide",children:Ue(rn,fe({},t))})})}function rn({step:t,onDismiss:e,onActionClick:n,displayFrequency:o}){var r;const i=null!==(r=t.bannerConfig)&&void 0!==r?r:{behavior:"sticky"},l=i.action,a="always"!==o,u=["ph-tour-banner","sticky"===i.behavior&&"ph-tour-banner--sticky","custom"===i.behavior&&"ph-tour-banner--custom"].filter(Boolean).join(" "),c=Ue(k,{children:[Ue("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:Qe(t)}}),a&&Ue("button",{class:"ph-tour-banner-dismiss",onClick(t){t.stopPropagation(),t.preventDefault(),e()},"aria-label":"Close banner",children:Xe()})]});return"link"===(null==l?void 0:l.type)&&l.link?Ue(tn,{class:u,href:l.link,onClick:n,children:c}):"trigger_tour"===(null==l?void 0:l.type)&&n?Ue(en,{class:u,onClick:n,children:c}):Ue(nn,{class:u,children:c})}const ln=[We,Ge,Ye],an=[Ve,We,Ge,Ye,Ke];function un({value:t,onChange:e,onSubmit:n,isInteractive:o}){const r=function(t){return ye=5,function(t,e){var n=ze(me++,7);return Le(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}(function(){return{current:t}},[])}(null);return function(t,e){var n=ze(me++,3);!we.__s&&Le(n.__H,e)&&(n.__=()=>{o&&setTimeout(()=>{var t;return null===(t=r.current)||void 0===t?void 0:t.focus()},100)},n.u=e,be.__H.__h.push(n))}(0,[o]),Ue("textarea",{ref:r,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:t,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 cn({survey:t,onSubmit:e,isInteractive:n}){const[o,r]=Ce(null),i=t.scale||5,l=t=>{n&&(r(t),null==e||e(t))};if("emoji"===(t.display||"emoji"))return Ue("div",{class:"ph-tour-survey-rating-container",children:[Ue("div",{class:"ph-tour-survey-rating-emoji",children:(3===i?ln:an).map((t,e)=>{const r=e+1;return Ue("button",{type:"button",class:"ph-tour-survey-emoji-button "+(o===r?"ph-tour-survey-emoji-button--active":""),onClick:()=>l(r),style:n?void 0:{cursor:"default"},"aria-label":`Rate ${r}`,children:t},e)})}),(t.lowerBoundLabel||t.upperBoundLabel)&&Ue("div",{class:"ph-tour-survey-rating-labels",children:[Ue("span",{children:t.lowerBoundLabel}),Ue("span",{children:t.upperBoundLabel})]})]});const a=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]}}(i);return Ue("div",{class:"ph-tour-survey-rating-container",children:[Ue("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:`repeat(${a.length}, minmax(0, 1fr))`},children:a.map(t=>Ue("button",{type:"button",class:"ph-tour-survey-number-button "+(o===t?"ph-tour-survey-number-button--active":""),onClick:()=>l(t),style:n?void 0:{cursor:"default"},"aria-label":`Rate ${t}`,children:t},t))}),(t.lowerBoundLabel||t.upperBoundLabel)&&Ue("div",{class:"ph-tour-survey-rating-labels",children:[Ue("span",{children:t.lowerBoundLabel}),Ue("span",{children:t.upperBoundLabel})]})]})}function sn({step:t,appearance:e,stepIndex:n,totalSteps:o,onPrevious:r,onSubmit:i,onDismiss:l}){var a;const[u,c]=Ce(""),s=t.survey,f=null!==(a=null==e?void 0:e.whiteLabel)&&void 0!==a&&a,p=0===n,d="open"===(null==s?void 0:s.type),h=!!(r||i||l),m=h?void 0:{cursor:"default"},b=()=>{null==i||i(u.trim()||null)};return s?Ue(k,{children:[Ue("button",{class:"ph-tour-dismiss",onClick:l,"aria-label":"Close survey",style:m,children:Xe()}),Ue("div",{class:"ph-tour-survey-question",children:s.questionText}),d?Ue(un,{value:u,onChange:c,onSubmit:b,isInteractive:h}):Ue(cn,{survey:s,onSubmit:i,isInteractive:h}),Ue("div",{class:"ph-tour-footer",children:[Ue("span",{class:"ph-tour-progress",children:[n+1," of ",o]}),Ue("div",{class:"ph-tour-buttons",children:[!p&&Ue("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:r,style:m,children:s.backButtonText||"Back"}),d&&Ue("button",{class:"ph-tour-button ph-tour-button--primary",onClick:b,style:m,children:s.submitButtonText||"Submit"})]})]}),!f&&Ue("a",{href:h?"https://posthog.com/product-tours":void 0,target:h?"_blank":void 0,rel:h?"noopener noreferrer":void 0,class:"ph-tour-branding",style:h?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",Je]})]}):Ue("div",{})}function fn({button:t,variant:e,onClick:n,cursorStyle:o}){const r=`ph-tour-button ph-tour-button--${e}`;return"link"===t.action&&t.link?Ue("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",class:r,onClick:()=>n(t),children:t.text}):Ue("button",{class:r,onClick:()=>n(t),style:o,children:t.text})}function pn({step:t,appearance:e,stepIndex:n,totalSteps:o,onNext:r,onPrevious:i,onDismiss:l,onButtonClick:a}){var u,c,s;const f=null!==(u=null==e?void 0:e.whiteLabel)&&void 0!==u&&u,p=n>=o-1,d=0===n,h=!(t.buttons||"button"!==t.progressionTrigger&&Pe(t)),m=!!t.buttons,b=!!(r||i||l||a),g=b?void 0:{cursor:"default"},v=!f&&d,y=t=>{a&&a(t)};return Ue(k,{children:[Ue("button",{class:"ph-tour-dismiss",onClick:l,"aria-label":"Close tour",style:g,children:Xe()}),Ue("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:Qe(t)}}),Ue("div",{class:"ph-tour-footer",children:[o>1&&Ue("span",{class:"ph-tour-progress",children:[n+1," of ",o]}),Ue("div",{class:"ph-tour-buttons",children:[h&&Ue(k,{children:[!d&&Ue("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:i,style:g,children:"Back"}),Ue("button",{class:"ph-tour-button ph-tour-button--primary",onClick:r,style:g,children:p?"Done":"Next"})]}),m&&Ue(k,{children:[(null===(c=t.buttons)||void 0===c?void 0:c.secondary)&&Ue(fn,{button:t.buttons.secondary,variant:"secondary",onClick:y,cursorStyle:g}),(null===(s=t.buttons)||void 0===s?void 0:s.primary)&&Ue(fn,{button:t.buttons.primary,variant:"primary",onClick:y,cursorStyle:g})]})]})]}),v&&Ue("a",{href:b?"https://posthog.com/docs/product-tours":void 0,target:b?"_blank":void 0,rel:b?"noopener noreferrer":void 0,class:"ph-tour-branding",style:b?void 0:{cursor:"default",pointerEvents:"none"},children:["Tour by ",Je]})]})}const dn=H;function hn({step:n,appearance:o,parentElement:r,stepIndex:i=0,totalSteps:l=1,style:a,posthog:u}){r.innerHTML="";const c=dn.createElement("div");(function(t,e){const n=fe(fe({},ie),e),o=t.style;o.setProperty("--ph-tour-background-color",n.backgroundColor),o.setProperty("--ph-tour-text-color",n.textColor),o.setProperty("--ph-tour-button-color",n.buttonColor),o.setProperty("--ph-tour-border-radius",`${n.borderRadius}px`),o.setProperty("--ph-tour-button-border-radius",`${n.buttonBorderRadius}px`),o.setProperty("--ph-tour-border-color",n.borderColor),o.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";const e='BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return t?`${t}, ${e}`:`-apple-system, ${e}`}(n.fontFamily)),o.setProperty("--ph-tour-text-secondary-color",function(t){const e=Re(t).match(/^rgb\((\d+),(\d+),(\d+)\)$/);return e?`rgba(${e[1]}, ${e[2]}, ${e[3]}, 0.6)`:t}(n.textColor)),o.setProperty("--ph-tour-branding-text-color",Ne(n.backgroundColor)),o.setProperty("--ph-tour-button-text-color",Ne(n.buttonColor)),o.setProperty("--ph-tour-box-shadow",n.boxShadow),o.setProperty("--ph-tour-overlay-color",n.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),o.setProperty("--ph-tour-z-index",String(n.zIndex)),o.setProperty("--ph-tour-button-secondary-color","transparent"),o.setProperty("--ph-tour-button-secondary-text-color",n.textColor),o.setProperty("--ph-tour-max-width","320px"),o.setProperty("--ph-tour-padding","16px")})(c,o),r.appendChild(c);const s=c.attachShadow({mode:"open"}),f=function(t){const e=((t,e,n)=>{let o=Fe.createElement("style");o.innerText=':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}';const r=(t=>{var e;return(t=>"function"==typeof t)(t)?t:null==t||null===(e=t.config)||void 0===e?void 0:e.prepare_external_dependency_stylesheet})(n);return r&&(o=r(o)),o||(he.error("prepare_external_dependency_stylesheet returned null"),null)})(0,0,t);return null==e||e.setAttribute("data-ph-product-tour-style","true"),e}(u);f&&s.appendChild(f);const p=dn.createElement("div");s.appendChild(p);const d="survey"===n.type,h="banner"===n.type,b=`ph-tour-tooltip${Pe(n)?"":" ph-tour-tooltip--modal"}${d?" ph-tour-survey-step":""}`;!function(n,o,r){var i,l,a,u;o==document&&(o=document.documentElement),e.__&&e.__(n,o),l=(i="function"==typeof r)?null:r&&r.__k||o.__k,a=[],u=[],L(o,n=(!i&&r||o).__k=function(e,n,o){var r,i,l,a={};for(l in n)"key"==l?r=n[l]:"ref"==l?i=n[l]:a[l]=n[l];if(arguments.length>2&&(a.children=arguments.length>3?t.call(arguments,2):o),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===a[l]&&(a[l]=e.defaultProps[l]);return w(e,a,r,i,null)}(k,null,[n]),l||m,m,o.namespaceURI,!i&&r?[r]:l?null:o.firstChild?t.call(o.childNodes):null,a,!i&&r?r:l?l.__e:o.firstChild,i,u),R(a,n,u),n.props.children=null}(Ue("div",h?{class:"ph-tour-container",children:Ue(on,{step:n,onDismiss(){}})}:{class:"ph-tour-container",children:Ue("div",{class:b,style:fe(fe({position:"relative",animation:"none"},n.maxWidth&&{width:`${n.maxWidth}px`,maxWidth:`${n.maxWidth}px`}),a),children:Ue(d?sn:pn,{step:n,appearance:o,stepIndex:i,totalSteps:l})})}),p)}export{hn as renderProductTourPreview};
//# sourceMappingURL=product-tours-preview.js.map