!function(){var e,t,n,r,o={7052:function(e,t,n){"use strict";n.d(t,{v:function(){return d}});var r=n(4572),o=n(1914),i=n(6934),a=n(2584),s=n(4818),u=n(9233),c=n(2391),l=n(9243);const f=function(){try{return window.parent===window.top}catch(e){return!1}}(),d="#mobile-widget";let p=null;let h=!1;class m extends o.Component{constructor(){super(...arguments),(0,r.Z)(this,"addMobileHashToCurrentLocation",(()=>{try{if(!window.parent?.history)return!1;const{href:e}=window.parent.location;return(e=>{e.includes("#")&&!e.includes(d)&&(p=e)})(e),e.includes(d)||window.parent.history.pushState(null,"mobile-widget",d),h||(this.watchUrlChange(),h=!0),!0}catch(e){return!1}})),(0,r.Z)(this,"watchUrlChange",(()=>{(0,a.kq)((()=>{setTimeout((()=>{try{const{href:e}=window.parent.location;e.includes(d)?this.props.dispatch((0,u.ejT)(!0)):this.props.dispatch((0,u.ejT)(!1))}catch(e){}}),0)}))}))}componentDidMount(){this.addMobileHashToCurrentLocation()}componentWillUnmount(){setTimeout((()=>{try{const{href:e}=window.parent.location;if(e.includes(d)){const t=(()=>{let e=null;return p&&(e=p,p=null),e})()||e.replace(d,"");window.parent.history.pushState(null,"",t)}}catch(e){}}),0)}render(){return null}}t.Z=(0,i.$j)((e=>({isMobile:e.isMobile,view:(0,c.Xe)(e),mobileHash:e.mobileHash})))((e=>f&&e.isMobile&&e.view!==s.views.closed&&e.view!==s.views.fly&&e.mobileHash&&(0,l.tZ)(m,{dispatch:e.dispatch})))},359:function(e,t,n){"use strict";n.d(t,{H1:function(){return W},pO:function(){return $},aO:function(){return V},iZ:function(){return ie},oP:function(){return ee},O6:function(){return le},cS:function(){return re},Zf:function(){return oe},Eh:function(){return ne},zC:function(){return te},vX:function(){return J},ZX:function(){return ce},RF:function(){return ue},VC:function(){return X},Bc:function(){return K},UK:function(){return Y},mb:function(){return Q},tX:function(){return Z},nu:function(){return se},E_:function(){return G},vT:function(){return j},OF:function(){return q},EB:function(){return ae},Z7:function(){return R},fz:function(){return x},yS:function(){return M},xr:function(){return L},f:function(){return P},a$:function(){return U},QK:function(){return F},Ee:function(){return I},In:function(){return z},j3:function(){return B},MV:function(){return H},p9:function(){return D}});var r=n(2584),o=n(9503),i=n(2124),a=n(4572),s=(n(4555),n(9233)),u=n(9884),c=n(8538),l=n.n(c);let f;var d=function(e){try{f&&window.parent.document.removeEventListener("click",f);const t=l()((t=>{e((0,s.cSJ)(t))}),2e3);f=e=>{let{target:n}=e;if(n instanceof window.parent.HTMLElement&&n.classList.contains("jdgm-star")){const e=n.dataset.alt&&parseInt(n.dataset.alt,10);"number"==typeof e&&[1,2,3,4,5].includes(e)&&t(e)}},window.parent.document.addEventListener("click",f)}catch(e){const n=(t=e,Boolean(t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"message")&&"string"==typeof t.message)?e.message:void 0);(0,o.G)("runOnJudgeMeRatingClick error",{message:n})}var t};var p=function(e){try{const{jdgm:t,jdgmSettings:n}=window.parent;if(n){const r=n.cbRevSubmitSuccess,o=n=>{const o=t?.getFormData(n).rating;if(o){const t=parseInt(o,10);[1,2,3,4,5].includes(t)&&e((0,s.Zfp)(t))}r?.(n)};n.cbRevSubmitSuccess=o}}catch(e){(0,o.G)("runOnJudgeMeReviewSent error",{message:e instanceof Error?e.message:void 0})}};class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;(0,a.Z)(this,"visitorId",void 0),(0,a.Z)(this,"dispatch",void 0),(0,a.Z)(this,"projectOnline",void 0),(0,a.Z)(this,"hideWhenOffline",void 0),(0,a.Z)(this,"isChatOnSite",void 0),(0,a.Z)(this,"automations",void 0),(0,a.Z)(this,"botsToTriggerOnScroll",[]),(0,a.Z)(this,"windowLeft",void 0),(0,a.Z)(this,"getAutomationData",(e=>this.automations.find((t=>t.trigger_id===e)))),(0,a.Z)(this,"filterOfflineAutomations",(e=>{const t=this.getAutomationData(e);return!!t&&!t.payload?.offline_disabled})),this.automations=e,this.visitorId=t,this.projectOnline=r,this.hideWhenOffline=o,this.isChatOnSite=i,this.inputChanged=this.inputChanged.bind(this),this.dispatch=n,this.initAutomations(this.automations)}setVisitorId(e){this.visitorId!==e&&(this.visitorId=e)}initAutomations(e){const t=[],n=[];let r=!1,o=!1;for(let i=0;i0)(0,u.Mm)("automation_formLeft",0),this.execute(t);else{const e=window.parent.document.querySelectorAll("form");for(let t=0;t(0,u.Mm)("automation_formLeft",0)));const n=e[t].querySelectorAll("textarea, select");for(let e=0;ethis.inputChanged()));const r=e[t].querySelectorAll("input");for(let e=0;ethis.inputChanged()));case"hidden":}}}return!0}runLeaveWindow(e){let t=e;this.projectOnline||(t=e.filter(this.filterOfflineAutomations));let n=null;return document?.body&&(n=document.body),window.parent?.document?.body&&(n=window.parent.document.body),n&&(n.addEventListener("mouseenter",(()=>{this.windowLeft&&clearTimeout(this.windowLeft)})),n.addEventListener("mouseout",(e=>{const n=e.relatedTarget;n&&"HTML"!==n.nodeName||t.length>0&&(this.windowLeft&&clearTimeout(this.windowLeft),this.windowLeft=setTimeout((()=>{this.execute(t)}),5e3))}))),!0}runScrollWindow(){try{this.projectOnline||(this.botsToTriggerOnScroll=this.botsToTriggerOnScroll.filter((e=>{let{id:t}=e;return this.filterOfflineAutomations(t)})));const e=window.parent?.window,t=window.parent?.document;let n;const o=()=>{n&&clearTimeout(n),n=setTimeout((()=>{const n=(e.scrollY/(t.body.scrollHeight-e.innerHeight)*100).toFixed(0),i=[],a=[];for(let e=0;eo&&c?i.push(t):a.push(t)}i.length&&(this.execute(i.map((e=>{let{id:t}=e;return t}))),this.botsToTriggerOnScroll=a),a.length||e.removeEventListener("scroll",o)}),100)};e&&t&&this.botsToTriggerOnScroll.length&&e.addEventListener("scroll",o)}catch(e){}}execute(e){(!(this.hideWhenOffline&&!this.projectOnline)||this.isChatOnSite)&&this.dispatch((0,s.aO_)(e))}}var m=n(5110),y=n(7841);function g(e){const t=e.querySelectorAll("input[type='text'], input[type='email']"),n=e.querySelectorAll("input[type='password']");return 1===e.querySelectorAll("input[type='hidden'][name='form_type'][value='customer_login']").length||("customer_login"===e.id||"login"===e.id||!(!t||1!==t.length||!n||1!==n.length))}function v(e){const t=e.querySelectorAll("input[type='text'], input[type='email']"),n=e.querySelectorAll("input[type='password']");return 1===e.querySelectorAll("input[type='hidden'][name='form_type'][value='create_customer']").length||("create_customer"===e.id||"register"===e.id||(!!(t&&t.length>=1&&n&&2===n.length)||!!(e.action&&"string"==typeof e.action&&e.action.indexOf("register")>-1)))}function b(e){return 1===e.querySelectorAll("input[type='hidden'][name='form_type'][value='recover_customer_password']").length||("forgot_password"===e.id||!(!e.action||"string"!=typeof e.action||!(e.action.indexOf("forgot_password")>-1||e.action.indexOf("forgot-password")>-1)))}var w=class{constructor(e){const t={contact_visited:{eventName:"generic.contact_visited",func:this.contactVisited},liked_on_facebook:{eventName:"generic.liked_on_facebook",func:this.likedOnFacebook},unliked_on_facebook:{eventName:"generic.unliked_on_facebook",func:this.unLikedOnFacebook},logged_in:{eventName:"generic.logged_in",func:this.loggedIn},registered:{eventName:"generic.registered",func:this.registered},forgot_password:{eventName:"generic.forgot_password",func:this.forgotPassword},email_filled:{eventName:"generic.email_filled",func:this.emailFilled}};this.initGenericEvents(e,t)}initGenericEvents(e,t){Object.keys(t).forEach((n=>{e[t[n].eventName]&&(t[n].func=t[n].func.bind(this),t[n].func(t[n].eventName))}))}contactVisited(e){let t=!1;const n=(0,r.bq)();!t&&n.match(/[^a-zA-Z0-9](contact|contacto|contato|contatto|kontakt)([^a-zA-Z0-9]|$)/)&&(t=!0),t&&window.tidioChatApi?.track(e)}likedOnFacebook(e){void 0!==window.parent.FB&&window.parent.FB.Event&&window.parent.FB.Event.subscribe&&window.parent.FB.Event.subscribe("edge.create",(()=>{window.tidioChatApi?.track(e)}))}unLikedOnFacebook(e){void 0!==window.parent.FB&&window.parent.FB.Event&&window.parent.FB.Event.subscribe&&window.parent.FB.Event.subscribe("edge.remove",(()=>{window.tidioChatApi?.track(e)}))}loggedIn(e){1===(0,u.Hr)("automation_loggedInExecute")&&(window.tidioChatApi?.track(e),(0,u.lR)("automation_loggedInExecute"));let t=!1;const n=(0,r.bq)();!t&&n.match(/[^a-zA-Z0-9](login|logowanie|zaloguj|signin)([^a-zA-Z0-9]|$)/)&&(t=!0);const o=[],i=window.parent.document.querySelectorAll("form");if(i)for(let e=0;e0&&o.forEach((t=>{t.addEventListener("submit",(()=>{1!==(0,u.Hr)("automation_loggedInExecute")&&((0,u.Mm)("automation_loggedInExecute",1),window.tidioChatApi?.track(e,{},(()=>{(0,u.lR)("automation_loggedInExecute")})))}))}))}registered(e){1===(0,u.Hr)("automation_registeredExecute")&&(window.tidioChatApi?.track(e),(0,u.lR)("automation_registeredExecute"));let t=!1;const n=(0,r.bq)();!t&&n.match(/[^a-zA-Z0-9](register|rejestracja|zarejestruj|signup)([^a-zA-Z0-9]|$)/)&&(t=!0);const o=[],i=window.parent.document.querySelectorAll("form");if(i)for(let e=0;e0&&o.forEach((t=>{t.addEventListener("submit",(()=>{1!==(0,u.Hr)("automation_registeredExecute")&&((0,u.Mm)("automation_registeredExecute",1),window.tidioChatApi?.track(e,{},(()=>{(0,u.lR)("automation_registeredExecute")})))}))}))}forgotPassword(e){1===(0,u.Hr)("automation_forgotPasswordExecute")&&(window.tidioChatApi?.track(e),(0,u.lR)("automation_forgotPasswordExecute"));let t=!1;const n=(0,r.bq)();!t&&n.match(/[^a-zA-Z0-9](forgot-password|forgotten)([^a-zA-Z0-9]|$)/)&&(t=!0);const o=[],i=window.parent.document.querySelectorAll("form");if(i)for(let e=0;e0&&o.forEach((t=>{t.addEventListener("submit",(()=>{1!==(0,u.Hr)("automation_forgotPasswordExecute")&&((0,u.Mm)("automation_forgotPasswordExecute",1),window.tidioChatApi?.track(e,{},(()=>{(0,u.lR)("automation_forgotPasswordExecute")})))}))}))}emailFilled(e){const t=[],n=window.parent.document.querySelectorAll("input[type='text'], input[type='email']");if(n)for(let e=0;e{t.addEventListener("change",(t=>{t?.target?.value&&/^(([^<>()\\[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i.test(t.target.value)&&window.tidioChatApi?.track(e)}))}))}},_=n(6972);var S=class{constructor(e){let{dispatch:t,mode:n}=e;this.dispatch=t,this.mode=n,this.addToCart=this.addToCart.bind(this),this.addToCartAjax=this.addToCartAjax.bind(this),this.cartUpdated=this.cartUpdated.bind(this),this.abandonedCart=this.abandonedCart.bind(this),this.goToCart=this.goToCart.bind(this),this.login=this.login.bind(this),this.removeFromCart=this.removeFromCart.bind(this),this.removeFromCartClick=this.removeFromCartClick.bind(this),this.createAccount=this.createAccount.bind(this),this.initTracking=this.initTracking.bind(this),this.trackPaymentCharged=this.trackPaymentCharged.bind(this),this.overrideFetch=this.overrideFetch.bind(this),this.trackCartToken=this.trackCartToken.bind(this),this.saveCartToken=this.saveCartToken.bind(this),this.getCartToken=this.getCartToken.bind(this),this.trackCheckout=this.trackCheckout.bind(this),this.goToPayment=this.goToPayment.bind(this),this.goToCheckout=this.goToCheckout.bind(this),this.rebindEvents=this.rebindEvents.bind(this),this.initWithoutjQuery=this.initWithoutjQuery.bind(this),this.saveCartValue=this.saveCartValue.bind(this),this.getCartValue=this.getCartValue.bind(this),this.addToCardFinished=!1,this.rebindShopifyEvents=0,this.selectors=[{selector:"form[action='/cart/add']",func:this.addToCart,event:"submit"},{selector:"form[action*='account/login']",func:this.login,event:"submit"},{selector:"a[href*='/cart/change'], td a[onclick^='remove_item']",func:this.removeFromCartClick,event:"click"},{selector:"input[name=checkout], button[name=checkout], a.checkout-button",func:this.goToCheckout,event:"click"},{selector:"form[action='/checkout']",func:this.goToCheckout,event:"submit"},{selector:"#commit-button",func:this.goToPayment,event:"click"}],this.routes={cart:window.parent.location.pathname.indexOf("/cart")>-1,thankYou:window.parent.location.pathname.indexOf("/thank_you")>-1&&5===window.parent.location.pathname.split("/").length},this.endpoints={cartChange:"/cart/change",addToCart:"/cart/add",clear:"/cart/clear",update:"/cart/update",checkout:"/wallets/checkouts"},void 0!==window.parent.Shopify&&this.initTracking()}initTracking(){this.routes.cart&&!(0,u.Hr)("removeFromCart")&&this.goToCart(),(0,u.Hr)("removeFromCart")&&this.removeFromCart(),this.cartAjaxInit(),this.rebindEvents(),this.trackPaymentCharged(),window.parent.jQuery&&"function"==typeof window.parent.jQuery(window.parent.document).ajaxSend&&(window.parent.jQuery(window.parent.document).ajaxSend(((e,t,n)=>!!n?.data&&(n?.url&&n.url.indexOf("/cart/add.js")>-1&&this.addToCartAjax(),!0))),window.parent.jQuery(window.parent.document).ajaxComplete(((e,t,n)=>{if(n?.url){const{url:e}=n;if(e.includes(this.endpoints.addToCart)){const e=t.getResponseHeader("x-shopify-generated-cart-token");e&&this.saveCartToken(e),this.trackCartToken(),this.addToCartAjax(),this.addToCardFinished=!0}(e.includes(this.endpoints.cartChange)||e.includes(this.endpoints.update)||e.includes(this.endpoints.clear))&&this.getCartValue().then(this.saveCartValue),e.includes(this.endpoints.checkout)&&t?.responseJSON&&this.trackCheckout(t.responseJSON.checkout.token),this.addToCardFinished&&e.indexOf("/cart")>-1&&(this.addToCardFinished=!1,setTimeout(this.rebindEvents,777)),e.indexOf("/cart.js")>-1&&t?.responseJSON&&(0,u.Mm)("cartItemCount",t.responseJSON.item_count)}return!0}))),this.overrideFetch()}rebindEvents(){clearTimeout(this.rebindShopifyEvents),this.initWithoutjQuery()}initWithoutjQuery(){for(let e=0;e0)for(let n=0;n0&&(e[t].removeEventListener("submit",this.createAccount,!0),e[t].addEventListener("submit",this.createAccount,!0))}}trackEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};if("advanced"===this.mode){const r=(0,u.Hr)("cartData");t.cartCurrency&&t.cartValue&&(0,u.Mm)("cartData",t),window.tidioChatApi?.track(`shopify.${e}`,{...r,...t},n)}}cartAjaxInit(){const e=(0,u.Hr)("cartItemCount")||0;e||(0,u.Mm)("cartItemCount",0),(0,_.hO)().then((t=>{(0,u.Hr)("addToCart")&&((0,u.lR)("addToCart"),this.trackEvent("add_to_cart"));const n=0===[/\/account\/login(.*?)/i,/\/account\/register(.*?)/i,/\/challenge(.*?)/i,/\/checkouts(.*?)/i].map((e=>e.test(window.parent.location.href))).filter((e=>e)).length,r=t?.token,o=r&&t?.item_count>0;return(0,u.Hr)("goToCheckout")&&n&&((0,u.lR)("goToCheckout"),t.item_count&&this.abandonedCart(),(0,u.Mm)("cartItemCount",0)),r&&this.saveCartToken(r),o&&this.trackCartToken(),+e!=+t.item_count&&(0,u.Mm)("cartItemCount",t.item_count),t?.attributes?.["Tidio Visitor Id"]&&this.dispatch((0,s.UKG)()),void 0!==t?.original_total_price&&t?.currency&&this.saveCartValue({cartCurrency:t.currency,cartValue:t.original_total_price}),!0})).catch((e=>{}))}addToCartAjax(){this.getCartValue().then((e=>{(0,u.lR)("addToCart"),this.trackEvent("add_to_cart",e)}))}addToCart(){(0,u.Mm)("addToCart",!0),clearTimeout(this.rebindShopifyEvents),this.rebindShopifyEvents=setTimeout(this.rebindEvents,1500)}cartUpdated(){this.trackEvent("cart_updated")}abandonedCart(){this.trackEvent("abandoned_cart")}goToCart(){this.trackEvent("go_to_cart")}login(){this.trackEvent("login")}removeFromCartClick(){(0,u.Mm)("removeFromCart",!0)}removeFromCart(e){(0,u.lR)("removeFromCart"),e?this.trackEvent("remove_from_cart",e):this.getCartValue().then((e=>{this.trackEvent("remove_from_cart",e)}))}createAccount(){this.trackEvent("create_account")}trackPaymentCharged(){if(!this.routes.thankYou)return!1;this.trackEvent("payment_charged");try{const{customer_id:e,order_id:t}=window.parent.Shopify.checkout;e&&t&&this.dispatch((0,s.mbl)({customerId:e,orderId:t}))}catch(e){(0,o.G)("Payment tracking error",{message:e?.message})}return!0}trackCheckout(e){this.dispatch((0,s.UKp)({checkoutToken:e}))}getCartToken(){return(0,u.Hr)("cartToken")}saveCartToken(e){const t=(0,u.Hr)("cartToken");e&&e!==t&&(0,u.Mm)("cartToken",e)}trackCartToken(){const e=this.getCartToken(),t=(0,u.Hr)("sentCartToken");e&&e!==t&&(this.dispatch((0,s.Bcz)({cartToken:e})),(0,u.Mm)("sentCartToken",e))}overrideFetch(){var e=this;try{const{fetch:t}=window.parent;window.parent.fetch=async function(){for(var n=arguments.length,r=new Array(n),i=0;i{function a(){const e={};if("string"==typeof u&&32===u.length)e.id=u;else{const t=(0,r.by)();e.id=t,e.originalVisitorId=t}return e}if(t?.message){const e=a();return n((0,s.yaq)(e)),o(),!0}let c={identifyData:i};if("string"==typeof e&&32===e.length)c.id=e;else if(i.distinct_id||i.email)c.id=(0,r.by)();else{const e=a();c={...c,...e}}return n((0,s.yaq)(c)),o(),!0}))}let T=!0;function I(e,t,n,i,a,c){const{visitor:l,isProjectOnline:f,hideWhenOffline:d,visitor:{is_chat_on_site:p}}=t,m=(0,r.QI)();let g;m&&(g=(0,r.gZ)().aiAssistantSandboxTriggerId),e("visitorRegister",{...l,sandbox:m,aiAssistantSandboxTriggerId:g,isProjectOnline:f,cache_hash:i?.cache_hash||null,after_reconnect:!a},((e,t)=>{let a;return a=i?{...i,...e?.widget_data}:e?.widget_data,e&&"INVALID_PROJECT_PUBLIC_KEY"!==t?(n((0,s.YsA)(e,(e=>{if(m){const{automationId:e,timeout:t=100}=(0,r.gZ)();e&&setTimeout((()=>{n((0,s.aO_)([+e]))}),t)}else{if(a?.tracking){if(a.tracking.generic&&!(C instanceof w)){const e=a.tracking.generic;C=new w(e)}"shopify"!==a.tracking.platform_tracked||k instanceof S||(k=new S({dispatch:n,mode:"advanced"}))}if(a?.is_text_input_disabled&&n((0,s.eJn)(!0)),!a||"shopify"!==a.platform||k instanceof S||(k=new S({dispatch:n,mode:"simple"})),a?.bots&&Array.isArray(a.bots)&&a.bots.length>0)if(O instanceof h)O.setVisitorId(l.id);else{const e=f;O=new h(a.bots,l.id,n,e,d,p)}}e||(0,y.Z)({dispatch:()=>{}}),T&&(n((0,s.Ain)(e)),T=!1)}))),!0):((0,o.A)("visitorId collision",{visitorId:l.id}),c(),setTimeout((()=>{(0,u.QI)(),window.location.reload()}),1e4),!1)}))}function P(e,t,n,o){const{id:i}=o,a=t.aiAssistant||(0,r.QI)()&&(0,r.gZ)().aiAssistantSandboxTriggerId?r.uI:6e3,u=setTimeout((()=>{n((0,s.kXf)(i,null,!1))}),a);e("visitorNewMessage",{message:o.content,messageId:i,payload:o.payload,url:o.url},((e,t)=>{let{id:r}=t;return!!e&&(clearTimeout(u),n((0,s.kXf)(i,r,!0)),!0)}))}function R(e,t,n){let{messages:r}=t,o=null;if(r.length>0){const e=r.filter((e=>e.idFromServer));e.length>0&&(o=e[e.length-1].idFromServer)}e("visitorGetConversationHistory",{lastMessageId:o},(e=>!!e&&(n((0,s.r67)(e.messages,o)),!0))),o||n((0,s.SnQ)(m.M.fullConversationHistoryRequested))}const N=[E.Qe.bot,E.Qe.operator];function F(e,t,n){let{messages:r}=t,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(o)e("visitorReadMessages",{lastReadMessageId:o,lastReadMessageTime:(new Date).toISOString()});else{let t=null;if(r.length>0){const e=r.filter((e=>e.idFromServer&&N.includes(e.sender)));e.length>0&&(t=e[e.length-1].idFromServer)}e("visitorReadMessages",{lastReadMessageId:t,lastReadMessageTime:(new Date).toISOString()})}}function M(e,t,n,o){e("visitorIsTyping",{message:o,time:(0,r.Xn)()})}function D(e,t,n,r){e("visitorUpdateData",{updateData:r})}function j(e,t,n,r){e("visitorAddTags",{tags:r})}function L(e,t){let{visitor:{id:n}}=t;e("visitorLastSeenUpdate",{id:n})}function B(e,t,n,r){e("visitorSetRating",{value:r?"1":"0"})}function U(e,t,n,r){e("visitorPreForm",{updateData:{...r}},(()=>{}))}function z(e,t,n,r){e("visitorSetComment",{comment:r})}function H(e,t,n,r,o,i){e("visitorTracking",{...o,event:r},i)}function V(e,t,n,r){e("botTrigger",{bots:r})}function W(e){e("botCancelBotApps")}function $(e){e("botGetStarted")}function G(e,t,n,r){r!==A&&(A=r,e("visitorEnterPage",{url:r}))}function q(e){e("visitorClicksOnChatIcon")}function X(e,t,n,r){e("visitorWidgetPosition",r)}function Q(e,t,n,r){e("shopifyOrderCreated",r)}function Y(e,t,n,r){e("shopifyCheckoutCreated",r)}function K(e,t,n,r){e("shopifyCartTokenUpdated",r)}function Z(e,t,n,r,o){e("widgetAnalytics",{eventName:r,...o})}function J(e,t,n,r){e("sendCartData",r)}function ee(e,t,n,r,o){e("chatBotRated",{ratingId:r,rating:o})}function te(e,t,n,r,o,i){e("satisfactionRatingSet",{rating:r,threadId:o,messageId:i})}function ne(e,t,n,r,o,i){e("satisfactionRatingCommentSet",{comment:r,threadId:o,messageId:i})}function re(e,t,n,r){e("judgeMeRatingClick",{rating:r})}function oe(e,t,n,r){e("judgeMeReviewSent",{rating:r})}function ie(e,t,n){e("cartValueChanged",arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})}function ae(e,t,n){e("visitorCreatesTicket",arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})}function se(e,t,n){e("visitorSendSatisfactionSurveyQuestion",arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},(e=>!!e||((0,o.G)("Could not trigger manual satisfaction survey"),n((0,s.wp$)((0,i.dW)("satisfactionSurveyAlert",null,"Sorry, something went wrong. Please try again."))),!1)))}function ue(e,t,n,r){e("visitorVideoCallOffer",{...r})}function ce(e,t,n,r){e("visitorSendVideoCallIceCandidates",{...r})}function le(e,t,n,r){e("fetchGoogleAnalyticsTagId",{},r)}},1936:function(e,t,n){"use strict";n.d(t,{EA:function(){return l},EQ:function(){return C},Gr:function(){return x},Nw:function(){return f},Qe:function(){return c},SA:function(){return m},Sg:function(){return w},Ul:function(){return k},YZ:function(){return A},bO:function(){return E},c:function(){return O},c0:function(){return _},mD:function(){return p},mp:function(){return v},sg:function(){return S},z0:function(){return b}});n(4555);var r=n(729),o=n.n(r),i=n(2584),a=n(9503),s=n(9809),u=n(9245);const c={operator:"operator",visitor:"visitor",system:"system",bot:"bot"},l=["pdf","doc","docx","xls","xlsx","csv","txt","rtf","mp3","wma","mpg","mp4","flv","avi","jpg","jpeg","png","gif"],f={text:"text",cards:"cardGallery",buttons:"buttons",couponCode:"couponCode",uploadedFile:"uploadedFile",rateAutomaticSurvey:"rateAutomaticSurvey",form:"form",formResponse:"formResponse",iframe:"iframe"},d=RegExp(`^(https?:[/|.|\\w|\\s|-]*/(.*))\\.(${l.join("|")})$`),p=e=>e.name.split(".").pop()?.toLocaleLowerCase(),h=/(?!.*-medium$)https:\/\/s3.*.amazonaws.com\/(tidio-files|tidio-files-dev)/,m=e=>-1!==["jpg","jpeg","png","gif"].indexOf(e)?"image":"file";function y(e){return d.test(e.content)}function g(e){const t={...e};t.type=s.Cs.UPLOADED_FILE;const n=t.content.match(d);if(!n)return e;const[,r,o,i]=n;return t.name=o,t.extension=i,t.attachmentType=m(i),t.imageLoaded=!1,"image"===t.attachmentType?t.thumb="gif"===i?`${r}.${i}`:`${r}${h.test(r)?"-medium":""}.${i}`:t.thumb="",t}function v(e){const t={id:o()(),type:s.Cs.TEXT,sender:s.By.VISITOR,isDelivered:!0,url:(0,i.bq)()};if("string"==typeof e){let n={...t,idFromServer:null,content:e,time_sent:(0,i.Xn)()};return y(n)&&(n=g(n)),n}if("formResponse"in e)return{...t,type:s.Cs.FORM_RESPONSE,idFromServer:null,content:"",time_sent:(0,i.Xn)(),formResponse:e.formResponse};const n=e.id,r=e.message.message,a=e.time_sent;let u={...t,idFromServer:n,content:r,time_sent:a};return y(u)&&(u=g(u)),u}function b(e){return{id:o()(),type:s.Cs.SYSTEM,content:e,sender:s.By.OPERATOR,time_sent:(0,i.Xn)()}}function w(e,t,n){return{id:o()(),type:n,content:"",sender:s.By.OPERATOR,time_sent:(0,i.Xn)(),disabled:!1,threadId:e,messageId:t}}function _(e){return{id:o()(),type:e?s.Cs.RATE_COMMENT_GOOD:s.Cs.RATE_COMMENT_BAD,content:"",sender:s.By.OPERATOR,time_sent:(0,i.Xn)(),disabled:!1}}function S(e){return{id:o()(),type:s.Cs.UPLOADING_FILE,content:"",sender:s.By.VISITOR,time_sent:(0,i.Xn)(),file:e}}function E(){return{id:o()(),type:s.Cs.ALWAYS_ONLINE,content:"",sender:s.By.OPERATOR,time_sent:(0,i.Xn)(),disabled:!1}}function C(){return{id:o()(),type:s.Cs.CREATE_TICKET_SUCCESS,content:"",sender:s.By.OPERATOR,time_sent:(0,i.Xn)(),disabled:!1}}const k=["email","name","phone","gdprConsent","signUpNewsletter",u.WQ];function O(e,t){const n=[];let r=!0;try{if(!e)return[];(function(e){let t=e;return t.find((e=>e.type===u.WQ))&&t.find((e=>"signUpNewsletter"===e.type))&&(t=t.filter((e=>"signUpNewsletter"!==e.type))),t})(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=e.find((e=>e.type===u.WQ));return t?e.find((e=>"email"===e.type))?!0!==t.value?e.filter((e=>e.type!==u.WQ)):e:e.filter((e=>e.type!==u.WQ&&"signUpNewsletter"!==e.type)):e}(e.fields)).forEach((e=>{const o=e.type;k.find((e=>e===o))&&-1!==["email","name","phone","gdprConsent","emailConsent","signUpNewsletter"].indexOf(o)?t[o]&&"emailConsent"===o||t[o]&&"emailConsent"!==o?n.push({type:o,placeholder:`preformInput_${o}`,value:t[o]}):(r=!1,n.push({type:o,placeholder:`preformInput_${o}`})):"firstmsg"!==o&&(0,a.G)(`Unknown preChat field type - ${o}`)}))}catch(e){(0,a.G)(e)}return r?[]:function(e){const t=e.find((e=>e.type===u.WQ));return t?e.filter((e=>e.type!==u.WQ)).concat(t):e}(n)}function A(e,t){const n=O(e,t);return 0===n.length?null:{id:o()(),type:s.Cs.PRECHAT,content:"preChat",sender:s.By.OPERATOR,time_sent:(0,i.Xn)(),disabled:!1,preChatFields:n}}function x(e){let t,{data:n}=e,r=n.type;if("1"===n.auto&&(r=s.By.BOT),-1!==Object.values(c).indexOf(r)){if(r===c.visitor)t=v(n);else{const e=n.message?.type,i=f[e],a=function(e){switch(e){case f.cards:return f.cards===s.Cs.CARD_GALLERY;case f.buttons:return f.buttons===s.Cs.BUTTONS;case f.couponCode:return f.couponCode===s.Cs.COUPON_CODE;case f.uploadedFile:return f.uploadedFile===s.Cs.UPLOADED_FILE;case f.rateAutomaticSurvey:return f.rateAutomaticSurvey===s.Cs.AUTOMATIC_SURVEY;case f.form:return f.form===s.Cs.FORM;case f.formResponse:return f.formResponse===s.Cs.FORM_RESPONSE;case f.iframe:return f.iframe===s.Cs.IFRAME;default:return!1}}(i)?i:s.Cs.TEXT;let u=n.message.message;"string"==typeof u&&(u=u.trim());const l=n.operator_id,d=n.time_sent,p=n.id,h=n.is_waiting_for_answer,m=n.is_ai_assistant;let y;if(r===c.bot){n.message?.quick_replies&&Array.isArray(n.message.quick_replies)&&n.message.quick_replies.length>0&&(y=n.message.quick_replies)}t={id:o()(),idFromServer:p,isWaitingForAnswer:h,isAIAssistant:m,ratingId:n.rating_id||null,type:a,content:u,sender:r,quickReplies:y,operator_id:l,time_sent:d,disableTextInput:Boolean(n.disable_text_input),chat_bot_name:n.chat_bot_name}}if(t){if(t.type===f.cards)t=function(e,t){const n={...e};try{if(!t.cards)return;n.cards=t.cards;const e=n.cards[0].imageUrl;return("string"!=typeof e||0===e.length)&&(n.cards=n.cards.map((e=>{const{imageUrl:t,...n}=e;return{...n}}))),n.cards=n.cards.map((e=>{const{url:t,subtitle:n,imageUrl:r,...o}=e,i="string"==typeof e.imageUrl&&e.imageUrl.length>0,a="string"==typeof t&&t.length>0,s="string"==typeof n&&n.length>0,u={...o};return i&&(u.imageUrl=r),a&&(u.url=t),s&&(u.subtitle=n),u})),n}catch(e){return}}(t,n.message);else if(t.type===f.buttons)i=t,a=n.message,t={...i,buttons:a.buttons||[]};else if(t.type===f.couponCode)t=function(e,t){return{...e,couponCode:t.couponCode?.couponCode||""}}(t,n.message);else if(y(t))t=g(t);else if(t.type===f.rateAutomaticSurvey){const{message:e}=n,{comment:r,rating:o}=e.satisfactionSurvey.response;if(r||o)return;t=function(e,t){return{...e,satisfactionSurvey:t.satisfactionSurvey,messageId:e?.idFromServer||void 0,threadId:t.satisfactionSurvey.threadId}}(t,e)}else t.type===f.form?t=function(e,t){return{...e,form:t.form?.form??[],content:t.form?.text??""}}(t,n.message):t.type===f.formResponse?t=function(e,t){return{...e,formResponse:t.formResponse}}(t,n.message):t.type===f.iframe&&(t=function(e,t){return{...e,iframe:t.iframe}}(t,n.message));var i,a;return t}}}},9245:function(e,t,n){"use strict";n.d(t,{V5:function(){return o},Vb:function(){return i},WQ:function(){return r}});const r="emailConsent",o="department_id",i="gdprConsent"},1355:function(e,t,n){"undefined"==typeof Promise&&(n(2760).enable(),window.Promise=n(3962)),n(7058)},6097:function(e,t,n){"use strict";n.r(t);var r=n(1914),o=n(8528),i=n(6934),a=n(2584),s=n(8833),u=n(2391),c=n(9243);const l=r.lazy((()=>n.e(864).then(n.bind(n,5375))));var f=()=>{const e=(0,i.v9)((e=>e.isMounted)),t=(0,i.v9)((e=>e.hideWhenOffline)),n=(0,i.v9)((e=>e.isProjectOnline)),o=(0,i.v9)(u.cn);return!e||t&&!n&&!o?null:(0,c.tZ)(r.Suspense,{fallback:null,children:(0,c.tZ)(l,{})})};(0,a.P5)();const d=e=>{const t=(0,o.s)(window.parent.document.getElementById("tidio-chat"));return t.render((0,c.tZ)(i.zt,{store:e,children:(0,c.tZ)(f,{})})),t.unmount};window.tidioChatApi=window.tidioChatApi||new class{constructor(){this.eventPrefix="tidioChat-",this.readyEventWasFired=!1,this.queue=[],this.popUpOpen=this.open,this.popUpHide=this.close,this.chatDisplay=this.display,this.setColorPallete=this.setColorPalette}on(e,t){"ready"===e&&this.readyEventWasFired?t():document.addEventListener(`${this.eventPrefix}${e}`,(e=>{t(e.data)}),!1)}trigger(e,t){if("ready"===e&&this.readyEventWasFired)return!1;try{const n=document.createEvent("Event");if(n.initEvent(`${this.eventPrefix}${e}`,!0,!0),n.data=t,document.dispatchEvent(n),"ready"===e){if(this.readyEventWasFired)return!1;this._flushAllFromQueue(),this.readyEventWasFired=!0}}catch(e){return!1}return!0}method(e,t){return"ready"===e&&"function"==typeof t?(this.on("ready",t),!0):(this[e]&&this[e](t),!0)}_addToQueue(e,t=null){this.queue.push({method:e,args:t})}_flushAllFromQueue(){for(;0!==this.queue.length;){const{method:e,args:t}=this.queue.shift();this[e].apply(null,t)}}open(){this._addToQueue("open")}close(){this._addToQueue("close")}display(e=!0){this._addToQueue("display",[e])}show(){this._addToQueue("show")}hide(){this._addToQueue("hide")}setColorPalette(e){this._addToQueue("setColorPalette",[e])}track(e="track",t={},n=(()=>{})){this._addToQueue("track",[e,t,n])}messageFromVisitor(e){this._addToQueue("messageFromVisitor",[e])}messageFromOperator(e,t=!0){this._addToQueue("messageFromOperator",[e,t])}setVisitorData(e,t){this._addToQueue("setVisitorData",[e,t])}setContactProperties(e,t){this._addToQueue("setContactProperties",[e,t])}addVisitorTags(e,t){this._addToQueue("addVisitorTags",[e,t])}setFeatures(e={}){this._addToQueue("setFeatures",[e])}},window.requestIdleCallback=window.requestIdleCallback||function(e){const t=Date.now();return setTimeout((()=>{e({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-t))}})}),1)},window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)},window.requestIdleCallback((()=>{const e=n(618).Z;window.requestIdleCallback((()=>{const t=e();window.requestIdleCallback((()=>{if((0,s.f)().markDuration("widget_total_load_in_ms","start",window.FIRST_POSSIBLE_JS_EXECUTION),(0,s.f)().markDuration("widget_js_total_load_in_ms","start",window.FIRST_POSSIBLE_JS_EXECUTION),(0,s.f)().markDuration("widget_js_total_load_in_ms","end"),t){const e=t.getState(),n=(0,u.cn)(e),r=(0,a.$U)(),{document:o}=window.parent,i=o.createElement("div");i.id="tidio-chat";let s=()=>{};if(!n||r)o.body.appendChild(i),s=d(t);else{const e=o.body.querySelector(".right"),n=o.createElement("section");n.className="center",n.appendChild(i),e.parentNode.insertBefore(n,e),s=d(t)}0}}),{timeout:50})}),{timeout:100})}),{timeout:100})},6972:function(e,t,n){"use strict";n.d(t,{BD:function(){return i},X0:function(){return s},hO:function(){return a}});var r=n(1569),o=n.n(r);const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";let r="https://api-v2.tidio.co/"+e;const i={method:n};return"GET"===n?r=`${r}?${o().stringify(t)}`:(i.body=JSON.stringify(t),i.headers={"Content-Type":"application/json"}),fetch(r,i).then((e=>Promise.all([e.json(),e]))).then((e=>{const[t,n]=e;if(401===n.status)throw new Error(n.status);if(!n.ok||!t||!t.status){if(t){if("object"==typeof t.value&&null!==t.value&&t.value.reason)throw new Error(`${t.value.reason}`);if("object"==typeof t.value&&null!==t.value&&t.value.error)throw new Error(`${t.value.error}`);throw new Error(`${t.value}`)}throw new Error(`Error code - ${n.status}`)}if(n.ok)return t;throw new Error(`Error code - ${n.status}`)})).then((e=>e.value))},a=()=>window.parent.fetch("/cart.js",{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"}).then((e=>Promise.all([e.json(),e]))).then((e=>{const[t,n]=e;if(401===n.status)throw new Error(n.status);if(!n.ok||!t)throw new Error(`Error code - ${n.status}`);return t})),s=()=>window.parent.fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:{"Tidio Visitor Id":null}})})},5626:function(e,t,n){"use strict";const r=(0,n(1226).Z)();t.Z={publish:function(e,t){r.emit(e,t)},subscribe:function(e,t){return r.on(e,t),()=>{r.off(e,t)}}}},2018:function(e,t,n){"use strict";n.d(t,{$k:function(){return f},IS:function(){return d},Rn:function(){return l},_I:function(){return c},a9:function(){return u},xB:function(){return a},yP:function(){return s}});var r=n(9503);let o=null,i=null;function a(e,t){o=e,i=t}const s=()=>i?i.frameElement:null,u=()=>i,c=()=>o;function l(){if(!o)return!1;const e=o.getElementById("new-message-textarea");return e&&e.focus(),!0}function f(){if(!o)return!1;try{const e=o.querySelectorAll(".always-online input:not(.disabled), .pre-chat input:not(.disabled)");if(e.length>0){const t=e[e.length-1];t.focus();const n=t.parentNode.parentNode,r=()=>{n.removeEventListener("animationend",r),n.classList.remove("shake")};n.classList.add("shake"),n.addEventListener("animationend",r)}return!0}catch(e){return(0,r.G)(e),!1}}function d(){if(!o)return!1;try{const e=o.querySelector(".message-with-buttons:not(.buttons-hidden)");if(e&&e.scrollIntoView)try{e.scrollIntoView({behavior:"smooth"})}catch(t){e.scrollIntoView()}return!0}catch(e){return(0,r.G)(e),!1}}},1501:function(e,t,n){"use strict";n.d(t,{D8:function(){return d},Gb:function(){return s},P0:function(){return p},oG:function(){return u},sz:function(){return l},yl:function(){return c},zk:function(){return i}});var r=n(9809),o=n(2124);const i=24;const{getChatHeight:a,setIframePlatform:s}=function(){let e=747;return{getChatHeight:()=>e,setIframePlatform:t=>{t===r.t4.WIX&&(e=647)}}}(),u={onlyBubble:"onlyBubble",onlyBubbleSmall:"onlyBubbleSmall",onlyBubbleMedium:"onlyBubbleMedium",onlyBubbleLarge:"onlyBubbleLarge",onlySidebar:"onlySidebar",bubbleWithLabel:"bubbleWithLabel",chatSize1:"chatSize1",chatSize2:"chatSize2",chatSize3:"chatSize3",mobile:"mobile",dynamic:"dynamic"},c={[u.onlyBubble]:{width:"94px",height:"94px",bottom:"35px",right:"9px",left:"9px"},[u.onlyBubbleSmall]:{width:"60px",height:"60px",bottom:"20px",right:"10px",left:"10px"},[u.onlyBubbleMedium]:{width:"80px",height:"80px",bottom:"10px"},[u.onlyBubbleLarge]:{width:"94px",height:"94px",bottom:"15px",right:"-7px",left:"-7px"},[u.bubbleWithLabel]:{bottom:"35px",right:"9px",left:"9px"},[u.onlySidebar]:{bottom:"50%"}},l=(0,o.dZ)()?"30px 47px 47px 47px":"47px 30px 47px 47px",f={width:"450px",height:`${a()}px`,maxHeight:"100%"},d=(e,t)=>{let n=e;"string"==typeof e&&(e.includes("px")||e.includes("%")||(n=`${e}px`));let r=t;"string"==typeof t&&(t.includes("px")||t.includes("%")||(r=`${t}px`)),f.width="string"==typeof n?n:`${n}px`,f.height="string"==typeof r?r:`${r}px`},p=e=>({[u.onlyBubble]:{width:"112px",height:"140px"},[u.onlyBubbleSmall]:{width:"70px",height:"75px"},[u.onlyBubbleMedium]:{width:"80px",height:"85px"},[u.onlySidebar]:{width:"60px",height:"350px",bottom:"50%",transform:"translateY(50%)"},[u.chatSize1]:{width:"450px",height:`${a()}px`,maxHeight:"100%"},[u.chatSize2]:{width:"450px",height:`${a()+i}px`,maxHeight:"100%"},[u.chatSize3]:{width:"450px",height:`${a()+2*i}px`,maxHeight:"100%"},[u.mobile]:{width:"100%",height:"100%"}}[e]||f)},2584:function(e,t,n){"use strict";n.d(t,{$U:function(){return f},B1:function(){return w},B6:function(){return x},Dr:function(){return T},EE:function(){return te},EY:function(){return j},Fg:function(){return M},GK:function(){return K},L0:function(){return Y},LE:function(){return G},Lj:function(){return B},P5:function(){return ce},QI:function(){return y},Q_:function(){return ie},Qv:function(){return A},UC:function(){return ue},XH:function(){return ae},Xh:function(){return O},Xn:function(){return S},Z0:function(){return c},Zk:function(){return W},_1:function(){return C},a7:function(){return z},bi:function(){return ne},bq:function(){return q},by:function(){return _},en:function(){return J},g6:function(){return H},gZ:function(){return b},gy:function(){return $},jr:function(){return ee},k:function(){return F},kA:function(){return k},kq:function(){return V},mR:function(){return X},nG:function(){return re},of:function(){return L},pB:function(){return N},qs:function(){return Q},t7:function(){return p},tq:function(){return E},uI:function(){return se},vV:function(){return D},w8:function(){return U},xX:function(){return v},yb:function(){return oe}});var r=n(1291),o=n.n(r),i=n(729),a=n.n(i),s=n(9809),u=n(9503);function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.parent.document;try{let t=e.querySelector('script[src*="code.tidio.co"]');if(t||(t=e.querySelector('script[src*="code.tidio"],script[src*="code"][src*="tidio"],script[src*="uploads/redirect"][src*="tidio"]')),null===t){const t=function(e){try{if(e.tidioChatCode)return e.tidioChatCode}catch(e){return!1}return!1}(e);return t||!1}const n=/([a-z0-9]+)(\.js|$)/g.exec(t.src);return!(!n||0===n.length||32!==n[1].length)&&n[1]}catch(e){return(0,u.G)(e),!1}}let l=null;function f(){if(null===l)try{l=!0===window.parent.document.tidioChatPreviewMode}catch(e){(0,u.G)(e),l=!1}return l}let d=null;function p(){if(null===d)try{d=!0===window.parent.document.tidioChatTestingMode}catch(e){(0,u.G)(e),d=!1}return d}const h=["tidio.com","tidio.dev","localhost","dev.tidio.in","widget.tidio.localhost"];let m=null;function y(){try{if(null===m){const e=window.parent.document,t=window.parent.origin,n=h.some((e=>t.includes(e)));m=Boolean(e.tidioSandbox&&Object.keys(e.tidioSandbox).length>0&&n)}}catch(e){m=!1}return m}let g=null;function v(){try{null===g&&(g=Boolean(window.parent.document.tidioChatPreviewModeData?.isInTour))}catch(e){(0,u.G)(e),g=!1}return g}function b(){return window.parent.document.tidioSandbox||{}}function w(){try{return!0===window.parent.document.tidioChatOnSite}catch(e){return(0,u.G)(e),!1}}function _(){return a()().replace(/-/g,"")}function S(){return Math.floor((new Date).getTime()/1e3)}function E(){if(f()&&v())return!1;try{return Boolean(navigator.userAgent&&/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))}catch(e){return!1}}function C(){try{return-1!==navigator.appVersion.indexOf("iPad")}catch(e){return!1}}function k(){let e=s.Os.UNKNOWN;return-1!==navigator.appVersion.indexOf("Win")?e=s.Os.WINDOWS:-1!==navigator.appVersion.indexOf("Android")?e=s.Os.ANDROID:-1!==navigator.appVersion.indexOf("iPad")||-1!==navigator.appVersion.indexOf("iPhone")?e=s.Os.IOS:-1!==navigator.appVersion.indexOf("Mac")?e=s.Os.OSX:-1!==navigator.appVersion.indexOf("X11")?e=s.Os.UNIX:-1!==navigator.appVersion.indexOf("Linux")&&(e=s.Os.LINUX),{name:e,version:""}}function O(e){return o()(e)}function A(e,t){if(typeof e!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==t[n])return!1;return!0}function x(){try{let e=window,t=null;const n=3;let r=0;for(;!t&&r({...t,[n]:e[n]})),{});return 0!==Object.keys(n).length&&n}function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!!e&&R(e,Object.keys(e).filter((t=>(Object.keys(T).includes(t)||Object.keys(I).includes(t))&&Boolean(e[t]))))}function F(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!!e&&R(e,Object.keys(e).filter((e=>[...Object.keys(T),...Object.keys(P)].includes(e))))}function M(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e)return!1;const t={widgetLabelStatus:!1,mobileHash:!1,allowAttachments:!1,customBranding:!1,prechatSubscriptionCheckboxDefaultValue:!1,chatOptions:!1};return R(e,Object.keys(e).filter((e=>[...Object.keys(t)].includes(e))))}function D(e){if(-1===e.indexOf("@")||-1===e.indexOf("."))return!1;return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}const j=e=>/^(\+?\d+[ -]?)?(\(\d+\))?( ?\/ ?)?([\s-.]?\d{1,5}){5,}.*\d$/.test(e||""),L=()=>{try{const e=window.parent.document;if(e.tidioChatLang){const t=e.tidioChatLang;if("string"==typeof t)return t.toLowerCase()}return navigator.language&&"string"==typeof navigator.language?navigator.language.toLowerCase():navigator.languages&&Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages[0].toLowerCase():"en"}catch(e){return(0,u.G)(e),"en"}};function B(e){if(e[0]===e[1]||4!==e.length)return[e[0],e[0],e[2]||"#fff","#020610"];const t=[["#0a0e88","#00b1ce","#fff","#020610"],["#19025c","#6e28bf","#fff","#020610"],["#31003e","#c3286e","#fff","#020610"],["#98033a","#f74f28","#fff","#020610"],["#047c8d","#2ff289","#fff","#020610"]];switch(e[0]){case"#0048ea":return t[0];case"#7d2dff":return t[1];case"#b22cd4":return t[2];case"#f72749":return t[3];case"#00b6bf":return t[4];default:return e}}function U(e){if(e[0]===e[1])return e;const t=[["#0048ea","#1ce2ff"],["#7d2dff","#1f6eff"],["#b22cd4","#f0397a"],["#f72749","#f78320"],["#00b6bf","#9be68d"]],n=["#0a0e88","#19025c","#31003e","#98033a","#047c8d"];let r;switch(e[0]){case n[0]:r=t[0];break;case n[1]:r=t[1];break;case n[2]:r=t[2];break;case n[3]:r=t[3];break;case n[4]:r=t[4];break;default:r=[e[0],e[1]]}return[r[0],r[1],e[2],e[3]]}function z(e,t){let n=e;try{return`rgba(${(n=n.replace("#","")).match(new RegExp(`(.{${n.length/3}})`,"g"))?.map((e=>parseInt(n.length%2?e+e:e,16))).concat(t||1).join(",")})`||e}catch(e){return(0,u.G)(e),n}}function H(e,t){try{let n=String(e).replace(/[^0-9a-f]/gi,"");n.length<6&&(n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]);const r=t||0;let o,i="#",a=0;for(a=0;a<3;a+=1)o=parseInt(n.substr(2*a,2),16),o=Math.round(Math.min(Math.max(0,o+o*r),255)).toString(16),i+=`00${o}`.substr(o.length);return i}catch(t){return(0,u.G)(t),e}}const V=e=>{try{if(window.parent)if("function"==typeof window.parent.onpopstate){const t=window.parent.onpopstate;window.parent.onpopstate=function(){if(e(),"function"==typeof t){for(var n=arguments.length,r=new Array(n),o=0;o{try{return window.parent.document.tidioLocationURL?window.parent.document.tidioLocationURL:window.parent.location.href}catch(e){return""}},X=()=>{try{if(window.parent.document.tidioLocationURL){const e=document.createElement("a");return e.href=window.parent.document.tidioLocationURL,e.hostname}const e=window.top?.location;return e?`${e.hostname}`:""}catch(e){return""}},Q=()=>{const{appName:e,userAgent:t}=navigator;let n,r=t.match(/(crios|opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i);try{return r&&/trident/i.test(t)&&(n=/\brv[ :]+(\d+)/g.exec(t)||[],r[1]="IE",r[2]=n[1]||""),r&&"Chrome"===r[1]&&(n=t.match(/\b(OPR|Edge)\/(\d+)/),null!==n&&(n[1]=n[1].replace("OPR","Opera"),r=n)),r&&"CriOS"===r[1]&&(r[1]="Chrome"),n=t.match(/version\/([.\d]+)/i),r&&null!==n&&(r[2]=n[1]),r=r?[r[1],r[2]]:[`${e}-?`,navigator.appVersion],{name:r[0],version:parseFloat(r[1])}}catch(e){return{name:"",version:0}}},Y=Q().name.toLowerCase(),K="firefox"===Y?{srcDoc:""}:{},Z=/^(?:\w+script|data):/i,J=e=>{if(!e||Z.test(e.replace(/\s+/g,"")))return null;try{if(!e.includes("http://")&&!e.includes("https://")&&!e.startsWith("//"))return J(`https://${e}`);const t=document.createElement("a");t.href=e;const{protocol:n,host:r,pathname:o,search:i,hash:a}=t;return{protocol:n,host:r,pathname:o,search:i,hash:a}}catch(e){return null}},ee=e=>{const t=J(e);return t?`${t.protocol}//${t.host}${t.pathname}${t.search}${t.hash}`:""},te=(e,t)=>{if(!e||!t)return!1;try{const n=J(e),r=J(t);return n?.host===r?.host}catch(e){return!1}};function ne(){return!function(){let e="";try{e=X()}catch{return!1}return!!e.match(/tidiochat\.com/)||(!!e.match(/tidio\.dev/)||(!!e.match(/tidio\.in/)||!!e.match(/tidio\.com/)))}()&&Boolean(navigator.webdriver)}const re=e=>{const t=te(q(),e);try{t&&window.top?window.top.location.assign(e):window.open(e)}catch(t){window.open(e)}};function oe(e){return Boolean(e)}function ie(e){return"w0i4b7fdeerfqqn4w8lwb7ahjasjnrmd"===e}function ae(e){return e.replace("s3.eu-west-1.amazonaws.com/avatars.tidiochat.com","avatars.tidiochat.com")}const se=26e3,ue=["#00A9FF","#01CCFF"];function ce(){if(!["development","test"].includes("production"))return;console.error=function(){}}},8833:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var r=n(4572),o=(n(1623),n(1416),n(8116),n(4555),n(2584));const i=["widget_ws_reconnect_time_in_ms","widget_ws_reconnect_attempts"],a=["widget_ws_initial_connection_in_ms","widget_js_total_load_in_ms","widget_total_load_in_ms","widget_ws_reconnect_time_in_ms","widget_ws_reconnect_attempts"].filter((e=>!i.includes(e)));a.length;class s{constructor(){(0,r.Z)(this,"metricsCollectorUrl",void 0),(0,r.Z)(this,"events",{}),(0,r.Z)(this,"hasSentInitialMetrics",!1),(0,r.Z)(this,"timer",null),(0,r.Z)(this,"timeoutFinished",!1),(0,r.Z)(this,"shouldSendMetrics",!0);100*Math.random()""===e||e.endsWith("/")?e:`${e}/`)(new URL(e).toString())}catch(e){}}isReadyForSendingMetrics(){const e=void 0!==Object.values(this.events).find((e=>null===e.start||null===e.end)),t=a.filter((e=>!this.events[e]));return!e&&0===t.length}markDuration(e,t,n,r){this.events[e]||(this.events[e]={start:null,end:null});const o=this.events[e];o&&(o[t]=n||Date.now());Object.values(this.events).every((e=>null!==e.start&&null!==e.end))&&this.sendInitialMetrics(),r&&this.sendMetrics([e])}setNumericValue(e,t,n){this.events[e]||(this.events[e]={start:0,end:null});const r=this.events[e];r&&(r.start=0,r.end=t),n&&this.sendMetrics([e])}async sendData(e){if(this.metricsCollectorUrl)try{await fetch(`${this.metricsCollectorUrl}metrics/WidgetRegistry/observe`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({metrics:e,deviceType:(0,o.tq)()?"mobile":"desktop"})})}catch{}}async sendInitialMetrics(){if(!this.shouldSendMetrics)return;if(this.hasSentInitialMetrics)return;if(!this.metricsCollectorUrl)return;const e=this.collectInitialMetrics();e&&(await this.sendData(e),this.hasSentInitialMetrics=!0)}async sendMetrics(e){if(!this.metricsCollectorUrl)return;const t=e.filter((e=>{const t=this.events[e]?.end,n=this.events[e]?.start;return"number"==typeof t&&"number"==typeof n})).map((e=>({metric:e,value:(this.events[e]?.end||0)-(this.events[e]?.start||0)})));this.sendData(t);for(let t=0;t{this.timeoutFinished=!0,this.sendInitialMetrics()}),s.maxDurationTimeoutTime),null;if(!this.timeoutFinished&&!this.isReadyForSendingMetrics())return null;this.timer&&(clearTimeout(this.timer),this.timer=null);const e=[];return Object.entries(this.events).forEach((t=>{let[n,r]=t;r.start&&r.end?e.push({metric:n,value:r.end-r.start}):r.start&&!r.end&&e.push({metric:n,value:s.maxDurationTimeoutTime})})),0===e.length?null:e}}(0,r.Z)(s,"sendMetricsPercent",1),(0,r.Z)(s,"maxDurationTimeoutTime",6e4);let u=null;function c(){return u||(u=new s),u}},9503:function(e,t,n){"use strict";n.d(t,{A:function(){return s},G:function(){return a}});var r=n(1535),o=n.n(r);const i="boolean"==typeof PRODUCTION_DEVELOPMENT_BUILD&&!0===PRODUCTION_DEVELOPMENT_BUILD,a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i||o().captureException(e,{extra:t,level:"warning"})},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i||o().captureMessage(e,{level:"info",extra:t})}},5048:function(e,t,n){"use strict";n.d(t,{GN:function(){return a},oE:function(){return i},s_:function(){return s}});var r=n(2584);const o=new Audio;function i(){try{o.volume=0;const e=o.play();"firefox"!==r.L0&&(o.pause(),o.load&&o.load()),void 0!==e&&e.catch((()=>{}))}catch(e){}}function a(e){try{e.volume=.7;const t=e.play();void 0!==t&&t.catch((()=>{}))}catch(e){}}function s(){a(o)}o.src=`${r.LE}/tururu.mp3`,o.volume=.7},2124:function(e,t,n){"use strict";n.d(t,{$m:function(){return c},Up:function(){return i},dW:function(){return u},dZ:function(){return s}});var r=n(1226),o=n(9503);const i=(0,r.Z)();let a={data:{},lang:""};function s(){const e=a.lang;return["ar","dv","fa","he","ku","ps","sd","ug","ur","yi"].indexOf(e)>-1}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=a.data[e];return t?(r||((0,o.G)(`Trans: No translation for key ${e} found.`,{key:e}),r=n||""),Object.keys(t).forEach((e=>{r=r.replace(e,t[e])})),r):r||(null!==n?n:"")}function c(e,t){try{const n=e.find((e=>e.lang===t));a=n||function(e){try{if(window.parent.document.tidioChatLang){const t=window.parent.document.tidioChatLang;if("string"==typeof t){const n=t.split("-")[0].toLowerCase(),r=e.find((e=>e.lang===n));if(r)return r}}if(navigator.languages&&Array.isArray(navigator.languages)&&navigator.languages.length>0)for(let t=0;te.lang===n));if(r)return r;const o=n.split("-")[0];if(r=e.find((e=>e.lang===o)),r)return r}if(navigator.language&&"string"==typeof navigator.language){const t=navigator.language.split("-")[0];if(2===t.length){const n=e.find((e=>e.lang===t));if(n)return n}}}catch(e){}return e.find((e=>"en"===e.lang))||e[0]}(e),a.data||(a.data={}),i.emit("translationsChanged")}catch(e){a={data:{}}}}},4818:function(e,t,n){"use strict";n.d(t,{views:function(){return r}});const r={closed:"closed",fly:"fly",welcome:"welcome",chat:"chat"};Object.values(r)},9233:function(e,t,n){"use strict";n.d(t,{$Ox:function(){return _t},$ho:function(){return Qe},$iQ:function(){return w},$sG:function(){return Pt},AJU:function(){return L},AKm:function(){return Ce},Ae:function(){return G},Ain:function(){return i},Ako:function(){return Y},Bb5:function(){return Pe},Bcz:function(){return Dt},Bv7:function(){return $t},C53:function(){return kn},C5K:function(){return Et},DE3:function(){return tn},E_s:function(){return ht},Exk:function(){return a},FKA:function(){return ge},FNK:function(){return Ot},Fi7:function(){return $e},Fnm:function(){return ae},G$G:function(){return Se},G29:function(){return P},G72:function(){return se},GNj:function(){return K},Gdg:function(){return Ge},Gv8:function(){return dn},GzK:function(){return he},H$_:function(){return de},Hvn:function(){return rn},HzX:function(){return V},IXL:function(){return wn},JOo:function(){return We},Juz:function(){return Ye},Jx5:function(){return h},K6k:function(){return _e},MBD:function(){return m},MHc:function(){return gt},MP:function(){return lt},Mak:function(){return hn},MdE:function(){return d},MlQ:function(){return s},NBe:function(){return _},O02:function(){return o},OFJ:function(){return xt},OWq:function(){return zt},P7G:function(){return U},PCB:function(){return ye},Pk7:function(){return Zt},Pqo:function(){return l},Pxi:function(){return ne},R2_:function(){return Q},RDO:function(){return St},RFv:function(){return Cn},RXn:function(){return _n},RYz:function(){return ke},Rwn:function(){return ze},Rx:function(){return fn},S4C:function(){return cn},SDl:function(){return S},SO$:function(){return on},SOQ:function(){return y},SnQ:function(){return Qt},T7j:function(){return Wt},TCX:function(){return At},TgJ:function(){return Xe},UEA:function(){return W},UKG:function(){return Jt},UKp:function(){return Lt},VCz:function(){return Ut},VZD:function(){return gn},Vab:function(){return jt},VvD:function(){return Xt},W$L:function(){return ln},W5S:function(){return Yt},WyM:function(){return u},X$1:function(){return be},XSP:function(){return yt},Xe1:function(){return Mt},Y57:function(){return q},YFL:function(){return I},YsA:function(){return E},Z1k:function(){return Vt},ZXZ:function(){return On},Zfp:function(){return vn},ZzE:function(){return De},_2t:function(){return H},_Q7:function(){return pn},_Zx:function(){return tt},aO_:function(){return Ze},aj7:function(){return Kt},b2X:function(){return j},bV4:function(){return Fe},bc6:function(){return ue},cIQ:function(){return en},cRf:function(){return sn},cSJ:function(){return yn},cTq:function(){return $},cfi:function(){return Ke},dE8:function(){return Gt},dVn:function(){return je},da$:function(){return bt},e2e:function(){return wt},eBK:function(){return ee},eJn:function(){return un},ejT:function(){return A},ekE:function(){return an},epn:function(){return ie},es$:function(){return xe},f3V:function(){return Re},fQx:function(){return oe},gET:function(){return Ee},h7r:function(){return It},hOh:function(){return it},hkl:function(){return Ct},hxm:function(){return Be},i1G:function(){return F},i5k:function(){return me},iDP:function(){return fe},iND:function(){return Rt},ifM:function(){return ce},j3E:function(){return we},j79:function(){return le},jXk:function(){return Z},jaP:function(){return N},k0o:function(){return D},k7Y:function(){return k},kB_:function(){return g},kEi:function(){return dt},kXf:function(){return Oe},kkW:function(){return Ht},kn_:function(){return xn},kpP:function(){return f},kqK:function(){return T},l1U:function(){return An},lM4:function(){return Ae},lcC:function(){return Te},liy:function(){return J},mME:function(){return Ve},mbl:function(){return Ft},mfn:function(){return nt},nCY:function(){return nn},ncp:function(){return Ie},nhP:function(){return Tt},nqT:function(){return B},num:function(){return Sn},oJl:function(){return te},ojA:function(){return En},oml:function(){return at},oqx:function(){return C},otA:function(){return mn},qRd:function(){return ft},qn_:function(){return re},r67:function(){return Le},rJv:function(){return O},rwX:function(){return R},sdi:function(){return M},sfQ:function(){return vt},tBh:function(){return z},tE4:function(){return et},tLN:function(){return Bt},tLV:function(){return Je},tSq:function(){return st},tTo:function(){return pt},tpH:function(){return c},uGC:function(){return mt},vX3:function(){return ct},vgO:function(){return x},vhR:function(){return Me},vit:function(){return Ue},wIq:function(){return bn},wIr:function(){return X},wp$:function(){return He},xKy:function(){return ut},xZ_:function(){return qt},xn8:function(){return v},xvt:function(){return ve},y82:function(){return Ne},yLO:function(){return pe},yPx:function(){return ot},yaq:function(){return b},yoF:function(){return p},yxR:function(){return kt},zZ6:function(){return Nt},zwZ:function(){return rt}});var r=n(1936);const o="SET_WIDGET_MOUNT_STATE";function i(){return{type:o,status:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}const a="PERSISTED_STATE_LOADED";function s(e){return{type:a,state:e}}const u="REPLACE_STATE_WITH_SAVED";function c(e){return{type:u,state:e}}const l="TRIGGER_REPLACE_STATE_WITH_SAVED";function f(){return{type:l}}const d="MERGE_VISITOR";function p(e){return{type:d,visitorId:e}}const h="INITIALIZE_VISITOR_DATA";function m(e){return{type:h,visitorData:e}}const y="COMPARE_TIDIO_IDENTIFY_DATA";function g(e){return{type:y,identifyData:e}}const v="MERGE_VISITOR_DATA_FROM_IDENTIFY";function b(e){return{type:v,dataToMerge:e}}const w="SAVE_TIDIO_IDENTIFY_DATA";function _(e){return{type:w,identifyData:e}}const S="VISITOR_REGISTER_IMPORT_DATA";function E(e){return{type:S,data:e,callback:arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{}}}const C="SET_PROJECT_STATUS";function k(e){return{type:C,status:e}}const O="SET_CHAT_OPENED_STATE";function A(e){return{type:O,open:e}}const x="SET_IFRAME_VIEW";function T(e){return{type:x,iframeView:e,dimensions:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null}}const I="SET_WIDGET_COLOR";function P(e){return{type:I,color:e}}const R="SET_FLAG_SEND_MESSAGE_FROM_VISITOR";function N(e){return{type:R,shouldSend:e}}const F="SET_OPTION_DROPDOWN_VISIBILITY";function M(e){return{type:F,visible:e}}const D="SET_NOTIFICATION_STATUS";function j(e){return{type:D,status:e}}const L="OPERATOR_IS_TYPING_STATUS";function B(){return{type:L,operatorIdOrStatus:arguments.length>0&&void 0!==arguments[0]&&arguments[0]}}const U="VISITOR_IS_TYPING";function z(){return{type:U,message:arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}}const H="ADD_MESSAGE";function V(e){return{type:H,message:e}}const W="UPLOAD_FILE";function $(e){return{type:W,payload:(0,r.sg)(e)}}const G="UPDATE_ATTACHMENT";function q(e,t,n,r,o,i){return{type:G,messageId:e,attachmentType:t,url:n,name:r,extension:o,thumb:i,imageLoaded:arguments.length>6&&void 0!==arguments[6]&&arguments[6]}}const X="SUBMIT_FORM";function Q(e){return{type:X,message:(0,r.mp)(e)}}const Y="UPDATE_ATTACHMENT_LOADED_STATE";function K(e,t){return{type:Y,messageId:e,imageLoaded:t}}const Z="SEND_MESSAGE_FROM_VISITOR";function J(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{type:Z,message:e,payload:(0,r.mp)(e),emit:t}}function ee(e,t){const n=J(e,!0);return{...n,payload:{...n.payload,payload:t}}}const te="OPERATOR_ASSIGNED_DEPARTMENT";function ne(e){return{type:te,departmentId:e}}const re="OPERATOR_JOINED_CONVERSATION";function oe(e){return{type:re,operatorId:e}}const ie="OPERATOR_LEFT_CONVERSATION";function ae(e){return{type:ie,operatorId:e}}const se="OPERATOR_TRANSFERRED_CONVERSATION";function ue(e,t){return{type:se,sourceOperatorId:e,targetOperatorId:t}}const ce="OPERATOR_CHANGED_STATUS";function le(e,t){return{type:ce,operatorId:e,isOnline:t}}const fe="SET_BLOCKED_MESSAGE";function de(){return{type:fe,message:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null}}const pe="SEND_FILLED_PRECHAT";function he(e){return{type:pe,updateData:e}}const me="SEND_FILLED_ALWAYS_ONLINE_MESSAGE";function ye(e){return{type:me,email:e}}const ge="CREATE_TICKET_WHEN_OPERATORS_OFFLINE";function ve(e,t){return{type:ge,email:e,message:t}}const be="VISITOR_SET_RATING";function we(e){return{type:be,ratingIsGood:e}}const _e="ADD_NEW_MESSAGE_EMOJI";function Se(){return{type:_e,emoji:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null}}const Ee="TOGGLE_EMOJI_PANEL";function Ce(e){return{type:Ee,status:e}}const ke="VISITOR_MESSAGE_DELIVERY_STATUS";function Oe(e,t,n){return{type:ke,messageId:e,idFromServer:t,status:n}}const Ae="SET_MESSAGE_DISABLED_STATE";function xe(e){return{type:Ae,messageIdOrArrayOfIds:e}}const Te="SEND_RATE_CONVERSATION_COMMENT";function Ie(e,t){return{type:Te,messageId:e,comment:t}}const Pe="VISITOR_UPDATE_DATA";function Re(e){return{type:Pe,updateData:e,emit:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]}}const Ne="VISITOR_ADD_TAGS";function Fe(e){return{type:Ne,tags:e}}const Me="SET_CONTACT_PROPERTIES";function De(e){return{type:Me,properties:e}}const je="MERGE_FETCHED_MESSAGES";function Le(e,t){return{type:je,messagesToMerge:e,lastMessageId:t}}const Be="BOTS_GET_STARTED";function Ue(){return{type:Be}}const ze="SHOW_ALERT";function He(e){return{type:ze,message:e}}const Ve="HIDE_ALERT";function We(){return{type:Ve}}const $e="REMOVE_MESSAGE";function Ge(e){return{type:$e,messageId:e}}const qe="TIDIOCHATAPI_FUNCTION_CALL";function Xe(e,t){return{type:qe,functionName:e,args:t}}const Qe="TIDIOCHATAPI_TRACK";function Ye(e,t,n){return{type:Qe,eventName:e,eventData:t,successCallback:n}}const Ke="BOT_TRIGGER";function Ze(e){return{type:Ke,ids:e}}const Je="DATA_IMPORTED_FROM_OLD_WIDGET";function et(){return{type:Je}}const tt="SET_PREVIEW_DATA";function nt(e,t){return{type:tt,prop:e,payload:t}}const rt="SET_BOT_STATUS";function ot(){return{type:rt,isActive:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}const it="CANCEL_BOTS";function at(){return{type:it}}const st="HIDE_HEADER";function ut(){return{type:st,status:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}const ct="DISABLE_BOT_ANIMATION";function lt(){return{type:ct,status:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}const ft="SET_VIEW";function dt(e){return{type:ft,view:e}}const pt="UPDATE_VISITOR_URL";function ht(e){return{type:pt,url:e}}const mt="SHOW_USER_DATA_MODAL";function yt(e){return{type:mt,modal:e}}const gt="SET_FEATURES_FROM_API";function vt(e){return{type:gt,features:e}}const bt="SHOW_OLDER_MESSAGES";function wt(e){return{type:bt,status:e}}const _t="SET_DRAG_AND_DROP_STATUS";function St(e){return{type:_t,status:e}}const Et="CLOSE_SOCKET_CONNECTION";function Ct(){return{type:Et}}const kt="SET_VISITOR_MERGED_EMIT_QUEUE";function Ot(e){return{type:kt,callback:e}}const At="VISITOR_CLICKS_ON_CHAT_ICON";function xt(){return{type:At}}const Tt="SET_PAGE_VISIBLITY_STATUS";function It(e){return{type:Tt,status:e}}const Pt="VISITOR_MARK_MESSAGES_AS_READ";function Rt(){return{type:Pt}}const Nt="SHOPIFY_ORDER_CREATED";function Ft(e){return{type:Nt,params:e}}const Mt="SHOPIFY_CART_TOKEN_UPDATED";function Dt(e){return{type:Mt,params:e}}const jt="SHOPIFY_CHECKOUT_CREATED";function Lt(e){return{type:jt,params:e}}const Bt="VISITOR_WIDGET_POSITION";function Ut(e){return{type:Bt,params:e}}const zt="SET_AWESOME_IFRAME";const Ht="OPEN-IMAGE-POPUP";function Vt(e){return{type:Ht,image:e}}const Wt="CLOSE-IMAGE-POPUP";function $t(){return{type:Wt}}const Gt="SET-IFRAME-MODAL";function qt(e){return{type:Gt,url:e}}const Xt="WIDGET-ACTIVITY-TRACKING";function Qt(e,t){return{type:Xt,event:e,additionalData:t}}const Yt="FETCH-SHOPIFY-CART-CONTENT";function Kt(){return{type:Yt}}const Zt="CLEAR-SHOPIFY-CART-ATTRIBUTES";function Jt(){return{type:Zt}}const en="SET-MESSAGE-FOR-FLY";function tn(e){return{type:en,message:e}}const nn="RATE-CHAT-BOT";function rn(e,t,n){return{type:nn,messageId:e,ratingId:t,rating:n}}const on="SET_RECONNECTION_ATTEMPT_COUNT";function an(e){return{type:on,count:e}}const sn="SET_DISABLE_TEXT_INPUT";function un(e){return{type:sn,status:e}}const cn="SET-SATISFACTION-SURVEY-CONFIG";function ln(e,t,n){return{type:cn,config:e,threadId:t,messageId:n}}const fn="RATE-SATISFACTION-SURVEY";function dn(e,t,n){return{type:fn,rating:e,threadId:t,messageId:n}}const pn="COMMENT-SATISFACTION-SURVEY";function hn(e,t,n){return{type:pn,comment:e,threadId:t,messageId:n}}const mn="JUDGE_ME_RATING_CLICK";function yn(e){return{type:mn,rating:e}}const gn="JUDGE_ME_REVIEW_SENT";function vn(e){return{type:gn,rating:e}}const bn="CART_VALUE_CHANGED_SENT";function wn(e){return{type:bn,eventData:e}}const _n="TRIGGER_SATISFACTION_SURVEY";function Sn(){return{type:_n}}const En="SEND-VIDEO-CALL-OFFER";function Cn(e){return{type:En,payload:e}}const kn="SEND-VIDEO-CALL-ICE-CANDIDATES";function On(e){return{type:kn,payload:e}}const An="AI-ASSISTANT-IS-THINKING";function xn(e){return{type:An,status:e}}},5110:function(e,t,n){"use strict";n.d(t,{M:function(){return o},Y:function(){return i}});var r=n(9884);const o={widgetLoaded:"widgetLoaded",prechatOpened:"prechatOpened",alwaysOnlineOpened:"alwaysOnlineOpened",closeModalClicked:"closeModalClicked",rateConversationClicked:"rateConversationClicked",cardsScrolled:"cardsScrolled",quickReplyClicked:"quickReplyClicked",buttonClicked:"buttonClicked",flyMessageDisplayed:"flyMessageDisplayed",flyMessageClosed:"flyMessageClosed",flyMessageClicked:"flyMessageClicked",widgetLabelClicked:"widgetLabelClicked",widgetIconClicked:"widgetIconClicked",emojiPanelOpened:"emojiPanelOpened",emojiAdded:"emojiAdded",notificationsTurnedOff:"notificationsTurnedOff",notificationsTurnedOn:"notificationsTurnedOn",botsButtonClicked:"botsButtonClicked",flyMessageButtonsClicked:"flyMessageButtonsClicked",botStartedFromBotsMenu:"botStartedFromBotsMenu",botCanceled:"botCanceled",uploadButtonClicked:"uploadButtonClicked",chatClosed:"chatClosed",optionsButtonClicked:"optionsButtonClicked",showPreviousMessagesClicked:"showPreviousMessagesClicked",tidioChatApiFunctionCall:"tidioChatApiFunctionCall",imageModalDisplayed:"imageModalDisplayed",imageModalClosed:"imageModalClosed",fullConversationHistoryRequested:"fullConversationHistoryRequested",whitelabelingEnabled:"whitelabelingEnabled",couponCodeCopyClicked:"couponCodeCopyClicked",iframeModalDisplayed:"iframeModalDisplayed",iframeModalClosed:"iframeModalClosed",iframeModalButtonClicked:"iframeModalButtonClicked"},i=e=>{const t=`trackWidgetEvent_${e}`;return!!(0,r.Hr)(t)||((0,r.Mm)(t,1),!1)}},618:function(e,t,n){"use strict";n.d(t,{Z:function(){return qe}});n(3460),n(4555);var r=n(3872),o=n.n(r),i=n(1535),a=n.n(i);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}function c(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t{let{type:t}=e;"online"!==t&&"offline"!==t||n((0,O.k7Y)(t))}))}function F(e,t,n){e.on("newMessage",(e=>{const t=(0,R.Gr)(e);t&&n((0,O.HzX)(t))}))}function M(e,t,n){e.on("operatorIsTyping",(e=>{let{operator_id:t}=e;n((0,O.nqT)(t))}))}function D(e,t,n){e.on("botIsTyping",(e=>{let{type:t}=e;n("aiAssistant"===t?(0,O.kn_)(!0):(0,O.nqT)(!0))}))}function j(e,t,n){e.on("visitorIsBanned",(()=>{n((0,O.hkl)()),n((0,O.Ain)(!1))}))}function L(e,t,n){e.on("visitorInsideAction",(e=>{let{action:t,value:r}=e;if("visitorShowCustomerSurvey"!==t)return!1;const{satisfactionSurvey:o,threadId:i,messageId:a}=r;n((0,O.W$L)(o,i,a));const s=(0,R.Sg)(i,a,I.Cs.AUTOMATIC_SURVEY);return n((0,O.HzX)(s)),!0}))}function B(e,t,n){e.on("visitorMerged",(e=>{let{visitor_target_id:t}=e;t&&(n((0,O.yoF)(t)),n((0,O.FNK)(A.Ee)))}))}function U(e,t,n){e.on("operatorOpenConversation",(e=>{let{operator_id:r}=e;const{assignedOperators:o}=t(),i=o.find((e=>e===r));return!(!r||i)&&(n((0,O.fQx)(r)),!0)}))}function z(e,t,n){e.on("operatorAssignDepartment",(e=>{let{department_id:t}=e;return!!t&&(n((0,O.Pxi)(t)),!0)}))}function H(e,t,n){e.on("operatorLeaveConversation",(e=>{let{operator_id:t}=e;t&&n((0,O.Fnm)(t))}))}function V(e,t,n){e.on("operatorTransferConversation",(e=>{let{operator_current_id:r,operator_target_id:o}=e;const{assignedOperators:i}=t();return!i.find((e=>e===o))&&(n((0,O.bc6)(r,o)),!0)}))}function W(e,t,n){e.on("botAppStarted",(()=>{n((0,O.yPx)(!0))}))}function $(e,t,n){e.on("botAppStopped",(()=>{n((0,O.yPx)(!1))}))}function G(e,t,n){e.on("botAppTransferred",(()=>{n((0,O.yPx)(!1))}))}function q(e,t,n){e.on("botAppSuccess",(()=>{n((0,O.yPx)(!1))}))}function X(e,t,n){e.on("botAppFailed",(()=>{n((0,O.yPx)(!1))}))}function Q(e,t,n){e.on("visitorUpdateData",(e=>{n((0,O.f3V)(e,!1))}))}function Y(e,t,n){e.on("operatorStatusHasBeenChanged",(e=>{let{operator_id:t,status:r,dnd_forced_status:o,dnd_is_in_interval:i}=e;const a=!(Boolean(o)||Boolean(i)||"offline"===r);n((0,O.j79)(t,a))}))}function K(e,t,n){e.on("visitorDeleted",(()=>{n((0,O.hkl)()),n((0,O.Ain)(!1)),setTimeout((()=>{(0,T.QI)()}),1e3)}))}function Z(e,t,n){e.on("markMessagesAsRead",(()=>{n((0,O.iND)())}))}function J(e,t,n){e.on("updateCart",(()=>{const{platform:e}=t();"shopify"===e&&n((0,O.aj7)())}))}function ee(e,t,n){e.on("disableTextInput",(()=>{n((0,O.eJn)(!0)),n((0,O.AKm)(!1))}))}function te(e,t,n){e.on("enableTextInput",(()=>{n((0,O.eJn)(!1))}))}function ne(e){e.on("operatorVideoCallOffer",(e=>{x.Z.publish("operatorVideoCallOffered",e)}))}function re(e){e.on("visitorVideoCallOffer",(e=>{x.Z.publish("visitorVideoCallOffer",e)}))}function oe(e){e.on("operatorVideoCallIceCandidates",(e=>{x.Z.publish("operatorVideoCallIceCandidatesOffered",e)}))}function ie(e){e.on("sendEventToGoogleAnalytics",(e=>{let{eventName:t}=e;"string"==typeof t&&(0,P.f)()?.trackEvent({type:"custom",eventName:t})}))}function ae(e){let t=null,n=!1;const r=[];let o=0,i=!0,a=!1;const s=new(k())("https://socket.tidio.co:443",!1,{reconnectionDelay:500,reconnectionDelayMax:6e4,randomizationFactor:.8,reconnectionAttempts:500,transports:["websocket"]});return s.setEmitQueueConstantParametersFunction(((e,t,n)=>{const r=e;"visitorRegister"!==t&&"visitorIdentify"!==t&&"visitorLastSeenUpdate"!==t&&(r.visitorId||(r.visitorId=n.visitor.id),r.projectPublicKey||(r.projectPublicKey=n.publicKey),r.device||(r.device=n.isMobile?"mobile":"desktop"))})),s.setListeners([N,F,M,D,L,j,B,z,U,H,V,W,$,G,q,X,Q,Y,K,Z,J,ee,te,ne,re,oe,ie]),s.setManagerEventsActions("connect",((n,r)=>{a||((0,w.f)().markDuration("widget_ws_initial_connection_in_ms","end"),a=!0),o=0,n.dispatch((0,O.ekE)(o));const{tidioIdentifyChanged:u}=n.getState();u?r(A.fz,(()=>{r(A.Ee,e,i,s.closeConnection)})):r(A.Ee,e,i,s.closeConnection),t&&(clearInterval(t),t=null),t=setInterval((()=>{r(A.xr)}),3e4)})),s.setManagerEventsActions("reconnect_attempt",(e=>{a&&(i=!1),o+=1,e.dispatch((0,O.ekE)(o))})),s.setManagerEventsActions("disconnect",(()=>{(0,w.f)().markDuration("widget_ws_reconnect_time_in_ms","start")})),s.setManagerEventsActions("reconnect",(()=>{(0,w.f)().markDuration("widget_ws_reconnect_time_in_ms","end",void 0,!1),(0,w.f)().setNumericValue("widget_ws_reconnect_attempts",o,!1),(0,w.f)().sendMetrics(["widget_ws_reconnect_time_in_ms","widget_ws_reconnect_attempts"])})),s.setSocketEmitWrapper(((e,t,o,i)=>{let a=o;"visitorPreForm"===e&&(n=!0,a=function(){for(var e=arguments.length,a=new Array(e),s=0;se.filter((e=>"onConversationStart"===e.type&&e.payload&&(!1===e.payload.disabled||void 0===e.payload.disabled))).sort(((e,t)=>e.payload&&void 0!==e.payload.position&&t.payload&&void 0!==t.payload.position?e.payload.position-t.payload.position:0)).map((e=>({triggerId:e.trigger_id,displayName:e.payload.display_name,offlineDisabled:e.payload.offline_disabled,botAppIds:e.payload.bot_app_ids||[]})));const le=(e,t)=>e.map((e=>"operator"===e.sender?{...e,operator_id:t}:e));var fe=n(7139),de=n(2391);const pe={areEnabled:!1,options:[]},he={reconnectAttemptCount:0,previewMode:!1,isMounted:!1,isMobile:!1,isProjectOnline:!1,view:I.G7.CLOSED,showOptionsDropdown:!1,notificationSnoozed:!1,messages:[],blockedMessage:null,unreadMessages:0,preChat:{isFilled:!1,data:null},routingRules:pe,selectedDepartment:null,operators:[],bots:[],getStartedActive:!1,isBotActive:!1,assignedOperators:[],operatorIsTyping:!1,chatIframeStyles:{widgetPosition:"right",iframeView:I.Ms.ONLY_BUBBLE,dimensions:null},sidebarIframeStyles:!1,hideWhenOffline:!1,createTicketWhenOperatorsOffline:!1,publicKey:(0,b.Z0)(),tidioIdentifyData:!1,tidioIdentifyChanged:!1,visitor:{},widgetColor:["#2a27da","#00ccff","#fff","#004dff"],bannerImage:"",newMessageEmoji:null,isEmojiPanelVisible:!1,sendVisitorMessageFlag:!1,alert:{content:"",isVisible:!1},showBranding:!0,hideHeader:!1,mobileButtonSize:I.nr.LARGE,disableBotsButtonAnimation:!1,widgetLabelStatus:!1,mobileHash:!0,allowAttachments:!0,showOldMessages:!1,showMessagesButtonClickedTimestamp:null,isDragAndDropActive:!1,showUserDataModal:!1,platform:I.t4.OTHERS,isSoundEnabled:!0,isPageVisible:!0,isAwesomeIframe:!1,popupImageSrc:"",messageForFly:null,importedOldWidgetData:!1,disableTextInput:!1,satisfactionSurvey:{},customBranding:"",customAvatar:"",prechatSubscriptionCheckboxDefaultValue:!1,aiAssistant:!1,chatOptions:null,aiAssistantIsThinking:!1,iframeModalUrl:null,version:64};function me(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:he,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case O.Jx5:return{...e,visitor:{...t.visitorData}};case O.Exk:return{...e,visitor:{...e.visitor,...(0,se.B)()}};case O.WyM:return{...t.state,isPageVisible:e.isPageVisible,visitor:{...t.state.visitor,is_chat_on_site:e.visitor.is_chat_on_site}};case O.MdE:return{...e,visitor:{...e.visitor,id:t.visitorId}};case O.$iQ:{const{identifyData:n}=t,r=(0,b.pB)(n);return r?{...e,tidioIdentifyData:{...e.tidioIdentifyData,...r},tidioIdentifyChanged:!0}:e}case O.xn8:{const{dataToMerge:n}=t,{identifyData:r}=n,o=(0,b.pB)(r),i=(0,b.Xh)(b.Dr);delete i.tags;const a={...i,...o};return{...e,visitor:{...e.visitor,id:n.id,...a}}}case O.SDl:{const{popup:{position:n,color_bg:r}={position:"right",color_bg:["#21dbdb"]},preform:o=!1,routing_rules:i=pe,current_department_id:a,integrations:s=[],translations:u,hide_when_offline:c=!1,create_ticket_when_all_agents_are_offline:l=!1,sidebar:f=!1,banner_image:d="",showBranding:p=!0,bots:h=[],get_started_active:m,widget_label_status:y,platform:g="",widget_sound_enabled:v,is_awesome_iframe:w=!1,branding_logo_url:_="",widget_avatar_url:E="",is_text_input_disabled:C,ai_assistant:k}=t.data.widget_data,{position:O,size:A}=t.data.widget_data.mobile?t.data.widget_data.mobile:{position:"right",size:125},{unread_messages:x,assigned_operators:T=[],is_bot_active:P}=t.data;(0,S.$m)(u,e.visitor.lang||"");const R=(0,b.tq)();let N="right";if(R)N=O;else{const e=n.indexOf("-")>-1?n.split("-")[1]:n;"left"!==e&&"right"!==e||(N=e)}let F=!1;!R&&f&&f.visible&&(F={position:f.position,color:f.color,fontColor:f.fontColor||"#fff"});const M=(0,b.Lj)(r),D="online"===t.data.project_status,{operators:j=[]}=t.data,L=j.map((e=>({id:e.id,isOnline:e.is_online,name:e.name,avatarSrc:e.image})));let B,U,{messages:z}=e,H=null,V=e.preChat.isFilled;if(o){if(!o.display||o.fields&&0===o.fields.length){H=null;try{const t=(0,fe.VM)(e,"preChat");!e.preChat.isFilled&&t>-1&&(z=(0,b.Xh)(e.messages),z.splice(t,1))}catch(e){}}else{H={fields:o.fields};const e=(0,de.Vk)(),t=s.filter((t=>e.includes(t.platform)));t.length>0&&H.fields.push({type:"signUpNewsletter",value:t.reduce(((e,t)=>[...e,t.platform]),[])})}e.routingRules.areEnabled&&!a&&(V=!1)}switch(A){case 100:B=I.nr.MEDIUM;break;case 75:B=I.nr.SMALL;break;default:B=I.nr.LARGE}switch(g){case b.Zk.shopify:U=I.t4.SHOPIFY;break;case b.Zk.wordpress:U=I.t4.WORDPRESS;break;case b.Zk.wix:U=I.t4.WIX;break;default:U=I.t4.OTHERS}const W=(0,b.QI)()?[]:ce(h);return{...e,chatIframeStyles:{...e.chatIframeStyles,widgetPosition:N},sidebarIframeStyles:F,hideWhenOffline:c,createTicketWhenOperatorsOffline:l,unreadMessages:x,operators:L,bots:W,getStartedActive:m,isBotActive:P,assignedOperators:T,widgetColor:M,bannerImage:d,isProjectOnline:D,messages:z,preChat:{...e.preChat,isFilled:V,data:H},selectedDepartment:a,routingRules:i,showBranding:p,mobileButtonSize:B,widgetLabelStatus:y,platform:U,isSoundEnabled:v,isAwesomeIframe:w,isMobile:R,customBranding:_,customAvatar:E,disableTextInput:C,aiAssistant:k}}case O.dVn:{const{lastMessageId:n,messagesToMerge:r}=t;let o=(0,b.Xh)(e.messages);if(n){const e=o.findIndex((e=>e.idFromServer===n));if(-1===e){const e=(0,b.Xh)(r).map((e=>(0,R.Gr)({data:e}))).filter(b.yb);o=o.concat(e)}else{const t=(0,b.Xh)(r).slice(1).map((e=>(0,R.Gr)({data:e}))).filter(b.yb);o=[...o.slice(0,e+1),...t]}}else o=(0,b.Xh)(r).map((e=>(0,R.Gr)({data:e}))).filter(b.yb);return{...e,unreadMessages:e.view!==ue.views.closed&&e.view!==ue.views.fly?0:e.unreadMessages,messages:o}}case O.oqx:{const n="online"===t.status;return{...e,isProjectOnline:n}}case O.O02:{const n=t.status,r=(0,b.tq)();let o;const i=(0,de.cn)(e),a=e.messages.length>0,s=(0,fe.J)(e),u=(0,de.bP)(e);let c=e.view;return!i||c!==ue.views.closed&&c!==ue.views.fly||(c=I.G7.WELCOME),c===ue.views.welcome&&(a&&!s||r||u)&&(c=I.G7.CHAT),c!==ue.views.chat||a&&!s||u||r||(c=I.G7.WELCOME),r&&c===ue.views.chat&&(c=I.G7.CLOSED),o=c!==ue.views.closed||i?I.Ms.CHAT_SIZE_1:e.sidebarIframeStyles?I.Ms.ONLY_SIDEBAR:I.Ms.ONLY_BUBBLE,r&&(c===ue.views.welcome||c===ue.views.chat?(o=I.Ms.MOBILE,c=I.G7.CHAT):c===ue.views.fly?o=I.Ms.DYNAMIC:e.sidebarIframeStyles?o=I.Ms.ONLY_SIDEBAR:(o=I.Ms.ONLY_BUBBLE,"small"===e.mobileButtonSize?o=I.Ms.ONLY_BUBBLE_SMALL:"medium"===e.mobileButtonSize&&(o=I.Ms.ONLY_BUBBLE_MEDIUM))),{...e,isMounted:n,isMobile:r,chatIframeStyles:{...e.chatIframeStyles,iframeView:o},view:c}}case O.vgO:return{...e,chatIframeStyles:{...e.chatIframeStyles,iframeView:t.iframeView,dimensions:t.dimensions}};case O.YFL:return{...e,widgetColor:t.color};case O.rJv:{const n=t.open,r=(0,fe.J)(e),o=(0,de.bP)(e);if(!n)return{...e,view:I.G7.CLOSED};let i=I.G7.CHAT;return e.isMobile||o||!(0===e.messages.length||r&&0===e.unreadMessages)||(i=I.G7.WELCOME),{...e,view:i,unreadMessages:0}}case O.i1G:return{...e,showOptionsDropdown:t.visible};case O.rwX:return{...e,sendVisitorMessageFlag:t.shouldSend};case O.k0o:return{...e,notificationSnoozed:t.status};case O.AJU:{const{operatorIdOrStatus:n}=t;return{...e,operatorIsTyping:n}}case O._2t:{const{view:n,isPageVisible:r}=e;return{...e,messages:e.messages.concat(t.message),unreadMessages:!r||n!==ue.views.welcome&&n!==ue.views.chat?e.unreadMessages+1:0,operatorIsTyping:!1}}case O.oJl:{const{departmentId:n}=t,{isFilled:r}=e.preChat;return 0!==(0,R.c)(e.preChat.data,e.visitor).length||r?{...e,selectedDepartment:n}:{...e,selectedDepartment:n,preChat:{...e.preChat,isFilled:!0},showUserDataModal:!1}}case O.qn_:{const{operatorId:n}=t;return{...e,assignedOperators:e.assignedOperators.concat(n)}}case O.epn:{const{operatorId:n}=t,r=e.assignedOperators.indexOf(n),o=(0,b.Xh)(e.assignedOperators);return o.splice(r,1),{...e,assignedOperators:o}}case O.G72:{const{sourceOperatorId:n,targetOperatorId:r}=t,o=e.assignedOperators.indexOf(n);let i=(0,b.Xh)(e.assignedOperators);i.splice(o,1);return e.assignedOperators.indexOf(r)<0&&(i=i.concat(r)),{...e,assignedOperators:i}}case O.ifM:{const{operatorId:n,isOnline:r}=t,o=(0,b.Xh)(e.operators).map((e=>e.id===n?{...e,isOnline:r}:e));return{...e,operators:o}}case O.uGC:{const{modal:n}=t;return{...e,showUserDataModal:n}}case O.yLO:{let n={};return R.Ul.forEach((e=>{const r=t.updateData[e];void 0!==r&&(n={[e]:r,...n})})),{...e,preChat:{...e.preChat,isFilled:!0},visitor:{...e.visitor,...n},showUserDataModal:!1}}case O.i5k:{const{email:n}=t;return{...e,visitor:{...e.visitor,email:n},showUserDataModal:!1}}case O.FKA:{const{email:n}=t;return{...e,visitor:{...e.visitor,email:n},blockedMessage:null}}case O.K6k:return{...e,newMessageEmoji:t.emoji,isEmojiPanelVisible:!1};case O.gET:return{...e,isEmojiPanelVisible:t.status};case O.jXk:{const{payload:n}=t;return n.isDelivered=!0,{...e,messages:e.messages.concat(n),blockedMessage:null}}case O.wIr:return{...e,messages:e.messages.concat(t.message),blockedMessage:null};case O.UEA:{const{payload:n}=t;return n.file?(n.isDelivered=!0,{...e,messages:e.messages.concat(n)}):{...e}}case O.iDP:return{...e,blockedMessage:t.message};case O.RYz:{const n=(0,b.Xh)(e.messages),r=n.findIndex((e=>e.id===t.messageId));return-1===r?e:(n[r].isDelivered=t.status,n[r].idFromServer=t.idFromServer,{...e,messages:n})}case O.Ae:{const n=(0,b.Xh)(e.messages),r=n.find((e=>e.id===t.messageId));return r?(r.type=I.Cs.UPLOADED_FILE,r.attachmentType=t.attachmentType,r.name=t.name,r.extension=t.extension,r.content=t.url,r.thumb=t.thumb,r.file="",r.imageLoaded=t.imageLoaded,{...e,messages:n}):e}case O.Ako:{const n=(0,b.Xh)(e.messages),r=n.find((e=>e.id===t.messageId));return r?(r.imageLoaded=!0,{...e,messages:n}):e}case O.lM4:{const n=(0,b.Xh)(e.messages);let r=t.messageIdOrArrayOfIds;Array.isArray(r)||(r=[r]);return((e,t)=>{for(let n=0;ne.id===t[n])))return!1}return!0})(n,r)?(r.forEach((e=>{const t=n.findIndex((t=>t.id===e));n[t].disabled=!0})),{...e,messages:n}):e}case O.zwZ:{const{isActive:n}=t;return{...e,isBotActive:n}}case O.lcC:{const n=(0,b.Xh)(e.messages),r=n.findIndex((e=>e.id===t.messageId));return-1===r?e:(n[r].disabled=!0,n[r].content=t.comment,{...e,messages:n})}case O.qRd:{const{view:n}=t;return Object.values(ue.views).includes(n)?{...e,view:n,unreadMessages:t.view===ue.views.chat?0:e.unreadMessages}:e}case O.Bb5:return{...e,visitor:{...e.visitor,...t.updateData}};case O.Rwn:return{...e,alert:{isVisible:!0,content:t.message}};case O.mME:return{...e,alert:{...e.alert,isVisible:!1}};case O.Fi7:{const n=(0,b.Xh)(e.messages),r=n.findIndex((e=>e.id===t.messageId));return-1===r?e:(n.splice(r,1),{...e,messages:n})}case O.tLV:return{...e,importedOldWidgetData:!0};case O._Zx:{if(!(0,b.$U)())return e;const{prop:n,payload:r}=t;if("previewModeEnabled"===n)return{...e,previewMode:r};if("color"===n)return{...e,widgetColor:(0,b.Lj)(r)};if("position"===n)return{...e,chatIframeStyles:{...e.chatIframeStyles,widgetPosition:r.indexOf("-")>-1?r.split("-")[1]:r}};if("operators"===n)return{...e,operators:r};if("translations"===n)return(0,S.$m)(r,"en"),e;if("bannerImage"===n)return{...e,bannerImage:r};if("hideWhenOffline"===n)return{...e,hideWhenOffline:r};if("widgetLabelStatus"===n)return{...e,widgetLabelStatus:r};if("widgetSoundStatus"===n)return{...e,isSoundEnabled:r};if("chatOnSite"===n)return{...e,visitor:{...e.visitor,is_chat_on_site:r}};if("sidebar"===n){let n=!1;const r=t.payload;return r?.visible&&(n={position:r.position,color:r.color,fontColor:r.fontColor}),{...e,sidebarIframeStyles:n}}if("messages"===n)return{...e,messages:"clear"===r?[]:r};if("preChatData"===n)return r.status?{...e,visitor:{...e.visitor,name:"",email:"",phone:""},preChat:{...e.preChat,isFilled:!1,data:{fields:r.fields}}}:{...e,preChat:{...e.preChat,isFilled:!1,data:null},showUserDataModal:!1};if("routingRules"===n)return{...e,routingRules:r};if("previewView"===n){const t=r;let n=!0,{messages:o}=e,i=ue.views.chat,{visitor:a}=e;"gettingStarted"===t?(o=[],i=ue.views.welcome):"preform"===t?a={...e.visitor,name:"",email:"",phone:""}:"closed"===t?i=ue.views.closed:"fly"===t?i=ue.views.fly:o=le([{id:"a793989e-dc69-48c3-bf3b-16e71242cc70",type:"text",sender:"visitor",isDelivered:!0,idFromServer:28776711,content:(0,S.dW)("Hi again"),time_sent:Date.now()/1e3-360},{id:"634f79ba-1794-4184-b5e6-303d934cba50",type:"text",sender:"visitor",isDelivered:!0,idFromServer:28776712,content:(0,S.dW)("Do you have those"),time_sent:Date.now()/1e3-300},{id:"f72b15d1-4ccf-4891-9f11-ea82b52b2d02",idFromServer:28776714,type:"text",content:(0,S.dW)("Hello"),sender:"operator",operator_id:null,time_sent:Date.now()/1e3-240},{id:"8519cb61-83ee-42fd-bdc3-1baea13160b6",type:"text",sender:"visitor",isDelivered:!0,idFromServer:28776715,content:(0,S.dW)("I've been looking for"),time_sent:Date.now()/1e3-180},{id:"5d482850-e480-4a49-9ae6-9fb2089f7149",idFromServer:28776716,type:"text",content:(0,S.dW)("Let me check that"),sender:"operator",operator_id:null,time_sent:Date.now()/1e3-120},{id:"d84cf615-015c-4732-b28e-f27447997baf",type:"text",sender:"visitor",isDelivered:!0,idFromServer:28776717,content:(0,S.dW)("That's great!"),time_sent:Date.now()/1e3-60},{id:"22597c81-a32b-4f09-9a86-10afd82865c9",type:"text",sender:"visitor",isDelivered:!0,idFromServer:28776718,content:(0,S.dW)("Thank you very much!"),time_sent:Date.now()/1e3}],e.operators[0].id);let s=[e.operators[0].id];return"operatorsOffline"===t&&(n=!1,s=[]),{...e,isProjectOnline:n,messages:o,blockedMessage:null,newMessageDisabled:!1,assignedOperators:s,visitor:a,view:i,showUserDataModal:!1}}return"messageForFly"===n?{...e,messageForFly:r}:"showBranding"===n?{...e,showBranding:r}:"customBranding"===n?{...e,customBranding:r}:"customAvatar"===n?{...e,customAvatar:r}:e}case O.tSq:return{...e,hideHeader:t.status};case O.vX3:return{...e,disableBotsButtonAnimation:t.status};case O.MHc:return{...e,...t.features};case O.da$:return{...e,showOldMessages:t.status,showMessagesButtonClickedTimestamp:Math.floor(Date.now()/1e3)};case O.$Ox:return{...e,isDragAndDropActive:t.status};case O.nhP:return{...e,isPageVisible:t.status};case O.$sG:return{...e,unreadMessages:0};case O.OWq:return{...e,isAwesomeIframe:t.status};case O.kkW:return{...e,popupImageSrc:t.image};case O.T7j:return{...e,popupImageSrc:""};case O.dE8:return{...e,iframeModalUrl:t.url};case O.cIQ:return{...e,messageForFly:t.message};case O.nCY:{const n=(0,b.Xh)(e.messages),r=n.findIndex((e=>e.id===t.messageId));return-1===r?e:(n[r].rating=t.rating,{...e,messages:n})}case O.SO$:return{...e,reconnectAttemptCount:t.count};case O.cRf:return{...e,disableTextInput:t.status};case O.S4C:return{...e,satisfactionSurvey:{...e.satisfactionSurvey,[t.threadId]:{...t.config,messageId:t.messageId}}};case O.Rx:return{...e,satisfactionSurvey:{...e.satisfactionSurvey,[t.threadId]:{...e.satisfactionSurvey[t.threadId],response:{...e.satisfactionSurvey[t.threadId].response,rating:t.rating}}}};case O._Q7:return{...e,satisfactionSurvey:{...e.satisfactionSurvey,[t.threadId]:{...e.satisfactionSurvey[t.threadId],response:{...e.satisfactionSurvey[t.threadId].response,comment:t.comment}}}};case O.l1U:return{...e,aiAssistantIsThinking:t.status};default:return e}}let ye=null;const ge=()=>{if(!ye){const e=(0,b.Z0)()||"preview";ye=`tidio_${e}_`}return ye},ve=()=>{const e=`${ge()}tidioChatLog`,t=localStorage.getItem(e);if(t){let e=JSON.parse(t);return e?.data?(e=e.data,Array.isArray(e)?e.length:0):0}return!1};function be(){try{const e=`${ge()}visitorData`;let t;try{t=localStorage.getItem(e)}catch(e){return}if(!t)return;let n=JSON.parse(t);if(!n?.data)return;n=n.data;const r={...n,id:n.id,...(0,se.B)(),project_public_key:(0,b.Z0)()},o=`${ge()}visitorId`;let i;try{i=localStorage.getItem(o)}catch(e){}if(i){const e=JSON.parse(i);e?.data&&"string"==typeof e.data&&32===e.data.length&&(r.id=e.data)}const a=`${ge()}visitorIdOrigin`;let s;try{s=localStorage.getItem(a)}catch(e){}let u=r.id;if(s){const e=JSON.parse(s);e?.data&&"string"==typeof e.data&&32===e.data.length&&(u=e.data)}r.originalVisitorId=u;const c=ve();return{...he,visitor:r,importedMessagesCount:c}}catch(e){return void(0,_.G)(e)}}var we=n(8538),_e=n.n(we);const Se=_e()(T.zL,200);let Ee=null,Ce=!1;var ke=e=>{let{getState:t,dispatch:n}=e;return e=>r=>{switch(r.type){case O.P7G:case O.$Ox:case O.uGC:case O.WyM:return e(r);case O.Pqo:{const t=(0,T.jw)(!1);return t&&T.zf.get()!==t.persistedStateRev&&(n((0,O.tpH)(t)),T.zf.set(t.persistedStateRev)),e(r)}default:{const o=e(r);return!1===Ee?(Ce||(Ce=!0,setTimeout((()=>{n((0,O.wp$)((0,S.dW)("localStorageNotAvailable",null,"You're viewing this page in Private/Incognito mode and your messages aren't saved when you go to other pages. Alternatively, you can enable localStorage if it's blocked in your browser.")))}),1e3)),o):(Ee=null===Ee?(0,T.zL)(t()):Se(t()),o)}}}},Oe=n(2018),Ae=n(1501),xe=n(5048),Te=n(5110);let Ie=null;let Pe=null,Re=270;let Ne=!1,Fe=null,Me={};let De=null;function je(e,t){if(e.isMobile)return!1;if(!t?.activeElement)return!1;if(e.previewMode)return!1;if("INPUT"!==t.activeElement.tagName){const t=(0,de.Ey)(e);return!t||!(t.type===R.Nw.cards||t.quickReplies&&t.quickReplies.length>0)}return!1}var Le=e=>{let{getState:t,dispatch:n}=e;return e=>r=>{switch(r.type){case O.rwX:{const{shouldSend:t}=r;return t&&setTimeout((()=>{n((0,O.jaP)(!1))}),0),e(r)}case O.SOQ:{const o=t(),{identifyData:i}=r;let a=!0;try{a=!o.tidioIdentifyData||0===Object.keys(o.tidioIdentifyData).length}catch(t){return(0,_.G)(t),e(r)}if(!i&&a)return e(r);const s=(0,b.pB)(i);if(!s)return e(r);if(!(0,b.Qv)(o.tidioIdentifyData||{},s)){const t=e(r);return n((0,O.NBe)(s)),t}return e(r)}case O.O02:if(r.status){const n=t();if(n.isMounted)return!1;const o=(0,de.Ey)(n);o?.isWaitingForAnswer&&(Ne=!0);const i=e(r),{width:a,height:s}=(0,Ae.P0)(n.chatIframeStyles.iframeView,n.isAwesomeIframe);return window.tidioChatApi?.trigger("resize",{width:a,height:s,iframe:(0,Oe.yP)()}),i}return window.tidioChatApi?.trigger("resize",{width:0,height:0,iframe:null}),e(r);case O.rJv:{const o=r.open,i=t();if(!o&&i.view===ue.views.closed)return!1;if(o&&i.view!==ue.views.closed)return!1;const a=!1!==i.sidebarIframeStyles,s="left"===i.chatIframeStyles.widgetPosition||a;if(i.previewMode&&a&&o)return!1;let u;return u=o?Ae.oG.chatSize1:a?Ae.oG.onlySidebar:Ae.oG.onlyBubble,i.isMobile&&(o?u=Ae.oG.mobile:a?u=Ae.oG.onlySidebar:(u=Ae.oG.onlyBubble,"small"===i.mobileButtonSize?u=Ae.oG.onlyBubbleSmall:"medium"===i.mobileButtonSize&&(u=Ae.oG.onlyBubbleMedium))),Pe&&(clearTimeout(Pe),Pe=null),Re=s?270:50,o?(s||n((0,O.kqK)(u)),window.tidioChatApi?.trigger("beforeOpen"),Pe=setTimeout((()=>{s&&n((0,O.kqK)(u)),setTimeout((()=>{const e=(0,Oe._I)();je(i,e)&&(0,Oe.Rn)()}),0),window.tidioChatApi?.trigger("open"),window.tidioChatApi?.trigger("popUpShow")}),Re),e(r)):(window.tidioChatApi?.trigger("beforeClose"),Pe=setTimeout((()=>{window.tidioChatApi?.trigger("close"),window.tidioChatApi?.trigger("popUpHide");const e=t(),r=(0,fe.rW)(e),o=u===Ae.oG.onlyBubble||u===Ae.oG.onlyBubbleMedium||u===Ae.oG.onlyBubbleSmall||u===Ae.oG.onlySidebar;return!(o&&e.view!==ue.views.closed||r&&o)&&(n((0,O.kqK)(u)),!0)}),300),e(r))}case O.qRd:return setTimeout((()=>{je(t(),(0,Oe._I)())&&(0,Oe.Rn)()}),0),r.view===ue.views.chat&&window.tidioChatApi?.trigger("open"),e(r);case O.AJU:return!1!==r.operatorIdOrStatus&&(clearTimeout(Ie),Ie=setTimeout((()=>n((0,O.nqT)(!1))),3e3)),e(r);case O.l1U:return r.status&&(clearTimeout(De),De=setTimeout((()=>n((0,O.kn_)(!1))),b.uI)),e(r);case O.jXk:{const o=t();if(o.isBotActive)return window.tidioChatApi?.trigger("messageFromVisitor",{message:r.message,fromBot:!0,type:"text"}),e(r);if(Ne)return Ne=!1,window.tidioChatApi?.trigger("messageFromVisitor",{message:r.message,fromBot:!0,type:"text"}),e(r);const{payload:i}=r;if(i.payload)return window.tidioChatApi?.trigger("messageFromVisitor",{message:r.message,fromBot:!0,type:"text"}),e(r);const a=(0,de.dr)(o),s=(0,de.Gs)(o),u=(0,R.c)(o.preChat.data,o.visitor).length||a&&!s;if(!o.aiAssistant&&!o.isProjectOnline&&(0,de.cl)(o))return n((0,O.H$_)(r.message)),n((0,O.XSP)("createTicket")),!1;if(!o.preChat.isFilled&&u){if(!(0,fe.nE)(o)||a)return n((0,O.H$_)(r.message)),n((0,O.XSP)("prechat")),!1}else if(!o.isProjectOnline&&(!(0,fe.py)(o)||(0,fe.QR)(o))){const t=(0,R.bO)();if(!t)return e(r);const i=o.visitor.email;if(!o.aiAssistant){if(!i)return n((0,O.H$_)(r.message)),n((0,O.XSP)("alwaysOnline")),!1;t.content=i,t.disabled=!0,setTimeout((()=>{n((0,O.HzX)(t))}))}}const c=(0,T.Hr)("lastMessageFromVisitorTimestamp")||0,l=(0,b.Xn)();return l-c>86400&&window.tidioChatApi?.trigger("conversationStart"),(0,T.Mm)("lastMessageFromVisitorTimestamp",l),window.tidioChatApi?.trigger("messageFromVisitor",{message:r.message,fromBot:!1,type:"text"}),Fe?(Fe(),Fe=null,e({...r,emit:!1})):e(r)}case O.i5k:{const o=(0,R.bO)(),i=e(r);{const e=t();o&&!e.aiAssistant&&n((0,O.HzX)(o))}return n((0,O.jaP)(!0)),setTimeout((()=>{t().aiAssistant||n((0,O.HzX)((0,R.z0)((0,S.dW)("alwaysOnlineThanks"))))}),0),i}case O.FKA:{const t=(0,R.EQ)(),o=e(r);return n((0,O.HzX)(t)),o}case O._2t:{const o=t();if("rateConversation"===r.message.type){if((0,fe.xp)(o,"rateConversation").filter((e=>!e.disabled)).length>0)return(0,Oe.IS)(),!1}const i=o.hideWhenOffline&&!o.isProjectOnline&&!o.visitor.is_chat_on_site;if(o.isSoundEnabled&&!o.notificationSnoozed&&o.isMounted&&!i)try{(0,xe.s_)()}catch(e){(0,_.G)(e)}o.aiAssistantIsThinking&&n((0,O.kn_)(!1)),window.tidioChatApi?.trigger("messageFromOperator",{message:r.message.content,fromBot:r.message.sender===R.Qe.bot});const{isWaitingForAnswer:a}=r.message;return a&&(Ne=!0),e(r)}case O.qn_:{const{operatorId:n}=r;return!(t().assignedOperators.indexOf(n)>-1)&&e(r)}case O.epn:{const{operatorId:n}=r;return-1===t().assignedOperators.indexOf(n)?((0,_.G)(`${r.type} - No operatorId found in assignedOperators`,{operatorId:n}),!1):e(r)}case O.X$1:{const t=(0,R.c0)(r.ratingIsGood);return n((0,O.HzX)(t)),e(r)}case O.Bb5:{const t=(0,b.k)(r.updateData);return!("object"!=typeof r.updateData||!t)&&e({...r,updateData:(0,b.k)(r.updateData)})}case O.oqx:return window.tidioChatApi?.trigger("setStatus",r.status),e(r);case O.yLO:{r.updateData&&window.tidioChatApi?.trigger("preFormFilled",{form_data:r.updateData});const o=t(),i=(0,R.YZ)(o.preChat.data,o.visitor),a=e(r);return i&&n((0,O.HzX)(i)),n((0,O.jaP)(!0)),a}case O.vgO:{const{iframeView:t,dimensions:n}=r;let o,i;return n?(({width:o,height:i}=n),(0,Ae.D8)(o,i)):({width:o,height:i}=(0,Ae.P0)(t)),window.tidioChatApi?.trigger("resize",{width:o,height:i,iframe:(0,Oe.yP)()}),e(r)}case O.hxm:return setTimeout((()=>{n((0,O.kEi)(ue.views.chat))}),200),e(r);case O._Zx:{const{prop:t,payload:o}=r;return"previewView"===t&&setTimeout((()=>{const e=o;"closed"===e?n((0,O.ejT)(!1)):(n((0,O.ejT)(!0)),"operatorsOffline"===e&&setTimeout((()=>{n((0,O.kEi)(ue.views.chat)),n((0,O.XSP)("alwaysOnline"))}),0),"createTicket"===e&&setTimeout((()=>{n((0,O.kEi)(ue.views.chat)),n((0,O.XSP)("createTicket"))}),0),"preform"===e&&setTimeout((()=>{n((0,O.kEi)(ue.views.chat)),n((0,O.XSP)("prechat"))}),0))})),e(r)}case O.SDl:{const o=e(r);Object.keys(Me).length>0&&n((0,O.sfQ)(Me));try{const{platform:e}=t();(0,Ae.Gb)(e)}catch{}return o}case O.MHc:{const t=(0,b.Fg)(r.features);if("object"!=typeof r.features||!t)return!1;const o={...r,features:t};return Me={...Me,...t},t.customBranding&&((0,Te.Y)(Te.M.whitelabelingEnabled)||n((0,O.SnQ)(Te.M.whitelabelingEnabled))),e(o)}default:return e(r)}}},Be=n(6972),Ue=n(9245);const ze=500,He=86400,Ve=e=>[...e.split(" ").slice(0,5).join(" ")].slice(0,255).join("");var We=n(7841);var $e=e=>{let{getState:t,dispatch:n}=e;return e=>r=>{switch(r.type){case O._2t:{const o=t();if(o.isSoundEnabled&&o.notificationSnoozed)return e(r);const{type:i}=r.message;if(o.view===ue.views.closed){const e="rateConversation"===i?ue.views.chat:ue.views.fly;setTimeout((()=>{n((0,O.DE3)(r.message)),n((0,O.kEi)(e))}),0)}else if(o.view===ue.views.fly){"rateConversation"===i&&setTimeout((()=>{n((0,O.kEi)(ue.views.chat))}),0)}else o.view===ue.views.welcome&&setTimeout((()=>{n((0,O.kEi)(ue.views.chat))}),0);return e(r)}case O.jXk:return t().view!==ue.views.chat&&n((0,O.kEi)(ue.views.chat)),e(r);default:return e(r)}}};let Ge=v;b.gy&&(Ge=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||v);var qe=function(){b.gy||a().config("https://611f5b7d62a049b68ed722213e0afbe3@sentry.tidio.co/15",{release:"1.195.0",ignoreErrors:["TypeError: Load failed","TypeError: Failed to fetch","TypeError: NetworkError when attempting to fetch resource.","Object Not Found Matching Id"],ignoreUrls:[/safari-extension/]}).install();const e=(0,b.$U)(),t=(0,b.t7)(),r=(0,b.Z0)();if((0,b.bi)())return;if(!e&&!t&&!1===r)return;const i=(0,b.QI)();let s;e||i||t||(s=(0,T.jw)());let u=!1;if(!e&&!i)if(s){const e=ve();if(!1!==e&&"number"==typeof e&&(e>s.importedMessagesCount||!s.importedMessagesCount)){const e=be();if(e){const{visitor:t,importedMessagesCount:n}=e;u=!0,s={...s,visitor:t,importedMessagesCount:n}}}}else{const e=be();e&&(u=!0,s=e)}s&&(s=(0,T.MX)(s,he));const c=[$e,Le],l=window.parent.document.tidioChatPreviewModeData;let p,h;e||t||(p=(0,T.Hr)("cache"),c.unshift(function(e){return t=>{let{dispatch:n}=t;return t=>n=>{if(n.type===O.SDl){if(e){const r=n?.data?.widget_data?.cache_hash;if(e.cache_hash===r||void 0===r){const r=(0,b.Xh)(n);return r.data.widget_data={...e,...n.data.widget_data},(0,T.Mm)("cache",r.data.widget_data),t(r)}return(0,T.Mm)("cache",n?.data?.widget_data),t(n)}return(0,T.Mm)("cache",n?.data?.widget_data),t(n)}return t(n)}}}(p))),e&&l&&"function"==typeof l.preMiddleware&&c.unshift(l.preMiddleware),e||t||(h=ae(p),c.push(function(e){let{emitQueue:t,closeConnection:n}=e;return e=>{let{getState:r,dispatch:o}=e;const i=t(r,o),a=_e()(i,ze,{maxWait:ze});return e=>t=>{switch(t.type){case O.SDl:{if("banned"===t.data.visitor_status||"blacklisted"===t.data.visitor_status)return n(),t.callback(!1),!1;const o=t.data.widget_data?.integrations?.map((e=>e.platform));(0,P.B)({integrationsPlatforms:o,emit:i});const a=r(),{unread_messages:s=0}=t.data;s>0&&i(A.Z7),a.importedOldWidgetData&&i(A.Z7);const u=e(t);return t.callback(!0),u}case O.dVn:{const{messagesToMerge:n,lastMessageId:o}=t,{view:a,isPageVisible:s}=r(),u=a===ue.views.chat&&s;if(n.length>0){const e=n[n.length-1].id;e!==o&&u&&i(A.QK,e)}return e(t)}case O.jXk:if(t.emit){a.cancel(),i(A.f,t.payload);const e=r(),{messages:n,assignedOperators:o}=e,s=n.length,u=o.length>0;(0,P.f)()?.trackEventOnce({eventName:"tidio_conversation_started",legacyEventName:"Chat started",params:{visitor_id:(0,de.OP)(e),source:t.payload.sender,operator_status:(0,de.tz)(e)}});try{const r=s>0&&t.payload.time_sent-n[s-1].time_sent>He;(0===s||!u&&r)&&(0,P.f)()?.trackEvent({eventName:"tidio_conversation_started",legacyEventName:"Visitor started the conversation",params:{visitor_id:(0,de.OP)(e),source:t.payload.sender,operator_status:(0,de.tz)(e)}})}catch(e){}}return e(t);case O.yLO:{const n=r(),{updateData:o}=t;if(o&&(i(A.a$,o),(0,P.f)()?.trackEvent({eventName:"tidio_prechat_finished",legacyEventName:"Pre-Chat Survey finished",params:{email:Boolean(o.email),phone:Boolean(o.phone),name:Boolean(o.name),consent_given:Boolean("subscribed"===o.emailConsent?.value)}}),(o.signUpNewsletter||o[Ue.WQ])&&o.email)){const{publicKey:e}=n,{email:t}=o;try{const r=n.preChat.data?.fields.find((e=>"signUpNewsletter"===e.type));"signUpNewsletter"===r?.type&&r.value.forEach((n=>{(0,Be.BD)(`apps/${n}/signup`,{email:t,project_public_key:e}).catch((()=>{}))}))}catch(e){(0,_.G)(e)}}return e(t)}case O.i5k:{const{email:n}=t;return n&&i(A.a$,{email:n}),e(t)}case O.FKA:{const{email:n,message:r}=t;return i(A.EB,{ticket:{contactEmail:n,subject:Ve(r)},message:{content:r}}),e(t)}case O.rJv:{const n=r(),o=(0,de.OP)(n);return t.open?(i(A.QK),(0,P.f)()?.trackEvent({eventName:"tidio_widget_open",legacyEventName:"Click on the chat widget",params:{visitor_id:o}})):(0,P.f)()?.trackEvent({eventName:"tidio_widget_close",legacyEventName:"Close the chat widget",params:{visitor_id:o}}),e(t)}case O._2t:{const n=e(t),o=r(),{view:a,messages:s,isPageVisible:u}=o;a===ue.views.chat&&u&&i(A.QK),"alwaysOnline"===t.message.type&&(0,P.f)()?.trackEvent({eventName:"tidio_conversation_reply",legacyEventName:"Offline message",params:{visitor_id:(0,de.OP)(o),source:"offline_message",message_type:t.message.type,operator_status:(0,de.tz)(o)}});const c=s.length,l=c>0&&t.message.time_sent-s[c-1].time_sent>He;return t.message.sender!==R.Qe.operator||"alwaysOnline"===t.message.type||0!==c&&!l||(0,P.f)()?.trackEvent({eventName:"tidio_conversation_started",legacyEventName:"Operator started the conversation",params:{visitor_id:(0,de.OP)(o),source:t.message.sender,operator_status:(0,de.tz)(o)}}),t.message.sender!==R.Qe.bot||0!==c&&!l||(0,P.f)()?.trackEvent({eventName:"tidio_conversation_started",legacyEventName:"Automation started the conversation",params:{visitor_id:(0,de.OP)(o),source:"chatbot",chatbot_name:t.message.chat_bot_name,message_type:t.message.type,operator_status:(0,de.tz)(o)}}),n}case O.X$1:return i(A.j3,t.ratingIsGood),t.ratingIsGood?(0,P.f)()?.trackEvent({type:"legacy",eventName:"Chat rated good"}):(0,P.f)()?.trackEvent({type:"legacy",eventName:"Chat rated bad"}),e(t);case O.P7G:return a(A.yS,t.message),e(t);case O.lcC:return i(A.In,t.comment),e(t);case O.Ae:{const n=e(t),o=r().messages.find((e=>e.id===t.messageId));return o&&(a.cancel(),window?.tidioChatApi?.trigger("messageFromVisitor",{message:t.url,fromBot:!1,type:"upload"}),i(A.f,o)),n}case O.wIr:return a.cancel(),i(A.f,{...t.message,content:{type:t.message.type,formResponse:t.message.formResponse,message:""}}),e(t);case O.Bb5:return t.emit&&i(A.p9,t.updateData),e(t);case O.y82:return i(A.vT,t.tags),e(t);case O.vhR:return i(A.p9,{properties:t.properties}),e(t);case O.$ho:return i(A.MV,t.eventName,t.eventData,t.successCallback),e(t);case O.cfi:{const{ids:n}=t;return i(A.aO,n),e(t)}case O.hOh:return i(A.H1),e(t);case O.hxm:{i(A.pO);const n=r();return(0,P.f)()?.trackEventOnceInInterval({eventName:"tidio_widget_visitor_started_bot",legacyEventName:"Start the Bot",params:{visitor_id:(0,de.OP)(n)}}),e(t)}case O.tTo:return i(A.E_,t.url),e(t);case O.k0o:if(t.status){const e=r();(0,P.f)()?.trackEvent({eventName:"tidio_widget_mute_notifications",legacyEventName:"Mute notifications",params:{visitor_id:(0,de.OP)(e)}}),i(A.tX,Te.M.notificationsTurnedOff)}else i(A.tX,Te.M.notificationsTurnedOn);return e(t);case O.qRd:{const{isPageVisible:n,unreadMessages:o}=r();return t.view===ue.views.chat&&n&&o&&i(A.QK),t.view===ue.views.fly&&((0,P.f)()?.trackEvent({type:"legacy",eventName:"Fly message displayed"}),i(A.tX,Te.M.flyMessageDisplayed)),e(t)}case O.C5K:return n(),e(t);case O.yxR:return i(t.callback,n),e(t);case O.TCX:return i(A.OF),e(t);case O.nhP:{const{view:n,unreadMessages:o}=r();return n===ue.views.chat&&o&&t.status&&i(A.QK),e(t)}case O.zZ6:return i(A.mb,t.params),e(t);case O.Xe1:return i(A.Bc,t.params),e(t);case O.Vab:return i(A.UK,t.params),e(t);case O.tLN:return i(A.VC,t.params),e(t);case O.O02:return t.status&&i(A.tX,Te.M.widgetLoaded),e(t);case O.uGC:{const{modal:n}=t;return n&&i(A.tX,"prechat"===n?Te.M.prechatOpened:Te.M.alwaysOnlineOpened),e(t)}case O.gET:return!0===t.status&&i(A.tX,Te.M.emojiPanelOpened),e(t);case O.VvD:return i(A.tX,t.event,t.additionalData),e(t);case O.W5S:return(0,Be.hO)().then((e=>{i(A.vX,{data:e})})).catch((e=>{(0,_.G)("Shopify Cart request error",{message:e?.message})})),e(t);case O.Pk7:try{(0,Be.X0)().catch((e=>{(0,_.G)("Shopify Cart Update request error",{message:e?.message})}))}catch(e){e instanceof Error&&(0,_.G)("Shopify update visitor id error ",{message:e.message})}return e(t);case O.nCY:return i(A.oP,t.ratingId,t.rating),e(t);case O.Rx:{i(A.zC,t.rating,t.threadId,t.messageId);const n=r();return(0,P.f)()?.trackEvent({eventName:"tidio_conversation_rated",params:{thread_id:t.threadId,visitor_id:(0,de.OP)(n),rating:t.rating}}),e(t)}case O._Q7:return i(A.Eh,t.comment,t.threadId,t.messageId),e(t);case O.otA:return i(A.cS,t.rating),e(t);case O.VZD:return i(A.Zf,t.rating),e(t);case O.wIq:return i(A.iZ,t.eventData),e(t);case O.RXn:return i(A.nu),e(t);case O.ojA:return i(A.RF,t.payload),e(t);case O.C53:return i(A.ZX,t.payload),e(t);default:return e(t)}}}}(h))),c.push(o()(a())),e||i||t||c.push(ke);const m=g(me,s,Ge(function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{default:t}=e;const n=t();m.dispatch((0,O.tpH)(n))}));{const e=m.getState();a().setTagsContext({publicKey:e.publicKey,visitorId:e.visitor.id,originalVisitorId:e.visitor.originalVisitorId,url:(0,b.bq)()});const t=e.visitor.email,n=e.visitor.name,r={id:e.visitor.id};t&&(r.email=t),n&&(r.username=n),a().setUserContext(r)}s?m.dispatch((0,O.MlQ)(s)):m.dispatch((0,O.MBD)((0,se.H)()));const y=(0,b.B6)();m.dispatch((0,O.kB_)(y));try{if(window.parent?.history){const e=window.parent.history,{pushState:t}=window.parent.history;window.parent.history.pushState=function(){try{"function"==typeof window.onpushstate&&window.onpushstate(arguments)}catch(e){}return t.apply(e,arguments)}}}catch(e){(0,_.G)("Can't access window.parent when trying to patch pushState",{e:e})}return(0,b.kq)((()=>{setTimeout((()=>{const e=(0,b.bq)();e.includes(E.v)||m.dispatch((0,O.E_s)(e))}))})),!e&&h&&((0,w.f)().markDuration("widget_ws_initial_connection_in_ms","start"),h.connectToSockets(m,window.parent.history,(()=>{}),(()=>{}),{query:{ppk:r,device:(0,b.tq)()?"mobile":"desktop"}})),(0,We.Z)(m),e&&(m.dispatch((0,O.mfn)("previewModeEnabled",!0)),window.parent.addEventListener("message",(e=>{if(!(e.origin.includes("tidiochat.com")||e.origin.includes("tidio.com")||e.origin.includes("tidio.dev")||e.origin.includes("tidio.in")||e.origin.includes("tidio-local"))&&"http://tidio.local"!==e.origin&&"http://localhost:3456"!==e.origin&&"https://widget.tidio.localhost"!==e.origin)return!1;let{data:t}=e;return t=JSON.parse(t),m.dispatch((0,O.mfn)(t.prop,t.payload)),!0}),!1),l&&(l.preformData&&m.dispatch((0,O.mfn)("preChatData",l.preformData)),l.routingRules&&m.dispatch((0,O.mfn)("routingRules",l.routingRules)),l.operators&&m.dispatch((0,O.mfn)("operators",l.operators)),l.color&&m.dispatch((0,O.mfn)("color",l.color)),l.bannerImage&&m.dispatch((0,O.mfn)("bannerImage",l.bannerImage)),l.translations&&(0,S.$m)(l.translations,"en"),void 0!==l.sidebar&&m.dispatch((0,O.mfn)("sidebar",l.sidebar)),l.messages&&m.dispatch((0,O.mfn)("messages",l.messages)),l.previewView&&m.dispatch((0,O.mfn)("previewView",l.previewView)),l.hideWhenOffline&&m.dispatch((0,O.mfn)("hideWhenOffline",l.hideWhenOffline)),l.widgetLabelStatus&&m.dispatch((0,O.mfn)("widgetLabelStatus",l.widgetLabelStatus)),!1===l.widgetSoundStatus&&m.dispatch((0,O.mfn)("widgetSoundStatus",l.widgetSoundStatus)),l.chatOnSite&&m.dispatch((0,O.mfn)("chatOnSite",l.chatOnSite)),l.messageForFly&&m.dispatch((0,O.mfn)("messageForFly",l.messageForFly)),!1===l.showBranding&&m.dispatch((0,O.mfn)("showBranding",l.showBranding)),l.customBranding&&m.dispatch((0,O.mfn)("customBranding",l.customBranding)),l.customAvatar&&m.dispatch((0,O.mfn)("customAvatar",l.customAvatar))),m.dispatch((0,O.Ain)())),u&&m.dispatch((0,O.tE4)()),m}},9884:function(e,t,n){"use strict";n.d(t,{Hr:function(){return g},MX:function(){return m},Mm:function(){return y},QI:function(){return v},jw:function(){return h},lR:function(){return p},zL:function(){return d},zf:function(){return u}});var r=n(2584),o=n(9503),i=n(4818),a=n(6563);let s=0;const u={get:()=>s,set:e=>{s=e}};let c=null;const l=()=>{if(!c){const e=(0,r.Z0)()||"preview";c=`tidio_state_${e}`}return c};let f=!0;const d=e=>{if(!f)return!1;try{const t=(0,r.Xh)(e);u.set(u.get()+1),t.persistedStateRev=u.get();const n=JSON.stringify(t);return localStorage.setItem(l(),n),!0}catch(e){return f=!1,!1}},p=e=>{if(f)try{return localStorage.removeItem(`${l()}_${e}`),!0}catch(e){return void(f=!1)}},h=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];try{if(!f)return!1;const t=localStorage.getItem(l());if(!t)return;try{const n=86400,r=JSON.parse(t);if(!r.visitor?.id)return;return e&&(r.reconnectAttemptCount=0,r.isMounted=!1,r.tidioIdentifyChanged=!1,r.operatorIsTyping=!1,r.showOptionsDropdown=!1,r.newMessageEmoji=null,r.blockedMessage=null,r.isEmojiPanelVisible=!1,r.sendVisitorMessageFlag=!1,r.isDragAndDropActive=!1,r.showUserDataModal=!1,r.isPageVisible=!0,r.popupImageSrc="",r.customBranding="",r.customAvatar="",r.mobileHash=!0,r.allowAttachments=!0,r.messageForFly=null,r.prechatSubscriptionCheckboxDefaultValue=!1,r.aiAssistant=!1,r.aiAssistantIsThinking=!1,r.chatOptions=null,r.iframeModalUrl=null,r.view===i.views.fly&&(r.view=i.views.closed),r.showMessagesButtonClickedTimestamp&&Math.floor(Date.now()/1e3)-r.showMessagesButtonClickedTimestamp>n&&(r.showMessagesButtonClickedTimestamp=null,r.showOldMessages=!1)),r.messages&&(r.messages=r.messages.map((e=>{if("uploadedFile"===e.type&&"image"===e.attachmentType){const t=e;return t.imageLoaded=!1,t}if("uploadingFile"!==e.type)return e})).filter((e=>void 0!==e))),r}catch(e){return void(0,o.G)(e)}}catch(e){return}};function m(e,t){try{if(e.version===t.version)return e;const n=(0,r.Xh)(t),o=(0,r.Xh)(e.messages),i={...e.visitor,...(0,a.B)()},s={...e.preChat},u=(0,r.Xh)(e.tidioIdentifyData);return p("cache"),{...n,messages:o,visitor:i,tidioIdentifyData:u,preChat:s}}catch(e){return(0,o.G)(e),p("cache"),(0,r.Xh)(t)}}const y=(e,t)=>{if(!f)return!1;try{const n=JSON.stringify(t);return void 0===n||localStorage.setItem(`${l()}_${e}`,n),!0}catch(e){return f=!1,!1}},g=e=>{if(f)try{const t=localStorage.getItem(`${l()}_${e}`);if("undefined"===t)return;return JSON.parse(t)}catch(e){return void(f=!1)}},v=()=>{if(f)try{return localStorage.removeItem(l()),!0}catch(e){return void(f=!1)}}},7139:function(e,t,n){"use strict";n.d(t,{J:function(){return p},Jx:function(){return y},QR:function(){return d},VM:function(){return u},Xu:function(){return m},hc:function(){return g},jQ:function(){return a},nE:function(){return c},py:function(){return l},rW:function(){return h},xp:function(){return f}});var r=n(2584),o=n(9503),i=n(1936);const a=(e,t)=>{const n=e.operators.find((e=>e.id===t));return n&&n||{id:""}},s=(e,t)=>e.messages.find((e=>e.type===t)),u=(e,t)=>e.messages.findIndex((e=>e.type===t)),c=e=>s(e,"preChat"),l=e=>void 0!==s(e,"alwaysOnline"),f=(e,t)=>e.messages.filter((e=>e.type===t)),d=e=>{try{const n=(e=>{const t=f(e,"alwaysOnline");return t.length>0?t[t.length-1]:void 0})(e);return t=n,(0,r.Xn)()-3600>=t.time_sent}catch(e){return(0,o.G)(e),!1}var t},p=e=>{const t=e.messages,n=t.length>0?t[t.length-1].time_sent:0;return Math.floor((new Date).getTime()/1e3)-n>86400},h=e=>e.widgetLabelStatus&&!e.isMobile&&!1===e.sidebarIframeStyles,m=e=>{const t=(0,i.c)(e.preChat.data,e.visitor),n=(e=>e.preChat.isFilled)(e);return!n&&0!==t.length},y=e=>e.isAwesomeIframe&&!1===e.sidebarIframeStyles&&e.platform!==r.Zk.wix,g=e=>e.messageForFly||null},2391:function(e,t,n){"use strict";n.d(t,{$d:function(){return k},B1:function(){return b},Ey:function(){return d},Fu:function(){return A},Gs:function(){return s},Jq:function(){return v},MP:function(){return C},N2:function(){return I},OP:function(){return F},Q0:function(){return B},RX:function(){return x},U1:function(){return O},UE:function(){return f},Us:function(){return y},V5:function(){return h},Vk:function(){return T},Xe:function(){return g},Xf:function(){return _},Zj:function(){return E},a7:function(){return P},aI:function(){return m},bP:function(){return w},c$:function(){return U},cl:function(){return R},cn:function(){return i},dr:function(){return a},f:function(){return p},iB:function(){return N},o9:function(){return S},p7:function(){return l},rW:function(){return M},tc:function(){return u},tz:function(){return L},vU:function(){return j},wq:function(){return D}});var r=n(4818),o=n(9809);const i=e=>!!e?.visitor?.is_chat_on_site&&e.visitor.is_chat_on_site,a=e=>e.routingRules.areEnabled,s=e=>null!==e.selectedDepartment,u=e=>e.selectedDepartment,c=(e,t)=>{let{position:n}=e,{position:r}=t;return n-r},l=e=>e.routingRules.options.slice().sort(c),f=e=>e.reconnectAttemptCount>5,d=e=>{const t=e.messages.length;if(t>0)return e.messages[t-1]},p=(e,t)=>{const n=e.messages,r=n.findIndex((e=>e.id===t));if(n.length>r)return e.messages[r+1]},h=(e,t)=>d(e)?.id===t,m=e=>Boolean(d(e)?.disableTextInput),y=e=>Boolean(d(e)?.isWaitingForAnswer),g=e=>e.view,v=e=>e.mobileButtonSize,b=e=>e.chatIframeStyles.dimensions,w=e=>e.showUserDataModal&&e.view===r.views.chat||f(e)||m(e)||(e=>e.disableTextInput)(e)&&!y(e),_=e=>e.platform,S=e=>e.isDragAndDropActive&&e.allowAttachments,E=e=>e.alert.content,C=e=>e.visitor.email,k=(e,t)=>t?e.satisfactionSurvey[t]:null,O=e=>e.widgetColor,A=e=>e.customBranding,x=e=>e.customAvatar,T=()=>[o.vB.MAILCHIMP,o.vB.KLAVIYO,o.vB.MAILCHIMP_V2],I=e=>e.prechatSubscriptionCheckboxDefaultValue,P=e=>e.blockedMessage,R=e=>e.createTicketWhenOperatorsOffline,N=e=>e.publicKey,F=e=>e.visitor.id,M=e=>e.widgetLabelStatus&&!e.isMobile&&!1===e.sidebarIframeStyles,D=e=>e.sidebarIframeStyles?e.sidebarIframeStyles.position:"right",j=e=>e.operators,L=e=>e.operators.some((e=>e.isOnline))?"online":"offline",B=e=>e.aiAssistantIsThinking,U=e=>e.iframeModalUrl},7841:function(e,t,n){"use strict";var r=n(2584),o=n(1936),i=n(9233);const a={popUpOpen:"open",popUpHide:"close",chatDisplay:"display",setColorPallete:"setColorPalette"},s=(e,t,n)=>function(){for(var r=arguments.length,o=new Array(r),a=0;a({open:()=>e((0,i.ejT)(!0)),close:()=>e((0,i.ejT)(!1)),display:function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e((0,i.Ain)(t))},show:()=>e((0,i.Ain)(!0)),hide:()=>e((0,i.Ain)(!1)),setColorPalette:t=>e((0,i.G29)((0,r.Lj)([t]))),track:(t,n,r)=>{if(t&&"string"==typeof t)return e((0,i.Juz)(t,n,r))},messageFromVisitor:t=>e((0,i.liy)(t)),messageFromOperator:t=>e((0,i.HzX)((0,o.z0)(t))),setVisitorData:t=>e((0,i.f3V)(t)),addVisitorTags:t=>e((0,i.bV4)(t)),setContactProperties:t=>e((0,i.ZzE)(t)),setFeatures:t=>e((0,i.sfQ)(t))}))(t);Object.keys(n).forEach((e=>{const r=n[e];window.tidioChatApi||(window.tidioChatApi={}),window.tidioChatApi[e]=s(e,r,t)})),Object.keys(a).forEach((e=>{const r=n[a[e]];window.tidioChatApi||(window.tidioChatApi={}),window.tidioChatApi[e]=s(e,r,t)}))}},9809:function(e,t,n){"use strict";n.d(t,{By:function(){return c},Cs:function(){return u},EI:function(){return s},G7:function(){return a},Ms:function(){return i},Os:function(){return l},nr:function(){return o},t4:function(){return r},vB:function(){return f}});let r=function(e){return e.SHOPIFY="shopify",e.WORDPRESS="wordpress",e.WIX="wix",e.OTHERS="others",e}({}),o=function(e){return e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e}({}),i=function(e){return e.ONLY_BUBBLE="onlyBubble",e.ONLY_BUBBLE_SMALL="onlyBubbleSmall",e.ONLY_BUBBLE_MEDIUM="onlyBubbleMedium",e.ONLY_BUBBLE_LARGE="onlyBubbleLarge",e.ONLY_SIDEBAR="onlySidebar",e.BUBBLE_WITH_LABEL="bubbleWithLabel",e.CHAT_SIZE_1="chatSize1",e.CHAT_SIZE_2="chatSize2",e.CHAT_SIZE_3="chatSize3",e.MOBILE="mobile",e.DYNAMIC="dynamic",e}({}),a=function(e){return e.CLOSED="closed",e.FLY="fly",e.WELCOME="welcome",e.CHAT="chat",e}({}),s=function(e){return e.EMAIL="email",e.TEXT="text",e.LONG_TEXT="long-text",e.NUMBER="number",e.NAME="name",e.PHONE="phone",e.URL="url",e.SELECT="select",e.MULTISELECT="multiselect",e.CHECKBOX="checkbox",e}({}),u=function(e){return e.TEXT="text",e.PRECHAT="preChat",e.RATE_CONVERSATION="rateConversation",e.ALWAYS_ONLINE="alwaysOnline",e.RATE_COMMENT_GOOD="rateConversationCommentRateWasGood",e.RATE_COMMENT_BAD="rateConversationCommentRateWasBad",e.UPLOADING_FILE="uploadingFile",e.UPLOADED_FILE="uploadedFile",e.CARD_GALLERY="cardGallery",e.BUTTONS="buttons",e.COUPON_CODE="couponCode",e.SYSTEM="system",e.CONVERSATION_MARKED_AS_SOLVED="conversationMarkedAsSolved",e.AUTOMATIC_SURVEY="rateAutomaticSurvey",e.AUTOMATIC_SURVEY_RATED="ratedAutomaticSurvey",e.AUTOMATIC_SURVEY_COMMENTED="commentAutomaticSurvey",e.CREATE_TICKET_SUCCESS="createTicketSuccess",e.FORM="form",e.FORM_RESPONSE="formResponse",e.IFRAME="iframe",e}({}),c=function(e){return e.OPERATOR="operator",e.VISITOR="visitor",e.BOT="bot",e.SYSTEM="system",e.LOG="log",e}({}),l=function(e){return e.UNKNOWN="unknown",e.WINDOWS="Windows",e.ANDROID="Android",e.IOS="iOS",e.OSX="OS X",e.UNIX="Unix",e.LINUX="Linux",e}({}),f=function(e){return e.MAILCHIMP="mailchimp",e.KLAVIYO="klaviyo",e.MAILCHIMP_V2="mailchimp_v2",e.GOOGLE_ANALYTICS="ga",e.GOOGLE_ANALYTICS_GA4="ga_ga4",e.GOOGLE_TAG_MANAGER="google_tag_manager",e}({})},2561:function(e,t,n){"use strict";n.d(t,{f:function(){return d},B:function(){return f}});var r=n(4572),o=(n(4555),n(9503)),i=n(359),a=n(9884),s=n(9809);let u,c=function(e){return e.LEGACY="legacy",e.GTAG="gtag",e.DATA_LAYER="dataLayer",e}({});class l{constructor(e){let{type:t,tagId:n}=e;(0,r.Z)(this,"type",void 0),(0,r.Z)(this,"tagId",void 0),(0,r.Z)(this,"trackingFunction",void 0),(0,r.Z)(this,"availableTrackingFunctions",{legacy:e=>{if("legacy"===e.type){const{eventName:t}=e;void 0!==window.parent.gtag&&window.parent.gtag("event",t,{event_category:"Tidio Chat",non_interaction:!0}),void 0!==window.parent.ga?window.parent.ga("send","event","Tidio Chat",t,{nonInteraction:!0}):void 0!==window.parent._gaq?window.parent._gaq.push(["_trackEvent","Tidio Chat",t]):void 0!==window.parent.__gaTracker?window.parent.__gaTracker("send","event","Tidio Chat",t):void 0!==window.parent.dataLayer&&void 0!==window.parent.dataLayer.push&&window.parent.dataLayer.push({event:`Tidio Chat: ${t}`})}},gtag:e=>{"legacy"!==e.type&&(void 0!==window.parent.gtag?window.parent.gtag("event",e.eventName,{...e.params,...this.tagId?{send_to:this.tagId}:{}}):this.availableTrackingFunctions.dataLayer(e))},dataLayer:e=>{"legacy"!==e.type&&void 0!==window.parent.dataLayer&&void 0!==window.parent.dataLayer.push&&window.parent.dataLayer.push({event:e.eventName,...e.params})}}),this.type=t,this.tagId=n,this.trackingFunction=this.availableTrackingFunctions[t]}trackEventOnce(e){const t=`trackEvent_${e.eventName}`;return!(0,a.Hr)(t)&&((0,a.Mm)(t,1),this.trackEvent(e),!0)}trackEventOnceInInterval(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:86400;const n=Math.round(Date.now()/1e3),r=`trackEvent_${e.eventName}`;try{const e=parseInt((0,a.Hr)(r),10);if(e>1&&n{let{integrationsPlatforms:t,emit:n}=e;if(t)if(t.includes(s.vB.GOOGLE_ANALYTICS))u=new l({type:c.LEGACY});else if(t.includes(s.vB.GOOGLE_ANALYTICS_GA4)){const e=await(e=>new Promise((t=>{e?.(i.O6,(e=>{let{tagId:n}=e;t(n)}))})))(n);u=new l({type:c.GTAG,tagId:e})}else t.includes(s.vB.GOOGLE_TAG_MANAGER)&&(u=new l({type:c.DATA_LAYER}))};function d(){return u}},6563:function(e,t,n){"use strict";n.d(t,{B:function(){return a},H:function(){return s}});var r=n(1013),o=n.n(r),i=n(2584);function a(){const e=(0,i.qs)(),t=(0,i.kA)();let n="";try{n=o().determine().name()}catch(e){}return{ip:null,lang:(0,i.of)(),browser:e.name,browser_version:e.version,url:(0,i.bq)(),refer:window.parent.document.referrer,os_name:t.name,os_version:t.version,screen_width:window.screen.width,screen_height:window.screen.height,user_agent:window.navigator.userAgent,timezone:n,mobile:(0,i.tq)(),is_chat_on_site:(0,i.B1)()}}function s(){const e=(0,i.by)();return{id:e,originalVisitorId:e,distinct_id:null,country:null,name:"",city:null,browser_session_id:"",created:(0,i.Xn)(),email:"",project_public_key:(0,i.Z0)(),phone:"",...a()}}},5796:function(e,t,n){"use strict";n.d(t,{Z:function(){return oe}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?l(w,--v):0,y--,10===b&&(y=1,m--),b}function C(){return b=v2||x(b)>3?"":" "}function N(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return A(e,O()+(t<6&&32==k()&&32==C()))}function F(e){for(;C();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&F(b);break;case 40:41===e&&F(e);break;case 92:C()}return v}function M(e,t){for(;C()&&e+b!==57&&(e+b!==84||47!==k()););return"/*"+A(t,v-1)+"*"+i(47===e?e:C())}function D(e){for(;!x(k());)C();return A(e,v)}var j="-ms-",L="-moz-",B="-webkit-",U="comm",z="rule",H="decl",V="@keyframes";function W(e,t){for(var n="",r=p(e),o=0;o0&&d(L)-g&&h(b>32?Y(L+";",r,n,g-1):Y(u(L," ","")+";",r,n,g-2),p);break;case 59:L+=";";default:if(h(j=X(L,t,n,m,y,o,f,T,I=[],F=[],g),a),123===x)if(0===y)q(L,t,j,j,I,a,g,f,F);else switch(99===v&&110===l(L,3)?100:v){case 100:case 108:case 109:case 115:q(e,j,j,r&&h(X(e,j,j,0,0,o,f,T,o,I=[],g),F),o,F,g,f,r?I:F);break;default:q(L,j,j,j,[""],F,0,f,F)}}m=y=b=0,_=A=1,T=L="",g=s;break;case 58:g=1+d(L),b=w;default:if(_<1)if(123==x)--_;else if(125==x&&0==_++&&125==E())continue;switch(L+=i(x),x*_){case 38:A=y>0?1:(L+="\f",-1);break;case 44:f[m++]=(d(L)-1)*A,A=1;break;case 64:45===k()&&(L+=P(C())),v=k(),y=g=d(T=L+=D(O())),x++;break;case 45:45===w&&2==d(L)&&(_=0)}}return a}function X(e,t,n,r,i,a,c,l,d,h,m){for(var y=i-1,g=0===i?a:[""],v=p(g),b=0,w=0,S=0;b0?g[E]+" "+C:u(C,/&\f/g,g[E])))&&(d[S++]=k);return _(e,t,n,0===i?z:l,d,h,m)}function Q(e,t,n){return _(e,t,n,U,i(b),f(e,2,-2),0)}function Y(e,t,n,r){return _(e,t,n,H,f(e,0,r),f(e,r+1,-1),r)}var K=function(e,t,n){for(var r=0,o=0;r=o,o=k(),38===r&&12===o&&(t[n]=1),!x(o);)C();return A(e,v)},Z=function(e,t){return I(function(e,t){var n=-1,r=44;do{switch(x(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=K(v-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=C());return e}(T(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=Z(t,o),a=n.props,s=0,u=0;s6)switch(l(e,t+1)){case 109:if(45!==l(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+L+(108==l(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==l(e,t+1))break;case 6444:switch(l(e,d(e)-3-(~c(e,"!important")&&10))){case 107:return u(e,":",":"+B)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===l(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(l(e,t+11)){case 114:return B+e+j+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+j+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+j+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+j+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=ne(e.value,e.length);break;case V:return W([S(e,{value:u(e.value,"@","@"+B)})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([S(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return W([S(e,{props:[u(t,/:(plac\w+)/,":"+B+"input-$1")]}),S(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[u(t,/:(plac\w+)/,j+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||re;var i,a,s={},u=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+u;return{name:c,styles:o,next:d}}},5308:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return a},j:function(){return s}});var o=n(1914),i=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,a=i||function(e){return e()},s=i||o.useLayoutEffect},5414:function(e,t,n){"use strict";n.d(t,{My:function(){return i},fp:function(){return r},hC:function(){return o}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},7334:function(e,t,n){var r,o;r=function(){"use strict";function t(e,t){return i(e)||s(e,t)||u(e,t)||f()}function r(e){return o(e)||a(e)||u(e)||l()}function o(e){if(Array.isArray(e))return c(e)}function i(e){if(Array.isArray(e))return e}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(e),i=new Uint8Array(n-t),a=t,s=0;a1024){for(var t=0,n=i.length-a;t0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},2129:function(e,t){!function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<64;r++)n[e.charCodeAt(r)]=r;t.encode=function(t){var n,r=new Uint8Array(t),o=r.length,i="";for(n=0;n>2],i+=e[(3&r[n])<<4|r[n+1]>>4],i+=e[(15&r[n+1])<<2|r[n+2]>>6],i+=e[63&r[n+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(e){var t,r,o,i,a,s=.75*e.length,u=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l=new ArrayBuffer(s),f=new Uint8Array(l);for(t=0;t>4,f[c++]=(15&o)<<4|i>>2,f[c++]=(3&i)<<6|63&a;return l}}()},6197:function(e){var t=void 0!==t?t:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),r=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),o=t&&t.prototype.append&&t.prototype.getBlob;function i(e){return e.map((function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e}))}function a(e,n){n=n||{};var r=new t;return i(e).forEach((function(e){r.append(e)})),n.type?r.getBlob(n.type):r.getBlob()}function s(e,t){return new Blob(i(e),t||{})}"undefined"!=typeof Blob&&(a.prototype=Blob.prototype,s.prototype=Blob.prototype),e.exports=n?r?Blob:s:o?a:void 0},5355:function(e,t,n){"use strict";var r=n(280),o=n(6603),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},6603:function(e,t,n){"use strict";var r=n(1839),o=n(280),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(r,a,arguments);u&&c&&(u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}));return t};var f=function(){return s(r,i,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},3718:function(e){var t=[].slice;e.exports=function(e,n){if("string"==typeof n&&(n=e[n]),"function"!=typeof n)throw new Error("bind() requires a function");var r=t.call(arguments,2);return function(){return n.apply(e,r.concat(t.call(arguments)))}}},9880:function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;ol;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},8934:function(e,t,n){"use strict";var r=n(2979),o=n(8063),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},2134:function(e,t,n){"use strict";var r=n(6066),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},2786:function(e,t,n){"use strict";var r=n(8513),o=n(7001),i=n(2134),a=n(6523)("toStringTag"),s=Object,u="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:u?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},4141:function(e,t,n){"use strict";var r=n(5624),o=n(2149),i=n(1829),a=n(2345);e.exports=function(e,t,n){for(var s=o(t),u=a.f,c=i.f,l=0;l9007199254740991)throw t("Maximum allowed index exceeded");return e}},9181:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7290:function(e,t,n){"use strict";var r,o,i=n(2520),a=n(9181),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},8151:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},194:function(e,t,n){"use strict";var r=n(2520),o=n(1829).f,i=n(5981),a=n(9773),s=n(9999),u=n(4141),c=n(2476);e.exports=function(e,t){var n,l,f,d,p,h=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(p=o(n,l))&&p.value:n[l],!c(m?l:h+(y?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,l,d,e)}}},8648:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9823:function(e,t,n){"use strict";var r=n(8648);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},9724:function(e,t,n){"use strict";var r=n(9823),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},4669:function(e,t,n){"use strict";var r=n(2979),o=n(5624),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},6066:function(e,t,n){"use strict";var r=n(9823),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},3498:function(e,t,n){"use strict";var r=n(2520),o=n(7001);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},2234:function(e,t,n){"use strict";var r=n(3020),o=n(120);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},2520:function(e,t,n){"use strict";var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},5624:function(e,t,n){"use strict";var r=n(6066),o=n(2039),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},4541:function(e){"use strict";e.exports={}},8599:function(e,t,n){"use strict";var r=n(2979),o=n(8648),i=n(9915);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8924:function(e,t,n){"use strict";var r=n(6066),o=n(8648),i=n(2134),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},5287:function(e,t,n){"use strict";var r=n(6066),o=n(7001),i=n(3424),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},4700:function(e,t,n){"use strict";var r,o,i,a=n(24),s=n(2520),u=n(5031),c=n(5981),l=n(5624),f=n(3424),d=n(6966),p=n(4541),h="Object already initialized",m=s.TypeError,y=s.WeakMap;if(a||f.state){var g=f.state||(f.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw m(h);return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=d("state");p[v]=!0,r=function(e,t){if(l(e,v))throw m(h);return t.facade=e,c(e,v,t),t},o=function(e){return l(e,v)?e[v]:{}},i=function(e){return l(e,v)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},8063:function(e,t,n){"use strict";var r=n(2134);e.exports=Array.isArray||function(e){return"Array"==r(e)}},7001:function(e,t,n){"use strict";var r=n(8480),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},2476:function(e,t,n){"use strict";var r=n(8648),o=n(7001),i=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n==l||n!=c&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},120:function(e){"use strict";e.exports=function(e){return null==e}},5031:function(e,t,n){"use strict";var r=n(7001),o=n(8480),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},4992:function(e){"use strict";e.exports=!1},3613:function(e,t,n){"use strict";var r=n(3498),o=n(7001),i=n(2279),a=n(3461),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},2145:function(e,t,n){"use strict";var r=n(6536);e.exports=function(e){return r(e.length)}},4831:function(e,t,n){"use strict";var r=n(6066),o=n(8648),i=n(7001),a=n(5624),s=n(2979),u=n(4669).CONFIGURABLE,c=n(5287),l=n(4700),f=l.enforce,d=l.get,p=String,h=Object.defineProperty,m=r("".slice),y=r("".replace),g=r([].join),v=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+y(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&a(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=f(e);return a(r,"source")||(r.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&d(this).source||c(this)}),"toString")},5388:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},2345:function(e,t,n){"use strict";var r=n(2979),o=n(8599),i=n(125),a=n(4341),s=n(6820),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=l(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1829:function(e,t,n){"use strict";var r=n(2979),o=n(9724),i=n(3609),a=n(5595),s=n(9563),u=n(6820),c=n(5624),l=n(8599),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=u(t),l)try{return f(e,t)}catch(e){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},730:function(e,t,n){"use strict";var r=n(6800),o=n(8151).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},4390:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},2279:function(e,t,n){"use strict";var r=n(6066);e.exports=r({}.isPrototypeOf)},6800:function(e,t,n){"use strict";var r=n(6066),o=n(5624),i=n(9563),a=n(7843).indexOf,s=n(4541),u=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&u(l,n);for(;t.length>c;)o(r,n=t[c++])&&(~a(l,n)||u(l,n));return l}},3609:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},9992:function(e,t,n){"use strict";var r=n(9724),o=n(7001),i=n(5031),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},2149:function(e,t,n){"use strict";var r=n(3498),o=n(6066),i=n(730),a=n(4390),s=n(4341),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?u(t,n(e)):t}},9664:function(e,t,n){"use strict";var r=n(120),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},6966:function(e,t,n){"use strict";var r=n(6697),o=n(2310),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},3424:function(e,t,n){"use strict";var r=n(2520),o=n(9999),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},6697:function(e,t,n){"use strict";var r=n(4992),o=n(3424);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.0",mode:r?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7450:function(e,t,n){"use strict";var r=n(7290),o=n(8648),i=n(2520).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},166:function(e,t,n){"use strict";var r=n(7941),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},9563:function(e,t,n){"use strict";var r=n(8924),o=n(9664);e.exports=function(e){return r(o(e))}},7941:function(e,t,n){"use strict";var r=n(5388);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},6536:function(e,t,n){"use strict";var r=n(7941),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},2039:function(e,t,n){"use strict";var r=n(9664),o=Object;e.exports=function(e){return o(r(e))}},640:function(e,t,n){"use strict";var r=n(9724),o=n(5031),i=n(3613),a=n(2234),s=n(9992),u=n(6523),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},6820:function(e,t,n){"use strict";var r=n(640),o=n(3613);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},8513:function(e,t,n){"use strict";var r={};r[n(6523)("toStringTag")]="z",e.exports="[object z]"===String(r)},2573:function(e,t,n){"use strict";var r=n(2786),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},6340:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},2310:function(e,t,n){"use strict";var r=n(6066),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},3461:function(e,t,n){"use strict";var r=n(7450);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},125:function(e,t,n){"use strict";var r=n(2979),o=n(8648);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},3908:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=l,l.priorWebsocketSuccess=!1,o(l.prototype),l.protocol=s.protocol,l.Socket=l,l.Transport=n(7147),l.transports=n(5603),l.parser=n(9316),l.prototype.createTransport=function(e){i('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=s.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new r[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0})},l.prototype.open=function(){var e;if(this.rememberUpgrade&&l.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout((function(){t.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},l.prototype.setTransport=function(e){i("setting transport %s",e.name);var t=this;this.transport&&(i("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))},l.prototype.probe=function(e){i('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,r=this;function o(){if(r.onlyBinaryUpgrades){var o=!this.supportsBinary&&r.transport.supportsBinary;n=n||o}n||(i('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(o){if(!n)if("pong"===o.type&&"probe"===o.data){if(i('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;l.priorWebsocketSuccess="websocket"===t.name,i('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(i("changing transport and sending upgrade packet"),d(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())}))}else{i('probe transport "%s" failed',e);var a=new Error("probe error");a.transport=t.name,r.emit("upgradeError",a)}})))}function a(){n||(n=!0,d(),t.close(),t=null)}function s(n){var o=new Error("probe error: "+n);o.transport=t.name,a(),i('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",o)}function u(){s("transport closed")}function c(){s("socket closed")}function f(e){t&&e.name!==t.name&&(i('"%s" works - aborting "%s"',e.name,t.name),a())}function d(){t.removeListener("open",o),t.removeListener("error",s),t.removeListener("close",u),r.removeListener("close",c),r.removeListener("upgrading",f)}l.priorWebsocketSuccess=!1,t.once("open",o),t.once("error",s),t.once("close",u),this.once("close",c),this.once("upgrading",f),t.open()},l.prototype.onOpen=function(){if(i("socket open"),this.readyState="open",l.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){i("starting upgrade probes");for(var e=0,t=this.upgrades.length;e';r=document.createElement(e)}catch(e){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),l(),e=e.replace(s,"\\\n"),this.area.value=e.replace(a,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&c()}:this.iframe.onload=c}},7561:function(e,t,n){var r=n(2275),o=n(8485),i=n(9880),a=n(6692),s=n(6262)("engine.io-client:polling-xhr");function u(){}function c(e){if(o.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,n.g.location){var t="https:"===location.protocol,r=location.port;r||(r=t?443:80),this.xd=e.hostname!==n.g.location.hostname||r!==e.port,this.xs=e.secure!==t}}function l(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}function f(){for(var e in l.requests)l.requests.hasOwnProperty(e)&&l.requests[e].abort()}e.exports=c,e.exports.Request=l,a(c,o),c.prototype.supportsBinary=!0,c.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new l(e)},c.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),o=this;r.on("success",t),r.on("error",(function(e){o.onError("xhr post error",e)})),this.sendXhr=r},c.prototype.doPoll=function(){s("xhr poll");var e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e},i(l.prototype),l.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new r(e),o=this;try{s("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var i in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&t.setRequestHeader(i,this.extraHeaders[i])}catch(e){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=!0),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){o.onLoad()},t.onerror=function(){o.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");o.supportsBinary&&"application/octet-stream"===e&&(t.responseType="arraybuffer")}catch(e){}4===t.readyState&&(200===t.status||1223===t.status?o.onLoad():setTimeout((function(){o.onError(t.status)}),0))},s("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout((function(){o.onError(e)}),0)}n.g.document&&(this.index=l.requestsCount++,l.requests[this.index]=this)},l.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},l.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},l.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},l.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=u:this.xhr.onreadystatechange=u,e)try{this.xhr.abort()}catch(e){}n.g.document&&delete l.requests[this.index],this.xhr=null}},l.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e="application/octet-stream"===t&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},l.prototype.hasXDR=function(){return void 0!==n.g.XDomainRequest&&!this.xs&&this.enablesXDR},l.prototype.abort=function(){this.cleanup()},l.requestsCount=0,l.requests={},n.g.document&&(n.g.attachEvent?n.g.attachEvent("onunload",f):n.g.addEventListener&&n.g.addEventListener("beforeunload",f,!1))},8485:function(e,t,n){var r=n(7147),o=n(5271),i=n(9316),a=n(6692),s=n(8742),u=n(6262)("engine.io-client:polling");e.exports=l;var c=null!=new(n(2275))({xdomain:!1}).responseType;function l(e){var t=e&&e.forceBase64;c&&!t||(this.supportsBinary=!1),r.call(this,e)}a(l,r),l.prototype.name="polling",l.prototype.doOpen=function(){this.poll()},l.prototype.pause=function(e){var t=this;function n(){u("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(u("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){u("pre-pause polling complete"),--r||n()}))),this.writable||(u("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){u("pre-pause writing complete"),--r||n()})))}else n()},l.prototype.poll=function(){u("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},l.prototype.onData=function(e){var t=this;u("polling got data %s",e);i.decodePayload(e,this.socket.binaryType,(function(e,n,r){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():u('ignoring poll - transport state "%s"',this.readyState))},l.prototype.doClose=function(){var e=this;function t(){u("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(u("transport open - closing"),t()):(u("transport not open - deferring close"),this.once("open",t))},l.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};i.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,n)}))},l.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=s()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},4008:function(e,t,n){var r,o=n(7147),i=n(9316),a=n(5271),s=n(6692),u=n(8742),c=n(6262)("engine.io-client:websocket"),l=n.g.WebSocket||n.g.MozWebSocket;if("undefined"==typeof window)try{r=n(7020)}catch(e){}var f=l;function d(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=l&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(f=r),o.call(this,e)}f||"undefined"!=typeof window||(f=r),e.exports=d,s(d,o),d.prototype.name="websocket",d.prototype.supportsBinary=!0,d.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?t?new f(e,t):new f(e):new f(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},d.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},d.prototype.write=function(e){var t=this;this.writable=!1;for(var r=e.length,o=0,a=r;o=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},7702:function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var a=new Array(arguments.length),s=0;s1?{type:p[o],data:e.substring(1)}:{type:p[o]}:h}o=new Uint8Array(e)[0];var i=a(e,1);return m&&"blob"===n&&(i=new m([i])),{type:p[o],data:i}},t.decodeBase64Packet=function(e,t){var n=p[e.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:e.substr(1)}};var o=r.decode(e.substr(1));return"blob"===t&&m&&(o=new m([o])),{type:n,data:o}},t.encodePayload=function(e,n,r){"function"==typeof n&&(r=n,n=null);var o=i(e);if(n&&o)return m&&!f?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r);if(!e.length)return r("0:");y(e,(function(e,r){t.encodePacket(e,!!o&&n,!1,(function(e){r(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return r(t.join(""))}))},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);var o;if("function"==typeof n&&(r=n,n=null),""===e)return r(h,0,1);for(var i,a,s="",u=0,c=e.length;u0;){for(var s=new Uint8Array(o),u=0===s[0],c="",l=1;255!==s[l];l++){if(c.length>310)return r(h,0,1);c+=s[l]}o=a(o,2+c.length),c=parseInt(c);var f=a(o,0,c);if(u)try{f=String.fromCharCode.apply(null,new Uint8Array(f))}catch(e){var d=new Uint8Array(f);f="";for(l=0;l=55296&&t<=56319&&o=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function s(e,t){return o(e>>t&63|128)}function u(e,t){if(0==(4294967168&e))return o(e);var n="";return 0==(4294965248&e)?n=o(e>>6&31|192):0==(4294901760&e)?(a(e,t)||(e=65533),n=o(e>>12&15|224),n+=s(e,6)):0==(4292870144&e)&&(n=o(e>>18&7|240),n+=s(e,12),n+=s(e,6)),n+=o(63&e|128)}function c(){if(r>=n)throw Error("Invalid byte index");var e=255&t[r];if(r++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function l(e){var o,i;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(o=255&t[r],r++,0==(128&o))return o;if(192==(224&o)){if((i=(31&o)<<6|c())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&o)){if((i=(15&o)<<12|c()<<6|c())>=2048)return a(i,e)?i:65533;throw Error("Invalid continuation byte")}if(240==(248&o)&&(i=(7&o)<<18|c()<<12|c()<<6|c())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=i(e),o=r.length,a=-1,s="";++a65535&&(i+=o((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=o(t);return i}(c)}}},4082:function(e){"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),s=[],u=0;u1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=k(e,0,1),n=k(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,A,(function(e,t,n,o){r[r.length]=n?C(o,x,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=T("%"+r+"%",t),s=i.name,c=i.value,l=!1,f=i.alias;f&&(r=f[0],E(n,S([0,1],f)));for(var d=1,p=!0;d=n.length){var v=u(c,h);c=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[h]}else p=_(c,h),c=c[h];p&&!l&&(y[s]=c)}}return c}},171:function(e,t,n){var r=n(8002),o=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);e.exports=function e(t){if(!t||"object"!=typeof t)return!1;if(r(t)){for(var n=0,o=t.length;n0?r+",1,s":n+",0"},r=function(e){for(var t=new Date(e,0,1,0,0,1,0).getTime(),n=new Date(e,12,31,23,59,59).getTime(),r=t,o=new Date(r).getTimezoneOffset(),a=null,s=null;ro&&(s=u),o=c),r+=864e5}return!(!a||!s)&&{s:i(a).getTime(),e:i(s).getTime()}},i=function t(n,r,o){void 0===r&&(r=e.DAY,o=e.HOUR);for(var i=new Date(n.getTime()-r).getTime(),a=n.getTime()+r,s=new Date(i).getTimezoneOffset(),u=i,c=null;u=r.rules[i].s&&t[i].e<=r.rules[i].e)){o="N/A";break}if(o=0,o+=Math.abs(t[i].s-r.rules[i].s),(o+=Math.abs(r.rules[i].e-t[i].e))>e.MAX_SCORE){o="N/A";break}}return o=function(e,t,n,r){if("N/A"!==n)return n;if("Asia/Beirut"===t){if("Africa/Cairo"===r.name&&13983768e5===e[6].s&&14116788e5===e[6].e)return 0;if("Asia/Jerusalem"===r.name&&13959648e5===e[6].s&&14118588e5===e[6].e)return 0}else if("America/Santiago"===t){if("America/Asuncion"===r.name&&14124816e5===e[6].s&&1397358e6===e[6].e)return 0;if("America/Campo_Grande"===r.name&&14136912e5===e[6].s&&13925196e5===e[6].e)return 0}else if("America/Montevideo"===t){if("America/Sao_Paulo"===r.name&&14136876e5===e[6].s&&1392516e6===e[6].e)return 0}else if("Pacific/Auckland"===t&&"Pacific/Fiji"===r.name&&14142456e5===e[6].s&&13961016e5===e[6].e)return 0;return n}(t,n,o,r),o},i={},a=o.olson.dst_rules.zones,s=a.length,u=e.AMBIGUITIES[n],c=0;c-1||"UTC"===t)&&0!=t.indexOf("Etc")?t:void 0}();return r||(r=o.olson.timezones[n()],void 0!==e.AMBIGUITIES[r]&&(r=a(r))),{name:function(){return r},stdTimezoneOffset:function(){return-n().split(",")[0]},timezoneOffset:function(){return-t(new Date)}}}}}()).olson=o.olson||{},o.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Argentina/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,s":"Africa/Windhoek","120,1":"Asia/Beirut","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Kolkata","345,0":"Asia/Kathmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},o.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"Africa/Casablanca",rules:[{e:12202236e5,s:12122784e5},{e:12508092e5,s:12438144e5},{e:1281222e6,s:12727584e5},{e:13120668e5,s:13017888e5},{e:13489704e5,s:1345428e6},{e:13828392e5,s:13761e8},{e:14142888e5,s:14069448e5}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12885156e5,s:12703752e5},{e:13199652e5,s:13018248e5},{e:13514148e5,s:13332744e5},{e:13828644e5,s:13653288e5},{e:1414314e6,s:13967784e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]}]},void 0!==e.exports?e.exports=o:null!==n.amdD&&null!=n.amdO?void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r):window.jstz=o},1013:function(e,t,n){e.exports=n(3042)},1291:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",s="[object Date]",u="[object Function]",c="[object GeneratorFunction]",l="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",m="[object Set]",y="[object String]",g="[object Symbol]",v="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",_="[object Float32Array]",S="[object Float64Array]",E="[object Int8Array]",C="[object Int16Array]",k="[object Int32Array]",O="[object Uint8Array]",A="[object Uint8ClampedArray]",x="[object Uint16Array]",T="[object Uint32Array]",I=/\w*$/,P=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,N={};N[i]=N["[object Array]"]=N[b]=N[w]=N[a]=N[s]=N[_]=N[S]=N[E]=N[C]=N[k]=N[l]=N[f]=N[d]=N[h]=N[m]=N[y]=N[g]=N[O]=N[A]=N[x]=N[T]=!0,N["[object Error]"]=N[u]=N[v]=!1;var F="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,M="object"==typeof self&&self&&self.Object===Object&&self,D=F||M||Function("return this")(),j=t&&!t.nodeType&&t,L=j&&e&&!e.nodeType&&e,B=L&&L.exports===j;function U(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function H(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o-1},Ae.prototype.set=function(e,t){var n=this.__data__,r=Re(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},xe.prototype.clear=function(){this.__data__={hash:new Oe,map:new(he||Ae),string:new Oe}},xe.prototype.delete=function(e){return je(this,e).delete(e)},xe.prototype.get=function(e){return je(this,e).get(e)},xe.prototype.has=function(e){return je(this,e).has(e)},xe.prototype.set=function(e,t){return je(this,e).set(e,t),this},Te.prototype.clear=function(){this.__data__=new Ae},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ae){var r=n.__data__;if(!he||r.length<199)return r.push([e,t]),this;n=this.__data__=new xe(r)}return n.set(e,t),this};var Be=le?$(le,Object):function(){return[]},Ue=function(e){return te.call(e)};function ze(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||R.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=o}(e.length)&&!Xe(e)}var qe=fe||function(){return!1};function Xe(e){var t=Qe(e)?te.call(e):"";return t==u||t==c}function Qe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return Ge(e)?Ie(e):function(e){if(!He(e))return de(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Ne(e,!0,!0)}},8538:function(e,t,n){var r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,f="object"==typeof self&&self&&self.Object===Object&&self,d=l||f||Function("return this")(),p=Object.prototype.toString,h=Math.max,m=Math.min,y=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==o}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,n){var r,o,i,a,s,u,c=0,l=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function b(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-c>=i}function w(){var e=y();if(b(e))return _(e);s=setTimeout(w,function(e){var n=t-(e-u);return f?m(n,i-(e-c)):n}(e))}function _(e){return s=void 0,d&&r?p(e):(r=o=void 0,a)}function S(){var e=y(),n=b(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(w,t),l?p(e):a}(u);if(f)return s=setTimeout(w,t),p(u)}return void 0===s&&(s=setTimeout(w,t)),a}return t=v(t)||0,g(n)&&(l=!!n.leading,i=(f="maxWait"in n)?h(v(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},S.flush=function(){return void 0===s?a:_(y())},S}},8677:function(e){var t=1e3,n=60*t,r=60*n,o=24*r,i=365.25*o;function a(e,t,n){if(!(e0)return function(e){if((e=String(e)).length>100)return;var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!a)return;var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*i;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===c&&!1===isNaN(e))return s.long?a(u=e,o,"day")||a(u,r,"hour")||a(u,n,"minute")||a(u,t,"second")||u+" ms":function(e){if(e>=o)return Math.round(e/o)+"d";if(e>=r)return Math.round(e/r)+"h";if(e>=n)return Math.round(e/n)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},5159:function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,_=String.prototype.toLowerCase,S=RegExp.prototype.test,E=Array.prototype.concat,C=Array.prototype.join,k=Array.prototype.slice,O=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function F(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var o=String(r),i=v.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var M=n(4654),D=M.custom,j=H(D)?D:null;function L(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function B(e){return b.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==$(e)||P&&"object"==typeof e&&P in e)}function z(e){return!("[object RegExp]"!==$(e)||P&&"object"==typeof e&&P in e)}function H(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,o){var s=n||{};if(W(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!W(s,"customInspect")||s.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return q(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return m?F(t,w):w}if("bigint"==typeof t){var S=String(t)+"n";return m?F(t,S):S}var O=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=O&&O>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var x=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=C.call(Array(e.indent+1)," ")}return{base:n,prev:C.call(Array(t+1),n)}}(s,r);if(void 0===o)o=[];else if(G(o,t)>=0)return"[Circular]";function D(t,n,i){if(n&&(o=k.call(o)).push(n),i){var a={depth:s.depth};return W(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if("function"==typeof t&&!z(t)){var V=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),X=J(t,D);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(X.length>0?" { "+C.call(X,", ")+" }":"")}if(H(t)){var ee=I?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||I?ee:Q(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+_.call(String(t.nodeName)),ne=t.attributes||[],re=0;re"}if(U(t)){if(0===t.length)return"[]";var oe=J(t,D);return x&&!function(e){for(var t=0;t=0)return!1;return!0}(oe)?"["+Z(oe,x)+"]":"[ "+C.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==$(e)||P&&"object"==typeof e&&P in e)}(t)){var ie=J(t,D);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(ie,", ")+" }":"{ ["+String(t)+"] "+C.call(E.call("[cause]: "+D(t.cause),ie),", ")+" }"}if("object"==typeof t&&u){if(j&&"function"==typeof t[j]&&M)return M(t,{depth:O-r});if("symbol"!==u&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return a&&a.call(t,(function(e,n){ae.push(D(n,t,!0)+" => "+D(e,t))})),K("Map",i.call(t),ae,x)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return l&&l.call(t,(function(e){se.push(D(e,t))})),K("Set",c.call(t),se,x)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==$(e)||P&&"object"==typeof e&&P in e)}(t))return Q(D(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return Q(D(A.call(t)));if(function(e){return!("[object Boolean]"!==$(e)||P&&"object"==typeof e&&P in e)}(t))return Q(h.call(t));if(function(e){return!("[object String]"!==$(e)||P&&"object"==typeof e&&P in e)}(t))return Q(D(String(t)));if(!function(e){return!("[object Date]"!==$(e)||P&&"object"==typeof e&&P in e)}(t)&&!z(t)){var ue=J(t,D),ce=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",fe=!ce&&P&&Object(t)===t&&P in t?v.call($(t),8,-1):le?"Object":"",de=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||le?"["+C.call(E.call([],fe||[],le||[]),": ")+"] ":"");return 0===ue.length?de+"{}":x?de+"{"+Z(ue,x)+"}":de+"{ "+C.call(ue,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return V.call(e,t)}function $(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return q(v.call(e,0,t.maxStringLength),t)+r}return L(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Q(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function K(e,t,n,r){return e+" ("+t+") {"+(r?Z(n,r):C.call(n,", "))+"}"}function Z(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+C.call(e,","+n)+"\n"+t.prev}function J(e,t){var n=U(e),r=[];if(n){r.length=e.length;for(var o=0;o-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var f=0;n.depth>0&&null!==(s=a.exec(i))&&f=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,c={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,f),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(y=i(y)?[y]:y),o.call(c,m)?c[m]=r.combine(c[m],y):c[m]=y}return c}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(l),p=0;p0?C.join(",")||null:void 0}];else if(u(d))T=d;else{var P=Object.keys(C);T=m?P.sort(m):P}for(var R=a&&u(C)&&1===C.length?n+"[]":n,N=0;N0?_+w:""}},9337:function(e,t,n){"use strict";var r=n(4827),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:{},a=i.breadcrumbDataFromAction,s=void 0===a?n:a,u=i.breadcrumbMessageFromAction,c=void 0===u?r:u,l=i.actionTransformer,f=void 0===l?t:l,d=i.stateTransformer,p=void 0===d?t:d,h=i.breadcrumbCategory,m=void 0===h?"redux-action":h,y=i.filterBreadcrumbActions,g=void 0===y?o:y,v=i.getUserContext,b=i.getTags;return function(t){var n=void 0;return e.setDataCallback((function(e,r){var o=t.getState(),i={lastAction:f(n),state:p(o)};return e.extra=Object.assign(i,e.extra),v&&(e.user=v(o)),b&&(e.tags=b(o)),r?r(e):e})),function(t){return function(r){return g(r)&&e.captureBreadcrumb({category:m,message:c(r),data:s(r)}),n=r,t(r)}}}}},653:function(e){function t(e){this.name="RavenConfigError",this.message=e}t.prototype=new Error,t.prototype.constructor=t,e.exports=t},3441:function(e,t,n){var r=n(1372);e.exports={wrapMethod:function(e,t,n){var o=e[t],i=e;if(t in e){var a="warn"===t?"warning":t;e[t]=function(){var e=[].slice.call(arguments),s=r.safeJoin(e," "),u={level:a,logger:"console",extra:{arguments:e}};"assert"===t?!1===e[0]&&(s="Assertion failed: "+(r.safeJoin(e.slice(1)," ")||"console.assert"),u.extra.arguments=e.slice(1),n&&n(s,u)):n&&n(s,u),o&&Function.prototype.apply.call(o,i,e)}}}}},5128:function(e,t,n){var r=n(5560),o=n(9370),i=n(6048),a=n(653),s=n(1372),u=s.isErrorEvent,c=s.isDOMError,l=s.isDOMException,f=s.isError,d=s.isObject,p=s.isPlainObject,h=s.isUndefined,m=s.isFunction,y=s.isString,g=s.isArray,v=s.isEmptyObject,b=s.each,w=s.objectMerge,_=s.truncate,S=s.objectFrozen,E=s.hasKey,C=s.joinRegExp,k=s.urlencode,O=s.uuid4,A=s.htmlTreeAsString,x=s.isSameException,T=s.isSameStacktrace,I=s.parseUrl,P=s.fill,R=s.supportsFetch,N=s.supportsReferrerPolicy,F=s.serializeKeysForMessage,M=s.serializeException,D=s.sanitize,j=n(3441).wrapMethod,L="source protocol user pass host port path".split(" "),B=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function U(){return+new Date}var z="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},H=z.document,V=z.navigator;function W(e,t){return m(t)?function(n){return t(n,e)}:t}function $(){for(var e in this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument=!h(H),this._hasNavigator=!h(V),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:z.SENTRY_RELEASE&&z.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,captureUnhandledRejections:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1,sanitizeKeys:[]},this._fetchDefaults={method:"POST",referrerPolicy:N()?"origin":""},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=z.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=U(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeout,this._location=z.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[e]=this._originalConsole[e]}$.prototype={VERSION:"3.27.2",debug:!1,TraceKit:r,config:function(e,t){var n=this;if(n._globalServer)return this._logDebug("error","Error: Raven has already been configured"),n;if(!e)return n;var o=n._globalOptions;t&&b(t,(function(e,t){"tags"===e||"extra"===e||"user"===e?n._globalContext[e]=t:o[e]=t})),n.setDSN(e),o.ignoreErrors.push(/^Script error\.?$/),o.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),o.ignoreErrors=C(o.ignoreErrors),o.ignoreUrls=!!o.ignoreUrls.length&&C(o.ignoreUrls),o.whitelistUrls=!!o.whitelistUrls.length&&C(o.whitelistUrls),o.includePaths=C(o.includePaths),o.maxBreadcrumbs=Math.max(0,Math.min(o.maxBreadcrumbs||100,100));var i={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},a=o.autoBreadcrumbs;"[object Object]"==={}.toString.call(a)?a=w(i,a):!1!==a&&(a=i),o.autoBreadcrumbs=a;var s={tryCatch:!0},u=o.instrument;return"[object Object]"==={}.toString.call(u)?u=w(s,u):!1!==u&&(u=s),o.instrument=u,r.collectWindowErrors=!!o.collectWindowErrors,n},install:function(){var e=this;return e.isSetup()&&!e._isRavenInstalled&&(r.report.subscribe((function(){e._handleOnErrorStackInfo.apply(e,arguments)})),e._globalOptions.captureUnhandledRejections&&e._attachPromiseRejectionHandler(),e._patchFunctionToString(),e._globalOptions.instrument&&e._globalOptions.instrument.tryCatch&&e._instrumentTryCatch(),e._globalOptions.autoBreadcrumbs&&e._instrumentBreadcrumbs(),e._drainPlugins(),e._isRavenInstalled=!0),Error.stackTraceLimit=e._globalOptions.stackTraceLimit,this},setDSN:function(e){var t=this,n=t._parseDSN(e),r=n.path.lastIndexOf("/"),o=n.path.substr(1,r);t._dsn=e,t._globalKey=n.user,t._globalSecret=n.pass&&n.pass.substr(1),t._globalProject=n.path.substr(r+1),t._globalServer=t._getGlobalServer(n),t._globalEndpoint=t._globalServer+"/"+o+"api/"+t._globalProject+"/store/",this._resetBackoff()},context:function(e,t,n){return m(e)&&(n=t||[],t=e,e={}),this.wrap(e,t).apply(this,n)},wrap:function(e,t,n){var r=this;if(h(t)&&!m(e))return e;if(m(e)&&(t=e,e=void 0),!m(t))return t;try{if(t.__raven__)return t;if(t.__raven_wrapper__)return t.__raven_wrapper__}catch(e){return t}function o(){var o=[],i=arguments.length,a=!e||e&&!1!==e.deep;for(n&&m(n)&&n.apply(this,arguments);i--;)o[i]=a?r.wrap(e,arguments[i]):arguments[i];try{return t.apply(this,o)}catch(t){throw r._ignoreNextOnError(),r.captureException(t,e),t}}for(var i in t)E(t,i)&&(o[i]=t[i]);return o.prototype=t.prototype,t.__raven_wrapper__=o,o.__raven__=!0,o.__orig__=t,o},uninstall:function(){return r.report.uninstall(),this._detachPromiseRejectionHandler(),this._unpatchFunctionToString(),this._restoreBuiltIns(),this._restoreConsole(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},_promiseRejectionHandler:function(e){this._logDebug("debug","Raven caught unhandled promise rejection:",e),this.captureException(e.reason,{mechanism:{type:"onunhandledrejection",handled:!1}})},_attachPromiseRejectionHandler:function(){return this._promiseRejectionHandler=this._promiseRejectionHandler.bind(this),z.addEventListener&&z.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return z.removeEventListener&&z.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(e,t){if(t=w({trimHeadFrames:0},t||{}),u(e)&&e.error)e=e.error;else{if(c(e)||l(e)){var n=e.name||(c(e)?"DOMError":"DOMException"),o=e.message?n+": "+e.message:n;return this.captureMessage(o,w(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}))}if(f(e));else{if(!p(e))return this.captureMessage(e,w(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}));t=this._getCaptureExceptionOptionsFromPlainObject(t,e),e=new Error(t.message)}}this._lastCapturedException=e;try{var i=r.computeStackTrace(e);this._handleStackInfo(i,t)}catch(t){if(e!==t)throw t}return this},_getCaptureExceptionOptionsFromPlainObject:function(e,t){var n=Object.keys(t).sort(),r=w(e,{message:"Non-Error exception captured with keys: "+F(n),fingerprint:[i(n)],extra:e.extra||{}});return r.extra.__serialized__=M(t),r},captureMessage:function(e,t){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)){var n,o=w({message:e+=""},t=t||{});try{throw new Error(e)}catch(e){n=e}n.name=null;var i=r.computeStackTrace(n),a=g(i.stack)&&i.stack[1];a&&"Raven.captureException"===a.func&&(a=i.stack[2]);var s=a&&a.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(s))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(s))){if(this._globalOptions.stacktrace||t.stacktrace||""===o.message){o.fingerprint=null==o.fingerprint?e:o.fingerprint,(t=w({trimHeadFrames:0},t)).trimHeadFrames+=1;var u=this._prepareFrames(i,t);o.stacktrace={frames:u.reverse()}}return o.fingerprint&&(o.fingerprint=g(o.fingerprint)?o.fingerprint:[o.fingerprint]),this._send(o),this}}},captureBreadcrumb:function(e){var t=w({timestamp:U()/1e3},e);if(m(this._globalOptions.breadcrumbCallback)){var n=this._globalOptions.breadcrumbCallback(t);if(d(n)&&!v(n))t=n;else if(!1===n)return this}return this._breadcrumbs.push(t),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(e){var t=[].slice.call(arguments,1);return this._plugins.push([e,t]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(e){return this._globalContext.user=e,this},setExtraContext:function(e){return this._mergeContext("extra",e),this},setTagsContext:function(e){return this._mergeContext("tags",e),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(o(this._globalContext))},setEnvironment:function(e){return this._globalOptions.environment=e,this},setRelease:function(e){return this._globalOptions.release=e,this},setDataCallback:function(e){var t=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=W(t,e),this},setBreadcrumbCallback:function(e){var t=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=W(t,e),this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=W(t,e),this},setTransport:function(e){return this._globalOptions.transport=e,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var e=z.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(H){if(!(e=w({eventId:this.lastEventId(),dsn:this._dsn,user:this._globalContext.user||{}},e)).eventId)throw new a("Missing eventId");if(!e.dsn)throw new a("Missing DSN");var t=encodeURIComponent,n=[];for(var r in e)if("user"===r){var o=e.user;o.name&&n.push("name="+t(o.name)),o.email&&n.push("email="+t(o.email))}else n.push(t(r)+"="+t(e[r]));var i=this._getGlobalServer(this._parseDSN(e.dsn)),s=H.createElement("script");s.async=!0,s.src=i+"/api/embed/error-page/?"+n.join("&"),(H.head||H.body).appendChild(s)}},_ignoreNextOnError:function(){var e=this;this._ignoreOnError+=1,setTimeout((function(){e._ignoreOnError-=1}))},_triggerEvent:function(e,t){var n,r;if(this._hasDocument){for(r in t=t||{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),H.createEvent?(n=H.createEvent("HTMLEvents")).initEvent(e,!0,!0):(n=H.createEventObject()).eventType=e,t)E(t,r)&&(n[r]=t[r]);if(H.createEvent)H.dispatchEvent(n);else try{H.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(e){}}},_breadcrumbEventHandler:function(e){var t=this;return function(n){if(t._keypressTimeout=null,t._lastCapturedEvent!==n){var r;t._lastCapturedEvent=n;try{r=A(n.target)}catch(e){r=""}t.captureBreadcrumb({category:"ui."+e,message:r})}}},_keypressEventHandler:function(){var e=this;return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;if(r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)){var o=e._keypressTimeout;o||e._breadcrumbEventHandler("input")(t),clearTimeout(o),e._keypressTimeout=setTimeout((function(){e._keypressTimeout=null}),1e3)}}},_captureUrlChange:function(e,t){var n=I(this._location.href),r=I(t),o=I(e);this._lastHref=t,n.protocol===r.protocol&&n.host===r.host&&(t=r.relative),n.protocol===o.protocol&&n.host===o.host&&(e=o.relative),this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},_patchFunctionToString:function(){var e=this;e._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return"function"==typeof this&&this.__raven__?e._originalFunctionToString.apply(this.__orig__,arguments):e._originalFunctionToString.apply(this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){var e=this,t=e._wrappedBuiltIns;function n(t){return function(n,r){for(var o=new Array(arguments.length),i=0;i"}}},a)),t.apply?t.apply(this,o):t(o[0],o[1])}}var r=this._globalOptions.autoBreadcrumbs;function o(n){var o=z[n]&&z[n].prototype;o&&o.hasOwnProperty&&o.hasOwnProperty("addEventListener")&&(P(o,"addEventListener",(function(t){return function(o,i,a,s){try{i&&i.handleEvent&&(i.handleEvent=e.wrap({mechanism:{type:"instrument",data:{target:n,function:"handleEvent",handler:i&&i.name||""}}},i.handleEvent))}catch(e){}var u,c,l;return r&&r.dom&&("EventTarget"===n||"Node"===n)&&(c=e._breadcrumbEventHandler("click"),l=e._keypressEventHandler(),u=function(e){if(e){var t;try{t=e.type}catch(e){return}return"click"===t?c(e):"keypress"===t?l(e):void 0}}),t.call(this,o,e.wrap({mechanism:{type:"instrument",data:{target:n,function:"addEventListener",handler:i&&i.name||""}}},i,u),a,s)}}),t),P(o,"removeEventListener",(function(e){return function(t,n,r,o){try{n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n)}catch(e){}return e.call(this,t,n,r,o)}}),t))}P(z,"setTimeout",n,t),P(z,"setInterval",n,t),z.requestAnimationFrame&&P(z,"requestAnimationFrame",(function(t){return function(n){return t(e.wrap({mechanism:{type:"instrument",data:{function:"requestAnimationFrame",handler:t&&t.name||""}}},n))}}),t);for(var i=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],a=0;a"}}},n)}))}if(t.xhr&&"XMLHttpRequest"in z){var o=z.XMLHttpRequest&&z.XMLHttpRequest.prototype;P(o,"open",(function(t){return function(n,r){return y(r)&&-1===r.indexOf(e._globalKey)&&(this.__raven_xhr={method:n,url:r,status_code:null}),t.apply(this,arguments)}}),n),P(o,"send",(function(t){return function(){var n=this;function o(){if(n.__raven_xhr&&4===n.readyState){try{n.__raven_xhr.status_code=n.status}catch(e){}e.captureBreadcrumb({type:"http",category:"xhr",data:n.__raven_xhr})}}for(var i=["onload","onerror","onprogress"],a=0;a"}}},t,o)})):n.onreadystatechange=o,t.apply(this,arguments)}}),n)}t.xhr&&R()&&P(z,"fetch",(function(t){return function(){for(var n=new Array(arguments.length),r=0;r2?arguments[2]:void 0;return n&&e._captureUrlChange(e._lastHref,n+""),t.apply(this,arguments)}};P(z.history,"pushState",u,n),P(z.history,"replaceState",u,n)}if(t.console&&"console"in z&&console.log){var c=function(t,n){e.captureBreadcrumb({message:t,level:n.level,category:"console"})};b(["debug","info","warn","error","log"],(function(e,t){j(console,t,c)}))}},_restoreBuiltIns:function(){for(var e;this._wrappedBuiltIns.length;){var t=(e=this._wrappedBuiltIns.shift())[0],n=e[1],r=e[2];t[n]=r}},_restoreConsole:function(){for(var e in this._originalConsoleMethods)this._originalConsole[e]=this._originalConsoleMethods[e]},_drainPlugins:function(){var e=this;b(this._plugins,(function(t,n){var r=n[0],o=n[1];r.apply(e,[e].concat(o))}))},_parseDSN:function(e){var t=B.exec(e),n={},r=7;try{for(;r--;)n[L[r]]=t[r]||""}catch(t){throw new a("Invalid DSN: "+e)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new a("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"");return e.protocol&&(t=e.protocol+":"+t),t},_handleOnErrorStackInfo:function(e,t){(t=t||{}).mechanism=t.mechanism||{type:"onerror",handled:!1},this._ignoreOnError||this._handleStackInfo(e,t)},_handleStackInfo:function(e,t){var n=this._prepareFrames(e,t);this._triggerEvent("handle",{stackInfo:e,options:t}),this._processException(e.name,e.message,e.url,e.lineno,n,t)},_prepareFrames:function(e,t){var n=this,r=[];if(e.stack&&e.stack.length&&(b(e.stack,(function(t,o){var i=n._normalizeFrame(o,e.url);i&&r.push(i)})),t&&t.trimHeadFrames))for(var o=0;o0&&(e.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),this._globalContext.user&&(e.user=this._globalContext.user),t.environment&&(e.environment=t.environment),t.release&&(e.release=t.release),t.serverName&&(e.server_name=t.serverName),e=this._sanitizeData(e),Object.keys(e).forEach((function(t){(null==e[t]||""===e[t]||v(e[t]))&&delete e[t]})),m(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!v(e)&&(m(t.shouldSendCallback)&&!t.shouldSendCallback(e)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",e):"number"==typeof t.sampleRate?Math.random()1&&o+3*n.length+t.length>=80);)n.push(t),o+=t.length,e=e.parentNode;return n.reverse().join(" > ")},htmlElementAsString:h,isSameException:function(e,t){return!m(e,t)&&(e=e.values[0],t=t.values[0],e.type===t.type&&e.value===t.value&&(n=e.stacktrace,r=t.stacktrace,(!i(n)||!i(r))&&y(e.stacktrace,t.stacktrace)));var n,r},isSameStacktrace:y,parseUrl:function(e){if("string"!=typeof e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),n=t[6]||"",r=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+n+r}},fill:function(e,t,n,r){if(null!=e){var o=e[t];e[t]=n(o),e[t].__raven__=!0,e[t].__orig__=o,r&&r.push([e,t,o])}},safeJoin:function(e,t){if(!u(e))return"";for(var n=[],r=0;ro?e(t,n-1):i},serializeKeysForMessage:function(e,t){if("number"==typeof e||"string"==typeof e)return e.toString();if(!Array.isArray(e))return"";if(0===(e=e.filter((function(e){return"string"==typeof e}))).length)return"[object has no keys]";if(t="number"!=typeof t?40:t,e[0].length>=t)return e[0];for(var n=e.length;n>0;n--){var r=e.slice(0,n).join(", ");if(!(r.length>t))return n===e.length?r:r+"\u2026"}return""},sanitize:function(e,t){if(!u(t)||u(t)&&0===t.length)return e;var n,o=p(t);try{n=JSON.parse(r(e))}catch(t){return e}return function e(t){return u(t)?t.map((function(t){return e(t)})):a(t)?Object.keys(t).reduce((function(n,r){return o.test(r)?n[r]="********":n[r]=e(t[r]),n}),{}):t}(n)}}},5560:function(e,t,n){var r=n(1372),o={collectWindowErrors:!0,debug:!1},i="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},a=[].slice,s="?",u=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function c(){return"undefined"==typeof document||null==document.location?"":document.location.href}o.report=function(){var e,t,n=[],l=null,f=null,d=null;function p(e,t){var r=null;if(!t||o.collectWindowErrors){for(var i in n)if(n.hasOwnProperty(i))try{n[i].apply(null,[e].concat(a.call(arguments,2)))}catch(e){r=e}if(r)throw r}}function h(t,n,i,a,l){var f=r.isErrorEvent(l)?l.error:l,h=r.isErrorEvent(t)?t.message:t;if(d)o.computeStackTrace.augmentStackTraceWithInitialElement(d,n,i,h),m();else if(f&&r.isError(f))p(o.computeStackTrace(f),!0);else{var y,g={url:n,line:i,column:a},v=void 0;if("[object String]"==={}.toString.call(h))(y=h.match(u))&&(v=y[1],h=y[2]);g.func=s,p({name:v,message:h,url:c(),stack:[g]},!0)}return!!e&&e.apply(this,arguments)}function m(){var e=d,t=l;l=null,d=null,f=null,p.apply(null,[e,!1].concat(t))}function y(e,t){var n=a.call(arguments,1);if(d){if(f===e)return;m()}var r=o.computeStackTrace(e);if(d=r,f=e,l=n,setTimeout((function(){f===e&&m()}),r.incomplete?2e3:0),!1!==t)throw e}return y.subscribe=function(r){!function(){if(t)return;e=i.onerror,i.onerror=h,t=!0}(),n.push(r)},y.unsubscribe=function(e){for(var t=n.length-1;t>=0;--t)n[t]===e&&n.splice(t,1)},y.uninstall=function(){!function(){if(!t)return;i.onerror=e,t=!1,e=void 0}(),n=[]},y}(),o.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,n,r,o=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack||[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=e.stack.split("\n"),d=[],p=(/^(.*) is undefined$/.exec(e.message),0),h=f.length;p eval")>-1&&(t=u.exec(n[3]))?(n[3]=t[1],n[4]=t[2],n[5]=null):0!==p||n[5]||void 0===e.columnNumber||(d[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||s,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}if(!r.func&&r.line&&(r.func=s),r.url&&"blob:"===r.url.substr(0,5)){var y=new XMLHttpRequest;if(y.open("GET",r.url,!1),y.send(null),200===y.status){var g=y.responseText||"",v=(g=g.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(v){var b=v[1];"~"===b.charAt(0)&&(b=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+b.slice(1)),r.url=b.slice(0,-4)}}}d.push(r)}return d.length?{name:e.name,message:e.message,url:c(),stack:d}:null}}function t(e,t,n,r){var o={url:t,line:n};if(o.url&&o.line){if(e.incomplete=!1,o.func||(o.func=s),e.stack.length>0&&e.stack[0].url===o.url){if(e.stack[0].line===o.line)return!1;if(!e.stack[0].line&&e.stack[0].func===o.func)return e.stack[0].line=o.line,!1}return e.stack.unshift(o),e.partial=!0,!0}return e.incomplete=!0,!1}function n(e,i){for(var a,u,l=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,f=[],d={},p=!1,h=n.caller;h&&!p;h=h.caller)if(h!==r&&h!==o.report){if(u={url:null,func:s,line:null,column:null},h.name?u.func=h.name:(a=l.exec(h.toString()))&&(u.func=a[1]),void 0===u.func)try{u.func=a.input.substring(0,a.input.indexOf("{"))}catch(e){}d[""+h]?p=!0:d[""+h]=!0,f.push(u)}i&&f.splice(0,i);var m={name:e.name,message:e.message,url:c(),stack:f};return t(m,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),m}function r(t,r){var i=null;r=null==r?0:+r;try{if(i=e(t))return i}catch(e){if(o.debug)throw e}try{if(i=n(t,r+1))return i}catch(e){if(o.debug)throw e}return{name:t.name,message:t.message,url:c()}}return r.augmentStackTraceWithInitialElement=t,r.computeStackTraceFromStackProp=e,r}(),e.exports=o},9370:function(e,t){function n(e,t){for(var n=0;n0){var s=n(r,this);~s?r.splice(s+1):r.push(this),~s?o.splice(s,1/0,i):o.push(i),~n(r,a)&&(a=t.call(this,i,a))}else r.push(a);return null==e?a instanceof Error?function(e){var t={stack:e.stack,message:e.message,name:e.name};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(a):a:e.call(this,i,a)}}(e.exports=function(e,t,n,o){return JSON.stringify(e,r(t,o),n)}).getSerialize=r},6048:function(e){function t(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function n(e,n,r,o,i,a){return t((s=t(t(n,e),t(o,a)))<<(u=i)|s>>>32-u,r);var s,u}function r(e,t,r,o,i,a,s){return n(t&r|~t&o,e,t,i,a,s)}function o(e,t,r,o,i,a,s){return n(t&o|r&~o,e,t,i,a,s)}function i(e,t,r,o,i,a,s){return n(t^r^o,e,t,i,a,s)}function a(e,t,r,o,i,a,s){return n(r^(t|~o),e,t,i,a,s)}function s(e,n){var s,u,c,l,f;e[n>>5]|=128<>>9<<4)]=n;var d=1732584193,p=-271733879,h=-1732584194,m=271733878;for(s=0;s>5]>>>t%32&255);return n}function c(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+r.charAt(15&t);return o}function f(e){return unescape(encodeURIComponent(e))}function d(e){return function(e){return u(s(c(e),8*e.length))}(f(e))}function p(e,t){return function(e,t){var n,r,o=c(e),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=s(o,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],a[n]=1549556828^o[n];return r=s(i.concat(c(t)),512+8*t.length),u(s(a.concat(r),640))}(f(e),f(t))}e.exports=function(e,t,n){return t?n?p(t,e):l(p(t,e)):n?d(e):l(d(e))}},302:function(e,t,n){"use strict";var r=n(1914),o=n(8395);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n