@duffel/components 3.2.0 → 3.3.1--canary

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,33 +1,33 @@
1
- "use strict";var fu=Object.create;var Sn=Object.defineProperty;var du=Object.getOwnPropertyDescriptor;var pu=Object.getOwnPropertyNames;var mu=Object.getPrototypeOf,gu=Object.prototype.hasOwnProperty;var ea=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ro=(t,e)=>{for(var r in e)Sn(t,r,{get:e[r],enumerable:!0})},ta=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of pu(e))!gu.call(t,o)&&o!==r&&Sn(t,o,{get:()=>e[o],enumerable:!(n=du(e,o))||n.enumerable});return t};var D=(t,e,r)=>(r=t!=null?fu(mu(t)):{},ta(e||!t||!t.__esModule?Sn(r,"default",{value:t,enumerable:!0}):r,t)),_u=t=>ta(Sn({},"__esModule",{value:!0}),t);var Ne=ea((tE,no)=>{(function(){"use strict";var t={}.hasOwnProperty,e="[native code]";function r(){for(var n=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&n.push(s)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var c in i)t.call(i,c)&&i[c]&&n.push(c)}}}return n.join(" ")}typeof no<"u"&&no.exports?(r.default=r,no.exports=r):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return r}):window.classNames=r})()});var bl=ea((yo,Cl)=>{(function(t,e){typeof yo=="object"&&typeof Cl<"u"?e(yo,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],e):(t=t||self,e(t.ReactStripe={},t.React))})(yo,function(t,e){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;function r(_,d){var g=Object.keys(_);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(_);d&&(E=E.filter(function(Y){return Object.getOwnPropertyDescriptor(_,Y).enumerable})),g.push.apply(g,E)}return g}function n(_){for(var d=1;d<arguments.length;d++){var g=arguments[d]!=null?arguments[d]:{};d%2?r(Object(g),!0).forEach(function(E){i(_,E,g[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(g)):r(Object(g)).forEach(function(E){Object.defineProperty(_,E,Object.getOwnPropertyDescriptor(g,E))})}return _}function o(_){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(d){return typeof d}:o=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},o(_)}function i(_,d,g){return d in _?Object.defineProperty(_,d,{value:g,enumerable:!0,configurable:!0,writable:!0}):_[d]=g,_}function a(_,d){return s(_)||c(_,d)||l(_,d)||u()}function s(_){if(Array.isArray(_))return _}function c(_,d){var g=_&&(typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"]);if(g!=null){var E=[],Y=!0,I=!1,W,re;try{for(g=g.call(_);!(Y=(W=g.next()).done)&&(E.push(W.value),!(d&&E.length===d));Y=!0);}catch(x){I=!0,re=x}finally{try{!Y&&g.return!=null&&g.return()}finally{if(I)throw re}}return E}}function l(_,d){if(_){if(typeof _=="string")return f(_,d);var g=Object.prototype.toString.call(_).slice(8,-1);if(g==="Object"&&_.constructor&&(g=_.constructor.name),g==="Map"||g==="Set")return Array.from(_);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return f(_,d)}}function f(_,d){(d==null||d>_.length)&&(d=_.length);for(var g=0,E=new Array(d);g<d;g++)E[g]=_[g];return E}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(_,d){return d={exports:{}},_(d,d.exports),d.exports}var h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",S=h;function y(){}function O(){}O.resetWarningCache=y;var N=function(){function _(E,Y,I,W,re,x){if(x!==S){var me=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw me.name="Invariant Violation",me}}_.isRequired=_;function d(){return _}var g={array:_,bool:_,func:_,number:_,object:_,string:_,symbol:_,any:_,arrayOf:d,element:_,elementType:_,instanceOf:d,node:_,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:O,resetWarningCache:y};return g.PropTypes=g,g},C=m(function(_){_.exports=N()}),ce=function(d){var g=e.useRef(d);return e.useEffect(function(){g.current=d},[d]),g.current},j=function(d){return d!==null&&o(d)==="object"},qe=function(d){return j(d)&&typeof d.then=="function"},ye=function(d){return j(d)&&typeof d.elements=="function"&&typeof d.createToken=="function"&&typeof d.createPaymentMethod=="function"&&typeof d.confirmCardPayment=="function"},$t="[object Object]",K=function _(d,g){if(!j(d)||!j(g))return d===g;var E=Array.isArray(d),Y=Array.isArray(g);if(E!==Y)return!1;var I=Object.prototype.toString.call(d)===$t,W=Object.prototype.toString.call(g)===$t;if(I!==W)return!1;if(!I&&!E)return d===g;var re=Object.keys(d),x=Object.keys(g);if(re.length!==x.length)return!1;for(var me={},ze=0;ze<re.length;ze+=1)me[re[ze]]=!0;for(var Ze=0;Ze<x.length;Ze+=1)me[x[Ze]]=!0;var Me=Object.keys(me);if(Me.length!==re.length)return!1;var Ar=d,Pr=g,we=function(Vt){return _(Ar[Vt],Pr[Vt])};return Me.every(we)},X=function(d,g,E){return j(d)?Object.keys(d).reduce(function(Y,I){var W=!j(g)||!K(d[I],g[I]);return E.includes(I)?(W&&console.warn("Unsupported prop change: options.".concat(I," is not a mutable property.")),Y):W?n(n({},Y||{}),{},i({},I,d[I])):Y},null):null},De="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",Wt=function(d){if(d===null||ye(d))return d;throw new Error(De)},xr=function(d){if(qe(d))return{tag:"async",stripePromise:Promise.resolve(d).then(Wt)};var g=Wt(d);return g===null?{tag:"empty"}:{tag:"sync",stripe:g}},fn=e.createContext(null);fn.displayName="ElementsContext";var k=function(d,g){if(!d)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(g," in an <Elements> provider."));return d},le=e.createContext(null);le.displayName="CartElementContext";var Nr=function(d,g){if(!d)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(g," in an <Elements> provider."));return d},Or=function(d){var g=d.stripe,E=d.options,Y=d.children,I=e.useMemo(function(){return xr(g)},[g]),W=e.useState(null),re=a(W,2),x=re[0],me=re[1],ze=e.useState(null),Ze=a(ze,2),Me=Ze[0],Ar=Ze[1],Pr=e.useState(function(){return{stripe:I.tag==="sync"?I.stripe:null,elements:I.tag==="sync"?I.stripe.elements(E):null}}),we=a(Pr,2),ne=we[0],Vt=we[1];e.useEffect(function(){var ue=!0,mn=function(gn){Vt(function(_n){return _n.stripe?_n:{stripe:gn,elements:gn.elements(E)}})};return I.tag==="async"&&!ne.stripe?I.stripePromise.then(function(At){At&&ue&&mn(At)}):I.tag==="sync"&&!ne.stripe&&mn(I.stripe),function(){ue=!1}},[I,ne,E]);var Dr=ce(g);e.useEffect(function(){Dr!==null&&Dr!==g&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[Dr,g]);var pn=ce(E);return e.useEffect(function(){if(ne.elements){var ue=X(E,pn,["clientSecret","fonts"]);ue&&ne.elements.update(ue)}},[E,pn,ne.elements]),e.useEffect(function(){var ue=ne.stripe;!ue||!ue._registerWrapper||!ue.registerAppInfo||(ue._registerWrapper({name:"react-stripe-js",version:"2.1.0"}),ue.registerAppInfo({name:"react-stripe-js",version:"2.1.0",url:"https://stripe.com/docs/stripe-js/react"}))},[ne.stripe]),e.createElement(fn.Provider,{value:ne},e.createElement(le.Provider,{value:{cart:x,setCart:me,cartState:Me,setCartState:Ar}},Y))};Or.propTypes={stripe:C.any,options:C.object};var Ot=function(d){var g=e.useContext(fn);return k(g,d)},dn=function(d){var g=e.useContext(le);return Nr(g,d)},Dl=function(){var d=Ot("calls useElements()"),g=d.elements;return g},Ml=function(){var d=Ot("calls useStripe()"),g=d.stripe;return g},wl=function(){var d=dn("calls useCartElement()"),g=d.cart;return g},kl=function(){var d=dn("calls useCartElementState()"),g=d.cartState;return g},Zi=function(d){var g=d.children,E=Ot("mounts <ElementsConsumer>");return g(E)};Zi.propTypes={children:C.func.isRequired};var J=function(d,g,E){var Y=!!E,I=e.useRef(E);e.useEffect(function(){I.current=E},[E]),e.useEffect(function(){if(!Y||!d)return function(){};var W=function(){I.current&&I.current.apply(I,arguments)};return d.on(g,W),function(){d.off(g,W)}},[Y,g,d,I])},Bl=function(d){return d.charAt(0).toUpperCase()+d.slice(1)},B=function(d,g){var E="".concat(Bl(d),"Element"),Y=function(x){var me=x.id,ze=x.className,Ze=x.options,Me=Ze===void 0?{}:Ze,Ar=x.onBlur,Pr=x.onFocus,we=x.onReady,ne=x.onChange,Vt=x.onEscape,Dr=x.onClick,pn=x.onLoadError,ue=x.onLoaderStart,mn=x.onNetworksChange,At=x.onCheckout,gn=x.onLineItemClick,_n=x.onConfirm,nu=x.onCancel,ou=x.onShippingAddressChange,iu=x.onShippingRateChange,au=Ot("mounts <".concat(E,">")),vo=au.elements,su=e.useState(null),Ki=a(su,2),q=Ki[0],cu=Ki[1],Pt=e.useRef(null),Co=e.useRef(null),Xi=dn("mounts <".concat(E,">")),bo=Xi.setCart,To=Xi.setCartState;J(q,"blur",Ar),J(q,"focus",Pr),J(q,"escape",Vt),J(q,"click",Dr),J(q,"loaderror",pn),J(q,"loaderstart",ue),J(q,"networkschange",mn),J(q,"lineitemclick",gn),J(q,"confirm",_n),J(q,"cancel",nu),J(q,"shippingaddresschange",ou),J(q,"shippingratechange",iu);var hn;d==="cart"?hn=function(Qi){To(Qi),we&&we(Qi)}:we&&(d==="expressCheckout"?hn=we:hn=function(){we(q)}),J(q,"ready",hn);var lu=d==="cart"?function(Q){To(Q),ne&&ne(Q)}:ne;J(q,"change",lu);var uu=d==="cart"?function(Q){To(Q),At&&At(Q)}:At;J(q,"checkout",uu),e.useLayoutEffect(function(){if(Pt.current===null&&vo&&Co.current!==null){var Q=vo.create(d,Me);d==="cart"&&bo&&bo(Q),Pt.current=Q,cu(Q),Q.mount(Co.current)}},[vo,Me,bo]);var Ji=ce(Me);return e.useEffect(function(){if(Pt.current){var Q=X(Me,Ji,["paymentRequest"]);Q&&Pt.current.update(Q)}},[Me,Ji]),e.useLayoutEffect(function(){return function(){Pt.current&&(Pt.current.destroy(),Pt.current=null)}},[]),e.createElement("div",{id:me,className:ze,ref:Co})},I=function(x){Ot("mounts <".concat(E,">")),dn("mounts <".concat(E,">"));var me=x.id,ze=x.className;return e.createElement("div",{id:me,className:ze})},W=g?I:Y;return W.propTypes={id:C.string,className:C.string,onChange:C.func,onBlur:C.func,onFocus:C.func,onReady:C.func,onEscape:C.func,onClick:C.func,onLoadError:C.func,onLoaderStart:C.func,onNetworksChange:C.func,onCheckout:C.func,onLineItemClick:C.func,onConfirm:C.func,onCancel:C.func,onShippingAddressChange:C.func,onShippingRateChange:C.func,options:C.object},W.displayName=E,W.__elementType=d,W},F=typeof window>"u",Fl=B("auBankAccount",F),Ll=B("card",F),Ul=B("cardNumber",F),Hl=B("cardExpiry",F),Gl=B("cardCvc",F),Yl=B("fpxBank",F),$l=B("iban",F),Wl=B("idealBank",F),Vl=B("p24Bank",F),jl=B("epsBank",F),ql=B("payment",F),zl=B("expressCheckout",F),Zl=B("paymentRequestButton",F),Kl=B("linkAuthentication",F),Xl=B("address",F),Jl=B("shippingAddress",F),Ql=B("cart",F),eu=B("paymentMethodMessaging",F),tu=B("affirmMessage",F),ru=B("afterpayClearpayMessage",F);t.AddressElement=Xl,t.AffirmMessageElement=tu,t.AfterpayClearpayMessageElement=ru,t.AuBankAccountElement=Fl,t.CardCvcElement=Gl,t.CardElement=Ll,t.CardExpiryElement=Hl,t.CardNumberElement=Ul,t.CartElement=Ql,t.Elements=Or,t.ElementsConsumer=Zi,t.EpsBankElement=jl,t.ExpressCheckoutElement=zl,t.FpxBankElement=Yl,t.IbanElement=$l,t.IdealBankElement=Wl,t.LinkAuthenticationElement=Kl,t.P24BankElement=Vl,t.PaymentElement=ql,t.PaymentMethodMessagingElement=eu,t.PaymentRequestButtonElement=Zl,t.ShippingAddressElement=Jl,t.useCartElement=wl,t.useCartElementState=kl,t.useElements=Dl,t.useStripe=Ml,Object.defineProperty(t,"__esModule",{value:!0})})});var Wp={};Ro(Wp,{DuffelAncillaries:()=>xp,DuffelCardForm:()=>$p,DuffelPayments:()=>Gp});module.exports=_u(Wp);var ra=Object.prototype.toString;function Mr(t){switch(ra.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return fe(t,Error)}}function jt(t,e){return ra.call(t)===`[object ${e}]`}function qt(t){return jt(t,"ErrorEvent")}function yn(t){return jt(t,"DOMError")}function Io(t){return jt(t,"DOMException")}function oe(t){return jt(t,"String")}function zt(t){return t===null||typeof t!="object"&&typeof t!="function"}function Ee(t){return jt(t,"Object")}function Dt(t){return typeof Event<"u"&&fe(t,Event)}function xo(t){return typeof Element<"u"&&fe(t,Element)}function No(t){return jt(t,"RegExp")}function Mt(t){return!!(t&&t.then&&typeof t.then=="function")}function Oo(t){return Ee(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function wr(t){return typeof t=="number"&&t!==t}function fe(t,e){try{return t instanceof e}catch{return!1}}function kr(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function ke(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function En(t,e){if(!Array.isArray(t))return"";let r=[];for(let n=0;n<t.length;n++){let o=t[n];try{kr(o)?r.push("[VueViewModel]"):r.push(String(o))}catch{r.push("[value cannot be serialized]")}}return r.join(e)}function na(t,e,r=!1){return oe(t)?No(e)?e.test(t):oe(e)?r?t===e:t.includes(e):!1:!1}function _t(t,e=[],r=!1){return e.some(n=>na(t,n,r))}function Br(t,e,r=250,n,o,i,a){if(!i.exception||!i.exception.values||!a||!fe(a.originalException,Error))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=hu(Ao(t,e,o,a.originalException,n,i.exception.values,s,0),r))}function Ao(t,e,r,n,o,i,a,s){if(i.length>=r+1)return i;let c=[...i];if(fe(n[o],Error)){oa(a,s);let l=t(e,n[o]),f=c.length;ia(l,o,f,s),c=Ao(t,e,r,n[o],o,[l,...c],l,f)}return Array.isArray(n.errors)&&n.errors.forEach((l,f)=>{if(fe(l,Error)){oa(a,s);let u=t(e,l),m=c.length;ia(u,`errors[${f}]`,m,s),c=Ao(t,e,r,l,o,[u,...c],u,m)}}),c}function oa(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:e}}function ia(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function hu(t,e){return t.map(r=>(r.value&&(r.value=ke(r.value,e)),r))}function vn(t){return t&&t.Math==Math?t:void 0}var A=typeof globalThis=="object"&&vn(globalThis)||typeof window=="object"&&vn(window)||typeof self=="object"&&vn(self)||typeof global=="object"&&vn(global)||function(){return this}()||{};function ve(){return A}function Fr(t,e,r){let n=r||A,o=n.__SENTRY__=n.__SENTRY__||{};return o[t]||(o[t]=e())}var Cn=ve(),Su=80;function Be(t,e={}){if(!t)return"<unknown>";try{let r=t,n=5,o=[],i=0,a=0,s=" > ",c=s.length,l,f=Array.isArray(e)?e:e.keyAttrs,u=!Array.isArray(e)&&e.maxStringLength||Su;for(;r&&i++<n&&(l=yu(r,f),!(l==="html"||i>1&&a+o.length*c+l.length>=u));)o.push(l),a+=l.length,r=r.parentNode;return o.reverse().join(s)}catch{return"<unknown>"}}function yu(t,e){let r=t,n=[],o,i,a,s,c;if(!r||!r.tagName)return"";n.push(r.tagName.toLowerCase());let l=e&&e.length?e.filter(u=>r.getAttribute(u)).map(u=>[u,r.getAttribute(u)]):null;if(l&&l.length)l.forEach(u=>{n.push(`[${u[0]}="${u[1]}"]`)});else if(r.id&&n.push(`#${r.id}`),o=r.className,o&&oe(o))for(i=o.split(/\s+/),c=0;c<i.length;c++)n.push(`.${i[c]}`);let f=["aria-label","type","name","title","alt"];for(c=0;c<f.length;c++)a=f[c],s=r.getAttribute(a),s&&n.push(`[${a}="${s}"]`);return n.join("")}function Po(){try{return Cn.document.location.href}catch{return""}}function Do(t){return Cn.document&&Cn.document.querySelector?Cn.document.querySelector(t):null}var Eu="Sentry Logger ",Lr=["debug","info","warn","error","log","assert","trace"],Zt={};function bn(t){if(!("console"in A))return t();let e=A.console,r={},n=Object.keys(Zt);n.forEach(o=>{let i=Zt[o];r[o]=e[o],e[o]=i});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function vu(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Lr.forEach(r=>{e[r]=(...n)=>{t&&bn(()=>{A.console[r](`${Eu}[${r}]:`,...n)})}}):Lr.forEach(r=>{e[r]=()=>{}}),e}var p=vu();var Cu=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function bu(t){return t==="http"||t==="https"}function Fe(t,e=!1){let{host:r,path:n,pass:o,port:i,projectId:a,protocol:s,publicKey:c}=t;return`${s}://${c}${e&&o?`:${o}`:""}@${r}${i?`:${i}`:""}/${n&&`${n}/`}${a}`}function aa(t){let e=Cu.exec(t);if(!e){console.error(`Invalid Sentry Dsn: ${t}`);return}let[r,n,o="",i,a="",s]=e.slice(1),c="",l=s,f=l.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),l=f.pop()),l){let u=l.match(/^\d+/);u&&(l=u[0])}return sa({host:i,pass:o,path:c,projectId:l,port:a,protocol:r,publicKey:n})}function sa(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Tu(t){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return!0;let{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(a=>t[a]?!1:(p.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:r.match(/^\d+$/)?bu(n)?e&&isNaN(parseInt(e,10))?(p.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(p.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(p.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Tn(t){let e=typeof t=="string"?aa(t):sa(t);if(!(!e||!Tu(e)))return e}var z=class extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}};function L(t,e,r){if(!(e in t))return;let n=t[e],o=r(n);typeof o=="function"&&Rn(o,n),t[e]=o}function Ke(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Rn(t,e){try{let r=e.prototype||{};t.prototype=e.prototype=r,Ke(t,"__sentry_original__",e)}catch{}}function wt(t){return t.__sentry_original__}function wo(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function In(t){if(Mr(t))return{message:t.message,name:t.name,stack:t.stack,...la(t)};if(Dt(t)){let e={type:t.type,target:ca(t.target),currentTarget:ca(t.currentTarget),...la(t)};return typeof CustomEvent<"u"&&fe(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function ca(t){try{return xo(t)?Be(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function la(t){if(typeof t=="object"&&t!==null){let e={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function ko(t,e=40){let r=Object.keys(In(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=e)return ke(r[0],e);for(let n=r.length;n>0;n--){let o=r.slice(0,n).join(", ");if(!(o.length>e))return n===r.length?o:ke(o,e)}return""}function ie(t){return Mo(t,new Map)}function Mo(t,e){if(Ee(t)){let r=e.get(t);if(r!==void 0)return r;let n={};e.set(t,n);for(let o of Object.keys(t))typeof t[o]<"u"&&(n[o]=Mo(t[o],e));return n}if(Array.isArray(t)){let r=e.get(t);if(r!==void 0)return r;let n=[];return e.set(t,n),t.forEach(o=>{n.push(Mo(o,e))}),n}return t}function M(){let t=A,e=t.crypto||t.msCrypto,r=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>e.getRandomValues(new Uint8Array(1))[0])}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function ua(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Ce(t){let{message:e,event_id:r}=t;if(e)return e;let n=ua(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function Kt(t,e,r){let n=t.exception=t.exception||{},o=n.values=n.values||[],i=o[0]=o[0]||{};i.value||(i.value=e||""),i.type||(i.type=r||"Error")}function Xe(t,e){let r=ua(t);if(!r)return;let n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){let i={...o&&o.data,...e.data};r.mechanism.data=i}}function xn(t){if(t&&t.__sentry_captured__)return!0;try{Ke(t,"__sentry_captured__",!0)}catch{}return!1}function Ur(t){return Array.isArray(t)?t:[t]}var pa=50,fa=/\(error: (.*)\)/,da=/captureMessage|captureException/;function Nn(...t){let e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0)=>{let o=[],i=r.split(`
3
- `);for(let a=n;a<i.length;a++){let s=i[a];if(s.length>1024)continue;let c=fa.test(s)?s.replace(fa,"$1"):s;if(!c.match(/\S*Error: /)){for(let l of e){let f=l(c);if(f){o.push(f);break}}if(o.length>=pa)break}}return ma(o)}}function Fo(t){return Array.isArray(t)?Nn(...t):t}function ma(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),da.test(e[e.length-1].function||"")&&(e.pop(),da.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,pa).map(r=>({...r,filename:r.filename||e[e.length-1].filename,function:r.function||"?"}))}var Bo="<anonymous>";function ae(t){try{return!t||typeof t!="function"?Bo:t.name||Bo}catch{return Bo}}var Lo=ve();function On(){if(!("fetch"in Lo))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Hr(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Uo(){if(!On())return!1;if(Hr(Lo.fetch))return!0;let t=!1,e=Lo.document;if(e&&typeof e.createElement=="function")try{let r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=Hr(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}var An=ve();function ga(){let t=An.chrome,e=t&&t.app&&t.app.runtime,r="history"in An&&!!An.history.pushState&&!!An.history.replaceState;return!e&&r}var V=ve(),Je="__sentry_xhr_v2__",Gr={},_a={};function Ru(t){if(!_a[t])switch(_a[t]=!0,t){case"console":Iu();break;case"dom":Ca();break;case"xhr":va();break;case"fetch":xu();break;case"history":Nu();break;case"error":Mu();break;case"unhandledrejection":wu();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn("unknown instrumentation type:",t);return}}function U(t,e){Gr[t]=Gr[t]||[],Gr[t].push(e),Ru(t)}function be(t,e){if(!(!t||!Gr[t]))for(let r of Gr[t]||[])try{r(e)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.error(`Error while triggering instrumentation handler.
1
+ "use strict";var wl=Object.create;var xn=Object.defineProperty;var kl=Object.getOwnPropertyDescriptor;var Ll=Object.getOwnPropertyNames;var Bl=Object.getPrototypeOf,Hl=Object.prototype.hasOwnProperty;var fa=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Bo=(t,e)=>{for(var r in e)xn(t,r,{get:e[r],enumerable:!0})},ma=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ll(e))!Hl.call(t,o)&&o!==r&&xn(t,o,{get:()=>e[o],enumerable:!(n=kl(e,o))||n.enumerable});return t};var D=(t,e,r)=>(r=t!=null?wl(Bl(t)):{},ma(e||!t||!t.__esModule?xn(r,"default",{value:t,enumerable:!0}):r,t)),Fl=t=>ma(xn({},"__esModule",{value:!0}),t);var re=fa((H6,po)=>{(function(){"use strict";var t={}.hasOwnProperty,e="[native code]";function r(){for(var n=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&n.push(s)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var c in i)t.call(i,c)&&i[c]&&n.push(c)}}}return n.join(" ")}typeof po<"u"&&po.exports?(r.default=r,po.exports=r):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return r}):window.classNames=r})()});var Lc=fa((Io,kc)=>{(function(t,e){typeof Io=="object"&&typeof kc<"u"?e(Io,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],e):(t=t||self,e(t.ReactStripe={},t.React))})(Io,function(t,e){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;function r(_,p){var g=Object.keys(_);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(_);p&&(E=E.filter(function($){return Object.getOwnPropertyDescriptor(_,$).enumerable})),g.push.apply(g,E)}return g}function n(_){for(var p=1;p<arguments.length;p++){var g=arguments[p]!=null?arguments[p]:{};p%2?r(Object(g),!0).forEach(function(E){i(_,E,g[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(g)):r(Object(g)).forEach(function(E){Object.defineProperty(_,E,Object.getOwnPropertyDescriptor(g,E))})}return _}function o(_){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(p){return typeof p}:o=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},o(_)}function i(_,p,g){return p in _?Object.defineProperty(_,p,{value:g,enumerable:!0,configurable:!0,writable:!0}):_[p]=g,_}function a(_,p){return s(_)||c(_,p)||l(_,p)||u()}function s(_){if(Array.isArray(_))return _}function c(_,p){var g=_&&(typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"]);if(g!=null){var E=[],$=!0,O=!1,Z,ie;try{for(g=g.call(_);!($=(Z=g.next()).done)&&(E.push(Z.value),!(p&&E.length===p));$=!0);}catch(M){O=!0,ie=M}finally{try{!$&&g.return!=null&&g.return()}finally{if(O)throw ie}}return E}}function l(_,p){if(_){if(typeof _=="string")return d(_,p);var g=Object.prototype.toString.call(_).slice(8,-1);if(g==="Object"&&_.constructor&&(g=_.constructor.name),g==="Map"||g==="Set")return Array.from(_);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return d(_,p)}}function d(_,p){(p==null||p>_.length)&&(p=_.length);for(var g=0,E=new Array(p);g<p;g++)E[g]=_[g];return E}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(_,p){return p={exports:{}},_(p,p.exports),p.exports}var h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",C=h;function y(){}function N(){}N.resetWarningCache=y;var P=function(){function _(E,$,O,Z,ie,M){if(M!==C){var Se=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw Se.name="Invariant Violation",Se}}_.isRequired=_;function p(){return _}var g={array:_,bool:_,func:_,number:_,object:_,string:_,symbol:_,any:_,arrayOf:p,element:_,elementType:_,instanceOf:p,node:_,objectOf:p,oneOf:p,oneOfType:p,shape:p,exact:p,checkPropTypes:N,resetWarningCache:y};return g.PropTypes=g,g},v=m(function(_){_.exports=P()}),pe=function(p){var g=e.useRef(p);return e.useEffect(function(){g.current=p},[p]),g.current},q=function(p){return p!==null&&o(p)==="object"},Xe=function(p){return q(p)&&typeof p.then=="function"},be=function(p){return q(p)&&typeof p.elements=="function"&&typeof p.createToken=="function"&&typeof p.createPaymentMethod=="function"&&typeof p.confirmCardPayment=="function"},Kt="[object Object]",J=function _(p,g){if(!q(p)||!q(g))return p===g;var E=Array.isArray(p),$=Array.isArray(g);if(E!==$)return!1;var O=Object.prototype.toString.call(p)===Kt,Z=Object.prototype.toString.call(g)===Kt;if(O!==Z)return!1;if(!O&&!E)return p===g;var ie=Object.keys(p),M=Object.keys(g);if(ie.length!==M.length)return!1;for(var Se={},Je=0;Je<ie.length;Je+=1)Se[ie[Je]]=!0;for(var Qe=0;Qe<M.length;Qe+=1)Se[M[Qe]]=!0;var Be=Object.keys(Se);if(Be.length!==ie.length)return!1;var Br=p,Hr=g,He=function(Jt){return _(Br[Jt],Hr[Jt])};return Be.every(He)},Q=function(p,g,E){return q(p)?Object.keys(p).reduce(function($,O){var Z=!q(g)||!J(p[O],g[O]);return E.includes(O)?(Z&&console.warn("Unsupported prop change: options.".concat(O," is not a mutable property.")),$):Z?n(n({},$||{}),{},i({},O,p[O])):$},null):null},Le="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",Xt=function(p){if(p===null||be(p))return p;throw new Error(Le)},wr=function(p){if(Xe(p))return{tag:"async",stripePromise:Promise.resolve(p).then(Xt)};var g=Xt(p);return g===null?{tag:"empty"}:{tag:"sync",stripe:g}},Cn=e.createContext(null);Cn.displayName="ElementsContext";var H=function(p,g){if(!p)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(g," in an <Elements> provider."));return p},fe=e.createContext(null);fe.displayName="CartElementContext";var kr=function(p,g){if(!p)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(g," in an <Elements> provider."));return p},Lr=function(p){var g=p.stripe,E=p.options,$=p.children,O=e.useMemo(function(){return wr(g)},[g]),Z=e.useState(null),ie=a(Z,2),M=ie[0],Se=ie[1],Je=e.useState(null),Qe=a(Je,2),Be=Qe[0],Br=Qe[1],Hr=e.useState(function(){return{stripe:O.tag==="sync"?O.stripe:null,elements:O.tag==="sync"?O.stripe.elements(E):null}}),He=a(Hr,2),ae=He[0],Jt=He[1];e.useEffect(function(){var me=!0,vn=function(bn){Jt(function(Tn){return Tn.stripe?Tn:{stripe:bn,elements:bn.elements(E)}})};return O.tag==="async"&&!ae.stripe?O.stripePromise.then(function(Bt){Bt&&me&&vn(Bt)}):O.tag==="sync"&&!ae.stripe&&vn(O.stripe),function(){me=!1}},[O,ae,E]);var Fr=pe(g);e.useEffect(function(){Fr!==null&&Fr!==g&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[Fr,g]);var En=pe(E);return e.useEffect(function(){if(ae.elements){var me=Q(E,En,["clientSecret","fonts"]);me&&ae.elements.update(me)}},[E,En,ae.elements]),e.useEffect(function(){var me=ae.stripe;!me||!me._registerWrapper||!me.registerAppInfo||(me._registerWrapper({name:"react-stripe-js",version:"2.1.0"}),me.registerAppInfo({name:"react-stripe-js",version:"2.1.0",url:"https://stripe.com/docs/stripe-js/react"}))},[ae.stripe]),e.createElement(Cn.Provider,{value:ae},e.createElement(fe.Provider,{value:{cart:M,setCart:Se,cartState:Be,setCartState:Br}},$))};Lr.propTypes={stripe:v.any,options:v.object};var Lt=function(p){var g=e.useContext(Cn);return H(g,p)},yn=function(p){var g=e.useContext(fe);return kr(g,p)},tl=function(){var p=Lt("calls useElements()"),g=p.elements;return g},rl=function(){var p=Lt("calls useStripe()"),g=p.stripe;return g},nl=function(){var p=yn("calls useCartElement()"),g=p.cart;return g},ol=function(){var p=yn("calls useCartElementState()"),g=p.cartState;return g},ca=function(p){var g=p.children,E=Lt("mounts <ElementsConsumer>");return g(E)};ca.propTypes={children:v.func.isRequired};var ee=function(p,g,E){var $=!!E,O=e.useRef(E);e.useEffect(function(){O.current=E},[E]),e.useEffect(function(){if(!$||!p)return function(){};var Z=function(){O.current&&O.current.apply(O,arguments)};return p.on(g,Z),function(){p.off(g,Z)}},[$,g,p,O])},il=function(p){return p.charAt(0).toUpperCase()+p.slice(1)},F=function(p,g){var E="".concat(il(p),"Element"),$=function(M){var Se=M.id,Je=M.className,Qe=M.options,Be=Qe===void 0?{}:Qe,Br=M.onBlur,Hr=M.onFocus,He=M.onReady,ae=M.onChange,Jt=M.onEscape,Fr=M.onClick,En=M.onLoadError,me=M.onLoaderStart,vn=M.onNetworksChange,Bt=M.onCheckout,bn=M.onLineItemClick,Tn=M.onConfirm,xl=M.onCancel,Il=M.onShippingAddressChange,Nl=M.onShippingRateChange,Ol=Lt("mounts <".concat(E,">")),Do=Ol.elements,Ml=e.useState(null),la=a(Ml,2),z=la[0],Al=la[1],Ht=e.useRef(null),wo=e.useRef(null),ua=yn("mounts <".concat(E,">")),ko=ua.setCart,Lo=ua.setCartState;ee(z,"blur",Br),ee(z,"focus",Hr),ee(z,"escape",Jt),ee(z,"click",Fr),ee(z,"loaderror",En),ee(z,"loaderstart",me),ee(z,"networkschange",vn),ee(z,"lineitemclick",bn),ee(z,"confirm",Tn),ee(z,"cancel",xl),ee(z,"shippingaddresschange",Il),ee(z,"shippingratechange",Nl);var Rn;p==="cart"?Rn=function(pa){Lo(pa),He&&He(pa)}:He&&(p==="expressCheckout"?Rn=He:Rn=function(){He(z)}),ee(z,"ready",Rn);var Pl=p==="cart"?function(te){Lo(te),ae&&ae(te)}:ae;ee(z,"change",Pl);var Dl=p==="cart"?function(te){Lo(te),Bt&&Bt(te)}:Bt;ee(z,"checkout",Dl),e.useLayoutEffect(function(){if(Ht.current===null&&Do&&wo.current!==null){var te=Do.create(p,Be);p==="cart"&&ko&&ko(te),Ht.current=te,Al(te),te.mount(wo.current)}},[Do,Be,ko]);var da=pe(Be);return e.useEffect(function(){if(Ht.current){var te=Q(Be,da,["paymentRequest"]);te&&Ht.current.update(te)}},[Be,da]),e.useLayoutEffect(function(){return function(){Ht.current&&(Ht.current.destroy(),Ht.current=null)}},[]),e.createElement("div",{id:Se,className:Je,ref:wo})},O=function(M){Lt("mounts <".concat(E,">")),yn("mounts <".concat(E,">"));var Se=M.id,Je=M.className;return e.createElement("div",{id:Se,className:Je})},Z=g?O:$;return Z.propTypes={id:v.string,className:v.string,onChange:v.func,onBlur:v.func,onFocus:v.func,onReady:v.func,onEscape:v.func,onClick:v.func,onLoadError:v.func,onLoaderStart:v.func,onNetworksChange:v.func,onCheckout:v.func,onLineItemClick:v.func,onConfirm:v.func,onCancel:v.func,onShippingAddressChange:v.func,onShippingRateChange:v.func,options:v.object},Z.displayName=E,Z.__elementType=p,Z},V=typeof window>"u",al=F("auBankAccount",V),sl=F("card",V),cl=F("cardNumber",V),ll=F("cardExpiry",V),ul=F("cardCvc",V),dl=F("fpxBank",V),pl=F("iban",V),fl=F("idealBank",V),ml=F("p24Bank",V),gl=F("epsBank",V),_l=F("payment",V),hl=F("expressCheckout",V),Sl=F("paymentRequestButton",V),Cl=F("linkAuthentication",V),yl=F("address",V),El=F("shippingAddress",V),vl=F("cart",V),bl=F("paymentMethodMessaging",V),Tl=F("affirmMessage",V),Rl=F("afterpayClearpayMessage",V);t.AddressElement=yl,t.AffirmMessageElement=Tl,t.AfterpayClearpayMessageElement=Rl,t.AuBankAccountElement=al,t.CardCvcElement=ul,t.CardElement=sl,t.CardExpiryElement=ll,t.CardNumberElement=cl,t.CartElement=vl,t.Elements=Lr,t.ElementsConsumer=ca,t.EpsBankElement=gl,t.ExpressCheckoutElement=hl,t.FpxBankElement=dl,t.IbanElement=pl,t.IdealBankElement=fl,t.LinkAuthenticationElement=Cl,t.P24BankElement=ml,t.PaymentElement=_l,t.PaymentMethodMessagingElement=bl,t.PaymentRequestButtonElement=Sl,t.ShippingAddressElement=El,t.useCartElement=nl,t.useCartElementState=ol,t.useElements=tl,t.useStripe=rl,Object.defineProperty(t,"__esModule",{value:!0})})});var If={};Bo(If,{DuffelAncillaries:()=>zp,DuffelCardForm:()=>pf,DuffelPayments:()=>uf,StaysAmenities:()=>Ef,StaysRating:()=>sa,StaysRoomRateCard:()=>xf,StaysSummary:()=>Sf,amenityIcon:()=>Xc});module.exports=Fl(If);var ga=Object.prototype.toString;function Vr(t){switch(ga.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return ge(t,Error)}}function Qt(t,e){return ga.call(t)===`[object ${e}]`}function er(t){return Qt(t,"ErrorEvent")}function In(t){return Qt(t,"DOMError")}function Ho(t){return Qt(t,"DOMException")}function se(t){return Qt(t,"String")}function tr(t){return t===null||typeof t!="object"&&typeof t!="function"}function Te(t){return Qt(t,"Object")}function Ft(t){return typeof Event<"u"&&ge(t,Event)}function Fo(t){return typeof Element<"u"&&ge(t,Element)}function Vo(t){return Qt(t,"RegExp")}function Vt(t){return!!(t&&t.then&&typeof t.then=="function")}function Uo(t){return Te(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Ur(t){return typeof t=="number"&&t!==t}function ge(t,e){try{return t instanceof e}catch{return!1}}function Gr(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function Fe(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Nn(t,e){if(!Array.isArray(t))return"";let r=[];for(let n=0;n<t.length;n++){let o=t[n];try{Gr(o)?r.push("[VueViewModel]"):r.push(String(o))}catch{r.push("[value cannot be serialized]")}}return r.join(e)}function _a(t,e,r=!1){return se(t)?Vo(e)?e.test(t):se(e)?r?t===e:t.includes(e):!1:!1}function Et(t,e=[],r=!1){return e.some(n=>_a(t,n,r))}function Yr(t,e,r=250,n,o,i,a){if(!i.exception||!i.exception.values||!a||!ge(a.originalException,Error))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=Vl(Go(t,e,o,a.originalException,n,i.exception.values,s,0),r))}function Go(t,e,r,n,o,i,a,s){if(i.length>=r+1)return i;let c=[...i];if(ge(n[o],Error)){ha(a,s);let l=t(e,n[o]),d=c.length;Sa(l,o,d,s),c=Go(t,e,r,n[o],o,[l,...c],l,d)}return Array.isArray(n.errors)&&n.errors.forEach((l,d)=>{if(ge(l,Error)){ha(a,s);let u=t(e,l),m=c.length;Sa(u,`errors[${d}]`,m,s),c=Go(t,e,r,l,o,[u,...c],u,m)}}),c}function ha(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:e}}function Sa(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function Vl(t,e){return t.map(r=>(r.value&&(r.value=Fe(r.value,e)),r))}function On(t){return t&&t.Math==Math?t:void 0}var w=typeof globalThis=="object"&&On(globalThis)||typeof window=="object"&&On(window)||typeof self=="object"&&On(self)||typeof global=="object"&&On(global)||function(){return this}()||{};function Re(){return w}function $r(t,e,r){let n=r||w,o=n.__SENTRY__=n.__SENTRY__||{};return o[t]||(o[t]=e())}var Mn=Re(),Ul=80;function Ve(t,e={}){if(!t)return"<unknown>";try{let r=t,n=5,o=[],i=0,a=0,s=" > ",c=s.length,l,d=Array.isArray(e)?e:e.keyAttrs,u=!Array.isArray(e)&&e.maxStringLength||Ul;for(;r&&i++<n&&(l=Gl(r,d),!(l==="html"||i>1&&a+o.length*c+l.length>=u));)o.push(l),a+=l.length,r=r.parentNode;return o.reverse().join(s)}catch{return"<unknown>"}}function Gl(t,e){let r=t,n=[],o,i,a,s,c;if(!r||!r.tagName)return"";n.push(r.tagName.toLowerCase());let l=e&&e.length?e.filter(u=>r.getAttribute(u)).map(u=>[u,r.getAttribute(u)]):null;if(l&&l.length)l.forEach(u=>{n.push(`[${u[0]}="${u[1]}"]`)});else if(r.id&&n.push(`#${r.id}`),o=r.className,o&&se(o))for(i=o.split(/\s+/),c=0;c<i.length;c++)n.push(`.${i[c]}`);let d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)a=d[c],s=r.getAttribute(a),s&&n.push(`[${a}="${s}"]`);return n.join("")}function Yo(){try{return Mn.document.location.href}catch{return""}}function $o(t){return Mn.document&&Mn.document.querySelector?Mn.document.querySelector(t):null}var Yl="Sentry Logger ",Wr=["debug","info","warn","error","log","assert","trace"],rr={};function An(t){if(!("console"in w))return t();let e=w.console,r={},n=Object.keys(rr);n.forEach(o=>{let i=rr[o];r[o]=e[o],e[o]=i});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function $l(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Wr.forEach(r=>{e[r]=(...n)=>{t&&An(()=>{w.console[r](`${Yl}[${r}]:`,...n)})}}):Wr.forEach(r=>{e[r]=()=>{}}),e}var f=$l();var Wl=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Zl(t){return t==="http"||t==="https"}function Ue(t,e=!1){let{host:r,path:n,pass:o,port:i,projectId:a,protocol:s,publicKey:c}=t;return`${s}://${c}${e&&o?`:${o}`:""}@${r}${i?`:${i}`:""}/${n&&`${n}/`}${a}`}function Ca(t){let e=Wl.exec(t);if(!e){console.error(`Invalid Sentry Dsn: ${t}`);return}let[r,n,o="",i,a="",s]=e.slice(1),c="",l=s,d=l.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),l=d.pop()),l){let u=l.match(/^\d+/);u&&(l=u[0])}return ya({host:i,pass:o,path:c,projectId:l,port:a,protocol:r,publicKey:n})}function ya(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function jl(t){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return!0;let{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(a=>t[a]?!1:(f.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:r.match(/^\d+$/)?Zl(n)?e&&isNaN(parseInt(e,10))?(f.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(f.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(f.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Pn(t){let e=typeof t=="string"?Ca(t):ya(t);if(!(!e||!jl(e)))return e}var K=class extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}};function U(t,e,r){if(!(e in t))return;let n=t[e],o=r(n);typeof o=="function"&&Dn(o,n),t[e]=o}function et(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Dn(t,e){try{let r=e.prototype||{};t.prototype=e.prototype=r,et(t,"__sentry_original__",e)}catch{}}function Ut(t){return t.__sentry_original__}function Zo(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function wn(t){if(Vr(t))return{message:t.message,name:t.name,stack:t.stack,...va(t)};if(Ft(t)){let e={type:t.type,target:Ea(t.target),currentTarget:Ea(t.currentTarget),...va(t)};return typeof CustomEvent<"u"&&ge(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function Ea(t){try{return Fo(t)?Ve(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function va(t){if(typeof t=="object"&&t!==null){let e={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function jo(t,e=40){let r=Object.keys(wn(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=e)return Fe(r[0],e);for(let n=r.length;n>0;n--){let o=r.slice(0,n).join(", ");if(!(o.length>e))return n===r.length?o:Fe(o,e)}return""}function ce(t){return Wo(t,new Map)}function Wo(t,e){if(Te(t)){let r=e.get(t);if(r!==void 0)return r;let n={};e.set(t,n);for(let o of Object.keys(t))typeof t[o]<"u"&&(n[o]=Wo(t[o],e));return n}if(Array.isArray(t)){let r=e.get(t);if(r!==void 0)return r;let n=[];return e.set(t,n),t.forEach(o=>{n.push(Wo(o,e))}),n}return t}function L(){let t=w,e=t.crypto||t.msCrypto,r=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>e.getRandomValues(new Uint8Array(1))[0])}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function ba(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function xe(t){let{message:e,event_id:r}=t;if(e)return e;let n=ba(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function nr(t,e,r){let n=t.exception=t.exception||{},o=n.values=n.values||[],i=o[0]=o[0]||{};i.value||(i.value=e||""),i.type||(i.type=r||"Error")}function tt(t,e){let r=ba(t);if(!r)return;let n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){let i={...o&&o.data,...e.data};r.mechanism.data=i}}function kn(t){if(t&&t.__sentry_captured__)return!0;try{et(t,"__sentry_captured__",!0)}catch{}return!1}function Zr(t){return Array.isArray(t)?t:[t]}var xa=50,Ta=/\(error: (.*)\)/,Ra=/captureMessage|captureException/;function Ln(...t){let e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0)=>{let o=[],i=r.split(`
3
+ `);for(let a=n;a<i.length;a++){let s=i[a];if(s.length>1024)continue;let c=Ta.test(s)?s.replace(Ta,"$1"):s;if(!c.match(/\S*Error: /)){for(let l of e){let d=l(c);if(d){o.push(d);break}}if(o.length>=xa)break}}return Ia(o)}}function zo(t){return Array.isArray(t)?Ln(...t):t}function Ia(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),Ra.test(e[e.length-1].function||"")&&(e.pop(),Ra.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,xa).map(r=>({...r,filename:r.filename||e[e.length-1].filename,function:r.function||"?"}))}var qo="<anonymous>";function le(t){try{return!t||typeof t!="function"?qo:t.name||qo}catch{return qo}}var Ko=Re();function Bn(){if(!("fetch"in Ko))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function jr(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Xo(){if(!Bn())return!1;if(jr(Ko.fetch))return!0;let t=!1,e=Ko.document;if(e&&typeof e.createElement=="function")try{let r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=jr(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}var Hn=Re();function Na(){let t=Hn.chrome,e=t&&t.app&&t.app.runtime,r="history"in Hn&&!!Hn.history.pushState&&!!Hn.history.replaceState;return!e&&r}var j=Re(),rt="__sentry_xhr_v2__",qr={},Oa={};function ql(t){if(!Oa[t])switch(Oa[t]=!0,t){case"console":zl();break;case"dom":ka();break;case"xhr":wa();break;case"fetch":Kl();break;case"history":Xl();break;case"error":ru();break;case"unhandledrejection":nu();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("unknown instrumentation type:",t);return}}function G(t,e){qr[t]=qr[t]||[],qr[t].push(e),ql(t)}function Ie(t,e){if(!(!t||!qr[t]))for(let r of qr[t]||[])try{r(e)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error(`Error while triggering instrumentation handler.
4
4
  Type: ${t}
5
- Name: ${ae(r)}
6
- Error:`,n)}}function Iu(){"console"in A&&Lr.forEach(function(t){t in A.console&&L(A.console,t,function(e){return Zt[t]=e,function(...r){be("console",{args:r,level:t});let n=Zt[t];n&&n.apply(A.console,r)}})})}function xu(){Uo()&&L(A,"fetch",function(t){return function(...e){let{method:r,url:n}=Ea(e),o={args:e,fetchData:{method:r,url:n},startTimestamp:Date.now()};return be("fetch",{...o}),t.apply(A,e).then(i=>(be("fetch",{...o,endTimestamp:Date.now(),response:i}),i),i=>{throw be("fetch",{...o,endTimestamp:Date.now(),error:i}),i})}})}function Ho(t,e){return!!t&&typeof t=="object"&&!!t[e]}function ha(t){return typeof t=="string"?t:t?Ho(t,"url")?t.url:t.toString?t.toString():"":""}function Ea(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[r,n]=t;return{url:ha(r),method:Ho(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:ha(e),method:Ho(e,"method")?String(e.method).toUpperCase():"GET"}}function va(){if(!V.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;L(t,"open",function(e){return function(...r){let n=Date.now(),o=r[1],i=this[Je]={method:oe(r[0])?r[0].toUpperCase():r[0],url:r[1],request_headers:{}};oe(o)&&i.method==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let a=()=>{let s=this[Je];if(s&&this.readyState===4){try{s.status_code=this.status}catch{}be("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?L(this,"onreadystatechange",function(s){return function(...c){return a(),s.apply(this,c)}}):this.addEventListener("readystatechange",a),L(this,"setRequestHeader",function(s){return function(...c){let[l,f]=c,u=this[Je];return u&&(u.request_headers[l.toLowerCase()]=f),s.apply(this,c)}}),e.apply(this,r)}}),L(t,"send",function(e){return function(...r){let n=this[Je];return n&&r[0]!==void 0&&(n.body=r[0]),be("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),e.apply(this,r)}})}var Pn;function Nu(){if(!ga())return;let t=V.onpopstate;V.onpopstate=function(...r){let n=V.location.href,o=Pn;if(Pn=n,be("history",{from:o,to:n}),t)try{return t.apply(this,r)}catch{}};function e(r){return function(...n){let o=n.length>2?n[2]:void 0;if(o){let i=Pn,a=String(o);Pn=a,be("history",{from:i,to:a})}return r.apply(this,n)}}L(V.history,"pushState",e),L(V.history,"replaceState",e)}var Ou=1e3,Sa,Go,Yo;function Au(t){if(t.type!==Go)return!1;try{if(!t.target||t.target._sentryId!==Yo)return!1}catch{}return!0}function Pu(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function Du(t){try{return t.target}catch{return null}}function ya(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;let n=Du(r);if(Pu(r.type,n))return;Ke(r,"_sentryCaptured",!0),n&&!n._sentryId&&Ke(n,"_sentryId",M());let o=r.type==="keypress"?"input":r.type;Au(r)||(t({event:r,name:o,global:e}),Go=r.type,Yo=n?n._sentryId:void 0),clearTimeout(Sa),Sa=V.setTimeout(()=>{Yo=void 0,Go=void 0},Ou)}}function Ca(){if(!V.document)return;let t=be.bind(null,"dom"),e=ya(t,!0);V.document.addEventListener("click",e,!1),V.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{let n=V[r]&&V[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(L(n,"addEventListener",function(o){return function(i,a,s){if(i==="click"||i=="keypress")try{let c=this,l=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},f=l[i]=l[i]||{refCount:0};if(!f.handler){let u=ya(t);f.handler=u,o.call(this,i,u,s)}f.refCount++}catch{}return o.call(this,i,a,s)}}),L(n,"removeEventListener",function(o){return function(i,a,s){if(i==="click"||i=="keypress")try{let c=this,l=c.__sentry_instrumentation_handlers__||{},f=l[i];f&&(f.refCount--,f.refCount<=0&&(o.call(this,i,f.handler,s),f.handler=void 0,delete l[i]),Object.keys(l).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,a,s)}}))})}var Dn=null;function Mu(){Dn=V.onerror,V.onerror=function(t,e,r,n,o){return be("error",{column:n,error:o,line:r,msg:t,url:e}),Dn&&!Dn.__SENTRY_LOADER__?Dn.apply(this,arguments):!1},V.onerror.__SENTRY_INSTRUMENTED__=!0}var Mn=null;function wu(){Mn=V.onunhandledrejection,V.onunhandledrejection=function(t){return be("unhandledrejection",t),Mn&&!Mn.__SENTRY_LOADER__?Mn.apply(this,arguments):!0},V.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function $o(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Wo(){return"npm"}function ba(){return!$o()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Ta(t,e){return t.require(e)}function Ra(){let t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let i=0;i<e.length;i++)if(e[i]===o)return!0;return e.push(o),!1}function n(o){if(t)e.delete(o);else for(let i=0;i<e.length;i++)if(e[i]===o){e.splice(i,1);break}}return[r,n]}function Te(t,e=100,r=1/0){try{return wn("",t,e,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function kn(t,e=3,r=100*1024){let n=Te(t,e);return Lu(n)>r?kn(t,e-1,r):n}function wn(t,e,r=1/0,n=1/0,o=Ra()){let[i,a]=o;if(e==null||["number","boolean","string"].includes(typeof e)&&!wr(e))return e;let s=ku(t,e);if(!s.startsWith("[object "))return s;if(e.__sentry_skip_normalization__)return e;let c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(c===0)return s.replace("object ","");if(i(e))return"[Circular ~]";let l=e;if(l&&typeof l.toJSON=="function")try{let h=l.toJSON();return wn("",h,c-1,n,o)}catch{}let f=Array.isArray(e)?[]:{},u=0,m=In(e);for(let h in m){if(!Object.prototype.hasOwnProperty.call(m,h))continue;if(u>=n){f[h]="[MaxProperties ~]";break}let S=m[h];f[h]=wn(h,S,c-1,n,o),u++}return a(e),f}function ku(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(kr(e))return"[VueViewModel]";if(Oo(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${ae(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let r=Bu(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function Bu(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function Fu(t){return~-encodeURI(t).split(/%..|./).length}function Lu(t){return Fu(JSON.stringify(t))}var Qe;(function(t){t[t.PENDING=0]="PENDING";let r=1;t[t.RESOLVED=r]="RESOLVED";let n=2;t[t.REJECTED=n]="REJECTED"})(Qe||(Qe={}));function de(t){return new H(e=>{e(t)})}function kt(t){return new H((e,r)=>{r(t)})}var H=class{constructor(e){H.prototype.__init.call(this),H.prototype.__init2.call(this),H.prototype.__init3.call(this),H.prototype.__init4.call(this),this._state=Qe.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new H((n,o)=>{this._handlers.push([!1,i=>{if(!e)n(i);else try{n(e(i))}catch(a){o(a)}},i=>{if(!r)o(i);else try{n(r(i))}catch(a){o(a)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new H((r,n)=>{let o,i;return this.then(a=>{i=!1,o=a,e&&e()},a=>{i=!0,o=a,e&&e()}).then(()=>{if(i){n(o);return}r(o)})})}__init(){this._resolve=e=>{this._setResult(Qe.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Qe.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===Qe.PENDING){if(Mt(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Qe.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===Qe.RESOLVED&&r[1](this._value),this._state===Qe.REJECTED&&r[2](this._value),r[0]=!0)})}}};function Vo(t){let e=[];function r(){return t===void 0||e.length<t}function n(a){return e.splice(e.indexOf(a),1)[0]}function o(a){if(!r())return kt(new z("Not adding Promise because buffer limit was reached."));let s=a();return e.indexOf(s)===-1&&e.push(s),s.then(()=>n(s)).then(null,()=>n(s).then(null,()=>{})),s}function i(a){return new H((s,c)=>{let l=e.length;if(!l)return s(!0);let f=setTimeout(()=>{a&&a>0&&s(!1)},a);e.forEach(u=>{de(u).then(()=>{--l||(clearTimeout(f),s(!0))},c)})})}return{$:e,add:o,drain:i}}function Yr(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}var Ia=["fatal","error","warning","log","info","debug"];function jo(t){return t==="warn"?"warning":Ia.includes(t)?t:"log"}var Na=ve(),zo={nowSeconds:()=>Date.now()/1e3};function Uu(){let{performance:t}=Na;if(!t||!t.now)return;let e=Date.now()-t.now();return{now:()=>t.now(),timeOrigin:e}}function Hu(){try{return Ta(module,"perf_hooks").performance}catch{return}}var qo=ba()?Hu():Uu(),xa=qo===void 0?zo:{nowSeconds:()=>(qo.timeOrigin+qo.now())/1e3},et=zo.nowSeconds.bind(zo),Re=xa.nowSeconds.bind(xa);var $r,se=(()=>{let{performance:t}=Na;if(!t||!t.now){$r="none";return}let e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,i=o<e,a=t.timing&&t.timing.navigationStart,c=typeof a=="number"?Math.abs(a+r-n):e,l=c<e;return i||l?o<=c?($r="timeOrigin",t.timeOrigin):($r="navigationStart",a):($r="dateNow",n)})();var Wr="baggage",Zo="sentry-",Aa=/^sentry-/,Pa=8192;function Ko(t){if(!oe(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((n,o)=>{let i=Oa(o);return{...n,...i}},{});else{if(!t)return;e=Oa(t)}let r=Object.entries(e).reduce((n,[o,i])=>{if(o.match(Aa)){let a=o.slice(Zo.length);n[a]=i}return n},{});if(Object.keys(r).length>0)return r}function Vr(t){if(!t)return;let e=Object.entries(t).reduce((r,[n,o])=>(o&&(r[`${Zo}${n}`]=o),r),{});return Gu(e)}function Oa(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(e[r]=n,e),{})}function Gu(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[r,n],o)=>{let i=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,a=o===0?i:`${e},${i}`;return a.length>Pa?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},"")}var Da=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Xo(t){if(!t)return;let e=t.match(Da);if(!e)return;let r;return e[3]==="1"?r=!0:e[3]==="0"&&(r=!1),{traceId:e[1],parentSampled:r,parentSpanId:e[2]}}function Jo(t,e){let r=Xo(t),n=Ko(e),{traceId:o,parentSpanId:i,parentSampled:a}=r||{},s={traceId:o||M(),spanId:M().substring(16),sampled:a};return i&&(s.parentSpanId=i),n&&(s.dsc=n),{traceparentData:r,dynamicSamplingContext:n,propagationContext:s}}function Xt(t=M(),e=M().substring(16),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${t}-${e}${n}`}function Le(t,e=[]){return[t,e]}function ei(t,e){let[r,n]=t;return[r,[...n,e]]}function Bn(t,e){let r=t[1];for(let n of r){let o=n[0].type;if(e(n,o))return!0}return!1}function Qo(t,e){return(e||new TextEncoder).encode(t)}function ti(t,e){let[r,n]=t,o=JSON.stringify(r);function i(a){typeof o=="string"?o=typeof a=="string"?o+a:[Qo(o,e),a]:o.push(typeof a=="string"?Qo(a,e):a)}for(let a of n){let[s,c]=a;if(i(`
5
+ Name: ${le(r)}
6
+ Error:`,n)}}function zl(){"console"in w&&Wr.forEach(function(t){t in w.console&&U(w.console,t,function(e){return rr[t]=e,function(...r){Ie("console",{args:r,level:t});let n=rr[t];n&&n.apply(w.console,r)}})})}function Kl(){Xo()&&U(w,"fetch",function(t){return function(...e){let{method:r,url:n}=Da(e),o={args:e,fetchData:{method:r,url:n},startTimestamp:Date.now()};return Ie("fetch",{...o}),t.apply(w,e).then(i=>(Ie("fetch",{...o,endTimestamp:Date.now(),response:i}),i),i=>{throw Ie("fetch",{...o,endTimestamp:Date.now(),error:i}),i})}})}function Jo(t,e){return!!t&&typeof t=="object"&&!!t[e]}function Ma(t){return typeof t=="string"?t:t?Jo(t,"url")?t.url:t.toString?t.toString():"":""}function Da(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[r,n]=t;return{url:Ma(r),method:Jo(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:Ma(e),method:Jo(e,"method")?String(e.method).toUpperCase():"GET"}}function wa(){if(!j.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;U(t,"open",function(e){return function(...r){let n=Date.now(),o=r[1],i=this[rt]={method:se(r[0])?r[0].toUpperCase():r[0],url:r[1],request_headers:{}};se(o)&&i.method==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let a=()=>{let s=this[rt];if(s&&this.readyState===4){try{s.status_code=this.status}catch{}Ie("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?U(this,"onreadystatechange",function(s){return function(...c){return a(),s.apply(this,c)}}):this.addEventListener("readystatechange",a),U(this,"setRequestHeader",function(s){return function(...c){let[l,d]=c,u=this[rt];return u&&(u.request_headers[l.toLowerCase()]=d),s.apply(this,c)}}),e.apply(this,r)}}),U(t,"send",function(e){return function(...r){let n=this[rt];return n&&r[0]!==void 0&&(n.body=r[0]),Ie("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),e.apply(this,r)}})}var Fn;function Xl(){if(!Na())return;let t=j.onpopstate;j.onpopstate=function(...r){let n=j.location.href,o=Fn;if(Fn=n,Ie("history",{from:o,to:n}),t)try{return t.apply(this,r)}catch{}};function e(r){return function(...n){let o=n.length>2?n[2]:void 0;if(o){let i=Fn,a=String(o);Fn=a,Ie("history",{from:i,to:a})}return r.apply(this,n)}}U(j.history,"pushState",e),U(j.history,"replaceState",e)}var Jl=1e3,Aa,Qo,ei;function Ql(t){if(t.type!==Qo)return!1;try{if(!t.target||t.target._sentryId!==ei)return!1}catch{}return!0}function eu(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function tu(t){try{return t.target}catch{return null}}function Pa(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;let n=tu(r);if(eu(r.type,n))return;et(r,"_sentryCaptured",!0),n&&!n._sentryId&&et(n,"_sentryId",L());let o=r.type==="keypress"?"input":r.type;Ql(r)||(t({event:r,name:o,global:e}),Qo=r.type,ei=n?n._sentryId:void 0),clearTimeout(Aa),Aa=j.setTimeout(()=>{ei=void 0,Qo=void 0},Jl)}}function ka(){if(!j.document)return;let t=Ie.bind(null,"dom"),e=Pa(t,!0);j.document.addEventListener("click",e,!1),j.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{let n=j[r]&&j[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(U(n,"addEventListener",function(o){return function(i,a,s){if(i==="click"||i=="keypress")try{let c=this,l=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},d=l[i]=l[i]||{refCount:0};if(!d.handler){let u=Pa(t);d.handler=u,o.call(this,i,u,s)}d.refCount++}catch{}return o.call(this,i,a,s)}}),U(n,"removeEventListener",function(o){return function(i,a,s){if(i==="click"||i=="keypress")try{let c=this,l=c.__sentry_instrumentation_handlers__||{},d=l[i];d&&(d.refCount--,d.refCount<=0&&(o.call(this,i,d.handler,s),d.handler=void 0,delete l[i]),Object.keys(l).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,a,s)}}))})}var Vn=null;function ru(){Vn=j.onerror,j.onerror=function(t,e,r,n,o){return Ie("error",{column:n,error:o,line:r,msg:t,url:e}),Vn&&!Vn.__SENTRY_LOADER__?Vn.apply(this,arguments):!1},j.onerror.__SENTRY_INSTRUMENTED__=!0}var Un=null;function nu(){Un=j.onunhandledrejection,j.onunhandledrejection=function(t){return Ie("unhandledrejection",t),Un&&!Un.__SENTRY_LOADER__?Un.apply(this,arguments):!0},j.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function ti(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function ri(){return"npm"}function La(){return!ti()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Ba(t,e){return t.require(e)}function Ha(){let t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let i=0;i<e.length;i++)if(e[i]===o)return!0;return e.push(o),!1}function n(o){if(t)e.delete(o);else for(let i=0;i<e.length;i++)if(e[i]===o){e.splice(i,1);break}}return[r,n]}function Ne(t,e=100,r=1/0){try{return Gn("",t,e,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function Yn(t,e=3,r=100*1024){let n=Ne(t,e);return su(n)>r?Yn(t,e-1,r):n}function Gn(t,e,r=1/0,n=1/0,o=Ha()){let[i,a]=o;if(e==null||["number","boolean","string"].includes(typeof e)&&!Ur(e))return e;let s=ou(t,e);if(!s.startsWith("[object "))return s;if(e.__sentry_skip_normalization__)return e;let c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(c===0)return s.replace("object ","");if(i(e))return"[Circular ~]";let l=e;if(l&&typeof l.toJSON=="function")try{let h=l.toJSON();return Gn("",h,c-1,n,o)}catch{}let d=Array.isArray(e)?[]:{},u=0,m=wn(e);for(let h in m){if(!Object.prototype.hasOwnProperty.call(m,h))continue;if(u>=n){d[h]="[MaxProperties ~]";break}let C=m[h];d[h]=Gn(h,C,c-1,n,o),u++}return a(e),d}function ou(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Gr(e))return"[VueViewModel]";if(Uo(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${le(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let r=iu(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function iu(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function au(t){return~-encodeURI(t).split(/%..|./).length}function su(t){return au(JSON.stringify(t))}var nt;(function(t){t[t.PENDING=0]="PENDING";let r=1;t[t.RESOLVED=r]="RESOLVED";let n=2;t[t.REJECTED=n]="REJECTED"})(nt||(nt={}));function _e(t){return new Y(e=>{e(t)})}function Gt(t){return new Y((e,r)=>{r(t)})}var Y=class{constructor(e){Y.prototype.__init.call(this),Y.prototype.__init2.call(this),Y.prototype.__init3.call(this),Y.prototype.__init4.call(this),this._state=nt.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new Y((n,o)=>{this._handlers.push([!1,i=>{if(!e)n(i);else try{n(e(i))}catch(a){o(a)}},i=>{if(!r)o(i);else try{n(r(i))}catch(a){o(a)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new Y((r,n)=>{let o,i;return this.then(a=>{i=!1,o=a,e&&e()},a=>{i=!0,o=a,e&&e()}).then(()=>{if(i){n(o);return}r(o)})})}__init(){this._resolve=e=>{this._setResult(nt.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(nt.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===nt.PENDING){if(Vt(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===nt.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===nt.RESOLVED&&r[1](this._value),this._state===nt.REJECTED&&r[2](this._value),r[0]=!0)})}}};function ni(t){let e=[];function r(){return t===void 0||e.length<t}function n(a){return e.splice(e.indexOf(a),1)[0]}function o(a){if(!r())return Gt(new K("Not adding Promise because buffer limit was reached."));let s=a();return e.indexOf(s)===-1&&e.push(s),s.then(()=>n(s)).then(null,()=>n(s).then(null,()=>{})),s}function i(a){return new Y((s,c)=>{let l=e.length;if(!l)return s(!0);let d=setTimeout(()=>{a&&a>0&&s(!1)},a);e.forEach(u=>{_e(u).then(()=>{--l||(clearTimeout(d),s(!0))},c)})})}return{$:e,add:o,drain:i}}function zr(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}var Fa=["fatal","error","warning","log","info","debug"];function oi(t){return t==="warn"?"warning":Fa.includes(t)?t:"log"}var Ua=Re(),ai={nowSeconds:()=>Date.now()/1e3};function cu(){let{performance:t}=Ua;if(!t||!t.now)return;let e=Date.now()-t.now();return{now:()=>t.now(),timeOrigin:e}}function lu(){try{return Ba(module,"perf_hooks").performance}catch{return}}var ii=La()?lu():cu(),Va=ii===void 0?ai:{nowSeconds:()=>(ii.timeOrigin+ii.now())/1e3},ot=ai.nowSeconds.bind(ai),Oe=Va.nowSeconds.bind(Va);var Kr,ue=(()=>{let{performance:t}=Ua;if(!t||!t.now){Kr="none";return}let e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,i=o<e,a=t.timing&&t.timing.navigationStart,c=typeof a=="number"?Math.abs(a+r-n):e,l=c<e;return i||l?o<=c?(Kr="timeOrigin",t.timeOrigin):(Kr="navigationStart",a):(Kr="dateNow",n)})();var Xr="baggage",si="sentry-",Ya=/^sentry-/,$a=8192;function ci(t){if(!se(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((n,o)=>{let i=Ga(o);return{...n,...i}},{});else{if(!t)return;e=Ga(t)}let r=Object.entries(e).reduce((n,[o,i])=>{if(o.match(Ya)){let a=o.slice(si.length);n[a]=i}return n},{});if(Object.keys(r).length>0)return r}function Jr(t){if(!t)return;let e=Object.entries(t).reduce((r,[n,o])=>(o&&(r[`${si}${n}`]=o),r),{});return uu(e)}function Ga(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(e[r]=n,e),{})}function uu(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[r,n],o)=>{let i=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,a=o===0?i:`${e},${i}`;return a.length>$a?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},"")}var Wa=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function li(t){if(!t)return;let e=t.match(Wa);if(!e)return;let r;return e[3]==="1"?r=!0:e[3]==="0"&&(r=!1),{traceId:e[1],parentSampled:r,parentSpanId:e[2]}}function ui(t,e){let r=li(t),n=ci(e),{traceId:o,parentSpanId:i,parentSampled:a}=r||{},s={traceId:o||L(),spanId:L().substring(16),sampled:a};return i&&(s.parentSpanId=i),n&&(s.dsc=n),{traceparentData:r,dynamicSamplingContext:n,propagationContext:s}}function or(t=L(),e=L().substring(16),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${t}-${e}${n}`}function Ge(t,e=[]){return[t,e]}function pi(t,e){let[r,n]=t;return[r,[...n,e]]}function $n(t,e){let r=t[1];for(let n of r){let o=n[0].type;if(e(n,o))return!0}return!1}function di(t,e){return(e||new TextEncoder).encode(t)}function fi(t,e){let[r,n]=t,o=JSON.stringify(r);function i(a){typeof o=="string"?o=typeof a=="string"?o+a:[di(o,e),a]:o.push(typeof a=="string"?di(a,e):a)}for(let a of n){let[s,c]=a;if(i(`
7
7
  ${JSON.stringify(s)}
8
- `),typeof c=="string"||c instanceof Uint8Array)i(c);else{let l;try{l=JSON.stringify(c)}catch{l=JSON.stringify(Te(c))}i(l)}}return typeof o=="string"?o:Yu(o)}function Yu(t){let e=t.reduce((o,i)=>o+i.length,0),r=new Uint8Array(e),n=0;for(let o of t)r.set(o,n),n+=o.length;return r}function ri(t,e){let r=typeof t.data=="string"?Qo(t.data,e):t.data;return[ie({type:"attachment",length:r.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),r]}var $u={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",statsd:"unknown"};function Fn(t){return $u[t]}function Ln(t){if(!t||!t.sdk)return;let{name:e,version:r}=t.sdk;return{name:e,version:r}}function ni(t,e,r,n){let o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:Fe(n)},...o&&{trace:ie({...o})}}}function oi(t,e,r){let n=[{type:"client_report"},{timestamp:r||et(),discarded_events:t}];return Le(e?{dsn:e}:{},[n])}function Ma(t,e=Date.now()){let r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;let n=Date.parse(`${t}`);return isNaN(n)?6e4:n-e}function wa(t,e){return t[e]||t.all||0}function ii(t,e,r=Date.now()){return wa(t,e)>r}function ai(t,{statusCode:e,headers:r},n=Date.now()){let o={...t},i=r&&r["x-sentry-rate-limits"],a=r&&r["retry-after"];if(i)for(let s of i.trim().split(",")){let[c,l]=s.split(":",2),f=parseInt(c,10),u=(isNaN(f)?60:f)*1e3;if(!l)o.all=n+u;else for(let m of l.split(";"))o[m]=n+u}else a?o.all=n+Ma(a,n):e===429&&(o.all=n+60*1e3);return o}function ka(t,e){return t(e.stack||"",1)}function si(t,e){let r={type:e.name||e.constructor.name,value:e.message},n=ka(t,e);return n.length&&(r.stacktrace={frames:n}),r}var Jt="production";function jr(){return Fr("globalEventProcessors",()=>[])}function ci(t){jr().push(t)}function Qt(t,e,r,n=0){return new H((o,i)=>{let a=t[n];if(e===null||typeof a!="function")o(e);else{let s=a({...e},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a.id&&s===null&&p.log(`Event processor "${a.id}" dropped event`),Mt(s)?s.then(c=>Qt(t,c,r,n+1).then(o)).then(null,i):Qt(t,s,r,n+1).then(o).then(null,i)}})}function Ba(t){let e=Re(),r={sid:M(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Wu(r)};return t&&tt(r,t),r}function tt(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Re(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:M()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Fa(t,e){let r={};e?r={status:e}:t.status==="ok"&&(r={status:"exited"}),tt(t,r)}function Wu(t){return ie({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}var Vu=100,ge=class{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=La()}static clone(e){let r=new ge;return e&&(r._breadcrumbs=[...e._breadcrumbs],r._tags={...e._tags},r._extra={...e._extra},r._contexts={...e._contexts},r._user=e._user,r._level=e._level,r._span=e._span,r._session=e._session,r._transactionName=e._transactionName,r._fingerprint=e._fingerprint,r._eventProcessors=[...e._eventProcessors],r._requestSession=e._requestSession,r._attachments=[...e._attachments],r._sdkProcessingMetadata={...e._sdkProcessingMetadata},r._propagationContext={...e._propagationContext}),r}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&tt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if(typeof e=="function"){let r=e(this);return r instanceof ge?r:this}return e instanceof ge?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):Ee(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=La(),this}addBreadcrumb(e,r){let n=typeof r=="number"?r:Vu;if(n<=0)return this;let o={timestamp:et(),...e},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,r={},n){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};let a=this._span.transaction;if(a){e.sdkProcessingMetadata={dynamicSamplingContext:a.getDynamicSamplingContext(),...e.sdkProcessingMetadata};let s=a.name;s&&(e.tags={transaction:s,...e.tags})}}this._applyFingerprint(e);let o=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...o];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},Qt([...n||[],...jr(),...this._eventProcessors],e,r)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Ur(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}};function La(){return{traceId:M(),spanId:M().substring(16)}}var Ua=4,ju=100,er=class{constructor(e,r=new ge,n=Ua){this._version=n,this._stack=[{scope:r}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){let r=this.getStackTop();r.client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=ge.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){let r=this.pushScope();try{e(r)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,r){let n=this._lastEventId=r&&r.event_id?r.event_id:M(),o=new Error("Sentry syntheticException");return this._withClient((i,a)=>{i.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},a)}),n}captureMessage(e,r,n){let o=this._lastEventId=n&&n.event_id?n.event_id:M(),i=new Error(e);return this._withClient((a,s)=>{a.captureMessage(e,r,{originalException:e,syntheticException:i,...n,event_id:o},s)}),o}captureEvent(e,r){let n=r&&r.event_id?r.event_id:M();return e.type||(this._lastEventId=n),this._withClient((o,i)=>{o.captureEvent(e,{...r,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,r){let{scope:n,client:o}=this.getStackTop();if(!o)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=ju}=o.getOptions&&o.getOptions()||{};if(a<=0)return;let c={timestamp:et(),...e},l=i?bn(()=>i(c,r)):c;l!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",l,r),n.addBreadcrumb(l,a))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,r){this.getScope().setTag(e,r)}setExtra(e,r){this.getScope().setExtra(e,r)}setContext(e,r){this.getScope().setContext(e,r)}configureScope(e){let{scope:r,client:n}=this.getStackTop();n&&e(r)}run(e){let r=Un(this);try{e(this)}finally{Un(r)}}getIntegration(e){let r=this.getClient();if(!r)return null;try{return r.getIntegration(e)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,r){let n=this._callExtensionMethod("startTransaction",e,r);if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&!n){let o=this.getClient();console.warn(o?`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
8
+ `),typeof c=="string"||c instanceof Uint8Array)i(c);else{let l;try{l=JSON.stringify(c)}catch{l=JSON.stringify(Ne(c))}i(l)}}return typeof o=="string"?o:du(o)}function du(t){let e=t.reduce((o,i)=>o+i.length,0),r=new Uint8Array(e),n=0;for(let o of t)r.set(o,n),n+=o.length;return r}function mi(t,e){let r=typeof t.data=="string"?di(t.data,e):t.data;return[ce({type:"attachment",length:r.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),r]}var pu={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",statsd:"unknown"};function Wn(t){return pu[t]}function Zn(t){if(!t||!t.sdk)return;let{name:e,version:r}=t.sdk;return{name:e,version:r}}function gi(t,e,r,n){let o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:Ue(n)},...o&&{trace:ce({...o})}}}function _i(t,e,r){let n=[{type:"client_report"},{timestamp:r||ot(),discarded_events:t}];return Ge(e?{dsn:e}:{},[n])}function Za(t,e=Date.now()){let r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;let n=Date.parse(`${t}`);return isNaN(n)?6e4:n-e}function ja(t,e){return t[e]||t.all||0}function hi(t,e,r=Date.now()){return ja(t,e)>r}function Si(t,{statusCode:e,headers:r},n=Date.now()){let o={...t},i=r&&r["x-sentry-rate-limits"],a=r&&r["retry-after"];if(i)for(let s of i.trim().split(",")){let[c,l]=s.split(":",2),d=parseInt(c,10),u=(isNaN(d)?60:d)*1e3;if(!l)o.all=n+u;else for(let m of l.split(";"))o[m]=n+u}else a?o.all=n+Za(a,n):e===429&&(o.all=n+60*1e3);return o}function qa(t,e){return t(e.stack||"",1)}function Ci(t,e){let r={type:e.name||e.constructor.name,value:e.message},n=qa(t,e);return n.length&&(r.stacktrace={frames:n}),r}var ir="production";function Qr(){return $r("globalEventProcessors",()=>[])}function yi(t){Qr().push(t)}function ar(t,e,r,n=0){return new Y((o,i)=>{let a=t[n];if(e===null||typeof a!="function")o(e);else{let s=a({...e},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a.id&&s===null&&f.log(`Event processor "${a.id}" dropped event`),Vt(s)?s.then(c=>ar(t,c,r,n+1).then(o)).then(null,i):ar(t,s,r,n+1).then(o).then(null,i)}})}function za(t){let e=Oe(),r={sid:L(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>fu(r)};return t&&it(r,t),r}function it(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Oe(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:L()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Ka(t,e){let r={};e?r={status:e}:t.status==="ok"&&(r={status:"exited"}),it(t,r)}function fu(t){return ce({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}var mu=100,Ce=class{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Xa()}static clone(e){let r=new Ce;return e&&(r._breadcrumbs=[...e._breadcrumbs],r._tags={...e._tags},r._extra={...e._extra},r._contexts={...e._contexts},r._user=e._user,r._level=e._level,r._span=e._span,r._session=e._session,r._transactionName=e._transactionName,r._fingerprint=e._fingerprint,r._eventProcessors=[...e._eventProcessors],r._requestSession=e._requestSession,r._attachments=[...e._attachments],r._sdkProcessingMetadata={...e._sdkProcessingMetadata},r._propagationContext={...e._propagationContext}),r}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&it(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if(typeof e=="function"){let r=e(this);return r instanceof Ce?r:this}return e instanceof Ce?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):Te(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Xa(),this}addBreadcrumb(e,r){let n=typeof r=="number"?r:mu;if(n<=0)return this;let o={timestamp:ot(),...e},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,r={},n){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};let a=this._span.transaction;if(a){e.sdkProcessingMetadata={dynamicSamplingContext:a.getDynamicSamplingContext(),...e.sdkProcessingMetadata};let s=a.name;s&&(e.tags={transaction:s,...e.tags})}}this._applyFingerprint(e);let o=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...o];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},ar([...n||[],...Qr(),...this._eventProcessors],e,r)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Zr(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}};function Xa(){return{traceId:L(),spanId:L().substring(16)}}var Ja=4,gu=100,sr=class{constructor(e,r=new Ce,n=Ja){this._version=n,this._stack=[{scope:r}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){let r=this.getStackTop();r.client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=Ce.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){let r=this.pushScope();try{e(r)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,r){let n=this._lastEventId=r&&r.event_id?r.event_id:L(),o=new Error("Sentry syntheticException");return this._withClient((i,a)=>{i.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},a)}),n}captureMessage(e,r,n){let o=this._lastEventId=n&&n.event_id?n.event_id:L(),i=new Error(e);return this._withClient((a,s)=>{a.captureMessage(e,r,{originalException:e,syntheticException:i,...n,event_id:o},s)}),o}captureEvent(e,r){let n=r&&r.event_id?r.event_id:L();return e.type||(this._lastEventId=n),this._withClient((o,i)=>{o.captureEvent(e,{...r,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,r){let{scope:n,client:o}=this.getStackTop();if(!o)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=gu}=o.getOptions&&o.getOptions()||{};if(a<=0)return;let c={timestamp:ot(),...e},l=i?An(()=>i(c,r)):c;l!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",l,r),n.addBreadcrumb(l,a))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,r){this.getScope().setTag(e,r)}setExtra(e,r){this.getScope().setExtra(e,r)}setContext(e,r){this.getScope().setContext(e,r)}configureScope(e){let{scope:r,client:n}=this.getStackTop();n&&e(r)}run(e){let r=jn(this);try{e(this)}finally{jn(r)}}getIntegration(e){let r=this.getClient();if(!r)return null;try{return r.getIntegration(e)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,r){let n=this._callExtensionMethod("startTransaction",e,r);if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&!n){let o=this.getClient();console.warn(o?`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
9
9
  Sentry.addTracingExtensions();
10
10
  Sentry.init({...});
11
- `:"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let r=this.getStackTop().scope,n=r.getSession();n&&Fa(n),this._sendSessionUpdate(),r.setSession()}startSession(e){let{scope:r,client:n}=this.getStackTop(),{release:o,environment:i=Jt}=n&&n.getOptions()||{},{userAgent:a}=A.navigator||{},s=Ba({release:o,environment:i,user:r.getUser(),...a&&{userAgent:a},...e}),c=r.getSession&&r.getSession();return c&&c.status==="ok"&&tt(c,{status:"exited"}),this.endSession(),r.setSession(s),s}shouldSendDefaultPii(){let e=this.getClient(),r=e&&e.getOptions();return!!(r&&r.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:r}=this.getStackTop(),n=e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}_withClient(e){let{scope:r,client:n}=this.getStackTop();n&&e(n,r)}_callExtensionMethod(e,...r){let o=Bt().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[e]=="function")return o.extensions[e].apply(this,r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function Bt(){return A.__SENTRY__=A.__SENTRY__||{extensions:{},hub:void 0},A}function Un(t){let e=Bt(),r=qr(e);return li(e,t),r}function b(){let t=Bt();if(t.__SENTRY__&&t.__SENTRY__.acs){let e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return qu(t)}function qu(t=Bt()){return(!zu(t)||qr(t).isOlderThan(Ua))&&li(t,new er),qr(t)}function zu(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function qr(t){return Fr("hub",()=>new er,t)}function li(t,e){if(!t)return!1;let r=t.__SENTRY__=t.__SENTRY__||{};return r.hub=e,!0}function Ie(t){return(t||b()).getScope().getTransaction()}var Ha=!1;function Ga(){Ha||(Ha=!0,U("error",ui),U("unhandledrejection",ui))}function ui(){let t=Ie();if(t){let e="internal_error";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}ui.tag="sentry_tracingErrorCallback";var tr=class{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}},rr=class{constructor(e={}){this.traceId=e.traceId||M(),this.spanId=e.spanId||M().substring(16),this.startTimestamp=e.startTimestamp||Re(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){let r=new rr({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(r.spanRecorder=this.spanRecorder,r.spanRecorder&&r.spanRecorder.add(r),r.transaction=this.transaction,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&r.transaction){let n=e&&e.op||"< unknown op >",o=r.transaction.name||"< unknown name >",i=r.transaction.spanId,a=`[Tracing] Starting '${n}' span on transaction '${o}' (${i}).`;r.transaction.metadata.spanMetadata[r.spanId]={logMessage:a},p.log(a)}return r}setTag(e,r){return this.tags={...this.tags,[e]:r},this}setData(e,r){return this.data={...this.data,[e]:r},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);let r=Ya(e);return r!=="unknown_error"&&this.setStatus(r),this}setName(e){this.description=e}isSuccess(){return this.status==="ok"}finish(e){if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){let{logMessage:r}=this.transaction.metadata.spanMetadata[this.spanId];r&&p.log(r.replace("Starting","Finishing"))}this.endTimestamp=typeof e=="number"?e:Re()}toTraceparent(){return Xt(this.traceId,this.spanId,this.sampled)}toContext(){return ie({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return ie({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return ie({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}};function Ya(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function ht(t,e,r){let n=e.getOptions(),{publicKey:o}=e.getDsn()||{},{segment:i}=r&&r.getUser()||{},a=ie({environment:n.environment||Jt,release:n.release,user_segment:i,public_key:o,trace_id:t});return e.emit&&e.emit("createDsc",a),a}var nr=class extends rr{constructor(e,r){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=r||b(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;let n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e,r="custom"){this._name=e,this.metadata.source=r}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new tr(e)),this.spanRecorder.add(this)}setContext(e,r){r===null?delete this._contexts[e]:this._contexts[e]=r}setMeasurement(e,r,n=""){this._measurements[e]={value:r,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){let r=this._finishTransaction(e);if(r)return this._hub.captureEvent(r)}toContext(){let e=super.toContext();return ie({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;let e=this._hub||b(),r=e.getClient();if(!r)return{};let n=e.getScope(),o=ht(this.traceId,r,n),i=this.metadata.sampleRate;i!==void 0&&(o.sample_rate=`${i}`);let a=this.metadata.source;return a&&a!=="url"&&(o.transaction=this.name),this.sampled!==void 0&&(o.sampled=String(this.sampled)),o}setHub(e){this._hub=e}_finishTransaction(e){if(this.endTimestamp!==void 0)return;this.name||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e);let r=this._hub.getClient();if(r&&r.emit&&r.emit("finishTransaction",this),this.sampled!==!0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),r&&r.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(s=>s!==this&&s.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((s,c)=>s.endTimestamp&&c.endTimestamp?s.endTimestamp>c.endTimestamp?s:c:s).endTimestamp);let o=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...o,dynamicSamplingContext:this.getDynamicSamplingContext()},...o.source&&{transaction_info:{source:o.source}}};return Object.keys(this._measurements).length>0&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),i}};var ir={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Zu="finishReason",or=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"],fi=class extends tr{constructor(e,r,n,o){super(o),this._pushActivity=e,this._popActivity=r,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=r=>{e.endTimestamp=typeof r=="number"?r:Re(),this._popActivity(e.spanId)},e.endTimestamp===void 0&&this._pushActivity(e.spanId)),super.add(e)}},zr=class extends nr{constructor(e,r,n=ir.idleTimeout,o=ir.finalTimeout,i=ir.heartbeatInterval,a=!1){super(e,r),this._idleHub=r,this._idleTimeout=n,this._finalTimeout=o,this._heartbeatInterval=i,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=or[4],a&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),r.configureScope(s=>s.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=or[3],this.finish())},this._finalTimeout)}finish(e=Re()){if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setTag(Zu,this._finishReason),this.spanRecorder){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Tracing] finishing IdleTransaction",new Date(e*1e3).toISOString(),this.op);for(let r of this._beforeFinishCallbacks)r(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanId===this.spanId)return!0;r.endTimestamp||(r.endTimestamp=e,r.setStatus("cancelled"),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));let n=r.startTimestamp<e,o=(this._finalTimeout+this._idleTimeout)/1e3,i=r.endTimestamp-this.startTimestamp<o;if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){let a=JSON.stringify(r,void 0,2);n?i||p.log("[Tracing] discarding Span since it finished after Transaction final timeout",a):p.log("[Tracing] discarding Span since it happened after Transaction was finished",a)}return n&&i}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Tracing] flushing IdleTransaction")}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Tracing] No active IdleTransaction");if(this._onScope){let r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){let r=o=>{this._finished||this._pushActivity(o)},n=o=>{this._finished||this._popActivity(o)};this.spanRecorder=new fi(r,n,this.spanId,e),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:r}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=r===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=or[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=or[1],this.finish(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`[Tracing] popActivity ${e}`),delete this.activities[e],(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){let r=Re();this._idleTimeoutCanceledPermanently?(this._finishReason=or[5],this.finish(r)):this._restartIdleTimeout(r+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=or[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}};function ar(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=b().getClient(),r=t||e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}function di(t,e,r){if(!ar(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let n;return typeof e.tracesSampler=="function"?(n=e.tracesSampler(r),t.setMetadata({sampleRate:Number(n)})):r.parentSampled!==void 0?n=r.parentSampled:typeof e.tracesSampleRate<"u"?(n=e.tracesSampleRate,t.setMetadata({sampleRate:Number(n)})):(n=1,t.setMetadata({sampleRate:n})),Ku(n)?n?(t.sampled=Math.random()<n,t.sampled?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),t)):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),t.sampled=!1,t):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function Ku(t){return wr(t)||!(typeof t=="number"||typeof t=="boolean")?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):t<0||t>1?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}function Xu(){let e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function Ju(t,e){let r=this.getClient(),n=r&&r.getOptions()||{},o=n.instrumenter||"sentry",i=t.instrumenter||"sentry";o!==i&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${o}\` instrumenter.
12
- The transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),t.sampled=!1);let a=new nr(t,this);return a=di(a,n,{parentSampled:t.parentSampled,transactionContext:t,...e}),a.sampled&&a.initSpanRecorder(n._experiments&&n._experiments.maxSpans),r&&r.emit&&r.emit("startTransaction",a),a}function Hn(t,e,r,n,o,i,a){let s=t.getClient(),c=s&&s.getOptions()||{},l=new zr(e,t,r,n,a,o);return l=di(l,c,{parentSampled:e.parentSampled,transactionContext:e,...i}),l.sampled&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),s&&s.emit&&s.emit("startTransaction",l),l}function Gn(){let t=Bt();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=Ju),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=Xu),Ga())}function sr(t,e){return b().captureException(t,{captureContext:e})}function Zr(t){b().addBreadcrumb(t)}function Yn(t,e){b().setContext(t,e)}function $n(t){b().withScope(t)}var Qu="7";function ef(t){let e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function tf(t){return`${ef(t)}${t.projectId}/envelope/`}function rf(t,e){return wo({sentry_key:t.publicKey,sentry_version:Qu,...e&&{sentry_client:`${e.name}/${e.version}`}})}function $a(t,e={}){let r=typeof e=="string"?e:e.tunnel,n=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return r||`${tf(t)}?${rf(t,n)}`}function nf(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function Wa(t,e,r,n){let o=Ln(r),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:Fe(e)}},a="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Le(i,[a])}function Va(t,e,r,n){let o=Ln(r),i=t.type&&t.type!=="replay_event"?t.type:"event";nf(t,r&&r.sdk);let a=ni(t,o,n,e);return delete t.sdkProcessingMetadata,Le(a,[[{type:i},t]])}var ja=[];function of(t){let e={};return t.forEach(r=>{let{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.keys(e).map(r=>e[r])}function pi(t){let e=t.defaultIntegrations||[],r=t.integrations;e.forEach(a=>{a.isDefaultInstance=!0});let n;Array.isArray(r)?n=[...e,...r]:typeof r=="function"?n=Ur(r(e)):n=e;let o=of(n),i=af(o,a=>a.name==="Debug");if(i!==-1){let[a]=o.splice(i,1);o.push(a)}return o}function qa(t,e){let r={};return e.forEach(n=>{n&&mi(t,n,r)}),r}function mi(t,e,r){if(r[e.name]=e,ja.indexOf(e.name)===-1&&(e.setupOnce(ci,b),ja.push(e.name)),t.on&&typeof e.preprocessEvent=="function"){let n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,i)=>n(o,i,t))}if(t.addEventProcessor&&typeof e.processEvent=="function"){let n=e.processEvent.bind(e),o=Object.assign((i,a)=>n(i,a,t),{id:e.name});t.addEventProcessor(o)}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`Integration installed: ${e.name}`)}function af(t,e){for(let r=0;r<t.length;r++)if(e(t[r])===!0)return r;return-1}function Za(t,e,r,n,o){let{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,s={...e,event_id:e.event_id||r.event_id||M(),timestamp:e.timestamp||et()},c=r.integrations||t.integrations.map(m=>m.name);sf(s,t),uf(s,c),e.type===void 0&&cf(s,t.stackParser);let l=n;r.captureContext&&(l=ge.clone(l).update(r.captureContext));let f=de(s),u=o&&o.getEventProcessors?o.getEventProcessors():[];if(l){if(l.getAttachments){let m=[...r.attachments||[],...l.getAttachments()];m.length&&(r.attachments=m)}f=l.applyToEvent(s,r,u)}else f=Qt([...u,...jr()],s,r);return f.then(m=>(m&&lf(m),typeof i=="number"&&i>0?ff(m,i,a):m))}function sf(t,e){let{environment:r,release:n,dist:o,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?r:Jt),t.release===void 0&&n!==void 0&&(t.release=n),t.dist===void 0&&o!==void 0&&(t.dist=o),t.message&&(t.message=ke(t.message,i));let a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=ke(a.value,i));let s=t.request;s&&s.url&&(s.url=ke(s.url,i))}var za=new WeakMap;function cf(t,e){let r=A._sentryDebugIds;if(!r)return;let n,o=za.get(e);o?n=o:(n=new Map,za.set(e,n));let i=Object.keys(r).reduce((a,s)=>{let c,l=n.get(s);l?c=l:(c=e(s),n.set(s,c));for(let f=c.length-1;f>=0;f--){let u=c[f];if(u.filename){a[u.filename]=r[s];break}}return a},{});try{t.exception.values.forEach(a=>{a.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=i[s.filename])})})}catch{}}function lf(t){let e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let r=t.debug_meta.images;Object.keys(e).forEach(n=>{r.push({type:"sourcemap",code_file:n,debug_id:e[n]})})}function uf(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function ff(t,e,r){if(!t)return null;let n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:Te(o.data,e,r)}}))},...t.user&&{user:Te(t.user,e,r)},...t.contexts&&{contexts:Te(t.contexts,e,r)},...t.extra&&{extra:Te(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=Te(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>(o.data&&(o.data=Te(o.data,e,r)),o))),n}var Ka="Not capturing exception because it's already been captured.",Kr=class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Tn(e.dsn):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn("No DSN provided, client will not send events."),this._dsn){let r=$a(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}}captureException(e,r,n){if(xn(e)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(Ka);return}let o=r&&r.event_id;return this._process(this.eventFromException(e,r).then(i=>this._captureEvent(i,r,n)).then(i=>{o=i})),o}captureMessage(e,r,n,o){let i=n&&n.event_id,a=zt(e)?this.eventFromMessage(String(e),r,n):this.eventFromException(e,n);return this._process(a.then(s=>this._captureEvent(s,n,o)).then(s=>{i=s})),i}captureEvent(e,r,n){if(r&&r.originalException&&xn(r.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(Ka);return}let o=r&&r.event_id;return this._process(this._captureEvent(e,r,n).then(i=>{o=i})),o}captureSession(e){typeof e.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),tt(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let r=this._transport;return r?this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o)):de(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=qa(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){mi(this,e,this._integrations)}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=Va(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of r.attachments||[])n=ei(n,ri(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));let o=this._sendEnvelope(n);o&&o.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){let r=Wa(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){let o=`${e}:${r}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`Adding outcome: "${o}"`),this._outcomes[o]=this._outcomes[o]+1||1}}on(e,r){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(r)}emit(e,...r){this._hooks[e]&&this._hooks[e].forEach(n=>n(...r))}_updateSessionFromEvent(e,r){let n=!1,o=!1,i=r.exception&&r.exception.values;if(i){o=!0;for(let c of i){let l=c.mechanism;if(l&&l.handled===!1){n=!0;break}}}let a=e.status==="ok";(a&&e.errors===0||a&&n)&&(tt(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new H(r=>{let n=0,o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),r(!0)):(n+=o,e&&n>=e&&(clearInterval(i),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n){let o=this.getOptions(),i=Object.keys(this._integrations);return!r.integrations&&i.length>0&&(r.integrations=i),this.emit("preprocessEvent",e,r),Za(o,e,r,n,this).then(a=>{if(a===null)return a;let{propagationContext:s}=a.sdkProcessingMetadata||{};if(!(a.contexts&&a.contexts.trace)&&s){let{traceId:l,spanId:f,parentSpanId:u,dsc:m}=s;a.contexts={trace:{trace_id:l,span_id:f,parent_span_id:u},...a.contexts};let h=m||ht(l,this,n);a.sdkProcessingMetadata={dynamicSamplingContext:h,...a.sdkProcessingMetadata}}return a})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(o=>o.event_id,o=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){let i=o;i.logLevel==="log"?p.log(i.message):p.warn(i)}})}_processEvent(e,r,n){let o=this.getOptions(),{sampleRate:i}=o,a=Ja(e),s=Xa(e),c=e.type||"error",l=`before send for type \`${c}\``;if(s&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),kt(new z(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let f=c==="replay_event"?"replay":c;return this._prepareEvent(e,r,n).then(u=>{if(u===null)throw this.recordDroppedEvent("event_processor",f,e),new z("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return u;let h=pf(o,u,r);return df(h,l)}).then(u=>{if(u===null)throw this.recordDroppedEvent("before_send",f,e),new z(`${l} returned \`null\`, will not send event.`,"log");let m=n&&n.getSession();!a&&m&&this._updateSessionFromEvent(m,u);let h=u.transaction_info;if(a&&h&&u.transaction!==e.transaction){let S="custom";u.transaction_info={...h,source:S}}return this.sendEvent(u,r),u}).then(null,u=>{throw u instanceof z?u:(this.captureException(u,{data:{__sentry__:!0},originalException:u}),new z(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
13
- Reason: ${u}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,r=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.error("Error while sending event:",r)});(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(r=>{let[n,o]=r.split(":");return{reason:n,category:o,quantity:e[r]}})}};function df(t,e){let r=`${e} must return \`null\` or a valid event.`;if(Mt(t))return t.then(n=>{if(!Ee(n)&&n!==null)throw new z(r);return n},n=>{throw new z(`${e} rejected with ${n}`)});if(!Ee(t)&&t!==null)throw new z(r);return t}function pf(t,e,r){let{beforeSend:n,beforeSendTransaction:o}=t;return Xa(e)&&n?n(e,r):Ja(e)&&o?o(e,r):e}function Xa(t){return t.type===void 0}function Ja(t){return t.type==="transaction"}function gi(t,e){e.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?p.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));let r=b();r.getScope().update(e.initialScope);let o=new t(e);r.bindClient(o)}var mf=30;function cr(t,e,r=Vo(t.bufferSize||mf)){let n={},o=a=>r.drain(a);function i(a){let s=[];if(Bn(a,(u,m)=>{let h=Fn(m);if(ii(n,h)){let S=Qa(u,m);t.recordDroppedEvent("ratelimit_backoff",h,S)}else s.push(u)}),s.length===0)return de();let c=Le(a[0],s),l=u=>{Bn(c,(m,h)=>{let S=Qa(m,h);t.recordDroppedEvent(u,Fn(h),S)})},f=()=>e({body:ti(c,t.textEncoder)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),n=ai(n,u),u),u=>{throw l("network_error"),u});return r.add(f).then(u=>u,u=>{if(u instanceof z)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.error("Skipped sending event because buffer is full."),l("queue_overflow"),de();throw u})}return i.__sentry__baseTransport__=!0,{send:i,flush:o}}function Qa(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}var Xr="7.77.0";var Lt={};Ro(Lt,{FunctionToString:()=>St,InboundFilters:()=>yt,LinkedErrors:()=>Ft});var es,St=class{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=St.id}setupOnce(){es=Function.prototype.toString;try{Function.prototype.toString=function(...e){let r=wt(this)||this;return es.apply(r,e)}}catch{}}};St.__initStatic();var gf=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],_f=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],yt=class{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=yt.id,this._options=e}setupOnce(e,r){}processEvent(e,r,n){let o=n.getOptions(),i=hf(this._options,o);return Sf(e,i)?null:e}};yt.__initStatic();function hf(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:gf],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:_f],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function Sf(t,e){return e.ignoreInternal&&Tf(t)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`Event dropped due to being internal Sentry Error.
14
- Event: ${Ce(t)}`),!0):yf(t,e.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
15
- Event: ${Ce(t)}`),!0):Ef(t,e.ignoreTransactions)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
16
- Event: ${Ce(t)}`),!0):vf(t,e.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`Event dropped due to being matched by \`denyUrls\` option.
17
- Event: ${Ce(t)}.
18
- Url: ${Wn(t)}`),!0):Cf(t,e.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option.
19
- Event: ${Ce(t)}.
20
- Url: ${Wn(t)}`),!0)}function yf(t,e){return t.type||!e||!e.length?!1:bf(t).some(r=>_t(r,e))}function Ef(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;let r=t.transaction;return r?_t(r,e):!1}function vf(t,e){if(!e||!e.length)return!1;let r=Wn(t);return r?_t(r,e):!1}function Cf(t,e){if(!e||!e.length)return!0;let r=Wn(t);return r?_t(r,e):!0}function bf(t){let e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.length===0&&p.error(`Could not extract message for event ${Ce(t)}`),e}function Tf(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function Rf(t=[]){for(let e=t.length-1;e>=0;e--){let r=t[e];if(r&&r.filename!=="<anonymous>"&&r.filename!=="[native code]")return r.filename||null}return null}function Wn(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?Rf(e):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.error(`Cannot extract url for event ${Ce(t)}`),null}}var If="cause",xf=5,Ft=class{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this._key=e.key||If,this._limit=e.limit||xf,this.name=Ft.id}setupOnce(){}preprocessEvent(e,r,n){let o=n.getOptions();Br(si,o.stackParser,o.maxValueLength,this._key,this._limit,e,r)}};Ft.__initStatic();var T=A,_i=0;function hi(){return _i>0}function Gf(){_i++,setTimeout(()=>{_i--})}function Et(t,e={},r){if(typeof t!="function")return t;try{let o=t.__sentry_wrapped__;if(o)return o;if(wt(t))return t}catch{return t}let n=function(){let o=Array.prototype.slice.call(arguments);try{r&&typeof r=="function"&&r.apply(this,arguments);let i=o.map(a=>Et(a,e));return t.apply(this,i)}catch(i){throw Gf(),$n(a=>{a.addEventProcessor(s=>(e.mechanism&&(Kt(s,void 0,void 0),Xe(s,e.mechanism)),s.extra={...s.extra,arguments:o},s)),sr(i)}),i}};try{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}catch{}Rn(n,t),Ke(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}function Ei(t,e){let r=vi(t,e),n={type:e&&e.name,value:Vf(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function Yf(t,e,r,n){let i=b().getClient(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:Dt(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:jf(e,{isUnhandledRejection:n})}]},extra:{__serialized__:kn(e,a)}};if(r){let c=vi(t,r);c.length&&(s.exception.values[0].stacktrace={frames:c})}return s}function Si(t,e){return{exception:{values:[Ei(t,e)]}}}function vi(t,e){let r=e.stacktrace||e.stack||"",n=Wf(e);try{return t(r,n)}catch{}return[]}var $f=/Minified React error #\d+;/i;function Wf(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if($f.test(t.message))return 1}return 0}function Vf(t){let e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function ts(t,e,r,n){let o=r&&r.syntheticException||void 0,i=Vn(t,e,o,n);return Xe(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),de(i)}function rs(t,e,r="info",n,o){let i=n&&n.syntheticException||void 0,a=yi(t,e,i,o);return a.level=r,n&&n.event_id&&(a.event_id=n.event_id),de(a)}function Vn(t,e,r,n,o){let i;if(qt(e)&&e.error)return Si(t,e.error);if(yn(e)||Io(e)){let a=e;if("stack"in e)i=Si(t,e);else{let s=a.name||(yn(a)?"DOMError":"DOMException"),c=a.message?`${s}: ${a.message}`:s;i=yi(t,c,r,n),Kt(i,c)}return"code"in a&&(i.tags={...i.tags,"DOMException.code":`${a.code}`}),i}return Mr(e)?Si(t,e):Ee(e)||Dt(e)?(i=Yf(t,e,r,o),Xe(i,{synthetic:!0}),i):(i=yi(t,e,r,n),Kt(i,`${e}`,void 0),Xe(i,{synthetic:!0}),i)}function yi(t,e,r,n){let o={message:e};if(n&&r){let i=vi(t,r);i.length&&(o.exception={values:[{value:e,stacktrace:{frames:i}}]})}return o}function jf(t,{isUnhandledRejection:e}){let r=ko(t),n=e?"promise rejection":"exception";return qt(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:Dt(t)?`Event \`${qf(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function qf(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function ns(t,{metadata:e,tunnel:r,dsn:n}){let o={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!r&&!!n&&{dsn:Fe(n)}},i=zf(t);return Le(o,[i])}function zf(t){return[{type:"user_report"},t]}var jn=class extends Kr{constructor(e){let r=T.SENTRY_SDK_SOURCE||Wo();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${r}:@sentry/browser`,version:Xr}],version:Xr},super(e),e.sendClientReports&&T.document&&T.document.addEventListener("visibilitychange",()=>{T.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return ts(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return rs(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn("SDK not enabled, will not capture user feedback.");return}let r=ns(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(r)}_prepareEvent(e,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n)}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("Sending outcomes:",e);let r=oi(e,this._options.tunnel&&Fe(this._dsn));this._sendEnvelope(r)}};var Jr;function os(){if(Jr)return Jr;if(Hr(T.fetch))return Jr=T.fetch.bind(T);let t=T.document,e=T.fetch;if(t&&typeof t.createElement=="function")try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r);let n=r.contentWindow;n&&n.fetch&&(e=n.fetch),t.head.removeChild(r)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return Jr=e.bind(T)}function is(){Jr=void 0}function as(t,e=os()){let r=0,n=0;function o(i){let a=i.body.length;r+=a,n++;let s={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};try{return e(t.url,s).then(c=>(r-=a,n--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return is(),r-=a,n--,kt(c)}}return cr(t,o)}var Zf=4;function ss(t){function e(r){return new H((n,o)=>{let i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===Zf&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(let a in t.headers)Object.prototype.hasOwnProperty.call(t.headers,a)&&i.setRequestHeader(a,t.headers[a]);i.send(r.body)})}return cr(t,e)}var qn="?";var Kf=30,Xf=40,Jf=50;function Ci(t,e,r,n){let o={filename:t,function:e,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}var Qf=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ed=/\((\S*)(?::(\d+))(?::(\d+))\)/,td=t=>{let e=Qf.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){let i=ed.exec(e[2]);i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3])}let[n,o]=ls(e[1]||qn,e[2]);return Ci(o,n,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},rd=[Kf,td],nd=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,od=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,id=t=>{let e=nd.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let i=od.exec(e[3]);i&&(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]="")}let n=e[3],o=e[1]||qn;return[o,n]=ls(o,n),Ci(n,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},ad=[Jf,id],sd=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,cd=t=>{let e=sd.exec(t);return e?Ci(e[2],e[1]||qn,+e[3],e[4]?+e[4]:void 0):void 0},ld=[Xf,cd];var ud=[rd,ad,ld],cs=Nn(...ud),ls=(t,e)=>{let r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:qn,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};var xe=class{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=xe.id,this._options={onerror:!0,onunhandledrejection:!0,...e},this._installFunc={onerror:fd,onunhandledrejection:dd}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let r in e){let n=this._installFunc[r];n&&e[r]&&(gd(r),n(),this._installFunc[r]=void 0)}}};xe.__initStatic();function fd(){U("error",t=>{let[e,r,n]=ds();if(!e.getIntegration(xe))return;let{msg:o,url:i,line:a,column:s,error:c}=t;if(hi()||c&&c.__sentry_own_request__)return;let l=c===void 0&&oe(o)?md(o,i,a,s):us(Vn(r,c||o,void 0,n,!1),i,a,s);l.level="error",fs(e,c,l,"onerror")})}function dd(){U("unhandledrejection",t=>{let[e,r,n]=ds();if(!e.getIntegration(xe))return;let o=t;try{"reason"in t?o=t.reason:"detail"in t&&"reason"in t.detail&&(o=t.detail.reason)}catch{}if(hi()||o&&o.__sentry_own_request__)return!0;let i=zt(o)?pd(o):Vn(r,o,void 0,n,!0);i.level="error",fs(e,o,i,"onunhandledrejection")})}function pd(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function md(t,e,r,n){let o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,i=qt(t)?t.message:t,a="Error",s=i.match(o);return s&&(a=s[1],i=s[2]),us({exception:{values:[{type:a,value:i}]}},e,r,n)}function us(t,e,r,n){let o=t.exception=t.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},s=a.stacktrace=a.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(n,10))?void 0:n,f=isNaN(parseInt(r,10))?void 0:r,u=oe(e)&&e.length>0?e:Po();return c.length===0&&c.push({colno:l,filename:u,function:"?",in_app:!0,lineno:f}),t}function gd(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`Global Handler attached: ${t}`)}function fs(t,e,r,n){Xe(r,{handled:!1,type:n}),t.captureEvent(r,{originalException:e})}function ds(){let t=b(),e=t.getClient(),r=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,r.stackParser,r.attachStacktrace]}var _d=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],rt=class{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=rt.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&L(T,"setTimeout",ps),this._options.setInterval&&L(T,"setInterval",ps),this._options.requestAnimationFrame&&L(T,"requestAnimationFrame",hd),this._options.XMLHttpRequest&&"XMLHttpRequest"in T&&L(XMLHttpRequest.prototype,"send",Sd);let e=this._options.eventTarget;e&&(Array.isArray(e)?e:_d).forEach(yd)}};rt.__initStatic();function ps(t){return function(...e){let r=e[0];return e[0]=Et(r,{mechanism:{data:{function:ae(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function hd(t){return function(e){return t.apply(this,[Et(e,{mechanism:{data:{function:"requestAnimationFrame",handler:ae(t)},handled:!1,type:"instrument"}})])}}function Sd(t){return function(...e){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&L(r,o,function(i){let a={mechanism:{data:{function:o,handler:ae(i)},handled:!1,type:"instrument"}},s=wt(i);return s&&(a.mechanism.data.handler=ae(s)),Et(i,a)})}),t.apply(this,e)}}function yd(t){let e=T,r=e[t]&&e[t].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(L(r,"addEventListener",function(n){return function(o,i,a){try{typeof i.handleEvent=="function"&&(i.handleEvent=Et(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ae(i),target:t},handled:!1,type:"instrument"}}))}catch{}return n.apply(this,[o,Et(i,{mechanism:{data:{function:"addEventListener",handler:ae(i),target:t},handled:!1,type:"instrument"}}),a])}}),L(r,"removeEventListener",function(n){return function(o,i,a){let s=i;try{let c=s&&s.__sentry_wrapped__;c&&n.call(this,o,c,a)}catch{}return n.call(this,o,s,a)}}))}var zn=1024,nt=class{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=nt.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){if(this.options.console&&U("console",Cd),this.options.dom&&U("dom",vd(this.options.dom)),this.options.xhr&&U("xhr",bd),this.options.fetch&&U("fetch",Td),this.options.history&&U("history",Rd),this.options.sentry){let e=b().getClient();e&&e.on&&e.on("beforeSendEvent",Ed)}}};nt.__initStatic();function Ed(t){b().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:Ce(t)},{event:t})}function vd(t){function e(r){let n,o=typeof t=="object"?t.serializeAttribute:void 0,i=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;i&&i>zn&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`\`dom.maxStringLength\` cannot exceed ${zn}, but a value of ${i} was configured. Sentry will use ${zn} instead.`),i=zn),typeof o=="string"&&(o=[o]);try{let a=r.event;n=Id(a)?Be(a.target,{keyAttrs:o,maxStringLength:i}):Be(a,{keyAttrs:o,maxStringLength:i})}catch{n="<unknown>"}n.length!==0&&b().addBreadcrumb({category:`ui.${r.name}`,message:n},{event:r.event,name:r.name,global:r.global})}return e}function Cd(t){let e={category:"console",data:{arguments:t.args,logger:"console"},level:jo(t.level),message:En(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)e.message=`Assertion failed: ${En(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1);else return;b().addBreadcrumb(e,{input:t.args,level:t.level})}function bd(t){let{startTimestamp:e,endTimestamp:r}=t,n=t.xhr[Je];if(!e||!r||!n)return;let{method:o,url:i,status_code:a,body:s}=n,c={method:o,url:i,status_code:a},l={xhr:t.xhr,input:s,startTimestamp:e,endTimestamp:r};b().addBreadcrumb({category:"xhr",data:c,type:"http"},l)}function Td(t){let{startTimestamp:e,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.error){let n=t.fetchData,o={data:t.error,input:t.args,startTimestamp:e,endTimestamp:r};b().addBreadcrumb({category:"fetch",data:n,level:"error",type:"http"},o)}else{let n={...t.fetchData,status_code:t.response&&t.response.status},o={input:t.args,response:t.response,startTimestamp:e,endTimestamp:r};b().addBreadcrumb({category:"fetch",data:n,type:"http"},o)}}function Rd(t){let e=t.from,r=t.to,n=Yr(T.location.href),o=Yr(e),i=Yr(r);o.path||(o=n),n.protocol===i.protocol&&n.host===i.host&&(r=i.relative),n.protocol===o.protocol&&n.host===o.host&&(e=o.relative),b().addBreadcrumb({category:"navigation",data:{from:e,to:r}})}function Id(t){return!!t&&!!t.target}var xd="cause",Nd=5,ot=class{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=ot.id,this._key=e.key||xd,this._limit=e.limit||Nd}setupOnce(){}preprocessEvent(e,r,n){let o=n.getOptions();Br(Ei,o.stackParser,o.maxValueLength,this._key,this._limit,e,r)}};ot.__initStatic();var it=class{static __initStatic(){this.id="HttpContext"}constructor(){this.name=it.id}setupOnce(){}preprocessEvent(e){if(!T.navigator&&!T.location&&!T.document)return;let r=e.request&&e.request.url||T.location&&T.location.href,{referrer:n}=T.document||{},{userAgent:o}=T.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...o&&{"User-Agent":o}},a={...e.request,...r&&{url:r},headers:i};e.request=a}};it.__initStatic();var at=class{static __initStatic(){this.id="Dedupe"}constructor(){this.name=at.id}setupOnce(e,r){}processEvent(e){if(e.type)return e;try{if(Od(e,this._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return this._previousEvent=e}};at.__initStatic();function Od(t,e){return e?!!(Ad(t,e)||Pd(t,e)):!1}function Ad(t,e){let r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!hs(t,e)||!_s(t,e))}function Pd(t,e){let r=ms(e),n=ms(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!hs(t,e)||!_s(t,e))}function _s(t,e){let r=gs(t),n=gs(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o<n.length;o++){let i=n[o],a=r[o];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0}function hs(t,e){let r=t.fingerprint,n=e.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;r=r,n=n;try{return r.join("")===n.join("")}catch{return!1}}function ms(t){return t.exception&&t.exception.values&&t.exception.values[0]}function gs(t){let e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch{return}}var ys=[new Lt.InboundFilters,new Lt.FunctionToString,new rt,new nt,new xe,new ot,new at,new it];function bi(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=ys),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),T.SENTRY_RELEASE&&T.SENTRY_RELEASE.id&&(t.release=T.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);let e={...t,stackParser:Fo(t.stackParser||cs),integrations:pi(t),transport:t.transport||(On()?as:ss)};gi(jn,e),t.autoSessionTracking&&Dd()}function Ss(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function Dd(){if(typeof T.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}let t=b();t.captureSession&&(Ss(t),U("history",({from:e,to:r})=>{e===void 0||e===r||Ss(b())}))}var Ti={};Ro(Ti,{Breadcrumbs:()=>nt,Dedupe:()=>at,GlobalHandlers:()=>xe,HttpContext:()=>it,LinkedErrors:()=>ot,TryCatch:()=>rt});var R=A;function Es(){R&&R.document?R.document.addEventListener("visibilitychange",()=>{let t=Ie();if(R.document.hidden&&t){let e="cancelled";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var lr=(t,e,r)=>{let n,o;return i=>{e.value>=0&&(i||r)&&(o=e.value-(n||0),(o||n===void 0)&&(n=e.value,e.delta=o,t(e)))}};var vs=()=>`v3-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`;var Md=()=>{let t=R.performance.timing,e=R.performance.navigation.type,r={entryType:"navigation",startTime:0,type:e==2?"back_forward":e===1?"reload":"navigate"};for(let n in t)n!=="navigationStart"&&n!=="toJSON"&&(r[n]=Math.max(t[n]-t.navigationStart,0));return r},Zn=()=>R.__WEB_VITALS_POLYFILL__?R.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||Md()):R.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];var Kn=()=>{let t=Zn();return t&&t.activationStart||0};var ur=(t,e)=>{let r=Zn(),n="navigate";return r&&(R.document.prerendering||Kn()>0?n="prerender":n=r.type.replace(/_/g,"-")),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:vs(),navigationType:n}};var vt=(t,e,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){let n=new PerformanceObserver(o=>{e(o.getEntries())});return n.observe(Object.assign({type:t,buffered:!0},r||{})),n}}catch{}};var Ct=(t,e)=>{let r=n=>{(n.type==="pagehide"||R.document.visibilityState==="hidden")&&(t(n),e&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)};var Cs=t=>{let e=ur("CLS",0),r,n=0,o=[],i=s=>{s.forEach(c=>{if(!c.hadRecentInput){let l=o[0],f=o[o.length-1];n&&o.length!==0&&c.startTime-f.startTime<1e3&&c.startTime-l.startTime<5e3?(n+=c.value,o.push(c)):(n=c.value,o=[c]),n>e.value&&(e.value=n,e.entries=o,r&&r())}})},a=vt("layout-shift",i);if(a){r=lr(t,e);let s=()=>{i(a.takeRecords()),r(!0)};return Ct(s),s}};var Xn=-1,wd=()=>R.document.visibilityState==="hidden"&&!R.document.prerendering?0:1/0,kd=()=>{Ct(({timeStamp:t})=>{Xn=t},!0)},fr=()=>(Xn<0&&(Xn=wd(),kd()),{get firstHiddenTime(){return Xn}});var bs=t=>{let e=fr(),r=ur("FID"),n,o=s=>{s.startTime<e.firstHiddenTime&&(r.value=s.processingStart-s.startTime,r.entries.push(s),n(!0))},i=s=>{s.forEach(o)},a=vt("first-input",i);n=lr(t,r),a&&Ct(()=>{i(a.takeRecords()),a.disconnect()},!0)};var Ts={},Rs=t=>{let e=fr(),r=ur("LCP"),n,o=a=>{let s=a[a.length-1];if(s){let c=Math.max(s.startTime-Kn(),0);c<e.firstHiddenTime&&(r.value=c,r.entries=[s],n())}},i=vt("largest-contentful-paint",o);if(i){n=lr(t,r);let a=()=>{Ts[r.id]||(o(i.takeRecords()),i.disconnect(),Ts[r.id]=!0,n(!0))};return["keydown","click"].forEach(s=>{addEventListener(s,a,{once:!0,capture:!0})}),Ct(a,!0),a}};var Qr={},Jn={},Is,xs,Ns;function Os(t){return Ri("cls",t,Bd,Is)}function As(t){return Ri("lcp",t,Ld,Ns)}function Ps(t){return Ri("fid",t,Fd,xs)}function en(t,e){return Ds(t,e),Jn[t]||(Ud(t),Jn[t]=!0),Ms(t,e)}function Qn(t,e){let r=Qr[t];if(!(!r||!r.length))for(let n of r)try{n(e)}catch(o){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.error(`Error while triggering instrumentation handler.
11
+ `:"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let r=this.getStackTop().scope,n=r.getSession();n&&Ka(n),this._sendSessionUpdate(),r.setSession()}startSession(e){let{scope:r,client:n}=this.getStackTop(),{release:o,environment:i=ir}=n&&n.getOptions()||{},{userAgent:a}=w.navigator||{},s=za({release:o,environment:i,user:r.getUser(),...a&&{userAgent:a},...e}),c=r.getSession&&r.getSession();return c&&c.status==="ok"&&it(c,{status:"exited"}),this.endSession(),r.setSession(s),s}shouldSendDefaultPii(){let e=this.getClient(),r=e&&e.getOptions();return!!(r&&r.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:r}=this.getStackTop(),n=e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}_withClient(e){let{scope:r,client:n}=this.getStackTop();n&&e(n,r)}_callExtensionMethod(e,...r){let o=Yt().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[e]=="function")return o.extensions[e].apply(this,r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function Yt(){return w.__SENTRY__=w.__SENTRY__||{extensions:{},hub:void 0},w}function jn(t){let e=Yt(),r=en(e);return Ei(e,t),r}function T(){let t=Yt();if(t.__SENTRY__&&t.__SENTRY__.acs){let e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return _u(t)}function _u(t=Yt()){return(!hu(t)||en(t).isOlderThan(Ja))&&Ei(t,new sr),en(t)}function hu(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function en(t){return $r("hub",()=>new sr,t)}function Ei(t,e){if(!t)return!1;let r=t.__SENTRY__=t.__SENTRY__||{};return r.hub=e,!0}function Me(t){return(t||T()).getScope().getTransaction()}var Qa=!1;function es(){Qa||(Qa=!0,G("error",vi),G("unhandledrejection",vi))}function vi(){let t=Me();if(t){let e="internal_error";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}vi.tag="sentry_tracingErrorCallback";var cr=class{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}},lr=class{constructor(e={}){this.traceId=e.traceId||L(),this.spanId=e.spanId||L().substring(16),this.startTimestamp=e.startTimestamp||Oe(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){let r=new lr({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(r.spanRecorder=this.spanRecorder,r.spanRecorder&&r.spanRecorder.add(r),r.transaction=this.transaction,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&r.transaction){let n=e&&e.op||"< unknown op >",o=r.transaction.name||"< unknown name >",i=r.transaction.spanId,a=`[Tracing] Starting '${n}' span on transaction '${o}' (${i}).`;r.transaction.metadata.spanMetadata[r.spanId]={logMessage:a},f.log(a)}return r}setTag(e,r){return this.tags={...this.tags,[e]:r},this}setData(e,r){return this.data={...this.data,[e]:r},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);let r=ts(e);return r!=="unknown_error"&&this.setStatus(r),this}setName(e){this.description=e}isSuccess(){return this.status==="ok"}finish(e){if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){let{logMessage:r}=this.transaction.metadata.spanMetadata[this.spanId];r&&f.log(r.replace("Starting","Finishing"))}this.endTimestamp=typeof e=="number"?e:Oe()}toTraceparent(){return or(this.traceId,this.spanId,this.sampled)}toContext(){return ce({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return ce({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return ce({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}};function ts(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function vt(t,e,r){let n=e.getOptions(),{publicKey:o}=e.getDsn()||{},{segment:i}=r&&r.getUser()||{},a=ce({environment:n.environment||ir,release:n.release,user_segment:i,public_key:o,trace_id:t});return e.emit&&e.emit("createDsc",a),a}var ur=class extends lr{constructor(e,r){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=r||T(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;let n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e,r="custom"){this._name=e,this.metadata.source=r}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new cr(e)),this.spanRecorder.add(this)}setContext(e,r){r===null?delete this._contexts[e]:this._contexts[e]=r}setMeasurement(e,r,n=""){this._measurements[e]={value:r,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){let r=this._finishTransaction(e);if(r)return this._hub.captureEvent(r)}toContext(){let e=super.toContext();return ce({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;let e=this._hub||T(),r=e.getClient();if(!r)return{};let n=e.getScope(),o=vt(this.traceId,r,n),i=this.metadata.sampleRate;i!==void 0&&(o.sample_rate=`${i}`);let a=this.metadata.source;return a&&a!=="url"&&(o.transaction=this.name),this.sampled!==void 0&&(o.sampled=String(this.sampled)),o}setHub(e){this._hub=e}_finishTransaction(e){if(this.endTimestamp!==void 0)return;this.name||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e);let r=this._hub.getClient();if(r&&r.emit&&r.emit("finishTransaction",this),this.sampled!==!0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),r&&r.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(s=>s!==this&&s.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((s,c)=>s.endTimestamp&&c.endTimestamp?s.endTimestamp>c.endTimestamp?s:c:s).endTimestamp);let o=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...o,dynamicSamplingContext:this.getDynamicSamplingContext()},...o.source&&{transaction_info:{source:o.source}}};return Object.keys(this._measurements).length>0&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),i}};var pr={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Su="finishReason",dr=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"],bi=class extends cr{constructor(e,r,n,o){super(o),this._pushActivity=e,this._popActivity=r,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=r=>{e.endTimestamp=typeof r=="number"?r:Oe(),this._popActivity(e.spanId)},e.endTimestamp===void 0&&this._pushActivity(e.spanId)),super.add(e)}},tn=class extends ur{constructor(e,r,n=pr.idleTimeout,o=pr.finalTimeout,i=pr.heartbeatInterval,a=!1){super(e,r),this._idleHub=r,this._idleTimeout=n,this._finalTimeout=o,this._heartbeatInterval=i,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=dr[4],a&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),r.configureScope(s=>s.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=dr[3],this.finish())},this._finalTimeout)}finish(e=Oe()){if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setTag(Su,this._finishReason),this.spanRecorder){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Tracing] finishing IdleTransaction",new Date(e*1e3).toISOString(),this.op);for(let r of this._beforeFinishCallbacks)r(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanId===this.spanId)return!0;r.endTimestamp||(r.endTimestamp=e,r.setStatus("cancelled"),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));let n=r.startTimestamp<e,o=(this._finalTimeout+this._idleTimeout)/1e3,i=r.endTimestamp-this.startTimestamp<o;if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){let a=JSON.stringify(r,void 0,2);n?i||f.log("[Tracing] discarding Span since it finished after Transaction final timeout",a):f.log("[Tracing] discarding Span since it happened after Transaction was finished",a)}return n&&i}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Tracing] flushing IdleTransaction")}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Tracing] No active IdleTransaction");if(this._onScope){let r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){let r=o=>{this._finished||this._pushActivity(o)},n=o=>{this._finished||this._popActivity(o)};this.spanRecorder=new bi(r,n,this.spanId,e),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:r}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=r===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=dr[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=dr[1],this.finish(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`[Tracing] popActivity ${e}`),delete this.activities[e],(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){let r=Oe();this._idleTimeoutCanceledPermanently?(this._finishReason=dr[5],this.finish(r)):this._restartIdleTimeout(r+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=dr[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}};function fr(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=T().getClient(),r=t||e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}function Ti(t,e,r){if(!fr(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let n;return typeof e.tracesSampler=="function"?(n=e.tracesSampler(r),t.setMetadata({sampleRate:Number(n)})):r.parentSampled!==void 0?n=r.parentSampled:typeof e.tracesSampleRate<"u"?(n=e.tracesSampleRate,t.setMetadata({sampleRate:Number(n)})):(n=1,t.setMetadata({sampleRate:n})),Cu(n)?n?(t.sampled=Math.random()<n,t.sampled?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),t)):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),t.sampled=!1,t):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function Cu(t){return Ur(t)||!(typeof t=="number"||typeof t=="boolean")?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):t<0||t>1?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}function yu(){let e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function Eu(t,e){let r=this.getClient(),n=r&&r.getOptions()||{},o=n.instrumenter||"sentry",i=t.instrumenter||"sentry";o!==i&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${o}\` instrumenter.
12
+ The transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),t.sampled=!1);let a=new ur(t,this);return a=Ti(a,n,{parentSampled:t.parentSampled,transactionContext:t,...e}),a.sampled&&a.initSpanRecorder(n._experiments&&n._experiments.maxSpans),r&&r.emit&&r.emit("startTransaction",a),a}function qn(t,e,r,n,o,i,a){let s=t.getClient(),c=s&&s.getOptions()||{},l=new tn(e,t,r,n,a,o);return l=Ti(l,c,{parentSampled:e.parentSampled,transactionContext:e,...i}),l.sampled&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),s&&s.emit&&s.emit("startTransaction",l),l}function zn(){let t=Yt();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=Eu),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=yu),es())}function mr(t,e){return T().captureException(t,{captureContext:e})}function rn(t){T().addBreadcrumb(t)}function Kn(t,e){T().setContext(t,e)}function Xn(t){T().withScope(t)}var vu="7";function bu(t){let e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function Tu(t){return`${bu(t)}${t.projectId}/envelope/`}function Ru(t,e){return Zo({sentry_key:t.publicKey,sentry_version:vu,...e&&{sentry_client:`${e.name}/${e.version}`}})}function rs(t,e={}){let r=typeof e=="string"?e:e.tunnel,n=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return r||`${Tu(t)}?${Ru(t,n)}`}function xu(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function ns(t,e,r,n){let o=Zn(r),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:Ue(e)}},a="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Ge(i,[a])}function os(t,e,r,n){let o=Zn(r),i=t.type&&t.type!=="replay_event"?t.type:"event";xu(t,r&&r.sdk);let a=gi(t,o,n,e);return delete t.sdkProcessingMetadata,Ge(a,[[{type:i},t]])}var is=[];function Iu(t){let e={};return t.forEach(r=>{let{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.keys(e).map(r=>e[r])}function Ri(t){let e=t.defaultIntegrations||[],r=t.integrations;e.forEach(a=>{a.isDefaultInstance=!0});let n;Array.isArray(r)?n=[...e,...r]:typeof r=="function"?n=Zr(r(e)):n=e;let o=Iu(n),i=Nu(o,a=>a.name==="Debug");if(i!==-1){let[a]=o.splice(i,1);o.push(a)}return o}function as(t,e){let r={};return e.forEach(n=>{n&&xi(t,n,r)}),r}function xi(t,e,r){if(r[e.name]=e,is.indexOf(e.name)===-1&&(e.setupOnce(yi,T),is.push(e.name)),t.on&&typeof e.preprocessEvent=="function"){let n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,i)=>n(o,i,t))}if(t.addEventProcessor&&typeof e.processEvent=="function"){let n=e.processEvent.bind(e),o=Object.assign((i,a)=>n(i,a,t),{id:e.name});t.addEventProcessor(o)}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`Integration installed: ${e.name}`)}function Nu(t,e){for(let r=0;r<t.length;r++)if(e(t[r])===!0)return r;return-1}function cs(t,e,r,n,o){let{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,s={...e,event_id:e.event_id||r.event_id||L(),timestamp:e.timestamp||ot()},c=r.integrations||t.integrations.map(m=>m.name);Ou(s,t),Pu(s,c),e.type===void 0&&Mu(s,t.stackParser);let l=n;r.captureContext&&(l=Ce.clone(l).update(r.captureContext));let d=_e(s),u=o&&o.getEventProcessors?o.getEventProcessors():[];if(l){if(l.getAttachments){let m=[...r.attachments||[],...l.getAttachments()];m.length&&(r.attachments=m)}d=l.applyToEvent(s,r,u)}else d=ar([...u,...Qr()],s,r);return d.then(m=>(m&&Au(m),typeof i=="number"&&i>0?Du(m,i,a):m))}function Ou(t,e){let{environment:r,release:n,dist:o,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?r:ir),t.release===void 0&&n!==void 0&&(t.release=n),t.dist===void 0&&o!==void 0&&(t.dist=o),t.message&&(t.message=Fe(t.message,i));let a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=Fe(a.value,i));let s=t.request;s&&s.url&&(s.url=Fe(s.url,i))}var ss=new WeakMap;function Mu(t,e){let r=w._sentryDebugIds;if(!r)return;let n,o=ss.get(e);o?n=o:(n=new Map,ss.set(e,n));let i=Object.keys(r).reduce((a,s)=>{let c,l=n.get(s);l?c=l:(c=e(s),n.set(s,c));for(let d=c.length-1;d>=0;d--){let u=c[d];if(u.filename){a[u.filename]=r[s];break}}return a},{});try{t.exception.values.forEach(a=>{a.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=i[s.filename])})})}catch{}}function Au(t){let e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let r=t.debug_meta.images;Object.keys(e).forEach(n=>{r.push({type:"sourcemap",code_file:n,debug_id:e[n]})})}function Pu(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Du(t,e,r){if(!t)return null;let n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:Ne(o.data,e,r)}}))},...t.user&&{user:Ne(t.user,e,r)},...t.contexts&&{contexts:Ne(t.contexts,e,r)},...t.extra&&{extra:Ne(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=Ne(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>(o.data&&(o.data=Ne(o.data,e,r)),o))),n}var ls="Not capturing exception because it's already been captured.",nn=class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Pn(e.dsn):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("No DSN provided, client will not send events."),this._dsn){let r=rs(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}}captureException(e,r,n){if(kn(e)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(ls);return}let o=r&&r.event_id;return this._process(this.eventFromException(e,r).then(i=>this._captureEvent(i,r,n)).then(i=>{o=i})),o}captureMessage(e,r,n,o){let i=n&&n.event_id,a=tr(e)?this.eventFromMessage(String(e),r,n):this.eventFromException(e,n);return this._process(a.then(s=>this._captureEvent(s,n,o)).then(s=>{i=s})),i}captureEvent(e,r,n){if(r&&r.originalException&&kn(r.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(ls);return}let o=r&&r.event_id;return this._process(this._captureEvent(e,r,n).then(i=>{o=i})),o}captureSession(e){typeof e.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),it(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let r=this._transport;return r?this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o)):_e(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=as(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){xi(this,e,this._integrations)}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=os(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of r.attachments||[])n=pi(n,mi(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));let o=this._sendEnvelope(n);o&&o.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){let r=ns(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){let o=`${e}:${r}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`Adding outcome: "${o}"`),this._outcomes[o]=this._outcomes[o]+1||1}}on(e,r){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(r)}emit(e,...r){this._hooks[e]&&this._hooks[e].forEach(n=>n(...r))}_updateSessionFromEvent(e,r){let n=!1,o=!1,i=r.exception&&r.exception.values;if(i){o=!0;for(let c of i){let l=c.mechanism;if(l&&l.handled===!1){n=!0;break}}}let a=e.status==="ok";(a&&e.errors===0||a&&n)&&(it(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Y(r=>{let n=0,o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),r(!0)):(n+=o,e&&n>=e&&(clearInterval(i),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n){let o=this.getOptions(),i=Object.keys(this._integrations);return!r.integrations&&i.length>0&&(r.integrations=i),this.emit("preprocessEvent",e,r),cs(o,e,r,n,this).then(a=>{if(a===null)return a;let{propagationContext:s}=a.sdkProcessingMetadata||{};if(!(a.contexts&&a.contexts.trace)&&s){let{traceId:l,spanId:d,parentSpanId:u,dsc:m}=s;a.contexts={trace:{trace_id:l,span_id:d,parent_span_id:u},...a.contexts};let h=m||vt(l,this,n);a.sdkProcessingMetadata={dynamicSamplingContext:h,...a.sdkProcessingMetadata}}return a})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(o=>o.event_id,o=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){let i=o;i.logLevel==="log"?f.log(i.message):f.warn(i)}})}_processEvent(e,r,n){let o=this.getOptions(),{sampleRate:i}=o,a=ds(e),s=us(e),c=e.type||"error",l=`before send for type \`${c}\``;if(s&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),Gt(new K(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let d=c==="replay_event"?"replay":c;return this._prepareEvent(e,r,n).then(u=>{if(u===null)throw this.recordDroppedEvent("event_processor",d,e),new K("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return u;let h=ku(o,u,r);return wu(h,l)}).then(u=>{if(u===null)throw this.recordDroppedEvent("before_send",d,e),new K(`${l} returned \`null\`, will not send event.`,"log");let m=n&&n.getSession();!a&&m&&this._updateSessionFromEvent(m,u);let h=u.transaction_info;if(a&&h&&u.transaction!==e.transaction){let C="custom";u.transaction_info={...h,source:C}}return this.sendEvent(u,r),u}).then(null,u=>{throw u instanceof K?u:(this.captureException(u,{data:{__sentry__:!0},originalException:u}),new K(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
13
+ Reason: ${u}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,r=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error("Error while sending event:",r)});(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(r=>{let[n,o]=r.split(":");return{reason:n,category:o,quantity:e[r]}})}};function wu(t,e){let r=`${e} must return \`null\` or a valid event.`;if(Vt(t))return t.then(n=>{if(!Te(n)&&n!==null)throw new K(r);return n},n=>{throw new K(`${e} rejected with ${n}`)});if(!Te(t)&&t!==null)throw new K(r);return t}function ku(t,e,r){let{beforeSend:n,beforeSendTransaction:o}=t;return us(e)&&n?n(e,r):ds(e)&&o?o(e,r):e}function us(t){return t.type===void 0}function ds(t){return t.type==="transaction"}function Ii(t,e){e.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?f.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));let r=T();r.getScope().update(e.initialScope);let o=new t(e);r.bindClient(o)}var Lu=30;function gr(t,e,r=ni(t.bufferSize||Lu)){let n={},o=a=>r.drain(a);function i(a){let s=[];if($n(a,(u,m)=>{let h=Wn(m);if(hi(n,h)){let C=ps(u,m);t.recordDroppedEvent("ratelimit_backoff",h,C)}else s.push(u)}),s.length===0)return _e();let c=Ge(a[0],s),l=u=>{$n(c,(m,h)=>{let C=ps(m,h);t.recordDroppedEvent(u,Wn(h),C)})},d=()=>e({body:fi(c,t.textEncoder)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),n=Si(n,u),u),u=>{throw l("network_error"),u});return r.add(d).then(u=>u,u=>{if(u instanceof K)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error("Skipped sending event because buffer is full."),l("queue_overflow"),_e();throw u})}return i.__sentry__baseTransport__=!0,{send:i,flush:o}}function ps(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}var on="7.77.0";var Wt={};Bo(Wt,{FunctionToString:()=>bt,InboundFilters:()=>Tt,LinkedErrors:()=>$t});var fs,bt=class{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=bt.id}setupOnce(){fs=Function.prototype.toString;try{Function.prototype.toString=function(...e){let r=Ut(this)||this;return fs.apply(r,e)}}catch{}}};bt.__initStatic();var Bu=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Hu=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Tt=class{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=Tt.id,this._options=e}setupOnce(e,r){}processEvent(e,r,n){let o=n.getOptions(),i=Fu(this._options,o);return Vu(e,i)?null:e}};Tt.__initStatic();function Fu(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Bu],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:Hu],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function Vu(t,e){return e.ignoreInternal&&Zu(t)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Event dropped due to being internal Sentry Error.
14
+ Event: ${xe(t)}`),!0):Uu(t,e.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
15
+ Event: ${xe(t)}`),!0):Gu(t,e.ignoreTransactions)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
16
+ Event: ${xe(t)}`),!0):Yu(t,e.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Event dropped due to being matched by \`denyUrls\` option.
17
+ Event: ${xe(t)}.
18
+ Url: ${Jn(t)}`),!0):$u(t,e.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`Event dropped due to not being matched by \`allowUrls\` option.
19
+ Event: ${xe(t)}.
20
+ Url: ${Jn(t)}`),!0)}function Uu(t,e){return t.type||!e||!e.length?!1:Wu(t).some(r=>Et(r,e))}function Gu(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;let r=t.transaction;return r?Et(r,e):!1}function Yu(t,e){if(!e||!e.length)return!1;let r=Jn(t);return r?Et(r,e):!1}function $u(t,e){if(!e||!e.length)return!0;let r=Jn(t);return r?Et(r,e):!0}function Wu(t){let e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.length===0&&f.error(`Could not extract message for event ${xe(t)}`),e}function Zu(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function ju(t=[]){for(let e=t.length-1;e>=0;e--){let r=t[e];if(r&&r.filename!=="<anonymous>"&&r.filename!=="[native code]")return r.filename||null}return null}function Jn(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?ju(e):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error(`Cannot extract url for event ${xe(t)}`),null}}var qu="cause",zu=5,$t=class{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this._key=e.key||qu,this._limit=e.limit||zu,this.name=$t.id}setupOnce(){}preprocessEvent(e,r,n){let o=n.getOptions();Yr(Ci,o.stackParser,o.maxValueLength,this._key,this._limit,e,r)}};$t.__initStatic();var R=w,Ni=0;function Oi(){return Ni>0}function ld(){Ni++,setTimeout(()=>{Ni--})}function Rt(t,e={},r){if(typeof t!="function")return t;try{let o=t.__sentry_wrapped__;if(o)return o;if(Ut(t))return t}catch{return t}let n=function(){let o=Array.prototype.slice.call(arguments);try{r&&typeof r=="function"&&r.apply(this,arguments);let i=o.map(a=>Rt(a,e));return t.apply(this,i)}catch(i){throw ld(),Xn(a=>{a.addEventProcessor(s=>(e.mechanism&&(nr(s,void 0,void 0),tt(s,e.mechanism)),s.extra={...s.extra,arguments:o},s)),mr(i)}),i}};try{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}catch{}Dn(n,t),et(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}function Pi(t,e){let r=Di(t,e),n={type:e&&e.name,value:fd(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function ud(t,e,r,n){let i=T().getClient(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:Ft(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:md(e,{isUnhandledRejection:n})}]},extra:{__serialized__:Yn(e,a)}};if(r){let c=Di(t,r);c.length&&(s.exception.values[0].stacktrace={frames:c})}return s}function Mi(t,e){return{exception:{values:[Pi(t,e)]}}}function Di(t,e){let r=e.stacktrace||e.stack||"",n=pd(e);try{return t(r,n)}catch{}return[]}var dd=/Minified React error #\d+;/i;function pd(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(dd.test(t.message))return 1}return 0}function fd(t){let e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function ms(t,e,r,n){let o=r&&r.syntheticException||void 0,i=Qn(t,e,o,n);return tt(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),_e(i)}function gs(t,e,r="info",n,o){let i=n&&n.syntheticException||void 0,a=Ai(t,e,i,o);return a.level=r,n&&n.event_id&&(a.event_id=n.event_id),_e(a)}function Qn(t,e,r,n,o){let i;if(er(e)&&e.error)return Mi(t,e.error);if(In(e)||Ho(e)){let a=e;if("stack"in e)i=Mi(t,e);else{let s=a.name||(In(a)?"DOMError":"DOMException"),c=a.message?`${s}: ${a.message}`:s;i=Ai(t,c,r,n),nr(i,c)}return"code"in a&&(i.tags={...i.tags,"DOMException.code":`${a.code}`}),i}return Vr(e)?Mi(t,e):Te(e)||Ft(e)?(i=ud(t,e,r,o),tt(i,{synthetic:!0}),i):(i=Ai(t,e,r,n),nr(i,`${e}`,void 0),tt(i,{synthetic:!0}),i)}function Ai(t,e,r,n){let o={message:e};if(n&&r){let i=Di(t,r);i.length&&(o.exception={values:[{value:e,stacktrace:{frames:i}}]})}return o}function md(t,{isUnhandledRejection:e}){let r=jo(t),n=e?"promise rejection":"exception";return er(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:Ft(t)?`Event \`${gd(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function gd(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function _s(t,{metadata:e,tunnel:r,dsn:n}){let o={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!r&&!!n&&{dsn:Ue(n)}},i=_d(t);return Ge(o,[i])}function _d(t){return[{type:"user_report"},t]}var eo=class extends nn{constructor(e){let r=R.SENTRY_SDK_SOURCE||ri();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${r}:@sentry/browser`,version:on}],version:on},super(e),e.sendClientReports&&R.document&&R.document.addEventListener("visibilitychange",()=>{R.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return ms(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return gs(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("SDK not enabled, will not capture user feedback.");return}let r=_s(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(r)}_prepareEvent(e,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n)}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("Sending outcomes:",e);let r=_i(e,this._options.tunnel&&Ue(this._dsn));this._sendEnvelope(r)}};var an;function hs(){if(an)return an;if(jr(R.fetch))return an=R.fetch.bind(R);let t=R.document,e=R.fetch;if(t&&typeof t.createElement=="function")try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r);let n=r.contentWindow;n&&n.fetch&&(e=n.fetch),t.head.removeChild(r)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return an=e.bind(R)}function Ss(){an=void 0}function Cs(t,e=hs()){let r=0,n=0;function o(i){let a=i.body.length;r+=a,n++;let s={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};try{return e(t.url,s).then(c=>(r-=a,n--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Ss(),r-=a,n--,Gt(c)}}return gr(t,o)}var hd=4;function ys(t){function e(r){return new Y((n,o)=>{let i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===hd&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(let a in t.headers)Object.prototype.hasOwnProperty.call(t.headers,a)&&i.setRequestHeader(a,t.headers[a]);i.send(r.body)})}return gr(t,e)}var to="?";var Sd=30,Cd=40,yd=50;function wi(t,e,r,n){let o={filename:t,function:e,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}var Ed=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,vd=/\((\S*)(?::(\d+))(?::(\d+))\)/,bd=t=>{let e=Ed.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){let i=vd.exec(e[2]);i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3])}let[n,o]=vs(e[1]||to,e[2]);return wi(o,n,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},Td=[Sd,bd],Rd=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xd=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Id=t=>{let e=Rd.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let i=xd.exec(e[3]);i&&(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]="")}let n=e[3],o=e[1]||to;return[o,n]=vs(o,n),wi(n,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Nd=[yd,Id],Od=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Md=t=>{let e=Od.exec(t);return e?wi(e[2],e[1]||to,+e[3],e[4]?+e[4]:void 0):void 0},Ad=[Cd,Md];var Pd=[Td,Nd,Ad],Es=Ln(...Pd),vs=(t,e)=>{let r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:to,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};var Ae=class{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=Ae.id,this._options={onerror:!0,onunhandledrejection:!0,...e},this._installFunc={onerror:Dd,onunhandledrejection:wd}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let r in e){let n=this._installFunc[r];n&&e[r]&&(Bd(r),n(),this._installFunc[r]=void 0)}}};Ae.__initStatic();function Dd(){G("error",t=>{let[e,r,n]=Rs();if(!e.getIntegration(Ae))return;let{msg:o,url:i,line:a,column:s,error:c}=t;if(Oi()||c&&c.__sentry_own_request__)return;let l=c===void 0&&se(o)?Ld(o,i,a,s):bs(Qn(r,c||o,void 0,n,!1),i,a,s);l.level="error",Ts(e,c,l,"onerror")})}function wd(){G("unhandledrejection",t=>{let[e,r,n]=Rs();if(!e.getIntegration(Ae))return;let o=t;try{"reason"in t?o=t.reason:"detail"in t&&"reason"in t.detail&&(o=t.detail.reason)}catch{}if(Oi()||o&&o.__sentry_own_request__)return!0;let i=tr(o)?kd(o):Qn(r,o,void 0,n,!0);i.level="error",Ts(e,o,i,"onunhandledrejection")})}function kd(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Ld(t,e,r,n){let o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,i=er(t)?t.message:t,a="Error",s=i.match(o);return s&&(a=s[1],i=s[2]),bs({exception:{values:[{type:a,value:i}]}},e,r,n)}function bs(t,e,r,n){let o=t.exception=t.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},s=a.stacktrace=a.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(n,10))?void 0:n,d=isNaN(parseInt(r,10))?void 0:r,u=se(e)&&e.length>0?e:Yo();return c.length===0&&c.push({colno:l,filename:u,function:"?",in_app:!0,lineno:d}),t}function Bd(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`Global Handler attached: ${t}`)}function Ts(t,e,r,n){tt(r,{handled:!1,type:n}),t.captureEvent(r,{originalException:e})}function Rs(){let t=T(),e=t.getClient(),r=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,r.stackParser,r.attachStacktrace]}var Hd=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],at=class{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=at.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&U(R,"setTimeout",xs),this._options.setInterval&&U(R,"setInterval",xs),this._options.requestAnimationFrame&&U(R,"requestAnimationFrame",Fd),this._options.XMLHttpRequest&&"XMLHttpRequest"in R&&U(XMLHttpRequest.prototype,"send",Vd);let e=this._options.eventTarget;e&&(Array.isArray(e)?e:Hd).forEach(Ud)}};at.__initStatic();function xs(t){return function(...e){let r=e[0];return e[0]=Rt(r,{mechanism:{data:{function:le(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Fd(t){return function(e){return t.apply(this,[Rt(e,{mechanism:{data:{function:"requestAnimationFrame",handler:le(t)},handled:!1,type:"instrument"}})])}}function Vd(t){return function(...e){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&U(r,o,function(i){let a={mechanism:{data:{function:o,handler:le(i)},handled:!1,type:"instrument"}},s=Ut(i);return s&&(a.mechanism.data.handler=le(s)),Rt(i,a)})}),t.apply(this,e)}}function Ud(t){let e=R,r=e[t]&&e[t].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(U(r,"addEventListener",function(n){return function(o,i,a){try{typeof i.handleEvent=="function"&&(i.handleEvent=Rt(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:le(i),target:t},handled:!1,type:"instrument"}}))}catch{}return n.apply(this,[o,Rt(i,{mechanism:{data:{function:"addEventListener",handler:le(i),target:t},handled:!1,type:"instrument"}}),a])}}),U(r,"removeEventListener",function(n){return function(o,i,a){let s=i;try{let c=s&&s.__sentry_wrapped__;c&&n.call(this,o,c,a)}catch{}return n.call(this,o,s,a)}}))}var ro=1024,st=class{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=st.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){if(this.options.console&&G("console",$d),this.options.dom&&G("dom",Yd(this.options.dom)),this.options.xhr&&G("xhr",Wd),this.options.fetch&&G("fetch",Zd),this.options.history&&G("history",jd),this.options.sentry){let e=T().getClient();e&&e.on&&e.on("beforeSendEvent",Gd)}}};st.__initStatic();function Gd(t){T().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:xe(t)},{event:t})}function Yd(t){function e(r){let n,o=typeof t=="object"?t.serializeAttribute:void 0,i=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;i&&i>ro&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`\`dom.maxStringLength\` cannot exceed ${ro}, but a value of ${i} was configured. Sentry will use ${ro} instead.`),i=ro),typeof o=="string"&&(o=[o]);try{let a=r.event;n=qd(a)?Ve(a.target,{keyAttrs:o,maxStringLength:i}):Ve(a,{keyAttrs:o,maxStringLength:i})}catch{n="<unknown>"}n.length!==0&&T().addBreadcrumb({category:`ui.${r.name}`,message:n},{event:r.event,name:r.name,global:r.global})}return e}function $d(t){let e={category:"console",data:{arguments:t.args,logger:"console"},level:oi(t.level),message:Nn(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)e.message=`Assertion failed: ${Nn(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1);else return;T().addBreadcrumb(e,{input:t.args,level:t.level})}function Wd(t){let{startTimestamp:e,endTimestamp:r}=t,n=t.xhr[rt];if(!e||!r||!n)return;let{method:o,url:i,status_code:a,body:s}=n,c={method:o,url:i,status_code:a},l={xhr:t.xhr,input:s,startTimestamp:e,endTimestamp:r};T().addBreadcrumb({category:"xhr",data:c,type:"http"},l)}function Zd(t){let{startTimestamp:e,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.error){let n=t.fetchData,o={data:t.error,input:t.args,startTimestamp:e,endTimestamp:r};T().addBreadcrumb({category:"fetch",data:n,level:"error",type:"http"},o)}else{let n={...t.fetchData,status_code:t.response&&t.response.status},o={input:t.args,response:t.response,startTimestamp:e,endTimestamp:r};T().addBreadcrumb({category:"fetch",data:n,type:"http"},o)}}function jd(t){let e=t.from,r=t.to,n=zr(R.location.href),o=zr(e),i=zr(r);o.path||(o=n),n.protocol===i.protocol&&n.host===i.host&&(r=i.relative),n.protocol===o.protocol&&n.host===o.host&&(e=o.relative),T().addBreadcrumb({category:"navigation",data:{from:e,to:r}})}function qd(t){return!!t&&!!t.target}var zd="cause",Kd=5,ct=class{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=ct.id,this._key=e.key||zd,this._limit=e.limit||Kd}setupOnce(){}preprocessEvent(e,r,n){let o=n.getOptions();Yr(Pi,o.stackParser,o.maxValueLength,this._key,this._limit,e,r)}};ct.__initStatic();var lt=class{static __initStatic(){this.id="HttpContext"}constructor(){this.name=lt.id}setupOnce(){}preprocessEvent(e){if(!R.navigator&&!R.location&&!R.document)return;let r=e.request&&e.request.url||R.location&&R.location.href,{referrer:n}=R.document||{},{userAgent:o}=R.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...o&&{"User-Agent":o}},a={...e.request,...r&&{url:r},headers:i};e.request=a}};lt.__initStatic();var ut=class{static __initStatic(){this.id="Dedupe"}constructor(){this.name=ut.id}setupOnce(e,r){}processEvent(e){if(e.type)return e;try{if(Xd(e,this._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return this._previousEvent=e}};ut.__initStatic();function Xd(t,e){return e?!!(Jd(t,e)||Qd(t,e)):!1}function Jd(t,e){let r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!Ms(t,e)||!Os(t,e))}function Qd(t,e){let r=Is(e),n=Is(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!Ms(t,e)||!Os(t,e))}function Os(t,e){let r=Ns(t),n=Ns(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o<n.length;o++){let i=n[o],a=r[o];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0}function Ms(t,e){let r=t.fingerprint,n=e.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;r=r,n=n;try{return r.join("")===n.join("")}catch{return!1}}function Is(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Ns(t){let e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch{return}}var Ps=[new Wt.InboundFilters,new Wt.FunctionToString,new at,new st,new Ae,new ct,new ut,new lt];function ki(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=Ps),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),R.SENTRY_RELEASE&&R.SENTRY_RELEASE.id&&(t.release=R.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);let e={...t,stackParser:zo(t.stackParser||Es),integrations:Ri(t),transport:t.transport||(Bn()?Cs:ys)};Ii(eo,e),t.autoSessionTracking&&ep()}function As(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function ep(){if(typeof R.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}let t=T();t.captureSession&&(As(t),G("history",({from:e,to:r})=>{e===void 0||e===r||As(T())}))}var Li={};Bo(Li,{Breadcrumbs:()=>st,Dedupe:()=>ut,GlobalHandlers:()=>Ae,HttpContext:()=>lt,LinkedErrors:()=>ct,TryCatch:()=>at});var I=w;function Ds(){I&&I.document?I.document.addEventListener("visibilitychange",()=>{let t=Me();if(I.document.hidden&&t){let e="cancelled";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var _r=(t,e,r)=>{let n,o;return i=>{e.value>=0&&(i||r)&&(o=e.value-(n||0),(o||n===void 0)&&(n=e.value,e.delta=o,t(e)))}};var ws=()=>`v3-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`;var tp=()=>{let t=I.performance.timing,e=I.performance.navigation.type,r={entryType:"navigation",startTime:0,type:e==2?"back_forward":e===1?"reload":"navigate"};for(let n in t)n!=="navigationStart"&&n!=="toJSON"&&(r[n]=Math.max(t[n]-t.navigationStart,0));return r},no=()=>I.__WEB_VITALS_POLYFILL__?I.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||tp()):I.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];var oo=()=>{let t=no();return t&&t.activationStart||0};var hr=(t,e)=>{let r=no(),n="navigate";return r&&(I.document.prerendering||oo()>0?n="prerender":n=r.type.replace(/_/g,"-")),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:ws(),navigationType:n}};var xt=(t,e,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){let n=new PerformanceObserver(o=>{e(o.getEntries())});return n.observe(Object.assign({type:t,buffered:!0},r||{})),n}}catch{}};var It=(t,e)=>{let r=n=>{(n.type==="pagehide"||I.document.visibilityState==="hidden")&&(t(n),e&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)};var ks=t=>{let e=hr("CLS",0),r,n=0,o=[],i=s=>{s.forEach(c=>{if(!c.hadRecentInput){let l=o[0],d=o[o.length-1];n&&o.length!==0&&c.startTime-d.startTime<1e3&&c.startTime-l.startTime<5e3?(n+=c.value,o.push(c)):(n=c.value,o=[c]),n>e.value&&(e.value=n,e.entries=o,r&&r())}})},a=xt("layout-shift",i);if(a){r=_r(t,e);let s=()=>{i(a.takeRecords()),r(!0)};return It(s),s}};var io=-1,rp=()=>I.document.visibilityState==="hidden"&&!I.document.prerendering?0:1/0,np=()=>{It(({timeStamp:t})=>{io=t},!0)},Sr=()=>(io<0&&(io=rp(),np()),{get firstHiddenTime(){return io}});var Ls=t=>{let e=Sr(),r=hr("FID"),n,o=s=>{s.startTime<e.firstHiddenTime&&(r.value=s.processingStart-s.startTime,r.entries.push(s),n(!0))},i=s=>{s.forEach(o)},a=xt("first-input",i);n=_r(t,r),a&&It(()=>{i(a.takeRecords()),a.disconnect()},!0)};var Bs={},Hs=t=>{let e=Sr(),r=hr("LCP"),n,o=a=>{let s=a[a.length-1];if(s){let c=Math.max(s.startTime-oo(),0);c<e.firstHiddenTime&&(r.value=c,r.entries=[s],n())}},i=xt("largest-contentful-paint",o);if(i){n=_r(t,r);let a=()=>{Bs[r.id]||(o(i.takeRecords()),i.disconnect(),Bs[r.id]=!0,n(!0))};return["keydown","click"].forEach(s=>{addEventListener(s,a,{once:!0,capture:!0})}),It(a,!0),a}};var sn={},ao={},Fs,Vs,Us;function Gs(t){return Bi("cls",t,op,Fs)}function Ys(t){return Bi("lcp",t,ap,Us)}function $s(t){return Bi("fid",t,ip,Vs)}function cn(t,e){return Ws(t,e),ao[t]||(sp(t),ao[t]=!0),Zs(t,e)}function so(t,e){let r=sn[t];if(!(!r||!r.length))for(let n of r)try{n(e)}catch(o){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.error(`Error while triggering instrumentation handler.
21
21
  Type: ${t}
22
- Name: ${ae(n)}
23
- Error:`,o)}}function Bd(){Cs(t=>{Qn("cls",{metric:t}),Is=t})}function Fd(){bs(t=>{Qn("fid",{metric:t}),xs=t})}function Ld(){Rs(t=>{Qn("lcp",{metric:t}),Ns=t})}function Ri(t,e,r,n){return Ds(t,e),Jn[t]||(r(),Jn[t]=!0),n&&e({metric:n}),Ms(t,e)}function Ud(t){let e={};t==="event"&&(e.durationThreshold=0),vt(t,r=>{Qn(t,{entries:r})},e)}function Ds(t,e){Qr[t]=Qr[t]||[],Qr[t].push(e)}function Ms(t,e){return()=>{let r=Qr[t];if(!r)return;let n=r.indexOf(e);n!==-1&&r.splice(n,1)}}function eo(t){return typeof t=="number"&&isFinite(t)}function Ut(t,{startTimestamp:e,...r}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...r})}function $(t){return t/1e3}function ks(){return R&&R.addEventListener&&R.performance}var ws=0,w={},Ue,tn;function Bs(){let t=ks();if(t&&se){t.mark&&R.performance.mark("sentry-tracing-init");let e=Yd(),r=Hd(),n=Gd();return()=>{e(),r(),n()}}return()=>{}}function Fs(){en("longtask",({entries:t})=>{for(let e of t){let r=Ie();if(!r)return;let n=$(se+e.startTime),o=$(e.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+o})}})}function Ls(){en("event",({entries:t})=>{for(let e of t){let r=Ie();if(!r)return;if(e.name==="click"){let n=$(se+e.startTime),o=$(e.duration);r.startChild({description:Be(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+o})}}})}function Hd(){return Os(({metric:t})=>{let e=t.entries.pop();e&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Measurements] Adding CLS"),w.cls={value:t.value,unit:""},tn=e)})}function Gd(){return As(({metric:t})=>{let e=t.entries.pop();e&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Measurements] Adding LCP"),w.lcp={value:t.value,unit:"millisecond"},Ue=e)})}function Yd(){return Ps(({metric:t})=>{let e=t.entries.pop();if(!e)return;let r=$(se),n=$(e.startTime);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Measurements] Adding FID"),w.fid={value:t.value,unit:"millisecond"},w["mark.fid"]={value:r+n,unit:"second"}})}function Us(t){let e=ks();if(!e||!R.performance.getEntries||!se)return;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Tracing] Adding & adjusting spans using Performance API");let r=$(se),n=e.getEntries(),o,i;if(n.slice(ws).forEach(a=>{let s=$(a.startTime),c=$(a.duration);if(!(t.op==="navigation"&&r+s<t.startTimestamp))switch(a.entryType){case"navigation":{Wd(t,a,r),o=r+$(a.responseStart),i=r+$(a.requestStart);break}case"mark":case"paint":case"measure":{$d(t,a,s,c,r);let l=fr(),f=a.startTime<l.firstHiddenTime;a.name==="first-paint"&&f&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Measurements] Adding FP"),w.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&f&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Measurements] Adding FCP"),w.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{let l=a.name.replace(R.location.origin,"");jd(t,a,l,s,c,r);break}}}),ws=Math.max(n.length-1,0),qd(t),t.op==="pageload"){typeof o=="number"&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Measurements] Adding TTFB"),w.ttfb={value:(o-t.startTimestamp)*1e3,unit:"millisecond"},typeof i=="number"&&i<=o&&(w["ttfb.requestTime"]={value:(o-i)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(s=>{if(!w[s]||r>=t.startTimestamp)return;let c=w[s].value,l=r+$(c),f=Math.abs((l-t.startTimestamp)*1e3),u=f-c;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`[Measurements] Normalized ${s} from ${c} to ${f} (${u})`),w[s].value=f});let a=w["mark.fid"];a&&w.fid&&(Ut(t,{description:"first input delay",endTimestamp:a.value+$(w.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:a.value}),delete w["mark.fid"]),"fcp"in w||delete w.cls,Object.keys(w).forEach(s=>{t.setMeasurement(s,w[s].value,w[s].unit)}),zd(t)}Ue=void 0,tn=void 0,w={}}function $d(t,e,r,n,o){let i=o+r,a=i+n;return Ut(t,{description:e.name,endTimestamp:a,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i}),i}function Wd(t,e,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{to(t,e,n,r)}),to(t,e,"secureConnection",r,"TLS/SSL","connectEnd"),to(t,e,"fetch",r,"cache","domainLookupStart"),to(t,e,"domainLookup",r,"DNS"),Vd(t,e,r)}function to(t,e,r,n,o,i){let a=i?e[i]:e[`${r}End`],s=e[`${r}Start`];!s||!a||Ut(t,{op:"browser",origin:"auto.browser.browser.metrics",description:o||r,startTimestamp:n+$(s),endTimestamp:n+$(a)})}function Vd(t,e,r){Ut(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+$(e.requestStart),endTimestamp:r+$(e.responseEnd)}),Ut(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+$(e.responseStart),endTimestamp:r+$(e.responseEnd)})}function jd(t,e,r,n,o,i){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;let a={};"transferSize"in e&&(a["http.response_transfer_size"]=e.transferSize),"encodedBodySize"in e&&(a["http.response_content_length"]=e.encodedBodySize),"decodedBodySize"in e&&(a["http.decoded_response_content_length"]=e.decodedBodySize),"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus);let s=i+n,c=s+o;Ut(t,{description:r,endTimestamp:c,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:s,data:a})}function qd(t){let e=R.navigator;if(!e)return;let r=e.connection;r&&(r.effectiveType&&t.setTag("effectiveConnectionType",r.effectiveType),r.type&&t.setTag("connectionType",r.type),eo(r.rtt)&&(w["connection.rtt"]={value:r.rtt,unit:"millisecond"})),eo(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),eo(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function zd(t){Ue&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Measurements] Adding LCP Data"),Ue.element&&t.setTag("lcp.element",Be(Ue.element)),Ue.id&&t.setTag("lcp.id",Ue.id),Ue.url&&t.setTag("lcp.url",Ue.url.trim().slice(0,200)),t.setTag("lcp.size",Ue.size)),tn&&tn.sources&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log("[Measurements] Adding CLS Data"),tn.sources.forEach((e,r)=>t.setTag(`cls.source.${r+1}`,Be(e.node))))}var Ii=["localhost",/^\/(?!\/)/],rn={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Ii,tracePropagationTargets:Ii};function xi(t){let{traceFetch:e,traceXHR:r,tracePropagationTargets:n,tracingOrigins:o,shouldCreateSpanForRequest:i,enableHTTPTimings:a}={traceFetch:rn.traceFetch,traceXHR:rn.traceXHR,...t},s=typeof i=="function"?i:f=>!0,c=f=>Jd(f,n||o),l={};e&&U("fetch",f=>{let u=Qd(f,s,c,l);a&&u&&Hs(u)}),r&&U("xhr",f=>{let u=tp(f,s,c,l);a&&u&&Hs(u)})}function Zd(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function Hs(t){let e=t.data.url;if(!e)return;let r=en("resource",({entries:n})=>{n.forEach(o=>{Zd(o)&&o.name.endsWith(e)&&(Xd(o).forEach(a=>t.setData(...a)),setTimeout(r))})})}function Kd(t){let e="unknown",r="unknown",n="";for(let o of t){if(o==="/"){[e,r]=t.split("/");break}if(!isNaN(Number(o))){e=n==="h"?"http":n,r=t.split(n)[1];break}n+=o}return n===t&&(e=n),{name:e,version:r}}function He(t=0){return((se||performance.timeOrigin)+t)/1e3}function Xd(t){let{name:e,version:r}=Kd(t.nextHopProtocol),n=[];return n.push(["network.protocol.version",r],["network.protocol.name",e]),se?[...n,["http.request.redirect_start",He(t.redirectStart)],["http.request.fetch_start",He(t.fetchStart)],["http.request.domain_lookup_start",He(t.domainLookupStart)],["http.request.domain_lookup_end",He(t.domainLookupEnd)],["http.request.connect_start",He(t.connectStart)],["http.request.secure_connection_start",He(t.secureConnectionStart)],["http.request.connection_end",He(t.connectEnd)],["http.request.request_start",He(t.requestStart)],["http.request.response_start",He(t.responseStart)],["http.request.response_end",He(t.responseEnd)]]:n}function Jd(t,e){return _t(t,e||Ii)}function Qd(t,e,r,n){if(!ar()||!t.fetchData)return;let o=e(t.fetchData.url);if(t.endTimestamp&&o){let m=t.fetchData.__span;if(!m)return;let h=n[m];if(h){if(t.response){h.setHttpStatus(t.response.status);let S=t.response&&t.response.headers&&t.response.headers.get("content-length"),y=parseInt(S);y>0&&h.setData("http.response_content_length",y)}else t.error&&h.setStatus("internal_error");h.finish(),delete n[m]}return}let i=b(),a=i.getScope(),s=i.getClient(),c=a.getSpan(),{method:l,url:f}=t.fetchData,u=o&&c?c.startChild({data:{url:f,type:"fetch","http.method":l},description:`${l} ${f}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(u&&(t.fetchData.__span=u.spanId,n[u.spanId]=u),r(t.fetchData.url)&&s){let m=t.args[0];t.args[1]=t.args[1]||{};let h=t.args[1];h.headers=ep(m,s,a,h,u)}return u}function ep(t,e,r,n,o){let i=o||r.getSpan(),a=i&&i.transaction,{traceId:s,sampled:c,dsc:l}=r.getPropagationContext(),f=i?i.toTraceparent():Xt(s,void 0,c),u=a?a.getDynamicSamplingContext():l||ht(s,e,r),m=Vr(u),h=typeof Request<"u"&&fe(t,Request)?t.headers:n.headers;if(h)if(typeof Headers<"u"&&fe(h,Headers)){let S=new Headers(h);return S.append("sentry-trace",f),m&&S.append(Wr,m),S}else if(Array.isArray(h)){let S=[...h,["sentry-trace",f]];return m&&S.push([Wr,m]),S}else{let S="baggage"in h?h.baggage:void 0,y=[];return Array.isArray(S)?y.push(...S):S&&y.push(S),m&&y.push(m),{...h,"sentry-trace":f,baggage:y.length>0?y.join(","):void 0}}else return{"sentry-trace":f,baggage:m}}function tp(t,e,r,n){let o=t.xhr,i=o&&o[Je];if(!ar()||o&&o.__sentry_own_request__||!o||!i)return;let a=e(i.url);if(t.endTimestamp&&a){let u=o.__sentry_xhr_span_id__;if(!u)return;let m=n[u];m&&(m.setHttpStatus(i.status_code),m.finish(),delete n[u]);return}let s=b(),c=s.getScope(),l=c.getSpan(),f=a&&l?l.startChild({data:{...i.data,type:"xhr","http.method":i.method,url:i.url},description:`${i.method} ${i.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(f&&(o.__sentry_xhr_span_id__=f.spanId,n[o.__sentry_xhr_span_id__]=f),o.setRequestHeader&&r(i.url))if(f){let u=f&&f.transaction,m=u&&u.getDynamicSamplingContext(),h=Vr(m);Gs(o,f.toTraceparent(),h)}else{let u=s.getClient(),{traceId:m,sampled:h,dsc:S}=c.getPropagationContext(),y=Xt(m,void 0,h),O=S||(u?ht(m,u,c):void 0),N=Vr(O);Gs(o,y,N)}return f}function Gs(t,e,r){try{t.setRequestHeader("sentry-trace",e),r&&t.setRequestHeader(Wr,r)}catch{}}function Ys(t,e=!0,r=!0){if(!R||!R.location){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn("Could not initialize routing instrumentation due to invalid location");return}let n=R.location.href,o;e&&(o=t({name:R.location.pathname,startTimestamp:se?se/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&U("history",({to:i,from:a})=>{if(a===void 0&&n&&n.indexOf(i)!==-1){n=void 0;return}a!==i&&(n=void 0,o&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`[Tracing] Finishing current transaction with op: ${o.op}`),o.finish()),o=t({name:R.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}var Ws="BrowserTracing",rp={...ir,markBackgroundTransactions:!0,routingInstrumentation:Ys,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...rn},dr=class{constructor(e){this.name=Ws,this._hasSetTracePropagationTargets=!1,Gn(),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...rp,...e},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=Bs(),this.options.enableLongTask&&Fs(),this.options._experiments.enableInteractions&&Ls()}setupOnce(e,r){this._getCurrentHub=r;let o=r().getClient(),i=o&&o.getOptions(),{routingInstrumentation:a,startTransactionOnLocationChange:s,startTransactionOnPageLoad:c,markBackgroundTransactions:l,traceFetch:f,traceXHR:u,shouldCreateSpanForRequest:m,enableHTTPTimings:h,_experiments:S}=this.options,y=i&&i.tracePropagationTargets,O=y||this.options.tracePropagationTargets;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&y&&p.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),a(N=>{let C=this._createRouteTransaction(N);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(C,N,r),C},c,s),l&&Es(),S.enableInteractions&&this._registerInteractionListener(),xi({traceFetch:f,traceXHR:u,tracePropagationTargets:O,shouldCreateSpanForRequest:m,enableHTTPTimings:h})}_createRouteTransaction(e){if(!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}let r=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:o,finalTimeout:i,heartbeatInterval:a}=this.options,s=e.op==="pageload",c=s?$s("sentry-trace"):"",l=s?$s("baggage"):"",{traceparentData:f,dynamicSamplingContext:u,propagationContext:m}=Jo(c,l),h={...e,...f,metadata:{...e.metadata,dynamicSamplingContext:f&&!u?{}:u},trimEnd:!0},S=typeof n=="function"?n(h):h,y=S===void 0?{...h,sampled:!1}:S;y.metadata=y.name!==h.name?{...y.metadata,source:"custom"}:y.metadata,this._latestRouteName=y.name,this._latestRouteSource=y.metadata&&y.metadata.source,y.sampled===!1&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`[Tracing] Will not send ${y.op} transaction because of beforeNavigate.`),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.log(`[Tracing] Starting ${y.op} transaction on scope`);let{location:O}=R,N=Hn(r,y,o,i,!0,{location:O},a),C=r.getScope();return s&&f?C.setPropagationContext(m):C.setPropagationContext({traceId:N.traceId,spanId:N.spanId,parentSpanId:N.parentSpanId,sampled:N.sampled}),N.registerBeforeFinishCallback(ce=>{this._collectWebVitals(),Us(ce)}),N}_registerInteractionListener(){let e,r=()=>{let{idleTimeout:n,finalTimeout:o,heartbeatInterval:i}=this.options,a="ui.action.click",s=Ie();if(s&&s.op&&["navigation","pageload"].includes(s.op)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`[Tracing] Did not create ${a} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&p.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}let c=this._getCurrentHub(),{location:l}=R,f={name:this._latestRouteName,op:a,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=Hn(c,f,n,o,!0,{location:l},i)};["click"].forEach(n=>{addEventListener(n,r,{once:!1,capture:!0})})}};function $s(t){let e=Do(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}var Vs={};T.Sentry&&T.Sentry.Integrations&&(Vs=T.Sentry.Integrations);var Wy={...Vs,...Lt,...Ti};var np=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};np.SENTRY_RELEASE={id:"3.2.0"};var js=!1;function op(){bi({dsn:"https://903950caba7d4802afe6c1e985ad5ebd@o128085.ingest.sentry.io/4504854496149504",release:"3.2.0",integrations:[new dr],tracesSampleRate:1}),js=!0}var _e=t=>(js||op(),sr(t));var Qs=D(require("react"));var Oi="[Duffel Ancillaries] ",zs="duffel-ancillaries-logger-state",qs=!1,ip=t=>{localStorage.setItem(zs,t.toString())},Zs=()=>localStorage.getItem(zs)==="true",ro=t=>{ip(t),t&&!qs&&console.info(Oi,`
22
+ Name: ${le(n)}
23
+ Error:`,o)}}function op(){ks(t=>{so("cls",{metric:t}),Fs=t})}function ip(){Ls(t=>{so("fid",{metric:t}),Vs=t})}function ap(){Hs(t=>{so("lcp",{metric:t}),Us=t})}function Bi(t,e,r,n){return Ws(t,e),ao[t]||(r(),ao[t]=!0),n&&e({metric:n}),Zs(t,e)}function sp(t){let e={};t==="event"&&(e.durationThreshold=0),xt(t,r=>{so(t,{entries:r})},e)}function Ws(t,e){sn[t]=sn[t]||[],sn[t].push(e)}function Zs(t,e){return()=>{let r=sn[t];if(!r)return;let n=r.indexOf(e);n!==-1&&r.splice(n,1)}}function co(t){return typeof t=="number"&&isFinite(t)}function Zt(t,{startTimestamp:e,...r}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...r})}function W(t){return t/1e3}function qs(){return I&&I.addEventListener&&I.performance}var js=0,B={},Ye,ln;function zs(){let t=qs();if(t&&ue){t.mark&&I.performance.mark("sentry-tracing-init");let e=up(),r=cp(),n=lp();return()=>{e(),r(),n()}}return()=>{}}function Ks(){cn("longtask",({entries:t})=>{for(let e of t){let r=Me();if(!r)return;let n=W(ue+e.startTime),o=W(e.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+o})}})}function Xs(){cn("event",({entries:t})=>{for(let e of t){let r=Me();if(!r)return;if(e.name==="click"){let n=W(ue+e.startTime),o=W(e.duration);r.startChild({description:Ve(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+o})}}})}function cp(){return Gs(({metric:t})=>{let e=t.entries.pop();e&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Measurements] Adding CLS"),B.cls={value:t.value,unit:""},ln=e)})}function lp(){return Ys(({metric:t})=>{let e=t.entries.pop();e&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Measurements] Adding LCP"),B.lcp={value:t.value,unit:"millisecond"},Ye=e)})}function up(){return $s(({metric:t})=>{let e=t.entries.pop();if(!e)return;let r=W(ue),n=W(e.startTime);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Measurements] Adding FID"),B.fid={value:t.value,unit:"millisecond"},B["mark.fid"]={value:r+n,unit:"second"}})}function Js(t){let e=qs();if(!e||!I.performance.getEntries||!ue)return;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Tracing] Adding & adjusting spans using Performance API");let r=W(ue),n=e.getEntries(),o,i;if(n.slice(js).forEach(a=>{let s=W(a.startTime),c=W(a.duration);if(!(t.op==="navigation"&&r+s<t.startTimestamp))switch(a.entryType){case"navigation":{pp(t,a,r),o=r+W(a.responseStart),i=r+W(a.requestStart);break}case"mark":case"paint":case"measure":{dp(t,a,s,c,r);let l=Sr(),d=a.startTime<l.firstHiddenTime;a.name==="first-paint"&&d&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Measurements] Adding FP"),B.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&d&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Measurements] Adding FCP"),B.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{let l=a.name.replace(I.location.origin,"");mp(t,a,l,s,c,r);break}}}),js=Math.max(n.length-1,0),gp(t),t.op==="pageload"){typeof o=="number"&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Measurements] Adding TTFB"),B.ttfb={value:(o-t.startTimestamp)*1e3,unit:"millisecond"},typeof i=="number"&&i<=o&&(B["ttfb.requestTime"]={value:(o-i)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(s=>{if(!B[s]||r>=t.startTimestamp)return;let c=B[s].value,l=r+W(c),d=Math.abs((l-t.startTimestamp)*1e3),u=d-c;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`[Measurements] Normalized ${s} from ${c} to ${d} (${u})`),B[s].value=d});let a=B["mark.fid"];a&&B.fid&&(Zt(t,{description:"first input delay",endTimestamp:a.value+W(B.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:a.value}),delete B["mark.fid"]),"fcp"in B||delete B.cls,Object.keys(B).forEach(s=>{t.setMeasurement(s,B[s].value,B[s].unit)}),_p(t)}Ye=void 0,ln=void 0,B={}}function dp(t,e,r,n,o){let i=o+r,a=i+n;return Zt(t,{description:e.name,endTimestamp:a,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i}),i}function pp(t,e,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{lo(t,e,n,r)}),lo(t,e,"secureConnection",r,"TLS/SSL","connectEnd"),lo(t,e,"fetch",r,"cache","domainLookupStart"),lo(t,e,"domainLookup",r,"DNS"),fp(t,e,r)}function lo(t,e,r,n,o,i){let a=i?e[i]:e[`${r}End`],s=e[`${r}Start`];!s||!a||Zt(t,{op:"browser",origin:"auto.browser.browser.metrics",description:o||r,startTimestamp:n+W(s),endTimestamp:n+W(a)})}function fp(t,e,r){Zt(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+W(e.requestStart),endTimestamp:r+W(e.responseEnd)}),Zt(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+W(e.responseStart),endTimestamp:r+W(e.responseEnd)})}function mp(t,e,r,n,o,i){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;let a={};"transferSize"in e&&(a["http.response_transfer_size"]=e.transferSize),"encodedBodySize"in e&&(a["http.response_content_length"]=e.encodedBodySize),"decodedBodySize"in e&&(a["http.decoded_response_content_length"]=e.decodedBodySize),"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus);let s=i+n,c=s+o;Zt(t,{description:r,endTimestamp:c,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:s,data:a})}function gp(t){let e=I.navigator;if(!e)return;let r=e.connection;r&&(r.effectiveType&&t.setTag("effectiveConnectionType",r.effectiveType),r.type&&t.setTag("connectionType",r.type),co(r.rtt)&&(B["connection.rtt"]={value:r.rtt,unit:"millisecond"})),co(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),co(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function _p(t){Ye&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Measurements] Adding LCP Data"),Ye.element&&t.setTag("lcp.element",Ve(Ye.element)),Ye.id&&t.setTag("lcp.id",Ye.id),Ye.url&&t.setTag("lcp.url",Ye.url.trim().slice(0,200)),t.setTag("lcp.size",Ye.size)),ln&&ln.sources&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log("[Measurements] Adding CLS Data"),ln.sources.forEach((e,r)=>t.setTag(`cls.source.${r+1}`,Ve(e.node))))}var Hi=["localhost",/^\/(?!\/)/],un={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Hi,tracePropagationTargets:Hi};function Fi(t){let{traceFetch:e,traceXHR:r,tracePropagationTargets:n,tracingOrigins:o,shouldCreateSpanForRequest:i,enableHTTPTimings:a}={traceFetch:un.traceFetch,traceXHR:un.traceXHR,...t},s=typeof i=="function"?i:d=>!0,c=d=>yp(d,n||o),l={};e&&G("fetch",d=>{let u=Ep(d,s,c,l);a&&u&&Qs(u)}),r&&G("xhr",d=>{let u=bp(d,s,c,l);a&&u&&Qs(u)})}function hp(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function Qs(t){let e=t.data.url;if(!e)return;let r=cn("resource",({entries:n})=>{n.forEach(o=>{hp(o)&&o.name.endsWith(e)&&(Cp(o).forEach(a=>t.setData(...a)),setTimeout(r))})})}function Sp(t){let e="unknown",r="unknown",n="";for(let o of t){if(o==="/"){[e,r]=t.split("/");break}if(!isNaN(Number(o))){e=n==="h"?"http":n,r=t.split(n)[1];break}n+=o}return n===t&&(e=n),{name:e,version:r}}function $e(t=0){return((ue||performance.timeOrigin)+t)/1e3}function Cp(t){let{name:e,version:r}=Sp(t.nextHopProtocol),n=[];return n.push(["network.protocol.version",r],["network.protocol.name",e]),ue?[...n,["http.request.redirect_start",$e(t.redirectStart)],["http.request.fetch_start",$e(t.fetchStart)],["http.request.domain_lookup_start",$e(t.domainLookupStart)],["http.request.domain_lookup_end",$e(t.domainLookupEnd)],["http.request.connect_start",$e(t.connectStart)],["http.request.secure_connection_start",$e(t.secureConnectionStart)],["http.request.connection_end",$e(t.connectEnd)],["http.request.request_start",$e(t.requestStart)],["http.request.response_start",$e(t.responseStart)],["http.request.response_end",$e(t.responseEnd)]]:n}function yp(t,e){return Et(t,e||Hi)}function Ep(t,e,r,n){if(!fr()||!t.fetchData)return;let o=e(t.fetchData.url);if(t.endTimestamp&&o){let m=t.fetchData.__span;if(!m)return;let h=n[m];if(h){if(t.response){h.setHttpStatus(t.response.status);let C=t.response&&t.response.headers&&t.response.headers.get("content-length"),y=parseInt(C);y>0&&h.setData("http.response_content_length",y)}else t.error&&h.setStatus("internal_error");h.finish(),delete n[m]}return}let i=T(),a=i.getScope(),s=i.getClient(),c=a.getSpan(),{method:l,url:d}=t.fetchData,u=o&&c?c.startChild({data:{url:d,type:"fetch","http.method":l},description:`${l} ${d}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(u&&(t.fetchData.__span=u.spanId,n[u.spanId]=u),r(t.fetchData.url)&&s){let m=t.args[0];t.args[1]=t.args[1]||{};let h=t.args[1];h.headers=vp(m,s,a,h,u)}return u}function vp(t,e,r,n,o){let i=o||r.getSpan(),a=i&&i.transaction,{traceId:s,sampled:c,dsc:l}=r.getPropagationContext(),d=i?i.toTraceparent():or(s,void 0,c),u=a?a.getDynamicSamplingContext():l||vt(s,e,r),m=Jr(u),h=typeof Request<"u"&&ge(t,Request)?t.headers:n.headers;if(h)if(typeof Headers<"u"&&ge(h,Headers)){let C=new Headers(h);return C.append("sentry-trace",d),m&&C.append(Xr,m),C}else if(Array.isArray(h)){let C=[...h,["sentry-trace",d]];return m&&C.push([Xr,m]),C}else{let C="baggage"in h?h.baggage:void 0,y=[];return Array.isArray(C)?y.push(...C):C&&y.push(C),m&&y.push(m),{...h,"sentry-trace":d,baggage:y.length>0?y.join(","):void 0}}else return{"sentry-trace":d,baggage:m}}function bp(t,e,r,n){let o=t.xhr,i=o&&o[rt];if(!fr()||o&&o.__sentry_own_request__||!o||!i)return;let a=e(i.url);if(t.endTimestamp&&a){let u=o.__sentry_xhr_span_id__;if(!u)return;let m=n[u];m&&(m.setHttpStatus(i.status_code),m.finish(),delete n[u]);return}let s=T(),c=s.getScope(),l=c.getSpan(),d=a&&l?l.startChild({data:{...i.data,type:"xhr","http.method":i.method,url:i.url},description:`${i.method} ${i.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(d&&(o.__sentry_xhr_span_id__=d.spanId,n[o.__sentry_xhr_span_id__]=d),o.setRequestHeader&&r(i.url))if(d){let u=d&&d.transaction,m=u&&u.getDynamicSamplingContext(),h=Jr(m);e1(o,d.toTraceparent(),h)}else{let u=s.getClient(),{traceId:m,sampled:h,dsc:C}=c.getPropagationContext(),y=or(m,void 0,h),N=C||(u?vt(m,u,c):void 0),P=Jr(N);e1(o,y,P)}return d}function e1(t,e,r){try{t.setRequestHeader("sentry-trace",e),r&&t.setRequestHeader(Xr,r)}catch{}}function t1(t,e=!0,r=!0){if(!I||!I.location){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn("Could not initialize routing instrumentation due to invalid location");return}let n=I.location.href,o;e&&(o=t({name:I.location.pathname,startTimestamp:ue?ue/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&G("history",({to:i,from:a})=>{if(a===void 0&&n&&n.indexOf(i)!==-1){n=void 0;return}a!==i&&(n=void 0,o&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`[Tracing] Finishing current transaction with op: ${o.op}`),o.finish()),o=t({name:I.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}var n1="BrowserTracing",Tp={...pr,markBackgroundTransactions:!0,routingInstrumentation:t1,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...un},Cr=class{constructor(e){this.name=n1,this._hasSetTracePropagationTargets=!1,zn(),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...Tp,...e},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=zs(),this.options.enableLongTask&&Ks(),this.options._experiments.enableInteractions&&Xs()}setupOnce(e,r){this._getCurrentHub=r;let o=r().getClient(),i=o&&o.getOptions(),{routingInstrumentation:a,startTransactionOnLocationChange:s,startTransactionOnPageLoad:c,markBackgroundTransactions:l,traceFetch:d,traceXHR:u,shouldCreateSpanForRequest:m,enableHTTPTimings:h,_experiments:C}=this.options,y=i&&i.tracePropagationTargets,N=y||this.options.tracePropagationTargets;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&y&&f.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),a(P=>{let v=this._createRouteTransaction(P);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(v,P,r),v},c,s),l&&Ds(),C.enableInteractions&&this._registerInteractionListener(),Fi({traceFetch:d,traceXHR:u,tracePropagationTargets:N,shouldCreateSpanForRequest:m,enableHTTPTimings:h})}_createRouteTransaction(e){if(!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}let r=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:o,finalTimeout:i,heartbeatInterval:a}=this.options,s=e.op==="pageload",c=s?r1("sentry-trace"):"",l=s?r1("baggage"):"",{traceparentData:d,dynamicSamplingContext:u,propagationContext:m}=ui(c,l),h={...e,...d,metadata:{...e.metadata,dynamicSamplingContext:d&&!u?{}:u},trimEnd:!0},C=typeof n=="function"?n(h):h,y=C===void 0?{...h,sampled:!1}:C;y.metadata=y.name!==h.name?{...y.metadata,source:"custom"}:y.metadata,this._latestRouteName=y.name,this._latestRouteSource=y.metadata&&y.metadata.source,y.sampled===!1&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`[Tracing] Will not send ${y.op} transaction because of beforeNavigate.`),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.log(`[Tracing] Starting ${y.op} transaction on scope`);let{location:N}=I,P=qn(r,y,o,i,!0,{location:N},a),v=r.getScope();return s&&d?v.setPropagationContext(m):v.setPropagationContext({traceId:P.traceId,spanId:P.spanId,parentSpanId:P.parentSpanId,sampled:P.sampled}),P.registerBeforeFinishCallback(pe=>{this._collectWebVitals(),Js(pe)}),P}_registerInteractionListener(){let e,r=()=>{let{idleTimeout:n,finalTimeout:o,heartbeatInterval:i}=this.options,a="ui.action.click",s=Me();if(s&&s.op&&["navigation","pageload"].includes(s.op)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`[Tracing] Did not create ${a} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&f.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}let c=this._getCurrentHub(),{location:l}=I,d={name:this._latestRouteName,op:a,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=qn(c,d,n,o,!0,{location:l},i)};["click"].forEach(n=>{addEventListener(n,r,{once:!1,capture:!0})})}};function r1(t){let e=$o(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}var o1={};R.Sentry&&R.Sentry.Integrations&&(o1=R.Sentry.Integrations);var I6={...o1,...Wt,...Li};var Rp=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};Rp.SENTRY_RELEASE={id:"3.3.1--canary"};var i1=!1;function xp(){ki({dsn:"https://903950caba7d4802afe6c1e985ad5ebd@o128085.ingest.sentry.io/4504854496149504",release:"3.3.1--canary",integrations:[new Cr],tracesSampleRate:1}),i1=!0}var ye=t=>(i1||xp(),mr(t));var p1=D(require("react"));var Ui="[Duffel Ancillaries] ",s1="duffel-ancillaries-logger-state",a1=!1,Ip=t=>{localStorage.setItem(s1,t.toString())},c1=()=>localStorage.getItem(s1)==="true",uo=t=>{Ip(t),t&&!a1&&console.info(Ui,`
24
24
 
25
25
  Debug mode is enabled. Information about your setup will be printed to the console.
26
26
 
27
27
  If you do not want to enable debug mode (for example in a production environment), pass "debug: false" when initializing this component.
28
28
 
29
29
  Learn more about the Ancillaries component:
30
- http://duffel.com/docs/guides/ancillaries-component`),qs=!0},Ks=t=>{Zs()?console.info(Oi,t):Zr({category:"log",message:t})};function st(t,e){let r=[];Array.isArray(e)?r=e:r=Object.entries(e).map(([n,o])=>({property:n,value:o})),Zs()?(console.groupCollapsed(Oi,t),r.forEach(n=>{console.info(n)}),console.groupEnd()):Zr({category:"log.group",message:t,data:e})}var v=require("react/jsx-runtime"),Xs={add:(0,v.jsx)("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"}),apartment:(0,v.jsx)("path",{d:"M3.8496 19.9752V7.2744H7.4496V3.6744H15.9504V10.8744H20.1504V19.9752H13.4496V16.3752H10.5504V19.9752H3.8496ZM5.1504 18.6744H7.4496V16.3752H5.1504V18.6744ZM5.1504 14.7744H7.4496V12.4752H5.1504V14.7744ZM5.1504 10.8744H7.4496V8.5752H5.1504V10.8744ZM8.7504 14.7744H11.0496V12.4752H8.7504V14.7744ZM8.7504 10.8744H11.0496V8.5752H8.7504V10.8744ZM8.7504 7.2744H11.0496V4.9752H8.7504V7.2744ZM12.3504 14.7744H14.6496V12.4752H12.3504V14.7744ZM12.3504 10.8744H14.6496V8.5752H12.3504V10.8744ZM12.3504 7.2744H14.6496V4.9752H12.3504V7.2744ZM16.5504 18.6744H18.8496V16.3752H16.5504V18.6744ZM16.5504 14.7744H18.8496V12.4752H16.5504V14.7744Z"}),arrow_forward:(0,v.jsx)("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z"}),arrow_left:(0,v.jsx)("path",{d:"M9 19L2 12L9 5L10.425 6.4L5.825 11H22V13H5.825L10.4 17.6L9 19Z"}),arrow_right:(0,v.jsx)("path",{d:"M15 19L13.6 17.6L18.2 13H2V11H18.2L13.6 6.4L15 5L22 12L15 19Z"}),autorenew:(0,v.jsx)("path",{d:"M5.69728 14.4104C5.49326 13.9833 5.32604 13.5257 5.19562 13.0374C5.06521 12.5492 5 12.0367 5 11.5C5 9.56481 5.69083 7.91679 7.07249 6.55591C8.45416 5.19504 10.147 4.53946 12.1511 4.58918H12.7613L11.0742 2.92359L12.0097 2L15.2869 5.23549L12.0097 8.47099L11.0742 7.54739L12.7613 5.88181H12.1511C10.5021 5.84866 9.11624 6.38632 7.99347 7.49479C6.87069 8.60326 6.30931 9.93833 6.30931 11.5C6.30931 11.8455 6.33804 12.1824 6.3955 12.5106C6.45296 12.8389 6.53915 13.1573 6.65407 13.4658L5.69728 14.4104ZM11.9903 21L8.71309 17.7645L11.9903 14.529L12.9258 15.4526L11.2387 17.1182H11.8489C13.4979 17.1513 14.8838 16.6137 16.0065 15.5052C17.1293 14.3967 17.6907 13.0617 17.6907 11.5C17.6907 11.1545 17.662 10.8176 17.6045 10.4894C17.547 10.1611 17.4609 9.84273 17.3459 9.53421L18.3027 8.58959C18.5067 9.01665 18.674 9.47431 18.8044 9.96256C18.9348 10.4508 19 10.9633 19 11.5C19 13.4186 18.3092 15.0625 16.9275 16.4317C15.5458 17.8008 13.853 18.4605 11.8489 18.4108H11.2387L12.9258 20.0764L11.9903 21Z"}),bassinet:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("path",{d:"M19 12C19 14.1217 18.1571 16.1566 16.6569 17.6569C15.1566 19.1571 13.1217 20 11 20C8.87827 20 6.84344 19.1571 5.34315 17.6569C3.84286 16.1566 3 14.1217 3 12L11 12H19Z"}),(0,v.jsx)("path",{d:"M16.1347 5.86529L11 11V4C12.0506 4 13.0909 4.20693 14.0615 4.60896C14.8136 4.92052 15.5125 5.34451 16.1347 5.86529ZM16.8602 6.55405L12.4142 11H18.9373C18.8482 10.293 18.6649 9.59962 18.391 8.93853C18.0264 8.05823 17.5077 7.25087 16.8602 6.55405Z"})]}),cabin_bag:(0,v.jsx)("path",{d:"M7.3077 20.5C6.81058 20.5 6.38502 20.323 6.03102 19.969C5.67701 19.615 5.5 19.1894 5.5 18.6923V8.25007C5.5 7.76417 5.67019 7.35103 6.01057 7.01065C6.35096 6.67027 6.7641 6.50007 7.25 6.50007H9.25V3.6924C9.25 3.43631 9.33622 3.22166 9.50865 3.04842C9.68108 2.87519 9.89773 2.78857 10.1586 2.78857H13.8414C14.1022 2.78857 14.3189 2.87519 14.4913 3.04842C14.6637 3.22166 14.75 3.43631 14.75 3.6924V6.50007H16.6922C17.1894 6.50007 17.6149 6.67708 17.9689 7.0311C18.3229 7.3851 18.5 7.81066 18.5 8.30777V18.6923C18.5 19.1894 18.3229 19.615 17.9689 19.969C17.6149 20.323 17.1894 20.5 16.6922 20.5C16.6922 20.7507 16.6074 20.9608 16.4377 21.1303C16.2681 21.2999 16.0578 21.3846 15.807 21.3846C15.5561 21.3846 15.3461 21.2999 15.1769 21.1303C15.0077 20.9608 14.923 20.7507 14.923 20.5H9.0769C9.0769 20.7513 8.99206 20.9615 8.82237 21.1308C8.65271 21.3 8.44246 21.3846 8.19162 21.3846C7.94079 21.3846 7.73076 21.2999 7.56153 21.1303C7.39231 20.9608 7.3077 20.7507 7.3077 20.5ZM10.4423 6.50007H13.5577V3.98085H10.4423V6.50007ZM7.3077 19H16.6922C16.782 19 16.8557 18.9712 16.9134 18.9135C16.9711 18.8558 17 18.7821 17 18.6923V8.30777C17 8.21802 16.9711 8.1443 16.9134 8.0866C16.8557 8.0289 16.782 8.00005 16.6922 8.00005H7.3077C7.21795 8.00005 7.14423 8.0289 7.08652 8.0866C7.02882 8.1443 6.99997 8.21802 6.99997 8.30777V18.6923C6.99997 18.7821 7.02882 18.8558 7.08652 18.9135C7.14423 18.9712 7.21795 19 7.3077 19ZM8.15382 17.1539C8.15382 17.3261 8.21009 17.4685 8.32262 17.5811C8.43514 17.6937 8.57744 17.75 8.74952 17.75C8.92161 17.75 9.06407 17.6937 9.1769 17.5811C9.28972 17.4685 9.34613 17.3261 9.34613 17.1539V9.8462C9.34613 9.67398 9.28986 9.53157 9.17732 9.41897C9.06481 9.30637 8.92251 9.25007 8.75043 9.25007C8.57834 9.25007 8.43588 9.30637 8.32305 9.41897C8.21023 9.53157 8.15382 9.67398 8.15382 9.8462V17.1539ZM11.4038 17.1539C11.4038 17.3261 11.4601 17.4685 11.5726 17.5811C11.6851 17.6937 11.8274 17.75 11.9995 17.75C12.1716 17.75 12.3141 17.6937 12.4269 17.5811C12.5397 17.4685 12.5961 17.3261 12.5961 17.1539V9.8462C12.5961 9.67398 12.5399 9.53157 12.4273 9.41897C12.3148 9.30637 12.1725 9.25007 12.0004 9.25007C11.8283 9.25007 11.6859 9.30637 11.5731 9.41897C11.4602 9.53157 11.4038 9.67398 11.4038 9.8462V17.1539ZM14.6538 17.1539C14.6538 17.3261 14.7101 17.4685 14.8226 17.5811C14.9351 17.6937 15.0774 17.75 15.2495 17.75C15.4216 17.75 15.5641 17.6937 15.6769 17.5811C15.7897 17.4685 15.8461 17.3261 15.8461 17.1539V9.8462C15.8461 9.67398 15.7899 9.53157 15.6773 9.41897C15.5648 9.30637 15.4225 9.25007 15.2504 9.25007C15.0783 9.25007 14.9359 9.30637 14.823 9.41897C14.7102 9.53157 14.6538 9.67398 14.6538 9.8462V17.1539Z"}),check:(0,v.jsx)("path",{d:"M10.3333 15.8646L7 12.5313L8.0625 11.4688L10.3333 13.7396L15.9375 8.13544L17 9.19794L10.3333 15.8646Z"}),checked_bag:(0,v.jsx)("path",{d:"M22 19H2V21H22V19M4 15C4 15.5 4.2 16 4.6 16.4C5 16.8 5.5 17 6 17V6C5.5 6 5 6.2 4.6 6.6C4.2 7 4 7.5 4 8V15M13.5 6H10.5C10.5 5.6 10.6 5.2 10.9 4.9C11.2 4.6 11.5 4.5 12 4.5C12.4 4.5 12.8 4.6 13.1 4.9C13.3 5.2 13.5 5.6 13.5 6M7 6V17H17V6H15C15 5.2 14.7 4.5 14.1 3.9S12.8 3 12 3C11.2 3 10.5 3.3 9.9 3.9C9.3 4.5 9 5.2 9 6H7M18 17C18.5 17 19 16.8 19.4 16.4C19.8 16 20 15.5 20 15V8C20 7.5 19.8 7 19.4 6.6C19 6.2 18.5 6 18 6V17Z"}),chevron:(0,v.jsx)("path",{d:"M5 13H16.17L11.29 17.88C10.9 18.27 10.9 18.91 11.29 19.3C11.68 19.69 12.31 19.69 12.7 19.3L19.29 12.71C19.68 12.32 19.68 11.69 19.29 11.3L12.71 4.7C12.32 4.31 11.69 4.31 11.3 4.7C10.91 5.09 10.91 5.72 11.3 6.11L16.17 11H5C4.45 11 4 11.45 4 12C4 12.55 4.45 13 5 13Z"}),close:(0,v.jsx)("path",{d:"M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}),closet:(0,v.jsx)("path",{d:"M12 4C11.0717 4 10.1815 4.36875 9.52513 5.02513C8.86875 5.6815 8.5 6.57174 8.5 7.5H10.5C10.5 7.10218 10.658 6.72064 10.9393 6.43934C11.2206 6.15804 11.6022 6 12 6C12.3978 6 12.7794 6.15804 13.0607 6.43934C13.342 6.72064 13.5 7.10218 13.5 7.5C13.5 7.89782 13.342 8.27936 13.0607 8.56066C12.7794 8.84196 12.3978 9 12 9C11.45 9 11 9.45 11 10V11.75L2.4 18.2C2.23209 18.3259 2.10807 18.5015 2.04549 18.7018C1.98291 18.9022 1.98495 19.1171 2.05132 19.3162C2.11769 19.5153 2.24502 19.6885 2.41529 19.8112C2.58556 19.934 2.79012 20 3 20H21C21.2099 20 21.4144 19.934 21.5847 19.8112C21.755 19.6885 21.8823 19.5153 21.9487 19.3162C22.0151 19.1171 22.0171 18.9022 21.9545 18.7018C21.8919 18.5015 21.7679 18.3259 21.6 18.2L13 11.75V10.85C13.7216 10.6349 14.3546 10.1927 14.805 9.58919C15.2554 8.98569 15.4991 8.25303 15.5 7.5C15.5 6.57174 15.1313 5.6815 14.4749 5.02513C13.8185 4.36875 12.9283 4 12 4ZM12 13.5L18 18H6L12 13.5Z"}),exit_row:(0,v.jsx)("path",{d:"M20 11H6.83001L9.71001 8.12001C10.1 7.73001 10.1 7.10001 9.71001 6.71001C9.32001 6.32001 8.69001 6.32001 8.30001 6.71001L3.71001 11.3C3.32001 11.69 3.32001 12.32 3.71001 12.71L8.30001 17.3C8.69001 17.69 9.32001 17.69 9.71001 17.3C10.1 16.91 10.1 16.28 9.71001 15.89L6.83001 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11Z"}),exit_row_right:(0,v.jsx)("path",{d:"M4 11H17.17L14.29 8.12001C13.9 7.73001 13.9 7.10001 14.29 6.71001C14.68 6.32001 15.31 6.32001 15.7 6.71001L20.29 11.3C20.68 11.69 20.68 12.32 20.29 12.71L15.7 17.3C15.31 17.69 14.68 17.69 14.29 17.3C13.9 16.91 13.9 16.28 14.29 15.89L17.17 13H4C3.45 13 3 12.55 3 12C3 11.45 3.45 11 4 11Z"}),expand_content:(0,v.jsx)("path",{d:"M5 19V13H7V17H11V19H5ZM17 11V7H13V5H19V11H17Z"}),flight_class:(0,v.jsx)("path",{d:"M14.2596 12.5C13.7737 12.5 13.3606 12.3298 13.0202 11.9894C12.6798 11.649 12.5096 11.2359 12.5096 10.75V6.25C12.5096 5.7641 12.6798 5.35096 13.0202 5.01058C13.3606 4.67019 13.7737 4.5 14.2596 4.5H15.75C16.2359 4.5 16.649 4.67019 16.9894 5.01058C17.3298 5.35096 17.5 5.7641 17.5 6.25V10.75C17.5 11.2359 17.3298 11.649 16.9894 11.9894C16.649 12.3298 16.2359 12.5 15.75 12.5H14.2596ZM14.2596 11H15.75C15.8205 11 15.8798 10.9759 15.9278 10.9279C15.9759 10.8798 16 10.8205 16 10.75V6.25C16 6.17948 15.9759 6.12018 15.9278 6.0721C15.8798 6.02402 15.8205 5.99998 15.75 5.99998H14.2596C14.1891 5.99998 14.1298 6.02402 14.0817 6.0721C14.0336 6.12018 14.0096 6.17948 14.0096 6.25V10.75C14.0096 10.8205 14.0336 10.8798 14.0817 10.9279C14.1298 10.9759 14.1891 11 14.2596 11ZM9.5673 17.5C9.21345 17.5 8.89678 17.398 8.6173 17.1942C8.33782 16.9903 8.14423 16.7198 8.03655 16.3827L5.5 8.02883V4.5H6.99997V7.99998L9.49997 16H17.7596V17.5H9.5673ZM8.25 20.5V19H17.75V20.5H8.25ZM14.2596 5.99998H16H14.0096H14.2596Z"}),flight_takeoff:(0,v.jsx)("path",{d:"M3.77521 20.1498V18.849H20.0748V20.1498H3.77521ZM5.45041 15.2742L2.94961 11.0994L4.05001 10.8246L5.90041 12.399L10.05 11.2998L6.27481 4.89902L7.72561 4.62422L14.1 10.1994L19.4004 8.77382C19.75 8.67462 20.0832 8.72062 20.4 8.91182C20.7168 9.10382 20.9252 9.37462 21.0252 9.72422C21.1084 10.0746 21.0624 10.4038 20.8872 10.7118C20.7128 11.0198 20.4504 11.2242 20.1 11.325L5.45041 15.2742Z"}),galley:(0,v.jsx)("path",{d:"M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"}),lavatory:(0,v.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6h3zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2zm9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2z"}),lie_flat_seat:(0,v.jsx)("path",{d:"M6.16667 12.8333C6.81667 12.8333 7.45834 12.5833 7.95001 12.0833C8.91667 11.0916 8.90001 9.51659 7.91667 8.54992C7.42501 8.07492 6.79167 7.83325 6.16667 7.83325C5.51667 7.83325 4.87501 8.08325 4.38334 8.58325C3.41667 9.57492 3.43334 11.1499 4.41667 12.1166C4.90834 12.5916 5.54167 12.8333 6.16667 12.8333ZM5.57501 9.74992C5.73334 9.59159 5.94167 9.49992 6.16667 9.49992C6.38334 9.49992 6.59167 9.58325 6.75001 9.73325C7.08334 10.0583 7.08334 10.5749 6.76667 10.9083C6.60001 11.0749 6.39167 11.1666 6.16667 11.1666C5.95001 11.1666 5.74167 11.0833 5.58334 10.9333C5.25001 10.5999 5.25001 10.0833 5.57501 9.74992ZM17 7.83325H9.50001V12.8333H20.3333V11.1666C20.3333 9.32492 18.8417 7.83325 17 7.83325ZM11.1667 11.1666V9.49992H17C17.9167 9.49992 18.6667 10.2499 18.6667 11.1666H11.1667ZM3.66667 15.3333H8.66667V16.9999H15.3333V15.3333H20.3333V13.6666H3.66667V15.3333Z"}),minus:(0,v.jsx)("path",{d:"M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z"}),no_airplane:(0,v.jsx)("path",{d:"M14.6674 10.0001V2.66675C14.6674 1.56008 13.7741 0.666748 12.6674 0.666748C11.5607 0.666748 10.6674 1.56008 10.6674 2.66675V7.57341L21.1074 18.0134L25.3341 19.3334V16.6667L14.6674 10.0001ZM1.33407 5.02675L7.9874 11.6801L0.000732422 16.6667V19.3334L10.6674 16.0001V23.3334L8.00073 25.3334V27.3334L12.6674 26.0001L17.3341 27.3334V25.3334L14.6674 23.3334V18.3601L22.3074 26.0001L24.0007 24.3067L3.0274 3.33341L1.33407 5.02675Z"}),no_bag:(0,v.jsx)("path",{d:"M16.8992 6.12037H14.9392V3.18101C14.9385 2.92148 14.8351 2.67278 14.6516 2.48926C14.4681 2.30574 14.2194 2.20234 13.9599 2.20166H10.0399C9.78034 2.20234 9.53163 2.30574 9.34811 2.48926C9.16459 2.67278 9.06119 2.92148 9.06051 3.18101V6.12037H8.20711L8.34715 6.25804L14.3973 12.0871V9.06102H15.9676V13.6L17.3022 14.8859L18.8592 16.4748V8.08037C18.8579 7.56096 18.6509 7.06322 18.2836 6.69594C17.9164 6.32867 17.4186 6.12173 16.8992 6.12037ZM5.14051 8.09559L3.77173 6.71825L5.00821 5.48945L7.16586 7.6606L13.9581 14.4953L15.8932 16.4426L19.7441 20.3175L20.2279 20.8043L18.9914 22.0331L17.635 20.6683C17.4035 20.7625 17.154 20.8126 16.8992 20.8133C16.904 20.945 16.8822 21.0763 16.8351 21.1993C16.788 21.3224 16.7166 21.4347 16.6251 21.5296C16.5336 21.6244 16.424 21.6999 16.3027 21.7514C16.1814 21.8029 16.051 21.8295 15.9192 21.8295C15.7874 21.8295 15.657 21.8029 15.5357 21.7514C15.4145 21.6999 15.3048 21.6244 15.2133 21.5296C15.1219 21.4347 15.0504 21.3224 15.0034 21.1993C14.9563 21.0763 14.9344 20.945 14.9392 20.8133H9.06051C9.06529 20.945 9.04348 21.0763 8.99638 21.1993C8.94929 21.3224 8.87787 21.4347 8.7864 21.5296C8.69492 21.6244 8.58527 21.6999 8.46399 21.7514C8.34271 21.8029 8.21229 21.8295 8.08051 21.8295C7.94874 21.8295 7.81832 21.8029 7.69703 21.7514C7.57575 21.6999 7.4661 21.6244 7.37463 21.5296C7.28316 21.4347 7.21174 21.3224 7.16464 21.1993C7.11754 21.0763 7.09573 20.945 7.10051 20.8133C6.58222 20.8119 6.08545 20.6059 5.71835 20.24C5.35126 19.8741 5.14357 19.378 5.14051 18.8597V8.09559ZM14.8632 17.8791L14.3973 17.4103V17.8791H14.8632ZM9.596 12.579V17.8791H8.03083V11.004L9.596 12.579ZM10.5302 3.67134H13.4695V6.12295H10.5302V3.67134Z"}),no_seat:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("path",{d:"M25.1667 21.9733L23.4733 23.6667L2.5 2.69333L4.19333 1L7.16667 3.97333L16.5267 13.3333L19.1933 16L24.5 21.3067L25.1667 21.9733Z"}),(0,v.jsx)("path",{d:"M7.16667 24H3.16667V16H19.1933L24.5 21.3067V24H20.5V20H7.16667V24ZM27.1667 9.33333H23.1667V13.3333H27.1667V9.33333ZM4.5 9.33333H0.5V13.3333H4.5V9.33333ZM20.3333 13.3333H20.5V2.66667C20.5 1.2 19.3 0 17.8333 0H9.83333C9.05784 0 8.3569 0.335483 7.86848 0.868484L20.3333 13.3333ZM16.5267 13.3333L7.16667 3.97333V13.3333H16.5267Z"})]}),north_east:(0,v.jsx)("path",{d:"M4.69999 19.3C4.51665 19.1167 4.42499 18.8833 4.42499 18.6C4.42499 18.3167 4.51665 18.0833 4.69999 17.9L15.6 7H9.99999C9.71665 7 9.47915 6.90417 9.28749 6.7125C9.09582 6.52083 8.99999 6.28333 8.99999 6C8.99999 5.71667 9.09582 5.47917 9.28749 5.2875C9.47915 5.09583 9.71665 5 9.99999 5H18C18.2833 5 18.5208 5.09583 18.7125 5.2875C18.9042 5.47917 19 5.71667 19 6V14C19 14.2833 18.9042 14.5208 18.7125 14.7125C18.5208 14.9042 18.2833 15 18 15C17.7167 15 17.4792 14.9042 17.2875 14.7125C17.0958 14.5208 17 14.2833 17 14V8.4L6.09999 19.3C5.91665 19.4833 5.68332 19.575 5.39999 19.575C5.11665 19.575 4.88332 19.4833 4.69999 19.3Z"}),seat:(0,v.jsx)("path",{d:"M7.59 5.41012C6.81 4.63012 6.81 3.36012 7.59 2.58012C8.37 1.80012 9.64 1.80012 10.42 2.58012C11.2 3.36012 11.2 4.63012 10.42 5.41012C9.63 6.20012 8.37 6.20012 7.59 5.41012ZM6 16.0001V8.00012C6 7.45012 5.55 7.00012 5 7.00012C4.45 7.00012 4 7.45012 4 8.00012V16.0001C4 18.7601 6.24 21.0001 9 21.0001H14C14.55 21.0001 15 20.5501 15 20.0001C15 19.4501 14.55 19.0001 14 19.0001H9C7.34 19.0001 6 17.6601 6 16.0001ZM19.28 19.3501L15.51 15.5801C15.14 15.2101 14.63 15.0001 14.1 15.0001H11.5V11.3201C12.59 12.2101 14.16 13.0201 15.7 13.3401C16.37 13.4801 17 12.9801 17 12.3001C17 11.7701 16.61 11.3401 16.08 11.2501C14.66 11.0101 13.2 10.2401 12.33 9.28012L10.93 7.73012C10.74 7.52012 10.5 7.35012 10.24 7.23012C9.95 7.09012 9.62 7.00012 9.28 7.00012H9.25C8.01 7.00012 7 8.01012 7 9.25012V15.0001C7 16.6601 8.34 18.0001 10 18.0001H15.07L17.85 20.7801C18.24 21.1701 18.89 21.1701 19.28 20.7801C19.68 20.3901 19.68 19.7501 19.28 19.3501Z"}),seat_paid_indicator:(0,v.jsx)("path",{d:"M11.7686 0.731368C12.7766 -0.276576 14.5 0.437294 14.5 1.86274V10.8C14.5 12.5673 13.0673 14 11.3 14H2.36274C0.937294 14 0.223427 12.2766 1.23137 11.2686L11.7686 0.731368Z"}),shield_with_moon:(0,v.jsx)("path",{d:"M12.525 15.75C13.0814 15.75 13.6269 15.6408 14.1615 15.4222C14.6961 15.2036 15.166 14.8757 15.5711 14.4385C15.6749 14.3244 15.7032 14.2033 15.6557 14.0751C15.6083 13.9469 15.5077 13.8629 15.3538 13.8232C14.7269 13.6783 14.1477 13.4183 13.6163 13.0433C13.0849 12.6683 12.6474 12.1789 12.3038 11.5751C11.9769 11.0046 11.7682 10.393 11.6778 9.74048C11.5874 9.08791 11.6589 8.45458 11.8923 7.84048C11.9525 7.68663 11.9301 7.55586 11.8249 7.44817C11.7198 7.34049 11.5916 7.30332 11.4403 7.33665C10.4442 7.59177 9.65927 8.1142 9.08555 8.90395C8.51185 9.69368 8.225 10.5591 8.225 11.5001C8.225 12.6796 8.64519 13.6828 9.48558 14.5097C10.3259 15.3366 11.3391 15.75 12.525 15.75ZM12 21.4808C9.83716 20.8911 8.04646 19.618 6.62787 17.6616C5.20929 15.7052 4.5 13.518 4.5 11.1001V5.34625L12 2.53857L19.5 5.34625V11.1001C19.5 13.518 18.7907 15.7052 17.3721 17.6616C15.9535 19.618 14.1628 20.8911 12 21.4808ZM12 19.9001C13.7333 19.3501 15.1666 18.2501 16.3 16.6001C17.4333 14.9501 18 13.1167 18 11.1001V6.37507L12 4.1347L5.99997 6.37507V11.1001C5.99997 13.1167 6.56664 14.9501 7.69997 16.6001C8.83331 18.2501 10.2666 19.3501 12 19.9001Z"}),stairs:(0,v.jsx)("path",{d:"M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3z M18,8h-2.42v3.33H13v3.33h-2.58 V18H6v-2h2.42v-3.33H11V9.33h2.58V6H18V8z"}),warning:(0,v.jsx)("path",{d:"M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM8.21071 9.25592L10.9548 12L8.21071 14.7441L9.38922 15.9226L12.1333 13.1785L14.8774 15.9226L16.0559 14.7441L13.3118 12L16.0559 9.25592L14.8774 8.07741L12.1333 10.8215L9.38922 8.07741L8.21071 9.25592Z"}),wifi:(0,v.jsx)("path",{d:"M2.83333 9.50005L4.49999 11.1667C8.64166 7.02505 15.3583 7.02505 19.5 11.1667L21.1667 9.50005C16.1083 4.44172 7.89999 4.44172 2.83333 9.50005ZM9.49999 16.1667L12 18.6667L14.5 16.1667C13.125 14.7834 10.8833 14.7834 9.49999 16.1667ZM6.16666 12.8334L7.83333 14.5C10.1333 12.2 13.8667 12.2 16.1667 14.5L17.8333 12.8334C14.6167 9.61672 9.39166 9.61672 6.16666 12.8334Z"})},ap=t=>t in Xs?Xs[t]:(Ks(`The icon "${t}" is missing from ICON_MAP`),null),P=({name:t,size:e,className:r,viewBox:n,style:o})=>(0,v.jsx)("svg",{className:r,width:e||24,height:e||24,viewBox:n||"0 0 24 24","aria-label":t,"data-testid":t,style:{display:"block",fill:"currentColor",...o},children:ap(t)});var Js=D(Ne());var oo=require("react/jsx-runtime"),sp={primary:"button--primary",outlined:"button--outlined",destructive:"button--destructive"},cp={32:"button--32",40:"button--40",48:"button--48"},ee=({iconBefore:t,variant:e="primary",size:r=40,children:n,className:o,type:i="button",...a})=>(0,oo.jsxs)("button",{type:i,className:(0,Js.default)("button",sp[e],cp[r],o),...a,children:[t&&(0,oo.jsx)(P,{className:"duffel-button__icon duffel-button__icon--before",name:t}),n]});var Ai=require("react/jsx-runtime"),pr=({style:t,children:e})=>(0,Ai.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",border:"dashed 1px var(--GREY-300)",borderRadius:"4px",paddingBlock:"32px",...t},children:(0,Ai.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"470px"},children:e})});var Ht=require("react/jsx-runtime"),mr=class extends Qs.default.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){_e(e)}render(){return this.state.hasError?(0,Ht.jsxs)(pr,{children:[(0,Ht.jsx)("p",{style:{marginBlock:"0"},className:"p1--semibold",children:"We ran into an error"}),(0,Ht.jsx)("p",{className:"p1--regular",style:{color:"var(--GREY-600)",marginBlock:"12px",textAlign:"center"},children:"Please try reloading. If the problem persists reach out to our support team."}),(0,Ht.jsx)("div",{children:(0,Ht.jsx)(ee,{variant:"outlined",iconBefore:"autorenew",onClick:()=>location.reload(),children:"Try again"})})]}):this.props.children}};var Gt=require("react/jsx-runtime"),ec=({height:t,message:e})=>(0,Gt.jsxs)(pr,{style:{minHeight:t},children:[(0,Gt.jsx)("p",{style:{marginBlock:"0"},className:"p1--semibold",children:"Failed to load extras"}),(0,Gt.jsx)("p",{className:"p2--regular",style:{color:"var(--GREY-600)",marginBlock:"12px",textAlign:"center"},children:e||"Please try reloading. If the problem persists reach out to our support team."}),(0,Gt.jsx)("div",{children:(0,Gt.jsx)(ee,{variant:"outlined",onClick:()=>location.reload(),iconBefore:"autorenew",children:"Try again"})})]});var gr=t=>t.reduce((e,{id:r,total_amount:n,total_currency:o})=>({[r]:{total_amount:n,total_currency:o},...e}),{});var bt=(t,e,r)=>{if(!t||!e||e.length===0)return 0;let n=gr(t.available_services);return nn(n,e,r)},nn=(t,e,r)=>(e||[]).reduce((n,{quantity:o,id:i})=>{let a=n;return i in t?a+=o*+t[i].total_amount:r?a+=o*lp(i,r):_e(new Error(`The service id (${i}) provided could not be found in neither the offer nor the seat maps.`)),a},0),lp=(t,e)=>{for(let r of e)for(let n of r.cabins)for(let o of n.rows)for(let i of o.sections)for(let a of i.elements)if(a.type==="seat"&&Array.isArray(a.available_services)){let s=a.available_services.find(c=>c.id===t);if(s)return+s.total_amount}return 0};var tc=({baggageSelectedServices:t,seatSelectedServices:e,cfarSelectedServices:r,offer:n,seatMaps:o,passengers:i})=>{let a=[...t||[],...e||[],...r||[]],s=+n.total_amount+bt(n,a,o);return{...n&&{selected_offers:[n.id]},passengers:i,services:up(a),...n&&{payments:[{type:"balance",amount:`${s}`,currency:n.total_currency}]},type:"instant",metadata:{source:"duffel-ancillaries@3.2.0"}}},up=t=>Array.isArray(t)?t.filter(({quantity:e})=>e>0).map(({id:e,quantity:r})=>({id:e,quantity:r})):[];var Pi=t=>(e,r)=>{let{rate:n,amount:o}=t;return{amount:e*(1+n)+o,currency:r}},Di="You cannot supply both markup and priceFormatters for the same service.",rc=(t,e)=>{let r={};if(e&&(e.bags&&(r.bags=e.bags),e.seats&&(r.seats=e.seats),e.cancel_for_any_reason&&(r.cancel_for_any_reason=e.cancel_for_any_reason)),t){if(t.bags){if(e&&e.bags)throw new Error(Di);r.bags=Pi(t.bags)}if(t.seats){if(e&&e.seats)throw new Error(Di);r.seats=Pi(t.seats)}if(t.cancel_for_any_reason){if(e&&e.cancel_for_any_reason)throw new Error(Di);r.cancel_for_any_reason=Pi(t.cancel_for_any_reason)}}return r};var io=t=>t.type==="baggage";var _r=t=>t.type==="cancel_for_any_reason";var fp=(t,e)=>`${t} must all have the same currency, but they have ${e.size} different currencies (${[...e].join(", ")}). Check the price formatters passed into the component's render function.`,nc=(t,e)=>{if(!e)return t;let r=t.available_services,n=new Set,o={baggage:e?.bags,cancel_for_any_reason:e?.cancel_for_any_reason},i=r.map(a=>{let s={...a};if(a.type in o&&o[a.type]){let{total_amount:c,total_currency:l}=a;if(io(a)){let{amount:f,currency:u}=o[a.type](+a.total_amount,a.total_currency,a);c=f.toString(),u&&(l=u)}if(_r(a)){let{amount:f,currency:u}=o[a.type](+a.total_amount,a.total_currency,a);c=f.toString(),u&&(l=u)}if(n.add(l),n.size>1)throw new Error(fp(a.type,n));s.total_amount=c,s.total_currency=l}return s});return{...t,available_services:i}};function ao(t){return t.type==="seat"}var dp=t=>`Seats must all have the same currency, but they have ${t.size} different currencies (${[...t].join(", ")}). Check the price formatters passed into the component's render function.`,pp=(t,e,r)=>{let n={...t};if(ao(n)&&n.available_services.length>0){let o=n.available_services.map(i=>{let a={...i},{amount:s,currency:c}=e(+i.total_amount,i.total_currency,i);if(a.total_amount=s.toString(),c&&(a.total_currency=c,r.add(c),r.size>1))throw new Error(dp(r));return a});n.available_services=o}return n},oc=(t,e)=>{if(!e)return t;let r=new Set;return t.map(o=>{let i=o.cabins.map(a=>{let s=a.rows.map(c=>{let l=c.sections.map(f=>{let u=f.elements.map(m=>pp(m,e,r));return{...f,elements:u}});return{...c,sections:l}});return{...a,rows:s}});return{...o,cabins:i}})};var so=t=>{let e=t.split(", ").map(n=>parseInt(n));return(.2126*e[0]+.7152*e[1]+.0722*e[2])/255>.5};var ic=t=>"selected_offers"in t&&"passengers"in t&&"services"in t&&"payments"in t&&"type"in t&&"metadata"in t;var ac=t=>t.expires_at&&new Date(t.expires_at)<new Date;var on=t=>"data"in t&&Array.isArray(t.data.errors),mp="https://api.duffel.com",gp="3.2.0";async function co(t,e,r="GET",n){st("Making request to the Duffel API",{path:e,method:r});let o=`${mp}/ancillaries-component/${e}`,i=null;try{i=await fetch(o,{method:r,body:n,headers:{"Duffel-Version":"v1",Authorization:`Bearer ${t}`,"User-Agent":`Duffel/ancillaries-component@${gp}`}})}catch(s){throw st("Failed to make request to the Duffel API",{error:s}),s}let a=await i.json();if(Array.isArray(a.errors))throw st("Request to the Duffel API failed",{operation:`${r} ${o}`,method:r,request_id:a?.meta?.request_id,errors:a.errors,status:i.status}),{...i,data:a};return st("Request to the Duffel succeeded",{request_id:a?.meta?.request_id}),a}var sc="https://assets.duffel.com/components/3.2.0",cc=async t=>await(await fetch(sc+`/fixtures/offers/${t}.json`)).json(),lc=async t=>await(await fetch(sc+`/fixtures/seat-maps/${t}.json`)).json();var lo=t=>t.startsWith("fixture_off_");async function uc(t,e){return(await co(e,`offers/${t}?return_available_services=true`)).data}async function fc(t,e,r,n,o){n(!0);let i=lo(t);if(t=i?t.replace("fixture_",""):t,i)return cc(t).then(a=>{n(!1),o(a)});if(!e)throw new Error("Attempted to retrieve seat maps but the client key is missing.");try{let a=await uc(t,e);o(a)}catch(a){let s="An unknown error occurred while retrieving the offer.";a instanceof Error?(s=a.message,a.message.includes("Load failed")&&(s="The Duffel API is not available. Please try again later.")):on(a)&&a.status===404&&(s="The offer you are looking for does not exist or has expired."),on(a)&&a.status>=500&&a.status<600&&_e(new Error(s)),r(s)}finally{n(!1)}}async function dc(t,e){return(await co(e,`offers/${t}/seat_maps`)).data}async function pc(t,e,r,n,o){n(!0);let i=lo(t);if(t=i?t.replace("fixture_",""):t,i)return lc(t).then(a=>{n(!1),o(a)});if(!e)throw new Error("Attemptted to retrieve seat maps but the client key is missing.");try{let a=await dc(t,e);o(a)}catch(a){let s="An unknown error occurred while retrieving the seat maps.";a instanceof Error?(s=a.message,a.message.includes("Load failed")&&(s="The Duffel API is not available. Please try again later.")):on(a)&&(s=a.data.errors[0]?.message||"Received an unknown error from the Duffel API."),_e(new Error(s)),r()}finally{n(!1)}}var Mi=t=>_p(t)&&(wi(t)||ki(t)||Bi(t)||Fi(t)),_p=t=>"onPayloadReady"in t&&"passengers"in t&&"services"in t,wi=t=>"offer_id"in t&&t.offer_id.startsWith("fixture_"),ki=t=>"offer_id"in t&&"client_key"in t,Bi=t=>"offer"in t&&"seat_maps"in t,Fi=t=>"offer"in t&&"client_key"in t;var pe=D(require("react"));var mc=require("react/jsx-runtime"),hr=()=>(0,mc.jsx)("span",{className:"textual-loading-indicator","aria-hidden":"true"});var gc=require("react/jsx-runtime"),ct=({backgroundColor:t,color:e,children:r})=>(0,gc.jsx)("div",{style:{backgroundColor:t,color:e,padding:"2px 8px",whiteSpace:"nowrap",borderRadius:"4px",fontWeight:"600",fontSize:"14px",lineHeight:"20px",textAlign:"center"},children:r});var Sr=(t,e)=>{if(t.available_services.length===0)throw new Error("No services available");let r=t.available_services.find(n=>n.type===e);if(!r)throw new Error(`No ${e} services available`);return r.total_currency};var Ge=t=>(t||[]).reduce((e,{quantity:r})=>e+r,0);var hp={baggage:io,cancel_for_any_reason:_r},yr=(t,e)=>{let r=hp[e];if(!r)throw new Error(`Unknown service type: ${e}`);return t&&Array.isArray(t.available_services)&&t.available_services.some(n=>r(n)&&n.maximum_quantity>0)};var G=(t,e="en-GB",r={})=>n=>{try{let i=new Intl.NumberFormat(e,{style:"currency",currency:t,...r}).format(n);return r&&r.signDisplay&&(r.signDisplay==="always"||r.signDisplay==="exceptZero"&&n!==0)?i.replace(/^([+-])/,"$1 "):i}catch{return`${n} ${t}`}};var Oe=(t,e,r)=>t==1?`${t} ${e}`:`${t} ${r}`;var Mc=D(require("react"));var _c=D(Ne()),hc=D(require("react"));var he=require("react/jsx-runtime"),Er=({buttonTitle:t,title:e,icon:r,copy:n,onClick:o,children:i,isLoading:a,disabled:s,isSelected:c})=>{let l=hc.Children.toArray(i).length>0;return(0,he.jsxs)("button",{type:"button",title:t,...o&&{onClick:o},disabled:s,className:(0,_c.default)("ancillary-card",a&&"ancillary-card--loading"),style:{cursor:"pointer",background:"transparent",color:"var(--GREY-900)",border:"solid 1px rgba(226, 226, 232, 1)",display:"flex",rowGap:"4px",padding:"20px",borderRadius:"8px",justifyContent:"space-between",flexWrap:"wrap",flexDirection:"column",width:"100%",boxSizing:"border-box",fontSize:"16px",fontWeight:"400",lineHeight:"24px",letterSpacing:"0em",transition:"border-color 0.3s var(--TRANSITION-CUBIC-BEZIER) background-color 0.3s var(--TRANSITION-CUBIC-BEZIER)"},children:[(0,he.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",marginBlock:"0",textAlign:"start",marginTop:"2px",columnGap:"12px",width:"100%"},children:[(0,he.jsx)("div",{children:c?(0,he.jsx)(P,{name:"check",className:"ancillary-card__selected-icon"}):(0,he.jsx)(P,{name:r})}),(0,he.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"start",width:"100%"},children:[(0,he.jsx)("p",{className:"p1--semibold",style:{marginBlock:"0"},children:e}),(0,he.jsx)("div",{className:"ancillary-card__children",children:l?i:(0,he.jsx)(P,{name:"expand_content",className:"ancillary-card__expand-icon"})})]})]}),(0,he.jsx)("p",{className:"p1--regular",style:{textAlign:"start",color:"var(--GREY-600)",marginLeft:"34px",marginBlock:"0"},children:n})]})};var Li=t=>{t?document.body.style.overflow="":document.body.style.overflow="hidden"};var yc=D(Ne()),Ec=D(require("react"));var Sc=D(Ne());var Ui=require("react/jsx-runtime"),Sp={primary:"icon-button--primary",outlined:"icon-button--outlined"},an=({icon:t,variant:e="primary",className:r,...n})=>(0,Ui.jsx)("button",{type:"button",className:(0,Sc.default)("icon-button",Sp[e],r),...n,children:(0,Ui.jsx)(P,{name:t})});var vr=require("react/jsx-runtime"),Cr=({children:t,onClose:e,isOpen:r})=>(Ec.useEffect(()=>(Li(!r),()=>Li(!0)),[r]),(0,vr.jsx)("div",{className:(0,yc.default)("modal",r&&"modal--open"),style:{opacity:0},children:(0,vr.jsxs)("div",{role:"presentation",className:"modal--content",children:[t,(0,vr.jsx)(an,{icon:"close",onClick:e,title:"Close modal",className:"modal--close-button"})]})})),br=({children:t})=>(0,vr.jsx)("div",{className:"modal-body",children:t});var uo=t=>t.reduce((e,r)=>({[r.id]:r,...e}),{});var fo=t=>t.slices.reduce((e,r)=>[...e,...r.segments],new Array);var go=D(require("react"));var po=(t,e,r)=>t?t.given_name&&t.family_name?`${t.given_name} ${t.family_name}`:t.given_name?t.given_name:t.family_name?t.family_name:e?.given_name&&e?.family_name?`${e.given_name} ${e.family_name}`:e?.given_name?e.given_name:e?.family_name?e.family_name:`Passenger ${r}`:`Passenger ${r}`;var vc=t=>{if(!t)return _e(new Error("getBaggageServiceDescription was not given any metadata")),null;if(!t.maximum_weight_kg&&!t.maximum_length_cm&&!t.maximum_height_cm&&!t.maximum_depth_cm)return null;let e=t.maximum_length_cm&&t.maximum_height_cm&&t.maximum_depth_cm,r="";e&&(r=` / ${t.maximum_height_cm} x ${t.maximum_length_cm} x ${t.maximum_depth_cm} cm`);let n="";return t.maximum_weight_kg&&(n=`Up to ${t.maximum_weight_kg}kg`),`${n}${r}`};var Cc=(t,e,r,n)=>t.some(o=>o.id===n.id||o.serviceInformation?.type!=="carry_on"&&o.serviceInformation?.type!=="checked"||o.serviceInformation?.segmentId!==e||o.serviceInformation?.passengerId!==r?!1:o.serviceInformation?.type===n.metadata.type);var Tr=require("react/jsx-runtime"),bc=({id:t,min:e,max:r,value:n,onChange:o})=>(0,Tr.jsxs)("div",{className:"counter",id:t,children:[(0,Tr.jsx)(an,{icon:"minus",title:"Remove one",id:`${t}-minus`,"data-testid":`${t}-minus`,variant:"outlined",disabled:n<=e,onClick:()=>o(Math.max(n-1,e))}),(0,Tr.jsx)("div",{className:"counter__count-label",children:n}),(0,Tr.jsx)(an,{icon:"add",title:"Add one",id:`${t}-plus`,"data-testid":`${t}-plus`,variant:"outlined",disabled:n>=r,onClick:()=>o(Math.min(n+1,r))})]});var lt=require("react/jsx-runtime"),Tc=({segmentId:t,passengerId:e,availableService:r,quantity:n,onQuantityChanged:o,selectedServices:i})=>{let a=r.metadata.type==="carry_on"?"Cabin bag":"Checked bag",s=G(r.total_currency)(+r.total_amount),c=vc(r.metadata),l=Cc(i,t,e,r);return(0,lt.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,lt.jsxs)("div",{children:[(0,lt.jsxs)("p",{style:{margin:0},className:"p2--regular",children:[a,(0,lt.jsx)("span",{style:{marginInline:"4px",color:"var(--GREY-400)"},children:"\u2022"}),(0,lt.jsx)("span",{className:"p2--semibold","data-testid":`price-label--${r.id}--${e}`,children:s})]}),(0,lt.jsx)("p",{style:{margin:0,color:"var(--GREY-600)"},className:"p3--regular",children:c})]}),(0,lt.jsx)(bc,{id:`counter--${r.id}--${e}`,min:0,value:n,onChange:o,max:l?0:r.maximum_quantity})]})};var Ic=require("react/jsx-runtime"),Rc=({includedBaggage:t})=>{let{carryOnBagsQuantity:e,checkedBagsQuantity:r}=t.reduce((o,{type:i,quantity:a})=>({carryOnBagsQuantity:o.carryOnBagsQuantity+(i==="carry_on"?a:0),checkedBagsQuantity:o.checkedBagsQuantity+(i==="checked"?a:0)}),{carryOnBagsQuantity:0,checkedBagsQuantity:0}),n=new Array;return e>0&&n.push(Oe(e,"cabin bag","cabin bags")),r>0&&n.push(Oe(r,"checked bag","checked bags")),(0,Ic.jsxs)("div",{style:{marginBlock:"8px",padding:"8px 12px",color:" var(--GREEN-300)",backgroundColor:" var(--GREEN-100)",borderRadius:"6px"},className:"p2--regular",children:[n.join(" and ")," included with ticket"]})};var Tt=require("react/jsx-runtime"),xc=({segmentId:t,passengerId:e,passengerName:r,includedBaggage:n,passengerServicesForSegment:o,selectedServices:i,setSelectedServices:a})=>{let s=n.reduce((c,l)=>c+l.quantity,0);return(0,Tt.jsxs)("div",{style:{marginTop:"24px"},children:[(0,Tt.jsx)("h3",{style:{margin:0},className:"p1--semibold",children:r}),s?(0,Tt.jsx)(Rc,{includedBaggage:n}):null,(0,Tt.jsx)("div",{style:{display:"flex",rowGap:"8px",flexDirection:"column"},children:o.map(c=>(0,Tt.jsx)(Tc,{passengerId:e,segmentId:t,availableService:c,selectedServices:i,quantity:i.find(({id:l})=>l==c.id)?.quantity||0,onQuantityChanged:l=>yp(l,t,e,r,c,i,a)},c.id))}),o.length===0&&(0,Tt.jsx)("p",{style:{color:"var(--GREY-700)",margin:0},children:"Extra baggage is not available for this passenger on this flight"})]})},yp=(t,e,r,n,o,i,a)=>{let s=i.findIndex(({id:l})=>o.id===l),c=Array.from(i);s<0?c.push({id:o.id,quantity:t,serviceInformation:{segmentId:e,passengerId:r,passengerName:n,total_amount:o.total_amount,total_currency:o.total_currency,...o.metadata}}):c[s].quantity=t,a(c.filter(({quantity:l})=>l!==0))};var Hi=require("react/jsx-runtime"),Nc=({offer:t,segment:e,passengersById:r,selectedServices:n,setSelectedServices:o})=>(0,Hi.jsx)(br,{children:e.passengers.map(({passenger_id:i,baggages:a},s)=>(0,Hi.jsx)(xc,{segmentId:e.id,passengerId:i,passengerName:po(r[i],t.passengers.find(({id:c})=>c===i),s+1),includedBaggage:a,passengerServicesForSegment:t.available_services.filter(({type:c,passenger_ids:l,segment_ids:f})=>c==="baggage"&&l.includes(i)&&f.includes(e.id)),selectedServices:n,setSelectedServices:o},i))});var ut=require("react/jsx-runtime"),Oc=({selectedServices:t,servicePrices:e,currency:r,isFirstSegment:n,isLastSegment:o,onNextSegmentButtonClicked:i,onPreviousSegmentButtonClicked:a,onClose:s})=>{let c=Ge(t),l=nn(e,t),f=G(r)(l),u=n&&n;return(0,ut.jsxs)("div",{style:{padding:"16px 24px 24px"},children:[(0,ut.jsxs)("div",{className:"flex--space-between",children:[(0,ut.jsxs)("div",{children:["Price for ",Oe(c,"extra bag","extra bags")]}),(0,ut.jsxs)("div",{className:"h3--semibold","data-testid":"baggage-total-amount-label",children:["+ ",f]})]}),(0,ut.jsxs)("div",{style:u?{marginTop:"16px",display:"grid"}:{marginTop:"16px",display:"grid",columnGap:"12px",gridTemplateColumns:"repeat(2, 1fr)"},children:[!u&&(0,ut.jsx)(ee,{size:48,variant:"outlined",disabled:n,onClick:()=>a(),children:"Back"}),(0,ut.jsx)(ee,{size:48,"data-testid":"confirm-selection-for-baggage",onClick:()=>o?s():i(),children:o?"Confirm":"Next"})]})]})};var mo=t=>{let e=new Date(t);if(isNaN(e.valueOf()))_e(new Error(`formatDateString attempted to parse an invalid date string: ${t}`));else return Ep(e)},Ep=t=>{let{format:e}=new Intl.DateTimeFormat(void 0,{dateStyle:"medium"});return e(t)};var Ye=require("react/jsx-runtime"),Ac=({segmentCount:t,currentSegmentIndex:e,currentSegment:r,setCurrentSegmentIndex:n})=>(0,Ye.jsxs)("div",{style:{padding:"24px 24px 16px"},children:[t>1&&(0,Ye.jsx)("div",{style:{display:"flex",columnGap:"4px"},children:Array(t).fill(0).map((o,i)=>i===e?(0,Ye.jsx)(vp,{},`segment_${i}`):(0,Ye.jsx)(Pc,{onClick:()=>n(i)},`segment_${i}`))}),(0,Ye.jsxs)("h2",{className:"h3--semibold",style:t>1?{marginTop:"12px"}:{},children:["Flight to ",r.destination.iata_code,(0,Ye.jsx)("span",{className:"p2--regular",style:{color:"var(--GREY-600)",marginLeft:"8px"},children:mo(r.departing_at)})]})]}),Pc=({onClick:t,style:e})=>(0,Ye.jsx)("button",{type:"button",onClick:t,style:{border:"none",width:"4px",height:"4px",padding:"0",borderRadius:"4px",backgroundColor:"var(--TERTIARY, rgba(var(--ACCENT), var(--ACCENT-LIGHT-200)))",transition:"background-color 0.3s var(--TRANSITION-CUBIC-BEZIER)",...e}}),vp=()=>(0,Ye.jsx)(Pc,{onClick:void 0,style:{backgroundColor:"var(--SECONDARY, rgb(var(--ACCENT)))"}});var Rr=require("react/jsx-runtime"),Dc=({isOpen:t,offer:e,passengers:r,onClose:n,selectedServices:o})=>{let[i,a]=(0,go.useState)(0),[s,c]=go.default.useState(o);if(!e)return null;let l=fo(e),f=l[i],u=uo(r),m=gr(e.available_services),h=e.base_currency;return yr(e,"baggage")&&(h=Sr(e,"baggage")),(0,Rr.jsxs)(Cr,{isOpen:t,onClose:()=>n(o),children:[(0,Rr.jsx)(Ac,{segmentCount:l.length,currentSegment:f,currentSegmentIndex:i,setCurrentSegmentIndex:S=>a(S)}),(0,Rr.jsx)(Nc,{offer:e,selectedServices:s,passengersById:u,segment:f,setSelectedServices:c}),(0,Rr.jsx)(Oc,{currency:h,selectedServices:s,servicePrices:m,isFirstSegment:i===0,isLastSegment:i+1===l.length,onNextSegmentButtonClicked:()=>a(i+1),onPreviousSegmentButtonClicked:()=>a(i-1),onClose:()=>n(s)})]})};var $e=require("react/jsx-runtime"),wc=({isLoading:t,offer:e,passengers:r,selectedServices:n,setSelectedServices:o})=>{let[i,a]=Mc.default.useState(!1),s=yr(e,"baggage"),c=Ge(n),l=c>0,f=bt(e,n),u=e?.base_currency||"";s&&(u=Sr(e,"baggage"));let m=e?G(u)(f):"0",h=s&&l?`${Oe(c,"bag","bags")} added for ${m}`:"Add any extra baggage you need for your trip";return(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsxs)(Er,{buttonTitle:"Select extra baggage",title:"Extra baggage",copy:h,icon:"cabin_bag",onClick:s?()=>a(!0):null,isLoading:t,disabled:!t&&!s,isSelected:l,children:[t&&(0,$e.jsxs)(ct,{color:"var(--GREY-900)",backgroundColor:"var(--GREY-100)",children:["Loading",(0,$e.jsx)(hr,{})]}),!t&&!s&&(0,$e.jsx)(ct,{color:"var(--GREY-700)",backgroundColor:"var(--GREY-200)",children:"Not available"})]}),(0,$e.jsx)(Dc,{isOpen:!!(i&&e),offer:e,passengers:r,onClose:S=>{let y=JSON.parse(JSON.stringify(S));o(y),a(!1)},selectedServices:n})]})};var Uc=D(require("react"));var sn=require("react/jsx-runtime"),_o=({children:t})=>(0,sn.jsxs)("li",{className:"cfar-modal-list-item",children:[(0,sn.jsx)(P,{name:"check"}),(0,sn.jsx)("p",{children:t})]});var ft=require("react/jsx-runtime"),kc=({offerCurrency:t,service:e})=>(0,ft.jsxs)(br,{children:[(0,ft.jsxs)("ul",{style:{padding:0},children:[(0,ft.jsx)(_o,{children:"Cancel your trip for any reason"}),(0,ft.jsxs)(_o,{children:["Guaranteed refund of"," ",G(t)(+e.metadata.refund_amount)]}),(0,ft.jsx)(_o,{children:"Redeemable up to 24 hours before first flight departure"})]}),(0,ft.jsxs)("a",{href:e.metadata.terms_and_conditions_url,rel:"noopener noreferrer",target:"_blank",className:"p2--regular",style:{color:"var(--GREY-600)"},children:["Terms and conditions",(0,ft.jsx)(P,{name:"north_east",size:16,style:{display:"inline",verticalAlign:"middle",marginLeft:"4px"}})]})]});var Rt=require("react/jsx-runtime"),Bc=({service:t,selectedServices:e,onAddCfarService:r,onRemoveCfarService:n,onClose:o})=>{let i=e.some(({id:s})=>s==t.id),a=G(t.total_currency)(+t.total_amount);return(0,Rt.jsxs)("div",{className:"cfar-modal-footer",children:[(0,Rt.jsx)(ee,{size:48,variant:i?"destructive":"outlined",onClick:i?n:o,children:i?"Remove protection":"Don\u2019t protect trip"}),!i&&(0,Rt.jsxs)(ee,{size:48,"data-testid":"confirm-selection-for-cfar",onClick:r,children:["Add protection for ",a]}),i&&(0,Rt.jsx)(Cp,{})]})},Cp=()=>(0,Rt.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",columnGap:"8px",backgroundColor:"var(--GREY-100)",padding:"var(--space-12)",borderRadius:"var(--BUTTON-RADIUS)"},children:[(0,Rt.jsx)(P,{size:20,name:"shield_with_moon",style:{fill:"var(--SECONDARY, rgb(var(--ACCENT)))"}}),"Your trip is protected"]});var Gi=require("react/jsx-runtime"),Fc=()=>(0,Gi.jsx)("div",{style:{padding:"24px 24px 16px"},children:(0,Gi.jsx)("h2",{className:"h3--semibold",style:{marginBlock:0},children:"Cancel for any reason"})});var dt=require("react/jsx-runtime"),Lc=({isOpen:t,offerCurrency:e,service:r,onClose:n,selectedServices:o})=>(0,dt.jsxs)(Cr,{isOpen:t,onClose:()=>n(o),children:[(0,dt.jsx)(Fc,{}),r&&e&&(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)(kc,{service:r,offerCurrency:e}),(0,dt.jsx)(Bc,{service:r,selectedServices:o,onAddCfarService:()=>n([{id:r.id,quantity:1,serviceInformation:{type:"cancel_for_any_reason",total_amount:r.total_amount,total_currency:r.total_currency,...r.metadata}}]),onRemoveCfarService:()=>n([]),onClose:()=>n(o)})]})]});var We=require("react/jsx-runtime"),Hc=({isLoading:t,offer:e,selectedServices:r,setSelectedServices:n})=>{let[o,i]=Uc.default.useState(!1),a=yr(e,"cancel_for_any_reason"),c=Ge(r)>0,l=e?.base_currency||"";a&&(l=Sr(e,"cancel_for_any_reason"));let f=bt(e,r),u=e?G(l)(f):"0",m=e?.available_services.find(_r),h=a&&c?`Your trip is protected for ${u}`:"Protect your purchase if you decide to cancel";return(0,We.jsxs)(We.Fragment,{children:[(0,We.jsxs)(Er,{buttonTitle:"Add cancel for any reason",title:"Cancel for any reason",copy:h,icon:"shield_with_moon",onClick:a?()=>i(!0):null,isLoading:t,disabled:!t&&!a,isSelected:c,children:[t&&(0,We.jsxs)(ct,{color:"var(--GREY-900)",backgroundColor:"var(--GREY-100)",children:["Loading",(0,We.jsx)(hr,{})]}),!t&&!a&&(0,We.jsx)(ct,{color:"var(--GREY-700)",backgroundColor:"var(--GREY-200)",children:"Not available"})]}),(0,We.jsx)(Lc,{isOpen:!!(o&&e&&m),offerCurrency:e?.base_currency,service:m,onClose:S=>{i(!1),n(S)},selectedServices:r})]})};var Gc=(t,e)=>{for(let r of t)for(let n of r.cabins)for(let o of n.rows)for(let i of o.sections)for(let a of i.elements)if(e(a))return a};var ho=t=>Gc(t,r=>r.type==="seat"&&r.available_services.length>0)?.available_services[0]?.total_currency;var El=D(require("react"));var Yc=t=>t.flatMap(e=>e.passengers.map((r,n)=>({passenger:r,passengerIndex:n,segment:e})));var zi=D(require("react"));var $c=(t,e)=>e.cabins.filter(r=>r.deck===t);var Wc=t=>{let e=new Set;for(let r of t)for(let n of r.rows)for(let o of n.sections)for(let i of o.elements)i.type!=="seat"&&i.type!=="empty"&&e.add(i.type);return e};var Vc=(t,e)=>!!(t.wings&&t.wings.first_row_index<=e&&t.wings.last_row_index>=e);var dl=D(Ne()),pl=D(require("react"));var jc=D(Ne());var Yi=require("react/jsx-runtime"),qc=({value:t,onChange:e,options:r})=>(0,Yi.jsx)("div",{className:"seat-map__tab-select",children:r.map(n=>(0,Yi.jsx)("button",{type:"button",className:(0,jc.default)("seat-map__tab-select-option",{"seat-map__tab-select-option--selected":n===t}),onClick:()=>t!==n&&e(n),children:n},n))});var Zc=require("react/jsx-runtime"),zc=({value:t,setValue:e})=>{let r=["Lower deck","Upper deck"];return(0,Zc.jsx)(qc,{options:r,value:r[t],onChange:n=>e(r.indexOf(n))})};var te=require("react/jsx-runtime"),Kc=({symbols:t})=>(0,te.jsxs)("div",{className:"seat-map__legend",children:[(0,te.jsxs)("span",{className:"seat-map__legend-item",children:[(0,te.jsx)("span",{className:"seat-map__legend-seat seat-map__legend-seat--fee-payable","aria-label":"Additional cost for seat",children:(0,te.jsx)(P,{name:"seat_paid_indicator",className:"seat-map__legend-seat--fee-payable-indicator",size:12})}),"Additional Cost"]}),(0,te.jsxs)("span",{className:"seat-map__legend-item",children:[(0,te.jsx)("span",{className:"seat-map__legend-seat seat-map__legend-seat--included","aria-label":"Included seat"}),"Included"]}),(0,te.jsxs)("span",{className:"seat-map__legend-item",children:[(0,te.jsx)("span",{className:"seat-map__legend-seat seat-map__legend-seat--selected","aria-label":"Selected seat"}),"Selected"]}),(0,te.jsxs)("span",{className:"seat-map__legend-item",children:[(0,te.jsx)("span",{className:"seat-map__legend-seat","aria-label":"Unavailable seat",children:(0,te.jsx)(P,{name:"close",size:14})}),"Unavailable"]}),[...t].map(e=>(0,te.jsxs)("span",{className:"seat-map__legend-item seat-map__legend-item--symbol",children:[(0,te.jsx)(P,{name:e,size:20}),e.split("_")[0]]},e))]});var Xc=t=>{let e=Object.values(t.sections).map(r=>r.elements).reduce((r,n)=>r.concat(n),[]).filter(r=>r.type==="seat");return e.length>0?e[0].designator.substring(0,e[0].designator.length-1):null};var ll=D(Ne()),Vi=D(require("react"));var Jc=D(Ne());var $i=require("react/jsx-runtime"),bp=["bassinet","exit_row"],Qc=({type:t})=>(0,$i.jsx)("div",{className:(0,Jc.default)("map-element map-element--amenity",{"map-element--wrapped":!bp.includes(t)}),"aria-label":t.toString(),children:(0,$i.jsx)(P,{name:t,size:16})});var el=require("react/jsx-runtime"),cn=()=>(0,el.jsx)("div",{className:"map-element map-element--empty"});var tl=D(Ne());var So=require("react/jsx-runtime"),rl=({isRight:t})=>(0,So.jsx)("div",{className:(0,tl.default)("map-element map-element--exit",{"map-element--exit--right":t}),children:t?(0,So.jsx)(P,{name:"exit_row_right"}):(0,So.jsx)(P,{name:"exit_row"})});var nl=(t="")=>t.split(" ").map(e=>e[0]).slice(0,2).join("");var al=D(Ne());var It=require("react/jsx-runtime"),ol=({seat:t,service:e})=>{let r=e?G(e.total_currency)(+e.total_amount):"";return(0,It.jsxs)("div",{className:"seat-info",children:[(0,It.jsxs)("div",{className:"seat-info__details",children:[(0,It.jsx)("strong",{children:t?.designator}),(0,It.jsxs)("span",{children:[t?.name||"Seat"," "]}),(0,It.jsx)("strong",{children:r})]}),t?.disclosures.map((n,o)=>(0,It.jsx)("div",{className:"seat-info__disclosure",children:n},o))]})};var Wi=require("react/jsx-runtime"),il=({seat:t})=>(0,Wi.jsx)("span",{className:"map-element map-element__seat","aria-label":`${t.designator} ${t.name||"Seat"} Unavailable`,children:(0,Wi.jsx)(P,{name:"close",size:14})});var pt=require("react/jsx-runtime"),sl=({element:t,currentPassengerId:e,currentSegmentId:r,currentPassengerName:n,onSeatToggled:o,selectedServicesMap:i})=>{let a=t.available_services.find(O=>O.passenger_id===e);if(!a)return(0,pt.jsx)(il,{seat:t});let s=Object.values(i).find(O=>O.serviceInformation?.designator===t.designator&&O.serviceInformation?.segmentId===r),c=s!=null,l=c?nl(s.serviceInformation?.passengerName):t.designator.charAt(t.designator.length-1),f=!isNaN(+a?.total_amount)&&+a?.total_amount!=0,u=!c&&a.passenger_id===e,m=!c||c&&r===s.serviceInformation?.segmentId&&e===s.serviceInformation?.passengerId,h=(0,al.default)("map-element","map-element__seat",{"map-element--available":u,"map-element--selected":c,"map-element--actionable":m}),S=G(a.total_currency)(+a.total_amount),y=c&&r===s.serviceInformation?.segmentId&&e===s.serviceInformation?.passengerId;return(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsxs)("button",{type:"button","data-testid":`seat-${t.designator}`,id:t.designator,className:h,onClick:()=>{m&&o({quantity:c?0:1,id:a.id,serviceInformation:{type:"seat",segmentId:r,passengerId:e,passengerName:n,designator:t.designator,disclosures:t.disclosures,total_amount:a.total_amount,total_currency:a.total_currency}})},"aria-label":`${t.designator} ${t.name||"Seat"} ${S}`,children:[f&&(0,pt.jsx)(P,{name:"seat_paid_indicator",className:"map-element--fee-payable",size:16}),l]}),y&&(0,pt.jsx)(ol,{seat:t,service:a})]})};var xt=require("react/jsx-runtime"),cl=({element:t,elementIndex:e,sectionIndex:r,onSeatToggled:n,selectedServicesMap:o,currentPassengerId:i,currentSegmentId:a,currentPassengerName:s})=>(0,xt.jsx)(xt.Fragment,{children:ao(t)?(0,xt.jsx)(sl,{currentSegmentId:a,currentPassengerId:i,currentPassengerName:s,selectedServicesMap:o,element:t,onSeatToggled:n},e):t.type==="empty"?(0,xt.jsx)(cn,{},e):t.type==="exit_row"?(0,xt.jsx)(rl,{isRight:r>0},e):(0,xt.jsx)(Qc,{type:t.type},e)});var mt=require("react/jsx-runtime"),ul=({row:t,rowNumber:e,hasWings:r,section:n,sectionIndex:o,onSeatToggled:i,selectedServicesMap:a,currentPassengerId:s,currentPassengerName:c,currentSegmentId:l})=>{let f=Object.keys(t.sections).length,u=f===1;return(0,mt.jsxs)(Vi.Fragment,{children:[(0,mt.jsx)("div",{className:(0,ll.default)("map-section",{"map-section--left":o===0,"map-section--right":u?!1:o===f-1,"map-section--wing":r}),children:n.elements.length>0?n.elements.map((m,h)=>(0,mt.jsx)(Vi.Fragment,{children:(0,mt.jsx)(cl,{sectionIndex:o,elementIndex:h,element:m,selectedServicesMap:a,onSeatToggled:i,currentPassengerId:s,currentSegmentId:l,currentPassengerName:c})},h)):(0,mt.jsx)(cn,{})}),(o<f-1||u&&o<f)&&(0,mt.jsx)("span",{className:"map-section__aisle",children:e}),u&&o===t.sections.length-1&&(0,mt.jsx)(cn,{})]},o)};var ln=require("react/jsx-runtime"),fl=({row:t,hasWings:e,onSeatToggled:r,selectedServicesMap:n,currentPassengerId:o,currentPassengerName:i,currentSegmentId:a})=>{let s=Xc(t);return(0,ln.jsx)(ln.Fragment,{children:t.sections.map((c,l)=>(0,ln.jsx)(ul,{row:t,rowNumber:s,hasWings:e,section:c,sectionIndex:l,selectedServicesMap:n,onSeatToggled:r,currentPassengerId:o,currentPassengerName:i,currentSegmentId:a},l))})};var un=require("react/jsx-runtime"),ji=()=>(0,un.jsxs)(pr,{children:[(0,un.jsx)("p",{style:{marginBlock:"0"},className:"p1--semibold",children:"Seat selection unavailable"}),(0,un.jsx)("p",{className:"p1--regular",style:{color:"var(--GREY-600)",marginBlock:"12px",textAlign:"center"},children:"Unfortunately seat selection is not available for this flight. A seat will be allocated by the airline."})]});var Ve=require("react/jsx-runtime"),ml=({seatMap:t,onSeatToggled:e,selectedServicesMap:r,currentPassengerId:n,currentPassengerName:o,currentSegmentId:i})=>{let[a,s]=pl.useState(0);if(!t||!t.cabins||!t.cabins.length)return(0,Ve.jsx)(ji,{});let c=$c(a,t),l=c.length!==t.cabins.length,f=t.cabins.some(m=>m.wings);if(!c||!c.length)return(0,Ve.jsx)(ji,{});let u=Wc(c);return(0,Ve.jsxs)("div",{className:(0,dl.default)("seat-map",{"seat-map--wings":f}),children:[l&&(0,Ve.jsx)(zc,{value:a,setValue:m=>{s(m)}}),(0,Ve.jsx)("div",{className:"seat-map__legend-container",children:(0,Ve.jsx)(Kc,{symbols:u})}),c.map((m,h)=>(0,Ve.jsx)("div",{className:"seat-map__map-container",style:{"--CABIN-AISLES":m.aisles},children:m.rows.map((S,y)=>(0,Ve.jsx)(fl,{row:S,hasWings:Vc(m,y),onSeatToggled:e,selectedServicesMap:r,currentPassengerId:n,currentPassengerName:o,currentSegmentId:i},y))},`cabin-${h}`))]})};var qi=require("react/jsx-runtime"),gl=t=>(0,qi.jsx)(br,{children:(0,qi.jsx)(ml,{...t})});var gt=require("react/jsx-runtime"),_l=({selectedServices:t,servicePrices:e,currency:r,isFirstSegment:n,isLastSegment:o,onNextSegmentButtonClicked:i,onPreviousSegmentButtonClicked:a,onClose:s,seatMaps:c})=>{let l=Ge(t),f=nn(e,t,c),u=G(r)(f),m=n&&o;return(0,gt.jsxs)("div",{style:{padding:"16px 24px 24px"},children:[(0,gt.jsxs)("div",{className:"flex--space-between",children:[(0,gt.jsxs)("div",{children:["Price for ",Oe(l,"seat","seats")]}),(0,gt.jsxs)("div",{className:"h3--semibold",children:["+ ",u]})]}),(0,gt.jsxs)("div",{style:m?{marginTop:"16px",display:"grid"}:{marginTop:"16px",display:"grid",columnGap:"12px",gridTemplateColumns:"repeat(2, 1fr)"},children:[!m&&(0,gt.jsx)(ee,{size:48,disabled:n,variant:"outlined",onClick:()=>a(),children:"Back"}),(0,gt.jsx)(ee,{size:48,"data-testid":"confirm-selection-for-seats",onClick:()=>o?s():i(),children:o?"Confirm":"Next"})]})]})};var Ae=require("react/jsx-runtime"),hl=({segmentAndPassengerPermutationsCount:t,currentSegmentAndPassengerPermutationsIndex:e,currentSegment:r,currentPassengerName:n,setCurrentSegmentAndPassengerPermutationsIndex:o})=>(0,Ae.jsxs)("div",{style:{padding:"24px 24px 16px"},children:[t>1&&(0,Ae.jsx)("div",{style:{display:"flex",columnGap:"4px"},children:Array(t).fill(0).map((i,a)=>a===e?(0,Ae.jsx)(Tp,{},`segment_${a}`):(0,Ae.jsx)(Sl,{onClick:()=>o(a)},`segment_${a}`))}),(0,Ae.jsxs)("h2",{className:"h3--semibold",style:t>1?{marginBlock:"12px 0px"}:{},children:["Flight to ",r.destination.iata_code,(0,Ae.jsx)("span",{className:"p2--regular",style:{color:"var(--GREY-600)",marginLeft:"8px"},children:mo(r.departing_at)})]}),(0,Ae.jsx)("p",{className:"h3--semibold",style:{color:"var(--GREY-600)",marginBlock:"0 4px"},children:n})]}),Sl=({onClick:t,style:e})=>(0,Ae.jsx)("button",{type:"button",onClick:t,style:{border:"none",width:"4px",height:"4px",padding:"0",borderRadius:"4px",backgroundColor:"var(--TERTIARY, rgba(var(--ACCENT), var(--ACCENT-LIGHT-200)))",transition:"background-color 0.3s var(--TRANSITION-CUBIC-BEZIER)",...e}}),Tp=()=>(0,Ae.jsx)(Sl,{onClick:void 0,style:{backgroundColor:"var(--SECONDARY, rgb(var(--ACCENT)))"}});var Ir=require("react/jsx-runtime"),yl=({isOpen:t,offer:e,passengers:r,seatMaps:n,selectedServices:o,onClose:i})=>{let[a,s]=zi.default.useState(0),[c,l]=zi.default.useState(o),f=c.reduce((K,X)=>({...K,[X.id]:X}),{});if(!e||!n)return null;let u=fo(e),m=uo(r),h=gr(e.available_services),S=Yc(u),{passenger:{passenger_id:y},passengerIndex:O,segment:{id:N}}=S[a],C=u.find(({id:K})=>K===N),ce=m[y],j=n.find(K=>K.segment_id===N),qe=po(ce,e.passengers[O],O+1),ye=K=>{let X=new Array;for(let De of c){let Wt=De.id===K.id&&K.quantity===0,xr=De.serviceInformation?.segmentId===N&&De.serviceInformation?.passengerId===y;!Wt&&!xr&&(X=[...X,De])}K.quantity>0&&(X=[...X,K]),l(X)},$t=ho(n)??e.total_currency;return(0,Ir.jsxs)(Cr,{isOpen:t,onClose:()=>i(o),children:[(0,Ir.jsx)(hl,{segmentAndPassengerPermutationsCount:S.length,currentSegment:C,currentPassengerName:qe,currentSegmentAndPassengerPermutationsIndex:a,setCurrentSegmentAndPassengerPermutationsIndex:s}),(0,Ir.jsx)(gl,{selectedServicesMap:f,seatMap:j,onSeatToggled:ye,currentPassengerId:y,currentPassengerName:qe,currentSegmentId:N}),(0,Ir.jsx)(_l,{seatMaps:n,currency:$t,selectedServices:c,servicePrices:h,isFirstSegment:a===0,isLastSegment:a+1===S.length,onNextSegmentButtonClicked:()=>{s(a+1)},onPreviousSegmentButtonClicked:()=>{s(a-1)},onClose:()=>i(c)})]})};var je=require("react/jsx-runtime"),vl=({isLoading:t,offer:e,seatMaps:r,passengers:n,selectedServices:o,setSelectedServices:i})=>{let[a,s]=El.default.useState(!1),c=Array.isArray(r)&&r.length>0,l=Ge(o),f=l>0,u=bt(e,o,r),m=e?.base_currency??"";r&&(m=ho(r)??m);let h=e?G(m)(u):"0",S=c&&f?`${Oe(l,"seat","seats")} selected for ${h}`:"Specify where on the plane you\u2019d like to sit";return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsxs)(Er,{buttonTitle:"Select seats",title:"Seat selection",copy:S,icon:"flight_class",onClick:c?()=>s(!0):null,isLoading:t,disabled:t&&!c,isSelected:f,children:[t&&(0,je.jsxs)(ct,{color:"var(--GREY-900)",backgroundColor:"var(--GREY-100)",children:["Loading",(0,je.jsx)(hr,{})]}),!t&&!c&&(0,je.jsx)(ct,{color:"var(--GREY-700)",backgroundColor:"var(--GREY-200)",children:"Not available"})]}),(0,je.jsx)(yl,{isOpen:!!(e&&r&&a),seatMaps:r,offer:e,passengers:n,selectedServices:o,onClose:y=>{i(y),s(!1)}})]})};var Se=require("react/jsx-runtime"),Rp="https://assets.duffel.com/components/3.2.0",Ip=`${Rp}/global.css`,xp=t=>{if(ro(t.debug||!1),st("Properties passed into the component:",t),!Mi(t))throw new Error(`The props (${Object.keys(t)}) passed to DuffelAncillaries are invalid. \`onPayloadReady\`, \`passengers\` and \`services\` are always required. Then, depending on your use case you may have one of the following combinations of required props: \`offer_id\` and \`client_key\`, \`offer\` and \`seat_maps\` or \`offer\` and \`client_key\`.Please refer to the documentation for more information and working examples: https://duffel.com/docs/guides/ancillaries-component`);if(t.services.length===0)throw new Error('You must provide at least one service in the "services" prop. Valid services: ["bags", "seats", "cancel_for_any_reason"]');let e=wi(t),r=ki(t),n=Bi(t),o=Fi(t),i=t.services.includes("seats")&&!("seat_maps"in t)&&(e||r||o),[a,s]=pe.useState(t.passengers),[c,l]=pe.useState(t.offer),[f,u]=pe.useState(r),[m,h]=pe.useState(n?t.seat_maps:void 0),[S,y]=pe.useState(i),[O,N]=pe.useState(null),[C,ce]=pe.useState([]),[j,qe]=pe.useState([]),[ye,$t]=pe.useState([]),K=rc(t.markup,t.priceFormatters),X=k=>{let le="This offer has expired.";if(ac(k)){N(le);return}else{let Or=new Date(k?.expires_at)?.getTime()-Date.now(),Ot=1e3*60*60*24;Or<Ot&&setTimeout(()=>N(le),Or)}let Nr=nc(k,K);l(Nr)},De=k=>{let le=oc(k,K.seats);h(le)};if(pe.useEffect(()=>{Yn("props",{"props.services":t.services,"props.passengers.length":t.passengers.length,"props.offer_id":t.offer_id,"props.client_key":t.client_key,"props.offer?.id":t.offer?.id,"props.seat_maps?.[0]?.id":t.seat_maps?.[0]?.id}),(r||e)&&fc(t.offer_id,e?null:t.client_key,N,u,k=>{if(X(k),k.passengers.length!==a.length)throw new Error(`The number of passengers given to \`duffel-ancillaries\` (${t.passengers.length}) doesn't match the number of passengers on the given offer (${k.passengers.length}).`);e&&s(t.passengers.map((le,Nr)=>({...le,id:k.passengers[Nr].id})))}),i&&pc(r||e?t.offer_id:t.offer.id,e?null:t.client_key,()=>De([]),y,De),o&&X(t.offer),n&&(X(t.offer),De(t.seat_maps))},[t.offer_id,t.client_key,t.offer?.id,t.seat_maps?.[0]?.id]),pe.useEffect(()=>{if(!c)return;let k=tc({baggageSelectedServices:C,seatSelectedServices:j,cfarSelectedServices:ye,offer:c,passengers:a,seatMaps:m});if(ic(k)){let le={offer_total_amount:c.total_amount,offer_total_currency:c.total_currency,offer_tax_amount:c.tax_amount,offer_tax_currency:c.tax_currency,baggage_services:C,seat_services:j,cancel_for_any_reason_services:ye};st("Payload ready",{"Order creation payload":k,"Services metadata":le}),t.onPayloadReady(k,le)}},[C,j,ye]),!Mi(t))return null;let Wt=`${72*t.services.length+32*(t.services.length-1)}px`,xr={display:"flex",width:"100%",flexDirection:"column",rowGap:"12px",...t.styles?.accentColor&&{"--ACCENT":t.styles.accentColor},...t.styles?.accentColor&&so(t.styles.accentColor)&&{"--SECONDARY":"var(--GREY-900)","--TERTIARY":"var(--GREY-400)"},...t.styles?.fontFamily&&{"--FONT-FAMILY":t.styles.fontFamily},...t.styles?.buttonCornerRadius&&{"--BUTTON-RADIUS":t.styles.buttonCornerRadius}};return st("Component's internal state:",{isOfferLoading:f,isSeatMapLoading:S,baggageSelectedServices:C,seatSelectedServices:j,cfarSelectedServices:ye,offer:c,seatMaps:m,error:O}),(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("link",{rel:"stylesheet",href:Ip}),(0,Se.jsx)("div",{className:"duffel-components",style:xr,children:(0,Se.jsxs)(mr,{children:[O&&(0,Se.jsx)(ec,{height:Wt,message:O}),!O&&t.services.map(k=>{if(k==="bags")return(0,Se.jsx)(wc,{isLoading:f,offer:c,passengers:a,selectedServices:C,setSelectedServices:ce},"bags");if(k==="seats")return(0,Se.jsx)(vl,{isLoading:f||S,seatMaps:m,offer:c,passengers:a,selectedServices:j,setSelectedServices:qe},"seats");if(k==="cancel_for_any_reason")return(0,Se.jsx)(Hc,{isLoading:f,offer:c,selectedServices:ye,setSelectedServices:$t},"cancel_for_any_reason")})]})})]})};var Nt=D(bl());var Rl="https://js.stripe.com/v3",Np=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Tl="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",Op=function(){for(var e=document.querySelectorAll('script[src^="'.concat(Rl,'"]')),r=0;r<e.length;r++){var n=e[r];if(Np.test(n.src))return n}return null},Ap=function(e){var r=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(Rl).concat(r);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n},Pp=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"1.54.0",startTime:r})},Eo=null,Dp=function(e){return Eo!==null||(Eo=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe&&e&&console.warn(Tl),window.Stripe){r(window.Stripe);return}try{var o=Op();o&&e?console.warn(Tl):o||(o=Ap(e)),o.addEventListener("load",function(){window.Stripe?r(window.Stripe):n(new Error("Stripe.js not available"))}),o.addEventListener("error",function(){n(new Error("Failed to load Stripe.js"))})}catch(i){n(i);return}})),Eo},Mp=function(e,r,n){if(e===null)return null;var o=e.apply(void 0,r);return Pp(o,n),o},Il=Promise.resolve().then(function(){return Dp(null)}),xl=!1;Il.catch(function(t){xl||console.warn(t)});var Nl=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];xl=!0;var o=Date.now();return Il.then(function(i){return Mp(i,r,o)})};var Pe=D(require("react"));var Z=require("react/jsx-runtime"),wp="https://assets.duffel.com/components/3.2.0",kp=`${wp}/global.css`,Bp="card",Fp="3.2.0",Lp={color:"var(--GREY-900)",fontFamily:'"-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "sans-serif"',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#ababb4"}},Up={color:"#ef4444",iconColor:"#ef4444"},Hp=({styles:t,paymentIntentClientToken:e,onSuccessfulPayment:r,onFailedPayment:n})=>{let[o,i]=Pe.useState(null),[a,s]=Pe.useState(!1),[c,l]=Pe.useState(!1),[f,u]=Pe.useState(!1),[m,h]=Pe.useState(""),S=(0,Nt.useStripe)(),y=(0,Nt.useElements)();return Pe.useEffect(()=>{if(y&&!o){let N=y?.getElement(Bp);N&&i(N)}},[y,o]),Pe.useEffect(()=>{o&&o.on("change",N=>{let{error:C,complete:ce}=N;C?(l(!0),h(C.message)):l(!1),s(!!ce)})},[o]),e?(0,Z.jsx)("div",{className:"card-payment__container",children:(0,Z.jsxs)("form",{onSubmit:async N=>{if(N.preventDefault(),!(!S||!y)&&o){u(!0);let C=atob(e),ce=JSON.parse(C),{client_secret:j}=ce,qe=await S.confirmCardPayment(j,{payment_method:{card:o,metadata:{duffel_components_version:Fp||"failed-to-get-version"}}});if(u(!1),qe.error){let{error:ye}=qe;n(ye)}else r()}},children:[f&&(0,Z.jsx)("div",{className:"card-payment--in-progress","aria-live":"polite","aria-busy":"true"}),(0,Z.jsx)(Nt.CardElement,{className:"card-details",options:{style:{base:{...Lp,...t?.fontFamily&&{fontFamily:t.fontFamily}},invalid:{...Up}}}}),(0,Z.jsx)("div",{className:"card-payment__container--invalid",role:"alert",children:c&&m}),(0,Z.jsx)(ee,{className:"card-payment__pay-button",type:"submit",disabled:!a||f,"aria-label":"Pay",children:f?"Processing...":"Pay"})]})}):null},Gp=t=>{let[e,r]=Pe.useState(null);ro(t.debug||!1);let n=atob(t.paymentIntentClientToken),o;try{o=JSON.parse(n)}catch{throw new Error("Invalid Duffel payment intent client token provided")}let{publishable_key:i}=o;Pe.useEffect(()=>{if(!e&&i){let s=Nl(i);s&&r(s)}},[e,i]);let a={...t.styles?.accentColor&&{"--ACCENT":t.styles.accentColor},...t.styles?.accentColor&&so(t.styles.accentColor)&&{"--SECONDARY":"black","--TERTIARY":"grey"},...t.styles?.fontFamily&&{"--FONT-FAMILY":t.styles.fontFamily},...t.styles?.buttonCornerRadius&&{"--BUTTON-RADIUS":t.styles.buttonCornerRadius}};return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("link",{rel:"stylesheet",href:kp}),(0,Z.jsx)("div",{className:"duffel-components",style:a,children:(0,Z.jsx)(mr,{children:(0,Z.jsx)(Nt.Elements,{stripe:e,children:(0,Z.jsx)(Hp,{...t})})})})]})};var Yt=D(require("react"));function Ol(t){if(t.split(".").length!==3)throw new Error("Invalid clientKey attribute in DuffelCardForm. It must be a valid JWT.");let e=t.split(".")[1];try{return JSON.parse(atob(e)).token}catch{throw new Error("Invalid clientKey attribute in DuffelCardForm. It was not possible to read the payload.")}}function Al(t,{setIFrameHeight:e,onValidateSuccess:r,onValidateFailure:n,onCreateCardForTemporaryUseSuccess:o,onCreateCardForTemporaryUseFailure:i}){return function(s){if(!t?.startsWith(s.origin)||!s.data||!s.data.type)return;let c=s?.data?.type;switch(c){case"iframe-loaded":e(s.data.height);return;case"validate-success":r();return;case"validate-failure":n();return;case"create-card-for-temporary-use-success":o(s.data.data);return;case"create-card-for-temporary-use-failure":i(s.data.error);return;default:console.log(`Unknown event type: ${c}`);return}}}var Pl=require("react/jsx-runtime"),Yp="https://localhost:8000/iframe.html",$p=({clientKey:t,styles:e,shouldUseLocalTokenProxy:r,actions:n,onValidateSuccess:o,onValidateFailure:i,onCreateCardForTemporaryUseSuccess:a,onCreateCardForTemporaryUseFailure:s})=>{let c=r?Yp:"https://api.duffel.cards/iframe.html";if(typeof c!="string")throw new Error("TOKEN_PROXY_IFRAME_BASE_URL is not defined");let l=new URL(c),[f,u]=Yt.useState("0px"),m=Yt.useRef(null),h={token:Ol(t),...e?.fontFamily&&{font:e?.fontFamily},...e?.stylesheetUrl&&{stylesheet:e?.stylesheetUrl}},S=`${l}?${new URLSearchParams(h).toString()}`;Yt.useEffect(()=>{let O=Al(l.origin,{setIFrameHeight:u,onValidateSuccess:o,onValidateFailure:i,onCreateCardForTemporaryUseSuccess:a,onCreateCardForTemporaryUseFailure:s});return window.addEventListener("message",O),()=>window.removeEventListener("message",O)},[]);function y(){if(!m.current)throw new Error("Attempted to call `sendMessageToStoreCardForTemporaryUse` with empty iFrameReference");let O=m.current;if(!O.contentWindow)throw new Error("Attempted to call `sendMessageToStoreCardForTemporaryUse` but the iFrame contentWindow is null");O.contentWindow.postMessage({type:"create-card-for-temporary-use"},l.origin)}return Yt.useEffect(()=>{n.includes("create-card-for-temporary-use")&&y()},[n]),(0,Pl.jsx)("iframe",{ref:m,title:"Card Payment Form",src:S,style:{width:"100%",border:"none",height:f}})};
30
+ http://duffel.com/docs/guides/ancillaries-component`),a1=!0},l1=t=>{c1()?console.info(Ui,t):rn({category:"log",message:t})};function dt(t,e){let r=[];Array.isArray(e)?r=e:r=Object.entries(e).map(([n,o])=>({property:n,value:o})),c1()?(console.groupCollapsed(Ui,t),r.forEach(n=>{console.info(n)}),console.groupEnd()):rn({category:"log.group",message:t,data:e})}var S=require("react/jsx-runtime"),u1={accessible:(0,S.jsx)("path",{d:"M12 6C11.45 6 10.9792 5.80417 10.5875 5.4125C10.1958 5.02083 10 4.55 10 4C10 3.45 10.1958 2.97917 10.5875 2.5875C10.9792 2.19583 11.45 2 12 2C12.55 2 13.0208 2.19583 13.4125 2.5875C13.8042 2.97917 14 3.45 14 4C14 4.55 13.8042 5.02083 13.4125 5.4125C13.0208 5.80417 12.55 6 12 6ZM17 22V17H12C11.45 17 10.9792 16.8042 10.5875 16.4125C10.1958 16.0208 10 15.55 10 15V9C10 8.45 10.1958 7.97917 10.5875 7.5875C10.9792 7.19583 11.45 7 12 7C12.4 7 12.7458 7.0875 13.0375 7.2625C13.3292 7.4375 13.6417 7.71667 13.975 8.1C14.8917 9.2 15.7208 9.95417 16.4625 10.3625C17.2042 10.7708 18.05 10.9833 19 11V13C18.1167 13 17.225 12.8083 16.325 12.425C15.425 12.0417 14.65 11.5833 14 11.05V14.5H17C17.55 14.5 18.0208 14.6958 18.4125 15.0875C18.8042 15.4792 19 15.95 19 16.5V22H17ZM10 22C8.61667 22 7.4375 21.5125 6.4625 20.5375C5.4875 19.5625 5 18.3833 5 17C5 15.8 5.37917 14.7417 6.1375 13.825C6.89583 12.9083 7.85 12.3333 9 12.1V14.15C8.41667 14.3833 7.9375 14.7542 7.5625 15.2625C7.1875 15.7708 7 16.35 7 17C7 17.8333 7.29167 18.5417 7.875 19.125C8.45833 19.7083 9.16667 20 10 20C10.65 20 11.2292 19.8125 11.7375 19.4375C12.2458 19.0625 12.6167 18.5833 12.85 18H14.9C14.6667 19.15 14.0917 20.1042 13.175 20.8625C12.2583 21.6208 11.2 22 10 22Z"}),add:(0,S.jsx)("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"}),apartment:(0,S.jsx)("path",{d:"M3.8496 19.9752V7.2744H7.4496V3.6744H15.9504V10.8744H20.1504V19.9752H13.4496V16.3752H10.5504V19.9752H3.8496ZM5.1504 18.6744H7.4496V16.3752H5.1504V18.6744ZM5.1504 14.7744H7.4496V12.4752H5.1504V14.7744ZM5.1504 10.8744H7.4496V8.5752H5.1504V10.8744ZM8.7504 14.7744H11.0496V12.4752H8.7504V14.7744ZM8.7504 10.8744H11.0496V8.5752H8.7504V10.8744ZM8.7504 7.2744H11.0496V4.9752H8.7504V7.2744ZM12.3504 14.7744H14.6496V12.4752H12.3504V14.7744ZM12.3504 10.8744H14.6496V8.5752H12.3504V10.8744ZM12.3504 7.2744H14.6496V4.9752H12.3504V7.2744ZM16.5504 18.6744H18.8496V16.3752H16.5504V18.6744ZM16.5504 14.7744H18.8496V12.4752H16.5504V14.7744Z"}),arrow_forward:(0,S.jsx)("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z"}),arrow_left:(0,S.jsx)("path",{d:"M9 19L2 12L9 5L10.425 6.4L5.825 11H22V13H5.825L10.4 17.6L9 19Z"}),arrow_right:(0,S.jsx)("path",{d:"M15 19L13.6 17.6L18.2 13H2V11H18.2L13.6 6.4L15 5L22 12L15 19Z"}),atm:(0,S.jsx)("path",{d:"M10.375 15V10.5H8.125V9H14.125V10.5H11.875V15H10.375ZM2 15V10C2 9.71667 2.09583 9.47917 2.2875 9.2875C2.47917 9.09583 2.71667 9 3 9H6C6.28333 9 6.52083 9.09583 6.7125 9.2875C6.90417 9.47917 7 9.71667 7 10V15H5.5V13.5H3.5V15H2ZM3.5 12H5.5V10.5H3.5V12ZM15.5 15V10C15.5 9.71667 15.5958 9.47917 15.7875 9.2875C15.9792 9.09583 16.2167 9 16.5 9H21C21.2833 9 21.5208 9.09583 21.7125 9.2875C21.9042 9.47917 22 9.71667 22 10V15H20.5V10.5H19.5V14H18V10.5H17V15H15.5Z"}),autorenew:(0,S.jsx)("path",{d:"M5.69728 14.4104C5.49326 13.9833 5.32604 13.5257 5.19562 13.0374C5.06521 12.5492 5 12.0367 5 11.5C5 9.56481 5.69083 7.91679 7.07249 6.55591C8.45416 5.19504 10.147 4.53946 12.1511 4.58918H12.7613L11.0742 2.92359L12.0097 2L15.2869 5.23549L12.0097 8.47099L11.0742 7.54739L12.7613 5.88181H12.1511C10.5021 5.84866 9.11624 6.38632 7.99347 7.49479C6.87069 8.60326 6.30931 9.93833 6.30931 11.5C6.30931 11.8455 6.33804 12.1824 6.3955 12.5106C6.45296 12.8389 6.53915 13.1573 6.65407 13.4658L5.69728 14.4104ZM11.9903 21L8.71309 17.7645L11.9903 14.529L12.9258 15.4526L11.2387 17.1182H11.8489C13.4979 17.1513 14.8838 16.6137 16.0065 15.5052C17.1293 14.3967 17.6907 13.0617 17.6907 11.5C17.6907 11.1545 17.662 10.8176 17.6045 10.4894C17.547 10.1611 17.4609 9.84273 17.3459 9.53421L18.3027 8.58959C18.5067 9.01665 18.674 9.47431 18.8044 9.96256C18.9348 10.4508 19 10.9633 19 11.5C19 13.4186 18.3092 15.0625 16.9275 16.4317C15.5458 17.8008 13.853 18.4605 11.8489 18.4108H11.2387L12.9258 20.0764L11.9903 21Z"}),bakery_dining:(0,S.jsx)("path",{d:"M6.30001 16.5252H7.80001V15.3H16.2V16.5252H17.7V12.5496C17.7 12.2 17.5876 11.8792 17.3628 11.5872C17.138 11.296 16.8504 11.1004 16.5 11.0004V9.42481C16.5 8.97521 16.3416 8.59601 16.0248 8.28721C15.708 7.97921 15.3248 7.82521 14.8752 7.82521H12.0504C12.0168 7.82521 11.996 7.83361 11.988 7.85041C11.9792 7.86641 11.9832 7.89121 12 7.92481C12.0168 7.89121 12.0208 7.86641 12.012 7.85041C12.004 7.83361 11.9832 7.82521 11.9496 7.82521H9.12481C8.65841 7.82521 8.27081 7.97921 7.96201 8.28721C7.65401 8.59601 7.50001 8.97521 7.50001 9.42481V11.0004C7.14961 11.1004 6.86201 11.296 6.63721 11.5872C6.41241 11.8792 6.30001 12.2 6.30001 12.5496V16.5252ZM7.80001 13.8V12.6H16.2V13.8H7.80001ZM9.00001 11.1V9.62521C9.00001 9.52521 9.02921 9.44601 9.08761 9.38761C9.14601 9.32921 9.21681 9.30001 9.30001 9.30001H10.95C11.0332 9.30001 11.104 9.32921 11.1624 9.38761C11.2208 9.44601 11.25 9.52521 11.25 9.62521V11.1H9.00001ZM12.75 11.1V9.62521C12.75 9.52521 12.7792 9.44601 12.8376 9.38761C12.896 9.32921 12.9668 9.30001 13.05 9.30001H14.7C14.7832 9.30001 14.854 9.32921 14.9124 9.38761C14.9708 9.44601 15 9.52521 15 9.62521V11.1H12.75ZM4.50001 21.0996C4.05041 21.0996 3.67121 20.9456 3.36241 20.6376C3.05441 20.3288 2.90041 19.9496 2.90041 19.5V4.50001C2.90041 4.05041 3.05441 3.67121 3.36241 3.36241C3.67121 3.05441 4.05041 2.90041 4.50001 2.90041H19.5C19.9496 2.90041 20.3288 3.05441 20.6376 3.36241C20.9456 3.67121 21.0996 4.05041 21.0996 4.50001V19.5C21.0996 19.9496 20.9456 20.3288 20.6376 20.6376C20.3288 20.9456 19.9496 21.0996 19.5 21.0996H4.50001ZM4.50001 19.8H19.5C19.5664 19.8 19.6332 19.7668 19.7004 19.7004C19.7668 19.6332 19.8 19.5664 19.8 19.5V4.50001C19.8 4.43361 19.7668 4.36681 19.7004 4.29961C19.6332 4.23321 19.5664 4.20001 19.5 4.20001H4.50001C4.43361 4.20001 4.36681 4.23321 4.29961 4.29961C4.23321 4.36681 4.20001 4.43361 4.20001 4.50001V19.5C4.20001 19.5664 4.23321 19.6332 4.29961 19.7004C4.36681 19.7668 4.43361 19.8 4.50001 19.8Z"}),bassinet:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("path",{d:"M19 12C19 14.1217 18.1571 16.1566 16.6569 17.6569C15.1566 19.1571 13.1217 20 11 20C8.87827 20 6.84344 19.1571 5.34315 17.6569C3.84286 16.1566 3 14.1217 3 12L11 12H19Z"}),(0,S.jsx)("path",{d:"M16.1347 5.86529L11 11V4C12.0506 4 13.0909 4.20693 14.0615 4.60896C14.8136 4.92052 15.5125 5.34451 16.1347 5.86529ZM16.8602 6.55405L12.4142 11H18.9373C18.8482 10.293 18.6649 9.59962 18.391 8.93853C18.0264 8.05823 17.5077 7.25087 16.8602 6.55405Z"})]}),bedroom_parent:(0,S.jsx)("path",{d:"M6.30001 16.5252H7.80001V15.3H16.2V16.5252H17.7V12.5496C17.7 12.2 17.5876 11.8792 17.3628 11.5872C17.138 11.296 16.8504 11.1004 16.5 11.0004V9.42481C16.5 8.97521 16.3416 8.59601 16.0248 8.28721C15.708 7.97921 15.3248 7.82521 14.8752 7.82521H12.0504C12.0168 7.82521 11.996 7.83361 11.988 7.85041C11.9792 7.86641 11.9832 7.89121 12 7.92481C12.0168 7.89121 12.0208 7.86641 12.012 7.85041C12.004 7.83361 11.9832 7.82521 11.9496 7.82521H9.12481C8.65841 7.82521 8.27081 7.97921 7.96201 8.28721C7.65401 8.59601 7.50001 8.97521 7.50001 9.42481V11.0004C7.14961 11.1004 6.86201 11.296 6.63721 11.5872C6.41241 11.8792 6.30001 12.2 6.30001 12.5496V16.5252ZM7.80001 13.8V12.6H16.2V13.8H7.80001ZM9.00001 11.1V9.62521C9.00001 9.52521 9.02921 9.44601 9.08761 9.38761C9.14601 9.32921 9.21681 9.30001 9.30001 9.30001H10.95C11.0332 9.30001 11.104 9.32921 11.1624 9.38761C11.2208 9.44601 11.25 9.52521 11.25 9.62521V11.1H9.00001ZM12.75 11.1V9.62521C12.75 9.52521 12.7792 9.44601 12.8376 9.38761C12.896 9.32921 12.9668 9.30001 13.05 9.30001H14.7C14.7832 9.30001 14.854 9.32921 14.9124 9.38761C14.9708 9.44601 15 9.52521 15 9.62521V11.1H12.75ZM4.50001 21.0996C4.05041 21.0996 3.67121 20.9456 3.36241 20.6376C3.05441 20.3288 2.90041 19.9496 2.90041 19.5V4.50001C2.90041 4.05041 3.05441 3.67121 3.36241 3.36241C3.67121 3.05441 4.05041 2.90041 4.50001 2.90041H19.5C19.9496 2.90041 20.3288 3.05441 20.6376 3.36241C20.9456 3.67121 21.0996 4.05041 21.0996 4.50001V19.5C21.0996 19.9496 20.9456 20.3288 20.6376 20.6376C20.3288 20.9456 19.9496 21.0996 19.5 21.0996H4.50001ZM4.50001 19.8H19.5C19.5664 19.8 19.6332 19.7668 19.7004 19.7004C19.7668 19.6332 19.8 19.5664 19.8 19.5V4.50001C19.8 4.43361 19.7668 4.36681 19.7004 4.29961C19.6332 4.23321 19.5664 4.20001 19.5 4.20001H4.50001C4.43361 4.20001 4.36681 4.23321 4.29961 4.29961C4.23321 4.36681 4.20001 4.43361 4.20001 4.50001V19.5C4.20001 19.5664 4.23321 19.6332 4.29961 19.7004C4.36681 19.7668 4.43361 19.8 4.50001 19.8Z"}),brunch_dining:(0,S.jsx)("path",{d:"M3.15 21.2256C2.9836 21.2256 2.842 21.1672 2.7252 21.0504C2.6084 20.9336 2.55 20.792 2.55 20.6256V19.9248H15.75V20.6256C15.75 20.792 15.6916 20.9336 15.5748 21.0504C15.458 21.1672 15.3164 21.2256 15.15 21.2256H3.15ZM2.55 17.9256V17.2248C2.55 17.0584 2.6084 16.9168 2.7252 16.8C2.842 16.6832 2.9836 16.6248 3.15 16.6248H7.35V15.2496H10.95V16.6248H15.15C15.3164 16.6248 15.458 16.6832 15.5748 16.8C15.6916 16.9168 15.75 17.0584 15.75 17.2248V17.9256H2.55ZM18.2496 21.2256V14.9748C17.6336 14.7252 17.1544 14.2836 16.812 13.65C16.4704 13.0164 16.2996 12.3664 16.2996 11.7V3.02521H21.45V11.7C21.45 12.3664 21.2792 13.0164 20.9376 13.65C20.596 14.2836 20.1336 14.7252 19.5504 14.9748V19.9248H21.45V21.2256H18.2496ZM17.6004 8.70001H20.1504V4.32481H17.6004V8.70001ZM18.9 13.8504C19.2832 13.6664 19.5872 13.3788 19.812 12.9876C20.0376 12.5956 20.1504 12.1664 20.1504 11.7V9.99961H17.6004V11.7C17.6004 12.1664 17.7212 12.5956 17.9628 12.9876C18.2044 13.3788 18.5168 13.6664 18.9 13.8504Z"}),cabin_bag:(0,S.jsx)("path",{d:"M7.3077 20.5C6.81058 20.5 6.38502 20.323 6.03102 19.969C5.67701 19.615 5.5 19.1894 5.5 18.6923V8.25007C5.5 7.76417 5.67019 7.35103 6.01057 7.01065C6.35096 6.67027 6.7641 6.50007 7.25 6.50007H9.25V3.6924C9.25 3.43631 9.33622 3.22166 9.50865 3.04842C9.68108 2.87519 9.89773 2.78857 10.1586 2.78857H13.8414C14.1022 2.78857 14.3189 2.87519 14.4913 3.04842C14.6637 3.22166 14.75 3.43631 14.75 3.6924V6.50007H16.6922C17.1894 6.50007 17.6149 6.67708 17.9689 7.0311C18.3229 7.3851 18.5 7.81066 18.5 8.30777V18.6923C18.5 19.1894 18.3229 19.615 17.9689 19.969C17.6149 20.323 17.1894 20.5 16.6922 20.5C16.6922 20.7507 16.6074 20.9608 16.4377 21.1303C16.2681 21.2999 16.0578 21.3846 15.807 21.3846C15.5561 21.3846 15.3461 21.2999 15.1769 21.1303C15.0077 20.9608 14.923 20.7507 14.923 20.5H9.0769C9.0769 20.7513 8.99206 20.9615 8.82237 21.1308C8.65271 21.3 8.44246 21.3846 8.19162 21.3846C7.94079 21.3846 7.73076 21.2999 7.56153 21.1303C7.39231 20.9608 7.3077 20.7507 7.3077 20.5ZM10.4423 6.50007H13.5577V3.98085H10.4423V6.50007ZM7.3077 19H16.6922C16.782 19 16.8557 18.9712 16.9134 18.9135C16.9711 18.8558 17 18.7821 17 18.6923V8.30777C17 8.21802 16.9711 8.1443 16.9134 8.0866C16.8557 8.0289 16.782 8.00005 16.6922 8.00005H7.3077C7.21795 8.00005 7.14423 8.0289 7.08652 8.0866C7.02882 8.1443 6.99997 8.21802 6.99997 8.30777V18.6923C6.99997 18.7821 7.02882 18.8558 7.08652 18.9135C7.14423 18.9712 7.21795 19 7.3077 19ZM8.15382 17.1539C8.15382 17.3261 8.21009 17.4685 8.32262 17.5811C8.43514 17.6937 8.57744 17.75 8.74952 17.75C8.92161 17.75 9.06407 17.6937 9.1769 17.5811C9.28972 17.4685 9.34613 17.3261 9.34613 17.1539V9.8462C9.34613 9.67398 9.28986 9.53157 9.17732 9.41897C9.06481 9.30637 8.92251 9.25007 8.75043 9.25007C8.57834 9.25007 8.43588 9.30637 8.32305 9.41897C8.21023 9.53157 8.15382 9.67398 8.15382 9.8462V17.1539ZM11.4038 17.1539C11.4038 17.3261 11.4601 17.4685 11.5726 17.5811C11.6851 17.6937 11.8274 17.75 11.9995 17.75C12.1716 17.75 12.3141 17.6937 12.4269 17.5811C12.5397 17.4685 12.5961 17.3261 12.5961 17.1539V9.8462C12.5961 9.67398 12.5399 9.53157 12.4273 9.41897C12.3148 9.30637 12.1725 9.25007 12.0004 9.25007C11.8283 9.25007 11.6859 9.30637 11.5731 9.41897C11.4602 9.53157 11.4038 9.67398 11.4038 9.8462V17.1539ZM14.6538 17.1539C14.6538 17.3261 14.7101 17.4685 14.8226 17.5811C14.9351 17.6937 15.0774 17.75 15.2495 17.75C15.4216 17.75 15.5641 17.6937 15.6769 17.5811C15.7897 17.4685 15.8461 17.3261 15.8461 17.1539V9.8462C15.8461 9.67398 15.7899 9.53157 15.6773 9.41897C15.5648 9.30637 15.4225 9.25007 15.2504 9.25007C15.0783 9.25007 14.9359 9.30637 14.823 9.41897C14.7102 9.53157 14.6538 9.67398 14.6538 9.8462V17.1539Z"}),check:(0,S.jsx)("path",{d:"M10.3333 15.8646L7 12.5313L8.0625 11.4688L10.3333 13.7396L15.9375 8.13544L17 9.19794L10.3333 15.8646Z"}),check_circle:(0,S.jsx)("path",{d:"M10.6 16.6L17.65 9.55L16.25 8.15L10.6 13.8L7.75 10.95L6.35 12.35L10.6 16.6ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6873 5.825 19.975 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26267 14.6833 2 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31267 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.31233 8.1 2.787C9.31667 2.26233 10.6167 2 12 2C13.3833 2 14.6833 2.26233 15.9 2.787C17.1167 3.31233 18.175 4.025 19.075 4.925C19.975 5.825 20.6873 6.88333 21.212 8.1C21.7373 9.31667 22 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6873 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6873 15.9 21.212C14.6833 21.7373 13.3833 22 12 22ZM12 20C14.2167 20 16.1043 19.221 17.663 17.663C19.221 16.1043 20 14.2167 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.1043 4.779 14.2167 4 12 4C9.78333 4 7.896 4.779 6.338 6.337C4.77933 7.89567 4 9.78333 4 12C4 14.2167 4.77933 16.1043 6.338 17.663C7.896 19.221 9.78333 20 12 20Z"}),checked_bag:(0,S.jsx)("path",{d:"M22 19H2V21H22V19M4 15C4 15.5 4.2 16 4.6 16.4C5 16.8 5.5 17 6 17V6C5.5 6 5 6.2 4.6 6.6C4.2 7 4 7.5 4 8V15M13.5 6H10.5C10.5 5.6 10.6 5.2 10.9 4.9C11.2 4.6 11.5 4.5 12 4.5C12.4 4.5 12.8 4.6 13.1 4.9C13.3 5.2 13.5 5.6 13.5 6M7 6V17H17V6H15C15 5.2 14.7 4.5 14.1 3.9S12.8 3 12 3C11.2 3 10.5 3.3 9.9 3.9C9.3 4.5 9 5.2 9 6H7M18 17C18.5 17 19 16.8 19.4 16.4C19.8 16 20 15.5 20 15V8C20 7.5 19.8 7 19.4 6.6C19 6.2 18.5 6 18 6V17Z"}),chevron:(0,S.jsx)("path",{d:"M5 13H16.17L11.29 17.88C10.9 18.27 10.9 18.91 11.29 19.3C11.68 19.69 12.31 19.69 12.7 19.3L19.29 12.71C19.68 12.32 19.68 11.69 19.29 11.3L12.71 4.7C12.32 4.31 11.69 4.31 11.3 4.7C10.91 5.09 10.91 5.72 11.3 6.11L16.17 11H5C4.45 11 4 11.45 4 12C4 12.55 4.45 13 5 13Z"}),child_care:(0,S.jsx)("path",{d:"M14.5 11.75C14.15 11.75 13.8542 11.6292 13.6125 11.3875C13.3708 11.1458 13.25 10.85 13.25 10.5C13.25 10.15 13.3708 9.85417 13.6125 9.6125C13.8542 9.37083 14.15 9.25 14.5 9.25C14.85 9.25 15.1458 9.37083 15.3875 9.6125C15.6292 9.85417 15.75 10.15 15.75 10.5C15.75 10.85 15.6292 11.1458 15.3875 11.3875C15.1458 11.6292 14.85 11.75 14.5 11.75ZM9.5 11.75C9.15 11.75 8.85417 11.6292 8.6125 11.3875C8.37083 11.1458 8.25 10.85 8.25 10.5C8.25 10.15 8.37083 9.85417 8.6125 9.6125C8.85417 9.37083 9.15 9.25 9.5 9.25C9.85 9.25 10.1458 9.37083 10.3875 9.6125C10.6292 9.85417 10.75 10.15 10.75 10.5C10.75 10.85 10.6292 11.1458 10.3875 11.3875C10.1458 11.6292 9.85 11.75 9.5 11.75ZM12 17C11 17 10.0958 16.725 9.2875 16.175C8.47917 15.625 7.88333 14.9 7.5 14H16.5C16.1167 14.9 15.5208 15.625 14.7125 16.175C13.9042 16.725 13 17 12 17ZM12 21C10.75 21 9.57917 20.7625 8.4875 20.2875C7.39583 19.8125 6.44583 19.1708 5.6375 18.3625C4.82917 17.5542 4.1875 16.6042 3.7125 15.5125C3.2375 14.4208 3 13.25 3 12C3 10.75 3.2375 9.57917 3.7125 8.4875C4.1875 7.39583 4.82917 6.44583 5.6375 5.6375C6.44583 4.82917 7.39583 4.1875 8.4875 3.7125C9.57917 3.2375 10.75 3 12 3C13.25 3 14.4208 3.2375 15.5125 3.7125C16.6042 4.1875 17.5542 4.82917 18.3625 5.6375C19.1708 6.44583 19.8125 7.39583 20.2875 8.4875C20.7625 9.57917 21 10.75 21 12C21 13.25 20.7625 14.4208 20.2875 15.5125C19.8125 16.6042 19.1708 17.5542 18.3625 18.3625C17.5542 19.1708 16.6042 19.8125 15.5125 20.2875C14.4208 20.7625 13.25 21 12 21ZM12 19C13.9333 19 15.5833 18.3167 16.95 16.95C18.3167 15.5833 19 13.9333 19 12C19 10.0667 18.3167 8.41667 16.95 7.05C15.5833 5.68333 13.9333 5 12 5H11.7C11.6 5 11.5 5.01667 11.4 5.05C11.3 5.15 11.2333 5.25833 11.2 5.375C11.1667 5.49167 11.15 5.61667 11.15 5.75C11.15 6.1 11.2708 6.39583 11.5125 6.6375C11.7542 6.87917 12.05 7 12.4 7C12.55 7 12.6875 6.975 12.8125 6.925C12.9375 6.875 13.0667 6.85 13.2 6.85C13.4 6.85 13.5667 6.925 13.7 7.075C13.8333 7.225 13.9 7.4 13.9 7.6C13.9 7.98333 13.7208 8.22917 13.3625 8.3375C13.0042 8.44583 12.6833 8.5 12.4 8.5C11.65 8.5 11.0042 8.22917 10.4625 7.6875C9.92083 7.14583 9.65 6.5 9.65 5.75V5.6C9.65 5.55 9.65833 5.48333 9.675 5.4C8.29167 5.9 7.16667 6.74167 6.3 7.925C5.43333 9.10833 5 10.4667 5 12C5 13.9333 5.68333 15.5833 7.05 16.95C8.41667 18.3167 10.0667 19 12 19Z"}),close:(0,S.jsx)("path",{d:"M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}),closet:(0,S.jsx)("path",{d:"M12 4C11.0717 4 10.1815 4.36875 9.52513 5.02513C8.86875 5.6815 8.5 6.57174 8.5 7.5H10.5C10.5 7.10218 10.658 6.72064 10.9393 6.43934C11.2206 6.15804 11.6022 6 12 6C12.3978 6 12.7794 6.15804 13.0607 6.43934C13.342 6.72064 13.5 7.10218 13.5 7.5C13.5 7.89782 13.342 8.27936 13.0607 8.56066C12.7794 8.84196 12.3978 9 12 9C11.45 9 11 9.45 11 10V11.75L2.4 18.2C2.23209 18.3259 2.10807 18.5015 2.04549 18.7018C1.98291 18.9022 1.98495 19.1171 2.05132 19.3162C2.11769 19.5153 2.24502 19.6885 2.41529 19.8112C2.58556 19.934 2.79012 20 3 20H21C21.2099 20 21.4144 19.934 21.5847 19.8112C21.755 19.6885 21.8823 19.5153 21.9487 19.3162C22.0151 19.1171 22.0171 18.9022 21.9545 18.7018C21.8919 18.5015 21.7679 18.3259 21.6 18.2L13 11.75V10.85C13.7216 10.6349 14.3546 10.1927 14.805 9.58919C15.2554 8.98569 15.4991 8.25303 15.5 7.5C15.5 6.57174 15.1313 5.6815 14.4749 5.02513C13.8185 4.36875 12.9283 4 12 4ZM12 13.5L18 18H6L12 13.5Z"}),concierge:(0,S.jsx)("path",{d:"M10 22V20H23V22H10ZM11 19C11 17.65 11.425 16.4708 12.275 15.4625C13.125 14.4542 14.2 13.8333 15.5 13.6V12.975C15.5 12.6917 15.5958 12.4542 15.7875 12.2625C15.9792 12.0708 16.2167 11.975 16.5 11.975C16.7833 11.975 17.0208 12.0708 17.2125 12.2625C17.4042 12.4542 17.5 12.6917 17.5 12.975V13.6C18.7833 13.8333 19.8542 14.4542 20.7125 15.4625C21.5708 16.4708 22 17.65 22 19H11ZM13.625 16.975H19.325C19.0083 16.525 18.6042 16.1625 18.1125 15.8875C17.6208 15.6125 17.0833 15.475 16.5 15.475C15.9 15.475 15.35 15.6125 14.85 15.8875C14.35 16.1625 13.9417 16.525 13.625 16.975ZM1 13V2H7V3.45L14 1.5L22 4V5C22 5.83333 21.7083 6.54167 21.125 7.125C20.5417 7.70833 19.8333 8 19 8H17V8.6C17 9.01667 16.8792 9.39583 16.6375 9.7375C16.3958 10.0792 16.0833 10.325 15.7 10.475L8.95 13H1ZM3 11H5V4H3V11ZM7 11H8.6L14.4 8.875C14.5833 8.80833 14.7292 8.69583 14.8375 8.5375C14.9458 8.37917 15 8.2 15 8H13.225L10.3 8.95L9.7 7.05L12.825 6H19C19.15 6 19.3375 5.94583 19.5625 5.8375C19.7875 5.72917 19.9 5.6 19.9 5.45L13.95 3.6L7 5.5V11Z"}),credit_card:(0,S.jsx)("path",{d:"M4 20C3.45 20 2.97933 19.8043 2.588 19.413C2.196 19.021 2 18.55 2 18V6C2 5.45 2.196 4.97933 2.588 4.588C2.97933 4.196 3.45 4 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.8043 4.97933 22 5.45 22 6V18C22 18.55 21.8043 19.021 21.413 19.413C21.021 19.8043 20.55 20 20 20H4ZM4 8V12H20V8H4Z"}),dinner_dining:(0,S.jsx)("path",{d:"M4.05 20.1252L2.7504 18.8256H21.2256L19.9248 20.1252H4.05ZM4.0248 17.25C4.1248 17.0332 4.2664 16.8164 4.4496 16.5996C4.6336 16.3828 4.8588 16.1664 5.1252 15.9504V9.4248H3.9252V8.5248H5.1252V7.2504H3.9252V6.3504H5.1252V5.0496H3.9252V4.1496H9.6252C10.1748 4.1496 10.6664 4.354 11.1 4.7628C11.5336 5.1708 11.7504 5.7 11.7504 6.3504H20.4252V7.2504H11.7504C11.7504 7.8832 11.5336 8.404 11.1 8.8128C10.6664 9.2208 10.1748 9.4248 9.6252 9.4248H8.4252V15.2496C8.7748 15.3328 9.108 15.4456 9.4248 15.588C9.7416 15.7296 10.0332 15.9168 10.2996 16.1496C10.5164 15.0496 11.0832 14.1416 12 13.4256C12.9168 12.7088 13.9752 12.3504 15.1752 12.3504C16.5584 12.3504 17.7376 12.792 18.7128 13.6752C19.6872 14.5584 20.1996 15.6584 20.25 16.9752V17.25H4.0248ZM11.8248 15.9504H18.6C18.4336 15.3336 18.0296 14.796 17.388 14.3376C16.7464 13.8792 16.0088 13.65 15.1752 13.65C14.3416 13.65 13.6164 13.8752 12.9996 14.3256C12.3828 14.7752 11.9912 15.3168 11.8248 15.9504ZM8.4252 6.3504H10.4496V5.3496C10.4496 5.2832 10.4164 5.2168 10.35 5.1504C10.2836 5.0832 10.2088 5.0496 10.1256 5.0496H8.4252V6.3504ZM8.4252 8.5248H10.1256C10.2088 8.5248 10.2836 8.4956 10.35 8.4372C10.4164 8.3788 10.4496 8.308 10.4496 8.2248V7.2504H8.4252V8.5248ZM6.0252 6.3504H7.5252V5.0496H6.0252V6.3504ZM6.0252 8.5248H7.5252V7.2504H6.0252V8.5248ZM6.0252 15.5004C6.258 15.3836 6.4956 15.3 6.738 15.2496C6.9796 15.2 7.242 15.1584 7.5252 15.1248V9.4248H6.0252V15.5004Z"}),exit_row:(0,S.jsx)("path",{d:"M20 11H6.83001L9.71001 8.12001C10.1 7.73001 10.1 7.10001 9.71001 6.71001C9.32001 6.32001 8.69001 6.32001 8.30001 6.71001L3.71001 11.3C3.32001 11.69 3.32001 12.32 3.71001 12.71L8.30001 17.3C8.69001 17.69 9.32001 17.69 9.71001 17.3C10.1 16.91 10.1 16.28 9.71001 15.89L6.83001 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11Z"}),exit_row_right:(0,S.jsx)("path",{d:"M4 11H17.17L14.29 8.12001C13.9 7.73001 13.9 7.10001 14.29 6.71001C14.68 6.32001 15.31 6.32001 15.7 6.71001L20.29 11.3C20.68 11.69 20.68 12.32 20.29 12.71L15.7 17.3C15.31 17.69 14.68 17.69 14.29 17.3C13.9 16.91 13.9 16.28 14.29 15.89L17.17 13H4C3.45 13 3 12.55 3 12C3 11.45 3.45 11 4 11Z"}),expand_content:(0,S.jsx)("path",{d:"M5 19V13H7V17H11V19H5ZM17 11V7H13V5H19V11H17Z"}),fitness_center:(0,S.jsx)("path",{d:"M11.4 19.9L9.99998 18.5L13.55 14.95L5.04998 6.45001L1.49998 10L0.0999756 8.60001L1.49998 7.15001L0.0999756 5.75001L2.19998 3.65001L0.799976 2.20001L2.19998 0.800006L3.64998 2.20001L5.74998 0.100006L7.14998 1.50001L8.59998 0.100006L9.99998 1.50001L6.44998 5.05001L14.95 13.55L18.5 10L19.9 11.4L18.5 12.85L19.9 14.25L17.8 16.35L19.2 17.8L17.8 19.2L16.35 17.8L14.25 19.9L12.85 18.5L11.4 19.9Z"}),flight_class:(0,S.jsx)("path",{d:"M14.2596 12.5C13.7737 12.5 13.3606 12.3298 13.0202 11.9894C12.6798 11.649 12.5096 11.2359 12.5096 10.75V6.25C12.5096 5.7641 12.6798 5.35096 13.0202 5.01058C13.3606 4.67019 13.7737 4.5 14.2596 4.5H15.75C16.2359 4.5 16.649 4.67019 16.9894 5.01058C17.3298 5.35096 17.5 5.7641 17.5 6.25V10.75C17.5 11.2359 17.3298 11.649 16.9894 11.9894C16.649 12.3298 16.2359 12.5 15.75 12.5H14.2596ZM14.2596 11H15.75C15.8205 11 15.8798 10.9759 15.9278 10.9279C15.9759 10.8798 16 10.8205 16 10.75V6.25C16 6.17948 15.9759 6.12018 15.9278 6.0721C15.8798 6.02402 15.8205 5.99998 15.75 5.99998H14.2596C14.1891 5.99998 14.1298 6.02402 14.0817 6.0721C14.0336 6.12018 14.0096 6.17948 14.0096 6.25V10.75C14.0096 10.8205 14.0336 10.8798 14.0817 10.9279C14.1298 10.9759 14.1891 11 14.2596 11ZM9.5673 17.5C9.21345 17.5 8.89678 17.398 8.6173 17.1942C8.33782 16.9903 8.14423 16.7198 8.03655 16.3827L5.5 8.02883V4.5H6.99997V7.99998L9.49997 16H17.7596V17.5H9.5673ZM8.25 20.5V19H17.75V20.5H8.25ZM14.2596 5.99998H16H14.0096H14.2596Z"}),flight_takeoff:(0,S.jsx)("path",{d:"M3.77521 20.1498V18.849H20.0748V20.1498H3.77521ZM5.45041 15.2742L2.94961 11.0994L4.05001 10.8246L5.90041 12.399L10.05 11.2998L6.27481 4.89902L7.72561 4.62422L14.1 10.1994L19.4004 8.77382C19.75 8.67462 20.0832 8.72062 20.4 8.91182C20.7168 9.10382 20.9252 9.37462 21.0252 9.72422C21.1084 10.0746 21.0624 10.4038 20.8872 10.7118C20.7128 11.0198 20.4504 11.2242 20.1 11.325L5.45041 15.2742Z"}),galley:(0,S.jsx)("path",{d:"M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"}),hearing:(0,S.jsx)("path",{d:"M17 22C15.9667 22 15.1208 21.7417 14.4625 21.225C13.8042 20.7083 13.3 19.95 12.95 18.95C12.6667 18.1167 12.3958 17.5333 12.1375 17.2C11.8792 16.8667 11.2833 16.3333 10.35 15.6C9.31667 14.7667 8.5 13.825 7.9 12.775C7.3 11.725 7 10.4667 7 9.00001C7 7.01668 7.67083 5.35418 9.0125 4.01251C10.3542 2.67085 12.0167 2.00001 14 2.00001C15.9833 2.00001 17.6458 2.67085 18.9875 4.01251C20.3292 5.35418 21 7.01668 21 9.00001H19C19 7.58335 18.5208 6.39585 17.5625 5.43751C16.6042 4.47918 15.4167 4.00001 14 4.00001C12.5833 4.00001 11.3958 4.47918 10.4375 5.43751C9.47917 6.39585 9 7.58335 9 9.00001C9 10.1333 9.225 11.1 9.675 11.9C10.125 12.7 10.7667 13.4167 11.6 14.05C12.4667 14.6833 13.1417 15.3 13.625 15.9C14.1083 16.5 14.4667 17.15 14.7 17.85C14.9333 18.5833 15.2125 19.125 15.5375 19.475C15.8625 19.825 16.35 20 17 20C17.55 20 18.0208 19.8042 18.4125 19.4125C18.8042 19.0208 19 18.55 19 18H21C21 19.1 20.6083 20.0417 19.825 20.825C19.0417 21.6083 18.1 22 17 22ZM6.2 16.75C5.21667 15.75 4.4375 14.5875 3.8625 13.2625C3.2875 11.9375 3 10.5167 3 9.00001C3 7.46668 3.2875 6.03335 3.8625 4.70001C4.4375 3.36668 5.21667 2.20001 6.2 1.20001L7.65 2.60001C6.81667 3.43335 6.16667 4.39585 5.7 5.48751C5.23333 6.57918 5 7.75001 5 9.00001C5 10.2333 5.23333 11.3917 5.7 12.475C6.16667 13.5583 6.81667 14.5167 7.65 15.35L6.2 16.75ZM14 11.5C13.3 11.5 12.7083 11.2542 12.225 10.7625C11.7417 10.2708 11.5 9.68335 11.5 9.00001C11.5 8.30001 11.7417 7.70835 12.225 7.22501C12.7083 6.74168 13.3 6.50001 14 6.50001C14.7 6.50001 15.2917 6.74168 15.775 7.22501C16.2583 7.70835 16.5 8.30001 16.5 9.00001C16.5 9.68335 16.2583 10.2708 15.775 10.7625C15.2917 11.2542 14.7 11.5 14 11.5Z"}),image_not_supported:(0,S.jsx)("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"}),info_outline:(0,S.jsx)("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.9043 8.52067 13 8.28333 13 8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8C11 8.28333 11.096 8.52067 11.288 8.712C11.4793 8.904 11.7167 9 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6873 5.825 19.975 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26267 14.6833 2 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31267 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.31233 8.1 2.787C9.31667 2.26233 10.6167 2 12 2C13.3833 2 14.6833 2.26233 15.9 2.787C17.1167 3.31233 18.175 4.025 19.075 4.925C19.975 5.825 20.6873 6.88333 21.212 8.1C21.7373 9.31667 22 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6873 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6873 15.9 21.212C14.6833 21.7373 13.3833 22 12 22ZM12 20C14.2167 20 16.1043 19.221 17.663 17.663C19.221 16.1043 20 14.2167 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.1043 4.779 14.2167 4 12 4C9.78333 4 7.896 4.779 6.338 6.337C4.77933 7.89567 4 9.78333 4 12C4 14.2167 4.77933 16.1043 6.338 17.663C7.896 19.221 9.78333 20 12 20Z"}),laundry:(0,S.jsx)("path",{d:"M3.125 9L0.125 3.8L6.725 0H8C8.26667 0.8 8.58333 1.5 8.95 2.1C9.31667 2.7 10 3 11 3C12 3 12.6833 2.7 13.05 2.1C13.4167 1.5 13.7333 0.8 14 0H15.275L21.85 3.825L18.875 9L17 7.975V12.775L15.425 14.15C15.375 14.1833 15.3083 14.225 15.225 14.275C15.1417 14.325 15.0667 14.3667 15 14.4V4.575L18.125 6.3L19.125 4.55L15.3 2.325C14.9 3.14167 14.3125 3.79167 13.5375 4.275C12.7625 4.75833 11.9167 5 11 5C10.0833 5 9.2375 4.75833 8.4625 4.275C7.6875 3.79167 7.1 3.14167 6.7 2.325L2.85 4.55L3.875 6.3L7 4.575V10.5C6.65 10.5333 6.30833 10.5875 5.975 10.6625C5.64167 10.7375 5.31667 10.8417 5 10.975V7.975L3.125 9ZM3.65 16.375L2.35 14.85L4.525 13C4.90833 12.6667 5.34583 12.4125 5.8375 12.2375C6.32917 12.0625 6.84167 11.975 7.375 11.975C7.90833 11.975 8.41667 12.0625 8.9 12.2375C9.38333 12.4125 9.81667 12.6667 10.2 13L13.1 15.475C13.3 15.6417 13.5375 15.7708 13.8125 15.8625C14.0875 15.9542 14.3667 16 14.65 16C14.95 16 15.2292 15.9583 15.4875 15.875C15.7458 15.7917 15.975 15.6583 16.175 15.475L18.35 13.6L19.65 15.15L17.475 17C17.0917 17.3333 16.6583 17.5833 16.175 17.75C15.6917 17.9167 15.1833 18 14.65 18C14.1167 18 13.6042 17.9167 13.1125 17.75C12.6208 17.5833 12.1833 17.3333 11.8 17L8.9 14.525C8.7 14.3583 8.47083 14.2292 8.2125 14.1375C7.95417 14.0458 7.675 14 7.375 14C7.09167 14 6.8125 14.0458 6.5375 14.1375C6.2625 14.2292 6.025 14.3583 5.825 14.525L3.65 16.375Z"}),lavatory:(0,S.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6h3zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2zm9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2z"}),lie_flat_seat:(0,S.jsx)("path",{d:"M6.16667 12.8333C6.81667 12.8333 7.45834 12.5833 7.95001 12.0833C8.91667 11.0916 8.90001 9.51659 7.91667 8.54992C7.42501 8.07492 6.79167 7.83325 6.16667 7.83325C5.51667 7.83325 4.87501 8.08325 4.38334 8.58325C3.41667 9.57492 3.43334 11.1499 4.41667 12.1166C4.90834 12.5916 5.54167 12.8333 6.16667 12.8333ZM5.57501 9.74992C5.73334 9.59159 5.94167 9.49992 6.16667 9.49992C6.38334 9.49992 6.59167 9.58325 6.75001 9.73325C7.08334 10.0583 7.08334 10.5749 6.76667 10.9083C6.60001 11.0749 6.39167 11.1666 6.16667 11.1666C5.95001 11.1666 5.74167 11.0833 5.58334 10.9333C5.25001 10.5999 5.25001 10.0833 5.57501 9.74992ZM17 7.83325H9.50001V12.8333H20.3333V11.1666C20.3333 9.32492 18.8417 7.83325 17 7.83325ZM11.1667 11.1666V9.49992H17C17.9167 9.49992 18.6667 10.2499 18.6667 11.1666H11.1667ZM3.66667 15.3333H8.66667V16.9999H15.3333V15.3333H20.3333V13.6666H3.66667V15.3333Z"}),local_bar:(0,S.jsx)("path",{d:"M6 21V19H11V14L3 5V3H21V5L13 14V19H18V21H6ZM7.45 7H16.55L18.35 5H5.65L7.45 7ZM12 12.1L14.775 9H9.225L12 12.1Z"}),local_parking:(0,S.jsx)("path",{d:"M6 21V3H13C14.6667 3 16.0833 3.58333 17.25 4.75C18.4167 5.91667 19 7.33333 19 9C19 10.6667 18.4167 12.0833 17.25 13.25C16.0833 14.4167 14.6667 15 13 15H10V21H6ZM10 11H13.2C13.75 11 14.2208 10.8042 14.6125 10.4125C15.0042 10.0208 15.2 9.55 15.2 9C15.2 8.45 15.0042 7.97917 14.6125 7.5875C14.2208 7.19583 13.75 7 13.2 7H10V11Z"}),loyalty:(0,S.jsx)("path",{d:"M13 17.5L16.5 14C16.6833 13.8167 16.8293 13.6 16.938 13.35C17.046 13.1 17.1 12.8333 17.1 12.55C17.1 11.9833 16.9 11.5 16.5 11.1C16.1 10.7 15.6167 10.5 15.05 10.5C14.7333 10.5 14.421 10.5917 14.113 10.775C13.8043 10.9583 13.4333 11.2667 13 11.7C12.5 11.2333 12.1083 10.9167 11.825 10.75C11.5417 10.5833 11.25 10.5 10.95 10.5C10.3833 10.5 9.9 10.7 9.5 11.1C9.1 11.5 8.9 11.9833 8.9 12.55C8.9 12.8333 8.954 13.1 9.062 13.35C9.17067 13.6 9.31667 13.8167 9.5 14L13 17.5ZM12.85 22C12.5667 22 12.3 21.9457 12.05 21.837C11.8 21.729 11.5833 21.5833 11.4 21.4L2.6 12.6C2.41667 12.4167 2.271 12.2 2.163 11.95C2.05433 11.7 2 11.4333 2 11.15V4C2 3.45 2.196 2.979 2.588 2.587C2.97933 2.19567 3.45 2 4 2H11.15C11.4333 2 11.7 2.054 11.95 2.162C12.2 2.27067 12.4167 2.41667 12.6 2.6L21.4 11.425C21.7833 11.8083 21.975 12.279 21.975 12.837C21.975 13.3957 21.7833 13.8667 21.4 14.25L14.25 21.4C14.0667 21.5833 13.8543 21.729 13.613 21.837C13.371 21.9457 13.1167 22 12.85 22ZM6.5 8C6.91667 8 7.27067 7.854 7.562 7.562C7.854 7.27067 8 6.91667 8 6.5C8 6.08333 7.854 5.72933 7.562 5.438C7.27067 5.146 6.91667 5 6.5 5C6.08333 5 5.72933 5.146 5.438 5.438C5.146 5.72933 5 6.08333 5 6.5C5 6.91667 5.146 7.27067 5.438 7.562C5.72933 7.854 6.08333 8 6.5 8Z"}),meeting_room:(0,S.jsx)("path",{d:"M3 21V19H5V3H15V4H19V19H21V21H17V6H15V21H3ZM11 13C11.2833 13 11.5208 12.9042 11.7125 12.7125C11.9042 12.5208 12 12.2833 12 12C12 11.7167 11.9042 11.4792 11.7125 11.2875C11.5208 11.0958 11.2833 11 11 11C10.7167 11 10.4792 11.0958 10.2875 11.2875C10.0958 11.4792 10 11.7167 10 12C10 12.2833 10.0958 12.5208 10.2875 12.7125C10.4792 12.9042 10.7167 13 11 13ZM7 19H13V5H7V19Z"}),minus:(0,S.jsx)("path",{d:"M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z"}),no_airplane:(0,S.jsx)("path",{d:"M14.6674 10.0001V2.66675C14.6674 1.56008 13.7741 0.666748 12.6674 0.666748C11.5607 0.666748 10.6674 1.56008 10.6674 2.66675V7.57341L21.1074 18.0134L25.3341 19.3334V16.6667L14.6674 10.0001ZM1.33407 5.02675L7.9874 11.6801L0.000732422 16.6667V19.3334L10.6674 16.0001V23.3334L8.00073 25.3334V27.3334L12.6674 26.0001L17.3341 27.3334V25.3334L14.6674 23.3334V18.3601L22.3074 26.0001L24.0007 24.3067L3.0274 3.33341L1.33407 5.02675Z"}),no_bag:(0,S.jsx)("path",{d:"M16.8992 6.12037H14.9392V3.18101C14.9385 2.92148 14.8351 2.67278 14.6516 2.48926C14.4681 2.30574 14.2194 2.20234 13.9599 2.20166H10.0399C9.78034 2.20234 9.53163 2.30574 9.34811 2.48926C9.16459 2.67278 9.06119 2.92148 9.06051 3.18101V6.12037H8.20711L8.34715 6.25804L14.3973 12.0871V9.06102H15.9676V13.6L17.3022 14.8859L18.8592 16.4748V8.08037C18.8579 7.56096 18.6509 7.06322 18.2836 6.69594C17.9164 6.32867 17.4186 6.12173 16.8992 6.12037ZM5.14051 8.09559L3.77173 6.71825L5.00821 5.48945L7.16586 7.6606L13.9581 14.4953L15.8932 16.4426L19.7441 20.3175L20.2279 20.8043L18.9914 22.0331L17.635 20.6683C17.4035 20.7625 17.154 20.8126 16.8992 20.8133C16.904 20.945 16.8822 21.0763 16.8351 21.1993C16.788 21.3224 16.7166 21.4347 16.6251 21.5296C16.5336 21.6244 16.424 21.6999 16.3027 21.7514C16.1814 21.8029 16.051 21.8295 15.9192 21.8295C15.7874 21.8295 15.657 21.8029 15.5357 21.7514C15.4145 21.6999 15.3048 21.6244 15.2133 21.5296C15.1219 21.4347 15.0504 21.3224 15.0034 21.1993C14.9563 21.0763 14.9344 20.945 14.9392 20.8133H9.06051C9.06529 20.945 9.04348 21.0763 8.99638 21.1993C8.94929 21.3224 8.87787 21.4347 8.7864 21.5296C8.69492 21.6244 8.58527 21.6999 8.46399 21.7514C8.34271 21.8029 8.21229 21.8295 8.08051 21.8295C7.94874 21.8295 7.81832 21.8029 7.69703 21.7514C7.57575 21.6999 7.4661 21.6244 7.37463 21.5296C7.28316 21.4347 7.21174 21.3224 7.16464 21.1993C7.11754 21.0763 7.09573 20.945 7.10051 20.8133C6.58222 20.8119 6.08545 20.6059 5.71835 20.24C5.35126 19.8741 5.14357 19.378 5.14051 18.8597V8.09559ZM14.8632 17.8791L14.3973 17.4103V17.8791H14.8632ZM9.596 12.579V17.8791H8.03083V11.004L9.596 12.579ZM10.5302 3.67134H13.4695V6.12295H10.5302V3.67134Z"}),no_seat:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("path",{d:"M25.1667 21.9733L23.4733 23.6667L2.5 2.69333L4.19333 1L7.16667 3.97333L16.5267 13.3333L19.1933 16L24.5 21.3067L25.1667 21.9733Z"}),(0,S.jsx)("path",{d:"M7.16667 24H3.16667V16H19.1933L24.5 21.3067V24H20.5V20H7.16667V24ZM27.1667 9.33333H23.1667V13.3333H27.1667V9.33333ZM4.5 9.33333H0.5V13.3333H4.5V9.33333ZM20.3333 13.3333H20.5V2.66667C20.5 1.2 19.3 0 17.8333 0H9.83333C9.05784 0 8.3569 0.335483 7.86848 0.868484L20.3333 13.3333ZM16.5267 13.3333L7.16667 3.97333V13.3333H16.5267Z"})]}),no_stroller:(0,S.jsx)("path",{d:"M5.00002 20C4.45002 20 3.97919 19.8042 3.58752 19.4125C3.19586 19.0208 3.00002 18.55 3.00002 18C3.00002 17.45 3.19586 16.9792 3.58752 16.5875C3.97919 16.1958 4.45002 16 5.00002 16C5.55002 16 6.02086 16.1958 6.41252 16.5875C6.80419 16.9792 7.00002 17.45 7.00002 18C7.00002 18.55 6.80419 19.0208 6.41252 19.4125C6.02086 19.8042 5.55002 20 5.00002 20ZM16 12.175L14 10.175V6.64999L12.4 8.54999L10.975 7.14999L15.2 2.17499C15.5334 1.79165 15.9084 1.49999 16.325 1.29999C16.7417 1.09999 17.1834 0.999988 17.65 0.999988C18.5834 0.999988 19.375 1.32499 20.025 1.97499C20.675 2.62499 21 3.41665 21 4.34999V4.99999H19V4.34999C19 3.96665 18.8709 3.64582 18.6125 3.38749C18.3542 3.12915 18.0334 2.99999 17.65 2.99999C17.4834 2.99999 17.325 3.03332 17.175 3.09999C17.025 3.16665 16.8917 3.26665 16.775 3.39999L16 4.27499V12.175ZM14 13L15.4 14.4C15.2167 14.5833 15.0084 14.7292 14.775 14.8375C14.5417 14.9458 14.2834 15 14 15H6.42502C5.99169 15 5.68752 14.8083 5.51252 14.425C5.33752 14.0417 5.39169 13.6833 5.67502 13.35L8.37502 10.175L0.400024 2.22499L1.80002 0.799988L20.2 19.2L18.775 20.6L9.77502 11.6L8.60002 13H14ZM15 20C14.45 20 13.9792 19.8042 13.5875 19.4125C13.1959 19.0208 13 18.55 13 18C13 17.45 13.1959 16.9792 13.5875 16.5875C13.9792 16.1958 14.45 16 15 16C15.55 16 16.0209 16.1958 16.4125 16.5875C16.8042 16.9792 17 17.45 17 18C17 18.55 16.8042 19.0208 16.4125 19.4125C16.0209 19.8042 15.55 20 15 20ZM9.90002 6.07499L8.47502 4.64999L9.85002 3.04999C9.71669 3.01665 9.57502 2.99999 9.42502 2.99999H9.00002C8.66669 2.99999 8.34586 3.02499 8.03752 3.07499C7.72919 3.12499 7.41669 3.19165 7.10002 3.27499L5.52502 1.69999C6.07502 1.46665 6.64169 1.29165 7.22502 1.17499C7.80836 1.05832 8.40002 0.999988 9.00002 0.999988C9.75002 0.999988 10.4875 1.09165 11.2125 1.27499C11.9375 1.45832 12.6334 1.73332 13.3 2.09999L9.90002 6.07499Z"}),north_east:(0,S.jsx)("path",{d:"M4.69999 19.3C4.51665 19.1167 4.42499 18.8833 4.42499 18.6C4.42499 18.3167 4.51665 18.0833 4.69999 17.9L15.6 7H9.99999C9.71665 7 9.47915 6.90417 9.28749 6.7125C9.09582 6.52083 8.99999 6.28333 8.99999 6C8.99999 5.71667 9.09582 5.47917 9.28749 5.2875C9.47915 5.09583 9.71665 5 9.99999 5H18C18.2833 5 18.5208 5.09583 18.7125 5.2875C18.9042 5.47917 19 5.71667 19 6V14C19 14.2833 18.9042 14.5208 18.7125 14.7125C18.5208 14.9042 18.2833 15 18 15C17.7167 15 17.4792 14.9042 17.2875 14.7125C17.0958 14.5208 17 14.2833 17 14V8.4L6.09999 19.3C5.91665 19.4833 5.68332 19.575 5.39999 19.575C5.11665 19.575 4.88332 19.4833 4.69999 19.3Z"}),pet_supplies:(0,S.jsx)("path",{d:"M9.5 22C8.51667 22 7.6875 21.6625 7.0125 20.9875C6.3375 20.3125 6 19.4833 6 18.5C6 18.35 6.02083 18.2333 6.0625 18.15C6.10417 18.0667 6.1 18 6.05 17.95C6 17.9 5.93333 17.8958 5.85 17.9375C5.76667 17.9792 5.65 18 5.5 18C4.51667 18 3.6875 17.6625 3.0125 16.9875C2.3375 16.3125 2 15.4833 2 14.5C2 13.5167 2.3375 12.6875 3.0125 12.0125C3.6875 11.3375 4.51667 11 5.5 11C5.88333 11 6.23333 11.05 6.55 11.15C6.86667 11.25 7.16667 11.4 7.45 11.6L11.6 7.45C11.4 7.16667 11.25 6.86667 11.15 6.55C11.05 6.23333 11 5.88333 11 5.5C11 4.51667 11.3375 3.6875 12.0125 3.0125C12.6875 2.3375 13.5167 2 14.5 2C15.4833 2 16.3125 2.3375 16.9875 3.0125C17.6625 3.6875 18 4.51667 18 5.5C18 5.65 17.9792 5.76667 17.9375 5.85C17.8958 5.93333 17.9 6 17.95 6.05C18 6.1 18.0667 6.10417 18.15 6.0625C18.2333 6.02083 18.35 6 18.5 6C19.4833 6 20.3125 6.3375 20.9875 7.0125C21.6625 7.6875 22 8.51667 22 9.5C22 10.4833 21.6625 11.3125 20.9875 11.9875C20.3125 12.6625 19.4833 13 18.5 13C18.1167 13 17.7667 12.95 17.45 12.85C17.1333 12.75 16.8333 12.6 16.55 12.4L12.4 16.55C12.6 16.8333 12.75 17.1333 12.85 17.45C12.95 17.7667 13 18.1167 13 18.5C13 19.4833 12.6625 20.3125 11.9875 20.9875C11.3125 21.6625 10.4833 22 9.5 22ZM9.5 20C9.93333 20 10.2917 19.8583 10.575 19.575C10.8583 19.2917 11 18.9333 11 18.5C11 18.35 10.9792 18.2042 10.9375 18.0625C10.8958 17.9208 10.8333 17.7833 10.75 17.65C10.4667 17.25 10.35 16.8208 10.4 16.3625C10.45 15.9042 10.65 15.5 11 15.15L15.15 11C15.5 10.65 15.9042 10.45 16.3625 10.4C16.8208 10.35 17.25 10.4667 17.65 10.75C17.7833 10.8333 17.9208 10.8958 18.0625 10.9375C18.2042 10.9792 18.35 11 18.5 11C18.9333 11 19.2917 10.8583 19.575 10.575C19.8583 10.2917 20 9.93333 20 9.5C20 9.06667 19.8583 8.70833 19.575 8.425C19.2917 8.14167 18.9333 8 18.5 8C17.9167 8 17.5083 7.97083 17.275 7.9125C17.0417 7.85417 16.8 7.7 16.55 7.45C16.3 7.2 16.1458 6.95833 16.0875 6.725C16.0292 6.49167 16 6.08333 16 5.5C16 5.06667 15.8583 4.70833 15.575 4.425C15.2917 4.14167 14.9333 4 14.5 4C14.0667 4 13.7083 4.14167 13.425 4.425C13.1417 4.70833 13 5.06667 13 5.5C13 5.68333 13.0167 5.8375 13.05 5.9625C13.0833 6.0875 13.15 6.21667 13.25 6.35C13.5333 6.75 13.65 7.17917 13.6 7.6375C13.55 8.09583 13.35 8.5 13 8.85L8.85 13C8.5 13.35 8.09583 13.55 7.6375 13.6C7.17917 13.65 6.75 13.5333 6.35 13.25C6.21667 13.1667 6.07917 13.1042 5.9375 13.0625C5.79583 13.0208 5.65 13 5.5 13C5.06667 13 4.70833 13.1417 4.425 13.425C4.14167 13.7083 4 14.0667 4 14.5C4 14.9333 4.14167 15.2917 4.425 15.575C4.70833 15.8583 5.06667 16 5.5 16C6.08333 16 6.49167 16.0292 6.725 16.0875C6.95833 16.1458 7.2 16.3 7.45 16.55C7.7 16.8 7.85417 17.0417 7.9125 17.275C7.97083 17.5083 8 17.9167 8 18.5C8 18.9333 8.14167 19.2917 8.425 19.575C8.70833 19.8583 9.06667 20 9.5 20Z"}),pool:(0,S.jsx)("path",{d:"M2 21V19C2.63333 19 3.10833 18.8333 3.425 18.5C3.74167 18.1667 4.36667 18 5.3 18C6.23333 18 6.875 18.1667 7.225 18.5C7.575 18.8333 8.05 19 8.65 19C9.25 19 9.725 18.8333 10.075 18.5C10.425 18.1667 11.0667 18 12 18C12.9333 18 13.575 18.1667 13.925 18.5C14.275 18.8333 14.75 19 15.35 19C15.95 19 16.425 18.8333 16.775 18.5C17.125 18.1667 17.7667 18 18.7 18C19.6333 18 20.2583 18.1667 20.575 18.5C20.8917 18.8333 21.3667 19 22 19V21C21.0167 21 20.3708 20.8333 20.0625 20.5C19.7542 20.1667 19.3 20 18.7 20C18.1 20 17.625 20.1667 17.275 20.5C16.925 20.8333 16.2833 21 15.35 21C14.4167 21 13.775 20.8333 13.425 20.5C13.075 20.1667 12.6 20 12 20C11.4 20 10.925 20.1667 10.575 20.5C10.225 20.8333 9.58333 21 8.65 21C7.71667 21 7.075 20.8333 6.725 20.5C6.375 20.1667 5.9 20 5.3 20C4.7 20 4.24583 20.1667 3.9375 20.5C3.62917 20.8333 2.98333 21 2 21ZM2 16.5V14.5C2.63333 14.5 3.10833 14.3333 3.425 14C3.74167 13.6667 4.36667 13.5 5.3 13.5C6.23333 13.5 6.87917 13.6667 7.2375 14C7.59583 14.3333 8.06667 14.5 8.65 14.5C9.25 14.5 9.725 14.3333 10.075 14C10.425 13.6667 11.0667 13.5 12 13.5C12.9333 13.5 13.575 13.6667 13.925 14C14.275 14.3333 14.75 14.5 15.35 14.5C15.95 14.5 16.425 14.3333 16.775 14C17.125 13.6667 17.7667 13.5 18.7 13.5C19.6333 13.5 20.2583 13.6667 20.575 14C20.8917 14.3333 21.3667 14.5 22 14.5V16.5C21.0167 16.5 20.3708 16.3333 20.0625 16C19.7542 15.6667 19.3 15.5 18.7 15.5C18.1 15.5 17.6375 15.6667 17.3125 16C16.9875 16.3333 16.3333 16.5 15.35 16.5C14.4 16.5 13.7542 16.3333 13.4125 16C13.0708 15.6667 12.6 15.5 12 15.5C11.3667 15.5 10.8958 15.6667 10.5875 16C10.2792 16.3333 9.63333 16.5 8.65 16.5C7.66667 16.5 7.0125 16.3333 6.6875 16C6.3625 15.6667 5.9 15.5 5.3 15.5C4.7 15.5 4.24583 15.6667 3.9375 16C3.62917 16.3333 2.98333 16.5 2 16.5ZM6.9 11.4L10.225 8.075L9.225 7.075C8.675 6.525 8.09167 6.125 7.475 5.875C6.85833 5.625 6.1 5.5 5.2 5.5V3C6.45 3 7.48333 3.1375 8.3 3.4125C9.11667 3.6875 9.91667 4.21667 10.7 5L17.1 11.4C16.8167 11.5833 16.5417 11.7292 16.275 11.8375C16.0083 11.9458 15.7 12 15.35 12C14.75 12 14.275 11.8333 13.925 11.5C13.575 11.1667 12.9333 11 12 11C11.0667 11 10.425 11.1667 10.075 11.5C9.725 11.8333 9.25 12 8.65 12C8.3 12 7.99167 11.9458 7.725 11.8375C7.45833 11.7292 7.18333 11.5833 6.9 11.4ZM16.7 3C17.4 3 17.9917 3.24583 18.475 3.7375C18.9583 4.22917 19.2 4.81667 19.2 5.5C19.2 6.2 18.9583 6.79167 18.475 7.275C17.9917 7.75833 17.4 8 16.7 8C16 8 15.4083 7.75833 14.925 7.275C14.4417 6.79167 14.2 6.2 14.2 5.5C14.2 4.81667 14.4417 4.22917 14.925 3.7375C15.4083 3.24583 16 3 16.7 3Z"}),refund:(0,S.jsx)("path",{d:"M12 22.2996C10.0336 22.2996 8.25039 21.804 6.65039 20.8128C5.05039 19.8208 3.81679 18.4916 2.94959 16.8252V20.1504H1.64999V14.6496H7.14959V15.9504H3.95039C4.68319 17.4832 5.77039 18.708 7.21199 19.6248C8.65359 20.5416 10.2496 21 12 21C13.2168 21 14.3628 20.7752 15.438 20.3256C16.5124 19.8752 17.454 19.2584 18.2628 18.4752C19.0708 17.692 19.7164 16.7668 20.1996 15.6996C20.6836 14.6332 20.9504 13.4832 21 12.2496H22.2996C22.2668 13.6496 21.9712 14.958 21.4128 16.1748C20.8544 17.3916 20.1168 18.454 19.2 19.362C18.2832 20.2708 17.208 20.9876 15.9744 21.5124C14.7416 22.0372 13.4168 22.2996 12 22.2996ZM11.3748 18.3996V17.25C11.0748 17.1836 10.6164 16.992 9.99959 16.6752C9.38279 16.3584 8.90799 15.7084 8.57519 14.7252L9.77519 14.1996C9.84159 14.2668 10.0332 14.6044 10.35 15.2124C10.6668 15.8212 11.2668 16.1256 12.15 16.1256C12.6004 16.1256 13.0588 15.992 13.5252 15.7248C13.9916 15.4584 14.2248 15.0168 14.2248 14.4C14.2248 13.9168 14.0664 13.5336 13.7496 13.2504C13.4328 12.9672 12.8912 12.6836 12.1248 12.3996C11.5584 12.1996 10.8836 11.908 10.1004 11.5248C9.31719 11.1416 8.92559 10.4248 8.92559 9.37439C8.92559 9.35839 9.02959 8.97959 9.23759 8.23799C9.44559 7.49639 10.1664 7.00039 11.4 6.74999V5.60039H12.6504V6.72479C13.5 6.87519 14.0956 7.17959 14.4372 7.63799C14.7788 8.09639 14.9912 8.40879 15.0744 8.57519L13.9752 9.05039C13.892 8.89999 13.7044 8.66239 13.4124 8.33759C13.1204 8.01279 12.6744 7.85039 12.0744 7.85039C11.708 7.85039 11.3 7.97119 10.8504 8.21279C10.4 8.45439 10.1748 8.83359 10.1748 9.35039C10.1748 9.83359 10.3624 10.2 10.7376 10.4496C11.1128 10.7 11.7504 10.9752 12.6504 11.2752C13.7672 11.6584 14.5172 12.1084 14.9004 12.6252C15.2836 13.142 15.4752 13.7336 15.4752 14.4C15.4752 15.0168 15.346 15.5128 15.0876 15.888C14.8292 16.2624 14.5332 16.554 14.1996 16.7628C13.8668 16.9708 13.546 17.108 13.2372 17.1744C12.9292 17.2416 12.7252 17.2752 12.6252 17.2752V18.3996H11.3748ZM1.70039 11.7504C1.74999 10.3168 2.05399 8.98759 2.61239 7.76279C3.17079 6.53799 3.91679 5.47519 4.85039 4.57439C5.78319 3.67519 6.86239 2.97119 8.08799 2.46239C9.31279 1.95439 10.6168 1.70039 12 1.70039C13.9504 1.70039 15.7336 2.19599 17.3496 3.18719C18.9664 4.17919 20.2 5.52519 21.0504 7.22519V3.84959H22.35V9.35039H16.8504V8.04959H20.0496C19.3328 6.54959 18.2536 5.33319 16.812 4.40039C15.3704 3.46679 13.7664 2.99999 12 2.99999C10.8 2.99999 9.66679 3.22479 8.60039 3.67439C7.53319 4.12479 6.59119 4.73759 5.77439 5.51279C4.95839 6.28719 4.30439 7.20799 3.81239 8.27519C3.32039 9.34159 3.04959 10.5 2.99999 11.7504H1.70039Z"}),restaurant:(0,S.jsx)("path",{d:"M7 22V12.85C6.15 12.6167 5.4375 12.15 4.8625 11.45C4.2875 10.75 4 9.93333 4 9V2H6V9H7V2H9V9H10V2H12V9C12 9.93333 11.7125 10.75 11.1375 11.45C10.5625 12.15 9.85 12.6167 9 12.85V22H7ZM17 22V14H14V7C14 5.61667 14.4875 4.4375 15.4625 3.4625C16.4375 2.4875 17.6167 2 19 2V22H17Z"}),room_service:(0,S.jsx)("path",{d:"M2 19V17H22V19H2ZM3 16V15C3 12.8667 3.65417 10.9833 4.9625 9.35C6.27083 7.71667 7.95 6.68333 10 6.25V6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6V6.25C16.0667 6.68333 17.75 7.71667 19.05 9.35C20.35 10.9833 21 12.8667 21 15V16H3ZM5.05 14H18.95C18.7167 12.2667 17.9417 10.8333 16.625 9.7C15.3083 8.56667 13.7667 8 12 8C10.2333 8 8.69583 8.56667 7.3875 9.7C6.07917 10.8333 5.3 12.2667 5.05 14Z"}),seat:(0,S.jsx)("path",{d:"M7.59 5.41012C6.81 4.63012 6.81 3.36012 7.59 2.58012C8.37 1.80012 9.64 1.80012 10.42 2.58012C11.2 3.36012 11.2 4.63012 10.42 5.41012C9.63 6.20012 8.37 6.20012 7.59 5.41012ZM6 16.0001V8.00012C6 7.45012 5.55 7.00012 5 7.00012C4.45 7.00012 4 7.45012 4 8.00012V16.0001C4 18.7601 6.24 21.0001 9 21.0001H14C14.55 21.0001 15 20.5501 15 20.0001C15 19.4501 14.55 19.0001 14 19.0001H9C7.34 19.0001 6 17.6601 6 16.0001ZM19.28 19.3501L15.51 15.5801C15.14 15.2101 14.63 15.0001 14.1 15.0001H11.5V11.3201C12.59 12.2101 14.16 13.0201 15.7 13.3401C16.37 13.4801 17 12.9801 17 12.3001C17 11.7701 16.61 11.3401 16.08 11.2501C14.66 11.0101 13.2 10.2401 12.33 9.28012L10.93 7.73012C10.74 7.52012 10.5 7.35012 10.24 7.23012C9.95 7.09012 9.62 7.00012 9.28 7.00012H9.25C8.01 7.00012 7 8.01012 7 9.25012V15.0001C7 16.6601 8.34 18.0001 10 18.0001H15.07L17.85 20.7801C18.24 21.1701 18.89 21.1701 19.28 20.7801C19.68 20.3901 19.68 19.7501 19.28 19.3501Z"}),seat_paid_indicator:(0,S.jsx)("path",{d:"M11.7686 0.731368C12.7766 -0.276576 14.5 0.437294 14.5 1.86274V10.8C14.5 12.5673 13.0673 14 11.3 14H2.36274C0.937294 14 0.223427 12.2766 1.23137 11.2686L11.7686 0.731368Z"}),shield_with_moon:(0,S.jsx)("path",{d:"M12.525 15.75C13.0814 15.75 13.6269 15.6408 14.1615 15.4222C14.6961 15.2036 15.166 14.8757 15.5711 14.4385C15.6749 14.3244 15.7032 14.2033 15.6557 14.0751C15.6083 13.9469 15.5077 13.8629 15.3538 13.8232C14.7269 13.6783 14.1477 13.4183 13.6163 13.0433C13.0849 12.6683 12.6474 12.1789 12.3038 11.5751C11.9769 11.0046 11.7682 10.393 11.6778 9.74048C11.5874 9.08791 11.6589 8.45458 11.8923 7.84048C11.9525 7.68663 11.9301 7.55586 11.8249 7.44817C11.7198 7.34049 11.5916 7.30332 11.4403 7.33665C10.4442 7.59177 9.65927 8.1142 9.08555 8.90395C8.51185 9.69368 8.225 10.5591 8.225 11.5001C8.225 12.6796 8.64519 13.6828 9.48558 14.5097C10.3259 15.3366 11.3391 15.75 12.525 15.75ZM12 21.4808C9.83716 20.8911 8.04646 19.618 6.62787 17.6616C5.20929 15.7052 4.5 13.518 4.5 11.1001V5.34625L12 2.53857L19.5 5.34625V11.1001C19.5 13.518 18.7907 15.7052 17.3721 17.6616C15.9535 19.618 14.1628 20.8911 12 21.4808ZM12 19.9001C13.7333 19.3501 15.1666 18.2501 16.3 16.6001C17.4333 14.9501 18 13.1167 18 11.1001V6.37507L12 4.1347L5.99997 6.37507V11.1001C5.99997 13.1167 6.56664 14.9501 7.69997 16.6001C8.83331 18.2501 10.2666 19.3501 12 19.9001Z"}),spa:(0,S.jsx)("path",{d:"M12 22C10.7833 21.85 9.575 21.5208 8.375 21.0125C7.175 20.5042 6.10417 19.775 5.1625 18.825C4.22083 17.875 3.45833 16.675 2.875 15.225C2.29167 13.775 2 12.0333 2 10V9H3C3.85 9 4.725 9.10833 5.625 9.325C6.525 9.54167 7.36667 9.86667 8.15 10.3C8.35 8.86667 8.80417 7.39583 9.5125 5.8875C10.2208 4.37917 11.05 3.08333 12 2C12.95 3.08333 13.7792 4.37917 14.4875 5.8875C15.1958 7.39583 15.65 8.86667 15.85 10.3C16.6333 9.86667 17.475 9.54167 18.375 9.325C19.275 9.10833 20.15 9 21 9H22V10C22 12.0333 21.7083 13.775 21.125 15.225C20.5417 16.675 19.7792 17.875 18.8375 18.825C17.8958 19.775 16.8292 20.5042 15.6375 21.0125C14.4458 21.5208 13.2333 21.85 12 22ZM11.95 19.95C11.7667 17.1833 10.9458 15.0917 9.4875 13.675C8.02917 12.2583 6.21667 11.3833 4.05 11.05C4.23333 13.9 5.07917 16.025 6.5875 17.425C8.09583 18.825 9.88333 19.6667 11.95 19.95ZM12 13.6C12.25 13.2333 12.5542 12.8542 12.9125 12.4625C13.2708 12.0708 13.6167 11.7333 13.95 11.45C13.9167 10.5 13.7292 9.50833 13.3875 8.475C13.0458 7.44167 12.5833 6.43333 12 5.45C11.4167 6.43333 10.9542 7.44167 10.6125 8.475C10.2708 9.50833 10.0833 10.5 10.05 11.45C10.3833 11.7333 10.7333 12.0708 11.1 12.4625C11.4667 12.8542 11.7667 13.2333 12 13.6ZM13.95 19.5C14.5667 19.3 15.2083 19.0083 15.875 18.625C16.5417 18.2417 17.1625 17.7208 17.7375 17.0625C18.3125 16.4042 18.8042 15.5833 19.2125 14.6C19.6208 13.6167 19.8667 12.4333 19.95 11.05C18.3833 11.2833 17.0083 11.8042 15.825 12.6125C14.6417 13.4208 13.7333 14.45 13.1 15.7C13.3 16.2333 13.4708 16.8167 13.6125 17.45C13.7542 18.0833 13.8667 18.7667 13.95 19.5Z"}),stairs:(0,S.jsx)("path",{d:"M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3z M18,8h-2.42v3.33H13v3.33h-2.58 V18H6v-2h2.42v-3.33H11V9.33h2.58V6H18V8z"}),star:(0,S.jsx)("path",{d:"M5.825 22L8.15 14.4L2 10H9.6L12 2L14.4 10H22L15.85 14.4L18.175 22L12 17.3L5.825 22Z"}),wallet:(0,S.jsx)("path",{d:"M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V7.5H19V5H5V19H19V16.5H21V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM13 17C12.45 17 11.9792 16.8042 11.5875 16.4125C11.1958 16.0208 11 15.55 11 15V9C11 8.45 11.1958 7.97917 11.5875 7.5875C11.9792 7.19583 12.45 7 13 7H20C20.55 7 21.0208 7.19583 21.4125 7.5875C21.8042 7.97917 22 8.45 22 9V15C22 15.55 21.8042 16.0208 21.4125 16.4125C21.0208 16.8042 20.55 17 20 17H13ZM20 15V9H13V15H20ZM16 13.5C16.4167 13.5 16.7708 13.3542 17.0625 13.0625C17.3542 12.7708 17.5 12.4167 17.5 12C17.5 11.5833 17.3542 11.2292 17.0625 10.9375C16.7708 10.6458 16.4167 10.5 16 10.5C15.5833 10.5 15.2292 10.6458 14.9375 10.9375C14.6458 11.2292 14.5 11.5833 14.5 12C14.5 12.4167 14.6458 12.7708 14.9375 13.0625C15.2292 13.3542 15.5833 13.5 16 13.5Z"}),warning:(0,S.jsx)("path",{d:"M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM8.21071 9.25592L10.9548 12L8.21071 14.7441L9.38922 15.9226L12.1333 13.1785L14.8774 15.9226L16.0559 14.7441L13.3118 12L16.0559 9.25592L14.8774 8.07741L12.1333 10.8215L9.38922 8.07741L8.21071 9.25592Z"}),wifi:(0,S.jsx)("path",{d:"M2.83333 9.50005L4.49999 11.1667C8.64166 7.02505 15.3583 7.02505 19.5 11.1667L21.1667 9.50005C16.1083 4.44172 7.89999 4.44172 2.83333 9.50005ZM9.49999 16.1667L12 18.6667L14.5 16.1667C13.125 14.7834 10.8833 14.7834 9.49999 16.1667ZM6.16666 12.8334L7.83333 14.5C10.1333 12.2 13.8667 12.2 16.1667 14.5L17.8333 12.8334C14.6167 9.61672 9.39166 9.61672 6.16666 12.8334Z"})},Np=t=>t in u1?u1[t]:(l1(`The icon "${t}" is missing from ICON_MAP`),null),b=({name:t,size:e,className:r,viewBox:n,color:o,style:i})=>(0,S.jsx)("svg",{className:r,width:e||24,height:e||24,viewBox:n||"0 0 24 24","aria-label":t,"data-testid":t,style:{display:"block",fill:`var(${o})`||"currentColor",...i},children:Np(t)});var d1=D(re());var fo=require("react/jsx-runtime"),Op={primary:"button--primary",outlined:"button--outlined",destructive:"button--destructive"},Mp={32:"button--32",40:"button--40",48:"button--48"},ne=({iconBefore:t,variant:e="primary",size:r=40,children:n,className:o,type:i="button",...a})=>(0,fo.jsxs)("button",{type:i,className:(0,d1.default)("button",Op[e],Mp[r],o),...a,children:[t&&(0,fo.jsx)(b,{className:"duffel-button__icon duffel-button__icon--before",name:t}),n]});var Gi=require("react/jsx-runtime"),yr=({style:t,children:e})=>(0,Gi.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",border:"dashed 1px var(--GREY-300)",borderRadius:"4px",paddingBlock:"32px",...t},children:(0,Gi.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"470px"},children:e})});var jt=require("react/jsx-runtime"),Er=class extends p1.default.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){ye(e)}render(){return this.state.hasError?(0,jt.jsxs)(yr,{children:[(0,jt.jsx)("p",{style:{marginBlock:"0"},className:"p1--semibold",children:"We ran into an error"}),(0,jt.jsx)("p",{className:"p1--regular",style:{color:"var(--GREY-600)",marginBlock:"12px",textAlign:"center"},children:"Please try reloading. If the problem persists reach out to our support team."}),(0,jt.jsx)("div",{children:(0,jt.jsx)(ne,{variant:"outlined",iconBefore:"autorenew",onClick:()=>location.reload(),children:"Try again"})})]}):this.props.children}};var qt=require("react/jsx-runtime"),f1=({height:t,message:e})=>(0,qt.jsxs)(yr,{style:{minHeight:t},children:[(0,qt.jsx)("p",{style:{marginBlock:"0"},className:"p1--semibold",children:"Failed to load extras"}),(0,qt.jsx)("p",{className:"p2--regular",style:{color:"var(--GREY-600)",marginBlock:"12px",textAlign:"center"},children:e||"Please try reloading. If the problem persists reach out to our support team."}),(0,qt.jsx)("div",{children:(0,qt.jsx)(ne,{variant:"outlined",onClick:()=>location.reload(),iconBefore:"autorenew",children:"Try again"})})]});var vr=t=>t.reduce((e,{id:r,total_amount:n,total_currency:o})=>({[r]:{total_amount:n,total_currency:o},...e}),{});var Nt=(t,e,r)=>{if(!t||!e||e.length===0)return 0;let n=vr(t.available_services);return dn(n,e,r)},dn=(t,e,r)=>(e||[]).reduce((n,{quantity:o,id:i})=>{let a=n;return i in t?a+=o*+t[i].total_amount:r?a+=o*Ap(i,r):ye(new Error(`The service id (${i}) provided could not be found in neither the offer nor the seat maps.`)),a},0),Ap=(t,e)=>{for(let r of e)for(let n of r.cabins)for(let o of n.rows)for(let i of o.sections)for(let a of i.elements)if(a.type==="seat"&&Array.isArray(a.available_services)){let s=a.available_services.find(c=>c.id===t);if(s)return+s.total_amount}return 0};var m1=({baggageSelectedServices:t,seatSelectedServices:e,cfarSelectedServices:r,offer:n,seatMaps:o,passengers:i})=>{let a=[...t||[],...e||[],...r||[]],s=+n.total_amount+Nt(n,a,o);return{...n&&{selected_offers:[n.id]},passengers:i,services:Pp(a),...n&&{payments:[{type:"balance",amount:`${s}`,currency:n.total_currency}]},type:"instant",metadata:{source:"duffel-ancillaries@3.3.1--canary"}}},Pp=t=>Array.isArray(t)?t.filter(({quantity:e})=>e>0).map(({id:e,quantity:r})=>({id:e,quantity:r})):[];var Yi=t=>(e,r)=>{let{rate:n,amount:o}=t;return{amount:e*(1+n)+o,currency:r}},$i="You cannot supply both markup and priceFormatters for the same service.",g1=(t,e)=>{let r={};if(e&&(e.bags&&(r.bags=e.bags),e.seats&&(r.seats=e.seats),e.cancel_for_any_reason&&(r.cancel_for_any_reason=e.cancel_for_any_reason)),t){if(t.bags){if(e&&e.bags)throw new Error($i);r.bags=Yi(t.bags)}if(t.seats){if(e&&e.seats)throw new Error($i);r.seats=Yi(t.seats)}if(t.cancel_for_any_reason){if(e&&e.cancel_for_any_reason)throw new Error($i);r.cancel_for_any_reason=Yi(t.cancel_for_any_reason)}}return r};var mo=t=>t.type==="baggage";var br=t=>t.type==="cancel_for_any_reason";var Dp=(t,e)=>`${t} must all have the same currency, but they have ${e.size} different currencies (${[...e].join(", ")}). Check the price formatters passed into the component's render function.`,_1=(t,e)=>{if(!e)return t;let r=t.available_services||[],n=new Set,o={baggage:e?.bags,cancel_for_any_reason:e?.cancel_for_any_reason},i=r.map(a=>{let s={...a};if(a.type in o&&o[a.type]){let{total_amount:c,total_currency:l}=a;if(mo(a)){let{amount:d,currency:u}=o[a.type](+a.total_amount,a.total_currency,a);c=d.toString(),u&&(l=u)}if(br(a)){let{amount:d,currency:u}=o[a.type](+a.total_amount,a.total_currency,a);c=d.toString(),u&&(l=u)}if(n.add(l),n.size>1)throw new Error(Dp(a.type,n));s.total_amount=c,s.total_currency=l}return s});return{...t,available_services:i}};function go(t){return t.type==="seat"}var wp=t=>`Seats must all have the same currency, but they have ${t.size} different currencies (${[...t].join(", ")}). Check the price formatters passed into the component's render function.`,kp=(t,e,r)=>{let n={...t};if(go(n)&&n.available_services.length>0){let o=n.available_services.map(i=>{let a={...i},{amount:s,currency:c}=e(+i.total_amount,i.total_currency,i);if(a.total_amount=s.toString(),c&&(a.total_currency=c,r.add(c),r.size>1))throw new Error(wp(r));return a});n.available_services=o}return n},h1=(t,e)=>{if(!e)return t;let r=new Set;return t.map(o=>{let i=o.cabins.map(a=>{let s=a.rows.map(c=>{let l=c.sections.map(d=>{let u=d.elements.map(m=>kp(m,e,r));return{...d,elements:u}});return{...c,sections:l}});return{...a,rows:s}});return{...o,cabins:i}})};var _o=t=>{let e=t.split(", ").map(n=>parseInt(n));return(.2126*e[0]+.7152*e[1]+.0722*e[2])/255>.5};var S1=t=>"selected_offers"in t&&"passengers"in t&&"services"in t&&"payments"in t&&"type"in t&&"metadata"in t;var C1=t=>t.expires_at&&new Date(t.expires_at)<new Date;var pn=t=>"data"in t&&Array.isArray(t.data.errors),Lp="https://api.duffel.com",Bp="3.3.1--canary";async function ho(t,e,r="GET",n){dt("Making request to the Duffel API",{path:e,method:r});let o=`${Lp}/ancillaries-component/${e}`,i=null;try{i=await fetch(o,{method:r,body:n,headers:{"Duffel-Version":"v1",Authorization:`Bearer ${t}`,"User-Agent":`Duffel/ancillaries-component@${Bp}`}})}catch(s){throw dt("Failed to make request to the Duffel API",{error:s}),s}let a=await i.json();if(Array.isArray(a.errors))throw dt("Request to the Duffel API failed",{operation:`${r} ${o}`,method:r,request_id:a?.meta?.request_id,errors:a.errors,status:i.status}),{...i,data:a};return dt("Request to the Duffel succeeded",{request_id:a?.meta?.request_id}),a}var y1="https://assets.duffel.com/components/3.3.1--canary",E1=async t=>await(await fetch(y1+`/fixtures/offers/${t}.json`)).json(),v1=async t=>await(await fetch(y1+`/fixtures/seat-maps/${t}.json`)).json();var So=t=>t.startsWith("fixture_off_");async function b1(t,e){return(await ho(e,`offers/${t}?return_available_services=true`)).data}async function T1(t,e,r,n,o){n(!0);let i=So(t);if(t=i?t.replace("fixture_",""):t,i)return E1(t).then(a=>{n(!1),o(a)});if(!e)throw new Error("Attempted to retrieve seat maps but the client key is missing.");try{let a=await b1(t,e);o(a)}catch(a){let s="An unknown error occurred while retrieving the offer.";a instanceof Error?(s=a.message,a.message.includes("Load failed")&&(s="The Duffel API is not available. Please try again later.")):pn(a)&&a.status===404&&(s="The offer you are looking for does not exist or has expired."),pn(a)&&a.status>=500&&a.status<600&&ye(new Error(s)),r(s)}finally{n(!1)}}async function R1(t,e){return(await ho(e,`offers/${t}/seat_maps`)).data}async function x1(t,e,r,n,o){n(!0);let i=So(t);if(t=i?t.replace("fixture_",""):t,i)return v1(t).then(a=>{n(!1),o(a)});if(!e)throw new Error("Attemptted to retrieve seat maps but the client key is missing.");try{let a=await R1(t,e);o(a)}catch(a){let s="An unknown error occurred while retrieving the seat maps.";a instanceof Error?(s=a.message,a.message.includes("Load failed")&&(s="The Duffel API is not available. Please try again later.")):pn(a)&&(s=a.data.errors[0]?.message||"Received an unknown error from the Duffel API."),ye(new Error(s)),r()}finally{n(!1)}}var Wi=t=>Hp(t)&&(Zi(t)||ji(t)||qi(t)||zi(t)),Hp=t=>"onPayloadReady"in t&&"passengers"in t&&"services"in t,Zi=t=>"offer_id"in t&&t.offer_id.startsWith("fixture_"),ji=t=>"offer_id"in t&&"client_key"in t,qi=t=>"offer"in t&&"seat_maps"in t,zi=t=>"offer"in t&&"client_key"in t;var he=D(require("react"));var I1=require("react/jsx-runtime"),Tr=()=>(0,I1.jsx)("span",{className:"textual-loading-indicator","aria-hidden":"true"});var N1=require("react/jsx-runtime"),pt=({backgroundColor:t,color:e,children:r})=>(0,N1.jsx)("div",{style:{backgroundColor:t,color:e,padding:"2px 8px",whiteSpace:"nowrap",borderRadius:"4px",fontWeight:"600",fontSize:"14px",lineHeight:"20px",textAlign:"center"},children:r});var Rr=(t,e)=>{if(t.available_services.length===0)throw new Error("No services available");let r=t.available_services.find(n=>n.type===e);if(!r)throw new Error(`No ${e} services available`);return r.total_currency};var We=t=>(t||[]).reduce((e,{quantity:r})=>e+r,0);var Fp={baggage:mo,cancel_for_any_reason:br},xr=(t,e)=>{let r=Fp[e];if(!r)throw new Error(`Unknown service type: ${e}`);return t&&Array.isArray(t.available_services)&&t.available_services.some(n=>r(n)&&n.maximum_quantity>0)};var k=(t,e="en-GB",r={})=>n=>{try{let i=new Intl.NumberFormat(e,{style:"currency",currency:t,...r}).format(n);return r&&r.signDisplay&&(r.signDisplay==="always"||r.signDisplay==="exceptZero"&&n!==0)?i.replace(/^([+-])/,"$1 "):i}catch{return`${n} ${t}`}};var Pe=(t,e,r)=>t==1?`${t} ${e}`:`${t} ${r}`;var Z1=D(require("react"));var O1=D(re()),M1=D(require("react"));var Ee=require("react/jsx-runtime"),Ir=({buttonTitle:t,title:e,icon:r,copy:n,onClick:o,children:i,isLoading:a,disabled:s,isSelected:c})=>{let l=M1.Children.toArray(i).length>0;return(0,Ee.jsxs)("button",{type:"button",title:t,...o&&{onClick:o},disabled:s,className:(0,O1.default)("ancillary-card",a&&"ancillary-card--loading"),style:{cursor:"pointer",background:"transparent",color:"var(--GREY-900)",border:"solid 1px rgba(226, 226, 232, 1)",display:"flex",rowGap:"4px",padding:"20px",borderRadius:"8px",justifyContent:"space-between",flexWrap:"wrap",flexDirection:"column",width:"100%",boxSizing:"border-box",fontSize:"16px",fontWeight:"400",lineHeight:"24px",letterSpacing:"0em",transition:"border-color 0.3s var(--TRANSITION-CUBIC-BEZIER) background-color 0.3s var(--TRANSITION-CUBIC-BEZIER)"},children:[(0,Ee.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",marginBlock:"0",textAlign:"start",marginTop:"2px",columnGap:"12px",width:"100%"},children:[(0,Ee.jsx)("div",{children:c?(0,Ee.jsx)(b,{name:"check",className:"ancillary-card__selected-icon"}):(0,Ee.jsx)(b,{name:r})}),(0,Ee.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"start",width:"100%"},children:[(0,Ee.jsx)("p",{className:"p1--semibold",style:{marginBlock:"0"},children:e}),(0,Ee.jsx)("div",{className:"ancillary-card__children",children:l?i:(0,Ee.jsx)(b,{name:"expand_content",className:"ancillary-card__expand-icon"})})]})]}),(0,Ee.jsx)("p",{className:"p1--regular",style:{textAlign:"start",color:"var(--GREY-600)",marginLeft:"34px",marginBlock:"0"},children:n})]})};var Ki=t=>{t?document.body.style.overflow="":document.body.style.overflow="hidden"};var P1=D(re()),D1=D(require("react"));var A1=D(re());var Xi=require("react/jsx-runtime"),Vp={primary:"icon-button--primary",outlined:"icon-button--outlined"},fn=({icon:t,variant:e="primary",className:r,...n})=>(0,Xi.jsx)("button",{type:"button",className:(0,A1.default)("icon-button",Vp[e],r),...n,children:(0,Xi.jsx)(b,{name:t})});var Nr=require("react/jsx-runtime"),Or=({children:t,onClose:e,isOpen:r})=>(D1.useEffect(()=>(Ki(!r),()=>Ki(!0)),[r]),(0,Nr.jsx)("div",{className:(0,P1.default)("modal",r&&"modal--open"),style:{opacity:0},children:(0,Nr.jsxs)("div",{role:"presentation",className:"modal--content",children:[t,(0,Nr.jsx)(fn,{icon:"close",onClick:e,title:"Close modal",className:"modal--close-button"})]})})),Mr=({children:t})=>(0,Nr.jsx)("div",{className:"modal-body",children:t});var Co=t=>t.reduce((e,r)=>({[r.id]:r,...e}),{});var yo=t=>t.slices.reduce((e,r)=>[...e,...r.segments],new Array);var bo=D(require("react"));var Eo=(t,e,r)=>t?t.given_name&&t.family_name?`${t.given_name} ${t.family_name}`:t.given_name?t.given_name:t.family_name?t.family_name:e?.given_name&&e?.family_name?`${e.given_name} ${e.family_name}`:e?.given_name?e.given_name:e?.family_name?e.family_name:`Passenger ${r}`:`Passenger ${r}`;var w1=t=>{if(!t)return ye(new Error("getBaggageServiceDescription was not given any metadata")),null;if(!t.maximum_weight_kg&&!t.maximum_length_cm&&!t.maximum_height_cm&&!t.maximum_depth_cm)return null;let e=t.maximum_length_cm&&t.maximum_height_cm&&t.maximum_depth_cm,r="";e&&(r=` / ${t.maximum_height_cm} x ${t.maximum_length_cm} x ${t.maximum_depth_cm} cm`);let n="";return t.maximum_weight_kg&&(n=`Up to ${t.maximum_weight_kg}kg`),`${n}${r}`};var k1=(t,e,r,n)=>t.some(o=>o.id===n.id||o.serviceInformation?.type!=="carry_on"&&o.serviceInformation?.type!=="checked"||o.serviceInformation?.segmentId!==e||o.serviceInformation?.passengerId!==r?!1:o.serviceInformation?.type===n.metadata.type);var Ar=require("react/jsx-runtime"),L1=({id:t,min:e,max:r,value:n,onChange:o})=>(0,Ar.jsxs)("div",{className:"counter",id:t,children:[(0,Ar.jsx)(fn,{icon:"minus",title:"Remove one",id:`${t}-minus`,"data-testid":`${t}-minus`,variant:"outlined",disabled:n<=e,onClick:()=>o(Math.max(n-1,e))}),(0,Ar.jsx)("div",{className:"counter__count-label",children:n}),(0,Ar.jsx)(fn,{icon:"add",title:"Add one",id:`${t}-plus`,"data-testid":`${t}-plus`,variant:"outlined",disabled:n>=r,onClick:()=>o(Math.min(n+1,r))})]});var ft=require("react/jsx-runtime"),B1=({segmentId:t,passengerId:e,availableService:r,quantity:n,onQuantityChanged:o,selectedServices:i})=>{let a=r.metadata.type==="carry_on"?"Cabin bag":"Checked bag",s=k(r.total_currency)(+r.total_amount),c=w1(r.metadata),l=k1(i,t,e,r);return(0,ft.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,ft.jsxs)("div",{children:[(0,ft.jsxs)("p",{style:{margin:0},className:"p2--regular",children:[a,(0,ft.jsx)("span",{style:{marginInline:"4px",color:"var(--GREY-400)"},children:"\u2022"}),(0,ft.jsx)("span",{className:"p2--semibold","data-testid":`price-label--${r.id}--${e}`,children:s})]}),(0,ft.jsx)("p",{style:{margin:0,color:"var(--GREY-600)"},className:"p3--regular",children:c})]}),(0,ft.jsx)(L1,{id:`counter--${r.id}--${e}`,min:0,value:n,onChange:o,max:l?0:r.maximum_quantity})]})};var F1=require("react/jsx-runtime"),H1=({includedBaggage:t})=>{let{carryOnBagsQuantity:e,checkedBagsQuantity:r}=t.reduce((o,{type:i,quantity:a})=>({carryOnBagsQuantity:o.carryOnBagsQuantity+(i==="carry_on"?a:0),checkedBagsQuantity:o.checkedBagsQuantity+(i==="checked"?a:0)}),{carryOnBagsQuantity:0,checkedBagsQuantity:0}),n=new Array;return e>0&&n.push(Pe(e,"cabin bag","cabin bags")),r>0&&n.push(Pe(r,"checked bag","checked bags")),(0,F1.jsxs)("div",{style:{marginBlock:"8px",padding:"8px 12px",color:" var(--GREEN-300)",backgroundColor:" var(--GREEN-100)",borderRadius:"6px"},className:"p2--regular",children:[n.join(" and ")," included with ticket"]})};var Ot=require("react/jsx-runtime"),V1=({segmentId:t,passengerId:e,passengerName:r,includedBaggage:n,passengerServicesForSegment:o,selectedServices:i,setSelectedServices:a})=>{let s=n.reduce((c,l)=>c+l.quantity,0);return(0,Ot.jsxs)("div",{style:{marginTop:"24px"},children:[(0,Ot.jsx)("h3",{style:{margin:0},className:"p1--semibold",children:r}),s?(0,Ot.jsx)(H1,{includedBaggage:n}):null,(0,Ot.jsx)("div",{style:{display:"flex",rowGap:"8px",flexDirection:"column"},children:o.map(c=>(0,Ot.jsx)(B1,{passengerId:e,segmentId:t,availableService:c,selectedServices:i,quantity:i.find(({id:l})=>l==c.id)?.quantity||0,onQuantityChanged:l=>Up(l,t,e,r,c,i,a)},c.id))}),o.length===0&&(0,Ot.jsx)("p",{style:{color:"var(--GREY-700)",margin:0},children:"Extra baggage is not available for this passenger on this flight"})]})},Up=(t,e,r,n,o,i,a)=>{let s=i.findIndex(({id:l})=>o.id===l),c=Array.from(i);s<0?c.push({id:o.id,quantity:t,serviceInformation:{segmentId:e,passengerId:r,passengerName:n,total_amount:o.total_amount,total_currency:o.total_currency,...o.metadata}}):c[s].quantity=t,a(c.filter(({quantity:l})=>l!==0))};var Ji=require("react/jsx-runtime"),U1=({offer:t,segment:e,passengersById:r,selectedServices:n,setSelectedServices:o})=>(0,Ji.jsx)(Mr,{children:e.passengers.map(({passenger_id:i,baggages:a},s)=>(0,Ji.jsx)(V1,{segmentId:e.id,passengerId:i,passengerName:Eo(r[i],t.passengers.find(({id:c})=>c===i),s+1),includedBaggage:a,passengerServicesForSegment:t.available_services.filter(({type:c,passenger_ids:l,segment_ids:d})=>c==="baggage"&&l.includes(i)&&d.includes(e.id)),selectedServices:n,setSelectedServices:o},i))});var mt=require("react/jsx-runtime"),G1=({selectedServices:t,servicePrices:e,currency:r,isFirstSegment:n,isLastSegment:o,onNextSegmentButtonClicked:i,onPreviousSegmentButtonClicked:a,onClose:s})=>{let c=We(t),l=dn(e,t),d=k(r)(l),u=n&&n;return(0,mt.jsxs)("div",{style:{padding:"16px 24px 24px"},children:[(0,mt.jsxs)("div",{className:"flex--space-between",children:[(0,mt.jsxs)("div",{children:["Price for ",Pe(c,"extra bag","extra bags")]}),(0,mt.jsxs)("div",{className:"h3--semibold","data-testid":"baggage-total-amount-label",children:["+ ",d]})]}),(0,mt.jsxs)("div",{style:u?{marginTop:"16px",display:"grid"}:{marginTop:"16px",display:"grid",columnGap:"12px",gridTemplateColumns:"repeat(2, 1fr)"},children:[!u&&(0,mt.jsx)(ne,{size:48,variant:"outlined",disabled:n,onClick:()=>a(),children:"Back"}),(0,mt.jsx)(ne,{size:48,"data-testid":"confirm-selection-for-baggage",onClick:()=>o?s():i(),children:o?"Confirm":"Next"})]})]})};var vo=t=>{let e=new Date(t);if(isNaN(e.valueOf()))ye(new Error(`formatDateString attempted to parse an invalid date string: ${t}`));else return Gp(e)},Gp=t=>{let{format:e}=new Intl.DateTimeFormat(void 0,{dateStyle:"medium"});return e(t)};var Ze=require("react/jsx-runtime"),Y1=({segmentCount:t,currentSegmentIndex:e,currentSegment:r,setCurrentSegmentIndex:n})=>(0,Ze.jsxs)("div",{style:{padding:"24px 24px 16px"},children:[t>1&&(0,Ze.jsx)("div",{style:{display:"flex",columnGap:"4px"},children:Array(t).fill(0).map((o,i)=>i===e?(0,Ze.jsx)(Yp,{},`segment_${i}`):(0,Ze.jsx)($1,{onClick:()=>n(i)},`segment_${i}`))}),(0,Ze.jsxs)("h2",{className:"h3--semibold",style:t>1?{marginTop:"12px"}:{},children:["Flight to ",r.destination.iata_code,(0,Ze.jsx)("span",{className:"p2--regular",style:{color:"var(--GREY-600)",marginLeft:"8px"},children:vo(r.departing_at)})]})]}),$1=({onClick:t,style:e})=>(0,Ze.jsx)("button",{type:"button",onClick:t,style:{border:"none",width:"4px",height:"4px",padding:"0",borderRadius:"4px",backgroundColor:"var(--TERTIARY, rgba(var(--ACCENT), var(--ACCENT-LIGHT-200)))",transition:"background-color 0.3s var(--TRANSITION-CUBIC-BEZIER)",...e}}),Yp=()=>(0,Ze.jsx)($1,{onClick:void 0,style:{backgroundColor:"var(--SECONDARY, rgb(var(--ACCENT)))"}});var Pr=require("react/jsx-runtime"),W1=({isOpen:t,offer:e,passengers:r,onClose:n,selectedServices:o})=>{let[i,a]=(0,bo.useState)(0),[s,c]=bo.default.useState(o);if(!e)return null;let l=yo(e),d=l[i],u=Co(r),m=vr(e.available_services),h=e.base_currency;return xr(e,"baggage")&&(h=Rr(e,"baggage")),(0,Pr.jsxs)(Or,{isOpen:t,onClose:()=>n(o),children:[(0,Pr.jsx)(Y1,{segmentCount:l.length,currentSegment:d,currentSegmentIndex:i,setCurrentSegmentIndex:C=>a(C)}),(0,Pr.jsx)(U1,{offer:e,selectedServices:s,passengersById:u,segment:d,setSelectedServices:c}),(0,Pr.jsx)(G1,{currency:h,selectedServices:s,servicePrices:m,isFirstSegment:i===0,isLastSegment:i+1===l.length,onNextSegmentButtonClicked:()=>a(i+1),onPreviousSegmentButtonClicked:()=>a(i-1),onClose:()=>n(s)})]})};var je=require("react/jsx-runtime"),j1=({isLoading:t,offer:e,passengers:r,selectedServices:n,setSelectedServices:o})=>{let[i,a]=Z1.default.useState(!1),s=xr(e,"baggage"),c=We(n),l=c>0,d=Nt(e,n),u=e?.base_currency||"";s&&(u=Rr(e,"baggage"));let m=e?k(u)(d):"0",h=s&&l?`${Pe(c,"bag","bags")} added for ${m}`:"Add any extra baggage you need for your trip";return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsxs)(Ir,{buttonTitle:"Select extra baggage",title:"Extra baggage",copy:h,icon:"cabin_bag",onClick:s?()=>a(!0):null,isLoading:t,disabled:!t&&!s,isSelected:l,children:[t&&(0,je.jsxs)(pt,{color:"var(--GREY-900)",backgroundColor:"var(--GREY-100)",children:["Loading",(0,je.jsx)(Tr,{})]}),!t&&!s&&(0,je.jsx)(pt,{color:"var(--GREY-700)",backgroundColor:"var(--GREY-200)",children:"Not available"})]}),(0,je.jsx)(W1,{isOpen:!!(i&&e),offer:e,passengers:r,onClose:C=>{let y=JSON.parse(JSON.stringify(C));o(y),a(!1)},selectedServices:n})]})};var J1=D(require("react"));var mn=require("react/jsx-runtime"),To=({children:t})=>(0,mn.jsxs)("li",{className:"cfar-modal-list-item",children:[(0,mn.jsx)(b,{name:"check"}),(0,mn.jsx)("p",{children:t})]});var gt=require("react/jsx-runtime"),q1=({offerCurrency:t,service:e})=>(0,gt.jsxs)(Mr,{children:[(0,gt.jsxs)("ul",{style:{padding:0},children:[(0,gt.jsx)(To,{children:"Cancel your trip for any reason"}),(0,gt.jsxs)(To,{children:["Guaranteed refund of"," ",k(t)(+e.metadata.refund_amount)]}),(0,gt.jsx)(To,{children:"Redeemable up to 24 hours before first flight departure"})]}),(0,gt.jsxs)("a",{href:e.metadata.terms_and_conditions_url,rel:"noopener noreferrer",target:"_blank",className:"p2--regular",style:{color:"var(--GREY-600)"},children:["Terms and conditions",(0,gt.jsx)(b,{name:"north_east",size:16,style:{display:"inline",verticalAlign:"middle",marginLeft:"4px"}})]})]});var Mt=require("react/jsx-runtime"),z1=({service:t,selectedServices:e,onAddCfarService:r,onRemoveCfarService:n,onClose:o})=>{let i=e.some(({id:s})=>s==t.id),a=k(t.total_currency)(+t.total_amount);return(0,Mt.jsxs)("div",{className:"cfar-modal-footer",children:[(0,Mt.jsx)(ne,{size:48,variant:i?"destructive":"outlined",onClick:i?n:o,children:i?"Remove protection":"Don\u2019t protect trip"}),!i&&(0,Mt.jsxs)(ne,{size:48,"data-testid":"confirm-selection-for-cfar",onClick:r,children:["Add protection for ",a]}),i&&(0,Mt.jsx)($p,{})]})},$p=()=>(0,Mt.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",columnGap:"8px",backgroundColor:"var(--GREY-100)",padding:"var(--space-12)",borderRadius:"var(--BUTTON-RADIUS)"},children:[(0,Mt.jsx)(b,{size:20,name:"shield_with_moon",style:{fill:"var(--SECONDARY, rgb(var(--ACCENT)))"}}),"Your trip is protected"]});var Qi=require("react/jsx-runtime"),K1=()=>(0,Qi.jsx)("div",{style:{padding:"24px 24px 16px"},children:(0,Qi.jsx)("h2",{className:"h3--semibold",style:{marginBlock:0},children:"Cancel for any reason"})});var _t=require("react/jsx-runtime"),X1=({isOpen:t,offerCurrency:e,service:r,onClose:n,selectedServices:o})=>(0,_t.jsxs)(Or,{isOpen:t,onClose:()=>n(o),children:[(0,_t.jsx)(K1,{}),r&&e&&(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(q1,{service:r,offerCurrency:e}),(0,_t.jsx)(z1,{service:r,selectedServices:o,onAddCfarService:()=>n([{id:r.id,quantity:1,serviceInformation:{type:"cancel_for_any_reason",total_amount:r.total_amount,total_currency:r.total_currency,...r.metadata}}]),onRemoveCfarService:()=>n([]),onClose:()=>n(o)})]})]});var qe=require("react/jsx-runtime"),Q1=({isLoading:t,offer:e,selectedServices:r,setSelectedServices:n})=>{let[o,i]=J1.default.useState(!1),a=xr(e,"cancel_for_any_reason"),c=We(r)>0,l=e?.base_currency||"";a&&(l=Rr(e,"cancel_for_any_reason"));let d=Nt(e,r),u=e?k(l)(d):"0",m=e?.available_services.find(br),h=a&&c?`Your trip is protected for ${u}`:"Protect your purchase if you decide to cancel";return(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsxs)(Ir,{buttonTitle:"Add cancel for any reason",title:"Cancel for any reason",copy:h,icon:"shield_with_moon",onClick:a?()=>i(!0):null,isLoading:t,disabled:!t&&!a,isSelected:c,children:[t&&(0,qe.jsxs)(pt,{color:"var(--GREY-900)",backgroundColor:"var(--GREY-100)",children:["Loading",(0,qe.jsx)(Tr,{})]}),!t&&!a&&(0,qe.jsx)(pt,{color:"var(--GREY-700)",backgroundColor:"var(--GREY-200)",children:"Not available"})]}),(0,qe.jsx)(X1,{isOpen:!!(o&&e&&m),offerCurrency:e?.base_currency,service:m,onClose:C=>{i(!1),n(C)},selectedServices:r})]})};var ec=(t,e)=>{for(let r of t)for(let n of r.cabins)for(let o of n.rows)for(let i of o.sections)for(let a of i.elements)if(e(a))return a};var Ro=t=>ec(t,r=>r.type==="seat"&&r.available_services.length>0)?.available_services[0]?.total_currency;var Dc=D(require("react"));var tc=t=>t.flatMap(e=>e.passengers.map((r,n)=>({passenger:r,passengerIndex:n,segment:e})));var aa=D(require("react"));var rc=(t,e)=>e.cabins.filter(r=>r.deck===t);var nc=t=>{let e=new Set;for(let r of t)for(let n of r.rows)for(let o of n.sections)for(let i of o.elements)i.type!=="seat"&&i.type!=="empty"&&e.add(i.type);return e};var oc=(t,e)=>!!(t.wings&&t.wings.first_row_index<=e&&t.wings.last_row_index>=e);var Rc=D(re()),xc=D(require("react"));var ic=D(re());var ea=require("react/jsx-runtime"),ac=({value:t,onChange:e,options:r})=>(0,ea.jsx)("div",{className:"seat-map__tab-select",children:r.map(n=>(0,ea.jsx)("button",{type:"button",className:(0,ic.default)("seat-map__tab-select-option",{"seat-map__tab-select-option--selected":n===t}),onClick:()=>t!==n&&e(n),children:n},n))});var cc=require("react/jsx-runtime"),sc=({value:t,setValue:e})=>{let r=["Lower deck","Upper deck"];return(0,cc.jsx)(ac,{options:r,value:r[t],onChange:n=>e(r.indexOf(n))})};var oe=require("react/jsx-runtime"),lc=({symbols:t})=>(0,oe.jsxs)("div",{className:"seat-map__legend",children:[(0,oe.jsxs)("span",{className:"seat-map__legend-item",children:[(0,oe.jsx)("span",{className:"seat-map__legend-seat seat-map__legend-seat--fee-payable","aria-label":"Additional cost for seat",children:(0,oe.jsx)(b,{name:"seat_paid_indicator",className:"seat-map__legend-seat--fee-payable-indicator",size:12})}),"Additional Cost"]}),(0,oe.jsxs)("span",{className:"seat-map__legend-item",children:[(0,oe.jsx)("span",{className:"seat-map__legend-seat seat-map__legend-seat--included","aria-label":"Included seat"}),"Included"]}),(0,oe.jsxs)("span",{className:"seat-map__legend-item",children:[(0,oe.jsx)("span",{className:"seat-map__legend-seat seat-map__legend-seat--selected","aria-label":"Selected seat"}),"Selected"]}),(0,oe.jsxs)("span",{className:"seat-map__legend-item",children:[(0,oe.jsx)("span",{className:"seat-map__legend-seat","aria-label":"Unavailable seat",children:(0,oe.jsx)(b,{name:"close",size:14})}),"Unavailable"]}),[...t].map(e=>(0,oe.jsxs)("span",{className:"seat-map__legend-item seat-map__legend-item--symbol",children:[(0,oe.jsx)(b,{name:e,size:20}),e.split("_")[0]]},e))]});var uc=t=>{let e=Object.values(t.sections).map(r=>r.elements).reduce((r,n)=>r.concat(n),[]).filter(r=>r.type==="seat");return e.length>0?e[0].designator.substring(0,e[0].designator.length-1):null};var vc=D(re()),na=D(require("react"));var dc=D(re());var ta=require("react/jsx-runtime"),Wp=["bassinet","exit_row"],pc=({type:t})=>(0,ta.jsx)("div",{className:(0,dc.default)("map-element map-element--amenity",{"map-element--wrapped":!Wp.includes(t)}),"aria-label":t.toString(),children:(0,ta.jsx)(b,{name:t,size:16})});var fc=require("react/jsx-runtime"),gn=()=>(0,fc.jsx)("div",{className:"map-element map-element--empty"});var mc=D(re());var xo=require("react/jsx-runtime"),gc=({isRight:t})=>(0,xo.jsx)("div",{className:(0,mc.default)("map-element map-element--exit",{"map-element--exit--right":t}),children:t?(0,xo.jsx)(b,{name:"exit_row_right"}):(0,xo.jsx)(b,{name:"exit_row"})});var _c=(t="")=>t.split(" ").map(e=>e[0]).slice(0,2).join("");var Cc=D(re());var At=require("react/jsx-runtime"),hc=({seat:t,service:e})=>{let r=e?k(e.total_currency)(+e.total_amount):"";return(0,At.jsxs)("div",{className:"seat-info",children:[(0,At.jsxs)("div",{className:"seat-info__details",children:[(0,At.jsx)("strong",{children:t?.designator}),(0,At.jsxs)("span",{children:[t?.name||"Seat"," "]}),(0,At.jsx)("strong",{children:r})]}),t?.disclosures.map((n,o)=>(0,At.jsx)("div",{className:"seat-info__disclosure",children:n},o))]})};var ra=require("react/jsx-runtime"),Sc=({seat:t})=>(0,ra.jsx)("span",{className:"map-element map-element__seat","aria-label":`${t.designator} ${t.name||"Seat"} Unavailable`,children:(0,ra.jsx)(b,{name:"close",size:14})});var ht=require("react/jsx-runtime"),yc=({element:t,currentPassengerId:e,currentSegmentId:r,currentPassengerName:n,onSeatToggled:o,selectedServicesMap:i})=>{let a=t.available_services.find(N=>N.passenger_id===e);if(!a)return(0,ht.jsx)(Sc,{seat:t});let s=Object.values(i).find(N=>N.serviceInformation?.designator===t.designator&&N.serviceInformation?.segmentId===r),c=s!=null,l=c?_c(s.serviceInformation?.passengerName):t.designator.charAt(t.designator.length-1),d=!isNaN(+a?.total_amount)&&+a?.total_amount!=0,u=!c&&a.passenger_id===e,m=!c||c&&r===s.serviceInformation?.segmentId&&e===s.serviceInformation?.passengerId,h=(0,Cc.default)("map-element","map-element__seat",{"map-element--available":u,"map-element--selected":c,"map-element--actionable":m}),C=k(a.total_currency)(+a.total_amount),y=c&&r===s.serviceInformation?.segmentId&&e===s.serviceInformation?.passengerId;return(0,ht.jsxs)(ht.Fragment,{children:[(0,ht.jsxs)("button",{type:"button","data-testid":`seat-${t.designator}`,id:t.designator,className:h,onClick:()=>{m&&o({quantity:c?0:1,id:a.id,serviceInformation:{type:"seat",segmentId:r,passengerId:e,passengerName:n,designator:t.designator,disclosures:t.disclosures,total_amount:a.total_amount,total_currency:a.total_currency}})},"aria-label":`${t.designator} ${t.name||"Seat"} ${C}`,children:[d&&(0,ht.jsx)(b,{name:"seat_paid_indicator",className:"map-element--fee-payable",size:16}),l]}),y&&(0,ht.jsx)(hc,{seat:t,service:a})]})};var Pt=require("react/jsx-runtime"),Ec=({element:t,elementIndex:e,sectionIndex:r,onSeatToggled:n,selectedServicesMap:o,currentPassengerId:i,currentSegmentId:a,currentPassengerName:s})=>(0,Pt.jsx)(Pt.Fragment,{children:go(t)?(0,Pt.jsx)(yc,{currentSegmentId:a,currentPassengerId:i,currentPassengerName:s,selectedServicesMap:o,element:t,onSeatToggled:n},e):t.type==="empty"?(0,Pt.jsx)(gn,{},e):t.type==="exit_row"?(0,Pt.jsx)(gc,{isRight:r>0},e):(0,Pt.jsx)(pc,{type:t.type},e)});var St=require("react/jsx-runtime"),bc=({row:t,rowNumber:e,hasWings:r,section:n,sectionIndex:o,onSeatToggled:i,selectedServicesMap:a,currentPassengerId:s,currentPassengerName:c,currentSegmentId:l})=>{let d=Object.keys(t.sections).length,u=d===1;return(0,St.jsxs)(na.Fragment,{children:[(0,St.jsx)("div",{className:(0,vc.default)("map-section",{"map-section--left":o===0,"map-section--right":u?!1:o===d-1,"map-section--wing":r}),children:n.elements.length>0?n.elements.map((m,h)=>(0,St.jsx)(na.Fragment,{children:(0,St.jsx)(Ec,{sectionIndex:o,elementIndex:h,element:m,selectedServicesMap:a,onSeatToggled:i,currentPassengerId:s,currentSegmentId:l,currentPassengerName:c})},h)):(0,St.jsx)(gn,{})}),(o<d-1||u&&o<d)&&(0,St.jsx)("span",{className:"map-section__aisle",children:e}),u&&o===t.sections.length-1&&(0,St.jsx)(gn,{})]},o)};var _n=require("react/jsx-runtime"),Tc=({row:t,hasWings:e,onSeatToggled:r,selectedServicesMap:n,currentPassengerId:o,currentPassengerName:i,currentSegmentId:a})=>{let s=uc(t);return(0,_n.jsx)(_n.Fragment,{children:t.sections.map((c,l)=>(0,_n.jsx)(bc,{row:t,rowNumber:s,hasWings:e,section:c,sectionIndex:l,selectedServicesMap:n,onSeatToggled:r,currentPassengerId:o,currentPassengerName:i,currentSegmentId:a},l))})};var hn=require("react/jsx-runtime"),oa=()=>(0,hn.jsxs)(yr,{children:[(0,hn.jsx)("p",{style:{marginBlock:"0"},className:"p1--semibold",children:"Seat selection unavailable"}),(0,hn.jsx)("p",{className:"p1--regular",style:{color:"var(--GREY-600)",marginBlock:"12px",textAlign:"center"},children:"Unfortunately seat selection is not available for this flight. A seat will be allocated by the airline."})]});var ze=require("react/jsx-runtime"),Ic=({seatMap:t,onSeatToggled:e,selectedServicesMap:r,currentPassengerId:n,currentPassengerName:o,currentSegmentId:i})=>{let[a,s]=xc.useState(0);if(!t||!t.cabins||!t.cabins.length)return(0,ze.jsx)(oa,{});let c=rc(a,t),l=c.length!==t.cabins.length,d=t.cabins.some(m=>m.wings);if(!c||!c.length)return(0,ze.jsx)(oa,{});let u=nc(c);return(0,ze.jsxs)("div",{className:(0,Rc.default)("seat-map",{"seat-map--wings":d}),children:[l&&(0,ze.jsx)(sc,{value:a,setValue:m=>{s(m)}}),(0,ze.jsx)("div",{className:"seat-map__legend-container",children:(0,ze.jsx)(lc,{symbols:u})}),c.map((m,h)=>(0,ze.jsx)("div",{className:"seat-map__map-container",style:{"--CABIN-AISLES":m.aisles},children:m.rows.map((C,y)=>(0,ze.jsx)(Tc,{row:C,hasWings:oc(m,y),onSeatToggled:e,selectedServicesMap:r,currentPassengerId:n,currentPassengerName:o,currentSegmentId:i},y))},`cabin-${h}`))]})};var ia=require("react/jsx-runtime"),Nc=t=>(0,ia.jsx)(Mr,{children:(0,ia.jsx)(Ic,{...t})});var Ct=require("react/jsx-runtime"),Oc=({selectedServices:t,servicePrices:e,currency:r,isFirstSegment:n,isLastSegment:o,onNextSegmentButtonClicked:i,onPreviousSegmentButtonClicked:a,onClose:s,seatMaps:c})=>{let l=We(t),d=dn(e,t,c),u=k(r)(d),m=n&&o;return(0,Ct.jsxs)("div",{style:{padding:"16px 24px 24px"},children:[(0,Ct.jsxs)("div",{className:"flex--space-between",children:[(0,Ct.jsxs)("div",{children:["Price for ",Pe(l,"seat","seats")]}),(0,Ct.jsxs)("div",{className:"h3--semibold",children:["+ ",u]})]}),(0,Ct.jsxs)("div",{style:m?{marginTop:"16px",display:"grid"}:{marginTop:"16px",display:"grid",columnGap:"12px",gridTemplateColumns:"repeat(2, 1fr)"},children:[!m&&(0,Ct.jsx)(ne,{size:48,disabled:n,variant:"outlined",onClick:()=>a(),children:"Back"}),(0,Ct.jsx)(ne,{size:48,"data-testid":"confirm-selection-for-seats",onClick:()=>o?s():i(),children:o?"Confirm":"Next"})]})]})};var De=require("react/jsx-runtime"),Mc=({segmentAndPassengerPermutationsCount:t,currentSegmentAndPassengerPermutationsIndex:e,currentSegment:r,currentPassengerName:n,setCurrentSegmentAndPassengerPermutationsIndex:o})=>(0,De.jsxs)("div",{style:{padding:"24px 24px 16px"},children:[t>1&&(0,De.jsx)("div",{style:{display:"flex",columnGap:"4px"},children:Array(t).fill(0).map((i,a)=>a===e?(0,De.jsx)(Zp,{},`segment_${a}`):(0,De.jsx)(Ac,{onClick:()=>o(a)},`segment_${a}`))}),(0,De.jsxs)("h2",{className:"h3--semibold",style:t>1?{marginBlock:"12px 0px"}:{},children:["Flight to ",r.destination.iata_code,(0,De.jsx)("span",{className:"p2--regular",style:{color:"var(--GREY-600)",marginLeft:"8px"},children:vo(r.departing_at)})]}),(0,De.jsx)("p",{className:"h3--semibold",style:{color:"var(--GREY-600)",marginBlock:"0 4px"},children:n})]}),Ac=({onClick:t,style:e})=>(0,De.jsx)("button",{type:"button",onClick:t,style:{border:"none",width:"4px",height:"4px",padding:"0",borderRadius:"4px",backgroundColor:"var(--TERTIARY, rgba(var(--ACCENT), var(--ACCENT-LIGHT-200)))",transition:"background-color 0.3s var(--TRANSITION-CUBIC-BEZIER)",...e}}),Zp=()=>(0,De.jsx)(Ac,{onClick:void 0,style:{backgroundColor:"var(--SECONDARY, rgb(var(--ACCENT)))"}});var Dr=require("react/jsx-runtime"),Pc=({isOpen:t,offer:e,passengers:r,seatMaps:n,selectedServices:o,onClose:i})=>{let[a,s]=aa.default.useState(0),[c,l]=aa.default.useState(o),d=c.reduce((J,Q)=>({...J,[Q.id]:Q}),{});if(!e||!n)return null;let u=yo(e),m=Co(r),h=vr(e.available_services),C=tc(u),{passenger:{passenger_id:y},passengerIndex:N,segment:{id:P}}=C[a],v=u.find(({id:J})=>J===P),pe=m[y],q=n.find(J=>J.segment_id===P),Xe=Eo(pe,e.passengers[N],N+1),be=J=>{let Q=new Array;for(let Le of c){let Xt=Le.id===J.id&&J.quantity===0,wr=Le.serviceInformation?.segmentId===P&&Le.serviceInformation?.passengerId===y;!Xt&&!wr&&(Q=[...Q,Le])}J.quantity>0&&(Q=[...Q,J]),l(Q)},Kt=Ro(n)??e.total_currency;return(0,Dr.jsxs)(Or,{isOpen:t,onClose:()=>i(o),children:[(0,Dr.jsx)(Mc,{segmentAndPassengerPermutationsCount:C.length,currentSegment:v,currentPassengerName:Xe,currentSegmentAndPassengerPermutationsIndex:a,setCurrentSegmentAndPassengerPermutationsIndex:s}),(0,Dr.jsx)(Nc,{selectedServicesMap:d,seatMap:q,onSeatToggled:be,currentPassengerId:y,currentPassengerName:Xe,currentSegmentId:P}),(0,Dr.jsx)(Oc,{seatMaps:n,currency:Kt,selectedServices:c,servicePrices:h,isFirstSegment:a===0,isLastSegment:a+1===C.length,onNextSegmentButtonClicked:()=>{s(a+1)},onPreviousSegmentButtonClicked:()=>{s(a-1)},onClose:()=>i(c)})]})};var Ke=require("react/jsx-runtime"),wc=({isLoading:t,offer:e,seatMaps:r,passengers:n,selectedServices:o,setSelectedServices:i})=>{let[a,s]=Dc.default.useState(!1),c=Array.isArray(r)&&r.length>0,l=We(o),d=l>0,u=Nt(e,o,r),m=e?.base_currency??"";r&&(m=Ro(r)??m);let h=e?k(m)(u):"0",C=c&&d?`${Pe(l,"seat","seats")} selected for ${h}`:"Specify where on the plane you\u2019d like to sit";return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)(Ir,{buttonTitle:"Select seats",title:"Seat selection",copy:C,icon:"flight_class",onClick:c?()=>s(!0):null,isLoading:t,disabled:t&&!c,isSelected:d,children:[t&&(0,Ke.jsxs)(pt,{color:"var(--GREY-900)",backgroundColor:"var(--GREY-100)",children:["Loading",(0,Ke.jsx)(Tr,{})]}),!t&&!c&&(0,Ke.jsx)(pt,{color:"var(--GREY-700)",backgroundColor:"var(--GREY-200)",children:"Not available"})]}),(0,Ke.jsx)(Pc,{isOpen:!!(e&&r&&a),seatMaps:r,offer:e,passengers:n,selectedServices:o,onClose:y=>{i(y),s(!1)}})]})};var ve=require("react/jsx-runtime"),jp="https://assets.duffel.com/components/3.3.1--canary",qp=`${jp}/global.css`,zp=t=>{if(uo(t.debug||!1),dt("Properties passed into the component:",t),!Wi(t))throw new Error(`The props (${Object.keys(t)}) passed to DuffelAncillaries are invalid. \`onPayloadReady\`, \`passengers\` and \`services\` are always required. Then, depending on your use case you may have one of the following combinations of required props: \`offer_id\` and \`client_key\`, \`offer\` and \`seat_maps\` or \`offer\` and \`client_key\`.Please refer to the documentation for more information and working examples: https://duffel.com/docs/guides/ancillaries-component`);if(t.services.length===0)throw new Error('You must provide at least one service in the "services" prop. Valid services: ["bags", "seats", "cancel_for_any_reason"]');let e=Zi(t),r=ji(t),n=qi(t),o=zi(t),i=t.services.includes("seats")&&!("seat_maps"in t)&&(e||r||o),[a,s]=he.useState(t.passengers),[c,l]=he.useState(t.offer),[d,u]=he.useState(r),[m,h]=he.useState(n?t.seat_maps:void 0),[C,y]=he.useState(i),[N,P]=he.useState(null),[v,pe]=he.useState([]),[q,Xe]=he.useState([]),[be,Kt]=he.useState([]),J=g1(t.markup,t.priceFormatters),Q=H=>{let fe="This offer has expired.";if(C1(H)){P(fe);return}else{let Lr=new Date(H?.expires_at)?.getTime()-Date.now(),Lt=1e3*60*60*24;Lr<Lt&&setTimeout(()=>P(fe),Lr)}let kr=_1(H,J);l(kr)},Le=H=>{let fe=h1(H,J.seats);h(fe)};if(he.useEffect(()=>{Kn("props",{"props.services":t.services,"props.passengers.length":t.passengers.length,"props.offer_id":t.offer_id,"props.client_key":t.client_key,"props.offer?.id":t.offer?.id,"props.seat_maps?.[0]?.id":t.seat_maps?.[0]?.id}),(r||e)&&T1(t.offer_id,e?null:t.client_key,P,u,H=>{if(Q(H),H.passengers.length!==a.length)throw new Error(`The number of passengers given to \`duffel-ancillaries\` (${t.passengers.length}) doesn't match the number of passengers on the given offer (${H.passengers.length}).`);e&&s(t.passengers.map((fe,kr)=>({...fe,id:H.passengers[kr].id})))}),i&&x1(r||e?t.offer_id:t.offer.id,e?null:t.client_key,()=>Le([]),y,Le),o&&Q(t.offer),n&&(Q(t.offer),Le(t.seat_maps))},[t.offer_id,t.client_key,t.offer?.id,t.seat_maps?.[0]?.id]),he.useEffect(()=>{if(!c)return;let H=m1({baggageSelectedServices:v,seatSelectedServices:q,cfarSelectedServices:be,offer:c,passengers:a,seatMaps:m});if(S1(H)){let fe={offer_total_amount:c.total_amount,offer_total_currency:c.total_currency,offer_tax_amount:c.tax_amount,offer_tax_currency:c.tax_currency,baggage_services:v,seat_services:q,cancel_for_any_reason_services:be};dt("Payload ready",{"Order creation payload":H,"Services metadata":fe}),t.onPayloadReady(H,fe)}},[v,q,be]),!Wi(t))return null;let Xt=`${72*t.services.length+32*(t.services.length-1)}px`,wr={display:"flex",width:"100%",flexDirection:"column",rowGap:"12px",...t.styles?.accentColor&&{"--ACCENT":t.styles.accentColor},...t.styles?.accentColor&&_o(t.styles.accentColor)&&{"--SECONDARY":"var(--GREY-900)","--TERTIARY":"var(--GREY-400)"},...t.styles?.fontFamily&&{"--FONT-FAMILY":t.styles.fontFamily},...t.styles?.buttonCornerRadius&&{"--BUTTON-RADIUS":t.styles.buttonCornerRadius}};return dt("Component's internal state:",{isOfferLoading:d,isSeatMapLoading:C,baggageSelectedServices:v,seatSelectedServices:q,cfarSelectedServices:be,offer:c,seatMaps:m,error:N}),(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)("link",{rel:"stylesheet",href:qp}),(0,ve.jsx)("div",{className:"duffel-components",style:wr,children:(0,ve.jsxs)(Er,{children:[N&&(0,ve.jsx)(f1,{height:Xt,message:N}),!N&&t.services.map(H=>{if(H==="bags")return(0,ve.jsx)(j1,{isLoading:d,offer:c,passengers:a,selectedServices:v,setSelectedServices:pe},"bags");if(H==="seats")return(0,ve.jsx)(wc,{isLoading:d||C,seatMaps:m,offer:c,passengers:a,selectedServices:q,setSelectedServices:Xe},"seats");if(H==="cancel_for_any_reason")return(0,ve.jsx)(Q1,{isLoading:d,offer:c,selectedServices:be,setSelectedServices:Kt},"cancel_for_any_reason")})]})})]})};var Dt=D(Lc());var Hc="https://js.stripe.com/v3",Kp=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Bc="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",Xp=function(){for(var e=document.querySelectorAll('script[src^="'.concat(Hc,'"]')),r=0;r<e.length;r++){var n=e[r];if(Kp.test(n.src))return n}return null},Jp=function(e){var r=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(Hc).concat(r);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n},Qp=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"1.54.0",startTime:r})},No=null,ef=function(e){return No!==null||(No=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe&&e&&console.warn(Bc),window.Stripe){r(window.Stripe);return}try{var o=Xp();o&&e?console.warn(Bc):o||(o=Jp(e)),o.addEventListener("load",function(){window.Stripe?r(window.Stripe):n(new Error("Stripe.js not available"))}),o.addEventListener("error",function(){n(new Error("Failed to load Stripe.js"))})}catch(i){n(i);return}})),No},tf=function(e,r,n){if(e===null)return null;var o=e.apply(void 0,r);return Qp(o,n),o},Fc=Promise.resolve().then(function(){return ef(null)}),Vc=!1;Fc.catch(function(t){Vc||console.warn(t)});var Uc=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];Vc=!0;var o=Date.now();return Fc.then(function(i){return tf(i,r,o)})};var we=D(require("react"));var X=require("react/jsx-runtime"),rf="https://assets.duffel.com/components/3.3.1--canary",nf=`${rf}/global.css`,of="card",af="3.3.1--canary",sf={color:"var(--GREY-900)",fontFamily:'"-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "sans-serif"',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#ababb4"}},cf={color:"#ef4444",iconColor:"#ef4444"},lf=({styles:t,paymentIntentClientToken:e,onSuccessfulPayment:r,onFailedPayment:n})=>{let[o,i]=we.useState(null),[a,s]=we.useState(!1),[c,l]=we.useState(!1),[d,u]=we.useState(!1),[m,h]=we.useState(""),C=(0,Dt.useStripe)(),y=(0,Dt.useElements)();return we.useEffect(()=>{if(y&&!o){let P=y?.getElement(of);P&&i(P)}},[y,o]),we.useEffect(()=>{o&&o.on("change",P=>{let{error:v,complete:pe}=P;v?(l(!0),h(v.message)):l(!1),s(!!pe)})},[o]),e?(0,X.jsx)("div",{className:"card-payment__container",children:(0,X.jsxs)("form",{onSubmit:async P=>{if(P.preventDefault(),!(!C||!y)&&o){u(!0);let v=atob(e),pe=JSON.parse(v),{client_secret:q}=pe,Xe=await C.confirmCardPayment(q,{payment_method:{card:o,metadata:{duffel_components_version:af||"failed-to-get-version"}}});if(u(!1),Xe.error){let{error:be}=Xe;n(be)}else r()}},children:[d&&(0,X.jsx)("div",{className:"card-payment--in-progress","aria-live":"polite","aria-busy":"true"}),(0,X.jsx)(Dt.CardElement,{className:"card-details",options:{style:{base:{...sf,...t?.fontFamily&&{fontFamily:t.fontFamily}},invalid:{...cf}}}}),(0,X.jsx)("div",{className:"card-payment__container--invalid",role:"alert",children:c&&m}),(0,X.jsx)(ne,{className:"card-payment__pay-button",type:"submit",disabled:!a||d,"aria-label":"Pay",children:d?"Processing...":"Pay"})]})}):null},uf=t=>{let[e,r]=we.useState(null);uo(t.debug||!1);let n=atob(t.paymentIntentClientToken),o;try{o=JSON.parse(n)}catch{throw new Error("Invalid Duffel payment intent client token provided")}let{publishable_key:i}=o;we.useEffect(()=>{if(!e&&i){let s=Uc(i);s&&r(s)}},[e,i]);let a={...t.styles?.accentColor&&{"--ACCENT":t.styles.accentColor},...t.styles?.accentColor&&_o(t.styles.accentColor)&&{"--SECONDARY":"black","--TERTIARY":"grey"},...t.styles?.fontFamily&&{"--FONT-FAMILY":t.styles.fontFamily},...t.styles?.buttonCornerRadius&&{"--BUTTON-RADIUS":t.styles.buttonCornerRadius}};return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)("link",{rel:"stylesheet",href:nf}),(0,X.jsx)("div",{className:"duffel-components",style:a,children:(0,X.jsx)(Er,{children:(0,X.jsx)(Dt.Elements,{stripe:e,children:(0,X.jsx)(lf,{...t})})})})]})};var zt=D(require("react"));function Gc(t){if(!t)throw new Error("The client key is missing.");if(t.split(".").length!==3)throw new Error("Invalid clientKey attribute in DuffelCardForm. It must be a valid JWT.");let e=t.split(".")[1];try{return JSON.parse(atob(e)).token}catch{throw new Error("Invalid clientKey attribute in DuffelCardForm. It was not possible to read the payload.")}}function Yc(t,{postMessageWithStyles:e,setIFrameHeight:r,onValidateSuccess:n,onValidateFailure:o,onCreateCardForTemporaryUseSuccess:i,onCreateCardForTemporaryUseFailure:a}){return function(c){if(!t?.startsWith(c.origin)||!c.data||!c.data.type)return;let l=c?.data?.type;switch(l){case"iframe-loaded":e();return;case"content-height-ready":r(c.data.height);return;case"validate-success":n();return;case"validate-failure":o();return;case"create-card-for-temporary-use-success":i(c.data.data);return;case"create-card-for-temporary-use-failure":a(c.data.error);return;default:console.log(`Unknown event type: ${l}`);return}}}var $c=require("react/jsx-runtime"),df="https://localhost:8000/iframe.html",pf=({clientKey:t,styles:e,shouldUseLocalTokenProxy:r,actions:n,onValidateSuccess:o,onValidateFailure:i,onCreateCardForTemporaryUseSuccess:a,onCreateCardForTemporaryUseFailure:s})=>{let c=r?df:"https://api.duffel.cards/iframe.html";if(typeof c!="string")throw new Error("TOKEN_PROXY_IFRAME_BASE_URL is not defined");let l=new URL(c),[d,u]=zt.useState("0px"),m=zt.useRef(null),h=`${l}?${new URLSearchParams({token:Gc(t)}).toString()}`;function C(){if(!m.current)throw new Error("Attempted to call `sendMessageToStoreCardForTemporaryUse` with empty iFrameReference");let N=m.current;if(!N.contentWindow)throw new Error("Attempted to call `sendMessageToStoreCardForTemporaryUse` but the iFrame contentWindow is null");N.contentWindow.postMessage({type:"create-card-for-temporary-use"},l.origin)}function y(){if(!m.current)throw new Error("Attempted to call `postMessageWithStyles` with empty iFrameReference");let N=m.current;if(!N.contentWindow)throw new Error("Attempted to call `postMessageWithStyles` but the iFrame contentWindow is null");N.contentWindow.postMessage({type:"apply-styles",styles:e},l.origin)}return zt.useEffect(()=>{n.includes("create-card-for-temporary-use")&&C()},[n]),zt.useEffect(()=>{let N=Yc(l.origin,{postMessageWithStyles:y,setIFrameHeight:u,onValidateSuccess:o,onValidateFailure:i,onCreateCardForTemporaryUseSuccess:a,onCreateCardForTemporaryUseFailure:s});return window.addEventListener("message",N),()=>window.removeEventListener("message",N)},[]),(0,$c.jsx)("iframe",{ref:m,title:"Card Payment Form",src:h,style:{width:"100%",border:"none",height:d}})};var Wc=D(re());var Zc=require("react/jsx-runtime"),de=({className:t,space:e,alignCenter:r,spaceBetween:n,...o})=>(0,Zc.jsx)("div",{className:(0,Wc.default)("h-space",r&&"hspace--align-center",n&&"hspace--space-between",`h-space--${e}`,t),...o});var wt=require("react/jsx-runtime"),ff="https://assets.duffel.com/components/3.3.1--canary",mf=`${ff}/global.css`,sa=({rating:t,small:e})=>(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("link",{rel:"stylesheet",href:mf}),(0,wt.jsx)(de,{space:0,children:Array.from({length:t}).map((r,n)=>(0,wt.jsx)(b,{name:"star",color:"--YELLOW-600",size:e?8:12},n))})]});var Oo={wyndham_rewards:"Wyndham Rewards",choice_privileges:"Choice Privileges",marriott_bonvoy:"Marriott Bonvoy",best_western_rewards:"Best Western Rewards",world_of_hyatt:"World of Hyatt",hilton_honors:"Hilton Honors",ihg_one_rewards:"IHG One Rewards",leaders_club:"Leaders Club",stash_rewards:"Stash Rewards",omni_select_guest:"Omni Select Guest",i_prefer:"I Prefer",accor_live_limitless:"Accor Live Limitless",my_6:"My 6",jumeirah_one:"Jumeirah One",global_hotel_alliance_discovery:"Global Hotel Alliance Discovery",duffel_hotel_group_rewards:"Duffel Hotel Group Rewards"},Mo=t=>{switch(t){case"room_only":return"Room only, no meals";case"breakfast":return"Breakfast included";case"half_board":return"Half board";case"full_board":return"Full board";case"all_inclusive":return"All inclusive";default:return t}},Ao=t=>{switch(t){case"room_only":return"bedroom_parent";case"breakfast":return"bakery_dining";case"half_board":return"bakery_dining";case"full_board":return"brunch_dining";case"all_inclusive":return"brunch_dining";default:return t}};var jc=D(re());var qc=require("react/jsx-runtime"),ke=({className:t,space:e,...r})=>(0,qc.jsx)("div",{className:(0,jc.default)("v-space",`v-space--${e}`,t),...r});var zc=t=>!isNaN(Date.parse(t));var Kc=t=>zc(t)?t.match(/([0-1]?[0-9]|2[0-3]):[0-5][0-9]/)?new Date(t):t.includes("/")?new Date(`${t} 12:00:00 UTC`):new Date(`${t}T12:00:00Z`):null;var gf={short:{year:"numeric",month:"numeric",day:"numeric"},shortWithTime:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"},medium:{year:"numeric",month:"short",day:"numeric"},mediumNoYear:{month:"short",day:"numeric"},mediumWithTime:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"},mediumWithTimeAndTimezone:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short",hour12:!0},long:{weekday:"short",year:"numeric",month:"short",day:"numeric"},longNoYear:{weekday:"short",month:"short",day:"numeric"},longWithTime:{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1},timeOnlyWithTimezone:{hour:"numeric",minute:"numeric",hour12:!0,timeZoneName:"short"},timeOnly:{hour:"numeric",minute:"numeric",hour12:!0}},Sn=(t,e,r="en-GB")=>{if(!t)return"";let n=typeof t=="string"?Kc(t):t;return n?new Intl.DateTimeFormat(r,gf[e]).format(n):""};var x=require("react/jsx-runtime"),_f="https://assets.duffel.com/components/3.3.1--canary",hf=`${_f}/global.css`,Sf=({accommodation:t,checkInDate:e,checkOutDate:r,numRooms:n,supportedLoyaltyProgramme:o,loyaltyProgrammeAccountNumber:i,accommodationSpecialRequests:a,children:s})=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("link",{rel:"stylesheet",href:hf}),(0,x.jsxs)(ke,{space:24,className:"stays-summary-container",children:[(0,x.jsxs)(de,{space:16,children:[(0,x.jsx)("div",{className:"stays-summary-photo",style:t.photos&&t.photos.length>0?{backgroundImage:`url(${t.photos[0].url})`}:{backgroundColor:"var(--GREY-100)"},children:(t.photos?.length??0)===0&&(0,x.jsx)(b,{name:"image_not_supported",color:"--GREY-200",size:30})}),(0,x.jsxs)(ke,{space:4,children:[t.rating&&(0,x.jsx)(sa,{rating:t.rating}),(0,x.jsx)("p",{className:"stays-summary-text--large",children:t.name}),(0,x.jsxs)("p",{className:"stays-summary-text--small",children:[t.location.address.line_one,","," ",t.location.address.region??t.location.address.city_name??t.location.address.country_code]})]})]}),(0,x.jsxs)(ke,{space:8,children:[(0,x.jsxs)(de,{space:8,alignCenter:!0,children:[n&&(0,x.jsxs)("p",{className:"stays-summary-stamp",children:[n,"x"]}),(0,x.jsx)("p",{children:t.rooms[0].name})]}),t.rooms.length&&t.rooms[0].rates.length&&t.rooms[0].rates[0].board_type&&(0,x.jsxs)(de,{space:12,alignCenter:!0,children:[(0,x.jsx)(b,{name:Ao(t.rooms[0].rates[0].board_type),size:20,color:"--GREY-700",className:"u-marginLeft4"}),(0,x.jsx)("p",{children:Mo(t.rooms[0].rates[0].board_type)})]})]}),(0,x.jsxs)("div",{className:"stays-summary-times",children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("p",{className:"stays-summary-text--small",children:"Check in"}),(0,x.jsx)("p",{className:"stays-summary-text--large",children:Sn(e,"longNoYear").replace(",","")}),t.check_in_information&&(0,x.jsxs)("p",{className:"stays-summary-text--small",children:["from ",t.check_in_information?.check_in_after_time]})]}),(0,x.jsx)("div",{className:"stays-summary-divider"}),(0,x.jsxs)("div",{children:[(0,x.jsx)("p",{className:"stays-summary-text--small",children:"Check out"}),(0,x.jsx)("p",{className:"stays-summary-text--large",children:Sn(r,"longNoYear").replace(",","")}),t.check_in_information&&(0,x.jsxs)("p",{className:"stays-summary-text--small",children:["until ",t.check_in_information.check_out_before_time]})]})]}),o&&i&&(0,x.jsxs)(ke,{space:8,children:[(0,x.jsx)("p",{className:"stays-summary-text--small",children:"Loyalty number"}),(0,x.jsxs)("p",{children:[Oo[o],","," ",i]})]}),a&&(0,x.jsxs)(ke,{space:8,children:[(0,x.jsx)("p",{className:"stays-summary-text--small",children:"Special requests"}),(0,x.jsx)("p",{children:a})]}),s]})]});var yt=require("react/jsx-runtime"),Cf="https://assets.duffel.com/components/3.3.1--canary",yf=`${Cf}/global.css`,Xc=t=>{switch(t){case"adult_only":return"no_stroller";case"accessibility_hearing":return"hearing";case"accessibility_mobility":return"accessible";case"cash_machine":return"atm";case"spa":return"spa";case"pool":return"pool";case"childcare_service":return"child_care";case"laundry":return"laundry";case"pets_allowed":return"pet_supplies";case"room_service":return"room_service";case"wifi":return"wifi";case"gym":return"fitness_center";case"parking":return"local_parking";case"business_centre":return"meeting_room";case"restaurant":return"restaurant";case"lounge":return"local_bar";case"24_hour_front_desk":case"concierge":return"concierge";default:return"check_circle"}},Ef=({amenities:t})=>(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)("link",{rel:"stylesheet",href:yf}),t?.map(e=>(0,yt.jsxs)(de,{space:4,alignCenter:!0,children:[(0,yt.jsx)(b,{name:Xc(e.type),size:16}),(0,yt.jsx)("p",{children:e.description})]},e.type))]});var el=D(re());var Jc=D(re());var kt=require("react/jsx-runtime"),Qc=({value:t,checked:e=!1,...r})=>{let n=`radio-${t}`;return(0,kt.jsxs)("div",{children:[(0,kt.jsx)("input",{id:n,type:"radio",value:t,checked:e,className:"radio__input",...r}),(0,kt.jsx)("label",{className:"radio__container",htmlFor:n,"aria-checked":e,"data-testid":t,children:(0,kt.jsx)(de,{space:12,children:(0,kt.jsx)("div",{className:(0,Jc.default)("radio",{["radio--is-checked"]:e}),children:e&&(0,kt.jsx)(b,{name:"check",size:18})})})})]})};var A=require("react/jsx-runtime"),vf="https://assets.duffel.com/components/3.3.1--canary",bf=`${vf}/global.css`,Tf=(t,e,r)=>t===1?e:r,Rf=(t,e)=>k(t)(e*.05),xf=({numberOfNights:t,searchNumberOfRooms:e,rate:r,selected:n,onSelectRate:o,showPotentialCommission:i=!1})=>{let a=r.cancellation_timeline[0],s=r.quantity_available!=null&&!isNaN(r.quantity_available)?r.quantity_available:e;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("link",{rel:"stylesheet",href:bf}),(0,A.jsxs)("button",{onClick:()=>o(r.id),className:(0,el.default)("stays-room-rate-card__container",n&&"stays-room-rate-card__container--selected"),children:[(0,A.jsxs)(ke,{className:"stays-room-rate-card__content",space:12,children:[(0,A.jsx)(de,{space:0,spaceBetween:!0,children:(0,A.jsxs)("p",{className:"stays-room-rate-card__text--medium",children:[!a&&"Non-refundable",a&&r.total_amount===a.refund_amount&&"Fully refundable",a&&r.total_amount!==a.refund_amount&&"Partially refundable",r.board_type==="breakfast"&&" with breakfast",r.board_type==="all_inclusive"&&" all inclusive"]})}),(0,A.jsxs)(ke,{space:8,children:[r.board_type&&(0,A.jsx)(Po,{icon:Ao(r.board_type),label:Mo(r.board_type)}),a&&(0,A.jsx)(Po,{icon:"refund",label:r.total_amount===a.refund_amount?`Free cancellation until ${Sn(a.before,"medium")}`:(0,A.jsxs)(A.Fragment,{children:["Cancellation available (from"," ",k(a.currency)(+r.total_amount-+a.refund_amount)," ","fee)"]})}),r.payment_method&&(0,A.jsx)(Po,{icon:r.payment_method==="card"?"credit_card":"wallet",label:r.payment_method==="card"?"Card payment at accommodation":"Pay now with Duffel Balance"}),r.supported_loyalty_programme&&(0,A.jsx)(Po,{icon:"loyalty",label:Oo[r.supported_loyalty_programme]})]})]}),(0,A.jsxs)(ke,{space:8,className:"stays-room-rate-card__footer",children:[i&&(0,A.jsxs)("span",{className:"stays-room-rate-card__commission-stamp",children:["Up to"," ",Rf(r.total_currency,+r.total_amount)," ","commission"]}),(0,A.jsxs)("p",{className:"stays-room-rate-card__text--small",children:["At least ",s,Tf(s," room"," rooms")," available"]}),(0,A.jsxs)(ke,{space:4,children:[(0,A.jsxs)("p",{className:"stays-room-rate-card__text--small",children:[k(r.total_currency)(+r.total_amount)," ","for ",t," night",t>1?"s":""]}),r.due_at_accommodation_amount&&+r.due_at_accommodation_amount>0&&(0,A.jsx)("p",{className:"stays-room-rate-card__text--small",children:(0,A.jsxs)("i",{children:["+"," ",k(r.due_at_accommodation_currency)(+r.due_at_accommodation_amount)," ","at accommodation"]})})]}),(0,A.jsxs)(de,{space:8,spaceBetween:!0,children:[(0,A.jsxs)("p",{className:"stays-room-rate-card__text--large",children:[k(r.total_currency)(+r.total_amount/t),(0,A.jsx)("span",{className:"stays-room-rate-card__text--small",children:"/night"})]}),(0,A.jsx)(Qc,{checked:n,value:n})]})]})]})]})},Po=({icon:t,label:e})=>(0,A.jsxs)(de,{space:8,children:[(0,A.jsx)(b,{name:t,size:16,color:"--GREY-600",className:"u-marginTop2"}),(0,A.jsx)("p",{className:"stays-room-rate-card__item-label",children:e})]});
31
31
  /*! Bundled license information:
32
32
 
33
33
  classnames/index.js: