LWR.define("lwr/domRouterUtils/v/0_15_5",["exports","lwr/routerUtils/v/0_15_5"],function(r,e){"use strict";function t(j=""){if(j=j||"",j.indexOf("://")<0){const s=window.location.port?`:${window.location.port}`:"",l=`${window.location.protocol}//${window.location.hostname}${s}`,g=j.charAt(0)==="/"?"":"/";j=l+g+j}const I={},c=document.createElement("a");c.href=j;const m=c.search.substring(1);return m&&m.split("&").forEach(s=>{const[l,g=""]=s.split("=");I[e.decode(l)]=e.decode(g)}),{href:c.href,origin:`${c.protocol}//${c.hostname}${c.port?`:${c.port}`:""}`,pathname:c.pathname.replace(/(\/)?/,"/"),searchParams:I}}function P(j){const I=t(j),c=I.href.replace(/:\d+/,""),m=I.origin.replace(/:\d+/,"");return c.replace(m,"")}function E(j,I){const c=I||{};window.history.pushState(c,"",j)}function H(j,I){const c=I||{};window.history.replaceState(c,"",j)}r.getRelativeUrl=P,r.replace=H,r.set=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/domRouterUtils",["exports","lwr/domRouterUtils/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/metrics/v/0_15_5",["exports"],function(r){"use strict";const e="lwr.bootstrap.",t=`${e}end`,P=`${e}error`,E=`${P}.count`,H=`${e}duration`,j="lwr.bootstrap.init",I=`${j}.duration`,c="lwr.bootstrap.init.module",m=`${c}.duration`,s=`${c}.count`,l="lwr.loader.",g=`${l}module.define`,L=`${g}.count`,_=`${l}module.dynamicLoad`,C=`${_}.count`,T=`${l}module.fetch`,k=`${T}.count`,N=`${T}.duration`,U=`${l}module.error`,K=`${U}.count`,A=`${l}mappings.fetch`,$=`${A}.count`,z=`${A}.duration`,ce=`${l}mappings.error`,S=`${ce}.count`,we="lwr.router.",oe=`${we}navigate`,je=`${oe}.count`,ae=`${oe}.duration`,Q=`${we}view`,a=`${Q}.duration`,h=`${we}error`,p=`${h}.count`;r.BOOTSTRAP_DURATION=H,r.BOOTSTRAP_END=t,r.BOOTSTRAP_ERROR=P,r.BOOTSTRAP_ERROR_COUNT=E,r.BOOTSTRAP_PREFIX=e,r.INIT=j,r.INIT_DURATION=I,r.INIT_MODULE=c,r.INIT_MODULE_COUNT=s,r.INIT_MODULE_DURATION=m,r.LOADER_PREFIX=l,r.MAPPINGS_ERROR=ce,r.MAPPINGS_ERROR_COUNT=S,r.MAPPINGS_FETCH=A,r.MAPPINGS_FETCH_COUNT=$,r.MAPPINGS_FETCH_DURATION=z,r.MODULE_DEFINE=g,r.MODULE_DEFINE_COUNT=L,r.MODULE_DYNAMIC_LOAD=_,r.MODULE_DYNAMIC_LOAD_COUNT=C,r.MODULE_ERROR=U,r.MODULE_ERROR_COUNT=K,r.MODULE_FETCH=T,r.MODULE_FETCH_COUNT=k,r.MODULE_FETCH_DURATION=N,r.ROUTER_ERROR=h,r.ROUTER_ERROR_COUNT=p,r.ROUTER_NAV=oe,r.ROUTER_NAV_COUNT=je,r.ROUTER_NAV_DURATION=ae,r.ROUTER_PREFIX=we,r.ROUTER_VIEW=Q,r.ROUTER_VIEW_DURATION=a,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/metrics",["exports","lwr/metrics/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/observable/v/0_15_5",["exports"],function(r){"use strict";function e(){let t,P,E=[];const H=l=>{E.push(l)},j=l=>{E=[...E.slice(0,l),...E.slice(l+1)]},I=l=>{E.filter(g=>g!==null).forEach(g=>g.next&&g.next(l)),t=l,P=void 0},c=l=>{E.filter(g=>g!==null).forEach(g=>g.error&&g.error(l)),t=void 0,P=l};return{next:I,error:c,complete:()=>{E.filter(l=>l!==null).forEach(l=>l.complete&&l.complete()),E=[],t=void 0,P=void 0},subscribe:(l,g=!0)=>{H(l),t&&g&&l.next(t),P&&c(P);const L=E.length-1;return{unsubscribe:()=>j(L)}}}}r.createObservable=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/observable",["exports","lwr/observable/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/contextProvider/v/0_15_5",["exports","lwc/v/8_10_1","lwr/routerUtils/v/0_15_5","lwr/navigation/v/0_15_5"],function(r,e,t,P){"use strict";const E=e.createContextProvider(P.CurrentPageReference),H=t.hasDocument?e.createContextProvider(P.CurrentView):void 0,j=e.createContextProvider(P.NavigationContext);function I(c,m,s,l){s&&l&&(l.setContext(m,c),s(m,{consumerConnectedCallback:l.subscribeContext.bind(l,m),consumerDisconnectedCallback:l.unsubscribeContext.bind(l,m)}))}r.currentPageReferenceContextualizer=E,r.currentViewContextualizer=H,r.navigationContextContextualizer=j,r.provideContext=I,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/contextProvider",["exports","lwr/contextProvider/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/routerUtils/v/0_15_5",["exports","lwr/routerErrors/v/0_15_5"],function(r,e){"use strict";function t(){const b=[],O=()=>b.length===0,y=q=>{typeof q=="function"&&b.push(q)};return{add:(q=[])=>{Array.isArray(q)?q.forEach(X=>y(X)):y(q)},compile:q=>b.length===0?Promise.resolve(!0):b.reduce((X,te)=>X.then(ie=>ie===!1?Promise.reject():Promise.resolve(te(q))),Promise.resolve(!0)).then(X=>X!==!1).catch(X=>{if(X instanceof Error)throw X;return!1}),empty:O}}function P(b=""){return b=b||"",encodeURIComponent(b)}function E(b=""){return b=b||"",decodeURIComponent(b)}function H(b){b=b||"/",b.charAt(0)!=="/"&&(b="/"+b);const O=b.match(/^[^#?]+/);if(O!==null){const y=O[0];return y==="/"?"/":y.replace(/\/$/,"")}return"/"}function j(b){b=b||"";const O=b.indexOf("#");O>=0&&(b=b.substring(0,O));const y=b.indexOf("?"),D=y>=0?b.substr(y+1):null,V={};return D&&D.split("&").forEach(q=>{if(q.indexOf("=")>=0){const[X,te=""]=q.split("=");V[E(X)]=E(te)}else V[E(q)]=null}),V}function I(b={}){const O=Object.keys(b);return O.length?`?${O.map(y=>{const D=b[y];return D===null?y:`${y}=${P(D)}`}).join("&")}`:""}function c(b){return b&&b.length>1?b.startsWith(":"):!1}function m(b){return b&&c(b)?b.substr(1):!1}function s(b){return Object.values(b).reduce((O,{routeParamName:y})=>{const D=m(y);return D&&O.push(D),O},[])}function l(b,O){if(!b)return null;const{type:y,attributes:D={},state:V={}}=b;if(y){const[q]=O.filter(X=>{const{original:{page:{type:te=null,attributes:ie={},state:J={}}={}}}=X,le=te===y,Re=Object.keys(ie).every(xe=>Object.keys(D).indexOf(xe)>=0),Te=Object.keys(ie).length===Object.keys(D).length,De=Object.keys(J).every(xe=>Object.keys(V).indexOf(xe)>=0),fe=Object.keys(ie).filter(xe=>{const w=ie[xe];return!w||!c(w)}).every(xe=>ie[xe]===D[xe]),ke=Object.keys(J).filter(xe=>{const w=J[xe];return w===null||!c(w)}).every(xe=>J[xe]===V[xe]);return le&&Re&&Te&&fe&&De&&ke});return q||null}return null}function g(b,O){const{regex:y,params:D}=O,V=y.exec(b);if(V){const[,...q]=V,X={};return D.forEach((te,ie)=>{const{name:J}=te,le=q[ie];X[J]=le&&E(le)}),X}return null}function L(b,O){if(b&&O){const{queryMatcher:y}=O,D=y(b);if(D){const V={};return Object.keys(D).forEach(q=>{const X=D[q],{value:te,routeParamName:ie}=X,J=ie?ie.substr(1):q;V[J]=te&&E(te)}),V}}return null}function _(b,O){const{compiledQuery:y}=O,D=Object.keys(y).filter(q=>{const{literalValue:X}=y[q];return!X}),V={};return Object.keys(b).forEach(q=>{const X=b[q];D.indexOf(q)<0&&(V[q]=X)}),V}function C(b,O){if(O){const{original:{page:{type:y="",attributes:D={},state:V={}}={}}={}}=O,q=H(b),X=j(b),te=g(q,O),ie=L(X,O);if(te&&ie){const J={...te,...ie},le={};Object.keys(D).forEach(De=>{const fe=D[De];let ke;if(fe&&c(fe)){const xe=fe.substr(1);ke=J[xe]}else ke=fe;le[De]=ke});const Re={};Object.keys(V).forEach(De=>{const fe=V[De];let ke;if(fe&&c(fe)){const xe=fe.substr(1);ke=J[xe]}else ke=fe;Re[De]=ke});const Te=_(X,O);return{type:y,attributes:{...le},state:{...Te,...Re}}}}return null}const T={locale:"en-US",defaultLocale:"en-US"};function k(b,O,y){const{original:{patterns:D=null}={}}=y||{};if(D){const V=g(b,y),q=L(O,y),X={...V,...q};return Object.keys(D).every(te=>{const ie=D[te],J=new RegExp(ie),le=X[te]||"";return J.test(le)})}return!0}function N(b,O){const y=H(b),D=j(b),V=O?O.filter(X=>X.regex.test(y)):[],[q]=V.filter(X=>{const{queryMatcher:te}=X;return te(D)&&k(y,D,X)});return q||null}function U(b,O,y="",D=T,V){if(y&&(b===y||b?.search(new RegExp(`^${y}[/?#]`))===0)&&(b=b.replace(y,"")),V?.locale||D?.locale){const te=`/${V?.locale||D.locale}`;(b===te||b?.search(new RegExp(`^${te}[/?#]`))===0)&&(b=b.replace(te,""))}const q=N(b,O);let X;if(q){const te=C(b,q);if(te)return X={route:{id:q.original.id,attributes:{...te.attributes},state:{...te.state},pageReference:{type:te.type,attributes:{...te.attributes},state:{...te.state}}},routeDefinition:q},X}else return null;return null}function K(b,O,y="",D=T,V){const q=l(b,O);return q?$(b,q,y,D,V):null}function A(b,O,y){const{attributeBindings:D,stateBindings:V}=y,{attributes:q,state:X}=O,te={};return b.forEach(ie=>{const[J]=Object.keys(D).filter(le=>m(D[le])===ie);if(J)te[ie]=q[J];else{const[le]=Object.keys(V).filter(Re=>m(V[Re])===ie);le&&(te[ie]=X[le])}}),te}function $(b,O,y="",D=T,V){const{params:q,original:{page:X={}}={},toPath:te,compiledQuery:ie}=O,{attributes:J={},state:le={}}=X,Re=q.filter(({name:Z})=>typeof Z=="string").map(({name:Z})=>Z),Te=A(Re,b,{attributeBindings:J,stateBindings:le}),De=te(Te),fe=s(ie),ke=A(fe,b,{attributeBindings:J,stateBindings:le}),xe=z(b,ke,O),w=I(xe),re=V?.locale||D&&D.locale,ue=re!==D.defaultLocale?`/${re}`:"";return`${y}${ue}${De}${w}`}function z(b,O,y){const{compiledQuery:D,original:{page:{state:V={}}}}=y,{state:q={}}=b||{},X={};Object.keys(q).filter(ie=>{const J=V[ie];return!c(J)}).forEach(ie=>X[ie]=q[ie]);const te={};return Object.keys(O).forEach(ie=>{const J=O[ie],[le]=Object.keys(D).filter(Re=>{const Te=D[Re],{routeParamName:De}=Te;return m(De)===ie});if(le){const Re=le;te[Re]=J}}),{...X,...te}}function ce(b,O,y="",D=T){const V=U(b,O,y,D);return V&&V.route&&V.route.pageReference?V.route.pageReference:null}function S(b){return typeof b=="object"&&b!==null&&!Array.isArray(b)}function we(b){return typeof b=="string"}function oe(b,O){return O in b}function je(b,O=2){if(S(b))try{Object.freeze(b),O>0&&Object.keys(b).forEach(y=>{if(oe(b,y)){const D=b[y];D&&typeof D=="object"&&je(D,O-1)}})}catch(y){}return b}function ae(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function Q(b){const O=["id","attributes","state","pageReference"],{pageReference:y=null}=b||{};return S(b)&&p(b,O)&&a(y)}function a(b){const O=["type","state","attributes"],{type:y,state:D,attributes:V}=b||{},q=S(b)&&we(y)&&S(D)&&h(D)&&S(V)&&h(V);return p(b,O)&&q}function h(b){return Object.keys(b).every(O=>{const y=b[O];return typeof O=="string"&&(typeof y=="string"||y===null)})}function p(b,O){if(S(b)){const y=O.every(q=>oe(b,q)),V=Object.keys(O).length===O.length;return y&&V}return!1}function x(b){const O=[];let y=0;for(;y=48&&X<=57||X>=65&&X<=90||X>=97&&X<=122||X===95){V+=b[q++];continue}break}if(!V)throw new TypeError(`Missing parameter name at ${y}`);O.push({type:"NAME",index:y,value:V}),y=q;continue}if(D==="("){let V=1,q="",X=y+1;if(b[X]==="?")throw new TypeError(`Pattern cannot start with "?" at ${X}`);for(;X{if(te{const De=J(Te);if(De!==void 0)return De;const{type:fe,index:ke}=y[te];throw new TypeError(`Unexpected ${fe} at ${ke}, expected ${Te}`)},Re=()=>{let Te="",De;for(;De=J("CHAR")||J("ESCAPED_CHAR");)Te+=De;return Te};for(;teX,validate:V=!0}=O,q=b.map(X=>{if(typeof X=="object")return new RegExp(`^(?:${X.pattern})$`,y)});return X=>{let te="";for(let ie=0;iele}=y,te=`[${G(y.endsWith||"")}]|$`,ie=`[${G(y.delimiter||"/#?")}]`;let J=V?"^":"";for(const le of b)if(typeof le=="string")J+=G(X(le));else{const Re=G(X(le.prefix)),Te=G(X(le.suffix));if(le.pattern)if(O&&O.push(le),Re||Te)if(le.modifier==="+"||le.modifier==="*"){const De=le.modifier==="*"?"?":"";J+=`(?:${Re}((?:${le.pattern})(?:${Te}${Re}(?:${le.pattern}))*)${Te})${De}`}else J+=`(?:${Re}(${le.pattern})${Te})${le.modifier}`;else J+=`(${le.pattern})${le.modifier}`;else J+=`(?:${Re}${Te})${le.modifier}`}if(q)D||(J+=`${ie}?`),J+=y.endsWith?`(?=${te})`:"$";else{const le=b[b.length-1],Re=typeof le=="string"?ie.indexOf(le[le.length-1])>-1:le===void 0;D||(J+=`(?:${ie}(?=${te}))?`),Re||(J+=`(?=${ie}|${te})`)}return new RegExp(J,se(y))}function he(b,O,y){return Y(_e(b,y),O,y)}function W(b,O,y){return b instanceof RegExp?Se(b,O):Array.isArray(b)?me(b,O,y):he(b,O,y)}function me(b,O,y){const D=b.map(V=>W(V,O,y).source);return new RegExp(`(?:${D.join("|")})`,se(y))}const{INVALID_ROUTE_QUERY:Oe,MISSING_ROUTE_TEMPLATE:Ge,MISSING_PAGE_BINDING:Be,INVALID_PAGE_BINDING:$e,INVALID_URI_SYNTAX:qe}=e.messages;function Xe(b){const{routes:O,caseSensitive:y}=b;return O.map(D=>Ke(D,y))}function Ke(b,O=!1){const y=[],{id:D,uri:V,page:q}=b;e.invariant(!!V,e.generateMessageObject(Ge,[D])),e.invariant(it(V),e.generateMessageObject(qe,[D])),e.invariant(!!q,e.generateMessageObject(Be,[D]));const X=H(V),te=j(V),ie=W(X,y,{sensitive:O,end:b.exact!==!1}),J=Ie(X,{encode:encodeURIComponent}),le=ht(te),Re=dt(le,O),Te={original:b,regex:ie,params:y,toPath:J,compiledQuery:le,queryMatcher:Re};return e.invariant(bt(Te),e.generateMessageObject($e,[D])),Te}function it(b=""){return!["*","(",")",";"].some(D=>b.indexOf(D)>=0)}function bt(b){const{original:{page:O}={},params:y,compiledQuery:D}=b,V=O&&O.type,q=O&&O.attributes||{},X=O&&O.state||{};if(typeof V!="string"||typeof q!="object"||typeof X!="object")return!1;const te=Object.values(y).map(({name:fe})=>fe),ie=s(D),J=[...te,...ie],le=Object.values(q).filter(c).map(m),Re=Object.values(X).filter(c).map(m),Te=J.every(fe=>typeof fe!="string"?!1:le.indexOf(fe)>=0||Re.indexOf(fe)>=0),De=J.length===le.length+Re.length;return!!(O&&V&&q&&X&&Te&&De)}function ht(b){const O={};return Object.keys(b).forEach(y=>{const D=b[y];e.invariant(c(y)?D===null:!0,Oe),c(y)?O[y.substr(1)]={routeParamName:y}:D&&c(D)?O[y]={routeParamName:D}:O[y]={literalValue:D===null?null:D}}),O}function dt(b,O=!1){return D=>{const V=Object.keys(D),q=Object.keys(b);return q.every(te=>V.indexOf(te)>=0)?q.reduce((te,ie)=>{if(te===null)return null;const{literalValue:J,routeParamName:le}=b[ie],Re=D[ie];let Te=!0;return typeof J=="string"?Te=O?J===Re:J.toUpperCase()===(Re==null?Re:Re.toUpperCase()):J===null&&(Te=Re===J),Te?te={...te,[ie]:{value:Re,routeParamName:le}}:te=null,te},{}):null}}const vt=typeof document!="undefined",mt={pathToRegexp:W,compile:Ie};r.DEFAULT_I18N_ROUTER_CONFIG=T,r.createFilterChain=t,r.decode=E,r.encode=P,r.freeze=je,r.getPageReferenceFromUriAndRouteDef=C,r.getPageReferenceFromUrl=ce,r.getPathFromUrl=H,r.getQueryFromUrl=j,r.getQueryString=I,r.getUrlFromPageReference=K,r.getUrlFromPageReferenceAndRouteDef=$,r.guid=ae,r.hasDocument=vt,r.isObject=S,r.isValidRoute=Q,r.matchRouteByUrl=U,r.parseRoutes=Xe,r.pathToRegexp=mt,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerUtils",["exports","lwr/routerUtils/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/navigationMixinHacks/v/0_15_5",["exports","lwr/routerUtils/v/0_15_5"],function(r,e){"use strict";const t=`universalcontainergetnavigationcontext${e.guid()}`;r.CONTEXT_ID_BACKDOOR=t,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/navigationMixinHacks",["exports","lwr/navigationMixinHacks/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/currentView/v/0_15_5",["exports","lwr/contextUtils/v/0_15_5","lwr/routerErrors/v/0_15_5"],function(r,e,t){"use strict";const P=new e.ContextInfo(void 0),E=class extends e.generateContextualWireAdapter(P){async update(j,I){if(I){const c=j&&j.viewName?j.viewName:"default",m=I.viewset[c],s=m,l=s&&s.module||m;let g;if(l)try{const L=await l(),_=L&&L.default;if(_&&_.constructor!==void 0)this._callback(_);else throw new Error("error occurred with view import")}catch(L){const _=L;s.specifier?g=t.generateMessageObject(t.messages.VIEW_IMPORT_FAILED_WITH_SPECIFIER,[s.specifier,c,_.message,_.stack||""]):g=t.generateMessageObject(t.messages.VIEW_IMPORT_FAILED,[c,_.message,_.stack||""])}else g=t.generateMessageObject(t.messages.VIEW_MISSING,[c]);I.onComplete&&I.onComplete(g)}}};r.CurrentView=E,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/currentView",["exports","lwr/currentView/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/currentPageReference/v/0_15_5",["exports","lwr/contextUtils/v/0_15_5"],function(r,e){"use strict";const t=new e.ContextInfo(void 0),P=e.generateContextualWireAdapter(t);r.CurrentPageReference=P,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/currentPageReference",["exports","lwr/currentPageReference/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/routerErrors/v/0_15_5",["exports"],function(r){"use strict";const e="LWR",t={Fatal:0,Error:1,Warning:2,Log:3};function P(c,m){return Array.isArray(m)?c.replace(/\{([0-9]+)\}/g,(s,l)=>m[l]):c}function E(c,m){return`${c.code}: ${P(c.message,m)}`}function H(c,m){const s={...c,message:P(c.message,m)};return c.address&&(s.address=P(c.address,m)),c.stack&&(s.stack=P(c.stack,m)),s}function j(c,m,s){if(!c)throw new Error(E(m,s))}const I={INVALID_MIXIN_CMP:{code:`${e}4001`,message:"{0} must be an Element type",level:t.Error},MISSING_CONTEXT:{code:`${e}4002`,message:"Could not find context to perform navigation action.",level:t.Error},INVALID_CONTEXT:{code:`${e}4003`,message:"Cannot register navigation context; it must have this shape: { navigate, generateUrl, subscribe }",level:t.Error},MULTIPLE_ROOTS:{code:`${e}4004`,message:"Router connection failed. There can only be one root router.",level:t.Error},MULTIPLE_CHILDREN:{code:`${e}4005`,message:"Could not add to the navigation hierarchy. There can only be one child per navigation node.",level:t.Error},MISSING_ROUTE:{code:`${e}4006`,message:'A route cannot be created to navigate to URL "{0}"',level:t.Error,address:"{0}"},MISSING_URL:{code:`${e}4007`,message:'A URL cannot be created to navigate to route "{0}"',level:t.Error,address:"{0}"},PRENAV_FAILED:{code:`${e}4008`,message:'A preNavigate hook listener blocked routing to "{0}"',level:t.Warning,address:"{0}"},MISSING_ROUTE_TEMPLATE:{code:`${e}4009`,message:'Route definition with id "{0}" is missing a "uri" property.',level:t.Error,address:"{0}"},MISSING_ROUTE_CMP:{code:`${e}4016`,message:"Expected a route view component with a default export.",level:t.Error},MISSING_DATA_CONTEXT:{code:`${e}4018`,message:"Could not find context to retrieve navigation data.",level:t.Error},INVALID_ROUTE_QUERY:{code:`${e}4019`,message:"Invalid query param in route definition.",level:t.Error},MISSING_PAGE_BINDING:{code:`${e}4020`,message:'Route definition with id "{0}" is missing a "page" binding.',level:t.Error,address:"{0}"},INVALID_PAGE_BINDING:{code:`${e}4021`,message:'Route definition with id "{0}" has an invalid "page" binding.',level:t.Error,address:"{0}"},INVALID_URI_SYNTAX:{code:`${e}4022`,message:'Route definition with id "{0}" has invalid "uri" syntax. URI cannot contain *, +, (, ), ',level:t.Error,address:"{0}"},VIEW_IMPORT_FAILED:{code:`${e}4023`,message:'Error importing view with name "{0}", failure was: {1}',level:t.Error,stack:"{2}"},VIEW_MISSING:{code:`${e}4024`,message:'Expected a view with name "{0}" in the viewset',level:t.Error},VIEW_IMPORT_FAILED_WITH_SPECIFIER:{code:`${e}4025`,message:'Error importing module "{0}" from view with name "{1}", failure was: {2}',level:t.Error,stack:"{3}"},NO_ROUTE_MATCH:{code:`${e}4026`,message:"A routing match cannot be found for: {0}",level:t.Error},INVALID_ROUTE_HANDLER:{code:`${e}4027`,message:'Route definition "{0}" does not have a valid route handler module',level:t.Error},DESTINATION_NOT_FOUND:{code:`${e}4028`,message:"Route handler returned 404: Not Found",level:t.Error},DESTINATION_ERROR:{code:`${e}4029`,message:"Route handler returned error status {0}: {1}",level:t.Error,stack:"{2}"},NO_INIT_URL:{code:`${e}4030`,message:'Cannot initialize a server router without a "url"',level:t.Error}};r.generateMessage=E,r.generateMessageObject=H,r.invariant=j,r.messages=I,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerErrors",["exports","lwr/routerErrors/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/contextUtils/v/0_15_5",["exports","lwr/routerErrors/v/0_15_5"],function(r,e){"use strict";function t(c){if(c==null)throw new TypeError("Provider must be defined.")}class P{constructor(m){this.infoMap=new WeakMap,this.defaultValue=m}getInfo(m){let s=this.infoMap.get(m);return s===void 0&&(s={consumers:new Set},this.infoMap.set(m,s)),s}setContext(m,s){t(m);const l=s,g=this.getInfo(m);g.contextValue=s,g.consumers.forEach(L=>L.provide(l)),g.consumers.size===0&&l?.onComplete&&l.onComplete()}getContext(m){t(m);const{contextValue:s}=this.getInfo(m);return s!==void 0?s:this.defaultValue}clearContext(m){t(m),this.infoMap.delete(m)}subscribeContext(m,s){t(m);const{consumers:l,contextValue:g}=this.getInfo(m);l.has(s)||(l.add(s),s.provide(g))}unsubscribeContext(m,s){t(m),this.getInfo(m).consumers.delete(s)}}const E=new WeakMap;function H(c){const m=E.get(c);if(!m||!m.value)throw new Error(e.generateMessage(e.messages.MISSING_CONTEXT));return m.value}function j(c,m){const s={id:c,value:m,update:l=>{s.value=l}};return E.set(s.id,s),s}function I(c){var m;return m=class{constructor(g){this._callback=g}connect(){}disconnect(){}update(g,L){L&&this._callback(L)}static setContext(g,L){c.setContext(g,L)}static getContext(g){return c.getContext(g)}static clearContext(g){c.clearContext(g)}static subscribeContext(g,L){c.subscribeContext(g,L)}static unsubscribeContext(g,L){c.unsubscribeContext(g,L)}},m.contextSchema={value:"required"},m}r.ContextInfo=P,r.generateContextualWireAdapter=I,r.getNavigationHelm=H,r.registerNavigationHelm=j,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/contextUtils",["exports","lwr/contextUtils/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/navigationContext/v/0_15_5",["exports","lwr/contextUtils/v/0_15_5"],function(r,e){"use strict";const t=new e.ContextInfo(void 0),P=e.generateContextualWireAdapter(t);r.NavigationContext=P,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/navigationContext",["exports","lwr/navigationContext/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/navigation/v/0_15_5",["exports","lwr/navigationContext/v/0_15_5","lwr/currentPageReference/v/0_15_5","lwr/currentView/v/0_15_5","lwr/contextUtils/v/0_15_5","lwr/routerErrors/v/0_15_5","lwr/navigationMixinHacks/v/0_15_5"],function(r,e,t,P,E,H,j){"use strict";function I(C,T,k,N){E.getNavigationHelm(C).navigate(T,k,N)}function c(C,T,k){return E.getNavigationHelm(C).generateUrl(T,k)}const m=typeof window=="undefined",s=Symbol("Navigate"),l=Symbol("GenerateUrl"),g=Symbol("NavContext"),L=Symbol("NavContext");function _(C){H.invariant(typeof C.prototype.dispatchEvent=="function",H.messages.INVALID_MIXIN_CMP,[C.toString()]);class T extends C{[L](){if(!this[g]&&(this.dispatchEvent(new CustomEvent(j.CONTEXT_ID_BACKDOOR,{bubbles:!0,composed:!0,detail:{callback:N=>{this[g]=N}}})),!this[g]))throw new Error(H.generateMessage(H.messages.MISSING_CONTEXT))}[s](N,U,K){m||(this[L](),I(this[g],N,U,K))}async[l](N,U){return m?null:(this[L](),c(this[g],N,U))}}return T}_.Navigate=s,_.GenerateUrl=l,_.NavContext=g,Object.defineProperty(r,"NavigationContext",{enumerable:!0,get:function(){return e.NavigationContext}}),Object.defineProperty(r,"CurrentPageReference",{enumerable:!0,get:function(){return t.CurrentPageReference}}),Object.defineProperty(r,"CurrentView",{enumerable:!0,get:function(){return P.CurrentView}}),Object.defineProperty(r,"ContextInfo",{enumerable:!0,get:function(){return E.ContextInfo}}),Object.defineProperty(r,"generateContextualWireAdapter",{enumerable:!0,get:function(){return E.generateContextualWireAdapter}}),Object.defineProperty(r,"getNavigationHelm",{enumerable:!0,get:function(){return E.getNavigationHelm}}),Object.defineProperty(r,"registerNavigationHelm",{enumerable:!0,get:function(){return E.registerNavigationHelm}}),r.NavigationMixin=_,r.generateUrl=c,r.navigate=I,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/navigation",["exports","lwr/navigation/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/domRouter/v/0_15_5",["exports","lwr/navigation/v/0_15_5","lwr/contextProvider/v/0_15_5","lwr/routerErrors/v/0_15_5","lwr/routerUtils/v/0_15_5","lwr/observable/v/0_15_5","lwr/metrics/v/0_15_5","lwr/profiler/v/0_15_5","lwr/navigationMixinHacks/v/0_15_5"],function(r,e,t,P,E,H,j,I,c){"use strict";const m=`universalcontainernavigationevent${E.guid()}`,s=`universalcontainerparentevent${E.guid()}`;class l{constructor(_,C,T){this.pendingRoute=null,this.committedRoute=null,this.contextId=Object.freeze(()=>{}),this.connected=!1,this.preNavFilters=E.createFilterChain(),this.errorNavFilters=E.createFilterChain(),this._handleNavigationEvent=k=>{const N=k;if(N.detail&&typeof N.detail=="object"){const{url:U,replace:K,address:A}=N.detail;this.config.handleNavigation(A,K)?this.root&&!U?this.root.processError(P.generateMessageObject(P.messages.MISSING_URL,[JSON.stringify(A)])):this.parent||this.process(U,K):N.stopPropagation()}},this._handleParentEvent=k=>{k.stopImmediatePropagation();const N=k;N&&N.detail&&typeof N.detail=="function"&&N.detail(this)},this.config={handleNavigation:_.handleNavigation||(()=>!0)},this.target=T||window,this.router=C,this.router.contextId=this.contextId,this.routeObservable=H.createObservable()}get root(){if(!this.parent)return this;let _=this.parent;for(;_;){if(!_.parent)return _;_=_.parent}throw new Error("No root router could be found")}updateWires(_,C,T){if(T)this.processError(T);else{if(this.committedRoute&&_.route===this.committedRoute.route)return;I.logOperationEnd({id:j.ROUTER_VIEW,specifier:this.eventId}),this.pendingRoute=this.pendingRoute||{..._,url:C},this.committedRoute={...this.pendingRoute,..._},e.CurrentPageReference.setContext(this.target,_.route.pageReference),this.routeObservable.next({...this.committedRoute,viewset:_.viewset}),I.logOperationEnd({id:j.ROUTER_NAV,specifier:this.eventId}),this.child&&this.child.process(this._stripUrlForChild(this.committedRoute.url))}}connect(){this._sendEvent(s,C=>{this.parent=C,C.addChild(this)});const _={navigate:(C,T)=>this.navigate(C,T),generateUrl:(C,T)=>this.generateUrl(C,T),subscribe:(C,T)=>this.subscribe(C,T)};e.registerNavigationHelm(this.contextId,_),t.provideContext(this.contextId,this.target,t.navigationContextContextualizer,e.NavigationContext),t.provideContext(void 0,this.target,t.currentPageReferenceContextualizer,e.CurrentPageReference),t.provideContext(void 0,this.target,t.currentViewContextualizer,e.CurrentView),this.router.subscribe(C=>{if(C.status===404){this.processError(P.generateMessageObject(P.messages.DESTINATION_NOT_FOUND));return}if(C.status&&C.status>=400){const N=C.error||new Error;this.processError(P.generateMessageObject(P.messages.DESTINATION_ERROR,[C.status.toString(),N.message,N.stack||""]));return}const T=C.route.pageReference||{},k=this.router.generateUrl(T)||"";if(I.logOperationStart({id:j.ROUTER_VIEW,specifier:this.eventId}),C.viewset){const N={viewset:C.viewset,onComplete:this.updateWires.bind(this,C,k)};e.CurrentView.setContext(this.target,N)}else C.route.pageReference&&this.updateWires(C,k)},!0),E.hasDocument&&(this.target.addEventListener(m,this._handleNavigationEvent),this.target.addEventListener(s,this._handleParentEvent),this.target.addEventListener(c.CONTEXT_ID_BACKDOOR,C=>{const T=C;T.detail.callback&&T.detail.callback(this.contextId)})),this.connected=!0}disconnect(){this.target.removeEventListener(m,this._handleNavigationEvent),this.target.removeEventListener(s,this._handleParentEvent),this.parent&&(this.parent.child=void 0),this.parent=void 0,this.child&&(this.child.parent=void 0),this.child=void 0,this.connected=!1}addPreNavigate(_){this.preNavFilters.add(_)}addErrorNavigate(_){this.errorNavFilters.add(_)}async addChild(_){if(await new Promise(C=>{setTimeout(()=>{P.invariant(!this.child,P.messages.MULTIPLE_CHILDREN),this.child=_,C()},0)}),this.child&&this.committedRoute){const C=this._stripUrlForChild(this.committedRoute.url);await this.child.preProcess(C)&&this.child.process(C)}}async process(_,C,T,k){this.eventId=new Date().getTime().toString(),I.logOperationStart({id:j.ROUTER_NAV,specifier:this.eventId});try{this.parent||await this.preProcess(_,T)}catch(U){if(U.code)return this.processError(U),!1;throw U}const N=this.router.parseUrl(_);return N&&this.router.navigate(N,T),!0}preProcess(_,C){const T=this.router.parseUrl(_),k=T&&this.router.matchRoute(T,C);return k?(this.pendingRoute={url:_,...k},(this.preNavFilters.empty()?Promise.resolve(!0):this.preNavFilters.compile({current:this.committedRoute||void 0,next:this.pendingRoute})).then(U=>U&&this.child?this.child.preProcess(this._stripUrlForChild(_)):U).then(U=>U||Promise.reject(P.generateMessageObject(P.messages.PRENAV_FAILED,[_])))):Promise.reject(P.generateMessageObject(P.messages.MISSING_ROUTE,[_]))}processError(_){I.logOperationStart({id:j.ROUTER_ERROR}),this.errorNavFilters.compile(_),this.child&&this.child.processError(_)}navigate(_,C,T){const k=this.filterNavigateOptions(T);let N=this.router.generateUrl(_,k);N&&(N=(this.parent&&this.parent.committedRoute&&this.parent.committedRoute.pathMatch||"").concat(N)),this._sendEvent(m,{url:N,replace:C,address:_})}generateUrl(_,C){const T=this.filterNavigateOptions(C),k=this.router.generateUrl(_,T);return k?`${this.parent&&this.parent.committedRoute&&this.parent.committedRoute.pathMatch||""}${k}`:null}subscribe(_,C){return this.routeObservable.subscribe({next:_,error:()=>{},complete:()=>{}},Boolean(C))}_sendEvent(_,C){E.hasDocument&&this.target.dispatchEvent(new CustomEvent(_,{bubbles:!0,composed:!0,detail:C}))}_stripUrlForChild(_){return this.pendingRoute&&_.indexOf(this.pendingRoute.pathMatch)===0?_.replace(this.pendingRoute.pathMatch,""):_}filterNavigateOptions(_){const C=!this.parent;return{..._,locale:C?_?.locale:void 0}}}function g(L,_,C){return new l(L,_,C)}r.DomRouterImpl=l,r.NAV_EVENT=m,r.PARENT_EVENT=s,r.createDomRouter=g,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/domRouter",["exports","lwr/domRouter/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/historyRouter/v/0_15_5",["exports","lwc/v/8_10_1","lwr/domRouter/v/0_15_5","lwr/domRouterUtils/v/0_15_5","lwr/routerUtils/v/0_15_5"],function(r,e,t,P,E){"use strict";class H extends t.DomRouterImpl{constructor(...c){super(...c);this.historyDisabled=!1}connect(){super.connect(),this.historyDisabled||(E.hasDocument&&window.addEventListener("popstate",this.onpopstate.bind(this)),this.onpopstate())}onpopstate(){!this.parent&&E.hasDocument&&this.catchBrowserUpdate(P.getRelativeUrl(window.location.href))}disconnect(){super.disconnect(),E.hasDocument&&window.removeEventListener("popstate",this.onpopstate)}async process(c,m,s,l=!0){const g=await super.process(c,m,s,l);return g&&!this.historyDisabled&&l&&this.connected&&!this.parent&&(m?P.replace(c):P.set(c)),g}catchBrowserUpdate(c){this.process(c,!1,{},!1)}}e.registerDecorators(H,{fields:["historyDisabled"]});function j(I,c,m){return new H(I,c,m)}r.HistoryRouter=H,r.createHistoryRouter=j,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/historyRouter",["exports","lwr/historyRouter/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/routerContainer/v/0_15_5",["exports","lwc/v/8_10_1","lwr/historyRouter/v/0_15_5","lwr/routerErrors/v/0_15_5","lwr/domRouter/v/0_15_5","lwr/routerUtils/v/0_15_5"],function(r,e,t,P,E,H){"use strict";function j(k,N,U){var K=k?"["+k+"]":"";return"span.router-title"+K+" {position: absolute;margin: -1px;border: 0;padding: 0;width: 1px;height: 1px;overflow: hidden;clip: rect(0 0 0 0);text-transform: none;white-space: nowrap;}"}var I=[j];const c=e.parseFragment``,m={key:0},s=[];function l(k,N,U,K){const{s:A,st:$}=k;return[A("",m,s,U),$(c,2)]}var g=e.registerTemplate(l);l.slots=[""],l.renderMode="light",l.stylesheets=[],l.stylesheetToken="lwc-7bis3qj4jjc",l.legacyStylesheetToken="lwr-routerContainer_routerContainer",I&&l.stylesheets.push.apply(l.stylesheets,I),e.freezeTemplate(l);let L=!1;function _(k,N={},U){const K=N.historyDisabled?new E.DomRouterImpl(N,U,k):new t.HistoryRouter(N,U,k),A={addPreNavigate:$=>(K.addPreNavigate($),A),addPostNavigate:$=>(K.subscribe($),A),addErrorNavigate:$=>(K.addErrorNavigate($),A),connect:()=>{K.connect(),P.invariant(!L||!!K.parent,P.messages.MULTIPLE_ROOTS),L=L||!K.parent,A.id=K.contextId},disconnect:()=>{L=L&&!!K.parent,K.disconnect()}};return A}class C extends e.LightningElement{constructor(){super();this.router=void 0,this.historyDisabled=!1,this.currentTitle=H.hasDocument?document.title:""}connectedCallback(){const N={historyDisabled:this.historyDisabled,handleNavigation:this.handleNavigation.bind(this)};H.hasDocument&&this.router&&(this.routerApi=_(this,N,this.router),this.routerApi.addPreNavigate(this.preNavigate.bind(this)).addPostNavigate(this.postNavigate.bind(this)).addErrorNavigate(this.errorNavigate.bind(this)).connect())}preNavigate(N){const U=this._createEvent("prenavigate",N,!0);return this.dispatchEvent(U),!U.defaultPrevented}postNavigate(N){this.dispatchEvent(this._createEvent("postnavigate",N));const U=N.routeDefinition.metadata&&N.routeDefinition.metadata.title;U&&(this.currentTitle=U,document.title=U);const K=this.querySelector("span.router-title");K&&(K.innerHTML=this.currentTitle)}errorNavigate(N){return this.dispatchEvent(this._createEvent("errornavigate",N)),!0}handleNavigation(N,U){const K=this._createEvent("handlenavigation",{address:N,replace:U},!0);return this.dispatchEvent(K),!K.defaultPrevented}disconnectedCallback(){this.routerApi&&this.routerApi.disconnect()}_createEvent(N,U,K){return new CustomEvent(N,{detail:U,bubbles:!1,composed:!1,cancelable:K})}}C.renderMode="light",e.registerDecorators(C,{publicProps:{router:{config:0},historyDisabled:{config:0}}});const T=e.registerComponent(C,{tmpl:g,sel:"lwr-router-container",apiVersion:63});r.default=T,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/routerContainer",["exports","lwr/routerContainer/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/defaultView/v/1_66_890",["exports","lwc/v/8_10_1"],function(r,e){"use strict";const t=[];function P(j,I,c,m){return t}var E=e.registerTemplate(P);P.renderMode="light",P.stylesheets=[],P.stylesheetToken="lwc-15jgd3dq0rl",P.legacyStylesheetToken="webruntime-defaultView_defaultView",e.freezeTemplate(P);var H={html:E,attributes(){}};r.default=H,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/defaultView",["exports","webruntime/defaultView/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/designmodeInit/v/1_66_890",["exports","lwr/loaderLegacy/v/0_15_5","@app/isDesignMode/v/1","@app/isPreviewMode/v/1"],function(r,e,t,P){"use strict";function E(m){return m&&typeof m=="object"&&"default"in m?m:{default:m}}var H=E(t),j=E(P);const{info:I}=console;async function c(){if(H.default||j.default){const{start:m,startPreview:s}=await e.load("webruntimedesign/designmode/v/1");H.default&&(/interactive|complete/.test(document.readyState)?m():document.addEventListener("DOMContentLoaded",m,!1)),j.default&&(s?s():I("startPreview() does not exist in this environment!"))}}r.designmodeInit=c,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/designmodeInit",["exports","webruntime/designmodeInit/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/utils/v/1_66_890",["exports"],function(r){"use strict";function e(s,l){if(!s)throw new Error(l)}function t(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)}function P(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,s=>(s^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>s/4).toString(16))}function E(s){return typeof s=="string"&&/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(s)}const H=new RegExp("^([a-z]+://|//)","i");function j(s){return s?H.test(s):!1}const I=new RegExp("/sfsites/c/.+","i");function c(s){return s?I.test(s):!1}function m(s,l){const g=JSON.stringify(l);if(!(window&&window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(s,g))){const _=new XMLHttpRequest;_.open("POST",s,!0),_.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),_.send(g)}}r.assert=e,r.isAbsoluteURL=j,r.isObject=t,r.isSfdcCoreURL=c,r.sendPayloadToServer=m,r.uuidValidate=E,r.uuidv4=P,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/utils",["exports","webruntime/utils/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/logger/v/1_66_890",["exports"],function(r){"use strict";function e(...P){console.log(...P)}function t(...P){console.error(...P)}r.log=e,r.logError=t,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/logger",["exports","webruntime/logger/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/errors/v/1_66_890",["exports","webruntime/logger/v/1_66_890","@communities-webruntime/common/v/1_66_890","webruntime/transport/v/1"],function(r,e,t,P){"use strict";function E(I){P.sendBeacon({path:t.ERRORS_PATH_PREFIX,payload:JSON.stringify(I),contentType:"text/plain;charset=UTF-8"})}function H(I,c){document.dispatchEvent(new CustomEvent("client-error",{detail:{error:I,type:c}}))}function j({subject:I,error:c,wcstack:m,type:s=t.CLIENT_ERROR_TYPES.UNKNOWN_ERROR}){m=m||c.wcstack;const{message:l,stack:g}=c,{hostname:L,pathname:_}=globalThis.location||{},T={subject:I,message:l,stack:g,wcstack:m,location:{hostname:L,pathname:_}};e.logError(g||T),typeof document!="undefined"&&(H(T,s),E(T))}r.reportError=j,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/errors",["exports","webruntime/errors/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/innerApp/v/1_66_890",["exports","lwc/v/8_10_1","@communities-webruntime/common/v/1_66_890","webruntime/overrides/v/1","webruntime/errors/v/1_66_890","webruntime/utils/v/1_66_890","webruntime/views/v/1","webruntime/routingService/v/1","@app/viewToThemeLayoutMap/v/1","webruntime/designmodeInit/v/1_66_890","webruntime/defaultView/v/1_66_890"],function(r,e,t,P,E,H,j,I,c,m,s){"use strict";function l(N){return N&&typeof N=="object"&&"default"in N?N:{default:N}}var g=l(j),L=l(c),_=l(s),C=void 0;class T extends e.LightningElement{constructor(...U){super(...U);this.view=void 0,this.routerContainerView=void 0,this._routeParams=void 0,this.generatedTemplateHtml=void 0,this.attributes={},this.previousRouteId=null,this.route={}}get routeParams(){return this._routeParams||{}}set routeParams(U){this._routeParams=U}async connectedCallback(){const U=this.view||_.default;this.generatedTemplateHtml=U.html,this.attributes=U.attributes(this,this.routeParams)||{},await m.designmodeInit(),this.subscription=I.subscribe(this.loadThemeLayout.bind(this))}render(){return this.generatedTemplateHtml}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}updateTemplate(U){this.generatedTemplateHtml=U.html}updateRoute(U,K){I.handleExtraRouteParams(K);const{state:A,attributes:$}=K;this.previousRouteId=this.route?.id||null,this._routeParams={...A,...$},this.attributes=U.attributes(this,this.routeParams)||{},this.route=K}restoreDefaultTemplate(){this.generatedTemplateHtml=_.default.html}async loadThemeLayout(U){let K=!1;const A=U.routeDefinition.view,$=L.default[A];setTimeout(async()=>{!K&&this.themeLayout!==$&&this.restoreDefaultTemplate()},10);let z;try{z=await g.default($)}catch(ce){await this.handleFetchViewFailed(ce,U.routeDefinition.metadata?.isPublic)}if(!!z)try{K=!0,window?.scrollTo(0,0),this.themeLayout!==$&&(this.themeLayout=$,this.updateTemplate(z.default)),this.updateRoute(z.default,U.route)}catch(ce){E.reportError({subject:"InnerApp.loadThemeLayout error",type:t.CLIENT_ERROR_TYPES.FAILED_TO_LOAD_RESOURCE,error:ce})}}async handleFetchViewFailed(U,K){await P.PageNavigationFailureOverrides.run({error:U,isPublic:K})&&E.reportError({subject:"InnerApp.loadThemeLayout#getViewModule error",type:t.CLIENT_ERROR_TYPES.FAILED_TO_LOAD_RESOURCE,error:U})}}T.renderMode="light",e.registerDecorators(T,{publicProps:{view:{config:0},routerContainerView:{config:0},routeParams:{config:3}},publicMethods:["updateTemplate","updateRoute","restoreDefaultTemplate"],fields:["_routeParams","generatedTemplateHtml","attributes","previousRouteId","route"]});const k=e.registerComponent(T,{tmpl:C,sel:"webruntime-inner-app",apiVersion:63});r.default=k,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/innerApp",["exports","webruntime/innerApp/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/purifyLib/v/1_23_11-alpha",["exports","lwc/v/8_10_1"],function(r,e){"use strict";var t=void 0;/*! @license DOMPurify 3.0.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.11/LICENSE */const{entries:P,setPrototypeOf:E,isFrozen:H,getPrototypeOf:j,getOwnPropertyDescriptor:I}=Object;let{freeze:c,seal:m,create:s}=Object,{apply:l,construct:g}=typeof Reflect!="undefined"&&Reflect;c||(c=function(y){return y}),m||(m=function(y){return y}),l||(l=function(y,D,V){return y.apply(D,V)}),g||(g=function(y,D){return new y(...D)});const L=S(Array.prototype.forEach),_=S(Array.prototype.pop),C=S(Array.prototype.push),T=S(String.prototype.toLowerCase),k=S(String.prototype.toString),N=S(String.prototype.match),U=S(String.prototype.replace),K=S(String.prototype.indexOf),A=S(String.prototype.trim),$=S(Object.prototype.hasOwnProperty),z=S(RegExp.prototype.test),ce=we(TypeError);function S(O){return function(y){for(var D=arguments.length,V=new Array(D>1?D-1:0),q=1;q2&&arguments[2]!==void 0?arguments[2]:T;E&&E(O,null);let V=y.length;for(;V--;){let q=y[V];if(typeof q=="string"){const X=D(q);X!==q&&(H(y)||(y[V]=X),q=X)}O[q]=!0}return O}function je(O){for(let y=0;y/gm),me=m(/\${[\w\W]*}/gm),Oe=m(/^data-[\-\w.\u00B7-\uFFFF]/),Ge=m(/^aria-[\-\w]+$/),Be=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$e=m(/^(?:\w+script|data):/i),qe=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xe=m(/^html$/i),Ke=m(/^[a-z][.\w]*(-[.\w]+)+$/i);var it=Object.freeze({__proto__:null,MUSTACHE_EXPR:he,ERB_EXPR:W,TMPLIT_EXPR:me,DATA_ATTR:Oe,ARIA_ATTR:Ge,IS_ALLOWED_URI:Be,IS_SCRIPT_OR_DATA:$e,ATTR_WHITESPACE:qe,DOCTYPE_NAME:Xe,CUSTOM_ELEMENT:Ke});const bt=function(){return typeof window=="undefined"?null:window},ht=function(y,D){if(typeof y!="object"||typeof y.createPolicy!="function")return null;let V=null;const q="data-tt-policy-suffix";D&&D.hasAttribute(q)&&(V=D.getAttribute(q));const X="dompurify"+(V?"#"+V:"");try{return y.createPolicy(X,{createHTML(te){return te},createScriptURL(te){return te}})}catch(te){return console.warn("TrustedTypes policy "+X+" could not be created."),null}};function dt(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bt();const y=be=>dt(be);if(y.version="3.0.11",y.removed=[],!O||!O.document||O.document.nodeType!==9)return y.isSupported=!1,y;let{document:D}=O;const V=D,q=V.currentScript,{DocumentFragment:X,HTMLTemplateElement:te,Node:ie,Element:J,NodeFilter:le,NamedNodeMap:Re=O.NamedNodeMap||O.MozNamedAttrMap,HTMLFormElement:Te,DOMParser:De,trustedTypes:fe}=O,ke=J.prototype,xe=Q(ke,"cloneNode"),w=Q(ke,"nextSibling"),re=Q(ke,"childNodes"),ue=Q(ke,"parentNode");if(typeof te=="function"){const be=D.createElement("template");be.content&&be.content.ownerDocument&&(D=be.content.ownerDocument)}let Z,Fe="";const{implementation:ot,createNodeIterator:st,createDocumentFragment:et,getElementsByTagName:lt}=D,{importNode:pt}=V;let Qe={};y.isSupported=typeof P=="function"&&typeof ue=="function"&&ot&&ot.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:gt,ERB_EXPR:ct,TMPLIT_EXPR:at,DATA_ATTR:At,ARIA_ATTR:Ot,IS_SCRIPT_OR_DATA:yt,ATTR_WHITESPACE:Pe,CUSTOM_ELEMENT:n}=it;let{IS_ALLOWED_URI:i}=it,o=null;const u=oe({},[...a,...h,...p,...G,..._e]);let d=null;const R=oe({},[...Le,...Ie,...Se,...Y]);let F=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,Ee=null,ge=!0,Ae=!0,Me=!1,ve=!0,Ue=!1,We=!1,tt=!1,Et=!1,ut=!1,f=!1,M=!1,B=!0,ne=!1;const de="user-content-";let ye=!0,Ne=!1,Ve={},ft=null;const Rt=oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Dt=null;const St=oe({},["audio","video","img","source","image","track"]);let Ct=null;const ze=oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),jt="http://www.w3.org/1998/Math/MathML",kt="http://www.w3.org/2000/svg",_t="http://www.w3.org/1999/xhtml";let It=_t,Ut=!1,xt=null;const tr=oe({},[jt,kt,_t],k);let Lt=null;const rr=["application/xhtml+xml","text/html"],nr="text/html";let Ye=null,Nt=null;const ir=D.createElement("form"),Ht=function(v){return v instanceof RegExp||v instanceof Function},$t=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Nt&&Nt===v)){if((!v||typeof v!="object")&&(v={}),v=ae(v),Lt=rr.indexOf(v.PARSER_MEDIA_TYPE)===-1?nr:v.PARSER_MEDIA_TYPE,Ye=Lt==="application/xhtml+xml"?k:T,o=$(v,"ALLOWED_TAGS")?oe({},v.ALLOWED_TAGS,Ye):u,d=$(v,"ALLOWED_ATTR")?oe({},v.ALLOWED_ATTR,Ye):R,xt=$(v,"ALLOWED_NAMESPACES")?oe({},v.ALLOWED_NAMESPACES,k):tr,Ct=$(v,"ADD_URI_SAFE_ATTR")?oe(ae(ze),v.ADD_URI_SAFE_ATTR,Ye):ze,Dt=$(v,"ADD_DATA_URI_TAGS")?oe(ae(St),v.ADD_DATA_URI_TAGS,Ye):St,ft=$(v,"FORBID_CONTENTS")?oe({},v.FORBID_CONTENTS,Ye):Rt,Ce=$(v,"FORBID_TAGS")?oe({},v.FORBID_TAGS,Ye):{},Ee=$(v,"FORBID_ATTR")?oe({},v.FORBID_ATTR,Ye):{},Ve=$(v,"USE_PROFILES")?v.USE_PROFILES:!1,ge=v.ALLOW_ARIA_ATTR!==!1,Ae=v.ALLOW_DATA_ATTR!==!1,Me=v.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=v.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ue=v.SAFE_FOR_TEMPLATES||!1,We=v.WHOLE_DOCUMENT||!1,ut=v.RETURN_DOM||!1,f=v.RETURN_DOM_FRAGMENT||!1,M=v.RETURN_TRUSTED_TYPE||!1,Et=v.FORCE_BODY||!1,B=v.SANITIZE_DOM!==!1,ne=v.SANITIZE_NAMED_PROPS||!1,ye=v.KEEP_CONTENT!==!1,Ne=v.IN_PLACE||!1,i=v.ALLOWED_URI_REGEXP||Be,It=v.NAMESPACE||_t,F=v.CUSTOM_ELEMENT_HANDLING||{},v.CUSTOM_ELEMENT_HANDLING&&Ht(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=v.CUSTOM_ELEMENT_HANDLING.tagNameCheck),v.CUSTOM_ELEMENT_HANDLING&&Ht(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),v.CUSTOM_ELEMENT_HANDLING&&typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(F.allowCustomizedBuiltInElements=v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ue&&(Ae=!1),f&&(ut=!0),Ve&&(o=oe({},_e),d=[],Ve.html===!0&&(oe(o,a),oe(d,Le)),Ve.svg===!0&&(oe(o,h),oe(d,Ie),oe(d,Y)),Ve.svgFilters===!0&&(oe(o,p),oe(d,Ie),oe(d,Y)),Ve.mathMl===!0&&(oe(o,G),oe(d,Se),oe(d,Y))),v.ADD_TAGS&&(o===u&&(o=ae(o)),oe(o,v.ADD_TAGS,Ye)),v.ADD_ATTR&&(d===R&&(d=ae(d)),oe(d,v.ADD_ATTR,Ye)),v.ADD_URI_SAFE_ATTR&&oe(Ct,v.ADD_URI_SAFE_ATTR,Ye),v.FORBID_CONTENTS&&(ft===Rt&&(ft=ae(ft)),oe(ft,v.FORBID_CONTENTS,Ye)),ye&&(o["#text"]=!0),We&&oe(o,["html","head","body"]),o.table&&(oe(o,["tbody"]),delete Ce.tbody),v.TRUSTED_TYPES_POLICY){if(typeof v.TRUSTED_TYPES_POLICY.createHTML!="function")throw ce('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof v.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ce('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=v.TRUSTED_TYPES_POLICY,Fe=Z.createHTML("")}else Z===void 0&&(Z=ht(fe,q)),Z!==null&&typeof Fe=="string"&&(Fe=Z.createHTML(""));c&&c(v),Nt=v}},Vt=oe({},["mi","mo","mn","ms","mtext"]),Gt=oe({},["foreignobject","desc","title","annotation-xml"]),or=oe({},["title","style","font","a","script"]),Wt=oe({},[...h,...p,...x]),Bt=oe({},[...G,...se]),ar=function(v){let ee=ue(v);(!ee||!ee.tagName)&&(ee={namespaceURI:It,tagName:"template"});const pe=T(v.tagName),He=T(ee.tagName);return xt[v.namespaceURI]?v.namespaceURI===kt?ee.namespaceURI===_t?pe==="svg":ee.namespaceURI===jt?pe==="svg"&&(He==="annotation-xml"||Vt[He]):Boolean(Wt[pe]):v.namespaceURI===jt?ee.namespaceURI===_t?pe==="math":ee.namespaceURI===kt?pe==="math"&&Gt[He]:Boolean(Bt[pe]):v.namespaceURI===_t?ee.namespaceURI===kt&&!Gt[He]||ee.namespaceURI===jt&&!Vt[He]?!1:!Bt[pe]&&(or[pe]||!Wt[pe]):!!(Lt==="application/xhtml+xml"&&xt[v.namespaceURI]):!1},wt=function(v){C(y.removed,{element:v});try{v.parentNode.removeChild(v)}catch(ee){v.remove()}},Ft=function(v,ee){try{C(y.removed,{attribute:ee.getAttributeNode(v),from:ee})}catch(pe){C(y.removed,{attribute:null,from:ee})}if(ee.removeAttribute(v),v==="is"&&!d[v])if(ut||f)try{wt(ee)}catch(pe){}else try{ee.setAttribute(v,"")}catch(pe){}},qt=function(v){let ee=null,pe=null;if(Et)v=""+v;else{const Ze=N(v,/^[\r\n\t ]+/);pe=Ze&&Ze[0]}Lt==="application/xhtml+xml"&&It===_t&&(v=''+v+"");const He=Z?Z.createHTML(v):v;if(It===_t)try{ee=new De().parseFromString(He,Lt)}catch(Ze){}if(!ee||!ee.documentElement){ee=ot.createDocument(It,"template",null);try{ee.documentElement.innerHTML=Ut?Fe:He}catch(Ze){}}const Je=ee.body||ee.documentElement;return v&&pe&&Je.insertBefore(D.createTextNode(pe),Je.childNodes[0]||null),It===_t?lt.call(ee,We?"html":"body")[0]:We?ee.documentElement:Je},zt=function(v){return st.call(v.ownerDocument||v,v,le.SHOW_ELEMENT|le.SHOW_COMMENT|le.SHOW_TEXT|le.SHOW_PROCESSING_INSTRUCTION|le.SHOW_CDATA_SECTION,null)},sr=function(v){return v instanceof Te&&(typeof v.nodeName!="string"||typeof v.textContent!="string"||typeof v.removeChild!="function"||!(v.attributes instanceof Re)||typeof v.removeAttribute!="function"||typeof v.setAttribute!="function"||typeof v.namespaceURI!="string"||typeof v.insertBefore!="function"||typeof v.hasChildNodes!="function")},Xt=function(v){return typeof ie=="function"&&v instanceof ie},Pt=function(v,ee,pe){!Qe[v]||L(Qe[v],He=>{He.call(y,ee,pe,Nt)})},Kt=function(v){let ee=null;if(Pt("beforeSanitizeElements",v,null),sr(v))return wt(v),!0;const pe=Ye(v.nodeName);if(Pt("uponSanitizeElement",v,{tagName:pe,allowedTags:o}),v.hasChildNodes()&&!Xt(v.firstElementChild)&&z(/<[/\w]/g,v.innerHTML)&&z(/<[/\w]/g,v.textContent)||v.nodeType===7)return wt(v),!0;if(!o[pe]||Ce[pe]){if(!Ce[pe]&&Qt(pe)&&(F.tagNameCheck instanceof RegExp&&z(F.tagNameCheck,pe)||F.tagNameCheck instanceof Function&&F.tagNameCheck(pe)))return!1;if(ye&&!ft[pe]){const He=ue(v)||v.parentNode,Je=re(v)||v.childNodes;if(Je&&He){const Ze=Je.length;for(let rt=Ze-1;rt>=0;--rt)He.insertBefore(xe(Je[rt],!0),w(v))}}return wt(v),!0}return v instanceof J&&!ar(v)||(pe==="noscript"||pe==="noembed"||pe==="noframes")&&z(/<\/no(script|embed|frames)/i,v.innerHTML)?(wt(v),!0):(Ue&&v.nodeType===3&&(ee=v.textContent,L([gt,ct,at],He=>{ee=U(ee,He," ")}),v.textContent!==ee&&(C(y.removed,{element:v.cloneNode()}),v.textContent=ee)),Pt("afterSanitizeElements",v,null),!1)},Yt=function(v,ee,pe){if(B&&(ee==="id"||ee==="name")&&(pe in D||pe in ir))return!1;if(!(Ae&&!Ee[ee]&&z(At,ee))){if(!(ge&&z(Ot,ee))){if(!d[ee]||Ee[ee]){if(!(Qt(v)&&(F.tagNameCheck instanceof RegExp&&z(F.tagNameCheck,v)||F.tagNameCheck instanceof Function&&F.tagNameCheck(v))&&(F.attributeNameCheck instanceof RegExp&&z(F.attributeNameCheck,ee)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(ee))||ee==="is"&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&z(F.tagNameCheck,pe)||F.tagNameCheck instanceof Function&&F.tagNameCheck(pe))))return!1}else if(!Ct[ee]){if(!z(i,U(pe,Pe,""))){if(!((ee==="src"||ee==="xlink:href"||ee==="href")&&v!=="script"&&K(pe,"data:")===0&&Dt[v])){if(!(Me&&!z(yt,U(pe,Pe,"")))){if(pe)return!1}}}}}}return!0},Qt=function(v){return v!=="annotation-xml"&&N(v,n)},Jt=function(v){Pt("beforeSanitizeAttributes",v,null);const{attributes:ee}=v;if(!ee)return;const pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d};let He=ee.length;for(;He--;){const Je=ee[He],{name:Ze,namespaceURI:rt,value:Tt}=Je,Mt=Ye(Ze);let nt=Ze==="value"?Tt:A(Tt);if(pe.attrName=Mt,pe.attrValue=nt,pe.keepAttr=!0,pe.forceKeepAttr=void 0,Pt("uponSanitizeAttribute",v,pe),nt=pe.attrValue,pe.forceKeepAttr||(Ft(Ze,v),!pe.keepAttr))continue;if(!ve&&z(/\/>/i,nt)){Ft(Ze,v);continue}Ue&&L([gt,ct,at],er=>{nt=U(nt,er," ")});const Zt=Ye(v.nodeName);if(!!Yt(Zt,Mt,nt)){if(ne&&(Mt==="id"||Mt==="name")&&(Ft(Ze,v),nt=de+nt),Z&&typeof fe=="object"&&typeof fe.getAttributeType=="function"&&!rt)switch(fe.getAttributeType(Zt,Mt)){case"TrustedHTML":{nt=Z.createHTML(nt);break}case"TrustedScriptURL":{nt=Z.createScriptURL(nt);break}}try{rt?v.setAttributeNS(rt,Ze,nt):v.setAttribute(Ze,nt),_(y.removed)}catch(er){}}}Pt("afterSanitizeAttributes",v,null)},lr=function be(v){let ee=null;const pe=zt(v);for(Pt("beforeSanitizeShadowDOM",v,null);ee=pe.nextNode();)Pt("uponSanitizeShadowNode",ee,null),!Kt(ee)&&(ee.content instanceof X&&be(ee.content),Jt(ee));Pt("afterSanitizeShadowDOM",v,null)};return y.sanitize=function(be){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=null,pe=null,He=null,Je=null;if(Ut=!be,Ut&&(be=""),typeof be!="string"&&!Xt(be))if(typeof be.toString=="function"){if(be=be.toString(),typeof be!="string")throw ce("dirty is not a string, aborting")}else throw ce("toString is not a function");if(!y.isSupported)return be;if(tt||$t(v),y.removed=[],typeof be=="string"&&(Ne=!1),Ne){if(be.nodeName){const Tt=Ye(be.nodeName);if(!o[Tt]||Ce[Tt])throw ce("root node is forbidden and cannot be sanitized in-place")}}else if(be instanceof ie)ee=qt(""),pe=ee.ownerDocument.importNode(be,!0),pe.nodeType===1&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?ee=pe:ee.appendChild(pe);else{if(!ut&&!Ue&&!We&&be.indexOf("<")===-1)return Z&&M?Z.createHTML(be):be;if(ee=qt(be),!ee)return ut?null:M?Fe:""}ee&&Et&&wt(ee.firstChild);const Ze=zt(Ne?be:ee);for(;He=Ze.nextNode();)Kt(He)||(He.content instanceof X&&lr(He.content),Jt(He));if(Ne)return be;if(ut){if(f)for(Je=et.call(ee.ownerDocument);ee.firstChild;)Je.appendChild(ee.firstChild);else Je=ee;return(d.shadowroot||d.shadowrootmode)&&(Je=pt.call(V,Je,!0)),Je}let rt=We?ee.outerHTML:ee.innerHTML;return We&&o["!doctype"]&&ee.ownerDocument&&ee.ownerDocument.doctype&&ee.ownerDocument.doctype.name&&z(Xe,ee.ownerDocument.doctype.name)&&(rt=" `+rt),Ue&&L([gt,ct,at],Tt=>{rt=U(rt,Tt," ")}),Z&&M?Z.createHTML(rt):rt},y.setConfig=function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$t(be),tt=!0},y.clearConfig=function(){Nt=null,tt=!1},y.isValidAttribute=function(be,v,ee){Nt||$t({});const pe=Ye(be),He=Ye(v);return Yt(pe,He,ee)},y.addHook=function(be,v){typeof v=="function"&&(Qe[be]=Qe[be]||[],C(Qe[be],v))},y.removeHook=function(be){if(Qe[be])return _(Qe[be])},y.removeHooks=function(be){Qe[be]&&(Qe[be]=[])},y.removeAllHooks=function(){Qe={}},y}var vt=dt();const mt=e.registerComponent(vt,{tmpl:t,sel:"lightning-purify-lib",apiVersion:63});function b(O,y){return mt.sanitize(O,y)}r.default=b,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/purifyLib",["exports","lightning/purifyLib/v/1_23_11-alpha"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("experience/dataLayerObject/v/250_25_0",["exports","lwc/v/8_10_1","lightning/purifyLib/v/1_23_11-alpha"],function(r,e,t){"use strict";function P(C){return C&&typeof C=="object"&&"default"in C?C:{default:C}}var E=P(t);const H={hidden:""},j={lwc:{dom:"manual"}};function I(C,T,k,N){const{shc:U,h:K}=C;return[K("div",{attrs:H,props:{innerHTML:N._rawHtml$0!==(N._rawHtml$0=T.scriptElement)?N._sanitizedHtml$0=U(T.scriptElement):N._sanitizedHtml$0},context:j,key:0})]}var c=e.registerTemplate(I);I.renderMode="light",I.stylesheets=[],I.stylesheetToken="lwc-64pqse1e4gn",I.legacyStylesheetToken="experience-dataLayerObject_dataLayerObject",e.freezeTemplate(I);const l=Object.freeze({ALLOWED_TAGS:[],ALLOWED_ATTR:[]});function g(C){return typeof window=="undefined"?C:E.default(C,l)}class L extends e.LightningElement{constructor(...T){super(...T);this._scriptDataAttributes={},this._catalogObjectId=void 0,this._catalogObjectType=void 0,this._catalogObjectAttributes=void 0,this._relatedCatalogObjects=void 0,this._customObject=void 0}set scriptDataAttributes(T){this._scriptDataAttributes=T}get scriptDataAttributes(){return this._scriptDataAttributes}set catalogObjectId(T){this._catalogObjectId=T}get catalogObjectId(){return this._catalogObjectId}set catalogObjectType(T){this._catalogObjectType=T}get catalogObjectType(){return this._catalogObjectType}set catalogObjectAttributes(T){this._catalogObjectAttributes=T}get catalogObjectAttributes(){return this._catalogObjectAttributes}set relatedCatalogObjects(T){this._relatedCatalogObjects=T}get relatedCatalogObjects(){return this._relatedCatalogObjects}set customObject(T){this._customObject=T}get customObject(){return this._customObject}get scriptElement(){return this.scriptDataAttributes?.providerType&&(this.isCustomObject()||this.isCatalogObject())?``:""}scriptElementContent(){const T=this.isCustomObject()?this.customObject:this.buildCatalogObject();return JSON.stringify(T)}isCustomObject(){return!!this.customObject}isCatalogObject(){return!!(this.catalogObjectId&&this.catalogObjectType)}buildCatalogObject(){return{id:this.catalogObjectId,type:this.catalogObjectType,attributes:this.catalogObjectAttributes,relatedCatalogObjects:this.relatedCatalogObjects}}}L.renderMode="light",e.registerDecorators(L,{publicProps:{scriptDataAttributes:{config:3},catalogObjectId:{config:3},catalogObjectType:{config:3},catalogObjectAttributes:{config:3},relatedCatalogObjects:{config:3},customObject:{config:3},scriptElement:{config:1}},fields:["_scriptDataAttributes","_catalogObjectId","_catalogObjectType","_catalogObjectAttributes","_relatedCatalogObjects","_customObject"]});const _=e.registerComponent(L,{tmpl:c,sel:"experience-data-layer-object",apiVersion:63});r.default=_,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("experience/dataLayerObject",["exports","experience/dataLayerObject/v/250_25_0"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/app/v/1",["exports","lwc/v/8_10_1","experience/dataLayerObject/v/250_25_0","webruntime/innerApp/v/1_66_890","lwr/routerContainer/v/0_15_5","@salesforce/site/Id/v/1","@salesforce/webstore/Id/v/1","@app/templateDevName/v/1","webruntime/routingService/v/1","webruntime/errors/v/1_66_890"],function(r,e,t,P,E,H,j,I,c,m){"use strict";function s(A){return A&&typeof A=="object"&&"default"in A?A:{default:A}}var l=s(t),g=s(P),L=s(E),_=s(H),C=s(j),T=s(I);function k(A,$,z,ce){const{c:S}=A;return[S("lwr-router-container",L.default,{props:{router:$.router},key:0},[S("experience-data-layer-object",l.default,{props:{scriptDataAttributes:$.siteDataForDataLayer.scriptDataAttributes,customObject:$.siteDataForDataLayer.customObject},key:1}),S("webruntime-inner-app",g.default,{props:{view:$.view,routerContainerView:$.routerContainerView,routeParams:$.routeParams},key:2})])]}var N=e.registerTemplate(k);k.renderMode="light",k.stylesheets=[],k.stylesheetToken="lwc-ag6063mqi2",k.legacyStylesheetToken="webruntime-app_app",e.freezeTemplate(k);class U extends e.LightningElement{constructor($,z){super();this.routeParams=void 0,this.themeLayout=void 0,this.isInitialized=void 0,this.router=c.router,this.view=$,this.routerContainerView=z,this.siteDataForDataLayer={scriptDataAttributes:{providerType:"site"},customObject:{siteId:_.default,templateDevName:T.default,...C.default?{webstore:{id:C.default}}:{}}}}renderedCallback(){if(this.isInitialized)return;const $=this.querySelector("lwr-router-container");c.initializeRouterContainer($),this.isInitialized=!0}errorCallback($,z){if(m.reportError({subject:"app level error",error:$,wcstack:z}),process.env.SSR)throw $}disconnectedCallback(){this.isInitialized=!1}render(){return N}}U.renderMode="light",e.registerDecorators(U,{publicProps:{routeParams:{config:0}},fields:["themeLayout","isInitialized","router"]});const K=e.registerComponent(U,{tmpl:N,sel:"webruntime-app",apiVersion:63});r.default=K,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/app",["exports","webruntime/app/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("@salesforce/loader/v/1",["exports","lwr/loaderLegacy/v/0_15_5"],function(r,e){"use strict";Object.defineProperty(r,"load",{enumerable:!0,get:function(){return e.load}}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@salesforce/loader",["exports","@salesforce/loader/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/assert/v/1_66_890",["exports","webruntime/utils/v/1_66_890"],function(r,e){"use strict";Object.defineProperty(r,"default",{enumerable:!0,get:function(){return e.assert}}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/assert",["exports","webruntime/assert/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("aura-instrumentation/v/1",["exports","webruntime/logger/v/1_66_890","@communities-webruntime/common/v/1_66_890","webruntime/assert/v/1_66_890"],function(r,e,t,P){"use strict";function E(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var H=E(P);function j(a,h){return`${t.WEBRUNTIME_PREFIX}-${[a,h].filter(Boolean).join(":")}`}const{performance:I}=globalThis;function c(a){const h=JSON.stringify(a);return h&&JSON.parse(h)}function m(a,h,p){const x=j(a,h);I.mark(x,{detail:{ctx:c(p)}})}function s(a,h,p){m(a,h,p)}function l(a,h,p){m(a,h,p)}function g(a,h,p){const x=j(a,h);try{I.measure(x,{detail:{ctx:c(p)},start:x})}catch(G){e.logError(`[instrumentation] no startMark named ${x} found`,G.stack)}}function L(){return Date.now()}function _(a,h,p){}function C(a,h,p){}function T(a,h,p,x,G){}function k(a){}function N(a,h){}function U(a){return{logHits(h){},logMisses(h){},unRegister(){}}}function K(a,h,p){}function A(a){}function $(a){}function z(a){}function ce(a,h,p){}function S(a){return{increment(h){},decrement(h){},getValue(){return 0},reset(){}}}function we(a){return{setValue(h){},getValue(){return 0},reset(){}}}function oe(a){return{update(h){},getValue(){return[]},reset(){}}}function je(a){return{addDuration(){},time(){},getValue(){return[]},reset(){},get(){}}}class ae{constructor(){this._registry={eptMarked:[],navToPage:[],navFromPage:[],windowUnload:[]}}get knownEvents(){return Object.keys(this._registry)}_checkEventName(h){if(!this._registry[h])throw new Error(`eventName ${h} isn't valid`)}register(h,p,x){return H.default(h&&typeof h=="string","eventName must be a valid string"),this._checkEventName(h),H.default(p&&typeof p=="string","listenerName must be a valid string"),H.default(typeof x=="function","callback must be provided"),this._registry[h].push({name:p,func:x})}unregister(h,p){this._checkEventName(h);const x=p-1;H.default(this._registry[h][x],`No listener found for ${h} with registration ID ${p}`),delete this._registry[h][x]}notify(h,p){this._checkEventName(h),this._registry[h].forEach(x=>x.func(p))}}const Q=new ae;r.counter=S,r.disablePlugin=z,r.enablePlugin=$,r.error=K,r.gauge=we,r.interaction=T,r.mark=s,r.markEnd=g,r.markStart=l,r.notifications=Q,r.percentileHistogram=oe,r.perfEnd=C,r.perfStart=_,r.registerCacheStats=U,r.registerPeriodicLogger=N,r.registerPlugin=k,r.removePeriodicLogger=A,r.time=L,r.timer=je,r.trackScenario=ce,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura-instrumentation",["exports","aura-instrumentation/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("aura-storage/v/1",["exports"],function(r){"use strict";var e={};r.default=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura-storage",["exports","aura-storage/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/auraMethodToResourceReferenceMapping/v/1_66_890",["exports"],function(r){"use strict";const e="/services/data/v63.0",t={"CommerceCatalogController.getProductCategoryPath":{urlPath:e+"/commerce/webstores/${webstoreId}/product-category-path/product-categories/${productCategoryId}",urlPathParamNames:["productCategoryId","webstoreId"],method:"GET"},"CommerceCatalogController.getProducts":{urlPath:e+"/commerce/webstores/${webstoreId}/products",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceCatalogController.getProduct":{urlPath:e+"/commerce/webstores/${webstoreId}/products/${productId}",urlPathParamNames:["productId","webstoreId"],method:"GET"},"CommerceCatalogManagementController.compositeCommerceProductCreate":{urlPath:e+"/commerce/management/webstore/${webstoreId}/composite-products",urlPathParamNames:["webstoreId"],inputRepresentation:"compositeCommerceProductInputRepresentation",method:"POST"},"CommerceCatalogManagementController.compositeCommerceProductUpdate":{urlPath:e+"/commerce/management/webstore/${webstoreId}/composite-products/${productId}",urlPathParamNames:["productId","webstoreId"],inputRepresentation:"compositeCommerceProductInputRepresentation",method:"PUT"},"CommerceCatalogManagementController.compositeCommerceVariationCreate":{urlPath:e+"/commerce/management/webstore/${webstoreId}/composite-variations",urlPathParamNames:["webstoreId"],inputRepresentation:"compositeCommerceVariationInputRepresentation",method:"POST"},"CommerceCatalogManagementController.ProductAttributeSearch":{urlPath:e+"/commerce/management/search/product-variation-attributes",urlPathParamNames:[],method:"GET"},"CommerceCatalogSettingsController.getDisplayableAttributes":{urlPath:e+"/commerce/management/webstores/${webstoreId}/catalog/attribute-settings/displayable-fields",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceCatalogSettingsController.replaceDisplayableAttributes":{urlPath:e+"/commerce/management/webstores/${webstoreId}/catalog/attribute-settings/displayable-fields",urlPathParamNames:["webstoreId"],inputRepresentation:"displayableAttributeSettings",method:"PUT"},"HSRCommerceCatalogController.getProductCategoryPathHSR":{urlPath:e+"/commerce/webstores/${webstoreId}/versions/${versionId}/product-categories/${productCategoryId}/product-category-path",urlPathParamNames:["productCategoryId","versionId","webstoreId"],method:"GET"},"HSRCommerceCatalogController.getProductHSR":{urlPath:e+"/commerce/webstores/${webstoreId}/versions/${versionId}/products/${productId}",urlPathParamNames:["productId","versionId","webstoreId"],method:"GET"},"CommerceStorePricingController.getProductPrices":{urlPath:e+"/commerce/webstores/${webstoreId}/pricing/products",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceStorePricingController.getProductPrice":{urlPath:e+"/commerce/webstores/${webstoreId}/pricing/products/${productId}",urlPathParamNames:["productId","webstoreId"],method:"GET"},"CommunitiesController.getPagePreviewUrl":{urlPath:e+"/connect/communities/${communityId}/preview-url/pages/${pageApiName}",urlPathParamNames:["communityId","pageApiName"],method:"GET"},"CommunitiesController.getCommunity":{urlPath:e+"/connect/communities/${communityId}",urlPathParamNames:["communityId"],method:"GET"},"CommunitiesController.ingestRecord":{urlPath:e+"/connect/communities/${communityId}/microbatching",urlPathParamNames:["communityId"],inputRepresentation:"requestIngestionInput",method:"POST"},"FilesController.getFileUploadConfig":{urlPath:e+"/connect/file/upload/config",urlPathParamNames:[],method:"GET"},"FilesController.createContentDocFromContentBody":{urlPath:e+"/connect/files/users/${userId}",urlPathParamNames:["userId"],inputRepresentation:"file",method:"POST"},"MissionsController.purgeUserMissionsActivities":{urlPath:e+"/connect/communities/${communityId}/missions/activities/purge-job",urlPathParamNames:["communityId"],method:"POST"},"CommerceCartController.upsertInventoryReservation":{urlPath:e+"/commerce/webstores/${webstoreId}/carts/${activeCartOrId}/inventory-reservations",urlPathParamNames:["activeCartOrId","webstoreId"],inputRepresentation:"cartInventoryReservationInput",method:"PUT"},"CommerceSearchController.getSearchBoostBuryRules":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/boost-bury-rules",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceSearchController.createSearchBoostBuryRule":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/boost-bury-rules",urlPathParamNames:["webstoreId"],inputRepresentation:"boostBuryRuleInput",method:"POST"},"CommerceSearchController.deleteSearchBoostBuryRule":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/boost-bury-rules/${ruleId}",urlPathParamNames:["ruleId","webstoreId"],method:"DELETE"},"CommerceSearchController.getSearchBoostBuryRule":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/boost-bury-rules/${ruleId}",urlPathParamNames:["ruleId","webstoreId"],method:"GET"},"CommerceSearchController.getSearchIndexErrors":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/index/${indexId}/errors",urlPathParamNames:["indexId","webstoreId"],method:"GET"},"CommerceSearchController.getManagementSortRules":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/sort-rules",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceSearchController.putSortRules":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/sort-rules",urlPathParamNames:["webstoreId"],inputRepresentation:"sortRules",method:"PUT"},"CommerceSearchController.searchProducts":{urlPath:e+"/commerce/webstores/${webstoreId}/search/product-search",urlPathParamNames:["webstoreId"],inputRepresentation:"productSearchInput",method:"POST"},"CommerceSearchSettingsController.getCommerceSearchIndexes":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/indexes",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceSearchSettingsController.createCommerceSearchIndex":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/indexes",urlPathParamNames:["webstoreId"],method:"POST"},"CommerceSearchSettingsController.getCommerceSearchIndexLogs":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/index-logs",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceSearchSettingsController.getFacetableAttributeSettings":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/attribute-settings/facetable-fields",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceSearchSettingsController.replaceFacetableAttributeSettings":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/attribute-settings/facetable-fields",urlPathParamNames:["webstoreId"],inputRepresentation:"facetableAttributeSettings",method:"PUT"},"CommerceSearchSettingsController.getSearchableAttributes":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/attribute-settings/searchable-fields",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceSearchSettingsController.modifySearchableAttributes":{urlPath:e+"/commerce/management/webstores/${webstoreId}/search/attribute-settings/searchable-fields",urlPathParamNames:["webstoreId"],inputRepresentation:"searchableAttributeSettings",method:"PATCH"},"CommerceShippingController.getShippingProfilesForWebStore":{urlPath:e+"/commerce/webstores/${webstoreId}/shippingProfiles",urlPathParamNames:["webstoreId"],method:"GET"},"NavigationMenuController.getCommunityNavigationMenu":{urlPath:e+"/connect/communities/${communityId}/navigation-menu/navigation-menu-items",urlPathParamNames:["communityId"],method:"GET"},"MarketingIntegrationController.getForm":{urlPath:e+"/sites/${siteId}/marketing-integration/forms/${formId}",urlPathParamNames:["formId","siteId"],method:"GET"},"MarketingIntegrationController.saveForm":{urlPath:e+"/sites/${siteId}/marketing-integration/forms",urlPathParamNames:["siteId"],inputRepresentation:"formInput",method:"POST"},"MarketingIntegrationController.submitForm":{urlPath:e+"/sites/${siteId}/marketing-integration/forms/${formId}/data",urlPathParamNames:["formId","siteId"],inputRepresentation:"formSubmissionInput",method:"POST"},"SeoPropertiesController.getRecordSeoProperties":{urlPath:e+"/connect/communities/${communityId}/seo/properties/${recordId}",urlPathParamNames:["communityId","recordId"],method:"GET"},"FlowBuilderController.getRules":{urlPath:e+"/connect/interaction/builder/rules",urlPathParamNames:[],method:"GET"},"OrchestrationController.getOrchestrationInstanceCollection":{urlPath:e+"/connect/interaction/orchestration/instances",urlPathParamNames:[],method:"GET"},"FlowRuntimeConnectController.navigateFlow":{urlPath:e+"/connect/interaction/runtime/navigateFlow",urlPathParamNames:[],inputRepresentation:"request",method:"POST"},"FlowRuntimeConnectController.resumeFlow":{urlPath:e+"/connect/interaction/runtime/resumeFlow",urlPathParamNames:[],method:"POST"},"FlowRuntimeConnectController.startFlow":{urlPath:e+"/connect/interaction/runtime/startFlow",urlPathParamNames:[],method:"POST"},"DataCategoryController.getCategoryGroups":{urlPath:e+"/connect/data-category/category-group",urlPathParamNames:[],method:"GET"},"KnowledgeController.updateViewStat":{urlPath:e+"/connect/knowledge/article/view-stat",urlPathParamNames:[],method:"PATCH"},"NetworkDataCategoryController.getChildCategories":{urlPath:e+"/connect/communities/${communityId}/network-data-category/${networkDataCategoryId}/child-category",urlPathParamNames:["communityId","networkDataCategoryId"],method:"GET"},"NetworkDataCategoryController.getArticlesForCategory":{urlPath:e+"/connect/communities/${communityId}/network-data-category/${networkDataCategoryId}/knowledge-article",urlPathParamNames:["communityId","networkDataCategoryId"],method:"GET"},"NetworkDataCategoryController.updateNetworkDataCategory":{urlPath:e+"/connect/communities/${communityId}/network-data-category/${networkDataCategoryId}",urlPathParamNames:["communityId","networkDataCategoryId"],method:"PATCH"},"NetworkDataCategoryController.getNetworkDataCategories":{urlPath:e+"/connect/communities/${communityId}/data-category/network-data-category",urlPathParamNames:["communityId"],method:"GET"},"NetworkDataCategoryController.updateNetworkDataCategories":{urlPath:e+"/connect/communities/${communityId}/data-category/network-data-category",urlPathParamNames:["communityId"],inputRepresentation:"networkDataCategoryTree",method:"PUT"},"NetworkDataCategoryController.getParentNetworkDataCategoryPath":{urlPath:e+"/connect/communities/${communityId}/network-data-category/${networkDataCategoryId}/parent-path",urlPathParamNames:["communityId","networkDataCategoryId"],method:"GET"},"NetworkDataCategoryController.getServiceCatalogItems":{urlPath:e+"/connect/network-data-category/${networkDataCategoryId}/catalog-item",urlPathParamNames:["networkDataCategoryId"],method:"GET"},"NetworkDataCategoryController.getServiceCatalogItemsForCommunity":{urlPath:e+"/connect/communities/${communityId}/network-data-category/${networkDataCategoryId}/catalog-item",urlPathParamNames:["communityId","networkDataCategoryId"],method:"GET"},"ExperienceModelTypeSystemController.getBlockTypes":{urlPath:e+"/connect/experience-model/block-types",urlPathParamNames:[],method:"GET"},"ExperienceModelTypeSystemController.getBlockType":{urlPath:e+"/connect/experience-model/block-types/${fullyQualifiedName}",urlPathParamNames:["fullyQualifiedName"],method:"GET"},"ExperienceModelTypeSystemController.getContentTypes":{urlPath:e+"/connect/experience-model/content-types",urlPathParamNames:[],method:"GET"},"ExperienceModelTypeSystemController.getContentTypesByContextRecordId":{urlPath:e+"/connect/experience-model/content-types",urlPathParamNames:[],method:"GET"},"ExperienceModelTypeSystemController.getContentType":{urlPath:e+"/connect/experience-model/content-types/${fullyQualifiedName}",urlPathParamNames:["fullyQualifiedName"],method:"GET"},"ExperienceModelTypeSystemController.getPropertyTypes":{urlPath:e+"/connect/experience-model/property-types",urlPathParamNames:[],method:"GET"},"ExperienceModelTypeSystemController.getPropertyType":{urlPath:e+"/connect/experience-model/property-types/${fullyQualifiedName}",urlPathParamNames:["fullyQualifiedName"],method:"GET"},"ManagedContentController.getMCSFolderShares":{urlPath:e+"/connect/cms/folders/${folderId}/shares",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.patchMCSFolderShares":{urlPath:e+"/connect/cms/folders/${folderId}/shares",urlPathParamNames:["folderId"],inputRepresentation:"mCSFolderShareCollectionUpdateInput",method:"PATCH"},"ManagedContentController.getMCSFolderShareTargets":{urlPath:e+"/connect/cms/folders/${folderId}/share-targets",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.cancelOrchestrationInstance":{urlPath:e+"/connect/cms/contents/orchestration-instances/${mContentOrchInstanceId}",urlPathParamNames:["mContentOrchInstanceId"],method:"DELETE"},"ManagedContentController.cloneManagedContents":{urlPath:e+"/connect/cms/contents/clone",urlPathParamNames:[],inputRepresentation:"ManagedContentCloneInputParam",method:"POST"},"ManagedContentController.getCollectionItems":{urlPath:e+"/connect/cms/collections/${collectionKeyOrId}",urlPathParamNames:["collectionKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentByTopicsAndContentKeys":{urlPath:e+"/connect/communities/${communityId}/managed-content/delivery",urlPathParamNames:["communityId"],method:"GET"},"ManagedContentController.getPublishedManagedContentListByContentKey":{urlPath:e+"/connect/communities/${communityId}/managed-content/delivery/contents",urlPathParamNames:["communityId"],method:"GET"},"ManagedContentController.getDeployments":{urlPath:e+"/cms/deployments",urlPathParamNames:[],method:"GET"},"ManagedContentController.createDeployment":{urlPath:e+"/cms/deployments",urlPathParamNames:[],inputRepresentation:"DeploymentInput",method:"POST"},"ManagedContentController.cloneManagedContentDocument":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/clone",urlPathParamNames:["contentKeyOrId"],inputRepresentation:"ManagedContentCloneInputParam",method:"POST"},"ManagedContentController.createManagedContent":{urlPath:e+"/connect/cms/contents",urlPathParamNames:[],inputRepresentation:"ManagedContentInputParam",method:"POST"},"ManagedContentController.createManagedContentWithMedia":{urlPath:e+"/connect/cms/contents",urlPathParamNames:[],inputRepresentation:"ManagedContentInputParam",method:"POST"},"ManagedContentController.getManagedContent":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentForSite":{urlPath:e+"/connect/sites/${siteId}/cms/contents/${contentKeyOrId}",urlPathParamNames:["contentKeyOrId","siteId"],method:"GET"},"ManagedContentController.createManagedContentExportV2Job":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/contents/export",urlPathParamNames:["contentSpaceId"],inputRepresentation:"managedContentV2JobRequest",method:"POST"},"ManagedContentController.createManagedContentImportV2Job":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/contents/import",urlPathParamNames:["contentSpaceId"],inputRepresentation:"managedContentV2JobRequest",method:"POST"},"ManagedContentController.getCMSJobForSpace":{urlPath:e+"/cms/spaces/${contentSpaceId}/jobs/${jobId}",urlPathParamNames:["contentSpaceId","jobId"],method:"GET"},"ManagedContentController.getAllCMSJobsForSpace":{urlPath:e+"/cms/spaces/${contentSpaceId}/jobs",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.createManagedContentTranslationVariants":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/translate",urlPathParamNames:["contentKeyOrId"],inputRepresentation:"languages",method:"POST"},"ManagedContentController.getManagedContentOrchestrationDefinitions":{urlPath:e+"/connect/cms/contents/orchestration-definitions",urlPathParamNames:[],method:"GET"},"ManagedContentController.getManagedContentOrchestrationInstances":{urlPath:e+"/connect/cms/contents/orchestration-instances",urlPathParamNames:[],method:"GET"},"ManagedContentController.createManagedContentOrchestrationInstance":{urlPath:e+"/connect/cms/contents/orchestration-instances",urlPathParamNames:[],inputRepresentation:"mContentOrchInstanceInput",method:"POST"},"ManagedContentController.getManagedContentPreviews":{urlPath:e+"/cms/spaces/${contentSpaceId}/preview-endpoints",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.getManagedContentProviders":{urlPath:e+"/connect/cms/content/providers",urlPathParamNames:[],method:"GET"},"ManagedContentController.publishDiagnostic":{urlPath:e+"/connect/cms/contents/publish/diagnostic",urlPathParamNames:[],inputRepresentation:"publishDiagnosticInput",method:"POST"},"ManagedContentController.publish":{urlPath:e+"/connect/cms/contents/publish",urlPathParamNames:[],inputRepresentation:"publishInput",method:"POST"},"ManagedContentController.getManagedContentReferencedBy":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/referenced-by",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentVariantRendition":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/renditions/${renditionType}",urlPathParamNames:["contentKeyOrId","renditionType"],method:"GET"},"ManagedContentController.getManagedContentRunningOrchestrationHistoryEvents":{urlPath:e+"/connect/cms/contents/orchestration-history-events",urlPathParamNames:[],method:"GET"},"ManagedContentController.updateDeployment":{urlPath:e+"/connect/cms/schedules/${deploymentId}",urlPathParamNames:["deploymentId"],method:"PATCH"},"ManagedContentController.createSchedule":{urlPath:e+"/connect/cms/schedules",urlPathParamNames:[],inputRepresentation:"ScheduleInput",method:"POST"},"ManagedContentController.searchManagedContentForItems":{urlPath:e+"/connect/cms/items/search",urlPathParamNames:[],method:"GET"},"ManagedContentController.getManagedContentSingleItem":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/single-item-content/${contentTypeFQN}",urlPathParamNames:["contentSpaceId","contentTypeFQN"],method:"GET"},"ManagedContentController.getManagedContentSpaces":{urlPath:e+"/connect/cms/spaces",urlPathParamNames:[],method:"GET"},"ManagedContentController.postManagedContentSpaceFolder":{urlPath:e+"/connect/cms/folders",urlPathParamNames:[],inputRepresentation:"managedContentSpaceFolderInput",method:"POST"},"ManagedContentController.getManagedContentSpaceFolderItems":{urlPath:e+"/connect/cms/folders/${folderId}/items",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.getManagedContentSpaceFolderItemsV1":{urlPath:e+"/cms/folders/${folderId}/items",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.getManagedContentSpaceFolder":{urlPath:e+"/connect/cms/folders/${folderId}",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.getManagedContentSpaceOrchestratorConfig":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/orchestrator-config",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.putManagedContentSpaceOrchestratorConfig":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/orchestrator-config",urlPathParamNames:["contentSpaceId"],inputRepresentation:"mContentOrchConfigInput",method:"PUT"},"ManagedContentController.deleteManagedContentSpace":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}",urlPathParamNames:["contentSpaceId"],method:"DELETE"},"ManagedContentController.getManagedContentSpace":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.patchManagedContentSpace":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}",urlPathParamNames:["contentSpaceId"],inputRepresentation:"ManagedContentSpaceInput",method:"PATCH"},"ManagedContentController.getTaxonomyTerms":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/taxonomy-terms",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.updateTaxonomyTerms":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/taxonomy-terms",urlPathParamNames:["contentKeyOrId"],inputRepresentation:"taxonomyTerms",method:"PATCH"},"ManagedContentController.createTranslationJob":{urlPath:e+"/connect/managed-content/translation",urlPathParamNames:[],inputRepresentation:"translationRequest",method:"POST"},"ManagedContentController.createTranslationV2Job":{urlPath:e+"/connect/cms/content/spaces/${contentSpaceId}/translation",urlPathParamNames:["contentSpaceId"],inputRepresentation:"translationV2Request",method:"POST"},"ManagedContentController.getManagedContentTypesForMixin":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/content-types",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.unpublish":{urlPath:e+"/connect/cms/contents/unpublish",urlPathParamNames:[],inputRepresentation:"unpublishInput",method:"POST"},"ManagedContentController.createManagedContentVariant":{urlPath:e+"/connect/cms/contents/variants",urlPathParamNames:[],inputRepresentation:"ManagedContentVariantInputParam",method:"POST"},"ManagedContentController.getVariantReferences":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/variants/references",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.deleteManagedContentVariant":{urlPath:e+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],method:"DELETE"},"ManagedContentController.getManagedContentVariant":{urlPath:e+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],method:"GET"},"ManagedContentController.replaceManagedContentVariant":{urlPath:e+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],inputRepresentation:"ManagedContentVariantInputParam",method:"PUT"},"ManagedContentController.replaceManagedContentVariantWithMedia":{urlPath:e+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],inputRepresentation:"ManagedContentVariantInputParam",method:"PUT"},"ManagedContentController.getManagedContentVariantVersions":{urlPath:e+"/connect/cms/contents/variants/${variantId}/versions",urlPathParamNames:["variantId"],method:"GET"},"ManagedContentController.getWebUrls":{urlPath:e+"/connect/cms/contents/${contentKeyOrId}/web-urls",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.updateManagedContentWebUrl":{urlPath:e+"/connect/cms/contents/web-urls/${managedContentWebUrlId}",urlPathParamNames:["managedContentWebUrlId"],inputRepresentation:"managedContentWebUrlInput",method:"PATCH"},"ManagedContentChannelController.getManagedContentChannels":{urlPath:e+"/connect/cms/channels",urlPathParamNames:[],method:"GET"},"ManagedContentChannelController.postManagedContentChannel":{urlPath:e+"/connect/cms/channels",urlPathParamNames:[],inputRepresentation:"ManagedContentChannelInput",method:"POST"},"ManagedContentChannelController.deleteManagedContentChannel":{urlPath:e+"/connect/cms/channels/${channelId}",urlPathParamNames:["channelId"],method:"DELETE"},"ManagedContentChannelController.getManagedContentChannel":{urlPath:e+"/connect/cms/channels/${channelId}",urlPathParamNames:["channelId"],method:"GET"},"ManagedContentChannelController.patchManagedContentChannel":{urlPath:e+"/connect/cms/channels/${channelId}",urlPathParamNames:["channelId"],inputRepresentation:"ManagedContentChannelInput",method:"PATCH"},"ManagedContentDeliveryController.getCollectionItemsForChannel":{urlPath:e+"/connect/cms/delivery/channels/${channelId}/collections/${collectionKeyOrId}",urlPathParamNames:["channelId","collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionItemsForSite":{urlPath:e+"/connect/sites/${siteId}/cms/delivery/collections/${collectionKeyOrId}",urlPathParamNames:["collectionKeyOrId","siteId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadata":{urlPath:e+"/connect/cms/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadataForChannel":{urlPath:e+"/connect/cms/delivery/channels/${channelId}/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["channelId","collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadataForSite":{urlPath:e+"/connect/sites/${siteId}/cms/delivery/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["collectionKeyOrId","siteId"],method:"GET"},"ManagedContentSpaceController.getManagedContentSpaceChannels":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/channels",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentSpaceController.patchManagedContentSpaceChannels":{urlPath:e+"/connect/cms/spaces/${contentSpaceId}/channels",urlPathParamNames:["contentSpaceId"],inputRepresentation:"spaceChannels",method:"PATCH"},"ManagedContentSpaceController.deleteDummySpace":{urlPath:e+"/connect/cms/spaces/dummy/",urlPathParamNames:[],method:"DELETE"},"ManagedContentTypeController.getContentTypeSchema":{urlPath:e+"/connect/cms/content-types/${contentTypeFQN}",urlPathParamNames:["contentTypeFQN"],method:"GET"},"SitesController.searchSite":{urlPath:e+"/connect/sites/${siteId}/search",urlPathParamNames:["siteId"],method:"GET"},"ActionsController.getFlexipageFormulaOverrides":{urlPath:e+"/ui-api/actions/formula-activation/${actionFeature}",urlPathParamNames:["actionFeature"],method:"GET"},"ActionsController.getGlobalActions":{urlPath:e+"/ui-api/actions/global",urlPathParamNames:[],method:"GET"},"ActionsController.getActionLayout":{urlPath:e+"/ui-api/actions/layout/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getListViewActions":{urlPath:e+"/ui-api/actions/list-view/${listViewIds}",urlPathParamNames:["listViewIds"],method:"GET"},"ActionsController.getLookupActions":{urlPath:e+"/ui-api/actions/lookup/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getMRUListActions":{urlPath:e+"/ui-api/actions/mru-list/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getObjectCreateActions":{urlPath:e+"/ui-api/actions/object/${objectApiName}/record-create",urlPathParamNames:["objectApiName"],method:"GET"},"ActionsController.getActionOverrides":{urlPath:e+"/ui-api/actions/overrides/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ActionsController.performUpdateRecordQuickAction":{urlPath:e+"/ui-api/actions/perform-quick-action/${actionApiName}",urlPathParamNames:["actionApiName"],inputRepresentation:"performQuickActionInput",method:"PATCH"},"ActionsController.performQuickAction":{urlPath:e+"/ui-api/actions/perform-quick-action/${actionApiName}",urlPathParamNames:["actionApiName"],inputRepresentation:"performQuickActionInput",method:"POST"},"ActionsController.getQuickActionDefaults":{urlPath:e+"/ui-api/actions/record-defaults/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getQuickActionInfo":{urlPath:e+"/ui-api/actions/quick-action-info/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getRecordEditActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/record-edit",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRecordActions":{urlPath:e+"/ui-api/actions/record/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRelatedListsActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list/batch/${relatedListIds}",urlPathParamNames:["recordIds","relatedListIds"],method:"GET"},"ActionsController.postRelatedListsActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list/batch",urlPathParamNames:["recordIds"],inputRepresentation:"listRecordActionsQuery",method:"POST"},"ActionsController.getRelatedListRecordActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list-record/${relatedListRecordIds}",urlPathParamNames:["recordIds","relatedListRecordIds"],method:"GET"},"ActionsController.getRelatedListActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list/${relatedListId}",urlPathParamNames:["recordIds","relatedListId"],method:"GET"},"ActionsController.postRelatedListActions":{urlPath:e+"/ui-api/actions/record/${recordIds}/related-list/${relatedListId}",urlPathParamNames:["recordIds","relatedListId"],inputRepresentation:"listRecordActionsQuery",method:"POST"},"AppsController.getAppByID":{urlPath:e+"/ui-api/apps/${appId}",urlPathParamNames:["appId"],method:"GET"},"AppsController.getAccessibleApps":{urlPath:e+"/ui-api/apps",urlPathParamNames:[],method:"GET"},"AppsController.getNavItems":{urlPath:e+"/ui-api/nav-items",urlPathParamNames:[],method:"GET"},"ListUiController.getListsByObjectName":{urlPath:e+"/ui-api/list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ListUiController.getListInfosById":{urlPath:e+"/ui-api/list-info/batch",urlPathParamNames:[],method:"GET"},"ListUiController.getListInfosByName":{urlPath:e+"/ui-api/list-info/batch",urlPathParamNames:[],method:"GET"},"ListUiController.getListInfosByObjectName":{urlPath:e+"/ui-api/list-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ListUiController.createListInfo":{urlPath:e+"/ui-api/list-info/${objectApiName}",urlPathParamNames:["objectApiName"],inputRepresentation:"listInfoInput",method:"POST"},"ListUiController.deleteListInfo":{urlPath:e+"/ui-api/list-info/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"DELETE"},"ListUiController.getListInfoById":{urlPath:e+"/ui-api/list-info/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListInfoByName":{urlPath:e+"/ui-api/list-info/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.updateListInfoByApiName":{urlPath:e+"/ui-api/list-info/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],inputRepresentation:"listInfoInput",method:"PATCH"},"ListUiController.getListObjectInfo":{urlPath:e+"/ui-api/list-object-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ListUiController.getListPreferences":{urlPath:e+"/ui-api/list-preferences/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.updateListPreferences":{urlPath:e+"/ui-api/list-preferences/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],inputRepresentation:"listPreferencesInput",method:"PATCH"},"ListUiController.getListRecordsById":{urlPath:e+"/ui-api/list-records/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListRecordsByName":{urlPath:e+"/ui-api/list-records/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.postListRecordsByName":{urlPath:e+"/ui-api/list-records/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],inputRepresentation:"listRecordsQuery",method:"POST"},"ListUiController.getListUiById":{urlPath:e+"/ui-api/list-ui/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListUiByName":{urlPath:e+"/ui-api/list-ui/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"MruListUiController.getMruListInfo":{urlPath:e+"/ui-api/mru-list-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListRecords":{urlPath:e+"/ui-api/mru-list-records/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListUi":{urlPath:e+"/ui-api/mru-list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getAggregateUi":{urlPath:e+"/ui-api/aggregate-ui",urlPathParamNames:[],method:"GET"},"RecordUiController.executeAggregateUi":{urlPath:e+"/ui-api/aggregate-ui",urlPathParamNames:[],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordsWithFields":{urlPath:e+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordsWithLayouts":{urlPath:e+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.executeBatchRecordOperations":{urlPath:e+"/ui-api/records/batch",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.getDedupeConfig":{urlPath:e+"/ui-api/duplicates/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getDuplicateConfig":{urlPath:e+"/ui-api/duplicates/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getFormByName":{urlPath:e+"/ui-api/forms/${apiName}",urlPathParamNames:["apiName"],method:"GET"},"RecordUiController.executeBatchGraphQL":{urlPath:e+"/graphql/batch",urlPathParamNames:[],inputRepresentation:"batchQueryInput",method:"POST"},"RecordUiController.executeGraphQL":{urlPath:e+"/graphql",urlPathParamNames:[],inputRepresentation:"queryInput",method:"POST"},"RecordUiController.getLayout":{urlPath:e+"/ui-api/layout/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getLayoutUserState":{urlPath:e+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.updateLayoutUserState":{urlPath:e+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],inputRepresentation:"userState",method:"PATCH"},"RecordUiController.getObjectInfos":{urlPath:e+"/ui-api/object-info/batch/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"RecordUiController.getObjectInfo":{urlPath:e+"/ui-api/object-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getPathLayout":{urlPath:e+"/ui-api/path/layout/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getPicklistValuesByRecordType":{urlPath:e+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}",urlPathParamNames:["objectApiName","recordTypeId"],method:"GET"},"RecordUiController.getPicklistValues":{urlPath:e+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName","recordTypeId"],method:"GET"},"RecordUiController.findDuplicates":{urlPath:e+"/ui-api/predupe",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.postRecordAvatarAssociation":{urlPath:e+"/ui-api/record-avatars/${recordId}/association",urlPathParamNames:["recordId"],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordAvatars":{urlPath:e+"/ui-api/record-avatars/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordCloneDefaults":{urlPath:e+"/ui-api/record-defaults/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordCreateDefaults":{urlPath:e+"/ui-api/record-defaults/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.createRecord":{urlPath:e+"/ui-api/records",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.deleteRecord":{urlPath:e+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"DELETE"},"RecordUiController.getRecordWithFields":{urlPath:e+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordWithLayouts":{urlPath:e+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.updateRecord":{urlPath:e+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],inputRepresentation:"recordInput",method:"PATCH"},"RecordUiController.getRecordDefaultsTemplateClone":{urlPath:e+"/ui-api/record-defaults/template/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordDefaultsTemplateForCreate":{urlPath:e+"/ui-api/record-defaults/template/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getRecordUis":{urlPath:e+"/ui-api/record-ui/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getValidationRulesInfo":{urlPath:e+"/ui-api/object-info/${objectApiName}/validation-rules-info",urlPathParamNames:["objectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfoBatch":{urlPath:e+"/ui-api/related-list-info/batch/${parentObjectApiName}/${relatedListNames}",urlPathParamNames:["parentObjectApiName","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListInfoCollection":{urlPath:e+"/ui-api/related-list-info/${parentObjectApiName}",urlPathParamNames:["parentObjectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfo":{urlPath:e+"/ui-api/related-list-info/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.getRelatedListInfoByApiName":{urlPath:e+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],method:"GET"},"RelatedListUiController.updateRelatedListInfoByApiName":{urlPath:e+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],inputRepresentation:"relatedListInfoInput",method:"PATCH"},"RelatedListUiController.getRelatedListPreferencesBatch":{urlPath:e+"/ui-api/related-list-preferences/batch/${preferencesIds}",urlPathParamNames:["preferencesIds"],method:"GET"},"RelatedListUiController.getRelatedListPreferences":{urlPath:e+"/ui-api/related-list-preferences/${preferencesId}",urlPathParamNames:["preferencesId"],method:"GET"},"RelatedListUiController.updateRelatedListPreferences":{urlPath:e+"/ui-api/related-list-preferences/${preferencesId}",urlPathParamNames:["preferencesId"],inputRepresentation:"relatedListUserPreferencesInput",method:"PATCH"},"RelatedListUiController.getRelatedListsRecordCount":{urlPath:e+"/ui-api/related-list-count/batch/${parentRecordId}/${relatedListNames}",urlPathParamNames:["parentRecordId","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListRecordCount":{urlPath:e+"/ui-api/related-list-count/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.getRelatedListRecordsBatch":{urlPath:e+"/ui-api/related-list-records/batch/${parentRecordId}/${relatedListIds}",urlPathParamNames:["parentRecordId","relatedListIds"],method:"GET"},"RelatedListUiController.postRelatedListRecordsBatch":{urlPath:e+"/ui-api/related-list-records/batch/${parentRecordId}",urlPathParamNames:["parentRecordId"],inputRepresentation:"listRecordsQuery",method:"POST"},"RelatedListUiController.getRelatedListRecords":{urlPath:e+"/ui-api/related-list-records/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.postRelatedListRecords":{urlPath:e+"/ui-api/related-list-records/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],inputRepresentation:"listRecordsQuery",method:"POST"},"SearchUiController.searchResultsKeyword":{urlPath:e+"/ui-api/search/results/keyword",urlPathParamNames:[],inputRepresentation:"options",method:"POST"},"SearchUiController.getSearchFilterMetadata":{urlPath:e+"/ui-api/search-info/${objectApiName}/filters",urlPathParamNames:["objectApiName"],method:"GET"},"SearchUiController.getFilterOptions":{urlPath:e+"/ui-api/search-info/${objectApiName}/filters/${filterApiName}/options",urlPathParamNames:["filterApiName","objectApiName"],method:"GET"},"SearchUiController.searchResults":{urlPath:e+"/ui-api/search/results",urlPathParamNames:[],inputRepresentation:"options",method:"POST"},"LookupController.getLookupMetadata":{urlPath:e+"/ui-api/search-info/${objectApiName}/lookup/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName"],method:"GET"},"LookupController.getLookupRecords":{urlPath:e+"/ui-api/lookups/${objectApiName}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName"],method:"GET"},"LookupController.lookup":{urlPath:e+"/ui-api/lookups/${objectApiName}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName"],inputRepresentation:"body",method:"POST"},"ServicePlanController.executeServicePlan":{urlPath:e+"/service-plan/execute/${generatedPlanId}",urlPathParamNames:["generatedPlanId"],inputRepresentation:"servicePlanInputRepresentation",method:"PUT"},"ServicePlanController.generateSync":{urlPath:e+"/service-plan/generateSync/${recordId}",urlPathParamNames:["recordId"],inputRepresentation:"ServicePlanPostInput",method:"POST"},"TableauEmbeddingController.postJWT":{urlPath:e+"/tableau/jwt",urlPathParamNames:[],method:"POST",inputRepresentation:"tableauJwtArgs"},"TableauEmbeddingController.getJWT":{urlPath:e+"/tableau/jwt",urlPathParamNames:[],method:"GET"},"TableauEmbeddingController.getEAS":{urlPath:e+"/tableau/eas",urlPathParamNames:[],method:"GET"},"MilestonesController.getBusinessHours":{urlPath:e+"/connect/milestones/business-hours",urlPathParamNames:[],method:"GET"},"MilestonesController.markMilestoneCompleted":{urlPath:e+"/connect/milestones/business-hours/milestone-completed",urlPathParamNames:[],method:"PUT"},"MilestonesController.getMilestonesDataManager":{urlPath:e+"/connect/milestones/milestones-data-manager/${recordId}",urlPathParamNames:["recordId"],method:"GET"}};function P(E){return t[E]}r.getResourceReferenceFromAuraMethod=P,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/auraMethodToResourceReferenceMapping",["exports","webruntime/auraMethodToResourceReferenceMapping/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/apiCall/v/1_66_890",["exports","webruntime/auraMethodToResourceReferenceMapping/v/1_66_890","webruntime/transport/v/1","webruntime/errors/v/1_66_890","@app/apexApiBasePath/v/1","webruntime/overrides/v/1","@communities-webruntime/common/v/1_66_890"],function(r,e,t,P,E,H,j){"use strict";function I(k){return k&&typeof k=="object"&&"default"in k?k:{default:k}}var c=I(E);async function m(k,N){const[U,K]=k.split(".");if(U==="ApexActionController")return l(K,N);const A=e.getResourceReferenceFromAuraMethod(k);if(A)return s(A,N);throw new Error(`Unsupported controller action: ${U}.${K}`)}async function s({urlPath:k,urlPathParamNames:N,method:U,inputRepresentation:K},A){const $=A&&{...A}||{};let z=N.reduce((oe,je)=>{const ae=$[je];return delete $[je],oe.replace(`\${${je}}`,encodeURIComponent(ae))},k),ce;(U==="POST"||U==="PATCH"||U==="PUT")&&$[K]&&(ce=JSON.stringify($[K]),delete $[K]),Object.keys($).length&&(z+=`?${Object.entries($).filter(([,oe])=>oe!=null&&(!Array.isArray(oe)||oe.length)).map(([oe,je])=>`${encodeURIComponent(oe)}=${encodeURIComponent(je)}`).join("&")}`);const S=await t.fetch(z,{method:U,body:ce});let we;if(S.status===401&&_(),S.status!==204&&(we=await S.json()),we instanceof Array&&(we=we[0]),!S.ok){const oe={status:S.status,data:{...we,statusCode:S.status}};throw T([oe])}return C(we)}async function l(k,N){if(k==="execute"){const{url:U,httpRequestOptions:K}=g(k,N);return t.fetch(U,K).then(A=>(A.status===401&&_(),A.status!==204?A.json():void 0)).then(A=>{if(A&&A.error&&A.error.length>0)throw T(A.error);return C(A)})}throw new Error(`Unsupported Apex action: ${k}`)}function g(k,N){if((!N||typeof N!="object"||Object.keys(N).length===0)&&P.reportError({subject:"Apex API action error - invalid params",type:j.CLIENT_ERROR_TYPES.APEX_ACTION_ERROR,error:new Error(`Apex ${k} action called with invalid params: '${JSON.stringify(N)}'.`)}),N&&N.cacheable===!0){const U=`/apex/${k}?${L(N)}`;if(U.length<=j.MAX_URL_LENGTH)return{url:U,httpRequestOptions:{method:"GET",basePath:c.default}}}return{url:`/apex/${k}`,httpRequestOptions:{method:"POST",body:JSON.stringify(N),basePath:c.default}}}function L(k){const N={...k},U=N.params;if(U&&typeof U=="object"){const K=Object.keys(U).sort().reduce((A,$)=>(A[$]=U[$],A),{});N.params=JSON.stringify(K)}return Object.keys(N).filter(K=>N[K]!==void 0&&N[K]!=null).sort().map(K=>`${K}=${encodeURIComponent(N[K])}`).join("&")}function _(){H.SessionTimeoutOverrides.runSync()}function C(k){return{getReturnValue:()=>k}}function T(k){return{getError:()=>k}}r.apiCallRawResponse=m,r.formatApexRequest=g,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/apiCall",["exports","webruntime/apiCall/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("aura/v/1",["exports","webruntime/apiCall/v/1_66_890","webruntime/logger/v/1_66_890"],function(r,e,t){"use strict";function P(c){if(c&&c.__esModule)return c;var m=Object.create(null);return c&&Object.keys(c).forEach(function(s){if(s!=="default"){var l=Object.getOwnPropertyDescriptor(c,s);Object.defineProperty(m,s,l.get?l:{enumerable:!0,get:function(){return c[s]}})}}),m.default=c,Object.freeze(m)}var E=P(t);const H=null,j=null,I=null;Object.defineProperty(r,"executeGlobalControllerRawResponse",{enumerable:!0,get:function(){return e.apiCallRawResponse}}),r.logger=E,r.createComponent=H,r.getDefinition=I,r.renderComponent=j,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("aura",["exports","aura/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("instrumentation/service/v/1",["exports","aura-instrumentation/v/1"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("instrumentation/service",["exports","instrumentation/service/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("instrumentation/utility/v/1",["exports","aura-instrumentation/v/1"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("instrumentation/utility",["exports","instrumentation/utility/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/configProvider/v/1",["exports","@app/basePath/v/1","lwc/v/8_10_1"],function(r,e,t){"use strict";function P(w){return w&&typeof w=="object"&&"default"in w?w:{default:w}}var E=P(e);const H=/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z){1})?)?)?$/i,j=/^\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i,I="HH:mm:ss.SSS",c="YYYY-MM-DD",m="T",s=/(Z|([+-])(\d{2}):(\d{2}))$/;function l(w){return _(w)&&T(w)}function g(w){if(!C(w))return!1;const re=L(w);return T(`2018-09-09T${re}Z`)}function L(w){return typeof w=="string"?w.split(s)[0]:w}function _(w){return typeof w!="string"?!1:H.test(w)}function C(w){return typeof w!="string"?!1:j.test(w)}function T(w){const re=Date.parse(w);return isFinite(re)}var k=void 0;const N="in a few seconds",U="a few seconds ago",K="in {0} {1}",A="{0} {1} ago",$="s",z={SECONDS:{name:"second",threshold:45},MINUTES:{name:"minute",threshold:45},HOURS:{name:"hour",threshold:22},DAYS:{name:"day",threshold:26},MONTHS:{name:"month",threshold:11},YEARS:{name:"year"}},ce=1e3,S=6e4,we=36e5,oe=864e5;class je{constructor(re){if(this.milliseconds=0,typeof re!="number"){this.isValid=!1,console.warn(`The value of milliseconds passed into Duration must be of type number, but we are getting the ${typeof re} value "${re}" instead. `);return}this.isValid=!0,this.milliseconds=re}humanize(re){if(!this.isValid)return"";const ue=a(this);return ue===z.SECONDS?this.milliseconds>0?N:U:h(re,this.asIn(ue),ue.name)}asIn(re){switch(re){case z.SECONDS:return Math.round(this.milliseconds/ce);case z.MINUTES:return Math.round(this.milliseconds/S);case z.HOURS:return Math.round(this.milliseconds/we);case z.DAYS:return Math.round(this.milliseconds/oe);case z.MONTHS:return Math.round(Q(this.milliseconds/oe));case z.YEARS:default:return Math.round(Q(this.milliseconds/oe)/12)}}}const ae=t.registerComponent(je,{tmpl:k,sel:"lightning-config-provider",apiVersion:63});function Q(w){const re=4800/146097;return w*re}function a(w){const re=Object.keys(z).find(ue=>{const Z=z[ue];return Z===z.YEARS||Math.abs(w.asIn(Z))0?K:A;return x(Fe,ue,Z)}function x(w,...re){return w.replace(/{(\d+)}/g,(ue,Z)=>re[Z])}const G=["January","February","March","April","May","June","July","August","September","October","November","December"],se={short:"M/d/yyyy",medium:"MMM d, yyyy",long:"MMMM d, yyyy"},_e={short:"h:mm a",medium:"h:mm:ss a",long:"h:mm:ss a"},Le={short:"h:m a",medium:"h:m:s a",long:"h:m:s a"};function Ie(w,re){let ue=!1,Z=w;return typeof w=="string"&&(Z=w.split(m)[0],ue=!0),O(Z,re,ue)}function Se(w,re){return O(w,re,!0)}function Y(w,re){if(!D(w))return new Date("");const ue=(w.getHours()+11)%12+1,Z=w.getHours()>=12?"PM":"AM";switch(re){case I:return`${ie(w.getHours())}:${ie(w.getMinutes())}:${ie(w.getSeconds())}.${J(w.getMilliseconds())}`;case _e.short:return`${ue}:${ie(w.getMinutes())} ${Z}`;case _e.medium:case _e.long:default:return`${ue}:${ie(w.getMinutes())}:${ie(w.getSeconds())} ${Z}`}}function he(w){if(!D(w))return new Date("");const re=new Date(w.getTime());return`${Se(re)}, ${Y(q(re))}`}function W(w){let re=null,ue=!0;if(g(w)?re=`2014-03-20T${V(w)}`:l(w)&&(w.indexOf(m)>0?(re=V(w),ue=!1):re=`${w}T00:00:00.000Z`),re){const Z=new Date(re);return ue&&q(Z),Z}return null}function me(w,re){return re===c&&l(w)?W(w):Object.values(se).includes(re)?b(w,re):Object.values(Le).includes(re)?mt(w):null}function Oe(w){return W(V(w))}function Ge(w,re,ue){const Z=te(w),Fe=te(re);return!Z||!Fe?!1:y(Z,ue).getTime()y(Fe,ue).getTime()}function $e(w,re,ue){const Z=new Date(w.getTime());ue(X(Z))}function qe(w,re,ue){const Z=new Date(w.getTime());ue(q(Z))}function Xe(w){return w}function Ke(w){return w}function it(w){return w}function bt(w){return w}function ht(){return{format:w=>(console.warn(`The current environment does not support large numbers and the original value of ${w} will be returned.`),w)}}function dt(w){return new ae(w*60*1e3)}function vt(w){return w.humanize("en")}function mt(w){const re=w.trim().split(/[:.\s*]/),ue=re.length;if(!re||ue<2||ue>5)return null;const Z=re[ue-1],Fe=Z.toLowerCase()==="am",ot=Z.toLowerCase()==="pm";re.splice(-1,1);const st=re.every(at=>!isNaN(at));if(!ot&&!Fe||!st)return null;const et=re[0],lt=ie(ot?et%12+12:et%12),pt=ue>=3&&re[1]||"0",Qe=ue>=4&&re[2]||"0",gt=ue===5&&re[3]||"0",ct=new Date("2014-03-20");return ct.setHours(lt,pt,Qe,gt),D(ct)?ct:null}function b(w,re){let ue=/^([a-zA-Z]{3})\s*(\d{1,2}),\s*(\d{4})$/;switch(re){case se.short:ue=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;break;case se.long:ue=/^([a-zA-Z]+)\s*(\d{1,2}),\s*(\d{4})$/;break}const Z=ue.exec(w.trim());if(!Z)return null;let Fe=Z[1];const ot=Z[2],st=Z[3];re!==se.short&&(Fe=G.findIndex(pt=>pt.toLowerCase().includes(Fe.toLowerCase())),Fe+=1);const et=`${st}-${ie(Fe)}-${ie(ot)}`,lt=new Date(`${et}T00:00:00.000Z`);return D(lt)?q(lt):null}function O(w,re,ue){const Z=te(w);if(!Z)return new Date("");switch(ue&&D(w)&&q(Z),re){case c:return`${Z.getFullYear()}-${ie(Z.getMonth()+1)}-${ie(Z.getDate())}`;case se.short:return`${Z.getMonth()+1}/${Z.getDate()}/${Z.getFullYear()}`;case se.long:return`${G[Z.getMonth()]} ${Z.getDate()}, ${Z.getFullYear()}`;case se.medium:default:return`${G[Z.getMonth()].substring(0,3)} ${Z.getDate()}, ${Z.getFullYear()}`}}function y(w,re){switch(re){case"day":w.setHours(0),w.setMinutes(0);case"minute":w.setSeconds(0),w.setMilliseconds(0);break}return w}function D(w){return Object.prototype.toString.call(w)==="[object Date]"&&!isNaN(w.getTime())}function V(w){return`${L(w)}Z`}function q(w){return w.setMinutes(w.getMinutes()+w.getTimezoneOffset()),w}function X(w){return w.setMinutes(w.getMinutes()-w.getTimezoneOffset()),w}function te(w){return w?D(w)?new Date(w.getTime()):isFinite(w)&&(typeof w=="number"||typeof w=="string")?new Date(parseInt(w,10)):typeof w=="string"?W(w):null:null}function ie(w){return Number(w)<10?`0${w}`:w}function J(w){return Number(w)<10?`00${w}`:Number(w)<100?`0${w}`:w}var le={formatDate:Ie,formatDateUTC:Se,formatTime:Y,formatDateTimeUTC:he,parseDateTimeISO8601:W,parseDateTime:me,parseDateTimeUTC:Oe,isBefore:Ge,isAfter:Be,UTCToWallTime:$e,WallTimeToUTC:qe,translateToOtherCalendar:Xe,translateFromOtherCalendar:Ke,translateToLocalizedDigits:it,translateFromLocalizedDigits:bt,getNumberFormat:ht,duration:dt,displayDuration:vt};function Re(){return le}function Te(){return E.default}function De(){return null}function fe(){return null}function ke(){return{densitySetting:""}}var xe={getOneConfig:ke,getIconSvgTemplates:fe,getToken:De,getPathPrefix:Te,getLocalizationService:Re};r.default=xe,r.getIconSvgTemplates=fe,r.getLocalizationService=Re,r.getOneConfig=ke,r.getPathPrefix=Te,r.getToken=De,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/configProvider",["exports","lightning/configProvider/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/navigation/v/1",["exports","lwr/navigationContext/v/0_15_5","lwr/currentPageReference/v/0_15_5","lwr/currentView/v/0_15_5","lwr/contextUtils/v/0_15_5","lwr/routerErrors/v/0_15_5","lwr/navigationMixinHacks/v/0_15_5"],function(r,e,t,P,E,H,j){"use strict";function I(C,T,k,N){E.getNavigationHelm(C).navigate(T,k,N)}function c(C,T,k){return E.getNavigationHelm(C).generateUrl(T,k)}const m=typeof window=="undefined",s=Symbol("Navigate"),l=Symbol("GenerateUrl"),g=Symbol("NavContext"),L=Symbol("NavContext");function _(C){H.invariant(typeof C.prototype.dispatchEvent=="function",H.messages.INVALID_MIXIN_CMP,[C.toString()]);class T extends C{[L](){if(!this[g]&&(this.dispatchEvent(new CustomEvent(j.CONTEXT_ID_BACKDOOR,{bubbles:!0,composed:!0,detail:{callback:N=>{this[g]=N}}})),!this[g]))throw new Error(H.generateMessage(H.messages.MISSING_CONTEXT))}[s](N,U,K){m||(this[L](),I(this[g],N,U,K))}async[l](N,U){return m?null:(this[L](),c(this[g],N,U))}}return T}_.Navigate=s,_.GenerateUrl=l,_.NavContext=g,Object.defineProperty(r,"NavigationContext",{enumerable:!0,get:function(){return e.NavigationContext}}),Object.defineProperty(r,"CurrentPageReference",{enumerable:!0,get:function(){return t.CurrentPageReference}}),Object.defineProperty(r,"CurrentView",{enumerable:!0,get:function(){return P.CurrentView}}),Object.defineProperty(r,"ContextInfo",{enumerable:!0,get:function(){return E.ContextInfo}}),Object.defineProperty(r,"generateContextualWireAdapter",{enumerable:!0,get:function(){return E.generateContextualWireAdapter}}),Object.defineProperty(r,"getNavigationHelm",{enumerable:!0,get:function(){return E.getNavigationHelm}}),Object.defineProperty(r,"registerNavigationHelm",{enumerable:!0,get:function(){return E.registerNavigationHelm}}),r.NavigationMixin=_,r.generateUrl=c,r.navigate=I,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/navigation",["exports","lightning/navigation/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/f6Controller/v/1_66_890",["exports"],function(r){"use strict";const e=300,{document:t}=globalThis,P={navKey:"F6",f6RegionAttribute:"data-f6-region",f6RegionHighlightClass:"f6-highlight"},E=m=>m&&(m.shadowRoot?m.shadowRoot.activeElement?E(m.shadowRoot.activeElement):m:m.activeElement?E(m.activeElement):m);class H{constructor(s={}){this.regions=[],this.config=P,this.handleClick=()=>{this.clearRegionHighlights()},this.handleKeyDown=l=>{this.clearRegionHighlights();const{key:g,ctrlKey:L,metaKey:_}=l;g===this.config.navKey&&(L||_)&&(this.populateRegions(),this.handleNavigation(l))},this.elementFilter=l=>l.parentElement&&l.parentElement.matches(`*[${this.config.f6RegionAttribute}]`)?NodeFilter.FILTER_REJECT:l.matches(`*[${this.config.f6RegionAttribute}]`)&&this.isVisible(l)&&!this.isEmpty(l)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,this._debounceKeyDownHandler=this.debounce(this.handleKeyDown.bind(this),e),this.initialize(s)}debounce(s,l,g){const L=g||{};let _=L.leading,C;return function(){const k=Array.prototype.slice.apply(arguments);_&&(s.apply(this,k),_=!1),clearTimeout(C),C=setTimeout(function(){s.apply(this,k),_=L.leading},l)}}appendStyleElement(){this._styleElement=t.createElement("style");const s=`[${this.config.f6RegionAttribute}].${this.config.f6RegionHighlightClass}`;this._styleElement.innerText=`${s} { position: relative; } ${s}::after { width: 100%; height: 100%; content: ''; outline: rgb(94, 158, 214) 3px solid; outline-offset: -3px; position: absolute; top: 0; left: 0; z-index: 9999; }`,this._styleElement.setAttribute("type","text/css"),t.head.appendChild(this._styleElement)}clearRegionHighlights(){!this.regions||!this.regions.length||this.regions.forEach(s=>{s.classList.remove(this.config.f6RegionHighlightClass)})}addRegionHighlight(s){s.classList.add(this.config.f6RegionHighlightClass)}focusIn(s){const l=s.querySelector('a[href],button:not([disabled]),input:not([type="hidden"]):not([disabled]),select:not([type="hidden"]):not([disabled]),textarea:not([type="hidden"]):not([disabled])');l?l.focus():(s.tabIndex="-1",s.focus())}handleNavigation(s){if(s.preventDefault(),!this.regions.length)return;const l=s.shiftKey,g=this.getElementRegionIndex(E(s.target)),L=this.getNextRegionIndex(g,l);if(L===-1)return;const _=this.regions[L];this.focusIn(_),this.addRegionHighlight(_)}shadowContains(s,l){return s===l||s.contains(l)||s.shadowRoot&&this.isElementInContainerElements(s.shadowRoot.children,l)||s.tagName==="SLOT"&&this.isElementInContainerElements(s.assignedElements(),l)?!0:this.isElementInContainerElements(s.children,l)}isElementInContainerElements(s,l){if(!s||!s.length)return!1;const g=s.length;for(let L=0;Lthis.shadowContains(l,s))}getNextRegionIndex(s,l){const g=this.regions.length-1;return g<0?-1:l?s<=0?g:s-1:s===g?0:s+1}isVisible(s){if(s===t.body||!(s instanceof Element))return!0;try{const l=window.getComputedStyle(s)||s.style;if(!l)return!1;const{display:g,visibility:L}=l;return g&&g.toLowerCase()==="none"||L&&L.toLowerCase()==="hidden"?!1:this.isVisible(s.parentNode)}catch(l){return!1}}isEmpty(s){if(s.tagName==="SLOT"&&!this.isEmptyChildren(s.assignedElements()))return!1;let l=s.children;return(!l||!l.length)&&s.shadowRoot&&(l=s.shadowRoot.children),this.isEmptyChildren(l)}isEmptyChildren(s){if(!s||!s.length)return!0;const l=s.length;for(let g=0;g(j||(j=new H(m)),j),c=()=>{if(j){const m=j.getConfig();if(m)return m.f6RegionAttribute}};r.DEFAULT_CONFIG=P,r.F6Controller=H,r.createF6Controller=I,r.getActiveElem=E,r.getCurrentRegionAttributeName=c,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/f6Controller",["exports","webruntime/f6Controller/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lightning/f6Controller/v/1",["exports","webruntime/f6Controller/v/1_66_890"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lightning/f6Controller",["exports","lightning/f6Controller/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/environment/v/1",["exports"],function(r){"use strict";const e=globalThis?.LWR?.env||{},t=e&&(e.SSR==="true"||e.SSR===!0),P=e&&e.basePath,E=e&&e.locale,H=e&&e.assetBasePath,j=e&&e.uiBasePath;r.assetBasePath=H,r.basePath=P,r.isServer=t,r.locale=E,r.uiBasePath=j,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/environment",["exports","lwr/environment/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("transport/v/1",["exports","webruntime/transport/v/1"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("transport",["exports","transport/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/cookieStore/v/1_66_890",["exports","@app/authenticationCookieName/v/1"],function(r,e){"use strict";function t(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var P=t(e);let E;function H(l){l&&typeof l=="object"&&(E=l)}function j(l){E=s(l)}function I(){return!!m(P.default)}function c(){return E}function m(l){return l?(typeof document!="undefined"&&j(document?.cookie),E&&E[l]):null}function s(l){return l&&typeof l=="string"?l.split(";").reduce((L,_)=>{const[C,T]=_.trim().split("=").map(decodeURIComponent);return L[C]=T,L},{}):null}r.getAllCookies=c,r.getCookie=m,r.hasSidCookie=I,r.setCookiesFromObject=H,r.setCookiesFromString=j,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/cookieStore",["exports","webruntime/cookieStore/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/transport/v/1",["exports","lwr/loaderLegacy/v/0_15_5","@app/basePath/v/1","@app/apiBasePath/v/1","@salesforce/i18n/lang/v/1","webruntime/utils/v/1_66_890","@communities-webruntime/common/v/1_66_890","webruntime/cookieStore/v/1_66_890","@app/isDesignMode/v/1","@app/isPreviewMode/v/1","lwc/v/8_10_1"],function(r,e,t,P,E,H,j,I,c,m,s){"use strict";function l(W){return W&&typeof W=="object"&&"default"in W?W:{default:W}}var g=l(t),L=l(P),_=l(E),C=l(c),T=l(m),k=void 0;class N{constructor(me){const[Oe,Ge]=me.split("?");this.path=Oe,this.searchParams=new URLSearchParams(Ge)}setParamDefaultValue(me,Oe){return this.searchParams.has(me)||this.searchParams.append(me,Oe),this}build(){const me=this.searchParams.toString();return this.path+(me?`?${me}`:"")}}const U=s.registerComponent(N,{tmpl:k,sel:"webruntime-transport",apiVersion:63}),K=["POST","PATCH","PUT","DELETE"],A="X-SFDC-Request-Id",$="X-Salesforce-Too-Many-Requests",z="X-CSP",ce="asGuest",S="language",we="htmlEncode",{location:oe,navigator:je}=globalThis,ae=new Set;function Q(W){typeof W=="function"&&ae.add(W)}function a(W){ae.delete(W)}async function h(W,me={}){H.assert(typeof W=="string","Valid path not provided for fetch request");const Oe={...me,headers:{...me.headers},credentials:me.credentials||"same-origin"};me.credentials===null&&delete Oe.credentials;const Ge=Oe.isNonApiRequest===!0,Be=Oe.asGuest===!0||he(),$e=Oe.basePath!==void 0?Oe.basePath:L.default,qe=new U(oe?new URL($e+W,oe).toString():$e+W);Ge||qe.setParamDefaultValue(S,_.default).setParamDefaultValue(ce,Be).setParamDefaultValue(we,!1);const Xe=Oe.headers["Content-Type"];Xe===null?delete Oe.headers["Content-Type"]:Xe?Oe.headers["Content-Type"]=Xe:me.body&&(Oe.headers["Content-Type"]="application/json; charset=utf-8"),Oe.headers[A]=Ie(),await _e(Oe);const Ke=await globalThis.fetch(qe.build(),Oe);return ae.forEach(it=>it(Ke)),G(Ke)&&p(),Ke}function p(){typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("client-error",{detail:{type:j.CLIENT_ERROR_TYPES.TOO_MANY_REQUESTS}}))}function x(W){return!!(W.headers.get($)||(W.headers.get(z)||"").toLowerCase()==="rejected")}function G(W){return!!((W.status===503||W.status===429)&&x(W))}function se(W){return W.status===503&&!x(W)}async function _e(W){if(!K.includes(W.method))return;const{csrfToken:me}=await Y();me&&(W.headers["CSRF-Token"]=me)}async function Le({path:W,payload:me,contentType:Oe}){const Ge=g.default+W;je&&je.sendBeacon&&je.sendBeacon(Ge,me)||await globalThis.fetch(W,{headers:{"Content-Type":Oe},basePath:g.default,body:me,method:"POST",isNonApiRequest:!0})}function Ie(){return(Date.now()+Se()+Math.round(Math.random()*1e8)).substring(0,18)}function Se(){function W(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return W()+W()}async function Y(){if(typeof window=="undefined")return{isGuest:!0,id:null,csrfToken:null};const{default:W}=await e.load("@app/user/v/1");return W}function he(){return C.default||T.default?!1:!I.hasSidCookie()}r.addFetchObserver=Q,r.fetch=h,r.isDownForMaintenanceResponse=se,r.isTooManyRequestsResponse=G,r.removeFetchObserver=a,r.sendBeacon=Le,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/transport",["exports","webruntime/transport/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("logger/v/1",["exports"],function(r){"use strict";function e(...P){console.log(...P)}function t(...P){console.error(...P)}r.log=e,r.logError=t,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("logger",["exports","logger/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("assert/v/1",["exports","webruntime/utils/v/1_66_890"],function(r,e){"use strict";Object.defineProperty(r,"default",{enumerable:!0,get:function(){return e.assert}}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("assert",["exports","assert/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("o11y/shared/v/1",["exports"],function(r){"use strict";class e{constructor(){this.notImplemented="Method not implemented.";const a=typeof performance!="undefined";a?performance.timeOrigin?this._timeOrigin=performance.timeOrigin:this._timeOrigin=Date.now():this._timeOrigin=Date.now();const h=this._timeOrigin;a&&typeof performance.now=="function"?(this.perfNow=performance.now.bind(performance),this.time=()=>{const p=this.perfNow();return{tsNow:h+p,perfNow:p,timeOrigin:h}}):(this.perfNow=()=>Date.now()-h,this.time=()=>{const p=this.perfNow();return{tsNow:Date.now(),perfNow:p,timeOrigin:h}})}get isProduction(){return e._isProduction}markProduction(a){e._isProduction=a??!0}_checkArgument(a,h){if(typeof h=="string")return typeof a===h;if(typeof h=="function")return a instanceof h;if(Array.isArray(h))return h.some(p=>this._checkArgument(a,p));throw new Error(`Invalid argKind ${h}`)}requireArgument(a,h,p){let x=a==null||a==="";const G=p!==void 0;if(!x&&G&&(x=!this._checkArgument(a,p)),x)throw new Error(`${h} argument is required${G?" and must be of a supported type.":"."}`)}requireArgumentIfDefined(a,h,p){if(a===void 0)return!1;if(a===null||a===""||!this._checkArgument(a,p))throw new Error(`${h} argument, if defined, must be of a supported type.`);return!0}checkForDenyListedValues(a,h,p){if(p.some(x=>a===x))throw new Error(`The value ${a} isn't allowed for ${h} argument.`)}checkForReservedCharacters(a,h,p){if(a&&p.some(x=>a.indexOf(x)>=0))throw new Error(`The argument ${h} isn't allowed to contain characters from ['${p.join(", ")}']. Received: ${a}.`)}generateUniqueId(a=16){const h=[],p="0123456789abcdef";if(!(a===void 0||a>0))throw new Error('If specified, the argument "length" must be a positive integer');for(let x=0;x1||h(G)?`${G.localName.toLowerCase()}[${p(G)}]`:G.localName.toLowerCase();return[...x(G.parentNode),se]}return x(a).join("/")}getAge(a){return a-this._timeOrigin}getConnectionType(){var a;let h;if(typeof navigator!="undefined"){const p=navigator;h=(a=p==null?void 0:p.connection)===null||a===void 0?void 0:a.effectiveType}return h}clone(a){return JSON.parse(JSON.stringify(a))}definedValueOrDefault(a,h){return a!==void 0?a:h}getGlobal(){if(typeof globalThis=="object")return globalThis;if(typeof self=="object")return self;throw new Error("Unable to locate globalThis or self")}getIsBeaconSupported(){var a;const h=this.getGlobal();return typeof((a=h.navigator)===null||a===void 0?void 0:a.sendBeacon)=="function"&&typeof h.Blob=="function"}estimateObjectSize(a){const h=new Set,p=[a];let x=0;for(;p.length;){const G=p.pop();if(typeof G=="boolean")x+=4;else if(typeof G=="string")x+=G.length*2;else if(typeof G=="number")x+=8;else if(G instanceof Uint8Array||G instanceof Uint8ClampedArray||G instanceof Uint16Array||G instanceof Uint32Array||G instanceof Int8Array||G instanceof Int16Array||G instanceof Int32Array||G instanceof Float32Array||G instanceof Float64Array)x+=G.byteLength;else if(typeof G=="object"){const se=G;if(!h.has(se)){h.add(se);for(const _e in se)p.push(se[_e])}}}return x}noProdThrow(a){if(!E.isProduction)throw a}isAllowedOrigin(a,h){return Array.isArray(h)&&h.some(p=>p==="*"||a===p||p instanceof RegExp&&p.test(a))}roundNumber(a,h){const p=Math.pow(10,h);return Math.round(a*p)/p}roundNumbersInObject(a,h){a&&Object.entries(a).forEach(([p,x])=>{typeof x=="number"&&(a[p]=this.roundNumber(x,h))})}tryGetAbsoluteUrl(a){var h;return(a==null?void 0:a.startsWith("/"))&&typeof window=="object"?((h=window.location.origin)!==null&&h!==void 0?h:"")+a:a}}e._isProduction=!0;const t=new e,P=t.getGlobal();t.markProduction(P==null?void 0:P.__O11Y_IS_PROD__);const E=Object.freeze(t);class H{constructor(a,h,p,x,G,se,_e){this._name=a,this._ownerName=h,this._ownerAppName=p,this._tags=x,this._value=0,this._createdOn=G===void 0?E.time().tsNow:G,se!==void 0&&(this._lastUpdatedOn=se),_e!==void 0&&(this._value=_e)}getName(){return this._name}getCreatedOn(){return this._createdOn}getLastUpdatedOn(){return this._lastUpdatedOn}getData(){return this._value}increment(a=1){if(typeof a=="number"&&a>0){this._value+=Math.round(a),this._lastUpdatedOn=E.time().tsNow;return}throw new Error("UpCounter can only increment positive numbers.")}reset(){this._lastUpdatedOn=void 0,this._value=0}getOwnerName(){return this._ownerName}getOwnerAppName(){return this._ownerAppName}getTags(){return this._tags}}const j="co11y";class I{constructor(){this._upCounters=new Map,this._ownerAppName=j}_addOrUpdateCounter(a,h,p){if(!a)return;const x={status:p},G=`${this._ownerAppName}:${h}:${a}${JSON.stringify(x)}`;let se=this._upCounters.get(G);se||(se=new H(a,h,this._ownerAppName,x),this._upCounters.set(G,se)),se.increment()}success(a,h){this._addOrUpdateCounter(a,h,"success")}exception(a,h){this._addOrUpdateCounter(a,h,"error")}getBucketHistograms(){return[]}getUpCounters(){return Array.from(this._upCounters.values()).filter(a=>a.getLastUpdatedOn())}getValueRecorders(){return[]}setOwnerAppName(a){this._ownerAppName=a}}const c=new I;class m{constructor(a){if(this._lazyMap=new Map,a!==void 0){if(typeof a=="number"&&a>0){this._maxSize=Math.ceil(a);return}throw new Error("maxSize must be a positive number")}}get maxSize(){return this._maxSize}get size(){return this._lazyMap.size}push(a,h){let p=this._lazyMap.get(a);if(!p){if(this.maxSize!==void 0&&this.size===this.maxSize)return!1;p=new Array,this._lazyMap.set(a,p)}return p.push(h),!0}getMessages(a,h){const p=this._lazyMap.get(a);return h&&this._lazyMap.has(a)&&this._lazyMap.set(a,[]),p||[]}getAllMessages(a){const h=new Map;for(const[p,x]of this._lazyMap.entries())x.length&&h.set(p,this.getMessages(p,a));return h}extractMessages(a){return this.getMessages(a,!0)}extractAllMessages(){return this.getAllMessages(!0)}get totalItemCount(){let a=0;for(const h of this._lazyMap.values())a+=h.length;return a}}class s{getSchemaId(a){return`${a.namespace}.${a.name}`}isInternal(a){return(a==null?void 0:a.namespace)==="sf.instrumentation"}makePayload(a,h,p=!0){if(!p||a!==void 0&&h!==void 0)return{schema:a,payload:h}}checkSchema(a){return E.requireArgument(a,"schema","object"),E.requireArgument(a.namespace,"schema.namespace","string"),E.requireArgument(a.name,"schema.name","string"),E.requireArgument(a.pbjsSchema,"schema.pbjsSchema","object"),this._getTokens(a)}_getTokens(a){const h=a.namespace.split(".");if(h.length!==2)throw new Error(`Schema "${this.getSchemaId(a)}" must have a namespace of the form "domain.feature".`);return{domain:h[0],feature:h[1],message:a.name}}_getAnyNestedObject(a,h){return h.reduce((p,x)=>{const G=p.nested;if(G){const se=G[x];if(se)return se}throw new Error(`Cannot locate ${h.join(".")} in schema with ID ${this.getSchemaId(a)}`)},a.pbjsSchema)}getTypes(a){const h=this.checkSchema(a),x=this._getAnyNestedObject(a,[h.domain,h.feature]).nested;if(!x)throw new Error(`Cannot parse schema with ID ${this.getSchemaId(a)}`);return x}getType(a,h){E.requireArgument(h,"messageName","string");const x=this.getTypes(a)[h];if(!x)throw new Error(`Cannot locate message ${h} in schema with ID ${this.getSchemaId(a)}`);return x}getOptions(a,h,p){p&&E.requireArgument(h,"messageName","string");const x=this.checkSchema(a);if(!h)return this._getAnyNestedObject(a,[x.domain,x.feature]).options;const G=this.getType(a,h);if(!p)return G.options;const se=G.fields[p];if(!se){const _e=this.getSchemaId(a);throw new Error(`Cannot locate field ${p} in message ${h} in schema with ID ${_e}`)}return se.options}getExtraFields(a,h){const{message:p}=this._getTokens(a),G=this.getTypes(a)[p].fields,se=new Set(Object.keys(G));return h!=null?Object.keys(h).filter(Le=>!se.has(Le)):[]}}const l=new s,g=1e4,L=1e4,_=0,C=2147483647,T=-2147483648,k=4294967295,N=9223372036854776e3,U=-9223372036854776e3,K=18446744073709552e3;class A{constructor(a,h,p,x){this.errorCode=a,this.fields=h,this.expected=p,this.received=x}asMessage(a){const h=this.fields[0]+this.fields.slice(1).reduce((x,G)=>Number(G)>=0?`${x}[${G}]`:`${x}.${G}`,"");let p;switch(this.errorCode){case 1:p="Repeated field must be an array";break;case 2:p=`Expected type ${this.expected} but received type ${this.received}`;break;case 3:p="Value must be finite";break;case 4:p="Value is out of range for its type";break;case 5:p="Bytes array is malformed";break;case 6:p="Exceeded app limit for maximum string length";break;case 7:p="Exceeded app limit for item count";break;case 12:p="Value must be an integer";break;case 13:p="Values like null or undefined are not allowed for items in repeated fields";break;default:p=`Unknown error code: ${this.errorCode}`;break}return`Schema ${a} on field "${h}": ${p}`}}class ${validate(a,h,p=!1){const x=l.checkSchema(a);E.requireArgument(h,"data","object");const G=l.getSchemaId(a),se=new Array,_e=l.getTypes(a);if(this._validateFields(se,[],h,_e[x.message],_e,G),se.length&&!p)throw new Error(se[0].asMessage(G));return se}_validateFields(a,h,p,x,G,se){const _e=x.oneofs||{},Le=x.fields||{};for(const Ie in p){const Se=p[Ie];if(Se!=null){const Y=(he,W,me)=>this._matchFieldTypes(a,[...h,Ie],Se,he,G,se,Ie,W,me);_e[Ie]?Y(Le[_e[Ie].oneof[0]].type):Le[Ie]&&Y(Le[Ie].type,Le[Ie].rule==="repeated")}}}_matchFieldTypes(a,h,p,x,G,se,_e,Le,Ie){let Se;if(Le)Array.isArray(p)?(p.length>L&&(Se=7),p.forEach((Y,he)=>{this._matchFieldTypes(a,[...h,he.toString()],Y,x,G,se,_e,void 0,!0)})):Se=1;else if(p==null||p===void 0)Ie&&(Se=13);else{let Y,he;switch(x){case"string":he="string",p.length>g&&(Se=6);break;case"bytes":he="object",p instanceof Uint8Array||(Se=5);break;case"bool":he="boolean";break;case"uint32":he="number",Y={min:_,max:k,isInt:!0,isItem:Ie};break;case"int32":case"sint32":case"fixed32":case"sfixed32":he="number",Y={min:T,max:C,isInt:!0,isItem:Ie};break;case"uint64":he="number",Y={min:_,max:K,isInt:!0,isItem:Ie};break;case"fixed64":case"sfixed64":case"int64":case"sint64":he="number",Y={min:U,max:N,isInt:!0,isItem:Ie};break;case"double":case"float":he="number",Y={min:Number.NEGATIVE_INFINITY,max:Number.POSITIVE_INFINITY,isInt:!1,isItem:Ie};break;default:new Set(Object.keys(G)).has(x)&&(this._validateFields(a,h,p,G[x],G,se),he="object");break}typeof p!==he?a.push(new A(2,h,x,typeof p)):Y&&(Y.isInt&&!Number.isFinite(p)?Se=3:Y.isInt&&!Number.isInteger(p)?Se=12:!(!Y.isInt&&Number.isNaN(p))&&!(p>=Y.min&&p<=Y.max)&&(Se=4))}Se&&a.push(new A(Se,h))}}const z=new $;class ce{_getMetricTags(a){const h=a.getTags();if(h)return Object.entries(h).map(p=>({name:p[0],value:p[1].toString()}))}getUpCounters(a,h=!0){return a.map(p=>{const x={name:p.getName(),createdTimestamp:p.getCreatedOn(),lastUpdatedTimestamp:p.getLastUpdatedOn(),value:p.getData(),ownerName:p.getOwnerName(),ownerAppName:p.getOwnerAppName(),tags:this._getMetricTags(p)};return h&&p.reset(),x})}getValueRecorders(a,h=!0){return a.map(p=>{const x={name:p.getName(),createdTimestamp:p.getCreatedOn(),lastUpdatedTimestamp:p.getLastUpdatedOn(),values:p.getData(),ownerName:p.getOwnerName(),ownerAppName:p.getOwnerAppName(),tags:this._getMetricTags(p)};return h&&p.reset(),x})}getBucketHistograms(a,h=!0){return a.map(p=>{const x={name:p.getName(),createdTimestamp:p.getCreatedOn(),lastUpdatedTimestamp:p.getLastUpdatedOn(),values:p.getData(),buckets:p.getBuckets(),ownerName:p.getOwnerName(),ownerAppName:p.getOwnerAppName(),tags:this._getMetricTags(p)};return h&&p.reset(),x})}getMetricsTags(a){const h={};return a.forEach(p=>{h[p.name]=p.value}),h}}const S=Object.freeze(new ce);class we{checkInputs(a,h){l.checkSchema(a),E.requireArgument(h,"data","object");let p,x;h.userPayload!==void 0&&l.isInternal(a)&&(x=h.userPayload,p=z.validate(x.schema,x.payload,!0),this._processValidationResults(l.getSchemaId(x.schema),x.payload,p),h.userPayload=void 0),p=z.validate(a,h,!0),this._processValidationResults(l.getSchemaId(a),h,p),x!==void 0&&(h.userPayload=x)}getExtraFields(a,h){E.requireArgument(h,"data","object");const p=[],x=h.userPayload;return x!==void 0&&l.isInternal(a)&&p.push(...l.getExtraFields(x.schema,x.payload)),p.push(...l.getExtraFields(a,h)),p}getPayloadFromProvider(a,h){const p=(a==null?void 0:a.getPayload(h))||void 0;return p&&this.checkInputs(p.schema,p.payload),p}_processValidationResults(a,h,p){for(let x=0;x0:void 0}constructor(n,i,o,u){this.name=n,this._doneCallback=o,this._overDoneCallback=u,this._busyCount=0,this._isOk=!0,this._busyCount=i}add(){this._isOk&&(this._busyCount+=1)}done(){this._isOk&&(this._busyCount>0?(this._busyCount-=1,this._busyCount||this._doneCallback()):(this._isOk=!1,this._overDoneCallback()))}}const E=300;class H{constructor(n){this._taskers=new Map,this._listeners=new Set,this._busyCheckers=new Map,this._logThreshold=E,this._endedTasks=new Array,this._pollableReport=new Array,t.utility.requireArgumentIfDefined(n==null?void 0:n.logThreshold,"options.logThreshold","number")&&(this._logThreshold=n.logThreshold),t.utility.requireArgumentIfDefined(n==null?void 0:n.reportListener,"options.reportListener","function")&&(this._reportListener=n.reportListener),t.utility.requireArgumentIfDefined(n==null?void 0:n.errorListener,"options.errorListener","function")&&(this._errorListener=n.errorListener)}requestIdleDetectedCallback(n){t.utility.requireArgument(n,"callback","function"),this._listeners.size===0&&(this._firstCallbackTime=t.utility.time().perfNow),this._listeners.add(n),this._checkIfLoaded()}_reportTaskEnded(n){if(this._listeners.size){const i=Object.assign({},this._taskers.get(n));this._endedTasks.push(i)}}declareNotifierTaskSingle(n){t.utility.requireArgument(n,"name","string");const i=this._addTasker(n,1);return{get isBusy(){return i.isBusy},done:()=>{i.done(),this._taskers.delete(i)}}}declareNotifierTaskMulti(n,i=0){if(t.utility.requireArgument(n,"name","string"),i!==void 0&&(t.utility.requireArgument(i,"existingBusyCount","number"),!Number.isInteger(i)||i<0))throw new Error("existingBusyCount accepts only non-negative integers");const o=this._addTasker(n,i);return{get isBusy(){return o.isBusy},add:()=>{if(!o.isBusy){const d=this._taskers.get(o);d.start=t.utility.time().perfNow,d.end=void 0}o.add()},done:o.done.bind(o)}}declarePollableTaskMulti(n,i){t.utility.requireArgument(n,"name","string"),t.utility.requireArgument(i,"isBusyChecker","function"),this._busyCheckers.set(i,n)}_addTasker(n,i){const o=new P(n,i,()=>{this._taskers.get(o).end=t.utility.time().perfNow,this._reportTaskEnded(o),this._checkIfLoaded()},()=>{var u;(u=this._errorListener)===null||u===void 0||u.call(this,`Overdone: ${o.name}`),t.utility.noProdThrow(`Tasker '${o.name}' is done too many times.`)});return this._taskers.set(o,{name:n,start:i>0?t.utility.time().perfNow:void 0,end:void 0}),o}_areAllNotifiersIdle(){return!Array.from(this._taskers.keys()).some(n=>n.isBusy)}_getFirstBusyPollable(){const n=Array.from(this._busyCheckers).find(i=>{var o;const u=i[0],d=i[1];try{return u()}catch(R){return(o=this._errorListener)===null||o===void 0||o.call(this,R,`BusyChecker ${d}`),t.utility.noProdThrow(R),!1}});return n?n[1]:void 0}_checkIfLoaded(){!this._listeners.size||(this._timerCheckQueued&&clearTimeout(this._timerCheckQueued),this._areAllNotifiersIdle()&&(this._timerCheckQueued=setTimeout(()=>{this._timerCheckQueued=setTimeout(()=>{this._doubleCheck()},40)},0)))}_doubleCheck(){if(this._timerCheckQueued=void 0,this._areAllNotifiersIdle()){const n=this._getFirstBusyPollable();if(n!==void 0)this._addToPollableReport(n),this._timerCheckQueued=setTimeout(()=>{this._doubleCheck()},15);else{const i=t.utility.time().perfNow-this._firstCallbackTime,o=Array.from(this._listeners.values());this._listeners.clear(),this._firstCallbackTime=void 0;const u=this._endedTasks.splice(0),d=this._pollableReport.splice(0);this._notify(o,i,u,d)}}}_addToPollableReport(n){const i=this._pollableReport.length?this._pollableReport[this._pollableReport.length-1]:void 0;(i==null?void 0:i.name)===n?i.count+=1:this._pollableReport.push({name:n,count:1})}_notify(n,i,o,u){var d;if(i>=this._logThreshold&&this._reportListener){const F=this._getReport(i,n.length,o,u);this._reportListener(F)}n.reverse();const R=t.utility.time().tsNow;for(const[F,Ce]of n.entries())try{Ce(R)}catch(Ee){(d=this._errorListener)===null||d===void 0||d.call(this,Ee,`Listener #${n.length-1-F}`),t.utility.noProdThrow(Ee)}}getReport(){const n=t.utility.time().perfNow,i=this._firstCallbackTime>0?n-this._firstCallbackTime:void 0,o=Array.from(this._taskers.entries()).filter(u=>u[0].isBusy).map(u=>({name:u[1].name,start:u[1].start,end:n}));return this._getReport(i,this._listeners.size,this._endedTasks.concat(o),this._pollableReport)}_getReport(n,i,o,u){const d=o.map(R=>({name:R.name,duration:R.end-R.start})).sort((R,F)=>F.duration-R.duration);return{logThreshold:this._logThreshold,maxDuration:n,listenerCount:i,pollableCount:this._busyCheckers.size,busyTasks:d.map(R=>R.name),busyDurations:d.map(R=>R.duration),pollables:u.map(R=>R.name),pollCounts:u.map(R=>R.count)}}}const j={namespace:"sfcore.performance",name:"NavigationTiming",pbjsSchema:{nested:{sfcore:{nested:{performance:{nested:{NavigationTiming:{oneofs:{_xhrDelay:{oneof:["xhrDelay"]},_renderBlockingStatus:{oneof:["renderBlockingStatus"]},_firstInterimResponseStart:{oneof:["firstInterimResponseStart"]},_srvDuration:{oneof:["srvDuration"]},_isCdnCached:{oneof:["isCdnCached"]},_responseStatus:{oneof:["responseStatus"]},_dbDuration:{oneof:["dbDuration"]},_reqBatchCount:{oneof:["reqBatchCount"]}},fields:{redirectCount:{id:37,type:"uint32"},encodedBodySize:{id:21,type:"uint32"},reqActionNames:{rule:"repeated",id:28,type:"string"},unloadEventEnd:{id:40,type:"double"},responseEnd:{id:19,type:"double"},domainLookupEnd:{id:12,type:"double"},unloadEventStart:{id:39,type:"double"},domContentLoadedEventStart:{id:32,type:"double"},type:{id:38,type:"string"},firstInterimResponseStart:{options:{proto3_optional:!0},id:18,type:"double"},duration:{id:3,type:"double"},decodedBodySize:{id:22,type:"uint32"},redirectStart:{id:8,type:"double"},connectEnd:{id:15,type:"double"},isCdnCached:{options:{proto3_optional:!0},id:24,type:"bool"},requestStart:{id:16,type:"double"},startTime:{id:2,type:"double"},fetchStart:{id:10,type:"double"},domContentLoadedEventEnd:{id:33,type:"double"},srvReqId:{id:29,type:"string"},reqBatchCount:{options:{proto3_optional:!0},id:27,type:"uint32"},renderBlockingStatus:{options:{proto3_optional:!0},id:6,type:"string"},workerStart:{id:7,type:"double"},responseStart:{id:17,type:"double"},xhrDelay:{options:{proto3_optional:!0},id:30,type:"double"},domInteractive:{id:34,type:"double"},domComplete:{id:31,type:"double"},domainLookupStart:{id:11,type:"double"},responseStatus:{options:{proto3_optional:!0},id:23,type:"uint32"},redirectEnd:{id:9,type:"double"},logEvent:{id:41,type:"string"},transferSize:{id:20,type:"uint32"},srvDuration:{options:{proto3_optional:!0},id:26,type:"double"},dbDuration:{options:{proto3_optional:!0},id:25,type:"double"},connectStart:{id:13,type:"double"},loadEventStart:{id:35,type:"double"},secureConnectionStart:{id:14,type:"double"},name:{id:1,type:"string"},nextHopProtocol:{id:5,type:"string"},initiatorType:{id:4,type:"string"},loadEventEnd:{id:36,type:"double"}}}}}}}}}},I={namespace:"sfcore.performance",name:"ResourceTiming",pbjsSchema:{nested:{sfcore:{nested:{performance:{nested:{ResourceTiming:{oneofs:{_xhrDelay:{oneof:["xhrDelay"]},_renderBlockingStatus:{oneof:["renderBlockingStatus"]},_firstInterimResponseStart:{oneof:["firstInterimResponseStart"]},_srvDuration:{oneof:["srvDuration"]},_isCdnCached:{oneof:["isCdnCached"]},_responseStatus:{oneof:["responseStatus"]},_dbDuration:{oneof:["dbDuration"]},_reqBatchCount:{oneof:["reqBatchCount"]}},fields:{encodedBodySize:{id:21,type:"uint32"},reqActionNames:{rule:"repeated",id:28,type:"string"},responseEnd:{id:19,type:"double"},domainLookupEnd:{id:12,type:"double"},firstInterimResponseStart:{options:{proto3_optional:!0},id:18,type:"double"},duration:{id:3,type:"double"},decodedBodySize:{id:22,type:"uint32"},redirectStart:{id:8,type:"double"},connectEnd:{id:15,type:"double"},isCdnCached:{options:{proto3_optional:!0},id:24,type:"bool"},requestStart:{id:16,type:"double"},startTime:{id:2,type:"double"},fetchStart:{id:10,type:"double"},srvReqId:{id:29,type:"string"},reqBatchCount:{options:{proto3_optional:!0},id:27,type:"uint32"},renderBlockingStatus:{options:{proto3_optional:!0},id:6,type:"string"},workerStart:{id:7,type:"double"},responseStart:{id:17,type:"double"},xhrDelay:{options:{proto3_optional:!0},id:30,type:"double"},domainLookupStart:{id:11,type:"double"},responseStatus:{options:{proto3_optional:!0},id:23,type:"uint32"},redirectEnd:{id:9,type:"double"},transferSize:{id:20,type:"uint32"},srvDuration:{options:{proto3_optional:!0},id:26,type:"double"},dbDuration:{options:{proto3_optional:!0},id:25,type:"double"},connectStart:{id:13,type:"double"},secureConnectionStart:{id:14,type:"double"},name:{id:1,type:"string"},nextHopProtocol:{id:5,type:"string"},initiatorType:{id:4,type:"string"}}}}}}}}}};class c{constructor(n){this._fuzzyKeyRange=n,this._map=new Map,t.utility.requireArgument(n,"_fuzzyKeyRange","number")}add(n,i,o){const u=this._map.get(n);u?u.push({fuzzyKey:i,value:o}):this._map.set(n,[{fuzzyKey:i,value:o}])}pop(n,i){const o=this._map.get(n);if((o==null?void 0:o.length)>=1){let u=Number.POSITIVE_INFINITY,d=-1;for(let R=0;R=0){const{value:R}=o.splice(d,1)[0];return o.length===0&&this._map.delete(n),R}}}clear(){this._map.clear()}}const m=["fetch","xmlhttprequest"];class s{constructor(n,i,o,u,d){if(this._instr=n,this._skipUrls=o,this._logPerformanceActivityName=u,this._boundObserverCallback=this._logPerformanceEntries.bind(this),this._boundNavigationTimingEventCallback=R=>{this._logNavigationEntries(R)},this._setTimeoutNavigationCallback=R=>{setTimeout(()=>{this._boundNavigationTimingEventCallback(R)},0)},this._visibilityChangeNavigationCallback=R=>{document.visibilityState==="hidden"&&this._boundNavigationTimingEventCallback(R)},this._isStarted=!1,this._processedNavigationTiming=!1,t.utility.requireArgument(n,"_instr","object"),t.utility.requireArgument(i,"fuzzyMapRange","number"),t.utility.requireArgumentIfDefined(o,"_skipUrls",Array),t.utility.requireArgumentIfDefined(u,"_logPerformanceActivityName","string"),t.utility.requireArgumentIfDefined(d,"logLevel","string"),this._hasPerf=typeof performance!="undefined"&&typeof PerformanceObserver=="function",this._hasWindow=typeof window!="undefined",!d||d.toLowerCase()==="full")this._logLevel=1;else if((d==null?void 0:d.toLowerCase())==="basic")this._logLevel=0;else throw new Error(`Invalid log level: ${d}`);this._fuzzyMapper=new c(i)}get isStarted(){return this._isStarted}get logLevel(){return this._logLevel}start(){!this._hasPerf||this._isStarted||(this._isStarted=!0,this._resourceObserver=new PerformanceObserver(this._boundObserverCallback),this._resourceObserver.observe({type:"resource",buffered:!0}),this._addNavigationListeners())}stop(){this._resourceObserver&&(this._resourceObserver.disconnect(),this._resourceObserver=void 0),this._removeNavigationListeners(),this._fuzzyMapper.clear(),this._isStarted=!1}_addNavigationListeners(){!this._hasWindow||(window.addEventListener("load",this._setTimeoutNavigationCallback),window.addEventListener("pagehide",this._boundNavigationTimingEventCallback),document.addEventListener("visibilitychange",this._visibilityChangeNavigationCallback))}_removeNavigationListeners(){!this._hasWindow||(window.removeEventListener("load",this._setTimeoutNavigationCallback),window.removeEventListener("pagehide",this._boundNavigationTimingEventCallback),document.removeEventListener("visibilitychange",this._visibilityChangeNavigationCallback))}addEntry(n,i,o){this._fuzzyMapper.add(n,i,o)}_resourceEntryToResourceTiming(n){var i,o;const u={name:n.name,startTime:n.startTime,duration:n.duration,initiatorType:n.initiatorType,nextHopProtocol:n.nextHopProtocol,renderBlockingStatus:n.renderBlockingStatus,workerStart:n.workerStart,redirectStart:n.redirectStart,redirectEnd:n.redirectEnd,fetchStart:n.fetchStart,domainLookupStart:n.domainLookupStart,domainLookupEnd:n.domainLookupEnd,connectStart:n.connectStart,secureConnectionStart:n.secureConnectionStart,connectEnd:n.connectEnd,requestStart:n.requestStart,responseStart:n.responseStart,firstInterimResponseStart:n.firstInterimResponseStart,responseEnd:n.responseEnd,transferSize:n.transferSize,encodedBodySize:n.encodedBodySize,decodedBodySize:n.decodedBodySize,responseStatus:n.responseStatus},d=n.serverTiming;return Array.isArray(d)&&(u.dbDuration=(i=d.find(R=>R.name==="db"))===null||i===void 0?void 0:i.duration,u.srvDuration=(o=d.find(R=>R.name==="Total"))===null||o===void 0?void 0:o.duration),u}_shouldInclude(n){var i;return((i=this._skipUrls)===null||i===void 0?void 0:i.some(u=>u instanceof RegExp?u.test(n.name):n.name===u))?!1:this._logLevel===1?!0:m.indexOf(n.initiatorType)>=0||n.entryType==="navigation"}_logActivity(n,i,o,u){const d={id:o},R={perfStartOverride:i.startTime,perfStopOverride:i.startTime+i.duration,errorCount:u};this._instr.startActivity(this._logPerformanceActivityName,d).stop(n,i,R)}_logNavigationEntries(n){if(!this._processedNavigationTiming)for(const i of performance.getEntriesByType("navigation")){const o=i;if(this._shouldInclude(o)){this._processedNavigationTiming=!0;const u=this._resourceEntryToResourceTiming(o),d={domComplete:o.domComplete,domContentLoadedEventStart:o.domContentLoadedEventStart,domContentLoadedEventEnd:o.domContentLoadedEventEnd,domInteractive:o.domInteractive,loadEventStart:o.loadEventStart,loadEventEnd:o.loadEventEnd,redirectCount:o.redirectCount,type:o.type,unloadEventStart:o.unloadEventStart,unloadEventEnd:o.unloadEventEnd,logEvent:n.type};this._logActivity(j,Object.assign(u,d))}break}}_logPerformanceEntries(n){for(const i of n.getEntriesByType("resource")){const o=i,u=this._fuzzyMapper.pop(o.name,o.startTime);if(this._shouldInclude(o)){const d=this._resourceEntryToResourceTiming(o);Object.assign(d,{srvReqId:u==null?void 0:u.requestId,xhrDelay:u?u.activityDuration-o.duration:void 0}),d.responseStatus===void 0&&(d.responseStatus=u==null?void 0:u.responseStatus),this._logActivity(I,d,u==null?void 0:u.activityId,u==null?void 0:u.errorCount)}}}}const l=32,g=16,L=16,_="traceparent",C="b3",T="X-B3-TraceId",k="X-B3-SpanId",N="X-B3-Sampled",U="X-B3-ParentSpanId",K="X-SFDC-Request-Id",A="fetch",$="xhr_send",z="perf-timing",ce=50;class S{constructor(n,i){this._instr=n,this._idleDetector=i,t.utility.requireArgument(n,"_instr","object"),t.utility.requireArgument(i,"_idleDetector","object")}static _getB3CompactFormat(n,i,o,u){let d=`${n}-${i}`;return(o!==void 0||u!==void 0)&&(d+=o?"-1":"-0",u!==void 0&&(d+=`-${u}`)),d}static _getW3CompactFormat(n,i,o){return`00-${n}-${i}-${o?"01":"00"}`}static _conformTextAsId(n,i){n=n.toLowerCase();const o=n.length;for(let u=0;u="a"&&d<="f")&&!(d>="0"&&d<="9"))throw new Error(`The text '${n}' has an invalid character at index #${u}`)}return o>i?n.substr(o-i):od[0]===n);return u==null?void 0:u[1]}if(typeof(o==null?void 0:o.headers)=="object")return o.headers[n];if(i instanceof Request)return i.headers.get(n)}_overrideFetch(n,i,o,u,d,R,F){S._originalFetch=S._global.fetch;const Ce=async(Ee,ge,...Ae)=>{var Me;let ve,Ue,We,tt,Et,ut=!1,f;try{R==null||R.add(),tt=ge==null?void 0:ge.method;const M=ge==null?void 0:ge.o11y,B=M==null?void 0:M.skipInstr;if(ut=B||S._shouldSkipUrl(F,Ee),!ut)ve=n.startActivity(o||A);else if(B){S._reqIndex+=1;try{if(Ee instanceof URL)Ee.searchParams.append("o11y",S._reqIndex.toString());else if(typeof Ee=="string"){const ne=new URL(Ee),de=`o11y=${S._reqIndex}`;ne.search+=ne.search.startsWith("?")?`&${de}`:de,Ee=ne.toString()}}catch(ne){}}if(ge==null||delete ge.o11y,Ue=Ee==null?void 0:Ee.toString(),We=t.utility.tryGetAbsoluteUrl(Ue),u){Ee instanceof Request&&(tt||(tt=Ee.method),Ue=Ee.url,We=t.utility.tryGetAbsoluteUrl(Ue));const ne=S._getTraceHeaders(ve,n,d,tt,We);!this._applyTraceHeaders(Ee,ge,ne)&&ge===void 0&&(ge={headers:ne})}return Et=t.utility.perfNow(),f=await S._originalFetch.call(S._global,Ee,ge,...Ae),f}catch(M){throw i&&!ut&&(ve?ve.error(M):n.error(M)),M}finally{try{const M=S._endActivity(ve,Ue,tt);if((Me=S._performanceObservability)===null||Me===void 0?void 0:Me.isStarted){const B=S._extractHeader(K,Ee,ge);S._performanceObservability.addEntry(We,Et,{requestId:B,activityDuration:M,activityId:ve==null?void 0:ve.getId(),errorCount:ve==null?void 0:ve.getErrorCount(),responseStatus:f==null?void 0:f.status})}}finally{R==null||R.done()}}};S._global.fetch=Ce}static _endActivity(n,i,o){var u;if(n)return((u=S._performanceObservability)===null||u===void 0?void 0:u.isStarted)?n.discard():n.stop(e.networkSchema,{mtd:o,url:i}),n.getStopPerfTime()-n.getStartPerfTime()}_overrideXhr(n,i,o,u,d,R,F){S._originalXhr=S._global.XMLHttpRequest,S._originalXhrOpen=S._originalXhr.prototype.open,S._originalXhrSetRequestHeader=S._originalXhr.prototype.setRequestHeader,S._originalXhrSend=S._originalXhr.prototype.send;function Ce(ge,Ae){var Me;if(ge._o11y){const ve=ge._o11y.activity,Ue=S._endActivity(ve,ge._o11y.url,ge._o11y.method);!Ae&&((Me=S._performanceObservability)===null||Me===void 0?void 0:Me.isStarted)&&S._performanceObservability.addEntry(ge._o11y.absoluteUrl,ge._o11y.sendTime,{requestId:ge._o11y.requestId,activityDuration:Ue,activityId:ve==null?void 0:ve.getId(),errorCount:ve==null?void 0:ve.getErrorCount(),responseStatus:ge.status})}}S._originalXhr.prototype.open=function(ge,Ae,Me,ve,Ue){this._o11y={method:ge,url:Ae==null?void 0:Ae.toString()},this._o11y.absoluteUrl=t.utility.tryGetAbsoluteUrl(this._o11y.url),this._o11y.suspendInstrumentation=S._shouldSkipUrl(F,this._o11y.absoluteUrl),S._originalXhrOpen.apply(this,arguments)},S._originalXhr.prototype.setRequestHeader=function(ge,Ae){var Me;((Me=ge==null?void 0:ge.toLowerCase)===null||Me===void 0?void 0:Me.call(ge))===K.toLowerCase()&&(this._o11y.requestId=Ae),S._originalXhrSetRequestHeader.apply(this,arguments)},S._originalXhr.prototype.send=function(...ge){var Ae;let Me;const ve=this;try{if(R==null||R.add(),ve._o11y=ve._o11y||{},ve._o11y.suspendInstrumentation||(ve._o11y.activity=Me=n.startActivity(o||$)),u){const Ue=S._getTraceHeaders(Me,n,d,ve._o11y.method,ve._o11y.absoluteUrl);Object.entries(Ue).forEach(We=>{ve.setRequestHeader(We[0],We[1])})}ve._o11y.sendTime=t.utility.perfNow(),S._originalXhrSend.call(this,...ge)}catch(Ue){throw i&&!((Ae=ve._o11y)===null||Ae===void 0?void 0:Ae.suspendInstrumentation)&&(Me?Me.error(Ue):n.error(Ue)),Ce(ve,!0),R==null||R.done(),Ue}};const Ee=new Proxy(S._originalXhr,{construct(ge){const Ae=new ge;return Ae.addEventListener("load",()=>{Ce(Ae),R==null||R.done()}),Ae.addEventListener("error",Me=>{var ve,Ue;try{if(i&&!((ve=Ae._o11y)===null||ve===void 0?void 0:ve.suspendInstrumentation)){const We=new Error("XHR Network-Level Error"),tt=(Ue=Ae._o11y)===null||Ue===void 0?void 0:Ue.activity;tt?tt.error(We):n.error(We)}Ce(Ae)}finally{R==null||R.done()}}),Ae.addEventListener("abort",()=>{var Me,ve;(ve=(Me=Ae._o11y)===null||Me===void 0?void 0:Me.activity)===null||ve===void 0||ve.discard(),R==null||R.done()}),Ae}});S._global.XMLHttpRequest=Ee}networkInstrumentation(n){var i;if(t.utility.requireArgument(n,"options",["boolean","object"]),this._disableNetworkInstrumentation(),n){const o=typeof n=="object"?n:{};let u;t.utility.definedValueOrDefault(o.useTasker,!0)&&(u=(i=this._idleDetector)===null||i===void 0?void 0:i.declareNotifierTaskMulti("o11y network")),this._enableNetworkInstrumentation(t.utility.definedValueOrDefault(o.instrumentation,this._instr),t.utility.definedValueOrDefault(o.logErrors,!0),o.activityName,t.utility.definedValueOrDefault(o.useTracing,!0),o.tracingHeadersOptions,u,t.utility.definedValueOrDefault(o.logPerformance,!0),t.utility.definedValueOrDefault(o.logPerformanceActivityName,z),t.utility.definedValueOrDefault(o.skipUrls,[]),t.utility.definedValueOrDefault(o.fuzzyMapRange,ce))}}resetRequestCounter(){S._reqIndex=0}_applyTraceHeaders(n,i,o){if((i==null?void 0:i.headers)!==void 0){if(i.headers instanceof Headers&&typeof i.headers.set=="function")return Object.entries(o).forEach(([u,d])=>{i.headers.set(u,d)}),!0;if(Array.isArray(i.headers))return Object.entries(o).forEach(u=>{i.headers.push(u)}),!0;if(typeof i.headers=="object")return i.headers=Object.assign(i.headers,o),!0}else{if(n instanceof Request&&n.headers instanceof Headers)return Object.entries(o).forEach(([u,d])=>{n.headers.set(u,d)}),!0;if(i)return i.headers=Object.assign({},o),!0}return!1}static _shouldSkipUrl(n,i){var o;let u=i;return i instanceof URL?u=(o=i.toString)===null||o===void 0?void 0:o.call(i):i instanceof Request&&(u=i.url),n==null?void 0:n.some(d=>d instanceof RegExp?d.test(u):u===d)}}S._global=t.utility.getGlobal(),S._isNetworkInstrumentationEnabled=!1,S._reqIndex=0;var we;(function(Pe){Pe[Pe.none=0]="none",Pe[Pe.start=1]="start",Pe[Pe.stop=2]="stop",Pe[Pe.both=3]="both"})(we||(we={}));const oe="timedout",je="terminated",ae="discarded",Q={timedout:oe,terminated:je,discarded:ae};class a{constructor(n,i,o,u,d,R,F,Ce,Ee){this._name=n,this._rootId=i,this._onStopped=o,this._onError=u,this._isSampled=F,this._noRerooting=Ee,this._isRoot=!1,this._errorCount=0,this._timerOverridden=we.none;const{tsNow:ge,perfNow:Ae}=t.utility.time();if(a._count+=1,this._id=R||t.utility.generateUniqueId(),this._usePerf=typeof performance!="undefined"&&typeof performance.mark=="function"&&typeof performance.measure=="function",this._usePerf){this._perfName=`${this._name}__${a._count}`,this._perfId=`${this._name}__${this.id}`;try{performance.mark(this._perfId)}catch(Me){this._usePerf=!1}}this._startTimestamp=ge,this._startPerfTime=Ae,this._overrideTimer(Ce),d>0&&(this._timer=setTimeout(()=>{this._stopReason=this._stopReason||Q.timedout,this.stop()},d)),this._safety=new t.PublicSafety}get id(){return this._id}getId(){return this.id}getRootId(){return this._rootId}get stopReason(){return this._stopReason}error(n,i,o){this._safety.tryCatch(()=>{this._errorCount+=1,typeof n=="string"&&(n=new Error(n)),this._onError(n,this._getDetail(i,o))},{op:"activity.error"})}stop(n,i,o){this._safety.tryCatch(()=>{if(t.utility.requireArgumentIfDefined(n,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(i,"userData","object"),o){const u=o.perfStartOverride,d=t.utility.requireArgumentIfDefined(u,"options.perfStartOverride","number"),R=o.perfStopOverride,F=t.utility.requireArgumentIfDefined(R,"options.perfStopOverride","number"),Ce=o.errorCount;if(t.utility.requireArgumentIfDefined(Ce,"options.errorCount","number")&&(this._errorCount=Ce),d&&u<0)throw new Error("perfStartOverride, if defined, must be >= 0");if(F&&(R<0||R<(d?u:this._startPerfTime)||R>t.utility.time().perfNow+100))throw new Error("perfStopOverride, if defined, must be >= 0 and >= startTime and <= now")}this._stopInternal(n,i,o)},{op:"activity.stop"})}_overrideTimer(n,i){n!==void 0&&(this._startTimestamp=Math.round(this._startTimestamp-(this._startPerfTime-n)),this._startPerfTime=n,this._setTimerOverride(we.start)),i!==void 0&&(this._stopPerfTime=i,this._setTimerOverride(we.stop))}_setTimerOverride(n){this._timerOverridden===we.both||this._timerOverridden===n||n===we.none||(this._timerOverridden=this._timerOverridden===we.none?n:we.both)}_stopInternal(n,i,o){const u=t.utility.perfNow();if(this._usePerf)try{this._stopReason!==Q.discarded&&performance.measure(this._perfName,this._perfId),performance.clearMarks(this._perfId),performance.clearMeasures(this._perfName)}catch(R){}if(this._timer&&(clearTimeout(this._timer),this._timer=void 0),this.isStopped)return;o&&this._overrideTimer(o.perfStartOverride,o.perfStopOverride),this._stopPerfTime=this._timerOverridden===we.none||this._timerOverridden===we.start?u:this._stopPerfTime;const d=this._getDetail(n,i);this._onStopped(d)}get isStopped(){return this._stopPerfTime!==void 0}discard(){this._safety.tryCatch(()=>{this._stopReason=this._stopReason||Q.discarded,this.stop()},{op:"activity.discard"})}terminate(n,i,o){this._safety.tryCatch(()=>{this._stopReason=this._stopReason||Q.terminated,this.stop(n,i,o)},{op:"activity.terminate"})}getIsSampled(){return this._isSampled||!1}_getDetail(n,i){return{id:this._id,rootId:this._rootId,name:this._name,userSchemaOrText:n,userData:i,stopReason:this._stopReason,startTimestamp:this._startTimestamp,startPerfTime:this._startPerfTime,stopPerfTime:this._stopPerfTime,errorCount:this._errorCount,isSampled:this.getIsSampled(),timerOverridden:this._timerOverridden,noRerooting:this._noRerooting}}getTraceHeaders(n){const i=this.id,o=this._isRoot?this.id:this._rootId;return S.getHeaders(o,i,this.getIsSampled(),n)}getStartTimestamp(){return this._startTimestamp}getStartPerfTime(){return this._startPerfTime}getStopPerfTime(){return this._stopPerfTime}getErrorCount(){return this._errorCount}}a._count=0;const h=new Array(16).fill(0).join("");class p{getId(){return h}getRootId(){}error(){}stop(){}discard(){}terminate(){}getIsSampled(){return!1}getTraceHeaders(n){return{}}getStartTimestamp(){}getStartPerfTime(){}getStopPerfTime(){}getErrorCount(){return 0}}const x=Object.freeze(new p);class G{getInstrumentedEventData(n,i,o,u){var d;const R={ownerComponent:o.tagName,parentComponent:((d=o.parentElement)===null||d===void 0?void 0:d.tagName)||void 0,simplePath:t.utility.getXpath(o)};switch(n){case 0:R.baseEvent=i;break;case 1:R.mouseEvent=i;break}return u&&(R.userPayload=t.schemaUtil.makePayload(u.schema,u.payload,!0)),R}getEventData(n){return{type:n.type}}getMouseEventData(n){return{altKey:n.altKey,bubbles:n.bubbles,button:n.button,buttons:n.buttons,cancelable:n.cancelable,clientX:n.clientX,clientY:n.clientY,composed:n.composed,defaultPrevented:n.defaultPrevented,detail:n.detail,eventPhase:n.eventPhase,isTrusted:n.isTrusted,timeStamp:n.timeStamp,type:n.type,ctrlKey:n.ctrlKey,metaKey:n.metaKey,movementX:n.movementX,movementY:n.movementY,offsetX:n.offsetX,offsetY:n.offsetY,pageX:n.pageX,pageY:n.pageY,screenX:n.screenX,screenY:n.screenY,shiftKey:n.shiftKey}}}const _e=new G;class Le{constructor(n,i,o,u,d,R,F,Ce){this._name=n,this._ownerName=i,this._ownerAppName=o,this._tags=u,this._buckets=d,this._values=new Array,this._createdOn=R===void 0?t.utility.time().tsNow:R,F!==void 0&&(this._lastUpdatedOn=F),Ce!==void 0&&(this._values=Ce)}getName(){return this._name}getCreatedOn(){return this._createdOn}getLastUpdatedOn(){return this._lastUpdatedOn}getData(){return this.values}getBuckets(){return this.buckets}get buckets(){return this._buckets.slice(0,this._buckets.length)}get values(){return this._values.slice(0,this._values.length)}record(n){if(typeof n=="number"){this._values.push(n),this._lastUpdatedOn=t.utility.time().tsNow;return}throw new Error("BucketHistogram can only record numbers.")}reset(){this._lastUpdatedOn=void 0,this._values=[]}getOwnerName(){return this._ownerName}getOwnerAppName(){return this._ownerAppName}getTags(){return this._tags}}class Ie{constructor(n,i,o,u,d,R,F){this._name=n,this._ownerName=i,this._ownerAppName=o,this._tags=u,this._values=new Array,this._createdOn=d===void 0?t.utility.time().tsNow:d,R!==void 0&&(this._lastUpdatedOn=R),F!==void 0&&(this._values=F)}getName(){return this._name}getCreatedOn(){return this._createdOn}getLastUpdatedOn(){return this._lastUpdatedOn}getData(){return this.values}get values(){return this._values.slice(0,this._values.length)}record(n){if(typeof n=="number"){this._values.push(n),this._lastUpdatedOn=t.utility.time().tsNow;return}throw new Error("ValueRecorder can only record numbers.")}reset(){this._lastUpdatedOn=void 0,this._values=[]}getOwnerName(){return this._ownerName}getOwnerAppName(){return this._ownerAppName}getTags(){return this._tags}}class Se{constructor(n){if(this._map=new Map,typeof n=="number"&&n>0){this._maxSize=Math.ceil(n);return}throw new Error("maxSize must be a positive number")}get maxSize(){return this._maxSize}get(n){return this._map.get(n)}has(n){return this._map.has(n)}set(n,i){return this.has(n)||this._map.size(R[F]=i[F],R),{});return{key:`${me[o]}:${n}${JSON.stringify(u)}`,sortedTags:u}}}class Ge{constructor(){this.isMock=!0}}const Be=void 0,$e=["`"],qe={internalError:"o11y-error"},Xe=Object.freeze(Array.from(Object.values(qe)));class Ke{constructor(n,i){this._nextGen=n,this._name=i,this._onActivityStoppedCallback=this._handleActivityStop.bind(this),this._onActivityErrorCallback=this._handleActivityError.bind(this);for(const u of $e)if(this._name.indexOf(u)>=0)throw new Error(`Name cannot include the reserved character "${u}"`);this._safety=new t.PublicSafety({increment:u=>this._incrementError(u)}),this._metrics=this._initMetrics();const o=t.schemaUtil.getOptions(e.simpleSchema,"Simple","text");this._simpleTextMaxLength=o?o["(meta.max_length)"]:t.maxStringLengthAppLimit}_initMetrics(){return new Oe(this.name,()=>this._nextGen.appName||Ke.defaultAppName)}_incrementError(n=1){this._metrics.incrementCounter(qe.internalError,n,!0)}get name(){return this._name}_wrapUserPayload(n,i,o=!1){let u;return typeof n=="string"?(u=e.simpleSchema,n?i={text:n.substring(0,this._simpleTextMaxLength)}:i=void 0):u=n,t.schemaUtil.makePayload(u,i,o)}_getEffectiveRootId(n){var i,o;return(o=(i=n==null?void 0:n.instrumentationContext)===null||i===void 0?void 0:i.rootId)!==null&&o!==void 0?o:this._nextGen.getDefaultInstrumentationContext().rootId}get internalInstrumentationContext(){return this._nextGen.getDefaultInstrumentationContext()}log(n,i,o){this._safety.tryCatch(()=>{const u=t.utility.time().tsNow;t.utility.requireArgument(n,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(i,"userData","object"),t.utility.requireArgumentIfDefined(o,"options","object");const d=this._wrapUserPayload(n,i);(d==null?void 0:d.payload)&&this._logInternal(this.name,d.schema,d.payload,u,this._getEffectiveRootId(o))},{op:"log"})}_logInternal(n,i,o,u,d){const R=this._nextGen.addLog(n,i,o,u,d);if(!t.utility.isProduction){const F=t.payloadUtility.getExtraFields(i,o);!t.utility.isProduction&&F.length>0&&this.error("Extra fields",e.payloadDiagsSchema,{extras:F})}return R}error(n,i,o,u){return this._safety.tryCatch(()=>{t.utility.requireArgumentIfDefined(i,"userSchemaOrText",["object","string"]),t.utility.requireArgumentIfDefined(o,"userData","object"),t.utility.requireArgumentIfDefined(u,"options","object");const d=this._getEffectiveRootId(u);this._errorInternal(n,i,o,void 0,d)},{op:"error"})}_errorInternal(n,i,o,u,d){const R=t.utility.time().tsNow;let F;if(n instanceof Error)F=n;else{let ge;n==null||typeof n.toString!="function"?ge="UNKNOWN":ge=n.toString(),F=new Error(ge)}const Ce=this._wrapUserPayload(i,o,!0),Ee={name:F.name,message:F.message,stack:F.stack,userPayload:Ce,activityId:u};return this._logInternal(this.name,e.errorSchema,Ee,R,d)}startActivity(n,i){return this._safety.tryCatchReturn(()=>{var o;t.utility.requireArgument(n,"name"),t.utility.requireArgumentIfDefined(i,"options","object");let u,d=(i==null?void 0:i.perfStartOverride)!==void 0;const R=(o=i==null?void 0:i.instrumentationContext)===null||o===void 0?void 0:o.rootId;return R?(d=!0,u={rootId:R,isRootActivitySampled:i.instrumentationContext.isRootActivitySampled}):u=this._nextGen.getDefaultInstrumentationContext(),new a(n,u.rootId,this._onActivityStoppedCallback,this._onActivityErrorCallback,Be,i==null?void 0:i.id,u.isRootActivitySampled,i==null?void 0:i.perfStartOverride,d)},x,{op:"startActivity"})}_getActivityData(n){const i=this._wrapUserPayload(n.userSchemaOrText,n.userData,!0);return{id:n.id,name:n.name,duration:n.stopPerfTime-n.startPerfTime,stopReason:n.stopReason,userPayload:i,errorCount:n.errorCount,isSampled:n.isSampled,timerOverridden:n.timerOverridden,isRerooted:n.isRerooted}}_handleActivityStop(n){if(n.stopReason===ae)return;if(!n.isRoot&&!n.noRerooting){const o=this._nextGen.getRootActivityHistoryEntryByTime(n.startPerfTime);(!o&&n.rootId!==void 0||o&&n.rootId!==o.id)&&(n.rootId=o==null?void 0:o.id,n.isSampled=(o==null?void 0:o.isSampled)||!1,n.isRerooted=!0)}const i=this._getActivityData(n);this._logActivity(i,n.startTimestamp,n.rootId)}_logActivity(n,i,o){this._logInternal(this.name,e.activitySchema,n,i,o)}_handleActivityError(n,i){this._errorInternal(n,i.userSchemaOrText,i.userData,i.id,i.rootId)}domEvent(n,i,o,u,d){this._safety.tryCatch(()=>{var R;const F=t.utility.time().tsNow;t.utility.requireArgument(n,"event",[Event,Ge]),t.utility.requireArgument(i,"handledBy",[HTMLElement,"object"]);let Ce;i instanceof HTMLElement?Ce=i:(i=i,((R=i.template)===null||R===void 0?void 0:R.host)instanceof HTMLElement?Ce=i.template.host:t.utility.requireArgument(void 0,"handledBy"));const Ee=this._wrapUserPayload(o,u,!0),ge=this._getEffectiveRootId(d);switch(n.type){case"click":{const Ae=n,Me=this._nextGen.getClickTracker();Me&&Me.markEventHandled(Ae);const ve=d==null?void 0:d.captureMouseData,Ue=_e.getInstrumentedEventData(ve?1:0,ve?_e.getMouseEventData(Ae):_e.getEventData(Ae),Ce,Ee);Ue.auto=d==null?void 0:d._auto,this._logInternal(this.name,e.instrumentedEventSchema,Ue,F,ge);break}default:throw new Error(t.utility.notImplemented)}},{op:"domEvent"})}_siftTags(n){const i=Object.assign({},n);return Object.entries(i).forEach(([o,u])=>{if(u===null)i[o]="null";else if(u==="")i[o]="empty";else if(Number.isNaN(u))i[o]="NaN";else{const d=typeof u;["number","string","boolean"].indexOf(d)===-1&&(i[o]=d)}}),i}incrementCounter(n,i=1,o=!1,u={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Xe),t.utility.checkForReservedCharacters(n,"operation",$e),t.utility.requireArgument(i,"increment","number"),t.utility.requireArgument(o,"hasError","boolean"),t.utility.requireArgument(u,"tags","object"),this._metrics.incrementCounter(n,i,o,this._siftTags(u))},{op:"incrementCounter"})}trackValue(n,i,o=!1,u={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Xe),t.utility.checkForReservedCharacters(n,"operation",$e),t.utility.requireArgument(i,"value","number"),t.utility.requireArgument(o,"hasError","boolean"),t.utility.requireArgument(u,"tags","object"),this._metrics.trackValue(n,i,o,this._siftTags(u))},{op:"trackValue"})}bucketValue(n,i,o=[],u=!1,d={}){this._safety.tryCatch(()=>{t.utility.requireArgument(n,"operation","string"),t.utility.checkForDenyListedValues(n,"operation",Xe),t.utility.checkForReservedCharacters(n,"operation",$e),t.utility.requireArgument(i,"value","number"),t.utility.requireArgument(o,"buckets",Array),Object.entries(o).forEach(([R,F])=>{t.utility.requireArgument(F,`Bucket value for '${R}'`,"number")}),t.utility.requireArgument(u,"hasError","boolean"),t.utility.requireArgument(d,"tags","object"),this._metrics.bucketValue(n,i,o,u,this._siftTags(d))},{op:"bucketValue"})}getUpCounters(){return this._metrics.getUpCounters().filter(n=>n.getLastUpdatedOn())}getValueRecorders(){return this._metrics.getValueRecorders().filter(n=>n.getLastUpdatedOn())}getBucketHistograms(){return this._metrics.getBucketHistograms().filter(n=>n.getLastUpdatedOn())}registerForLogPrompt(n){t.utility.requireArgument(n,"listener","function"),this._nextGen.registerForLogPrompt(n)}_getAsaOptions(n){return n?Object.assign({instrumentationContext:n==null?void 0:n.instrumentationContext},n.startOptions):void 0}activity(n,i,o){var u,d,R,F;const Ce=this._getAsaOptions(o),Ee=this.startActivity(n,Ce);try{return i(Ee)}catch(ge){throw Ee.error(ge,(u=o==null?void 0:o.errorPayload)===null||u===void 0?void 0:u.schema,(d=o==null?void 0:o.errorPayload)===null||d===void 0?void 0:d.payload),ge}finally{Ee.stop((R=o==null?void 0:o.stopPayload)===null||R===void 0?void 0:R.schema,(F=o==null?void 0:o.stopPayload)===null||F===void 0?void 0:F.payload,o==null?void 0:o.stopOptions)}}async activityAsync(n,i,o){var u,d,R,F;const Ce=this._getAsaOptions(o),Ee=this.startActivity(n,Ce);try{return await i(Ee)}catch(ge){throw Ee.error(ge,(u=o==null?void 0:o.errorPayload)===null||u===void 0?void 0:u.schema,(d=o==null?void 0:o.errorPayload)===null||d===void 0?void 0:d.payload),ge}finally{Ee.stop((R=o==null?void 0:o.stopPayload)===null||R===void 0?void 0:R.schema,(F=o==null?void 0:o.stopPayload)===null||F===void 0?void 0:F.payload,o==null?void 0:o.stopOptions)}}}Ke.defaultAppName="APP_NOT_REGISTERED";const it=.1,bt=20;class ht{constructor(n){if(this._historyMap=new Map,this._historyList=new Array,t.utility.requireArgumentIfDefined(n,"limit","number")){if(n=Math.ceil(n),n<=0)throw new Error("Limit must be a positive number")}else n=bt;this._graceCount=Math.max(1,Math.floor(n*it)),this._realLimit=1+n+this._graceCount}add(n){if(this._historyMap.has(n.id))throw new Error(`RootActivityHistoryImpl.add: entry already exists for rootId: ${n.id}`);this._historyMap.set(n.id,n),this._historyList.push(n),this._historyList.length===this._realLimit&&this._historyList.splice(1,this._graceCount).forEach(o=>this._historyMap.delete(o.id))}get count(){return this._historyList.length}findById(n){return this._historyMap.get(n)}findByTime(n){let i,o=Number.MAX_VALUE;for(const u of this._historyList){const d=n-u.startPerfTime;d>=0&&(u.stopPerfTime===void 0||n{if(t.utility.requireArgument(n,"name"),(u==null?void 0:u.id)!==void 0)throw new Error("Cannot specify id for root activity, use rootId argument instead");const d=new dt(n,this._onRootActivityStoppedCallback,this._onActivityErrorCallback,i,o,u==null?void 0:u.perfStartOverride,this._nextGen.preferredRootIdLength);if(!this._allowMulti){const R={id:d.getId(),name:n,startPerfTime:d.getStartPerfTime(),isSampled:d.getIsSampled()};if(this._rootActivityHistory.add(R),this._singleRootActivity&&!this._singleRootActivity.isStopped){const F=this._singleRootActivity.getId();this._singleRootActivity.terminate(),d.preRootId=F}this._singleRootActivity=d}return d},b,{op:"startRootActivity"})}_handleRootActivityStop(n){const i=this._rootActivityHistory.findById(n.id);if(i&&(i.stopPerfTime=n.stopPerfTime,i.startPerfTime=n.startPerfTime),n.stopReason===ae)return;const o=this._getActivityData(n);this._logActivity(o,n.startTimestamp),this._singleRootActivity=void 0}_getActivityData(n){const i=super._getActivityData(n);return i.isRoot=n.isRoot,i.preRootId=n.preRootId,i}getSingleRootActivityId(){var n;return(n=this._singleRootActivity)===null||n===void 0?void 0:n.getId()}isSingleRootActivitySampled(){var n;return(n=this._singleRootActivity)===null||n===void 0?void 0:n.getIsSampled()}_initMetrics(){return new Oe(this.name,()=>this.name)}getRootActivityHistoryEntry(n){return this._rootActivityHistory.findByTime(n)}}const y=5;class D{constructor(n,i){this._instr=n,this._doc=i,this._isActive=!1,this._boundClickListener=this._clickListener.bind(this),t.utility.requireArgument(n,"_instr"),t.utility.requireArgument(i,"_doc")}activate(){this._isActive||(this._doc.addEventListener("click",this._boundClickListener,!0),this._isActive=!0)}deactivate(){this._isActive&&(this._doc.removeEventListener("click",this._boundClickListener,!0),this._isActive=!1)}markEventHandled(n){this._ignoredEvent=n}_clickListener(n){var i;let o=(i=n.composedPath)===null||i===void 0?void 0:i.call(n);(!o||!o.length)&&(o=n.path);const u=this._getClickableElement(o);u&&setTimeout(()=>{n!==this._ignoredEvent&&this._instr.domEvent(n,u,void 0,void 0,{_auto:!0})})}_getClickableElement(n){var i,o;const u=n?Math.min(n.length,y):0;for(let d=0;dthis.sendLog(n)),this._metricsBuffer.forEach(n=>this.sendMetrics(n)),this._logBuffer=void 0,this._metricsBuffer=void 0}}class Re{constructor(){this._upCounters=[],this._valueRecorders=[],this._bucketHistograms=[]}add(n){var i,o,u;((i=n.upCounters)===null||i===void 0?void 0:i.length)&&this._upCounters.push(...n.upCounters.map(d=>new t.UpCounterImpl(d.name,d.ownerName,d.ownerAppName,t.metricsUtility.getMetricsTags(d.tags),d.createdTimestamp,d.lastUpdatedTimestamp,d.value))),((o=n.valueRecorders)===null||o===void 0?void 0:o.length)&&this._valueRecorders.push(...n.valueRecorders.map(d=>new Ie(d.name,d.ownerName,d.ownerAppName,t.metricsUtility.getMetricsTags(d.tags),d.createdTimestamp,d.lastUpdatedTimestamp,d.values))),((u=n.bucketHistograms)===null||u===void 0?void 0:u.length)&&this._bucketHistograms.push(...n.bucketHistograms.map(d=>new Le(d.name,d.ownerName,d.ownerAppName,t.metricsUtility.getMetricsTags(d.tags),d.buckets,d.createdTimestamp,d.lastUpdatedTimestamp,d.values)))}getUpCounters(){return this._upCounters=this._upCounters.filter(n=>n.getLastUpdatedOn()!==void 0),this._upCounters}getValueRecorders(){return this._valueRecorders=this._valueRecorders.filter(n=>n.getLastUpdatedOn()!==void 0),this._valueRecorders}getBucketHistograms(){return this._bucketHistograms=this._bucketHistograms.filter(n=>n.getLastUpdatedOn()!==void 0),this._bucketHistograms}}const Te=1e3;class De{constructor(n,i){this._connector=n,this._pollInterval=Te,t.utility.requireArgument(n,"_connector","object"),t.utility.requireArgumentIfDefined(i,"_pollInterval","number")&&i>0&&(this._pollInterval=i)}collect(n,i,o){const u={schema:n,data:i,logMeta:o};this._connector.sendLog(u)}receiveMetricsExtractors(n){this._metricsExtractors=n,this._collectAndSendMetrics(),setInterval(this._collectAndSendMetrics.bind(this),this._pollInterval)}_collectAndSendMetrics(){const n={upCounters:t.metricsUtility.getUpCounters(this._metricsExtractors.getAllUpCounters()),valueRecorders:t.metricsUtility.getValueRecorders(this._metricsExtractors.getAllValueRecorders()),bucketHistograms:t.metricsUtility.getBucketHistograms(this._metricsExtractors.getAllBucketHistograms())};(n.upCounters.length||n.valueRecorders.length||n.bucketHistograms.length)&&this._connector.sendMetrics(n)}}const fe=80,ke=32,xe="_CUT",w=fe-xe.length;function re(){}class ue{get preferredRootIdLength(){return this._preferredRootIdLength}get pagePayloadProvider(){return this._pagePayloadProvider}set pagePayloadProvider(n){this._pagePayloadProvider=n}get appPayloadProvider(){return this._appPayloadProvider}set appPayloadProvider(n){this._appPayloadProvider=n}constructor(n){this._idleDetector=n,this._logCollectors=new Set,this._instruments=new Map,this._seqBySchema=new Map,this._sequence=0,this._forceDisabledLogCollectors=new Set,this._logCollectorFailures=new Map,this._isBufferingEnabled=!1,this._buffer=[],this._logCollectionListeners=new Set,this._opMode="default",this._isSender=!1,this._isReceiver=!1,this._decimalPoints=2}registerApp(n,i){var o,u;if(t.utility.requireArgument(n,"name","string"),this._appInstr)throw new Error("An app has already been registered with instrumentation.");if(this._instruments.get(n))throw new Error(`The instrumentation name ${n} is already taken`);if(t.co11y.setOwnerAppName(n),this._initOpMode(i==null?void 0:i.operationMode),this._isSender=this._opMode==="sender",this._isReceiver=this._opMode==="receiver",(i==null?void 0:i.decimalPoints)!==void 0&&(this._decimalPoints=i.decimalPoints),this._preferredRootIdLength=(o=i==null?void 0:i.preferredRootIdLength)!==null&&o!==void 0?o:ke,this._clientSessionId=((u=i==null?void 0:i.clientSessionId)===null||u===void 0?void 0:u.toString())||t.utility.generateUniqueId(),this._appInstr=new O(this,n,i==null?void 0:i.allowMultipleRootActivities),this._instruments.set(n,this._appInstr),this._isSender){const F=new De(new le(window,i==null?void 0:i.allowedReceiverOrigins),i==null?void 0:i.senderMetricsPollingInterval);this.registerLogCollector(F),this.registerMetricsCollector(F)}else this._isReceiver&&(this._metricsStore=new Re,this._receiverConnector=new X(F=>{F.logMeta.receiverClientSessionId=this._clientSessionId,F.logMeta.receiverRootId=this._appInstr.getSingleRootActivityId(),this._multiplex(F.schema,F.data,F.logMeta)},F=>{this._metricsStore.add(F)},()=>{this._appInstr.incrementCounter("o11y-error-receiver",1,!0)}));this._isBufferingEnabled=!this._isSender&&(i==null?void 0:i.enableBuffering);const R=new S(this.getInstrumentation("Network"),this._idleDetector);return{log:this._appInstr.log.bind(this._appInstr),error:this._appInstr.error.bind(this._appInstr),startActivity:this._appInstr.startActivity.bind(this._appInstr),domEvent:this._appInstr.domEvent.bind(this._appInstr),incrementCounter:this._appInstr.incrementCounter.bind(this._appInstr),trackValue:this._appInstr.trackValue.bind(this._appInstr),bucketValue:this._appInstr.bucketValue.bind(this._appInstr),networkInstrumentation:R.networkInstrumentation.bind(R),registerForLogPrompt:this._appInstr.registerForLogPrompt.bind(this._appInstr),activity:this._appInstr.activity.bind(this._appInstr),activityAsync:this._appInstr.activityAsync.bind(this._appInstr),startRootActivity:this._appInstr.startRootActivity.bind(this._appInstr),registerLogCollector:this._isSender?re:this.registerLogCollector.bind(this),registerMetricsCollector:this._isSender?re:this.registerMetricsCollector.bind(this),activateClickTracker:this.activateClickTracker.bind(this),deactivateClickTracker:this.deactivateClickTracker.bind(this),disableBuffering:this.disableBuffering.bind(this),promptLogCollection:this.promptLogCollection.bind(this),getClientSessionId:this.getClientSessionId.bind(this),getOperationMode:this.getOperationMode.bind(this),startReceiving:this._isReceiver?this._receiverConnector.openComms.bind(this._receiverConnector):re,stopReceiving:this._isReceiver?this._receiverConnector.closeComms.bind(this._receiverConnector):re}}getInstrumentation(n){t.utility.requireArgument(n,"name","string"),n.length>fe&&(n=n.substring(0,w)+xe);let i=this._instruments.get(n);if(!i)i=new Ke(this,n),this._instruments.set(n,i);else if(i===this._appInstr)throw new Error(`The instrumentation name ${n} is being used by the app.`);return i}get appName(){var n;return(n=this._appInstr)===null||n===void 0?void 0:n.name}getRootActivityHistoryEntryByTime(n){var i;return(i=this._appInstr)===null||i===void 0?void 0:i.getRootActivityHistoryEntry(n)}addLog(n,i,o,u,d){var R,F,Ce;t.payloadUtility.checkInputs(i,o),this._sequence+=1;const Ee=t.schemaUtil.isInternal(i),ge=Ee&&(o==null?void 0:o.userPayload)?o.userPayload.schema:i,Ae=t.schemaUtil.getSchemaId(ge);let Me=this._seqBySchema.get(Ae)||0;Me+=1,this._seqBySchema.set(Ae,Me);const ve={timestamp:u,rootId:d,sequence:this._sequence,schemaSequence:Me,loggerName:n,pagePayload:void 0,appPayload:void 0,loggerAppName:this.appName,connectionType:t.utility.getConnectionType(),clientSessionId:this._clientSessionId,age:t.utility.getAge(u)},Ue={schema:i,data:o,logMeta:ve};if(ve.pagePayload=t.payloadUtility.getPayloadFromProvider(this.pagePayloadProvider,Ue),ve.appPayload=t.payloadUtility.getPayloadFromProvider(this.appPayloadProvider,Ue),this._isSender||(o=t.utility.clone(o)),typeof this._decimalPoints=="number"&&(t.utility.roundNumbersInObject(o,this._decimalPoints),Ee&&t.utility.roundNumbersInObject((R=o.userPayload)===null||R===void 0?void 0:R.payload,this._decimalPoints),t.utility.roundNumbersInObject((F=ve.pagePayload)===null||F===void 0?void 0:F.payload,this._decimalPoints),t.utility.roundNumbersInObject((Ce=ve.appPayload)===null||Ce===void 0?void 0:Ce.payload,this._decimalPoints)),this._isBufferingEnabled){const We={schema:i,data:o,logMeta:ve};this._buffer.push(We)}return this._multiplex(i,o,ve),this._sequence}_multiplex(n,i,o){const u=Array.from(this._logCollectors).filter(d=>{var R;return!this._forceDisabledLogCollectors.has(d)&&!((R=d.getIsCollectDisabled)===null||R===void 0?void 0:R.call(d))});if(u.length>0)for(const d of u){let R=this._logCollectorFailures.get(d)||0;try{d.collect(n,i,o),R>0&&this._logCollectorFailures.set(d,R-1)}catch(F){R+=1,R>=ue._collectorFailureLimit?(this._forceDisabledLogCollectors.add(d),this._appInstr&&(typeof F=="string"||F instanceof Error)&&this._appInstr.error(F)):this._logCollectorFailures.set(d,R)}}}getBuffer(){return this._buffer}disableBuffering(){this._isBufferingEnabled=!1,this._buffer=[]}getClickTracker(){return this._autoClickTracker}getDefaultInstrumentationContext(){var n,i;return{rootId:(n=this._appInstr)===null||n===void 0?void 0:n.getSingleRootActivityId(),isRootActivitySampled:(i=this._appInstr)===null||i===void 0?void 0:i.isSingleRootActivitySampled()}}activateClickTracker(){typeof document!="undefined"&&(this._autoClickTracker||(this._autoClickTracker=new D(this._appInstr,document)),this._autoClickTracker.activate())}deactivateClickTracker(){this._autoClickTracker&&(this._autoClickTracker.deactivate(),this._autoClickTracker=void 0)}registerLogCollector(n,i){if(t.utility.requireArgument(n,"collector"),!this._logCollectors.has(n)&&(this._logCollectors.add(n),this._logCollectorFailures.set(n,0),(!n.getIsCollectDisabled||!n.getIsCollectDisabled())&&(i==null?void 0:i.retroactive)))for(const o of this._buffer)n.collect(o.schema,o.data,o.logMeta)}registerMetricsCollector(n){if(t.utility.requireArgument(n,"collector"),this._metricsCollector)throw new Error("A metrics Collector is already registered.");this._metricsCollector=n,this._metricsCollector.receiveMetricsExtractors({getAllUpCounters:this._getAllUpCounters.bind(this),getAllValueRecorders:this._getAllValueRecorders.bind(this),getAllBucketHistograms:this._getAllBucketHistograms.bind(this)})}_getAllUpCounters(){var n;return(((n=this._metricsStore)===null||n===void 0?void 0:n.getUpCounters())||[]).concat(Array.from(this._instruments.values()).map(i=>i.getUpCounters()).flat()).concat(t.co11y.getUpCounters())}_getAllValueRecorders(){var n;return(((n=this._metricsStore)===null||n===void 0?void 0:n.getValueRecorders())||[]).concat(Array.from(this._instruments.values()).map(i=>i.getValueRecorders()).flat()).concat(t.co11y.getValueRecorders())}_getAllBucketHistograms(){var n;return(((n=this._metricsStore)===null||n===void 0?void 0:n.getBucketHistograms())||[]).concat(Array.from(this._instruments.values()).map(i=>i.getBucketHistograms()).flat()).concat(t.co11y.getBucketHistograms())}registerForLogPrompt(n){this._logCollectionListeners.add(n)}promptLogCollection(n){for(const i of this._logCollectionListeners.keys())try{i(n)}catch(o){if(!t.utility.isProduction)throw o}}getClientSessionId(){return this._clientSessionId}_initOpMode(n){if(typeof n=="function"&&(n=n()),(n===void 0||typeof window!="object")&&(n="default"),["default","receiver","sender"].indexOf(n)>=0)this._opMode=n;else throw new Error(`Invalid operation mode: ${n}`)}getOperationMode(){return this._opMode}}ue._collectorFailureLimit=5;class Z{get _lazyNextGen(){return this._nextgen||(this._nextgen=new ue(this._idleDetector)),this._nextgen}constructor(n){this._idleDetector=n,t.utility.requireArgument(n,"_idleDetector")}registerInstrumentedApp(n,i){const o=this._lazyNextGen.registerApp(n,i);return i&&(t.utility.markProduction(i.isProduction),this._nextgen.appPayloadProvider=i.appPayloadProvider,this._nextgen.pagePayloadProvider=i.pagePayloadProvider),o}getInstrumentation(n){return this._lazyNextGen.getInstrumentation(n)}}const Fe=t.utility.time.bind(t.utility),ot="sfcore.customCmp.CustomComponentLog",st={Error:"Crimson",Activity:"CadetBlue",InstrumentedEvent:"DarkOliveGreen",O11ySample:"BlueViolet"},et={Error:"white",Activity:"white",InstrumentedEvent:"white",O11ySample:"white"},lt="black",pt="Gainsboro";class Qe{constructor(n){this._simpleFilters=new Set,this._regexFilters=[],n&&this._log("ConsoleCollector",n)}collect(n,i,o){const u=t.schemaUtil.getSchemaId(n);if(!this._shouldLog(u))return;if(u===ot){this._logCustom(i);return}let d,R,F;t.schemaUtil.isInternal(n)?(d=n.name,R=et[n.name]||lt,F=st[n.name]||pt):d=u,this._log(d,i,o,R,F)}_shouldLog(n){return this._simpleFilters.size==0&&this._regexFilters.length==0?!0:this._simpleFilters.has(n)||this._regexFilters.some(i=>i.test(n))}addFilter(n){n instanceof RegExp?this._regexFilters.push(n):this._simpleFilters.add(n)}removeFilter(n){if(n instanceof RegExp){const i=this._regexFilters.findIndex(o=>o.source===n.source);i>=0&&this._regexFilters.splice(i,1)}else this._simpleFilters.delete(n)}clearFilters(){this._simpleFilters.clear(),this._regexFilters.splice(0,this._regexFilters.length)}getFilters(){return Array.from(this._simpleFilters).concat(this._regexFilters).sort()}_log(n,i,o,u=lt,d=pt){const R=`color:${u};background-color:${d}`;console.log(`%cO11Y%c ${n}`,"color:white;background-color:#FF6600;font-weight:bold",R,i||"",o||"")}_logCustom(n){console.log("%clightning/logger","color:white;background-color:#00a1e0;font-weight:bold",n||"")}}const gt="254.5.0",ct=new H({logThreshold:300,reportListener:Pe=>{yt==null||yt.log(e.idleDetectorReportSchema,Pe)},errorListener:(Pe,n)=>{yt==null||yt.error(Pe,n)}}),at=new Z(ct),At=at.registerInstrumentedApp.bind(at),Ot=at.getInstrumentation.bind(at),yt=Ot("IdleDetector");r.ConsoleCollector=Qe,r._version=gt,r.getInstrumentation=Ot,r.idleDetector=ct,r.registerInstrumentedApp=At,r.time=Fe,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("o11y/client",["exports","o11y/client/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/o11y/v/1",["exports"],function(r){"use strict";const e={};r._o11y=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/o11y",["exports","webruntime/o11y/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/expressions/v/1",["exports"],function(r){"use strict";let e;const t="1970-01-01T",P="T00:00:00",E="provider",H="providers";function j(A){return A!==null&&typeof A=="object"}function I(A){try{const $=A?.indexOf(":")>-1,z=A?.indexOf("-")>-1;return A===""||!$&&!z?null:(typeof A=="string"&&(z||(A=t+A),$||(A=A+P),A=A.trim().replace(" ","T"),A.endsWith("Z")||(A+="Z")),new Date(A))}catch($){return null}}function c(A){try{const $=A(),z=Reflect.get(this,H);for(const ce of z)if(!ce?.hasData?.())throw new Error;return $??null}catch($){return}}function m(A){return j(this)&&(Reflect.set(this,E,A),Reflect.get(this,H).push(A)),A?.getData?.()}function s(A={},$){if(!!A&&Object.prototype.hasOwnProperty.call(A,$))return A[$]}function l(A,$){Array.isArray(A)||(A=[A]);const z=A.filter($);if(!!z.length)return z.length===1?z[0]:z}function g(A,$){if(j(this)&&Reflect.has(this,E)){const z=Reflect.get(this,E);if(Reflect.deleteProperty(this,E),!z?.hasData?.($))throw new Error;const ce=Reflect.get(this,H);ce.indexOf(z)>=0&&ce.splice(ce.indexOf(z),1)}return typeof $=="string"&&Array.isArray(A)?(A=A.map(z=>z[$]).filter(z=>z!==void 0),A.length===0?void 0:A.length===1?A[0]:A):A?.[$]}function L(){}const _={toDate(A){if(A!=null){const $=I(A)?.setUTCHours(0,0,0,0);if($!==void 0&&!isNaN($))return new Date($)}return null},toTime(A){if(A!=null){const $=I(A)?.setUTCFullYear(1970,0,1);if($!==void 0&&!isNaN($))return new Date($)}return null},toDatetime(A){return A!=null?I(A):null},isBlank(A){return!A&&typeof A!="number"},contains(A,$){return A!=null?A.includes($):!1},begins(A,$){return $==null?!0:A!=null?A.toString().startsWith($.toString()):!1}},C=(...A)=>(e={[H]:[],[E]:null},c.apply(e,A)),T=(...A)=>m.apply(e,A),k=(...A)=>g.apply(e,A),N=(...A)=>s.apply(e,A),U=(...A)=>l.apply(e,A),K=(...A)=>L.apply(e,A);r.EXPR_CLOSURE=C,r.EXPR_FILTER=U,r.EXPR_FUNCTION=K,r.EXPR_GLOBAL=N,r.EXPR_MEMBER=k,r.EXPR_PROVIDER=T,r.EXPR_RUNTIME=_,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/expressions",["exports","webruntime/expressions/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/routerContainer/v/1",["exports","lwc/v/8_10_1","webruntime/errors/v/1_66_890","lwr/navigation/v/0_15_5","webruntime/routingService/v/1","webruntime/defaultView/v/1_66_890"],function(r,e,t,P,E,H){"use strict";function j(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var I=j(H),c=void 0;class m extends e.LightningElement{constructor(...g){super(...g);this.view=void 0,this._routeParams=void 0,this.generatedTemplateHtml=void 0,this.previousRouteParams={},this.requiredParameters=["contentTypeName","name","objectApiName","recordId","relationshipApiName","term","urlAlias"],this.attributes={},this.route={}}get routeParams(){return this._routeParams||{}}set routeParams(g){this._routeParams=g}render(){return this.generatedTemplateHtml}connectedCallback(){const g=this.view||I.default;this.generatedTemplateHtml=g.html,this.attributes=g.attributes(this,this.routeParams),this.subscription=E.subscribe(this.routeChange.bind(this))}viewChange(g){E.handleExtraRouteParams(this.route),this.generatedTemplateHtml=g.html;const{state:L,attributes:_}=this.route;this._routeParams={...L,..._},this.attributes=g.attributes(this,this.routeParams)}routeChange(g){this.route=g.route||null}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}errorCallback(g,L){t.reportError({subject:"router level error",error:g,wcstack:L})}}m.renderMode="light",e.registerDecorators(m,{publicProps:{view:{config:0},routeParams:{config:3}},wire:{viewChange:{adapter:P.CurrentView,method:1,config:function(l){return{}}}},fields:["_routeParams","generatedTemplateHtml","previousRouteParams","requiredParameters","attributes","route"]});const s=e.registerComponent(m,{tmpl:c,sel:"webruntime-router-container",apiVersion:63});r.default=s,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/routerContainer",["exports","webruntime/routerContainer/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/componentContainer/v/1",["exports","lwc/v/8_10_1"],function(r,e){"use strict";function t(s,l,g){var L=s?"."+s+"-host":"";return(l?":host {":L+" {")+"display: flow-root;}"}t.$scoped$=!0;var P=[t];const E={key:0},H=[];function j(s,l,g,L){const{s:_}=s;return[_("",E,H,g)]}var I=e.registerTemplate(j);j.slots=[""],j.renderMode="light",j.stylesheets=[],j.stylesheetToken="lwc-4k1qbp7cls1",j.legacyStylesheetToken="webruntime-componentContainer_componentContainer",P&&j.stylesheets.push.apply(j.stylesheets,P),e.freezeTemplate(j);class c extends e.LightningElement{}c.renderMode="light";const m=e.registerComponent(c,{tmpl:I,sel:"webruntime-component-container",apiVersion:63});r.default=m,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/componentContainer",["exports","webruntime/componentContainer/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/sessionValidator/v/1",["exports","lwr/loaderLegacy/v/0_15_5","lwc/v/8_10_1","@app/isDesignMode/v/1","@app/isPreviewMode/v/1","@app/basePath/v/1","webruntime/routingService/v/1","webruntime/logger/v/1_66_890"],function(r,e,t,P,E,H,j,I){"use strict";function c(ae){return ae&&typeof ae=="object"&&"default"in ae?ae:{default:ae}}var m=c(P),s=c(E),l=c(H);function g(ae,Q,a){var h=ae?"["+ae+"-host]":"";return(Q?":host {":h+" {")+"display: none;}"}var L=[g];const _=t.parseFragment``;function C(ae,Q,a,h){const{d:p,b:x,sp:G,st:se,fr:_e}=ae,{_m0:Le}=h;return[Q.showSessionWarning?_e(0,[se(_,2,[G(5,{attrs:{"xlink:href":t.sanitizeAttribute("use","http://www.w3.org/2000/svg","xlink:href",Q.userIconUrl)}},null),G(7,null,p(Q.invalidSessionToastMessage)),G(9,{on:Le||(h._m0={click:x(Q.dismissAlert)})},null),G(11,{attrs:{"xlink:href":t.sanitizeAttribute("use","http://www.w3.org/2000/svg","xlink:href",Q.closeIconUrl)}},null),G(13,null,p(Q.closeMessage))])],0):null]}var T=t.registerTemplate(C);C.renderMode="light",C.stylesheets=[],C.stylesheetToken="lwc-9mrm67ji1u",C.legacyStylesheetToken="webruntime-sessionValidator_sessionValidator",L&&C.stylesheets.push.apply(C.stylesheets,L),t.freezeTemplate(C);const k="/sfsites/c/_nc_external/system/security/session/SessionTimeServlet";function N(){const ae=new XMLHttpRequest,Q=new Date().getTime(),a=`${l.default}${k}?buster=${Q}`;return new Promise((h,p)=>{ae.open("GET",a,!0),ae.onload=()=>{if(ae.readyState===ae.DONE){const x=K(ae.responseText);x.sr=Number(x.sr),h(x)}else I.logError("Received null or invalid session time"),p("Received null or invalid session time")},ae.send()})}function U(){const ae=new XMLHttpRequest,Q=new Date().getTime(),a=`${k}?buster=${Q}&updateTimedOutSession=true`;return new Promise((h,p)=>{ae.open("GET",a,!0),ae.onload=()=>{if(ae.readyState===ae.DONE){const x=K(ae.responseText);x.sr=Number(x.sr),h(x)}else I.logError("Error extending user session time"),p("Error extending user session time")},ae.send()})}function K(ae){if(!ae)return{sp:-1,sr:-1};let Q=ae.replace(/\r/g,` `);return Q.indexOf("=0&&(Q=Q.replace(/^]*>/,"").replace(/<\/pre>$/,"")),Q.indexOf("=0&&(Q=Q.replace(/]*>/,"").replace(/<\/textarea>$/,"")),A(Q)}function A(ae){const Q=`while(1); `;if(typeof ae!="string")return null;ae.substring(0,Q.length)===Q&&(ae=$(ae));try{return JSON.parse(ae)}catch(a){return I.logError(`Exception while parsing the String: ${ae}`,a),null}}function $(ae){const Q=`while(1); `,a=[Q,Q.replace(` `,"")];for(let h=0;hthis.checkSession(),a)}async processTimeoutResponse(){this.timeLeftInSession<0?(await N()).sr<0&&this.handleLogout():this.warningTimeBeforeSessionTimeout>0&&this.timeLeftInSession<=this.warningTimeBeforeSessionTimeout?(this.handleWarning(),this.scheduleCheckSession(!0)):this.scheduleCheckSession(!1)}handleLogout(){clearTimeout(this.timeoutID),this.timeoutID=0;const Q=j.getCurrentRoute().url;we.test(Q)||j.navigate({type:"comm__loginPage",attributes:{actionName:"logout"},state:{startUrl:`${Q}&${S}`}})}async handleWarning(){this.timeLeftInSession>0&&confirm(this.sessionWarningMessage)&&(await U()).sp<0&&this.handleLogout()}showExpiredSessionMessage(){const Q=window.location.origin+l.default;this.closeIconUrl=Q.concat(z),this.userIconUrl=Q.concat(ce),this.showSessionWarning=!0}get warningTimeBeforeSessionTimeout(){const Q=Number(this.sessionWarningTime);return isNaN(Q)?0:Q}dismissAlert(){this.showSessionWarning=!1}disconnectedCallback(){this.routeChangeSubscription?.unsubscribe(),clearTimeout(this.timeoutID)}}oe.renderMode="light",t.registerDecorators(oe,{publicProps:{sessionWarningMessage:{config:0},sessionWarningTime:{config:0},invalidSessionToastMessage:{config:0},closeMessage:{config:0}},fields:["route","routeChangeSubscription","timeLeftInSession","timeoutID","showSessionWarning","closeIconUrl","userIconUrl"]});const je=t.registerComponent(oe,{tmpl:T,sel:"webruntime-session-validator",apiVersion:63});r.default=je,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/sessionValidator",["exports","webruntime/sessionValidator/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/slotContainer/v/1",["exports","lwc/v/8_10_1"],function(r,e){"use strict";const t=[];function P(I,c,m,s){const{s:l}=I;return[c.isVisible?l("",{key:0,slotData:c.variations},t,m):null]}var E=e.registerTemplate(P);P.slots=[""],P.renderMode="light",P.stylesheets=[],P.stylesheetToken="lwc-769n4j124ma",P.legacyStylesheetToken="webruntime-slotContainer_slotContainer",e.freezeTemplate(P);class H extends e.LightningElement{constructor(...c){super(...c);this.visibilityExpression=void 0,this.hidden=void 0,this.variationExpressions=void 0}get isVisible(){return this.hidden?!this.visibilityExpression:this.visibilityExpression}get variations(){const c={},m=!!this.variationExpressions?.find(g=>g===!0),s=this.variationExpressions?.findIndex(g=>g===!0),l=this.variationExpressions?.findIndex(g=>typeof g=="undefined")!==-1;return this.variationExpressions?.forEach(function(g,L){const _=`variation${L+1}`;l||m&&s!==L?c[_]=!1:g===!0?c[_]=!0:(typeof g=="undefined",c[_]=!1)}),c.variation0=!m&&!l,c}}H.renderMode="light",e.registerDecorators(H,{publicProps:{visibilityExpression:{config:0},hidden:{config:0},variationExpressions:{config:0}}});const j=e.registerComponent(H,{tmpl:E,sel:"webruntime-slot-container",apiVersion:63});r.default=j,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/slotContainer",["exports","webruntime/slotContainer/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/visibilityContainer/v/1",["exports","lwr/loaderLegacy/v/0_15_5","lwc/v/8_10_1","@app/isDesignMode/v/1"],function(r,e,t,P){"use strict";function E(_){return _&&typeof _=="object"&&"default"in _?_:{default:_}}var H=E(P);function j(_,C,T){var k=_?"."+_+"-host":"";return"@media only screen and (max-width: 47.9375em) {"+(C?":host.webruntime-visibility-container.dxp-sm-hide {":k+".webruntime-visibility-container.dxp-sm-hide {")+"display: none;}}@media only screen and (min-width: 48em) and (max-width: 64em) {"+(C?":host.webruntime-visibility-container.dxp-md-hide {":k+".webruntime-visibility-container.dxp-md-hide {")+"display: none;}}@media only screen and (min-width: 64.0625em) {"+(C?":host.webruntime-visibility-container.dxp-lg-hide {":k+".webruntime-visibility-container.dxp-lg-hide {")+"display: none;}}"}j.$scoped$=!0;var I=[j];const c={key:0},m=[];function s(_,C,T,k){const{s:N}=_;return[C.hidden?null:N("",c,m,T)]}var l=t.registerTemplate(s);s.slots=[""],s.renderMode="light",s.stylesheets=[],s.stylesheetToken="lwc-7ethp7o0ig8",s.legacyStylesheetToken="webruntime-visibilityContainer_visibilityContainer",I&&s.stylesheets.push.apply(s.stylesheets,I),t.freezeTemplate(s);class g extends t.LightningElement{constructor(...C){super(...C);this.hiddenInDesktop=!1,this.hiddenInTablet=!1,this.hiddenInMobile=!1,this.hidden=!0}connectedCallback(){const C={Small:{isHidden:this.hiddenInMobile,mediaQuery:"only screen and (max-width: 47.9375em)",class:"dxp-sm-hide"},Medium:{isHidden:this.hiddenInTablet,mediaQuery:"only screen and (min-width: 48em) and (max-width: 64em)",class:"dxp-md-hide"},Large:{isHidden:this.hiddenInDesktop,mediaQuery:"only screen and (min-width: 64.0625em)",class:"dxp-lg-hide"}};let T="";Object.values(C).forEach(k=>{k.isHidden?this.classList.add(k.class):T+=T?`, ${k.mediaQuery}`:k.mediaQuery}),H.default?this.classList.add("interactions-element","webruntime-design-visibility-container"):this.classList.add("webruntime-visibility-container"),e.load("webruntime/formFactor/v/1").then(({getFormFactor:k})=>{if(typeof window!="undefined"&&!H.default&&C[k()].isHidden){if(T){const N=window.matchMedia(T),U=K=>{K.matches&&(this.hidden=!1,N.removeEventListener("change",U))};N.addEventListener("change",U)}}else this.hidden=!1})}}g.renderMode="light",g.validationOptOut=["class"],t.registerDecorators(g,{publicProps:{hiddenInDesktop:{config:0},hiddenInTablet:{config:0},hiddenInMobile:{config:0}},track:{hidden:1}});const L=t.registerComponent(g,{tmpl:l,sel:"webruntime-visibility-container",apiVersion:63});r.default=L,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/visibilityContainer",["exports","webruntime/visibilityContainer/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/viewchangeNotifier/v/1",["exports","lwc/v/8_10_1","lwr/navigation/v/0_15_5","@app/deployTarget/v/1","webruntime/routingService/v/1"],function(r,e,t,P,E){"use strict";function H(C){return C&&typeof C=="object"&&"default"in C?C:{default:C}}var j=H(P);const I=e.parseFragment`
`;function c(C,T,k,N){const{sp:U,st:K}=C;return[K(I,1,[U(0,{attrs:{"data-route":T.routeParamString}},null)])]}var m=e.registerTemplate(c);c.renderMode="light",c.stylesheets=[],c.stylesheetToken="lwc-1j18phjg883",c.legacyStylesheetToken="webruntime-viewchangeNotifier_viewchangeNotifier",e.freezeTemplate(c);const s=["contentTypeName","name","objectApiName","recordId","relationshipApiName","term","urlAlias"];function l(C){return Object.keys(C).reduce((T,k)=>(s.includes(k)&&(T[k]=C[k]),T),{})}function g(C,T){return C===T?!0:!C||!T?!1:Object.keys(C).length===Object.keys(T).length&&Object.entries(T).every(([k,N])=>C[k]===N)}class L extends e.LightningElement{constructor(...T){super(...T);this.routeChangeSubscription=void 0,this.route=void 0,this.routeParams=void 0,this.previousRouteParams=void 0}connectedCallback(){j.default==="MRT"&&requestAnimationFrame(()=>{this.route=E.getCurrentRoute().route,this.updateRouteParams()}),this.routeChangeSubscription=E.subscribe(this.routeChange.bind(this))}routeChange(T){this.route=T.route}viewChange(){this.updateRouteParams()}updateRouteParams(){const{state:T,attributes:k}=this.route||{};this.routeParams=l({...T,...k})}renderedCallback(){!this.routeParams||(!E.isCurrentRouteCanonicallyRedirected()&&!g(this.previousRouteParams,this.routeParams)&&this.dispatchEvent(new CustomEvent("viewchange",{bubbles:!0,composed:!0,detail:{route:this.route}})),this.previousRouteParams=this.routeParams)}disconnectedCallback(){this.routeChangeSubscription?.unsubscribe()}get routeParamString(){return window.btoa(encodeURIComponent(JSON.stringify(this.routeParams)))}}L.renderMode="light",e.registerDecorators(L,{wire:{viewChange:{adapter:t.CurrentView,method:1,config:function(C){return{}}}},fields:["routeChangeSubscription","route","routeParams","previousRouteParams"]});const _=e.registerComponent(L,{tmpl:m,sel:"webruntime-viewchange-notifier",apiVersion:63});r.default=_,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/viewchangeNotifier",["exports","webruntime/viewchangeNotifier/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/analyticsEvents/v/1_66_890",["exports"],function(r){"use strict";class e{constructor(){this.hasTriggered=!1,this.hasAddedListener=!1,this.trigger=()=>this._trigger()}_trigger(){if(!this.hasTriggered){const P=document.documentElement.scrollTop||document.body.scrollTop,E=document.documentElement.scrollHeight||document.body.scrollHeight;P/(E-document.documentElement.clientHeight)*100>=90&&(document.dispatchEvent(new CustomEvent("experience_interaction",{bubbles:!0,composed:!0,detail:{name:"page-scroll-to-bottom"}})),this.hasTriggered=!0)}}addListener(){this.hasAddedListener||document.addEventListener("scroll",this.trigger),this.hasAddedListener=!0,this.hasTriggered=!1}removeListener(){document.removeEventListener("scroll",this.trigger),this.hasAddedListener=!1}}r.ScrollToBottomEvent=e,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/analyticsEvents",["exports","webruntime/analyticsEvents/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/pageDataLayerObject/v/1",["exports","lwc/v/8_10_1","experience/dataLayerObject/v/250_25_0","webruntime/analyticsEvents/v/1_66_890"],function(r,e,t,P){"use strict";function E(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var H=E(t);function j(s,l,g,L){const{c:_}=s;return[_("experience-data-layer-object",H.default,{props:{scriptDataAttributes:l.pageDataForDataLayer.scriptDataAttributes,customObject:l.pageDataForDataLayer.customObject},key:0})]}var I=e.registerTemplate(j);j.renderMode="light",j.stylesheets=[],j.stylesheetToken="lwc-1k5dp68c4pi",j.legacyStylesheetToken="webruntime-pageDataLayerObject_pageDataLayerObject",e.freezeTemplate(j);class c extends e.LightningElement{constructor(...l){super(...l);this.handleViewChanged=g=>this._handleViewChanged(g),this.pageDataForDataLayer={scriptDataAttributes:{providerType:"page"}},this.scrollToBottomEvent=new P.ScrollToBottomEvent}connectedCallback(){document.addEventListener("viewchange",this.handleViewChanged)}disconnectedCallback(){document.removeEventListener("viewchange",this.handleViewChanged),this.scrollToBottomEvent.removeListener()}renderedCallback(){this.pageDataForDataLayer?.customObject&&this.dispatchEvent(new CustomEvent("experience_interaction",{bubbles:!0,composed:!0,detail:{name:"page-view"}}))}_handleViewChanged(l){const g=l.detail?.route?.attributes?.recordId,L=l.detail?.route?.attributes?.contentTypeName,_=l.detail?.route?.attributes?.urlAlias,C=l.detail?.route?.attributes?.contentKey,T={type:l.detail?.route?.pageReference?.type,url:window.location.href,urlReferrer:this.pageDataForDataLayer?.customObject?.url||document.referrer,...g?{recordId:g}:{},...L?{contentTypeName:L}:{},..._?{urlAlias:_}:{},...C?{contentKey:C}:{}};this.pageDataForDataLayer={...this.pageDataForDataLayer,customObject:T},this.scrollToBottomEvent.addListener()}}c.renderMode="light",e.registerDecorators(c,{fields:["handleViewChanged","pageDataForDataLayer","scrollToBottomEvent"]});const m=e.registerComponent(c,{tmpl:I,sel:"webruntime-page-data-layer-object",apiVersion:63});r.default=m,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/pageDataLayerObject",["exports","webruntime/pageDataLayerObject/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/serverRouter/v/0_15_5",["exports","lwr/contextProvider/v/0_15_5","lwr/metrics/v/0_15_5","lwr/navigation/v/0_15_5","lwr/navigationMixinHacks/v/0_15_5","lwr/profiler/v/0_15_5","lwr/router/v/0_15_5","lwr/routerErrors/v/0_15_5","lwr/routerUtils/v/0_15_5"],function(r,e,t,P,E,H,j,I,c){"use strict";class m{constructor(g,L,_){this.contextId=Object.freeze(()=>{}),this.router=L,this.target=_,this.handleNavHook=g.handleNavigation,this.preNavHook=g.preNavigate,this.errorNavHook=g.errorNavigate,this.initWires(g.url)}async navigate(g,L,_){if(c.hasDocument){if(this.handleNavHook&&!this.handleNavHook(g))return;const C=await this.getValidatedUrl(g,_);C&&(document.location.href=C)}}generateUrl(g,L){return this.router.generateUrl(g,L)}initWires(g){if(!g&&c.hasDocument&&(g=document.location.href),!g){this.processError(I.generateMessageObject(I.messages.NO_INIT_URL));return}g=this.getRelativeUrl(g),this.currentRoute=this.router.matchRoute(g,{})||void 0,P.registerNavigationHelm(this.contextId,{navigate:(L,_,C)=>this.navigate(L,_,C),generateUrl:(L,_)=>this.generateUrl(L,_),subscribe:()=>{throw new Error("The server router does not support the subscribe API")}}),e.provideContext(this.contextId,this.target,e.navigationContextContextualizer,P.NavigationContext),e.provideContext(this.currentRoute?.route.pageReference,this.target,e.currentPageReferenceContextualizer,P.CurrentPageReference),c.hasDocument&&this.target.addEventListener(E.CONTEXT_ID_BACKDOOR,L=>{const _=L;_.detail.callback&&_.detail.callback(this.contextId)})}getRelativeUrl(g){if(g.startsWith("http")){const L=new URL(g);return`${L.pathname}${L.search}`}return g}async getValidatedUrl(g,L){const _=this.router.matchRoute(g,{});if(!_){this.processError(I.generateMessageObject(I.messages.NO_ROUTE_MATCH,[JSON.stringify(g)]));return}if(!(this.preNavHook&&await this.preNavHook({current:this.currentRoute,next:_}))){this.processError(I.generateMessageObject(I.messages.PRENAV_FAILED,[JSON.stringify(g)]));return}return this.router.generateUrl(g,L)}processError(g){H.logOperationStart({id:t.ROUTER_ERROR}),this.errorNavHook&&this.errorNavHook(g)}}function s(l,g){new m(l,j.createRouter(l),g)}r.ServerRouter=m,r.createServerRouter=s,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/serverRouter",["exports","lwr/serverRouter/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("lwr/router/v/0_15_5",["exports","lwr/routerUtils/v/0_15_5","lwr/routerErrors/v/0_15_5","lwr/observable/v/0_15_5"],function(r,e,t,P){"use strict";class E{constructor(I){this.deprecatedConfig={},this.routeHandlerId=0,this.compiledRoutes=[],this.routeObservable=P.createObservable(),this.config={basePath:I.basePath||"",i18n:I.i18n||e.DEFAULT_I18N_ROUTER_CONFIG,caseSensitive:Boolean(I.caseSensitive),routes:I.routes||[],generateUrl:(s,l)=>e.getUrlFromPageReference(s,this.compiledRoutes,this.config.basePath,this.config.i18n,l),parseUrl:s=>e.getPageReferenceFromUrl(s,this.compiledRoutes,this.config.basePath,this.config.i18n)};const{DEPRECATED_getRouteFromUrl:c,DEPRECATED_getUrlFromRoute:m}=I;c&&(this.deprecatedConfig.DEPRECATED_getRouteFromUrl=c),m&&(this.deprecatedConfig.DEPRECATED_getUrlFromRoute=m),this.compiledRoutes=e.parseRoutes(this.config)}generateUrl(I,c){const{DEPRECATED_getUrlFromRoute:m}=this.deprecatedConfig;return m?m(I,this.config.generateUrl,c):this.config.generateUrl(I,c)}parseUrl(I){const{DEPRECATED_getRouteFromUrl:c}=this.deprecatedConfig;return c?c(I,this.config.parseUrl):this.config.parseUrl(I)}matchRoute(I,c){const m=typeof I=="string"?I:this.generateUrl(I,c);if(m===null)return null;const s=e.matchRouteByUrl(m,this.compiledRoutes,this.config.basePath,this.config.i18n,c),l=s&&e.getUrlFromPageReferenceAndRouteDef(s.route.pageReference,s.routeDefinition,this.config.basePath,this.config.i18n,c);return!s||!l?null:{pathMatch:l,route:s.route,routeDefinition:s.routeDefinition.original}}async resolveView(I,c){return new Promise((m,s)=>{const l=this.matchRoute(I,c);return l?l.routeDefinition.handler?.().then(g=>{const L=g.default;if(!L)return s(t.generateMessage(t.messages.INVALID_ROUTE_HANDLER,[l.routeDefinition.id]));const _=new L(m);_&&_.update(l.route)}):s(t.generateMessage(t.messages.NO_ROUTE_MATCH,[JSON.stringify(I)]))})}navigate(I,c){const m=this.matchRoute(I,c);if(!m)throw new Error(t.generateMessage(t.messages.MISSING_ROUTE,[JSON.stringify(I)]));this.pendingRoute={...m},this._mapView(this.pendingRoute)}subscribe(I,c){return this.routeObservable.subscribe({next:I,error:()=>{},complete:()=>{}},Boolean(c))}async _mapView(I){const c=Math.random();this.routeHandlerId=c;const s=(await I.routeDefinition.handler?.())?.default;if(!s)throw new Error(t.generateMessage(t.messages.INVALID_ROUTE_HANDLER,[I.routeDefinition.id]));return this.routeHandler=new s(l=>{this._updateView(c,l)}),this.routeHandler&&this.routeHandler.update(I.route),!0}_updateView(I,c){if(!c||I!==this.routeHandlerId)return;if(!this.pendingRoute)throw new Error("Trying to commit route state without a route");const m=e.freeze(c.viewset);this.routeObservable.next({...this.pendingRoute,...c,viewset:m})}}function H(j={}){return new E(j)}r.createRouter=H,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("lwr/router",["exports","lwr/router/v/0_15_5"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/a11yService/v/1_66_890",["exports"],function(r){"use strict";const e="sf-aria-live",t="tabindex",{document:P}=globalThis;let E;function H(c){if(P&&c?.routeDefinition){let m=P.body.querySelector(`#${e}`);m||(m=P.createElement("span"),m.id=e,m.setAttribute("aria-live","polite"),m.setAttribute("aria-atomic","true"),m.setAttribute("aria-hidden","true"),m.setAttribute("style","position: absolute; margin: -1px; border: 0; padding: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); text-transform: none; white-space: nowrap;"),P.body.appendChild(m)),m.innerText=c.routeDefinition.label}}function j(c){if(!P)return;const m=c?.routeDefinition?.label,s=c?.routeDefinition?.id,l=E!==s;m!=null&&l&&(P.title=m),E=s}function I(c){if(!P)return;const m=P.createTreeWalker(P.body,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>l.matches("webruntime-router-container")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),s=c?P.body:m.nextNode();s&&(s.setAttribute(t,"-1"),s.focus({preventScroll:!0}),s.removeAttribute(t))}r.ARIA_LIVE_ID=e,r.TAB_INDEX_ATTR_NAME=t,r.ariaLiveNavigate=H,r.updateFocus=I,r.updateTitle=j,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/a11yService",["exports","webruntime/a11yService/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/routingService/v/1",["exports","lwr/loaderLegacy/v/0_15_5","@communities-webruntime/common/v/1_66_890","@salesforce/i18n/lang/v/1","@app/deployTarget/v/1","@app/basePath/v/1","@app/uiBasePath/v/1","@app/routes/v/1","@app/viewToThemeLayoutMap/v/1","webruntime/views/v/1","webruntime/a11yService/v/1_66_890","webruntime/overrides/v/1","webruntime/logger/v/1_66_890","webruntime/utils/v/1_66_890","webruntime/o11y/v/1","lwr/router/v/0_15_5","lwr/serverRouter/v/0_15_5","lwr/routerErrors/v/0_15_5","lwr/navigation/v/0_15_5","webruntime/transport/v/1","@app/extraRouteParams/v/1"],function(r,e,t,P,E,H,j,I,c,m,s,l,g,L,_,C,T,k,N,U,K){"use strict";function A(f){return f&&typeof f=="object"&&"default"in f?f:{default:f}}var $=A(P),z=A(E),ce=A(H),S=A(j),we=A(I),oe=A(c),je=A(m),ae=A(K);function Q(f){const M=[],B=[];f.forEach(de=>{de.uri.includes("?")?B.push(de):M.push(de)});const ne=[];return B.forEach(de=>{const ye=[],Ne=de.uri.split("/");let Ve,ft,Rt="";Ne.forEach(ze=>{ze.endsWith("?")?(Ve=ze.substring(0,ze.length-1),ye.push({value:Ve,isOptional:!0}),ft=Ve.substring(1),Rt=de.page.attributes?.[ft]?"attributes":"state"):ye.push({value:ze,isOptional:!1})});const Dt={...de,uri:ye.map(ze=>ze.value).join("/")};ne.push(Dt);const St={};Object.keys(de.page[Rt]).forEach(ze=>{ze!==ft&&(St[ze]=de.page[Rt][ze])});const Ct={...de,uri:ye.filter(ze=>!ze.isOptional).map(ze=>ze.value).join("/"),page:{...de.page,[Rt]:St}};Ct.patterns&&(Ct.patterns=Object.fromEntries(Object.entries(Ct.patterns).filter(([ze])=>ze!==ft))),ne.push(Ct)}),[...M,...ne]}function a(f){const M=[],B=[];return f.forEach(ne=>{const{type:de,attributes:ye={},state:Ne={}}=ne.page||{};if(de==="standard__objectPage")if(h(ye.actionName))M.push(ne);else{let Ve;ye.actionName==="list"?(Ve={...ne,page:{...ne.page,attributes:{...ye},state:{...Ne}}},Ve.page.attributes.actionName="home"):ye.actionName==="home"?(Ve={...ne,page:{...ne.page,attributes:{...ye},state:{...Ne}}},Ve.page.attributes.actionName="list"):ye.actionName||(ne.page.attributes.actionName="home",Ve={...ne,page:{...ne.page,attributes:{...ye},state:{...Ne}}},Ve.page.attributes.actionName="list"),M.push(ne,Ve)}else B.push(ne)}),[...M,...B]}function h(f){return f&&f.length>1?f.startsWith(":"):!1}const p={};let x=null;function G(f){const{pathname:M,search:B,hash:ne}=new URL(f,window.location.origin);return{pathname:M,search:B,hash:ne}}async function se(f){const{pathname:M,search:B,hash:ne}=G(f);if(p[M])return p[M]+B+ne;if(Object.values(p).includes(M))return f;try{const{redirected:de,url:ye}=await U.fetch(f,{basePath:"",method:"HEAD",isNonApiRequest:!0});if(de){const Ne=G(ye).pathname;return p[M]=Ne,Ne+B+ne}}catch(de){g.logError(`Unable to fetch canonical URL for ${f}`,`error: `,de)}return null}let _e;async function Le(f,M){const{route:B,routeDefinition:ne}=M;if(x=B,ne?.metadata?.hasVanityURL){const de=f.generateUrl(B.pageReference),ye=await se(de);if(ye&&ye!==de&&x===B){const Ve={type:"standard__webPage",attributes:{url:ye}};return N.navigate(f.contextId,Ve,!0),_e=!0,!0}}return _e=!1,!1}function Ie(){return _e}let Se=!0;const Y={};function he(f){const M=f?.attributes?.urlName||f?.attributes?.urlPath;if(M){const B=f?.attributes?.objectApiName||"";return`${M}:${B}`}return null}function W(f){f.extraRouteParams&&(me(f,f.extraRouteParams),delete f.extraRouteParams)}function me(f,M){const B=he(f);!M||!B||(Y[B]=M)}function Oe(f){const M=he(f);if(M&&M in Y){const B=Y[M];return!(B&&Object.keys(B).length>0)}return!!M}function Ge(f={}){const{current:M,next:{pathMatch:B,route:{pageReference:ne}={}}}=f;return M&&Oe(ne)?(window.location.assign(B),!0):!1}function Be(f){if(Se)$e(f,ae.default),me(f.pageReference,ae.default),Se=!1;else{const M=he(f?.pageReference),B=Y[M];$e(f,B)}}function $e(f,M){qe(M)&&(qe(f?.attributes)&&(f.attributes={...f.attributes,...M}),qe(f?.pageReference?.attributes)&&(f.pageReference.attributes={...f.pageReference.attributes,...M}))}function qe(f){return f&&typeof f=="object"}const Xe="redirectPageContext";function Ke(f){return f?.state?.[Xe]||null}function it(f){return f?.includes(`?${Xe}=`)}function bt(f,M,B={}){const{current:ne,next:{route:de,url:ye}={}}=B,Ne=it(ye)?ye:Ke(de)?ht(de):null;return Ne?(ne?window.location.assign(Ne):N.navigate(f,M.page,!0),!0):!1}function ht(f){if(!f)return null;const M=Ke(f)||window.btoa(window.encodeURIComponent(JSON.stringify(f)));return`${S.default}/?${Xe}=${M}`}const dt="KnowledgeArticleVersion",vt=[{type:"standard__objectPage",params:[{name:"filterName",type:"state",value:"Default"}]},{type:"standard__search",params:[{name:"term",type:"state",value:" "}]},{type:"standard__recordPage",params:[{name:"recordName",type:"state",value:"detail"},{name:"categoryPath",type:"state",value:"detail"}],match:(f,{name:M})=>{const{attributes:B={}}=f;return B.urlName||B.urlPath?!1:B.objectApiName==="ProductCategory"?M==="categoryPath":B.objectApiName==="OrderSummary"?!1:M==="recordName"}}],mt="standard__managedContentPage";function b(f){return vt.find(M=>f.type===M.type)}function O(f,M=[]){if(f?.type===mt){let B=f.attributes?.contentTypeName;!M.find(de=>de.page.type===mt&&de.page?.attributes?.contentTypeName===B)&&["news","cms_image","cms_document"].indexOf(B)!==-1&&(B=B.startsWith("cms_")?B.substring(4):B,f.attributes.contentTypeName=`sfdc_cms__${B}`),f.attributes&&f.attributes.contentKey&&(f.attributes.urlAlias=f.attributes.contentKey,delete f.attributes.contentKey)}return f}let y;function D(f,M){f.attributes?.objectApiName===dt&&(y===void 0&&(y=M.find(ne=>ne.page.attributes?.objectApiName?.endsWith("__kav"))?.page?.attributes?.objectApiName||null),y&&(f.attributes.objectApiName=y))}function V(f){return!f.attributes?.urlName&&!f.attributes?.urlPath||(f.type==="standard__recordPage"&&(q(f),delete f.attributes.recordId,delete f.state?.recordName,delete f.state?.categoryPath),f.type==="standard__recordRelationshipPage"&&(q(f),delete f.attributes.recordId)),f}function q(f){f.attributes.recordId&&(f.extraRouteParams={recordId:f.attributes.recordId})}function X(f,M){return f.type==="standard__knowledgeArticlePage"&&(f.type="standard__recordPage",f.attributes.actionName="view",f.attributes.objectApiName=dt,delete f.attributes.articleType),D(f,M),f}function te(f,M){const{params:B,match:ne}=M;B.forEach(de=>{const{type:ye,name:Ne,value:Ve}=de;ne&&!ne(f,de)||f?.[ye]?.[Ne]||(f[ye]||(f[ye]={}),f[ye][Ne]=Ve)})}function ie(f={}){const M=b(f);M&&te(f,M)}function J(f,M){if(f.state?.categoryPath?.includes("/")||f.attributes?.urlPath?.includes("/")){let[B,ne]=M.split("?");return B=B.replace(/%2F/g,"/"),ne=ne?`?${ne}`:"",B+ne}return M}function le(f){return Object.entries(f?.attributes||{}).filter(([,M])=>M===null).forEach(([M])=>delete f.attributes[M]),f}async function Re(f,M,B,ne){if(!f||!M||!B||!ne)return console.error(`[getRecordIdRedirect] one or more params are not defined - routeParams:${JSON.stringify(f)} appVersion:${M} communityId:${B} scope:${ne}`),null;const de=Te(f,M,B,ne);console.log(`[getRecordIdRedirect] START fetch endpoint: ${de}`);try{const ye=await U.fetch(de);if(console.log(`[getRecordIdRedirect] Returned with status: ${ye.status}`),ye.ok){const Ne=await ye.json();if(Ne&&Ne.recordIdUrl)return Ne.recordIdUrl}}catch(ye){return console.error(`[getRecordIdRedirect] Failed to fetch recordIdUrl: ${ye.message}`),null}finally{console.log(`[getRecordIdRedirect] END fetch endpoint: ${de}`)}return null}function Te(f,M,B,ne){let de;return f?.urlName?de=encodeURIComponent(f.urlName):f?.urlPath&&(de=encodeURIComponent(f.urlPath)),`/services/data/v${M}/connect/communities/${B}/seo/object-url/${ne}/${de}`}class De{constructor(M){this.callback=M}dispose(){}update(M){const B=ue.find(ne=>ne.id===M.id)?.view;this.callback({viewset:{default:()=>je.default(B)}})}}const{window:fe,performance:ke}=globalThis,xe=`${t.WEBRUNTIME_PREFIX}-framework-router`;let w=z.default==="MRT",re;r.router=void 0;let ue=[],Z,Fe;function ot(f,M){ke?.mark?.(xe),ue=a(Q(t.parseRoutes(f))),ue.forEach(B=>{B.handler=()=>new Promise(ne=>{ne({default:De})})}),Z=ue.find(B=>B.metadata.isDefault),M?.isMRT!=null&&(w=M.isMRT),Fe=!w&&ue.every(B=>B.metadata.isPublic!==!1),re={basePath:S.default,caseSensitive:!0,routes:ue,i18n:{locale:$.default,defaultLocale:$.default},DEPRECATED_getRouteFromUrl:pt,DEPRECATED_getUrlFromRoute:Qe},r.router=C.createRouter(re),ke?.measure?.(xe,xe)}ot(we.default);let st,et;function lt(){return et?.contextId||r.router.contextId}function pt(f,M){const B=M(f);return B?(ie(B),B):Z?.page?Z.page:null}function Qe(f={type:"",attributes:{},state:{}},M){const{type:B,attributes:ne={},state:de={}}=f;let ye;const Ne=JSON.parse(JSON.stringify(f));if(B==="standard__webPage")return ye=ne.url,ye==null?"":d(ye,S.default);if(B==="comm__loginPage"){const Ve=de.startUrl!=null?`?startURL=${encodeURIComponent(de.startUrl)}`:"";if(ne.actionName==="login")return d(`${t.WEBRUNTIME_LOGIN_PATH}${Ve}`,ce.default);if(ne.actionName==="logout")return d(`${t.WEBRUNTIME_LOGOUT_PATH}${Ve}`,ce.default)}return B==="standard__managedContentPage"&&O(Ne,ue),X(Ne,ue),V(Ne),ie(Ne),le(Ne),ye=M(Ne),B==="standard__recordPage"&&(ye=J(Ne,ye)),!ye&&Fe&&(ye=ht(Ne)),W(Ne),ye}async function gt(f){const{route:M,routeDefinition:B}=f.next;return ct(B,M?.pageReference)}async function ct(f,M){if(f?.metadata?.isPublic!==!1)return!1;const{default:B}=await e.load("@app/user/v/1");if(B.isGuest){const ne=typeof M=="string"?M:F(M);if(ne&&fe)if(w){const{default:de}=await e.load("@app/loginPath/v/1");at(de,ne)}else fe.location.href=ne;return!0}return!1}function at(f,M){const B=new URL(f,fe.location.href);M&&B.searchParams.set("startURL",M),fe.location.assign(B.href)}function At(f,M){const B=new URL(f,fe.location.href);M&&B.searchParams.set("startURL",M),fe.location.assign(B.href)}function Ot(f){return bt(lt(),Z,f)}function yt(f){const{current:M,next:B}=f;if(M&&B&&(M.routeDefinition.ssr!==B.routeDefinition.ssr||w)){const ne=F(B.route.pageReference);if(ne)return fe.location.assign(ne),!0}return!1}function Pe(f){const{current:M,next:{pathMatch:B,route:ne={}}}=f;if(!M)return!1;const{pageReference:{type:de,attributes:ye={}}}=ne;if(de==="standard__managedContentPage"){const{contentTypeName:Ne}=ye;if(Ne==="sfdc_cms__landingPage")return fe.location.assign(B),!0}return!1}async function n(f){i(f.detail)}async function i(f){try{if(!fe?.location)return;const{address:M,message:B,code:ne}=f;if(g.logError(`Routing error: ${B}`),ne===k.messages.PRENAV_FAILED.code)return;if(ne===k.messages.MISSING_ROUTE.code&&!Z&&it(M)){fe.location.assign(M);return}if(Z?.metadata?.isPublic===!1){const{default:ye}=await e.load("@app/user/v/1");if(ye.isGuest)return}const de=S.default?fe.location.pathname.replace(S.default,""):fe.location.pathname;Z&&de!==Z.uri&&R(Z.page)}finally{st?.errorNavigate(f)}}function o(f){u(f.detail.address)||f.preventDefault()}function u(f){if(!l.NavigationOverrides.runSync(f))return!1;const{type:M,attributes:B={},state:ne={}}=f;if(M==="standard__webPage"){const{url:de}=B;if(de==null)return!0;if(L.isAbsoluteURL(de)||L.isSfdcCoreURL(de))return fe?.open(de),!1;const ye=r.router.parseUrl(de),Ne=!ye||ye===Z?.page;if(Fe&&Ne)return fe?.location.assign(d(de,S.default)),!1}else if(M==="comm__loginPage"){const{actionName:de}=B;if(de==="login")return at(d(t.WEBRUNTIME_LOGIN_PATH,ce.default),ne.startUrl||""),!1;if(de==="logout")return At(d(t.WEBRUNTIME_LOGOUT_PATH,ce.default),ne.startUrl||""),!1}return!0}function d(f,M){return L.isAbsoluteURL(f)?f:M&&f!==M&&f.indexOf(`${M}/`)!==0?`${M}${f}`:f}function R(f){N.navigate(lt(),f)}function F(f){return et?et.generateUrl(f):r.router.generateUrl(f)}function Ce(f,M=!0){return typeof fe!="undefined"?r.router.subscribe(f,M):null}async function Ee(f,M){if(st?.preNavigate(f),l.PreNavigateOverrides.run(f),et){if(await gt(f))return!1}else gt(f);return Pe(f)||!w&&Ot(f)||!w&&Ge(f)||yt(f)?(M?.preventDefault(),!1):!0}let ge;async function Ae(f){const M=f.detail,B=M.current?.routeDefinition.view;B?ge=oe.default[B]:ge=null,await Ee(M,f)}async function Me(f){l.PostNavigateOverrides.run(f);const M=f.routeDefinition?.view,B=ge!==oe.default[M];try{s.ariaLiveNavigate(f),s.updateFocus(B),w||(s.updateTitle(f),await Le(r.router,f))}finally{st?.postNavigate(f)}}async function ve(f){const M=f.detail;Me(M)}function Ue(f){st=_._o11y.routingSupport,f.addEventListener("prenavigate",Ae),f.addEventListener("handlenavigation",o),f.addEventListener("postnavigate",ve),f.addEventListener("errornavigate",n)}function We(){let f,M;if(fe?.location&&(M=fe.location.href.substring(fe.location.origin.length),f=r.router.matchRoute(M)),!f&&Z&&(f=r.router.matchRoute(Z.uri)),f){const{route:B,routeDefinition:ne}=f;return{route:B,routeDefinition:ne,url:M}}return{}}function tt(f,M){if(!w||et&&typeof fe!="undefined")return;const B=We(),{routeDefinition:ne}=B;if(ne&&!ne.ssr)return;const de={...re,url:M,handleNavigation:u,preNavigate:Ee,errorNavigate:i};et=new T.ServerRouter(de,r.router,f),Ee({next:B}),Me(B)}function Et(f,M){const B=M?`?startURL=${encodeURIComponent(M)}`:"";return`${f}${t.WEBRUNTIME_LOGIN_PATH}${B}`}async function ut({basePath:f,params:M},B,ne,de){const ye=await Re(M,B,ne,de);return ye?{code:301,location:ye}:(console.log(`[getRecordIdOrErrorRedirect] basePath: ${f}`),{code:302,location:`${f||""}/error`})}r.generateUrl=F,r.getCurrentRoute=We,r.getLoginUrl=Et,r.getRecordIdOrErrorRedirect=ut,r.handleExtraRouteParams=Be,r.initializeRouter=ot,r.initializeRouterContainer=Ue,r.initializeServerRouter=tt,r.isCurrentRouteCanonicallyRedirected=Ie,r.navigate=R,r.subscribe=Ce,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/routingService",["exports","webruntime/routingService/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/overrides/v/1",["exports"],function(r){"use strict";class e{constructor(){this.overrides=[]}add(c){this.overrides.push(c)}run(...c){return this.overrides.length===0?Promise.resolve(!0):this.overrides.reduce((m,s)=>m.then(l=>l===!1?Promise.resolve(!1):Promise.resolve(s(...c))),Promise.resolve(!0)).then(m=>Promise.resolve(m))}runSync(...c){return this.overrides.length===0?!0:this.overrides.reduce((m,s)=>m===!0?s(...c):!1,!0)}}const t=new e,P=new e,E=new e,H=new e,j=new e;r.NavigationOverrides=E,r.Overrides=e,r.PageNavigationFailureOverrides=j,r.PostNavigateOverrides=P,r.PreNavigateOverrides=t,r.SessionTimeoutOverrides=H,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/overrides",["exports","webruntime/overrides/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/views/v/1",["exports","lwr/loaderLegacy/v/0_15_5","@communities-webruntime/common/v/1_66_890"],function(r,e,t){"use strict";function P(E){return e.load(t.getViewModuleSpecifier(E),"webruntime/views/v/1")}r.default=P,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/views",["exports","webruntime/views/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/formFactor/v/1",["exports"],function(r){"use strict";function e(){return typeof window!="undefined"&&window.matchMedia("only screen and (min-width: 48em) and (max-width: 64em)").matches}function t(){return typeof window!="undefined"&&window.matchMedia("only screen and (max-width: 47.9375em)").matches}function P(){return e()?"Medium":t()?"Small":"Large"}const E=P();r.default=E,r.getFormFactor=P,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/formFactor",["exports","webruntime/formFactor/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("wire-service/v/1",["exports"],function(r){"use strict";function e($){return $===void 0}const t="ValueChangedEvent";class P{constructor(z){this.type=t,this.value=z}}const{freeze:E,defineProperty:H,isExtensible:j}=Object,I="$$DeprecatedWiredElementHostKey$$",c="$$DeprecatedWiredParamsMetaKey$$";function m($,z){if($==null||!j($))throw new TypeError("adapter id must be extensible");if(typeof z!="function")throw new TypeError("adapter factory must be a callable");if("adapter"in $)throw new TypeError("adapter id is already associated to an adapter factory");const ce=class extends A{constructor(S){super(S);z(this.eventTarget)}};E(ce),E(ce.prototype),H($,"adapter",{writable:!1,configurable:!1,value:ce})}function s(){}const{forEach:l,splice:g,indexOf:L}=Array.prototype,_="connect",C="disconnect",T="config";function k($,z){const ce=L.call($,z);ce>-1&&g.call($,ce,1)}function N($){return Object.keys($).length===0}function U($,z){return z.length===0||z.some(ce=>!e($[ce]))}function K($,z,ce){return ce.some(S=>$[S]!==z[S])}class A{constructor(z){this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=z,this.wiredElementHost=z[I],this.dynamicParamsNames=z[c],this.eventTarget={addEventListener:(ce,S)=>{switch(ce){case _:{this.connecting.push(S);break}case C:{this.disconnecting.push(S);break}case T:{this.configuring.push(S),this.currentConfig!==void 0&&S.call(void 0,this.currentConfig);break}default:throw new Error(`Invalid event type ${ce}.`)}},removeEventListener:(ce,S)=>{switch(ce){case _:{k(this.connecting,S);break}case C:{k(this.disconnecting,S);break}case T:{k(this.configuring,S);break}default:throw new Error(`Invalid event type ${ce}.`)}},dispatchEvent:ce=>{if(ce instanceof P){const S=ce.value;this.callback(S)}else{if(ce.type==="wirecontextevent")return this.wiredElementHost.dispatchEvent(ce);throw new Error(`Invalid event type ${ce.type}.`)}return!1}}}update(z){this.isFirstUpdate&&(this.isFirstUpdate=!1,!N(z)&&!U(z,this.dynamicParamsNames))||(e(this.currentConfig)||K(z,this.currentConfig,this.dynamicParamsNames))&&(this.currentConfig=z,l.call(this.configuring,ce=>{ce.call(void 0,z)}))}connect(){l.call(this.connecting,z=>z.call(void 0))}disconnect(){l.call(this.disconnecting,z=>z.call(void 0))}}r.ValueChangedEvent=P,r.register=m,r.registerWireService=s,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("wire-service",["exports","wire-service/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("@salesforce/client/formFactor/v/1",["exports"],function(r){"use strict";function e(){return typeof window!="undefined"&&window.matchMedia("only screen and (min-width: 48em) and (max-width: 64em)").matches}function t(){return typeof window!="undefined"&&window.matchMedia("only screen and (max-width: 47.9375em)").matches}function P(){return e()?"Medium":t()?"Small":"Large"}const E=P();r.default=E,r.getFormFactor=P,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@salesforce/client/formFactor",["exports","@salesforce/client/formFactor/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("@communities-webruntime/common/v/1_66_890",["exports"],function(r){"use strict";var e=!0,t="src/labels",P=["lwr","assert","logger","webruntime","webruntime/*","mobileruntime/hybridAppManager","@view","@view/*","@app","@app/*","@design","@design/*","@lwrjs","webruntimedesign","webruntimedesign/*","@luvio","@luvio/*","aura-instrumentation","aura","instrumentation/service","instrumentation/utility","aura-storage","transport","wire-service","force/ldsAdaptersAnalyticsDataService","force/ldsAdaptersAnalyticsSmartDataDiscovery","force/ldsAdaptersAnalyticsWave","force/ldsAdaptersAnalyticsWavePrivate","force/ldsAdaptersApex","force/ldsAdaptersCmsAuthoring","force/ldsAdaptersCmsDelivery","force/ldsAdaptersCmsType","force/ldsAdaptersCommerceCatalog","force/ldsAdaptersCommerceSearch","force/ldsAdaptersCommerceStorePricing","force/ldsAdaptersCommunityMicrobatching","force/ldsAdaptersCommunityNavigationMenu","force/ldsAdaptersCommunitySeo","force/ldsAdaptersCommunitySitesSearch","force/ldsAdaptersExperienceMarketingIntegration","force/ldsAdaptersGraphql","force/ldsAdaptersIndustriesCib","force/ldsAdaptersIndustriesClm","force/ldsAdaptersIndustriesDecisionMatrixDesigner","force/ldsAdaptersIndustriesEinsteinAiaccelerator","force/ldsAdaptersIndustriesExplainability","force/ldsAdaptersIndustriesHealthcloudHpi","force/ldsAdaptersIndustriesIdentityverification","force/ldsAdaptersIndustriesInteresttagging","force/ldsAdaptersIndustriesLoyaltyEngine","force/ldsAdaptersIndustriesPublicSector","force/ldsAdaptersIndustriesRcgTenantmanagement","force/ldsAdaptersIndustriesRuleBuilder","force/ldsAdaptersIndustriesSustainabilityBei","force/ldsAdaptersIndustriesSustainabilityDgf","force/ldsAdaptersIndustriesSustainabilityRecalculate","force/ldsAdaptersIndustriesSustainabilityRecordLockunlock","force/ldsAdaptersIndustriesSustainabilityReferenceData","force/ldsAdaptersIndustriesTimeline","force/ldsAdaptersIndustriesVideovisits","force/ldsAdaptersMarketingAssetcreation","force/ldsAdaptersPlatformAdminSuccessGuidance","force/ldsAdaptersPlatformFlow","force/ldsAdaptersPlatformFlowBuilder","force/ldsAdaptersPlatformInteractionOrchestrator","force/ldsAdaptersPlatformLearningContent","force/ldsAdaptersPlatformScaleCenter","force/ldsAdaptersRevenueBillingBatch","force/ldsAdaptersUiapi","force/ldsBindings","force/ldsEngine","force/luvioEngine","force/ldsEngineCreator","force/ldsEngineWebruntime","force/ldsEnvironmentSettings","force/ldsInstrumentation","force/ldsNetwork","force/ldsRecordData","force/ldsStorage","force/lightningOutContainer","force/mobileCapabilities","force/ldsAdaptersAnalyticsTableauEmbedding","runtime_hybrid_capabilities/nativeCapabilities","o11y","o11y/*","@o11y","@o11y/*","@salesforce","@udd","@perm","@branding","@salesforce/*","@udd/*","@perm/*","@branding/*","trustedDesign/shadowDomUtils","community_builder/seoAssistant","community_case/supportQuickActionLayout","community_runtime/utils","community_user/userSettings","embeddedMessaging/container","experience_messaging/embeddedMessaging","community_login/checkEmail","community_login/forgotPassword","community_login/loginForm","community_login/loginUtils","community_login/selfRegister","community_login/socialLogin","b2c_lite_commerce/cartApi","b2c_lite_commerce/checkout","b2c_lite_commerce/checkoutApi","b2c_lite_commerce/checkoutApiDataSource","b2c_lite_commerce/checkoutRequestRetry","b2c_lite_commerce/context","b2c_lite_commerce/data","b2c_lite_commerce/einsteinActivitiesApi","b2c_lite_commerce/einsteinApi","b2c_lite_commerce/einsteinProductAndPriceApi","b2c_lite_commerce/heroBannerUi","b2c_lite_commerce/myAccountMenu","b2c_lite_commerce/orderSummary","b2c_lite_commerce/store","lightning","lightning/*","interop/button","interop/buttonIcon","dxp_page_layout/placeHolderDesign","community_builder/richTextEditor","dxp_form/baseForm","dxp_form/contactForm","dxp_form/dynamicForm","dxp_form/layoutUtils","dxp_form/leadForm","dxp_base/languageSelector","dxp_search/siteResults","dxp_flowruntime","dxp_flowruntime/*","dxp_action/umaFormSubmissionAction","dxp_crm_search/miawSelfServiceManager","flowruntime","flowruntime/*","experience/store","experience/data","experience/util","experience/cmsDeliveryApi","experience/luvioRuntime","experience/personalizationApi","experience/personalizationApiInternal","experience/seoPropertiesApi","experience/seoPropertiesApiInternal","experience/userApi","experience/userApiInternal","wave","wave/*","tableau/tableauViz","tableau/tableauPulse"],E="webruntime";function H(Y){return`/${E}${Y}`}var j=H("/api"),I=H("/log/metrics"),c=H("/log/errors"),m={APEX_ACTION_ERROR:"APEX_ACTION_ERROR",FAILED_TO_LOAD_RESOURCE:"FAILED_TO_LOAD_RESOURCE",TOO_MANY_REQUESTS:"TOO_MANY_REQUESTS",UNKNOWN_ERROR:"UNKNOWN_ERROR"},s={PUBLISHER:"CommunityHybridContainer/",PLAYGROUND:"playgroundcommunity"},l=8e3,g="/webruntime/login",L="/webruntime/logout",_="@design";function C(Y){return`${_}/${Y}`}function T(Y){return Y.replace(/(?!^)([A-Z])/g,"-$1").toLowerCase()}var k=new RegExp(/^[a-z-A-Z_\d]+[/:]{1}[a-zA-Z_\d]+$/),N=new RegExp(/^([a-z][a-z\d]*)(-[a-z\d]+)*$/);function U(Y,he){if(!Y)throw new Error(he)}function K(Y){if(N.test(Y))return Y;U(k.test(Y),`${Y} is an invalid module specifier.`);const he=Y.split(/[/:]/),[W,me]=he;return U(!W.includes("-"),`${Y}'s namespace cannot contain hyphens.`),[W.toLowerCase(),T(me)].join("-")}var A="webruntime",$="js",z="latest",ce={FRAMEWORK:"framework",DESIGN:"design",COMPONENT:"component",VIEW:"view",DESIGNCOMPONENT:"designcomponent"};function S(Y,he){if(!Y)throw new Error(he)}function we(Y){const[he,W=""]=Y.split("://"),[me,Oe]=W.indexOf("@")>0?W.split("@"):[W];return{type:he,name:me,locale:Oe}}function oe(Y={type:"",name:""},he,W,me=!0){const{name:Oe}=typeof Y=="string"?we(Y):Y;S(Oe,"Name not specified");const Ge=je(Y,he,W),Be=me?`.${$}`:"";return`${Ge}${Oe}${Be}`}function je(Y={type:"",name:""},he,W){const{type:me,locale:Oe}=typeof Y=="string"?we(Y):Y,Ge=me===ce.COMPONENT;return S(me,"Type not specified"),S(he,"Mode not specified"),S(Oe||!Ge,"Component locale not specified"),`/${A}/${me}/${W||z}/${he}${Oe?`/${Oe}`:""}/`}var ae="@view";function Q(Y){return`${ae}/${Y}`}var a=["hasVanityURL","isDefault","isPublic","isRoot"],h=[{type:"standard__search",params:[{name:"term",type:"state"}]},{type:"standard__objectPage",params:[{name:"filterName",type:"state"}]},{type:"standard__recordPage",params:[{name:"recordName",type:"state"},{name:"categoryPath",type:"state"}],match:({attributes:Y},{name:he})=>Y?.objectApiName==="ProductCategory"?he==="categoryPath":he!=="categoryPath"}];function p(Y,he){const{match:W,params:me}=he;me.forEach(Oe=>{if(W&&!W(Y.page,Oe))return;const{type:Ge,name:Be}=Oe,$e=Ge,qe=$e==="state"?"attributes":"state";!Y.page?.[qe]?.[Be]||(Y.page[$e]||(Y.page[$e]={}),Y.page[$e][Be]=Y.page[qe][Be],delete Y.page[qe][Be])})}function x(Y){let he=Y;return["categoryPath","urlPath"].forEach(W=>{he=he.replace(new RegExp(`:${W}\\+?`),`:${W}+`)}),he}function G(Y){return Y.startsWith(":")?Y.substring(1).replace(/[?+]/g,""):null}var se=/\(.*\)/;function _e(Y){return Y.split("/").map(he=>he.replace(se,"")).join("/")}function Le(Y,he){return Y.split("/").map(W=>{const me=G(W);return me&&he[me]?W.replace(me,`${me}(${he[me]})`):W}).join("/")}function Ie(Y){!Y.uri.includes(":")||!Y.page?.type||(Y.page.attributes=Y.page.attributes||{},Y.uri.split("/").forEach(he=>{const W=G(he);if(W){const me=`:${W}`;Y.page.attributes[W]||(Y.page.attributes[W]=me)}}))}function Se(Y,he=!1){return Y.map(W=>{W.uri||(W.uri=W.path),W.metadata||(W.metadata={}),a.forEach($e=>{$e in W&&(W.metadata[$e]=W[$e],delete W[$e])}),W.uri&&(W.uri=_e(W.uri),Ie(W)),W.patternMap&&(W.patterns=W.patternMap,delete W.patternMap);const me=W.page?.attributes?.objectApiName;me&&!me.startsWith(":")&&(W.uri=W.uri.replace(":objectApiName",me),W.patterns?.objectApiName&&delete W.patterns.objectApiName);const Oe=h.find($e=>W.page?.type===$e.type);Oe&&p(W,Oe);const Ge=W.page?.type;return!he&&Ge==="standard__recordPage"&&["ProductCategory","NetworkDataCategory"].includes(W.page.attributes?.objectApiName)&&(W.uri=x(W.uri)),["standard__recordPage","standard__recordRelationshipPage"].includes(Ge)&&!W.page?.attributes?.actionName&&(W.page.attributes.actionName="view"),he&&W.patterns&&(W.uri=Le(W.uri,W.patterns)),W})}r.API_PATH_PREFIX=j,r.CLIENT_ERROR_TYPES=m,r.ERRORS_PATH_PREFIX=c,r.LABELS_DEFAULT_DIR=t,r.LOCKER_DEFAULT_ENABLED=e,r.MAX_URL_LENGTH=l,r.METRICS_PATH_PREFIX=I,r.MOBILE_APP_USER_AGENTS=s,r.RESOURCE_TYPES=ce,r.TRUSTED_COMPONENTS=P,r.WEBRUNTIME_LOGIN_PATH=g,r.WEBRUNTIME_LOGOUT_PATH=L,r.WEBRUNTIME_PREFIX=E,r.convertToKebabCase=T,r.getDesignComponentModuleSpecifier=C,r.getResourceUrl=oe,r.getViewModuleSpecifier=Q,r.moduleSpecifierToElementName=K,r.parseResourceDescriptor=we,r.parseRoutes=Se,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("@communities-webruntime/common",["exports","@communities-webruntime/common/v/1_66_890"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("networkAdapterFetch/v/1",["exports","webruntime/networkAdapterFetch/v/1"],function(r,e){"use strict";Object.keys(e).forEach(function(t){t!=="default"&&!r.hasOwnProperty(t)&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("networkAdapterFetch",["exports","networkAdapterFetch/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})}),LWR.define("webruntime/networkAdapterFetch/v/1",["exports","webruntime/transport/v/1","webruntime/logger/v/1_66_890","webruntime/apiCall/v/1_66_890","webruntime/overrides/v/1"],function(r,e,t,P,E){"use strict";const H=/^\/lwr\/apex\/v\d{2,}\.0/,j="execute",I="X-SFDC-Allow-Continuation";async function c(T){const{baseUri:k,basePath:N,body:U,queryParams:K,method:A,headers:$,urlParams:z}=T,ce=L(K),S=`${k}${N}${ce}`,we=H.test(k);let oe,je,ae,Q;if(we){const[se,_e]=C(z.apexClass);je={namespace:se,classname:_e,method:z.apexMethod,isContinuation:$[I]==="true",params:A.toLowerCase()==="post"?U:K.methodParams,cacheable:A.toLowerCase()!=="post"}}else if(A==="post"&&l(U)){const se=new FormData,_e=[];for(const{name:Le,value:Ie}of U.namedEntries)if(typeof Ie=="string"||Ie instanceof File)se.append(Le,Ie);else{if(g(Ie))throw Error("Webruntime networkAdapterFetch does not support FileReference's");_e.push(Ie.arrayBuffer().then(Se=>{se.append(Le,new File([new Uint8Array(Se)],Ie.name,{type:Ie.type}))}).catch(Se=>{t.logError(`Error processing file "${Ie.name}":`,Se)}))}await Promise.all(_e),oe=se}else U===null?oe=null:(oe=JSON.stringify(U),$["Content-Type"]="application/json");if(we){const{url:se,httpRequestOptions:_e}=P.formatApexRequest(j,je),Le=await m(se,_e);ae=Le.response,Q=Le.parsedResponse}else ae=await e.fetch(S,{method:A.toUpperCase(),headers:_($),body:oe});const{status:a,ok:h,statusText:p}=ae,x={};if(ae.headers.forEach((se,_e)=>{x[_e]=se}),we)return x["Cache-Control"]=Q?.cacheable===!0?"private":"no-cache",{body:Q?.returnValue??null,status:a,statusText:p,ok:h,headers:x};let G=null;if(a!==204){const se=x["content-type"];G=se&&se.startsWith("application/json")?await ae.json():await ae.text()}return{body:G,status:a,statusText:p,ok:h,headers:x}}async function m(T,k){let N,U;try{N=await e.fetch(T,k),N.status===401&&E.SessionTimeoutOverrides.runSync(),N.status!==204&&(U=await N.json())}catch(K){throw s(new Error("Failed to get error from response"))}if(U&&U.error){const K=U.error;throw K.length>0?s(K[0]):s(new Error("Error fetching component"))}return{response:N,parsedResponse:U}}function s(T){return{body:T,status:500,statusText:"Server Error",ok:!1,headers:{}}}function l(T){return typeof T=="object"&&T!==null&&"namedEntries"in T&&Array.isArray(T.namedEntries)}function g(T){return typeof T=="object"&&T!==null&&"isFileReference"in T&&T.isFileReference===!0}function L(T){const k=Object.entries(T).filter(([,N])=>N!=null&&(!Array.isArray(N)||N.length)).map(([N,U])=>`${encodeURIComponent(N)}=${encodeURIComponent(U)}`);return k.length>0?`?${k.join("&")}`:""}function _(T){const k=new Headers;for(const N of Object.keys(T))k.set(N,T[N]);return k}function C(T){const k=T.split("__");return k.length>1?[k[0],k[1]]:["",k[0]]}r.networkAdapterFetch=c,Object.defineProperty(r,"__esModule",{value:!0})}),LWR.define("webruntime/networkAdapterFetch",["exports","webruntime/networkAdapterFetch/v/1"],function(r,e){r.default=e&&typeof e=="object"&&"default"in e?e.default:e,Object.keys(e).forEach(function(t){t==="default"||r.hasOwnProperty(t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})});