var Mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ce={},qt={},Ct;function Dr(){return Ct||(Ct=1,window.Marko={Component:function(){}}),qt}var ze={},Te={},Ue,Tt;function Ar(){if(Tt)return Ue;Tt=1;var e;return Ue=typeof queueMicrotask=="function"?queueMicrotask:(e=Promise.resolve(),function(s){e.then(s)}),Ue}var St;function wr(){if(St)return Te;St=1;var e=[],s=""+Math.random();return window.addEventListener("message",function(u){if(u.data===s){var _=e;e=[];for(var v=0;v<_.length;v++)_[v]()}}),Te._j_=function(u){e.push(u)===1&&window.postMessage(s,"*")},Te.e_=Ar(),Te}var ke={},It;function Rr(){if(It)return ke;It=1;var e=typeof window<"u"?window:Mr;return ke.NOOP=e.$W10NOOP=e.$W10NOOP||function(){},ke}var je,Mt;function Br(){if(Mt)return je;Mt=1;var e=Rr(),s=Array.isArray;function u(v,i,t){for(var n=v,l=0;l=0;o--)m[o]===n&&m.splice(o,1);return this},removeAllListeners:function(t){var n=this.$e;n&&delete n[t]},listenerCount:function(t){var n=this.$e,l=n&&n[t];return l?s(l)?1:l.length:0}},Ge=i,Ge}var Se={exports:{}},$t;function Vr(){return $t||($t=1,function(e,s){var u=0,_=1,v=2,i="destroy";function t(o){return!o.once}function n(o){this.$__target=o,this.$__listeners=[],this.$__subscribeTo=null}n.prototype={$__remove:function(o,d){var f=this.$__target,r=this.$__listeners;this.$__listeners=r.filter(function(B){var R=B[u],q=B[_],L=B[v];if(d){if(L&&o(R,L))return f.removeListener(R,L),!1}else if(o(R,q))return f.removeListener(R,L||q),!1;return!0});var p=this.$__subscribeTo;if(!this.$__listeners.length&&p){var E=this,C=p.$__subscribeToList;p.$__subscribeToList=C.filter(function(B){return B!==E})}},on:function(o,d){return this.$__target.on(o,d),this.$__listeners.push([o,d]),this},once:function(o,d){var f=this,r=function(){f.$__remove(function(p,E){return r===E},!0),d.apply(this,arguments)};return this.$__target.once(o,r),this.$__listeners.push([o,d,r]),this},removeListener:function(o,d){return typeof o=="function"&&(d=o,o=null),d&&o?this.$__remove(function(f,r){return o===f&&d===r}):d?this.$__remove(function(f,r){return d===r}):o&&this.removeAllListeners(o),this},removeAllListeners:function(o){var d=this.$__listeners,f=this.$__target;if(o)this.$__remove(function(E,C){return o===E});else{for(var r=d.length-1;r>=0;r--){var p=d[r];f.removeListener(p[u],p[_])}this.$__listeners.length=0}return this}};function l(o){this.$__target=o}l.prototype={on:function(o,d){return this.$__target.addEventListener(o,d),this},once:function(o,d){var f=this,r=function(){f.$__target.removeEventListener(o,r),d()};return this.$__target.addEventListener(o,r),this},removeListener:function(o,d){return this.$__target.removeEventListener(o,d),this}};function m(){this.$__subscribeToList=[]}m.prototype={subscribeTo:function(o,d){for(var f=!d||d.addDestroyListener!==!1,r,p,E=this.$__subscribeToList,C=0,B=E.length;C=0;q--)if(E[q].$__target===o){E.splice(q,1);break}}),r.$__subscribeTo=this,E.push(r)),r},removeAllListeners:function(o,d){var f=this.$__subscribeToList,r;if(o)for(r=f.length-1;r>=0;r--){var p=f[r];if(p.$__target===o){p.removeAllListeners(d),p.$__listeners.length||f.splice(r,1);break}}else{for(r=f.length-1;r>=0;r--)f[r].removeAllListeners();f.length=0}}},s=e.exports=m,s.wrap=function(o){var d,f;return t(o)&&(d=new l(o)),f=new n(d||o),d||o.once(i,function(){f.$__listeners.length=0}),f},s.createTracker=function(){return new m}}(Se,Se.exports)),Se.exports}var fe={},Ye,Pt;function we(){return Pt||(Pt=1,Ye={_L_:new WeakMap,_K_:new WeakMap,_p_:new WeakMap,aW_:new WeakMap,_n_:new WeakMap,_o_:{}}),Ye}var Ft;function he(){if(Ft)return fe;Ft=1;var e=we(),s=e._p_,u=e._n_,_=e._K_,v=e._L_,i=window.$MUID||(window.$MUID={i:0}),t=i.i++,n={},l={};function m(R,q){for(var L=typeof R=="string"?(q&&q.ownerDocument||document).getElementById(R):R,$,U;L;){if(L.fragment?L.fragment.endNode===L?L=L.fragment.startNode:(L=L.fragment,$=s.get(L)):(U=_.get(L))&&($=U._M_),$)return $;L=L.previousSibling||L.parentNode}}function o(R){var q=s.get(R.fragment||R);q&&(q._N_(),delete n[q.id])}function d(R,q){if(o(R),R.nodeType===1||R.nodeType===12){var L;q&&(L=u.get(R))&&R===q.K_[L]&&(s.get(R)&&/\[\]$/.test(L)?delete q.K_[L][s.get(R).id]:delete q.K_[L]);for(var $=R.firstChild;$&&$!==R.endNode;)d($,q),$=$.nextSibling}}function f(){return"c"+i.i++}function r(){return f}function p(R,q,L,$){if(q){var U=R.id;return $?[q,U,L,$]:[q,U,L]}}function E(R){var q=_.get(R),L;return q?L=q._O_:(L=v.get(R),L||(L=R.getAttribute("data-marko"),v.set(R,L=L?JSON.parse(L):l))),L}function C(R,q){return R[0]==="#"&&(R=R.replace("#"+q+"-","")),R}function B(R,q,L,$){if(/\[\]$/.test(q)){var U=R[q]=R[q]||{};U[$]=L}else R[q]=L}return fe._P_=t,fe._l_=n,fe.T_=m,fe._Q_=o,fe._R_=d,fe._S_=r,fe._T_=p,fe._r_=E,fe._m_=B,fe._U_=C,fe}var Xe,Vt;function xr(){if(Vt)return Xe;Vt=1;var e;function s(_){e=_}function u(_){return e(_)}return u.be_=s,Xe=u,Xe}var Qe,xt;function Be(){return xt||(xt=1,Qe=function(s,u){if(s||(s={}),u)for(var _ in u)u.hasOwnProperty(_)&&(s[_]=u[_]);return s}),Qe}var be={},zt;function Rt(){if(zt)return be;zt=1;function e(i,t,n){return i.insertInto?i.insertInto(n,t):n.insertBefore(i,t&&t.startNode||t)}function s(i,t,n){return e(i,t&&t.nextSibling,n)}function u(i){var t=i.nextSibling,n=t&&t.fragment;return n?t===n.startNode?n:null:t}function _(i){var t=i.firstChild;return t&&t.fragment||t}function v(i){i.remove?i.remove():i.parentNode.removeChild(i)}return be.bf_=e,be.bg_=s,be.cm_=u,be.aA_=_,be.bh_=v,be}var Ze,Ut;function Or(){if(Ut)return Ze;Ut=1;var e=Be(),s=he(),u=s._Q_,_=s._R_,v=Rt(),i=v.bf_,t=v.bg_,n=v.bh_;function l(o){if(typeof o=="string"){var d=o;if(o=document.getElementById(d),!o)throw Error("Not found: "+d)}return o}function m(o){_(o),u(o)}return Ze=function(o,d,f){e(o,{appendTo:function(r){r=l(r);var p=d(this,r);return i(p,null,r),f(this,r)},prependTo:function(r){r=l(r);var p=d(this,r);return i(p,r.firstChild||null,r),f(this,r)},replace:function(r){r=l(r);var p=d(this,r);return m(r),i(p,r,r.parentNode),n(r),f(this,r)},replaceChildrenOf:function(r){r=l(r);for(var p=d(this,r),E=r.firstChild;E;){var C=E.nextSibling;m(E),E=C}return r.innerHTML="",i(p,null,r),f(this,r)},insertBefore:function(r){r=l(r);var p=d(this,r);return i(p,r,r.parentNode),f(this,r)},insertAfter:function(r){r=l(r);var p=d(this,r);return t(p,r,r.parentNode),f(this,r)}})},Ze}var Je,kt;function zr(){if(kt)return Je;kt=1;var e=Or();function s(i){for(var t=i;t.parentNode;)t=t.parentNode;return t}function u(i){var t=i.b_;if(!t)throw Error("No component");return t}function _(i){this.out=this.r_=i,this.b_=void 0}Je=_;var v=_.prototype={getComponent:function(){return this.getComponents()[0]},getComponents:function(i){if(this.b_===void 0)throw Error("Not added to DOM");var t=u(this),n=[];return t.forEach(function(l){var m=l.s_;(!i||i(m))&&n.push(m)}),n},afterInsert:function(i){var t=this.r_,n=t.b_;return n?this.b_=n.af_(i):this.b_=null,this},getNode:function(i){return this.r_.ag_(i)},getOutput:function(){return this.r_.ah_()},toString:function(){return this.r_.toString()},document:typeof document=="object"&&document};return Object.defineProperty(v,"html",{get:function(){return this.toString()}}),Object.defineProperty(v,"context",{get:function(){return this.r_}}),e(v,function(t,n){return t.getNode(s(n))},function(t,n){return t.afterInsert(s(n))}),Je}var de={},jt;function $e(){if(jt)return de;jt=1;var e=he(),s=e._P_,u=e._l_,_=e._r_,v=3,i="$MDE"+s,t={};function n(f,r){var p=_(f),E=p[r];return typeof E=="string"&&(E=E.split(" "),E[2]&&(E[2]=E[2]==="true"),E.length==4&&(E[3]=parseInt(E[3],10))),E}function l(f,r,p,E){var C=p[0],B=p[1],R=p[2],q=p[3];if(R){var L=_(f);delete L[r]}var $=u[B];if($){var U=typeof C=="function"?C:$[C];if(!U)throw Error("Method not found: "+C);q!=null&&typeof q=="number"&&(q=$.Y_[q]),q?U.apply($,q.concat(E,f)):U.call($,E,f)}}function m(f){t[f]||(t[f]=!0)}function o(f,r){var p=r[i]=r[i]||{};p[f]||(r.body||r).addEventListener(f,p[f]=function(E){var C=E.target;if(C){C=C.correspondingUseElement||(C.nodeType===v?C.parentNode:C);var B="on"+f,R;if(E.bubbles){var q=!1,L=E.stopPropagation;E.stopPropagation=function(){L.call(E),q=!0};do if((R=n(C,B))&&(l(C,B,R,E),q))break;while((C=C.parentNode)&&C.getAttribute)}else(R=n(C,B))&&l(C,B,R,E)}},!0)}function d(){}return de.aV_=d,de.an_=d,de.aS_=l,de.aT_=n,de._s_=m,de._A_=function(f){Object.keys(t).forEach(function(r){o(r,f)})},de}var et,Kt;function Lr(){if(Kt)return et;Kt=1;function e(){this.aQ_=Object.create(null)}return e.prototype.aN_=function(s){var u=this.aQ_;return u[s]?s+"_"+u[s]++:(u[s]=1,s)},et=e,et}var ce={},tt,Ht;function Ur(){if(Ht)return tt;Ht=1;var e=function(s){var u=document.createElement("template");return e=u.content?function(_){return u.innerHTML=_,u.content}:function(_){return u.innerHTML=_,u},e(s)};return tt=function(s){return e(s).firstChild},tt}var rt,Wt;function Ot(){return Wt||(Wt=1,rt=function(s){switch(s){case"textarea":case"script":case"style":return!0}return!1}),rt}var nt,Gt;function me(){if(Gt)return nt;Gt=1;var e=Ot();function s(){}return s.prototype={bV_:function(u,_){this.cj_=u,this.ck_=0,this.cb_=null,this.cl_=null,this.bZ_=null,this.c__=null,this._M_=_},get aA_(){var u=this.cb_;if(u&&u.ca_){var _=u.aA_;return _||u.cm_}return u},get cm_(){var u=this.c__;if(u){if(u.ca_){var _=u.aA_;return _||u.cm_}}else{var v=this.bZ_;if(v&&v.ca_)return v.cm_}return u},bO_:function(u){if(this.ck_++,e(this.cd_))if(u.cn_)this.ce_+=u.bW_;else throw TypeError();else{var _=this.cl_;u.bZ_=this,_?_.c__=u:this.cb_=u,this.cl_=u}return u},cg_:function(){return this.ck_===this.cj_&&this.bZ_?this.bZ_.cg_():this}},nt=s,nt}var it,Yt;function kr(){if(Yt)return it;Yt=1;var e=me(),s=ge();function u(_,v){this.bV_(-1,v),this.bW_=_}return u.prototype={bX_:8,bo_:function(_){var v=this.bW_;return(_.ownerDocument||_).createComment(v)},bP_:function(){return new u(this.bW_)}},s(u,e),it=u,it}var at,Xt;function jr(){if(Xt)return at;Xt=1;var e=ge(),s=me();function u(_,v,i,t){this.bV_(null,i),this.bY_=v,this.s_=_,this.ad_=t}return u.prototype={bX_:2},e(u,s),at=u,at}var ut,Qt;function Kr(){if(Qt)return ut;Qt=1;var e=Be(),s=ge(),u=me();function _(i){e(this,i),this.bZ_=null,this.c__=null}function v(i){this.bV_(null),this.r_=i}return v.prototype={bX_:11,ca_:!0,bP_:function(){return new _(this)},bo_:function(i){return(i.ownerDocument||i).createDocumentFragment()}},s(v,u),_.prototype=v.prototype,ut=v,ut}var st,Zt;function Hr(){if(Zt)return st;Zt=1;var e=ge(),s=he(),u=we(),_=u._K_,v=me(),i=Ot(),t="xlink:href",n=/^xmlns(:|$)/,l=Object.prototype.hasOwnProperty,m="http://www.w3.org/1999/xlink",o="http://www.w3.org/1999/xhtml",d="http://www.w3.org/1998/Math/MathML",f="http://www.w3.org/2000/svg",r={svg:f,math:d},p=1,E=2,C=4,B="href",R=Object.freeze(Object.create(null)),q={option:{selected:function(b,P){b.selected=P!==void 0}},input:{value:function(b,P){b.value=P===void 0?"":P},checked:function(b,P){b.checked=P!==void 0}}};function L(b){if(b===!0)return"";if(!(b==null||b===!1)){switch(typeof b){case"string":return b;case"object":switch(b.toString){case Object.prototype.toString:case Array.prototype.toString:return JSON.stringify(b);case RegExp.prototype.toString:return b.source}break}return b+""}}function $(b,P){for(var k in P)l.call(P,k)&&(b[k]=P[k])}function U(b){this.cb_=b.cb_,this.bZ_=null,this.c__=null,this.bY_=b.bY_,this.cc_=b.cc_,this._O_=b._O_,this.cd_=b.cd_,this.u_=b.u_,this.ce_=b.ce_,this.cf_=b.cf_}function Y(b,P,k,Z,J,F,j){this.bV_(J,Z);var a;j&&(a=j.i),this.bY_=k,this.u_=F||0,this.cc_=P||R,this._O_=j||R,this.cd_=b,this.ce_="",this.cf_=a,this.ad_=!1,this.ac_=!1}Y.prototype={bX_:1,bP_:function(){return new U(this)},e:function(b,P,k,Z,J,F,j){var a=this.bO_(new Y(b,P,k,Z,J,F,j));return J===0?this.cg_():a},n:function(b,P){return b=b.bP_(),b._M_=P,this.bO_(b),this.cg_()},bo_:function(b,P){var k=this.cd_,Z=this.cc_,J=r[k]||P||o,F=this.u_,j=(b.ownerDocument||b).createElementNS(J,k);if(F&E)$(j,Z);else{for(var a in Z){var c=L(Z[a]);c!==void 0&&(a==t?j.setAttributeNS(m,B,c):j.setAttribute(a,c))}i(k)&&(j.textContent=this.ce_)}return _.set(j,this),j}},e(Y,v),U.prototype=Y.prototype;function te(b,P,k){var Z=b.attributes,J=Z.length,F=null,j=null;if(J){F={};for(var a=0;a"u"||!f||f===null)throw new Error(`[Assertion Error]${r?` ${r}`:""}`)}const u=()=>{window.dispatchEvent(new CustomEvent(e.EventTypeInlinerStatusRequest))};e.emitStatusRequestEvent=u;const _=f=>{window.dispatchEvent(new CustomEvent(e.EventTypeInlinerAck,{detail:f}))};e.emitAckResponse=_;const v=f=>new Promise(r=>setTimeout(r,f));e.sleep=v;const i=(f,r)=>(0,e.sleep)(f).then(r);e.doAfter=i;const t=f=>{throw new Error(f)};e.error=t;const n=(f,r)=>{(0,e.onUntil)(f,p=>(r(p),{done:!0,value:null}))};e.once=n;const l=(f,r)=>{window.addEventListener(f,function p(E){r(E).done===!0&&window.removeEventListener(f,p)})};e.onUntil=l;const m=(f,r,p)=>Promise.race([f(),(0,e.doAfter)(p,()=>(0,e.error)(r))]);e.timeout=m;const o=(f,r)=>f().catch(p=>{if(r===0)throw p;return(0,e.retry)(f,r-1)});e.retry=o;const d=()=>{let f=null;return{get value(){return s(f!==null,"invariant"),f},update(r){f=r}}};e.withInvariantState=d}(wt)),wt}var br;function ln(){return br||(br=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createInlinerEventBus=e.onInlinerEventStatus=e.pollForInitialRequestInlineLoggerStatus=void 0;const s=Cr(),u=()=>new Promise(t=>{(0,s.once)(s.EventTypeInlinerAck,n=>t(n)),(0,s.emitStatusRequestEvent)()}),_=({retries:t,timeoutMs:n})=>(0,s.retry)(()=>(0,s.timeout)(u,"RequestInlineLoggerStatus timeout.",n),t);e.pollForInitialRequestInlineLoggerStatus=_;const v=()=>new Promise((t,n)=>{(0,s.onUntil)(s.EventTypeInlinerAck,l=>(l.detail.status==="Failure"&&n(l.detail.error),(l.detail.status==="Success"||l.detail.status==="Preload")&&t(l.detail),{done:l.detail.status!=="Initialize",value:null})),(0,e.pollForInitialRequestInlineLoggerStatus)({retries:3,timeoutMs:50}).catch(n)});e.onInlinerEventStatus=v;const i=()=>{let t={status:"Initialize"};const n=()=>(0,s.emitAckResponse)(t);return window.addEventListener(s.EventTypeInlinerStatusRequest,n),{updateInlinerState:l=>{t=l,(0,s.emitAckResponse)(t)},dispose:()=>window.removeEventListener(s.EventTypeInlinerStatusRequest,n)}};e.createInlinerEventBus=i}(Et)),Et}var mr;function vn(){return mr||(mr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getLogger=e.initializeClientSideInlineLogger=e.inlineLoggerReady=void 0;const s=ln(),u=Cr(),_=()=>(0,s.onInlinerEventStatus)().then(({status:n,...l})=>l);e.inlineLoggerReady=_;const v=async(n={})=>{let l=null,m=(0,u.withInvariantState)();return window.addEventListener(u.EventTypeInlinerAck,o=>{o.detail.status==="Failure"?(l=o.detail.error,n.onError?.(o.detail.error)):o.detail.status!=="Initialize"&&m.update(o.detail.logger)}),await(0,e.inlineLoggerReady)(),new Proxy(m.value,{get(o,d,f){if(!(d in m.value))return Reflect.get(o,d,f);if(l!==null)throw l;return m.value[d]}})};e.initializeClientSideInlineLogger=v;const i={log:(...n)=>console.log(...n),error:(...n)=>console.error(...n),event:(...n)=>console.log("[event]",...n)},t=n=>{const l=n?.fallbackToConsoleLogger??!0,m=typeof window<"u"?window[u.EBAY_RUM_LOGGER_SYMBOL]:void 0;return!m&&l?(console.warn(`Warning: ${String(u.EBAY_RUM_LOGGER_SYMBOL)} not found, error in initialization or server execution; using console logger.`),i):((0,u.assert)(m,"Logger was not defined. This indicates that the logger was not initialized properly. Check logs for more details"),m)};e.getLogger=t}(yt)),yt}var yr;function cn(){return yr||(yr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getLogger=e.inlineLoggerReady=e.initializeClientSideInlineLogger=void 0;const s=vn();Object.defineProperty(e,"initializeClientSideInlineLogger",{enumerable:!0,get:function(){return s.initializeClientSideInlineLogger}}),Object.defineProperty(e,"inlineLoggerReady",{enumerable:!0,get:function(){return s.inlineLoggerReady}}),Object.defineProperty(e,"getLogger",{enumerable:!0,get:function(){return s.getLogger}})}(mt)),mt}var Er;function hn(){if(Er)return Ae;Er=1,Object.defineProperty(Ae,"__esModule",{value:!0});const e=cn();class s extends Marko.Component{onMount(){(0,e.initializeClientSideInlineLogger)().then(()=>{this.emit("logger-initialized",{error:null})}).catch(_=>{this.emit("logger-initialized",{error:_})})}}return Ae.default=s,Ae}var dn=hn();const pn=Nr(dn);export{pn as a,gn as c}; //# sourceMappingURL=component-browser-BrAewnkv.js.map