@zoomrx/zena-chatbot-client 1.0.5 → 1.0.6

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.
@@ -260,244 +260,244 @@ var Td=Object.entries,Ed=Object.setPrototypeOf,Dd=Object.isFrozen,Od=Object.getP
260
260
  if(!r.keepAttr){j(a,e);return 0;// continue
261
261
  }if(!be&&$d(/\/>/i,u)){j(a,e);return 0;// continue
262
262
  }xe&&Fd([te,ne,D],function(e){u=Wd(u,e," ");});var d=Xe(e.nodeName);if(!dt(d,c,u)){j(a,e);return 0;// continue
263
- }if(b&&_typeof(p)=="object"&&typeof p.getAttributeType=="function"&&!o)switch(p.getAttributeType(d,c)){case"TrustedHTML":u=b.createHTML(u);break;case"TrustedScriptURL":u=b.createScriptURL(u);break;}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),st(e)?it(e):Ld(t.removed);}catch(t){j(a,e);}},_ret2;for(;i--;){_ret2=_loop7();if(_ret2===0)continue;}lt(E.afterSanitizeAttributes,e,null);},_ht=function ht(e){var t=null,n=ot(e);for(lt(E.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)lt(E.uponSanitizeShadowNode,t,null),ut(t),mt(t),t.content instanceof a&&_ht(t.content);lt(E.afterSanitizeShadowDOM,e,null);};return t.sanitize=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(Ge=!e,Ge&&(e="<!-->"),typeof e!="string"&&!ct(e)&&(e=of(e),typeof e!="string"))throw ef("dirty is not a string, aborting");if(!t.isSupported)return e;if(we||et(n),t.removed=[],typeof e=="string"&&(Ne=!1),Ne){var _t93=e.nodeName;if(typeof _t93=="string"){var _e91=Xe(_t93);if(!le[_e91]||me[_e91])throw ef("root node is forbidden and cannot be sanitized in-place");}}else if(e instanceof s)i=at("<!---->"),o=i.ownerDocument.importNode(e,!0),o.nodeType===jf.element&&o.nodeName==="BODY"||o.nodeName==="HTML"?i=o:i.appendChild(o);else{if(!Ee&&!xe&&!Ce&&e.indexOf("<")===-1)return b&&Oe?b.createHTML(e):e;if(i=at(e),!i)return Ee?null:Oe?x:"";}i&&Te&&it(i.firstChild);var u=ot(Ne?e:i);for(;c=u.nextNode();)ut(c),mt(c),c.content instanceof a&&_ht(c.content);if(Ne)return e;if(Ee){if(xe){i.normalize();var _e92=i.innerHTML;Fd([te,ne,D],function(t){_e92=Wd(_e92,t," ");}),i.innerHTML=_e92;}if(De)for(l=w.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(de.shadowroot||de.shadowrootmode)&&(l=ee.call(r,l,!0)),l;}var d=Ce?i.outerHTML:i.innerHTML;return Ce&&le["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&$d(Of,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),xe&&Fd([te,ne,D],function(e){d=Wd(d,e," ");}),b&&Oe?b.createHTML(d):d;},t.setConfig=function(){et(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),we=!0;},t.clearConfig=function(){Ze=null,we=!1;},t.isValidAttribute=function(e,t,n){return Ze||et({}),dt(Xe(e),Xe(t),n);},t.addHook=function(e,t){typeof t=="function"&&Rd(E[e],t);},t.removeHook=function(e,t){if(t!==void 0){var _n70=Id(E[e],t);return _n70===-1?void 0:zd(E[e],_n70,1)[0];}return Ld(E[e]);},t.removeHooks=function(e){E[e]=[];},t.removeAllHooks=function(){E=Pf();},t;}var If=Ff(),Lf=function Lf(e){if(typeof e!="string")return e;var t=e;return t=t.replace(/^[•◦▪▫‣]\s*/gm,"- "),t=t.replace(/^(\d+)\)\s*/gm,"$1. "),t=t.replace(/\$/g,"\\$"),t;},X=(typeof __SENTRY_DEBUG__==="undefined"?"undefined":_typeof(__SENTRY_DEBUG__))>"u"||__SENTRY_DEBUG__,Z=globalThis,Rf="10.51.0";//#endregion
263
+ }if(b&&_typeof(p)=="object"&&typeof p.getAttributeType=="function"&&!o)switch(p.getAttributeType(d,c)){case"TrustedHTML":u=b.createHTML(u);break;case"TrustedScriptURL":u=b.createScriptURL(u);break;}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),st(e)?it(e):Ld(t.removed);}catch(t){j(a,e);}},_ret2;for(;i--;){_ret2=_loop7();if(_ret2===0)continue;}lt(E.afterSanitizeAttributes,e,null);},_ht=function ht(e){var t=null,n=ot(e);for(lt(E.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)lt(E.uponSanitizeShadowNode,t,null),ut(t),mt(t),t.content instanceof a&&_ht(t.content);lt(E.afterSanitizeShadowDOM,e,null);};return t.sanitize=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(Ge=!e,Ge&&(e="<!-->"),typeof e!="string"&&!ct(e)&&(e=of(e),typeof e!="string"))throw ef("dirty is not a string, aborting");if(!t.isSupported)return e;if(we||et(n),t.removed=[],typeof e=="string"&&(Ne=!1),Ne){var _t93=e.nodeName;if(typeof _t93=="string"){var _e91=Xe(_t93);if(!le[_e91]||me[_e91])throw ef("root node is forbidden and cannot be sanitized in-place");}}else if(e instanceof s)i=at("<!---->"),o=i.ownerDocument.importNode(e,!0),o.nodeType===jf.element&&o.nodeName==="BODY"||o.nodeName==="HTML"?i=o:i.appendChild(o);else{if(!Ee&&!xe&&!Ce&&e.indexOf("<")===-1)return b&&Oe?b.createHTML(e):e;if(i=at(e),!i)return Ee?null:Oe?x:"";}i&&Te&&it(i.firstChild);var u=ot(Ne?e:i);for(;c=u.nextNode();)ut(c),mt(c),c.content instanceof a&&_ht(c.content);if(Ne)return e;if(Ee){if(xe){i.normalize();var _e92=i.innerHTML;Fd([te,ne,D],function(t){_e92=Wd(_e92,t," ");}),i.innerHTML=_e92;}if(De)for(l=w.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(de.shadowroot||de.shadowrootmode)&&(l=ee.call(r,l,!0)),l;}var d=Ce?i.outerHTML:i.innerHTML;return Ce&&le["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&$d(Of,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),xe&&Fd([te,ne,D],function(e){d=Wd(d,e," ");}),b&&Oe?b.createHTML(d):d;},t.setConfig=function(){et(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),we=!0;},t.clearConfig=function(){Ze=null,we=!1;},t.isValidAttribute=function(e,t,n){return Ze||et({}),dt(Xe(e),Xe(t),n);},t.addHook=function(e,t){typeof t=="function"&&Rd(E[e],t);},t.removeHook=function(e,t){if(t!==void 0){var _n70=Id(E[e],t);return _n70===-1?void 0:zd(E[e],_n70,1)[0];}return Ld(E[e]);},t.removeHooks=function(e){E[e]=[];},t.removeAllHooks=function(){E=Pf();},t;}var If=Ff(),Lf=function Lf(e){if(typeof e!="string")return e;var t=e;return t=t.replace(/^[•◦▪▫‣]\s*/gm,"- "),t=t.replace(/^(\d+)\)\s*/gm,"$1. "),t=t.replace(/\$/g,"\\$"),t;},Rf=/* @__PURE__ */"p.br.hr.strong.b.em.i.del.s.code.pre.blockquote.ul.ol.li.a.h1.h2.h3.h4.h5.h6.table.thead.tbody.tr.th.td".split("."),zf=["href","title"],Bf=/^(?:https?:|mailto:)/i,Vf=function Vf(e){return If.sanitize(e,{ALLOWED_TAGS:Rf,ALLOWED_ATTR:zf,ALLOWED_URI_REGEXP:Bf,ALLOW_DATA_ATTR:!1});},X=(typeof __SENTRY_DEBUG__==="undefined"?"undefined":_typeof(__SENTRY_DEBUG__))>"u"||__SENTRY_DEBUG__,Hf=globalThis,Uf="10.51.0";//#endregion
264
264
  //#region node_modules/@sentry/core/build/esm/carrier.js
265
- function zf(){return Bf(Z),Z;}function Bf(e){var t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"10.51.0",t[Rf]=t["10.51.0"]||{};}function Vf(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Z;var r=n.__SENTRY__=n.__SENTRY__||{},i=r[Rf]=r["10.51.0"]||{};return i[e]||(i[e]=t());}//#endregion
265
+ function Wf(){return Gf(Hf),Hf;}function Gf(e){var t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"10.51.0",t[Uf]=t["10.51.0"]||{};}function Kf(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Hf;var r=n.__SENTRY__=n.__SENTRY__||{},i=r[Uf]=r["10.51.0"]||{};return i[e]||(i[e]=t());}//#endregion
266
266
  //#region node_modules/@sentry/core/build/esm/utils/debug-logger.js
267
- var Hf=["debug","info","warn","error","log","assert","trace"],Uf="Sentry Logger ",Wf={};function Gf(e){if(!("console"in Z))return e();var t=Z.console,n={},r=Object.keys(Wf);r.forEach(function(e){var r=Wf[e];n[e]=t[e],t[e]=r;});try{return e();}finally{r.forEach(function(e){t[e]=n[e];});}}function Kf(){$f().enabled=!0;}function qf(){$f().enabled=!1;}function Jf(){return $f().enabled;}function Yf(){for(var _len7=arguments.length,e=new Array(_len7),_key7=0;_key7<_len7;_key7++){e[_key7]=arguments[_key7];}Qf.apply(void 0,["log"].concat(e));}function Xf(){for(var _len8=arguments.length,e=new Array(_len8),_key8=0;_key8<_len8;_key8++){e[_key8]=arguments[_key8];}Qf.apply(void 0,["warn"].concat(e));}function Zf(){for(var _len9=arguments.length,e=new Array(_len9),_key9=0;_key9<_len9;_key9++){e[_key9]=arguments[_key9];}Qf.apply(void 0,["error"].concat(e));}function Qf(e){for(var _len0=arguments.length,t=new Array(_len0>1?_len0-1:0),_key0=1;_key0<_len0;_key0++){t[_key0-1]=arguments[_key0];}X&&Jf()&&Gf(function(){var _Z$console;(_Z$console=Z.console)[e].apply(_Z$console,["".concat(Uf,"[").concat(e,"]:")].concat(t));});}function $f(){return X?Vf("loggerSettings",function(){return{enabled:!1};}):{enabled:!1};}var Q={enable:Kf,disable:qf,isEnabled:Jf,log:Yf,warn:Xf,error:Zf},ep=50,tp=/\(error: (.*)\)/,np=/captureMessage|captureException/;function rp(){for(var _len1=arguments.length,e=new Array(_len1),_key1=0;_key1<_len1;_key1++){e[_key1]=arguments[_key1];}var t=e.sort(function(e,t){return e[0]-t[0];}).map(function(e){return e[1];});return function(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=[],a=e.split("\n");for(var _e93=n;_e93<a.length;_e93++){var _n71=a[_e93];_n71.length>1024&&(_n71=_n71.slice(0,1024));var _o13=tp.test(_n71)?_n71.replace(tp,"$1"):_n71;if(!_o13.includes("Error: ")){var _iterator74=_createForOfIteratorHelper(t),_step74;try{for(_iterator74.s();!(_step74=_iterator74.n()).done;){var _e94=_step74.value;var _t94=_e94(_o13);if(_t94){i.push(_t94);break;}}}catch(err){_iterator74.e(err);}finally{_iterator74.f();}if(i.length>=ep+r)break;}}return ap(i.slice(r));};}function ip(e){return Array.isArray(e)?rp.apply(void 0,_toConsumableArray(e)):e;}function ap(e){if(!e.length)return[];var t=Array.from(e);return /sentryWrapped/.test(op(t).function||"")&&t.pop(),t.reverse(),np.test(op(t).function||"")&&(t.pop(),np.test(op(t).function||"")&&t.pop()),t.slice(0,ep).map(function(e){return _objectSpread(_objectSpread({},e),{},{filename:e.filename||op(t).filename,function:e.function||"?"});});}function op(e){return e[e.length-1]||{};}var sp="<anonymous>";function cp(e){try{return!e||typeof e!="function"?sp:e.name||sp;}catch(e){return sp;}}function lp(e){var t=e.exception;if(t){var _e95=[];try{return t.values.forEach(function(t){t.stacktrace.frames&&_e95.push.apply(_e95,_toConsumableArray(t.stacktrace.frames));}),_e95;}catch(e){return;}}}function up(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]";}//#endregion
267
+ var qf=["debug","info","warn","error","log","assert","trace"],Jf="Sentry Logger ",Yf={};function Xf(e){if(!("console"in Hf))return e();var t=Hf.console,n={},r=Object.keys(Yf);r.forEach(function(e){var r=Yf[e];n[e]=t[e],t[e]=r;});try{return e();}finally{r.forEach(function(e){t[e]=n[e];});}}function Zf(){ip().enabled=!0;}function Qf(){ip().enabled=!1;}function $f(){return ip().enabled;}function ep(){for(var _len7=arguments.length,e=new Array(_len7),_key7=0;_key7<_len7;_key7++){e[_key7]=arguments[_key7];}rp.apply(void 0,["log"].concat(e));}function tp(){for(var _len8=arguments.length,e=new Array(_len8),_key8=0;_key8<_len8;_key8++){e[_key8]=arguments[_key8];}rp.apply(void 0,["warn"].concat(e));}function np(){for(var _len9=arguments.length,e=new Array(_len9),_key9=0;_key9<_len9;_key9++){e[_key9]=arguments[_key9];}rp.apply(void 0,["error"].concat(e));}function rp(e){for(var _len0=arguments.length,t=new Array(_len0>1?_len0-1:0),_key0=1;_key0<_len0;_key0++){t[_key0-1]=arguments[_key0];}X&&$f()&&Xf(function(){var _Hf$console;(_Hf$console=Hf.console)[e].apply(_Hf$console,["".concat(Jf,"[").concat(e,"]:")].concat(t));});}function ip(){return X?Kf("loggerSettings",function(){return{enabled:!1};}):{enabled:!1};}var Z={enable:Zf,disable:Qf,isEnabled:$f,log:ep,warn:tp,error:np},ap=50,op=/\(error: (.*)\)/,sp=/captureMessage|captureException/;function cp(){for(var _len1=arguments.length,e=new Array(_len1),_key1=0;_key1<_len1;_key1++){e[_key1]=arguments[_key1];}var t=e.sort(function(e,t){return e[0]-t[0];}).map(function(e){return e[1];});return function(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=[],a=e.split("\n");for(var _e93=n;_e93<a.length;_e93++){var _n71=a[_e93];_n71.length>1024&&(_n71=_n71.slice(0,1024));var _o13=op.test(_n71)?_n71.replace(op,"$1"):_n71;if(!_o13.includes("Error: ")){var _iterator74=_createForOfIteratorHelper(t),_step74;try{for(_iterator74.s();!(_step74=_iterator74.n()).done;){var _e94=_step74.value;var _t94=_e94(_o13);if(_t94){i.push(_t94);break;}}}catch(err){_iterator74.e(err);}finally{_iterator74.f();}if(i.length>=ap+r)break;}}return up(i.slice(r));};}function lp(e){return Array.isArray(e)?cp.apply(void 0,_toConsumableArray(e)):e;}function up(e){if(!e.length)return[];var t=Array.from(e);return /sentryWrapped/.test(dp(t).function||"")&&t.pop(),t.reverse(),sp.test(dp(t).function||"")&&(t.pop(),sp.test(dp(t).function||"")&&t.pop()),t.slice(0,ap).map(function(e){return _objectSpread(_objectSpread({},e),{},{filename:e.filename||dp(t).filename,function:e.function||"?"});});}function dp(e){return e[e.length-1]||{};}var fp="<anonymous>";function pp(e){try{return!e||typeof e!="function"?fp:e.name||fp;}catch(e){return fp;}}function mp(e){var t=e.exception;if(t){var _e95=[];try{return t.values.forEach(function(t){t.stacktrace.frames&&_e95.push.apply(_e95,_toConsumableArray(t.stacktrace.frames));}),_e95;}catch(e){return;}}}function hp(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]";}//#endregion
268
268
  //#region node_modules/@sentry/core/build/esm/instrument/handlers.js
269
- var dp={},fp={};function pp(e,t){return dp[e]=dp[e]||[],dp[e].push(t),function(){var n=dp[e];if(n){var _e96=n.indexOf(t);_e96!==-1&&n.splice(_e96,1);}};}function mp(e,t){if(!fp[e]){fp[e]=!0;try{t();}catch(t){X&&Q.error("Error while instrumenting ".concat(e),t);}}}function hp(e,t){var n=e&&dp[e];if(n){var _iterator75=_createForOfIteratorHelper(n),_step75;try{for(_iterator75.s();!(_step75=_iterator75.n()).done;){var _r60=_step75.value;try{_r60(t);}catch(t){X&&Q.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat(cp(_r60),"\nError:"),t);}}}catch(err){_iterator75.e(err);}finally{_iterator75.f();}}}//#endregion
269
+ var gp={},_p={};function vp(e,t){return gp[e]=gp[e]||[],gp[e].push(t),function(){var n=gp[e];if(n){var _e96=n.indexOf(t);_e96!==-1&&n.splice(_e96,1);}};}function yp(e,t){if(!_p[e]){_p[e]=!0;try{t();}catch(t){X&&Z.error("Error while instrumenting ".concat(e),t);}}}function bp(e,t){var n=e&&gp[e];if(n){var _iterator75=_createForOfIteratorHelper(n),_step75;try{for(_iterator75.s();!(_step75=_iterator75.n()).done;){var _r60=_step75.value;try{_r60(t);}catch(t){X&&Z.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat(pp(_r60),"\nError:"),t);}}}catch(err){_iterator75.e(err);}finally{_iterator75.f();}}}//#endregion
270
270
  //#region node_modules/@sentry/core/build/esm/instrument/globalError.js
271
- var gp=null;function _p(e){var t="error";pp(t,e),mp(t,vp);}function vp(){gp=Z.onerror,Z.onerror=function(e,t,n,r,i){return hp("error",{column:r,error:i,line:n,msg:e,url:t}),gp?gp.apply(this,arguments):!1;},Z.onerror.__SENTRY_INSTRUMENTED__=!0;}//#endregion
271
+ var xp=null;function Sp(e){var t="error";vp(t,e),yp(t,Cp);}function Cp(){xp=Hf.onerror,Hf.onerror=function(e,t,n,r,i){return bp("error",{column:r,error:i,line:n,msg:e,url:t}),xp?xp.apply(this,arguments):!1;},Hf.onerror.__SENTRY_INSTRUMENTED__=!0;}//#endregion
272
272
  //#region node_modules/@sentry/core/build/esm/instrument/globalUnhandledRejection.js
273
- var yp=null;function bp(e){var t="unhandledrejection";pp(t,e),mp(t,xp);}function xp(){yp=Z.onunhandledrejection,Z.onunhandledrejection=function(e){return hp("unhandledrejection",e),yp?yp.apply(this,arguments):!0;},Z.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;}//#endregion
273
+ var wp=null;function Tp(e){var t="unhandledrejection";vp(t,e),yp(t,Ep);}function Ep(){wp=Hf.onunhandledrejection,Hf.onunhandledrejection=function(e){return bp("unhandledrejection",e),wp?wp.apply(this,arguments):!0;},Hf.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;}//#endregion
274
274
  //#region node_modules/@sentry/core/build/esm/utils/is.js
275
- var Sp=Object.prototype.toString;function Cp(e){switch(Sp.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Lp(e,Error);}}function wp(e,t){return Sp.call(e)==="[object ".concat(t,"]");}function Tp(e){return wp(e,"ErrorEvent");}function Ep(e){return wp(e,"DOMError");}function Dp(e){return wp(e,"DOMException");}function Op(e){return wp(e,"String");}function kp(e){return _typeof(e)=="object"&&!!e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e;}function Ap(e){return e===null||kp(e)||_typeof(e)!="object"&&typeof e!="function";}function jp(e){return wp(e,"Object");}function Mp(e){return(typeof Event==="undefined"?"undefined":_typeof(Event))<"u"&&Lp(e,Event);}function Np(e){return(typeof Element==="undefined"?"undefined":_typeof(Element))<"u"&&Lp(e,Element);}function Pp(e){return wp(e,"RegExp");}function Fp(e){return!!(e!=null&&e.then&&typeof e.then=="function");}function Ip(e){return jp(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e;}function Lp(e,t){try{return e instanceof t;}catch(e){return!1;}}function Rp(e){return!!(_typeof(e)=="object"&&e&&(e.__isVue||e._isVue||e.__v_isVNode));}function zp(e){return(typeof Request==="undefined"?"undefined":_typeof(Request))<"u"&&Lp(e,Request);}//#endregion
275
+ var Dp=Object.prototype.toString;function Op(e){switch(Dp.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Hp(e,Error);}}function kp(e,t){return Dp.call(e)==="[object ".concat(t,"]");}function Ap(e){return kp(e,"ErrorEvent");}function jp(e){return kp(e,"DOMError");}function Mp(e){return kp(e,"DOMException");}function Np(e){return kp(e,"String");}function Pp(e){return _typeof(e)=="object"&&!!e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e;}function Fp(e){return e===null||Pp(e)||_typeof(e)!="object"&&typeof e!="function";}function Ip(e){return kp(e,"Object");}function Lp(e){return(typeof Event==="undefined"?"undefined":_typeof(Event))<"u"&&Hp(e,Event);}function Rp(e){return(typeof Element==="undefined"?"undefined":_typeof(Element))<"u"&&Hp(e,Element);}function zp(e){return kp(e,"RegExp");}function Bp(e){return!!(e!=null&&e.then&&typeof e.then=="function");}function Vp(e){return Ip(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e;}function Hp(e,t){try{return e instanceof t;}catch(e){return!1;}}function Up(e){return!!(_typeof(e)=="object"&&e&&(e.__isVue||e._isVue||e.__v_isVNode));}function Wp(e){return(typeof Request==="undefined"?"undefined":_typeof(Request))<"u"&&Hp(e,Request);}//#endregion
276
276
  //#region node_modules/@sentry/core/build/esm/utils/browser.js
277
- var Bp=Z,Vp=80;function Hp(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!e)return"<unknown>";try{var _n72=e,_r61=[],_i40=0,_a0=0,_o14,_s2=Array.isArray(t)?t:t.keyAttrs,_c3=!Array.isArray(t)&&t.maxStringLength||Vp;for(;_n72&&_i40++<5&&(_o14=Up(_n72,_s2),!(_o14==="html"||_i40>1&&_a0+_r61.length*3+_o14.length>=_c3));)_r61.push(_o14),_a0+=_o14.length,_n72=_n72.parentNode;return _r61.reverse().join(" > ");}catch(e){return"<unknown>";}}function Up(e,t){var n=e,r=[];if(!(n!=null&&n.tagName))return"";if(Bp.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement;}r.push(n.tagName.toLowerCase());var i=t!=null&&t.length?t.filter(function(e){return n.getAttribute(e);}).map(function(e){return[e,n.getAttribute(e)];}):null;if(i!=null&&i.length)i.forEach(function(e){r.push("[".concat(e[0],"=\"").concat(e[1],"\"]"));});else{n.id&&r.push("#".concat(n.id));var _e97=n.className;if(_e97&&Op(_e97)){var _t95=_e97.split(/\s+/);var _iterator76=_createForOfIteratorHelper(_t95),_step76;try{for(_iterator76.s();!(_step76=_iterator76.n()).done;){var _e98=_step76.value;r.push(".".concat(_e98));}}catch(err){_iterator76.e(err);}finally{_iterator76.f();}}}for(var _i41=0,_arr3=["aria-label","type","name","title","alt"];_i41<_arr3.length;_i41++){var _e99=_arr3[_i41];var _t96=n.getAttribute(_e99);_t96&&r.push("[".concat(_e99,"=\"").concat(_t96,"\"]"));}return r.join("");}function Wp(){try{return Bp.document.location.href;}catch(e){return"";}}function Gp(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:5;if(!Bp.HTMLElement)return null;var n=e;for(var _e100=0;_e100<t;_e100++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement;}n=n.parentNode;}return null;}//#endregion
277
+ var Gp=Hf,Kp=80;function qp(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!e)return"<unknown>";try{var _n72=e,_r61=[],_i40=0,_a0=0,_o14,_s2=Array.isArray(t)?t:t.keyAttrs,_c3=!Array.isArray(t)&&t.maxStringLength||Kp;for(;_n72&&_i40++<5&&(_o14=Jp(_n72,_s2),!(_o14==="html"||_i40>1&&_a0+_r61.length*3+_o14.length>=_c3));)_r61.push(_o14),_a0+=_o14.length,_n72=_n72.parentNode;return _r61.reverse().join(" > ");}catch(e){return"<unknown>";}}function Jp(e,t){var n=e,r=[];if(!(n!=null&&n.tagName))return"";if(Gp.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement;}r.push(n.tagName.toLowerCase());var i=t!=null&&t.length?t.filter(function(e){return n.getAttribute(e);}).map(function(e){return[e,n.getAttribute(e)];}):null;if(i!=null&&i.length)i.forEach(function(e){r.push("[".concat(e[0],"=\"").concat(e[1],"\"]"));});else{n.id&&r.push("#".concat(n.id));var _e97=n.className;if(_e97&&Np(_e97)){var _t95=_e97.split(/\s+/);var _iterator76=_createForOfIteratorHelper(_t95),_step76;try{for(_iterator76.s();!(_step76=_iterator76.n()).done;){var _e98=_step76.value;r.push(".".concat(_e98));}}catch(err){_iterator76.e(err);}finally{_iterator76.f();}}}for(var _i41=0,_arr3=["aria-label","type","name","title","alt"];_i41<_arr3.length;_i41++){var _e99=_arr3[_i41];var _t96=n.getAttribute(_e99);_t96&&r.push("[".concat(_e99,"=\"").concat(_t96,"\"]"));}return r.join("");}function Yp(){try{return Gp.document.location.href;}catch(e){return"";}}function Xp(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:5;if(!Gp.HTMLElement)return null;var n=e;for(var _e100=0;_e100<t;_e100++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement;}n=n.parentNode;}return null;}//#endregion
278
278
  //#region node_modules/@sentry/core/build/esm/utils/object.js
279
- function Kp(e,t,n){if(!(t in e))return;var r=e[t];if(typeof r!="function")return;var i=n(r);typeof i=="function"&&Jp(i,r);try{e[t]=i;}catch(n){X&&Q.log("Failed to replace method \"".concat(t,"\" in object"),e);}}function qp(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0});}catch(n){X&&Q.log("Failed to add non-enumerable property \"".concat(String(t),"\" to object"),e);}}function Jp(e,t){try{e.prototype=t.prototype=t.prototype||{},qp(e,"__sentry_original__",t);}catch(e){}}function Yp(e){return e.__sentry_original__;}function Xp(e){if(Cp(e))return _objectSpread({message:e.message,name:e.name,stack:e.stack},Qp(e));if(Mp(e)){var _t97=_objectSpread({type:e.type,target:Zp(e.target),currentTarget:Zp(e.currentTarget)},Qp(e));return(typeof CustomEvent==="undefined"?"undefined":_typeof(CustomEvent))<"u"&&Lp(e,CustomEvent)&&(_t97.detail=e.detail),_t97;}else return e;}function Zp(e){try{return Np(e)?Hp(e):Object.prototype.toString.call(e);}catch(e){return"<unknown>";}}function Qp(e){return _typeof(e)=="object"&&e?Object.fromEntries(Object.entries(e)):{};}function $p(e){var t=Object.keys(Xp(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]";}//#endregion
279
+ function Zp(e,t,n){if(!(t in e))return;var r=e[t];if(typeof r!="function")return;var i=n(r);typeof i=="function"&&$p(i,r);try{e[t]=i;}catch(n){X&&Z.log("Failed to replace method \"".concat(t,"\" in object"),e);}}function Qp(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0});}catch(n){X&&Z.log("Failed to add non-enumerable property \"".concat(String(t),"\" to object"),e);}}function $p(e,t){try{e.prototype=t.prototype=t.prototype||{},Qp(e,"__sentry_original__",t);}catch(e){}}function em(e){return e.__sentry_original__;}function tm(e){if(Op(e))return _objectSpread({message:e.message,name:e.name,stack:e.stack},rm(e));if(Lp(e)){var _t97=_objectSpread({type:e.type,target:nm(e.target),currentTarget:nm(e.currentTarget)},rm(e));return(typeof CustomEvent==="undefined"?"undefined":_typeof(CustomEvent))<"u"&&Hp(e,CustomEvent)&&(_t97.detail=e.detail),_t97;}else return e;}function nm(e){try{return Rp(e)?qp(e):Object.prototype.toString.call(e);}catch(e){return"<unknown>";}}function rm(e){return _typeof(e)=="object"&&e?Object.fromEntries(Object.entries(e)):{};}function im(e){var t=Object.keys(tm(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]";}//#endregion
280
280
  //#region node_modules/@sentry/core/build/esm/utils/randomSafeContext.js
281
- var em;function tm(e){if(em!==void 0)return em?em(e):e();var t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=Z;return t in n&&typeof n[t]=="function"?(em=n[t],em(e)):(em=null,e());}function nm(){return tm(function(){return Math.random();});}function rm(){return tm(function(){return Date.now();});}//#endregion
281
+ var am;function om(e){if(am!==void 0)return am?am(e):e();var t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=Hf;return t in n&&typeof n[t]=="function"?(am=n[t],am(e)):(am=null,e());}function sm(){return om(function(){return Math.random();});}function cm(){return om(function(){return Date.now();});}//#endregion
282
282
  //#region node_modules/@sentry/core/build/esm/utils/string.js
283
- function im(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;return typeof e!="string"||t===0||e.length<=t?e:"".concat(e.slice(0,t),"...");}function am(e,t){if(!Array.isArray(e))return"";var n=[];for(var _t98=0;_t98<e.length;_t98++){var _r62=e[_t98];try{Rp(_r62)?n.push(up(_r62)):n.push(String(_r62));}catch(e){n.push("[value cannot be serialized]");}}return n.join(t);}function om(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;return Op(e)?Pp(t)?t.test(e):Op(t)?n?e===t:e.includes(t):typeof t=="function"?t(e):!1:!1;}function sm(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;return t.some(function(t){return om(e,t,n);});}//#endregion
283
+ function lm(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;return typeof e!="string"||t===0||e.length<=t?e:"".concat(e.slice(0,t),"...");}function um(e,t){if(!Array.isArray(e))return"";var n=[];for(var _t98=0;_t98<e.length;_t98++){var _r62=e[_t98];try{Up(_r62)?n.push(hp(_r62)):n.push(String(_r62));}catch(e){n.push("[value cannot be serialized]");}}return n.join(t);}function dm(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;return Np(e)?zp(t)?t.test(e):Np(t)?n?e===t:e.includes(t):typeof t=="function"?t(e):!1:!1;}function fm(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;return t.some(function(t){return dm(e,t,n);});}//#endregion
284
284
  //#region node_modules/@sentry/core/build/esm/utils/misc.js
285
- function cm(){var e=Z;return e.crypto||e.msCrypto;}var lm;function um(){return nm()*16;}function dm(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:cm();try{if(e!=null&&e.randomUUID)return tm(function(){return e.randomUUID();}).replace(/-/g,"");}catch(e){}return lm||(lm="10000000100040008000100000000000"),lm.replace(/[018]/g,function(e){return(e^(um()&15)>>e/4).toString(16);});}function fm(e){var t;return(t=e.exception)==null||(t=t.values)==null?void 0:t[0];}function pm(e){var t=e.message,n=e.event_id;if(t)return t;var r=fm(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>";}function mm(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error");}function hm(e,t){var n=fm(e);if(!n)return;var r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism=_objectSpread(_objectSpread(_objectSpread({},r),i),t),t&&"data"in t){var _e101=_objectSpread(_objectSpread({},i==null?void 0:i.data),t.data);n.mechanism.data=_e101;}}function gm(e){if(_m(e))return!0;try{qp(e,"__sentry_captured__",!0);}catch(e){}return!1;}function _m(e){try{return e.__sentry_captured__;}catch(e){}}//#endregion
285
+ function pm(){var e=Hf;return e.crypto||e.msCrypto;}var mm;function hm(){return sm()*16;}function gm(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:pm();try{if(e!=null&&e.randomUUID)return om(function(){return e.randomUUID();}).replace(/-/g,"");}catch(e){}return mm||(mm="10000000100040008000100000000000"),mm.replace(/[018]/g,function(e){return(e^(hm()&15)>>e/4).toString(16);});}function _m(e){var t;return(t=e.exception)==null||(t=t.values)==null?void 0:t[0];}function vm(e){var t=e.message,n=e.event_id;if(t)return t;var r=_m(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>";}function ym(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error");}function bm(e,t){var n=_m(e);if(!n)return;var r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism=_objectSpread(_objectSpread(_objectSpread({},r),i),t),t&&"data"in t){var _e101=_objectSpread(_objectSpread({},i==null?void 0:i.data),t.data);n.mechanism.data=_e101;}}function xm(e){if(Sm(e))return!0;try{Qp(e,"__sentry_captured__",!0);}catch(e){}return!1;}function Sm(e){try{return e.__sentry_captured__;}catch(e){}}//#endregion
286
286
  //#region node_modules/@sentry/core/build/esm/utils/time.js
287
- var vm=1e3;function ym(){return rm()/vm;}function bm(){var e=Z.performance;if(!(e!=null&&e.now)||!e.timeOrigin)return ym;var t=e.timeOrigin;return function(){return(t+tm(function(){return e.now();}))/vm;};}var xm;function Sm(){var e;return((e=xm)==null?xm=bm():e)();}//#endregion
287
+ var Cm=1e3;function wm(){return cm()/Cm;}function Tm(){var e=Hf.performance;if(!(e!=null&&e.now)||!e.timeOrigin)return wm;var t=e.timeOrigin;return function(){return(t+om(function(){return e.now();}))/Cm;};}var Em;function Dm(){var e;return((e=Em)==null?Em=Tm():e)();}//#endregion
288
288
  //#region node_modules/@sentry/core/build/esm/session.js
289
- function Cm(e){var t=Sm(),n={sid:dm(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function toJSON(){return Em(n);}};return e&&wm(n,e),n;}function wm(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Sm(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:dm()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{var _t99=e.timestamp-e.started;e.duration=_t99>=0?_t99:0;}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status);}function Tm(e,t){var n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),wm(e,n);}function Em(e){return{sid:"".concat(e.sid),init:e.init,started:(/* @__PURE__ */new Date(e.started*1e3)).toISOString(),timestamp:(/* @__PURE__ */new Date(e.timestamp*1e3)).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?"".concat(e.did):void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}};}//#endregion
289
+ function Om(e){var t=Dm(),n={sid:gm(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function toJSON(){return jm(n);}};return e&&km(n,e),n;}function km(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Dm(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:gm()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{var _t99=e.timestamp-e.started;e.duration=_t99>=0?_t99:0;}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status);}function Am(e,t){var n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),km(e,n);}function jm(e){return{sid:"".concat(e.sid),init:e.init,started:(/* @__PURE__ */new Date(e.started*1e3)).toISOString(),timestamp:(/* @__PURE__ */new Date(e.timestamp*1e3)).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?"".concat(e.did):void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}};}//#endregion
290
290
  //#region node_modules/@sentry/core/build/esm/utils/merge.js
291
- function Dm(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:2;if(!t||_typeof(t)!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;var r=_objectSpread({},e);for(var _e102 in t)Object.prototype.hasOwnProperty.call(t,_e102)&&(r[_e102]=Dm(r[_e102],t[_e102],n-1));return r;}//#endregion
291
+ function Mm(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:2;if(!t||_typeof(t)!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;var r=_objectSpread({},e);for(var _e102 in t)Object.prototype.hasOwnProperty.call(t,_e102)&&(r[_e102]=Mm(r[_e102],t[_e102],n-1));return r;}//#endregion
292
292
  //#region node_modules/@sentry/core/build/esm/utils/propagationContext.js
293
- function Om(){return dm();}function km(){return dm().substring(16);}//#endregion
293
+ function Nm(){return gm();}function Pm(){return gm().substring(16);}//#endregion
294
294
  //#region node_modules/@sentry/core/build/esm/utils/spanOnScope.js
295
- var Am="_sentrySpan";function jm(e,t){t?qp(e,Am,t):delete e[Am];}function Mm(e){return e[Am];}//#endregion
295
+ var Fm="_sentrySpan";function Im(e,t){t?Qp(e,Fm,t):delete e[Fm];}function Lm(e){return e[Fm];}//#endregion
296
296
  //#region node_modules/@sentry/core/build/esm/scope.js
297
- var Nm=100,Pm=/*#__PURE__*/function(){function e(){_classCallCheck(this,e);this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Om(),sampleRand:nm()};}return _createClass(e,[{key:"clone",value:function clone(){var t=new e();return t._breadcrumbs=_toConsumableArray(this._breadcrumbs),t._tags=_objectSpread({},this._tags),t._attributes=_objectSpread({},this._attributes),t._extra=_objectSpread({},this._extra),t._contexts=_objectSpread({},this._contexts),this._contexts.flags&&(t._contexts.flags={values:_toConsumableArray(this._contexts.flags.values)}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=_toConsumableArray(this._eventProcessors),t._attachments=_toConsumableArray(this._attachments),t._sdkProcessingMetadata=_objectSpread({},this._sdkProcessingMetadata),t._propagationContext=_objectSpread({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,jm(t,Mm(this)),t;}},{key:"setClient",value:function setClient(_e103){this._client=_e103;}},{key:"setLastEventId",value:function setLastEventId(_e104){this._lastEventId=_e104;}},{key:"getClient",value:function getClient(){return this._client;}},{key:"lastEventId",value:function lastEventId(){return this._lastEventId;}},{key:"addScopeListener",value:function addScopeListener(_e105){this._scopeListeners.push(_e105);}},{key:"addEventProcessor",value:function addEventProcessor(_e106){return this._eventProcessors.push(_e106),this;}},{key:"setUser",value:function setUser(_e107){return this._user=_e107||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&wm(this._session,{user:_e107}),this._notifyScopeListeners(),this;}},{key:"getUser",value:function getUser(){return this._user;}},{key:"setConversationId",value:function setConversationId(_e108){return this._conversationId=_e108||void 0,this._notifyScopeListeners(),this;}},{key:"setTags",value:function setTags(_e109){return this._tags=_objectSpread(_objectSpread({},this._tags),_e109),this._notifyScopeListeners(),this;}},{key:"setTag",value:function setTag(_e110,t){return this.setTags(_defineProperty({},_e110,t));}},{key:"setAttributes",value:function setAttributes(_e111){return this._attributes=_objectSpread(_objectSpread({},this._attributes),_e111),this._notifyScopeListeners(),this;}},{key:"setAttribute",value:function setAttribute(_e112,t){return this.setAttributes(_defineProperty({},_e112,t));}},{key:"removeAttribute",value:function removeAttribute(_e113){return _e113 in this._attributes&&(delete this._attributes[_e113],this._notifyScopeListeners()),this;}},{key:"setExtras",value:function setExtras(_e114){return this._extra=_objectSpread(_objectSpread({},this._extra),_e114),this._notifyScopeListeners(),this;}},{key:"setExtra",value:function setExtra(_e115,t){return this._extra=_objectSpread(_objectSpread({},this._extra),{},_defineProperty({},_e115,t)),this._notifyScopeListeners(),this;}},{key:"setFingerprint",value:function setFingerprint(_e116){return this._fingerprint=_e116,this._notifyScopeListeners(),this;}},{key:"setLevel",value:function setLevel(_e117){return this._level=_e117,this._notifyScopeListeners(),this;}},{key:"setTransactionName",value:function setTransactionName(_e118){return this._transactionName=_e118,this._notifyScopeListeners(),this;}},{key:"setContext",value:function setContext(_e119,t){return t===null?delete this._contexts[_e119]:this._contexts[_e119]=t,this._notifyScopeListeners(),this;}},{key:"setSession",value:function setSession(_e120){return _e120?this._session=_e120:delete this._session,this._notifyScopeListeners(),this;}},{key:"getSession",value:function getSession(){return this._session;}},{key:"update",value:function update(t){if(!t)return this;var n=typeof t=="function"?t(this):t,_ref4=(n instanceof e?n.getScopeData():jp(n)?t:void 0)||{},r=_ref4.tags,i=_ref4.attributes,a=_ref4.extra,o=_ref4.user,s=_ref4.contexts,c=_ref4.level,_ref4$fingerprint=_ref4.fingerprint,l=_ref4$fingerprint===void 0?[]:_ref4$fingerprint,u=_ref4.propagationContext,d=_ref4.conversationId;return this._tags=_objectSpread(_objectSpread({},this._tags),r),this._attributes=_objectSpread(_objectSpread({},this._attributes),i),this._extra=_objectSpread(_objectSpread({},this._extra),a),this._contexts=_objectSpread(_objectSpread({},this._contexts),s),o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this;}},{key:"clear",value:function clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,jm(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Om(),sampleRand:nm()}),this._notifyScopeListeners(),this;}},{key:"addBreadcrumb",value:function addBreadcrumb(_e121,t){var n=typeof t=="number"?t:Nm;if(n<=0)return this;var r=_objectSpread(_objectSpread({timestamp:ym()},_e121),{},{message:_e121.message?im(_e121.message,2048):_e121.message});if(this._breadcrumbs.push(r),this._breadcrumbs.length>n){var i;this._breadcrumbs=this._breadcrumbs.slice(-n),(i=this._client)==null||i.recordDroppedEvent("buffer_overflow","log_item");}return this._notifyScopeListeners(),this;}},{key:"getLastBreadcrumb",value:function getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1];}},{key:"clearBreadcrumbs",value:function clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this;}},{key:"addAttachment",value:function addAttachment(_e122){return this._attachments.push(_e122),this;}},{key:"clearAttachments",value:function clearAttachments(){return this._attachments=[],this;}},{key:"getScopeData",value:function getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Mm(this),conversationId:this._conversationId};}},{key:"setSDKProcessingMetadata",value:function setSDKProcessingMetadata(_e123){return this._sdkProcessingMetadata=Dm(this._sdkProcessingMetadata,_e123,2),this;}},{key:"setPropagationContext",value:function setPropagationContext(_e124){return this._propagationContext=_e124,this;}},{key:"getPropagationContext",value:function getPropagationContext(){return this._propagationContext;}},{key:"captureException",value:function captureException(_e125,t){var n=(t==null?void 0:t.event_id)||dm();if(!this._client)return X&&Q.warn("No client configured on scope - will not capture exception!"),n;var r=/* @__PURE__ */Error("Sentry syntheticException");return this._client.captureException(_e125,_objectSpread(_objectSpread({originalException:_e125,syntheticException:r},t),{},{event_id:n}),this),n;}},{key:"captureMessage",value:function captureMessage(_e126,t,n){var r;var i=(n==null?void 0:n.event_id)||dm();if(!this._client)return X&&Q.warn("No client configured on scope - will not capture message!"),i;var a=(r=n==null?void 0:n.syntheticException)==null?Error(_e126):r;return this._client.captureMessage(_e126,t,_objectSpread(_objectSpread({originalException:_e126,syntheticException:a},n),{},{event_id:i}),this),i;}},{key:"captureEvent",value:function captureEvent(_e127,t){var n=_e127.event_id||(t==null?void 0:t.event_id)||dm();return this._client?(this._client.captureEvent(_e127,_objectSpread(_objectSpread({},t),{},{event_id:n}),this),n):(X&&Q.warn("No client configured on scope - will not capture event!"),n);}},{key:"_notifyScopeListeners",value:function _notifyScopeListeners(){var _this17=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(_e128){_e128(_this17);}),this._notifyingListeners=!1);}}]);}();//#endregion
297
+ var Rm=100,zm=/*#__PURE__*/function(){function e(){_classCallCheck(this,e);this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Nm(),sampleRand:sm()};}return _createClass(e,[{key:"clone",value:function clone(){var t=new e();return t._breadcrumbs=_toConsumableArray(this._breadcrumbs),t._tags=_objectSpread({},this._tags),t._attributes=_objectSpread({},this._attributes),t._extra=_objectSpread({},this._extra),t._contexts=_objectSpread({},this._contexts),this._contexts.flags&&(t._contexts.flags={values:_toConsumableArray(this._contexts.flags.values)}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=_toConsumableArray(this._eventProcessors),t._attachments=_toConsumableArray(this._attachments),t._sdkProcessingMetadata=_objectSpread({},this._sdkProcessingMetadata),t._propagationContext=_objectSpread({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Im(t,Lm(this)),t;}},{key:"setClient",value:function setClient(_e103){this._client=_e103;}},{key:"setLastEventId",value:function setLastEventId(_e104){this._lastEventId=_e104;}},{key:"getClient",value:function getClient(){return this._client;}},{key:"lastEventId",value:function lastEventId(){return this._lastEventId;}},{key:"addScopeListener",value:function addScopeListener(_e105){this._scopeListeners.push(_e105);}},{key:"addEventProcessor",value:function addEventProcessor(_e106){return this._eventProcessors.push(_e106),this;}},{key:"setUser",value:function setUser(_e107){return this._user=_e107||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&km(this._session,{user:_e107}),this._notifyScopeListeners(),this;}},{key:"getUser",value:function getUser(){return this._user;}},{key:"setConversationId",value:function setConversationId(_e108){return this._conversationId=_e108||void 0,this._notifyScopeListeners(),this;}},{key:"setTags",value:function setTags(_e109){return this._tags=_objectSpread(_objectSpread({},this._tags),_e109),this._notifyScopeListeners(),this;}},{key:"setTag",value:function setTag(_e110,t){return this.setTags(_defineProperty({},_e110,t));}},{key:"setAttributes",value:function setAttributes(_e111){return this._attributes=_objectSpread(_objectSpread({},this._attributes),_e111),this._notifyScopeListeners(),this;}},{key:"setAttribute",value:function setAttribute(_e112,t){return this.setAttributes(_defineProperty({},_e112,t));}},{key:"removeAttribute",value:function removeAttribute(_e113){return _e113 in this._attributes&&(delete this._attributes[_e113],this._notifyScopeListeners()),this;}},{key:"setExtras",value:function setExtras(_e114){return this._extra=_objectSpread(_objectSpread({},this._extra),_e114),this._notifyScopeListeners(),this;}},{key:"setExtra",value:function setExtra(_e115,t){return this._extra=_objectSpread(_objectSpread({},this._extra),{},_defineProperty({},_e115,t)),this._notifyScopeListeners(),this;}},{key:"setFingerprint",value:function setFingerprint(_e116){return this._fingerprint=_e116,this._notifyScopeListeners(),this;}},{key:"setLevel",value:function setLevel(_e117){return this._level=_e117,this._notifyScopeListeners(),this;}},{key:"setTransactionName",value:function setTransactionName(_e118){return this._transactionName=_e118,this._notifyScopeListeners(),this;}},{key:"setContext",value:function setContext(_e119,t){return t===null?delete this._contexts[_e119]:this._contexts[_e119]=t,this._notifyScopeListeners(),this;}},{key:"setSession",value:function setSession(_e120){return _e120?this._session=_e120:delete this._session,this._notifyScopeListeners(),this;}},{key:"getSession",value:function getSession(){return this._session;}},{key:"update",value:function update(t){if(!t)return this;var n=typeof t=="function"?t(this):t,_ref4=(n instanceof e?n.getScopeData():Ip(n)?t:void 0)||{},r=_ref4.tags,i=_ref4.attributes,a=_ref4.extra,o=_ref4.user,s=_ref4.contexts,c=_ref4.level,_ref4$fingerprint=_ref4.fingerprint,l=_ref4$fingerprint===void 0?[]:_ref4$fingerprint,u=_ref4.propagationContext,d=_ref4.conversationId;return this._tags=_objectSpread(_objectSpread({},this._tags),r),this._attributes=_objectSpread(_objectSpread({},this._attributes),i),this._extra=_objectSpread(_objectSpread({},this._extra),a),this._contexts=_objectSpread(_objectSpread({},this._contexts),s),o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this;}},{key:"clear",value:function clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Im(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Nm(),sampleRand:sm()}),this._notifyScopeListeners(),this;}},{key:"addBreadcrumb",value:function addBreadcrumb(_e121,t){var n=typeof t=="number"?t:Rm;if(n<=0)return this;var r=_objectSpread(_objectSpread({timestamp:wm()},_e121),{},{message:_e121.message?lm(_e121.message,2048):_e121.message});if(this._breadcrumbs.push(r),this._breadcrumbs.length>n){var i;this._breadcrumbs=this._breadcrumbs.slice(-n),(i=this._client)==null||i.recordDroppedEvent("buffer_overflow","log_item");}return this._notifyScopeListeners(),this;}},{key:"getLastBreadcrumb",value:function getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1];}},{key:"clearBreadcrumbs",value:function clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this;}},{key:"addAttachment",value:function addAttachment(_e122){return this._attachments.push(_e122),this;}},{key:"clearAttachments",value:function clearAttachments(){return this._attachments=[],this;}},{key:"getScopeData",value:function getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Lm(this),conversationId:this._conversationId};}},{key:"setSDKProcessingMetadata",value:function setSDKProcessingMetadata(_e123){return this._sdkProcessingMetadata=Mm(this._sdkProcessingMetadata,_e123,2),this;}},{key:"setPropagationContext",value:function setPropagationContext(_e124){return this._propagationContext=_e124,this;}},{key:"getPropagationContext",value:function getPropagationContext(){return this._propagationContext;}},{key:"captureException",value:function captureException(_e125,t){var n=(t==null?void 0:t.event_id)||gm();if(!this._client)return X&&Z.warn("No client configured on scope - will not capture exception!"),n;var r=/* @__PURE__ */Error("Sentry syntheticException");return this._client.captureException(_e125,_objectSpread(_objectSpread({originalException:_e125,syntheticException:r},t),{},{event_id:n}),this),n;}},{key:"captureMessage",value:function captureMessage(_e126,t,n){var r;var i=(n==null?void 0:n.event_id)||gm();if(!this._client)return X&&Z.warn("No client configured on scope - will not capture message!"),i;var a=(r=n==null?void 0:n.syntheticException)==null?Error(_e126):r;return this._client.captureMessage(_e126,t,_objectSpread(_objectSpread({originalException:_e126,syntheticException:a},n),{},{event_id:i}),this),i;}},{key:"captureEvent",value:function captureEvent(_e127,t){var n=_e127.event_id||(t==null?void 0:t.event_id)||gm();return this._client?(this._client.captureEvent(_e127,_objectSpread(_objectSpread({},t),{},{event_id:n}),this),n):(X&&Z.warn("No client configured on scope - will not capture event!"),n);}},{key:"_notifyScopeListeners",value:function _notifyScopeListeners(){var _this17=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(_e128){_e128(_this17);}),this._notifyingListeners=!1);}}]);}();//#endregion
298
298
  //#region node_modules/@sentry/core/build/esm/defaultScopes.js
299
- function Fm(){return Vf("defaultCurrentScope",function(){return new Pm();});}function Im(){return Vf("defaultIsolationScope",function(){return new Pm();});}//#endregion
299
+ function Bm(){return Kf("defaultCurrentScope",function(){return new zm();});}function Vm(){return Kf("defaultIsolationScope",function(){return new zm();});}//#endregion
300
300
  //#region node_modules/@sentry/core/build/esm/utils/chain-and-copy-promiselike.js
301
- var Lm=function Lm(e){return e instanceof Promise&&!e[Rm];},Rm=Symbol("chained PromiseLike"),zm=function zm(e,t,n){var r=e.then(function(e){return t(e),e;},function(e){throw n(e),e;});return Lm(r)&&Lm(e)?r:Bm(e,r);},Bm=function Bm(e,t){var n=!1;var _loop8=function _loop8(){if(_r63 in t)return 1;// continue
302
- n=!0;var i=e[_r63];typeof i=="function"?Object.defineProperty(t,_r63,{value:function value(){for(var _len10=arguments.length,t=new Array(_len10),_key10=0;_key10<_len10;_key10++){t[_key10]=arguments[_key10];}return i.apply(e,t);},enumerable:!0,configurable:!0,writable:!0}):t[_r63]=i;};for(var _r63 in e){if(_loop8())continue;}return n&&Object.assign(t,_defineProperty({},Rm,!0)),t;},Vm=/*#__PURE__*/function(){function Vm(e,t){_classCallCheck(this,Vm);var n;n=e||new Pm();var r;r=t||new Pm(),this._stack=[{scope:n}],this._isolationScope=r;}return _createClass(Vm,[{key:"withScope",value:function withScope(e){var _this18=this;var t=this._pushScope(),n;try{n=e(t);}catch(e){throw this._popScope(),e;}return Fp(n)?zm(n,function(){return _this18._popScope();},function(){return _this18._popScope();}):(this._popScope(),n);}},{key:"getClient",value:function getClient(){return this.getStackTop().client;}},{key:"getScope",value:function getScope(){return this.getStackTop().scope;}},{key:"getIsolationScope",value:function getIsolationScope(){return this._isolationScope;}},{key:"getStackTop",value:function getStackTop(){return this._stack[this._stack.length-1];}},{key:"_pushScope",value:function _pushScope(){var e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e;}},{key:"_popScope",value:function _popScope(){return this._stack.length<=1?!1:!!this._stack.pop();}}]);}();function Hm(){var e=Bf(zf());return e.stack=e.stack||new Vm(Fm(),Im());}function Um(e){return Hm().withScope(e);}function Wm(e,t){var n=Hm();return n.withScope(function(){return n.getStackTop().scope=e,t(e);});}function Gm(e){return Hm().withScope(function(){return e(Hm().getIsolationScope());});}function Km(){return{withIsolationScope:Gm,withScope:Um,withSetScope:Wm,withSetIsolationScope:function withSetIsolationScope(e,t){return Gm(t);},getCurrentScope:function getCurrentScope(){return Hm().getScope();},getIsolationScope:function getIsolationScope(){return Hm().getIsolationScope();}};}//#endregion
301
+ var Hm=function Hm(e){return e instanceof Promise&&!e[Um];},Um=Symbol("chained PromiseLike"),Wm=function Wm(e,t,n){var r=e.then(function(e){return t(e),e;},function(e){throw n(e),e;});return Hm(r)&&Hm(e)?r:Gm(e,r);},Gm=function Gm(e,t){var n=!1;var _loop8=function _loop8(){if(_r63 in t)return 1;// continue
302
+ n=!0;var i=e[_r63];typeof i=="function"?Object.defineProperty(t,_r63,{value:function value(){for(var _len10=arguments.length,t=new Array(_len10),_key10=0;_key10<_len10;_key10++){t[_key10]=arguments[_key10];}return i.apply(e,t);},enumerable:!0,configurable:!0,writable:!0}):t[_r63]=i;};for(var _r63 in e){if(_loop8())continue;}return n&&Object.assign(t,_defineProperty({},Um,!0)),t;},Km=/*#__PURE__*/function(){function Km(e,t){_classCallCheck(this,Km);var n;n=e||new zm();var r;r=t||new zm(),this._stack=[{scope:n}],this._isolationScope=r;}return _createClass(Km,[{key:"withScope",value:function withScope(e){var _this18=this;var t=this._pushScope(),n;try{n=e(t);}catch(e){throw this._popScope(),e;}return Bp(n)?Wm(n,function(){return _this18._popScope();},function(){return _this18._popScope();}):(this._popScope(),n);}},{key:"getClient",value:function getClient(){return this.getStackTop().client;}},{key:"getScope",value:function getScope(){return this.getStackTop().scope;}},{key:"getIsolationScope",value:function getIsolationScope(){return this._isolationScope;}},{key:"getStackTop",value:function getStackTop(){return this._stack[this._stack.length-1];}},{key:"_pushScope",value:function _pushScope(){var e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e;}},{key:"_popScope",value:function _popScope(){return this._stack.length<=1?!1:!!this._stack.pop();}}]);}();function qm(){var e=Gf(Wf());return e.stack=e.stack||new Km(Bm(),Vm());}function Jm(e){return qm().withScope(e);}function Ym(e,t){var n=qm();return n.withScope(function(){return n.getStackTop().scope=e,t(e);});}function Xm(e){return qm().withScope(function(){return e(qm().getIsolationScope());});}function Zm(){return{withIsolationScope:Xm,withScope:Jm,withSetScope:Ym,withSetIsolationScope:function withSetIsolationScope(e,t){return Xm(t);},getCurrentScope:function getCurrentScope(){return qm().getScope();},getIsolationScope:function getIsolationScope(){return qm().getIsolationScope();}};}//#endregion
303
303
  //#region node_modules/@sentry/core/build/esm/asyncContext/index.js
304
- function qm(e){var t=Bf(e);return t.acs?t.acs:Km();}//#endregion
304
+ function Qm(e){var t=Gf(e);return t.acs?t.acs:Zm();}//#endregion
305
305
  //#region node_modules/@sentry/core/build/esm/currentScopes.js
306
- var Jm;function Ym(){return Jm==null?void 0:Jm();}function Xm(){return qm(zf()).getCurrentScope();}function Zm(){return qm(zf()).getIsolationScope();}function Qm(){return Vf("globalScope",function(){return new Pm();});}function $m(){var t=qm(zf());for(var _len11=arguments.length,e=new Array(_len11),_key11=0;_key11<_len11;_key11++){e[_key11]=arguments[_key11];}if(e.length===2){var _n73=e[0],_r64=e[1];return _n73?t.withSetScope(_n73,_r64):t.withScope(_r64);}return t.withScope(e[0]);}function eh(){return Xm().getClient();}function th(e){var t=Ym();if(t)return{trace_id:t.traceId,span_id:t.spanId};var _e$getPropagationCont=e.getPropagationContext(),n=_e$getPropagationCont.traceId,r=_e$getPropagationCont.parentSpanId,i=_e$getPropagationCont.propagationSpanId,a={trace_id:n,span_id:i||km()};return r&&(a.parent_span_id=r),a;}var nh="sentry.previous_trace_sample_rate",rh="sentry.op",ih="sentry.origin",ah="sentry.profile_id",oh="sentry.exclusive_time",sh="gen_ai.conversation.id";//#endregion
306
+ var $m;function eh(){return $m==null?void 0:$m();}function th(){return Qm(Wf()).getCurrentScope();}function nh(){return Qm(Wf()).getIsolationScope();}function rh(){return Kf("globalScope",function(){return new zm();});}function ih(){var t=Qm(Wf());for(var _len11=arguments.length,e=new Array(_len11),_key11=0;_key11<_len11;_key11++){e[_key11]=arguments[_key11];}if(e.length===2){var _n73=e[0],_r64=e[1];return _n73?t.withSetScope(_n73,_r64):t.withScope(_r64);}return t.withScope(e[0]);}function ah(){return th().getClient();}function oh(e){var t=eh();if(t)return{trace_id:t.traceId,span_id:t.spanId};var _e$getPropagationCont=e.getPropagationContext(),n=_e$getPropagationCont.traceId,r=_e$getPropagationCont.parentSpanId,i=_e$getPropagationCont.propagationSpanId,a={trace_id:n,span_id:i||Pm()};return r&&(a.parent_span_id=r),a;}var sh="sentry.previous_trace_sample_rate",ch="sentry.op",lh="sentry.origin",uh="sentry.profile_id",dh="sentry.exclusive_time",fh="gen_ai.conversation.id";//#endregion
307
307
  //#region node_modules/@sentry/core/build/esm/utils/weakRef.js
308
- function ch(e){if(e){if(_typeof(e)=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref();}catch(e){return;}return e;}}//#endregion
308
+ function ph(e){if(e){if(_typeof(e)=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref();}catch(e){return;}return e;}}//#endregion
309
309
  //#region node_modules/@sentry/core/build/esm/tracing/utils.js
310
- var lh="_sentryScope",uh="_sentryIsolationScope";function dh(e){var t=e;return{scope:t[lh],isolationScope:ch(t[uh])};}function fh(e){var t=ph(e);if(!t)return;var n=Object.entries(t).reduce(function(e,_ref5){var _ref6=_slicedToArray(_ref5,2),t=_ref6[0],n=_ref6[1];if(t.startsWith("sentry-")){var _r65=t.slice(7);e[_r65]=n;}return e;},{});if(Object.keys(n).length>0)return n;}function ph(e){if(!(!e||!Op(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce(function(e,t){var n=mh(t);return Object.entries(n).forEach(function(_ref7){var _ref8=_slicedToArray(_ref7,2),t=_ref8[0],n=_ref8[1];e[t]=n;}),e;},{}):mh(e);}function mh(e){return e.split(",").map(function(e){var t=e.indexOf("=");return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(function(e){try{return decodeURIComponent(e.trim());}catch(e){return;}});}).reduce(function(e,_ref9){var _ref0=_slicedToArray(_ref9,2),t=_ref0[0],n=_ref0[1];return t&&n&&(e[t]=n),e;},{});}//#endregion
310
+ var mh="_sentryScope",hh="_sentryIsolationScope";function gh(e){var t=e;return{scope:t[mh],isolationScope:ph(t[hh])};}function _h(e){var t=vh(e);if(!t)return;var n=Object.entries(t).reduce(function(e,_ref5){var _ref6=_slicedToArray(_ref5,2),t=_ref6[0],n=_ref6[1];if(t.startsWith("sentry-")){var _r65=t.slice(7);e[_r65]=n;}return e;},{});if(Object.keys(n).length>0)return n;}function vh(e){if(!(!e||!Np(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce(function(e,t){var n=yh(t);return Object.entries(n).forEach(function(_ref7){var _ref8=_slicedToArray(_ref7,2),t=_ref8[0],n=_ref8[1];e[t]=n;}),e;},{}):yh(e);}function yh(e){return e.split(",").map(function(e){var t=e.indexOf("=");return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(function(e){try{return decodeURIComponent(e.trim());}catch(e){return;}});}).reduce(function(e,_ref9){var _ref0=_slicedToArray(_ref9,2),t=_ref0[0],n=_ref0[1];return t&&n&&(e[t]=n),e;},{});}//#endregion
311
311
  //#region node_modules/@sentry/core/build/esm/utils/dsn.js
312
- var hh=/^o(\d+)\./,gh=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function _h(e){return e==="http"||e==="https";}function vh(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=e.host,r=e.path,i=e.pass,a=e.port,o=e.projectId,s=e.protocol,c=e.publicKey;return"".concat(s,"://").concat(c).concat(t&&i?":".concat(i):"","@").concat(n).concat(a?":".concat(a):"","/").concat(r&&"".concat(r,"/")).concat(o);}function yh(e){var t=gh.exec(e);if(!t){Gf(function(){console.error("Invalid Sentry Dsn: ".concat(e));});return;}var _t$slice=t.slice(1),_t$slice2=_slicedToArray(_t$slice,6),n=_t$slice2[0],r=_t$slice2[1],_t$slice2$=_t$slice2[2],i=_t$slice2$===void 0?"":_t$slice2$,_t$slice2$2=_t$slice2[3],a=_t$slice2$2===void 0?"":_t$slice2$2,_t$slice2$3=_t$slice2[4],o=_t$slice2$3===void 0?"":_t$slice2$3,_t$slice2$4=_t$slice2[5],s=_t$slice2$4===void 0?"":_t$slice2$4,c="",l=s,u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){var _e129=l.match(/^\d+/);_e129&&(l=_e129[0]);}return bh({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r});}function bh(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId};}function xh(e){if(!X)return!0;var t=e.port,n=e.projectId,r=e.protocol;return["protocol","publicKey","host","projectId"].find(function(t){return e[t]?!1:(Q.error("Invalid Sentry Dsn: ".concat(t," missing")),!0);})?!1:n.match(/^\d+$/)?_h(r)?t&&isNaN(parseInt(t,10))?(Q.error("Invalid Sentry Dsn: Invalid port ".concat(t)),!1):!0:(Q.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),!1):(Q.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1);}function Sh(e){var t=e.match(hh);return t==null?void 0:t[1];}function Ch(e){var t=e.getOptions(),_ref1=e.getDsn()||{},n=_ref1.host,r;return t.orgId?r=String(t.orgId):n&&(r=Sh(n)),r;}function wh(e){var t=typeof e=="string"?yh(e):bh(e);if(!(!t||!xh(t)))return t;}//#endregion
312
+ var bh=/^o(\d+)\./,xh=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Sh(e){return e==="http"||e==="https";}function Ch(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=e.host,r=e.path,i=e.pass,a=e.port,o=e.projectId,s=e.protocol,c=e.publicKey;return"".concat(s,"://").concat(c).concat(t&&i?":".concat(i):"","@").concat(n).concat(a?":".concat(a):"","/").concat(r&&"".concat(r,"/")).concat(o);}function wh(e){var t=xh.exec(e);if(!t){Xf(function(){console.error("Invalid Sentry Dsn: ".concat(e));});return;}var _t$slice=t.slice(1),_t$slice2=_slicedToArray(_t$slice,6),n=_t$slice2[0],r=_t$slice2[1],_t$slice2$=_t$slice2[2],i=_t$slice2$===void 0?"":_t$slice2$,_t$slice2$2=_t$slice2[3],a=_t$slice2$2===void 0?"":_t$slice2$2,_t$slice2$3=_t$slice2[4],o=_t$slice2$3===void 0?"":_t$slice2$3,_t$slice2$4=_t$slice2[5],s=_t$slice2$4===void 0?"":_t$slice2$4,c="",l=s,u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){var _e129=l.match(/^\d+/);_e129&&(l=_e129[0]);}return Th({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r});}function Th(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId};}function Eh(e){if(!X)return!0;var t=e.port,n=e.projectId,r=e.protocol;return["protocol","publicKey","host","projectId"].find(function(t){return e[t]?!1:(Z.error("Invalid Sentry Dsn: ".concat(t," missing")),!0);})?!1:n.match(/^\d+$/)?Sh(r)?t&&isNaN(parseInt(t,10))?(Z.error("Invalid Sentry Dsn: Invalid port ".concat(t)),!1):!0:(Z.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),!1):(Z.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1);}function Dh(e){var t=e.match(bh);return t==null?void 0:t[1];}function Oh(e){var t=e.getOptions(),_ref1=e.getDsn()||{},n=_ref1.host,r;return t.orgId?r=String(t.orgId):n&&(r=Dh(n)),r;}function kh(e){var t=typeof e=="string"?wh(e):Th(e);if(!(!t||!Eh(t)))return t;}//#endregion
313
313
  //#region node_modules/@sentry/core/build/esm/utils/parseSampleRate.js
314
- function Th(e){if(typeof e=="boolean")return Number(e);var t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t;}var Eh=!1;function Dh(e){var _e$spanContext=e.spanContext(),t=_e$spanContext.spanId,n=_e$spanContext.traceId,r=_e$spanContext.isRemote,i=r?t:jh(e).parent_span_id,a=dh(e).scope;return{parent_span_id:i,span_id:r?(a==null?void 0:a.getPropagationContext().propagationSpanId)||km():t,trace_id:n};}function Oh(e){if(e&&e.length>0)return e.map(function(_ref10){var _ref10$context=_ref10.context,e=_ref10$context.spanId,t=_ref10$context.traceId,n=_ref10$context.traceFlags,r=_objectWithoutProperties(_ref10$context,_excluded),i=_ref10.attributes;return _objectSpread({span_id:e,trace_id:t,sampled:n===1,attributes:i},r);});}function kh(e){return typeof e=="number"?Ah(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Ah(e.getTime()):Sm();}function Ah(e){return e>9999999999?e/1e3:e;}function jh(e){if(Ph(e))return e.getSpanJSON();var _e$spanContext2=e.spanContext(),t=_e$spanContext2.spanId,n=_e$spanContext2.traceId;if(Nh(e)){var _r66=e.attributes,_i42=e.startTime,_a1=e.name,_o15=e.endTime,_s3=e.status,_c4=e.links;return{span_id:t,trace_id:n,data:_r66,description:_a1,parent_span_id:Mh(e),start_timestamp:kh(_i42),timestamp:kh(_o15)||void 0,status:Ih(_s3),op:_r66[rh],origin:_r66[ih],links:Oh(_c4)};}return{span_id:t,trace_id:n,start_timestamp:0,data:{}};}function Mh(e){var t;return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(t=e.parentSpanContext)==null?void 0:t.spanId:void 0;}function Nh(e){var t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status;}function Ph(e){return typeof e.getSpanJSON=="function";}function Fh(e){var _e$spanContext3=e.spanContext(),t=_e$spanContext3.traceFlags;return t===1;}function Ih(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"internal_error";}var Lh="_sentryRootSpan",Rh=zh;function zh(e){return e[Lh]||e;}function Bh(){Eh||(Gf(function(){console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.");}),Eh=!0);}//#endregion
314
+ function Ah(e){if(typeof e=="boolean")return Number(e);var t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t;}var jh=!1;function Mh(e){var _e$spanContext=e.spanContext(),t=_e$spanContext.spanId,n=_e$spanContext.traceId,r=_e$spanContext.isRemote,i=r?t:Ih(e).parent_span_id,a=gh(e).scope;return{parent_span_id:i,span_id:r?(a==null?void 0:a.getPropagationContext().propagationSpanId)||Pm():t,trace_id:n};}function Nh(e){if(e&&e.length>0)return e.map(function(_ref10){var _ref10$context=_ref10.context,e=_ref10$context.spanId,t=_ref10$context.traceId,n=_ref10$context.traceFlags,r=_objectWithoutProperties(_ref10$context,_excluded),i=_ref10.attributes;return _objectSpread({span_id:e,trace_id:t,sampled:n===1,attributes:i},r);});}function Ph(e){return typeof e=="number"?Fh(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Fh(e.getTime()):Dm();}function Fh(e){return e>9999999999?e/1e3:e;}function Ih(e){if(zh(e))return e.getSpanJSON();var _e$spanContext2=e.spanContext(),t=_e$spanContext2.spanId,n=_e$spanContext2.traceId;if(Rh(e)){var _r66=e.attributes,_i42=e.startTime,_a1=e.name,_o15=e.endTime,_s3=e.status,_c4=e.links;return{span_id:t,trace_id:n,data:_r66,description:_a1,parent_span_id:Lh(e),start_timestamp:Ph(_i42),timestamp:Ph(_o15)||void 0,status:Vh(_s3),op:_r66[ch],origin:_r66[lh],links:Nh(_c4)};}return{span_id:t,trace_id:n,start_timestamp:0,data:{}};}function Lh(e){var t;return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(t=e.parentSpanContext)==null?void 0:t.spanId:void 0;}function Rh(e){var t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status;}function zh(e){return typeof e.getSpanJSON=="function";}function Bh(e){var _e$spanContext3=e.spanContext(),t=_e$spanContext3.traceFlags;return t===1;}function Vh(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"internal_error";}var Hh="_sentryRootSpan",Uh=Wh;function Wh(e){return e[Hh]||e;}function Gh(){jh||(Xf(function(){console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.");}),jh=!0);}//#endregion
315
315
  //#region node_modules/@sentry/core/build/esm/utils/hasSpansEnabled.js
316
- function Vh(e){var t;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;var n=e||((t=eh())==null?void 0:t.getOptions());return!!n&&(n.tracesSampleRate!=null||!!n.tracesSampler);}//#endregion
316
+ function Kh(e){var t;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;var n=e||((t=ah())==null?void 0:t.getOptions());return!!n&&(n.tracesSampleRate!=null||!!n.tracesSampler);}//#endregion
317
317
  //#region node_modules/@sentry/core/build/esm/utils/should-ignore-span.js
318
- function Hh(e){Q.log("Ignoring span ".concat(e.op," - ").concat(e.description," because it matches `ignoreSpans`."));}function Uh(e,t){if(!(t!=null&&t.length))return!1;var _iterator77=_createForOfIteratorHelper(t),_step77;try{for(_iterator77.s();!(_step77=_iterator77.n()).done;){var _n74=_step77.value;if(Kh(_n74)){if(e.description&&om(e.description,_n74))return X&&Hh(e),!0;continue;}var _t100=!!_n74.attributes&&Object.keys(_n74.attributes).length>0;if(!_n74.name&&!_n74.op&&!_t100)continue;var _r67=_n74.name?e.description&&om(e.description,_n74.name):!0,_i43=_n74.op?e.op&&om(e.op,_n74.op):!0,_a10=_n74.attributes?Object.entries(_n74.attributes).every(function(_ref11){var _ref12=_slicedToArray(_ref11,2),t=_ref12[0],n=_ref12[1];var r;return Wh((r=e.attributes)==null?void 0:r[t],n);}):!0;if(_r67&&_i43&&_a10)return X&&Hh(e),!0;}}catch(err){_iterator77.e(err);}finally{_iterator77.f();}return!1;}function Wh(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?om(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,n){return e===t[n];}):e===t;}function Gh(e,t){var n=t.parent_span_id,r=t.span_id;if(n){var _iterator78=_createForOfIteratorHelper(e),_step78;try{for(_iterator78.s();!(_step78=_iterator78.n()).done;){var _t101=_step78.value;_t101.parent_span_id===r&&(_t101.parent_span_id=n);}}catch(err){_iterator78.e(err);}finally{_iterator78.f();}}}function Kh(e){return typeof e=="string"||e instanceof RegExp;}//#endregion
318
+ function qh(e){Z.log("Ignoring span ".concat(e.op," - ").concat(e.description," because it matches `ignoreSpans`."));}function Jh(e,t){if(!(t!=null&&t.length))return!1;var _iterator77=_createForOfIteratorHelper(t),_step77;try{for(_iterator77.s();!(_step77=_iterator77.n()).done;){var _n74=_step77.value;if(Zh(_n74)){if(e.description&&dm(e.description,_n74))return X&&qh(e),!0;continue;}var _t100=!!_n74.attributes&&Object.keys(_n74.attributes).length>0;if(!_n74.name&&!_n74.op&&!_t100)continue;var _r67=_n74.name?e.description&&dm(e.description,_n74.name):!0,_i43=_n74.op?e.op&&dm(e.op,_n74.op):!0,_a10=_n74.attributes?Object.entries(_n74.attributes).every(function(_ref11){var _ref12=_slicedToArray(_ref11,2),t=_ref12[0],n=_ref12[1];var r;return Yh((r=e.attributes)==null?void 0:r[t],n);}):!0;if(_r67&&_i43&&_a10)return X&&qh(e),!0;}}catch(err){_iterator77.e(err);}finally{_iterator77.f();}return!1;}function Yh(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?dm(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,n){return e===t[n];}):e===t;}function Xh(e,t){var n=t.parent_span_id,r=t.span_id;if(n){var _iterator78=_createForOfIteratorHelper(e),_step78;try{for(_iterator78.s();!(_step78=_iterator78.n()).done;){var _t101=_step78.value;_t101.parent_span_id===r&&(_t101.parent_span_id=n);}}catch(err){_iterator78.e(err);}finally{_iterator78.f();}}}function Zh(e){return typeof e=="string"||e instanceof RegExp;}//#endregion
319
319
  //#region node_modules/@sentry/core/build/esm/constants.js
320
- var qh="production",Jh="_frozenDsc";function Yh(e,t){var n=t.getOptions(),_ref13=t.getDsn()||{},r=_ref13.publicKey,i={environment:n.environment||"production",release:n.release,public_key:r,trace_id:e,org_id:Ch(t)};return t.emit("createDsc",i),i;}function Xh(e,t){var n=t.getPropagationContext();return n.dsc||Yh(n.traceId,e);}function Zh(e){var t,n,r;var i=eh();if(!i)return{};var a=Rh(e),o=jh(a),s=o.data,c=a.spanContext().traceState,l=(t=(n=c==null?void 0:c.get("sentry.sample_rate"))==null?s["sentry.sample_rate"]:n)==null?s[nh]:t;function u(e){return(typeof l=="number"||typeof l=="string")&&(e.sample_rate="".concat(l)),e;}var d=a[Jh];if(d)return u(d);var f=c==null?void 0:c.get("sentry.dsc"),p=f&&fh(f);if(p)return u(p);var m=Yh(e.spanContext().traceId,i),h=(r=s["sentry.source"])==null?s["sentry.span.source"]:r,g=o.description;if(h!=="url"&&g&&(m.transaction=g),Vh()){var _,v;m.sampled=String(Fh(a)),m.sample_rand=(_=c==null?void 0:c.get("sentry.sample_rand"))==null?(v=dh(a).scope)==null?void 0:v.getPropagationContext().sampleRand.toString():_;}return u(m),i.emit("createDsc",m,a),m;}//#endregion
320
+ var Qh="production",$h="_frozenDsc";function eg(e,t){var n=t.getOptions(),_ref13=t.getDsn()||{},r=_ref13.publicKey,i={environment:n.environment||"production",release:n.release,public_key:r,trace_id:e,org_id:Oh(t)};return t.emit("createDsc",i),i;}function tg(e,t){var n=t.getPropagationContext();return n.dsc||eg(n.traceId,e);}function ng(e){var t,n,r;var i=ah();if(!i)return{};var a=Uh(e),o=Ih(a),s=o.data,c=a.spanContext().traceState,l=(t=(n=c==null?void 0:c.get("sentry.sample_rate"))==null?s["sentry.sample_rate"]:n)==null?s[sh]:t;function u(e){return(typeof l=="number"||typeof l=="string")&&(e.sample_rate="".concat(l)),e;}var d=a[$h];if(d)return u(d);var f=c==null?void 0:c.get("sentry.dsc"),p=f&&_h(f);if(p)return u(p);var m=eg(e.spanContext().traceId,i),h=(r=s["sentry.source"])==null?s["sentry.span.source"]:r,g=o.description;if(h!=="url"&&g&&(m.transaction=g),Kh()){var _,v;m.sampled=String(Bh(a)),m.sample_rand=(_=c==null?void 0:c.get("sentry.sample_rand"))==null?(v=gh(a).scope)==null?void 0:v.getPropagationContext().sampleRand.toString():_;}return u(m),i.emit("createDsc",m,a),m;}//#endregion
321
321
  //#region node_modules/@sentry/core/build/esm/tracing/spans/beforeSendSpan.js
322
- function Qh(e){return!!e&&typeof e=="function"&&"_streamed"in e&&!!e._streamed;}//#endregion
322
+ function rg(e){return!!e&&typeof e=="function"&&"_streamed"in e&&!!e._streamed;}//#endregion
323
323
  //#region node_modules/@sentry/core/build/esm/utils/normalizationHints.js
324
- var $h=Symbol.for("sentry.skipNormalization"),eg=Symbol.for("sentry.overrideNormalizationDepth");function tg(e){return!!e[$h];}function ng(e){var t=e[eg];return typeof t=="number"?t:void 0;}//#endregion
324
+ var ig=Symbol.for("sentry.skipNormalization"),ag=Symbol.for("sentry.overrideNormalizationDepth");function og(e){return!!e[ig];}function sg(e){var t=e[ag];return typeof t=="number"?t:void 0;}//#endregion
325
325
  //#region node_modules/@sentry/core/build/esm/utils/normalize.js
326
- function rg(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:100;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Infinity;try{return ag("",e,t,n);}catch(e){return{ERROR:"**non-serializable** (".concat(e,")")};}}function ig(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:3;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:100*1024;var r=rg(e,t);return lg(r)>n?ig(e,t-1,n):r;}function ag(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Infinity;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Infinity;var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:ug();var _i44=_slicedToArray(i,2),a=_i44[0],o=_i44[1];if(t==null||["boolean","string"].includes(_typeof(t))||typeof t=="number"&&Number.isFinite(t))return t;var s=og(e,t);if(!s.startsWith("[object "))return s;if(tg(t))return t;var c=ng(t),l=c===void 0?n:c;if(l===0)return s.replace("object ","");if(a(t))return"[Circular ~]";var u=t;if(u&&typeof u.toJSON=="function")try{return ag("",u.toJSON(),l-1,r,i);}catch(e){}var d=Array.isArray(t)?[]:{},f=0,p=Xp(t);for(var _e130 in p){if(!Object.prototype.hasOwnProperty.call(p,_e130))continue;if(f>=r){d[_e130]="[MaxProperties ~]";break;}var _t102=p[_e130];d[_e130]=ag(_e130,_t102,l-1,r,i),f++;}return o(t),d;}function og(e,t){try{if(e==="domain"&&t&&_typeof(t)=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if((typeof global==="undefined"?"undefined":_typeof(global))<"u"&&t===global)return"[Global]";if((typeof window==="undefined"?"undefined":_typeof(window))<"u"&&t===window)return"[Window]";if((typeof document==="undefined"?"undefined":_typeof(document))<"u"&&t===document)return"[Document]";if(Rp(t))return up(t);if(Ip(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return"[".concat(t,"]");if(typeof t=="function")return"[Function: ".concat(cp(t),"]");if(_typeof(t)=="symbol")return"[".concat(String(t),"]");if(typeof t=="bigint")return"[BigInt: ".concat(String(t),"]");var _n75=sg(t);return /^HTML(\w*)Element$/.test(_n75)?"[HTMLElement: ".concat(_n75,"]"):"[object ".concat(_n75,"]");}catch(e){return"**non-serializable** (".concat(e,")");}}function sg(e){var t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype";}function cg(e){return~-encodeURI(e).split(/%..|./).length;}function lg(e){return cg(JSON.stringify(e));}function ug(){var e=/* @__PURE__ */new WeakSet();function t(t){return e.has(t)?!0:(e.add(t),!1);}function n(t){e.delete(t);}return[t,n];}//#endregion
326
+ function cg(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:100;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Infinity;try{return ug("",e,t,n);}catch(e){return{ERROR:"**non-serializable** (".concat(e,")")};}}function lg(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:3;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:100*1024;var r=cg(e,t);return mg(r)>n?lg(e,t-1,n):r;}function ug(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Infinity;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Infinity;var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:hg();var _i44=_slicedToArray(i,2),a=_i44[0],o=_i44[1];if(t==null||["boolean","string"].includes(_typeof(t))||typeof t=="number"&&Number.isFinite(t))return t;var s=dg(e,t);if(!s.startsWith("[object "))return s;if(og(t))return t;var c=sg(t),l=c===void 0?n:c;if(l===0)return s.replace("object ","");if(a(t))return"[Circular ~]";var u=t;if(u&&typeof u.toJSON=="function")try{return ug("",u.toJSON(),l-1,r,i);}catch(e){}var d=Array.isArray(t)?[]:{},f=0,p=tm(t);for(var _e130 in p){if(!Object.prototype.hasOwnProperty.call(p,_e130))continue;if(f>=r){d[_e130]="[MaxProperties ~]";break;}var _t102=p[_e130];d[_e130]=ug(_e130,_t102,l-1,r,i),f++;}return o(t),d;}function dg(e,t){try{if(e==="domain"&&t&&_typeof(t)=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if((typeof global==="undefined"?"undefined":_typeof(global))<"u"&&t===global)return"[Global]";if((typeof window==="undefined"?"undefined":_typeof(window))<"u"&&t===window)return"[Window]";if((typeof document==="undefined"?"undefined":_typeof(document))<"u"&&t===document)return"[Document]";if(Up(t))return hp(t);if(Vp(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return"[".concat(t,"]");if(typeof t=="function")return"[Function: ".concat(pp(t),"]");if(_typeof(t)=="symbol")return"[".concat(String(t),"]");if(typeof t=="bigint")return"[BigInt: ".concat(String(t),"]");var _n75=fg(t);return /^HTML(\w*)Element$/.test(_n75)?"[HTMLElement: ".concat(_n75,"]"):"[object ".concat(_n75,"]");}catch(e){return"**non-serializable** (".concat(e,")");}}function fg(e){var t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype";}function pg(e){return~-encodeURI(e).split(/%..|./).length;}function mg(e){return pg(JSON.stringify(e));}function hg(){var e=/* @__PURE__ */new WeakSet();function t(t){return e.has(t)?!0:(e.add(t),!1);}function n(t){e.delete(t);}return[t,n];}//#endregion
327
327
  //#region node_modules/@sentry/core/build/esm/utils/envelope.js
328
- function dg(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];return[e,t];}function fg(e,t){var _e131=_slicedToArray(e,2),n=_e131[0],r=_e131[1];return[n,[].concat(_toConsumableArray(r),[t])];}function pg(e,t){var n=e[1];var _iterator79=_createForOfIteratorHelper(n),_step79;try{for(_iterator79.s();!(_step79=_iterator79.n()).done;){var _e132=_step79.value;var _n76=_e132[0].type;if(t(_e132,_n76))return!0;}}catch(err){_iterator79.e(err);}finally{_iterator79.f();}return!1;}function mg(e,t){return pg(e,function(e,n){return t.includes(n);});}function hg(e){var t=Bf(Z);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e);}function gg(e){var _e133=_slicedToArray(e,2),t=_e133[0],n=_e133[1],r=JSON.stringify(t);function i(e){typeof r=="string"?r=typeof e=="string"?r+e:[hg(r),e]:r.push(typeof e=="string"?hg(e):e);}var _iterator80=_createForOfIteratorHelper(n),_step80;try{for(_iterator80.s();!(_step80=_iterator80.n()).done;){var _e134=_step80.value;var _e135=_slicedToArray(_e134,2),_t103=_e135[0],_n77=_e135[1];if(i("\n".concat(JSON.stringify(_t103),"\n")),typeof _n77=="string"||_n77 instanceof Uint8Array)i(_n77);else{var _e136=void 0;try{_e136=JSON.stringify(_n77);}catch(t){_e136=JSON.stringify(rg(_n77));}i(_e136);}}}catch(err){_iterator80.e(err);}finally{_iterator80.f();}return typeof r=="string"?r:_g(r);}function _g(e){var t=e.reduce(function(e,t){return e+t.length;},0),n=new Uint8Array(t),r=0;var _iterator81=_createForOfIteratorHelper(e),_step81;try{for(_iterator81.s();!(_step81=_iterator81.n()).done;){var _t104=_step81.value;n.set(_t104,r),r+=_t104.length;}}catch(err){_iterator81.e(err);}finally{_iterator81.f();}return n;}function vg(e){var t=typeof e.data=="string"?hg(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t];}var yg={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function bg(e){return e in yg;}function xg(e){return bg(e)?yg[e]:e;}function Sg(e){if(!(e!=null&&e.sdk))return;var _e$sdk=e.sdk,t=_e$sdk.name,n=_e$sdk.version;return{name:t,version:n};}function Cg(e,t,n,r){var i;var a=(i=e.sdkProcessingMetadata)==null?void 0:i.dynamicSamplingContext;return _objectSpread(_objectSpread(_objectSpread({event_id:e.event_id,sent_at:(/* @__PURE__ */new Date()).toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:vh(r)}),a&&{trace:a});}//#endregion
328
+ function gg(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];return[e,t];}function _g(e,t){var _e131=_slicedToArray(e,2),n=_e131[0],r=_e131[1];return[n,[].concat(_toConsumableArray(r),[t])];}function vg(e,t){var n=e[1];var _iterator79=_createForOfIteratorHelper(n),_step79;try{for(_iterator79.s();!(_step79=_iterator79.n()).done;){var _e132=_step79.value;var _n76=_e132[0].type;if(t(_e132,_n76))return!0;}}catch(err){_iterator79.e(err);}finally{_iterator79.f();}return!1;}function yg(e,t){return vg(e,function(e,n){return t.includes(n);});}function bg(e){var t=Gf(Hf);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e);}function xg(e){var _e133=_slicedToArray(e,2),t=_e133[0],n=_e133[1],r=JSON.stringify(t);function i(e){typeof r=="string"?r=typeof e=="string"?r+e:[bg(r),e]:r.push(typeof e=="string"?bg(e):e);}var _iterator80=_createForOfIteratorHelper(n),_step80;try{for(_iterator80.s();!(_step80=_iterator80.n()).done;){var _e134=_step80.value;var _e135=_slicedToArray(_e134,2),_t103=_e135[0],_n77=_e135[1];if(i("\n".concat(JSON.stringify(_t103),"\n")),typeof _n77=="string"||_n77 instanceof Uint8Array)i(_n77);else{var _e136=void 0;try{_e136=JSON.stringify(_n77);}catch(t){_e136=JSON.stringify(cg(_n77));}i(_e136);}}}catch(err){_iterator80.e(err);}finally{_iterator80.f();}return typeof r=="string"?r:Sg(r);}function Sg(e){var t=e.reduce(function(e,t){return e+t.length;},0),n=new Uint8Array(t),r=0;var _iterator81=_createForOfIteratorHelper(e),_step81;try{for(_iterator81.s();!(_step81=_iterator81.n()).done;){var _t104=_step81.value;n.set(_t104,r),r+=_t104.length;}}catch(err){_iterator81.e(err);}finally{_iterator81.f();}return n;}function Cg(e){var t=typeof e.data=="string"?bg(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t];}var wg={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function Tg(e){return e in wg;}function Eg(e){return Tg(e)?wg[e]:e;}function Dg(e){if(!(e!=null&&e.sdk))return;var _e$sdk=e.sdk,t=_e$sdk.name,n=_e$sdk.version;return{name:t,version:n};}function Og(e,t,n,r){var i;var a=(i=e.sdkProcessingMetadata)==null?void 0:i.dynamicSamplingContext;return _objectSpread(_objectSpread(_objectSpread({event_id:e.event_id,sent_at:(/* @__PURE__ */new Date()).toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:Ch(r)}),a&&{trace:a});}//#endregion
329
329
  //#region node_modules/@sentry/core/build/esm/envelope.js
330
- function wg(e,t){var n,r,i,a;if(!t)return e;var o=e.sdk||{};return e.sdk=_objectSpread(_objectSpread({},o),{},{name:o.name||t.name,version:o.version||t.version,integrations:[].concat(_toConsumableArray(((n=e.sdk)==null?void 0:n.integrations)||[]),_toConsumableArray(t.integrations||[])),packages:[].concat(_toConsumableArray(((r=e.sdk)==null?void 0:r.packages)||[]),_toConsumableArray(t.packages||[])),settings:(i=e.sdk)!=null&&i.settings||t.settings?_objectSpread(_objectSpread({},(a=e.sdk)==null?void 0:a.settings),t.settings):void 0}),e;}function Tg(e,t,n,r){var i=Sg(n);return dg(_objectSpread(_objectSpread({sent_at:(/* @__PURE__ */new Date()).toISOString()},i&&{sdk:i}),!!r&&t&&{dsn:vh(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]);}function Eg(e,t,n,r){var i=Sg(n),a=e.type&&e.type!=="replay_event"?e.type:"event";wg(e,n==null?void 0:n.sdk);var o=Cg(e,i,r,t);return delete e.sdkProcessingMetadata,dg(o,[[{type:a},e]]);}//#endregion
330
+ function kg(e,t){var n,r,i,a;if(!t)return e;var o=e.sdk||{};return e.sdk=_objectSpread(_objectSpread({},o),{},{name:o.name||t.name,version:o.version||t.version,integrations:[].concat(_toConsumableArray(((n=e.sdk)==null?void 0:n.integrations)||[]),_toConsumableArray(t.integrations||[])),packages:[].concat(_toConsumableArray(((r=e.sdk)==null?void 0:r.packages)||[]),_toConsumableArray(t.packages||[])),settings:(i=e.sdk)!=null&&i.settings||t.settings?_objectSpread(_objectSpread({},(a=e.sdk)==null?void 0:a.settings),t.settings):void 0}),e;}function Ag(e,t,n,r){var i=Dg(n);return gg(_objectSpread(_objectSpread({sent_at:(/* @__PURE__ */new Date()).toISOString()},i&&{sdk:i}),!!r&&t&&{dsn:Ch(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]);}function jg(e,t,n,r){var i=Dg(n),a=e.type&&e.type!=="replay_event"?e.type:"event";kg(e,n==null?void 0:n.sdk);var o=Og(e,i,r,t);return delete e.sdkProcessingMetadata,gg(o,[[{type:a},e]]);}//#endregion
331
331
  //#region node_modules/@sentry/core/build/esm/utils/scopeData.js
332
- function Dg(e,t){var n=t.fingerprint,r=t.span,i=t.breadcrumbs,a=t.sdkProcessingMetadata;jg(e,t),r&&Pg(e,r),Fg(e,n),Mg(e,i),Ng(e,a);}function Og(e,t){var n=t.extra,r=t.tags,i=t.attributes,a=t.user,o=t.contexts,s=t.level,c=t.sdkProcessingMetadata,l=t.breadcrumbs,u=t.fingerprint,d=t.eventProcessors,f=t.attachments,p=t.propagationContext,m=t.transactionName,h=t.span;kg(e,"extra",n),kg(e,"tags",r),kg(e,"attributes",i),kg(e,"user",a),kg(e,"contexts",o),e.sdkProcessingMetadata=Dm(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[].concat(_toConsumableArray(e.breadcrumbs),_toConsumableArray(l))),u.length&&(e.fingerprint=[].concat(_toConsumableArray(e.fingerprint),_toConsumableArray(u))),d.length&&(e.eventProcessors=[].concat(_toConsumableArray(e.eventProcessors),_toConsumableArray(d))),f.length&&(e.attachments=[].concat(_toConsumableArray(e.attachments),_toConsumableArray(f))),e.propagationContext=_objectSpread(_objectSpread({},e.propagationContext),p);}function kg(e,t,n){e[t]=Dm(e[t],n,1);}function Ag(e,t){var n=Qm().getScopeData();return e&&Og(n,e.getScopeData()),t&&Og(n,t.getScopeData()),n;}function jg(e,t){var n=t.extra,r=t.tags,i=t.user,a=t.contexts,o=t.level,s=t.transactionName;Object.keys(n).length&&(e.extra=_objectSpread(_objectSpread({},n),e.extra)),Object.keys(r).length&&(e.tags=_objectSpread(_objectSpread({},r),e.tags)),Object.keys(i).length&&(e.user=_objectSpread(_objectSpread({},i),e.user)),Object.keys(a).length&&(e.contexts=_objectSpread(_objectSpread({},a),e.contexts)),o&&(e.level=o),s&&e.type!=="transaction"&&(e.transaction=s);}function Mg(e,t){var n=[].concat(_toConsumableArray(e.breadcrumbs||[]),_toConsumableArray(t));e.breadcrumbs=n.length?n:void 0;}function Ng(e,t){e.sdkProcessingMetadata=_objectSpread(_objectSpread({},e.sdkProcessingMetadata),t);}function Pg(e,t){e.contexts=_objectSpread({trace:Dh(t)},e.contexts),e.sdkProcessingMetadata=_objectSpread({dynamicSamplingContext:Zh(t)},e.sdkProcessingMetadata);var n=jh(Rh(t)).description;n&&!e.transaction&&e.type==="transaction"&&(e.transaction=n);}function Fg(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint;}//#endregion
332
+ function Mg(e,t){var n=t.fingerprint,r=t.span,i=t.breadcrumbs,a=t.sdkProcessingMetadata;Ig(e,t),r&&zg(e,r),Bg(e,n),Lg(e,i),Rg(e,a);}function Ng(e,t){var n=t.extra,r=t.tags,i=t.attributes,a=t.user,o=t.contexts,s=t.level,c=t.sdkProcessingMetadata,l=t.breadcrumbs,u=t.fingerprint,d=t.eventProcessors,f=t.attachments,p=t.propagationContext,m=t.transactionName,h=t.span;Pg(e,"extra",n),Pg(e,"tags",r),Pg(e,"attributes",i),Pg(e,"user",a),Pg(e,"contexts",o),e.sdkProcessingMetadata=Mm(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[].concat(_toConsumableArray(e.breadcrumbs),_toConsumableArray(l))),u.length&&(e.fingerprint=[].concat(_toConsumableArray(e.fingerprint),_toConsumableArray(u))),d.length&&(e.eventProcessors=[].concat(_toConsumableArray(e.eventProcessors),_toConsumableArray(d))),f.length&&(e.attachments=[].concat(_toConsumableArray(e.attachments),_toConsumableArray(f))),e.propagationContext=_objectSpread(_objectSpread({},e.propagationContext),p);}function Pg(e,t,n){e[t]=Mm(e[t],n,1);}function Fg(e,t){var n=rh().getScopeData();return e&&Ng(n,e.getScopeData()),t&&Ng(n,t.getScopeData()),n;}function Ig(e,t){var n=t.extra,r=t.tags,i=t.user,a=t.contexts,o=t.level,s=t.transactionName;Object.keys(n).length&&(e.extra=_objectSpread(_objectSpread({},n),e.extra)),Object.keys(r).length&&(e.tags=_objectSpread(_objectSpread({},r),e.tags)),Object.keys(i).length&&(e.user=_objectSpread(_objectSpread({},i),e.user)),Object.keys(a).length&&(e.contexts=_objectSpread(_objectSpread({},a),e.contexts)),o&&(e.level=o),s&&e.type!=="transaction"&&(e.transaction=s);}function Lg(e,t){var n=[].concat(_toConsumableArray(e.breadcrumbs||[]),_toConsumableArray(t));e.breadcrumbs=n.length?n:void 0;}function Rg(e,t){e.sdkProcessingMetadata=_objectSpread(_objectSpread({},e.sdkProcessingMetadata),t);}function zg(e,t){e.contexts=_objectSpread({trace:Mh(t)},e.contexts),e.sdkProcessingMetadata=_objectSpread({dynamicSamplingContext:ng(t)},e.sdkProcessingMetadata);var n=Ih(Uh(t)).description;n&&!e.transaction&&e.type==="transaction"&&(e.transaction=n);}function Bg(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint;}//#endregion
333
333
  //#region node_modules/@sentry/core/build/esm/tracing/spans/captureSpan.js
334
- function Ig(e,t){var n;var r=(n=e.attributes)==null?e.attributes={}:n;Object.entries(t).forEach(function(_ref14){var _ref15=_slicedToArray(_ref14,2),e=_ref15[0],t=_ref15[1];t!=null&&!(e in r)&&(r[e]=t);});}//#endregion
334
+ function Vg(e,t){var n;var r=(n=e.attributes)==null?e.attributes={}:n;Object.entries(t).forEach(function(_ref14){var _ref15=_slicedToArray(_ref14,2),e=_ref15[0],t=_ref15[1];t!=null&&!(e in r)&&(r[e]=t);});}//#endregion
335
335
  //#region node_modules/@sentry/core/build/esm/utils/syncpromise.js
336
- var Lg=0,Rg=1,zg=2;function Bg(e){return new Hg(function(t){t(e);});}function Vg(e){return new Hg(function(t,n){n(e);});}var Hg=/*#__PURE__*/function(){function e(_e137){_classCallCheck(this,e);this._state=Lg,this._handlers=[],this._runExecutor(_e137);}return _createClass(e,[{key:"then",value:function then(t,n){var _this19=this;return new e(function(_e138,r){_this19._handlers.push([!1,function(n){if(!t)_e138(n);else try{_e138(t(n));}catch(_e139){r(_e139);}},function(t){if(!n)r(t);else try{_e138(n(t));}catch(_e140){r(_e140);}}]),_this19._executeHandlers();});}},{key:"catch",value:function _catch(_e141){return this.then(function(_e142){return _e142;},_e141);}},{key:"finally",value:function _finally(t){var _this20=this;return new e(function(_e143,n){var r,i;return _this20.then(function(_e144){i=!1,r=_e144,t&&t();},function(_e145){i=!0,r=_e145,t&&t();}).then(function(){if(i){n(r);return;}_e143(r);});});}},{key:"_executeHandlers",value:function _executeHandlers(){var _this21=this;if(this._state===Lg)return;var _e146=this._handlers.slice();this._handlers=[],_e146.forEach(function(_e147){_e147[0]||(_this21._state===Rg&&_e147[1](_this21._value),_this21._state===zg&&_e147[2](_this21._value),_e147[0]=!0);});}},{key:"_runExecutor",value:function _runExecutor(_e148){var _this22=this;var t=function t(_e149,_t105){if(_this22._state===Lg){if(Fp(_t105)){_t105.then(n,r);return;}_this22._state=_e149,_this22._value=_t105,_this22._executeHandlers();}},n=function n(_e150){t(Rg,_e150);},r=function r(_e151){t(zg,_e151);};try{_e148(n,r);}catch(_e152){r(_e152);}}}]);}();//#endregion
336
+ var Hg=0,Ug=1,Wg=2;function Gg(e){return new qg(function(t){t(e);});}function Kg(e){return new qg(function(t,n){n(e);});}var qg=/*#__PURE__*/function(){function e(_e137){_classCallCheck(this,e);this._state=Hg,this._handlers=[],this._runExecutor(_e137);}return _createClass(e,[{key:"then",value:function then(t,n){var _this19=this;return new e(function(_e138,r){_this19._handlers.push([!1,function(n){if(!t)_e138(n);else try{_e138(t(n));}catch(_e139){r(_e139);}},function(t){if(!n)r(t);else try{_e138(n(t));}catch(_e140){r(_e140);}}]),_this19._executeHandlers();});}},{key:"catch",value:function _catch(_e141){return this.then(function(_e142){return _e142;},_e141);}},{key:"finally",value:function _finally(t){var _this20=this;return new e(function(_e143,n){var r,i;return _this20.then(function(_e144){i=!1,r=_e144,t&&t();},function(_e145){i=!0,r=_e145,t&&t();}).then(function(){if(i){n(r);return;}_e143(r);});});}},{key:"_executeHandlers",value:function _executeHandlers(){var _this21=this;if(this._state===Hg)return;var _e146=this._handlers.slice();this._handlers=[],_e146.forEach(function(_e147){_e147[0]||(_this21._state===Ug&&_e147[1](_this21._value),_this21._state===Wg&&_e147[2](_this21._value),_e147[0]=!0);});}},{key:"_runExecutor",value:function _runExecutor(_e148){var _this22=this;var t=function t(_e149,_t105){if(_this22._state===Hg){if(Bp(_t105)){_t105.then(n,r);return;}_this22._state=_e149,_this22._value=_t105,_this22._executeHandlers();}},n=function n(_e150){t(Ug,_e150);},r=function r(_e151){t(Wg,_e151);};try{_e148(n,r);}catch(_e152){r(_e152);}}}]);}();//#endregion
337
337
  //#region node_modules/@sentry/core/build/esm/eventProcessors.js
338
- function Ug(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;try{var _i45=Wg(t,n,e,r);return Fp(_i45)?_i45:Bg(_i45);}catch(e){return Vg(e);}}function Wg(e,t,n,r){var i=n[r];if(!e||!i)return e;var a=i(_objectSpread({},e),t);return X&&a===null&&Q.log("Event processor \"".concat(i.id||"?","\" dropped event")),Fp(a)?a.then(function(e){return Wg(e,t,n,r+1);}):Wg(a,t,n,r+1);}//#endregion
338
+ function Jg(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;try{var _i45=Yg(t,n,e,r);return Bp(_i45)?_i45:Gg(_i45);}catch(e){return Kg(e);}}function Yg(e,t,n,r){var i=n[r];if(!e||!i)return e;var a=i(_objectSpread({},e),t);return X&&a===null&&Z.log("Event processor \"".concat(i.id||"?","\" dropped event")),Bp(a)?a.then(function(e){return Yg(e,t,n,r+1);}):Yg(a,t,n,r+1);}//#endregion
339
339
  //#region node_modules/@sentry/core/build/esm/utils/debug-ids.js
340
- var Gg,Kg,qg,Jg;function Yg(e){var t=Z._sentryDebugIds,n=Z._debugIds;if(!t&&!n)return{};var r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(Jg&&r.length===Kg&&i.length===qg)return Jg;Kg=r.length,qg=i.length,Jg={},Gg||(Gg={});var a=function a(t,n){var _iterator82=_createForOfIteratorHelper(t),_step82;try{for(_iterator82.s();!(_step82=_iterator82.n()).done;){var _r68=_step82.value;var _t106=n[_r68],_i46=Gg==null?void 0:Gg[_r68];if(_i46&&Jg&&_t106)Jg[_i46[0]]=_t106,Gg&&(Gg[_r68]=[_i46[0],_t106]);else if(_t106){var _n78=e(_r68);for(var _e153=_n78.length-1;_e153>=0;_e153--){var _i47=_n78[_e153],_a11=_i47==null?void 0:_i47.filename;if(_a11&&Jg&&Gg){Jg[_a11]=_t106,Gg[_r68]=[_a11,_t106];break;}}}}}catch(err){_iterator82.e(err);}finally{_iterator82.f();}};return t&&a(r,t),n&&a(i,n),Jg;}//#endregion
340
+ var Xg,Zg,Qg,$g;function e_(e){var t=Hf._sentryDebugIds,n=Hf._debugIds;if(!t&&!n)return{};var r=t?Object.keys(t):[],i=n?Object.keys(n):[];if($g&&r.length===Zg&&i.length===Qg)return $g;Zg=r.length,Qg=i.length,$g={},Xg||(Xg={});var a=function a(t,n){var _iterator82=_createForOfIteratorHelper(t),_step82;try{for(_iterator82.s();!(_step82=_iterator82.n()).done;){var _r68=_step82.value;var _t106=n[_r68],_i46=Xg==null?void 0:Xg[_r68];if(_i46&&$g&&_t106)$g[_i46[0]]=_t106,Xg&&(Xg[_r68]=[_i46[0],_t106]);else if(_t106){var _n78=e(_r68);for(var _e153=_n78.length-1;_e153>=0;_e153--){var _i47=_n78[_e153],_a11=_i47==null?void 0:_i47.filename;if(_a11&&$g&&Xg){$g[_a11]=_t106,Xg[_r68]=[_a11,_t106];break;}}}}}catch(err){_iterator82.e(err);}finally{_iterator82.f();}};return t&&a(r,t),n&&a(i,n),$g;}//#endregion
341
341
  //#region node_modules/@sentry/core/build/esm/utils/prepareEvent.js
342
- function Xg(e,t,n,r,i,a){var _e$normalizeDepth=e.normalizeDepth,o=_e$normalizeDepth===void 0?3:_e$normalizeDepth,_e$normalizeMaxBreadt=e.normalizeMaxBreadth,s=_e$normalizeMaxBreadt===void 0?1e3:_e$normalizeMaxBreadt,c=_objectSpread(_objectSpread({},t),{},{event_id:t.event_id||n.event_id||dm(),timestamp:t.timestamp||ym()}),l=n.integrations||e.integrations.map(function(e){return e.name;});Zg(c,e),e_(c,l),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&Qg(c,e.stackParser);var u=n_(r,n.captureContext);n.mechanism&&hm(c,n.mechanism);var d=i?i.getEventProcessors():[],f=Ag(a,u),p=[].concat(_toConsumableArray(n.attachments||[]),_toConsumableArray(f.attachments));p.length&&(n.attachments=p),Dg(c,f);var m=[].concat(_toConsumableArray(d),_toConsumableArray(f.eventProcessors));return(n.data&&n.data.__sentry__===!0?Bg(c):Ug(m,c,n)).then(function(e){return e&&$g(e),typeof o=="number"&&o>0?t_(e,o,s):e;});}function Zg(e,t){var n=t.environment,r=t.release,i=t.dist,a=t.maxValueLength;e.environment=e.environment||n||"production",!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);var o=e.request;if(o!=null&&o.url&&a&&(o.url=im(o.url,a)),a){var s;(s=e.exception)==null||(s=s.values)==null||s.forEach(function(e){e.value&&(e.value=im(e.value,a));});}}function Qg(e,t){var n;var r=Yg(t);(n=e.exception)==null||(n=n.values)==null||n.forEach(function(e){var t;(t=e.stacktrace)==null||(t=t.frames)==null||t.forEach(function(e){e.filename&&(e.debug_id=r[e.filename]);});});}function $g(e){var t;var n={};if((t=e.exception)==null||(t=t.values)==null||t.forEach(function(e){var t;(t=e.stacktrace)==null||(t=t.frames)==null||t.forEach(function(e){e.debug_id&&(e.abs_path?n[e.abs_path]=e.debug_id:e.filename&&(n[e.filename]=e.debug_id),delete e.debug_id);});}),Object.keys(n).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];var r=e.debug_meta.images;Object.entries(n).forEach(function(_ref16){var _ref17=_slicedToArray(_ref16,2),e=_ref17[0],t=_ref17[1];r.push({type:"sourcemap",code_file:e,debug_id:t});});}function e_(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[].concat(_toConsumableArray(e.sdk.integrations||[]),_toConsumableArray(t)));}function t_(e,t,n){var r,i;if(!e)return null;var a=_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(function(e){return _objectSpread(_objectSpread({},e),e.data&&{data:rg(e.data,t,n)});})}),e.user&&{user:rg(e.user,t,n)}),e.contexts&&{contexts:rg(e.contexts,t,n)}),e.extra&&{extra:rg(e.extra,t,n)});return(r=e.contexts)!=null&&r.trace&&a.contexts&&(a.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(a.contexts.trace.data=rg(e.contexts.trace.data,t,n))),e.spans&&(a.spans=e.spans.map(function(e){return _objectSpread(_objectSpread({},e),e.data&&{data:rg(e.data,t,n)});})),(i=e.contexts)!=null&&i.flags&&a.contexts&&(a.contexts.flags=rg(e.contexts.flags,3,n)),a;}function n_(e,t){if(!t)return e;var n=e?e.clone():new Pm();return n.update(t),n;}function r_(e){if(e)return i_(e)||o_(e)?{captureContext:e}:e;}function i_(e){return e instanceof Pm||typeof e=="function";}var a_=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function o_(e){return Object.keys(e).some(function(e){return a_.includes(e);});}//#endregion
342
+ function t_(e,t,n,r,i,a){var _e$normalizeDepth=e.normalizeDepth,o=_e$normalizeDepth===void 0?3:_e$normalizeDepth,_e$normalizeMaxBreadt=e.normalizeMaxBreadth,s=_e$normalizeMaxBreadt===void 0?1e3:_e$normalizeMaxBreadt,c=_objectSpread(_objectSpread({},t),{},{event_id:t.event_id||n.event_id||gm(),timestamp:t.timestamp||wm()}),l=n.integrations||e.integrations.map(function(e){return e.name;});n_(c,e),a_(c,l),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&r_(c,e.stackParser);var u=s_(r,n.captureContext);n.mechanism&&bm(c,n.mechanism);var d=i?i.getEventProcessors():[],f=Fg(a,u),p=[].concat(_toConsumableArray(n.attachments||[]),_toConsumableArray(f.attachments));p.length&&(n.attachments=p),Mg(c,f);var m=[].concat(_toConsumableArray(d),_toConsumableArray(f.eventProcessors));return(n.data&&n.data.__sentry__===!0?Gg(c):Jg(m,c,n)).then(function(e){return e&&i_(e),typeof o=="number"&&o>0?o_(e,o,s):e;});}function n_(e,t){var n=t.environment,r=t.release,i=t.dist,a=t.maxValueLength;e.environment=e.environment||n||"production",!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);var o=e.request;if(o!=null&&o.url&&a&&(o.url=lm(o.url,a)),a){var s;(s=e.exception)==null||(s=s.values)==null||s.forEach(function(e){e.value&&(e.value=lm(e.value,a));});}}function r_(e,t){var n;var r=e_(t);(n=e.exception)==null||(n=n.values)==null||n.forEach(function(e){var t;(t=e.stacktrace)==null||(t=t.frames)==null||t.forEach(function(e){e.filename&&(e.debug_id=r[e.filename]);});});}function i_(e){var t;var n={};if((t=e.exception)==null||(t=t.values)==null||t.forEach(function(e){var t;(t=e.stacktrace)==null||(t=t.frames)==null||t.forEach(function(e){e.debug_id&&(e.abs_path?n[e.abs_path]=e.debug_id:e.filename&&(n[e.filename]=e.debug_id),delete e.debug_id);});}),Object.keys(n).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];var r=e.debug_meta.images;Object.entries(n).forEach(function(_ref16){var _ref17=_slicedToArray(_ref16,2),e=_ref17[0],t=_ref17[1];r.push({type:"sourcemap",code_file:e,debug_id:t});});}function a_(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[].concat(_toConsumableArray(e.sdk.integrations||[]),_toConsumableArray(t)));}function o_(e,t,n){var r,i;if(!e)return null;var a=_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(function(e){return _objectSpread(_objectSpread({},e),e.data&&{data:cg(e.data,t,n)});})}),e.user&&{user:cg(e.user,t,n)}),e.contexts&&{contexts:cg(e.contexts,t,n)}),e.extra&&{extra:cg(e.extra,t,n)});return(r=e.contexts)!=null&&r.trace&&a.contexts&&(a.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(a.contexts.trace.data=cg(e.contexts.trace.data,t,n))),e.spans&&(a.spans=e.spans.map(function(e){return _objectSpread(_objectSpread({},e),e.data&&{data:cg(e.data,t,n)});})),(i=e.contexts)!=null&&i.flags&&a.contexts&&(a.contexts.flags=cg(e.contexts.flags,3,n)),a;}function s_(e,t){if(!t)return e;var n=e?e.clone():new zm();return n.update(t),n;}function c_(e){if(e)return l_(e)||d_(e)?{captureContext:e}:e;}function l_(e){return e instanceof zm||typeof e=="function";}var u_=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function d_(e){return Object.keys(e).some(function(e){return u_.includes(e);});}//#endregion
343
343
  //#region node_modules/@sentry/core/build/esm/exports.js
344
- function s_(e,t){return Xm().captureException(e,r_(t));}function c_(e,t){return Xm().captureEvent(e,t);}function l_(e){var t=Zm(),_Ag=Ag(t,Xm()),n=_Ag.user,_ref18=Z.navigator||{},r=_ref18.userAgent,i=Cm(_objectSpread(_objectSpread({user:n},r&&{userAgent:r}),e)),a=t.getSession();return(a==null?void 0:a.status)==="ok"&&wm(a,{status:"exited"}),u_(),t.setSession(i),i;}function u_(){var e=Zm(),t=Xm().getSession()||e.getSession();t&&Tm(t),d_(),e.setSession();}function d_(){var e=Zm(),t=eh(),n=e.getSession();n&&t&&t.captureSession(n);}function f_(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;if(e){u_();return;}d_();}function p_(e){var t=e.protocol?"".concat(e.protocol,":"):"",n=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(n).concat(e.path?"/".concat(e.path):"","/api/");}function m_(e){return"".concat(p_(e)).concat(e.projectId,"/envelope/");}function h_(e,t){var n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client="".concat(t.name,"/").concat(t.version)),new URLSearchParams(n).toString();}function g_(e,t,n){return t||"".concat(m_(e),"?").concat(h_(e,n));}//#endregion
344
+ function f_(e,t){return th().captureException(e,c_(t));}function p_(e,t){return th().captureEvent(e,t);}function m_(e){var t=nh(),_Fg=Fg(t,th()),n=_Fg.user,_ref18=Hf.navigator||{},r=_ref18.userAgent,i=Om(_objectSpread(_objectSpread({user:n},r&&{userAgent:r}),e)),a=t.getSession();return(a==null?void 0:a.status)==="ok"&&km(a,{status:"exited"}),h_(),t.setSession(i),i;}function h_(){var e=nh(),t=th().getSession()||e.getSession();t&&Am(t),g_(),e.setSession();}function g_(){var e=nh(),t=ah(),n=e.getSession();n&&t&&t.captureSession(n);}function __(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;if(e){h_();return;}g_();}function v_(e){var t=e.protocol?"".concat(e.protocol,":"):"",n=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(n).concat(e.path?"/".concat(e.path):"","/api/");}function y_(e){return"".concat(v_(e)).concat(e.projectId,"/envelope/");}function b_(e,t){var n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client="".concat(t.name,"/").concat(t.version)),new URLSearchParams(n).toString();}function x_(e,t,n){return t||"".concat(y_(e),"?").concat(b_(e,n));}//#endregion
345
345
  //#region node_modules/@sentry/core/build/esm/integration.js
346
- var __=[];function v_(e){var t={};return e.forEach(function(e){var n=e.name,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e);}),Object.values(t);}function y_(e){var t=e.defaultIntegrations||[],n=e.integrations;t.forEach(function(e){e.isDefaultInstance=!0;});var r;if(Array.isArray(n))r=[].concat(_toConsumableArray(t),_toConsumableArray(n));else if(typeof n=="function"){var _e154=n(t);r=Array.isArray(_e154)?_e154:[_e154];}else r=t;return v_(r);}function b_(e,t){var n={};return t.forEach(function(t){t!=null&&t.beforeSetup&&t.beforeSetup(e);}),t.forEach(function(t){t&&S_(e,t,n);}),n;}function x_(e,t){var _iterator83=_createForOfIteratorHelper(t),_step83;try{for(_iterator83.s();!(_step83=_iterator83.n()).done;){var _n79=_step83.value;_n79!=null&&_n79.afterAllSetup&&_n79.afterAllSetup(e);}}catch(err){_iterator83.e(err);}finally{_iterator83.f();}}function S_(e,t,n){if(n[t.name]){X&&Q.log("Integration skipped because it was already installed: ".concat(t.name));return;}if(n[t.name]=t,!__.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),__.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){var _n80=t.preprocessEvent.bind(t);e.on("preprocessEvent",function(t,r){return _n80(t,r,e);});}if(typeof t.processEvent=="function"){var _n81=t.processEvent.bind(t),_r69=Object.assign(function(t,r){return _n81(t,r,e);},{id:t.name});e.addEventProcessor(_r69);}["processSpan","processSegmentSpan"].forEach(function(n){var r=t[n];typeof r=="function"&&e.on(n,function(n){return r.call(t,n,e);});}),X&&Q.log("Integration installed: ".concat(t.name));}function C_(e){return e;}//#endregion
346
+ var S_=[];function C_(e){var t={};return e.forEach(function(e){var n=e.name,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e);}),Object.values(t);}function w_(e){var t=e.defaultIntegrations||[],n=e.integrations;t.forEach(function(e){e.isDefaultInstance=!0;});var r;if(Array.isArray(n))r=[].concat(_toConsumableArray(t),_toConsumableArray(n));else if(typeof n=="function"){var _e154=n(t);r=Array.isArray(_e154)?_e154:[_e154];}else r=t;return C_(r);}function T_(e,t){var n={};return t.forEach(function(t){t!=null&&t.beforeSetup&&t.beforeSetup(e);}),t.forEach(function(t){t&&D_(e,t,n);}),n;}function E_(e,t){var _iterator83=_createForOfIteratorHelper(t),_step83;try{for(_iterator83.s();!(_step83=_iterator83.n()).done;){var _n79=_step83.value;_n79!=null&&_n79.afterAllSetup&&_n79.afterAllSetup(e);}}catch(err){_iterator83.e(err);}finally{_iterator83.f();}}function D_(e,t,n){if(n[t.name]){X&&Z.log("Integration skipped because it was already installed: ".concat(t.name));return;}if(n[t.name]=t,!S_.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),S_.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){var _n80=t.preprocessEvent.bind(t);e.on("preprocessEvent",function(t,r){return _n80(t,r,e);});}if(typeof t.processEvent=="function"){var _n81=t.processEvent.bind(t),_r69=Object.assign(function(t,r){return _n81(t,r,e);},{id:t.name});e.addEventProcessor(_r69);}["processSpan","processSegmentSpan"].forEach(function(n){var r=t[n];typeof r=="function"&&e.on(n,function(n){return r.call(t,n,e);});}),X&&Z.log("Integration installed: ".concat(t.name));}function O_(e){return e;}//#endregion
347
347
  //#region node_modules/@sentry/core/build/esm/logs/envelope.js
348
- function w_(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}];}function T_(e,t,n,r){var i={};return t!=null&&t.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=vh(r)),dg(i,[w_(e)]);}//#endregion
348
+ function k_(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}];}function A_(e,t,n,r){var i={};return t!=null&&t.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Ch(r)),gg(i,[k_(e)]);}//#endregion
349
349
  //#region node_modules/@sentry/core/build/esm/logs/internal.js
350
- function E_(e,t){var n;var r=(n=t==null?D_(e):t)==null?[]:n;if(r.length===0)return;var i=e.getOptions(),a=T_(r,i._metadata,i.tunnel,e.getDsn());O_().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(a);}function D_(e){return O_().get(e);}function O_(){return Vf("clientToLogBufferMap",function(){return/* @__PURE__ */new WeakMap();});}//#endregion
350
+ function j_(e,t){var n;var r=(n=t==null?M_(e):t)==null?[]:n;if(r.length===0)return;var i=e.getOptions(),a=A_(r,i._metadata,i.tunnel,e.getDsn());N_().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(a);}function M_(e){return N_().get(e);}function N_(){return Kf("clientToLogBufferMap",function(){return/* @__PURE__ */new WeakMap();});}//#endregion
351
351
  //#region node_modules/@sentry/core/build/esm/metrics/envelope.js
352
- function k_(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}];}function A_(e,t,n,r){var i={};return t!=null&&t.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=vh(r)),dg(i,[k_(e)]);}//#endregion
352
+ function P_(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}];}function F_(e,t,n,r){var i={};return t!=null&&t.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Ch(r)),gg(i,[P_(e)]);}//#endregion
353
353
  //#region node_modules/@sentry/core/build/esm/metrics/internal.js
354
- function j_(e,t){var n;var r=(n=t==null?M_(e):t)==null?[]:n;if(r.length===0)return;var i=e.getOptions(),a=A_(r,i._metadata,i.tunnel,e.getDsn());N_().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(a);}function M_(e){return N_().get(e);}function N_(){return Vf("clientToMetricBufferMap",function(){return/* @__PURE__ */new WeakMap();});}//#endregion
354
+ function I_(e,t){var n;var r=(n=t==null?L_(e):t)==null?[]:n;if(r.length===0)return;var i=e.getOptions(),a=F_(r,i._metadata,i.tunnel,e.getDsn());R_().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(a);}function L_(e){return R_().get(e);}function R_(){return Kf("clientToMetricBufferMap",function(){return/* @__PURE__ */new WeakMap();});}//#endregion
355
355
  //#region node_modules/@sentry/core/build/esm/utils/timer.js
356
- function P_(e){return _typeof(e)=="object"&&typeof e.unref=="function"&&e.unref(),e;}//#endregion
356
+ function z_(e){return _typeof(e)=="object"&&typeof e.unref=="function"&&e.unref(),e;}//#endregion
357
357
  //#region node_modules/@sentry/core/build/esm/utils/promisebuffer.js
358
- var F_=Symbol.for("SentryBufferFullError");function I_(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:100;var t=/* @__PURE__ */new Set();function n(){return t.size<e;}function r(e){t.delete(e);}function i(e){if(!n())return Vg(F_);var i=e();return t.add(i),i.then(function(){return r(i);},function(){return r(i);}),i;}function a(e){if(!t.size)return Bg(!0);var n=Promise.allSettled(Array.from(t)).then(function(){return!0;});if(!e)return n;var r=[n,new Promise(function(t){return P_(setTimeout(function(){return t(!1);},e));})];return Promise.race(r);}return{get $(){return Array.from(t);},add:i,drain:a};}//#endregion
358
+ var B_=Symbol.for("SentryBufferFullError");function V_(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:100;var t=/* @__PURE__ */new Set();function n(){return t.size<e;}function r(e){t.delete(e);}function i(e){if(!n())return Kg(B_);var i=e();return t.add(i),i.then(function(){return r(i);},function(){return r(i);}),i;}function a(e){if(!t.size)return Gg(!0);var n=Promise.allSettled(Array.from(t)).then(function(){return!0;});if(!e)return n;var r=[n,new Promise(function(t){return z_(setTimeout(function(){return t(!1);},e));})];return Promise.race(r);}return{get $(){return Array.from(t);},add:i,drain:a};}//#endregion
359
359
  //#region node_modules/@sentry/core/build/esm/utils/ratelimit.js
360
- var L_=60*1e3;function R_(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:rm();var n=parseInt("".concat(e),10);if(!isNaN(n))return n*1e3;var r=Date.parse("".concat(e));return isNaN(r)?L_:r-t;}function z_(e,t){return e[t]||e.all||0;}function B_(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:rm();return z_(e,t)>n;}function V_(e,_ref19){var t=_ref19.statusCode,n=_ref19.headers;var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:rm();var i=_objectSpread({},e),a=n==null?void 0:n["x-sentry-rate-limits"],o=n==null?void 0:n["retry-after"];if(a){var _iterator84=_createForOfIteratorHelper(a.trim().split(",")),_step84;try{for(_iterator84.s();!(_step84=_iterator84.n()).done;){var _e155=_step84.value;var _e155$split=_e155.split(":",5),_e155$split2=_slicedToArray(_e155$split,5),_t107=_e155$split2[0],_n82=_e155$split2[1],_a12=_e155$split2[4],_o16=parseInt(_t107,10),_s4=(isNaN(_o16)?60:_o16)*1e3;if(!_n82)i.all=r+_s4;else{var _iterator85=_createForOfIteratorHelper(_n82.split(";")),_step85;try{for(_iterator85.s();!(_step85=_iterator85.n()).done;){var _e156=_step85.value;_e156==="metric_bucket"?(!_a12||_a12.split(";").includes("custom"))&&(i[_e156]=r+_s4):i[_e156]=r+_s4;}}catch(err){_iterator85.e(err);}finally{_iterator85.f();}}}}catch(err){_iterator84.e(err);}finally{_iterator84.f();}}else o?i.all=r+R_(o,r):t===429&&(i.all=r+60*1e3);return i;}function H_(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:I_(e.bufferSize||64);var r={},i=function i(e){return n.drain(e);};function a(i){var a=[];if(pg(i,function(t,n){var i=xg(n);B_(r,i)?e.recordDroppedEvent("ratelimit_backoff",i):a.push(t);}),a.length===0)return Promise.resolve({});var o=dg(i[0],a),s=function s(t){if(mg(o,["client_report"])){X&&Q.warn("Dropping client report. Will not send outcomes (reason: ".concat(t,")."));return;}pg(o,function(n,r){e.recordDroppedEvent(t,xg(r));});};return n.add(function(){return t({body:gg(o)}).then(function(e){return e.statusCode===413?(X&&Q.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error"),e):(X&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&Q.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),r=V_(r,e),e);},function(e){throw s("network_error"),X&&Q.error("Encountered error running transport request:",e),e;});}).then(function(e){return e;},function(e){if(e===F_)return X&&Q.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e;});}return{send:a,flush:i};}//#endregion
360
+ var H_=60*1e3;function U_(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:cm();var n=parseInt("".concat(e),10);if(!isNaN(n))return n*1e3;var r=Date.parse("".concat(e));return isNaN(r)?H_:r-t;}function W_(e,t){return e[t]||e.all||0;}function G_(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:cm();return W_(e,t)>n;}function K_(e,_ref19){var t=_ref19.statusCode,n=_ref19.headers;var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:cm();var i=_objectSpread({},e),a=n==null?void 0:n["x-sentry-rate-limits"],o=n==null?void 0:n["retry-after"];if(a){var _iterator84=_createForOfIteratorHelper(a.trim().split(",")),_step84;try{for(_iterator84.s();!(_step84=_iterator84.n()).done;){var _e155=_step84.value;var _e155$split=_e155.split(":",5),_e155$split2=_slicedToArray(_e155$split,5),_t107=_e155$split2[0],_n82=_e155$split2[1],_a12=_e155$split2[4],_o16=parseInt(_t107,10),_s4=(isNaN(_o16)?60:_o16)*1e3;if(!_n82)i.all=r+_s4;else{var _iterator85=_createForOfIteratorHelper(_n82.split(";")),_step85;try{for(_iterator85.s();!(_step85=_iterator85.n()).done;){var _e156=_step85.value;_e156==="metric_bucket"?(!_a12||_a12.split(";").includes("custom"))&&(i[_e156]=r+_s4):i[_e156]=r+_s4;}}catch(err){_iterator85.e(err);}finally{_iterator85.f();}}}}catch(err){_iterator84.e(err);}finally{_iterator84.f();}}else o?i.all=r+U_(o,r):t===429&&(i.all=r+60*1e3);return i;}function q_(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:V_(e.bufferSize||64);var r={},i=function i(e){return n.drain(e);};function a(i){var a=[];if(vg(i,function(t,n){var i=Eg(n);G_(r,i)?e.recordDroppedEvent("ratelimit_backoff",i):a.push(t);}),a.length===0)return Promise.resolve({});var o=gg(i[0],a),s=function s(t){if(yg(o,["client_report"])){X&&Z.warn("Dropping client report. Will not send outcomes (reason: ".concat(t,")."));return;}vg(o,function(n,r){e.recordDroppedEvent(t,Eg(r));});};return n.add(function(){return t({body:xg(o)}).then(function(e){return e.statusCode===413?(X&&Z.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error"),e):(X&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&Z.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),r=K_(r,e),e);},function(e){throw s("network_error"),X&&Z.error("Encountered error running transport request:",e),e;});}).then(function(e){return e;},function(e){if(e===B_)return X&&Z.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e;});}return{send:a,flush:i};}//#endregion
361
361
  //#region node_modules/@sentry/core/build/esm/utils/clientreport.js
362
- function U_(e,t,n){var r=[{type:"client_report"},{timestamp:n||ym(),discarded_events:e}];return dg(t?{dsn:t}:{},[r]);}//#endregion
362
+ function J_(e,t,n){var r=[{type:"client_report"},{timestamp:n||wm(),discarded_events:e}];return gg(t?{dsn:t}:{},[r]);}//#endregion
363
363
  //#region node_modules/@sentry/core/build/esm/utils/eventUtils.js
364
- function W_(e){var t=[];e.message&&t.push(e.message);try{var _n83=e.exception.values[e.exception.values.length-1];_n83!=null&&_n83.value&&(t.push(_n83.value),_n83.type&&t.push("".concat(_n83.type,": ").concat(_n83.value)));}catch(e){}return t;}//#endregion
364
+ function Y_(e){var t=[];e.message&&t.push(e.message);try{var _n83=e.exception.values[e.exception.values.length-1];_n83!=null&&_n83.value&&(t.push(_n83.value),_n83.type&&t.push("".concat(_n83.type,": ").concat(_n83.value)));}catch(e){}return t;}//#endregion
365
365
  //#region node_modules/@sentry/core/build/esm/utils/transactionEvent.js
366
- function G_(e){var t,n,r;var _ref20=(t=(n=e.contexts)==null?void 0:n.trace)==null?{}:t,i=_ref20.trace_id,a=_ref20.parent_span_id,o=_ref20.span_id,s=_ref20.status,c=_ref20.origin,l=_ref20.data,u=_ref20.op;return{data:l==null?{}:l,description:e.transaction,op:u,parent_span_id:a,span_id:o==null?"":o,start_timestamp:(r=e.start_timestamp)==null?0:r,status:s,timestamp:e.timestamp,trace_id:i==null?"":i,origin:c,profile_id:l==null?void 0:l[ah],exclusive_time:l==null?void 0:l[oh],measurements:e.measurements,is_segment:!0};}function K_(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:_objectSpread(_objectSpread(_objectSpread({},e.data),e.profile_id&&{"sentry.profile_id":e.profile_id}),e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time})}},measurements:e.measurements};}//#endregion
366
+ function X_(e){var t,n,r;var _ref20=(t=(n=e.contexts)==null?void 0:n.trace)==null?{}:t,i=_ref20.trace_id,a=_ref20.parent_span_id,o=_ref20.span_id,s=_ref20.status,c=_ref20.origin,l=_ref20.data,u=_ref20.op;return{data:l==null?{}:l,description:e.transaction,op:u,parent_span_id:a,span_id:o==null?"":o,start_timestamp:(r=e.start_timestamp)==null?0:r,status:s,timestamp:e.timestamp,trace_id:i==null?"":i,origin:c,profile_id:l==null?void 0:l[uh],exclusive_time:l==null?void 0:l[dh],measurements:e.measurements,is_segment:!0};}function Z_(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:_objectSpread(_objectSpread(_objectSpread({},e.data),e.profile_id&&{"sentry.profile_id":e.profile_id}),e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time})}},measurements:e.measurements};}//#endregion
367
367
  //#region node_modules/@sentry/core/build/esm/client.js
368
- var q_="Not capturing exception because it's already been captured.",J_="Discarded session because of missing or non-string release",Y_=Symbol.for("SentryInternalError"),X_=Symbol.for("SentryDoNotSendEventError"),Z_=5e3;function Q_(e){return _defineProperty({message:e},Y_,!0);}function $_(e){return _defineProperty({message:e},X_,!0);}function ev(e){return!!e&&_typeof(e)=="object"&&Y_ in e;}function tv(e){return!!e&&_typeof(e)=="object"&&X_ in e;}function nv(e,t,n,r,i){var a=0,o,s=!1;e.on(n,function(){a=0,clearTimeout(o),s=!1;}),e.on(t,function(t){a+=r(t),a>=8e5?i(e):s||(s=!0,o=P_(setTimeout(function(){i(e);},Z_)));}),e.on("flush",function(){i(e);});}var rv=/*#__PURE__*/function(){function rv(e){_classCallCheck(this,rv);var t,n,r,i,a,o,s;if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=I_((t=(n=e.transportOptions)==null?void 0:n.bufferSize)==null?64:t),e.dsn?this._dsn=wh(e.dsn):X&&Q.warn("No DSN provided, client will not send events."),this._dsn){var _t108=g_(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport(_objectSpread(_objectSpread({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{},{url:_t108}));}this._options.enableLogs=(r=this._options.enableLogs)==null?(i=this._options._experiments)==null?void 0:i.enableLogs:r,this._options.enableLogs&&nv(this,"afterCaptureLog","flushLogs",uv,E_),((a=(o=this._options.enableMetrics)==null?(s=this._options._experiments)==null?void 0:s.enableMetrics:o)==null||a)&&nv(this,"afterCaptureMetric","flushMetrics",lv,j_);}return _createClass(rv,[{key:"captureException",value:function captureException(e,t,n){var _this23=this;var r=dm();if(gm(e))return X&&Q.log(q_),r;var i=_objectSpread({event_id:r},t);return this._process(function(){return _this23.eventFromException(e,i).then(function(e){return _this23._captureEvent(e,i,n);}).then(function(e){return e;});},"error"),i.event_id;}},{key:"captureMessage",value:function captureMessage(e,t,n,r){var _this24=this;var i=_objectSpread({event_id:dm()},n),a=kp(e)?e:String(e),o=Ap(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(function(){return s.then(function(e){return _this24._captureEvent(e,i,r);});},o?"unknown":"error"),i.event_id;}},{key:"captureEvent",value:function captureEvent(e,t,n){var _this25=this;var r=dm();if(t!=null&&t.originalException&&gm(t.originalException))return X&&Q.log(q_),r;var i=_objectSpread({event_id:r},t),a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=iv(e.type);return this._process(function(){return _this25._captureEvent(e,i,o||n,s);},c),i.event_id;}},{key:"captureSession",value:function captureSession(e){this.sendSession(e),wm(e,{init:!1});}},{key:"getDsn",value:function getDsn(){return this._dsn;}},{key:"getOptions",value:function getOptions(){return this._options;}},{key:"getSdkMetadata",value:function getSdkMetadata(){return this._options._metadata;}},{key:"getTransport",value:function getTransport(){return this._transport;}},{key:"flush",value:function(){var _flush=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e){var t,n,r,i;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:t=this;n=t._transport;if(n){_context2.n=1;break;}return _context2.a(2,!0);case 1:t.emit("flush");_context2.n=2;return t._isClientDoneProcessing(e);case 2:r=_context2.v;_context2.n=3;return n.flush(e);case 3:i=_context2.v;return _context2.a(2,r&&i);}},_callee2,this);}));function flush(_x4){return _flush.apply(this,arguments);}return flush;}()},{key:"close",value:function(){var _close=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(e){var t,n;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:t=this;E_(t);_context3.n=1;return t.flush(e);case 1:n=_context3.v;return _context3.a(2,(t.getOptions().enabled=!1,t.emit("close"),n));}},_callee3,this);}));function close(_x5){return _close.apply(this,arguments);}return close;}()},{key:"getEventProcessors",value:function getEventProcessors(){return this._eventProcessors;}},{key:"addEventProcessor",value:function addEventProcessor(e){this._eventProcessors.push(e);}},{key:"init",value:function init(){(this._isEnabled()||this._options.integrations.some(function(_ref23){var e=_ref23.name;return e.startsWith("Spotlight");}))&&this._setupIntegrations();}},{key:"getIntegrationByName",value:function getIntegrationByName(e){return this._integrations[e];}},{key:"addIntegration",value:function addIntegration(e){var t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),S_(this,e,this._integrations),t||x_(this,[e]);}},{key:"sendEvent",value:function sendEvent(e){var _this26=this;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.emit("beforeSendEvent",e,t);var n=Eg(e,this._dsn,this._options._metadata,this._options.tunnel);var _iterator86=_createForOfIteratorHelper(t.attachments||[]),_step86;try{for(_iterator86.s();!(_step86=_iterator86.n()).done;){var _e157=_step86.value;n=fg(n,vg(_e157));}}catch(err){_iterator86.e(err);}finally{_iterator86.f();}this.sendEnvelope(n).then(function(t){return _this26.emit("afterSendEvent",e,t);});}},{key:"sendSession",value:function sendSession(e){var _this$_options=this._options,t=_this$_options.release,_this$_options$enviro=_this$_options.environment,n=_this$_options$enviro===void 0?qh:_this$_options$enviro;if("aggregates"in e){var _r70=e.attrs||{};if(!_r70.release&&!t){X&&Q.warn(J_);return;}_r70.release=_r70.release||t,_r70.environment=_r70.environment||n,e.attrs=_r70;}else{if(!e.release&&!t){X&&Q.warn(J_);return;}e.release=e.release||t,e.environment=e.environment||n;}this.emit("beforeSendSession",e);var r=Tg(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r);}},{key:"recordDroppedEvent",value:function recordDroppedEvent(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;if(this._options.sendClientReports){var _r71="".concat(e,":").concat(t);X&&Q.log("Recording outcome: \"".concat(_r71,"\"").concat(n>1?" (".concat(n," times)"):"")),this._outcomes[_r71]=(this._outcomes[_r71]||0)+n;}}},{key:"on",value:function on(e,t){var n=this._hooks[e]=this._hooks[e]||/* @__PURE__ */new Set(),r=function r(){return t.apply(void 0,arguments);};return n.add(r),function(){n.delete(r);};}},{key:"emit",value:function emit(e){for(var _len12=arguments.length,t=new Array(_len12>1?_len12-1:0),_key12=1;_key12<_len12;_key12++){t[_key12-1]=arguments[_key12];}var n=this._hooks[e];n&&n.forEach(function(e){return e.apply(void 0,t);});}},{key:"sendEnvelope",value:function(){var _sendEnvelope=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(e){var t,_t109;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:t=this;if(!(t.emit("beforeEnvelope",e),t._isEnabled()&&t._transport)){_context4.n=4;break;}_context4.p=1;_context4.n=2;return t._transport.send(e);case 2:return _context4.a(2,_context4.v);case 3:_context4.p=3;_t109=_context4.v;return _context4.a(2,(X&&Q.error("Error while sending envelope:",_t109),{}));case 4:return _context4.a(2,(X&&Q.error("Transport disabled"),{}));}},_callee4,this,[[1,3]]);}));function sendEnvelope(_x6){return _sendEnvelope.apply(this,arguments);}return sendEnvelope;}()},{key:"registerCleanup",value:function registerCleanup(e){}},{key:"dispose",value:function dispose(){}},{key:"_setupIntegrations",value:function _setupIntegrations(){var e=this._options.integrations;this._integrations=b_(this,e),x_(this,e);}},{key:"_updateSessionFromEvent",value:function _updateSessionFromEvent(e,t){var n;var r=t.level==="fatal",i=!1,a=(n=t.exception)==null?void 0:n.values;if(a){i=!0,r=!1;var _iterator87=_createForOfIteratorHelper(a),_step87;try{for(_iterator87.s();!(_step87=_iterator87.n()).done;){var _e158=_step87.value;var o;if(((o=_e158.mechanism)==null?void 0:o.handled)===!1){r=!0;break;}}}catch(err){_iterator87.e(err);}finally{_iterator87.f();}}var s=e.status==="ok";(s&&e.errors===0||s&&r)&&(wm(e,_objectSpread(_objectSpread({},r&&{status:"crashed"}),{},{errors:e.errors||Number(i||r)})),this.captureSession(e));}},{key:"_isClientDoneProcessing",value:function(){var _isClientDoneProcessing2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(e){var t,n;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:t=this;n=0;case 1:if(!(!e||n<e)){_context5.n=5;break;}_context5.n=2;return new Promise(function(e){return setTimeout(e,1);});case 2:if(t._numProcessing){_context5.n=3;break;}return _context5.a(2,!0);case 3:n++;case 4:_context5.n=1;break;case 5:return _context5.a(2,!1);}},_callee5,this);}));function _isClientDoneProcessing(_x7){return _isClientDoneProcessing2.apply(this,arguments);}return _isClientDoneProcessing;}()},{key:"_isEnabled",value:function _isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0;}},{key:"_prepareEvent",value:function _prepareEvent(e,t,n,r){var _this27=this;var i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a!=null&&a.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Xg(i,e,t,n,this,r).then(function(e){var r;return e===null?e:(_this27.emit("postprocessEvent",e,t),e.contexts=_objectSpread({trace:_objectSpread(_objectSpread({},(r=e.contexts)==null?void 0:r.trace),th(n))},e.contexts),e.sdkProcessingMetadata=_objectSpread({dynamicSamplingContext:Xh(_this27,n)},e.sdkProcessingMetadata),e);});}},{key:"_captureEvent",value:function _captureEvent(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Xm();var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Zm();return X&&sv(e)&&Q.log("Captured error event `".concat(W_(e)[0]||"<unknown>","`")),this._processEvent(e,t,n,r).then(function(e){return e.event_id;},function(e){X&&(tv(e)?Q.log(e.message):ev(e)?Q.warn(e.message):Q.warn(e));});}},{key:"_processEvent",value:function _processEvent(e,t,n,r){var _this28=this;var i=this.getOptions(),a=i.sampleRate,o=cv(e),s=sv(e),c="before send for type `".concat(e.type||"error","`"),l=a===void 0?void 0:Th(a);if(s&&typeof l=="number"&&nm()>l)return this.recordDroppedEvent("sample_rate","error"),Vg($_("Discarding event because it's not included in the random sample (sampling rate = ".concat(a,")")));var u=iv(e.type);return this._prepareEvent(e,t,n,r).then(function(e){var n;if(e===null)throw _this28.recordDroppedEvent("event_processor",u),$_("An event processor returned `null`, will not send event.");return((n=t.data)==null?void 0:n.__sentry__)===!0?e:av(ov(_this28,i,e,t),c);}).then(function(i){if(i===null){if(_this28.recordDroppedEvent("before_send",u),o){var _t110=1+(e.spans||[]).length;_this28.recordDroppedEvent("before_send","span",_t110);}throw $_("".concat(c," returned `null`, will not send event."));}var a=n.getSession()||r.getSession();if(s&&a&&_this28._updateSessionFromEvent(a,i),o){var l;var _e159=(((l=i.sdkProcessingMetadata)==null?void 0:l.spanCountBeforeProcessing)||0)-(i.spans?i.spans.length:0);_e159>0&&_this28.recordDroppedEvent("before_send","span",_e159);}var d=i.transaction_info;return o&&d&&i.transaction!==e.transaction&&(i.transaction_info=_objectSpread(_objectSpread({},d),{},{source:"custom"})),_this28.sendEvent(i,t),i;}).then(null,function(e){throw tv(e)||ev(e)?e:(_this28.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),Q_("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e)));});}},{key:"_process",value:function _process(e,t){var _this29=this;this._numProcessing++,this._promiseBuffer.add(e).then(function(e){return _this29._numProcessing--,e;},function(e){return _this29._numProcessing--,e===F_&&_this29.recordDroppedEvent("queue_overflow",t),e;});}},{key:"_clearOutcomes",value:function _clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.entries(e).map(function(_ref24){var _ref25=_slicedToArray(_ref24,2),e=_ref25[0],t=_ref25[1];var _e$split=e.split(":"),_e$split2=_slicedToArray(_e$split,2),n=_e$split2[0],r=_e$split2[1];return{reason:n,category:r,quantity:t};});}},{key:"_flushOutcomes",value:function _flushOutcomes(){X&&Q.log("Flushing outcomes...");var e=this._clearOutcomes();if(e.length===0){X&&Q.log("No outcomes to send");return;}if(!this._dsn){X&&Q.log("No dsn provided, will not send outcomes");return;}X&&Q.log("Sending outcomes:",e);var t=U_(e,this._options.tunnel&&vh(this._dsn));this.sendEnvelope(t);}}]);}();function iv(e){return e==="replay_event"?"replay":e||"error";}function av(e,t){var n="".concat(t," must return `null` or a valid event.");if(Fp(e))return e.then(function(e){if(!jp(e)&&e!==null)throw Q_(n);return e;},function(e){throw Q_("".concat(t," rejected with ").concat(e));});if(!jp(e)&&e!==null)throw Q_(n);return e;}function ov(e,t,n,r){var i=t.beforeSend,a=t.beforeSendTransaction,o=t.ignoreSpans,s=!Qh(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(sv(c)&&i)return i(c,r);if(cv(c)){if(s||o){var _t111=G_(c);if(o!=null&&o.length&&Uh({description:_t111.description,op:_t111.op,attributes:_t111.data},o))return null;if(s){var _e160=s(_t111);_e160?c=Dm(n,K_(_e160)):Bh();}if(c.spans){var _t112=[],_n84=c.spans;var _iterator88=_createForOfIteratorHelper(_n84),_step88;try{for(_iterator88.s();!(_step88=_iterator88.n()).done;){var _e161=_step88.value;if(o!=null&&o.length&&Uh({description:_e161.description,op:_e161.op,attributes:_e161.data},o)){Gh(_n84,_e161);continue;}if(s){var _n85=s(_e161);_n85?_t112.push(_n85):(Bh(),_t112.push(_e161));}else _t112.push(_e161);}}catch(err){_iterator88.e(err);}finally{_iterator88.f();}var _r72=c.spans.length-_t112.length;_r72&&e.recordDroppedEvent("before_send","span",_r72),c.spans=_t112;}}if(a){if(c.spans){var _e162=c.spans.length;c.sdkProcessingMetadata=_objectSpread(_objectSpread({},n.sdkProcessingMetadata),{},{spanCountBeforeProcessing:_e162});}return a(c,r);}}return c;}function sv(e){return e.type===void 0;}function cv(e){return e.type==="transaction";}function lv(e){var t=0;return e.name&&(t+=e.name.length*2),t+=8,t+dv(e.attributes);}function uv(e){var t=0;return e.message&&(t+=e.message.length*2),t+dv(e.attributes);}function dv(e){if(!e)return 0;var t=0;return Object.values(e).forEach(function(e){Array.isArray(e)?t+=e.length*fv(e[0]):Ap(e)?t+=fv(e):t+=100;}),t;}function fv(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0;}//#endregion
368
+ var Q_="Not capturing exception because it's already been captured.",$_="Discarded session because of missing or non-string release",ev=Symbol.for("SentryInternalError"),tv=Symbol.for("SentryDoNotSendEventError"),nv=5e3;function rv(e){return _defineProperty({message:e},ev,!0);}function iv(e){return _defineProperty({message:e},tv,!0);}function av(e){return!!e&&_typeof(e)=="object"&&ev in e;}function ov(e){return!!e&&_typeof(e)=="object"&&tv in e;}function sv(e,t,n,r,i){var a=0,o,s=!1;e.on(n,function(){a=0,clearTimeout(o),s=!1;}),e.on(t,function(t){a+=r(t),a>=8e5?i(e):s||(s=!0,o=z_(setTimeout(function(){i(e);},nv)));}),e.on("flush",function(){i(e);});}var cv=/*#__PURE__*/function(){function cv(e){_classCallCheck(this,cv);var t,n,r,i,a,o,s;if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=V_((t=(n=e.transportOptions)==null?void 0:n.bufferSize)==null?64:t),e.dsn?this._dsn=kh(e.dsn):X&&Z.warn("No DSN provided, client will not send events."),this._dsn){var _t108=x_(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport(_objectSpread(_objectSpread({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{},{url:_t108}));}this._options.enableLogs=(r=this._options.enableLogs)==null?(i=this._options._experiments)==null?void 0:i.enableLogs:r,this._options.enableLogs&&sv(this,"afterCaptureLog","flushLogs",hv,j_),((a=(o=this._options.enableMetrics)==null?(s=this._options._experiments)==null?void 0:s.enableMetrics:o)==null||a)&&sv(this,"afterCaptureMetric","flushMetrics",mv,I_);}return _createClass(cv,[{key:"captureException",value:function captureException(e,t,n){var _this23=this;var r=gm();if(xm(e))return X&&Z.log(Q_),r;var i=_objectSpread({event_id:r},t);return this._process(function(){return _this23.eventFromException(e,i).then(function(e){return _this23._captureEvent(e,i,n);}).then(function(e){return e;});},"error"),i.event_id;}},{key:"captureMessage",value:function captureMessage(e,t,n,r){var _this24=this;var i=_objectSpread({event_id:gm()},n),a=Pp(e)?e:String(e),o=Fp(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(function(){return s.then(function(e){return _this24._captureEvent(e,i,r);});},o?"unknown":"error"),i.event_id;}},{key:"captureEvent",value:function captureEvent(e,t,n){var _this25=this;var r=gm();if(t!=null&&t.originalException&&xm(t.originalException))return X&&Z.log(Q_),r;var i=_objectSpread({event_id:r},t),a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=lv(e.type);return this._process(function(){return _this25._captureEvent(e,i,o||n,s);},c),i.event_id;}},{key:"captureSession",value:function captureSession(e){this.sendSession(e),km(e,{init:!1});}},{key:"getDsn",value:function getDsn(){return this._dsn;}},{key:"getOptions",value:function getOptions(){return this._options;}},{key:"getSdkMetadata",value:function getSdkMetadata(){return this._options._metadata;}},{key:"getTransport",value:function getTransport(){return this._transport;}},{key:"flush",value:function(){var _flush=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e){var t,n,r,i;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:t=this;n=t._transport;if(n){_context2.n=1;break;}return _context2.a(2,!0);case 1:t.emit("flush");_context2.n=2;return t._isClientDoneProcessing(e);case 2:r=_context2.v;_context2.n=3;return n.flush(e);case 3:i=_context2.v;return _context2.a(2,r&&i);}},_callee2,this);}));function flush(_x4){return _flush.apply(this,arguments);}return flush;}()},{key:"close",value:function(){var _close=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(e){var t,n;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:t=this;j_(t);_context3.n=1;return t.flush(e);case 1:n=_context3.v;return _context3.a(2,(t.getOptions().enabled=!1,t.emit("close"),n));}},_callee3,this);}));function close(_x5){return _close.apply(this,arguments);}return close;}()},{key:"getEventProcessors",value:function getEventProcessors(){return this._eventProcessors;}},{key:"addEventProcessor",value:function addEventProcessor(e){this._eventProcessors.push(e);}},{key:"init",value:function init(){(this._isEnabled()||this._options.integrations.some(function(_ref23){var e=_ref23.name;return e.startsWith("Spotlight");}))&&this._setupIntegrations();}},{key:"getIntegrationByName",value:function getIntegrationByName(e){return this._integrations[e];}},{key:"addIntegration",value:function addIntegration(e){var t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),D_(this,e,this._integrations),t||E_(this,[e]);}},{key:"sendEvent",value:function sendEvent(e){var _this26=this;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.emit("beforeSendEvent",e,t);var n=jg(e,this._dsn,this._options._metadata,this._options.tunnel);var _iterator86=_createForOfIteratorHelper(t.attachments||[]),_step86;try{for(_iterator86.s();!(_step86=_iterator86.n()).done;){var _e157=_step86.value;n=_g(n,Cg(_e157));}}catch(err){_iterator86.e(err);}finally{_iterator86.f();}this.sendEnvelope(n).then(function(t){return _this26.emit("afterSendEvent",e,t);});}},{key:"sendSession",value:function sendSession(e){var _this$_options=this._options,t=_this$_options.release,_this$_options$enviro=_this$_options.environment,n=_this$_options$enviro===void 0?Qh:_this$_options$enviro;if("aggregates"in e){var _r70=e.attrs||{};if(!_r70.release&&!t){X&&Z.warn($_);return;}_r70.release=_r70.release||t,_r70.environment=_r70.environment||n,e.attrs=_r70;}else{if(!e.release&&!t){X&&Z.warn($_);return;}e.release=e.release||t,e.environment=e.environment||n;}this.emit("beforeSendSession",e);var r=Ag(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r);}},{key:"recordDroppedEvent",value:function recordDroppedEvent(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;if(this._options.sendClientReports){var _r71="".concat(e,":").concat(t);X&&Z.log("Recording outcome: \"".concat(_r71,"\"").concat(n>1?" (".concat(n," times)"):"")),this._outcomes[_r71]=(this._outcomes[_r71]||0)+n;}}},{key:"on",value:function on(e,t){var n=this._hooks[e]=this._hooks[e]||/* @__PURE__ */new Set(),r=function r(){return t.apply(void 0,arguments);};return n.add(r),function(){n.delete(r);};}},{key:"emit",value:function emit(e){for(var _len12=arguments.length,t=new Array(_len12>1?_len12-1:0),_key12=1;_key12<_len12;_key12++){t[_key12-1]=arguments[_key12];}var n=this._hooks[e];n&&n.forEach(function(e){return e.apply(void 0,t);});}},{key:"sendEnvelope",value:function(){var _sendEnvelope=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(e){var t,_t109;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:t=this;if(!(t.emit("beforeEnvelope",e),t._isEnabled()&&t._transport)){_context4.n=4;break;}_context4.p=1;_context4.n=2;return t._transport.send(e);case 2:return _context4.a(2,_context4.v);case 3:_context4.p=3;_t109=_context4.v;return _context4.a(2,(X&&Z.error("Error while sending envelope:",_t109),{}));case 4:return _context4.a(2,(X&&Z.error("Transport disabled"),{}));}},_callee4,this,[[1,3]]);}));function sendEnvelope(_x6){return _sendEnvelope.apply(this,arguments);}return sendEnvelope;}()},{key:"registerCleanup",value:function registerCleanup(e){}},{key:"dispose",value:function dispose(){}},{key:"_setupIntegrations",value:function _setupIntegrations(){var e=this._options.integrations;this._integrations=T_(this,e),E_(this,e);}},{key:"_updateSessionFromEvent",value:function _updateSessionFromEvent(e,t){var n;var r=t.level==="fatal",i=!1,a=(n=t.exception)==null?void 0:n.values;if(a){i=!0,r=!1;var _iterator87=_createForOfIteratorHelper(a),_step87;try{for(_iterator87.s();!(_step87=_iterator87.n()).done;){var _e158=_step87.value;var o;if(((o=_e158.mechanism)==null?void 0:o.handled)===!1){r=!0;break;}}}catch(err){_iterator87.e(err);}finally{_iterator87.f();}}var s=e.status==="ok";(s&&e.errors===0||s&&r)&&(km(e,_objectSpread(_objectSpread({},r&&{status:"crashed"}),{},{errors:e.errors||Number(i||r)})),this.captureSession(e));}},{key:"_isClientDoneProcessing",value:function(){var _isClientDoneProcessing2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(e){var t,n;return _regenerator().w(function(_context5){while(1)switch(_context5.n){case 0:t=this;n=0;case 1:if(!(!e||n<e)){_context5.n=5;break;}_context5.n=2;return new Promise(function(e){return setTimeout(e,1);});case 2:if(t._numProcessing){_context5.n=3;break;}return _context5.a(2,!0);case 3:n++;case 4:_context5.n=1;break;case 5:return _context5.a(2,!1);}},_callee5,this);}));function _isClientDoneProcessing(_x7){return _isClientDoneProcessing2.apply(this,arguments);}return _isClientDoneProcessing;}()},{key:"_isEnabled",value:function _isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0;}},{key:"_prepareEvent",value:function _prepareEvent(e,t,n,r){var _this27=this;var i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a!=null&&a.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),t_(i,e,t,n,this,r).then(function(e){var r;return e===null?e:(_this27.emit("postprocessEvent",e,t),e.contexts=_objectSpread({trace:_objectSpread(_objectSpread({},(r=e.contexts)==null?void 0:r.trace),oh(n))},e.contexts),e.sdkProcessingMetadata=_objectSpread({dynamicSamplingContext:tg(_this27,n)},e.sdkProcessingMetadata),e);});}},{key:"_captureEvent",value:function _captureEvent(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:th();var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:nh();return X&&fv(e)&&Z.log("Captured error event `".concat(Y_(e)[0]||"<unknown>","`")),this._processEvent(e,t,n,r).then(function(e){return e.event_id;},function(e){X&&(ov(e)?Z.log(e.message):av(e)?Z.warn(e.message):Z.warn(e));});}},{key:"_processEvent",value:function _processEvent(e,t,n,r){var _this28=this;var i=this.getOptions(),a=i.sampleRate,o=pv(e),s=fv(e),c="before send for type `".concat(e.type||"error","`"),l=a===void 0?void 0:Ah(a);if(s&&typeof l=="number"&&sm()>l)return this.recordDroppedEvent("sample_rate","error"),Kg(iv("Discarding event because it's not included in the random sample (sampling rate = ".concat(a,")")));var u=lv(e.type);return this._prepareEvent(e,t,n,r).then(function(e){var n;if(e===null)throw _this28.recordDroppedEvent("event_processor",u),iv("An event processor returned `null`, will not send event.");return((n=t.data)==null?void 0:n.__sentry__)===!0?e:uv(dv(_this28,i,e,t),c);}).then(function(i){if(i===null){if(_this28.recordDroppedEvent("before_send",u),o){var _t110=1+(e.spans||[]).length;_this28.recordDroppedEvent("before_send","span",_t110);}throw iv("".concat(c," returned `null`, will not send event."));}var a=n.getSession()||r.getSession();if(s&&a&&_this28._updateSessionFromEvent(a,i),o){var l;var _e159=(((l=i.sdkProcessingMetadata)==null?void 0:l.spanCountBeforeProcessing)||0)-(i.spans?i.spans.length:0);_e159>0&&_this28.recordDroppedEvent("before_send","span",_e159);}var d=i.transaction_info;return o&&d&&i.transaction!==e.transaction&&(i.transaction_info=_objectSpread(_objectSpread({},d),{},{source:"custom"})),_this28.sendEvent(i,t),i;}).then(null,function(e){throw ov(e)||av(e)?e:(_this28.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),rv("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e)));});}},{key:"_process",value:function _process(e,t){var _this29=this;this._numProcessing++,this._promiseBuffer.add(e).then(function(e){return _this29._numProcessing--,e;},function(e){return _this29._numProcessing--,e===B_&&_this29.recordDroppedEvent("queue_overflow",t),e;});}},{key:"_clearOutcomes",value:function _clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.entries(e).map(function(_ref24){var _ref25=_slicedToArray(_ref24,2),e=_ref25[0],t=_ref25[1];var _e$split=e.split(":"),_e$split2=_slicedToArray(_e$split,2),n=_e$split2[0],r=_e$split2[1];return{reason:n,category:r,quantity:t};});}},{key:"_flushOutcomes",value:function _flushOutcomes(){X&&Z.log("Flushing outcomes...");var e=this._clearOutcomes();if(e.length===0){X&&Z.log("No outcomes to send");return;}if(!this._dsn){X&&Z.log("No dsn provided, will not send outcomes");return;}X&&Z.log("Sending outcomes:",e);var t=J_(e,this._options.tunnel&&Ch(this._dsn));this.sendEnvelope(t);}}]);}();function lv(e){return e==="replay_event"?"replay":e||"error";}function uv(e,t){var n="".concat(t," must return `null` or a valid event.");if(Bp(e))return e.then(function(e){if(!Ip(e)&&e!==null)throw rv(n);return e;},function(e){throw rv("".concat(t," rejected with ").concat(e));});if(!Ip(e)&&e!==null)throw rv(n);return e;}function dv(e,t,n,r){var i=t.beforeSend,a=t.beforeSendTransaction,o=t.ignoreSpans,s=!rg(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(fv(c)&&i)return i(c,r);if(pv(c)){if(s||o){var _t111=X_(c);if(o!=null&&o.length&&Jh({description:_t111.description,op:_t111.op,attributes:_t111.data},o))return null;if(s){var _e160=s(_t111);_e160?c=Mm(n,Z_(_e160)):Gh();}if(c.spans){var _t112=[],_n84=c.spans;var _iterator88=_createForOfIteratorHelper(_n84),_step88;try{for(_iterator88.s();!(_step88=_iterator88.n()).done;){var _e161=_step88.value;if(o!=null&&o.length&&Jh({description:_e161.description,op:_e161.op,attributes:_e161.data},o)){Xh(_n84,_e161);continue;}if(s){var _n85=s(_e161);_n85?_t112.push(_n85):(Gh(),_t112.push(_e161));}else _t112.push(_e161);}}catch(err){_iterator88.e(err);}finally{_iterator88.f();}var _r72=c.spans.length-_t112.length;_r72&&e.recordDroppedEvent("before_send","span",_r72),c.spans=_t112;}}if(a){if(c.spans){var _e162=c.spans.length;c.sdkProcessingMetadata=_objectSpread(_objectSpread({},n.sdkProcessingMetadata),{},{spanCountBeforeProcessing:_e162});}return a(c,r);}}return c;}function fv(e){return e.type===void 0;}function pv(e){return e.type==="transaction";}function mv(e){var t=0;return e.name&&(t+=e.name.length*2),t+=8,t+gv(e.attributes);}function hv(e){var t=0;return e.message&&(t+=e.message.length*2),t+gv(e.attributes);}function gv(e){if(!e)return 0;var t=0;return Object.values(e).forEach(function(e){Array.isArray(e)?t+=e.length*_v(e[0]):Fp(e)?t+=_v(e):t+=100;}),t;}function _v(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0;}//#endregion
369
369
  //#region node_modules/@sentry/core/build/esm/utils/eventbuilder.js
370
- function pv(e){return Cp(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string";}function mv(e){return pv(e)?"".concat(e.message," (").concat(e.__sentry_fetch_url_host__,")"):e.message;}//#endregion
370
+ function vv(e){return Op(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string";}function yv(e){return vv(e)?"".concat(e.message," (").concat(e.__sentry_fetch_url_host__,")"):e.message;}//#endregion
371
371
  //#region node_modules/@sentry/core/build/esm/sdk.js
372
- function hv(e,t){t.debug===!0&&(X?Q.enable():Gf(function(){console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");})),Xm().update(t.initialScope);var n=new e(t);return gv(n),n.init(),n;}function gv(e){Xm().setClient(e);}//#endregion
372
+ function bv(e,t){t.debug===!0&&(X?Z.enable():Xf(function(){console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");})),th().update(t.initialScope);var n=new e(t);return xv(n),n.init(),n;}function xv(e){th().setClient(e);}//#endregion
373
373
  //#region node_modules/@sentry/core/build/esm/utils/url.js
374
- function _v(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r};}function vv(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;if(e.startsWith("data:")){var n=e.match(/^data:([^;,]+)/),_r73=n?n[1]:"text/plain",_i48=e.includes(";base64,"),_a13=e.indexOf(","),_o17="";if(t&&_a13!==-1){var _t113=e.slice(_a13+1);_o17=_t113.length>10?"".concat(_t113.slice(0,10),"... [truncated]"):_t113;}return"data:".concat(_r73).concat(_i48?",base64":"").concat(_o17?",".concat(_o17):"");}return e;}//#endregion
374
+ function Sv(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r};}function Cv(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;if(e.startsWith("data:")){var n=e.match(/^data:([^;,]+)/),_r73=n?n[1]:"text/plain",_i48=e.includes(";base64,"),_a13=e.indexOf(","),_o17="";if(t&&_a13!==-1){var _t113=e.slice(_a13+1);_o17=_t113.length>10?"".concat(_t113.slice(0,10),"... [truncated]"):_t113;}return"data:".concat(_r73).concat(_i48?",base64":"").concat(_o17?",".concat(_o17):"");}return e;}//#endregion
375
375
  //#region node_modules/@sentry/core/build/esm/utils/ipAddress.js
376
- function yv(e){if("aggregates"in e){var t;((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs=_objectSpread(_objectSpread({},e.attrs),{},{ip_address:"{{auto}}"}));}else e.ipAddress===void 0&&(e.ipAddress="{{auto}}");}//#endregion
376
+ function wv(e){if("aggregates"in e){var t;((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs=_objectSpread(_objectSpread({},e.attrs),{},{ip_address:"{{auto}}"}));}else e.ipAddress===void 0&&(e.ipAddress="{{auto}}");}//#endregion
377
377
  //#region node_modules/@sentry/core/build/esm/utils/sdkMetadata.js
378
- function bv(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[t];var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:"npm";var i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name="sentry.javascript.".concat(t),i.packages=n.map(function(e){return{name:"".concat(r,":@sentry/").concat(e),version:Rf};}),i.version=Rf);}//#endregion
378
+ function Tv(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[t];var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:"npm";var i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name="sentry.javascript.".concat(t),i.packages=n.map(function(e){return{name:"".concat(r,":@sentry/").concat(e),version:Uf};}),i.version=Uf);}//#endregion
379
379
  //#region node_modules/@sentry/core/build/esm/breadcrumbs.js
380
- var xv=100;function Sv(e,t){var n=eh(),r=Zm();if(!n)return;var _n$getOptions=n.getOptions(),_n$getOptions$beforeB=_n$getOptions.beforeBreadcrumb,i=_n$getOptions$beforeB===void 0?null:_n$getOptions$beforeB,_n$getOptions$maxBrea=_n$getOptions.maxBreadcrumbs,a=_n$getOptions$maxBrea===void 0?xv:_n$getOptions$maxBrea;if(a<=0)return;var o=_objectSpread({timestamp:ym()},e),s=i?Gf(function(){return i(o,t);}):o;s!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,a));}//#endregion
380
+ var Ev=100;function Dv(e,t){var n=ah(),r=nh();if(!n)return;var _n$getOptions=n.getOptions(),_n$getOptions$beforeB=_n$getOptions.beforeBreadcrumb,i=_n$getOptions$beforeB===void 0?null:_n$getOptions$beforeB,_n$getOptions$maxBrea=_n$getOptions.maxBreadcrumbs,a=_n$getOptions$maxBrea===void 0?Ev:_n$getOptions$maxBrea;if(a<=0)return;var o=_objectSpread({timestamp:wm()},e),s=i?Xf(function(){return i(o,t);}):o;s!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,a));}//#endregion
381
381
  //#region node_modules/@sentry/core/build/esm/integrations/functiontostring.js
382
- var Cv,wv="FunctionToString",Tv=/* @__PURE__ */new WeakMap(),Ev=C_(function(){return{name:wv,setupOnce:function setupOnce(){Cv=Function.prototype.toString;try{Function.prototype.toString=function(){var t=Yp(this),n=Tv.has(eh())&&t!==void 0?t:this;for(var _len13=arguments.length,e=new Array(_len13),_key13=0;_key13<_len13;_key13++){e[_key13]=arguments[_key13];}return Cv.apply(n,e);};}catch(e){}},setup:function setup(e){Tv.set(e,!0);}};}),Dv=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Ov="EventFilters",kv=C_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t;return{name:Ov,setup:function setup(n){t=jv(e,n.getOptions());},processEvent:function processEvent(n,r,i){return t||(t=jv(e,i.getOptions())),Mv(n,t)?null:n;}};}),Av=C_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return _objectSpread(_objectSpread({},kv(e)),{},{name:"InboundFilters"});});function jv(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return{allowUrls:[].concat(_toConsumableArray(e.allowUrls||[]),_toConsumableArray(t.allowUrls||[])),denyUrls:[].concat(_toConsumableArray(e.denyUrls||[]),_toConsumableArray(t.denyUrls||[])),ignoreErrors:[].concat(_toConsumableArray(e.ignoreErrors||[]),_toConsumableArray(t.ignoreErrors||[]),_toConsumableArray(e.disableErrorDefaults?[]:Dv)),ignoreTransactions:[].concat(_toConsumableArray(e.ignoreTransactions||[]),_toConsumableArray(t.ignoreTransactions||[]))};}function Mv(e,t){if(!e.type){if(Nv(e,t.ignoreErrors))return X&&Q.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(pm(e))),!0;if(zv(e))return X&&Q.warn("Event dropped due to not having an error message, error type or stacktrace.\nEvent: ".concat(pm(e))),!0;if(Fv(e,t.denyUrls))return X&&Q.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(pm(e),".\nUrl: ").concat(Rv(e))),!0;if(!Iv(e,t.allowUrls))return X&&Q.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(pm(e),".\nUrl: ").concat(Rv(e))),!0;}else if(e.type==="transaction"&&Pv(e,t.ignoreTransactions))return X&&Q.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat(pm(e))),!0;return!1;}function Nv(e,t){return t!=null&&t.length?W_(e).some(function(e){return sm(e,t);}):!1;}function Pv(e,t){if(!(t!=null&&t.length))return!1;var n=e.transaction;return n?sm(n,t):!1;}function Fv(e,t){if(!(t!=null&&t.length))return!1;var n=Rv(e);return n?sm(n,t):!1;}function Iv(e,t){if(!(t!=null&&t.length))return!0;var n=Rv(e);return n?sm(n,t):!0;}function Lv(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];for(var t=e.length-1;t>=0;t--){var n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null;}return null;}function Rv(e){try{var t,n,r;var _i49=_toConsumableArray((t=(n=e.exception)==null?void 0:n.values)==null?[]:t).reverse().find(function(e){var t,n;return((t=e.mechanism)==null?void 0:t.parent_id)===void 0&&((n=e.stacktrace)==null||(n=n.frames)==null?void 0:n.length);}),_a14=_i49==null||(r=_i49.stacktrace)==null?void 0:r.frames;return _a14?Lv(_a14):null;}catch(t){return X&&Q.error("Cannot extract url for event ".concat(pm(e))),null;}}function zv(e){var t;return!((t=e.exception)==null||(t=t.values)==null)&&t.length?!e.message&&!e.exception.values.some(function(e){return e.stacktrace||e.type&&e.type!=="Error"||e.value;}):!1;}//#endregion
382
+ var Ov,kv="FunctionToString",Av=/* @__PURE__ */new WeakMap(),jv=O_(function(){return{name:kv,setupOnce:function setupOnce(){Ov=Function.prototype.toString;try{Function.prototype.toString=function(){var t=em(this),n=Av.has(ah())&&t!==void 0?t:this;for(var _len13=arguments.length,e=new Array(_len13),_key13=0;_key13<_len13;_key13++){e[_key13]=arguments[_key13];}return Ov.apply(n,e);};}catch(e){}},setup:function setup(e){Av.set(e,!0);}};}),Mv=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Nv="EventFilters",Pv=O_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t;return{name:Nv,setup:function setup(n){t=Iv(e,n.getOptions());},processEvent:function processEvent(n,r,i){return t||(t=Iv(e,i.getOptions())),Lv(n,t)?null:n;}};}),Fv=O_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return _objectSpread(_objectSpread({},Pv(e)),{},{name:"InboundFilters"});});function Iv(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return{allowUrls:[].concat(_toConsumableArray(e.allowUrls||[]),_toConsumableArray(t.allowUrls||[])),denyUrls:[].concat(_toConsumableArray(e.denyUrls||[]),_toConsumableArray(t.denyUrls||[])),ignoreErrors:[].concat(_toConsumableArray(e.ignoreErrors||[]),_toConsumableArray(t.ignoreErrors||[]),_toConsumableArray(e.disableErrorDefaults?[]:Mv)),ignoreTransactions:[].concat(_toConsumableArray(e.ignoreTransactions||[]),_toConsumableArray(t.ignoreTransactions||[]))};}function Lv(e,t){if(!e.type){if(Rv(e,t.ignoreErrors))return X&&Z.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(vm(e))),!0;if(Wv(e))return X&&Z.warn("Event dropped due to not having an error message, error type or stacktrace.\nEvent: ".concat(vm(e))),!0;if(Bv(e,t.denyUrls))return X&&Z.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(vm(e),".\nUrl: ").concat(Uv(e))),!0;if(!Vv(e,t.allowUrls))return X&&Z.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(vm(e),".\nUrl: ").concat(Uv(e))),!0;}else if(e.type==="transaction"&&zv(e,t.ignoreTransactions))return X&&Z.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat(vm(e))),!0;return!1;}function Rv(e,t){return t!=null&&t.length?Y_(e).some(function(e){return fm(e,t);}):!1;}function zv(e,t){if(!(t!=null&&t.length))return!1;var n=e.transaction;return n?fm(n,t):!1;}function Bv(e,t){if(!(t!=null&&t.length))return!1;var n=Uv(e);return n?fm(n,t):!1;}function Vv(e,t){if(!(t!=null&&t.length))return!0;var n=Uv(e);return n?fm(n,t):!0;}function Hv(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];for(var t=e.length-1;t>=0;t--){var n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null;}return null;}function Uv(e){try{var t,n,r;var _i49=_toConsumableArray((t=(n=e.exception)==null?void 0:n.values)==null?[]:t).reverse().find(function(e){var t,n;return((t=e.mechanism)==null?void 0:t.parent_id)===void 0&&((n=e.stacktrace)==null||(n=n.frames)==null?void 0:n.length);}),_a14=_i49==null||(r=_i49.stacktrace)==null?void 0:r.frames;return _a14?Hv(_a14):null;}catch(t){return X&&Z.error("Cannot extract url for event ".concat(vm(e))),null;}}function Wv(e){var t;return!((t=e.exception)==null||(t=t.values)==null)&&t.length?!e.message&&!e.exception.values.some(function(e){return e.stacktrace||e.type&&e.type!=="Error"||e.value;}):!1;}//#endregion
383
383
  //#region node_modules/@sentry/core/build/esm/utils/aggregate-errors.js
384
- function Bv(e,t,n,r,i,a){var o;if(!((o=i.exception)!=null&&o.values)||!a||!Lp(a.originalException,Error))return;var s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=Vv(e,t,r,a.originalException,n,i.exception.values,s,0));}function Vv(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;var c=_toConsumableArray(a);if(Lp(r[i],Error)){Uv(o,s,r);var _a15=e(t,r[i]),_l2=c.length;Wv(_a15,i,_l2,s),c=Vv(e,t,n,r[i],i,[_a15].concat(_toConsumableArray(c)),_a15,_l2);}return Hv(r)&&r.errors.forEach(function(a,l){if(Lp(a,Error)){Uv(o,s,r);var _u5=e(t,a),_d5=c.length;Wv(_u5,"errors[".concat(l,"]"),_d5,s),c=Vv(e,t,n,a,i,[_u5].concat(_toConsumableArray(c)),_u5,_d5);}}),c;}function Hv(e){return Array.isArray(e.errors);}function Uv(e,t,n){e.mechanism=_objectSpread(_objectSpread(_objectSpread({handled:!0,type:"auto.core.linked_errors"},Hv(n)&&{is_exception_group:!0}),e.mechanism),{},{exception_id:t});}function Wv(e,t,n,r){e.mechanism=_objectSpread(_objectSpread({handled:!0},e.mechanism),{},{type:"chained",source:t,exception_id:n,parent_id:r});}//#endregion
384
+ function Gv(e,t,n,r,i,a){var o;if(!((o=i.exception)!=null&&o.values)||!a||!Hp(a.originalException,Error))return;var s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=Kv(e,t,r,a.originalException,n,i.exception.values,s,0));}function Kv(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;var c=_toConsumableArray(a);if(Hp(r[i],Error)){Jv(o,s,r);var _a15=e(t,r[i]),_l2=c.length;Yv(_a15,i,_l2,s),c=Kv(e,t,n,r[i],i,[_a15].concat(_toConsumableArray(c)),_a15,_l2);}return qv(r)&&r.errors.forEach(function(a,l){if(Hp(a,Error)){Jv(o,s,r);var _u5=e(t,a),_d5=c.length;Yv(_u5,"errors[".concat(l,"]"),_d5,s),c=Kv(e,t,n,a,i,[_u5].concat(_toConsumableArray(c)),_u5,_d5);}}),c;}function qv(e){return Array.isArray(e.errors);}function Jv(e,t,n){e.mechanism=_objectSpread(_objectSpread(_objectSpread({handled:!0,type:"auto.core.linked_errors"},qv(n)&&{is_exception_group:!0}),e.mechanism),{},{exception_id:t});}function Yv(e,t,n,r){e.mechanism=_objectSpread(_objectSpread({handled:!0},e.mechanism),{},{type:"chained",source:t,exception_id:n,parent_id:r});}//#endregion
385
385
  //#region node_modules/@sentry/core/build/esm/instrument/console.js
386
- function Gv(e){var t="console",n=pp(t,e);return mp(t,Kv),n;}function Kv(){"console"in Z&&Hf.forEach(function(e){e in Z.console&&Kp(Z.console,e,function(t){return Wf[e]=t,function(){for(var _len14=arguments.length,t=new Array(_len14),_key14=0;_key14<_len14;_key14++){t[_key14]=arguments[_key14];}hp("console",{args:t,level:e});var n=Wf[e];n==null||n.apply(Z.console,t);};});});}//#endregion
386
+ function Xv(e){var t="console",n=vp(t,e);return yp(t,Zv),n;}function Zv(){"console"in Hf&&qf.forEach(function(e){e in Hf.console&&Zp(Hf.console,e,function(t){return Yf[e]=t,function(){for(var _len14=arguments.length,t=new Array(_len14),_key14=0;_key14<_len14;_key14++){t[_key14]=arguments[_key14];}bp("console",{args:t,level:e});var n=Yf[e];n==null||n.apply(Hf.console,t);};});});}//#endregion
387
387
  //#region node_modules/@sentry/core/build/esm/utils/severity.js
388
- function qv(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log";}//#endregion
388
+ function Qv(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log";}//#endregion
389
389
  //#region node_modules/@sentry/core/build/esm/integrations/dedupe.js
390
- var Jv="Dedupe",Yv=C_(function(){var e;return{name:Jv,processEvent:function processEvent(t){if(t.type)return t;try{if(Xv(t,e))return X&&Q.warn("Event dropped due to being a duplicate of previously captured event."),null;}catch(e){}return e=t;}};});function Xv(e,t){return t?!!(Zv(e,t)||Qv(e,t)):!1;}function Zv(e,t){var n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ey(e,t)||!$v(e,t));}function Qv(e,t){var n=ty(t),r=ty(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ey(e,t)||!$v(e,t));}function $v(e,t){var n=lp(e),r=lp(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(var _e163=0;_e163<r.length;_e163++){var _t114=r[_e163],_i50=n[_e163];if(_t114.filename!==_i50.filename||_t114.lineno!==_i50.lineno||_t114.colno!==_i50.colno||_t114.function!==_i50.function)return!1;}return!0;}function ey(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("");}catch(e){return!1;}}function ty(e){var t;return(t=e.exception)==null||(t=t.values)==null?void 0:t[0];}//#endregion
390
+ var $v="Dedupe",ey=O_(function(){var e;return{name:$v,processEvent:function processEvent(t){if(t.type)return t;try{if(ty(t,e))return X&&Z.warn("Event dropped due to being a duplicate of previously captured event."),null;}catch(e){}return e=t;}};});function ty(e,t){return t?!!(ny(e,t)||ry(e,t)):!1;}function ny(e,t){var n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ay(e,t)||!iy(e,t));}function ry(e,t){var n=oy(t),r=oy(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ay(e,t)||!iy(e,t));}function iy(e,t){var n=mp(e),r=mp(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(var _e163=0;_e163<r.length;_e163++){var _t114=r[_e163],_i50=n[_e163];if(_t114.filename!==_i50.filename||_t114.lineno!==_i50.lineno||_t114.colno!==_i50.colno||_t114.function!==_i50.function)return!1;}return!0;}function ay(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("");}catch(e){return!1;}}function oy(e){var t;return(t=e.exception)==null||(t=t.values)==null?void 0:t[0];}//#endregion
391
391
  //#region node_modules/@sentry/core/build/esm/integrations/conversationId.js
392
- var ny="ConversationId",ry=C_(function(){return{name:ny,setup:function setup(e){e.on("spanStart",function(e){var t=Xm().getScopeData(),n=Zm().getScopeData(),r=t.conversationId||n.conversationId;if(r){var _jh=jh(e),_t115=_jh.op,_n86=_jh.data,_i51=_jh.description;if(!(_t115!=null&&_t115.startsWith("gen_ai."))&&!_n86["ai.operationId"]&&!(_i51!=null&&_i51.startsWith("ai.")))return;e.setAttribute(sh,r);}});}};});//#endregion
392
+ var sy="ConversationId",cy=O_(function(){return{name:sy,setup:function setup(e){e.on("spanStart",function(e){var t=th().getScopeData(),n=nh().getScopeData(),r=t.conversationId||n.conversationId;if(r){var _Ih=Ih(e),_t115=_Ih.op,_n86=_Ih.data,_i51=_Ih.description;if(!(_t115!=null&&_t115.startsWith("gen_ai."))&&!_n86["ai.operationId"]&&!(_i51!=null&&_i51.startsWith("ai.")))return;e.setAttribute(fh,r);}});}};});//#endregion
393
393
  //#region node_modules/@sentry/core/build/esm/utils/env.js
394
- function iy(){return"npm";}//#endregion
394
+ function ly(){return"npm";}//#endregion
395
395
  //#region node_modules/@sentry/core/build/esm/utils/breadcrumb-log-level.js
396
- function ay(e){if(e!==void 0){if(e>=400&&e<500)return"warning";if(e>=500)return"error";}}//#endregion
396
+ function uy(e){if(e!==void 0){if(e>=400&&e<500)return"warning";if(e>=500)return"error";}}//#endregion
397
397
  //#region node_modules/@sentry/core/build/esm/utils/supports.js
398
- var oy=Z;function sy(){return"history"in oy&&!!oy.history;}function cy(){if(!("fetch"in oy))return!1;try{return new Headers(),new Request("data:,"),new Response(),!0;}catch(e){return!1;}}function ly(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString());}function uy(){if(typeof EdgeRuntime=="string")return!0;if(!cy())return!1;if(ly(oy.fetch))return!0;var e=!1,t=oy.document;if(t&&typeof t.createElement=="function")try{var n;var _r74=t.createElement("iframe");_r74.hidden=!0,t.head.appendChild(_r74),(n=_r74.contentWindow)!=null&&n.fetch&&(e=ly(_r74.contentWindow.fetch)),t.head.removeChild(_r74);}catch(e){X&&Q.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e);}return e;}//#endregion
398
+ var dy=Hf;function fy(){return"history"in dy&&!!dy.history;}function py(){if(!("fetch"in dy))return!1;try{return new Headers(),new Request("data:,"),new Response(),!0;}catch(e){return!1;}}function my(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString());}function hy(){if(typeof EdgeRuntime=="string")return!0;if(!py())return!1;if(my(dy.fetch))return!0;var e=!1,t=dy.document;if(t&&typeof t.createElement=="function")try{var n;var _r74=t.createElement("iframe");_r74.hidden=!0,t.head.appendChild(_r74),(n=_r74.contentWindow)!=null&&n.fetch&&(e=my(_r74.contentWindow.fetch)),t.head.removeChild(_r74);}catch(e){X&&Z.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e);}return e;}//#endregion
399
399
  //#region node_modules/@sentry/core/build/esm/instrument/fetch.js
400
- function dy(e,t){var n="fetch",r=pp(n,e);return mp(n,function(){return fy(void 0,t);}),r;}function fy(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;t&&!uy()||Kp(Z,"fetch",function(t){return function(){for(var _len15=arguments.length,n=new Array(_len15),_key15=0;_key15<_len15;_key15++){n[_key15]=arguments[_key15];}var r=/* @__PURE__ */Error(),_hy=hy(n),i=_hy.method,a=_hy.url,o={args:n,fetchData:{method:i,url:a},startTimestamp:Sm()*1e3,virtualError:r,headers:gy(n)};return e||hp("fetch",_objectSpread({},o)),t.apply(Z,n).then(/*#__PURE__*/function(){var _ref26=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(t){return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:return _context6.a(2,(e?e(t):hp("fetch",_objectSpread(_objectSpread({},o),{},{endTimestamp:Sm()*1e3,response:t})),t));}},_callee6);}));return function(_x8){return _ref26.apply(this,arguments);};}(),function(e){var t;hp("fetch",_objectSpread(_objectSpread({},o),{},{endTimestamp:Sm()*1e3,error:e})),Cp(e)&&e.stack===void 0&&(e.stack=r.stack,qp(e,"framesToPop",1));var n=eh(),i=(t=n==null?void 0:n.getOptions().enhanceFetchErrorMessages)==null?"always":t;if(i!==!1&&e instanceof TypeError&&(e.message==="Failed to fetch"||e.message==="Load failed"||e.message==="NetworkError when attempting to fetch resource."))try{var _t116=new URL(o.fetchData.url).host;i==="always"?e.message="".concat(e.message," (").concat(_t116,")"):qp(e,"__sentry_fetch_url_host__",_t116);}catch(e){}throw e;});};});}function py(e,t){return!!e&&_typeof(e)=="object"&&!!e[t];}function my(e){return typeof e=="string"?e:e?py(e,"url")?e.url:e.toString?e.toString():"":"";}function hy(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){var _e164=_slicedToArray(e,2),_t117=_e164[0],n=_e164[1];return{url:my(_t117),method:py(n,"method")?String(n.method).toUpperCase():zp(_t117)&&py(_t117,"method")?String(_t117.method).toUpperCase():"GET"};}var t=e[0];return{url:my(t),method:py(t,"method")?String(t.method).toUpperCase():"GET"};}function gy(e){var _e165=_slicedToArray(e,2),t=_e165[0],n=_e165[1];try{if(_typeof(n)=="object"&&n&&"headers"in n&&n.headers)return new Headers(n.headers);if(zp(t))return new Headers(t.headers);}catch(e){}}//#endregion
400
+ function gy(e,t){var n="fetch",r=vp(n,e);return yp(n,function(){return _y(void 0,t);}),r;}function _y(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;t&&!hy()||Zp(Hf,"fetch",function(t){return function(){for(var _len15=arguments.length,n=new Array(_len15),_key15=0;_key15<_len15;_key15++){n[_key15]=arguments[_key15];}var r=/* @__PURE__ */Error(),_by=by(n),i=_by.method,a=_by.url,o={args:n,fetchData:{method:i,url:a},startTimestamp:Dm()*1e3,virtualError:r,headers:xy(n)};return e||bp("fetch",_objectSpread({},o)),t.apply(Hf,n).then(/*#__PURE__*/function(){var _ref26=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(t){return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:return _context6.a(2,(e?e(t):bp("fetch",_objectSpread(_objectSpread({},o),{},{endTimestamp:Dm()*1e3,response:t})),t));}},_callee6);}));return function(_x8){return _ref26.apply(this,arguments);};}(),function(e){var t;bp("fetch",_objectSpread(_objectSpread({},o),{},{endTimestamp:Dm()*1e3,error:e})),Op(e)&&e.stack===void 0&&(e.stack=r.stack,Qp(e,"framesToPop",1));var n=ah(),i=(t=n==null?void 0:n.getOptions().enhanceFetchErrorMessages)==null?"always":t;if(i!==!1&&e instanceof TypeError&&(e.message==="Failed to fetch"||e.message==="Load failed"||e.message==="NetworkError when attempting to fetch resource."))try{var _t116=new URL(o.fetchData.url).host;i==="always"?e.message="".concat(e.message," (").concat(_t116,")"):Qp(e,"__sentry_fetch_url_host__",_t116);}catch(e){}throw e;});};});}function vy(e,t){return!!e&&_typeof(e)=="object"&&!!e[t];}function yy(e){return typeof e=="string"?e:e?vy(e,"url")?e.url:e.toString?e.toString():"":"";}function by(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){var _e164=_slicedToArray(e,2),_t117=_e164[0],n=_e164[1];return{url:yy(_t117),method:vy(n,"method")?String(n.method).toUpperCase():Wp(_t117)&&vy(_t117,"method")?String(_t117.method).toUpperCase():"GET"};}var t=e[0];return{url:yy(t),method:vy(t,"method")?String(t.method).toUpperCase():"GET"};}function xy(e){var _e165=_slicedToArray(e,2),t=_e165[0],n=_e165[1];try{if(_typeof(n)=="object"&&n&&"headers"in n&&n.headers)return new Headers(n.headers);if(Wp(t))return new Headers(t.headers);}catch(e){}}//#endregion
401
401
  //#region node_modules/@sentry/browser/build/npm/esm/prod/helpers.js
402
- var _y=Z,vy=0;function yy(){return vy>0;}function by(){vy++,setTimeout(function(){vy--;});}function xy(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};function n(e){return typeof e=="function";}if(!n(e))return e;try{var _t118=e.__sentry_wrapped__;if(_t118)return typeof _t118=="function"?_t118:e;if(Yp(e))return e;}catch(t){return e;}var r=function r(){for(var _len16=arguments.length,n=new Array(_len16),_key16=0;_key16<_len16;_key16++){n[_key16]=arguments[_key16];}try{var _r75=n.map(function(e){return xy(e,t);});return e.apply(this,_r75);}catch(e){throw by(),$m(function(r){r.addEventProcessor(function(e){return t.mechanism&&(mm(e,void 0,void 0),hm(e,t.mechanism)),e.extra=_objectSpread(_objectSpread({},e.extra),{},{arguments:n}),e;}),s_(e);}),e;}};try{for(var _t119 in e)Object.prototype.hasOwnProperty.call(e,_t119)&&(r[_t119]=e[_t119]);}catch(e){}Jp(r,e),qp(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function get(){return e.name;}});}catch(e){}return r;}function Sy(){var e=Wp(),_ref27=_y.document||{},t=_ref27.referrer,_ref28=_y.navigator||{},n=_ref28.userAgent;return{url:e,headers:_objectSpread(_objectSpread({},t&&{Referer:t}),n&&{"User-Agent":n})};}//#endregion
402
+ var Sy=Hf,Cy=0;function wy(){return Cy>0;}function Ty(){Cy++,setTimeout(function(){Cy--;});}function Ey(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};function n(e){return typeof e=="function";}if(!n(e))return e;try{var _t118=e.__sentry_wrapped__;if(_t118)return typeof _t118=="function"?_t118:e;if(em(e))return e;}catch(t){return e;}var r=function r(){for(var _len16=arguments.length,n=new Array(_len16),_key16=0;_key16<_len16;_key16++){n[_key16]=arguments[_key16];}try{var _r75=n.map(function(e){return Ey(e,t);});return e.apply(this,_r75);}catch(e){throw Ty(),ih(function(r){r.addEventProcessor(function(e){return t.mechanism&&(ym(e,void 0,void 0),bm(e,t.mechanism)),e.extra=_objectSpread(_objectSpread({},e.extra),{},{arguments:n}),e;}),f_(e);}),e;}};try{for(var _t119 in e)Object.prototype.hasOwnProperty.call(e,_t119)&&(r[_t119]=e[_t119]);}catch(e){}$p(r,e),Qp(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function get(){return e.name;}});}catch(e){}return r;}function Dy(){var e=Yp(),_ref27=Sy.document||{},t=_ref27.referrer,_ref28=Sy.navigator||{},n=_ref28.userAgent;return{url:e,headers:_objectSpread(_objectSpread({},t&&{Referer:t}),n&&{"User-Agent":n})};}//#endregion
403
403
  //#region node_modules/@sentry/browser/build/npm/esm/prod/eventbuilder.js
404
- function Cy(e,t){var n=Ey(e,t),r={type:jy(t),value:My(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r;}function wy(e,t,n,r){var i=eh(),a=i==null?void 0:i.getOptions().normalizeDepth,o=zy(t),s={__serialized__:ig(t,a)};if(o)return{exception:{values:[Cy(e,o)]},extra:s};var c={exception:{values:[{type:Mp(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Ly(t,{isUnhandledRejection:r})}]},extra:s};if(n){var _t120=Ey(e,n);_t120.length&&(c.exception.values[0].stacktrace={frames:_t120});}return c;}function Ty(e,t){return{exception:{values:[Cy(e,t)]}};}function Ey(e,t){var n=t.stacktrace||t.stack||"",r=Oy(t),i=ky(t);try{return e(n,r,i);}catch(e){}return[];}var Dy=/Minified React error #\d+;/i;function Oy(e){return e&&Dy.test(e.message)?1:0;}function ky(e){return typeof e.framesToPop=="number"?e.framesToPop:0;}function Ay(e){return(typeof WebAssembly==="undefined"?"undefined":_typeof(WebAssembly))<"u"&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1;}function jy(e){var t=e==null?void 0:e.name;return!t&&Ay(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t;}function My(e){var t=e==null?void 0:e.message;return Ay(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?mv(t.error):mv(e):"No error message";}function Ny(e,t,n,r){var i=Fy(e,t,(n==null?void 0:n.syntheticException)||void 0,r);return hm(i),i.level="error",n!=null&&n.event_id&&(i.event_id=n.event_id),Bg(i);}function Py(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"info";var r=arguments.length>3?arguments[3]:undefined;var i=arguments.length>4?arguments[4]:undefined;var a=Iy(e,t,(r==null?void 0:r.syntheticException)||void 0,i);return a.level=n,r!=null&&r.event_id&&(a.event_id=r.event_id),Bg(a);}function Fy(e,t,n,r,i){var a;if(Tp(t)&&t.error)return Ty(e,t.error);if(Ep(t)||Dp(t)){var _i52=t;if("stack"in t)a=Ty(e,t);else{var _t121=_i52.name||(Ep(_i52)?"DOMError":"DOMException"),_o18=_i52.message?"".concat(_t121,": ").concat(_i52.message):_t121;a=Iy(e,_o18,n,r),mm(a,_o18);}return"code"in _i52&&(a.tags=_objectSpread(_objectSpread({},a.tags),{},{"DOMException.code":"".concat(_i52.code)})),a;}return Cp(t)?Ty(e,t):jp(t)||Mp(t)?(a=wy(e,t,n,i),hm(a,{synthetic:!0}),a):(a=Iy(e,t,n,r),mm(a,"".concat(t),void 0),hm(a,{synthetic:!0}),a);}function Iy(e,t,n,r){var i={};if(r&&n){var _r76=Ey(e,n);_r76.length&&(i.exception={values:[{value:t,stacktrace:{frames:_r76}}]}),hm(i,{synthetic:!0});}if(kp(t)){var _e166=t.__sentry_template_string__,_n87=t.__sentry_template_values__;return i.logentry={message:_e166,params:_n87},i;}return i.message=t,i;}function Ly(e,_ref29){var t=_ref29.isUnhandledRejection;var n=$p(e),r=t?"promise rejection":"exception";return Tp(e)?"Event `ErrorEvent` captured as ".concat(r," with message `").concat(e.message,"`"):Mp(e)?"Event `".concat(Ry(e),"` (type=").concat(e.type,") captured as ").concat(r):"Object captured as ".concat(r," with keys: ").concat(n);}function Ry(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0;}catch(e){}}function zy(e){return Object.values(e).find(function(e){return e instanceof Error;});}//#endregion
404
+ function Oy(e,t){var n=jy(e,t),r={type:Iy(t),value:Ly(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r;}function ky(e,t,n,r){var i=ah(),a=i==null?void 0:i.getOptions().normalizeDepth,o=Wy(t),s={__serialized__:lg(t,a)};if(o)return{exception:{values:[Oy(e,o)]},extra:s};var c={exception:{values:[{type:Lp(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Hy(t,{isUnhandledRejection:r})}]},extra:s};if(n){var _t120=jy(e,n);_t120.length&&(c.exception.values[0].stacktrace={frames:_t120});}return c;}function Ay(e,t){return{exception:{values:[Oy(e,t)]}};}function jy(e,t){var n=t.stacktrace||t.stack||"",r=Ny(t),i=Py(t);try{return e(n,r,i);}catch(e){}return[];}var My=/Minified React error #\d+;/i;function Ny(e){return e&&My.test(e.message)?1:0;}function Py(e){return typeof e.framesToPop=="number"?e.framesToPop:0;}function Fy(e){return(typeof WebAssembly==="undefined"?"undefined":_typeof(WebAssembly))<"u"&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1;}function Iy(e){var t=e==null?void 0:e.name;return!t&&Fy(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t;}function Ly(e){var t=e==null?void 0:e.message;return Fy(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?yv(t.error):yv(e):"No error message";}function Ry(e,t,n,r){var i=By(e,t,(n==null?void 0:n.syntheticException)||void 0,r);return bm(i),i.level="error",n!=null&&n.event_id&&(i.event_id=n.event_id),Gg(i);}function zy(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"info";var r=arguments.length>3?arguments[3]:undefined;var i=arguments.length>4?arguments[4]:undefined;var a=Vy(e,t,(r==null?void 0:r.syntheticException)||void 0,i);return a.level=n,r!=null&&r.event_id&&(a.event_id=r.event_id),Gg(a);}function By(e,t,n,r,i){var a;if(Ap(t)&&t.error)return Ay(e,t.error);if(jp(t)||Mp(t)){var _i52=t;if("stack"in t)a=Ay(e,t);else{var _t121=_i52.name||(jp(_i52)?"DOMError":"DOMException"),_o18=_i52.message?"".concat(_t121,": ").concat(_i52.message):_t121;a=Vy(e,_o18,n,r),ym(a,_o18);}return"code"in _i52&&(a.tags=_objectSpread(_objectSpread({},a.tags),{},{"DOMException.code":"".concat(_i52.code)})),a;}return Op(t)?Ay(e,t):Ip(t)||Lp(t)?(a=ky(e,t,n,i),bm(a,{synthetic:!0}),a):(a=Vy(e,t,n,r),ym(a,"".concat(t),void 0),bm(a,{synthetic:!0}),a);}function Vy(e,t,n,r){var i={};if(r&&n){var _r76=jy(e,n);_r76.length&&(i.exception={values:[{value:t,stacktrace:{frames:_r76}}]}),bm(i,{synthetic:!0});}if(Pp(t)){var _e166=t.__sentry_template_string__,_n87=t.__sentry_template_values__;return i.logentry={message:_e166,params:_n87},i;}return i.message=t,i;}function Hy(e,_ref29){var t=_ref29.isUnhandledRejection;var n=im(e),r=t?"promise rejection":"exception";return Ap(e)?"Event `ErrorEvent` captured as ".concat(r," with message `").concat(e.message,"`"):Lp(e)?"Event `".concat(Uy(e),"` (type=").concat(e.type,") captured as ").concat(r):"Object captured as ".concat(r," with keys: ").concat(n);}function Uy(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0;}catch(e){}}function Wy(e){return Object.values(e).find(function(e){return e instanceof Error;});}//#endregion
405
405
  //#region node_modules/@sentry/browser/build/npm/esm/prod/client.js
406
- var By=/*#__PURE__*/function(_rv){function By(e){var _this30;_classCallCheck(this,By);var t,n;var r=Vy(e);bv(r,"browser",["browser"],_y.SENTRY_SDK_SOURCE||iy()),(t=r._metadata)!=null&&t.sdk&&(r._metadata.sdk.settings=_objectSpread({infer_ip:r.sendDefaultPii?"auto":"never"},r._metadata.sdk.settings)),_this30=_callSuper(this,By,[r]);var _this30$_options=_this30._options,i=_this30$_options.sendDefaultPii,a=_this30$_options.sendClientReports,o=_this30$_options.enableLogs,s=_this30$_options._experiments,c=_this30$_options.enableMetrics,l=(n=c==null?s==null?void 0:s.enableMetrics:c)==null?!0:n;_y.document&&(a||o||l)&&_y.document.addEventListener("visibilitychange",function(){_y.document.visibilityState==="hidden"&&(a&&_this30._flushOutcomes(),o&&E_(_this30),l&&j_(_this30));}),i&&_this30.on("beforeSendSession",yv);return _this30;}_inherits(By,_rv);return _createClass(By,[{key:"eventFromException",value:function eventFromException(e,t){return Ny(this._options.stackParser,e,t,this._options.attachStacktrace);}},{key:"eventFromMessage",value:function eventFromMessage(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"info";var n=arguments.length>2?arguments[2]:undefined;return Py(this._options.stackParser,e,t,n,this._options.attachStacktrace);}},{key:"_prepareEvent",value:function _prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",_superPropGet(By,"_prepareEvent",this,3)([e,t,n,r]);}}]);}(rv);function Vy(e){var t;return _objectSpread({release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=_y.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0},e);}//#endregion
406
+ var Gy=/*#__PURE__*/function(_cv){function Gy(e){var _this30;_classCallCheck(this,Gy);var t,n;var r=Ky(e);Tv(r,"browser",["browser"],Sy.SENTRY_SDK_SOURCE||ly()),(t=r._metadata)!=null&&t.sdk&&(r._metadata.sdk.settings=_objectSpread({infer_ip:r.sendDefaultPii?"auto":"never"},r._metadata.sdk.settings)),_this30=_callSuper(this,Gy,[r]);var _this30$_options=_this30._options,i=_this30$_options.sendDefaultPii,a=_this30$_options.sendClientReports,o=_this30$_options.enableLogs,s=_this30$_options._experiments,c=_this30$_options.enableMetrics,l=(n=c==null?s==null?void 0:s.enableMetrics:c)==null?!0:n;Sy.document&&(a||o||l)&&Sy.document.addEventListener("visibilitychange",function(){Sy.document.visibilityState==="hidden"&&(a&&_this30._flushOutcomes(),o&&j_(_this30),l&&I_(_this30));}),i&&_this30.on("beforeSendSession",wv);return _this30;}_inherits(Gy,_cv);return _createClass(Gy,[{key:"eventFromException",value:function eventFromException(e,t){return Ry(this._options.stackParser,e,t,this._options.attachStacktrace);}},{key:"eventFromMessage",value:function eventFromMessage(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"info";var n=arguments.length>2?arguments[2]:undefined;return zy(this._options.stackParser,e,t,n,this._options.attachStacktrace);}},{key:"_prepareEvent",value:function _prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",_superPropGet(Gy,"_prepareEvent",this,3)([e,t,n,r]);}}]);}(cv);function Ky(e){var t;return _objectSpread({release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=Sy.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0},e);}//#endregion
407
407
  //#region node_modules/@sentry-internal/browser-utils/build/esm/debug-build.js
408
- var Hy=(typeof __SENTRY_DEBUG__==="undefined"?"undefined":_typeof(__SENTRY_DEBUG__))>"u"||__SENTRY_DEBUG__,Uy=Z,Wy=1e3,Gy,Ky,qy;function Jy(e){pp("dom",e),mp("dom",Yy);}function Yy(){if(!Uy.document)return;var e=hp.bind(null,"dom"),t=Qy(e,!0);Uy.document.addEventListener("click",t,!1),Uy.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(function(t){var n,r;var i=(n=Uy[t])==null?void 0:n.prototype;!(i==null||(r=i.hasOwnProperty)==null)&&r.call(i,"addEventListener")&&(Kp(i,"addEventListener",function(t){return function(n,r,i){if(n==="click"||n=="keypress")try{var _r77=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},_a16=_r77[n]=_r77[n]||{refCount:0};if(!_a16.handler){var _r78=Qy(e);_a16.handler=_r78,t.call(this,n,_r78,i);}_a16.refCount++;}catch(e){}return t.call(this,n,r,i);};}),Kp(i,"removeEventListener",function(e){return function(t,n,r){if(t==="click"||t=="keypress")try{var _n88=this.__sentry_instrumentation_handlers__||{},_i53=_n88[t];_i53&&(_i53.refCount--,_i53.refCount<=0&&(e.call(this,t,_i53.handler,r),_i53.handler=void 0,delete _n88[t]),Object.keys(_n88).length===0&&delete this.__sentry_instrumentation_handlers__);}catch(e){}return e.call(this,t,n,r);};}));});}function Xy(e){if(e.type!==Ky)return!1;try{if(!e.target||e.target._sentryId!==qy)return!1;}catch(e){}return!0;}function Zy(e,t){return e==="keypress"?t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0:!1;}function Qy(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;return function(n){if(!n||n._sentryCaptured)return;var r=$y(n);if(Zy(n.type,r))return;qp(n,"_sentryCaptured",!0),r&&!r._sentryId&&qp(r,"_sentryId",dm());var i=n.type==="keypress"?"input":n.type;Xy(n)||(e({event:n,name:i,global:t}),Ky=n.type,qy=r?r._sentryId:void 0),clearTimeout(Gy),Gy=Uy.setTimeout(function(){qy=void 0,Ky=void 0;},Wy);};}function $y(e){try{return e.target;}catch(e){return null;}}//#endregion
408
+ var qy=(typeof __SENTRY_DEBUG__==="undefined"?"undefined":_typeof(__SENTRY_DEBUG__))>"u"||__SENTRY_DEBUG__,Jy=Hf,Yy=1e3,Xy,Zy,Qy;function $y(e){vp("dom",e),yp("dom",eb);}function eb(){if(!Jy.document)return;var e=bp.bind(null,"dom"),t=rb(e,!0);Jy.document.addEventListener("click",t,!1),Jy.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(function(t){var n,r;var i=(n=Jy[t])==null?void 0:n.prototype;!(i==null||(r=i.hasOwnProperty)==null)&&r.call(i,"addEventListener")&&(Zp(i,"addEventListener",function(t){return function(n,r,i){if(n==="click"||n=="keypress")try{var _r77=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},_a16=_r77[n]=_r77[n]||{refCount:0};if(!_a16.handler){var _r78=rb(e);_a16.handler=_r78,t.call(this,n,_r78,i);}_a16.refCount++;}catch(e){}return t.call(this,n,r,i);};}),Zp(i,"removeEventListener",function(e){return function(t,n,r){if(t==="click"||t=="keypress")try{var _n88=this.__sentry_instrumentation_handlers__||{},_i53=_n88[t];_i53&&(_i53.refCount--,_i53.refCount<=0&&(e.call(this,t,_i53.handler,r),_i53.handler=void 0,delete _n88[t]),Object.keys(_n88).length===0&&delete this.__sentry_instrumentation_handlers__);}catch(e){}return e.call(this,t,n,r);};}));});}function tb(e){if(e.type!==Zy)return!1;try{if(!e.target||e.target._sentryId!==Qy)return!1;}catch(e){}return!0;}function nb(e,t){return e==="keypress"?t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0:!1;}function rb(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;return function(n){if(!n||n._sentryCaptured)return;var r=ib(n);if(nb(n.type,r))return;Qp(n,"_sentryCaptured",!0),r&&!r._sentryId&&Qp(r,"_sentryId",gm());var i=n.type==="keypress"?"input":n.type;tb(n)||(e({event:n,name:i,global:t}),Zy=n.type,Qy=r?r._sentryId:void 0),clearTimeout(Xy),Xy=Jy.setTimeout(function(){Qy=void 0,Zy=void 0;},Yy);};}function ib(e){try{return e.target;}catch(e){return null;}}//#endregion
409
409
  //#region node_modules/@sentry-internal/browser-utils/build/esm/instrument/history.js
410
- var eb;function tb(e){var t="history";pp(t,e),mp(t,nb);}function nb(){if(Uy.addEventListener("popstate",function(){var e=Uy.location.href,t=eb;eb=e,t!==e&&hp("history",{from:t,to:e});}),!sy())return;function e(e){return function(){for(var _len17=arguments.length,t=new Array(_len17),_key17=0;_key17<_len17;_key17++){t[_key17]=arguments[_key17];}var n=t.length>2?t[2]:void 0;if(n){var _r79=eb,_i54=rb(String(n));if(eb=_i54,_r79===_i54)return e.apply(this,t);hp("history",{from:_r79,to:_i54});}return e.apply(this,t);};}Kp(Uy.history,"pushState",e),Kp(Uy.history,"replaceState",e);}function rb(e){try{return new URL(e,Uy.location.origin).toString();}catch(t){return e;}}//#endregion
410
+ var ab;function ob(e){var t="history";vp(t,e),yp(t,sb);}function sb(){if(Jy.addEventListener("popstate",function(){var e=Jy.location.href,t=ab;ab=e,t!==e&&bp("history",{from:t,to:e});}),!fy())return;function e(e){return function(){for(var _len17=arguments.length,t=new Array(_len17),_key17=0;_key17<_len17;_key17++){t[_key17]=arguments[_key17];}var n=t.length>2?t[2]:void 0;if(n){var _r79=ab,_i54=cb(String(n));if(ab=_i54,_r79===_i54)return e.apply(this,t);bp("history",{from:_r79,to:_i54});}return e.apply(this,t);};}Zp(Jy.history,"pushState",e),Zp(Jy.history,"replaceState",e);}function cb(e){try{return new URL(e,Jy.location.origin).toString();}catch(t){return e;}}//#endregion
411
411
  //#region node_modules/@sentry-internal/browser-utils/build/esm/getNativeImplementation.js
412
- var ib={};function ab(e){var t=ib[e];if(t)return t;var n=Uy[e];if(ly(n))return ib[e]=n.bind(Uy);var r=Uy.document;if(r&&typeof r.createElement=="function")try{var _t122=r.createElement("iframe");_t122.hidden=!0,r.head.appendChild(_t122);var _i55=_t122.contentWindow;_i55!=null&&_i55[e]&&(n=_i55[e]),r.head.removeChild(_t122);}catch(t){Hy&&Q.warn("Could not create sandbox iframe for ".concat(e," check, bailing to window.").concat(e,": "),t);}return n&&(ib[e]=n.bind(Uy));}function ob(e){ib[e]=void 0;}//#endregion
412
+ var lb={};function ub(e){var t=lb[e];if(t)return t;var n=Jy[e];if(my(n))return lb[e]=n.bind(Jy);var r=Jy.document;if(r&&typeof r.createElement=="function")try{var _t122=r.createElement("iframe");_t122.hidden=!0,r.head.appendChild(_t122);var _i55=_t122.contentWindow;_i55!=null&&_i55[e]&&(n=_i55[e]),r.head.removeChild(_t122);}catch(t){qy&&Z.warn("Could not create sandbox iframe for ".concat(e," check, bailing to window.").concat(e,": "),t);}return n&&(lb[e]=n.bind(Jy));}function db(e){lb[e]=void 0;}//#endregion
413
413
  //#region node_modules/@sentry-internal/browser-utils/build/esm/instrument/xhr.js
414
- var sb="__sentry_xhr_v3__";function cb(e){pp("xhr",e),mp("xhr",lb);}function lb(){if(!Uy.XMLHttpRequest)return;var e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply:function apply(e,t,n){var r=/* @__PURE__ */Error(),i=Sm()*1e3,a=Op(n[0])?n[0].toUpperCase():void 0,o=ub(n[1]);if(!a||!o)return e.apply(t,n);t[sb]={method:a,url:o,request_headers:{}},a==="POST"&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);var s=function s(){var e=t[sb];if(e&&t.readyState===4){try{e.status_code=t.status;}catch(e){}hp("xhr",{endTimestamp:Sm()*1e3,startTimestamp:i,xhr:t,virtualError:r});}};return"onreadystatechange"in t&&typeof t.onreadystatechange=="function"?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:function apply(e,t,n){return s(),e.apply(t,n);}}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply:function apply(e,t,n){var _n89=_slicedToArray(n,2),r=_n89[0],i=_n89[1],a=t[sb];return a&&Op(r)&&Op(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n);}}),e.apply(t,n);}}),e.send=new Proxy(e.send,{apply:function apply(e,t,n){var r=t[sb];return r?(n[0]!==void 0&&(r.body=n[0]),hp("xhr",{startTimestamp:Sm()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n);}});}function ub(e){if(Op(e))return e;try{return e.toString();}catch(e){}}//#endregion
414
+ var fb="__sentry_xhr_v3__";function pb(e){vp("xhr",e),yp("xhr",mb);}function mb(){if(!Jy.XMLHttpRequest)return;var e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply:function apply(e,t,n){var r=/* @__PURE__ */Error(),i=Dm()*1e3,a=Np(n[0])?n[0].toUpperCase():void 0,o=hb(n[1]);if(!a||!o)return e.apply(t,n);t[fb]={method:a,url:o,request_headers:{}},a==="POST"&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);var s=function s(){var e=t[fb];if(e&&t.readyState===4){try{e.status_code=t.status;}catch(e){}bp("xhr",{endTimestamp:Dm()*1e3,startTimestamp:i,xhr:t,virtualError:r});}};return"onreadystatechange"in t&&typeof t.onreadystatechange=="function"?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:function apply(e,t,n){return s(),e.apply(t,n);}}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply:function apply(e,t,n){var _n89=_slicedToArray(n,2),r=_n89[0],i=_n89[1],a=t[fb];return a&&Np(r)&&Np(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n);}}),e.apply(t,n);}}),e.send=new Proxy(e.send,{apply:function apply(e,t,n){var r=t[fb];return r?(n[0]!==void 0&&(r.body=n[0]),bp("xhr",{startTimestamp:Dm()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n);}});}function hb(e){if(Np(e))return e;try{return e.toString();}catch(e){}}//#endregion
415
415
  //#region node_modules/@sentry/browser/build/npm/esm/prod/transports/fetch.js
416
- var db=40;function fb(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:ab("fetch");var n=0,r=0;function i(_x9){return _i56.apply(this,arguments);}function _i56(){_i56=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(i){var a,o,_n90,_t123;return _regenerator().w(function(_context7){while(1)switch(_context7.p=_context7.n){case 0:a=i.body.length;n+=a,r++;o=_objectSpread({body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);_context7.p=1;_context7.n=2;return t(e.url,o);case 2:_n90=_context7.v;return _context7.a(2,{statusCode:_n90.status,headers:{"x-sentry-rate-limits":_n90.headers.get("X-Sentry-Rate-Limits"),"retry-after":_n90.headers.get("Retry-After")}});case 3:_context7.p=3;_t123=_context7.v;throw ob("fetch"),_t123;case 4:_context7.p=4;n-=a,r--;return _context7.f(4);case 5:return _context7.a(2);}},_callee7,null,[[1,3,4,5]]);}));return _i56.apply(this,arguments);}return H_(e,i,I_(e.bufferSize||db));}//#endregion
416
+ var gb=40;function _b(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:ub("fetch");var n=0,r=0;function i(_x9){return _i56.apply(this,arguments);}function _i56(){_i56=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(i){var a,o,_n90,_t123;return _regenerator().w(function(_context7){while(1)switch(_context7.p=_context7.n){case 0:a=i.body.length;n+=a,r++;o=_objectSpread({body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);_context7.p=1;_context7.n=2;return t(e.url,o);case 2:_n90=_context7.v;return _context7.a(2,{statusCode:_n90.status,headers:{"x-sentry-rate-limits":_n90.headers.get("X-Sentry-Rate-Limits"),"retry-after":_n90.headers.get("Retry-After")}});case 3:_context7.p=3;_t123=_context7.v;throw db("fetch"),_t123;case 4:_context7.p=4;n-=a,r--;return _context7.f(4);case 5:return _context7.a(2);}},_callee7,null,[[1,3,4,5]]);}));return _i56.apply(this,arguments);}return q_(e,i,V_(e.bufferSize||gb));}//#endregion
417
417
  //#region node_modules/@sentry/browser/build/npm/esm/prod/debug-build.js
418
- var pb=(typeof __SENTRY_DEBUG__==="undefined"?"undefined":_typeof(__SENTRY_DEBUG__))>"u"||__SENTRY_DEBUG__,mb=30,hb=50;function gb(e,t,n,r){var i={filename:e,function:t==="<anonymous>"?"?":t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i;}var _b=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,vb=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,yb=/\((\S*)(?::(\d+))(?::(\d+))\)/,bb=/at (.+?) ?\(data:(.+?),/,xb=[mb,function(e){var t=e.match(bb);if(t)return{filename:"<data:".concat(t[2],">"),function:t[1]};var n=_b.exec(e);if(n){var _n91=_slicedToArray(n,4),_e167=_n91[1],_t124=_n91[2],_r80=_n91[3];return gb(_e167,"?",+_t124,+_r80);}var r=vb.exec(e);if(r){var i;if(((i=r[2])==null?void 0:i.indexOf("eval"))===0){var _e168=yb.exec(r[2]);_e168&&(r[2]=_e168[1],r[3]=_e168[2],r[4]=_e168[3]);}var _Tb=Tb(r[1]||"?",r[2]),_Tb2=_slicedToArray(_Tb,2),_e169=_Tb2[0],_t125=_Tb2[1];return gb(_t125,_e169,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0);}}],Sb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Cb=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,wb=rp(xb,[hb,function(e){var t=Sb.exec(e);if(t){var _Tb3,_Tb4;if(t[3]&&t[3].indexOf(" > eval")>-1){var _e170=Cb.exec(t[3]);_e170&&(t[1]=t[1]||"eval",t[3]=_e170[1],t[4]=_e170[2],t[5]="");}var _e171=t[3],n=t[1]||"?";return _Tb3=Tb(n,_e171),_Tb4=_slicedToArray(_Tb3,2),n=_Tb4[0],_e171=_Tb4[1],gb(_e171,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0);}}]),Tb=function Tb(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")===-1?"?":e.split("@")[0],n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t];},Eb=1024,Db="Breadcrumbs",Ob=C_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=_objectSpread({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e);return{name:Db,setup:function setup(e){t.console&&Gv(jb(e)),t.dom&&Jy(Ab(e,t.dom)),t.xhr&&cb(Mb(e)),t.fetch&&dy(Nb(e)),t.history&&tb(Pb(e)),t.sentry&&e.on("beforeSendEvent",kb(e));}};});function kb(e){return function(t){eh()===e&&Sv({category:"sentry.".concat(t.type==="transaction"?"transaction":"event"),event_id:t.event_id,level:t.level,message:pm(t)},{event:t});};}function Ab(e,t){return function(n){if(eh()!==e)return;var r,i,a=_typeof(t)=="object"?t.serializeAttribute:void 0,o=_typeof(t)=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>Eb&&(pb&&Q.warn("`dom.maxStringLength` cannot exceed ".concat(Eb,", but a value of ").concat(o," was configured. Sentry will use ").concat(Eb," instead.")),o=Eb),typeof a=="string"&&(a=[a]);try{var _e172=n.event,_t126=Fb(_e172)?_e172.target:_e172;r=Hp(_t126,{keyAttrs:a,maxStringLength:o}),i=Gp(_t126);}catch(e){r="<unknown>";}if(r.length===0)return;var s={category:"ui.".concat(n.name),message:r};i&&(s.data={"ui.component_name":i}),Sv(s,{event:n.event,name:n.name,global:n.global});};}function jb(e){return function(t){if(eh()!==e)return;var n={category:"console",data:{arguments:t.args,logger:"console"},level:qv(t.level),message:am(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)n.message="Assertion failed: ".concat(am(t.args.slice(1)," ")||"console.assert"),n.data.arguments=t.args.slice(1);else return;Sv(n,{input:t.args,level:t.level});};}function Mb(e){return function(t){if(eh()!==e)return;var n=t.startTimestamp,r=t.endTimestamp,i=t.xhr[sb];if(!n||!r||!i)return;var a=i.method,o=i.url,s=i.status_code,c=i.body,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:l,type:"http",level:ay(s)};e.emit("beforeOutgoingRequestBreadcrumb",d,u),Sv(d,u);};}function Nb(e){return function(t){if(eh()!==e)return;var n=t.startTimestamp,r=t.endTimestamp;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.error){var _i57={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:t.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,_i57),Sv(a,_i57);}else{var _i58=t.response,_a17=_objectSpread(_objectSpread({},t.fetchData),{},{status_code:_i58==null?void 0:_i58.status}),o={input:t.args,response:_i58,startTimestamp:n,endTimestamp:r},_s5={category:"fetch",data:_a17,type:"http",level:ay(_a17.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",_s5,o),Sv(_s5,o);}};}function Pb(e){return function(t){if(eh()!==e)return;var n=t.from,r=t.to,i=_v(_y.location.href),a=n?_v(n):void 0,o=_v(r);a!=null&&a.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Sv({category:"navigation",data:{from:n,to:r}});};}function Fb(e){return!!e&&!!e.target;}//#endregion
418
+ var vb=(typeof __SENTRY_DEBUG__==="undefined"?"undefined":_typeof(__SENTRY_DEBUG__))>"u"||__SENTRY_DEBUG__,yb=30,bb=50;function xb(e,t,n,r){var i={filename:e,function:t==="<anonymous>"?"?":t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i;}var Sb=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Cb=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,wb=/\((\S*)(?::(\d+))(?::(\d+))\)/,Tb=/at (.+?) ?\(data:(.+?),/,Eb=[yb,function(e){var t=e.match(Tb);if(t)return{filename:"<data:".concat(t[2],">"),function:t[1]};var n=Sb.exec(e);if(n){var _n91=_slicedToArray(n,4),_e167=_n91[1],_t124=_n91[2],_r80=_n91[3];return xb(_e167,"?",+_t124,+_r80);}var r=Cb.exec(e);if(r){var i;if(((i=r[2])==null?void 0:i.indexOf("eval"))===0){var _e168=wb.exec(r[2]);_e168&&(r[2]=_e168[1],r[3]=_e168[2],r[4]=_e168[3]);}var _Ab=Ab(r[1]||"?",r[2]),_Ab2=_slicedToArray(_Ab,2),_e169=_Ab2[0],_t125=_Ab2[1];return xb(_t125,_e169,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0);}}],Db=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ob=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,kb=cp(Eb,[bb,function(e){var t=Db.exec(e);if(t){var _Ab3,_Ab4;if(t[3]&&t[3].indexOf(" > eval")>-1){var _e170=Ob.exec(t[3]);_e170&&(t[1]=t[1]||"eval",t[3]=_e170[1],t[4]=_e170[2],t[5]="");}var _e171=t[3],n=t[1]||"?";return _Ab3=Ab(n,_e171),_Ab4=_slicedToArray(_Ab3,2),n=_Ab4[0],_e171=_Ab4[1],xb(_e171,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0);}}]),Ab=function Ab(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")===-1?"?":e.split("@")[0],n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t];},jb=1024,Mb="Breadcrumbs",Nb=O_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=_objectSpread({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e);return{name:Mb,setup:function setup(e){t.console&&Xv(Ib(e)),t.dom&&$y(Fb(e,t.dom)),t.xhr&&pb(Lb(e)),t.fetch&&gy(Rb(e)),t.history&&ob(zb(e)),t.sentry&&e.on("beforeSendEvent",Pb(e));}};});function Pb(e){return function(t){ah()===e&&Dv({category:"sentry.".concat(t.type==="transaction"?"transaction":"event"),event_id:t.event_id,level:t.level,message:vm(t)},{event:t});};}function Fb(e,t){return function(n){if(ah()!==e)return;var r,i,a=_typeof(t)=="object"?t.serializeAttribute:void 0,o=_typeof(t)=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>jb&&(vb&&Z.warn("`dom.maxStringLength` cannot exceed ".concat(jb,", but a value of ").concat(o," was configured. Sentry will use ").concat(jb," instead.")),o=jb),typeof a=="string"&&(a=[a]);try{var _e172=n.event,_t126=Bb(_e172)?_e172.target:_e172;r=qp(_t126,{keyAttrs:a,maxStringLength:o}),i=Xp(_t126);}catch(e){r="<unknown>";}if(r.length===0)return;var s={category:"ui.".concat(n.name),message:r};i&&(s.data={"ui.component_name":i}),Dv(s,{event:n.event,name:n.name,global:n.global});};}function Ib(e){return function(t){if(ah()!==e)return;var n={category:"console",data:{arguments:t.args,logger:"console"},level:Qv(t.level),message:um(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)n.message="Assertion failed: ".concat(um(t.args.slice(1)," ")||"console.assert"),n.data.arguments=t.args.slice(1);else return;Dv(n,{input:t.args,level:t.level});};}function Lb(e){return function(t){if(ah()!==e)return;var n=t.startTimestamp,r=t.endTimestamp,i=t.xhr[fb];if(!n||!r||!i)return;var a=i.method,o=i.url,s=i.status_code,c=i.body,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:l,type:"http",level:uy(s)};e.emit("beforeOutgoingRequestBreadcrumb",d,u),Dv(d,u);};}function Rb(e){return function(t){if(ah()!==e)return;var n=t.startTimestamp,r=t.endTimestamp;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.error){var _i57={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:t.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,_i57),Dv(a,_i57);}else{var _i58=t.response,_a17=_objectSpread(_objectSpread({},t.fetchData),{},{status_code:_i58==null?void 0:_i58.status}),o={input:t.args,response:_i58,startTimestamp:n,endTimestamp:r},_s5={category:"fetch",data:_a17,type:"http",level:uy(_a17.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",_s5,o),Dv(_s5,o);}};}function zb(e){return function(t){if(ah()!==e)return;var n=t.from,r=t.to,i=Sv(Sy.location.href),a=n?Sv(n):void 0,o=Sv(r);a!=null&&a.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Dv({category:"navigation",data:{from:n,to:r}});};}function Bb(e){return!!e&&!!e.target;}//#endregion
419
419
  //#region node_modules/@sentry/browser/build/npm/esm/prod/integrations/browserapierrors.js
420
- var Ib="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),Lb="BrowserApiErrors",Rb=C_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=_objectSpread({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1},e);return{name:Lb,setupOnce:function setupOnce(){t.setTimeout&&Kp(_y,"setTimeout",zb),t.setInterval&&Kp(_y,"setInterval",zb),t.requestAnimationFrame&&Kp(_y,"requestAnimationFrame",Bb),t.XMLHttpRequest&&"XMLHttpRequest"in _y&&Kp(XMLHttpRequest.prototype,"send",Vb);var e=t.eventTarget;e&&(Array.isArray(e)?e:Ib).forEach(function(e){return Hb(e,t);});}};});function zb(e){return function(){for(var _len18=arguments.length,t=new Array(_len18),_key18=0;_key18<_len18;_key18++){t[_key18]=arguments[_key18];}var n=t[0];return t[0]=xy(n,{mechanism:{handled:!1,type:"auto.browser.browserapierrors.".concat(cp(e))}}),e.apply(this,t);};}function Bb(e){return function(t){return e.apply(this,[xy(t,{mechanism:{data:{handler:cp(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})]);};}function Vb(e){return function(){var n=this;for(var _len19=arguments.length,t=new Array(_len19),_key19=0;_key19<_len19;_key19++){t[_key19]=arguments[_key19];}return["onload","onerror","onprogress","onreadystatechange"].forEach(function(e){e in n&&typeof n[e]=="function"&&Kp(n,e,function(t){var n={mechanism:{data:{handler:cp(t)},handled:!1,type:"auto.browser.browserapierrors.xhr.".concat(e)}},r=Yp(t);return r&&(n.mechanism.data.handler=cp(r)),xy(t,n);});}),e.apply(this,t);};}function Hb(e,t){var n,r;var i=(n=_y[e])==null?void 0:n.prototype;!(i==null||(r=i.hasOwnProperty)==null)&&r.call(i,"addEventListener")&&(Kp(i,"addEventListener",function(n){return function(r,i,a){try{Ub(i)&&(i.handleEvent=xy(i.handleEvent,{mechanism:{data:{handler:cp(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}));}catch(e){}return t.unregisterOriginalCallbacks&&Wb(this,r,i),n.apply(this,[r,xy(i,{mechanism:{data:{handler:cp(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a]);};}),Kp(i,"removeEventListener",function(e){return function(t,n,r){try{var _i59=n.__sentry_wrapped__;_i59&&e.call(this,t,_i59,r);}catch(e){}return e.call(this,t,n,r);};}));}function Ub(e){return typeof e.handleEvent=="function";}function Wb(e,t,n){e&&_typeof(e)=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n);}//#endregion
420
+ var Vb="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),Hb="BrowserApiErrors",Ub=O_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=_objectSpread({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1},e);return{name:Hb,setupOnce:function setupOnce(){t.setTimeout&&Zp(Sy,"setTimeout",Wb),t.setInterval&&Zp(Sy,"setInterval",Wb),t.requestAnimationFrame&&Zp(Sy,"requestAnimationFrame",Gb),t.XMLHttpRequest&&"XMLHttpRequest"in Sy&&Zp(XMLHttpRequest.prototype,"send",Kb);var e=t.eventTarget;e&&(Array.isArray(e)?e:Vb).forEach(function(e){return qb(e,t);});}};});function Wb(e){return function(){for(var _len18=arguments.length,t=new Array(_len18),_key18=0;_key18<_len18;_key18++){t[_key18]=arguments[_key18];}var n=t[0];return t[0]=Ey(n,{mechanism:{handled:!1,type:"auto.browser.browserapierrors.".concat(pp(e))}}),e.apply(this,t);};}function Gb(e){return function(t){return e.apply(this,[Ey(t,{mechanism:{data:{handler:pp(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})]);};}function Kb(e){return function(){var n=this;for(var _len19=arguments.length,t=new Array(_len19),_key19=0;_key19<_len19;_key19++){t[_key19]=arguments[_key19];}return["onload","onerror","onprogress","onreadystatechange"].forEach(function(e){e in n&&typeof n[e]=="function"&&Zp(n,e,function(t){var n={mechanism:{data:{handler:pp(t)},handled:!1,type:"auto.browser.browserapierrors.xhr.".concat(e)}},r=em(t);return r&&(n.mechanism.data.handler=pp(r)),Ey(t,n);});}),e.apply(this,t);};}function qb(e,t){var n,r;var i=(n=Sy[e])==null?void 0:n.prototype;!(i==null||(r=i.hasOwnProperty)==null)&&r.call(i,"addEventListener")&&(Zp(i,"addEventListener",function(n){return function(r,i,a){try{Jb(i)&&(i.handleEvent=Ey(i.handleEvent,{mechanism:{data:{handler:pp(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}));}catch(e){}return t.unregisterOriginalCallbacks&&Yb(this,r,i),n.apply(this,[r,Ey(i,{mechanism:{data:{handler:pp(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a]);};}),Zp(i,"removeEventListener",function(e){return function(t,n,r){try{var _i59=n.__sentry_wrapped__;_i59&&e.call(this,t,_i59,r);}catch(e){}return e.call(this,t,n,r);};}));}function Jb(e){return typeof e.handleEvent=="function";}function Yb(e,t,n){e&&_typeof(e)=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n);}//#endregion
421
421
  //#region node_modules/@sentry/browser/build/npm/esm/prod/integrations/browsersession.js
422
- var Gb=C_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t;var n=(t=e.lifecycle)==null?"route":t;return{name:"BrowserSession",setupOnce:function setupOnce(){if(_y.document===void 0){pb&&Q.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return;}l_({ignoreDuration:!0}),f_();var e=Zm(),t=e.getUser();e.addScopeListener(function(e){var n=e.getUser();((t==null?void 0:t.id)!==(n==null?void 0:n.id)||(t==null?void 0:t.ip_address)!==(n==null?void 0:n.ip_address))&&(f_(),t=n);}),n==="route"&&tb(function(_ref30){var e=_ref30.from,t=_ref30.to;e!==t&&(l_({ignoreDuration:!0}),f_());});}};}),Kb="CultureContext",qb=C_(function(){return{name:Kb,preprocessEvent:function preprocessEvent(e){var t=Jb();if(t){var n;e.contexts=_objectSpread(_objectSpread({},e.contexts),{},{culture:_objectSpread(_objectSpread({},t),(n=e.contexts)==null?void 0:n.culture)});}},processSegmentSpan:function processSegmentSpan(e){var t=Jb();t&&Ig(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar});}};});function Jb(){try{var _e173=_y.Intl;if(!_e173)return;var t=_e173.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar};}catch(e){return;}}//#endregion
422
+ var Xb=O_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t;var n=(t=e.lifecycle)==null?"route":t;return{name:"BrowserSession",setupOnce:function setupOnce(){if(Sy.document===void 0){vb&&Z.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return;}m_({ignoreDuration:!0}),__();var e=nh(),t=e.getUser();e.addScopeListener(function(e){var n=e.getUser();((t==null?void 0:t.id)!==(n==null?void 0:n.id)||(t==null?void 0:t.ip_address)!==(n==null?void 0:n.ip_address))&&(__(),t=n);}),n==="route"&&ob(function(_ref30){var e=_ref30.from,t=_ref30.to;e!==t&&(m_({ignoreDuration:!0}),__());});}};}),Zb="CultureContext",Qb=O_(function(){return{name:Zb,preprocessEvent:function preprocessEvent(e){var t=$b();if(t){var n;e.contexts=_objectSpread(_objectSpread({},e.contexts),{},{culture:_objectSpread(_objectSpread({},t),(n=e.contexts)==null?void 0:n.culture)});}},processSegmentSpan:function processSegmentSpan(e){var t=$b();t&&Vg(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar});}};});function $b(){try{var _e173=Sy.Intl;if(!_e173)return;var t=_e173.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar};}catch(e){return;}}//#endregion
423
423
  //#region node_modules/@sentry/browser/build/npm/esm/prod/integrations/globalhandlers.js
424
- var Yb="GlobalHandlers",Xb=C_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=_objectSpread({onerror:!0,onunhandledrejection:!0},e);return{name:Yb,setupOnce:function setupOnce(){Error.stackTraceLimit=50;},setup:function setup(e){t.onerror&&(Zb(e),nx("onerror")),t.onunhandledrejection&&(Qb(e),nx("onunhandledrejection"));}};});function Zb(e){_p(function(t){var _rx=rx(),n=_rx.stackParser,r=_rx.attachStacktrace;if(eh()!==e||yy())return;var i=t.msg,a=t.url,o=t.line,s=t.column,c=t.error,l=tx(Fy(n,c||i,void 0,r,!1),a,o,s);l.level="error",c_(l,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}});});}function Qb(e){bp(function(t){var _rx2=rx(),n=_rx2.stackParser,r=_rx2.attachStacktrace;if(eh()!==e||yy())return;var i=$b(t),a=Ap(i)?ex(i):Fy(n,i,void 0,r,!0);a.level="error",c_(a,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}});});}function $b(e){if(Ap(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason;}catch(e){}return e;}function ex(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(e))}]}};}function tx(e,t,n,r){var i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];if(c.length===0){var l;c.push({colno:r,lineno:n,filename:(l=ix(t))==null?Wp():l,function:"?",in_app:!0});}return e;}function nx(e){pb&&Q.log("Global Handler attached: ".concat(e));}function rx(){var e=eh();return(e==null?void 0:e.getOptions())||{stackParser:function stackParser(){return[];},attachStacktrace:!1};}function ix(e){if(!(!Op(e)||e.length===0))return e.startsWith("data:")?"<".concat(vv(e,!1),">"):e;}//#endregion
424
+ var ex="GlobalHandlers",tx=O_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=_objectSpread({onerror:!0,onunhandledrejection:!0},e);return{name:ex,setupOnce:function setupOnce(){Error.stackTraceLimit=50;},setup:function setup(e){t.onerror&&(nx(e),sx("onerror")),t.onunhandledrejection&&(rx(e),sx("onunhandledrejection"));}};});function nx(e){Sp(function(t){var _cx=cx(),n=_cx.stackParser,r=_cx.attachStacktrace;if(ah()!==e||wy())return;var i=t.msg,a=t.url,o=t.line,s=t.column,c=t.error,l=ox(By(n,c||i,void 0,r,!1),a,o,s);l.level="error",p_(l,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}});});}function rx(e){Tp(function(t){var _cx2=cx(),n=_cx2.stackParser,r=_cx2.attachStacktrace;if(ah()!==e||wy())return;var i=ix(t),a=Fp(i)?ax(i):By(n,i,void 0,r,!0);a.level="error",p_(a,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}});});}function ix(e){if(Fp(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason;}catch(e){}return e;}function ax(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(e))}]}};}function ox(e,t,n,r){var i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];if(c.length===0){var l;c.push({colno:r,lineno:n,filename:(l=lx(t))==null?Yp():l,function:"?",in_app:!0});}return e;}function sx(e){vb&&Z.log("Global Handler attached: ".concat(e));}function cx(){var e=ah();return(e==null?void 0:e.getOptions())||{stackParser:function stackParser(){return[];},attachStacktrace:!1};}function lx(e){if(!(!Np(e)||e.length===0))return e.startsWith("data:")?"<".concat(Cv(e,!1),">"):e;}//#endregion
425
425
  //#region node_modules/@sentry/browser/build/npm/esm/prod/integrations/httpcontext.js
426
- var ax=C_(function(){return{name:"HttpContext",preprocessEvent:function preprocessEvent(e){var t;if(!_y.navigator&&!_y.location&&!_y.document)return;var n=Sy(),r=_objectSpread(_objectSpread({},n.headers),(t=e.request)==null?void 0:t.headers);e.request=_objectSpread(_objectSpread(_objectSpread({},n),e.request),{},{headers:r});},processSegmentSpan:function processSegmentSpan(e){if(!_y.navigator&&!_y.location&&!_y.document)return;var t=Sy();Ig(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers["User-Agent"],"http.request.header.referer":t.headers.Referer});}};}),ox="cause",sx=5,cx="LinkedErrors",lx=C_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=e.limit||sx,n=e.key||ox;return{name:cx,preprocessEvent:function preprocessEvent(e,r,i){Bv(Cy,i.getOptions().stackParser,n,t,e,r);}};});//#endregion
426
+ var ux=O_(function(){return{name:"HttpContext",preprocessEvent:function preprocessEvent(e){var t;if(!Sy.navigator&&!Sy.location&&!Sy.document)return;var n=Dy(),r=_objectSpread(_objectSpread({},n.headers),(t=e.request)==null?void 0:t.headers);e.request=_objectSpread(_objectSpread(_objectSpread({},n),e.request),{},{headers:r});},processSegmentSpan:function processSegmentSpan(e){if(!Sy.navigator&&!Sy.location&&!Sy.document)return;var t=Dy();Vg(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers["User-Agent"],"http.request.header.referer":t.headers.Referer});}};}),dx="cause",fx=5,px="LinkedErrors",mx=O_(function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=e.limit||fx,n=e.key||dx;return{name:px,preprocessEvent:function preprocessEvent(e,r,i){Gv(Oy,i.getOptions().stackParser,n,t,e,r);}};});//#endregion
427
427
  //#region node_modules/@sentry/browser/build/npm/esm/prod/utils/detectBrowserExtension.js
428
- function ux(){return dx()?(pb&&Gf(function(){console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/");}),!0):!1;}function dx(){var e;if(_y.window===void 0)return!1;var t=_y;if(t.nw)return!1;var n=t.chrome||t.browser;if(!(!(n==null||(e=n.runtime)==null)&&e.id))return!1;var r=Wp();return!(_y===_y.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r));}//#endregion
428
+ function hx(){return gx()?(vb&&Xf(function(){console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/");}),!0):!1;}function gx(){var e;if(Sy.window===void 0)return!1;var t=Sy;if(t.nw)return!1;var n=t.chrome||t.browser;if(!(!(n==null||(e=n.runtime)==null)&&e.id))return!1;var r=Yp();return!(Sy===Sy.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r));}//#endregion
429
429
  //#region node_modules/@sentry/browser/build/npm/esm/prod/sdk.js
430
- function fx(e){return[Av(),Ev(),ry(),Rb(),Ob(),Xb(),lx(),Yv(),ax(),qb(),Gb()];}function px(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=!e.skipBrowserExtensionCheck&&ux(),n=e.defaultIntegrations==null?fx():e.defaultIntegrations;return hv(By,_objectSpread(_objectSpread({},e),{},{enabled:t?!1:e.enabled,stackParser:ip(e.stackParser||wb),integrations:y_({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||fb}));}//#endregion
430
+ function _x(e){return[Fv(),jv(),cy(),Ub(),Nb(),tx(),mx(),ey(),ux(),Qb(),Xb()];}function vx(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=!e.skipBrowserExtensionCheck&&hx(),n=e.defaultIntegrations==null?_x():e.defaultIntegrations;return bv(Gy,_objectSpread(_objectSpread({},e),{},{enabled:t?!1:e.enabled,stackParser:lp(e.stackParser||kb),integrations:w_({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||_b}));}//#endregion
431
431
  //#region src/services/sentry.ts
432
- var mx=1e3;function hx(e,t,n){return new Promise(function(r){var i=!1,a=function a(e){i||(i=!0,clearTimeout(o),r(e==null?null:e));},o=setTimeout(function(){return a();},n);e.emit("sentry-additionaldata",{event:t,resolve:a});});}function gx(e){return/*#__PURE__*/function(){var _ref31=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(t){var n,_t127;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:_context8.p=0;_context8.n=1;return hx(e,t,mx);case 1:n=_context8.v;n!=null&&n.tags&&(t.tags=_objectSpread(_objectSpread({},t.tags),n.tags)),n!=null&&n.extra&&(t.extra=_objectSpread(_objectSpread({},t.extra),n.extra)),n!=null&&n.user&&(t.user=_objectSpread(_objectSpread({},t.user),n.user));_context8.n=3;break;case 2:_context8.p=2;_t127=_context8.v;case 3:return _context8.a(2,t);}},_callee8,null,[[0,2]]);}));return function(_x0){return _ref31.apply(this,arguments);};}();}function _x(e,t,n){e&&px({dsn:e,release:t,tracesSampleRate:0,beforeSend:n?gx(n):void 0});}var vx=new Set(["token","password","secret","authorization"]);function yx(e){return e.length<=4?"*".repeat(e.length):"".concat(e[0]).concat("*".repeat(e.length-2)).concat(e[e.length-1]);}function bx(e){return typeof e=="string"?e:Array.isArray(e)?e.map(bx):e&&_typeof(e)=="object"?Object.fromEntries(Object.entries(e).map(function(_ref32){var _ref33=_slicedToArray(_ref32,2),e=_ref33[0],t=_ref33[1];return vx.has(e.toLowerCase())&&typeof t=="string"?[e,yx(t)]:[e,bx(t)];})):e;}function xx(e){if(e)return bx(e);}function Sx(e,t){var n=xx(e),r=n==null?void 0:n.context;return n!=null&&n.level||r?$m(function(e){var i;return n!=null&&n.level&&e.setLevel(n.level),r!=null&&r.tags&&e.setTags(r.tags),r!=null&&r.extra&&e.setExtras(r.extra),r!=null&&r.user&&e.setUser(r.user),!(r==null||(i=r.fingerprint)==null)&&i.length&&e.setFingerprint(r.fingerprint),t();}):t();}function Cx(e,t){Sx(t,function(){s_(e);});}var wx=Cx,Tx=/* @__PURE__ */G("<button class=\"text-sm leading-[1.4] bg-[#27272a4d] text-white border border-[#27272a] rounded-xl py-3 px-4 h-auto transition-all duration-200 font-normal [font-family:'Poppins',sans-serif] cursor-pointer hover:bg-[rgba(255,255,255,0.1)] hover:border-[rgba(255,255,255,0.5)] hover:-translate-y-px active:translate-y-0 disabled:opacity-60 disabled:cursor-not-allowed disabled:pointer-events-none max-md:text-[0.8rem] max-md:py-2 max-md:px-3 max-md:rounded-lg\"> </button>"),Ex=/* @__PURE__ */G("<div class=\"flex flex-wrap gap-3 mt-4 [font-family:'Poppins',sans-serif] max-md:gap-2 max-md:mt-3\"></div>");function Dx(e,t){ct(t,!0);var n=J(t,"suggestions",19,function(){return[];}),r=J(t,"disabled",3,!1);function i(e){t.onClick&&t.onClick(e);}var a=ha(),o=kr(a),s=function s(e){var t=Ex();Pa(t,21,n,Aa,function(e,t){var n=Tx(),a=z(n,!0);A(n),V(function(){n.disabled=r(),ga(a,W(t));}),ra("click",n,function(){return i(W(t));}),K(e,n);}),A(t),K(e,t);};q(o,function(e){n().length>0&&e(s);}),K(e,a),lt();}ia(["click"]);//#endregion
432
+ var yx=1e3;function bx(e,t,n){return new Promise(function(r){var i=!1,a=function a(e){i||(i=!0,clearTimeout(o),r(e==null?null:e));},o=setTimeout(function(){return a();},n);e.emit("sentry-additionaldata",{event:t,resolve:a});});}function xx(e){return/*#__PURE__*/function(){var _ref31=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(t){var n,_t127;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:_context8.p=0;_context8.n=1;return bx(e,t,yx);case 1:n=_context8.v;n!=null&&n.tags&&(t.tags=_objectSpread(_objectSpread({},t.tags),n.tags)),n!=null&&n.extra&&(t.extra=_objectSpread(_objectSpread({},t.extra),n.extra)),n!=null&&n.user&&(t.user=_objectSpread(_objectSpread({},t.user),n.user));_context8.n=3;break;case 2:_context8.p=2;_t127=_context8.v;case 3:return _context8.a(2,t);}},_callee8,null,[[0,2]]);}));return function(_x0){return _ref31.apply(this,arguments);};}();}function Sx(e,t,n){e&&vx({dsn:e,release:t,tracesSampleRate:0,beforeSend:n?xx(n):void 0});}var Cx=new Set(["token","password","secret","authorization"]);function wx(e){return e.length<=4?"*".repeat(e.length):"".concat(e[0]).concat("*".repeat(e.length-2)).concat(e[e.length-1]);}function Tx(e){return typeof e=="string"?e:Array.isArray(e)?e.map(Tx):e&&_typeof(e)=="object"?Object.fromEntries(Object.entries(e).map(function(_ref32){var _ref33=_slicedToArray(_ref32,2),e=_ref33[0],t=_ref33[1];return Cx.has(e.toLowerCase())&&typeof t=="string"?[e,wx(t)]:[e,Tx(t)];})):e;}function Ex(e){if(e)return Tx(e);}function Dx(e,t){var n=Ex(e),r=n==null?void 0:n.context;return n!=null&&n.level||r?ih(function(e){var i;return n!=null&&n.level&&e.setLevel(n.level),r!=null&&r.tags&&e.setTags(r.tags),r!=null&&r.extra&&e.setExtras(r.extra),r!=null&&r.user&&e.setUser(r.user),!(r==null||(i=r.fingerprint)==null)&&i.length&&e.setFingerprint(r.fingerprint),t();}):t();}function Ox(e,t){Dx(t,function(){f_(e);});}var kx=Ox,Ax=/* @__PURE__ */G("<button class=\"text-sm leading-[1.4] bg-[#27272a4d] text-white border border-[#27272a] rounded-xl py-3 px-4 h-auto transition-all duration-200 font-normal [font-family:'Poppins',sans-serif] cursor-pointer hover:bg-[rgba(255,255,255,0.1)] hover:border-[rgba(255,255,255,0.5)] hover:-translate-y-px active:translate-y-0 disabled:opacity-60 disabled:cursor-not-allowed disabled:pointer-events-none max-md:text-[0.8rem] max-md:py-2 max-md:px-3 max-md:rounded-lg\"> </button>"),jx=/* @__PURE__ */G("<div class=\"flex flex-wrap gap-3 mt-4 [font-family:'Poppins',sans-serif] max-md:gap-2 max-md:mt-3\"></div>");function Mx(e,t){ct(t,!0);var n=J(t,"suggestions",19,function(){return[];}),r=J(t,"disabled",3,!1);function i(e){t.onClick&&t.onClick(e);}var a=ha(),o=kr(a),s=function s(e){var t=jx();Pa(t,21,n,Aa,function(e,t){var n=Ax(),a=z(n,!0);A(n),V(function(){n.disabled=r(),ga(a,W(t));}),ra("click",n,function(){return i(W(t));}),K(e,n);}),A(t),K(e,t);};q(o,function(e){n().length>0&&e(s);}),K(e,a),lt();}ia(["click"]);//#endregion
433
433
  //#region src/features/zena-chatbot/components/SurveyDropdown.svelte
434
- var Ox=/* @__PURE__ */l((/* @__PURE__ */o(function(e,t){(function(n,r){_typeof(e)=="object"&&t!==void 0?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))<"u"?globalThis:n||self).dayjs=r();})(e,function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",c="week",l="month",u="quarter",d="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function ordinal(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]";}},_=function _(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e;},v={s:_,z:function z(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+_(r,2,"0")+":"+_(i,2,"0");},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0);},a:function a(e){return e<0?Math.ceil(e)||0:Math.floor(e);},p:function p(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"");},u:function u(e){return e===void 0;}},y="en",b={};b[y]=g;var x="$isDayjsObject",S=function S(e){return e instanceof ee||!(!e||!e[x]);},C=function e(t,n,r){var i;if(!t)return y;if(typeof t=="string"){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0]);}else{var s=t.name;b[s]=t,i=s;}return!r&&i&&(y=i),i||!r&&y;},w=function w(e,t){if(S(e))return e.clone();var n=_typeof(t)=="object"?t:{};return n.date=e,n.args=arguments,new ee(n);},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset});};var ee=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0;}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return/* @__PURE__ */new Date(NaN);if(T.u(t))return/* @__PURE__ */new Date();if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a);}}return new Date(t);}(e),this.init();},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds();},_.$utils=function(){return T;},_.isValid=function(){return this.$d.toString()!==p;},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t);},_.isAfter=function(e,t){return w(e)<this.startOf(t);},_.isBefore=function(e,t){return this.endOf(t)<w(e);},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e);},_.unix=function(){return Math.floor(this.valueOf()/1e3);},_.valueOf=function(){return this.$d.getTime();},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function p(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s);},m=function m(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n);},h=this.$W,g=this.$M,_=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+"Hours",0);case o:return m(v+"Minutes",1);case a:return m(v+"Seconds",2);case i:return m(v+"Milliseconds",3);default:return this.clone();}},_.endOf=function(e){return this.startOf(e,!1);},_.$set=function(e,t){var n,c=T.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[f]=u+"Date",n[l]=u+"Month",n[d]=u+"FullYear",n[o]=u+"Hours",n[a]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d;}else p&&this.$d[p](m);return this.init(),this;},_.set=function(e,t){return this.clone().$set(e,t);},_.get=function(e){return this[T.p(e)]();},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function h(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p);};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this);},_.subtract=function(e,t){return this.add(-1*e,t);},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function d(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a);},f=function f(e){return T.s(a%12||12,e,"0");},m=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r;};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,l,3);case"MMMM":return d(l,s);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return T.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(a,o,!0);case"A":return m(a,o,!1);case"m":return String(o);case"mm":return T.s(o,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return i;}return null;}(e)||i.replace(":","");});},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15);},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function b(){return T.m(h,_);};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y;}return p?m:T.a(m);},_.daysInMonth=function(){return this.endOf(l).$D;},_.$locale=function(){return b[this.$L];},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n;},_.clone=function(){return T.w(this.$d,this);},_.toDate=function(){return new Date(this.valueOf());},_.toJSON=function(){return this.isValid()?this.toISOString():null;},_.toISOString=function(){return this.$d.toISOString();},_.toString=function(){return this.$d.toUTCString();},g;}(),E=ee.prototype;return w.prototype=E,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",l],["$y",d],["$D",f]].forEach(function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1]);};}),w.extend=function(e,t){return e.$i||(e(t,ee,w),e.$i=!0),w;},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e);},w.en=b[y],w.Ls=b,w.p={},w;});}))()),kx=/* @__PURE__ */G("<div class=\"w-full p-4 border-b border-b-[rgba(255,255,255,0.1)] [font-family:inherit] text-white last:border-b-0 text-center\"><div class=\"text-[#94a3b8] italic text-sm max-md:text-[0.8rem]\"> </div></div>"),Ax=/* @__PURE__ */G("<span> </span>"),jx=/* @__PURE__ */G("<span> </span>"),Mx=/* @__PURE__ */G("<span> </span>"),Nx=/* @__PURE__ */G("<button class=\"w-full text-left bg-transparent border-0 p-4 border-b border-b-[rgba(255,255,255,0.1)] [font-family:inherit] text-white last:border-b-0 cursor-pointer transition-colors duration-200 hover:bg-[rgba(121,192,60,0.1)] max-md:p-3\"><div><div class=\"flex items-center justify-between mb-1\"><span class=\"font-semibold text-white text-sm flex-1 mr-2 block mb-1 overflow-hidden text-ellipsis whitespace-nowrap max-md:text-[0.85rem]\"> </span></div> <div class=\"flex items-center text-xs text-[#94a3b8] mb-1\"><!></div></div></button>"),Px=/* @__PURE__ */G("<div class=\"w-full p-4 border-b border-b-[rgba(255,255,255,0.1)] [font-family:inherit] text-white last:border-b-0 text-center\"><div class=\"text-[#94a3b8] italic text-sm bg-[rgba(121,192,60,0.05)] p-2 rounded-md border border-[rgba(121,192,60,0.2)] max-md:text-[0.8rem]\"> </div></div>"),Fx=/* @__PURE__ */G("<!> <!>",1),Ix=/* @__PURE__ */G("<div class=\"absolute top-full left-0 right-0 bg-[#334155] border border-[rgba(255,255,255,0.1)] border-t-0 rounded-b-lg shadow-[0_10px_15px_-3px_rgba(0,0,0,0.1),_0_4px_6px_-2px_rgba(0,0,0,0.05)] max-h-[300px] overflow-y-auto z-10 [&amp;::-webkit-scrollbar]:hidden\"><!></div>"),Lx=/* @__PURE__ */G("<p class=\"text-xs text-[#94a3b8] m-0 text-center italic max-md:text-[0.7rem]\"> </p>"),Rx=/* @__PURE__ */G("<div><div><h4 class=\"mb-5 text-sm font-semibold text-white max-md:text-[0.8rem] max-md:mb-4\"> </h4></div> <div class=\"relative\"><form class=\"mb-0\"><div class=\"relative flex items-center\"><!> <input type=\"text\" placeholder=\"Type survey name to search...\" class=\"w-full py-4 pr-4 pl-11 border border-[rgba(255,255,255,0.2)] rounded-lg text-sm bg-[#475569] text-white transition-colors duration-200 [font-family:'Poppins',sans-serif] focus:outline-none focus:border-[#79c03c] focus:shadow-[0_0_0_2px_rgba(121,192,60,0.1)] placeholder:text-[#94a3b8] disabled:opacity-50 disabled:cursor-not-allowed max-md:py-3 max-md:pr-3 max-md:pl-9 max-md:text-[0.8rem] svelte-1yedchy\"/></div></form> <!></div> <div class=\"pt-4 border-t border-t-[rgba(255,255,255,0.1)]\"><!></div></div>"),zx={hash:"svelte-1yedchy",code:"input.svelte-1yedchy:focus {border:1px solid #71b638;outline:none;}"};function Bx(e,t){ct(t,!0),Wa(e,zx);var n=J(t,"surveys",19,function(){return[];}),r=J(t,"disabled",3,!1),i=/* @__PURE__ */L(""),a=/* @__PURE__ */L(!1),o=/* @__PURE__ */L(!1),s=/* @__PURE__ */tr(function(){return W(i).trim()?n().filter(function(e){var t,n;return typeof e.name=="string"&&e.name.toLowerCase().includes(W(i).toLowerCase())||String((t=e.survey_id)==null?"":t).includes(W(i))||String((n=e.id)==null?"":n).includes(W(i));}):[];});function c(e){var t=e.target.value;R(i,t,!0),R(a,t.trim().length>0);}function l(e){R(i,e.name,!0),R(a,!1),R(o,!0),t.onSurveySelect(e);}function u(e){e.preventDefault(),W(s).length>0&&l(W(s)[0]);}var d={bonus:"Search for a survey to check bonus details:",stuck:"Which survey do you need help completing?",available:"Which survey link is giving you trouble?"},f=/* @__PURE__ */tr(function(){return d[t.type]||"Select a survey:";}),p={bonus:"Type to search and click on a survey to check its bonus eligibility.",stuck:"Type to search and click on a survey you are stuck on.",available:"Type to search and click on the survey for which link is not working"};var m=Rx(),h=z(m),g=z(h),_=z(g,!0);A(g),A(h);var v=B(h,2),y=z(v),b=z(y),x=z(b);ss(x,{size:14,class:"absolute left-4 z-[2] text-[#94a3b8] max-md:left-3",color:"#94a3b8"});var S=B(x,2);go(S),A(b),A(y);var C=B(y,2),w=function w(e){var n=Ix(),r=z(n),a=function a(e){var t=kx(),n=z(t),r=z(n);A(n),A(t),V(function(){var e;return ga(r,"No surveys found matching \"".concat((e=W(i))==null?"":e,"\""));}),K(e,t);},o=function o(e){var n=Fx(),r=kr(n);Pa(r,17,function(){return W(s).slice(0,5);},function(e){var t,n;return(t=(n=e.users_wave_id)==null?e.id:n)==null?e.survey_id:t;},function(e,n){var r=Nx(),i=z(r),a=z(i),o=z(a),s=z(o,!0);A(o),A(a);var c=B(a,2),u=z(c),d=function d(e){var t=Ax(),r=z(t);A(t),V(function(e){return ga(r,"Completed: ".concat(e==null?"":e));},[function(){return W(n).completed_date?(0,Ox.default)(W(n).completed_date).format("MMM D, YYYY"):"Date not available";}]),K(e,t);},f=function f(e){var t=jx(),r=z(t);A(t),V(function(){return ga(r,"Progress: ".concat(W(n).progress!==null&&W(n).progress!==void 0?"".concat(W(n).progress,"%"):"-"));}),K(e,t);},p=function p(e){var t=Mx(),r=z(t);A(t),V(function(){var e;return ga(r,"Status: ".concat((e=W(n).status||"Available")==null?"":e));}),K(e,t);};q(u,function(e){t.type==="bonus"?e(d):t.type==="stuck"?e(f,1):t.type==="available"&&e(p,2);}),A(c),A(i),A(r),V(function(){return ga(s,W(n).name);}),ra("click",r,function(){return l(W(n));}),K(e,r);});var i=B(r,2),a=function a(e){var t=Px(),n=z(t),r=z(n);A(n),A(t),V(function(){return ga(r,"+".concat(W(s).length-5," more surveys. Continue typing to narrow results."));}),K(e,t);};q(i,function(e){W(s).length>5&&e(a);}),K(e,n);};q(r,function(e){W(s).length===0?e(a):e(o,-1);}),A(n),K(e,n);};q(C,function(e){W(a)&&!r()&&e(w);}),A(v);var T=B(v,2),ee=z(T),E=function E(e){var n=Lx(),r=z(n,!0);A(n),V(function(){return ga(r,p[t.type]);}),K(e,n);};q(ee,function(e){p[t.type]&&e(E);}),A(T),A(m),V(function(){eo(m,1,"bg-[#1e293b] rounded-xl p-5 mt-3 border border-[rgba(255,255,255,0.1)] max-w-full [font-family:'Poppins',sans-serif] max-md:p-4 max-md:mt-2 ".concat(r()?"opacity-60 pointer-events-none":"")),ga(_,W(f)),_o(S,W(i)),S.disabled=W(o)||r();}),na("submit",y,u),ra("input",S,c),K(e,m),lt();}ia(["input","click"]);//#endregion
434
+ var Nx=/* @__PURE__ */l((/* @__PURE__ */o(function(e,t){(function(n,r){_typeof(e)=="object"&&t!==void 0?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))<"u"?globalThis:n||self).dayjs=r();})(e,function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",c="week",l="month",u="quarter",d="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function ordinal(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]";}},_=function _(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e;},v={s:_,z:function z(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+_(r,2,"0")+":"+_(i,2,"0");},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0);},a:function a(e){return e<0?Math.ceil(e)||0:Math.floor(e);},p:function p(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"");},u:function u(e){return e===void 0;}},y="en",b={};b[y]=g;var x="$isDayjsObject",S=function S(e){return e instanceof ee||!(!e||!e[x]);},C=function e(t,n,r){var i;if(!t)return y;if(typeof t=="string"){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0]);}else{var s=t.name;b[s]=t,i=s;}return!r&&i&&(y=i),i||!r&&y;},w=function w(e,t){if(S(e))return e.clone();var n=_typeof(t)=="object"?t:{};return n.date=e,n.args=arguments,new ee(n);},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset});};var ee=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0;}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return/* @__PURE__ */new Date(NaN);if(T.u(t))return/* @__PURE__ */new Date();if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a);}}return new Date(t);}(e),this.init();},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds();},_.$utils=function(){return T;},_.isValid=function(){return this.$d.toString()!==p;},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t);},_.isAfter=function(e,t){return w(e)<this.startOf(t);},_.isBefore=function(e,t){return this.endOf(t)<w(e);},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e);},_.unix=function(){return Math.floor(this.valueOf()/1e3);},_.valueOf=function(){return this.$d.getTime();},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function p(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s);},m=function m(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n);},h=this.$W,g=this.$M,_=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+"Hours",0);case o:return m(v+"Minutes",1);case a:return m(v+"Seconds",2);case i:return m(v+"Milliseconds",3);default:return this.clone();}},_.endOf=function(e){return this.startOf(e,!1);},_.$set=function(e,t){var n,c=T.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[f]=u+"Date",n[l]=u+"Month",n[d]=u+"FullYear",n[o]=u+"Hours",n[a]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d;}else p&&this.$d[p](m);return this.init(),this;},_.set=function(e,t){return this.clone().$set(e,t);},_.get=function(e){return this[T.p(e)]();},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function h(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p);};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this);},_.subtract=function(e,t){return this.add(-1*e,t);},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function d(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a);},f=function f(e){return T.s(a%12||12,e,"0");},m=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r;};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,l,3);case"MMMM":return d(l,s);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return T.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(a,o,!0);case"A":return m(a,o,!1);case"m":return String(o);case"mm":return T.s(o,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return i;}return null;}(e)||i.replace(":","");});},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15);},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function b(){return T.m(h,_);};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y;}return p?m:T.a(m);},_.daysInMonth=function(){return this.endOf(l).$D;},_.$locale=function(){return b[this.$L];},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n;},_.clone=function(){return T.w(this.$d,this);},_.toDate=function(){return new Date(this.valueOf());},_.toJSON=function(){return this.isValid()?this.toISOString():null;},_.toISOString=function(){return this.$d.toISOString();},_.toString=function(){return this.$d.toUTCString();},g;}(),E=ee.prototype;return w.prototype=E,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",l],["$y",d],["$D",f]].forEach(function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1]);};}),w.extend=function(e,t){return e.$i||(e(t,ee,w),e.$i=!0),w;},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e);},w.en=b[y],w.Ls=b,w.p={},w;});}))()),Px=/* @__PURE__ */G("<div class=\"w-full p-4 border-b border-b-[rgba(255,255,255,0.1)] [font-family:inherit] text-white last:border-b-0 text-center\"><div class=\"text-[#94a3b8] italic text-sm max-md:text-[0.8rem]\"> </div></div>"),Fx=/* @__PURE__ */G("<span> </span>"),Ix=/* @__PURE__ */G("<span> </span>"),Lx=/* @__PURE__ */G("<span> </span>"),Rx=/* @__PURE__ */G("<button class=\"w-full text-left bg-transparent border-0 p-4 border-b border-b-[rgba(255,255,255,0.1)] [font-family:inherit] text-white last:border-b-0 cursor-pointer transition-colors duration-200 hover:bg-[rgba(121,192,60,0.1)] max-md:p-3\"><div><div class=\"flex items-center justify-between mb-1\"><span class=\"font-semibold text-white text-sm flex-1 mr-2 block mb-1 overflow-hidden text-ellipsis whitespace-nowrap max-md:text-[0.85rem]\"> </span></div> <div class=\"flex items-center text-xs text-[#94a3b8] mb-1\"><!></div></div></button>"),zx=/* @__PURE__ */G("<div class=\"w-full p-4 border-b border-b-[rgba(255,255,255,0.1)] [font-family:inherit] text-white last:border-b-0 text-center\"><div class=\"text-[#94a3b8] italic text-sm bg-[rgba(121,192,60,0.05)] p-2 rounded-md border border-[rgba(121,192,60,0.2)] max-md:text-[0.8rem]\"> </div></div>"),Bx=/* @__PURE__ */G("<!> <!>",1),Vx=/* @__PURE__ */G("<div class=\"absolute top-full left-0 right-0 bg-[#334155] border border-[rgba(255,255,255,0.1)] border-t-0 rounded-b-lg shadow-[0_10px_15px_-3px_rgba(0,0,0,0.1),_0_4px_6px_-2px_rgba(0,0,0,0.05)] max-h-[300px] overflow-y-auto z-10 [&amp;::-webkit-scrollbar]:hidden\"><!></div>"),Hx=/* @__PURE__ */G("<p class=\"text-xs text-[#94a3b8] m-0 text-center italic max-md:text-[0.7rem]\"> </p>"),Ux=/* @__PURE__ */G("<div><div><h4 class=\"mb-5 text-sm font-semibold text-white max-md:text-[0.8rem] max-md:mb-4\"> </h4></div> <div class=\"relative\"><form class=\"mb-0\"><div class=\"relative flex items-center\"><!> <input type=\"text\" placeholder=\"Type survey name to search...\" class=\"w-full py-4 pr-4 pl-11 border border-[rgba(255,255,255,0.2)] rounded-lg text-sm bg-[#475569] text-white transition-colors duration-200 [font-family:'Poppins',sans-serif] focus:outline-none focus:border-[#79c03c] focus:shadow-[0_0_0_2px_rgba(121,192,60,0.1)] placeholder:text-[#94a3b8] disabled:opacity-50 disabled:cursor-not-allowed max-md:py-3 max-md:pr-3 max-md:pl-9 max-md:text-[0.8rem] svelte-1yedchy\"/></div></form> <!></div> <div class=\"pt-4 border-t border-t-[rgba(255,255,255,0.1)]\"><!></div></div>"),Wx={hash:"svelte-1yedchy",code:"input.svelte-1yedchy:focus {border:1px solid #71b638;outline:none;}"};function Gx(e,t){ct(t,!0),Wa(e,Wx);var n=J(t,"surveys",19,function(){return[];}),r=J(t,"disabled",3,!1),i=/* @__PURE__ */L(""),a=/* @__PURE__ */L(!1),o=/* @__PURE__ */L(!1),s=/* @__PURE__ */tr(function(){return W(i).trim()?n().filter(function(e){var t,n;return typeof e.name=="string"&&e.name.toLowerCase().includes(W(i).toLowerCase())||String((t=e.survey_id)==null?"":t).includes(W(i))||String((n=e.id)==null?"":n).includes(W(i));}):[];});function c(e){var t=e.target.value;R(i,t,!0),R(a,t.trim().length>0);}function l(e){R(i,e.name,!0),R(a,!1),R(o,!0),t.onSurveySelect(e);}function u(e){e.preventDefault(),W(s).length>0&&l(W(s)[0]);}var d={bonus:"Search for a survey to check bonus details:",stuck:"Which survey do you need help completing?",available:"Which survey link is giving you trouble?"},f=/* @__PURE__ */tr(function(){return d[t.type]||"Select a survey:";}),p={bonus:"Type to search and click on a survey to check its bonus eligibility.",stuck:"Type to search and click on a survey you are stuck on.",available:"Type to search and click on the survey for which link is not working"};var m=Ux(),h=z(m),g=z(h),_=z(g,!0);A(g),A(h);var v=B(h,2),y=z(v),b=z(y),x=z(b);ss(x,{size:14,class:"absolute left-4 z-[2] text-[#94a3b8] max-md:left-3",color:"#94a3b8"});var S=B(x,2);go(S),A(b),A(y);var C=B(y,2),w=function w(e){var n=Vx(),r=z(n),a=function a(e){var t=Px(),n=z(t),r=z(n);A(n),A(t),V(function(){var e;return ga(r,"No surveys found matching \"".concat((e=W(i))==null?"":e,"\""));}),K(e,t);},o=function o(e){var n=Bx(),r=kr(n);Pa(r,17,function(){return W(s).slice(0,5);},function(e){var t,n;return(t=(n=e.users_wave_id)==null?e.id:n)==null?e.survey_id:t;},function(e,n){var r=Rx(),i=z(r),a=z(i),o=z(a),s=z(o,!0);A(o),A(a);var c=B(a,2),u=z(c),d=function d(e){var t=Fx(),r=z(t);A(t),V(function(e){return ga(r,"Completed: ".concat(e==null?"":e));},[function(){return W(n).completed_date?(0,Nx.default)(W(n).completed_date).format("MMM D, YYYY"):"Date not available";}]),K(e,t);},f=function f(e){var t=Ix(),r=z(t);A(t),V(function(){return ga(r,"Progress: ".concat(W(n).progress!==null&&W(n).progress!==void 0?"".concat(W(n).progress,"%"):"-"));}),K(e,t);},p=function p(e){var t=Lx(),r=z(t);A(t),V(function(){var e;return ga(r,"Status: ".concat((e=W(n).status||"Available")==null?"":e));}),K(e,t);};q(u,function(e){t.type==="bonus"?e(d):t.type==="stuck"?e(f,1):t.type==="available"&&e(p,2);}),A(c),A(i),A(r),V(function(){return ga(s,W(n).name);}),ra("click",r,function(){return l(W(n));}),K(e,r);});var i=B(r,2),a=function a(e){var t=zx(),n=z(t),r=z(n);A(n),A(t),V(function(){return ga(r,"+".concat(W(s).length-5," more surveys. Continue typing to narrow results."));}),K(e,t);};q(i,function(e){W(s).length>5&&e(a);}),K(e,n);};q(r,function(e){W(s).length===0?e(a):e(o,-1);}),A(n),K(e,n);};q(C,function(e){W(a)&&!r()&&e(w);}),A(v);var T=B(v,2),ee=z(T),E=function E(e){var n=Hx(),r=z(n,!0);A(n),V(function(){return ga(r,p[t.type]);}),K(e,n);};q(ee,function(e){p[t.type]&&e(E);}),A(T),A(m),V(function(){eo(m,1,"bg-[#1e293b] rounded-xl p-5 mt-3 border border-[rgba(255,255,255,0.1)] max-w-full [font-family:'Poppins',sans-serif] max-md:p-4 max-md:mt-2 ".concat(r()?"opacity-60 pointer-events-none":"")),ga(_,W(f)),_o(S,W(i)),S.disabled=W(o)||r();}),na("submit",y,u),ra("input",S,c),K(e,m),lt();}ia(["input","click"]);//#endregion
435
435
  //#region src/features/zena-chatbot/context.ts
436
- var Vx=Symbol("attachmentService"),Hx=Symbol("conversationId");function Ux(e){st(Vx,e);}function Wx(){var e=ot(Vx);return e==null?function(){return null;}:e;}function Gx(e){st(Hx,e);}function Kx(){var e=ot(Hx);return e==null?function(){return null;}:e;}//#endregion
436
+ var Kx=Symbol("attachmentService"),qx=Symbol("conversationId");function Jx(e){st(Kx,e);}function Yx(){var e=ot(Kx);return e==null?function(){return null;}:e;}function Xx(e){st(qx,e);}function Zx(){var e=ot(qx);return e==null?function(){return null;}:e;}//#endregion
437
437
  //#region src/features/zena-chatbot/components/ChatAttachment.svelte
438
- var qx=/* @__PURE__ */G("<img class=\"w-full h-full object-cover\"/>"),Jx=/* @__PURE__ */G("<video class=\"w-full h-full object-cover\"></video>",2),Yx=/* @__PURE__ */G("<span class=\"text-[0.7rem] leading-[1.2] text-white/85 break-all text-center\"> </span>"),Xx=/* @__PURE__ */G("<div><div><!></div> <!></div>"),Zx=/* @__PURE__ */G("<div data-testid=\"chat-attachment\"></div>");function Qx(e,t){ct(t,!0);var n=J(t,"messageType",3,"user"),r=/* @__PURE__ */tr(function(){return n()==="assistant";}),i=/* @__PURE__ */L(vr([]));function a(e){return!e||typeof e!="string"?null:e.length>37?e.substring(37):null;}var o=Wx(),s=Kx();Uo(function(){var e;if(!((e=t.attachmentIds)!=null&&e.length))return;var n=o(),r=s();if(!n||!r)return;var c=!1;return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(){var e;return _regenerator().w(function(_context0){while(1)switch(_context0.n){case 0:_context0.n=1;return Promise.allSettled(t.attachmentIds.map(/*#__PURE__*/function(){var _ref35=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(e){var _t128,_t129;return _regenerator().w(function(_context9){while(1)switch(_context9.p=_context9.n){case 0:_context9.p=0;_context9.n=1;return n.fetchPreviewUrl(String(e),r);case 1:_t128=_context9.v;return _context9.a(2,{id:e,previewUrl:_t128.previewUrl,filename:a(String(e)),contentType:_t128.contentType});case 2:_context9.p=2;_t129=_context9.v;return _context9.a(2,(Cx(_t129,{context:{extra:{message:"fetchPreviewUrl failed",attachmentId:e}}}),{id:e,previewUrl:null,filename:a(String(e)),contentType:""}));}},_callee9,null,[[0,2]]);}));return function(_x1){return _ref35.apply(this,arguments);};}()));case 1:e=_context0.v;c||R(i,e.map(function(e){return e.status==="fulfilled"?e.value:{id:"",previewUrl:null,filename:null,contentType:""};}),!0);case 2:return _context0.a(2);}},_callee0);}))(),function(){c=!0;};});var c=ha(),l=kr(c),u=function u(e){var t=Zx();Pa(t,21,function(){return W(i);},function(e){return e.id;},function(e,t){var n=Xx(),i=z(n),a=z(i),o=function o(e){var n=qx();V(function(){yo(n,"src",W(t).previewUrl),yo(n,"alt",W(t).filename||"Attachment");}),K(e,n);},s=/* @__PURE__ */tr(function(){var e;return W(t).previewUrl&&((e=W(t).contentType)==null?void 0:e.startsWith("image"));}),c=function c(e){var n=Jx();n.muted=!0,V(function(){return yo(n,"src",W(t).previewUrl);}),K(e,n);},l=/* @__PURE__ */tr(function(){var e;return W(t).previewUrl&&((e=W(t).contentType)==null?void 0:e.startsWith("video"));}),u=function u(e){fs(e,{size:20,class:"text-white/60"});},d=/* @__PURE__ */tr(function(){var e;return(e=W(t).contentType)==null?void 0:e.startsWith("video");}),f=function f(e){rs(e,{size:20,class:"text-white/60"});};q(a,function(e){W(s)?e(o):W(l)?e(c,1):W(d)?e(u,2):e(f,-1);}),A(i);var p=B(i,2),m=function m(e){var n=Yx(),r=z(n,!0);A(n),V(function(){return ga(r,W(t).filename);}),K(e,n);};q(p,function(e){W(t).filename&&!W(r)&&e(m);}),A(n),V(function(){eo(n,1,"flex flex-col items-center gap-1 ".concat(W(r)?"":"max-w-[calc(50%-4px)]")),eo(i,1,"rounded overflow-hidden bg-black/15 flex flex-col items-center justify-center shrink-0 ".concat(W(r)?"w-48 h-32 max-md:w-40 max-md:h-28":"w-16 h-16 max-md:w-14 max-md:h-14"));}),K(e,n);}),A(t),V(function(){return eo(t,1,"flex flex-wrap gap-2 mt-2 items-start ".concat(W(r)?"justify-start":"justify-end"));}),K(e,t);};q(l,function(e){W(i).length>0&&e(u);}),K(e,c),lt();}//#endregion
438
+ var Qx=/* @__PURE__ */G("<img class=\"w-full h-full object-cover\"/>"),$x=/* @__PURE__ */G("<video class=\"w-full h-full object-cover\"></video>",2),eS=/* @__PURE__ */G("<span class=\"text-[0.7rem] leading-[1.2] text-white/85 break-all text-center\"> </span>"),tS=/* @__PURE__ */G("<div><div><!></div> <!></div>"),nS=/* @__PURE__ */G("<div data-testid=\"chat-attachment\"></div>");function rS(e,t){ct(t,!0);var n=J(t,"messageType",3,"user"),r=/* @__PURE__ */tr(function(){return n()==="assistant";}),i=/* @__PURE__ */L(vr([]));function a(e){return!e||typeof e!="string"?null:e.length>37?e.substring(37):null;}var o=Yx(),s=Zx();Uo(function(){var e;if(!((e=t.attachmentIds)!=null&&e.length))return;var n=o(),r=s();if(!n||!r)return;var c=!1;return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(){var e;return _regenerator().w(function(_context0){while(1)switch(_context0.n){case 0:_context0.n=1;return Promise.allSettled(t.attachmentIds.map(/*#__PURE__*/function(){var _ref35=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(e){var _t128,_t129;return _regenerator().w(function(_context9){while(1)switch(_context9.p=_context9.n){case 0:_context9.p=0;_context9.n=1;return n.fetchPreviewUrl(String(e),r);case 1:_t128=_context9.v;return _context9.a(2,{id:e,previewUrl:_t128.previewUrl,filename:a(String(e)),contentType:_t128.contentType});case 2:_context9.p=2;_t129=_context9.v;return _context9.a(2,(Ox(_t129,{context:{extra:{message:"fetchPreviewUrl failed",attachmentId:e}}}),{id:e,previewUrl:null,filename:a(String(e)),contentType:""}));}},_callee9,null,[[0,2]]);}));return function(_x1){return _ref35.apply(this,arguments);};}()));case 1:e=_context0.v;c||R(i,e.map(function(e){return e.status==="fulfilled"?e.value:{id:"",previewUrl:null,filename:null,contentType:""};}),!0);case 2:return _context0.a(2);}},_callee0);}))(),function(){c=!0;};});var c=ha(),l=kr(c),u=function u(e){var t=nS();Pa(t,21,function(){return W(i);},function(e){return e.id;},function(e,t){var n=tS(),i=z(n),a=z(i),o=function o(e){var n=Qx();V(function(){yo(n,"src",W(t).previewUrl),yo(n,"alt",W(t).filename||"Attachment");}),K(e,n);},s=/* @__PURE__ */tr(function(){var e;return W(t).previewUrl&&((e=W(t).contentType)==null?void 0:e.startsWith("image"));}),c=function c(e){var n=$x();n.muted=!0,V(function(){return yo(n,"src",W(t).previewUrl);}),K(e,n);},l=/* @__PURE__ */tr(function(){var e;return W(t).previewUrl&&((e=W(t).contentType)==null?void 0:e.startsWith("video"));}),u=function u(e){fs(e,{size:20,class:"text-white/60"});},d=/* @__PURE__ */tr(function(){var e;return(e=W(t).contentType)==null?void 0:e.startsWith("video");}),f=function f(e){rs(e,{size:20,class:"text-white/60"});};q(a,function(e){W(s)?e(o):W(l)?e(c,1):W(d)?e(u,2):e(f,-1);}),A(i);var p=B(i,2),m=function m(e){var n=eS(),r=z(n,!0);A(n),V(function(){return ga(r,W(t).filename);}),K(e,n);};q(p,function(e){W(t).filename&&!W(r)&&e(m);}),A(n),V(function(){eo(n,1,"flex flex-col items-center gap-1 ".concat(W(r)?"":"max-w-[calc(50%-4px)]")),eo(i,1,"rounded overflow-hidden bg-black/15 flex flex-col items-center justify-center shrink-0 ".concat(W(r)?"w-48 h-32 max-md:w-40 max-md:h-28":"w-16 h-16 max-md:w-14 max-md:h-14"));}),K(e,n);}),A(t),V(function(){return eo(t,1,"flex flex-wrap gap-2 mt-2 items-start ".concat(W(r)?"justify-start":"justify-end"));}),K(e,t);};q(l,function(e){W(i).length>0&&e(u);}),K(e,c),lt();}//#endregion
439
439
  //#region node_modules/ky/distribution/errors/HTTPError.js
440
- var $x=/*#__PURE__*/function(_Error2){function $x(e,t,n){var _this31;_classCallCheck(this,$x);var r;var i="".concat(e.status||e.status===0?e.status:""," ").concat((r=e.statusText)==null?"":r).trim(),a=i?"status code ".concat(i):"an unknown error";_this31=_callSuper(this,$x,["Request failed with ".concat(a,": ").concat(t.method," ").concat(t.url)]),D(_assertThisInitialized(_this31),"response",void 0),D(_assertThisInitialized(_this31),"request",void 0),D(_assertThisInitialized(_this31),"options",void 0),_this31.name="HTTPError",_this31.response=e,_this31.request=t,_this31.options=n;return _this31;}_inherits($x,_Error2);return _createClass($x);}(/*#__PURE__*/_wrapNativeSuper(Error)),eS=/*#__PURE__*/function(_Error3){function eS(e){var _this32;_classCallCheck(this,eS);var t="Non-error value was thrown";try{typeof e=="string"?t=e:e&&_typeof(e)=="object"&&"message"in e&&typeof e.message=="string"&&(t=e.message);}catch(e){}_this32=_callSuper(this,eS,[t]),D(_assertThisInitialized(_this32),"name","NonError"),D(_assertThisInitialized(_this32),"value",void 0),_this32.value=e;return _this32;}_inherits(eS,_Error3);return _createClass(eS);}(/*#__PURE__*/_wrapNativeSuper(Error)),tS=/*#__PURE__*/function(_Error4){function tS(e){var _this33;_classCallCheck(this,tS);var t=e!=null&&e.cause?e.cause instanceof Error?e.cause:new eS(e.cause):void 0;_this33=_callSuper(this,tS,[e!=null&&e.code?"Forced retry: ".concat(e.code):"Forced retry",t?{cause:t}:void 0]),D(_assertThisInitialized(_this33),"name","ForceRetryError"),D(_assertThisInitialized(_this33),"customDelay",void 0),D(_assertThisInitialized(_this33),"code",void 0),D(_assertThisInitialized(_this33),"customRequest",void 0),_this33.customDelay=e==null?void 0:e.delay,_this33.code=e==null?void 0:e.code,_this33.customRequest=e==null?void 0:e.request;return _this33;}_inherits(tS,_Error4);return _createClass(tS);}(/*#__PURE__*/_wrapNativeSuper(Error)),nS=function(){var e=!1,t=!1,n=typeof globalThis.ReadableStream=="function",r=typeof globalThis.Request=="function";if(n&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream(),method:"POST",get duplex(){return e=!0,"half";}}).headers.has("Content-Type");}catch(e){if(e instanceof Error&&e.message==="unsupported BodyInit type")return!1;throw e;}return e&&!t;}(),rS=typeof globalThis.AbortController=="function",iS=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",aS=typeof globalThis.ReadableStream=="function",oS=typeof globalThis.FormData=="function",sS=["get","post","put","patch","head","delete"],cS={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},lS=2147483647,uS=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,dS=Symbol("stop"),fS=/*#__PURE__*/_createClass(function fS(e){_classCallCheck(this,fS);D(this,"options",void 0),this.options=e;}),pS=function pS(e){return new fS(e);},mS={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},hS={next:!0},gS={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},_S=function _S(e){if(!e)return 0;if(e instanceof FormData){var t=0;var _iterator89=_createForOfIteratorHelper(e),_step89;try{for(_iterator89.s();!(_step89=_iterator89.n()).done;){var _step89$value=_slicedToArray(_step89.value,2),n=_step89$value[0],_r81=_step89$value[1];t+=uS,t+=new TextEncoder().encode("Content-Disposition: form-data; name=\"".concat(n,"\"")).length,t+=typeof _r81=="string"?new TextEncoder().encode(_r81).length:_r81.size;}}catch(err){_iterator89.e(err);}finally{_iterator89.f();}return t;}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if(typeof e=="string")return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if(_typeof(e)=="object"&&e)try{var _t130=JSON.stringify(e);return new TextEncoder().encode(_t130).length;}catch(e){return 0;}return 0;},vS=function vS(e,t,n){var r,i=0;return e.pipeThrough(new TransformStream({transform:function transform(e,a){if(a.enqueue(e),r){i+=r.byteLength;var _e174=t===0?0:i/t;_e174>=1&&(_e174=1-Math.pow(2,-52)),n==null||n({percent:_e174,totalBytes:Math.max(t,i),transferredBytes:i},r);}r=e;},flush:function flush(){r&&(i+=r.byteLength,n==null||n({percent:1,totalBytes:Math.max(t,i),transferredBytes:i},r));}}));},yS=function yS(e,t){if(!e.body)return e;if(e.status===204)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});var n=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(vS(e.body,n,t),{status:e.status,statusText:e.statusText,headers:e.headers});},bS=function bS(e,t,n){if(!e.body)return e;var r=_S(n==null?e.body:n);return new Request(e,{duplex:"half",body:vS(e.body,r,t)});},xS=function xS(e){return _typeof(e)=="object"&&!!e;},SS=function SS(){for(var _len20=arguments.length,e=new Array(_len20),_key20=0;_key20<_len20;_key20++){e[_key20]=arguments[_key20];}for(var _i60=0,_e175=e;_i60<_e175.length;_i60++){var t=_e175[_i60];if((!xS(t)||Array.isArray(t))&&t!==void 0)throw TypeError("The `options` argument must be an object");}return _DS.apply(void 0,[{}].concat(e));},CS=function CS(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=new globalThis.Headers(e),r=t instanceof globalThis.Headers,i=new globalThis.Headers(t);var _iterator90=_createForOfIteratorHelper(i.entries()),_step90;try{for(_iterator90.s();!(_step90=_iterator90.n()).done;){var _step90$value=_slicedToArray(_step90.value,2),_e176=_step90$value[0],_t131=_step90$value[1];r&&_t131==="undefined"||_t131===void 0?n.delete(_e176):n.set(_e176,_t131);}}catch(err){_iterator90.e(err);}finally{_iterator90.f();}return n;};function wS(e,t,n){var r,i;return Object.hasOwn(t,n)&&t[n]===void 0?[]:_DS((r=e[n])==null?[]:r,(i=t[n])==null?[]:i);}var TS=function TS(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return{beforeRequest:wS(e,t,"beforeRequest"),beforeRetry:wS(e,t,"beforeRetry"),afterResponse:wS(e,t,"afterResponse"),beforeError:wS(e,t,"beforeError")};},ES=function ES(e,t){var n=new URLSearchParams();for(var _i61=0,_arr4=[e,t];_i61<_arr4.length;_i61++){var _r82=_arr4[_i61];if(_r82!==void 0)if(_r82 instanceof URLSearchParams){var _iterator91=_createForOfIteratorHelper(_r82.entries()),_step91;try{for(_iterator91.s();!(_step91=_iterator91.n()).done;){var _step91$value=_slicedToArray(_step91.value,2),_e177=_step91$value[0],_t132=_step91$value[1];n.append(_e177,_t132);}}catch(err){_iterator91.e(err);}finally{_iterator91.f();}}else if(Array.isArray(_r82)){var _iterator92=_createForOfIteratorHelper(_r82),_step92;try{for(_iterator92.s();!(_step92=_iterator92.n()).done;){var _e178=_step92.value;if(!Array.isArray(_e178)||_e178.length!==2)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");n.append(String(_e178[0]),String(_e178[1]));}}catch(err){_iterator92.e(err);}finally{_iterator92.f();}}else if(xS(_r82))for(var _i62=0,_Object$entries=Object.entries(_r82);_i62<_Object$entries.length;_i62++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i62],2),_e179=_Object$entries$_i[0],_t133=_Object$entries$_i[1];_t133!==void 0&&n.append(_e179,String(_t133));}else{var _e180=new URLSearchParams(_r82);var _iterator93=_createForOfIteratorHelper(_e180.entries()),_step93;try{for(_iterator93.s();!(_step93=_iterator93.n()).done;){var _step93$value=_slicedToArray(_step93.value,2),_t134=_step93$value[0],_r83=_step93$value[1];n.append(_t134,_r83);}}catch(err){_iterator93.e(err);}finally{_iterator93.f();}}}return n;},_DS=function DS(){var t={},n={},r={},i,a=[];for(var _len21=arguments.length,e=new Array(_len21),_key21=0;_key21<_len21;_key21++){e[_key21]=arguments[_key21];}for(var _i63=0,_e181=e;_i63<_e181.length;_i63++){var o=_e181[_i63];if(Array.isArray(o))Array.isArray(t)||(t=[]),t=[].concat(_toConsumableArray(t),_toConsumableArray(o));else if(xS(o)){for(var _i64=0,_Object$entries2=Object.entries(o);_i64<_Object$entries2.length;_i64++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i64],2),_e182=_Object$entries2$_i[0],_n92=_Object$entries2$_i[1];if(_e182==="signal"&&_n92 instanceof globalThis.AbortSignal){a.push(_n92);continue;}if(_e182==="context"){if(_n92!=null&&(!xS(_n92)||Array.isArray(_n92)))throw TypeError("The `context` option must be an object");t=_objectSpread(_objectSpread({},t),{},{context:_n92==null?{}:_objectSpread(_objectSpread({},t.context),_n92)});continue;}if(_e182==="searchParams"){i=_n92==null?void 0:i===void 0?_n92:ES(i,_n92);continue;}xS(_n92)&&_e182 in t&&(_n92=_DS(t[_e182],_n92)),t=_objectSpread(_objectSpread({},t),{},_defineProperty({},_e182,_n92));}xS(o.hooks)&&(r=TS(r,o.hooks),t.hooks=r),xS(o.headers)&&(n=CS(n,o.headers),t.headers=n);}}return i!==void 0&&(t.searchParams=i),a.length>0&&(a.length===1?t.signal=a[0]:iS?t.signal=AbortSignal.any(a):t.signal=a.at(-1)),t;},OS=function OS(e){return sS.includes(e)?e.toUpperCase():e;},kS={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Infinity,backoffLimit:Infinity,delay:function delay(e){return .3*Math.pow(2,e-1)*1e3;},jitter:void 0,retryOnTimeout:!1},AS=function AS(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(typeof e=="number")return _objectSpread(_objectSpread({},kS),{},{limit:e});if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.methods&&(e.methods=e.methods.map(function(e){return e.toLowerCase();})),e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");var t=Object.fromEntries(Object.entries(e).filter(function(_ref36){var _ref37=_slicedToArray(_ref36,2),e=_ref37[1];return e!==void 0;}));return _objectSpread(_objectSpread({},kS),t);},jS=/*#__PURE__*/function(_Error5){function jS(e){var _this34;_classCallCheck(this,jS);_this34=_callSuper(this,jS,["Request timed out: ".concat(e.method," ").concat(e.url)]),D(_assertThisInitialized(_this34),"request",void 0),_this34.name="TimeoutError",_this34.request=e;return _this34;}_inherits(jS,_Error5);return _createClass(jS);}(/*#__PURE__*/_wrapNativeSuper(Error));//#endregion
440
+ var iS=/*#__PURE__*/function(_Error2){function iS(e,t,n){var _this31;_classCallCheck(this,iS);var r;var i="".concat(e.status||e.status===0?e.status:""," ").concat((r=e.statusText)==null?"":r).trim(),a=i?"status code ".concat(i):"an unknown error";_this31=_callSuper(this,iS,["Request failed with ".concat(a,": ").concat(t.method," ").concat(t.url)]),D(_assertThisInitialized(_this31),"response",void 0),D(_assertThisInitialized(_this31),"request",void 0),D(_assertThisInitialized(_this31),"options",void 0),_this31.name="HTTPError",_this31.response=e,_this31.request=t,_this31.options=n;return _this31;}_inherits(iS,_Error2);return _createClass(iS);}(/*#__PURE__*/_wrapNativeSuper(Error)),aS=/*#__PURE__*/function(_Error3){function aS(e){var _this32;_classCallCheck(this,aS);var t="Non-error value was thrown";try{typeof e=="string"?t=e:e&&_typeof(e)=="object"&&"message"in e&&typeof e.message=="string"&&(t=e.message);}catch(e){}_this32=_callSuper(this,aS,[t]),D(_assertThisInitialized(_this32),"name","NonError"),D(_assertThisInitialized(_this32),"value",void 0),_this32.value=e;return _this32;}_inherits(aS,_Error3);return _createClass(aS);}(/*#__PURE__*/_wrapNativeSuper(Error)),oS=/*#__PURE__*/function(_Error4){function oS(e){var _this33;_classCallCheck(this,oS);var t=e!=null&&e.cause?e.cause instanceof Error?e.cause:new aS(e.cause):void 0;_this33=_callSuper(this,oS,[e!=null&&e.code?"Forced retry: ".concat(e.code):"Forced retry",t?{cause:t}:void 0]),D(_assertThisInitialized(_this33),"name","ForceRetryError"),D(_assertThisInitialized(_this33),"customDelay",void 0),D(_assertThisInitialized(_this33),"code",void 0),D(_assertThisInitialized(_this33),"customRequest",void 0),_this33.customDelay=e==null?void 0:e.delay,_this33.code=e==null?void 0:e.code,_this33.customRequest=e==null?void 0:e.request;return _this33;}_inherits(oS,_Error4);return _createClass(oS);}(/*#__PURE__*/_wrapNativeSuper(Error)),sS=function(){var e=!1,t=!1,n=typeof globalThis.ReadableStream=="function",r=typeof globalThis.Request=="function";if(n&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream(),method:"POST",get duplex(){return e=!0,"half";}}).headers.has("Content-Type");}catch(e){if(e instanceof Error&&e.message==="unsupported BodyInit type")return!1;throw e;}return e&&!t;}(),cS=typeof globalThis.AbortController=="function",lS=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",uS=typeof globalThis.ReadableStream=="function",dS=typeof globalThis.FormData=="function",fS=["get","post","put","patch","head","delete"],pS={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},mS=2147483647,hS=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,gS=Symbol("stop"),_S=/*#__PURE__*/_createClass(function _S(e){_classCallCheck(this,_S);D(this,"options",void 0),this.options=e;}),vS=function vS(e){return new _S(e);},yS={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},bS={next:!0},xS={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},SS=function SS(e){if(!e)return 0;if(e instanceof FormData){var t=0;var _iterator89=_createForOfIteratorHelper(e),_step89;try{for(_iterator89.s();!(_step89=_iterator89.n()).done;){var _step89$value=_slicedToArray(_step89.value,2),n=_step89$value[0],_r81=_step89$value[1];t+=hS,t+=new TextEncoder().encode("Content-Disposition: form-data; name=\"".concat(n,"\"")).length,t+=typeof _r81=="string"?new TextEncoder().encode(_r81).length:_r81.size;}}catch(err){_iterator89.e(err);}finally{_iterator89.f();}return t;}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if(typeof e=="string")return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if(_typeof(e)=="object"&&e)try{var _t130=JSON.stringify(e);return new TextEncoder().encode(_t130).length;}catch(e){return 0;}return 0;},CS=function CS(e,t,n){var r,i=0;return e.pipeThrough(new TransformStream({transform:function transform(e,a){if(a.enqueue(e),r){i+=r.byteLength;var _e174=t===0?0:i/t;_e174>=1&&(_e174=1-Math.pow(2,-52)),n==null||n({percent:_e174,totalBytes:Math.max(t,i),transferredBytes:i},r);}r=e;},flush:function flush(){r&&(i+=r.byteLength,n==null||n({percent:1,totalBytes:Math.max(t,i),transferredBytes:i},r));}}));},wS=function wS(e,t){if(!e.body)return e;if(e.status===204)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});var n=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(CS(e.body,n,t),{status:e.status,statusText:e.statusText,headers:e.headers});},TS=function TS(e,t,n){if(!e.body)return e;var r=SS(n==null?e.body:n);return new Request(e,{duplex:"half",body:CS(e.body,r,t)});},ES=function ES(e){return _typeof(e)=="object"&&!!e;},DS=function DS(){for(var _len20=arguments.length,e=new Array(_len20),_key20=0;_key20<_len20;_key20++){e[_key20]=arguments[_key20];}for(var _i60=0,_e175=e;_i60<_e175.length;_i60++){var t=_e175[_i60];if((!ES(t)||Array.isArray(t))&&t!==void 0)throw TypeError("The `options` argument must be an object");}return _MS.apply(void 0,[{}].concat(e));},OS=function OS(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=new globalThis.Headers(e),r=t instanceof globalThis.Headers,i=new globalThis.Headers(t);var _iterator90=_createForOfIteratorHelper(i.entries()),_step90;try{for(_iterator90.s();!(_step90=_iterator90.n()).done;){var _step90$value=_slicedToArray(_step90.value,2),_e176=_step90$value[0],_t131=_step90$value[1];r&&_t131==="undefined"||_t131===void 0?n.delete(_e176):n.set(_e176,_t131);}}catch(err){_iterator90.e(err);}finally{_iterator90.f();}return n;};function kS(e,t,n){var r,i;return Object.hasOwn(t,n)&&t[n]===void 0?[]:_MS((r=e[n])==null?[]:r,(i=t[n])==null?[]:i);}var AS=function AS(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return{beforeRequest:kS(e,t,"beforeRequest"),beforeRetry:kS(e,t,"beforeRetry"),afterResponse:kS(e,t,"afterResponse"),beforeError:kS(e,t,"beforeError")};},jS=function jS(e,t){var n=new URLSearchParams();for(var _i61=0,_arr4=[e,t];_i61<_arr4.length;_i61++){var _r82=_arr4[_i61];if(_r82!==void 0)if(_r82 instanceof URLSearchParams){var _iterator91=_createForOfIteratorHelper(_r82.entries()),_step91;try{for(_iterator91.s();!(_step91=_iterator91.n()).done;){var _step91$value=_slicedToArray(_step91.value,2),_e177=_step91$value[0],_t132=_step91$value[1];n.append(_e177,_t132);}}catch(err){_iterator91.e(err);}finally{_iterator91.f();}}else if(Array.isArray(_r82)){var _iterator92=_createForOfIteratorHelper(_r82),_step92;try{for(_iterator92.s();!(_step92=_iterator92.n()).done;){var _e178=_step92.value;if(!Array.isArray(_e178)||_e178.length!==2)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");n.append(String(_e178[0]),String(_e178[1]));}}catch(err){_iterator92.e(err);}finally{_iterator92.f();}}else if(ES(_r82))for(var _i62=0,_Object$entries=Object.entries(_r82);_i62<_Object$entries.length;_i62++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i62],2),_e179=_Object$entries$_i[0],_t133=_Object$entries$_i[1];_t133!==void 0&&n.append(_e179,String(_t133));}else{var _e180=new URLSearchParams(_r82);var _iterator93=_createForOfIteratorHelper(_e180.entries()),_step93;try{for(_iterator93.s();!(_step93=_iterator93.n()).done;){var _step93$value=_slicedToArray(_step93.value,2),_t134=_step93$value[0],_r83=_step93$value[1];n.append(_t134,_r83);}}catch(err){_iterator93.e(err);}finally{_iterator93.f();}}}return n;},_MS=function MS(){var t={},n={},r={},i,a=[];for(var _len21=arguments.length,e=new Array(_len21),_key21=0;_key21<_len21;_key21++){e[_key21]=arguments[_key21];}for(var _i63=0,_e181=e;_i63<_e181.length;_i63++){var o=_e181[_i63];if(Array.isArray(o))Array.isArray(t)||(t=[]),t=[].concat(_toConsumableArray(t),_toConsumableArray(o));else if(ES(o)){for(var _i64=0,_Object$entries2=Object.entries(o);_i64<_Object$entries2.length;_i64++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i64],2),_e182=_Object$entries2$_i[0],_n92=_Object$entries2$_i[1];if(_e182==="signal"&&_n92 instanceof globalThis.AbortSignal){a.push(_n92);continue;}if(_e182==="context"){if(_n92!=null&&(!ES(_n92)||Array.isArray(_n92)))throw TypeError("The `context` option must be an object");t=_objectSpread(_objectSpread({},t),{},{context:_n92==null?{}:_objectSpread(_objectSpread({},t.context),_n92)});continue;}if(_e182==="searchParams"){i=_n92==null?void 0:i===void 0?_n92:jS(i,_n92);continue;}ES(_n92)&&_e182 in t&&(_n92=_MS(t[_e182],_n92)),t=_objectSpread(_objectSpread({},t),{},_defineProperty({},_e182,_n92));}ES(o.hooks)&&(r=AS(r,o.hooks),t.hooks=r),ES(o.headers)&&(n=OS(n,o.headers),t.headers=n);}}return i!==void 0&&(t.searchParams=i),a.length>0&&(a.length===1?t.signal=a[0]:lS?t.signal=AbortSignal.any(a):t.signal=a.at(-1)),t;},NS=function NS(e){return fS.includes(e)?e.toUpperCase():e;},PS={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Infinity,backoffLimit:Infinity,delay:function delay(e){return .3*Math.pow(2,e-1)*1e3;},jitter:void 0,retryOnTimeout:!1},FS=function FS(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(typeof e=="number")return _objectSpread(_objectSpread({},PS),{},{limit:e});if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.methods&&(e.methods=e.methods.map(function(e){return e.toLowerCase();})),e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");var t=Object.fromEntries(Object.entries(e).filter(function(_ref36){var _ref37=_slicedToArray(_ref36,2),e=_ref37[1];return e!==void 0;}));return _objectSpread(_objectSpread({},PS),t);},IS=/*#__PURE__*/function(_Error5){function IS(e){var _this34;_classCallCheck(this,IS);_this34=_callSuper(this,IS,["Request timed out: ".concat(e.method," ").concat(e.url)]),D(_assertThisInitialized(_this34),"request",void 0),_this34.name="TimeoutError",_this34.request=e;return _this34;}_inherits(IS,_Error5);return _createClass(IS);}(/*#__PURE__*/_wrapNativeSuper(Error));//#endregion
441
441
  //#region node_modules/ky/distribution/utils/timeout.js
442
- function MS(_x10,_x11,_x12,_x13){return _MS.apply(this,arguments);}//#endregion
442
+ function LS(_x10,_x11,_x12,_x13){return _LS.apply(this,arguments);}//#endregion
443
443
  //#region node_modules/ky/distribution/utils/delay.js
444
- function _MS(){_MS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee35(e,t,n,r){return _regenerator().w(function(_context35){while(1)switch(_context35.n){case 0:return _context35.a(2,new Promise(function(i,a){var o=setTimeout(function(){n&&n.abort(),a(new jS(e));},r.timeout);r.fetch(e,t).then(i).catch(a).then(function(){clearTimeout(o);});}));}},_callee35);}));return _MS.apply(this,arguments);}function NS(_x14,_x15){return _NS.apply(this,arguments);}//#endregion
444
+ function _LS(){_LS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee35(e,t,n,r){return _regenerator().w(function(_context35){while(1)switch(_context35.n){case 0:return _context35.a(2,new Promise(function(i,a){var o=setTimeout(function(){n&&n.abort(),a(new IS(e));},r.timeout);r.fetch(e,t).then(i).catch(a).then(function(){clearTimeout(o);});}));}},_callee35);}));return _LS.apply(this,arguments);}function RS(_x14,_x15){return _RS.apply(this,arguments);}//#endregion
445
445
  //#region node_modules/ky/distribution/utils/options.js
446
- function _NS(){_NS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee36(e,_ref38){var t;return _regenerator().w(function(_context36){while(1)switch(_context36.n){case 0:t=_ref38.signal;return _context36.a(2,new Promise(function(n,r){t&&(t.throwIfAborted(),t.addEventListener("abort",i,{once:!0}));function i(){clearTimeout(a),r(t.reason);}var a=setTimeout(function(){t==null||t.removeEventListener("abort",i),n();},e);}));}},_callee36);}));return _NS.apply(this,arguments);}var PS=function PS(e,t){var n={};for(var _r84 in t)Object.hasOwn(t,_r84)&&!(_r84 in gS)&&!(_r84 in mS)&&(!(_r84 in e)||_r84 in hS)&&(n[_r84]=t[_r84]);return n;},FS=function FS(e){return e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:_typeof(e)=="object"?Object.keys(e).length>0:typeof e=="string"?e.trim().length>0:!!e;};//#endregion
446
+ function _RS(){_RS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee36(e,_ref38){var t;return _regenerator().w(function(_context36){while(1)switch(_context36.n){case 0:t=_ref38.signal;return _context36.a(2,new Promise(function(n,r){t&&(t.throwIfAborted(),t.addEventListener("abort",i,{once:!0}));function i(){clearTimeout(a),r(t.reason);}var a=setTimeout(function(){t==null||t.removeEventListener("abort",i),n();},e);}));}},_callee36);}));return _RS.apply(this,arguments);}var zS=function zS(e,t){var n={};for(var _r84 in t)Object.hasOwn(t,_r84)&&!(_r84 in xS)&&!(_r84 in yS)&&(!(_r84 in e)||_r84 in bS)&&(n[_r84]=t[_r84]);return n;},BS=function BS(e){return e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:_typeof(e)=="object"?Object.keys(e).length>0:typeof e=="string"?e.trim().length>0:!!e;};//#endregion
447
447
  //#region node_modules/ky/distribution/utils/type-guards.js
448
- function IS(e){return e instanceof $x||(e==null?void 0:e.name)===$x.name;}function LS(e){return e instanceof jS||(e==null?void 0:e.name)===jS.name;}//#endregion
448
+ function VS(e){return e instanceof iS||(e==null?void 0:e.name)===iS.name;}function HS(e){return e instanceof IS||(e==null?void 0:e.name)===IS.name;}//#endregion
449
449
  //#region node_modules/ky/distribution/core/Ky.js
450
- var RS=/* @__PURE__ */new WeakMap(),zS=/* @__PURE__ */new WeakMap(),BS=/* @__PURE__ */new WeakMap(),$=/* @__PURE__ */new WeakMap(),VS=/* @__PURE__ */new WeakMap(),HS=/* @__PURE__ */new WeakMap(),US=/* @__PURE__ */new WeakMap(),WS=/* @__PURE__ */new WeakSet(),GS=/*#__PURE__*/function(){function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,e);var r,i,a,o,s,c;if(Ot(this,WS),D(this,"request",void 0),M(this,RS,void 0),M(this,zS,0),M(this,BS,void 0),M(this,$,void 0),M(this,VS,void 0),M(this,HS,void 0),M(this,US,void 0),F(BS,this,t),F($,this,_objectSpread(_objectSpread({},n),{},{headers:CS(P(BS,this).headers,n.headers),hooks:TS({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},n.hooks),method:OS((r=(i=n.method)==null?P(BS,this).method:i)==null?"GET":r),prefixUrl:String(n.prefixUrl||""),retry:AS(n.retry),throwHttpErrors:(a=n.throwHttpErrors)==null?!0:a,timeout:(o=n.timeout)==null?1e4:o,fetch:(s=n.fetch)==null?globalThis.fetch.bind(globalThis):s,context:(c=n.context)==null?{}:c})),typeof P(BS,this)!="string"&&!(P(BS,this)instanceof URL||P(BS,this)instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(P($,this).prefixUrl&&typeof P(BS,this)=="string"){if(P(BS,this).startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");P($,this).prefixUrl.endsWith("/")||(P($,this).prefixUrl+="/"),F(BS,this,P($,this).prefixUrl+P(BS,this));}if(rS&&iS){var l;F(HS,this,(l=P($,this).signal)==null?P(BS,this).signal:l),F(RS,this,new globalThis.AbortController()),P($,this).signal=P(HS,this)?AbortSignal.any([P(HS,this),P(RS,this).signal]):P(RS,this).signal;}if(nS&&(P($,this).duplex="half"),P($,this).json!==void 0){var u,d,f,p;P($,this).body=(u=(d=(f=P($,this)).stringifyJson)==null?void 0:d.call(f,P($,this).json))==null?JSON.stringify(P($,this).json):u,P($,this).headers.set("content-type",(p=P($,this).headers.get("content-type"))==null?"application/json":p);}var m=n.headers&&new globalThis.Headers(n.headers).has("content-type");if(P(BS,this)instanceof globalThis.Request&&(oS&&P($,this).body instanceof globalThis.FormData||P($,this).body instanceof URLSearchParams)&&!m&&P($,this).headers.delete("content-type"),this.request=new globalThis.Request(P(BS,this),P($,this)),FS(P($,this).searchParams)){var _t135="?"+(typeof P($,this).searchParams=="string"?P($,this).searchParams.replace(/^\?/,""):new URLSearchParams(KS.call(e,P($,this).searchParams)).toString()),_n93=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,_t135);this.request=new globalThis.Request(_n93,P($,this));}if(P($,this).onUploadProgress){var h;if(typeof P($,this).onUploadProgress!="function")throw TypeError("The `onUploadProgress` option must be a function");if(!nS)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=N(WS,this,nC).call(this,this.request,(h=P($,this).body)==null?void 0:h);}}return _createClass(e,null,[{key:"create",value:function create(t,n){var r=new e(t,n),i=N(WS,r,QS).call(r,/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(){var _e183,_iterator94,_step94,_t138,_n94,_i65,_a18,_t136,_iterator95,_step95,_e184,_t137,_t139,_t140,_t141;return _regenerator().w(function(_context1){while(1)switch(_context1.p=_context1.n){case 0:if(!(typeof P($,r).timeout=="number"&&P($,r).timeout>2147483647)){_context1.n=1;break;}throw RangeError("The `timeout` option cannot be greater than ".concat(lS));case 1:_context1.n=2;return Promise.resolve();case 2:_context1.n=3;return N(WS,r,$S).call(r);case 3:_e183=_context1.v;_iterator94=_createForOfIteratorHelper(P($,r).hooks.afterResponse);_context1.p=4;_iterator94.s();case 5:if((_step94=_iterator94.n()).done){_context1.n=12;break;}_t138=_step94.value;_n94=N(WS,r,YS).call(r,_e183.clone()),_i65=void 0;_context1.p=6;_context1.n=7;return _t138(r.request,N(WS,r,eC).call(r),_n94,{retryCount:P(zS,r)});case 7:_i65=_context1.v;_context1.n=9;break;case 8:_context1.p=8;_t139=_context1.v;throw N(WS,r,ZS).call(r,_n94),N(WS,r,ZS).call(r,_e183),_t139;case 9:if(!(_i65 instanceof fS)){_context1.n=10;break;}throw N(WS,r,ZS).call(r,_n94),N(WS,r,ZS).call(r,_e183),new tS(_i65.options);case 10:_a18=_i65 instanceof globalThis.Response?_i65:_e183;_n94!==_a18&&N(WS,r,ZS).call(r,_n94),_e183!==_a18&&N(WS,r,ZS).call(r,_e183),_e183=_a18;case 11:_context1.n=5;break;case 12:_context1.n=14;break;case 13:_context1.p=13;_t140=_context1.v;_iterator94.e(_t140);case 14:_context1.p=14;_iterator94.f();return _context1.f(14);case 15:if(!(N(WS,r,YS).call(r,_e183),!_e183.ok&&(typeof P($,r).throwHttpErrors=="function"?P($,r).throwHttpErrors(_e183.status):P($,r).throwHttpErrors))){_context1.n=24;break;}_t136=new $x(_e183,r.request,N(WS,r,eC).call(r));_iterator95=_createForOfIteratorHelper(P($,r).hooks.beforeError);_context1.p=16;_iterator95.s();case 17:if((_step95=_iterator95.n()).done){_context1.n=20;break;}_e184=_step95.value;_context1.n=18;return _e184(_t136,{retryCount:P(zS,r)});case 18:_t136=_context1.v;case 19:_context1.n=17;break;case 20:_context1.n=22;break;case 21:_context1.p=21;_t141=_context1.v;_iterator95.e(_t141);case 22:_context1.p=22;_iterator95.f();return _context1.f(22);case 23:throw _t136;case 24:if(!P($,r).onDownloadProgress){_context1.n=27;break;}if(!(typeof P($,r).onDownloadProgress!="function")){_context1.n=25;break;}throw TypeError("The `onDownloadProgress` option must be a function");case 25:if(aS){_context1.n=26;break;}throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");case 26:_t137=_e183.clone();return _context1.a(2,(N(WS,r,ZS).call(r,_e183),yS(_t137,P($,r).onDownloadProgress)));case 27:return _context1.a(2,_e183);}},_callee1,null,[[16,21,22,23],[6,8],[4,13,14,15]]);}))).finally(function(){var _e185,t;var n=P(VS,r);N(WS,r,XS).call(r,(_e185=n==null?void 0:n.body)==null?void 0:_e185),N(WS,r,XS).call(r,(t=r.request.body)==null?void 0:t);});var _loop9=function _loop9(){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i66],2),_e186=_Object$entries3$_i[0],t=_Object$entries3$_i[1];_e186==="bytes"&&typeof((a=globalThis.Response)==null||(a=a.prototype)==null?void 0:a.bytes)!="function"||(i[_e186]=/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(){var a,_e187;return _regenerator().w(function(_context10){while(1)switch(_context10.n){case 0:r.request.headers.set("accept",r.request.headers.get("accept")||t);_context10.n=1;return i;case 1:a=_context10.v;if(!(_e186==="json")){_context10.n=4;break;}if(!(a.status===204)){_context10.n=2;break;}return _context10.a(2,"");case 2:_context10.n=3;return a.text();case 3:_e187=_context10.v;return _context10.a(2,_e187===""?"":n.parseJson?n.parseJson(_e187):JSON.parse(_e187));case 4:return _context10.a(2,a[_e186]());}},_callee10);})));},a;for(var _i66=0,_Object$entries3=Object.entries(cS);_i66<_Object$entries3.length;_i66++){_loop9();}return i;}}]);}();function KS(e){return e&&_typeof(e)=="object"&&!Array.isArray(e)&&!(e instanceof URLSearchParams)?Object.fromEntries(Object.entries(e).filter(function(_ref41){var _ref42=_slicedToArray(_ref41,2),e=_ref42[1];return e!==void 0;})):e;}function qS(){var e;var t=P($,this).retry.delay(P(zS,this)),n=t;P($,this).retry.jitter===!0?n=Math.random()*t:typeof P($,this).retry.jitter=="function"&&(n=P($,this).retry.jitter(t),(!Number.isFinite(n)||n<0)&&(n=t));var r=(e=P($,this).retry.backoffLimit)==null?Infinity:e;return Math.min(r,n);}function JS(_x16){return _JS.apply(this,arguments);}function _JS(){_JS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee37(e){var t,n,r,i,_n105,a,o,s,c,_n106,l,_e198,_r91;return _regenerator().w(function(_context37){while(1)switch(_context37.n){case 0:t=this;if(!(F(zS,t,(n=P(zS,t),n++,n)),P(zS,t)>P($,t).retry.limit)){_context37.n=1;break;}throw e;case 1:r=e instanceof Error?e:new eS(e);if(!(r instanceof tS)){_context37.n=2;break;}return _context37.a(2,(i=r.customDelay)==null?N(WS,t,qS).call(t):i);case 2:if(P($,t).retry.methods.includes(t.request.method.toLowerCase())){_context37.n=3;break;}throw e;case 3:if(!(P($,t).retry.shouldRetry!==void 0)){_context37.n=6;break;}_context37.n=4;return P($,t).retry.shouldRetry({error:r,retryCount:P(zS,t)});case 4:_n105=_context37.v;if(!(_n105===!1)){_context37.n=5;break;}throw e;case 5:if(!(_n105===!0)){_context37.n=6;break;}return _context37.a(2,N(WS,t,qS).call(t));case 6:if(!(LS(e)&&!P($,t).retry.retryOnTimeout)){_context37.n=7;break;}throw e;case 7:if(!IS(e)){_context37.n=10;break;}if(P($,t).retry.statusCodes.includes(e.response.status)){_context37.n=8;break;}throw e;case 8:_n106=(a=(o=(s=(c=e.response.headers.get("Retry-After"))==null?e.response.headers.get("RateLimit-Reset"):c)==null?e.response.headers.get("X-RateLimit-Retry-After"):s)==null?e.response.headers.get("X-RateLimit-Reset"):o)==null?e.response.headers.get("X-Rate-Limit-Reset"):a;if(!(_n106&&P($,t).retry.afterStatusCodes.includes(e.response.status))){_context37.n=9;break;}_e198=Number(_n106)*1e3;Number.isNaN(_e198)?_e198=Date.parse(_n106)-Date.now():_e198>=Date.parse("2024-01-01")&&(_e198-=Date.now());_r91=(l=P($,t).retry.maxRetryAfter)==null?_e198:l;return _context37.a(2,_e198<_r91?_e198:_r91);case 9:if(!(e.response.status===413)){_context37.n=10;break;}throw e;case 10:return _context37.a(2,N(WS,t,qS).call(t));}},_callee37,this);}));return _JS.apply(this,arguments);}function YS(e){var t=this;return P($,this).parseJson&&(e.json=/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11(){var _t142;return _regenerator().w(function(_context11){while(1)switch(_context11.n){case 0:_t142=P($,t);_context11.n=1;return e.text();case 1:return _context11.a(2,_t142.parseJson.call(_t142,_context11.v));}},_callee11);}))),e;}function XS(e){e&&e.cancel().catch(function(){return void 0;});}function ZS(e){var t;N(WS,this,XS).call(this,(t=e.body)==null?void 0:t);}function QS(_x17){return _QS.apply(this,arguments);}function _QS(){_QS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee38(e){var t,_r92,_e199,_iterator99,_step99,_e200,_r93,_t174,_t175,_t176;return _regenerator().w(function(_context38){while(1)switch(_context38.p=_context38.n){case 0:t=this;_context38.p=1;_context38.n=2;return e();case 2:return _context38.a(2,_context38.v);case 3:_context38.p=3;_t174=_context38.v;_t175=Math;_context38.n=4;return N(WS,t,JS).call(t,_t174);case 4:_r92=_t175.min.call(_t175,_context38.v,lS);if(!(P(zS,t)<1)){_context38.n=5;break;}throw _t174;case 5:_context38.n=6;return NS(_r92,P(HS,t)?{signal:P(HS,t)}:{});case 6:if(!(_t174 instanceof tS&&_t174.customRequest)){_context38.n=7;break;}_e199=P($,t).signal?new globalThis.Request(_t174.customRequest,{signal:P($,t).signal}):new globalThis.Request(_t174.customRequest);N(WS,t,tC).call(t,_e199);case 7:_iterator99=_createForOfIteratorHelper(P($,t).hooks.beforeRetry);_context38.p=8;_iterator99.s();case 9:if((_step99=_iterator99.n()).done){_context38.n=14;break;}_e200=_step99.value;_context38.n=10;return _e200({request:t.request,options:N(WS,t,eC).call(t),error:_t174,retryCount:P(zS,t)});case 10:_r93=_context38.v;if(!(_r93 instanceof globalThis.Request)){_context38.n=11;break;}N(WS,t,tC).call(t,_r93);return _context38.a(3,14);case 11:if(!(_r93 instanceof globalThis.Response)){_context38.n=12;break;}return _context38.a(2,_r93);case 12:if(!(_r93===dS)){_context38.n=13;break;}return _context38.a(2);case 13:_context38.n=9;break;case 14:_context38.n=16;break;case 15:_context38.p=15;_t176=_context38.v;_iterator99.e(_t176);case 16:_context38.p=16;_iterator99.f();return _context38.f(16);case 17:return _context38.a(2,N(WS,t,QS).call(t,e));}},_callee38,this,[[8,15,16,17],[1,3]]);}));return _QS.apply(this,arguments);}function $S(){return _$S.apply(this,arguments);}function _$S(){_$S=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee39(){var e,t,_iterator100,_step100,_t177,_n107,n,_t178;return _regenerator().w(function(_context39){while(1)switch(_context39.p=_context39.n){case 0:e=this;(t=P(RS,e))!=null&&t.signal.aborted&&(F(RS,e,new globalThis.AbortController()),P($,e).signal=P(HS,e)?AbortSignal.any([P(HS,e),P(RS,e).signal]):P(RS,e).signal,e.request=new globalThis.Request(e.request,{signal:P($,e).signal}));_iterator100=_createForOfIteratorHelper(P($,e).hooks.beforeRequest);_context39.p=1;_iterator100.s();case 2:if((_step100=_iterator100.n()).done){_context39.n=6;break;}_t177=_step100.value;_context39.n=3;return _t177(e.request,N(WS,e,eC).call(e),{retryCount:P(zS,e)});case 3:_n107=_context39.v;if(!(_n107 instanceof Response)){_context39.n=4;break;}return _context39.a(2,_n107);case 4:if(!(_n107 instanceof globalThis.Request)){_context39.n=5;break;}N(WS,e,tC).call(e,_n107);return _context39.a(3,6);case 5:_context39.n=2;break;case 6:_context39.n=8;break;case 7:_context39.p=7;_t178=_context39.v;_iterator100.e(_t178);case 8:_context39.p=8;_iterator100.f();return _context39.f(8);case 9:n=PS(e.request,P($,e));return _context39.a(2,(F(VS,e,e.request),e.request=P(VS,e).clone(),P($,e).timeout===!1?P($,e).fetch(P(VS,e),n):MS(P(VS,e),n,P(RS,e),P($,e))));}},_callee39,this,[[1,7,8,9]]);}));return _$S.apply(this,arguments);}function eC(){if(!P(US,this)){var _P2=P($,this),_e188=_P2.hooks,t=_objectWithoutProperties(_P2,_excluded2);F(US,this,Object.freeze(t));}return P(US,this);}function tC(e){F(US,this,void 0),this.request=N(WS,this,nC).call(this,e);}function nC(e,t){var n;return!P($,this).onUploadProgress||!e.body?e:bS(e,P($,this).onUploadProgress,(n=t==null?P($,this).body:t)==null?void 0:n);}//#endregion
450
+ var US=/* @__PURE__ */new WeakMap(),WS=/* @__PURE__ */new WeakMap(),GS=/* @__PURE__ */new WeakMap(),Q=/* @__PURE__ */new WeakMap(),KS=/* @__PURE__ */new WeakMap(),qS=/* @__PURE__ */new WeakMap(),JS=/* @__PURE__ */new WeakMap(),$=/* @__PURE__ */new WeakSet(),YS=/*#__PURE__*/function(){function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,e);var r,i,a,o,s,c;if(Ot(this,$),D(this,"request",void 0),M(this,US,void 0),M(this,WS,0),M(this,GS,void 0),M(this,Q,void 0),M(this,KS,void 0),M(this,qS,void 0),M(this,JS,void 0),F(GS,this,t),F(Q,this,_objectSpread(_objectSpread({},n),{},{headers:OS(P(GS,this).headers,n.headers),hooks:AS({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},n.hooks),method:NS((r=(i=n.method)==null?P(GS,this).method:i)==null?"GET":r),prefixUrl:String(n.prefixUrl||""),retry:FS(n.retry),throwHttpErrors:(a=n.throwHttpErrors)==null?!0:a,timeout:(o=n.timeout)==null?1e4:o,fetch:(s=n.fetch)==null?globalThis.fetch.bind(globalThis):s,context:(c=n.context)==null?{}:c})),typeof P(GS,this)!="string"&&!(P(GS,this)instanceof URL||P(GS,this)instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(P(Q,this).prefixUrl&&typeof P(GS,this)=="string"){if(P(GS,this).startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");P(Q,this).prefixUrl.endsWith("/")||(P(Q,this).prefixUrl+="/"),F(GS,this,P(Q,this).prefixUrl+P(GS,this));}if(cS&&lS){var l;F(qS,this,(l=P(Q,this).signal)==null?P(GS,this).signal:l),F(US,this,new globalThis.AbortController()),P(Q,this).signal=P(qS,this)?AbortSignal.any([P(qS,this),P(US,this).signal]):P(US,this).signal;}if(sS&&(P(Q,this).duplex="half"),P(Q,this).json!==void 0){var u,d,f,p;P(Q,this).body=(u=(d=(f=P(Q,this)).stringifyJson)==null?void 0:d.call(f,P(Q,this).json))==null?JSON.stringify(P(Q,this).json):u,P(Q,this).headers.set("content-type",(p=P(Q,this).headers.get("content-type"))==null?"application/json":p);}var m=n.headers&&new globalThis.Headers(n.headers).has("content-type");if(P(GS,this)instanceof globalThis.Request&&(dS&&P(Q,this).body instanceof globalThis.FormData||P(Q,this).body instanceof URLSearchParams)&&!m&&P(Q,this).headers.delete("content-type"),this.request=new globalThis.Request(P(GS,this),P(Q,this)),BS(P(Q,this).searchParams)){var _t135="?"+(typeof P(Q,this).searchParams=="string"?P(Q,this).searchParams.replace(/^\?/,""):new URLSearchParams(XS.call(e,P(Q,this).searchParams)).toString()),_n93=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,_t135);this.request=new globalThis.Request(_n93,P(Q,this));}if(P(Q,this).onUploadProgress){var h;if(typeof P(Q,this).onUploadProgress!="function")throw TypeError("The `onUploadProgress` option must be a function");if(!sS)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=N($,this,oC).call(this,this.request,(h=P(Q,this).body)==null?void 0:h);}}return _createClass(e,null,[{key:"create",value:function create(t,n){var r=new e(t,n),i=N($,r,nC).call(r,/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(){var _e183,_iterator94,_step94,_t138,_n94,_i65,_a18,_t136,_iterator95,_step95,_e184,_t137,_t139,_t140,_t141;return _regenerator().w(function(_context1){while(1)switch(_context1.p=_context1.n){case 0:if(!(typeof P(Q,r).timeout=="number"&&P(Q,r).timeout>2147483647)){_context1.n=1;break;}throw RangeError("The `timeout` option cannot be greater than ".concat(mS));case 1:_context1.n=2;return Promise.resolve();case 2:_context1.n=3;return N($,r,rC).call(r);case 3:_e183=_context1.v;_iterator94=_createForOfIteratorHelper(P(Q,r).hooks.afterResponse);_context1.p=4;_iterator94.s();case 5:if((_step94=_iterator94.n()).done){_context1.n=12;break;}_t138=_step94.value;_n94=N($,r,$S).call(r,_e183.clone()),_i65=void 0;_context1.p=6;_context1.n=7;return _t138(r.request,N($,r,iC).call(r),_n94,{retryCount:P(WS,r)});case 7:_i65=_context1.v;_context1.n=9;break;case 8:_context1.p=8;_t139=_context1.v;throw N($,r,tC).call(r,_n94),N($,r,tC).call(r,_e183),_t139;case 9:if(!(_i65 instanceof _S)){_context1.n=10;break;}throw N($,r,tC).call(r,_n94),N($,r,tC).call(r,_e183),new oS(_i65.options);case 10:_a18=_i65 instanceof globalThis.Response?_i65:_e183;_n94!==_a18&&N($,r,tC).call(r,_n94),_e183!==_a18&&N($,r,tC).call(r,_e183),_e183=_a18;case 11:_context1.n=5;break;case 12:_context1.n=14;break;case 13:_context1.p=13;_t140=_context1.v;_iterator94.e(_t140);case 14:_context1.p=14;_iterator94.f();return _context1.f(14);case 15:if(!(N($,r,$S).call(r,_e183),!_e183.ok&&(typeof P(Q,r).throwHttpErrors=="function"?P(Q,r).throwHttpErrors(_e183.status):P(Q,r).throwHttpErrors))){_context1.n=24;break;}_t136=new iS(_e183,r.request,N($,r,iC).call(r));_iterator95=_createForOfIteratorHelper(P(Q,r).hooks.beforeError);_context1.p=16;_iterator95.s();case 17:if((_step95=_iterator95.n()).done){_context1.n=20;break;}_e184=_step95.value;_context1.n=18;return _e184(_t136,{retryCount:P(WS,r)});case 18:_t136=_context1.v;case 19:_context1.n=17;break;case 20:_context1.n=22;break;case 21:_context1.p=21;_t141=_context1.v;_iterator95.e(_t141);case 22:_context1.p=22;_iterator95.f();return _context1.f(22);case 23:throw _t136;case 24:if(!P(Q,r).onDownloadProgress){_context1.n=27;break;}if(!(typeof P(Q,r).onDownloadProgress!="function")){_context1.n=25;break;}throw TypeError("The `onDownloadProgress` option must be a function");case 25:if(uS){_context1.n=26;break;}throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");case 26:_t137=_e183.clone();return _context1.a(2,(N($,r,tC).call(r,_e183),wS(_t137,P(Q,r).onDownloadProgress)));case 27:return _context1.a(2,_e183);}},_callee1,null,[[16,21,22,23],[6,8],[4,13,14,15]]);}))).finally(function(){var _e185,t;var n=P(KS,r);N($,r,eC).call(r,(_e185=n==null?void 0:n.body)==null?void 0:_e185),N($,r,eC).call(r,(t=r.request.body)==null?void 0:t);});var _loop9=function _loop9(){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i66],2),_e186=_Object$entries3$_i[0],t=_Object$entries3$_i[1];_e186==="bytes"&&typeof((a=globalThis.Response)==null||(a=a.prototype)==null?void 0:a.bytes)!="function"||(i[_e186]=/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(){var a,_e187;return _regenerator().w(function(_context10){while(1)switch(_context10.n){case 0:r.request.headers.set("accept",r.request.headers.get("accept")||t);_context10.n=1;return i;case 1:a=_context10.v;if(!(_e186==="json")){_context10.n=4;break;}if(!(a.status===204)){_context10.n=2;break;}return _context10.a(2,"");case 2:_context10.n=3;return a.text();case 3:_e187=_context10.v;return _context10.a(2,_e187===""?"":n.parseJson?n.parseJson(_e187):JSON.parse(_e187));case 4:return _context10.a(2,a[_e186]());}},_callee10);})));},a;for(var _i66=0,_Object$entries3=Object.entries(pS);_i66<_Object$entries3.length;_i66++){_loop9();}return i;}}]);}();function XS(e){return e&&_typeof(e)=="object"&&!Array.isArray(e)&&!(e instanceof URLSearchParams)?Object.fromEntries(Object.entries(e).filter(function(_ref41){var _ref42=_slicedToArray(_ref41,2),e=_ref42[1];return e!==void 0;})):e;}function ZS(){var e;var t=P(Q,this).retry.delay(P(WS,this)),n=t;P(Q,this).retry.jitter===!0?n=Math.random()*t:typeof P(Q,this).retry.jitter=="function"&&(n=P(Q,this).retry.jitter(t),(!Number.isFinite(n)||n<0)&&(n=t));var r=(e=P(Q,this).retry.backoffLimit)==null?Infinity:e;return Math.min(r,n);}function QS(_x16){return _QS.apply(this,arguments);}function _QS(){_QS=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee37(e){var t,n,r,i,_n105,a,o,s,c,_n106,l,_e198,_r91;return _regenerator().w(function(_context37){while(1)switch(_context37.n){case 0:t=this;if(!(F(WS,t,(n=P(WS,t),n++,n)),P(WS,t)>P(Q,t).retry.limit)){_context37.n=1;break;}throw e;case 1:r=e instanceof Error?e:new aS(e);if(!(r instanceof oS)){_context37.n=2;break;}return _context37.a(2,(i=r.customDelay)==null?N($,t,ZS).call(t):i);case 2:if(P(Q,t).retry.methods.includes(t.request.method.toLowerCase())){_context37.n=3;break;}throw e;case 3:if(!(P(Q,t).retry.shouldRetry!==void 0)){_context37.n=6;break;}_context37.n=4;return P(Q,t).retry.shouldRetry({error:r,retryCount:P(WS,t)});case 4:_n105=_context37.v;if(!(_n105===!1)){_context37.n=5;break;}throw e;case 5:if(!(_n105===!0)){_context37.n=6;break;}return _context37.a(2,N($,t,ZS).call(t));case 6:if(!(HS(e)&&!P(Q,t).retry.retryOnTimeout)){_context37.n=7;break;}throw e;case 7:if(!VS(e)){_context37.n=10;break;}if(P(Q,t).retry.statusCodes.includes(e.response.status)){_context37.n=8;break;}throw e;case 8:_n106=(a=(o=(s=(c=e.response.headers.get("Retry-After"))==null?e.response.headers.get("RateLimit-Reset"):c)==null?e.response.headers.get("X-RateLimit-Retry-After"):s)==null?e.response.headers.get("X-RateLimit-Reset"):o)==null?e.response.headers.get("X-Rate-Limit-Reset"):a;if(!(_n106&&P(Q,t).retry.afterStatusCodes.includes(e.response.status))){_context37.n=9;break;}_e198=Number(_n106)*1e3;Number.isNaN(_e198)?_e198=Date.parse(_n106)-Date.now():_e198>=Date.parse("2024-01-01")&&(_e198-=Date.now());_r91=(l=P(Q,t).retry.maxRetryAfter)==null?_e198:l;return _context37.a(2,_e198<_r91?_e198:_r91);case 9:if(!(e.response.status===413)){_context37.n=10;break;}throw e;case 10:return _context37.a(2,N($,t,ZS).call(t));}},_callee37,this);}));return _QS.apply(this,arguments);}function $S(e){var t=this;return P(Q,this).parseJson&&(e.json=/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11(){var _t142;return _regenerator().w(function(_context11){while(1)switch(_context11.n){case 0:_t142=P(Q,t);_context11.n=1;return e.text();case 1:return _context11.a(2,_t142.parseJson.call(_t142,_context11.v));}},_callee11);}))),e;}function eC(e){e&&e.cancel().catch(function(){return void 0;});}function tC(e){var t;N($,this,eC).call(this,(t=e.body)==null?void 0:t);}function nC(_x17){return _nC.apply(this,arguments);}function _nC(){_nC=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee38(e){var t,_r92,_e199,_iterator99,_step99,_e200,_r93,_t174,_t175,_t176;return _regenerator().w(function(_context38){while(1)switch(_context38.p=_context38.n){case 0:t=this;_context38.p=1;_context38.n=2;return e();case 2:return _context38.a(2,_context38.v);case 3:_context38.p=3;_t174=_context38.v;_t175=Math;_context38.n=4;return N($,t,QS).call(t,_t174);case 4:_r92=_t175.min.call(_t175,_context38.v,mS);if(!(P(WS,t)<1)){_context38.n=5;break;}throw _t174;case 5:_context38.n=6;return RS(_r92,P(qS,t)?{signal:P(qS,t)}:{});case 6:if(!(_t174 instanceof oS&&_t174.customRequest)){_context38.n=7;break;}_e199=P(Q,t).signal?new globalThis.Request(_t174.customRequest,{signal:P(Q,t).signal}):new globalThis.Request(_t174.customRequest);N($,t,aC).call(t,_e199);case 7:_iterator99=_createForOfIteratorHelper(P(Q,t).hooks.beforeRetry);_context38.p=8;_iterator99.s();case 9:if((_step99=_iterator99.n()).done){_context38.n=14;break;}_e200=_step99.value;_context38.n=10;return _e200({request:t.request,options:N($,t,iC).call(t),error:_t174,retryCount:P(WS,t)});case 10:_r93=_context38.v;if(!(_r93 instanceof globalThis.Request)){_context38.n=11;break;}N($,t,aC).call(t,_r93);return _context38.a(3,14);case 11:if(!(_r93 instanceof globalThis.Response)){_context38.n=12;break;}return _context38.a(2,_r93);case 12:if(!(_r93===gS)){_context38.n=13;break;}return _context38.a(2);case 13:_context38.n=9;break;case 14:_context38.n=16;break;case 15:_context38.p=15;_t176=_context38.v;_iterator99.e(_t176);case 16:_context38.p=16;_iterator99.f();return _context38.f(16);case 17:return _context38.a(2,N($,t,nC).call(t,e));}},_callee38,this,[[8,15,16,17],[1,3]]);}));return _nC.apply(this,arguments);}function rC(){return _rC.apply(this,arguments);}function _rC(){_rC=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee39(){var e,t,_iterator100,_step100,_t177,_n107,n,_t178;return _regenerator().w(function(_context39){while(1)switch(_context39.p=_context39.n){case 0:e=this;(t=P(US,e))!=null&&t.signal.aborted&&(F(US,e,new globalThis.AbortController()),P(Q,e).signal=P(qS,e)?AbortSignal.any([P(qS,e),P(US,e).signal]):P(US,e).signal,e.request=new globalThis.Request(e.request,{signal:P(Q,e).signal}));_iterator100=_createForOfIteratorHelper(P(Q,e).hooks.beforeRequest);_context39.p=1;_iterator100.s();case 2:if((_step100=_iterator100.n()).done){_context39.n=6;break;}_t177=_step100.value;_context39.n=3;return _t177(e.request,N($,e,iC).call(e),{retryCount:P(WS,e)});case 3:_n107=_context39.v;if(!(_n107 instanceof Response)){_context39.n=4;break;}return _context39.a(2,_n107);case 4:if(!(_n107 instanceof globalThis.Request)){_context39.n=5;break;}N($,e,aC).call(e,_n107);return _context39.a(3,6);case 5:_context39.n=2;break;case 6:_context39.n=8;break;case 7:_context39.p=7;_t178=_context39.v;_iterator100.e(_t178);case 8:_context39.p=8;_iterator100.f();return _context39.f(8);case 9:n=zS(e.request,P(Q,e));return _context39.a(2,(F(KS,e,e.request),e.request=P(KS,e).clone(),P(Q,e).timeout===!1?P(Q,e).fetch(P(KS,e),n):LS(P(KS,e),n,P(US,e),P(Q,e))));}},_callee39,this,[[1,7,8,9]]);}));return _rC.apply(this,arguments);}function iC(){if(!P(JS,this)){var _P2=P(Q,this),_e188=_P2.hooks,t=_objectWithoutProperties(_P2,_excluded2);F(JS,this,Object.freeze(t));}return P(JS,this);}function aC(e){F(JS,this,void 0),this.request=N($,this,oC).call(this,e);}function oC(e,t){var n;return!P(Q,this).onUploadProgress||!e.body?e:TS(e,P(Q,this).onUploadProgress,(n=t==null?P(Q,this).body:t)==null?void 0:n);}//#endregion
451
451
  //#region node_modules/ky/distribution/index.js
452
- var _rC=function rC(e){var t=function t(_t143,n){return GS.create(_t143,SS(e,n));};var _loop0=function _loop0(){var n=_sS[_i67];t[n]=function(t,r){return GS.create(t,SS(e,r,{method:n}));};};for(var _i67=0,_sS=sS;_i67<_sS.length;_i67++){_loop0();}return t.create=function(e){return _rC(SS(e));},t.extend=function(t){return typeof t=="function"&&(t=t(e==null?{}:e)),_rC(SS(e,t));},t.stop=dS,t.retry=pS,t;},iC=_rC(),aC=/* @__PURE__ */new Map(),oC=!1;function sC(e){oC=e;}function cC(e,t){return iC.create({prefixUrl:e,timeout:!1,retry:0,hooks:{beforeRequest:[function(e){var n;t.current&&e.headers.set("Authorization","Bearer ".concat(t.current)),e.headers.set("X-Platform",oC?"native":"web"),((n=window.cookieyes)==null||(n=n._ckyConsentStore)==null?void 0:n.get("analytics"))==="yes"&&e.headers.set("X-Analytics-Consent","true");}]}});}function lC(e,t){if(aC.has(e)){var _n95=aC.get(e);return _n95.tokenRef.current=t,_n95.instance;}var n={current:t},r=cC(e,n);return aC.set(e,{instance:r,tokenRef:n}),r;}//#endregion
452
+ var _sC=function sC(e){var t=function t(_t143,n){return YS.create(_t143,DS(e,n));};var _loop0=function _loop0(){var n=_fS[_i67];t[n]=function(t,r){return YS.create(t,DS(e,r,{method:n}));};};for(var _i67=0,_fS=fS;_i67<_fS.length;_i67++){_loop0();}return t.create=function(e){return _sC(DS(e));},t.extend=function(t){return typeof t=="function"&&(t=t(e==null?{}:e)),_sC(DS(e,t));},t.stop=gS,t.retry=vS,t;},cC=_sC(),lC=/* @__PURE__ */new Map(),uC=!1;function dC(e){uC=e;}function fC(e,t){return cC.create({prefixUrl:e,timeout:!1,retry:0,hooks:{beforeRequest:[function(e){var n;t.current&&e.headers.set("Authorization","Bearer ".concat(t.current)),e.headers.set("X-Platform",uC?"native":"web"),((n=window.cookieyes)==null||(n=n._ckyConsentStore)==null?void 0:n.get("analytics"))==="yes"&&e.headers.set("X-Analytics-Consent","true");}]}});}function pC(e,t){if(lC.has(e)){var _n95=lC.get(e);return _n95.tokenRef.current=t,_n95.instance;}var n={current:t},r=fC(e,n);return lC.set(e,{instance:r,tokenRef:n}),r;}//#endregion
453
453
  //#region src/services/http.ts
454
- function uC(e,t){var n=lC(e,t);return Object.assign(n,{json:{get:function get(e,t){return n.get(e,t).json();},post:function post(e,t,r){return n.post(e,_objectSpread({json:t},r)).json();},put:function put(e,t,r){return n.put(e,_objectSpread({json:t},r)).json();},delete:function _delete(e,t){return n.delete(e,t).json();}}});}//#endregion
454
+ function mC(e,t){var n=pC(e,t);return Object.assign(n,{json:{get:function get(e,t){return n.get(e,t).json();},post:function post(e,t,r){return n.post(e,_objectSpread({json:t},r)).json();},put:function put(e,t,r){return n.put(e,_objectSpread({json:t},r)).json();},delete:function _delete(e,t){return n.delete(e,t).json();}}});}//#endregion
455
455
  //#region src/services/attachment.service.ts
456
- function dC(_x18,_x19){return _dC.apply(this,arguments);}function _dC(){_dC=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee40(e,t){var n;return _regenerator().w(function(_context40){while(1)switch(_context40.n){case 0:_context40.n=1;return fetch(e,{method:"PUT",body:t});case 1:n=_context40.v;if(n.ok){_context40.n=2;break;}throw Error("Upload failed: ".concat(n.status));case 2:return _context40.a(2);}},_callee40);}));return _dC.apply(this,arguments);}var fC=function fC(_ref44){var e=_ref44.serverUrl,t=_ref44.authToken;var n=uC(e,t);return{presignUrl:function(){var _presignUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(e,t,r,i){var a,o,s;return _regenerator().w(function(_context12){while(1)switch(_context12.n){case 0:_context12.n=1;return n.json.post("attachments/presign_url",{conversation_id:e,filename:t,content_type:r,size_bytes:i});case 1:s=_context12.v;return _context12.a(2,{attachmentId:(a=s.attachment_id)==null?s.attachmentId:a,uploadUrl:(o=s.upload_url)==null?s.uploadUrl:o});}},_callee12);}));function presignUrl(_x20,_x21,_x22,_x23){return _presignUrl.apply(this,arguments);}return presignUrl;}(),fetchPreviewUrl:function(){var _fetchPreviewUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13(e,t){var r,i,a,o,s,c;return _regenerator().w(function(_context13){while(1)switch(_context13.n){case 0:_context13.n=1;return n.json.get("attachments/".concat(e,"/preview_url?convo_id=").concat(t));case 1:c=_context13.v;return _context13.a(2,{previewUrl:(r=c.preview_url)==null?c.previewUrl:r,contentType:(i=c.content_type)==null?c.contentType:i,attachmentId:(a=c.attachment_id)==null?c.attachmentId:a,expiresIn:(o=c.expires_in)==null?c.expiresIn:o,success:(s=c.success)==null?!0:s});}},_callee13);}));function fetchPreviewUrl(_x24,_x25){return _fetchPreviewUrl.apply(this,arguments);}return fetchPreviewUrl;}(),deleteAttachment:function(){var _deleteAttachment=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14(e,t){var _t144;return _regenerator().w(function(_context14){while(1)switch(_context14.p=_context14.n){case 0:_context14.p=0;_context14.n=1;return n.json.delete("attachments/".concat(e,"/").concat(t));case 1:_context14.n=3;break;case 2:_context14.p=2;_t144=_context14.v;Cx(_t144,{context:{extra:{message:"deleteAttachment failed",attachmentId:t}}});case 3:return _context14.a(2);}},_callee14,null,[[0,2]]);}));function deleteAttachment(_x26,_x27){return _deleteAttachment.apply(this,arguments);}return deleteAttachment;}()};},pC={PENDING:"pending",UPLOADING:"uploading",UPLOADED:"uploaded",FAILED:"failed"},mC=20*1024*1024,hC=["image/","video/"],gC=2,_C=/* @__PURE__ */new WeakMap(),vC=/* @__PURE__ */new WeakMap(),yC=/*#__PURE__*/function(){function yC(e,t){_classCallCheck(this,yC);M(this,_C,/* @__PURE__ */L(vr([]))),M(this,vC,/* @__PURE__ */L(!1)),D(this,"attachmentService",void 0),D(this,"getConversationId",void 0),this.attachmentService=e,this.getConversationId=t;}return _createClass(yC,[{key:"files",get:function get(){return W(P(_C,this));},set:function set(e){R(P(_C,this),e,!0);}},{key:"isUploading",get:function get(){return W(P(vC,this));},set:function set(e){R(P(vC,this),e,!0);}},{key:"validateFiles",value:function validateFiles(e){return e.length+this.files.length>4||[].concat(_toConsumableArray(this.files.map(function(e){return e.size;})),_toConsumableArray(e.map(function(e){return e.size;}))).reduce(function(e,t){return e+t;},0)>20971520?"You can upload up to 4 files with a total size under ".concat(mC/(1024*1024)," MB"):e.filter(function(e){return!hC.some(function(t){return e.type.startsWith(t);});}).length>0?"Only images and videos are allowed.":null;}},{key:"addAndUpload",value:function addAndUpload(e){var t=e.map(function(e){return{file:e,id:"".concat(Date.now(),"_").concat(Math.random().toString(36).substring(2,11)),name:e.name,size:e.size,type:e.type,status:pC.PENDING,progress:0,attachmentId:null,previewUrl:e.type.startsWith("image/")?URL.createObjectURL(e):null,error:null};});this.files=[].concat(_toConsumableArray(this.files),_toConsumableArray(t)),this.uploadFiles(t);}},{key:"retryUpload",value:function retryUpload(e){this.uploadFiles([e]);}},{key:"removeFile",value:function removeFile(e){e.previewUrl&&URL.revokeObjectURL(e.previewUrl),this.files=this.files.filter(function(t){return t.id!==e.id;}),e.attachmentId&&this.getConversationId()&&this.attachmentService.deleteAttachment(this.getConversationId(),e.attachmentId);}},{key:"canSend",get:function get(){return this.files.length>0&&this.files.every(function(e){return e.status===pC.UPLOADED;});}},{key:"uploadedAttachmentIds",get:function get(){return this.files.filter(function(e){return e.attachmentId!==null;}).map(function(e){return e.attachmentId;});}},{key:"updateFile",value:function updateFile(e,t){this.files=this.files.map(function(n){return n.id===e?_objectSpread(_objectSpread({},n),t):n;});}},{key:"uploadSingleFile",value:function(){var _uploadSingleFile=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15(e){var t,n,_t145;return _regenerator().w(function(_context15){while(1)switch(_context15.p=_context15.n){case 0:t=this;_context15.p=1;t.updateFile(e.id,{status:pC.UPLOADING,progress:0,error:null});_context15.n=2;return t.attachmentService.presignUrl(t.getConversationId(),e.name,e.type,e.size);case 2:n=_context15.v;if(!(!n.attachmentId||!n.uploadUrl)){_context15.n=3;break;}throw Error("Invalid presign response");case 3:_context15.n=4;return dC(n.uploadUrl,e.file);case 4:t.updateFile(e.id,{status:pC.UPLOADED,attachmentId:n.attachmentId,progress:100,error:null});_context15.n=6;break;case 5:_context15.p=5;_t145=_context15.v;Cx(_t145,{context:{extra:{message:"File upload failed",fileName:e.name}}}),t.updateFile(e.id,{status:pC.FAILED,error:_t145.message});case 6:return _context15.a(2);}},_callee15,this,[[1,5]]);}));function uploadSingleFile(_x28){return _uploadSingleFile.apply(this,arguments);}return uploadSingleFile;}()},{key:"uploadFiles",value:function(){var _uploadFiles=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(e){var t,n,r,_i68;return _regenerator().w(function(_context16){while(1)switch(_context16.n){case 0:t=this;t.isUploading=!0;n=_toConsumableArray(e),r=/* @__PURE__ */new Set(),_i68=function i(){if(n.length===0&&r.size===0){t.isUploading=!1;return;}var _loop1=function _loop1(){var e=n.shift();r.add(e.id),t.uploadSingleFile(e).finally(function(){r.delete(e.id),_i68();});};for(;n.length>0&&r.size<gC;){_loop1();}};_i68();case 1:return _context16.a(2);}},_callee16,this);}));function uploadFiles(_x29){return _uploadFiles.apply(this,arguments);}return uploadFiles;}()}]);}(),bC=/* @__PURE__ */G("<div data-testid=\"upload-error\" class=\"flex items-center gap-2 p-3 bg-[#0f172b] border border-red-300 rounded-md text-red-400 text-sm mb-3\"><!> <span> </span></div>"),xC=/* @__PURE__ */G("<img class=\"w-full h-full object-cover\"/>"),SC=/* @__PURE__ */G("<div class=\"text-xs text-red-400 mt-1\"> </div>"),CC=/* @__PURE__ */G("<div class=\"flex items-center gap-1.5 text-sm text-[#79c03c]\"><!></div>"),wC=/* @__PURE__ */G("<div class=\"flex items-center text-sm text-green-500\"><!></div>"),TC=/* @__PURE__ */G("<div class=\"flex items-center gap-1.5 text-sm text-red-500\"><!> <button data-testid=\"retry-upload-button\" class=\"bg-transparent border-none cursor-pointer text-[#79c03c] p-1 flex items-center justify-center transition-transform duration-200 hover:scale-110 active:scale-95\" title=\"Retry upload\"><!></button></div>"),EC=/* @__PURE__ */G("<div class=\"flex items-center gap-3 p-3 bg-[#0f172b] border border-[#29374c] rounded-lg transition-all duration-200 hover:border-[#79c03c]\"><div class=\"w-[60px] h-[60px] rounded-md overflow-hidden shrink-0 bg-[#0f172b] flex items-center justify-center max-md:w-[50px] max-md:h-[50px]\"><!></div> <div class=\"flex-1 min-w-0\"><div class=\"text-sm font-medium text-white overflow-hidden text-ellipsis whitespace-nowrap mb-1 max-md:text-[13px]\"> </div> <div class=\"text-xs text-[#666] max-md:text-[11px]\"> </div> <!></div> <div class=\"flex items-center gap-2\"><!> <button data-testid=\"remove-file-button\" class=\"bg-transparent border-none cursor-pointer text-[#999] p-2 flex items-center justify-center transition-all duration-200 rounded hover:text-red-500 hover:bg-red-50 disabled:opacity-50 disabled:cursor-not-allowed active:scale-95\" title=\"Remove file\"><!></button></div></div>"),DC=/* @__PURE__ */G("<div class=\"flex flex-col gap-3 mb-4\"></div>"),OC=/* @__PURE__ */G("<button data-testid=\"send-with-files-button\" class=\"py-2.5 px-5 rounded-md text-sm font-medium cursor-pointer transition-all duration-200 border-none bg-[#79c03c] text-white hover:bg-[#6aad35] disabled:opacity-50 disabled:bg-[#ccc] disabled:cursor-not-allowed active:scale-[0.98] max-md:w-full\">Send</button>"),kC=/* @__PURE__ */G("<div data-testid=\"file-attachment-tray\" class=\"bg-[#1d293d] mt-3 p-4 rounded-[1.25rem] break-words text-sm leading-[1.5] w-full font-normal max-md:p-3\" role=\"region\" aria-label=\"File upload area\"><input type=\"file\" multiple=\"\" class=\"hidden\"/> <!> <!> <div class=\"flex flex-col gap-3\"><button data-testid=\"upload-files-button\"><!> <span>Upload files</span> <span class=\"text-xs text-white\"> </span></button> <div class=\"flex gap-3 justify-end max-md:flex-col\"><button data-testid=\"continue-without-files-button\" class=\"py-2.5 px-5 rounded-md text-sm font-medium cursor-pointer transition-all duration-200 border-none bg-[#0f172b] text-white hover:bg-[#29374c] disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.98] max-md:w-full\">Continue without files</button> <!></div></div></div>");function AC(e,t){ct(t,!0);var n=J(t,"disabled",3,!1),r=new yC(t.attachmentService,function(){return t.conversationId;});Wo(function(){var _iterator96=_createForOfIteratorHelper(r.files),_step96;try{for(_iterator96.s();!(_step96=_iterator96.n()).done;){var _e189=_step96.value;_e189.previewUrl&&URL.revokeObjectURL(_e189.previewUrl);}}catch(err){_iterator96.e(err);}finally{_iterator96.f();}});var i=/* @__PURE__ */L(null),a=/* @__PURE__ */L(void 0),o=/* @__PURE__ */L(!1);function s(e){var t=r.validateFiles(e);if(t){R(i,t,!0);return;}R(i,null),r.addAndUpload(e);}function c(e){var t;e.preventDefault(),R(o,!1);var n=(t=e.dataTransfer)==null?void 0:t.files;n&&s(Array.from(n));}function l(e){e.preventDefault(),R(o,!0);}function u(){R(o,!1);}function d(e){var t=e.target;t.files&&s(Array.from(t.files)),t.value="";}function f(){var e;(e=W(a))==null||e.click();}function p(e){if(e===0)return"0 Bytes";var t=1024,n=["Bytes","KB","MB"],r=Math.floor(Math.log(e)/Math.log(t));return Math.round(e/Math.pow(t,+r)*100)/100+" "+n[r];}function m(e){return e.previewUrl;}var h=kC(),g=z(h);Io(g,function(e){return R(a,e);},function(){return W(a);});var _=B(g,2),v=function v(e){var t=bC(),n=z(t);ts(n,{size:16,class:"shrink-0"});var r=B(n,2),a=z(r,!0);A(r),A(t),V(function(){return ga(a,W(i));}),K(e,t);};q(_,function(e){W(i)&&e(v);});var y=B(_,2),b=function b(e){var t=DC();Pa(t,21,function(){return r.files;},function(e){return e.id;},function(e,t){var n=/* @__PURE__ */tr(function(){return m(W(t));});var i=EC(),a=z(i),o=z(a),s=function s(e){var r=ha(),i=kr(r),a=function a(e){var r=xC();V(function(){yo(r,"src",W(n)),yo(r,"alt",W(t).name);}),K(e,r);},o=function o(e){rs(e,{size:32,class:"text-[#666]"});};q(i,function(e){W(n)?e(a):e(o,-1);}),K(e,r);},c=/* @__PURE__ */tr(function(){return W(t).type.startsWith("image/");}),l=function l(e){fs(e,{size:32,class:"text-[#666]"});};q(o,function(e){W(c)?e(s):e(l,-1);}),A(a);var u=B(a,2),d=z(u),f=z(d,!0);A(d);var h=B(d,2),g=z(h,!0);A(h);var _=B(h,2),v=function v(e){var n=SC(),r=z(n,!0);A(n),V(function(){return ga(r,W(t).error);}),K(e,n);};q(_,function(e){W(t).error&&e(v);}),A(u);var y=B(u,2),b=z(y),x=function x(e){var t=CC();is(z(t),{size:16,class:"animate-spin"}),A(t),K(e,t);},S=function S(e){var t=wC();ns(z(t),{size:16}),A(t),K(e,t);},C=function C(e){var n=TC(),i=z(n);ts(i,{size:16});var a=B(i,2);as(z(a),{size:14}),A(a),A(n),ra("click",a,function(){return r.retryUpload(W(t));}),K(e,n);};q(b,function(e){W(t).status===pC.UPLOADING?e(x):W(t).status===pC.UPLOADED?e(S,1):W(t).status===pC.FAILED&&e(C,2);});var w=B(b,2);cs(z(w),{size:16}),A(w),A(y),A(i),V(function(e){ga(f,W(t).name),ga(g,e),w.disabled=W(t).status===pC.UPLOADING;},[function(){return p(W(t).size);}]),ra("click",w,function(){return r.removeFile(W(t));}),K(e,i);}),A(t),K(e,t);};q(y,function(e){r.files.length>0&&e(b);});var x=B(y,2),S=z(x),C=z(S);us(C,{size:16});var w=B(C,4),T=z(w);A(w),A(S);var ee=B(S,2),E=z(ee),te=B(E,2),ne=function ne(e){var i=OC();V(function(){return i.disabled=!r.canSend||n();}),ra("click",i,function(){return t.onSendWithFiles(r.uploadedAttachmentIds);}),K(e,i);};q(te,function(e){r.files.length>0&&e(ne);}),A(ee),A(x),A(h),V(function(e){var t;yo(g,"accept",e),eo(S,1,"flex items-center justify-center gap-2 py-3 px-6 bg-[#0f172b] border border-dashed border-[#79c03c] rounded-lg text-[#79c03c] text-sm font-medium cursor-pointer transition-all duration-200 hover:bg-[#29374c] disabled:opacity-50 disabled:cursor-not-allowed disabled:border-[#ccc] disabled:text-[#999] active:scale-[0.98] max-md:py-2.5 max-md:px-4 max-md:text-[13px] ".concat(W(o)?"bg-[#29374c] border-solid":"")),S.disabled=n()||r.files.length>=4||r.isUploading,ga(T,"(".concat((t=r.files.length)==null?"":t,"/4)")),E.disabled=n()||r.isUploading;},[function(){return hC.map(function(e){return e+"*";}).join(",");}]),na("drop",h,c),na("dragover",h,l),na("dragleave",h,u),ra("change",g,d),ra("click",S,f),ra("click",E,function(){var n;for(var _len22=arguments.length,e=new Array(_len22),_key22=0;_key22<_len22;_key22++){e[_key22]=arguments[_key22];}(n=t.onContinueWithoutFiles)==null||n.apply(this,e);}),K(e,h),lt();}ia(["change","click"]);//#endregion
456
+ function hC(_x18,_x19){return _hC.apply(this,arguments);}function _hC(){_hC=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee40(e,t){var n;return _regenerator().w(function(_context40){while(1)switch(_context40.n){case 0:_context40.n=1;return fetch(e,{method:"PUT",body:t});case 1:n=_context40.v;if(n.ok){_context40.n=2;break;}throw Error("Upload failed: ".concat(n.status));case 2:return _context40.a(2);}},_callee40);}));return _hC.apply(this,arguments);}var gC=function gC(_ref44){var e=_ref44.serverUrl,t=_ref44.authToken;var n=mC(e,t);return{presignUrl:function(){var _presignUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(e,t,r,i){var a,o,s;return _regenerator().w(function(_context12){while(1)switch(_context12.n){case 0:_context12.n=1;return n.json.post("attachments/presign_url",{conversation_id:e,filename:t,content_type:r,size_bytes:i});case 1:s=_context12.v;return _context12.a(2,{attachmentId:(a=s.attachment_id)==null?s.attachmentId:a,uploadUrl:(o=s.upload_url)==null?s.uploadUrl:o});}},_callee12);}));function presignUrl(_x20,_x21,_x22,_x23){return _presignUrl.apply(this,arguments);}return presignUrl;}(),fetchPreviewUrl:function(){var _fetchPreviewUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13(e,t){var r,i,a,o,s,c;return _regenerator().w(function(_context13){while(1)switch(_context13.n){case 0:_context13.n=1;return n.json.get("attachments/".concat(e,"/preview_url?convo_id=").concat(t));case 1:c=_context13.v;return _context13.a(2,{previewUrl:(r=c.preview_url)==null?c.previewUrl:r,contentType:(i=c.content_type)==null?c.contentType:i,attachmentId:(a=c.attachment_id)==null?c.attachmentId:a,expiresIn:(o=c.expires_in)==null?c.expiresIn:o,success:(s=c.success)==null?!0:s});}},_callee13);}));function fetchPreviewUrl(_x24,_x25){return _fetchPreviewUrl.apply(this,arguments);}return fetchPreviewUrl;}(),deleteAttachment:function(){var _deleteAttachment=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14(e,t){var _t144;return _regenerator().w(function(_context14){while(1)switch(_context14.p=_context14.n){case 0:_context14.p=0;_context14.n=1;return n.json.delete("attachments/".concat(e,"/").concat(t));case 1:_context14.n=3;break;case 2:_context14.p=2;_t144=_context14.v;Ox(_t144,{context:{extra:{message:"deleteAttachment failed",attachmentId:t}}});case 3:return _context14.a(2);}},_callee14,null,[[0,2]]);}));function deleteAttachment(_x26,_x27){return _deleteAttachment.apply(this,arguments);}return deleteAttachment;}()};},_C={PENDING:"pending",UPLOADING:"uploading",UPLOADED:"uploaded",FAILED:"failed"},vC=20*1024*1024,yC=["image/","video/"],bC=2,xC=/* @__PURE__ */new WeakMap(),SC=/* @__PURE__ */new WeakMap(),CC=/*#__PURE__*/function(){function CC(e,t){_classCallCheck(this,CC);M(this,xC,/* @__PURE__ */L(vr([]))),M(this,SC,/* @__PURE__ */L(!1)),D(this,"attachmentService",void 0),D(this,"getConversationId",void 0),this.attachmentService=e,this.getConversationId=t;}return _createClass(CC,[{key:"files",get:function get(){return W(P(xC,this));},set:function set(e){R(P(xC,this),e,!0);}},{key:"isUploading",get:function get(){return W(P(SC,this));},set:function set(e){R(P(SC,this),e,!0);}},{key:"validateFiles",value:function validateFiles(e){return e.length+this.files.length>4||[].concat(_toConsumableArray(this.files.map(function(e){return e.size;})),_toConsumableArray(e.map(function(e){return e.size;}))).reduce(function(e,t){return e+t;},0)>20971520?"You can upload up to 4 files with a total size under ".concat(vC/(1024*1024)," MB"):e.filter(function(e){return!yC.some(function(t){return e.type.startsWith(t);});}).length>0?"Only images and videos are allowed.":null;}},{key:"addAndUpload",value:function addAndUpload(e){var t=e.map(function(e){return{file:e,id:"".concat(Date.now(),"_").concat(Math.random().toString(36).substring(2,11)),name:e.name,size:e.size,type:e.type,status:_C.PENDING,progress:0,attachmentId:null,previewUrl:e.type.startsWith("image/")?URL.createObjectURL(e):null,error:null};});this.files=[].concat(_toConsumableArray(this.files),_toConsumableArray(t)),this.uploadFiles(t);}},{key:"retryUpload",value:function retryUpload(e){this.uploadFiles([e]);}},{key:"removeFile",value:function removeFile(e){e.previewUrl&&URL.revokeObjectURL(e.previewUrl),this.files=this.files.filter(function(t){return t.id!==e.id;}),e.attachmentId&&this.getConversationId()&&this.attachmentService.deleteAttachment(this.getConversationId(),e.attachmentId);}},{key:"canSend",get:function get(){return this.files.length>0&&this.files.every(function(e){return e.status===_C.UPLOADED;});}},{key:"uploadedAttachmentIds",get:function get(){return this.files.filter(function(e){return e.attachmentId!==null;}).map(function(e){return e.attachmentId;});}},{key:"updateFile",value:function updateFile(e,t){this.files=this.files.map(function(n){return n.id===e?_objectSpread(_objectSpread({},n),t):n;});}},{key:"uploadSingleFile",value:function(){var _uploadSingleFile=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15(e){var t,n,_t145;return _regenerator().w(function(_context15){while(1)switch(_context15.p=_context15.n){case 0:t=this;_context15.p=1;t.updateFile(e.id,{status:_C.UPLOADING,progress:0,error:null});_context15.n=2;return t.attachmentService.presignUrl(t.getConversationId(),e.name,e.type,e.size);case 2:n=_context15.v;if(!(!n.attachmentId||!n.uploadUrl)){_context15.n=3;break;}throw Error("Invalid presign response");case 3:_context15.n=4;return hC(n.uploadUrl,e.file);case 4:t.updateFile(e.id,{status:_C.UPLOADED,attachmentId:n.attachmentId,progress:100,error:null});_context15.n=6;break;case 5:_context15.p=5;_t145=_context15.v;Ox(_t145,{context:{extra:{message:"File upload failed",fileName:e.name}}}),t.updateFile(e.id,{status:_C.FAILED,error:_t145.message});case 6:return _context15.a(2);}},_callee15,this,[[1,5]]);}));function uploadSingleFile(_x28){return _uploadSingleFile.apply(this,arguments);}return uploadSingleFile;}()},{key:"uploadFiles",value:function(){var _uploadFiles=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(e){var t,n,r,_i68;return _regenerator().w(function(_context16){while(1)switch(_context16.n){case 0:t=this;t.isUploading=!0;n=_toConsumableArray(e),r=/* @__PURE__ */new Set(),_i68=function i(){if(n.length===0&&r.size===0){t.isUploading=!1;return;}var _loop1=function _loop1(){var e=n.shift();r.add(e.id),t.uploadSingleFile(e).finally(function(){r.delete(e.id),_i68();});};for(;n.length>0&&r.size<bC;){_loop1();}};_i68();case 1:return _context16.a(2);}},_callee16,this);}));function uploadFiles(_x29){return _uploadFiles.apply(this,arguments);}return uploadFiles;}()}]);}(),wC=/* @__PURE__ */G("<div data-testid=\"upload-error\" class=\"flex items-center gap-2 p-3 bg-[#0f172b] border border-red-300 rounded-md text-red-400 text-sm mb-3\"><!> <span> </span></div>"),TC=/* @__PURE__ */G("<img class=\"w-full h-full object-cover\"/>"),EC=/* @__PURE__ */G("<div class=\"text-xs text-red-400 mt-1\"> </div>"),DC=/* @__PURE__ */G("<div class=\"flex items-center gap-1.5 text-sm text-[#79c03c]\"><!></div>"),OC=/* @__PURE__ */G("<div class=\"flex items-center text-sm text-green-500\"><!></div>"),kC=/* @__PURE__ */G("<div class=\"flex items-center gap-1.5 text-sm text-red-500\"><!> <button data-testid=\"retry-upload-button\" class=\"bg-transparent border-none cursor-pointer text-[#79c03c] p-1 flex items-center justify-center transition-transform duration-200 hover:scale-110 active:scale-95\" title=\"Retry upload\"><!></button></div>"),AC=/* @__PURE__ */G("<div class=\"flex items-center gap-3 p-3 bg-[#0f172b] border border-[#29374c] rounded-lg transition-all duration-200 hover:border-[#79c03c]\"><div class=\"w-[60px] h-[60px] rounded-md overflow-hidden shrink-0 bg-[#0f172b] flex items-center justify-center max-md:w-[50px] max-md:h-[50px]\"><!></div> <div class=\"flex-1 min-w-0\"><div class=\"text-sm font-medium text-white overflow-hidden text-ellipsis whitespace-nowrap mb-1 max-md:text-[13px]\"> </div> <div class=\"text-xs text-[#666] max-md:text-[11px]\"> </div> <!></div> <div class=\"flex items-center gap-2\"><!> <button data-testid=\"remove-file-button\" class=\"bg-transparent border-none cursor-pointer text-[#999] p-2 flex items-center justify-center transition-all duration-200 rounded hover:text-red-500 hover:bg-red-50 disabled:opacity-50 disabled:cursor-not-allowed active:scale-95\" title=\"Remove file\"><!></button></div></div>"),jC=/* @__PURE__ */G("<div class=\"flex flex-col gap-3 mb-4\"></div>"),MC=/* @__PURE__ */G("<button data-testid=\"send-with-files-button\" class=\"py-2.5 px-5 rounded-md text-sm font-medium cursor-pointer transition-all duration-200 border-none bg-[#79c03c] text-white hover:bg-[#6aad35] disabled:opacity-50 disabled:bg-[#ccc] disabled:cursor-not-allowed active:scale-[0.98] max-md:w-full\">Send</button>"),NC=/* @__PURE__ */G("<div data-testid=\"file-attachment-tray\" class=\"bg-[#1d293d] mt-3 p-4 rounded-[1.25rem] break-words text-sm leading-[1.5] w-full font-normal max-md:p-3\" role=\"region\" aria-label=\"File upload area\"><input type=\"file\" multiple=\"\" class=\"hidden\"/> <!> <!> <div class=\"flex flex-col gap-3\"><button data-testid=\"upload-files-button\"><!> <span>Upload files</span> <span class=\"text-xs text-white\"> </span></button> <div class=\"flex gap-3 justify-end max-md:flex-col\"><button data-testid=\"continue-without-files-button\" class=\"py-2.5 px-5 rounded-md text-sm font-medium cursor-pointer transition-all duration-200 border-none bg-[#0f172b] text-white hover:bg-[#29374c] disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.98] max-md:w-full\">Continue without files</button> <!></div></div></div>");function PC(e,t){ct(t,!0);var n=J(t,"disabled",3,!1),r=new CC(t.attachmentService,function(){return t.conversationId;});Wo(function(){var _iterator96=_createForOfIteratorHelper(r.files),_step96;try{for(_iterator96.s();!(_step96=_iterator96.n()).done;){var _e189=_step96.value;_e189.previewUrl&&URL.revokeObjectURL(_e189.previewUrl);}}catch(err){_iterator96.e(err);}finally{_iterator96.f();}});var i=/* @__PURE__ */L(null),a=/* @__PURE__ */L(void 0),o=/* @__PURE__ */L(!1);function s(e){var t=r.validateFiles(e);if(t){R(i,t,!0);return;}R(i,null),r.addAndUpload(e);}function c(e){var t;e.preventDefault(),R(o,!1);var n=(t=e.dataTransfer)==null?void 0:t.files;n&&s(Array.from(n));}function l(e){e.preventDefault(),R(o,!0);}function u(){R(o,!1);}function d(e){var t=e.target;t.files&&s(Array.from(t.files)),t.value="";}function f(){var e;(e=W(a))==null||e.click();}function p(e){if(e===0)return"0 Bytes";var t=1024,n=["Bytes","KB","MB"],r=Math.floor(Math.log(e)/Math.log(t));return Math.round(e/Math.pow(t,+r)*100)/100+" "+n[r];}function m(e){return e.previewUrl;}var h=NC(),g=z(h);Io(g,function(e){return R(a,e);},function(){return W(a);});var _=B(g,2),v=function v(e){var t=wC(),n=z(t);ts(n,{size:16,class:"shrink-0"});var r=B(n,2),a=z(r,!0);A(r),A(t),V(function(){return ga(a,W(i));}),K(e,t);};q(_,function(e){W(i)&&e(v);});var y=B(_,2),b=function b(e){var t=jC();Pa(t,21,function(){return r.files;},function(e){return e.id;},function(e,t){var n=/* @__PURE__ */tr(function(){return m(W(t));});var i=AC(),a=z(i),o=z(a),s=function s(e){var r=ha(),i=kr(r),a=function a(e){var r=TC();V(function(){yo(r,"src",W(n)),yo(r,"alt",W(t).name);}),K(e,r);},o=function o(e){rs(e,{size:32,class:"text-[#666]"});};q(i,function(e){W(n)?e(a):e(o,-1);}),K(e,r);},c=/* @__PURE__ */tr(function(){return W(t).type.startsWith("image/");}),l=function l(e){fs(e,{size:32,class:"text-[#666]"});};q(o,function(e){W(c)?e(s):e(l,-1);}),A(a);var u=B(a,2),d=z(u),f=z(d,!0);A(d);var h=B(d,2),g=z(h,!0);A(h);var _=B(h,2),v=function v(e){var n=EC(),r=z(n,!0);A(n),V(function(){return ga(r,W(t).error);}),K(e,n);};q(_,function(e){W(t).error&&e(v);}),A(u);var y=B(u,2),b=z(y),x=function x(e){var t=DC();is(z(t),{size:16,class:"animate-spin"}),A(t),K(e,t);},S=function S(e){var t=OC();ns(z(t),{size:16}),A(t),K(e,t);},C=function C(e){var n=kC(),i=z(n);ts(i,{size:16});var a=B(i,2);as(z(a),{size:14}),A(a),A(n),ra("click",a,function(){return r.retryUpload(W(t));}),K(e,n);};q(b,function(e){W(t).status===_C.UPLOADING?e(x):W(t).status===_C.UPLOADED?e(S,1):W(t).status===_C.FAILED&&e(C,2);});var w=B(b,2);cs(z(w),{size:16}),A(w),A(y),A(i),V(function(e){ga(f,W(t).name),ga(g,e),w.disabled=W(t).status===_C.UPLOADING;},[function(){return p(W(t).size);}]),ra("click",w,function(){return r.removeFile(W(t));}),K(e,i);}),A(t),K(e,t);};q(y,function(e){r.files.length>0&&e(b);});var x=B(y,2),S=z(x),C=z(S);us(C,{size:16});var w=B(C,4),T=z(w);A(w),A(S);var ee=B(S,2),E=z(ee),te=B(E,2),ne=function ne(e){var i=MC();V(function(){return i.disabled=!r.canSend||n();}),ra("click",i,function(){return t.onSendWithFiles(r.uploadedAttachmentIds);}),K(e,i);};q(te,function(e){r.files.length>0&&e(ne);}),A(ee),A(x),A(h),V(function(e){var t;yo(g,"accept",e),eo(S,1,"flex items-center justify-center gap-2 py-3 px-6 bg-[#0f172b] border border-dashed border-[#79c03c] rounded-lg text-[#79c03c] text-sm font-medium cursor-pointer transition-all duration-200 hover:bg-[#29374c] disabled:opacity-50 disabled:cursor-not-allowed disabled:border-[#ccc] disabled:text-[#999] active:scale-[0.98] max-md:py-2.5 max-md:px-4 max-md:text-[13px] ".concat(W(o)?"bg-[#29374c] border-solid":"")),S.disabled=n()||r.files.length>=4||r.isUploading,ga(T,"(".concat((t=r.files.length)==null?"":t,"/4)")),E.disabled=n()||r.isUploading;},[function(){return yC.map(function(e){return e+"*";}).join(",");}]),na("drop",h,c),na("dragover",h,l),na("dragleave",h,u),ra("change",g,d),ra("click",S,f),ra("click",E,function(){var n;for(var _len22=arguments.length,e=new Array(_len22),_key22=0;_key22<_len22;_key22++){e[_key22]=arguments[_key22];}(n=t.onContinueWithoutFiles)==null||n.apply(this,e);}),K(e,h),lt();}ia(["change","click"]);//#endregion
457
457
  //#region src/features/zena-chatbot/constants/chatbot-data.ts
458
- var jC=["How can I refer and earn?","I'm having technical issues","Survey link is not working","Why use the ZoomRx App?","How do I update my email address?","How do I complete my profile verification?","Where is my bonus payment?","Why was I screened out?","I forgot my password","How can I update my profile?","Why did my survey reset?","PayPal not working","Do I need to fill out a W-9 form?","Check my bonus status","Change my payment method","Survey ended early","Where is my 1099 form?","The site is not working","Where is my payment?","Profile verification required","Update my details","I was terminated from the survey","Technical problem","Change my email","Bonus eligibility check"],MC=["All set here","Get Support from Our Team"],NC=["Yes, investigate please","No, that's okay"],PC=["Investigate further","All set here"],FC=["Upload files","Continue without files"],IC="info@zoomrx.com",LC=/* @__PURE__ */G("<div class=\"mt-4 max-md:mt-3\"><!></div>");function RC(e,t){ct(t,!0);var n=J(t,"disabled",3,!1),r=Wx(),i=Kx(),a=/* @__PURE__ */L(!1);function o(e){e===FC[0]?R(a,!0):e===FC[1]&&t.onAttachmentFlow([]);}var s=ha(),c=kr(s),l=function l(e){var a=/* @__PURE__ */tr(r),o=/* @__PURE__ */tr(i);var s=ha(),c=kr(s),l=function l(e){AC(e,{get attachmentService(){return W(a);},get conversationId(){return W(o);},get disabled(){return n();},onSendWithFiles:function onSendWithFiles(e){return t.onAttachmentFlow(e);},onContinueWithoutFiles:function onContinueWithoutFiles(){return t.onAttachmentFlow([]);}});};q(c,function(e){W(a)&&W(o)&&e(l);}),K(e,s);},u=function u(e){var t=LC();Dx(z(t),{get suggestions(){return FC;},get disabled(){return n();},onClick:o}),A(t),K(e,t);};q(c,function(e){W(a)?e(l):e(u,-1);}),K(e,s),lt();}//#endregion
458
+ var FC=["How can I refer and earn?","I'm having technical issues","Survey link is not working","Why use the ZoomRx App?","How do I update my email address?","How do I complete my profile verification?","Where is my bonus payment?","Why was I screened out?","I forgot my password","How can I update my profile?","Why did my survey reset?","PayPal not working","Do I need to fill out a W-9 form?","Check my bonus status","Change my payment method","Survey ended early","Where is my 1099 form?","The site is not working","Where is my payment?","Profile verification required","Update my details","I was terminated from the survey","Technical problem","Change my email","Bonus eligibility check"],IC=["All set here","Get Support from Our Team"],LC=["Yes, investigate please","No, that's okay"],RC=["Investigate further","All set here"],zC=["Upload files","Continue without files"],BC="info@zoomrx.com",VC=4e3,HC=/* @__PURE__ */G("<div class=\"mt-4 max-md:mt-3\"><!></div>");function UC(e,t){ct(t,!0);var n=J(t,"disabled",3,!1),r=Yx(),i=Zx(),a=/* @__PURE__ */L(!1);function o(e){e===zC[0]?R(a,!0):e===zC[1]&&t.onAttachmentFlow([]);}var s=ha(),c=kr(s),l=function l(e){var a=/* @__PURE__ */tr(r),o=/* @__PURE__ */tr(i);var s=ha(),c=kr(s),l=function l(e){PC(e,{get attachmentService(){return W(a);},get conversationId(){return W(o);},get disabled(){return n();},onSendWithFiles:function onSendWithFiles(e){return t.onAttachmentFlow(e);},onContinueWithoutFiles:function onContinueWithoutFiles(){return t.onAttachmentFlow([]);}});};q(c,function(e){W(a)&&W(o)&&e(l);}),K(e,s);},u=function u(e){var t=HC();Mx(z(t),{get suggestions(){return zC;},get disabled(){return n();},onClick:o}),A(t),K(e,t);};q(c,function(e){W(a)?e(l):e(u,-1);}),K(e,s),lt();}//#endregion
459
459
  //#region node_modules/html-to-image/es/util.js
460
- function zC(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;var n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href;}var BC=function(){var e=0,t=function t(){return"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);};return function(){return e+=1,"u".concat(t()).concat(e);};}();function VC(e){var t=[];for(var _n96=0,_r85=e.length;_n96<_r85;_n96++)t.push(e[_n96]);return t;}var HC=null;function UC(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return HC||(e.includeStyleProperties?(HC=e.includeStyleProperties,HC):(HC=VC(window.getComputedStyle(document.documentElement)),HC));}function WC(e,t){var n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0;}function GC(e){var t=WC(e,"border-left-width"),n=WC(e,"border-right-width");return e.clientWidth+t+n;}function KC(e){var t=WC(e,"border-top-width"),n=WC(e,"border-bottom-width");return e.clientHeight+t+n;}function qC(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return{width:t.width||GC(e),height:t.height||KC(e)};}function JC(){var e,t;try{t=process;}catch(e){}var n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1;}var YC=16384;function XC(e){(e.width>YC||e.height>YC)&&(e.width>YC&&e.height>YC?e.width>e.height?(e.height*=YC/e.width,e.width=YC):(e.width*=YC/e.height,e.height=YC):e.width>YC?(e.height*=YC/e.width,e.width=YC):(e.width*=YC/e.height,e.height=YC));}function ZC(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return e.toBlob?new Promise(function(n){e.toBlob(n,t.type?t.type:"image/png",t.quality?t.quality:1);}):new Promise(function(n){var r=window.atob(e.toDataURL(t.type?t.type:void 0,t.quality?t.quality:void 0).split(",")[1]),i=r.length,a=new Uint8Array(i);for(var _e190=0;_e190<i;_e190+=1)a[_e190]=r.charCodeAt(_e190);n(new Blob([a],{type:t.type?t.type:"image/png"}));});}function QC(e){return new Promise(function(t,n){var r=new Image();r.onload=function(){r.decode().then(function(){requestAnimationFrame(function(){return t(r);});});},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e;});}function $C(_x30){return _$C.apply(this,arguments);}function _$C(){_$C=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee41(e){return _regenerator().w(function(_context41){while(1)switch(_context41.n){case 0:return _context41.a(2,Promise.resolve().then(function(){return new XMLSerializer().serializeToString(e);}).then(encodeURIComponent).then(function(e){return"data:image/svg+xml;charset=utf-8,".concat(e);}));}},_callee41);}));return _$C.apply(this,arguments);}function ew(_x31,_x32,_x33){return _ew.apply(this,arguments);}function _ew(){_ew=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee42(e,t,n){var r,i,a;return _regenerator().w(function(_context42){while(1)switch(_context42.n){case 0:r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return _context42.a(2,(i.setAttribute("width","".concat(t)),i.setAttribute("height","".concat(n)),i.setAttribute("viewBox","0 0 ".concat(t," ").concat(n)),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),$C(i)));}},_callee42);}));return _ew.apply(this,arguments);}var _tw=function tw(e,t){if(e instanceof t)return!0;var n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||_tw(n,t);};//#endregion
460
+ function WC(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;var n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href;}var GC=function(){var e=0,t=function t(){return"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);};return function(){return e+=1,"u".concat(t()).concat(e);};}();function KC(e){var t=[];for(var _n96=0,_r85=e.length;_n96<_r85;_n96++)t.push(e[_n96]);return t;}var qC=null;function JC(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return qC||(e.includeStyleProperties?(qC=e.includeStyleProperties,qC):(qC=KC(window.getComputedStyle(document.documentElement)),qC));}function YC(e,t){var n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0;}function XC(e){var t=YC(e,"border-left-width"),n=YC(e,"border-right-width");return e.clientWidth+t+n;}function ZC(e){var t=YC(e,"border-top-width"),n=YC(e,"border-bottom-width");return e.clientHeight+t+n;}function QC(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return{width:t.width||XC(e),height:t.height||ZC(e)};}function $C(){var e,t;try{t=process;}catch(e){}var n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1;}var ew=16384;function tw(e){(e.width>ew||e.height>ew)&&(e.width>ew&&e.height>ew?e.width>e.height?(e.height*=ew/e.width,e.width=ew):(e.width*=ew/e.height,e.height=ew):e.width>ew?(e.height*=ew/e.width,e.width=ew):(e.width*=ew/e.height,e.height=ew));}function nw(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return e.toBlob?new Promise(function(n){e.toBlob(n,t.type?t.type:"image/png",t.quality?t.quality:1);}):new Promise(function(n){var r=window.atob(e.toDataURL(t.type?t.type:void 0,t.quality?t.quality:void 0).split(",")[1]),i=r.length,a=new Uint8Array(i);for(var _e190=0;_e190<i;_e190+=1)a[_e190]=r.charCodeAt(_e190);n(new Blob([a],{type:t.type?t.type:"image/png"}));});}function rw(e){return new Promise(function(t,n){var r=new Image();r.onload=function(){r.decode().then(function(){requestAnimationFrame(function(){return t(r);});});},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e;});}function iw(_x30){return _iw.apply(this,arguments);}function _iw(){_iw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee41(e){return _regenerator().w(function(_context41){while(1)switch(_context41.n){case 0:return _context41.a(2,Promise.resolve().then(function(){return new XMLSerializer().serializeToString(e);}).then(encodeURIComponent).then(function(e){return"data:image/svg+xml;charset=utf-8,".concat(e);}));}},_callee41);}));return _iw.apply(this,arguments);}function aw(_x31,_x32,_x33){return _aw.apply(this,arguments);}function _aw(){_aw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee42(e,t,n){var r,i,a;return _regenerator().w(function(_context42){while(1)switch(_context42.n){case 0:r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return _context42.a(2,(i.setAttribute("width","".concat(t)),i.setAttribute("height","".concat(n)),i.setAttribute("viewBox","0 0 ".concat(t," ").concat(n)),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),iw(i)));}},_callee42);}));return _aw.apply(this,arguments);}var _ow=function ow(e,t){if(e instanceof t)return!0;var n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||_ow(n,t);};//#endregion
461
461
  //#region node_modules/html-to-image/es/clone-pseudos.js
462
- function nw(e){var t=e.getPropertyValue("content");return"".concat(e.cssText," content: '").concat(t.replace(/'|"/g,""),"';");}function rw(e,t){return UC(t).map(function(t){return"".concat(t,": ").concat(e.getPropertyValue(t)).concat(e.getPropertyPriority(t)?" !important":"",";");}).join(" ");}function iw(e,t,n,r){var i=".".concat(e,":").concat(t),a=n.cssText?nw(n):rw(n,r);return document.createTextNode("".concat(i,"{").concat(a,"}"));}function aw(e,t,n,r){var i=window.getComputedStyle(e,n),a=i.getPropertyValue("content");if(a===""||a==="none")return;var o=BC();try{t.className="".concat(t.className," ").concat(o);}catch(e){return;}var s=document.createElement("style");s.appendChild(iw(o,n,i,r)),t.appendChild(s);}function ow(e,t,n){aw(e,t,":before",n),aw(e,t,":after",n);}//#endregion
462
+ function sw(e){var t=e.getPropertyValue("content");return"".concat(e.cssText," content: '").concat(t.replace(/'|"/g,""),"';");}function cw(e,t){return JC(t).map(function(t){return"".concat(t,": ").concat(e.getPropertyValue(t)).concat(e.getPropertyPriority(t)?" !important":"",";");}).join(" ");}function lw(e,t,n,r){var i=".".concat(e,":").concat(t),a=n.cssText?sw(n):cw(n,r);return document.createTextNode("".concat(i,"{").concat(a,"}"));}function uw(e,t,n,r){var i=window.getComputedStyle(e,n),a=i.getPropertyValue("content");if(a===""||a==="none")return;var o=GC();try{t.className="".concat(t.className," ").concat(o);}catch(e){return;}var s=document.createElement("style");s.appendChild(lw(o,n,i,r)),t.appendChild(s);}function dw(e,t,n){uw(e,t,":before",n),uw(e,t,":after",n);}//#endregion
463
463
  //#region node_modules/html-to-image/es/mimes.js
464
- var sw="application/font-woff",cw="image/jpeg",lw={woff:sw,woff2:sw,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:cw,jpeg:cw,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function uw(e){var t=/\.([^./]*?)$/g.exec(e);return t?t[1]:"";}function dw(e){return lw[uw(e).toLowerCase()]||"";}//#endregion
464
+ var fw="application/font-woff",pw="image/jpeg",mw={woff:fw,woff2:fw,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:pw,jpeg:pw,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function hw(e){var t=/\.([^./]*?)$/g.exec(e);return t?t[1]:"";}function gw(e){return mw[hw(e).toLowerCase()]||"";}//#endregion
465
465
  //#region node_modules/html-to-image/es/dataurl.js
466
- function fw(e){return e.split(/,/)[1];}function pw(e){return e.search(/^(data:)/)!==-1;}function mw(e,t){return"data:".concat(t,";base64,").concat(e);}function hw(_x34,_x35,_x36){return _hw.apply(this,arguments);}function _hw(){_hw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee43(e,t,n){var r,i;return _regenerator().w(function(_context43){while(1)switch(_context43.n){case 0:_context43.n=1;return fetch(e,t);case 1:r=_context43.v;if(!(r.status===404)){_context43.n=2;break;}throw Error("Resource \"".concat(r.url,"\" not found"));case 2:_context43.n=3;return r.blob();case 3:i=_context43.v;return _context43.a(2,new Promise(function(e,t){var a=new FileReader();a.onerror=t,a.onloadend=function(){try{e(n({res:r,result:a.result}));}catch(e){t(e);}},a.readAsDataURL(i);}));}},_callee43);}));return _hw.apply(this,arguments);}var gw={};function _w(e,t,n){var r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?"[".concat(t,"]").concat(r):r;}function vw(_x37,_x38,_x39){return _vw.apply(this,arguments);}//#endregion
466
+ function _w(e){return e.split(/,/)[1];}function vw(e){return e.search(/^(data:)/)!==-1;}function yw(e,t){return"data:".concat(t,";base64,").concat(e);}function bw(_x34,_x35,_x36){return _bw.apply(this,arguments);}function _bw(){_bw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee43(e,t,n){var r,i;return _regenerator().w(function(_context43){while(1)switch(_context43.n){case 0:_context43.n=1;return fetch(e,t);case 1:r=_context43.v;if(!(r.status===404)){_context43.n=2;break;}throw Error("Resource \"".concat(r.url,"\" not found"));case 2:_context43.n=3;return r.blob();case 3:i=_context43.v;return _context43.a(2,new Promise(function(e,t){var a=new FileReader();a.onerror=t,a.onloadend=function(){try{e(n({res:r,result:a.result}));}catch(e){t(e);}},a.readAsDataURL(i);}));}},_callee43);}));return _bw.apply(this,arguments);}var xw={};function Sw(e,t,n){var r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?"[".concat(t,"]").concat(r):r;}function Cw(_x37,_x38,_x39){return _Cw.apply(this,arguments);}//#endregion
467
467
  //#region node_modules/html-to-image/es/clone-node.js
468
- function _vw(){_vw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee44(e,t,n){var r,i,_r94,_t179,_t180;return _regenerator().w(function(_context44){while(1)switch(_context44.p=_context44.n){case 0:r=_w(e,t,n.includeQueryParams);if(!(gw[r]!=null)){_context44.n=1;break;}return _context44.a(2,gw[r]);case 1:n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(/* @__PURE__ */new Date()).getTime());_context44.p=2;_t179=mw;_context44.n=3;return hw(e,n.fetchRequestInit,function(_ref55){var e=_ref55.res,n=_ref55.result;return t||(t=e.headers.get("Content-Type")||""),fw(n);});case 3:i=_t179(_context44.v,t);_context44.n=5;break;case 4:_context44.p=4;_t180=_context44.v;i=n.imagePlaceholder||"";_r94="Failed to fetch resource: ".concat(e);_t180&&(_r94=typeof _t180=="string"?_t180:_t180.message),_r94&&console.warn(_r94);case 5:return _context44.a(2,(gw[r]=i,i));}},_callee44,null,[[2,4]]);}));return _vw.apply(this,arguments);}function yw(_x40){return _yw.apply(this,arguments);}function _yw(){_yw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee45(e){var t;return _regenerator().w(function(_context45){while(1)switch(_context45.n){case 0:t=e.toDataURL();return _context45.a(2,t==="data:,"?e.cloneNode(!1):QC(t));}},_callee45);}));return _yw.apply(this,arguments);}function bw(_x41,_x42){return _bw.apply(this,arguments);}function _bw(){_bw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee46(e,t){var _t181,_n108,n,_t182;return _regenerator().w(function(_context46){while(1)switch(_context46.n){case 0:if(!e.currentSrc){_context46.n=1;break;}_t181=document.createElement("canvas"),_n108=_t181.getContext("2d");return _context46.a(2,(_t181.width=e.clientWidth,_t181.height=e.clientHeight,_n108==null||_n108.drawImage(e,0,0,_t181.width,_t181.height),QC(_t181.toDataURL())));case 1:n=e.poster;_t182=QC;_context46.n=2;return vw(n,dw(n),t);case 2:return _context46.a(2,_t182(_context46.v));}},_callee46);}));return _bw.apply(this,arguments);}function xw(_x43,_x44){return _xw.apply(this,arguments);}function _xw(){_xw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee47(e,t){var n,_t183;return _regenerator().w(function(_context47){while(1)switch(_context47.p=_context47.n){case 0:_context47.p=0;if(!((n=e==null?void 0:e.contentDocument)!=null&&n.body)){_context47.n=2;break;}_context47.n=1;return jw(e.contentDocument.body,t,!0);case 1:return _context47.a(2,_context47.v);case 2:_context47.n=4;break;case 3:_context47.p=3;_t183=_context47.v;case 4:return _context47.a(2,e.cloneNode(!1));}},_callee47,null,[[0,3]]);}));return _xw.apply(this,arguments);}function Sw(_x45,_x46){return _Sw.apply(this,arguments);}function _Sw(){_Sw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee48(e,t){return _regenerator().w(function(_context48){while(1)switch(_context48.n){case 0:return _context48.a(2,_tw(e,HTMLCanvasElement)?yw(e):_tw(e,HTMLVideoElement)?bw(e,t):_tw(e,HTMLIFrameElement)?xw(e,t):e.cloneNode(ww(e)));}},_callee48);}));return _Sw.apply(this,arguments);}var Cw=function Cw(e){return e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";},ww=function ww(e){return e.tagName!=null&&e.tagName.toUpperCase()==="SVG";};function Tw(_x47,_x48,_x49){return _Tw.apply(this,arguments);}function _Tw(){_Tw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee49(e,t,n){var r,i,a,_t184;return _regenerator().w(function(_context49){while(1)switch(_context49.n){case 0:if(!ww(t)){_context49.n=1;break;}return _context49.a(2,t);case 1:a=[];a=Cw(e)&&e.assignedNodes?VC(e.assignedNodes()):_tw(e,HTMLIFrameElement)&&(r=e.contentDocument)!=null&&r.body?VC(e.contentDocument.body.childNodes):VC(((i=e.shadowRoot)==null?e:i).childNodes);_t184=a.length===0||_tw(e,HTMLVideoElement);if(_t184){_context49.n=2;break;}_context49.n=2;return a.reduce(function(e,r){return e.then(function(){return jw(r,n);}).then(function(e){e&&t.appendChild(e);});},Promise.resolve());case 2:return _context49.a(2,t);}},_callee49);}));return _Tw.apply(this,arguments);}function Ew(e,t,n){var r=t.style;if(!r)return;var i=window.getComputedStyle(e);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):UC(n).forEach(function(n){var a=i.getPropertyValue(n);n==="font-size"&&a.endsWith("px")&&(a="".concat(Math.floor(parseFloat(a.substring(0,a.length-2)))-.1,"px")),_tw(e,HTMLIFrameElement)&&n==="display"&&a==="inline"&&(a="block"),n==="d"&&t.getAttribute("d")&&(a="path(".concat(t.getAttribute("d"),")")),r.setProperty(n,a,i.getPropertyPriority(n));});}function Dw(e,t){_tw(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),_tw(e,HTMLInputElement)&&t.setAttribute("value",e.value);}function Ow(e,t){if(_tw(e,HTMLSelectElement)){var _n97=t,_r86=Array.from(_n97.children).find(function(t){return e.value===t.getAttribute("value");});_r86&&_r86.setAttribute("selected","");}}function kw(e,t,n){return _tw(t,Element)&&(Ew(e,t,n),ow(e,t,n),Dw(e,t),Ow(e,t)),t;}function Aw(_x50,_x51){return _Aw.apply(this,arguments);}function _Aw(){_Aw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee50(e,t){var n,r,_i70,_a20,_n109,_i71,i,_t185,_n110,_r95,_e201,_t186;return _regenerator().w(function(_context50){while(1)switch(_context50.n){case 0:n=e.querySelectorAll?e.querySelectorAll("use"):[];if(!(n.length===0)){_context50.n=1;break;}return _context50.a(2,e);case 1:r={};_i70=0;case 2:if(!(_i70<n.length)){_context50.n=5;break;}_a20=n[_i70].getAttribute("xlink:href");if(!_a20){_context50.n=4;break;}_n109=e.querySelector(_a20),_i71=document.querySelector(_a20);_t186=!_n109&&_i71&&!r[_a20];if(!_t186){_context50.n=4;break;}_context50.n=3;return jw(_i71,t,!0);case 3:r[_a20]=_context50.v;case 4:_i70++;_context50.n=2;break;case 5:i=Object.values(r);if(i.length){_t185="http://www.w3.org/1999/xhtml",_n110=document.createElementNS(_t185,"svg");_n110.setAttribute("xmlns",_t185),_n110.style.position="absolute",_n110.style.width="0",_n110.style.height="0",_n110.style.overflow="hidden",_n110.style.display="none";_r95=document.createElementNS(_t185,"defs");_n110.appendChild(_r95);for(_e201=0;_e201<i.length;_e201++)_r95.appendChild(i[_e201]);e.appendChild(_n110);}return _context50.a(2,e);}},_callee50);}));return _Aw.apply(this,arguments);}function jw(_x52,_x53,_x54){return _jw.apply(this,arguments);}//#endregion
468
+ function _Cw(){_Cw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee44(e,t,n){var r,i,_r94,_t179,_t180;return _regenerator().w(function(_context44){while(1)switch(_context44.p=_context44.n){case 0:r=Sw(e,t,n.includeQueryParams);if(!(xw[r]!=null)){_context44.n=1;break;}return _context44.a(2,xw[r]);case 1:n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(/* @__PURE__ */new Date()).getTime());_context44.p=2;_t179=yw;_context44.n=3;return bw(e,n.fetchRequestInit,function(_ref55){var e=_ref55.res,n=_ref55.result;return t||(t=e.headers.get("Content-Type")||""),_w(n);});case 3:i=_t179(_context44.v,t);_context44.n=5;break;case 4:_context44.p=4;_t180=_context44.v;i=n.imagePlaceholder||"";_r94="Failed to fetch resource: ".concat(e);_t180&&(_r94=typeof _t180=="string"?_t180:_t180.message),_r94&&console.warn(_r94);case 5:return _context44.a(2,(xw[r]=i,i));}},_callee44,null,[[2,4]]);}));return _Cw.apply(this,arguments);}function ww(_x40){return _ww.apply(this,arguments);}function _ww(){_ww=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee45(e){var t;return _regenerator().w(function(_context45){while(1)switch(_context45.n){case 0:t=e.toDataURL();return _context45.a(2,t==="data:,"?e.cloneNode(!1):rw(t));}},_callee45);}));return _ww.apply(this,arguments);}function Tw(_x41,_x42){return _Tw.apply(this,arguments);}function _Tw(){_Tw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee46(e,t){var _t181,_n108,n,_t182;return _regenerator().w(function(_context46){while(1)switch(_context46.n){case 0:if(!e.currentSrc){_context46.n=1;break;}_t181=document.createElement("canvas"),_n108=_t181.getContext("2d");return _context46.a(2,(_t181.width=e.clientWidth,_t181.height=e.clientHeight,_n108==null||_n108.drawImage(e,0,0,_t181.width,_t181.height),rw(_t181.toDataURL())));case 1:n=e.poster;_t182=rw;_context46.n=2;return Cw(n,gw(n),t);case 2:return _context46.a(2,_t182(_context46.v));}},_callee46);}));return _Tw.apply(this,arguments);}function Ew(_x43,_x44){return _Ew.apply(this,arguments);}function _Ew(){_Ew=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee47(e,t){var n,_t183;return _regenerator().w(function(_context47){while(1)switch(_context47.p=_context47.n){case 0:_context47.p=0;if(!((n=e==null?void 0:e.contentDocument)!=null&&n.body)){_context47.n=2;break;}_context47.n=1;return Iw(e.contentDocument.body,t,!0);case 1:return _context47.a(2,_context47.v);case 2:_context47.n=4;break;case 3:_context47.p=3;_t183=_context47.v;case 4:return _context47.a(2,e.cloneNode(!1));}},_callee47,null,[[0,3]]);}));return _Ew.apply(this,arguments);}function Dw(_x45,_x46){return _Dw.apply(this,arguments);}function _Dw(){_Dw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee48(e,t){return _regenerator().w(function(_context48){while(1)switch(_context48.n){case 0:return _context48.a(2,_ow(e,HTMLCanvasElement)?ww(e):_ow(e,HTMLVideoElement)?Tw(e,t):_ow(e,HTMLIFrameElement)?Ew(e,t):e.cloneNode(kw(e)));}},_callee48);}));return _Dw.apply(this,arguments);}var Ow=function Ow(e){return e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";},kw=function kw(e){return e.tagName!=null&&e.tagName.toUpperCase()==="SVG";};function Aw(_x47,_x48,_x49){return _Aw.apply(this,arguments);}function _Aw(){_Aw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee49(e,t,n){var r,i,a,_t184;return _regenerator().w(function(_context49){while(1)switch(_context49.n){case 0:if(!kw(t)){_context49.n=1;break;}return _context49.a(2,t);case 1:a=[];a=Ow(e)&&e.assignedNodes?KC(e.assignedNodes()):_ow(e,HTMLIFrameElement)&&(r=e.contentDocument)!=null&&r.body?KC(e.contentDocument.body.childNodes):KC(((i=e.shadowRoot)==null?e:i).childNodes);_t184=a.length===0||_ow(e,HTMLVideoElement);if(_t184){_context49.n=2;break;}_context49.n=2;return a.reduce(function(e,r){return e.then(function(){return Iw(r,n);}).then(function(e){e&&t.appendChild(e);});},Promise.resolve());case 2:return _context49.a(2,t);}},_callee49);}));return _Aw.apply(this,arguments);}function jw(e,t,n){var r=t.style;if(!r)return;var i=window.getComputedStyle(e);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):JC(n).forEach(function(n){var a=i.getPropertyValue(n);n==="font-size"&&a.endsWith("px")&&(a="".concat(Math.floor(parseFloat(a.substring(0,a.length-2)))-.1,"px")),_ow(e,HTMLIFrameElement)&&n==="display"&&a==="inline"&&(a="block"),n==="d"&&t.getAttribute("d")&&(a="path(".concat(t.getAttribute("d"),")")),r.setProperty(n,a,i.getPropertyPriority(n));});}function Mw(e,t){_ow(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),_ow(e,HTMLInputElement)&&t.setAttribute("value",e.value);}function Nw(e,t){if(_ow(e,HTMLSelectElement)){var _n97=t,_r86=Array.from(_n97.children).find(function(t){return e.value===t.getAttribute("value");});_r86&&_r86.setAttribute("selected","");}}function Pw(e,t,n){return _ow(t,Element)&&(jw(e,t,n),dw(e,t,n),Mw(e,t),Nw(e,t)),t;}function Fw(_x50,_x51){return _Fw.apply(this,arguments);}function _Fw(){_Fw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee50(e,t){var n,r,_i70,_a20,_n109,_i71,i,_t185,_n110,_r95,_e201,_t186;return _regenerator().w(function(_context50){while(1)switch(_context50.n){case 0:n=e.querySelectorAll?e.querySelectorAll("use"):[];if(!(n.length===0)){_context50.n=1;break;}return _context50.a(2,e);case 1:r={};_i70=0;case 2:if(!(_i70<n.length)){_context50.n=5;break;}_a20=n[_i70].getAttribute("xlink:href");if(!_a20){_context50.n=4;break;}_n109=e.querySelector(_a20),_i71=document.querySelector(_a20);_t186=!_n109&&_i71&&!r[_a20];if(!_t186){_context50.n=4;break;}_context50.n=3;return Iw(_i71,t,!0);case 3:r[_a20]=_context50.v;case 4:_i70++;_context50.n=2;break;case 5:i=Object.values(r);if(i.length){_t185="http://www.w3.org/1999/xhtml",_n110=document.createElementNS(_t185,"svg");_n110.setAttribute("xmlns",_t185),_n110.style.position="absolute",_n110.style.width="0",_n110.style.height="0",_n110.style.overflow="hidden",_n110.style.display="none";_r95=document.createElementNS(_t185,"defs");_n110.appendChild(_r95);for(_e201=0;_e201<i.length;_e201++)_r95.appendChild(i[_e201]);e.appendChild(_n110);}return _context50.a(2,e);}},_callee50);}));return _Fw.apply(this,arguments);}function Iw(_x52,_x53,_x54){return _Iw.apply(this,arguments);}//#endregion
469
469
  //#region node_modules/html-to-image/es/embed-resources.js
470
- function _jw(){_jw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee51(e,t,n){return _regenerator().w(function(_context51){while(1)switch(_context51.n){case 0:return _context51.a(2,!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(function(e){return Sw(e,t);}).then(function(n){return Tw(e,n,t);}).then(function(n){return kw(e,n,t);}).then(function(e){return Aw(e,t);}));}},_callee51);}));return _jw.apply(this,arguments);}var Mw=/url\((['"]?)([^'"]+?)\1\)/g,Nw=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Pw=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Fw(e){var t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp("(url\\(['\"]?)(".concat(t,")(['\"]?\\))"),"g");}function Iw(e){var t=[];return e.replace(Mw,function(e,n,r){return t.push(r),e;}),t.filter(function(e){return!pw(e);});}function Lw(_x55,_x56,_x57,_x58,_x59){return _Lw.apply(this,arguments);}function _Lw(){_Lw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee52(e,t,n,r,i){var _a21,o,s,_t187,_t188,_t189;return _regenerator().w(function(_context52){while(1)switch(_context52.p=_context52.n){case 0:_context52.p=0;_a21=n?zC(t,n):t,o=dw(t);if(!i){_context52.n=2;break;}_t188=mw;_context52.n=1;return i(_a21);case 1:_t187=_t188(_context52.v,o);_context52.n=4;break;case 2:_context52.n=3;return vw(_a21,o,r);case 3:_t187=_context52.v;case 4:s=_t187;return _context52.a(2,e.replace(Fw(t),"$1".concat(s,"$3")));case 5:_context52.p=5;_t189=_context52.v;return _context52.a(2,e);}},_callee52,null,[[0,5]]);}));return _Lw.apply(this,arguments);}function Rw(e,_ref45){var t=_ref45.preferredFontFormat;return t?e.replace(Pw,function(e){for(;;){var _ref46=Nw.exec(e)||[],_ref47=_slicedToArray(_ref46,3),_n98=_ref47[0],_r87=_ref47[2];if(!_r87)return"";if(_r87===t)return"src: ".concat(_n98,";");}}):e;}function zw(e){return e.search(Mw)!==-1;}function Bw(_x60,_x61,_x62){return _Bw.apply(this,arguments);}//#endregion
470
+ function _Iw(){_Iw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee51(e,t,n){return _regenerator().w(function(_context51){while(1)switch(_context51.n){case 0:return _context51.a(2,!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(function(e){return Dw(e,t);}).then(function(n){return Aw(e,n,t);}).then(function(n){return Pw(e,n,t);}).then(function(e){return Fw(e,t);}));}},_callee51);}));return _Iw.apply(this,arguments);}var Lw=/url\((['"]?)([^'"]+?)\1\)/g,Rw=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,zw=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Bw(e){var t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp("(url\\(['\"]?)(".concat(t,")(['\"]?\\))"),"g");}function Vw(e){var t=[];return e.replace(Lw,function(e,n,r){return t.push(r),e;}),t.filter(function(e){return!vw(e);});}function Hw(_x55,_x56,_x57,_x58,_x59){return _Hw.apply(this,arguments);}function _Hw(){_Hw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee52(e,t,n,r,i){var _a21,o,s,_t187,_t188,_t189;return _regenerator().w(function(_context52){while(1)switch(_context52.p=_context52.n){case 0:_context52.p=0;_a21=n?WC(t,n):t,o=gw(t);if(!i){_context52.n=2;break;}_t188=yw;_context52.n=1;return i(_a21);case 1:_t187=_t188(_context52.v,o);_context52.n=4;break;case 2:_context52.n=3;return Cw(_a21,o,r);case 3:_t187=_context52.v;case 4:s=_t187;return _context52.a(2,e.replace(Bw(t),"$1".concat(s,"$3")));case 5:_context52.p=5;_t189=_context52.v;return _context52.a(2,e);}},_callee52,null,[[0,5]]);}));return _Hw.apply(this,arguments);}function Uw(e,_ref45){var t=_ref45.preferredFontFormat;return t?e.replace(zw,function(e){for(;;){var _ref46=Rw.exec(e)||[],_ref47=_slicedToArray(_ref46,3),_n98=_ref47[0],_r87=_ref47[2];if(!_r87)return"";if(_r87===t)return"src: ".concat(_n98,";");}}):e;}function Ww(e){return e.search(Lw)!==-1;}function Gw(_x60,_x61,_x62){return _Gw.apply(this,arguments);}//#endregion
471
471
  //#region node_modules/html-to-image/es/embed-images.js
472
- function _Bw(){_Bw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee53(e,t,n){var r;return _regenerator().w(function(_context53){while(1)switch(_context53.n){case 0:if(zw(e)){_context53.n=1;break;}return _context53.a(2,e);case 1:r=Rw(e,n);return _context53.a(2,Iw(r).reduce(function(e,r){return e.then(function(e){return Lw(e,r,t,n);});},Promise.resolve(r)));}},_callee53);}));return _Bw.apply(this,arguments);}function Vw(_x63,_x64,_x65){return _Vw.apply(this,arguments);}function _Vw(){_Vw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee54(e,t,n){var r,i,_r96;return _regenerator().w(function(_context54){while(1)switch(_context54.n){case 0:i=(r=t.style)==null?void 0:r.getPropertyValue(e);if(!i){_context54.n=2;break;}_context54.n=1;return Bw(i,null,n);case 1:_r96=_context54.v;return _context54.a(2,(t.style.setProperty(e,_r96,t.style.getPropertyPriority(e)),!0));case 2:return _context54.a(2,!1);}},_callee54);}));return _Vw.apply(this,arguments);}function Hw(_x66,_x67){return _Hw.apply(this,arguments);}function _Hw(){_Hw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee55(e,t){var _t190,_t191,_t192,_t193;return _regenerator().w(function(_context55){while(1)switch(_context55.n){case 0:_context55.n=1;return Vw("background",e,t);case 1:_t190=_context55.v;if(_t190){_context55.n=2;break;}_context55.n=2;return Vw("background-image",e,t);case 2:_context55.n=3;return Vw("mask",e,t);case 3:_t192=_context55.v;if(_t192){_context55.n=5;break;}_context55.n=4;return Vw("-webkit-mask",e,t);case 4:_t192=_context55.v;case 5:_t191=_t192;if(_t191){_context55.n=7;break;}_context55.n=6;return Vw("mask-image",e,t);case 6:_t191=_context55.v;case 7:_t193=_t191;if(_t193){_context55.n=8;break;}_context55.n=8;return Vw("-webkit-mask-image",e,t);case 8:return _context55.a(2);}},_callee55);}));return _Hw.apply(this,arguments);}function Uw(_x68,_x69){return _Uw.apply(this,arguments);}function _Uw(){_Uw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee56(e,t){var n,r,i;return _regenerator().w(function(_context56){while(1)switch(_context56.n){case 0:n=_tw(e,HTMLImageElement);if(!(!(n&&!pw(e.src))&&!(_tw(e,SVGImageElement)&&!pw(e.href.baseVal)))){_context56.n=1;break;}return _context56.a(2);case 1:r=n?e.src:e.href.baseVal;_context56.n=2;return vw(r,dw(r),t);case 2:i=_context56.v;_context56.n=3;return new Promise(function(r,a){e.onload=r,e.onerror=t.onImageErrorHandler?function(){try{r(t.onImageErrorHandler.apply(t,arguments));}catch(e){a(e);}}:a;var o=e;o.decode&&(o.decode=r),o.loading==="lazy"&&(o.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i;});case 3:return _context56.a(2);}},_callee56);}));return _Uw.apply(this,arguments);}function Ww(_x70,_x71){return _Ww.apply(this,arguments);}function _Ww(){_Ww=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee57(e,t){var n;return _regenerator().w(function(_context57){while(1)switch(_context57.n){case 0:n=VC(e.childNodes).map(function(e){return Gw(e,t);});_context57.n=1;return Promise.all(n).then(function(){return e;});case 1:return _context57.a(2);}},_callee57);}));return _Ww.apply(this,arguments);}function Gw(_x72,_x73){return _Gw.apply(this,arguments);}//#endregion
472
+ function _Gw(){_Gw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee53(e,t,n){var r;return _regenerator().w(function(_context53){while(1)switch(_context53.n){case 0:if(Ww(e)){_context53.n=1;break;}return _context53.a(2,e);case 1:r=Uw(e,n);return _context53.a(2,Vw(r).reduce(function(e,r){return e.then(function(e){return Hw(e,r,t,n);});},Promise.resolve(r)));}},_callee53);}));return _Gw.apply(this,arguments);}function Kw(_x63,_x64,_x65){return _Kw.apply(this,arguments);}function _Kw(){_Kw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee54(e,t,n){var r,i,_r96;return _regenerator().w(function(_context54){while(1)switch(_context54.n){case 0:i=(r=t.style)==null?void 0:r.getPropertyValue(e);if(!i){_context54.n=2;break;}_context54.n=1;return Gw(i,null,n);case 1:_r96=_context54.v;return _context54.a(2,(t.style.setProperty(e,_r96,t.style.getPropertyPriority(e)),!0));case 2:return _context54.a(2,!1);}},_callee54);}));return _Kw.apply(this,arguments);}function qw(_x66,_x67){return _qw.apply(this,arguments);}function _qw(){_qw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee55(e,t){var _t190,_t191,_t192,_t193;return _regenerator().w(function(_context55){while(1)switch(_context55.n){case 0:_context55.n=1;return Kw("background",e,t);case 1:_t190=_context55.v;if(_t190){_context55.n=2;break;}_context55.n=2;return Kw("background-image",e,t);case 2:_context55.n=3;return Kw("mask",e,t);case 3:_t192=_context55.v;if(_t192){_context55.n=5;break;}_context55.n=4;return Kw("-webkit-mask",e,t);case 4:_t192=_context55.v;case 5:_t191=_t192;if(_t191){_context55.n=7;break;}_context55.n=6;return Kw("mask-image",e,t);case 6:_t191=_context55.v;case 7:_t193=_t191;if(_t193){_context55.n=8;break;}_context55.n=8;return Kw("-webkit-mask-image",e,t);case 8:return _context55.a(2);}},_callee55);}));return _qw.apply(this,arguments);}function Jw(_x68,_x69){return _Jw.apply(this,arguments);}function _Jw(){_Jw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee56(e,t){var n,r,i;return _regenerator().w(function(_context56){while(1)switch(_context56.n){case 0:n=_ow(e,HTMLImageElement);if(!(!(n&&!vw(e.src))&&!(_ow(e,SVGImageElement)&&!vw(e.href.baseVal)))){_context56.n=1;break;}return _context56.a(2);case 1:r=n?e.src:e.href.baseVal;_context56.n=2;return Cw(r,gw(r),t);case 2:i=_context56.v;_context56.n=3;return new Promise(function(r,a){e.onload=r,e.onerror=t.onImageErrorHandler?function(){try{r(t.onImageErrorHandler.apply(t,arguments));}catch(e){a(e);}}:a;var o=e;o.decode&&(o.decode=r),o.loading==="lazy"&&(o.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i;});case 3:return _context56.a(2);}},_callee56);}));return _Jw.apply(this,arguments);}function Yw(_x70,_x71){return _Yw.apply(this,arguments);}function _Yw(){_Yw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee57(e,t){var n;return _regenerator().w(function(_context57){while(1)switch(_context57.n){case 0:n=KC(e.childNodes).map(function(e){return Xw(e,t);});_context57.n=1;return Promise.all(n).then(function(){return e;});case 1:return _context57.a(2);}},_callee57);}));return _Yw.apply(this,arguments);}function Xw(_x72,_x73){return _Xw.apply(this,arguments);}//#endregion
473
473
  //#region node_modules/html-to-image/es/apply-style.js
474
- function _Gw(){_Gw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee58(e,t){var _t194;return _regenerator().w(function(_context58){while(1)switch(_context58.n){case 0:_t194=_tw(e,Element);if(!_t194){_context58.n=3;break;}_context58.n=1;return Hw(e,t);case 1:_context58.n=2;return Uw(e,t);case 2:_context58.n=3;return Ww(e,t);case 3:return _context58.a(2);}},_callee58);}));return _Gw.apply(this,arguments);}function Kw(e,t){var n=e.style;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width="".concat(t.width,"px")),t.height&&(n.height="".concat(t.height,"px"));var r=t.style;return r!=null&&Object.keys(r).forEach(function(e){n[e]=r[e];}),e;}//#endregion
474
+ function _Xw(){_Xw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee58(e,t){var _t194;return _regenerator().w(function(_context58){while(1)switch(_context58.n){case 0:_t194=_ow(e,Element);if(!_t194){_context58.n=3;break;}_context58.n=1;return qw(e,t);case 1:_context58.n=2;return Jw(e,t);case 2:_context58.n=3;return Yw(e,t);case 3:return _context58.a(2);}},_callee58);}));return _Xw.apply(this,arguments);}function Zw(e,t){var n=e.style;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width="".concat(t.width,"px")),t.height&&(n.height="".concat(t.height,"px"));var r=t.style;return r!=null&&Object.keys(r).forEach(function(e){n[e]=r[e];}),e;}//#endregion
475
475
  //#region node_modules/html-to-image/es/embed-webfonts.js
476
- var qw={};function Jw(_x74){return _Jw.apply(this,arguments);}function _Jw(){_Jw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee59(e){var t,_t195,_t196,_t197;return _regenerator().w(function(_context59){while(1)switch(_context59.n){case 0:t=qw[e];if(!(t==null)){_context59.n=3;break;}_t196=e;_context59.n=1;return fetch(e);case 1:_context59.n=2;return _context59.v.text();case 2:_t197=_context59.v;t={url:_t196,cssText:_t197};qw[e]=t;_t195=t;_context59.n=4;break;case 3:_t195=t;case 4:return _context59.a(2,_t195);}},_callee59);}));return _Jw.apply(this,arguments);}function Yw(_x75,_x76){return _Yw.apply(this,arguments);}function _Yw(){_Yw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee61(e,t){var n,r,i;return _regenerator().w(function(_context61){while(1)switch(_context61.n){case 0:n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(/*#__PURE__*/function(){var _ref56=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee60(i){var a;return _regenerator().w(function(_context60){while(1)switch(_context60.n){case 0:a=i.replace(r,"$1");return _context60.a(2,(a.startsWith("https://")||(a=new URL(a,e.url).href),hw(a,t.fetchRequestInit,function(_ref57){var e=_ref57.result;return n=n.replace(i,"url(".concat(e,")")),[i,e];})));}},_callee60);}));return function(_x99){return _ref56.apply(this,arguments);};}());return _context61.a(2,Promise.all(i).then(function(){return n;}));}},_callee61);}));return _Yw.apply(this,arguments);}function Xw(e){if(e==null)return[];var t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=/* @__PURE__ */RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){var _e191=r.exec(n);if(_e191===null)break;t.push(_e191[0]);}n=n.replace(r,"");var i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a=/* @__PURE__ */RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){var _e192=i.exec(n);if(_e192===null){if(_e192=a.exec(n),_e192===null)break;i.lastIndex=a.lastIndex;}else a.lastIndex=i.lastIndex;t.push(_e192[0]);}return t;}function Zw(_x77,_x78){return _Zw.apply(this,arguments);}function _Zw(){_Zw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee62(e,t){var n,r;return _regenerator().w(function(_context62){while(1)switch(_context62.n){case 0:n=[],r=[];return _context62.a(2,(e.forEach(function(n){if("cssRules"in n)try{VC(n.cssRules||[]).forEach(function(e,i){if(e.type===CSSRule.IMPORT_RULE){var _a22=i+1,o=e.href,s=Jw(o).then(function(e){return Yw(e,t);}).then(function(e){return Xw(e).forEach(function(e){try{n.insertRule(e,e.startsWith("@import")?_a22+=1:n.cssRules.length);}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t});}});}).catch(function(e){console.error("Error loading remote css",e.toString());});r.push(s);}});}catch(i){var _a23=e.find(function(e){return e.href==null;})||document.styleSheets[0];n.href!=null&&r.push(Jw(n.href).then(function(e){return Yw(e,t);}).then(function(e){return Xw(e).forEach(function(e){_a23.insertRule(e,_a23.cssRules.length);});}).catch(function(e){console.error("Error loading remote stylesheet",e);})),console.error("Error inlining remote css file",i);}}),Promise.all(r).then(function(){return e.forEach(function(e){if("cssRules"in e)try{VC(e.cssRules||[]).forEach(function(e){n.push(e);});}catch(t){console.error("Error while reading CSS rules from ".concat(e.href),t);}}),n;})));}},_callee62);}));return _Zw.apply(this,arguments);}function Qw(e){return e.filter(function(e){return e.type===CSSRule.FONT_FACE_RULE;}).filter(function(e){return zw(e.style.getPropertyValue("src"));});}function $w(_x79,_x80){return _$w.apply(this,arguments);}function _$w(){_$w=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee63(e,t){var _t198;return _regenerator().w(function(_context63){while(1)switch(_context63.n){case 0:if(!(e.ownerDocument==null)){_context63.n=1;break;}throw Error("Provided element is not within a Document");case 1:_t198=Qw;_context63.n=2;return Zw(VC(e.ownerDocument.styleSheets),t);case 2:return _context63.a(2,_t198(_context63.v));}},_callee63);}));return _$w.apply(this,arguments);}function eT(e){return e.trim().replace(/["']/g,"");}function tT(e){var t=/* @__PURE__ */new Set();function n(e){(e.style.fontFamily||getComputedStyle(e).fontFamily).split(",").forEach(function(e){t.add(eT(e));}),Array.from(e.children).forEach(function(e){e instanceof HTMLElement&&n(e);});}return n(e),t;}function nT(_x81,_x82){return _nT.apply(this,arguments);}function _nT(){_nT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee64(e,t){var n,r;return _regenerator().w(function(_context64){while(1)switch(_context64.n){case 0:_context64.n=1;return $w(e,t);case 1:n=_context64.v;r=tT(e);_context64.n=2;return Promise.all(n.filter(function(e){return r.has(eT(e.style.fontFamily));}).map(function(e){var n=e.parentStyleSheet?e.parentStyleSheet.href:null;return Bw(e.cssText,n,t);}));case 2:return _context64.a(2,_context64.v.join("\n"));}},_callee64);}));return _nT.apply(this,arguments);}function rT(_x83,_x84){return _rT.apply(this,arguments);}//#endregion
476
+ var Qw={};function $w(_x74){return _$w.apply(this,arguments);}function _$w(){_$w=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee59(e){var t,_t195,_t196,_t197;return _regenerator().w(function(_context59){while(1)switch(_context59.n){case 0:t=Qw[e];if(!(t==null)){_context59.n=3;break;}_t196=e;_context59.n=1;return fetch(e);case 1:_context59.n=2;return _context59.v.text();case 2:_t197=_context59.v;t={url:_t196,cssText:_t197};Qw[e]=t;_t195=t;_context59.n=4;break;case 3:_t195=t;case 4:return _context59.a(2,_t195);}},_callee59);}));return _$w.apply(this,arguments);}function eT(_x75,_x76){return _eT.apply(this,arguments);}function _eT(){_eT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee61(e,t){var n,r,i;return _regenerator().w(function(_context61){while(1)switch(_context61.n){case 0:n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(/*#__PURE__*/function(){var _ref56=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee60(i){var a;return _regenerator().w(function(_context60){while(1)switch(_context60.n){case 0:a=i.replace(r,"$1");return _context60.a(2,(a.startsWith("https://")||(a=new URL(a,e.url).href),bw(a,t.fetchRequestInit,function(_ref57){var e=_ref57.result;return n=n.replace(i,"url(".concat(e,")")),[i,e];})));}},_callee60);}));return function(_x99){return _ref56.apply(this,arguments);};}());return _context61.a(2,Promise.all(i).then(function(){return n;}));}},_callee61);}));return _eT.apply(this,arguments);}function tT(e){if(e==null)return[];var t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=/* @__PURE__ */RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){var _e191=r.exec(n);if(_e191===null)break;t.push(_e191[0]);}n=n.replace(r,"");var i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a=/* @__PURE__ */RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){var _e192=i.exec(n);if(_e192===null){if(_e192=a.exec(n),_e192===null)break;i.lastIndex=a.lastIndex;}else a.lastIndex=i.lastIndex;t.push(_e192[0]);}return t;}function nT(_x77,_x78){return _nT.apply(this,arguments);}function _nT(){_nT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee62(e,t){var n,r;return _regenerator().w(function(_context62){while(1)switch(_context62.n){case 0:n=[],r=[];return _context62.a(2,(e.forEach(function(n){if("cssRules"in n)try{KC(n.cssRules||[]).forEach(function(e,i){if(e.type===CSSRule.IMPORT_RULE){var _a22=i+1,o=e.href,s=$w(o).then(function(e){return eT(e,t);}).then(function(e){return tT(e).forEach(function(e){try{n.insertRule(e,e.startsWith("@import")?_a22+=1:n.cssRules.length);}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t});}});}).catch(function(e){console.error("Error loading remote css",e.toString());});r.push(s);}});}catch(i){var _a23=e.find(function(e){return e.href==null;})||document.styleSheets[0];n.href!=null&&r.push($w(n.href).then(function(e){return eT(e,t);}).then(function(e){return tT(e).forEach(function(e){_a23.insertRule(e,_a23.cssRules.length);});}).catch(function(e){console.error("Error loading remote stylesheet",e);})),console.error("Error inlining remote css file",i);}}),Promise.all(r).then(function(){return e.forEach(function(e){if("cssRules"in e)try{KC(e.cssRules||[]).forEach(function(e){n.push(e);});}catch(t){console.error("Error while reading CSS rules from ".concat(e.href),t);}}),n;})));}},_callee62);}));return _nT.apply(this,arguments);}function rT(e){return e.filter(function(e){return e.type===CSSRule.FONT_FACE_RULE;}).filter(function(e){return Ww(e.style.getPropertyValue("src"));});}function iT(_x79,_x80){return _iT.apply(this,arguments);}function _iT(){_iT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee63(e,t){var _t198;return _regenerator().w(function(_context63){while(1)switch(_context63.n){case 0:if(!(e.ownerDocument==null)){_context63.n=1;break;}throw Error("Provided element is not within a Document");case 1:_t198=rT;_context63.n=2;return nT(KC(e.ownerDocument.styleSheets),t);case 2:return _context63.a(2,_t198(_context63.v));}},_callee63);}));return _iT.apply(this,arguments);}function aT(e){return e.trim().replace(/["']/g,"");}function oT(e){var t=/* @__PURE__ */new Set();function n(e){(e.style.fontFamily||getComputedStyle(e).fontFamily).split(",").forEach(function(e){t.add(aT(e));}),Array.from(e.children).forEach(function(e){e instanceof HTMLElement&&n(e);});}return n(e),t;}function sT(_x81,_x82){return _sT.apply(this,arguments);}function _sT(){_sT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee64(e,t){var n,r;return _regenerator().w(function(_context64){while(1)switch(_context64.n){case 0:_context64.n=1;return iT(e,t);case 1:n=_context64.v;r=oT(e);_context64.n=2;return Promise.all(n.filter(function(e){return r.has(aT(e.style.fontFamily));}).map(function(e){var n=e.parentStyleSheet?e.parentStyleSheet.href:null;return Gw(e.cssText,n,t);}));case 2:return _context64.a(2,_context64.v.join("\n"));}},_callee64);}));return _sT.apply(this,arguments);}function cT(_x83,_x84){return _cT.apply(this,arguments);}//#endregion
477
477
  //#region node_modules/html-to-image/es/index.js
478
- function _rT(){_rT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee65(e,t){var n,_t199,_r97,_t200,_t201;return _regenerator().w(function(_context65){while(1)switch(_context65.n){case 0:if(!(t.fontEmbedCSS==null)){_context65.n=4;break;}if(!t.skipFonts){_context65.n=1;break;}_t201=null;_context65.n=3;break;case 1:_context65.n=2;return nT(e,t);case 2:_t201=_context65.v;case 3:_t200=_t201;_context65.n=5;break;case 4:_t200=t.fontEmbedCSS;case 5:n=_t200;if(n){_t199=document.createElement("style"),_r97=document.createTextNode(n);_t199.appendChild(_r97),e.firstChild?e.insertBefore(_t199,e.firstChild):e.appendChild(_t199);}case 6:return _context65.a(2);}},_callee65);}));return _rT.apply(this,arguments);}function iT(_x85){return _iT.apply(this,arguments);}function _iT(){_iT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee66(e){var t,_qC,n,r,i,_args65=arguments;return _regenerator().w(function(_context66){while(1)switch(_context66.n){case 0:t=_args65.length>1&&_args65[1]!==undefined?_args65[1]:{};_qC=qC(e,t);n=_qC.width;r=_qC.height;_context66.n=1;return jw(e,t,!0);case 1:i=_context66.v;_context66.n=2;return rT(i,t);case 2:_context66.n=3;return Gw(i,t);case 3:Kw(i,t);_context66.n=4;return ew(i,n,r);case 4:return _context66.a(2,_context66.v);}},_callee66);}));return _iT.apply(this,arguments);}function aT(_x86){return _aT.apply(this,arguments);}function _aT(){_aT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee67(e){var t,_qC2,n,r,i,a,o,s,c,l,_args66=arguments,_t202;return _regenerator().w(function(_context67){while(1)switch(_context67.n){case 0:t=_args66.length>1&&_args66[1]!==undefined?_args66[1]:{};_qC2=qC(e,t);n=_qC2.width;r=_qC2.height;_t202=QC;_context67.n=1;return iT(e,t);case 1:_context67.n=2;return _t202(_context67.v);case 2:i=_context67.v;a=document.createElement("canvas");o=a.getContext("2d");s=t.pixelRatio||JC();c=t.canvasWidth||n;l=t.canvasHeight||r;return _context67.a(2,(a.width=c*s,a.height=l*s,t.skipAutoScale||XC(a),a.style.width="".concat(c),a.style.height="".concat(l),t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(i,0,0,a.width,a.height),a));}},_callee67);}));return _aT.apply(this,arguments);}function oT(_x87){return _oT.apply(this,arguments);}//#endregion
478
+ function _cT(){_cT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee65(e,t){var n,_t199,_r97,_t200,_t201;return _regenerator().w(function(_context65){while(1)switch(_context65.n){case 0:if(!(t.fontEmbedCSS==null)){_context65.n=4;break;}if(!t.skipFonts){_context65.n=1;break;}_t201=null;_context65.n=3;break;case 1:_context65.n=2;return sT(e,t);case 2:_t201=_context65.v;case 3:_t200=_t201;_context65.n=5;break;case 4:_t200=t.fontEmbedCSS;case 5:n=_t200;if(n){_t199=document.createElement("style"),_r97=document.createTextNode(n);_t199.appendChild(_r97),e.firstChild?e.insertBefore(_t199,e.firstChild):e.appendChild(_t199);}case 6:return _context65.a(2);}},_callee65);}));return _cT.apply(this,arguments);}function lT(_x85){return _lT.apply(this,arguments);}function _lT(){_lT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee66(e){var t,_QC,n,r,i,_args65=arguments;return _regenerator().w(function(_context66){while(1)switch(_context66.n){case 0:t=_args65.length>1&&_args65[1]!==undefined?_args65[1]:{};_QC=QC(e,t);n=_QC.width;r=_QC.height;_context66.n=1;return Iw(e,t,!0);case 1:i=_context66.v;_context66.n=2;return cT(i,t);case 2:_context66.n=3;return Xw(i,t);case 3:Zw(i,t);_context66.n=4;return aw(i,n,r);case 4:return _context66.a(2,_context66.v);}},_callee66);}));return _lT.apply(this,arguments);}function uT(_x86){return _uT.apply(this,arguments);}function _uT(){_uT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee67(e){var t,_QC2,n,r,i,a,o,s,c,l,_args66=arguments,_t202;return _regenerator().w(function(_context67){while(1)switch(_context67.n){case 0:t=_args66.length>1&&_args66[1]!==undefined?_args66[1]:{};_QC2=QC(e,t);n=_QC2.width;r=_QC2.height;_t202=rw;_context67.n=1;return lT(e,t);case 1:_context67.n=2;return _t202(_context67.v);case 2:i=_context67.v;a=document.createElement("canvas");o=a.getContext("2d");s=t.pixelRatio||$C();c=t.canvasWidth||n;l=t.canvasHeight||r;return _context67.a(2,(a.width=c*s,a.height=l*s,t.skipAutoScale||tw(a),a.style.width="".concat(c),a.style.height="".concat(l),t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(i,0,0,a.width,a.height),a));}},_callee67);}));return _uT.apply(this,arguments);}function dT(_x87){return _dT.apply(this,arguments);}//#endregion
479
479
  //#region src/features/zena-chatbot/components/ScreenshotCapture.svelte
480
- function _oT(){_oT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee68(e){var t,_args67=arguments,_t203;return _regenerator().w(function(_context68){while(1)switch(_context68.n){case 0:t=_args67.length>1&&_args67[1]!==undefined?_args67[1]:{};_t203=ZC;_context68.n=1;return aT(e,t);case 1:_context68.n=2;return _t203(_context68.v);case 2:return _context68.a(2,_context68.v);}},_callee68);}));return _oT.apply(this,arguments);}var sT=/* @__PURE__ */G("<div data-testid=\"screenshot-error\" class=\"flex flex-col gap-2\"><p class=\"text-xs text-red-400\"> </p> <div class=\"flex gap-2\"><button data-testid=\"screenshot-retry\" class=\"px-3 py-1.5 text-xs font-medium rounded-full bg-[#1d293d] text-white\n border border-white/20 hover:bg-[#2a3a52]\n disabled:opacity-50 disabled:cursor-not-allowed transition-colors\">Retry</button> <button data-testid=\"screenshot-skip\" class=\"px-3 py-1.5 text-xs font-medium rounded-full bg-[#1d293d] text-white\n border border-white/20 hover:bg-[#2a3a52]\n disabled:opacity-50 disabled:cursor-not-allowed transition-colors\">Skip</button></div></div>"),cT=/* @__PURE__ */G("<span class=\"inline-block w-3 h-3 border-2 border-white/30 border-t-white/70 rounded-full animate-spin\"></span>"),lT=/* @__PURE__ */G("<span class=\"text-green-400\"></span>"),uT=/* @__PURE__ */G("<div data-testid=\"screenshot-status\" class=\"flex items-center gap-2 text-xs text-white/70\" aria-live=\"polite\"><!> <span> </span></div>"),dT=/* @__PURE__ */G("<div data-testid=\"screenshot-capture\" class=\"mt-4 max-md:mt-3\"><!></div>");function fT(e,t){ct(t,!0);var n=J(t,"disabled",3,!1),r=Wx(),i=Kx(),a=/* @__PURE__ */L("pending"),o=/* @__PURE__ */L(null),s=!1,c=null,l={pending:"Preparing screenshot...",capturing:"Capturing screenshot...",uploading:"Uploading screenshot...",done:"Screenshot captured",error:"Screenshot capture failed"};Uo(function(){return u(),function(){s=!0,c&&clearTimeout(c);};});function u(){return _u6.apply(this,arguments);}function _u6(){_u6=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee17(){var e,n,l,_r88,_i69,_u7,_f6,_t146,_t147;return _regenerator().w(function(_context17){while(1)switch(_context17.p=_context17.n){case 0:e=r(),n=i();if(!(!e||!n)){_context17.n=1;break;}R(a,"error"),R(o,"Service unavailable. Please try again.");return _context17.a(2);case 1:l=document.querySelector("zena-chatbot");_context17.p=2;R(a,"pending");R(o,null);_context17.n=3;return new Promise(function(e){c=setTimeout(e,2500);});case 3:c=null;if(!s){_context17.n=4;break;}return _context17.a(2);case 4:R(a,"capturing"),d(l,!1);_context17.n=5;return oT(document.documentElement,{pixelRatio:1});case 5:_r88=_context17.v;if(!(d(l,!0),s)){_context17.n=6;break;}return _context17.a(2);case 6:if(_r88){_context17.n=7;break;}throw Error("Failed to capture screenshot");case 7:R(a,"uploading");_i69="screenshot_".concat((0,Ox.default)().format("YYYY-MM-DDTHH-mm-ss"),".png");_u7=new File([_r88],_i69,{type:"image/png"});_context17.n=8;return e.presignUrl(n,_i69,"image/png",_u7.size);case 8:_f6=_context17.v;_t146=s;if(_t146){_context17.n=10;break;}_context17.n=9;return dC(_f6.uploadUrl,_u7);case 9:_t146=s;case 10:if(!_t146){_context17.n=11;break;}return _context17.a(2);case 11:R(a,"done"),t.onScreenshotFlow([_f6.attachmentId]);_context17.n=14;break;case 12:_context17.p=12;_t147=_context17.v;if(!(d(l,!0),s)){_context17.n=13;break;}return _context17.a(2);case 13:R(a,"error"),R(o,_t147.message||"An unexpected error occurred.",!0),Cx(_t147,{context:{extra:{message:"Screenshot capture failed"}}});case 14:return _context17.a(2);}},_callee17,null,[[2,12]]);}));return _u6.apply(this,arguments);}function d(e,t){e&&(e.style.visibility=t?"":"hidden");}function f(){u();}function p(){t.onScreenshotFlow([]);}var m=dT(),h=z(m),g=function g(e){var t=sT(),r=z(t),i=z(r,!0);A(r);var a=B(r,2),s=z(a),c=B(s,2);A(a),A(t),V(function(){ga(i,W(o)||l.error),s.disabled=n(),c.disabled=n();}),ra("click",s,f),ra("click",c,p),K(e,t);},_=function _(e){var t=uT(),n=z(t),r=function r(e){K(e,cT());},i=function i(e){var t=lT();t.textContent="✓",K(e,t);};q(n,function(e){W(a)==="done"?e(i,-1):e(r);});var o=B(n,2),s=z(o,!0);A(o),A(t),V(function(){return ga(s,l[W(a)]);}),K(e,t);};q(h,function(e){W(a)==="error"?e(g):e(_,-1);}),A(m),K(e,m),lt();}ia(["click"]);//#endregion
480
+ function _dT(){_dT=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee68(e){var t,_args67=arguments,_t203;return _regenerator().w(function(_context68){while(1)switch(_context68.n){case 0:t=_args67.length>1&&_args67[1]!==undefined?_args67[1]:{};_t203=nw;_context68.n=1;return uT(e,t);case 1:_context68.n=2;return _t203(_context68.v);case 2:return _context68.a(2,_context68.v);}},_callee68);}));return _dT.apply(this,arguments);}var fT=/* @__PURE__ */G("<div data-testid=\"screenshot-error\" class=\"flex flex-col gap-2\"><p class=\"text-xs text-red-400\"> </p> <div class=\"flex gap-2\"><button data-testid=\"screenshot-retry\" class=\"px-3 py-1.5 text-xs font-medium rounded-full bg-[#1d293d] text-white\n border border-white/20 hover:bg-[#2a3a52]\n disabled:opacity-50 disabled:cursor-not-allowed transition-colors\">Retry</button> <button data-testid=\"screenshot-skip\" class=\"px-3 py-1.5 text-xs font-medium rounded-full bg-[#1d293d] text-white\n border border-white/20 hover:bg-[#2a3a52]\n disabled:opacity-50 disabled:cursor-not-allowed transition-colors\">Skip</button></div></div>"),pT=/* @__PURE__ */G("<span class=\"inline-block w-3 h-3 border-2 border-white/30 border-t-white/70 rounded-full animate-spin\"></span>"),mT=/* @__PURE__ */G("<span class=\"text-green-400\"></span>"),hT=/* @__PURE__ */G("<div data-testid=\"screenshot-status\" class=\"flex items-center gap-2 text-xs text-white/70\" aria-live=\"polite\"><!> <span> </span></div>"),gT=/* @__PURE__ */G("<div data-testid=\"screenshot-capture\" class=\"mt-4 max-md:mt-3\"><!></div>");function _T(e,t){ct(t,!0);var n=J(t,"disabled",3,!1),r=Yx(),i=Zx(),a=/* @__PURE__ */L("pending"),o=/* @__PURE__ */L(null),s=!1,c=null,l={pending:"Preparing screenshot...",capturing:"Capturing screenshot...",uploading:"Uploading screenshot...",done:"Screenshot captured",error:"Screenshot capture failed"};Uo(function(){return u(),function(){s=!0,c&&clearTimeout(c);};});function u(){return _u6.apply(this,arguments);}function _u6(){_u6=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee17(){var e,n,l,_r88,_i69,_u7,_f6,_t146,_t147;return _regenerator().w(function(_context17){while(1)switch(_context17.p=_context17.n){case 0:e=r(),n=i();if(!(!e||!n)){_context17.n=1;break;}R(a,"error"),R(o,"Service unavailable. Please try again.");return _context17.a(2);case 1:l=document.querySelector("zena-chatbot");_context17.p=2;R(a,"pending");R(o,null);_context17.n=3;return new Promise(function(e){c=setTimeout(e,2500);});case 3:c=null;if(!s){_context17.n=4;break;}return _context17.a(2);case 4:R(a,"capturing"),d(l,!1);_context17.n=5;return dT(document.documentElement,{pixelRatio:1});case 5:_r88=_context17.v;if(!(d(l,!0),s)){_context17.n=6;break;}return _context17.a(2);case 6:if(_r88){_context17.n=7;break;}throw Error("Failed to capture screenshot");case 7:R(a,"uploading");_i69="screenshot_".concat((0,Nx.default)().format("YYYY-MM-DDTHH-mm-ss"),".png");_u7=new File([_r88],_i69,{type:"image/png"});_context17.n=8;return e.presignUrl(n,_i69,"image/png",_u7.size);case 8:_f6=_context17.v;_t146=s;if(_t146){_context17.n=10;break;}_context17.n=9;return hC(_f6.uploadUrl,_u7);case 9:_t146=s;case 10:if(!_t146){_context17.n=11;break;}return _context17.a(2);case 11:R(a,"done"),t.onScreenshotFlow([_f6.attachmentId]);_context17.n=14;break;case 12:_context17.p=12;_t147=_context17.v;if(!(d(l,!0),s)){_context17.n=13;break;}return _context17.a(2);case 13:R(a,"error"),R(o,_t147.message||"An unexpected error occurred.",!0),Ox(_t147,{context:{extra:{message:"Screenshot capture failed"}}});case 14:return _context17.a(2);}},_callee17,null,[[2,12]]);}));return _u6.apply(this,arguments);}function d(e,t){e&&(e.style.visibility=t?"":"hidden");}function f(){u();}function p(){t.onScreenshotFlow([]);}var m=gT(),h=z(m),g=function g(e){var t=fT(),r=z(t),i=z(r,!0);A(r);var a=B(r,2),s=z(a),c=B(s,2);A(a),A(t),V(function(){ga(i,W(o)||l.error),s.disabled=n(),c.disabled=n();}),ra("click",s,f),ra("click",c,p),K(e,t);},_=function _(e){var t=hT(),n=z(t),r=function r(e){K(e,pT());},i=function i(e){var t=mT();t.textContent="✓",K(e,t);};q(n,function(e){W(a)==="done"?e(i,-1):e(r);});var o=B(n,2),s=z(o,!0);A(o),A(t),V(function(){return ga(s,l[W(a)]);}),K(e,t);};q(h,function(e){W(a)==="error"?e(g):e(_,-1);}),A(m),K(e,m),lt();}ia(["click"]);//#endregion
481
481
  //#region src/assets/zena-chatbot-icon.svg
482
- var pT="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='161'%20height='161'%20viewBox='0%200%20161%20161'%20fill='none'%3e%3cpath%20d='M80.47%20160.94C124.912%20160.94%20160.94%20124.912%20160.94%2080.47C160.94%2036.0276%20124.912%200%2080.47%200C36.0277%200%200%2036.0276%200%2080.47C0%20124.912%2036.0277%20160.94%2080.47%20160.94Z'%20fill='%2379C03B'/%3e%3cpath%20d='M129.74%2077.86C129.92%2083.44%20128.63%2088.72%20126.22%2093.32L126.17%2093.43L113.37%20120.41L107.17%20113.73C104.99%20111.38%20101.91%20110.12%2098.7%20110.14C98.63%20110.14%2098.56%20110.14%2098.49%20110.14H59.55C42.28%20110.14%2028.29%2096.14%2028.29%2078.88C28.29%2070.25%2031.79%2062.44%2037.44%2056.78C43.1%2051.12%2050.91%2047.63%2059.54%2047.63H97.9C114.86%2047.63%20129.17%2060.91%20129.71%2077.87L129.74%2077.86Z'%20stroke='white'%20stroke-width='2'%20stroke-miterlimit='10'/%3e%3cpath%20d='M78.17%2078.36L65.91%2070.95C65.5%2070.7%2065.13%2070.4%2064.83%2070.03C62.75%2067.45%2064.45%2063.23%2068.02%2063.23H88.32C91.88%2063.23%2093.59%2067.46%2091.51%2070.03C91.21%2070.4%2090.83%2070.71%2090.43%2070.95L78.17%2078.36Z'%20fill='url(%23paint0_linear_227_115)'/%3e%3cpath%20d='M79.89%2078.29L92.15%2085.7C92.56%2085.95%2092.93%2086.25%2093.23%2086.62C95.31%2089.2%2093.61%2093.42%2090.04%2093.42H69.74C66.18%2093.42%2064.47%2089.19%2066.55%2086.62C66.85%2086.25%2067.23%2085.94%2067.63%2085.7L79.89%2078.29Z'%20fill='url(%23paint1_linear_227_115)'/%3e%3cpath%20d='M85.29%2064.74L65.45%2084.58C63.43%2086.6%2063.43%2089.88%2065.45%2091.91C67.47%2093.93%2070.75%2093.93%2072.78%2091.91L92.6199%2072.07C94.6399%2070.05%2094.6399%2066.77%2092.6199%2064.74C90.5999%2062.72%2087.32%2062.72%2085.29%2064.74Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_227_115'%20x1='66.11'%20y1='60.06'%20x2='89.3'%20y2='74.12'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_227_115'%20x1='91.95'%20y1='96.59'%20x2='68.76'%20y2='82.5301'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",mT=/* @__PURE__ */G("<div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-red-500 text-white [&amp;_svg]:w-5 [&amp;_svg]:h-5 max-md:w-9 max-md:h-9 max-md:mt-0\"><!></div>"),hT=/* @__PURE__ */G("<div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-[#0a284c] text-white overflow-hidden max-md:w-9 max-md:h-9 max-md:mt-0\"><img alt=\"Zena\" class=\"w-10 h-10 object-contain max-md:w-9 max-md:h-9\"/></div>"),gT=/* @__PURE__ */G("<div class=\"shrink-0\"><!></div>"),_T=/* @__PURE__ */G("<div class=\"message-text\"> </div>"),vT=/* @__PURE__ */G("<div class=\"message-text markdown-body svelte-ub2x2e\"></div>"),yT=/* @__PURE__ */G("<div><!></div>"),bT=/* @__PURE__ */G("<div class=\"shrink-0\"><div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-[#45556c] text-white [&amp;_svg]:w-5 [&amp;_svg]:h-5 max-md:w-9 max-md:h-9 max-md:mt-0\"><!></div></div>"),xT=/* @__PURE__ */G("<div><!> <div><!> <!> <!> <!></div> <!></div>"),ST={hash:"svelte-ub2x2e",code:".message-bubble.svelte-ub2x2e > *:first-child {margin-top:0;}.message-bubble.svelte-ub2x2e > *:last-child {margin-bottom:0;}\n\n /* Markdown specific styles */.markdown-body.svelte-ub2x2e pre,\n .markdown-body.svelte-ub2x2e p,\n .markdown-body.svelte-ub2x2e li,\n .markdown-body.svelte-ub2x2e code {margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;word-break:break-word;}.markdown-body.svelte-ub2x2e p {margin:0 0 10px 0;}.markdown-body.svelte-ub2x2e p:last-child {margin-bottom:0;}.markdown-body.svelte-ub2x2e a {color:#79c03c;text-decoration:none;}.markdown-body.svelte-ub2x2e a:hover {text-decoration:underline;}.markdown-body.svelte-ub2x2e ul {margin:0;padding-left:20px;}.markdown-body.svelte-ub2x2e ol {margin:0;padding-left:20px;}.markdown-body.svelte-ub2x2e li {margin-bottom:4px;}.markdown-body.svelte-ub2x2e strong {font-weight:600;}"};function CT(e,t){ct(t,!0),Wa(e,ST);var n=new wd({html:!0,linkify:!0}),r=J(t,"type",3,"user"),i=J(t,"content",3,""),a=J(t,"isError",3,!1),o=J(t,"disabled",3,!1),s=/* @__PURE__ */tr(function(){return r()==="user";}),c=/* @__PURE__ */tr(function(){var e;return!W(s)&&!i().trim()&&!!((e=t.attachmentIds)!=null&&e.length);}),l=/* @__PURE__ */tr(function(){if(W(s))return i();try{return If.sanitize(n.render(Lf(i())));}catch(e){return Cx(e,{context:{extra:{message:"markdown render failed"}}}),If.sanitize(i());}});var u=xT(),d=z(u),f=function f(e){var t=gT(),n=z(t),r=function r(e){var t=mT();ls(z(t),{size:16}),A(t),K(e,t);},i=function i(e){var t=hT(),n=z(t);A(t),V(function(){return yo(n,"src",pT);}),K(e,t);};q(n,function(e){a()?e(r):e(i,-1);}),A(t),K(e,t);};q(d,function(e){!W(s)&&!W(c)&&e(f);});var p=B(d,2),m=z(p),h=function h(e){var t=yT(),n=z(t),r=function r(e){var t=_T(),n=z(t,!0);A(t),V(function(){return ga(n,i());}),K(e,t);},o=function o(e){var t=vT();Ba(t,function(){return W(l);},!0),A(t),K(e,t);};q(n,function(e){W(s)?e(r):e(o,-1);}),A(t),V(function(){yo(t,"data-testid",a()?"message-bubble-error":W(s)?"message-bubble-user":"message-bubble-assistant"),eo(t,1,"message-bubble py-4 px-5 rounded-[1.25rem] break-words text-sm leading-[1.5] font-normal text-left max-md:text-[0.8rem] max-md:py-3 max-md:px-4 max-md:leading-[1.4] ".concat(a()?"bg-red-100 border-l-4 border-l-red-500 text-red-600":W(s)?"bg-[#79c03c] text-white rounded-br-lg":"bg-[#1d293d] text-white rounded-bl-lg"),"svelte-ub2x2e");}),K(e,t);},g=/* @__PURE__ */tr(function(){return i().trim();});q(m,function(e){W(g)&&e(h);});var _=B(m,2),v=function v(e){Qx(e,{get attachmentIds(){return t.attachmentIds;},get messageType(){return r();}});};q(_,function(e){t.attachmentIds&&t.attachmentIds.length>0&&e(v);});var y=B(_,2),b=function b(e){Bx(e,{get surveys(){return t.surveys;},get type(){return t.responseType;},get disabled(){return o();},onSurveySelect:function onSurveySelect(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"survey-select",survey:e,responseType:t.responseType});}});};q(y,function(e){!W(s)&&t.surveys&&t.surveys.length>0&&e(b);});var x=B(y,2),S=function S(e){RC(e,{get disabled(){return o();},onAttachmentFlow:function onAttachmentFlow(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"attachment-flow",attachmentIds:e});}});},C=function C(e){fT(e,{get disabled(){return o();},onScreenshotFlow:function onScreenshotFlow(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"screenshot-flow",attachmentIds:e});}});},w=function w(e){Dx(e,{get suggestions(){return t.followUp;},get disabled(){return o();},onClick:function onClick(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"follow-up",suggestion:e});}});};q(x,function(e){!W(s)&&t.responseType==="request_ticket_attachments"?e(S):!W(s)&&t.responseType==="request_screenshot"?e(C,1):!W(s)&&t.followUp&&t.followUp.length>0&&e(w,2);}),A(p);var T=B(p,2),ee=function ee(e){var t=bT(),n=z(t);ds(z(n),{size:16}),A(n),A(t),K(e,t);};q(T,function(e){W(s)&&e(ee);}),A(u),V(function(){eo(u,1,"flex w-full items-start gap-3 mb-6 [font-family:'Poppins',sans-serif] [animation:fadeIn_0.3s_ease] max-md:gap-0 max-md:mb-5 ".concat(W(s)?"justify-end":"justify-start")),eo(p,1,"flex flex-col max-w-[80%] min-w-0 max-md:max-w-[85%] ".concat(W(s)?"items-end mr-2":W(c)?"items-start ml-[60px] max-md:ml-[56px]":"items-start ml-2"));}),K(e,u),lt();}//#endregion
482
+ var vT="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='161'%20height='161'%20viewBox='0%200%20161%20161'%20fill='none'%3e%3cpath%20d='M80.47%20160.94C124.912%20160.94%20160.94%20124.912%20160.94%2080.47C160.94%2036.0276%20124.912%200%2080.47%200C36.0277%200%200%2036.0276%200%2080.47C0%20124.912%2036.0277%20160.94%2080.47%20160.94Z'%20fill='%2379C03B'/%3e%3cpath%20d='M129.74%2077.86C129.92%2083.44%20128.63%2088.72%20126.22%2093.32L126.17%2093.43L113.37%20120.41L107.17%20113.73C104.99%20111.38%20101.91%20110.12%2098.7%20110.14C98.63%20110.14%2098.56%20110.14%2098.49%20110.14H59.55C42.28%20110.14%2028.29%2096.14%2028.29%2078.88C28.29%2070.25%2031.79%2062.44%2037.44%2056.78C43.1%2051.12%2050.91%2047.63%2059.54%2047.63H97.9C114.86%2047.63%20129.17%2060.91%20129.71%2077.87L129.74%2077.86Z'%20stroke='white'%20stroke-width='2'%20stroke-miterlimit='10'/%3e%3cpath%20d='M78.17%2078.36L65.91%2070.95C65.5%2070.7%2065.13%2070.4%2064.83%2070.03C62.75%2067.45%2064.45%2063.23%2068.02%2063.23H88.32C91.88%2063.23%2093.59%2067.46%2091.51%2070.03C91.21%2070.4%2090.83%2070.71%2090.43%2070.95L78.17%2078.36Z'%20fill='url(%23paint0_linear_227_115)'/%3e%3cpath%20d='M79.89%2078.29L92.15%2085.7C92.56%2085.95%2092.93%2086.25%2093.23%2086.62C95.31%2089.2%2093.61%2093.42%2090.04%2093.42H69.74C66.18%2093.42%2064.47%2089.19%2066.55%2086.62C66.85%2086.25%2067.23%2085.94%2067.63%2085.7L79.89%2078.29Z'%20fill='url(%23paint1_linear_227_115)'/%3e%3cpath%20d='M85.29%2064.74L65.45%2084.58C63.43%2086.6%2063.43%2089.88%2065.45%2091.91C67.47%2093.93%2070.75%2093.93%2072.78%2091.91L92.6199%2072.07C94.6399%2070.05%2094.6399%2066.77%2092.6199%2064.74C90.5999%2062.72%2087.32%2062.72%2085.29%2064.74Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_227_115'%20x1='66.11'%20y1='60.06'%20x2='89.3'%20y2='74.12'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_227_115'%20x1='91.95'%20y1='96.59'%20x2='68.76'%20y2='82.5301'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",yT=/* @__PURE__ */G("<div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-red-500 text-white [&amp;_svg]:w-5 [&amp;_svg]:h-5 max-md:w-9 max-md:h-9 max-md:mt-0\"><!></div>"),bT=/* @__PURE__ */G("<div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-[#0a284c] text-white overflow-hidden max-md:w-9 max-md:h-9 max-md:mt-0\"><img alt=\"Zena\" class=\"w-10 h-10 object-contain max-md:w-9 max-md:h-9\"/></div>"),xT=/* @__PURE__ */G("<div class=\"shrink-0\"><!></div>"),ST=/* @__PURE__ */G("<div class=\"message-text\"> </div>"),CT=/* @__PURE__ */G("<div class=\"message-text markdown-body svelte-ub2x2e\"></div>"),wT=/* @__PURE__ */G("<div><!></div>"),TT=/* @__PURE__ */G("<div class=\"shrink-0\"><div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-[#45556c] text-white [&amp;_svg]:w-5 [&amp;_svg]:h-5 max-md:w-9 max-md:h-9 max-md:mt-0\"><!></div></div>"),ET=/* @__PURE__ */G("<div><!> <div><!> <!> <!> <!></div> <!></div>"),DT={hash:"svelte-ub2x2e",code:".message-bubble.svelte-ub2x2e > *:first-child {margin-top:0;}.message-bubble.svelte-ub2x2e > *:last-child {margin-bottom:0;}\n\n /* Markdown specific styles */.markdown-body.svelte-ub2x2e pre,\n .markdown-body.svelte-ub2x2e p,\n .markdown-body.svelte-ub2x2e li,\n .markdown-body.svelte-ub2x2e code {margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;word-break:break-word;}.markdown-body.svelte-ub2x2e p {margin:0 0 10px 0;}.markdown-body.svelte-ub2x2e p:last-child {margin-bottom:0;}.markdown-body.svelte-ub2x2e a {color:#79c03c;text-decoration:none;}.markdown-body.svelte-ub2x2e a:hover {text-decoration:underline;}.markdown-body.svelte-ub2x2e ul {margin:0;padding-left:20px;}.markdown-body.svelte-ub2x2e ol {margin:0;padding-left:20px;}.markdown-body.svelte-ub2x2e li {margin-bottom:4px;}.markdown-body.svelte-ub2x2e strong {font-weight:600;}"};function OT(e,t){ct(t,!0),Wa(e,DT);var n=new wd({html:!1,linkify:!0}),r=J(t,"type",3,"user"),i=J(t,"content",3,""),a=J(t,"isError",3,!1),o=J(t,"disabled",3,!1),s=/* @__PURE__ */tr(function(){return r()==="user";}),c=/* @__PURE__ */tr(function(){var e;return!W(s)&&!i().trim()&&!!((e=t.attachmentIds)!=null&&e.length);}),l=/* @__PURE__ */tr(function(){if(W(s))return i();try{return Vf(n.render(Lf(i())));}catch(e){return Ox(e,{context:{extra:{message:"markdown render failed"}}}),Vf(i());}});var u=ET(),d=z(u),f=function f(e){var t=xT(),n=z(t),r=function r(e){var t=yT();ls(z(t),{size:16}),A(t),K(e,t);},i=function i(e){var t=bT(),n=z(t);A(t),V(function(){return yo(n,"src",vT);}),K(e,t);};q(n,function(e){a()?e(r):e(i,-1);}),A(t),K(e,t);};q(d,function(e){!W(s)&&!W(c)&&e(f);});var p=B(d,2),m=z(p),h=function h(e){var t=wT(),n=z(t),r=function r(e){var t=ST(),n=z(t,!0);A(t),V(function(){return ga(n,i());}),K(e,t);},o=function o(e){var t=CT();Ba(t,function(){return W(l);},!0),A(t),K(e,t);};q(n,function(e){W(s)?e(r):e(o,-1);}),A(t),V(function(){yo(t,"data-testid",a()?"message-bubble-error":W(s)?"message-bubble-user":"message-bubble-assistant"),eo(t,1,"message-bubble py-4 px-5 rounded-[1.25rem] break-words text-sm leading-[1.5] font-normal text-left max-md:text-[0.8rem] max-md:py-3 max-md:px-4 max-md:leading-[1.4] ".concat(a()?"bg-red-100 border-l-4 border-l-red-500 text-red-600":W(s)?"bg-[#79c03c] text-white rounded-br-lg":"bg-[#1d293d] text-white rounded-bl-lg"),"svelte-ub2x2e");}),K(e,t);},g=/* @__PURE__ */tr(function(){return i().trim();});q(m,function(e){W(g)&&e(h);});var _=B(m,2),v=function v(e){rS(e,{get attachmentIds(){return t.attachmentIds;},get messageType(){return r();}});};q(_,function(e){t.attachmentIds&&t.attachmentIds.length>0&&e(v);});var y=B(_,2),b=function b(e){Gx(e,{get surveys(){return t.surveys;},get type(){return t.responseType;},get disabled(){return o();},onSurveySelect:function onSurveySelect(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"survey-select",survey:e,responseType:t.responseType});}});};q(y,function(e){!W(s)&&t.surveys&&t.surveys.length>0&&e(b);});var x=B(y,2),S=function S(e){UC(e,{get disabled(){return o();},onAttachmentFlow:function onAttachmentFlow(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"attachment-flow",attachmentIds:e});}});},C=function C(e){_T(e,{get disabled(){return o();},onScreenshotFlow:function onScreenshotFlow(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"screenshot-flow",attachmentIds:e});}});},w=function w(e){Mx(e,{get suggestions(){return t.followUp;},get disabled(){return o();},onClick:function onClick(e){var n;return(n=t.onAction)==null?void 0:n.call(t,{type:"follow-up",suggestion:e});}});};q(x,function(e){!W(s)&&t.responseType==="request_ticket_attachments"?e(S):!W(s)&&t.responseType==="request_screenshot"?e(C,1):!W(s)&&t.followUp&&t.followUp.length>0&&e(w,2);}),A(p);var T=B(p,2),ee=function ee(e){var t=TT(),n=z(t);ds(z(n),{size:16}),A(n),A(t),K(e,t);};q(T,function(e){W(s)&&e(ee);}),A(u),V(function(){eo(u,1,"flex w-full items-start gap-3 mb-6 [font-family:'Poppins',sans-serif] [animation:fadeIn_0.3s_ease] max-md:gap-0 max-md:mb-5 ".concat(W(s)?"justify-end":"justify-start")),eo(p,1,"flex flex-col max-w-[80%] min-w-0 max-md:max-w-[85%] ".concat(W(s)?"items-end mr-2":W(c)?"items-start ml-[60px] max-md:ml-[56px]":"items-start ml-2"));}),K(e,u),lt();}//#endregion
483
483
  //#region src/features/zena-chatbot/components/TypingIndicator.svelte
484
- var wT=/* @__PURE__ */G("<div class=\"py-4 px-5 rounded-[1.25rem] rounded-bl-lg bg-[#1d293d] text-sm leading-[1.5] max-md:py-3 max-md:px-4 max-md:text-[0.8rem] max-md:leading-[1.4]\"><div data-testid=\"typing-indicator-redirecting\" class=\"text-[#45556c]\"></div></div>"),TT=/* @__PURE__ */G("<div class=\"py-4 px-5 rounded-[1.25rem] rounded-bl-lg bg-[#1d293d] text-sm leading-[1.5] max-md:py-3 max-md:px-4 max-md:text-[0.8rem] max-md:leading-[1.4]\"><div data-testid=\"typing-indicator-message\"> </div></div>"),ET=/* @__PURE__ */G("<div class=\"py-4 px-5 rounded-[1.25rem] rounded-bl-lg bg-[#1d293d] flex items-center gap-2 max-md:py-3 max-md:px-4 max-md:gap-1\"><div data-testid=\"typing-dot\" class=\"h-2 w-2 rounded-full bg-[#45556c] [animation:bouncing-loader_0.6s_infinite_alternate] [animation-delay:0.1s]\"></div> <div data-testid=\"typing-dot\" class=\"h-2 w-2 rounded-full bg-[#45556c] [animation:bouncing-loader_0.6s_infinite_alternate] [animation-delay:0.2s]\"></div> <div data-testid=\"typing-dot\" class=\"h-2 w-2 rounded-full bg-[#45556c] [animation:bouncing-loader_0.6s_infinite_alternate] [animation-delay:0.3s]\"></div></div>"),DT=/* @__PURE__ */G("<div class=\"flex w-full items-start gap-3 mb-6 justify-start [font-family:'Poppins',sans-serif] [animation:fadeIn_0.3s_ease] max-md:gap-0 max-md:mb-5\"><div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-[#0a284c] text-white overflow-hidden max-md:w-9 max-md:h-9 max-md:mt-0\"><img alt=\"Zena\" class=\"w-10 h-10 object-contain max-md:w-9 max-md:h-9\"/></div> <div class=\"ml-2 flex items-center gap-2 max-md:gap-1\"><!></div></div>");function OT(e,t){ct(t,!0);var n=J(t,"isLoading",3,!1),r=J(t,"isRedirecting",3,!1),i=["Just a moment—I'm pulling up that info for you…","I'm on it—fetching the latest update…","Let me look into that for you right away…","Working on your request — thanks for your patience…","Almost there — finalizing the best solution for you…","Hang tight—I'm gathering the answer…"],a={ENTER_DELAY:2e3,EXIT_DURATION:500,MESSAGE_DURATION:3e3,DOTS_DURATION:2e3},o=function o(e){return i[(e?0:3)+Math.floor(Math.random()*(e?4:2))];},s=/* @__PURE__ */L(!1),c=/* @__PURE__ */L(""),l=/* @__PURE__ */L(""),u=null;function d(){u&&(clearTimeout(u),u=null);}function f(){R(s,!0),R(c,"enter"),R(l,o(!1),!0),u=setTimeout(function(){R(c,"exit"),u=setTimeout(function(){R(s,!1),R(c,""),R(l,""),u=setTimeout(f,a.DOTS_DURATION);},a.EXIT_DURATION);},a.MESSAGE_DURATION);}Gr(function(){return n()?(d(),R(s,!1),R(c,""),R(l,""),u=setTimeout(f,a.ENTER_DELAY)):(d(),R(s,!1),R(c,""),R(l,"")),d;});var p=ha(),m=kr(p),h=function h(e){var t=DT(),n=z(t),i=z(n);A(n);var a=B(n,2),o=z(a),u=function u(e){var t=wT(),n=z(t);n.textContent="Redirecting to the survey…",A(t),K(e,t);},d=function d(e){var t=TT(),n=z(t),r=z(n,!0);A(n),A(t),V(function(){eo(n,1,"text-[#45556c] [transform-origin:left_center] transition-all duration-300 ".concat(W(c)==="enter"?"typing-indicator__message--enter":W(c)==="exit"?"typing-indicator__message--exit":"")),ga(r,W(l));}),K(e,t);},f=function f(e){K(e,ET());};q(o,function(e){r()?e(u):W(s)?e(d,1):e(f,-1);}),A(a),A(t),V(function(){return yo(i,"src",pT);}),K(e,t);};q(m,function(e){(n()||r())&&e(h);}),K(e,p),lt();}//#endregion
484
+ var kT=/* @__PURE__ */G("<div class=\"py-4 px-5 rounded-[1.25rem] rounded-bl-lg bg-[#1d293d] text-sm leading-[1.5] max-md:py-3 max-md:px-4 max-md:text-[0.8rem] max-md:leading-[1.4]\"><div data-testid=\"typing-indicator-redirecting\" class=\"text-[#45556c]\"></div></div>"),AT=/* @__PURE__ */G("<div class=\"py-4 px-5 rounded-[1.25rem] rounded-bl-lg bg-[#1d293d] text-sm leading-[1.5] max-md:py-3 max-md:px-4 max-md:text-[0.8rem] max-md:leading-[1.4]\"><div data-testid=\"typing-indicator-message\"> </div></div>"),jT=/* @__PURE__ */G("<div class=\"py-4 px-5 rounded-[1.25rem] rounded-bl-lg bg-[#1d293d] flex items-center gap-2 max-md:py-3 max-md:px-4 max-md:gap-1\"><div data-testid=\"typing-dot\" class=\"h-2 w-2 rounded-full bg-[#45556c] [animation:bouncing-loader_0.6s_infinite_alternate] [animation-delay:0.1s]\"></div> <div data-testid=\"typing-dot\" class=\"h-2 w-2 rounded-full bg-[#45556c] [animation:bouncing-loader_0.6s_infinite_alternate] [animation-delay:0.2s]\"></div> <div data-testid=\"typing-dot\" class=\"h-2 w-2 rounded-full bg-[#45556c] [animation:bouncing-loader_0.6s_infinite_alternate] [animation-delay:0.3s]\"></div></div>"),MT=/* @__PURE__ */G("<div class=\"flex w-full items-start gap-3 mb-6 justify-start [font-family:'Poppins',sans-serif] [animation:fadeIn_0.3s_ease] max-md:gap-0 max-md:mb-5\"><div class=\"w-10 h-10 flex items-center justify-center shrink-0 rounded-full mt-1 bg-[#0a284c] text-white overflow-hidden max-md:w-9 max-md:h-9 max-md:mt-0\"><img alt=\"Zena\" class=\"w-10 h-10 object-contain max-md:w-9 max-md:h-9\"/></div> <div class=\"ml-2 flex items-center gap-2 max-md:gap-1\"><!></div></div>");function NT(e,t){ct(t,!0);var n=J(t,"isLoading",3,!1),r=J(t,"isRedirecting",3,!1),i=["Just a moment—I'm pulling up that info for you…","I'm on it—fetching the latest update…","Let me look into that for you right away…","Working on your request — thanks for your patience…","Almost there — finalizing the best solution for you…","Hang tight—I'm gathering the answer…"],a={ENTER_DELAY:2e3,EXIT_DURATION:500,MESSAGE_DURATION:3e3,DOTS_DURATION:2e3},o=function o(e){return i[(e?0:3)+Math.floor(Math.random()*(e?4:2))];},s=/* @__PURE__ */L(!1),c=/* @__PURE__ */L(""),l=/* @__PURE__ */L(""),u=null;function d(){u&&(clearTimeout(u),u=null);}function f(){R(s,!0),R(c,"enter"),R(l,o(!1),!0),u=setTimeout(function(){R(c,"exit"),u=setTimeout(function(){R(s,!1),R(c,""),R(l,""),u=setTimeout(f,a.DOTS_DURATION);},a.EXIT_DURATION);},a.MESSAGE_DURATION);}Gr(function(){return n()?(d(),R(s,!1),R(c,""),R(l,""),u=setTimeout(f,a.ENTER_DELAY)):(d(),R(s,!1),R(c,""),R(l,"")),d;});var p=ha(),m=kr(p),h=function h(e){var t=MT(),n=z(t),i=z(n);A(n);var a=B(n,2),o=z(a),u=function u(e){var t=kT(),n=z(t);n.textContent="Redirecting to the survey…",A(t),K(e,t);},d=function d(e){var t=AT(),n=z(t),r=z(n,!0);A(n),A(t),V(function(){eo(n,1,"text-[#45556c] [transform-origin:left_center] transition-all duration-300 ".concat(W(c)==="enter"?"typing-indicator__message--enter":W(c)==="exit"?"typing-indicator__message--exit":"")),ga(r,W(l));}),K(e,t);},f=function f(e){K(e,jT());};q(o,function(e){r()?e(u):W(s)?e(d,1):e(f,-1);}),A(a),A(t),V(function(){return yo(i,"src",vT);}),K(e,t);};q(m,function(e){(n()||r())&&e(h);}),K(e,p),lt();}//#endregion
485
485
  //#region src/features/zena-chatbot/components/MessageList.svelte
486
- var kT=/* @__PURE__ */G("<div class=\"flex-1 overflow-y-auto py-6 px-5 bg-[#0f172b] [font-family:'Poppins',sans-serif] overscroll-contain [&amp;::-webkit-scrollbar]:hidden md:px-6\"><div class=\"flex flex-col min-h-min\"></div> <!> <div class=\"h-px w-full\"></div></div>");function AT(e,t){ct(t,!0);var n=J(t,"messages",19,function(){return[];}),r=J(t,"isLoading",3,!1),i=J(t,"isRedirecting",3,!1),a=/* @__PURE__ */L(void 0),o=/* @__PURE__ */L(void 0);function s(){return _s6.apply(this,arguments);}function _s6(){_s6=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee18(){var _t148;return _regenerator().w(function(_context18){while(1)switch(_context18.n){case 0:_t148=W(o)&&typeof W(o).scrollIntoView=="function";if(!_t148){_context18.n=2;break;}_context18.n=1;return Ii();case 1:W(o).scrollIntoView({behavior:"smooth"});case 2:return _context18.a(2);}},_callee18);}));return _s6.apply(this,arguments);}Gr(function(){(n()&&n().length>0||r()||i())&&s();});function c(e){e.stopPropagation();}var l=kT(),u=z(l);Pa(u,21,n,function(e){return e.id;},function(e,n){CT(e,{get type(){return W(n).type;},get content(){return W(n).content;},get isError(){return W(n).isError;},get surveys(){return W(n).surveys;},get responseType(){return W(n).responseType;},get followUp(){return W(n).followUp;},get disabled(){return W(n).disabled;},get attachmentIds(){return W(n).attachmentIds;},get onAction(){return t.onAction;}});}),A(u);var d=B(u,2);OT(d,{get isLoading(){return r();},get isRedirecting(){return i();}}),Io(B(d,2),function(e){return R(o,e);},function(){return W(o);}),A(l),Io(l,function(e){return R(a,e);},function(){return W(a);}),na("wheel",l,c),K(e,l),lt();}//#endregion
486
+ var PT=/* @__PURE__ */G("<div class=\"flex-1 overflow-y-auto py-6 px-5 bg-[#0f172b] [font-family:'Poppins',sans-serif] overscroll-contain [&amp;::-webkit-scrollbar]:hidden md:px-6\"><div class=\"flex flex-col min-h-min\"></div> <!> <div class=\"h-px w-full\"></div></div>");function FT(e,t){ct(t,!0);var n=J(t,"messages",19,function(){return[];}),r=J(t,"isLoading",3,!1),i=J(t,"isRedirecting",3,!1),a=/* @__PURE__ */L(void 0),o=/* @__PURE__ */L(void 0);function s(){return _s6.apply(this,arguments);}function _s6(){_s6=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee18(){var _t148;return _regenerator().w(function(_context18){while(1)switch(_context18.n){case 0:_t148=W(o)&&typeof W(o).scrollIntoView=="function";if(!_t148){_context18.n=2;break;}_context18.n=1;return Ii();case 1:W(o).scrollIntoView({behavior:"smooth"});case 2:return _context18.a(2);}},_callee18);}));return _s6.apply(this,arguments);}Gr(function(){(n()&&n().length>0||r()||i())&&s();});function c(e){e.stopPropagation();}var l=PT(),u=z(l);Pa(u,21,n,function(e){return e.id;},function(e,n){OT(e,{get type(){return W(n).type;},get content(){return W(n).content;},get isError(){return W(n).isError;},get surveys(){return W(n).surveys;},get responseType(){return W(n).responseType;},get followUp(){return W(n).followUp;},get disabled(){return W(n).disabled;},get attachmentIds(){return W(n).attachmentIds;},get onAction(){return t.onAction;}});}),A(u);var d=B(u,2);NT(d,{get isLoading(){return r();},get isRedirecting(){return i();}}),Io(B(d,2),function(e){return R(o,e);},function(){return W(o);}),A(l),Io(l,function(e){return R(a,e);},function(){return W(a);}),na("wheel",l,c),K(e,l),lt();}//#endregion
487
487
  //#region src/features/zena-chatbot/components/MessageInput.svelte
488
- var jT=/* @__PURE__ */G("<div><div class=\"w-full flex items-end gap-2\"><textarea class=\"flex-1 resize-none border border-white/20 bg-[#334155] text-white outline-none pt-3 pr-4 pb-3 pl-4 rounded-lg text-base leading-[1.5] min-h-12 max-h-[100px] transition duration-200 box-border [font-family:'Poppins',sans-serif] overflow-y-auto [&amp;::-webkit-scrollbar]:hidden placeholder:text-[#94a3b8] focus:ring-0 disabled:opacity-50 disabled:cursor-not-allowed md:min-h-12 md:max-h-[120px] max-md:text-[0.9rem] max-md:min-h-10 max-md:pt-[11px] max-md:pr-4 max-md:pb-[11px] max-md:pl-4 max-sm:text-[0.85rem] max-sm:min-h-11 max-sm:max-h-[80px] max-sm:pt-[10px] max-sm:pr-3 max-sm:pb-[10px] max-sm:pl-3 max-sm:leading-[1.4] svelte-17yjkps\" rows=\"1\"></textarea> <button class=\"shrink-0 rounded-[0.4rem] text-white flex items-center justify-center min-w-12 min-h-12 bg-[#79c03c] transition duration-200 border-0 cursor-pointer enabled:hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed [&amp;_svg]:w-5 [&amp;_svg]:h-5 max-md:min-w-10 max-md:min-h-10 max-md:[&amp;_svg]:w-[1.2rem] max-md:[&amp;_svg]:h-[1.2rem] max-sm:min-w-11 max-sm:min-h-11 max-sm:[&amp;_svg]:w-[1.1rem] max-sm:[&amp;_svg]:h-[1.1rem]\" aria-label=\"Send message\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M22 2L11 13\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M22 2L15 22L11 13L2 9L22 2Z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></svg></button></div></div>"),MT={hash:"svelte-17yjkps",code:"textarea.svelte-17yjkps:focus {border:1px solid #71b638;outline:none;}"};function NT(e,t){ct(t,!0),Wa(e,MT);var n=J(t,"disabled",3,!1),r=/* @__PURE__ */L(""),i;function a(){i&&(i.style.height="auto",i.style.height=Math.min(i.scrollHeight,120)+"px");}Gr(function(){W(r),a();});function o(){var e=W(r).trim();e&&!n()&&(t.onSend(e),R(r,""));}function s(e){e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),o());}var c=jT(),l=z(c),u=z(l);Fr(u),Io(u,function(e){return i=e;},function(){return i;});var d=B(u,2);A(l),A(c),V(function(e){eo(c,1,"bg-transparent py-4 px-6 block max-md:py-3 max-md:px-4 max-sm:py-2 max-sm:px-3 ".concat(n()?"opacity-50":"")),yo(u,"placeholder",n()?"Zena is typing...":"Ask your question here"),u.disabled=n(),d.disabled=e;},[function(){return n()||!W(r).trim();}]),ra("keydown",u,s),To(u,function(){return W(r);},function(e){return R(r,e);}),ra("click",d,o),K(e,c),lt();}ia(["keydown","click"]);//#endregion
488
+ var IT=/* @__PURE__ */G("<div><div class=\"w-full flex items-end gap-2\"><textarea class=\"flex-1 resize-none border border-white/20 bg-[#334155] text-white outline-none pt-3 pr-4 pb-3 pl-4 rounded-lg text-base leading-[1.5] min-h-12 max-h-[100px] transition duration-200 box-border [font-family:'Poppins',sans-serif] overflow-y-auto [&amp;::-webkit-scrollbar]:hidden placeholder:text-[#94a3b8] focus:ring-0 disabled:opacity-50 disabled:cursor-not-allowed md:min-h-12 md:max-h-[120px] max-md:text-[0.9rem] max-md:min-h-10 max-md:pt-[11px] max-md:pr-4 max-md:pb-[11px] max-md:pl-4 max-sm:text-[0.85rem] max-sm:min-h-11 max-sm:max-h-[80px] max-sm:pt-[10px] max-sm:pr-3 max-sm:pb-[10px] max-sm:pl-3 max-sm:leading-[1.4] svelte-17yjkps\" rows=\"1\"></textarea> <button class=\"shrink-0 rounded-[0.4rem] text-white flex items-center justify-center min-w-12 min-h-12 bg-[#79c03c] transition duration-200 border-0 cursor-pointer enabled:hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed [&amp;_svg]:w-5 [&amp;_svg]:h-5 max-md:min-w-10 max-md:min-h-10 max-md:[&amp;_svg]:w-[1.2rem] max-md:[&amp;_svg]:h-[1.2rem] max-sm:min-w-11 max-sm:min-h-11 max-sm:[&amp;_svg]:w-[1.1rem] max-sm:[&amp;_svg]:h-[1.1rem]\" aria-label=\"Send message\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M22 2L11 13\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M22 2L15 22L11 13L2 9L22 2Z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></svg></button></div></div>"),LT={hash:"svelte-17yjkps",code:"textarea.svelte-17yjkps:focus {border:1px solid #71b638;outline:none;}"};function RT(e,t){ct(t,!0),Wa(e,LT);var n=J(t,"disabled",3,!1),r=/* @__PURE__ */L(""),i;function a(){i&&(i.style.height="auto",i.style.height=Math.min(i.scrollHeight,120)+"px");}Gr(function(){W(r),a();});function o(){var e=W(r).trim();e&&!n()&&(t.onSend(e),R(r,""));}function s(e){e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),o());}var c=IT(),l=z(c),u=z(l);Fr(u),Io(u,function(e){return i=e;},function(){return i;});var d=B(u,2);A(l),A(c),V(function(e){eo(c,1,"bg-transparent py-4 px-6 block max-md:py-3 max-md:px-4 max-sm:py-2 max-sm:px-3 ".concat(n()?"opacity-50":"")),yo(u,"placeholder",n()?"Zena is typing...":"Ask your question here"),yo(u,"maxlength",VC),u.disabled=n(),d.disabled=e;},[function(){return n()||!W(r).trim();}]),ra("keydown",u,s),To(u,function(){return W(r);},function(e){return R(r,e);}),ra("click",d,o),K(e,c),lt();}ia(["keydown","click"]);//#endregion
489
489
  //#region src/features/zena-chatbot/components/AutoSuggestionsView.svelte
490
- var PT=/* @__PURE__ */G("<button class=\"w-full justify-start bg-[#0a284c] text-white border border-[#0a284c] h-auto py-4 px-6 text-base leading-[1.5] font-medium transition duration-200 rounded-xl [font-family:'Poppins',sans-serif] cursor-pointer text-left hover:scale-[1.03]\"> </button>"),FT=/* @__PURE__ */G("<div class=\"flex flex-col flex-1 items-center py-8 px-6 bg-[#0f172b] overflow-y-auto overscroll-contain [font-family:'Poppins',sans-serif] [&amp;::-webkit-scrollbar]:hidden md:p-8\"><div class=\"text-center shrink-0 mb-8\"><p class=\"m-0 font-semibold text-[#45556c] text-xl leading-[1.5] text-center [font-family:'Poppins',sans-serif]\">Hi, I'm Zena and you can ask me questions like...</p></div> <div class=\"flex flex-col gap-4 w-full max-w-[28rem] min-h-[320px] justify-center shrink-0\"></div></div>");function IT(e,t){ct(t,!0);var n=J(t,"prioritySuggestions",19,function(){return[];}),r=/* @__PURE__ */tr(function(){var e=[].concat(_toConsumableArray(n()),jC);return _toConsumableArray(new Set(e)).slice(0,4);});function i(e){t.onClick&&t.onClick(e);}var a=FT(),o=B(z(a),2);Pa(o,21,function(){return W(r);},Aa,function(e,t){var n=PT(),r=z(n,!0);A(n),V(function(){return ga(r,W(t));}),ra("click",n,function(){return i(W(t));}),K(e,n);}),A(o),A(a),K(e,a),lt();}ia(["click"]);//#endregion
490
+ var zT=/* @__PURE__ */G("<button class=\"w-full justify-start bg-[#0a284c] text-white border border-[#0a284c] h-auto py-4 px-6 text-base leading-[1.5] font-medium transition duration-200 rounded-xl [font-family:'Poppins',sans-serif] cursor-pointer text-left hover:scale-[1.03]\"> </button>"),BT=/* @__PURE__ */G("<div class=\"flex flex-col flex-1 items-center py-8 px-6 bg-[#0f172b] overflow-y-auto overscroll-contain [font-family:'Poppins',sans-serif] [&amp;::-webkit-scrollbar]:hidden md:p-8\"><div class=\"text-center shrink-0 mb-8\"><p class=\"m-0 font-semibold text-[#45556c] text-xl leading-[1.5] text-center [font-family:'Poppins',sans-serif]\">Hi, I'm Zena and you can ask me questions like...</p></div> <div class=\"flex flex-col gap-4 w-full max-w-[28rem] min-h-[320px] justify-center shrink-0\"></div></div>");function VT(e,t){ct(t,!0);var n=J(t,"prioritySuggestions",19,function(){return[];}),r=/* @__PURE__ */tr(function(){var e=[].concat(_toConsumableArray(n()),FC);return _toConsumableArray(new Set(e)).slice(0,4);});function i(e){t.onClick&&t.onClick(e);}var a=BT(),o=B(z(a),2);Pa(o,21,function(){return W(r);},Aa,function(e,t){var n=zT(),r=z(n,!0);A(n),V(function(){return ga(r,W(t));}),ra("click",n,function(){return i(W(t));}),K(e,n);}),A(o),A(a),K(e,a),lt();}ia(["click"]);//#endregion
491
491
  //#region src/assets/zena-chatbot-icon.svg?raw
492
- var LT="<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"161\" height=\"161\" viewBox=\"0 0 161 161\" fill=\"none\">\n <path d=\"M80.47 160.94C124.912 160.94 160.94 124.912 160.94 80.47C160.94 36.0276 124.912 0 80.47 0C36.0277 0 0 36.0276 0 80.47C0 124.912 36.0277 160.94 80.47 160.94Z\" fill=\"#79C03B\"/>\n <path d=\"M129.74 77.86C129.92 83.44 128.63 88.72 126.22 93.32L126.17 93.43L113.37 120.41L107.17 113.73C104.99 111.38 101.91 110.12 98.7 110.14C98.63 110.14 98.56 110.14 98.49 110.14H59.55C42.28 110.14 28.29 96.14 28.29 78.88C28.29 70.25 31.79 62.44 37.44 56.78C43.1 51.12 50.91 47.63 59.54 47.63H97.9C114.86 47.63 129.17 60.91 129.71 77.87L129.74 77.86Z\" stroke=\"white\" stroke-width=\"2\" stroke-miterlimit=\"10\"/>\n <path d=\"M78.17 78.36L65.91 70.95C65.5 70.7 65.13 70.4 64.83 70.03C62.75 67.45 64.45 63.23 68.02 63.23H88.32C91.88 63.23 93.59 67.46 91.51 70.03C91.21 70.4 90.83 70.71 90.43 70.95L78.17 78.36Z\" fill=\"url(#paint0_linear_227_115)\"/>\n <path d=\"M79.89 78.29L92.15 85.7C92.56 85.95 92.93 86.25 93.23 86.62C95.31 89.2 93.61 93.42 90.04 93.42H69.74C66.18 93.42 64.47 89.19 66.55 86.62C66.85 86.25 67.23 85.94 67.63 85.7L79.89 78.29Z\" fill=\"url(#paint1_linear_227_115)\"/>\n <path d=\"M85.29 64.74L65.45 84.58C63.43 86.6 63.43 89.88 65.45 91.91C67.47 93.93 70.75 93.93 72.78 91.91L92.6199 72.07C94.6399 70.05 94.6399 66.77 92.6199 64.74C90.5999 62.72 87.32 62.72 85.29 64.74Z\" fill=\"white\"/>\n <defs>\n <linearGradient id=\"paint0_linear_227_115\" x1=\"66.11\" y1=\"60.06\" x2=\"89.3\" y2=\"74.12\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"white\"/>\n <stop offset=\"1\" stop-color=\"white\" stop-opacity=\"0\"/>\n </linearGradient>\n <linearGradient id=\"paint1_linear_227_115\" x1=\"91.95\" y1=\"96.59\" x2=\"68.76\" y2=\"82.5301\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"white\"/>\n <stop offset=\"1\" stop-color=\"white\" stop-opacity=\"0\"/>\n </linearGradient>\n </defs>\n</svg>",RT=/* @__PURE__ */G("<button data-testid=\"fab-rectangle\" class=\"bg-transparent border-0 p-0 cursor-pointer z-[2]\" aria-label=\"Open chat\"><div class=\"flex flex-col items-center justify-center bg-[#77c03a] shadow-md rounded-l-lg px-[4px] py-3 w-[24px]\"><span class=\"text-[10px] font-semibold text-white font-[Poppins,sans-serif] leading-[1.25] text-center w-[2px] [word-wrap:break-word]\">ZENA</span></div></button>"),zT=/* @__PURE__ */G("<span class=\"w-[50px] h-[50px] md:w-16 md:h-16 block [&amp;>svg]:w-full [&amp;>svg]:h-full\"></span>"),BT=/* @__PURE__ */G("<div class=\"flex items-center group\"><button class=\"bg-transparent border-0 p-0 cursor-pointer rounded-full transition-transform duration-200 ease-in-out z-[2] hover:scale-110\" aria-label=\"Open chat\"><!></button> <div data-testid=\"fab-tooltip\"> <div class=\"absolute top-1/2 -right-1 -mt-[5px] w-2 h-2 bg-[#0f172b] rotate-45\"></div></div></div>");function VT(e,t){ct(t,!0);var n=J(t,"tooltipText",3,"Chat with Zena"),r=J(t,"isOpen",3,!1),i=J(t,"shape",3,"circle");function a(){t.onClick&&t.onClick();}var o=ha(),s=kr(o),c=function c(e){var t=RT();ra("click",t,a),K(e,t);},l=function l(e){var i=BT(),o=z(i),s=z(o),c=function c(e){var n=ha();Ha(kr(n),function(){return t.children;}),K(e,n);},l=function l(e){var t=zT();Ba(t,function(){return LT;},!0),A(t),K(e,t);};q(s,function(e){t.children?e(c):e(l,-1);}),A(o);var u=B(o,2),d=z(u);Xe(),A(u),A(i),V(function(){var e;eo(u,1,"absolute right-full mr-3 px-3 py-2 rounded-lg bg-[#0f172b] text-white text-sm font-medium whitespace-nowrap font-[Poppins,sans-serif]\n opacity-0 translate-x-2 invisible\n transition-[opacity,transform] duration-200 ease-out\n pointer-events-none\n max-[500px]:hidden\n ".concat(r()?"":"group-hover:opacity-100 group-hover:translate-x-0 group-hover:visible")),ga(d,"".concat((e=n())==null?"":e," "));}),ra("click",o,a),K(e,i);};q(s,function(e){i()==="rectangle"?e(c):e(l,-1);}),K(e,o),lt();}ia(["click"]);//#endregion
492
+ var HT="<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"161\" height=\"161\" viewBox=\"0 0 161 161\" fill=\"none\">\n <path d=\"M80.47 160.94C124.912 160.94 160.94 124.912 160.94 80.47C160.94 36.0276 124.912 0 80.47 0C36.0277 0 0 36.0276 0 80.47C0 124.912 36.0277 160.94 80.47 160.94Z\" fill=\"#79C03B\"/>\n <path d=\"M129.74 77.86C129.92 83.44 128.63 88.72 126.22 93.32L126.17 93.43L113.37 120.41L107.17 113.73C104.99 111.38 101.91 110.12 98.7 110.14C98.63 110.14 98.56 110.14 98.49 110.14H59.55C42.28 110.14 28.29 96.14 28.29 78.88C28.29 70.25 31.79 62.44 37.44 56.78C43.1 51.12 50.91 47.63 59.54 47.63H97.9C114.86 47.63 129.17 60.91 129.71 77.87L129.74 77.86Z\" stroke=\"white\" stroke-width=\"2\" stroke-miterlimit=\"10\"/>\n <path d=\"M78.17 78.36L65.91 70.95C65.5 70.7 65.13 70.4 64.83 70.03C62.75 67.45 64.45 63.23 68.02 63.23H88.32C91.88 63.23 93.59 67.46 91.51 70.03C91.21 70.4 90.83 70.71 90.43 70.95L78.17 78.36Z\" fill=\"url(#paint0_linear_227_115)\"/>\n <path d=\"M79.89 78.29L92.15 85.7C92.56 85.95 92.93 86.25 93.23 86.62C95.31 89.2 93.61 93.42 90.04 93.42H69.74C66.18 93.42 64.47 89.19 66.55 86.62C66.85 86.25 67.23 85.94 67.63 85.7L79.89 78.29Z\" fill=\"url(#paint1_linear_227_115)\"/>\n <path d=\"M85.29 64.74L65.45 84.58C63.43 86.6 63.43 89.88 65.45 91.91C67.47 93.93 70.75 93.93 72.78 91.91L92.6199 72.07C94.6399 70.05 94.6399 66.77 92.6199 64.74C90.5999 62.72 87.32 62.72 85.29 64.74Z\" fill=\"white\"/>\n <defs>\n <linearGradient id=\"paint0_linear_227_115\" x1=\"66.11\" y1=\"60.06\" x2=\"89.3\" y2=\"74.12\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"white\"/>\n <stop offset=\"1\" stop-color=\"white\" stop-opacity=\"0\"/>\n </linearGradient>\n <linearGradient id=\"paint1_linear_227_115\" x1=\"91.95\" y1=\"96.59\" x2=\"68.76\" y2=\"82.5301\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"white\"/>\n <stop offset=\"1\" stop-color=\"white\" stop-opacity=\"0\"/>\n </linearGradient>\n </defs>\n</svg>",UT=/* @__PURE__ */G("<button data-testid=\"fab-rectangle\" class=\"bg-transparent border-0 p-0 cursor-pointer z-[2]\" aria-label=\"Open chat\"><div class=\"flex flex-col items-center justify-center bg-[#77c03a] shadow-md rounded-l-lg px-[4px] py-3 w-[24px]\"><span class=\"text-[10px] font-semibold text-white font-[Poppins,sans-serif] leading-[1.25] text-center w-[2px] [word-wrap:break-word]\">ZENA</span></div></button>"),WT=/* @__PURE__ */G("<span class=\"w-[50px] h-[50px] md:w-16 md:h-16 block [&amp;>svg]:w-full [&amp;>svg]:h-full\"></span>"),GT=/* @__PURE__ */G("<div class=\"flex items-center group\"><button class=\"bg-transparent border-0 p-0 cursor-pointer rounded-full transition-transform duration-200 ease-in-out z-[2] hover:scale-110\" aria-label=\"Open chat\"><!></button> <div data-testid=\"fab-tooltip\"> <div class=\"absolute top-1/2 -right-1 -mt-[5px] w-2 h-2 bg-[#0f172b] rotate-45\"></div></div></div>");function KT(e,t){ct(t,!0);var n=J(t,"tooltipText",3,"Chat with Zena"),r=J(t,"isOpen",3,!1),i=J(t,"shape",3,"circle");function a(){t.onClick&&t.onClick();}var o=ha(),s=kr(o),c=function c(e){var t=UT();ra("click",t,a),K(e,t);},l=function l(e){var i=GT(),o=z(i),s=z(o),c=function c(e){var n=ha();Ha(kr(n),function(){return t.children;}),K(e,n);},l=function l(e){var t=WT();Ba(t,function(){return HT;},!0),A(t),K(e,t);};q(s,function(e){t.children?e(c):e(l,-1);}),A(o);var u=B(o,2),d=z(u);Xe(),A(u),A(i),V(function(){var e;eo(u,1,"absolute right-full mr-3 px-3 py-2 rounded-lg bg-[#0f172b] text-white text-sm font-medium whitespace-nowrap font-[Poppins,sans-serif]\n opacity-0 translate-x-2 invisible\n transition-[opacity,transform] duration-200 ease-out\n pointer-events-none\n max-[500px]:hidden\n ".concat(r()?"":"group-hover:opacity-100 group-hover:translate-x-0 group-hover:visible")),ga(d,"".concat((e=n())==null?"":e," "));}),ra("click",o,a),K(e,i);};q(s,function(e){i()==="rectangle"?e(c):e(l,-1);}),K(e,o),lt();}ia(["click"]);//#endregion
493
493
  //#region src/features/zena-chatbot/components/MaintenanceNotice.svelte
494
- var HT=/* @__PURE__ */G("<a data-testid=\"maintenance-email\" class=\"text-[#79C03B] underline\"> </a>"),UT=/* @__PURE__ */G("<div data-testid=\"maintenance-notice\" class=\"flex items-center justify-center py-10 px-6 md:px-8\"><p class=\"m-0 max-w-[28rem] text-white text-base leading-[1.5] text-center\">Zena is under maintenance and will be back soon. We apologize for any inconvenience caused.\n Please write to <!> for any assistance required.</p></div>");function WT(e,t){var n=J(t,"nativeApp",3,!1);var r=UT(),i=z(r),a=B(z(i)),o=function o(e){var t=ma();V(function(){return ga(t,IC);}),K(e,t);},s=function s(e){var t=HT(),n=z(t,!0);A(t),V(function(){yo(t,"href","mailto:".concat(IC)),ga(n,IC);}),K(e,t);};q(a,function(e){n()?e(o):e(s,-1);}),Xe(),A(i),A(r),K(e,r);}//#endregion
494
+ var qT=/* @__PURE__ */G("<a data-testid=\"maintenance-email\" class=\"text-[#79C03B] underline\"> </a>"),JT=/* @__PURE__ */G("<div data-testid=\"maintenance-notice\" class=\"flex items-center justify-center py-10 px-6 md:px-8\"><p class=\"m-0 max-w-[28rem] text-white text-base leading-[1.5] text-center\">Zena is under maintenance and will be back soon. We apologize for any inconvenience caused.\n Please write to <!> for any assistance required.</p></div>");function YT(e,t){var n=J(t,"nativeApp",3,!1);var r=JT(),i=z(r),a=B(z(i)),o=function o(e){var t=ma();V(function(){return ga(t,BC);}),K(e,t);},s=function s(e){var t=qT(),n=z(t,!0);A(t),V(function(){yo(t,"href","mailto:".concat(BC)),ga(n,BC);}),K(e,t);};q(a,function(e){n()?e(o):e(s,-1);}),Xe(),A(i),A(r),K(e,r);}//#endregion
495
495
  //#region src/features/zena-chatbot/stores/chat.store.svelte.ts
496
- var GT=/* @__PURE__ */new WeakMap(),KT=/* @__PURE__ */new WeakMap(),qT=/*#__PURE__*/function(){function qT(e){_classCallCheck(this,qT);M(this,GT,/* @__PURE__ */L(vr([]))),M(this,KT,/* @__PURE__ */L(!1)),D(this,"onMessagesChange",void 0),D(this,"nextId",1),this.onMessagesChange=e;}return _createClass(qT,[{key:"messages",get:function get(){return W(P(GT,this));},set:function set(e){R(P(GT,this),e,!0);}},{key:"isInitialized",get:function get(){return W(P(KT,this));},set:function set(e){R(P(KT,this),e,!0);}},{key:"mount",value:function mount(){this.messages=[],this.isInitialized=!0;}},{key:"hydrate",value:function hydrate(e){this.messages=e.map(function(e){return _objectSpread(_objectSpread({},e),{},{disabled:!!(e.followUp||e.surveys)||e.disabled,responseType:e.responseType==="request_screenshot"?void 0:e.responseType});});var t=e.reduce(function(e,t){return Math.max(e,t.id);},0);t>=this.nextId&&(this.nextId=t+1),this.isInitialized=!0;}},{key:"addMessage",value:function addMessage(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!0;var a;var o;i&&e==="assistant"&&(r.responseType==="bonus_oversight"?o=NC:r.responseType==="bonus"?o=PC:r.responseType==="request_ticket_attachments"?o=FC:this.messages.filter(function(e){return e.type==="user";}).length>=2&&(o=MC));var s=_objectSpread({id:this.nextId++,type:e,content:t,timestamp:(0,Ox.default)().toISOString(),isError:n,userId:null,followUp:r.followUp||o,disabled:!1},r);return e==="user"&&(this.messages=this.messages.map(function(e){return _objectSpread(_objectSpread({},e),{},{disabled:!!(e.surveys||e.followUp)||e.disabled});})),this.messages.push(s),(a=this.onMessagesChange)==null||a.call(this),s;}},{key:"disableFollowUpButtons",value:function disableFollowUpButtons(){this.messages=this.messages.map(function(e){return _objectSpread(_objectSpread({},e),{},{disabled:!!e.followUp||e.disabled});});}},{key:"clearMessages",value:function clearMessages(){var e;this.messages=[],(e=this.onMessagesChange)==null||e.call(this);}},{key:"generateConversationSummary",value:function generateConversationSummary(){if(this.messages.length===0)return"User requested support through chat";var e=_toConsumableArray(this.messages).reverse(),t=e.find(function(e){return e.type==="user";}),n=e.find(function(e){return e.type==="assistant";}),r="";return t&&(r+="User: ".concat(t.content)),n&&(r+=(r?"\n\nZena: ":"Zena: ")+n.content),r||"User requested support through chat";}}]);}(),JT=/* @__PURE__ */new WeakMap(),YT=/*#__PURE__*/function(){function YT(){_classCallCheck(this,YT);M(this,JT,/* @__PURE__ */L(null));}return _createClass(YT,[{key:"conversationId",get:function get(){return W(P(JT,this));},set:function set(e){R(P(JT,this),e,!0);}}]);}(),XT={fetch_surveys:"non_hcp_patient_surveys"},ZT=function ZT(_ref48){var e=_ref48.serverUrl,t=_ref48.authToken;var n=uC(e,t);return{fetchAvailableSurveys:function fetchAvailableSurveys(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:XT;return n.json.get("users/get_surveys",{searchParams:e});},checkEligibility:function checkEligibility(e){return n.json.post("users/checkUserEligibility",{surveys:e});}};},QT=function QT(_ref49){var e=_ref49.serverUrl,t=_ref49.authToken;var n=uC(e,t);return{send:function send(e,t,r){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};return n.json.post("chat",_objectSpread({message:e,chat_history:t,conversation_id:r},i));},checkEligibility:function checkEligibility(e){return n.json.post("users/checkUserEligibility",{surveys:e});}};},$T=function $T(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;var t=(typeof navigator==="undefined"?"undefined":_typeof(navigator))<"u"&&navigator.userAgent||"";return e?/iPhone|iPad|iPod/i.test(t)?"iOS":"Android":/Mobi|Android|iPhone|iPad/i.test(t)?"MobileWeb":"Web";},eE=10,tE=5e3,nE=1e3,rE=200,iE=600*1e3,aE="zena_session_id",oE="zena_session_start_time",sE="zena_conversation_start",cE=["mousedown","mouseup","touchstart","touchend","scroll"];function lE(_ref50){var e=_ref50.posthogKey,t=_ref50.posthogHost,_ref50$nativeApp=_ref50.nativeApp,n=_ref50$nativeApp===void 0?!1:_ref50$nativeApp,_ref50$userId=_ref50.userId,r=_ref50$userId===void 0?null:_ref50$userId,_ref50$inactivityTime=_ref50.inactivityTimeoutMs,i=_ref50$inactivityTime===void 0?iE:_ref50$inactivityTime;var a=null,o=!1,s=null,c=null,l=!1,u=!1,d=null,f=!1,p=null,m=null,h=null,g=null,_=[],v=null,y=!1,b=!1,x={visibilitychange:null,pagehide:null,beforeunload:null};function S(e){return e&&clearTimeout(e),null;}function C(e){try{return e();}catch(e){return null;}}function w(){if(s)return s;var e=C(function(){return localStorage.getItem(aE);}),t=C(function(){return localStorage.getItem(oE);});return e&&t?(s=e,c=parseInt(t,10)):(s="zena_session_".concat(Date.now(),"_").concat(Math.random().toString(36).slice(2,11)),c=Date.now(),C(function(){return localStorage.setItem(aE,s);}),C(function(){return localStorage.setItem(oE,String(c));})),s;}function T(){s=null,c=null,l=!1,u=!1,C(function(){return localStorage.removeItem(aE);}),C(function(){return localStorage.removeItem(oE);}),oe();}function ee(){var e;return n||(typeof window==="undefined"?"undefined":_typeof(window))>"u"?!0:window.cookieyes?((e=window.cookieyes._ckyConsentStore)==null?void 0:e.get("analytics"))==="yes":null;}function E(){var n;if(!e||(typeof window==="undefined"?"undefined":_typeof(window))>"u")return;var i={api_host:t||"https://app.posthog.com",autocapture:!1,capture_pageview:!1,capture_pageleave:!1,disable_session_recording:!0,loaded:function loaded(e){a=e,o=!0,r&&a.identify(String(r)),ue();}};if(window.posthog){a=window.posthog,a.__loaded?(o=!0,r&&a.identify(String(r)),ue()):a.init(e,i);return;}var s=document.createElement("script");s.src="".concat(t||"https://app.posthog.com","/static/array.js"),s.async=!0,s.onload=function(){a=window.posthog,a&&a.init(e,i);},s.onerror=function(){return console.error("[zena-chatbot-client] PostHog: failed to load script");},(n=document.head)==null||n.appendChild(s);}function te(){return _te.apply(this,arguments);}function _te(){_te=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee19(){var n,_ref51,_ref52,_t149,_t150;return _regenerator().w(function(_context19){while(1)switch(_context19.p=_context19.n){case 0:if(_.length){_context19.n=1;break;}return _context19.a(2);case 1:n=_toConsumableArray(_);_=[],v=S(v);_context19.p=2;_context19.n=3;return fetch("".concat(t||"https://app.posthog.com","/capture/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({api_key:e,batch:n})});case 3:_t149=_context19.v.ok;if(_t149){_context19.n=4;break;}(_ref51=_).unshift.apply(_ref51,_toConsumableArray(n));case 4:_context19.n=6;break;case 5:_context19.p=5;_t150=_context19.v;(_ref52=_).unshift.apply(_ref52,_toConsumableArray(n));case 6:return _context19.a(2);}},_callee19,null,[[2,5]]);}));return _te.apply(this,arguments);}function ne(){v||(v=setTimeout(function(){return te().catch(function(){});},tE));}function D(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!o)return;var i=_objectSpread({session_id:s||w()},t);n?(_.push({event:e,distinct_id:String(r||"anonymous"),properties:i}),_.length>=eE?te().catch(function(){}):ne()):a==null||a.capture(e,i);}function re(){m=S(m),m=setTimeout(function(){p=S(p),o&&l&&s&&(p=setTimeout(function(){l&&se();},i));},nE);}function ie(){!o||!l||re();}function ae(){y||(typeof document==="undefined"?"undefined":_typeof(document))>"u"||(cE.forEach(function(e){return document.addEventListener(e,ie,{passive:!0});}),y=!0);}function oe(){!y||(typeof document==="undefined"?"undefined":_typeof(document))>"u"||(cE.forEach(function(e){return document.removeEventListener(e,ie);}),y=!1);}function se(){u||h||(h=setTimeout(function(){h=null,ce().catch(function(){});},rE));}function ce(){return _ce.apply(this,arguments);}function _ce(){_ce=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(){var e,t,r,_t151;return _regenerator().w(function(_context20){while(1)switch(_context20.p=_context20.n){case 0:t=s,r=c;if(!(u||!l||!t)){_context20.n=1;break;}T();return _context20.a(2);case 1:if(!(u=!0,l=!1,p=S(p),m=S(m),D("session_ended",{session_duration_minutes:Math.round((Date.now()-(r==null?Date.now():r))/6e4)}),n||a==null||(e=a.flush)==null||e.call(a),n)){_context20.n=5;break;}_context20.p=2;_context20.n=3;return te();case 3:_context20.n=5;break;case 4:_context20.p=4;_t151=_context20.v;case 5:T();case 6:return _context20.a(2);}},_callee20,null,[[2,4]]);}));return _ce.apply(this,arguments);}function le(){var e;l&&ce().catch(function(){}),n||a==null||(e=a.flush)==null||e.call(a),oe(),de();}function ue(){b||(typeof document==="undefined"?"undefined":_typeof(document))>"u"||(b=!0,ae(),x.visibilitychange=function(){if(!(!o||!l))if(document.hidden){var e;a==null||(e=a.flush)==null||e.call(a);}else re();},document.addEventListener("visibilitychange",x.visibilitychange),x.pagehide=le,x.beforeunload=le,window.addEventListener("pagehide",le),window.addEventListener("beforeunload",le));}function de(){b&&(x.visibilitychange&&(document.removeEventListener("visibilitychange",x.visibilitychange),x.visibilitychange=null),x.pagehide&&(window.removeEventListener("pagehide",x.pagehide),x.pagehide=null),x.beforeunload&&(window.removeEventListener("beforeunload",x.beforeunload),x.beforeunload=null),b=!1);}function fe(){if(!e)return;if(n){o=!0,ue();return;}var t=ee();if(t===!0){E();return;}if(t===null){var _e193=0;g=setInterval(function(){_e193++,(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window.cookieyes?(clearInterval(g),g=null,ee()===!0&&E()):_e193>=10&&(clearInterval(g),g=null,E());},500);}}function pe(){D("zena_widget_opened");}function me(){o&&(w(),l=!0,u=!1,re(),D("session_started"),ae());}function he(){o&&(w(),d=Date.now(),C(function(){return localStorage.setItem(sE,String(d));}),f=!1);}function ge(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t;if(!(f||!o)){if(!d){var _e194=C(function(){return localStorage.getItem(sE);});_e194&&(d=parseInt(_e194,10));}d&&(f=!0,D("conversation_ended",{conversation_duration_minutes:Math.round((Date.now()-d)/6e4),messages_count:e}),n||a==null||(t=a.flush)==null||t.call(a),d=null,C(function(){return localStorage.removeItem(sE);}));}}function _e(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;D("direct_support_clicked",e?{conversation_id:e}:{});}function ve(e,t){D("chat_error",{error:t,context:e});}function ye(){p=S(p),m=S(m),h=S(h),g&&(clearInterval(g),g=null),v&&(clearTimeout(v),v=null),oe(),de();}return{init:fe,trackWidgetOpened:pe,trackSessionStarted:me,trackSessionEnded:se,trackConversationStarted:he,trackConversationEnded:ge,trackDirectSupportClicked:_e,trackError:ve,destroy:ye};}//#endregion
496
+ var XT=/* @__PURE__ */new WeakMap(),ZT=/* @__PURE__ */new WeakMap(),QT=/*#__PURE__*/function(){function QT(e){_classCallCheck(this,QT);M(this,XT,/* @__PURE__ */L(vr([]))),M(this,ZT,/* @__PURE__ */L(!1)),D(this,"onMessagesChange",void 0),D(this,"nextId",1),this.onMessagesChange=e;}return _createClass(QT,[{key:"messages",get:function get(){return W(P(XT,this));},set:function set(e){R(P(XT,this),e,!0);}},{key:"isInitialized",get:function get(){return W(P(ZT,this));},set:function set(e){R(P(ZT,this),e,!0);}},{key:"mount",value:function mount(){this.messages=[],this.isInitialized=!0;}},{key:"hydrate",value:function hydrate(e){this.messages=e.map(function(e){return _objectSpread(_objectSpread({},e),{},{disabled:!!(e.followUp||e.surveys)||e.disabled,responseType:e.responseType==="request_screenshot"?void 0:e.responseType});});var t=e.reduce(function(e,t){return Math.max(e,t.id);},0);t>=this.nextId&&(this.nextId=t+1),this.isInitialized=!0;}},{key:"addMessage",value:function addMessage(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:!0;var a;var o;i&&e==="assistant"&&(r.responseType==="bonus_oversight"?o=LC:r.responseType==="bonus"?o=RC:r.responseType==="request_ticket_attachments"?o=zC:this.messages.filter(function(e){return e.type==="user";}).length>=2&&(o=IC));var s=_objectSpread({id:this.nextId++,type:e,content:t,timestamp:(0,Nx.default)().toISOString(),isError:n,userId:null,followUp:r.followUp||o,disabled:!1},r);return e==="user"&&(this.messages=this.messages.map(function(e){return _objectSpread(_objectSpread({},e),{},{disabled:!!(e.surveys||e.followUp)||e.disabled});})),this.messages.push(s),(a=this.onMessagesChange)==null||a.call(this),s;}},{key:"disableFollowUpButtons",value:function disableFollowUpButtons(){this.messages=this.messages.map(function(e){return _objectSpread(_objectSpread({},e),{},{disabled:!!e.followUp||e.disabled});});}},{key:"clearMessages",value:function clearMessages(){var e;this.messages=[],(e=this.onMessagesChange)==null||e.call(this);}},{key:"generateConversationSummary",value:function generateConversationSummary(){if(this.messages.length===0)return"User requested support through chat";var e=_toConsumableArray(this.messages).reverse(),t=e.find(function(e){return e.type==="user";}),n=e.find(function(e){return e.type==="assistant";}),r="";return t&&(r+="User: ".concat(t.content)),n&&(r+=(r?"\n\nZena: ":"Zena: ")+n.content),r||"User requested support through chat";}}]);}(),$T=/* @__PURE__ */new WeakMap(),eE=/*#__PURE__*/function(){function eE(){_classCallCheck(this,eE);M(this,$T,/* @__PURE__ */L(null));}return _createClass(eE,[{key:"conversationId",get:function get(){return W(P($T,this));},set:function set(e){R(P($T,this),e,!0);}}]);}(),tE={fetch_surveys:"non_hcp_patient_surveys"},nE=function nE(_ref48){var e=_ref48.serverUrl,t=_ref48.authToken;var n=mC(e,t);return{fetchAvailableSurveys:function fetchAvailableSurveys(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:tE;return n.json.get("users/get_surveys",{searchParams:e});},checkEligibility:function checkEligibility(e){return n.json.post("users/checkUserEligibility",{surveys:e});}};},rE=function rE(_ref49){var e=_ref49.serverUrl,t=_ref49.authToken;var n=mC(e,t);return{send:function send(e,t,r){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};return n.json.post("chat",_objectSpread({message:e,chat_history:t,conversation_id:r},i));},checkEligibility:function checkEligibility(e){return n.json.post("users/checkUserEligibility",{surveys:e});}};},iE=function iE(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;var t=(typeof navigator==="undefined"?"undefined":_typeof(navigator))<"u"&&navigator.userAgent||"";return e?/iPhone|iPad|iPod/i.test(t)?"iOS":"Android":/Mobi|Android|iPhone|iPad/i.test(t)?"MobileWeb":"Web";},aE=10,oE=5e3,sE=1e3,cE=200,lE=600*1e3,uE="zena_session_id",dE="zena_session_start_time",fE="zena_conversation_start",pE=["mousedown","mouseup","touchstart","touchend","scroll"];function mE(_ref50){var e=_ref50.posthogKey,t=_ref50.posthogHost,_ref50$nativeApp=_ref50.nativeApp,n=_ref50$nativeApp===void 0?!1:_ref50$nativeApp,_ref50$userId=_ref50.userId,r=_ref50$userId===void 0?null:_ref50$userId,_ref50$inactivityTime=_ref50.inactivityTimeoutMs,i=_ref50$inactivityTime===void 0?lE:_ref50$inactivityTime;var a=null,o=!1,s=null,c=null,l=!1,u=!1,d=null,f=!1,p=null,m=null,h=null,g=null,_=[],v=null,y=!1,b=!1,x={visibilitychange:null,pagehide:null,beforeunload:null};function S(e){return e&&clearTimeout(e),null;}function C(e){try{return e();}catch(e){return null;}}function w(){if(s)return s;var e=C(function(){return localStorage.getItem(uE);}),t=C(function(){return localStorage.getItem(dE);});return e&&t?(s=e,c=parseInt(t,10)):(s="zena_session_".concat(Date.now(),"_").concat(Math.random().toString(36).slice(2,11)),c=Date.now(),C(function(){return localStorage.setItem(uE,s);}),C(function(){return localStorage.setItem(dE,String(c));})),s;}function T(){s=null,c=null,l=!1,u=!1,C(function(){return localStorage.removeItem(uE);}),C(function(){return localStorage.removeItem(dE);}),oe();}function ee(){var e;return n||(typeof window==="undefined"?"undefined":_typeof(window))>"u"?!0:window.cookieyes?((e=window.cookieyes._ckyConsentStore)==null?void 0:e.get("analytics"))==="yes":null;}function E(){var n;if(!e||(typeof window==="undefined"?"undefined":_typeof(window))>"u")return;var i={api_host:t||"https://app.posthog.com",autocapture:!1,capture_pageview:!1,capture_pageleave:!1,disable_session_recording:!0,loaded:function loaded(e){a=e,o=!0,r&&a.identify(String(r)),ue();}};if(window.posthog){a=window.posthog,a.__loaded?(o=!0,r&&a.identify(String(r)),ue()):a.init(e,i);return;}var s=document.createElement("script");s.src="".concat(t||"https://app.posthog.com","/static/array.js"),s.async=!0,s.onload=function(){a=window.posthog,a&&a.init(e,i);},s.onerror=function(){return console.error("[zena-chatbot-client] PostHog: failed to load script");},(n=document.head)==null||n.appendChild(s);}function te(){return _te.apply(this,arguments);}function _te(){_te=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee19(){var n,_ref51,_ref52,_t149,_t150;return _regenerator().w(function(_context19){while(1)switch(_context19.p=_context19.n){case 0:if(_.length){_context19.n=1;break;}return _context19.a(2);case 1:n=_toConsumableArray(_);_=[],v=S(v);_context19.p=2;_context19.n=3;return fetch("".concat(t||"https://app.posthog.com","/capture/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({api_key:e,batch:n})});case 3:_t149=_context19.v.ok;if(_t149){_context19.n=4;break;}(_ref51=_).unshift.apply(_ref51,_toConsumableArray(n));case 4:_context19.n=6;break;case 5:_context19.p=5;_t150=_context19.v;(_ref52=_).unshift.apply(_ref52,_toConsumableArray(n));case 6:return _context19.a(2);}},_callee19,null,[[2,5]]);}));return _te.apply(this,arguments);}function ne(){v||(v=setTimeout(function(){return te().catch(function(){});},oE));}function D(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!o)return;var i=_objectSpread({session_id:s||w()},t);n?(_.push({event:e,distinct_id:String(r||"anonymous"),properties:i}),_.length>=aE?te().catch(function(){}):ne()):a==null||a.capture(e,i);}function re(){m=S(m),m=setTimeout(function(){p=S(p),o&&l&&s&&(p=setTimeout(function(){l&&se();},i));},sE);}function ie(){!o||!l||re();}function ae(){y||(typeof document==="undefined"?"undefined":_typeof(document))>"u"||(pE.forEach(function(e){return document.addEventListener(e,ie,{passive:!0});}),y=!0);}function oe(){!y||(typeof document==="undefined"?"undefined":_typeof(document))>"u"||(pE.forEach(function(e){return document.removeEventListener(e,ie);}),y=!1);}function se(){u||h||(h=setTimeout(function(){h=null,ce().catch(function(){});},cE));}function ce(){return _ce.apply(this,arguments);}function _ce(){_ce=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(){var e,t,r,_t151;return _regenerator().w(function(_context20){while(1)switch(_context20.p=_context20.n){case 0:t=s,r=c;if(!(u||!l||!t)){_context20.n=1;break;}T();return _context20.a(2);case 1:if(!(u=!0,l=!1,p=S(p),m=S(m),D("session_ended",{session_duration_minutes:Math.round((Date.now()-(r==null?Date.now():r))/6e4)}),n||a==null||(e=a.flush)==null||e.call(a),n)){_context20.n=5;break;}_context20.p=2;_context20.n=3;return te();case 3:_context20.n=5;break;case 4:_context20.p=4;_t151=_context20.v;case 5:T();case 6:return _context20.a(2);}},_callee20,null,[[2,4]]);}));return _ce.apply(this,arguments);}function le(){var e;l&&ce().catch(function(){}),n||a==null||(e=a.flush)==null||e.call(a),oe(),de();}function ue(){b||(typeof document==="undefined"?"undefined":_typeof(document))>"u"||(b=!0,ae(),x.visibilitychange=function(){if(!(!o||!l))if(document.hidden){var e;a==null||(e=a.flush)==null||e.call(a);}else re();},document.addEventListener("visibilitychange",x.visibilitychange),x.pagehide=le,x.beforeunload=le,window.addEventListener("pagehide",le),window.addEventListener("beforeunload",le));}function de(){b&&(x.visibilitychange&&(document.removeEventListener("visibilitychange",x.visibilitychange),x.visibilitychange=null),x.pagehide&&(window.removeEventListener("pagehide",x.pagehide),x.pagehide=null),x.beforeunload&&(window.removeEventListener("beforeunload",x.beforeunload),x.beforeunload=null),b=!1);}function fe(){if(!e)return;if(n){o=!0,ue();return;}var t=ee();if(t===!0){E();return;}if(t===null){var _e193=0;g=setInterval(function(){_e193++,(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window.cookieyes?(clearInterval(g),g=null,ee()===!0&&E()):_e193>=10&&(clearInterval(g),g=null,E());},500);}}function pe(){D("zena_widget_opened");}function me(){o&&(w(),l=!0,u=!1,re(),D("session_started"),ae());}function he(){o&&(w(),d=Date.now(),C(function(){return localStorage.setItem(fE,String(d));}),f=!1);}function ge(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t;if(!(f||!o)){if(!d){var _e194=C(function(){return localStorage.getItem(fE);});_e194&&(d=parseInt(_e194,10));}d&&(f=!0,D("conversation_ended",{conversation_duration_minutes:Math.round((Date.now()-d)/6e4),messages_count:e}),n||a==null||(t=a.flush)==null||t.call(a),d=null,C(function(){return localStorage.removeItem(fE);}));}}function _e(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;D("direct_support_clicked",e?{conversation_id:e}:{});}function ve(e,t){D("chat_error",{error:t,context:e});}function ye(){p=S(p),m=S(m),h=S(h),g&&(clearInterval(g),g=null),v&&(clearTimeout(v),v=null),oe(),de();}return{init:fe,trackWidgetOpened:pe,trackSessionStarted:me,trackSessionEnded:se,trackConversationStarted:he,trackConversationEnded:ge,trackDirectSupportClicked:_e,trackError:ve,destroy:ye};}//#endregion
497
497
  //#region src/services/persistence.service.ts
498
- var uE="zena_chat_state";function dE(){return{loadState:function loadState(){if((typeof window==="undefined"?"undefined":_typeof(window))>"u")return null;try{var e=sessionStorage.getItem(uE);return e?JSON.parse(e):null;}catch(e){return Cx(e,{context:{extra:{message:"Failed to load state from sessionStorage"}}}),null;}},saveState:function saveState(e){if(!((typeof window==="undefined"?"undefined":_typeof(window))>"u"))try{sessionStorage.setItem(uE,JSON.stringify(e));}catch(e){Cx(e,{context:{extra:{message:"Failed to save state to sessionStorage"}}});}},clearState:function clearState(){(typeof window==="undefined"?"undefined":_typeof(window))>"u"||sessionStorage.removeItem(uE);}};}//#endregion
498
+ var hE="zena_chat_state";function gE(){return{loadState:function loadState(){if((typeof window==="undefined"?"undefined":_typeof(window))>"u")return null;try{var e=sessionStorage.getItem(hE);return e?JSON.parse(e):null;}catch(e){return Ox(e,{context:{extra:{message:"Failed to load state from sessionStorage"}}}),null;}},saveState:function saveState(e){if(!((typeof window==="undefined"?"undefined":_typeof(window))>"u"))try{sessionStorage.setItem(hE,JSON.stringify(e));}catch(e){Ox(e,{context:{extra:{message:"Failed to save state to sessionStorage"}}});}},clearState:function clearState(){(typeof window==="undefined"?"undefined":_typeof(window))>"u"||sessionStorage.removeItem(hE);}};}//#endregion
499
499
  //#region src/ZenaChatbot.svelte
500
- var fE=/* @__PURE__ */G("<!> <!>",1),pE=/* @__PURE__ */G("<div class=\"zena-chatbot-root svelte-17ug9y\"><div><!> <!></div></div>"),mE={hash:"svelte-17ug9y",code:".svelte-17ug9y {box-sizing:border-box;font-family:inherit;}"};function hE(e,t){ct(t,!0),Wa(e,mE);var n=J(t,"panelistServerUrl",3,""),r=J(t,"availableSurveyIds",3,"[]"),i=J(t,"nativeApp",3,!1),a=J(t,"userId",3,""),o=J(t,"fabStyle",19,function(){return{};}),s=J(t,"fabShape",3,"circle"),c=J(t,"autoSuggestions",19,function(){return[];}),l=J(t,"defaultOpen",3,!1),u=J(t,"initialMessage",3,null),d=J(t,"maintenance",3,!1),f=/* @__PURE__ */L(vr({})),p=/* @__PURE__ */tr(function(){return _objectSpread(_objectSpread({},o()),W(f));}),m=/* @__PURE__ */tr(function(){return Object.entries(W(p)).map(function(_ref53){var _ref54=_slicedToArray(_ref53,2),e=_ref54[0],t=_ref54[1];return"".concat(e,":").concat(t);}).join(";");}),h=dE();function g(){var e=_.messages.filter(function(e){return e.type==="user";}).length;_.messages.length===0&&!v.conversationId?h.clearState():h.saveState({messages:_.messages,conversationId:v.conversationId,messagesCount:e});}var _=new qT(g),v=new YT(),y=/* @__PURE__ */tr(function(){return!d()&&t.zenaServerUrl&&t.authToken?QT({serverUrl:t.zenaServerUrl,authToken:t.authToken}):null;}),b=/* @__PURE__ */tr(function(){return n()&&t.authToken?ZT({serverUrl:n(),authToken:t.authToken}):null;}),x=/* @__PURE__ */tr(function(){return!d()&&t.zenaServerUrl&&t.authToken?fC({serverUrl:t.zenaServerUrl,authToken:t.authToken}):null;}),S=null;Ux(function(){return W(x);}),Gx(function(){return v.conversationId;});var C=/* @__PURE__ */L(vr(l())),w=/* @__PURE__ */L(!1),T=/* @__PURE__ */L(!1),ee=null,E=/* @__PURE__ */L(null),te=/* @__PURE__ */L(vr([])),ne=/* @__PURE__ */L(!1),D=!1,re=/* @__PURE__ */L(null);function ie(){return t.element?new Promise(function(e){var n=!1,r=function r(t){n||(n=!0,clearTimeout(i),e(Array.isArray(t)?t:null));},i=setTimeout(function(){return r(null);},1500);t.element.emit("get-available-surveys",{resolve:r});}):Promise.resolve(null);}function ae(){return _ae.apply(this,arguments);}function _ae(){_ae=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee21(){var e,_t153,_n99,_t154;return _regenerator().w(function(_context21){while(1)switch(_context21.p=_context21.n){case 0:if(function(){try{return JSON.parse(r()).length>0;}catch(e){return!1;}}()||W(ne)||D){_context21.n=8;break;}D=!0;_context21.p=1;_context21.n=2;return ie();case 2:_t153=_context21.v;if(!(_t153&&_t153.length>0)){_context21.n=3;break;}R(re,_t153,!0),R(ne,!0);return _context21.a(2);case 3:if(W(b)){_context21.n=4;break;}return _context21.a(2);case 4:_context21.n=5;return W(b).fetchAvailableSurveys(_objectSpread(_objectSpread({},XT),{},{client_type:$T(i())}));case 5:_n99=_context21.v;R(te,(e=_n99==null?void 0:_n99.surveys)==null?[]:e,!0),R(ne,!0);_context21.n=7;break;case 6:_context21.p=6;_t154=_context21.v;Cx(_t154,{context:{extra:{message:"fetchAvailableSurveys failed"}}});case 7:_context21.p=7;D=!1;return _context21.f(7);case 8:return _context21.a(2);}},_callee21,null,[[1,6,7,8]]);}));return _ae.apply(this,arguments);}Uo(function(){var e,n;sC(i());var r=h.loadState();r?(_.hydrate(r.messages),v.conversationId=r.conversationId):_.mount();var o=(e=u())==null||(e=e.text)==null?void 0:e.trim();o&&ye(o),t.element&&(t.element._registerCloseHandler(function(){R(C,!1);}),t.element._registerSummaryHandler(function(){return _.generateConversationSummary();}),t.element._registerFabStyleHandler(function(e){R(f,e,!0);})),t.posthogKey&&!d()&&(S=lE({posthogKey:t.posthogKey,posthogHost:t.posthogHost,nativeApp:i(),userId:a()||null}),S.init()),l()&&(S==null||S.trackWidgetOpened(),S==null||S.trackSessionStarted());var s=(n=t.element)==null?void 0:n.shadowRoot,c=function c(e){if(!W(C))return;var t=e.composedPath();s&&!t.includes(s)&&R(C,!1);};return document.addEventListener("click",c,!0),function(){if(document.removeEventListener("click",c,!0),ee&&(clearTimeout(ee),ee=null),S){var _e195=_.messages.filter(function(e){return e.type==="user";}).length;_e195>0&&S.trackConversationEnded(_e195),S.destroy();}};}),Gr(function(){if(!((typeof document==="undefined"?"undefined":_typeof(document))>"u"))return document.body.style.overflow=W(C)?"hidden":"",function(){document.body.style.overflow="";};}),Gr(function(){W(C)||le();});function oe(){var e=!W(C);R(C,e),e&&(S==null||S.trackWidgetOpened(),S==null||S.trackSessionStarted());}function se(){R(C,!1);}function ce(){var e=_.messages.filter(function(e){return e.type==="user";}).length;e>0&&(S==null||S.trackConversationEnded(e)),_.clearMessages(),v.conversationId=null,R(E,null),h.clearState(),le();}function le(){R(T,!1),ee&&(clearTimeout(ee),ee=null);}function ue(e){var n;(n=t.element)==null||n.emit("stuck-survey-selected",{survey:e});}function de(_x88){return _de.apply(this,arguments);}function _de(){_de=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee22(e){return _regenerator().w(function(_context22){while(1)switch(_context22.n){case 0:return _context22.a(2,t.element?new Promise(function(n){var r=!1,i=setTimeout(function(){r||n({});},4e3);t.element.emit("before-send",{message:e,resolve:function resolve(e){r||(r=!0,clearTimeout(i),n(e||{}));}});}):{});}},_callee22);}));return _de.apply(this,arguments);}function fe(e){if(!e)return!1;if(W(ne)&&W(te).length>0)return W(te).some(function(t){var n;return String((n=t.survey)==null?void 0:n.id)===String(e);});if(W(re)&&W(re).length>0)return W(re).some(function(t){return String(t)===String(e);});try{return JSON.parse(r()).some(function(t){return t&&_typeof(t)=="object"?String(t.survey_id)===String(e):String(t)===String(e);});}catch(e){return!1;}}function pe(_x89){return _pe.apply(this,arguments);}function _pe(){_pe=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee23(e){var t,n,r;return _regenerator().w(function(_context23){while(1)switch(_context23.n){case 0:t=W(b)||W(y);if(!(!t||!e.length)){_context23.n=1;break;}return _context23.a(2,e);case 1:n=e.map(function(e){var t;return{survey_id:Number((t=e.survey_id)==null?e.id:t),wave_id:Number(e.wave_id)};});_context23.n=2;return t.checkEligibility(n);case 2:r=_context23.v;return _context23.a(2,r!=null&&r.eligibility?e.map(function(e){var t;var n="".concat(Number((t=e.survey_id)==null?e.id:t)).concat(e.wave_id),i=r.eligibility[n];if(i===void 0)return e;var a=e.status;return a!=null&&a.toLowerCase().includes("available")&&(a=i?"Survey is available":"Survey currently not available"),_objectSpread(_objectSpread({},e),{},{status:a});}):e);}},_callee23);}));return _pe.apply(this,arguments);}function me(_x90){return _me.apply(this,arguments);}function _me(){_me=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee24(e){var t,_n100;return _regenerator().w(function(_context24){while(1)switch(_context24.n){case 0:if(!(e.response_type==="stuck_survey_dropdown")){_context24.n=1;break;}_.addMessage("assistant",e.response,!1,{surveys:e.surveys,responseType:"stuck"},!1);_context24.n=4;break;case 1:if(!(e.response_type==="survey_dropdown")){_context24.n=3;break;}_context24.n=2;return pe((t=e.surveys)==null?[]:t);case 2:_n100=_context24.v;_.addMessage("assistant",e.response,!1,{surveys:_n100,responseType:"available"},!1);_context24.n=4;break;case 3:e.response_type==="bonus_survey_dropdown"?_.addMessage("assistant",e.response,!1,{surveys:e.surveys,responseType:"bonus"},!1):e.response_type==="request_ticket_attachments"?_.addMessage("assistant",e.response,!1,{responseType:"request_ticket_attachments"}):e.response_type==="request_screenshot"?(_.disableFollowUpButtons(),_.addMessage("assistant",e.response,!1,{responseType:"request_screenshot"},!1)):e.response_type==="support_ticket_created"?_.addMessage("assistant",e.response,!1,{responseType:"support_ticket_created"},!1):_.addMessage("assistant",e.response||"I apologize, but I encountered an issue processing your request.");case 4:return _context24.a(2);}},_callee24);}));return _me.apply(this,arguments);}function he(_x91){return _he.apply(this,arguments);}function _he(){_he=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee25(e){var t,n,r,i,_e197,_args24=arguments,_t155;return _regenerator().w(function(_context25){while(1)switch(_context25.p=_context25.n){case 0:t=_args24.length>1&&_args24[1]!==undefined?_args24[1]:null;n=_args24.length>2&&_args24[2]!==undefined?_args24[2]:null;r="CREATE_SUPPORT_TICKET: ".concat(e,", DESCRIPTION: ").concat(_.generateConversationSummary());t&&(r+=", NOTES: ".concat(JSON.stringify(t,null,2))),n&&(r+=", MESSAGE: ".concat(n));_context25.n=1;return de(r);case 1:i=_context25.v;if(W(y)){_context25.n=2;break;}return _context25.a(2,!1);case 2:R(w,!0);_context25.p=3;_context25.n=4;return W(y).send(r,_e(),v.conversationId,i);case 4:_e197=_context25.v;return _context25.a(2,(ge(_e197),_e197.response_type==="request_ticket_attachments"?_.addMessage("assistant",_e197.response,!1,{responseType:"request_ticket_attachments"}):_e197.response_type==="request_screenshot"?_.addMessage("assistant",_e197.response,!1,{responseType:"request_screenshot"},!1):_.addMessage("assistant",_e197.response,!1,{},!1),!0));case 5:_context25.p=5;_t155=_context25.v;return _context25.a(2,(S==null||S.trackError("createSupportTicket",_t155==null?void 0:_t155.message),_.addMessage("assistant","There was an issue creating your support ticket. Please try again.",!0),!1));case 6:_context25.p=6;R(w,!1);return _context25.f(6);case 7:return _context25.a(2);}},_callee25,null,[[3,5,6,7]]);}));return _he.apply(this,arguments);}function ge(e){e.conversation_id&&(v.conversationId=e.conversation_id);}function _e(){return _.messages.filter(function(e){return e.content.trim().length>0;}).map(function(e){return{role:e.type==="user"?"user":"assistant",content:e.content};});}function ve(_x92,_x93){return _ve.apply(this,arguments);}function _ve(){_ve=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee26(e,t){var n,r,_r89,_args25=arguments,_t156;return _regenerator().w(function(_context26){while(1)switch(_context26.p=_context26.n){case 0:n=_args25.length>2&&_args25[2]!==undefined?_args25[2]:{};r=_args25.length>3&&_args25[3]!==undefined?_args25[3]:"sendMessage";if(!W(y)){_context26.n=6;break;}R(w,!0);_context26.p=1;_context26.n=2;return W(y).send(e,t,v.conversationId,n);case 2:_r89=_context26.v;ge(_r89);_context26.n=3;return me(_r89);case 3:_context26.n=5;break;case 4:_context26.p=4;_t156=_context26.v;S==null||S.trackError(r,_t156==null?void 0:_t156.message),_.addMessage("assistant","I'm having trouble connecting right now. Please try again in a moment.",!0);case 5:_context26.p=5;R(w,!1);return _context26.f(5);case 6:return _context26.a(2);}},_callee26,null,[[1,4,5,6]]);}));return _ve.apply(this,arguments);}function ye(_x94){return _ye.apply(this,arguments);}function _ye(){_ye=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee27(e){var _t157,_t158,_t159,_t160;return _regenerator().w(function(_context27){while(1)switch(_context27.n){case 0:_t157=!W(y)||W(w);if(_t157){_context27.n=2;break;}_t158=ve;_t159=e;_t160=_e();_context27.n=1;return de(e);case 1:_context27.n=2;return _t158(_t159,_t160,_context27.v,"sendInitialTrigger");case 2:return _context27.a(2);}},_callee27);}));return _ye.apply(this,arguments);}function be(_x95){return _be.apply(this,arguments);}function _be(){_be=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee28(e){var t,_t161,_t162,_t163;return _regenerator().w(function(_context28){while(1)switch(_context28.n){case 0:if(!(!e.trim()||W(w))){_context28.n=1;break;}return _context28.a(2);case 1:_.messages.filter(function(e){return e.type==="user";}).length===0&&(S==null||S.trackConversationStarted());t=_e();R(w,!0);_.addMessage("user",e);_t161=ve;_t162=e;_t163=t;_context28.n=2;return de(e);case 2:_context28.n=3;return _t161(_t162,_t163,_context28.v,"sendMessage");case 3:return _context28.a(2);}},_callee28);}));return _be.apply(this,arguments);}function xe(){return _xe.apply(this,arguments);}function _xe(){_xe=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee29(){var e,t,n,r,i,_args28=arguments;return _regenerator().w(function(_context29){while(1)switch(_context29.n){case 0:e=_args28.length>0&&_args28[0]!==undefined?_args28[0]:[];t=Array.isArray(e)?e:[],n=t.length>0,r=n?"Create ticket with supporting files.":"I do not have supporting files. Please continue creating the ticket.";if(n){_context29.n=1;break;}be(r);return _context29.a(2);case 1:i=_e();_.addMessage("user","",!1,{attachmentIds:t},!1);_context29.n=2;return ve(r,i,{attachment_ids:t},"handleAttachmentFlow");case 2:return _context29.a(2);}},_callee29);}));return _xe.apply(this,arguments);}function Se(){return _Se.apply(this,arguments);}function _Se(){_Se=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee30(){var e,t,n,r,_args29=arguments;return _regenerator().w(function(_context30){while(1)switch(_context30.n){case 0:e=_args29.length>0&&_args29[0]!==undefined?_args29[0]:[];t=Array.isArray(e)?e:[],n=t.length>0,r=n?"Here is the screenshot of my current screen.":"I am unable to provide a screenshot. Please continue.";if(n){_context30.n=1;break;}be(r);return _context30.a(2);case 1:_.addMessage("assistant","",!1,{attachmentIds:t},!1);_context30.n=2;return ve(r,_e(),{attachment_ids:t},"handleScreenshotFlow");case 2:return _context30.a(2);}},_callee30);}));return _Se.apply(this,arguments);}function Ce(e){e.type==="follow-up"?we(e.suggestion):e.type==="survey-select"?Te(e.survey,e.responseType):e.type==="attachment-flow"?xe(e.attachmentIds):e.type==="screenshot-flow"&&Se(e.attachmentIds);}function we(_x96){return _we.apply(this,arguments);}function _we(){_we=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee31(e){return _regenerator().w(function(_context31){while(1)switch(_context31.n){case 0:if(!(_.disableFollowUpButtons(),e===MC[0])){_context31.n=1;break;}_.addMessage("assistant","Thank you for using Zena!",!1,{},!1);return _context31.a(2);case 1:if(!(e==="Get Support from Our Team")){_context31.n=3;break;}S==null||S.trackDirectSupportClicked(v.conversationId);_.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context31.n=2;return he("General Support Request");case 2:return _context31.a(2);case 3:if(!(e===NC[0]||e===PC[0])){_context31.n=5;break;}_.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context31.n=4;return he("Question About My Survey Bonus",W(E));case 4:return _context31.a(2);case 5:if(!(e==="No, that's okay")){_context31.n=6;break;}_.addMessage("assistant","No problem! Let me know if you need anything else.",!1,{},!1);return _context31.a(2);case 6:_context31.n=7;return be(e);case 7:return _context31.a(2);}},_callee31);}));return _we.apply(this,arguments);}function Te(_x97,_x98){return _Te.apply(this,arguments);}function _Te(){_Te=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee32(e,t){var _t164,_n101,_r90,n,_t165,_t166,_n102,r,_n103,i,_a19,_t167;return _regenerator().w(function(_context32){while(1)switch(_context32.p=_context32.n){case 0:if(W(w)||!W(y)){_context32.n=23;break;}_.addMessage("user",e.name),R(w,!0);_context32.p=1;if(!(t==="bonus")){_context32.n=5;break;}R(E,e,!0);_t164="CHECK_BONUS_STATUS: ".concat(JSON.stringify({action:"check_bonus",survey_id:e.survey_id,wave_id:e.wave_id,users_wave_id:e.users_wave_id,name:e.name,completed_date:e.completed_date,completion_status:e.completion_status}));_context32.n=2;return de(_t164);case 2:_n101=_context32.v;_context32.n=3;return W(y).send(_t164,_e(),v.conversationId,_n101);case 3:_r90=_context32.v;if(!(ge(_r90),!_r90.response)){_context32.n=4;break;}_.addMessage("assistant","Could not fetch bonus details. Please try again.",!0);return _context32.a(2);case 4:_r90.response_type==="bonus_oversight_check"?(_r90.survey_info&&R(E,_r90.survey_info,!0),_.addMessage("assistant",_r90.response,!1,{surveys:_r90.surveys_info,responseType:"bonus_oversight"})):_.addMessage("assistant",_r90.response,!1,{responseType:"bonus"});return _context32.a(2);case 5:if(!(t==="stuck")){_context32.n=9;break;}_t165=(n=e.survey_id)==null?e.id:n;_context32.n=6;return ae();case 6:if(!fe(_t165)){_context32.n=7;break;}R(T,!0),ee&&clearTimeout(ee),ee=setTimeout(le,15e3),ue(e);return _context32.a(2);case 7:_.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context32.n=8;return he("Help with survey progress",e);case 8:return _context32.a(2);case 9:if(!(t==="available")){_context32.n=17;break;}_t166=e.name,_n102=e.status;if(!(_n102==="Survey Paused")){_context32.n=10;break;}_.addMessage("assistant","We apologize for the inconvenience. This survey is currently paused and temporarily unavailable. Don't worry — your progress has been saved! We'll notify you as soon as the survey resumes so you can continue from where you left off.",!1,{},!1);return _context32.a(2);case 10:if(!(_n102==="Survey Ended")){_context32.n=11;break;}_.addMessage("assistant","The survey has ended and is no longer available for participation.",!1,{},!1);return _context32.a(2);case 11:if(!(_n102==="Survey currently not available")){_context32.n=12;break;}_.addMessage("assistant","Sorry, this survey is not available for you right now. Please keep an eye on your campaigns and survey dashboard for new earning opportunities. We'll always notify you when we have surveys that match your profile!",!1,{},!1);return _context32.a(2);case 12:if(!(_n102==="Survey is available")){_context32.n=16;break;}_n103=(r=e.survey_id)==null?e.id:r;_context32.n=13;return ae();case 13:if(!fe(_n103)){_context32.n=14;break;}_.addMessage("assistant","Good news! Your survey is available on your dashboard. The link you clicked may have expired, but you can easily access it directly from your dashboard. Survey Name: \"".concat(_t166,"\". Please visit your dashboard to continue with this survey. Thank you!"),!1,{},!1);_context32.n=15;break;case 14:_.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context32.n=15;return he("Help with Survey Link/Access Issue",e,"We apologize for the technical difficulties you're experiencing. We've automatically created a support ticket for you and our team will get back to you within 48 business hours to resolve this issue. Thank you for your patience!");case 15:return _context32.a(2);case 16:_.addMessage("assistant","Survey \"".concat(_t166,"\" status: ").concat(_n102,". Please contact support for assistance."),!1,{},!1);return _context32.a(2);case 17:_context32.n=18;return de(e.name);case 18:i=_context32.v;_context32.n=19;return W(y).send(e.name,_e(),v.conversationId,i);case 19:_a19=_context32.v;ge(_a19);_context32.n=20;return me(_a19);case 20:_context32.n=22;break;case 21:_context32.p=21;_t167=_context32.v;S==null||S.trackError("handleSurveySelect",_t167==null?void 0:_t167.message),_.addMessage("assistant","An error occurred while processing your request.",!0);case 22:_context32.p=22;R(w,!1);return _context32.f(22);case 23:return _context32.a(2);}},_callee32,null,[[1,21,22,23]]);}));return _Te.apply(this,arguments);}var Ee=pE(),De=z(Ee),Oe=z(De);{var _e196=/* @__PURE__ */tr(function(){return!d();});gs(Oe,{get isOpen(){return W(C);},onClose:se,onReset:ce,get fabShape(){return s();},get showReset(){return W(_e196);},get compact(){return d();},children:function children(e,t){var n=fE(),r=kr(n),a=function a(e){WT(e,{get nativeApp(){return i();}});},o=function o(e){IT(e,{onClick:be,get prioritySuggestions(){return c();}});},s=function s(e){AT(e,{get messages(){return _.messages;},get isLoading(){return W(w);},get isRedirecting(){return W(T);},onAction:Ce});};q(r,function(e){d()?e(a):_.messages.length===0?e(o,1):e(s,-1);});var l=B(r,2),u=function u(e){{var _t152=/* @__PURE__ */tr(function(){return W(w)||W(T);});NT(e,{onSend:be,get disabled(){return W(_t152);}});}};q(l,function(e){d()||e(u);}),K(e,n);},$$slots:{default:!0}});}VT(B(Oe,2),{onClick:oe,get isOpen(){return W(C);},get shape(){return s();}}),A(De),A(Ee),V(function(){eo(De,1,s()==="rectangle"?"fixed right-0 bottom-0 h-fit z-[100] flex items-center":"fixed bottom-4 right-4 md:bottom-6 md:right-6 z-[100] flex items-end","svelte-17ug9y"),no(De,W(m));}),K(e,Ee),lt();}//#endregion
500
+ var _E=/* @__PURE__ */G("<!> <!>",1),vE=/* @__PURE__ */G("<div class=\"zena-chatbot-root svelte-17ug9y\"><div><!> <!></div></div>"),yE={hash:"svelte-17ug9y",code:".svelte-17ug9y {box-sizing:border-box;font-family:inherit;}"};function bE(e,t){ct(t,!0),Wa(e,yE);var n=J(t,"panelistServerUrl",3,""),r=J(t,"availableSurveyIds",3,"[]"),i=J(t,"nativeApp",3,!1),a=J(t,"userId",3,""),o=J(t,"fabStyle",19,function(){return{};}),s=J(t,"fabShape",3,"circle"),c=J(t,"autoSuggestions",19,function(){return[];}),l=J(t,"defaultOpen",3,!1),u=J(t,"initialMessage",3,null),d=J(t,"maintenance",3,!1),f=/* @__PURE__ */L(vr({})),p=/* @__PURE__ */tr(function(){return _objectSpread(_objectSpread({},o()),W(f));}),m=/* @__PURE__ */tr(function(){return Object.entries(W(p)).map(function(_ref53){var _ref54=_slicedToArray(_ref53,2),e=_ref54[0],t=_ref54[1];return"".concat(e,":").concat(t);}).join(";");}),h=gE();function g(){var e=_.messages.filter(function(e){return e.type==="user";}).length;_.messages.length===0&&!v.conversationId?h.clearState():h.saveState({messages:_.messages,conversationId:v.conversationId,messagesCount:e});}var _=new QT(g),v=new eE(),y=/* @__PURE__ */tr(function(){return!d()&&t.zenaServerUrl&&t.authToken?rE({serverUrl:t.zenaServerUrl,authToken:t.authToken}):null;}),b=/* @__PURE__ */tr(function(){return n()&&t.authToken?nE({serverUrl:n(),authToken:t.authToken}):null;}),x=/* @__PURE__ */tr(function(){return!d()&&t.zenaServerUrl&&t.authToken?gC({serverUrl:t.zenaServerUrl,authToken:t.authToken}):null;}),S=null;Jx(function(){return W(x);}),Xx(function(){return v.conversationId;});var C=/* @__PURE__ */L(vr(l())),w=/* @__PURE__ */L(!1),T=/* @__PURE__ */L(!1),ee=null,E=/* @__PURE__ */L(null),te=/* @__PURE__ */L(vr([])),ne=/* @__PURE__ */L(!1),D=!1,re=/* @__PURE__ */L(null);function ie(){return t.element?new Promise(function(e){var n=!1,r=function r(t){n||(n=!0,clearTimeout(i),e(Array.isArray(t)?t:null));},i=setTimeout(function(){return r(null);},1500);t.element.emit("get-available-surveys",{resolve:r});}):Promise.resolve(null);}function ae(){return _ae.apply(this,arguments);}function _ae(){_ae=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee21(){var e,_t153,_n99,_t154;return _regenerator().w(function(_context21){while(1)switch(_context21.p=_context21.n){case 0:if(function(){try{return JSON.parse(r()).length>0;}catch(e){return!1;}}()||W(ne)||D){_context21.n=8;break;}D=!0;_context21.p=1;_context21.n=2;return ie();case 2:_t153=_context21.v;if(!(_t153&&_t153.length>0)){_context21.n=3;break;}R(re,_t153,!0),R(ne,!0);return _context21.a(2);case 3:if(W(b)){_context21.n=4;break;}return _context21.a(2);case 4:_context21.n=5;return W(b).fetchAvailableSurveys(_objectSpread(_objectSpread({},tE),{},{client_type:iE(i())}));case 5:_n99=_context21.v;R(te,(e=_n99==null?void 0:_n99.surveys)==null?[]:e,!0),R(ne,!0);_context21.n=7;break;case 6:_context21.p=6;_t154=_context21.v;Ox(_t154,{context:{extra:{message:"fetchAvailableSurveys failed"}}});case 7:_context21.p=7;D=!1;return _context21.f(7);case 8:return _context21.a(2);}},_callee21,null,[[1,6,7,8]]);}));return _ae.apply(this,arguments);}Uo(function(){var e,n;dC(i());var r=h.loadState();r?(_.hydrate(r.messages),v.conversationId=r.conversationId):_.mount();var o=(e=u())==null||(e=e.text)==null?void 0:e.trim();o&&be(o),t.element&&(t.element._registerCloseHandler(function(){R(C,!1);}),t.element._registerSummaryHandler(function(){return _.generateConversationSummary();}),t.element._registerFabStyleHandler(function(e){R(f,e,!0);})),t.posthogKey&&!d()&&(S=mE({posthogKey:t.posthogKey,posthogHost:t.posthogHost,nativeApp:i(),userId:a()||null}),S.init()),l()&&(S==null||S.trackWidgetOpened(),S==null||S.trackSessionStarted());var s=(n=t.element)==null?void 0:n.shadowRoot,c=function c(e){if(!W(C))return;var t=e.composedPath();s&&!t.includes(s)&&R(C,!1);};return document.addEventListener("click",c,!0),function(){if(document.removeEventListener("click",c,!0),ee&&(clearTimeout(ee),ee=null),S){var _e195=_.messages.filter(function(e){return e.type==="user";}).length;_e195>0&&S.trackConversationEnded(_e195),S.destroy();}};}),Gr(function(){if(!((typeof document==="undefined"?"undefined":_typeof(document))>"u"))return document.body.style.overflow=W(C)?"hidden":"",function(){document.body.style.overflow="";};}),Gr(function(){W(C)||le();});function oe(){var e=!W(C);R(C,e),e&&(S==null||S.trackWidgetOpened(),S==null||S.trackSessionStarted());}function se(){R(C,!1);}function ce(){var e=_.messages.filter(function(e){return e.type==="user";}).length;e>0&&(S==null||S.trackConversationEnded(e)),_.clearMessages(),v.conversationId=null,R(E,null),h.clearState(),le();}function le(){R(T,!1),ee&&(clearTimeout(ee),ee=null);}function ue(e){var n;(n=t.element)==null||n.emit("stuck-survey-selected",{survey:e});}function de(_x88){return _de.apply(this,arguments);}function _de(){_de=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee22(e){return _regenerator().w(function(_context22){while(1)switch(_context22.n){case 0:return _context22.a(2,t.element?new Promise(function(n){var r=!1,i=setTimeout(function(){r||n({});},4e3);t.element.emit("before-send",{message:e,resolve:function resolve(e){r||(r=!0,clearTimeout(i),n(e||{}));}});}):{});}},_callee22);}));return _de.apply(this,arguments);}function fe(e){if(!e)return!1;if(W(ne)&&W(te).length>0)return W(te).some(function(t){var n;return String((n=t.survey)==null?void 0:n.id)===String(e);});if(W(re)&&W(re).length>0)return W(re).some(function(t){return String(t)===String(e);});try{return JSON.parse(r()).some(function(t){return t&&_typeof(t)=="object"?String(t.survey_id)===String(e):String(t)===String(e);});}catch(e){return!1;}}function pe(_x89){return _pe.apply(this,arguments);}function _pe(){_pe=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee23(e){var t,n,r;return _regenerator().w(function(_context23){while(1)switch(_context23.n){case 0:t=W(b)||W(y);if(!(!t||!e.length)){_context23.n=1;break;}return _context23.a(2,e);case 1:n=e.map(function(e){var t;return{survey_id:Number((t=e.survey_id)==null?e.id:t),wave_id:Number(e.wave_id)};});_context23.n=2;return t.checkEligibility(n);case 2:r=_context23.v;return _context23.a(2,r!=null&&r.eligibility?e.map(function(e){var t;var n="".concat(Number((t=e.survey_id)==null?e.id:t)).concat(e.wave_id),i=r.eligibility[n];if(i===void 0)return e;var a=e.status;return a!=null&&a.toLowerCase().includes("available")&&(a=i?"Survey is available":"Survey currently not available"),_objectSpread(_objectSpread({},e),{},{status:a});}):e);}},_callee23);}));return _pe.apply(this,arguments);}function me(_x90){return _me.apply(this,arguments);}function _me(){_me=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee24(e){var t,_n100;return _regenerator().w(function(_context24){while(1)switch(_context24.n){case 0:if(!(e.response_type==="stuck_survey_dropdown")){_context24.n=1;break;}_.addMessage("assistant",e.response,!1,_objectSpread(_objectSpread({},_e(e)),{},{surveys:e.surveys,responseType:"stuck"}),!1);_context24.n=4;break;case 1:if(!(e.response_type==="survey_dropdown")){_context24.n=3;break;}_context24.n=2;return pe((t=e.surveys)==null?[]:t);case 2:_n100=_context24.v;_.addMessage("assistant",e.response,!1,_objectSpread(_objectSpread({},_e(e)),{},{surveys:_n100,responseType:"available"}),!1);_context24.n=4;break;case 3:e.response_type==="bonus_survey_dropdown"?_.addMessage("assistant",e.response,!1,_objectSpread(_objectSpread({},_e(e)),{},{surveys:e.surveys,responseType:"bonus"}),!1):e.response_type==="request_ticket_attachments"?_.addMessage("assistant",e.response,!1,_objectSpread(_objectSpread({},_e(e)),{},{responseType:"request_ticket_attachments"})):e.response_type==="request_screenshot"?(_.disableFollowUpButtons(),_.addMessage("assistant",e.response,!1,_objectSpread(_objectSpread({},_e(e)),{},{responseType:"request_screenshot"}),!1)):e.response_type==="support_ticket_created"?_.addMessage("assistant",e.response,!1,_objectSpread(_objectSpread({},_e(e)),{},{responseType:"support_ticket_created"}),!1):_.addMessage("assistant",e.response||"I apologize, but I encountered an issue processing your request.",!1,_e(e));case 4:return _context24.a(2);}},_callee24);}));return _me.apply(this,arguments);}function he(_x91){return _he.apply(this,arguments);}function _he(){_he=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee25(e){var t,n,r,i,_e197,_args24=arguments,_t155;return _regenerator().w(function(_context25){while(1)switch(_context25.p=_context25.n){case 0:t=_args24.length>1&&_args24[1]!==undefined?_args24[1]:null;n=_args24.length>2&&_args24[2]!==undefined?_args24[2]:null;r="CREATE_SUPPORT_TICKET: ".concat(e,", DESCRIPTION: ").concat(_.generateConversationSummary());t&&(r+=", NOTES: ".concat(JSON.stringify(t,null,2))),n&&(r+=", MESSAGE: ".concat(n));_context25.n=1;return de(r);case 1:i=_context25.v;if(W(y)){_context25.n=2;break;}return _context25.a(2,!1);case 2:R(w,!0);_context25.p=3;_context25.n=4;return W(y).send(r,ve(),v.conversationId,i);case 4:_e197=_context25.v;return _context25.a(2,(ge(_e197),_e197.response_type==="request_ticket_attachments"?_.addMessage("assistant",_e197.response,!1,_objectSpread(_objectSpread({},_e(_e197)),{},{responseType:"request_ticket_attachments"})):_e197.response_type==="request_screenshot"?_.addMessage("assistant",_e197.response,!1,_objectSpread(_objectSpread({},_e(_e197)),{},{responseType:"request_screenshot"}),!1):_.addMessage("assistant",_e197.response,!1,_e(_e197),!1),!0));case 5:_context25.p=5;_t155=_context25.v;return _context25.a(2,(S==null||S.trackError("createSupportTicket",_t155==null?void 0:_t155.message),_.addMessage("assistant","There was an issue creating your support ticket. Please try again.",!0),!1));case 6:_context25.p=6;R(w,!1);return _context25.f(6);case 7:return _context25.a(2);}},_callee25,null,[[3,5,6,7]]);}));return _he.apply(this,arguments);}function ge(e){e.conversation_id&&(v.conversationId=e.conversation_id);}function _e(e){return e.response&&e.sig?{sig:e.sig}:{};}function ve(){return _.messages.filter(function(e){return e.content.trim().length>0;}).map(function(e){return e.type==="user"?{role:"user",content:e.content}:_objectSpread({role:"assistant",content:e.content},e.sig?{sig:e.sig}:{});});}function ye(_x92,_x93){return _ye.apply(this,arguments);}function _ye(){_ye=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee26(e,t){var n,r,_r89,_args25=arguments,_t156;return _regenerator().w(function(_context26){while(1)switch(_context26.p=_context26.n){case 0:n=_args25.length>2&&_args25[2]!==undefined?_args25[2]:{};r=_args25.length>3&&_args25[3]!==undefined?_args25[3]:"sendMessage";if(!W(y)){_context26.n=6;break;}R(w,!0);_context26.p=1;_context26.n=2;return W(y).send(e,t,v.conversationId,n);case 2:_r89=_context26.v;ge(_r89);_context26.n=3;return me(_r89);case 3:_context26.n=5;break;case 4:_context26.p=4;_t156=_context26.v;S==null||S.trackError(r,_t156==null?void 0:_t156.message),_.addMessage("assistant","I'm having trouble connecting right now. Please try again in a moment.",!0);case 5:_context26.p=5;R(w,!1);return _context26.f(5);case 6:return _context26.a(2);}},_callee26,null,[[1,4,5,6]]);}));return _ye.apply(this,arguments);}function be(_x94){return _be.apply(this,arguments);}function _be(){_be=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee27(e){var _t157,_t158,_t159,_t160;return _regenerator().w(function(_context27){while(1)switch(_context27.n){case 0:_t157=!W(y)||W(w);if(_t157){_context27.n=2;break;}_t158=ye;_t159=e;_t160=ve();_context27.n=1;return de(e);case 1:_context27.n=2;return _t158(_t159,_t160,_context27.v,"sendInitialTrigger");case 2:return _context27.a(2);}},_callee27);}));return _be.apply(this,arguments);}function xe(_x95){return _xe.apply(this,arguments);}function _xe(){_xe=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee28(e){var t,_t161,_t162,_t163;return _regenerator().w(function(_context28){while(1)switch(_context28.n){case 0:if(!(!e.trim()||W(w))){_context28.n=1;break;}return _context28.a(2);case 1:_.messages.filter(function(e){return e.type==="user";}).length===0&&(S==null||S.trackConversationStarted());t=ve();R(w,!0);_.addMessage("user",e);_t161=ye;_t162=e;_t163=t;_context28.n=2;return de(e);case 2:_context28.n=3;return _t161(_t162,_t163,_context28.v,"sendMessage");case 3:return _context28.a(2);}},_callee28);}));return _xe.apply(this,arguments);}function Se(){return _Se.apply(this,arguments);}function _Se(){_Se=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee29(){var e,t,n,r,i,_args28=arguments;return _regenerator().w(function(_context29){while(1)switch(_context29.n){case 0:e=_args28.length>0&&_args28[0]!==undefined?_args28[0]:[];t=Array.isArray(e)?e:[],n=t.length>0,r=n?"Create ticket with supporting files.":"I do not have supporting files. Please continue creating the ticket.";if(n){_context29.n=1;break;}xe(r);return _context29.a(2);case 1:i=ve();_.addMessage("user","",!1,{attachmentIds:t},!1);_context29.n=2;return ye(r,i,{attachment_ids:t},"handleAttachmentFlow");case 2:return _context29.a(2);}},_callee29);}));return _Se.apply(this,arguments);}function Ce(){return _Ce.apply(this,arguments);}function _Ce(){_Ce=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee30(){var e,t,n,r,_args29=arguments;return _regenerator().w(function(_context30){while(1)switch(_context30.n){case 0:e=_args29.length>0&&_args29[0]!==undefined?_args29[0]:[];t=Array.isArray(e)?e:[],n=t.length>0,r=n?"Here is the screenshot of my current screen.":"I am unable to provide a screenshot. Please continue.";if(n){_context30.n=1;break;}xe(r);return _context30.a(2);case 1:_.addMessage("assistant","",!1,{attachmentIds:t},!1);_context30.n=2;return ye(r,ve(),{attachment_ids:t},"handleScreenshotFlow");case 2:return _context30.a(2);}},_callee30);}));return _Ce.apply(this,arguments);}function we(e){e.type==="follow-up"?Te(e.suggestion):e.type==="survey-select"?Ee(e.survey,e.responseType):e.type==="attachment-flow"?Se(e.attachmentIds):e.type==="screenshot-flow"&&Ce(e.attachmentIds);}function Te(_x96){return _Te.apply(this,arguments);}function _Te(){_Te=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee31(e){return _regenerator().w(function(_context31){while(1)switch(_context31.n){case 0:if(!(_.disableFollowUpButtons(),e===IC[0])){_context31.n=1;break;}_.addMessage("assistant","Thank you for using Zena!",!1,{},!1);return _context31.a(2);case 1:if(!(e==="Get Support from Our Team")){_context31.n=3;break;}S==null||S.trackDirectSupportClicked(v.conversationId);_.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context31.n=2;return he("General Support Request");case 2:return _context31.a(2);case 3:if(!(e===LC[0]||e===RC[0])){_context31.n=5;break;}_.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context31.n=4;return he("Question About My Survey Bonus",W(E));case 4:return _context31.a(2);case 5:if(!(e==="No, that's okay")){_context31.n=6;break;}_.addMessage("assistant","No problem! Let me know if you need anything else.",!1,{},!1);return _context31.a(2);case 6:_context31.n=7;return xe(e);case 7:return _context31.a(2);}},_callee31);}));return _Te.apply(this,arguments);}function Ee(_x97,_x98){return _Ee.apply(this,arguments);}function _Ee(){_Ee=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee32(e,t){var _t164,_n101,_r90,n,_t165,_t166,_n102,r,_n103,i,_a19,_t167;return _regenerator().w(function(_context32){while(1)switch(_context32.p=_context32.n){case 0:if(W(w)||!W(y)){_context32.n=23;break;}_.addMessage("user",e.name),R(w,!0);_context32.p=1;if(!(t==="bonus")){_context32.n=5;break;}R(E,e,!0);_t164="CHECK_BONUS_STATUS: ".concat(JSON.stringify({action:"check_bonus",survey_id:e.survey_id,wave_id:e.wave_id,users_wave_id:e.users_wave_id,name:e.name,completed_date:e.completed_date,completion_status:e.completion_status}));_context32.n=2;return de(_t164);case 2:_n101=_context32.v;_context32.n=3;return W(y).send(_t164,ve(),v.conversationId,_n101);case 3:_r90=_context32.v;if(!(ge(_r90),!_r90.response)){_context32.n=4;break;}_.addMessage("assistant","Could not fetch bonus details. Please try again.",!0);return _context32.a(2);case 4:_r90.response_type==="bonus_oversight_check"?(_r90.survey_info&&R(E,_r90.survey_info,!0),_.addMessage("assistant",_r90.response,!1,_objectSpread(_objectSpread({},_e(_r90)),{},{surveys:_r90.surveys_info,responseType:"bonus_oversight"}))):_.addMessage("assistant",_r90.response,!1,_objectSpread(_objectSpread({},_e(_r90)),{},{responseType:"bonus"}));return _context32.a(2);case 5:if(!(t==="stuck")){_context32.n=9;break;}_t165=(n=e.survey_id)==null?e.id:n;_context32.n=6;return ae();case 6:if(!fe(_t165)){_context32.n=7;break;}R(T,!0),ee&&clearTimeout(ee),ee=setTimeout(le,15e3),ue(e);return _context32.a(2);case 7:_.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context32.n=8;return he("Help with survey progress",e);case 8:return _context32.a(2);case 9:if(!(t==="available")){_context32.n=17;break;}_t166=e.name,_n102=e.status;if(!(_n102==="Survey Paused")){_context32.n=10;break;}_.addMessage("assistant","We apologize for the inconvenience. This survey is currently paused and temporarily unavailable. Don't worry — your progress has been saved! We'll notify you as soon as the survey resumes so you can continue from where you left off.",!1,{},!1);return _context32.a(2);case 10:if(!(_n102==="Survey Ended")){_context32.n=11;break;}_.addMessage("assistant","The survey has ended and is no longer available for participation.",!1,{},!1);return _context32.a(2);case 11:if(!(_n102==="Survey currently not available")){_context32.n=12;break;}_.addMessage("assistant","Sorry, this survey is not available for you right now. Please keep an eye on your campaigns and survey dashboard for new earning opportunities. We'll always notify you when we have surveys that match your profile!",!1,{},!1);return _context32.a(2);case 12:if(!(_n102==="Survey is available")){_context32.n=16;break;}_n103=(r=e.survey_id)==null?e.id:r;_context32.n=13;return ae();case 13:if(!fe(_n103)){_context32.n=14;break;}_.addMessage("assistant","Good news! Your survey is available on your dashboard. The link you clicked may have expired, but you can easily access it directly from your dashboard. Survey Name: \"".concat(_t166,"\". Please visit your dashboard to continue with this survey. Thank you!"),!1,{},!1);_context32.n=15;break;case 14:_.addMessage("assistant","Please give me a moment while I verify this…",!1,{},!1);_context32.n=15;return he("Help with Survey Link/Access Issue",e,"We apologize for the technical difficulties you're experiencing. We've automatically created a support ticket for you and our team will get back to you within 48 business hours to resolve this issue. Thank you for your patience!");case 15:return _context32.a(2);case 16:_.addMessage("assistant","Survey \"".concat(_t166,"\" status: ").concat(_n102,". Please contact support for assistance."),!1,{},!1);return _context32.a(2);case 17:_context32.n=18;return de(e.name);case 18:i=_context32.v;_context32.n=19;return W(y).send(e.name,ve(),v.conversationId,i);case 19:_a19=_context32.v;ge(_a19);_context32.n=20;return me(_a19);case 20:_context32.n=22;break;case 21:_context32.p=21;_t167=_context32.v;S==null||S.trackError("handleSurveySelect",_t167==null?void 0:_t167.message),_.addMessage("assistant","An error occurred while processing your request.",!0);case 22:_context32.p=22;R(w,!1);return _context32.f(22);case 23:return _context32.a(2);}},_callee32,null,[[1,21,22,23]]);}));return _Ee.apply(this,arguments);}var De=vE(),Oe=z(De),ke=z(Oe);{var _e196=/* @__PURE__ */tr(function(){return!d();});gs(ke,{get isOpen(){return W(C);},onClose:se,onReset:ce,get fabShape(){return s();},get showReset(){return W(_e196);},get compact(){return d();},children:function children(e,t){var n=_E(),r=kr(n),a=function a(e){YT(e,{get nativeApp(){return i();}});},o=function o(e){VT(e,{onClick:xe,get prioritySuggestions(){return c();}});},s=function s(e){FT(e,{get messages(){return _.messages;},get isLoading(){return W(w);},get isRedirecting(){return W(T);},onAction:we});};q(r,function(e){d()?e(a):_.messages.length===0?e(o,1):e(s,-1);});var l=B(r,2),u=function u(e){{var _t152=/* @__PURE__ */tr(function(){return W(w)||W(T);});RT(e,{onSend:xe,get disabled(){return W(_t152);}});}};q(l,function(e){d()||e(u);}),K(e,n);},$$slots:{default:!0}});}KT(B(ke,2),{onClick:oe,get isOpen(){return W(C);},get shape(){return s();}}),A(Oe),A(De),V(function(){eo(Oe,1,s()==="rectangle"?"fixed right-0 bottom-0 h-fit z-[100] flex items-center":"fixed bottom-4 right-4 md:bottom-6 md:right-6 z-[100] flex items-end","svelte-17ug9y"),no(Oe,W(m));}),K(e,De),lt();}//#endregion
501
501
  //#region src/app.css?inline
502
- var gE="/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 transparent;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 transparent;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 transparent;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 transparent;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 transparent;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--color-red-50:#fef2f2;--color-red-100:#ffe2e2;--color-red-300:#ffa3a3;--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-green-400:#05df72;--color-green-500:#00c758;--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-50:lab(96.5005% 4.18508 1.52328);--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-300:lab(76.5514% 36.422 15.5335);--color-red-400:lab(63.7053% 60.745 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-green-400:lab(78.503% -64.9265 39.7492);--color-green-500:lab(70.5521% -66.5147 45.8073)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:transparent;border-radius:0}::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:transparent;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:transparent;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:20px}:where(select:is([multiple],[size])) optgroup option:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:20px}:where(select:-webkit-any([multiple],[size])) optgroup option:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:20px}:where(select:is([multiple],[size])) optgroup option:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:20px}:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)))::-webkit-file-upload-button{margin-right:4px}:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)))::file-selector-button{margin-right:4px}:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))::-webkit-file-upload-button{margin-left:4px}:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))::file-selector-button{margin-left:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button{-webkit-appearance:button;appearance:button}input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.start:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:var(--spacing)}.start:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:var(--spacing)}.start:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:var(--spacing)}.start:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:var(--spacing)}.end:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:var(--spacing)}.end:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:var(--spacing)}.end:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:var(--spacing)}.end:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:var(--spacing)}.top-1\\/2{top:50%}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.right-0{right:calc(var(--spacing) * 0)}.right-4{right:calc(var(--spacing) * 4)}.right-full{right:100%}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-4{bottom:calc(var(--spacing) * 4)}.left-0{left:calc(var(--spacing) * 0)}.left-4{left:calc(var(--spacing) * 4)}.z-10{z-index:10}.z-40{z-index:40}.z-\\[2\\]{z-index:2}.z-\\[100\\]{z-index:100}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.-mt-\\[5px\\]{margin-top:-5px}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-3{margin-right:calc(var(--spacing) * 3)}.mb-0{margin-bottom:calc(var(--spacing) * 0)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-\\[60px\\]{margin-left:60px}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-32{height:calc(var(--spacing) * 32)}.h-\\[50px\\]{height:50px}.h-\\[60px\\]{height:60px}.h-\\[80vh\\]{height:80vh}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-\\[100px\\]{max-height:100px}.max-h-\\[300px\\]{max-height:300px}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-\\[60px\\]{min-height:60px}.min-h-\\[320px\\]{min-height:320px}.min-h-min{min-height:min-content}.w-2{width:calc(var(--spacing) * 2)}.w-3{width:calc(var(--spacing) * 3)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-16{width:calc(var(--spacing) * 16)}.w-48{width:calc(var(--spacing) * 48)}.w-\\[2px\\]{width:2px}.w-\\[24px\\]{width:24px}.w-\\[50px\\]{width:50px}.w-\\[60px\\]{width:60px}.w-full{width:100%}.max-w-\\[28rem\\]{max-width:28rem}.max-w-\\[80\\%\\]{max-width:80%}.max-w-\\[100vw\\]{max-width:100vw}.max-w-\\[calc\\(50\\%-4px\\)\\]{max-width:calc(50% - 4px)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-12{min-width:calc(var(--spacing) * 12)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.\\[transform-origin\\:left_center\\]{transform-origin:0}.translate-x-2{--tw-translate-x:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-45{rotate:45deg}.\\[animation\\:bouncing-loader_0\\.6s_infinite_alternate\\]{animation:.6s infinite alternate bouncing-loader}.\\[animation\\:fadeIn_0\\.3s_ease\\]{animation:.3s fadeIn}.\\[animation\\:slideInUp_0\\.3s_ease-out\\]{animation:.3s ease-out slideInUp}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-\\[0\\.4rem\\]{border-radius:.4rem}.rounded-\\[1\\.25rem\\]{border-radius:1.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-xl{border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}.rounded-l-lg{border-top-left-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.rounded-b-lg{border-bottom-right-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.rounded-br-lg{border-bottom-right-radius:var(--radius-lg)}.rounded-bl-lg{border-bottom-left-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#0a284c\\]{border-color:#0a284c}.border-\\[\\#79c03c\\]{border-color:#79c03c}.border-\\[\\#27272a\\]{border-color:#27272a}.border-\\[\\#29374c\\]{border-color:#29374c}.border-\\[rgba\\(121\\,192\\,60\\,0\\.2\\)\\]{border-color:rgba(121,192,60,.2)}.border-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]{border-color:rgba(255,255,255,.1)}.border-\\[rgba\\(255\\,255\\,255\\,0\\.2\\)\\]{border-color:rgba(255,255,255,.2)}.border-red-300{border-color:var(--color-red-300)}.border-white\\/20{border-color:rgba(255,255,255,.2)}@supports (color:color-mix(in lab, red, red)){.border-white\\/20{border-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.border-white\\/30{border-color:rgba(255,255,255,.3)}@supports (color:color-mix(in lab, red, red)){.border-white\\/30{border-color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.border-t-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]{border-top-color:rgba(255,255,255,.1)}.border-t-white\\/70{border-top-color:rgba(255,255,255,.7)}@supports (color:color-mix(in lab, red, red)){.border-t-white\\/70{border-top-color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.border-b-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]{border-bottom-color:rgba(255,255,255,.1)}.border-l-red-500{border-left-color:var(--color-red-500)}.bg-\\[\\#0a284c\\]{background-color:#0a284c}.bg-\\[\\#0f172b\\]{background-color:#0f172b}.bg-\\[\\#1d293d\\]{background-color:#1d293d}.bg-\\[\\#1e293b\\]{background-color:#1e293b}.bg-\\[\\#77c03a\\]{background-color:#77c03a}.bg-\\[\\#79c03c\\]{background-color:#79c03c}.bg-\\[\\#27272a4d\\]{background-color:rgba(39,39,42,.3)}.bg-\\[\\#29374c\\]{background-color:#29374c}.bg-\\[\\#45556c\\]{background-color:#45556c}.bg-\\[\\#334155\\]{background-color:#334155}.bg-\\[\\#475569\\]{background-color:#475569}.bg-\\[rgba\\(121\\,192\\,60\\,0\\.05\\)\\]{background-color:rgba(121,192,60,.05)}.bg-black\\/15{background-color:rgba(0,0,0,.15)}@supports (color:color-mix(in lab, red, red)){.bg-black\\/15{background-color:color-mix(in oklab, var(--color-black) 15%, transparent)}}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:transparent}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\\[4px\\]{padding-left:4px;padding-right:4px}.py-0{padding-block:calc(var(--spacing) * 0)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-11{padding-left:calc(var(--spacing) * 11)}.text-center{text-align:center}.text-left{text-align:left}.\\[font-family\\:\\'Poppins\\'\\,sans-serif\\]{font-family:Poppins,sans-serif}.\\[font-family\\:inherit\\]{font-family:inherit}.font-\\[Poppins\\,sans-serif\\]{font-family:Poppins,sans-serif}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[0\\.7rem\\]{font-size:.7rem}.text-\\[10px\\]{font-size:10px}.leading-\\[1\\.2\\]{--tw-leading:1.2;line-height:1.2}.leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}.leading-\\[1\\.5\\]{--tw-leading:1.5;line-height:1.5}.leading-\\[1\\.25\\]{--tw-leading:1.25;line-height:1.25}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#79C03B\\]{color:#79c03b}.text-\\[\\#79c03c\\]{color:#79c03c}.text-\\[\\#94a3b8\\]{color:#94a3b8}.text-\\[\\#666\\]{color:#666}.text-\\[\\#999\\]{color:#999}.text-\\[\\#45556c\\]{color:#45556c}.text-green-400{color:var(--color-green-400)}.text-green-500{color:var(--color-green-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.text-white\\/60{color:rgba(255,255,255,.6)}@supports (color:color-mix(in lab, red, red)){.text-white\\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.text-white\\/70{color:rgba(255,255,255,.7)}@supports (color:color-mix(in lab, red, red)){.text-white\\/70{color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.text-white\\/85{color:rgba(255,255,255,.85)}@supports (color:color-mix(in lab, red, red)){.text-white\\/85{color:color-mix(in oklab, var(--color-white) 85%, transparent)}}.italic{font-style:italic}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,rgba(0,0,0,.1)), 0 1px 2px -1px var(--tw-shadow-color,rgba(0,0,0,.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_10px_15px_-3px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\,_0_4px_6px_-2px_rgba\\(0\\,0\\,0\\,0\\.05\\)\\]{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,rgba(0,0,0,.1)), 0 4px 6px -2px var(--tw-shadow-color,rgba(0,0,0,.05));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_20px_25px_-5px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\,_0_10px_10px_-5px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,rgba(0,0,0,.1)), 0 10px 10px -5px var(--tw-shadow-color,rgba(0,0,0,.04));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,rgba(0,0,0,.1)), 0 2px 4px -2px var(--tw-shadow-color,rgba(0,0,0,.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.\\[animation-delay\\:0\\.1s\\]{animation-delay:.1s}.\\[animation-delay\\:0\\.2s\\]{animation-delay:.2s}.\\[animation-delay\\:0\\.3s\\]{animation-delay:.3s}.\\[transition\\:opacity_0\\.3s_ease\\,transform_0\\.3s_ease\\]{transition:opacity .3s,transform .3s}.\\[word-wrap\\:break-word\\]{word-wrap:break-word}@media (hover:hover){.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\\:translate-x-0:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\\:text-\\[\\#94a3b8\\]::placeholder{color:#94a3b8}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\\:-translate-y-px:hover{--tw-translate-y:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-\\[1\\.03\\]:hover{scale:1.03}.hover\\:border-\\[\\#79c03c\\]:hover{border-color:#79c03c}.hover\\:border-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:hover{border-color:rgba(255,255,255,.5)}.hover\\:bg-\\[\\#2a3a52\\]:hover{background-color:#2a3a52}.hover\\:bg-\\[\\#6aad35\\]:hover{background-color:#6aad35}.hover\\:bg-\\[\\#29374c\\]:hover{background-color:#29374c}.hover\\:bg-\\[rgba\\(121\\,192\\,60\\,0\\.1\\)\\]:hover{background-color:rgba(121,192,60,.1)}.hover\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]:hover{background-color:rgba(255,255,255,.1)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:text-red-500:hover{color:var(--color-red-500)}}.focus\\:border-\\[\\#79c03c\\]:focus{border-color:#79c03c}.focus\\:shadow-\\[0_0_0_2px_rgba\\(121\\,192\\,60\\,0\\.1\\)\\]:focus{--tw-shadow:0 0 0 2px var(--tw-shadow-color,rgba(121,192,60,.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:translate-y-0:active{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:scale-\\[0\\.98\\]:active{scale:.98}@media (hover:hover){.enabled\\:hover\\:opacity-90:enabled:hover{opacity:.9}}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-\\[\\#ccc\\]:disabled{border-color:#ccc}.disabled\\:bg-\\[\\#ccc\\]:disabled{background-color:#ccc}.disabled\\:text-\\[\\#999\\]:disabled{color:#999}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-60:disabled{opacity:.6}@media not all and (min-width:500px){.max-\\[500px\\]\\:right-0{right:calc(var(--spacing) * 0)}.max-\\[500px\\]\\:left-0{left:calc(var(--spacing) * 0)}.max-\\[500px\\]\\:mx-auto{margin-left:auto;margin-right:auto}.max-\\[500px\\]\\:hidden{display:none}.max-\\[500px\\]\\:max-w-\\[calc\\(100vw-20px\\)\\]{max-width:calc(100vw - 20px)}}@media not all and (min-width:480px){.max-\\[480px\\]\\:fixed{position:fixed}.max-\\[480px\\]\\:inset-0{inset:calc(var(--spacing) * 0)}.max-\\[480px\\]\\:z-\\[39\\]{z-index:39}.max-\\[480px\\]\\:block{display:block}.max-\\[480px\\]\\:\\[animation\\:fadeIn_0\\.3s_forwards\\]{animation:.3s forwards fadeIn}.max-\\[480px\\]\\:bg-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{background-color:rgba(0,0,0,.5)}.max-\\[480px\\]\\:opacity-0{opacity:0}}@media not all and (min-width:48rem){.max-md\\:left-3{left:calc(var(--spacing) * 3)}.max-md\\:mt-0{margin-top:calc(var(--spacing) * 0)}.max-md\\:mt-2{margin-top:calc(var(--spacing) * 2)}.max-md\\:mt-3{margin-top:calc(var(--spacing) * 3)}.max-md\\:mb-4{margin-bottom:calc(var(--spacing) * 4)}.max-md\\:mb-5{margin-bottom:calc(var(--spacing) * 5)}.max-md\\:ml-\\[56px\\]{margin-left:56px}.max-md\\:h-9{height:calc(var(--spacing) * 9)}.max-md\\:h-14{height:calc(var(--spacing) * 14)}.max-md\\:h-28{height:calc(var(--spacing) * 28)}.max-md\\:h-\\[50px\\]{height:50px}.max-md\\:min-h-10{min-height:calc(var(--spacing) * 10)}.max-md\\:w-9{width:calc(var(--spacing) * 9)}.max-md\\:w-14{width:calc(var(--spacing) * 14)}.max-md\\:w-40{width:calc(var(--spacing) * 40)}.max-md\\:w-\\[50px\\]{width:50px}.max-md\\:w-full{width:100%}.max-md\\:max-w-\\[85\\%\\]{max-width:85%}.max-md\\:min-w-10{min-width:calc(var(--spacing) * 10)}.max-md\\:flex-col{flex-direction:column}.max-md\\:gap-0{gap:calc(var(--spacing) * 0)}.max-md\\:gap-1{gap:calc(var(--spacing) * 1)}.max-md\\:gap-2{gap:calc(var(--spacing) * 2)}.max-md\\:rounded-lg{border-radius:var(--radius-lg)}.max-md\\:p-3{padding:calc(var(--spacing) * 3)}.max-md\\:p-4{padding:calc(var(--spacing) * 4)}.max-md\\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-md\\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-md\\:py-2{padding-block:calc(var(--spacing) * 2)}.max-md\\:py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.max-md\\:py-3{padding-block:calc(var(--spacing) * 3)}.max-md\\:pt-\\[11px\\]{padding-top:11px}.max-md\\:pr-3{padding-right:calc(var(--spacing) * 3)}.max-md\\:pr-4{padding-right:calc(var(--spacing) * 4)}.max-md\\:pb-\\[11px\\]{padding-bottom:11px}.max-md\\:pl-4{padding-left:calc(var(--spacing) * 4)}.max-md\\:pl-9{padding-left:calc(var(--spacing) * 9)}.max-md\\:text-\\[0\\.7rem\\]{font-size:.7rem}.max-md\\:text-\\[0\\.8rem\\]{font-size:.8rem}.max-md\\:text-\\[0\\.9rem\\]{font-size:.9rem}.max-md\\:text-\\[0\\.85rem\\]{font-size:.85rem}.max-md\\:text-\\[11px\\]{font-size:11px}.max-md\\:text-\\[13px\\]{font-size:13px}.max-md\\:leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}}@media not all and (min-width:40rem){.max-sm\\:max-h-\\[80px\\]{max-height:80px}.max-sm\\:min-h-11{min-height:calc(var(--spacing) * 11)}.max-sm\\:min-w-11{min-width:calc(var(--spacing) * 11)}.max-sm\\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-sm\\:py-2{padding-block:calc(var(--spacing) * 2)}.max-sm\\:pt-\\[10px\\]{padding-top:10px}.max-sm\\:pr-3{padding-right:calc(var(--spacing) * 3)}.max-sm\\:pb-\\[10px\\]{padding-bottom:10px}.max-sm\\:pl-3{padding-left:calc(var(--spacing) * 3)}.max-sm\\:text-\\[0\\.85rem\\]{font-size:.85rem}.max-sm\\:leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}}@media (min-width:48rem){.md\\:absolute{position:absolute}.md\\:top-1\\/2{top:50%}.md\\:right-6{right:calc(var(--spacing) * 6)}.md\\:right-full{right:100%}.md\\:bottom-0{bottom:calc(var(--spacing) * 0)}.md\\:bottom-6{bottom:calc(var(--spacing) * 6)}.md\\:mr-4{margin-right:calc(var(--spacing) * 4)}.md\\:h-16{height:calc(var(--spacing) * 16)}.md\\:h-\\[648px\\]{height:648px}.md\\:h-auto{height:auto}.md\\:max-h-\\[90vh\\]{max-height:90vh}.md\\:max-h-\\[120px\\]{max-height:120px}.md\\:min-h-12{min-height:calc(var(--spacing) * 12)}.md\\:w-16{width:calc(var(--spacing) * 16)}.md\\:w-\\[576px\\]{width:576px}.md\\:max-w-\\[100vw\\]{max-width:100vw}.md\\:-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.md\\:p-8{padding:calc(var(--spacing) * 8)}.md\\:px-6{padding-inline:calc(var(--spacing) * 6)}.md\\:px-8{padding-inline:calc(var(--spacing) * 8)}}.\\[\\&_svg\\]\\:h-5 svg{height:calc(var(--spacing) * 5)}.\\[\\&_svg\\]\\:w-5 svg{width:calc(var(--spacing) * 5)}@media not all and (min-width:48rem){.max-md\\:\\[\\&_svg\\]\\:h-\\[1\\.2rem\\] svg{height:1.2rem}.max-md\\:\\[\\&_svg\\]\\:w-\\[1\\.2rem\\] svg{width:1.2rem}}@media not all and (min-width:40rem){.max-sm\\:\\[\\&_svg\\]\\:h-\\[1\\.1rem\\] svg{height:1.1rem}.max-sm\\:\\[\\&_svg\\]\\:w-\\[1\\.1rem\\] svg{width:1.1rem}}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}.\\[\\&\\>svg\\]\\:h-full>svg{height:100%}.\\[\\&\\>svg\\]\\:w-full>svg{width:100%}}@keyframes bouncing-loader{to{opacity:.1;transform:translateY(-.25rem)}}@keyframes smoothFadeIn{0%{opacity:0;transform:translate(-12px)}60%{opacity:.8;transform:translate(0)}to{opacity:1;transform:translate(0)}}@keyframes smoothFadeOut{0%{opacity:1;transform:translate(0)}40%{opacity:.8;transform:translate(0)}to{opacity:0;transform:translate(-12px)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInUp{0%{opacity:0;transform:translateY(1rem)}to{opacity:1;transform:translateY(0)}}.typing-indicator__message--enter{animation:.5s cubic-bezier(.4,0,.2,1) smoothFadeIn}.typing-indicator__message--exit{animation:.5s cubic-bezier(.4,0,.2,1) smoothFadeOut}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}",_E=2e3,vE=/* @__PURE__ */new WeakMap(),yE=/* @__PURE__ */new WeakMap(),bE=/* @__PURE__ */new WeakMap(),xE=/* @__PURE__ */new WeakMap(),SE=/* @__PURE__ */new WeakMap(),CE=/* @__PURE__ */new WeakMap(),wE=/* @__PURE__ */new WeakMap(),TE=/* @__PURE__ */new WeakSet(),EE=/*#__PURE__*/function(_HTMLElement){function EE(){var _this35;_classCallCheck(this,EE);for(var _len23=arguments.length,e=new Array(_len23),_key23=0;_key23<_len23;_key23++){e[_key23]=arguments[_key23];}_this35=_callSuper(this,EE,[].concat(e)),Ot(_assertThisInitialized(_this35),TE),M(_assertThisInitialized(_this35),vE,void 0),M(_assertThisInitialized(_this35),yE,/* @__PURE__ */new Map()),M(_assertThisInitialized(_this35),bE,null),M(_assertThisInitialized(_this35),xE,null),M(_assertThisInitialized(_this35),SE,null),M(_assertThisInitialized(_this35),CE,{authToken:""}),M(_assertThisInitialized(_this35),wE,null);return _this35;}_inherits(EE,_HTMLElement);return _createClass(EE,[{key:"connectedCallback",value:function(){var _connectedCallback=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee33(){var e,_t168,t,_t169,_t170,_t171;return _regenerator().w(function(_context33){while(1)switch(_context33.n){case 0:e=this;_t169=F;_t170=CE;_t171=e;_context33.n=1;return N(TE,e,DE).call(e);case 1:_t169(_t170,_t171,_context33.v);if(!P(CE,e).sentryDsn){_context33.n=2;break;}_t168=P(CE,e).sentryRelease||"zena-chatbot-client@1.0.5";_x(P(CE,e).sentryDsn,_t168,e);case 2:t=e.attachShadow({mode:"open"});N(TE,e,OE).call(e,t),F(vE,e,_a(hE,{target:t,props:_objectSpread(_objectSpread({},N(TE,e,AE).call(e)),{},{element:e})}));case 3:return _context33.a(2);}},_callee33,this);}));function connectedCallback(){return _connectedCallback.apply(this,arguments);}return connectedCallback;}()},{key:"attributeChangedCallback",value:function attributeChangedCallback(e,t,n){t===n||!P(vE,this)||!this.shadowRoot||(xa(P(vE,this)),N(TE,this,OE).call(this,this.shadowRoot),F(vE,this,_a(hE,{target:this.shadowRoot,props:_objectSpread(_objectSpread({},N(TE,this,AE).call(this)),{},{element:this})})));}},{key:"disconnectedCallback",value:function disconnectedCallback(){P(vE,this)&&(xa(P(vE,this)),F(vE,this,null));}},{key:"_registerCloseHandler",value:function _registerCloseHandler(e){F(bE,this,e);}},{key:"close",value:function close(){P(bE,this)&&P(bE,this).call(this);}},{key:"_registerSummaryHandler",value:function _registerSummaryHandler(e){F(xE,this,e);}},{key:"generateConversationSummary",value:function generateConversationSummary(){return P(xE,this)?P(xE,this).call(this):"User requested support through chat";}},{key:"_registerFabStyleHandler",value:function _registerFabStyleHandler(e){F(SE,this,e);}},{key:"setFabStyle",value:function setFabStyle(e){P(SE,this)&&P(SE,this).call(this,e);}},{key:"on",value:function on(e,t){P(yE,this).has(e)||P(yE,this).set(e,/* @__PURE__ */new Set()),P(yE,this).get(e).add(t),e==="get-config"&&P(wE,this)&&t({resolve:P(wE,this)});}},{key:"off",value:function off(e,t){P(yE,this).has(e)&&P(yE,this).get(e).delete(t);}},{key:"emit",value:function emit(e,t){if(P(yE,this).has(e)){var _iterator97=_createForOfIteratorHelper(P(yE,this).get(e)),_step97;try{for(_iterator97.s();!(_step97=_iterator97.n()).done;){var _n104=_step97.value;_n104(t);}}catch(err){_iterator97.e(err);}finally{_iterator97.f();}}}}]);}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));function DE(){return _DE.apply(this,arguments);}function _DE(){_DE=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee69(){var e;return _regenerator().w(function(_context69){while(1)switch(_context69.n){case 0:e=this;return _context69.a(2,new Promise(function(t){var n=!1,r=function(_r98){function r(_x100){return _r98.apply(this,arguments);}r.toString=function(){return _r98.toString();};return r;}(function(r){n||(n=!0,F(wE,e,null),clearTimeout(i),t(r||{authToken:""}));}),i=setTimeout(function(){return r({authToken:""});},_E);F(wE,e,r),e.emit("get-config",{resolve:r});}));}},_callee69,this);}));return _DE.apply(this,arguments);}function OE(e){var _iterator98=_createForOfIteratorHelper(e.querySelectorAll("style, link[rel=\"stylesheet\"]")),_step98;try{for(_iterator98.s();!(_step98=_iterator98.n()).done;){var _t173=_step98.value;_t173.remove();}}catch(err){_iterator98.e(err);}finally{_iterator98.f();}{var _t172=document.createElement("style");_t172.textContent=gE,e.prepend(_t172);}}function kE(e,t){try{return JSON.parse(this.getAttribute(e)||JSON.stringify(t));}catch(e){return t;}}function AE(){var e,t,n,r,i,a,o,s,c,l,u,d,f;return{zenaServerUrl:P(CE,this).zenaServerUrl||this.getAttribute("zena-server-url")||"",authToken:P(CE,this).authToken,panelistServerUrl:(e=(t=P(CE,this).panelistServerUrl)==null?this.getAttribute("panelist-server-url"):t)==null?"":e,availableSurveyIds:(n=(r=P(CE,this).availableSurveyIds)==null?this.getAttribute("available-survey-ids"):r)==null?"[]":n,nativeApp:(i=P(CE,this).nativeApp)==null?this.hasAttribute("native-app"):i,posthogKey:P(CE,this).posthogKey||"",posthogHost:P(CE,this).posthogHost||"",userId:(a=(o=P(CE,this).userId)==null?this.getAttribute("user-id"):o)==null?"":a,fabStyle:(s=P(CE,this).fabStyle)==null?N(TE,this,kE).call(this,"fab-style",{}):s,fabShape:(c=(l=P(CE,this).fabShape)==null?this.getAttribute("fab-shape"):l)==null?"circle":c,autoSuggestions:(u=P(CE,this).autoSuggestions)==null?N(TE,this,kE).call(this,"auto-suggestions",[]):u,defaultOpen:(d=P(CE,this).defaultOpen)==null?!1:d,initialMessage:(f=P(CE,this).initialMessage)==null?null:f,maintenance:P(CE,this).maintenance===!0};}D(EE,"observedAttributes",["zena-server-url","panelist-server-url","available-survey-ids","native-app","user-id","fab-style","fab-shape","auto-suggestions"]),customElements.get("zena-chatbot")||customElements.define("zena-chatbot",EE);//#endregion
503
- export{EE as ZenaChatbotElement,wx as captureError};
502
+ var xE="/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 transparent;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 transparent;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 transparent;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 transparent;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 transparent;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--color-red-50:#fef2f2;--color-red-100:#ffe2e2;--color-red-300:#ffa3a3;--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-green-400:#05df72;--color-green-500:#00c758;--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-50:lab(96.5005% 4.18508 1.52328);--color-red-100:lab(92.243% 10.2865 3.83865);--color-red-300:lab(76.5514% 36.422 15.5335);--color-red-400:lab(63.7053% 60.745 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-green-400:lab(78.503% -64.9265 39.7492);--color-green-500:lab(70.5521% -66.5147 45.8073)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:transparent;border-radius:0}::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:transparent;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:transparent;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:20px}:where(select:is([multiple],[size])) optgroup option:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:20px}:where(select:-webkit-any([multiple],[size])) optgroup option:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:20px}:where(select:is([multiple],[size])) optgroup option:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:20px}:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)))::-webkit-file-upload-button{margin-right:4px}:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)))::file-selector-button{margin-right:4px}:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))::-webkit-file-upload-button{margin-left:4px}:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))::file-selector-button{margin-left:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button{-webkit-appearance:button;appearance:button}input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.start:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:var(--spacing)}.start:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:var(--spacing)}.start:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:var(--spacing)}.start:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:var(--spacing)}.end:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:var(--spacing)}.end:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:var(--spacing)}.end:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:var(--spacing)}.end:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:var(--spacing)}.top-1\\/2{top:50%}.top-full{top:100%}.-right-1{right:calc(var(--spacing) * -1)}.right-0{right:calc(var(--spacing) * 0)}.right-4{right:calc(var(--spacing) * 4)}.right-full{right:100%}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-4{bottom:calc(var(--spacing) * 4)}.left-0{left:calc(var(--spacing) * 0)}.left-4{left:calc(var(--spacing) * 4)}.z-10{z-index:10}.z-40{z-index:40}.z-\\[2\\]{z-index:2}.z-\\[100\\]{z-index:100}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.-mt-\\[5px\\]{margin-top:-5px}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-3{margin-right:calc(var(--spacing) * 3)}.mb-0{margin-bottom:calc(var(--spacing) * 0)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-\\[60px\\]{margin-left:60px}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-32{height:calc(var(--spacing) * 32)}.h-\\[50px\\]{height:50px}.h-\\[60px\\]{height:60px}.h-\\[80vh\\]{height:80vh}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-\\[100px\\]{max-height:100px}.max-h-\\[300px\\]{max-height:300px}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-\\[60px\\]{min-height:60px}.min-h-\\[320px\\]{min-height:320px}.min-h-min{min-height:min-content}.w-2{width:calc(var(--spacing) * 2)}.w-3{width:calc(var(--spacing) * 3)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-16{width:calc(var(--spacing) * 16)}.w-48{width:calc(var(--spacing) * 48)}.w-\\[2px\\]{width:2px}.w-\\[24px\\]{width:24px}.w-\\[50px\\]{width:50px}.w-\\[60px\\]{width:60px}.w-full{width:100%}.max-w-\\[28rem\\]{max-width:28rem}.max-w-\\[80\\%\\]{max-width:80%}.max-w-\\[100vw\\]{max-width:100vw}.max-w-\\[calc\\(50\\%-4px\\)\\]{max-width:calc(50% - 4px)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-12{min-width:calc(var(--spacing) * 12)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.\\[transform-origin\\:left_center\\]{transform-origin:0}.translate-x-2{--tw-translate-x:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-45{rotate:45deg}.\\[animation\\:bouncing-loader_0\\.6s_infinite_alternate\\]{animation:.6s infinite alternate bouncing-loader}.\\[animation\\:fadeIn_0\\.3s_ease\\]{animation:.3s fadeIn}.\\[animation\\:slideInUp_0\\.3s_ease-out\\]{animation:.3s ease-out slideInUp}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-\\[0\\.4rem\\]{border-radius:.4rem}.rounded-\\[1\\.25rem\\]{border-radius:1.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-xl{border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}.rounded-l-lg{border-top-left-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.rounded-b-lg{border-bottom-right-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.rounded-br-lg{border-bottom-right-radius:var(--radius-lg)}.rounded-bl-lg{border-bottom-left-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#0a284c\\]{border-color:#0a284c}.border-\\[\\#79c03c\\]{border-color:#79c03c}.border-\\[\\#27272a\\]{border-color:#27272a}.border-\\[\\#29374c\\]{border-color:#29374c}.border-\\[rgba\\(121\\,192\\,60\\,0\\.2\\)\\]{border-color:rgba(121,192,60,.2)}.border-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]{border-color:rgba(255,255,255,.1)}.border-\\[rgba\\(255\\,255\\,255\\,0\\.2\\)\\]{border-color:rgba(255,255,255,.2)}.border-red-300{border-color:var(--color-red-300)}.border-white\\/20{border-color:rgba(255,255,255,.2)}@supports (color:color-mix(in lab, red, red)){.border-white\\/20{border-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.border-white\\/30{border-color:rgba(255,255,255,.3)}@supports (color:color-mix(in lab, red, red)){.border-white\\/30{border-color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.border-t-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]{border-top-color:rgba(255,255,255,.1)}.border-t-white\\/70{border-top-color:rgba(255,255,255,.7)}@supports (color:color-mix(in lab, red, red)){.border-t-white\\/70{border-top-color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.border-b-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]{border-bottom-color:rgba(255,255,255,.1)}.border-l-red-500{border-left-color:var(--color-red-500)}.bg-\\[\\#0a284c\\]{background-color:#0a284c}.bg-\\[\\#0f172b\\]{background-color:#0f172b}.bg-\\[\\#1d293d\\]{background-color:#1d293d}.bg-\\[\\#1e293b\\]{background-color:#1e293b}.bg-\\[\\#77c03a\\]{background-color:#77c03a}.bg-\\[\\#79c03c\\]{background-color:#79c03c}.bg-\\[\\#27272a4d\\]{background-color:rgba(39,39,42,.3)}.bg-\\[\\#29374c\\]{background-color:#29374c}.bg-\\[\\#45556c\\]{background-color:#45556c}.bg-\\[\\#334155\\]{background-color:#334155}.bg-\\[\\#475569\\]{background-color:#475569}.bg-\\[rgba\\(121\\,192\\,60\\,0\\.05\\)\\]{background-color:rgba(121,192,60,.05)}.bg-black\\/15{background-color:rgba(0,0,0,.15)}@supports (color:color-mix(in lab, red, red)){.bg-black\\/15{background-color:color-mix(in oklab, var(--color-black) 15%, transparent)}}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:transparent}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\\[4px\\]{padding-left:4px;padding-right:4px}.py-0{padding-block:calc(var(--spacing) * 0)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-11{padding-left:calc(var(--spacing) * 11)}.text-center{text-align:center}.text-left{text-align:left}.\\[font-family\\:\\'Poppins\\'\\,sans-serif\\]{font-family:Poppins,sans-serif}.\\[font-family\\:inherit\\]{font-family:inherit}.font-\\[Poppins\\,sans-serif\\]{font-family:Poppins,sans-serif}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[0\\.7rem\\]{font-size:.7rem}.text-\\[10px\\]{font-size:10px}.leading-\\[1\\.2\\]{--tw-leading:1.2;line-height:1.2}.leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}.leading-\\[1\\.5\\]{--tw-leading:1.5;line-height:1.5}.leading-\\[1\\.25\\]{--tw-leading:1.25;line-height:1.25}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#79C03B\\]{color:#79c03b}.text-\\[\\#79c03c\\]{color:#79c03c}.text-\\[\\#94a3b8\\]{color:#94a3b8}.text-\\[\\#666\\]{color:#666}.text-\\[\\#999\\]{color:#999}.text-\\[\\#45556c\\]{color:#45556c}.text-green-400{color:var(--color-green-400)}.text-green-500{color:var(--color-green-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.text-white\\/60{color:rgba(255,255,255,.6)}@supports (color:color-mix(in lab, red, red)){.text-white\\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.text-white\\/70{color:rgba(255,255,255,.7)}@supports (color:color-mix(in lab, red, red)){.text-white\\/70{color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.text-white\\/85{color:rgba(255,255,255,.85)}@supports (color:color-mix(in lab, red, red)){.text-white\\/85{color:color-mix(in oklab, var(--color-white) 85%, transparent)}}.italic{font-style:italic}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,rgba(0,0,0,.1)), 0 1px 2px -1px var(--tw-shadow-color,rgba(0,0,0,.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_10px_15px_-3px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\,_0_4px_6px_-2px_rgba\\(0\\,0\\,0\\,0\\.05\\)\\]{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,rgba(0,0,0,.1)), 0 4px 6px -2px var(--tw-shadow-color,rgba(0,0,0,.05));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_20px_25px_-5px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\,_0_10px_10px_-5px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,rgba(0,0,0,.1)), 0 10px 10px -5px var(--tw-shadow-color,rgba(0,0,0,.04));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,rgba(0,0,0,.1)), 0 2px 4px -2px var(--tw-shadow-color,rgba(0,0,0,.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.\\[animation-delay\\:0\\.1s\\]{animation-delay:.1s}.\\[animation-delay\\:0\\.2s\\]{animation-delay:.2s}.\\[animation-delay\\:0\\.3s\\]{animation-delay:.3s}.\\[transition\\:opacity_0\\.3s_ease\\,transform_0\\.3s_ease\\]{transition:opacity .3s,transform .3s}.\\[word-wrap\\:break-word\\]{word-wrap:break-word}@media (hover:hover){.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\\:translate-x-0:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\\:text-\\[\\#94a3b8\\]::placeholder{color:#94a3b8}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\\:-translate-y-px:hover{--tw-translate-y:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-\\[1\\.03\\]:hover{scale:1.03}.hover\\:border-\\[\\#79c03c\\]:hover{border-color:#79c03c}.hover\\:border-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:hover{border-color:rgba(255,255,255,.5)}.hover\\:bg-\\[\\#2a3a52\\]:hover{background-color:#2a3a52}.hover\\:bg-\\[\\#6aad35\\]:hover{background-color:#6aad35}.hover\\:bg-\\[\\#29374c\\]:hover{background-color:#29374c}.hover\\:bg-\\[rgba\\(121\\,192\\,60\\,0\\.1\\)\\]:hover{background-color:rgba(121,192,60,.1)}.hover\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]:hover{background-color:rgba(255,255,255,.1)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:text-red-500:hover{color:var(--color-red-500)}}.focus\\:border-\\[\\#79c03c\\]:focus{border-color:#79c03c}.focus\\:shadow-\\[0_0_0_2px_rgba\\(121\\,192\\,60\\,0\\.1\\)\\]:focus{--tw-shadow:0 0 0 2px var(--tw-shadow-color,rgba(121,192,60,.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:translate-y-0:active{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:scale-\\[0\\.98\\]:active{scale:.98}@media (hover:hover){.enabled\\:hover\\:opacity-90:enabled:hover{opacity:.9}}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-\\[\\#ccc\\]:disabled{border-color:#ccc}.disabled\\:bg-\\[\\#ccc\\]:disabled{background-color:#ccc}.disabled\\:text-\\[\\#999\\]:disabled{color:#999}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-60:disabled{opacity:.6}@media not all and (min-width:500px){.max-\\[500px\\]\\:right-0{right:calc(var(--spacing) * 0)}.max-\\[500px\\]\\:left-0{left:calc(var(--spacing) * 0)}.max-\\[500px\\]\\:mx-auto{margin-left:auto;margin-right:auto}.max-\\[500px\\]\\:hidden{display:none}.max-\\[500px\\]\\:max-w-\\[calc\\(100vw-20px\\)\\]{max-width:calc(100vw - 20px)}}@media not all and (min-width:480px){.max-\\[480px\\]\\:fixed{position:fixed}.max-\\[480px\\]\\:inset-0{inset:calc(var(--spacing) * 0)}.max-\\[480px\\]\\:z-\\[39\\]{z-index:39}.max-\\[480px\\]\\:block{display:block}.max-\\[480px\\]\\:\\[animation\\:fadeIn_0\\.3s_forwards\\]{animation:.3s forwards fadeIn}.max-\\[480px\\]\\:bg-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{background-color:rgba(0,0,0,.5)}.max-\\[480px\\]\\:opacity-0{opacity:0}}@media not all and (min-width:48rem){.max-md\\:left-3{left:calc(var(--spacing) * 3)}.max-md\\:mt-0{margin-top:calc(var(--spacing) * 0)}.max-md\\:mt-2{margin-top:calc(var(--spacing) * 2)}.max-md\\:mt-3{margin-top:calc(var(--spacing) * 3)}.max-md\\:mb-4{margin-bottom:calc(var(--spacing) * 4)}.max-md\\:mb-5{margin-bottom:calc(var(--spacing) * 5)}.max-md\\:ml-\\[56px\\]{margin-left:56px}.max-md\\:h-9{height:calc(var(--spacing) * 9)}.max-md\\:h-14{height:calc(var(--spacing) * 14)}.max-md\\:h-28{height:calc(var(--spacing) * 28)}.max-md\\:h-\\[50px\\]{height:50px}.max-md\\:min-h-10{min-height:calc(var(--spacing) * 10)}.max-md\\:w-9{width:calc(var(--spacing) * 9)}.max-md\\:w-14{width:calc(var(--spacing) * 14)}.max-md\\:w-40{width:calc(var(--spacing) * 40)}.max-md\\:w-\\[50px\\]{width:50px}.max-md\\:w-full{width:100%}.max-md\\:max-w-\\[85\\%\\]{max-width:85%}.max-md\\:min-w-10{min-width:calc(var(--spacing) * 10)}.max-md\\:flex-col{flex-direction:column}.max-md\\:gap-0{gap:calc(var(--spacing) * 0)}.max-md\\:gap-1{gap:calc(var(--spacing) * 1)}.max-md\\:gap-2{gap:calc(var(--spacing) * 2)}.max-md\\:rounded-lg{border-radius:var(--radius-lg)}.max-md\\:p-3{padding:calc(var(--spacing) * 3)}.max-md\\:p-4{padding:calc(var(--spacing) * 4)}.max-md\\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-md\\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-md\\:py-2{padding-block:calc(var(--spacing) * 2)}.max-md\\:py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.max-md\\:py-3{padding-block:calc(var(--spacing) * 3)}.max-md\\:pt-\\[11px\\]{padding-top:11px}.max-md\\:pr-3{padding-right:calc(var(--spacing) * 3)}.max-md\\:pr-4{padding-right:calc(var(--spacing) * 4)}.max-md\\:pb-\\[11px\\]{padding-bottom:11px}.max-md\\:pl-4{padding-left:calc(var(--spacing) * 4)}.max-md\\:pl-9{padding-left:calc(var(--spacing) * 9)}.max-md\\:text-\\[0\\.7rem\\]{font-size:.7rem}.max-md\\:text-\\[0\\.8rem\\]{font-size:.8rem}.max-md\\:text-\\[0\\.9rem\\]{font-size:.9rem}.max-md\\:text-\\[0\\.85rem\\]{font-size:.85rem}.max-md\\:text-\\[11px\\]{font-size:11px}.max-md\\:text-\\[13px\\]{font-size:13px}.max-md\\:leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}}@media not all and (min-width:40rem){.max-sm\\:max-h-\\[80px\\]{max-height:80px}.max-sm\\:min-h-11{min-height:calc(var(--spacing) * 11)}.max-sm\\:min-w-11{min-width:calc(var(--spacing) * 11)}.max-sm\\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-sm\\:py-2{padding-block:calc(var(--spacing) * 2)}.max-sm\\:pt-\\[10px\\]{padding-top:10px}.max-sm\\:pr-3{padding-right:calc(var(--spacing) * 3)}.max-sm\\:pb-\\[10px\\]{padding-bottom:10px}.max-sm\\:pl-3{padding-left:calc(var(--spacing) * 3)}.max-sm\\:text-\\[0\\.85rem\\]{font-size:.85rem}.max-sm\\:leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}}@media (min-width:48rem){.md\\:absolute{position:absolute}.md\\:top-1\\/2{top:50%}.md\\:right-6{right:calc(var(--spacing) * 6)}.md\\:right-full{right:100%}.md\\:bottom-0{bottom:calc(var(--spacing) * 0)}.md\\:bottom-6{bottom:calc(var(--spacing) * 6)}.md\\:mr-4{margin-right:calc(var(--spacing) * 4)}.md\\:h-16{height:calc(var(--spacing) * 16)}.md\\:h-\\[648px\\]{height:648px}.md\\:h-auto{height:auto}.md\\:max-h-\\[90vh\\]{max-height:90vh}.md\\:max-h-\\[120px\\]{max-height:120px}.md\\:min-h-12{min-height:calc(var(--spacing) * 12)}.md\\:w-16{width:calc(var(--spacing) * 16)}.md\\:w-\\[576px\\]{width:576px}.md\\:max-w-\\[100vw\\]{max-width:100vw}.md\\:-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.md\\:p-8{padding:calc(var(--spacing) * 8)}.md\\:px-6{padding-inline:calc(var(--spacing) * 6)}.md\\:px-8{padding-inline:calc(var(--spacing) * 8)}}.\\[\\&_svg\\]\\:h-5 svg{height:calc(var(--spacing) * 5)}.\\[\\&_svg\\]\\:w-5 svg{width:calc(var(--spacing) * 5)}@media not all and (min-width:48rem){.max-md\\:\\[\\&_svg\\]\\:h-\\[1\\.2rem\\] svg{height:1.2rem}.max-md\\:\\[\\&_svg\\]\\:w-\\[1\\.2rem\\] svg{width:1.2rem}}@media not all and (min-width:40rem){.max-sm\\:\\[\\&_svg\\]\\:h-\\[1\\.1rem\\] svg{height:1.1rem}.max-sm\\:\\[\\&_svg\\]\\:w-\\[1\\.1rem\\] svg{width:1.1rem}}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}.\\[\\&\\>svg\\]\\:h-full>svg{height:100%}.\\[\\&\\>svg\\]\\:w-full>svg{width:100%}}@keyframes bouncing-loader{to{opacity:.1;transform:translateY(-.25rem)}}@keyframes smoothFadeIn{0%{opacity:0;transform:translate(-12px)}60%{opacity:.8;transform:translate(0)}to{opacity:1;transform:translate(0)}}@keyframes smoothFadeOut{0%{opacity:1;transform:translate(0)}40%{opacity:.8;transform:translate(0)}to{opacity:0;transform:translate(-12px)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInUp{0%{opacity:0;transform:translateY(1rem)}to{opacity:1;transform:translateY(0)}}.typing-indicator__message--enter{animation:.5s cubic-bezier(.4,0,.2,1) smoothFadeIn}.typing-indicator__message--exit{animation:.5s cubic-bezier(.4,0,.2,1) smoothFadeOut}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 transparent}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}",SE=2e3,CE=/* @__PURE__ */new WeakMap(),wE=/* @__PURE__ */new WeakMap(),TE=/* @__PURE__ */new WeakMap(),EE=/* @__PURE__ */new WeakMap(),DE=/* @__PURE__ */new WeakMap(),OE=/* @__PURE__ */new WeakMap(),kE=/* @__PURE__ */new WeakMap(),AE=/* @__PURE__ */new WeakSet(),jE=/*#__PURE__*/function(_HTMLElement){function jE(){var _this35;_classCallCheck(this,jE);for(var _len23=arguments.length,e=new Array(_len23),_key23=0;_key23<_len23;_key23++){e[_key23]=arguments[_key23];}_this35=_callSuper(this,jE,[].concat(e)),Ot(_assertThisInitialized(_this35),AE),M(_assertThisInitialized(_this35),CE,void 0),M(_assertThisInitialized(_this35),wE,/* @__PURE__ */new Map()),M(_assertThisInitialized(_this35),TE,null),M(_assertThisInitialized(_this35),EE,null),M(_assertThisInitialized(_this35),DE,null),M(_assertThisInitialized(_this35),OE,{authToken:""}),M(_assertThisInitialized(_this35),kE,null);return _this35;}_inherits(jE,_HTMLElement);return _createClass(jE,[{key:"connectedCallback",value:function(){var _connectedCallback=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee33(){var e,_t168,t,_t169,_t170,_t171;return _regenerator().w(function(_context33){while(1)switch(_context33.n){case 0:e=this;_t169=F;_t170=OE;_t171=e;_context33.n=1;return N(AE,e,ME).call(e);case 1:_t169(_t170,_t171,_context33.v);if(!P(OE,e).sentryDsn){_context33.n=2;break;}_t168=P(OE,e).sentryRelease||"zena-chatbot-client@1.0.6";Sx(P(OE,e).sentryDsn,_t168,e);case 2:t=e.attachShadow({mode:"open"});N(AE,e,NE).call(e,t),F(CE,e,_a(bE,{target:t,props:_objectSpread(_objectSpread({},N(AE,e,FE).call(e)),{},{element:e})}));case 3:return _context33.a(2);}},_callee33,this);}));function connectedCallback(){return _connectedCallback.apply(this,arguments);}return connectedCallback;}()},{key:"attributeChangedCallback",value:function attributeChangedCallback(e,t,n){t===n||!P(CE,this)||!this.shadowRoot||(xa(P(CE,this)),N(AE,this,NE).call(this,this.shadowRoot),F(CE,this,_a(bE,{target:this.shadowRoot,props:_objectSpread(_objectSpread({},N(AE,this,FE).call(this)),{},{element:this})})));}},{key:"disconnectedCallback",value:function disconnectedCallback(){P(CE,this)&&(xa(P(CE,this)),F(CE,this,null));}},{key:"_registerCloseHandler",value:function _registerCloseHandler(e){F(TE,this,e);}},{key:"close",value:function close(){P(TE,this)&&P(TE,this).call(this);}},{key:"_registerSummaryHandler",value:function _registerSummaryHandler(e){F(EE,this,e);}},{key:"generateConversationSummary",value:function generateConversationSummary(){return P(EE,this)?P(EE,this).call(this):"User requested support through chat";}},{key:"_registerFabStyleHandler",value:function _registerFabStyleHandler(e){F(DE,this,e);}},{key:"setFabStyle",value:function setFabStyle(e){P(DE,this)&&P(DE,this).call(this,e);}},{key:"on",value:function on(e,t){P(wE,this).has(e)||P(wE,this).set(e,/* @__PURE__ */new Set()),P(wE,this).get(e).add(t),e==="get-config"&&P(kE,this)&&t({resolve:P(kE,this)});}},{key:"off",value:function off(e,t){P(wE,this).has(e)&&P(wE,this).get(e).delete(t);}},{key:"emit",value:function emit(e,t){if(P(wE,this).has(e)){var _iterator97=_createForOfIteratorHelper(P(wE,this).get(e)),_step97;try{for(_iterator97.s();!(_step97=_iterator97.n()).done;){var _n104=_step97.value;_n104(t);}}catch(err){_iterator97.e(err);}finally{_iterator97.f();}}}}]);}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));function ME(){return _ME.apply(this,arguments);}function _ME(){_ME=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee69(){var e;return _regenerator().w(function(_context69){while(1)switch(_context69.n){case 0:e=this;return _context69.a(2,new Promise(function(t){var n=!1,r=function(_r98){function r(_x100){return _r98.apply(this,arguments);}r.toString=function(){return _r98.toString();};return r;}(function(r){n||(n=!0,F(kE,e,null),clearTimeout(i),t(r||{authToken:""}));}),i=setTimeout(function(){return r({authToken:""});},SE);F(kE,e,r),e.emit("get-config",{resolve:r});}));}},_callee69,this);}));return _ME.apply(this,arguments);}function NE(e){var _iterator98=_createForOfIteratorHelper(e.querySelectorAll("style, link[rel=\"stylesheet\"]")),_step98;try{for(_iterator98.s();!(_step98=_iterator98.n()).done;){var _t173=_step98.value;_t173.remove();}}catch(err){_iterator98.e(err);}finally{_iterator98.f();}{var _t172=document.createElement("style");_t172.textContent=xE,e.prepend(_t172);}}function PE(e,t){try{return JSON.parse(this.getAttribute(e)||JSON.stringify(t));}catch(e){return t;}}function FE(){var e,t,n,r,i,a,o,s,c,l,u,d,f;return{zenaServerUrl:P(OE,this).zenaServerUrl||this.getAttribute("zena-server-url")||"",authToken:P(OE,this).authToken,panelistServerUrl:(e=(t=P(OE,this).panelistServerUrl)==null?this.getAttribute("panelist-server-url"):t)==null?"":e,availableSurveyIds:(n=(r=P(OE,this).availableSurveyIds)==null?this.getAttribute("available-survey-ids"):r)==null?"[]":n,nativeApp:(i=P(OE,this).nativeApp)==null?this.hasAttribute("native-app"):i,posthogKey:P(OE,this).posthogKey||"",posthogHost:P(OE,this).posthogHost||"",userId:(a=(o=P(OE,this).userId)==null?this.getAttribute("user-id"):o)==null?"":a,fabStyle:(s=P(OE,this).fabStyle)==null?N(AE,this,PE).call(this,"fab-style",{}):s,fabShape:(c=(l=P(OE,this).fabShape)==null?this.getAttribute("fab-shape"):l)==null?"circle":c,autoSuggestions:(u=P(OE,this).autoSuggestions)==null?N(AE,this,PE).call(this,"auto-suggestions",[]):u,defaultOpen:(d=P(OE,this).defaultOpen)==null?!1:d,initialMessage:(f=P(OE,this).initialMessage)==null?null:f,maintenance:P(OE,this).maintenance===!0};}D(jE,"observedAttributes",["zena-server-url","panelist-server-url","available-survey-ids","native-app","user-id","fab-style","fab-shape","auto-suggestions"]),customElements.get("zena-chatbot")||customElements.define("zena-chatbot",jE);//#endregion
503
+ export{jE as ZenaChatbotElement,kx as captureError};