import{bF as g,bG as f}from"./vendor-BGtMsOoo.js";var v={};const y=()=>typeof window<"u",b=()=>!(!y()||!window.hj),j=(a,...i)=>{if(y()&&window.hj)return window.hj(a,...i);throw Error("Hotjar is not available, make sure init has been called.")},m=(a,i,t)=>{if(!((u,o,e)=>{try{const n=document.getElementById(o)||document.createElement("script");return n.id=o,n.nonce=e,n.innerText=u,n.crossOrigin="anonymous",document.head.appendChild(n),!0}catch{return!1}})(`(function(h,o,t,j,a,r){h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};h._hjSettings={hjid:${a},hjsv:${i},hjdebug:${(t==null?void 0:t.debug)||!1}};a=o.getElementsByTagName('head')[0];r=o.createElement('script');r.async=1;r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;a.appendChild(r);})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');`,"hotjar-init-script",t==null?void 0:t.nonce)||!b())throw Error("Failed to initialize Hotjar tracking script.")},w={init:(a,i,t)=>{try{return m(a,i,t),!0}catch(u){return console.error("Error:",u),!1}},event:a=>{try{return j("event",a),!0}catch(i){return console.error("Error:",i),!1}},identify:(a,i)=>{try{return j("identify",a,i),!0}catch(t){return console.error("Error:",t),!1}},stateChange:a=>{try{return j("stateChange",a),!0}catch(i){return console.error("Error:",i),!1}},isReady:b},_=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"})),p=g(_);var E=f&&f.__awaiter||function(a,i,t,u){function o(e){return e instanceof t?e:new t(function(n){n(e)})}return new(t||(t=Promise))(function(e,n){function s(l){try{r(u.next(l))}catch(d){n(d)}}function c(l){try{r(u.throw(l))}catch(d){n(d)}}function r(l){l.done?e(l.value):o(l.value).then(s,c)}r((u=u.apply(a,i||[])).next())})},S=f&&f.__generator||function(a,i){var t={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},u,o,e,n;return n={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(r){return function(l){return c([r,l])}}function c(r){if(u)throw new TypeError("Generator is already executing.");for(;n&&(n=0,r[0]&&(t=0)),t;)try{if(u=1,o&&(e=r[0]&2?o.return:r[0]?o.throw||((e=o.return)&&e.call(o),0):o.next)&&!(e=e.call(o,r[1])).done)return e;switch(o=0,e&&(r=[r[0]&2,e.value]),r[0]){case 0:case 1:e=r;break;case 4:return t.label++,{value:r[1],done:!1};case 5:t.label++,o=r[1],r=[0];continue;case 7:r=t.ops.pop(),t.trys.pop();continue;default:if(e=t.trys,!(e=e.length>0&&e[e.length-1])&&(r[0]===6||r[0]===2)){t=0;continue}if(r[0]===3&&(!e||r[1]>e[0]&&r[1]<e[3])){t.label=r[1];break}if(r[0]===6&&t.label<e[1]){t.label=e[1],e=r;break}if(e&&t.label<e[2]){t.label=e[2],t.ops.push(r);break}e[2]&&t.ops.pop(),t.trys.pop();continue}r=i.call(a,t)}catch(l){r=[6,l],o=0}finally{u=e=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};Object.defineProperty(v,"__esModule",{value:!0});var M=v.useHotjarModule=T,H="[Hotjar]",x={"Hotjar.SiteId":"id","Hotjar.SnippetVersion":"version"};function O(a){return E(this,arguments,void 0,function(i){var t,u,o,e,n,s,c=i.getModuleSettings,r=i.isDevelopment,l=i.userId,d=i.logger;return S(this,function(h){switch(h.label){case 0:return t=c(x),u=t.id,o=t.version,e=!!(typeof window<"u"&&(!((s=window.document)===null||s===void 0)&&s.createElement)),!e||!(u&&o)?[2]:r?[3,2]:[4,Promise.resolve().then(function(){return p})];case 1:return n=h.sent().default,n.init(Number(u),Number(o)),n.identify(l,{}),[3,3];case 2:d.debug(H,"Hotjar enabled but not initialized"),h.label=3;case 3:return[2]}})})}function T(){return{initModule:O}}const k=Object.freeze(Object.defineProperty({__proto__:null,default:v,useHotjarModule:M},Symbol.toStringTag,{value:"Module"}));export{k as i};
//# sourceMappingURL=index-Ds1xYN6_.js.map
