沙世明
2022-09-13 bfca7a84bec815da594f1d12558535ed06d2490b
1
2
3
4
5
6
7
LWR.define("lwc/v/2_12_1",["exports"],function(E){"use strict";function Lo(e,t){if(!e)throw new Error(`Invariant Violation: ${t}`)}function Io(e,t){if(!e)throw new Error(`Assert Violation: ${t}`)}function Po(e,t){if(e)throw new Error(`Assert Violation: ${t}`)}function xo(e){throw new Error(e)}var $=Object.freeze({__proto__:null,invariant:Lo,isTrue:Io,isFalse:Po,fail:xo});const{assign:W,create:g,defineProperties:j,defineProperty:I,freeze:gt,getOwnPropertyDescriptor:q,getOwnPropertyNames:yt,getPrototypeOf:me,hasOwnProperty:Ae,isFrozen:Ho,keys:F,seal:Le,setPrototypeOf:ge}=Object,{isArray:ie}=Array,{filter:Ul,find:Gl,indexOf:Et,join:Ie,map:Bo,push:C,reduce:Kl,reverse:zl,slice:Tn,splice:Fo,unshift:Mn,forEach:ye}=Array.prototype,{fromCharCode:Sn}=String,{charCodeAt:Pe,replace:$n,slice:Dn,toLowerCase:wt}=String.prototype;function c(e){return e===void 0}function h(e){return e===null}function U(e){return e===!0}function V(e){return e===!1}function Wo(e){return typeof e=="boolean"}function N(e){return typeof e=="function"}function xe(e){return typeof e=="object"}function On(e){return typeof e=="string"}function ql(e){return typeof e=="number"}function M(){}const jo={}.toString;function Ee(e){return e&&e.toString?ie(e)?Ie.call(Bo.call(e,Ee),","):e.toString():typeof e=="object"?jo.call(e):e+""}function P(e,t){do{const n=q(e,t);if(!c(n))return n;e=me(e)}while(e!==null)}const Uo=["ariaActiveDescendant","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaControls","ariaCurrent","ariaDescribedBy","ariaDetails","ariaDisabled","ariaErrorMessage","ariaExpanded","ariaFlowTo","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLabelledBy","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaOwns","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRelevant","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","role"],{AriaAttrNameToPropNameMap:Yl,AriaPropNameToAttrNameMap:He}=(()=>{const e=g(null),t=g(null);return ye.call(Uo,n=>{const r=wt.call($n.call(n,/^aria/,()=>"aria-"));e[r]=n,t[n]=r}),{AriaAttrNameToPropNameMap:e,AriaPropNameToAttrNameMap:t}})(),Be=function(){if(typeof globalThis=="object")return globalThis;let e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(t){}finally{typeof e=="undefined"&&(e=window)}return e}(),Go="$isNativeShadowRootDefined$",vt="$shadowResolver$",Ko="$shadowToken$",zo="$$lwc-synthetic-mode",kn="$scoped$",qo=new Map([["accessKey","accesskey"],["readOnly","readonly"],["tabIndex","tabindex"],["bgColor","bgcolor"],["colSpan","colspan"],["rowSpan","rowspan"],["contentEditable","contenteditable"],["crossOrigin","crossorigin"],["dateTime","datetime"],["formAction","formaction"],["isMap","ismap"],["maxLength","maxlength"],["minLength","minlength"],["noValidate","novalidate"],["useMap","usemap"],["htmlFor","for"]]),_n=new Map;function Vn(e){const t=He[e];if(!c(t))return t;const n=qo.get(e);if(!c(n))return n;const r=_n.get(e);if(!c(r))return r;let o="";for(let i=0,s=e.length;i<s;i++){const a=Pe.call(e,i);a>=65&&a<=90?o+="-"+Sn(a+32):o+=Sn(a)}return _n.set(e,o),o}const Yo="http://www.w3.org/XML/1998/namespace",Qo="http://www.w3.org/2000/svg",Xo="http://www.w3.org/1999/xlink",Rn="2.12.1",Jo=/\/\*LWC compiler v([\d.]+)\*\/\s*}/;function Zo(e){return Object.getOwnPropertyDescriptor(Element.prototype,e)===void 0}const An=new WeakMap;function Ln(e){let t=An.get(e);return t===void 0&&(t={},An.set(e,t)),t}function ei(e){return e==null?null:String(e)}function ti(e,t){return{get(){const n=Ln(this);return Ae.call(n,e)?n[e]:this.hasAttribute(t)?this.getAttribute(t):null},set(n){const r=ei(n),o=Ln(this);o[e]=r,n===null?this.removeAttribute(t):this.setAttribute(t,n)},configurable:!0,enumerable:!0}}function ni(e){const t=He[e],n=ti(e,t);Object.defineProperty(Element.prototype,e,n)}const In=F(He);for(let e=0,t=In.length;e<t;e+=1){const n=In[e];Zo(n)&&ni(n)}const Pn={ENABLE_ELEMENT_PATCH:null,ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST:null,ENABLE_HMR:null,ENABLE_HTML_COLLECTIONS_PATCH:null,ENABLE_INNER_OUTER_TEXT_PATCH:null,ENABLE_MIXED_SHADOW_MODE:null,ENABLE_NODE_LIST_PATCH:null,ENABLE_NODE_PATCH:null,ENABLE_REACTIVE_SETTER:null,ENABLE_WIRE_SYNC_EMIT:null};Be.lwcRuntimeFlags||Object.defineProperty(Be,"lwcRuntimeFlags",{value:g(null)});const D=Be.lwcRuntimeFlags;function ri(e,t){if(!Wo(t)){const n=`Failed to set the value "${t}" for the runtime feature flag "${e}". Runtime feature flags can only be set to a boolean value.`;console.error(n);return}if(c(Pn[e])){const n=F(Pn).map(r=>`"${r}"`).join(", ");console.warn(`Failed to set the value "${t}" for the runtime feature flag "${e}" because it is undefined. Available flags: ${n}.`);return}{const n=D[e];if(!c(n)){console.error(`Failed to set the value "${t}" for the runtime feature flag "${e}". "${e}" has already been set with the value "${n}".`);return}I(D,e,{value:t})}}function oi(e,t){}let Fe=[];const ii=32,O=Le(g(null)),R=Le([]);function si(){const e=Fe;Fe=[];for(let t=0,n=e.length;t<n;t+=1)e[t]()}function bt(e){Fe.length===0&&Promise.resolve().then(si),C.call(Fe,e)}function ai(){function e(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}const ci=/;(?![^(]*\))/g,li=/:(.+)/;function di(e){const t={},n=e.split(ci);for(const r of n)if(r){const[o,i]=r.split(li);o!==void 0&&i!==void 0&&(t[o.trim()]=i.trim())}return t}function ui(e,t){const n={};for(const r of Object.keys(e))r!==t&&(n[r]=e[r]);return n}function Nt(e){const t=[];for(const n of e)Array.isArray(n)?t.push(...Nt(n)):t.push(n);return t}let We;function fi(e){We=e}let xn;function pi(e){xn=e}let Ct;function hi(e){Ct=e}let Hn;function mi(e){Hn=e}let Bn;function gi(e){Bn=e}let Fn;function yi(e){Fn=e}let Tt;function Ei(e){Tt=e}let Wn;function wi(e){Wn=e}let jn;function vi(e){jn=e}let Un;function bi(e){Un=e}let je;function Ni(e){je=e}let Gn;function Ci(e){Gn=e}let Y;function Ti(e){Y=e}let Mt;function Mi(e){Mt=e}let St;function Si(e){St=e}let Q;function $i(e){Q=e}let K;function Di(e){K=e}let se;function Oi(e){se=e}let $t;function ki(e){$t=e}let Kn;function _i(e){Kn=e}let Dt;function Vi(e){Dt=e}let z;function Ri(e){z=e}let zn;function Ai(e){zn=e}let qn;function Li(e){qn=e}let Yn;function Ii(e){Yn=e}let Qn;function Pi(e){Qn=e}let Xn;function xi(e){Xn=e}let Jn;function Hi(e){Jn=e}let Zn;function Bi(e){Zn=e}let er;function Fi(e){er=e}let we;function Wi(e){we=e}let tr;function ji(e){tr=e}let nr;function Ui(e){nr=e}let rr;function Gi(e){rr=e}let or;function Ki(e){or=e}let Ot;function zi(e){Ot=e}let ir;function qi(e){ir=e}let Yi;function Qi(e){Yi=e}let sr;function Xi(e){sr=e}let ar;function Ji(e){ar=e}const kt=new WeakMap;function Zi(e){let t=kt.get(e);if(c(t)){const n=g(null);t=n,kt.set(e,n)}return t}let ve=null;function cr(e,t){const n=kt.get(e);if(!c(n)){const r=n[t];if(!c(r))for(let o=0,i=r.length;o<i;o+=1)r[o].notify()}}function lr(e,t){if(ve===null)return;const n=ve,r=Zi(e);let o=r[t];if(c(o))o=[],r[t]=o;else if(o[0]===n)return;Et.call(o,n)===-1&&n.link(o)}class _t{constructor(t){this.listeners=[],this.callback=t}observe(t){const n=ve;ve=this;let r;try{t()}catch(o){r=Object(o)}finally{if(ve=n,r!==void 0)throw r}}reset(){const{listeners:t}=this,n=t.length;if(n>0){for(let r=0;r<n;r+=1){const o=t[r],i=Et.call(t[r],this);Fo.call(o,i,1)}t.length=0}}notify(){this.callback.call(void 0,this)}link(t){C.call(t,this),C.call(this.listeners,t)}}function ae(e,t){cr(e.component,t)}function be(e,t){lr(e.component,t)}function X(e){return`<${wt.call(e.tagName)}>`}function es(e){const t=[];let n="";for(;!h(e.owner);)C.call(t,n+X(e)),e=e.owner,n+="    ";return Ie.call(t,`
`)}function ts(e){const t=[];let n=e;for(;!h(n);)C.call(t,X(n)),n=n.owner;return t.reverse().join(`
    `)}function dr(e,t){if(!Ho(t)&&c(t.wcStack)){const n=ts(e);I(t,"wcStack",{get(){return n}})}}function ur(e,t,n){let r=`[LWC ${e}]: ${t}`;c(n)||(r=`${r}
${es(n)}`);try{throw new Error(r)}catch(o){console[e](o)}}function A(e,t){ur("error",e,t)}function Ql(e,t){ur("warn",e,t)}const fr=typeof HTMLElement!="undefined"?HTMLElement:function(){},pr=fr.prototype,ns=["accessKey","dir","draggable","hidden","id","lang","spellcheck","tabIndex","title"];function Ue(e){return`Using the \`${e}\` property is an anti-pattern because it rounds the value to an integer. Instead, use the \`getBoundingClientRect\` method to obtain fractional values for the size of an element and its position relative to the viewport.`}const Vt=W(g(null),{accessKey:{attribute:"accesskey"},accessKeyLabel:{readOnly:!0},className:{attribute:"class",error:"Using the `className` property is an anti-pattern because of slow runtime behavior and potential conflicts with classes provided by the owner element. Use the `classList` API instead."},contentEditable:{attribute:"contenteditable"},dataset:{readOnly:!0,error:"Using the `dataset` property is an anti-pattern because it can't be statically analyzed. Expose each property individually using the `@api` decorator instead."},dir:{attribute:"dir"},draggable:{attribute:"draggable"},dropzone:{attribute:"dropzone",readOnly:!0},hidden:{attribute:"hidden"},id:{attribute:"id"},inputMode:{attribute:"inputmode"},lang:{attribute:"lang"},slot:{attribute:"slot",error:"Using the `slot` property is an anti-pattern."},spellcheck:{attribute:"spellcheck"},style:{attribute:"style"},tabIndex:{attribute:"tabindex"},title:{attribute:"title"},translate:{attribute:"translate"},isContentEditable:{readOnly:!0},offsetHeight:{readOnly:!0,error:Ue("offsetHeight")},offsetLeft:{readOnly:!0,error:Ue("offsetLeft")},offsetParent:{readOnly:!0},offsetTop:{readOnly:!0,error:Ue("offsetTop")},offsetWidth:{readOnly:!0,error:Ue("offsetWidth")},role:{attribute:"role"}});let Rt=null,At;function rs(e,t){return e!==Rt||t!==At}function Ne(e,t){Rt=null,At=void 0}function Ce(e,t){Rt=e,At=t}const Te=g(null);ye.call(F(He),e=>{const t=P(pr,e);c(t)||(Te[e]=t)}),ye.call(ns,e=>{const t=P(pr,e);c(t)||(Te[e]=t)});function J(e){return W({configurable:!0,enumerable:!0,writable:!0},e)}function x(e){return W({configurable:!0,enumerable:!0},e)}let Me=!1;function Xl(){throw new ReferenceError}function Jl(){throw new ReferenceError}function Z(e,t){return A(`The \`${e}\` ${t} is available only on elements that use the \`lwc:dom="manual"\` directive.`)}function Zl(e,t){throw new ReferenceError}function os(e){throw new ReferenceError}function is(e){throw new ReferenceError}function ss(){throw new ReferenceError}function as(e){throw new ReferenceError}function ed(e){j(e,os(e))}function td(e){const t=is(e),n=me(e);ge(e,g(n,t))}function nd(e){j(e,ss())}function rd(e){j(e,as(e))}const{isArray:Ge}=Array,{prototype:cs,getPrototypeOf:Ke,create:hr,defineProperty:ze,isExtensible:qe,getOwnPropertyDescriptor:mr,getOwnPropertyNames:Lt,getOwnPropertySymbols:It,preventExtensions:gr,hasOwnProperty:Se}=Object,{push:Pt,concat:yr}=Array.prototype,ls={}.toString;function od(e){return e&&e.toString?e.toString():typeof e=="object"?ls.call(e):e+""}function S(e){return e===void 0}function xt(e){return typeof e=="function"}const Er=new WeakMap;function wr(e,t){Er.set(e,t)}const L=e=>Er.get(e)||e;class vr{constructor(t,n){this.originalTarget=n,this.membrane=t}wrapDescriptor(t){if(Se.call(t,"value"))t.value=this.wrapValue(t.value);else{const{set:n,get:r}=t;S(r)||(t.get=this.wrapGetter(r)),S(n)||(t.set=this.wrapSetter(n))}return t}copyDescriptorIntoShadowTarget(t,n){const{originalTarget:r}=this,o=mr(r,n);if(!S(o)){const i=this.wrapDescriptor(o);ze(t,n,i)}}lockShadowTarget(t){const{originalTarget:n}=this;yr.call(Lt(n),It(n)).forEach(i=>{this.copyDescriptorIntoShadowTarget(t,i)});const{membrane:{tagPropertyKey:o}}=this;!S(o)&&!Se.call(t,o)&&ze(t,o,hr(null)),gr(t)}apply(t,n,r){}construct(t,n,r){}get(t,n){const{originalTarget:r,membrane:{valueObserved:o}}=this,i=r[n];return o(r,n),this.wrapValue(i)}has(t,n){const{originalTarget:r,membrane:{tagPropertyKey:o,valueObserved:i}}=this;return i(r,n),n in r||n===o}ownKeys(t){const{originalTarget:n,membrane:{tagPropertyKey:r}}=this,o=S(r)||Se.call(n,r)?[]:[r];return Pt.apply(o,Lt(n)),Pt.apply(o,It(n)),o}isExtensible(t){const{originalTarget:n}=this;return qe(t)?qe(n)?!0:(this.lockShadowTarget(t),!1):!1}getPrototypeOf(t){const{originalTarget:n}=this;return Ke(n)}getOwnPropertyDescriptor(t,n){const{originalTarget:r,membrane:{valueObserved:o,tagPropertyKey:i}}=this;o(r,n);let s=mr(r,n);return S(s)?n!==i?void 0:(s={value:void 0,writable:!1,configurable:!1,enumerable:!1},ze(t,i,s),s):(s.configurable===!1&&this.copyDescriptorIntoShadowTarget(t,n),this.wrapDescriptor(s))}}const Ht=new WeakMap,Bt=new WeakMap,Ft=new WeakMap,Wt=new WeakMap;class ds extends vr{wrapValue(t){return this.membrane.getProxy(t)}wrapGetter(t){const n=Ht.get(t);if(!S(n))return n;const r=this,o=function(){return r.wrapValue(t.call(L(this)))};return Ht.set(t,o),Ft.set(o,t),o}wrapSetter(t){const n=Bt.get(t);if(!S(n))return n;const r=function(o){t.call(L(this),L(o))};return Bt.set(t,r),Wt.set(r,t),r}unwrapDescriptor(t){if(Se.call(t,"value"))t.value=L(t.value);else{const{set:n,get:r}=t;S(r)||(t.get=this.unwrapGetter(r)),S(n)||(t.set=this.unwrapSetter(n))}return t}unwrapGetter(t){const n=Ft.get(t);if(!S(n))return n;const r=this,o=function(){return L(t.call(r.wrapValue(this)))};return Ht.set(o,t),Ft.set(t,o),o}unwrapSetter(t){const n=Wt.get(t);if(!S(n))return n;const r=this,o=function(i){t.call(r.wrapValue(this),r.wrapValue(i))};return Bt.set(o,t),Wt.set(t,o),o}set(t,n,r){const{originalTarget:o,membrane:{valueMutated:i}}=this;return o[n]!==r?(o[n]=r,i(o,n)):n==="length"&&Ge(o)&&i(o,n),!0}deleteProperty(t,n){const{originalTarget:r,membrane:{valueMutated:o}}=this;return delete r[n],o(r,n),!0}setPrototypeOf(t,n){}preventExtensions(t){if(qe(t)){const{originalTarget:n}=this;if(gr(n),qe(n))return!1;this.lockShadowTarget(t)}return!0}defineProperty(t,n,r){const{originalTarget:o,membrane:{valueMutated:i,tagPropertyKey:s}}=this;return n===s&&!Se.call(o,n)||(ze(o,n,this.unwrapDescriptor(r)),r.configurable===!1&&this.copyDescriptorIntoShadowTarget(t,n),i(o,n)),!0}}const br=new WeakMap,Nr=new WeakMap;class us extends vr{wrapValue(t){return this.membrane.getReadOnlyProxy(t)}wrapGetter(t){const n=br.get(t);if(!S(n))return n;const r=this,o=function(){return r.wrapValue(t.call(L(this)))};return br.set(t,o),o}wrapSetter(t){const n=Nr.get(t);if(!S(n))return n;const r=this,o=function(i){};return Nr.set(t,o),o}set(t,n,r){return!1}deleteProperty(t,n){return!1}setPrototypeOf(t,n){}preventExtensions(t){return!1}defineProperty(t,n,r){return!1}}function jt(e){if(Ge(e))return e.map(r=>{const o=L(r);return o!==r?jt(o):r});const t=hr(Ke(e)),n=Lt(e);return yr.call(n,It(e)).reduce((r,o)=>{const i=e[o],s=L(i);return s!==i?r[o]=jt(s):r[o]=i,r},t)}const fs={header:e=>{const t=L(e);if(!t||t===e)return null;const n=jt(e);return["object",{object:n}]},hasBody:()=>!1,body:()=>null};function ps(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}function id(){throw new ReferenceError}function hs(e){if(e===null||typeof e!="object")return!1;if(Ge(e))return!0;const t=Ke(e);return t===cs||t===null||Ke(t)===null}const ms=(e,t)=>{},gs=(e,t)=>{};function Cr(e){return Ge(e)?[]:{}}class ys{constructor(t={}){this.readOnlyObjectGraph=new WeakMap,this.reactiveObjectGraph=new WeakMap;const{valueMutated:n,valueObserved:r,valueIsObservable:o,tagPropertyKey:i}=t;this.valueMutated=xt(n)?n:gs,this.valueObserved=xt(r)?r:ms,this.valueIsObservable=xt(o)?o:hs,this.tagPropertyKey=i}getProxy(t){const n=L(t);return this.valueIsObservable(n)?this.readOnlyObjectGraph.get(n)===t?t:this.getReactiveHandler(n):n}getReadOnlyProxy(t){return t=L(t),this.valueIsObservable(t)?this.getReadOnlyHandler(t):t}unwrapProxy(t){return L(t)}getReactiveHandler(t){let n=this.reactiveObjectGraph.get(t);if(S(n)){const r=new ds(this,t);n=new Proxy(Cr(t),r),wr(n,t),this.reactiveObjectGraph.set(t,n)}return n}getReadOnlyHandler(t){let n=this.readOnlyObjectGraph.get(t);if(S(n)){const r=new us(this,t);n=new Proxy(Cr(t),r),wr(n,t),this.readOnlyObjectGraph.set(t,n)}return n}}const Tr=Symbol.for("@@lockerLiveValue"),$e=new ys({valueObserved:lr,valueMutated:cr,tagPropertyKey:Tr});function Es(e){return $e.unwrapProxy(e)}function ws(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!N(n))throw new TypeError;if(!N(r))throw new TypeError;return{enumerable:o,configurable:i,get(){const s=m(this);if(!ln(s))return be(s,e),n.call(s.elm)},set(s){const a=m(this);return s!==a.cmpProps[e]&&(a.cmpProps[e]=s,ae(a,e)),r.call(a.elm,s)}}}const T=function(){if(h(oe))throw new ReferenceError("Illegal constructor");const e=oe,{def:t,elm:n}=e,{bridge:r}=t,o=this;if(ge(n,r.prototype),e.component=this,arguments.length===1){const{callHook:i,setHook:s,getHook:a}=arguments[0];e.callHook=i,e.setHook=s,e.getHook=a}return this[Tr]=void 0,hn(o,e),hn(n,e),e.renderMode===1?e.renderRoot=vs(e):e.renderRoot=n,this};function vs(e){const{elm:t,mode:n,shadowMode:r,def:{ctor:o}}=e,i=Gn(t,{[zo]:r===1,delegatesFocus:Boolean(o.delegatesFocus),mode:n});return e.shadowRoot=i,hn(i,e),i}function sd(e,t){ln(e)&&A(`this.${t} should not be called during the construction of the custom element for ${X(e)} because the element is not yet in the DOM or has no children yet.`)}T.prototype={constructor:T,dispatchEvent(e){const{elm:t}=m(this);return Dt(t,e)},addEventListener(e,t,n){const r=m(this),{elm:o}=r,i=ao(r,t);$t(o,e,i,n)},removeEventListener(e,t,n){const r=m(this),{elm:o}=r,i=ao(r,t);Kn(o,e,i,n)},hasAttribute(e){const{elm:t}=m(this);return!h(Q(t,e))},hasAttributeNS(e,t){const{elm:n}=m(this);return!h(Q(n,t,e))},removeAttribute(e){const{elm:t}=m(this);Ce(t,e),se(t,e),Ne()},removeAttributeNS(e,t){const{elm:n}=m(this);Ce(n,t),se(n,t,e),Ne()},getAttribute(e){const{elm:t}=m(this);return Q(t,e)},getAttributeNS(e,t){const{elm:n}=m(this);return Q(n,t,e)},setAttribute(e,t){const n=m(this),{elm:r}=n;Ce(r,e),K(r,e,t),Ne()},setAttributeNS(e,t,n){const r=m(this),{elm:o}=r;Ce(o,t),K(o,t,n,e),Ne()},getBoundingClientRect(){const e=m(this),{elm:t}=e;return qn(t)},get isConnected(){const{elm:e}=m(this);return or(e)},get classList(){const e=m(this),{elm:t}=e;return z(t)},get template(){return m(this).shadowRoot},get shadowRoot(){return null},render(){return m(this).def.template},toString(){return`[object ${m(this).def.name}]`}};const Ut=g(null),bs=["children","childNodes","firstChild","firstElementChild","lastChild","lastElementChild"];function Ns(e){switch(e){case"children":return Zn;case"childNodes":return er;case"firstChild":return we;case"firstElementChild":return tr;case"lastChild":return nr;case"lastElementChild":return rr}}for(const e of bs)Ut[e]={get(){const t=m(this),{elm:n}=t;return Ns(e)(n)},configurable:!0,enumerable:!0};const Cs=["getElementsByClassName","getElementsByTagName","querySelector","querySelectorAll"];function Ts(e){switch(e){case"getElementsByClassName":return Jn;case"getElementsByTagName":return Xn;case"querySelector":return Yn;case"querySelectorAll":return Qn}}for(const e of Cs)Ut[e]={value(t){const n=m(this),{elm:r}=n;return Ts(e)(r,t)},configurable:!0,enumerable:!0,writable:!0};j(T.prototype,Ut);const Gt=g(null);for(const e in Te)Gt[e]=ws(e,Te[e]);j(T.prototype,Gt),I(T,"CustomElementConstructor",{get(){throw new ReferenceError("The current runtime does not support CustomElementConstructor.")},configurable:!0});function Ms(e,t){throw new Error}function Ss(e){return{get(){const t=m(this);return be(t,e),t.cmpFields[e]},set(t){const n=m(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,ae(n,e))},enumerable:!0,configurable:!0}}function $s(e){if(arguments.length===1)return $e.getProxy(e);throw new Error}function Ds(e){return{get(){const t=m(this);return be(t,e),t.cmpFields[e]},set(t){const n=m(this),r=$e.getProxy(t);r!==n.cmpFields[e]&&(n.cmpFields[e]=r,ae(n,e))},enumerable:!0,configurable:!0}}function Os(){throw new Error}function ks(e){return{get(){const t=m(this);if(!ln(t))return be(t,e),t.cmpProps[e]},set(t){const n=m(this);n.cmpProps[e]=t,ae(n,e)},enumerable:!0,configurable:!0}}class _s extends _t{constructor(t,n){super(()=>{V(this.debouncing)&&(this.debouncing=!0,bt(()=>{if(U(this.debouncing)){const{value:r}=this,{isDirty:o,component:i,idx:s}=t;n.call(i,r),this.debouncing=!1,U(t.isDirty)&&V(o)&&s>0&&lo(t)}}))});this.debouncing=!1}reset(t){super.reset(),this.debouncing=!1,arguments.length>0&&(this.value=t)}}function Mr(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!N(n))throw new Error;return{get(){return n.call(this)},set(s){const a=m(this);if(r)if(D.ENABLE_REACTIVE_SETTER){let l=a.oar[e];c(l)&&(l=a.oar[e]=new _s(a,r)),l.reset(s),l.observe(()=>{r.call(this,s)})}else r.call(this,s)},enumerable:o,configurable:i}}function Vs(e){return{get(){const t=m(this);return be(t,e),t.cmpFields[e]},set(t){const n=m(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,ae(n,e))},enumerable:!0,configurable:!0}}function Ye(e){return N(e.value)?"method":N(e.set)||N(e.get)?"accessor":"field"}function ad(e,t,n){if(!c(n)){const r=Ye(n),o=`Invalid observed ${t} field. Found a duplicate ${r} with the same name.`;r==="accessor"?A(o):$.fail(o)}}function cd(e,t,n){if(!c(n)){const r=Ye(n);$.fail(`Invalid @track ${t} field. Found a duplicate ${r} with the same name.`)}}function ld(e,t,n){if(!c(n)){const r=Ye(n);$.fail(`Invalid @wire ${t} field. Found a duplicate ${r} with the same name.`)}}function dd(e,t,n){(c(n)||!N(n.value)||V(n.writable))&&$.fail(`Invalid @wire ${t} method.`)}function ud(e,t,n){if(!c(n)){const r=Ye(n),o=`Invalid @api ${t} field. Found a duplicate ${r} with the same name.`;r==="accessor"?A(o):$.fail(o)}}function fd(e,t,n){c(n)?$.fail(`Invalid @api get ${t} accessor.`):N(n.set)?$.isTrue(N(n.get),`Missing getter for property ${t} decorated with @api in ${e}. You cannot have a setter without the corresponding getter.`):N(n.get)||$.fail(`Missing @api get ${t} accessor.`)}function pd(e,t,n){(c(n)||!N(n.value)||V(n.writable))&&$.fail(`Invalid @api ${t} method.`)}function Rs(e,t){const n=e.prototype,{publicProps:r,publicMethods:o,wire:i,track:s,fields:a}=t,l=g(null),u=g(null),d=g(null),f=g(null),w=g(null),b=g(null);let p;if(!c(r))for(const y in r){const _=r[y];if(b[y]=_.config,p=q(n,y),_.config>0){if(c(p))throw new Error;p=Mr(y,p)}else!c(p)&&!c(p.get)?p=Mr(y,p):p=ks(y);u[y]=p,I(n,y,p)}if(c(o)||ye.call(o,y=>{if(p=q(n,y),c(p))throw new Error;l[y]=p}),!c(i))for(const y in i){const{adapter:_,method:v,config:B,dynamic:he=[]}=i[y];if(p=q(n,y),v===1){if(c(p))throw new Error;d[y]=p,Nc(p,_,B,he)}else p=Ss(y),f[y]=p,Cc(p,_,B,he),I(n,y,p)}if(!c(s))for(const y in s)p=q(n,y),p=Ds(y),I(n,y,p);if(!c(a))for(let y=0,_=a.length;y<_;y++){const v=a[y];p=q(n,v);const B=!c(r)&&v in r,he=!c(s)&&v in s;!B&&!he&&(w[v]=Vs(v))}return As(e,{apiMethods:l,apiFields:u,apiFieldsConfig:b,wiredMethods:d,wiredFields:f,observedFields:w}),e}const Sr=new Map;function As(e,t){Sr.set(e,t)}const Ls={apiMethods:O,apiFields:O,apiFieldsConfig:O,wiredMethods:O,wiredFields:O,observedFields:O};function Is(e){const t=Sr.get(e);return c(t)?Ls:t}let $r=!1;function hd(e,t){const n=e.toString().match(Jo);if(!h(n)&&!$r){const r=n[1],[o,i]=r.split("."),[s,a]=Rn.split(".");if(o!==s||i!==a){$r=!0;const l=t==="component"?`${t} ${e.name}`:t;A(`LWC WARNING: current engine is v${Rn}, but ${l} was compiled with v${r}.
Please update your compiled code or LWC engine so that the versions match.
No further warnings will appear.`)}}}const Kt=new Set;function zt(){return[]}Kt.add(zt);function Ps(e){return Kt.has(e)}function xs(e){return Kt.add(e),e}function Hs(e,t,n,r){return r}const Dr=g(null),Or=g(null);function Bs(e){let t=Dr[e];return c(t)&&(t=Dr[e]=function(){const n=m(this),{getHook:r}=n;return r(n.component,e)}),t}function Fs(e){let t=Or[e];return c(t)&&(t=Or[e]=function(n){const r=m(this),{setHook:o}=r;n=$e.getReadOnlyProxy(n),o(r.component,e,n)}),t}function Ws(e){return function(){const t=m(this),{callHook:n,component:r}=t,o=r[e];return n(t.component,o,Tn.call(arguments))}}function js(e,t){return function(r,o,i){if(o===i)return;const s=e[r];if(c(s)){c(t)||t.apply(this,arguments);return}!rs(this,r)||(this[s]=i)}}function kr(e,t,n){let r;N(e)?r=class extends e{}:(r=function(){throw new TypeError("Illegal constructor")},ge(r,e),ge(r.prototype,e.prototype),I(r.prototype,"constructor",{writable:!0,configurable:!0,value:r}));const o=g(null),{attributeChangedCallback:i}=e.prototype,{observedAttributes:s=[]}=e,a=g(null);for(let l=0,u=t.length;l<u;l+=1){const d=t[l];o[Vn(d)]=d,a[d]={get:Bs(d),set:Fs(d),enumerable:!0,configurable:!0}}for(let l=0,u=n.length;l<u;l+=1){const d=n[l];a[d]={value:Ws(d),writable:!0,configurable:!0}}return a.attributeChangedCallback={value:js(o,i)},I(r,"observedAttributes",{get(){return[...s,...F(o)]}}),j(r.prototype,a),r}const qt=kr(fr,yt(Te),[]);gt(qt),Le(qt.prototype);function Yt(e){const t=e();return(t==null?void 0:t.__esModule)?t.default:t}function Qt(e){return N(e)&&Ae.call(e,"__circular__")}const _r=new WeakMap,Vr=new WeakMap,Rr=new WeakMap,Qe=new WeakMap,Xe=new WeakMap,Je=new WeakMap;function md(e){const t=Qe.get(e);return c(t)||(t.forEach(n=>{V(n.isDirty)&&(ue(n),gn(n))}),t.clear()),!0}function gd(e){const t=Je.get(e);return c(t)||(t.forEach(n=>{go(n)}),t.clear()),!0}function yd(e){const t=Xe.get(e);let n=!0;return c(t)||(t.forEach(r=>{const{owner:o}=r;h(o)?n=!1:go(o)}),t.clear()),n}function Ed(e){throw new ReferenceError}function wd(e){throw new ReferenceError}function Us(e){throw new ReferenceError}function vd(e){throw new ReferenceError}function bd(e){throw new ReferenceError}function Gs(e,t){if(!D.ENABLE_HMR)throw new Error("HMR is not enabled");return!1}function Ks(e,t){if(!D.ENABLE_HMR)throw new Error("HMR is not enabled");return!1}function zs(e,t){if(!D.ENABLE_HMR)throw new Error("HMR is not enabled");return!1}const Xt=new WeakMap;function qs(e){let t=me(e);if(h(t))throw new ReferenceError(`Invalid prototype chain for ${e.name}, you must extend LightningElement.`);if(Qt(t)){const n=Yt(t);t=n===t?T:n}return t}function Ys(e){const{shadowSupportMode:t,renderMode:n}=e,r=Is(e),{apiFields:o,apiFieldsConfig:i,apiMethods:s,wiredFields:a,wiredMethods:l,observedFields:u}=r,d=e.prototype;let{connectedCallback:f,disconnectedCallback:w,renderedCallback:b,errorCallback:p,render:y}=d;const _=qs(e),v=_!==T?De(_):Xs,B=kr(v.bridge,F(o),F(s)),he=W(g(null),v.props,o),Hl=W(g(null),v.propsConfig,i),Bl=W(g(null),v.methods,s),Fl=W(g(null),v.wire,a,l);f=f||v.connectedCallback,w=w||v.disconnectedCallback,b=b||v.renderedCallback,p=p||v.errorCallback,y=y||v.render;let Ro=v.shadowSupportMode;c(t)||(Ro=t);let Ao=v.renderMode;c(n)||(Ao=n==="light"?0:1);const Wl=Ja(e)||v.template,jl=e.name||v.name;return j(d,u),{ctor:e,name:jl,wire:Fl,props:he,propsConfig:Hl,methods:Bl,bridge:B,template:Wl,renderMode:Ao,shadowSupportMode:Ro,connectedCallback:f,disconnectedCallback:w,renderedCallback:b,errorCallback:p,render:y}}function Jt(e){if(!N(e))return!1;if(e.prototype instanceof T)return!0;let t=e;do{if(Qt(t)){const n=Yt(t);if(n===t)return!0;t=n}if(t===T)return!0}while(!h(t)&&(t=me(t)));return!1}function De(e){let t=Xt.get(e);if(c(t)){if(Qt(e)){const n=Yt(e);return t=De(n),Xt.set(e,t),t}if(!Jt(e))throw new TypeError(`${e} is not a valid component, or does not extends LightningElement from "lwc". You probably forgot to add the extend clause on the class declaration.`);t=Ys(e),Xt.set(e,t)}return t}function Qs(e){return De(e).bridge}const Xs={ctor:T,name:T.name,props:Gt,propsConfig:O,methods:O,renderMode:1,shadowSupportMode:"reset",wire:O,bridge:qt,template:zt,render:T.prototype.render};function Js(e){const t=De(e),{ctor:n,name:r,props:o,propsConfig:i,methods:s}=t,a={};for(const u in o)a[u]={config:i[u]||0,type:"any",attr:Vn(u)};const l={};for(const u in s)l[u]=s[u].value;return{ctor:n,name:r,props:a,methods:l}}function Ar(e){e=e.toLowerCase();let t=ar(e);return c(t)&&(t=class extends Hn{constructor(r){super();N(r)&&r(this)}},sr(e,t)),t}function Zs(e){const{type:t}=e;return t===2||t===3}function Ze(e,t){return e.key===t.key&&e.sel===t.sel}const Lr=58;function ea(e,t){const{attrs:n}=t.data;if(c(n))return;const r=h(e)?O:e.data.attrs;if(r===n)return;const{elm:o}=t;for(const i in n){const s=n[i];r[i]!==s&&(Ce(o,i),Pe.call(i,3)===Lr?K(o,i,s,Yo):Pe.call(i,5)===Lr?K(o,i,s,Xo):h(s)||c(s)?se(o,i):K(o,i,s),Ne())}}function ta(e,t){return e==="input"&&(t==="value"||t==="checked")}function Ir(e,t){const{props:n}=t.data;if(c(n))return;const r=h(e)?O:e.data.props;if(r===n)return;const o=h(e),{elm:i,sel:s}=t;for(const a in n){const l=n[a];(o||l!==(ta(s,a)?Y(i,a):r[a]))&&Mt(i,a,l)}}const Pr=g(null);function xr(e){if(e==null)return O;e=On(e)?e:e+"";let t=Pr[e];if(t)return t;t=g(null);let n=0,r;const o=e.length;for(r=0;r<o;r++)Pe.call(e,r)===ii&&(r>n&&(t[Dn.call(e,n,r)]=!0),n=r+1);return r>n&&(t[Dn.call(e,n,r)]=!0),Pr[e]=t,t}function na(e,t){const{elm:n,data:{className:r}}=t,o=h(e)?void 0:e.data.className;if(o===r)return;const i=z(n),s=xr(r),a=xr(o);let l;for(l in a)c(s[l])&&i.remove(l);for(l in s)c(a[l])&&i.add(l)}function ra(e,t){const{elm:n,data:{style:r}}=t;(h(e)?void 0:e.data.style)!==r&&(!On(r)||r===""?se(n,"style"):K(n,"style",r))}function Hr(e){const{elm:t,data:{on:n}}=e;if(!c(n))for(const r in n){const o=n[r];$t(t,r,o)}}function oa(e){const{elm:t,data:{classMap:n}}=e;if(c(n))return;const r=z(t);for(const o in n)r.add(o)}function ia(e){const{elm:t,data:{styleDecls:n}}=e;if(!c(n))for(let r=0;r<n.length;r++){const[o,i,s]=n[r];zn(t,o,i,s)}}function Zt(e,t,n){wa(t)?ba(e,t,n):Na(e,t,n)}function ce(e,t){if(e!==t)switch(t.type){case 0:sa(e,t);break;case 1:ca(e,t);break;case 2:ua(e,t);break;case 3:pa(e,t);break}}function le(e,t,n){switch(e.type){case 0:aa(e,t,n);break;case 1:la(e,t,n);break;case 2:da(e,t,n);break;case 3:fa(e,t,n);break}}function sa(e,t){t.elm=e.elm,t.text!==e.text&&jr(t)}function aa(e,t,n){const{owner:r}=e,o=e.elm=jn(e.text);tt(o,r),ee(o,t,n)}function ca(e,t){t.elm=e.elm,t.text!==e.text&&jr(t)}function la(e,t,n){const{owner:r}=e,o=e.elm=Un(e.text);tt(o,r),ee(o,t,n)}function da(e,t,n){const{sel:r,owner:o,data:{svg:i}}=e,s=U(i)?Qo:void 0,a=Wn(r,s);tt(a,o),ma(a,e),e.elm=a,nt(null,e),ee(a,t,n),et(e.children,a,null)}function ua(e,t){const n=t.elm=e.elm;nt(e,t),Zt(e.children,t.children,n)}function fa(e,t,n){const{sel:r,owner:o}=e,i=Ar(r);let s;const a=new i(l=>{s=ga(l,e)});if(tt(a,o),e.elm=a,e.vm=s,s)nn(e,s);else if(e.ctor!==i)throw new TypeError("Incorrect Component Constructor");nt(null,e),ee(a,t,n),s&&dt(s),et(e.children,a,null),s&&ic(s)}function pa(e,t){const n=t.elm=e.elm,r=t.vm=e.vm;nt(e,t),c(r)||nn(t,r),Zt(e.children,t.children,n),c(r)||lo(r)}function et(e,t,n,r=0,o=e.length){for(;r<o;++r){const i=e[r];k(i)&&le(i,t,n)}}function Br(e,t,n=!1){const{type:r,elm:o}=e;switch(n&&tn(o,t),r){case 2:en(e.children,o);break;case 3:{const{vm:i}=e;c(i)||sc(i)}}}function en(e,t,n=!1,r=0,o=e.length){for(;r<o;++r){const i=e[r];k(i)&&Br(i,t,n)}}function k(e){return e!=null}function ha(e){e.$domManual$=!0}function Fr(e,t){e.$shadowToken$=t}function Wr(e,t){const{cmpTemplate:n,context:r}=t,o=n==null?void 0:n.stylesheetToken;!c(o)&&r.hasScopedStyles&&z(e).add(o)}function tt(e,t){const{renderRoot:n,renderMode:r,shadowMode:o}=t;Ct&&(o===1||r===0)&&(e[vt]=n[vt])}function jr(e){const{elm:t,text:n}=e;St(t,n)}function ee(e,t,n){Fn(e,t,n)}function tn(e,t){Tt(e,t)}function nt(e,t){h(e)&&(Hr(t),oa(t),ia(t)),na(e,t),ra(e,t),ea(e,t),Ir(e,t)}function ma(e,t){const{owner:n}=t;if(Wr(e,n),n.shadowMode===1){const{data:{context:r}}=t,{stylesheetToken:o}=n.context;!c(r)&&!c(r.lwc)&&r.lwc.dom==="manual"&&ha(e),c(o)||Fr(e,o)}}function nn(e,t){const n=e.aChildren||e.children;t.aChildren=n;const{renderMode:r,shadowMode:o}=t;(o===1||r===0)&&(ya(t,n),e.aChildren=n,e.children=R)}function ga(e,t){let n=fe(e);if(!c(n))return n;const{sel:r,mode:o,ctor:i,owner:s}=t;if(Wr(e,s),s.shadowMode===1){const{stylesheetToken:a}=s.context;c(a)||Fr(e,a)}return n=_e(e,i,{mode:o,owner:s,tagName:r}),n}function ya(e,t){var n;const{cmpSlots:r}=e,o=e.cmpSlots=g(null);for(let i=0,s=t.length;i<s;i+=1){const a=t[i];if(h(a))continue;let l="";Zs(a)&&(l=((n=a.data.attrs)===null||n===void 0?void 0:n.slot)||"");const u=o[l]=o[l]||[];c(a.key)||(a.key=`@${l}:${a.key}`),C.call(u,a)}if(V(e.isDirty)){const i=F(r);if(i.length!==F(o).length){ue(e);return}for(let s=0,a=i.length;s<a;s+=1){const l=i[s];if(c(o[l])||r[l].length!==o[l].length){ue(e);return}const u=r[l],d=o[l];for(let f=0,w=o[l].length;f<w;f+=1)if(u[f]!==d[f]){ue(e);return}}}}const Ur=new WeakMap;function Ea(e){Ur.set(e,1)}function wa(e){return Ur.has(e)}function va(e,t,n){const r={};for(let o=t;o<=n;++o){const i=e[o];if(k(i)){const{key:s}=i;s!==void 0&&(r[s]=o)}}return r}function ba(e,t,n){let r=0,o=0,i=e.length-1,s=e[0],a=e[i];const l=t.length-1;let u=l,d=t[0],f=t[u],w,b,p,y,_=!1;for(;r<=i&&o<=u;)k(s)?k(a)?k(d)?k(f)?Ze(s,d)?(ce(s,d),s=e[++r],d=t[++o]):Ze(a,f)?(ce(a,f),a=e[--i],f=t[--u]):Ze(s,f)?(ce(s,f),ee(s.elm,n,je(a.elm)),s=e[++r],f=t[--u]):Ze(a,d)?(ce(a,d),ee(d.elm,n,s.elm),a=e[--i],d=t[++o]):(w===void 0&&(w=va(e,r,i)),b=w[d.key],c(b)?(le(d,n,s.elm),d=t[++o]):(p=e[b],k(p)&&(p.sel!==d.sel?le(d,n,s.elm):(ce(p,d),_||(_=!0,e=[...e]),e[b]=void 0,ee(p.elm,n,s.elm))),d=t[++o])):f=t[--u]:d=t[++o]:a=e[--i]:s=e[++r];if(r<=i||o<=u)if(r>i){let v=u,B;do B=t[++v];while(!k(B)&&v<l);y=k(B)?B.elm:null,et(t,n,y,o,u+1)}else en(e,n,!0,r,i+1)}function Na(e,t,n){const r=e.length,o=t.length;if(r===0){et(t,n,null);return}if(o===0){en(e,n,!0);return}let i=null;for(let s=o-1;s>=0;s-=1){const a=e[s],l=t[s];l!==a&&(k(a)?k(l)?(ce(a,l),i=l.elm):Br(a,n,!0):k(l)&&(le(l,n,i),i=l.elm))}}const Ca=Symbol.iterator;function Ta(e){C.call(H().velements,e)}function Gr(e,t,n=R){const r=H();let o;const{key:i}=t;return{type:2,sel:e,data:t,children:n,elm:o,key:i,owner:r}}function Ma(e){return e>0&&!(U(e)||V(e))?0:e}function Sa(e,t,n,r){!c(r)&&!c(r[e])&&r[e].length!==0&&(n=r[e]);const o=H(),{renderMode:i,shadowMode:s}=o;return i===0?(rt(n),n):(s===1&&rt(n),Gr("slot",t,n))}function Kr(e,t,n,r=R){const o=H(),{key:i}=n;let s,a,l;const u={type:3,sel:e,data:n,children:r,elm:s,key:i,ctor:t,owner:o,mode:"open",aChildren:a,vm:l};return Ta(u),u}function $a(e,t){const n=[];rt(n);const r=H();if(c(e)||e===null)return n;const o=e[Ca]();let i=o.next(),s=0,{value:a,done:l}=i,u,d;for(;l===!1;){i=o.next(),l=i.done;const f=t(a,s,s===0,l===!0);ie(f)?C.apply(n,f):C.call(n,f),s+=1,a=i.value}return n}function Da(e){const t=e.length,n=[];rt(n);for(let r=0;r<t;r+=1){const o=e[r];ie(o)?C.apply(n,o):C.call(n,o)}return n}function Oa(e){let t,n,r;return{type:0,sel:t,text:e,elm:r,key:n,owner:H()}}function ka(e){let t,n,r;return{type:1,sel:t,text:e,elm:r,key:n,owner:H()}}function _a(e){return e==null?"":String(e)}function Va(e){const t=H();if(h(t))throw new Error;const n=t;return function(r){ro(n,e,n.component,r)}}function Ra(e,t){switch(typeof t){case"number":case"string":return e+":"+t;case"object":}}function Aa(e){const t=H();if(c(e)||e==="")return e;if(h(e))return null;const{idx:n,shadowMode:r}=t;return r===1?$n.call(e,/\S+/g,o=>`${o}-${n}`):e}function La(e){const t=H();if(c(e)||e==="")return e;if(h(e))return null;const{idx:n,shadowMode:r}=t;return r===1&&/^#/.test(e)?`${e}-${n}`:e}const zr=new Map;let Ia=0;function Pa(e,t,n,r=R){if(t==null)return null;if(!Jt(t))throw new Error(`Invalid LWC Constructor ${Ee(t)} for custom element <${e}>.`);let o=zr.get(t);c(o)&&(o=Ia++,zr.set(t,o));const i=Object.assign(Object.assign({},n),{key:`dc:${o}:${n.key}`});return Kr(e,t,i,r)}function rt(e){return Ea(e),e}let qr=()=>{throw new Error("sanitizeHtmlContent hook must be implemented.")};function xa(e){qr=e}function Ha(e){return qr(e)}const rn=gt({s:Sa,h:Gr,c:Kr,i:$a,f:Da,t:Oa,d:_a,b:Va,k:Ra,co:ka,dc:Pa,ti:Ma,gid:Aa,fid:La,shc:Ha});function ot(e){return`${e}-host`}function Ba(e){return rn.h("style",{key:"style",attrs:{type:"text/css"}},[rn.t(e)])}function Fa(e,t){const{elm:n,context:r,renderMode:o,shadowMode:i}=e,{stylesheets:s,stylesheetToken:a}=t,l=o===1&&i===1,{hasScopedStyles:u}=r;let d,f,w;const{stylesheetToken:b,hasTokenInClass:p,hasTokenInAttribute:y}=r;c(b)||(p&&z(n).remove(ot(b)),y&&se(n,ot(b))),!c(s)&&s.length!==0&&(d=a),c(d)||(u&&(z(n).add(ot(d)),f=!0),l&&(K(n,ot(d),""),w=!0)),r.stylesheetToken=d,r.hasTokenInClass=f,r.hasTokenInAttribute=w}function Yr(e,t,n){const r=[];let o;for(let i=0;i<e.length;i++){let s=e[i];if(ie(s))C.apply(r,Yr(s,t,n));else{const a=s[kn],l=a||n.shadowMode===1&&n.renderMode===1?t:void 0,u=n.renderMode===0?!a:n.shadowMode===0;let d;n.renderMode===1?d=n.shadowMode===0:(c(o)&&(o=Qr(n)),d=h(o)||o.shadowMode===0),C.call(r,s(l,u,d))}}return r}function Wa(e,t){const{stylesheets:n,stylesheetToken:r}=t;let o=[];return!c(n)&&n.length!==0&&(o=Yr(n,r,e)),o}function Qr(e){let t=e;for(;!h(t);){if(t.renderMode===1)return t;t=t.owner}return t}function ja(e){const t=Qr(e);return!h(t)&&t.shadowMode===1?null:t}function Ua(e,t){const{renderMode:n,shadowMode:r}=e;if(n===1&&r===1)for(let o=0;o<t.length;o++)Ot(t[o]);else if(We||Bn()){const o=Ie.call(t,`
`);return Ba(o)}else{const o=ja(e),i=h(o);for(let s=0;s<t.length;s++)i?Ot(t[s]):ir(t[s],o.shadowRoot)}return null}const Ga=["constructor","render","patch","connectedCallback","renderedCallback","disconnectedCallback","errorCallback","lwc-hydrate","lwc-rehydrate"],Xr=typeof performance!="undefined"&&typeof performance.mark=="function"&&typeof performance.clearMarks=="function"&&typeof performance.measure=="function"&&typeof performance.clearMeasures=="function",Jr=Xr?e=>{performance.mark(e)}:M,Zr=Xr?(e,t)=>{performance.measure(e,t),performance.clearMarks(t),performance.clearMeasures(e)}:M;function on(e){return Ga[e]}function eo(e,t){return`${X(t)} - ${on(e)}`}function it(e,t){return`${eo(e,t)} - ${t.idx}`}const st=!1;let de=!1,te=M;const Ka={enableProfiler(){de=!0},disableProfiler(){de=!1},attachDispatcher(e){te=e,this.enableProfiler()},detachDispatcher(){const e=te;return te=M,this.disableProfiler(),e}};function ne(e,t){if(st){const n=it(e,t);Jr(n)}de&&te(e,0,t.tagName,t.idx,t.renderMode,t.shadowMode)}function re(e,t){if(st){const n=it(e,t),r=eo(e,t);Zr(r,n)}de&&te(e,1,t.tagName,t.idx,t.renderMode,t.shadowMode)}function to(e,t){if(st){const n=on(e),r=c(t)?n:it(e,t);Jr(r)}de&&te(e,0,t==null?void 0:t.tagName,t==null?void 0:t.idx,t==null?void 0:t.renderMode,t==null?void 0:t.shadowMode)}function sn(e,t){if(st){const n=on(e),r=c(t)?n:it(e,t);Zr(n,r)}de&&te(e,1,t==null?void 0:t.tagName,t==null?void 0:t.idx,t==null?void 0:t.renderMode,t==null?void 0:t.shadowMode)}let an=!1,Oe=null;function H(){return Oe}function no(e){Oe=e}function Nd(e,t){throw new ReferenceError}function Cd(e,t){e!==zt&&(t.renderMode===0?$.isTrue(e.renderMode==="light",`Light DOM components can't render shadow DOM templates. Add an 'lwc:render-mode="light"' directive to the root template tag of ${X(t)}.`):$.isTrue(c(e.renderMode),`Shadow DOM components template can't render light DOM templates. Either remove the 'lwc:render-mode' directive from ${X(t)} or set it to 'lwc:render-mode="shadow"`))}function za(e,t){const n=an,r=Oe;let o=[];return G(e,e.owner,()=>{Oe=e,ne(1,e)},()=>{const{component:i,context:s,cmpSlots:a,cmpTemplate:l,tro:u}=e;u.observe(()=>{if(t!==l){if(h(l)||mo(e),!Ps(t))throw new TypeError(`Invalid template returned by the render() method on ${e}. It must return an imported template (e.g.: \`import html from "./${e.def.name}.html"\`), instead, it has returned: ${Ee(t)}.`);e.cmpTemplate=t,s.tplCache=g(null),s.hasScopedStyles=qa(t),Fa(e,t);const f=Wa(e,t);s.styleVNode=f.length===0?null:Ua(e,f)}e.velements=[],an=!0,o=t.call(void 0,rn,i,a,s.tplCache);const{styleVNode:d}=s;h(d)||Mn.call(o,d)})},()=>{an=n,Oe=r,re(1,e)}),o}function qa(e){const{stylesheets:t}=e;if(!c(t)){for(let n=0;n<t.length;n++)if(U(t[n][kn]))return!0}return!1}let cn=!1,oe=null;function ln(e){return oe===e}function at(e,t,n){const{component:r,callHook:o,owner:i}=e;G(e,i,M,()=>{o(r,t,n)},M)}function Ya(e,t){const n=oe;let r;ne(0,e),oe=e;try{const o=new t;if(oe.component!==o)throw new TypeError("Invalid component constructor, the class should extend LightningElement.")}catch(o){r=Object(o)}finally{if(re(0,e),oe=n,!c(r))throw dr(e,r),r}}function Qa(e){const{def:{render:t},callHook:n,component:r,owner:o}=e,i=cn,s=H();let a,l=!1;return G(e,o,()=>{cn=!0,no(e)},()=>{e.tro.observe(()=>{a=n(r,t),l=!0})},()=>{cn=i,no(s)}),l?za(e,a):[]}function ro(e,t,n,r){const{callHook:o,owner:i}=e;G(e,i,M,()=>{o(n,t,[r])},M)}const oo=new Map;function Xa(e,{tmpl:t}){return N(e)&&oo.set(e,t),e}function Ja(e){return oo.get(e)}function Za(e){return new _t(()=>{const{isDirty:t}=e;V(t)&&(ue(e),gn(e))})}function io(e){e.tro.reset();const t=Qa(e);return e.isDirty=!1,e.isScheduled=!1,t}function ue(e){e.isDirty=!0}const so=new WeakMap;function ao(e,t){if(!N(t))throw new TypeError;let n=so.get(t);return c(n)&&(n=function(r){ro(e,t,void 0,r)},so.set(t,n)),n}const ke=g(null),co=["rendered","connected","disconnected"];function ec(e){for(let t=0;t<co.length;++t){const n=co[t];if(n in e){let r=ke[n];c(r)&&(ke[n]=r=[]),C.call(r,e[n])}}}function dn(e,t){const{component:n,def:r,context:o}=e;for(let i=0,s=t.length;i<s;++i)t[i].call(void 0,n,{},r,o)}let tc=0;const un=new WeakMap;function nc(e,t,n=[]){return t.apply(e,n)}function rc(e,t,n){e[t]=n}function oc(e,t){return e[t]}function lo(e){lt(e)}function fn(e){const t=m(e);to(7,t),t.state===1&&pn(e),dt(t),lt(t),sn(7,t)}function pn(e){const t=m(e);ct(t)}function ic(e){lt(e)}function ct(e){const{state:t}=e;if(t!==2){const{oar:n,tro:r}=e;r.reset();for(const o in n)n[o].reset();dc(e),po(e),uc(e)}}function sc(e){ct(e)}function ac(e){let t=e.owner;for(;!h(t)&&t.renderMode===0;)t=t.owner;return t}function _e(e,t,n){const{mode:r,owner:o,tagName:i}=n,s=De(t),a={elm:e,def:s,idx:tc++,state:0,isScheduled:!1,isDirty:!0,tagName:i,mode:r,owner:o,children:R,aChildren:R,velements:R,cmpProps:g(null),cmpFields:g(null),cmpSlots:g(null),oar:g(null),cmpTemplate:null,renderMode:s.renderMode,context:{stylesheetToken:void 0,hasTokenInClass:void 0,hasTokenInAttribute:void 0,hasScopedStyles:void 0,styleVNode:null,tplCache:O,wiredConnecting:R,wiredDisconnecting:R},tro:null,shadowMode:null,component:null,shadowRoot:null,renderRoot:null,callHook:nc,setHook:rc,getHook:oc};return a.shadowMode=cc(a),a.tro=Za(a),Ya(a,s.ctor),mn(a)&&Tc(a),a}function cc(e){const{def:t}=e;let n;if(Ct)if(t.renderMode===0)n=0;else if(xn)if(D.ENABLE_MIXED_SHADOW_MODE)if(t.shadowSupportMode==="any")n=0;else{const r=ac(e);!h(r)&&r.shadowMode===0?n=0:n=1}else n=1;else n=1;else n=0;return n}function Td(e){if(h(e)||!xe(e)||!("renderRoot"in e))throw new TypeError(`${e} is not a VM.`)}function hn(e,t){un.set(e,t)}function m(e){return un.get(e)}function fe(e){return un.get(e)}function lt(e){if(U(e.isDirty)){const t=io(e);lc(e,t)}}function lc(e,t){const{renderRoot:n,children:r}=e;e.children=t,(t.length>0||r.length>0)&&r!==t&&G(e,e,()=>{ne(2,e)},()=>{Zt(r,t,n)},()=>{re(2,e)}),e.state===1&&uo(e)}function uo(e){const{def:{renderedCallback:t}}=e;if(U(We))return;const{rendered:n}=ke;n&&dn(e,n),c(t)||(ne(4,e),at(e,t),re(4,e))}let pe=[];function fo(){to(8);const e=pe.sort((t,n)=>t.idx-n.idx);pe=[];for(let t=0,n=e.length;t<n;t+=1){const r=e[t];try{lt(r)}catch(o){throw t+1<n&&(pe.length===0&&bt(fo),Mn.apply(pe,Tn.call(e,t+1))),sn(8),o}}sn(8)}function dt(e){const{state:t}=e;if(t===1)return;e.state=1;const{connected:n}=ke;n&&dn(e,n),mn(e)&&Mc(e);const{connectedCallback:r}=e.def;c(r)||(ne(3,e),at(e,r),re(3,e))}function mn(e){return yt(e.def.wire).length>0}function dc(e){V(e.isDirty)&&(e.isDirty=!0),e.state=2;const{disconnected:t}=ke;t&&dn(e,t),mn(e)&&Sc(e);const{disconnectedCallback:n}=e.def;c(n)||(ne(5,e),at(e,n),re(5,e))}function po(e){const{velements:t}=e;for(let n=t.length-1;n>=0;n-=1){const{elm:r}=t[n];if(!c(r)){const o=fe(r);c(o)||ct(o)}}}function uc(e){const{aChildren:t}=e;ho(t)}function ho(e){for(let t=0,n=e.length;t<n;t+=1){const r=e[t];if(!h(r)&&!c(r.elm))switch(r.type){case 2:ho(r.children);break;case 3:{const o=m(r.elm);ct(o);break}}}}function mo(e){const{children:t,renderRoot:n}=e;for(let r=0,o=t.length;r<o;r++){const i=t[r];!h(i)&&!c(i.elm)&&Tt(i.elm,n)}e.children=R,po(e),e.velements=R}function gn(e){U(We)||U(e.isScheduled)||(e.isScheduled=!0,pe.length===0&&bt(fo),C.call(pe,e))}function fc(e){let t=e;for(;!h(t);){if(!c(t.def.errorCallback))return t;t=t.owner}}function G(e,t,n,r,o){let i;n();try{r()}catch(s){i=Object(s)}finally{if(o(),!c(i)){dr(e,i);const s=h(t)?void 0:fc(t);if(c(s))throw i;mo(e),ne(6,e);const a=s.def.errorCallback;at(s,a,[i,i.wcStack]),re(6,e)}}}function go(e){e.cmpTemplate=()=>[],V(e.isDirty)&&(ue(e),gn(e))}const pc="$$DeprecatedWiredElementHostKey$$",hc="$$DeprecatedWiredParamsMetaKey$$",yn=new Map;class mc extends CustomEvent{constructor(t,{setNewContext:n,setDisconnectedCallback:r}){super(t,{bubbles:!0,composed:!0});j(this,{setNewContext:{value:n},setDisconnectedCallback:{value:r}})}}function gc(e,t){const{cmpFields:n}=e;return r=>{r!==e.cmpFields[t]&&(n[t]=r,ae(e,t))}}function yc(e,t){return n=>{G(e,e.owner,M,()=>{t.call(e.component,n)},M)}}function Ec(e,t,n){let r=!1;const o=new _t(()=>{r===!1&&(r=!0,Promise.resolve().then(()=>{r=!1,o.reset(),i()}))}),i=()=>{let s;o.observe(()=>s=t(e)),n(s)};return{computeConfigAndUpdate:i,ro:o}}function wc(e,t,n){const{adapter:r}=t,o=Eo(r);if(c(o))return;const{elm:i,context:{wiredConnecting:s,wiredDisconnecting:a}}=e;C.call(s,()=>{const l=new mc(o,{setNewContext(u){n(u)},setDisconnectedCallback(u){C.call(a,u)}});Dt(i,l)})}function vc(e,t,n){const{method:r,adapter:o,configCallback:i,dynamic:s}=n,a=c(r)?gc(e,t):yc(e,r);let l,u;I(a,pc,{value:e.elm}),I(a,hc,{value:s}),G(e,e,M,()=>{u=new o(a)},M);const d=b=>{G(e,e,M,()=>{u.update(b,l)},M)},{computeConfigAndUpdate:f,ro:w}=Ec(e.component,i,d);return c(o.contextSchema)||wc(e,n,b=>{l!==b&&(l=b,e.state===1&&f())}),{connector:u,computeConfigAndUpdate:f,resetConfigWatcher:()=>w.reset()}}const yo=new Map;function Eo(e){return yo.get(e)}function bc(e,t){yo.set(e,t)}function Nc(e,t,n,r){t.adapter&&(t=t.adapter);const o=e.value,i={adapter:t,method:o,configCallback:n,dynamic:r};yn.set(e,i)}function Cc(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,configCallback:n,dynamic:r};yn.set(e,o)}function Tc(e){const{context:t,def:{wire:n}}=e,r=t.wiredConnecting=[],o=t.wiredDisconnecting=[];for(const i in n){const s=n[i],a=yn.get(s);if(!c(a)){const{connector:l,computeConfigAndUpdate:u,resetConfigWatcher:d}=vc(e,i,a),f=a.dynamic.length>0;C.call(r,()=>{if(l.connect(),!D.ENABLE_WIRE_SYNC_EMIT&&f){Promise.resolve().then(u);return}u()}),C.call(o,()=>{l.disconnect(),d()})}}}function Mc(e){const{wiredConnecting:t}=e.context;for(let n=0,r=t.length;n<r;n+=1)t[n]()}function Sc(e){const{wiredDisconnecting:t}=e.context;G(e,e,M,()=>{for(let n=0,r=t.length;n<r;n+=1)t[n]()},M)}function $c(e){let t=Eo(e);if(!c(t))throw new Error("Adapter already has a context provider.");t=ai(),bc(e,t);const n=new WeakSet;return(r,o)=>{if(n.has(r))throw new Error(`Adapter was already installed on ${r}.`);n.add(r);const{consumerConnectedCallback:i,consumerDisconnectedCallback:s}=o;r.addEventListener(t,a=>{const{setNewContext:l,setDisconnectedCallback:u}=a,d={provide(w){l(w)}};u(()=>{c(s)||s(d)}),i(d),a.stopImmediatePropagation()})}}function Dc(e){return $e.getReadOnlyProxy(e)}let Ve=!1;function Oc(e){Ve=!1,dt(e),wo(e),Ve&&A("Hydration completed with errors.",e)}function wo(e){const t=io(e);e.children=t;const n=e.renderRoot;En(we(n),t,n,e),uo(e)}function kc(e,t){let n;switch(t.type){case 0:n=_c(e,t);break;case 1:n=Vc(e,t);break;case 2:n=Rc(e,t);break;case 3:n=Ac(e,t);break}return je(n)}function _c(e,t){var n;return ft(t,e,3)?(St(e,(n=t.text)!==null&&n!==void 0?n:null),t.elm=e,e):ut(e,t)}function Vc(e,t){var n;return ft(t,e,8)?(Mt(e,"nodeValue",(n=t.text)!==null&&n!==void 0?n:null),t.elm=e,e):ut(e,t)}function Rc(e,t){if(!ft(t,e,1)||!bo(t,e))return ut(e,t);t.elm=e;const{context:n}=t.data,r=Boolean(!c(n)&&!c(n.lwc)&&n.lwc.dom==="manual");if(r){const{props:o}=t.data;!c(o)&&!c(o.innerHTML)&&Y(e,"innerHTML")===o.innerHTML&&(t.data=Object.assign(Object.assign({},t.data),{props:ui(o,"innerHTML")}))}return vo(t),r||En(we(e),t.children,e,t.owner),e}function Ac(e,t){if(!ft(t,e,1)||!bo(t,e))return ut(e,t);const{sel:n,mode:r,ctor:o,owner:i}=t,s=_e(e,o,{mode:r,owner:i,tagName:n});return t.elm=e,t.vm=s,nn(t,s),vo(t),dt(s),s.renderMode!==0&&En(we(e),t.children,e,s),wo(s),e}function En(e,t,n,r){let o=!1,i=e,s=null;for(let a=0;a<t.length;a++){const l=t[a];h(l)||(i?(i=kc(i,l),s=l.elm):(Ve=!0,le(l,n,s),s=l.elm))}if(i){Ve=!0;do{const a=i;i=je(i),tn(a,n)}while(i)}}function ut(e,t,n){Ve=!0,!c(n);const r=Y(e,"parentNode");return le(t,r,e),tn(e,r),t.elm}function vo(e){Hr(e),Ir(null,e)}function ft(e,t,n){return Y(t,"nodeType")===n}function bo(e,t){if(e.sel.toLowerCase()!==Y(t,"tagName").toLowerCase())return!1;const n=Lc(e,t),r=Ic(e,t),o=Pc(e,t);return n&&r&&o}function Lc(e,t){const{data:{attrs:n={}}}=e;let r=!0;for(const[o,i]of Object.entries(n)){const s=Q(t,o);String(i)!==s&&(r=!1)}return r}function Ic(e,t){const{data:{className:n,classMap:r}}=e;let o=!0,i;if(!c(n)&&String(n)!==Y(t,"className"))o=!1,i=n;else if(!c(r)){const s=z(t);let a="";for(const l in r)a+=" "+l,s.contains(l)||(o=!1);i=a.trim(),s.length>F(r).length&&(o=!1)}return o}function Pc(e,t){const{data:{style:n,styleDecls:r}}=e,o=Q(t,"style")||"";let i,s=!0;if(!c(n)&&n!==o)s=!1,i=n;else if(!c(r)){const a=di(o),l=[];for(let u=0,d=r.length;u<d;u++){const[f,w,b]=r[u];l.push(`${f}: ${w+(b?" important!":"")}`);const p=a[f];c(p)?s=!1:p.startsWith(w)?b&&!p.endsWith("!important")&&(s=!1):s=!1}F(a).length>r.length&&(s=!1),i=Ie.call(l,";")}return s}let No=!1;function xc(e){$.isFalse(No,"Hooks are already overridden, only one definition is allowed."),No=!0,xa(e.sanitizeHtmlContent)}const Co=g(null),Hc=document.head||document.body||document,To=N(CSSStyleSheet.prototype.replaceSync)&&ie(document.adoptedStyleSheets),Bc=To&&q(document.adoptedStyleSheets,"length").writable,Mo=g(null),So=g(null),$o=new WeakMap;let wn,vn,pt;function Fc(){if(typeof customElements=="undefined")return!1;try{const e=HTMLElement;class t extends e{}return customElements.define("lwc-test-"+Math.floor(Math.random()*1e6),t),new t,!0}catch(e){return!1}}function Wc(e,t){let n=So[e];c(n)&&(n=new CSSStyleSheet,n.replaceSync(e),So[e]=n);const{adoptedStyleSheets:r}=t;r.includes(n)||(Bc?r.push(n):t.adoptedStyleSheets=[...r,n])}function jc(e,t){let n=$o.get(t);if(c(n)&&(n=g(null),$o.set(t,n)),n[e])return;n[e]=!0;let r=Mo[e];c(r)?(r=document.createElement("style"),r.type="text/css",r.textContent=e,Mo[e]=r):r=r.cloneNode(!0),t.appendChild(r)}if(Fc())wn=customElements.get.bind(customElements),vn=customElements.define.bind(customElements),pt=HTMLElement;else{const e=g(null),t=new WeakMap;vn=function(r,o){if(r!==wt.call(r)||e[r])throw new TypeError("Invalid Registration");e[r]=o,t.set(o,r)},wn=function(r){return e[r]},pt=function n(){if(!(this instanceof n))throw new TypeError("Invalid Invocation");const{constructor:r}=this,o=t.get(r);if(!o)throw new TypeError("Invalid Construction");const i=document.createElement(o);return ge(i,r.prototype),i},pt.prototype=HTMLElement.prototype}let bn=!1;function ht(e){bn=e}const Uc=!1;function Gc(){return bn}const Kc=Be[Go],Do=Ae.call(Element.prototype,Ko);function zc(e,t){return c(t)?document.createElement(e):document.createElementNS(t,e)}function qc(e){return document.createTextNode(e)}function Yc(e){return document.createComment(e)}function Qc(e,t,n){t.insertBefore(e,n)}function Xc(e,t){t.removeChild(e)}function Jc(e){return e.nextSibling}function Zc(e,t){return bn?e.shadowRoot:e.attachShadow(t)}function el(e,t){e.nodeValue=t}function tl(e,t){return e[t]}function nl(e,t,n){e[t]=n}function rl(e,t,n){return c(n)?e.getAttribute(t):e.getAttributeNS(n,t)}function ol(e,t,n,r){return c(r)?e.setAttribute(t,n):e.setAttributeNS(r,t,n)}function il(e,t,n){c(n)?e.removeAttribute(t):e.removeAttributeNS(n,t)}function sl(e,t,n,r){e.addEventListener(t,n,r)}function al(e,t,n,r){e.removeEventListener(t,n,r)}function cl(e,t){return e.dispatchEvent(t)}function ll(e){return e.classList}function dl(e,t,n,r){e.style.setProperty(t,n,r?"important":"")}function ul(e){return e.getBoundingClientRect()}function fl(e,t){return e.querySelector(t)}function pl(e,t){return e.querySelectorAll(t)}function hl(e,t){return e.getElementsByTagName(t)}function ml(e,t){return e.getElementsByClassName(t)}function gl(e){return e.children}function yl(e){return e.childNodes}function El(e){return e.firstChild}function wl(e){return e.firstElementChild}function vl(e){return e.lastChild}function bl(e){return e.lastElementChild}function Nl(e){return e.isConnected}function Cl(e){if(!c(Co[e]))return;Co[e]=!0;const t=document.createElement("style");t.type="text/css",t.textContent=e,Hc.appendChild(t)}function Tl(e,t){To?Wc(e,t):jc(e,t)}function Ml(e,t){$.invariant(e instanceof HTMLElement,t)}const Sl=pt;Qi(Ml),Ci(Zc),bi(Yc),wi(zc),vi(qc),Xi(vn),Vi(cl),$i(rl),Li(ul),Fi(yl),Bi(gl),Ri(ll),Ji(wn),Hi(ml),xi(hl),Wi(El),ji(wl),Ui(vl),Gi(bl),Ti(tl),mi(Sl),yi(Qc),zi(Cl),qi(Tl),Ki(Nl),gi(Gc),pi(Kc),hi(Do),Ni(Jc),Ii(fl),Pi(pl),Ei(Xc),Oi(il),_i(al),Di(ol),Ai(dl),Mi(nl),Si(el),fi(Uc),ki(sl);function $l(e,t){if(e.shadowRoot){const n=e.shadowRoot;for(;!h(n.firstChild);)n.removeChild(n.firstChild)}if(t.renderMode==="light")for(;!h(e.firstChild);)e.removeChild(e.firstChild)}function Oo(e,t,n){const r=_e(e,t,{mode:"open",owner:null,tagName:e.tagName.toLowerCase()});for(const[o,i]of Object.entries(n))e[o]=i;return r}function ko(e,t,n={}){if(!(e instanceof Element))throw new TypeError(`"hydrateComponent" expects a valid DOM element as the first parameter but instead received ${e}.`);if(!N(t))throw new TypeError(`"hydrateComponent" expects a valid component constructor as the second parameter but instead received ${t}.`);if(!xe(n)||h(n))throw new TypeError(`"hydrateComponent" expects an object as the third parameter but instead received ${n}.`);if(fe(e)){console.warn('"hydrateComponent" expects an element that is not hydrated.',e);return}try{ht(!0);const r=Oo(e,t,n);Oc(r),ht(!1)}catch(r){console.error("Recovering from error while hydrating: ",r),$l(e,t),Oo(e,t,n),ht(!1),fn(e)}finally{ht(!1)}}function Dl(e){return e.CustomElementConstructor}const Nn=new WeakSet;function Ol(e){const t=Qs(e);return class extends t{constructor(){super();this.isConnected?(ko(this,e,{}),Nn.add(this)):_e(this,e,{mode:"open",owner:null,tagName:this.tagName})}connectedCallback(){Nn.has(this)?Nn.delete(this):fn(this)}disconnectedCallback(){pn(this)}}}const _o=Node,mt=new WeakMap,Cn=new WeakMap;function Re(e,t){const n=t.get(e);return c(n)||n(e),e}const{appendChild:kl,insertBefore:_l,removeChild:Vl,replaceChild:Rl}=_o.prototype;W(_o.prototype,{appendChild(e){const t=kl.call(this,e);return Re(t,mt)},insertBefore(e,t){const n=_l.call(this,e,t);return Re(n,mt)},removeChild(e){const t=Vl.call(this,e);return Re(t,Cn)},replaceChild(e,t){const n=Rl.call(this,e,t);return Re(n,Cn),Re(e,mt),n}});function Al(e,t){if(!xe(t)||h(t))throw new TypeError(`"createElement" function expects an object as second parameter but received "${Ee(t)}".`);const n=t.is;if(!N(n))throw new TypeError('"createElement" function expects an "is" option with a valid component constructor.');const r=Ar(e);let o=!1;const i=new r(s=>{_e(s,n,{tagName:e,mode:t.mode!=="closed"?"open":"closed",owner:null}),mt.set(s,fn),Cn.set(s,pn),o=!0});return o||console.error(`Unexpected tag name "${e}". This name is a registered custom element, preventing LWC to upgrade the element.`),i}function Ll(e){let t=null;if(e instanceof HTMLElement){const n=fe(e);c(n)||(t=n.def.ctor)}return t}const Il=Node;function Pl(e){if(V(e instanceof Il)||e instanceof ShadowRoot)return!1;const t=e.getRootNode();return t instanceof ShadowRoot&&V(Ae.call(me(t),"synthetic"))?!0:Do&&!c(e[vt])}const Vo=new Map;function xl(e){if(e===T)throw new TypeError("Invalid Constructor. LightningElement base class can't be claimed as a custom element.");let t=Vo.get(e);return c(t)&&(t=Ol(e),Vo.set(e,t)),t}I(T,"CustomElementConstructor",{get(){return xl(this)}}),gt(T),Le(T.prototype),E.LightningElement=T,E.__unstable__ProfilerControl=Ka,E.api=Os,E.buildCustomElementConstructor=Dl,E.createContextProvider=$c,E.createElement=Al,E.getComponentConstructor=Ll,E.getComponentDef=Js,E.hydrateComponent=ko,E.isComponentConstructor=Jt,E.isNodeFromTemplate=Pl,E.readonly=Dc,E.register=ec,E.registerComponent=Xa,E.registerDecorators=Rs,E.registerTemplate=xs,E.sanitizeAttribute=Hs,E.setFeatureFlag=ri,E.setFeatureFlagForTest=oi,E.setHooks=xc,E.swapComponent=Ks,E.swapStyle=zs,E.swapTemplate=Gs,E.track=$s,E.unwrap=Es,E.wire=Ms,Object.defineProperty(E,"__esModule",{value:!0})});