New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lwc/synthetic-shadow

Package Overview
Dependencies
Maintainers
12
Versions
738
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/synthetic-shadow - npm Package Compare versions

Comparing version 0.37.3-alpha9 to 0.37.4-alpha1

lib/faux-shadow/element.d.ts

2

dist/umd/es2017/shadow.min.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).SyntheticShadow={})}(this,function(e){"use strict";const{freeze:t,seal:n,keys:o,create:r,assign:l,defineProperty:c,getPrototypeOf:i,setPrototypeOf:a,getOwnPropertyDescriptor:u,getOwnPropertyNames:s,defineProperties:d,getOwnPropertySymbols:f,hasOwnProperty:p,preventExtensions:h,isExtensible:g}=Object,{concat:m,filter:b,slice:w,splice:E,unshift:y,indexOf:v,push:N,map:O,join:T,forEach:S,reduce:_,reverse:M}=Array.prototype;function L(e){return void 0===e}function C(e){return null===e}function R(e){return!0===e}function I(e){return!1===e}function P(e){return"function"==typeof e}function x(e,t){do{const n=u(e,t);if(!L(n))return n;e=i(e)}while(null!==e)}const D=u(Document.prototype,"activeElement").get,A=p.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,{createDocumentFragment:$,createElement:H,createElementNS:k,createTextNode:F,createComment:W,querySelector:j,querySelectorAll:B,getElementById:U,getElementsByClassName:q,getElementsByName:K,getElementsByTagName:G,getElementsByTagNameNS:V}=Document.prototype,{DOCUMENT_POSITION_CONTAINED_BY:X,DOCUMENT_POSITION_CONTAINS:Y,DOCUMENT_POSITION_PRECEDING:z,DOCUMENT_POSITION_FOLLOWING:J,DOCUMENT_FRAGMENT_NODE:Q}=Node,{appendChild:Z,cloneNode:ee,compareDocumentPosition:te,hasChildNodes:ne,insertBefore:oe,removeChild:re,replaceChild:le}=Node.prototype,ce=u(Node.prototype,"parentNode").get,ie=p.call(Node.prototype,"parentElement")?u(Node.prototype,"parentElement").get:u(HTMLElement.prototype,"parentElement").get,ae=u(Node.prototype,"textContent").set,ue=p.call(Node.prototype,"childNodes")?u(Node.prototype,"childNodes").get:u(HTMLElement.prototype,"childNodes").get,se=u(Node.prototype,"nodeValue"),de=(se.set,se.get,p.call(Node.prototype,"isConnected")?u(Node.prototype,"isConnected").get:function(){return 0!=(te.call(document,this)&X)}),{hasAttribute:fe,getAttribute:pe,getAttributeNS:he,setAttribute:ge,setAttributeNS:me,removeAttribute:be,removeAttributeNS:we,querySelector:Ee,querySelectorAll:ye,getBoundingClientRect:ve,getElementsByTagName:Ne,getElementsByClassName:Oe,getElementsByTagNameNS:Te}=Element.prototype;let{addEventListener:Se,removeEventListener:_e}=Element.prototype;Se=Se.__lwcOriginal__||Se,_e=_e.__lwcOriginal__||_e;const Me=p.call(Element.prototype,"innerHTML")?u(Element.prototype,"innerHTML").set:u(HTMLElement.prototype,"innerHTML").set,Le=u(Element.prototype,"tagName").get,Ce=u(HTMLElement.prototype,"tabIndex").get,Re=p.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,Ie=(p.call(Element.prototype,"children")?u(Element.prototype,"children").get:u(HTMLElement.prototype,"children").get,void 0!==window.ShadowRoot&&u(window.ShadowRoot.prototype,"host").get,void 0!==window.ShadowRoot&&u(window.ShadowRoot.prototype,"innerHTML").set,"EventTarget"in window?EventTarget.prototype.dispatchEvent:Node.prototype.dispatchEvent),Pe=void 0!==window.ShadowRoot,xe=u(HTMLIFrameElement.prototype,"contentWindow").get,De=u(Event.prototype,"target").get,Ae=u(Event.prototype,"currentTarget").get,$e=u(FocusEvent.prototype,"relatedTarget").get;const He=/[&\u00A0"]/g,ke=/[&\u00A0<>]/g,{replace:Fe,toLowerCase:We}=String.prototype;function je(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;";default:return""}}function Be(e){return Fe.call(e,He,je)}const Ue=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),qe=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Ke(e){switch(e.nodeType){case Node.ELEMENT_NODE:{const{attributes:t}=e,n=Le.call(e);let o="<"+We.call(n);for(let e,n=0;e=t[n];n++)o+=" "+e.name+'="'+Be(e.value)+'"';return o+=">",Ue.has(n)?o:o+function(e){let t="";const n=un(e);for(let e=0,o=n.length;e<o;e+=1)t+=Ke(n[e]);return t}(e)+"</"+We.call(n)+">"}case Node.TEXT_NODE:{const{data:n,parentNode:o}=e;return o instanceof Element&&qe.has(Le.call(o))?n:(t=n,Fe.call(t,ke,je))}case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw new Error}var t}function Ge(e,t){const n=[];let o=e;const r=e===window?window:Jt.call(e);for(;o;)n.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===Q&&o.host&&(t||o!==r)?o.host:o.parentNode;return n[n.length-1]===document&&n.push(window),n}function Ve(e,t){const n=Ge(e,!0),o=t;for(let e,t,r,l,c=0;c<o.length;c++)if((r=(e=o[c])===window?window:Jt.call(e))!==t&&(l=n.indexOf(r),t=r),!(r instanceof kt)||l>-1)return e;return null}let{addEventListener:Xe,removeEventListener:Ye}=window;function ze(e){let t=null;try{if(!(t=e.$$lwcEventWrapper$$)){const n="function"==typeof e;t=e.$$lwcEventWrapper$$=function(t){return function(e){const t=De.call(e);return!!(t instanceof Node&&0!=(te.call(document,t)&X)&&pn(t))}(t)&&st(t),n?e.call(this,t):e.handleEvent&&e.handleEvent(t)}}}catch(e){}return t}function Je(e,t,n){const o=typeof t;if("function"!==o&&"object"!==o)return;if("object"===o&&(!t.handleEvent||"function"!=typeof t.handleEvent))return;const r=ze(t);Xe.call(this,e,r,n)}function Qe(e,t,n){const o=ze(t);Ye.call(this,e,o||t,n)}function Ze(e,t,n){const o=typeof t;if("function"!==o&&"object"!==o)return;if("object"===o&&(!t.handleEvent||"function"!=typeof t.handleEvent))return;const r=ze(t);Se.call(this,e,r,n)}function et(e,t,n){const o=ze(t);_e.call(this,e,o||t,n)}Xe=Xe.__lwcOriginal__||Xe,Ye=Ye.__lwcOriginal__||Ye,Ze.__lwcOriginal__=Se,et.__lwcOriginal__=_e,Je.__lwcOriginal__=Xe,Qe.__lwcOriginal__=Ye,window.addEventListener=Je,window.removeEventListener=Qe,Node.prototype.addEventListener=Ze,Node.prototype.removeEventListener=et;const{addEventListener:tt,removeEventListener:nt}=Node.prototype;var ot;!function(e){e[e.CUSTOM_ELEMENT_LISTENER=1]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=2]="SHADOW_ROOT_LISTENER"}(ot||(ot={}));const rt=new WeakMap;function lt(e,t){return!!(te.call(e,t)&X)}const ct={composed:!1};function it(e,t){let n=Jt.call(e,t);return"mode"in n&&"delegatesFocus"in n&&(n=At(n)),n}function at(){const e=Ae.call(this),t=Ge(De.call(this),this.composed);return e instanceof Node?Ve(rt.get(this)===ot.SHADOW_ROOT_LISTENER?$t(e):e,t):Ve(document,t)}function ut(){return Ge(De.call(this),this.composed)}function st(e){if(rt.has(e))return;d(e,{target:{get:at,enumerable:!0,configurable:!0},composedPath:{value:ut,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:at,enumerable:!0,configurable:!0},path:{get:ut,enumerable:!0,configurable:!0}});const t=x(e,"relatedTarget");L(t)||c(e,"relatedTarget",{get(){const e=rt.get(this),n=Ae.call(this),o=t.get.call(this);return C(o)?null:Ve(e===ot.SHADOW_ROOT_LISTENER?$t(n):n,Ge(o,!0))},enumerable:!0,configurable:!0}),rt.set(e,0)}const dt=new WeakMap;function ft(e){let t=dt.get(e);return L(t)&&(t=r(null),dt.set(e,t)),t}const pt=new WeakMap;function ht(e,t){if(!P(t))throw new TypeError;let n=pt.get(t);return L(n)&&((n=function(n){const{composed:o}=n,r=De.call(n),l=Ae.call(n);if(r!==l){const c=it(r,{composed:o});(lt(c,l)||!1===o&&c===l)&&t.call(e,n)}}).placement=ot.SHADOW_ROOT_LISTENER,pt.set(t,n)),n}const gt=new WeakMap;function mt(e,t){if(!P(t))throw new TypeError;let n=gt.get(t);return L(n)&&((n=function(n){(function(e){const t=De.call(e),n=Ae.call(e),{composed:o}=e;return!0===o||t===n||lt(it(t,ct),n)})(n)&&t.call(e,n)}).placement=ot.CUSTOM_ELEMENT_LISTENER,gt.set(t,n)),n}function bt(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:r,stopPropagation:l}=e,i=ft(Ae.call(e))[o];c(e,"stopImmediatePropagation",{value(){t=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0}),c(e,"stopPropagation",{value(){n=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0});const a=w.call(i);function u(n){S.call(a,o=>{I(t)&&o.placement===n&&-1!==v.call(i,o)&&o.call(void 0,e)})}rt.set(e,ot.SHADOW_ROOT_LISTENER),u(ot.SHADOW_ROOT_LISTENER),I(t)&&I(n)&&(rt.set(e,ot.CUSTOM_ELEMENT_LISTENER),u(ot.CUSTOM_ELEMENT_LISTENER)),rt.set(e,0)}function wt(e,t,n){const o=ft(e);let r=o[t];L(r)&&(r=o[t]=[]),0===r.length&&tt.call(e,t,bt),N.call(r,n)}function Et(e,t,n){let o,r;L(r=ft(e)[t])||-1===(o=v.call(r,n))||(E.call(r,o,1),0===r.length&&nt.call(e,t,bt))}const yt="Symbol(x)"===Symbol("x").toString();function vt(e){return yt?Symbol(e):`$$lwc-${e}$$`}function Nt(e,t,n){c(e,t,{value:n})}function Ot(e,t){return e[t]}function Tt(e){switch(e.nodeType){case Node.ELEMENT_NODE:{const t=un(e);let n="";for(let e=0,o=t.length;e<o;e+=1)n+=Tt(t[e]);return n}default:return e.nodeValue}}const St=vt("items");function _t(){throw new TypeError("Illegal constructor")}function Mt(e){const t=r(_t.prototype);return Nt(t,St,e),S.call(e,(e,n)=>{c(t,n,{value:e,enumerable:!0,configurable:!0})}),t}_t.prototype=r(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:_t},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return Ot(this,St).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){S.call(Ot(this,St),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(Ot(this,St),(e,t)=>[t,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(Ot(this,St),(e,t)=>t)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return Ot(this,St)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=Ot(this,St);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}}}),a(_t,NodeList);const Lt=vt("items");function Ct(){throw new TypeError("Illegal constructor")}function Rt(e){const t=r(Ct.prototype);return Nt(t,Lt,e),S.call(e,(e,n)=>{c(t,n,{value:e,enumerable:!0,configurable:!0})}),t}Ct.prototype=r(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Ct},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return Ot(this,Lt).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(function(e){return"length"!==e&&isNaN(e)}(e)&&this[e])return this[e];const t=Ot(this,Lt);for(let o=t.length-1;o>=0;o-=1){const r=t[o];if(((n=r).getAttribute("id")||n.getAttribute("name"))===e)return r}var n;return null}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){S.call(Ot(this,Lt),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(Ot(this,Lt),(e,t)=>[t,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(Ot(this,Lt),(e,t)=>t)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return Ot(this,Lt)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=Ot(this,Lt);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}}}),a(Ct,HTMLCollection);const It=vt("shadowRecord"),{createDocumentFragment:Pt}=document;function xt(e){const t=Ot(e,It);if(L(t))throw new TypeError;return t}function Dt(e){return xt(e).delegatesFocus}function At(e){return xt(e).host}function $t(e){return xt(e).shadowRoot}const Ht={constructor:{writable:!0,configurable:!0,value:kt},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"}};function kt(){throw new TypeError("Illegal constructor")}l(Ht,{addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,o){wt(At(e),t,ht(e,n))}(this,e,t)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,o){Et(At(e),t,ht(e,n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return At(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return Mt(on(this))}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=At(this);return this===e?0:this.contains(e)?20:te.call(t,e)&X?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=At(this);return 0!=(te.call(t,e)&X)&&en(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return yn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=yn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return yn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return de.call(At(this))}},nextSibling:{enumerable:!0,configurable:!0,get:()=>null},previousSibling:{enumerable:!0,configurable:!0,get:()=>null},nodeName:{enumerable:!0,configurable:!0,get:()=>"#document-fragment"},nodeType:{enumerable:!0,configurable:!0,get:()=>11},nodeValue:{enumerable:!0,configurable:!0,get:()=>null},ownerDocument:{enumerable:!0,configurable:!0,get(){return At(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=yn(this);let t="";for(let n=0,o=e.length;n<o;n+=1)t+=Tt(e[n]);return t},set(e){const t=At(this);ae.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=!L(e)&&!!e.composed;return I(t)?this:Jt.call(At(this),{composed:t})}}},{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return Rt(b.call(on(this),e=>e instanceof Element))}},firstElementChild:{enumerable:!0,configurable:!0,get(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get(){const{children:e}=this;return e.item(e.length-1)||null}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=At(e),o=ye.call(n,t);return ln(n,o)}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return Mt(function(e,t){const n=At(e),o=ye.call(n,t);return rn(n,o)}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=yn(this);let t="";for(let n=0,o=e.length;n<o;n+=1)t+=Ke(e[n]);return t},set(e){const t=At(this);Me.call(t,e)}}},{activeElement:{enumerable:!0,configurable:!0,get(){const e=D.call(document);if(C(e))return e;const t=At(this);if(0==(te.call(t,e)&X))return null;let n=e;for(;!en(t,n);)n=ie.call(n);return Zt(n)?null:n}},delegatesFocus:{configurable:!0,get(){return xt(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){const n=A.call(document,e,t);return C(n)?n:Ve(this,Ge(n,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){throw new Error}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error}},host:{enumerable:!0,configurable:!0,get(){return At(this)}},mode:{configurable:!0,get(){return xt(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}}),kt.prototype=r(DocumentFragment.prototype,Ht),Pe&&a(kt.prototype,window.ShadowRoot.prototype);let Ft=window.MutationObserver;if(void 0===Ft){function Wt(){}Wt.prototype={observe(){}},Ft=window.MutationObserver=Wt}const jt=Ft,Bt=jt.prototype.observe;let Ut;const qt={childList:!0},Kt=vt("slotchange");function Gt(e){const t=Qt(e);if(C(t))return[];const n=w.call(ue.call(e));return _.call(n,(e,n)=>(en(t,n)||N.call(e,n),e),[])}function Vt(e){const t=w.call(ue.call(e));return _.call(t,(e,t)=>(t instanceof Element&&Zt(t)?N.apply(e,Vt(t)):N.call(e,t),e),[])}const Xt=Node.prototype.getRootNode,Yt=L(Xt)?function(){let e,t=this;for(;!C(e=ce.call(t));)t=e;return t}:Xt;function zt(e){return R(!L(e)&&!!e.composed)?Yt.call(this,e):function(e){const t=Qt(e);return C(t)?Yt.call(e):$t(t)}(this)}c(Node.prototype,"getRootNode",{value:zt,enumerable:!0,configurable:!0,writable:!0});const{getRootNode:Jt}=Node.prototype;function Qt(e){if(!(e instanceof Node))return null;const t=hn(e);if(L(t))return null;let n=e;for(;!C(n)&&gn(n)!==t;)n=ce.call(n);return C(n)?null:n}function Zt(e){return"SLOT"===Le.call(e)}function en(e,t){const n=hn(t);return L(n)||gn(e)===n}function tn(e){let t=ie.call(e);for(;!C(t)&&Zt(t);)e=t,t=ie.call(e);return e}function nn(e,t){const n=gn(e);let o=t instanceof Element?t:ie.call(t);for(;!C(o)&&o!==e;){const t=hn(o),r=ie.call(o);if(t===n)return Zt(o);if(r===e)return!1;if(C(r)||hn(r)===t)o=r;else{if(!Zt(r))return!1;if(!C(o=Qt(tn(r)))){if(o===e)return!0;if(hn(o)===n)return!0}}}return!1}function on(e){const t=At(e);return rn(t,ue.call(t))}function rn(e,t){const n=[];for(let o=0,r=t.length;o<r;o+=1){const r=t[o];en(e,r)&&N.call(n,r)}return n}function ln(e,t){for(let n=0,o=t.length;n<o;n+=1)if(en(e,t[n]))return t[n];return null}function cn(e,t){const n=Qt(e);if(C(n))return[];const o=ye.call(e,t);return gn(e)?function(e,t){const n=[];for(let o=0,r=t.length;o<r;o+=1){const r=t[o];!en(e,r)&&nn(e,r)&&N.call(n,r)}return n}(e,o):rn(n,o)}function an(e,t){const n=Qt(e);if(C(n))return null;const o=ye.call(e,t);return gn(e)?function(e,t){for(let n=0,o=t.length;n<o;n+=1){const o=t[n];if(!en(e,o)&&nn(e,o))return o}return null}(e,o):ln(n,o)}function un(e){let t;if(L(gn(e)))t=ue.call(e);else{const n=ye.call(e,"slot");t=_.call(n,(t,n)=>(en(e,n)&&N.apply(t,Gt(n)),t),[])}const n=Qt(e);return C(n)?[]:_.call(t,(e,t)=>(en(n,t)&&N.call(e,t),e),[])}function sn(e){const t=En(e);return class extends t{querySelector(e){return an(this,e)}querySelectorAll(e){return Mt(cn(this,e))}get innerHTML(){const e=yn(this);let t="";for(let n=0,o=e.length;n<o;n+=1)t+=Ke(e[n]);return t}set innerHTML(e){Me.call(this,e)}get outerHTML(){return Ke(this)}}}const dn="$$OwnerKey$$",fn="$$OwnKey$$";Symbol("x").toString();function pn(e){return e[dn]}function hn(e){let t,n=e;for(;!C(n);){if(!L(t=n[dn]))return t;n=ce.call(n)}}function gn(e){return e[fn]}const mn="$$ShadowTokenKey$$";function bn(e,t){L(t)||(ge.call(e,t,""),e[mn]=t)}function wn(e,t){const n=Qt(e);if(t===n)return $t(n);if(t instanceof Element){if(hn(e)===hn(t))return t;if(!C(n)&&Zt(t)){const e=Qt(t);if(!C(e)&&en(n,e))return e}}return null}function En(e){const t=i(e).constructor;class n{constructor(){throw new TypeError("Illegal constructor")}hasChildNodes(){return yn(this).length>0}get firstChild(){return yn(this)[0]||null}get lastChild(){const e=yn(this);return e[e.length-1]||null}get textContent(){return Tt(this)}set textContent(e){ae.call(this,e)}get childElementCount(){return this.children.length}get firstElementChild(){return this.children[0]||null}get lastElementChild(){const{children:e}=this;return e.item(e.length-1)||null}get assignedSlot(){const e=ce.call(this);return C(e)||!Zt(e)||hn(e)===hn(this)?null:e}get parentNode(){const e=ce.call(this);return C(e)?e:wn(this,e)}get parentElement(){const e=ce.call(this);if(C(e))return null;const t=wn(this,e);return t instanceof Element?t:null}compareDocumentPosition(e){return Jt.call(this)===e?10:pn(this)!==pn(e)?35:te.call(this,e)}contains(e){return pn(this)===pn(e)&&0!=(te.call(this,e)&X)}cloneNode(e){const t=ee.call(this,!1);if(!e)return t;const n=yn(this);for(let e=0,o=n.length;e<o;e+=1)t.appendChild(n[e].cloneNode(!0));return t}}return a(n,t),a(n.prototype,t.prototype),n}const yn=function(e){return e.childNodes};document.elementFromPoint=function(e,t){const n=A.call(document,e,t);return C(n)?n:Ve(document,Ge(n,!0))},c(document,"activeElement",{get(){let e=D.call(this);if(C(e))return e;for(;!L(pn(e));)if(C(e=ie.call(e)))return null;return"HTML"===e.tagName&&(e=document.body),e},enumerable:!0,configurable:!0}),void 0===window.ShadowRoot&&(window.ShadowRoot=kt);const vn=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const Nn=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function On(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!vn)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",t=>e=t),t.click(),!vn.get.call(e)})()&&(HTMLElement.prototype.click=function(){Se.call(this,"click",On);try{Nn.value.call(this)}finally{_e.call(this,"click",On)}}),void 0===Object.getOwnPropertyDescriptor(Event.prototype,"composed")&&function(){const e=l(r(null),{blur:1,focus:1,focusin:1,focusout:1,click:1,dblclick:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,wheel:1,beforeinput:1,input:1,keydown:1,keyup:1,compositionstart:1,compositionupdate:1,compositionend:1,touchstart:1,touchend:1,touchmove:1,touchcancel:1,pointerover:1,pointerenter:1,pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerout:1,pointerleave:1,gotpointercapture:1,lostpointercapture:1,dragstart:1,drag:1,dragenter:1,dragleave:1,dragover:1,drop:1,dragend:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,keypress:1});Object.defineProperties(Event.prototype,{composed:{get(){const{type:t}=this;return 1===e[t]},configurable:!0,enumerable:!0}})}();const{CustomEvent:Tn}=window;function Sn(e,t){const n=new Tn(e,t);return Object.defineProperties(n,{composed:{get:()=>!(!t||!t.composed),configurable:!0,enumerable:!0}}),n}window.CustomEvent!==Sn&&(window.CustomEvent=Sn,window.CustomEvent.prototype=Tn.prototype),function(){const e=Object.getOwnPropertyDescriptor(Event.prototype,"composed").get;Object.defineProperties(FocusEvent.prototype,{composed:{get(){const{isTrusted:t}=this,n=e.call(this);return!(!t||!1!==n)||n},enumerable:!0,configurable:!0}})}();const _n='\n button:not([tabindex="-1"]):not([disabled]),\n [contenteditable]:not([tabindex="-1"]),\n video[controls]:not([tabindex="-1"]),\n audio[controls]:not([tabindex="-1"]),\n [href]:not([tabindex="-1"]),\n input:not([tabindex="-1"]):not([disabled]),\n select:not([tabindex="-1"]):not([disabled]),\n textarea:not([tabindex="-1"]):not([disabled]),\n [tabindex="0"]\n';function Mn(e){const{width:t,height:n}=ve.call(e);return(t>0||n>0)&&"hidden"!==getComputedStyle(e).visibility}function Ln(e){return Re.call(e,_n)&&Mn(e)}const Cn={IFRAME:1,VIDEO:1,AUDIO:1,A:1,INPUT:1,SELECT:1,TEXTAREA:1,BUTTON:1};function Rn(e){const t=Le.call(e);return Mn(e)&&(function(e){if(I(fe.call(e,"tabindex")))return!1;const t=pe.call(e,"tabindex");return""!==t&&("0"===t||"-1"===t)}(e)||fe.call(e,"contenteditable")||p.call(Cn,t))}function In(e){for(let t=0,n=e.length;t<n;t+=1){const n=e[t];if(Ln(n))return n}return null}function Pn(e){const t=B.call(document,_n),n=w.call(ye.call(e,_n)),o=n[0],r=n[n.length-1],l=v.call(t,e),c=l>-1?l:v.call(t,o),i=0===n.length?c+1:v.call(t,r)+1;return{prev:w.call(t,0,c),inner:n,next:w.call(t,i)}}function xn(e,t){const n=te.call(e,t);return n&X?0:n&z?1:n&J?2:-1}function Dn(e){e.preventDefault(),e.stopPropagation()}function An(e){Xe.call(window,"focusin",Dn,!0),Xe.call(window,"focusout",Dn,!0),e(),Ye.call(window,"focusin",Dn,!0),Ye.call(window,"focusout",Dn,!0)}function $n(e,t){An(()=>{const n=function(e){const{next:t}=e;return In(t)}(t);C(n)?e.blur():n.focus()})}function Hn(e,t){An(()=>{const n=function(e){const{prev:t}=e;return In(M.call(t))}(t);C(n)?e.blur():n.focus()})}function kn(e,t){return function(e){for(let t=e.length-1;t>=0;t-=1){const n=e[t];if(Ln(n))return n}return null}(t.inner)===e}function Fn(e){const t=Ae.call(e),n=De.call(e);if(t!==n)return;const o=$e.call(e);if(C(o))return;const r=Pn(t);if(1===xn(t,o)){const e=In(r.inner);C(e)?$n(n,r):An(()=>{e.focus()})}else t===n&&Hn(t,r)}function Wn(e){const t=Ae.call(e),n=De.call(e),o=$e.call(e),r=Pn(t),l=function(e,t){return In(t.inner)===e}(n,r),c=kn(n,r);if(!(I(l)&&I(c)||C(o)))switch(xn(t,o)){case 1:l&&$n(n,r);break;case 2:c&&Hn(n,r)}}function jn(e){const t=Ae.call(e);_e.call(t,"focusin",Wn),setTimeout(()=>{C(t)||-1!==Ce.call(t)||Se.call(t,"focusin",Wn)},0)}function Bn(e){const t=Ae.call(e),n=$e.call(e);(C(n)||0!==xn(t,n))&&(_e.call(t,"focusin",jn,!0),_e.call(t,"focusout",Bn,!0))}function Un(e){if(function(e){return e!==D.call(document)&&Rn(e)}(De.call(e))){const t=Ae.call(e);Se.call(t,"focusin",jn,!0),Se.call(t,"focusout",Bn,!0)}}function qn(e){_e.call(e,"focusin",Fn,!0)}function Kn(e){_e.call(e,"focusin",Wn),_e.call(e,"mousedown",Un,!0)}const Gn=window.MutationObserver,{disconnect:Vn,observe:Xn,takeRecords:Yn}=Gn.prototype,zn="$$lwcObservedTargets$$",Jn="$$lwcObserverCallbackWrapper$$";function Qn(e,t){const n=t[zn],o=[];return S.call(n,e=>{const t=e instanceof window.ShadowRoot?gn(e.host):hn(e);N.call(o,t)}),_.call(e,(e,t)=>{const{target:l,addedNodes:c,removedNodes:i,type:a}=t;if("childList"!==a||L(gn(l))){const n=l instanceof window.ShadowRoot?gn(l.host):hn(l);-1!==v.call(o,n)&&N.call(e,t)}else{const a=hn(c.length>0?c[0]:i[0]);-1!==v.call(o,a)&&(-1!==n.indexOf(l)?N.call(e,t):N.call(e,function(e){const{addedNodes:t,removedNodes:n,target:o,type:l}=e,c=r(MutationRecord.prototype);return d(c,{addedNodes:{get:()=>t,enumerable:!0,configurable:!0},removedNodes:{get:()=>n,enumerable:!0,configurable:!0},type:{get:()=>l,enumerable:!0,configurable:!0},target:{get:()=>o.shadowRoot,enumerable:!0,configurable:!0}}),c}(t)))}return e},[])}function Zn(e){const t=function(e){let t=e[Jn];return L(t)&&(t=e[Jn]=((t,n)=>{const o=Qn(t,n);0!==o.length&&e.call(n,o,n)})),t}(e),n=new Gn(t);return c(n,zn,{value:[]}),n}function eo(){L(this[zn])||(this[zn].length=0),Vn.call(this)}function to(e,t){return L(this[zn])||N.call(this[zn],e),e instanceof kt&&(e=e.host),Xn.call(this,e,t)}function no(){return Qn(Yn.call(this),this)}window.MutationObserver=Zn,window.MutationObserver.prototype=Gn.prototype,window.MutationObserver.prototype.disconnect=eo,window.MutationObserver.prototype.observe=to,window.MutationObserver.prototype.takeRecords=no;const oo=window.MutationObserver,ro=oo.prototype.observe;let lo;const co={childList:!0,subtree:!0};function io(e,t,n){if(pn(e)!==t&&(function(e,t){e[dn]=t}(e,t),e instanceof Element)){bn(e,n);const o=yn(e);for(let e=0,r=o.length;e<r;e+=1){io(o[e],t,n)}}}function ao(){return new oo(e=>{S.call(e,e=>{const{target:t,addedNodes:n}=e,o=pn(t),r=function(e){return e[mn]}(t);if(!L(o))for(let e=0,t=n.length;e<t;e+=1){io(n[e],o,r)}})})}e.PatchedCustomElement=function(e){const t=sn(e);return class extends t{attachShadow(e){return function(e,t){if(!L(Ot(e,It)))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");const{mode:n,delegatesFocus:o}=t,r=Pt.call(document),l={mode:n,delegatesFocus:!!o,host:e,shadowRoot:r};return Nt(r,It,l),Nt(e,It,l),a(r,kt.prototype),r}(this,e)}addEventListener(e,t,n){!function(e,t,n,o){wt(e,t,mt(e,n))}(this,e,t)}removeEventListener(e,t,n){!function(e,t,n,o){Et(e,t,mt(e,n))}(this,e,t)}get shadowRoot(){const e=$t(this);return"open"===e.mode?e:null}get tabIndex(){return Dt(this)&&I(fe.call(this,"tabindex"))?0:x(t.prototype,"tabIndex").get.call(this)}set tabIndex(e){const n=Dt(this),o=Ce.call(this),r=fe.call(this,"tabindex");x(t.prototype,"tabIndex").set.call(this,e);const l=Ce.call(this),c=fe.call(this,"tabindex"),i=o!==l;var a;r&&(i||I(c))&&(-1===o&&Kn(this),0===o&&n&&qn(this)),I(c)||r&&c&&I(i)||(-1===l&&(qn(a=this),Se.call(a,"mousedown",Un,!0),Se.call(a,"focusin",Wn)),0===l&&n&&function(e){Kn(e),Se.call(e,"focusin",Fn,!0)}(this))}blur(){if(Dt(this)){const e=function(e){const t=D.call(document);return C(t)?t:0!=(te.call(e,t)&X)?t:null}(this);if(!C(e))return void e.blur()}super.blur()}get childNodes(){const e=Qt(this);return Mt(C(e)?[]:rn(e,un(this)))}get children(){const e=Qt(this),t=C(e)?[]:rn(e,un(this));return Rt(b.call(t,e=>e instanceof Element))}}},e.PatchedElement=sn,e.PatchedIframeElement=function(e){const t=sn(e);return class extends t{get contentWindow(){const e=xe.call(this);return e?(t=e,{postMessage(){return t.postMessage.apply(t,arguments)},blur(){return t.blur.apply(t,arguments)},close(){return t.close.apply(t,arguments)},focus(){return t.focus.apply(t,arguments)},get closed(){return t.closed},get frames(){return t.frames},get length(){return t.length},get location(){return t.location},set location(e){t.location=e},get opener(){return t.opener},get parent(){return t.parent},get self(){return t.self},get top(){return t.top},get window(){return t.window}}):e;var t}}},e.PatchedNode=En,e.PatchedSlotElement=function(e){const t=sn(e),{addEventListener:n}=e;return class extends t{addEventListener(e,t,o){"slotchange"!==e||Ot(this,Kt)||(Nt(this,Kt,!0),Ut||(Ut=new jt(e=>{const t=[];S.call(e,e=>{const{target:n}=e;-1===v.call(t,n)&&(N.call(t,n),Ie.call(n,new CustomEvent("slotchange")))})})),Bt.call(Ut,this,qt)),n.call(this,e,t,o)}assignedElements(e){const t=!L(e)&&R(e.flatten)?Vt(this):Gt(this);return b.call(t,e=>e instanceof Element)}assignedNodes(e){return!L(e)&&R(e.flatten)?Vt(this):Gt(this)}get name(){const e=pe.call(this,"name");return C(e)?"":e}get childNodes(){const e=Qt(this);return Mt(C(e)?[]:rn(e,un(this)))}get children(){const e=Qt(this),t=C(e)?[]:rn(e,un(this));return Rt(b.call(t,e=>e instanceof Element))}}},e.markElementAsPortal=function(e){L(lo)&&(lo=ao()),ro.call(lo,e,co)},e.patchEvent=st,e.setCSSToken=bn,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).SyntheticShadow={})}(this,function(e){"use strict";const{freeze:t,seal:n,keys:o,create:l,assign:r,defineProperty:c,getPrototypeOf:i,setPrototypeOf:a,getOwnPropertyDescriptor:u,getOwnPropertyNames:s,defineProperties:f,getOwnPropertySymbols:d,hasOwnProperty:p,preventExtensions:h,isExtensible:g}=Object,{concat:m,filter:b,find:E,slice:w,splice:y,unshift:v,indexOf:N,push:T,map:O,join:S,forEach:L,reduce:M,reverse:_}=Array.prototype;function C(e){return void 0===e}function R(e){return null===e}function D(e){return!0===e}function I(e){return!1===e}function P(e){return"function"==typeof e}function x(e,t){do{const n=u(e,t);if(!C(n))return n;e=i(e)}while(null!==e)}const A=u(Document.prototype,"activeElement").get,H=p.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,{createDocumentFragment:$,createElement:B,createElementNS:k,createTextNode:F,createComment:W,querySelector:j,querySelectorAll:U,getElementById:q,getElementsByClassName:K,getElementsByTagName:G,getElementsByTagNameNS:V}=Document.prototype,{getElementsByName:X}=HTMLDocument.prototype,{DOCUMENT_POSITION_CONTAINED_BY:Y,DOCUMENT_POSITION_CONTAINS:z,DOCUMENT_POSITION_PRECEDING:J,DOCUMENT_POSITION_FOLLOWING:Q,DOCUMENT_FRAGMENT_NODE:Z}=Node,{appendChild:ee,cloneNode:te,compareDocumentPosition:ne,hasChildNodes:oe,insertBefore:le,removeChild:re,replaceChild:ce}=Node.prototype,ie=u(Node.prototype,"parentNode").get,ae=p.call(Node.prototype,"parentElement")?u(Node.prototype,"parentElement").get:u(HTMLElement.prototype,"parentElement").get,ue=u(Node.prototype,"textContent").set,se=p.call(Node.prototype,"childNodes")?u(Node.prototype,"childNodes").get:u(HTMLElement.prototype,"childNodes").get,fe=u(Node.prototype,"nodeValue"),de=(fe.set,fe.get,p.call(Node.prototype,"isConnected")?u(Node.prototype,"isConnected").get:function(){return 0!=(ne.call(document,this)&Y)}),{hasAttribute:pe,getAttribute:he,getAttributeNS:ge,setAttribute:me,setAttributeNS:be,removeAttribute:Ee,removeAttributeNS:we,querySelector:ye,querySelectorAll:ve,getBoundingClientRect:Ne,getElementsByTagName:Te,getElementsByTagNameNS:Oe}=Element.prototype;let{addEventListener:Se,removeEventListener:Le}=Element.prototype;Se=Se.__lwcOriginal__||Se,Le=Le.__lwcOriginal__||Le;const Me=p.call(Element.prototype,"innerHTML")?u(Element.prototype,"innerHTML").set:u(HTMLElement.prototype,"innerHTML").set,_e=p.call(Element.prototype,"outerHTML")?u(Element.prototype,"outerHTML").set:u(HTMLElement.prototype,"outerHTML").set,Ce=u(Element.prototype,"tagName").get,Re=u(HTMLElement.prototype,"tabIndex").get,De=p.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,Ie=p.call(Element.prototype,"children")?u(Element.prototype,"children").get:u(HTMLElement.prototype,"children").get,{getElementsByClassName:Pe}=HTMLElement.prototype,xe=(void 0!==window.ShadowRoot&&u(window.ShadowRoot.prototype,"host").get,"EventTarget"in window?EventTarget.prototype.dispatchEvent:Node.prototype.dispatchEvent),Ae=void 0!==window.ShadowRoot,He=u(HTMLIFrameElement.prototype,"contentWindow").get,$e=u(Event.prototype,"target").get,Be=u(Event.prototype,"currentTarget").get,ke=u(FocusEvent.prototype,"relatedTarget").get;function Fe(e,t){const n=[];let o=e;const l=e===window?window:Mn.call(e);for(;o;)n.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===Z&&o.host&&(t||o!==l)?o.host:o.parentNode;return n[n.length-1]===document&&n.push(window),n}function We(e,t){const n=Fe(e,!0),o=t;for(let e,t,l,r,c=0;c<o.length;c++)if((l=(e=o[c])===window?window:Mn.call(e))!==t&&(r=n.indexOf(l),t=l),!(l instanceof jt)||r>-1)return e;return null}let{addEventListener:je,removeEventListener:Ue}=window;function qe(e){let t=null;try{if(!(t=e.$$lwcEventWrapper$$)){const n="function"==typeof e;t=e.$$lwcEventWrapper$$=function(t){return function(e){const t=$e.call(e);return!!(t instanceof Node&&0!=(ne.call(document,t)&Y)&&$n(t))}(t)&&lt(t),n?e.call(this,t):e.handleEvent&&e.handleEvent(t)}}}catch(e){}return t}function Ke(e,t,n){const o=typeof t;if("function"!==o&&"object"!==o)return;if("object"===o&&(!t.handleEvent||"function"!=typeof t.handleEvent))return;const l=qe(t);je.call(this,e,l,n)}function Ge(e,t,n){const o=qe(t);Ue.call(this,e,o||t,n)}function Ve(e,t,n){const o=typeof t;if("function"!==o&&"object"!==o)return;if("object"===o&&(!t.handleEvent||"function"!=typeof t.handleEvent))return;const l=qe(t);Se.call(this,e,l,n)}function Xe(e,t,n){const o=qe(t);Le.call(this,e,o||t,n)}je=je.__lwcOriginal__||je,Ue=Ue.__lwcOriginal__||Ue,Ve.__lwcOriginal__=Se,Xe.__lwcOriginal__=Le,Ke.__lwcOriginal__=je,Ge.__lwcOriginal__=Ue,window.addEventListener=Ke,window.removeEventListener=Ge,Node.prototype.addEventListener=Ve,Node.prototype.removeEventListener=Xe;const{addEventListener:Ye,removeEventListener:ze}=Node.prototype;var Je;!function(e){e[e.CUSTOM_ELEMENT_LISTENER=1]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=2]="SHADOW_ROOT_LISTENER"}(Je||(Je={}));const Qe=new WeakMap;function Ze(e,t){return!!(ne.call(e,t)&Y)}const et={composed:!1};function tt(e,t){let n=Mn.call(e,t);return"mode"in n&&"delegatesFocus"in n&&(n=Bt(n)),n}function nt(){const e=Be.call(this),t=Fe($e.call(this),this.composed);return e instanceof Node?We(Qe.get(this)===Je.SHADOW_ROOT_LISTENER?kt(e):e,t):We(document,t)}function ot(){return Fe($e.call(this),this.composed)}function lt(e){if(Qe.has(e))return;f(e,{target:{get:nt,enumerable:!0,configurable:!0},composedPath:{value:ot,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:nt,enumerable:!0,configurable:!0},path:{get:ot,enumerable:!0,configurable:!0}});const t=x(e,"relatedTarget");C(t)||c(e,"relatedTarget",{get(){const e=Qe.get(this),n=Be.call(this),o=t.get.call(this);return R(o)?null:We(e===Je.SHADOW_ROOT_LISTENER?kt(n):n,Fe(o,!0))},enumerable:!0,configurable:!0}),Qe.set(e,0)}const rt=new WeakMap;function ct(e){let t=rt.get(e);return C(t)&&(t=l(null),rt.set(e,t)),t}const it=new WeakMap;function at(e,t){if(!P(t))throw new TypeError;let n=it.get(t);return C(n)&&((n=function(n){const{composed:o}=n,l=$e.call(n),r=Be.call(n);if(l!==r){const c=tt(l,{composed:o});(Ze(c,r)||!1===o&&c===r)&&t.call(e,n)}}).placement=Je.SHADOW_ROOT_LISTENER,it.set(t,n)),n}const ut=new WeakMap;function st(e,t){if(!P(t))throw new TypeError;let n=ut.get(t);return C(n)&&((n=function(n){(function(e){const t=$e.call(e),n=Be.call(e),{composed:o}=e;return!0===o||t===n||Ze(tt(t,et),n)})(n)&&t.call(e,n)}).placement=Je.CUSTOM_ELEMENT_LISTENER,ut.set(t,n)),n}function ft(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:l,stopPropagation:r}=e,i=ct(Be.call(e))[o];c(e,"stopImmediatePropagation",{value(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),c(e,"stopPropagation",{value(){n=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0});const a=w.call(i);function u(n){L.call(a,o=>{I(t)&&o.placement===n&&-1!==N.call(i,o)&&o.call(void 0,e)})}Qe.set(e,Je.SHADOW_ROOT_LISTENER),u(Je.SHADOW_ROOT_LISTENER),I(t)&&I(n)&&(Qe.set(e,Je.CUSTOM_ELEMENT_LISTENER),u(Je.CUSTOM_ELEMENT_LISTENER)),Qe.set(e,0)}function dt(e,t,n){const o=ct(e);let l=o[t];C(l)&&(l=o[t]=[]),0===l.length&&Ye.call(e,t,ft),T.call(l,n)}function pt(e,t,n){let o,l;C(l=ct(e)[t])||-1===(o=N.call(l,n))||(y.call(l,o,1),0===l.length&&ze.call(e,t,ft))}const ht="Symbol(x)"===Symbol("x").toString();function gt(e){return ht?Symbol(e):`$$lwc-${e}$$`}function mt(e,t,n){c(e,t,{value:n})}function bt(e,t){return e[t]}function Et(e){switch(e.nodeType){case Node.ELEMENT_NODE:{const t=xn(e);let n="";for(let e=0,o=t.length;e<o;e+=1)n+=Et(t[e]);return n}default:return e.nodeValue}}const wt=gt("items");function yt(){throw new TypeError("Illegal constructor")}function vt(e){const t=l(yt.prototype);return mt(t,wt,e),L.call(e,(e,n)=>{c(t,n,{value:e,enumerable:!0,configurable:!0})}),t}yt.prototype=l(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:yt},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return bt(this,wt).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(bt(this,wt),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(bt(this,wt),(e,t)=>[t,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(bt(this,wt),(e,t)=>t)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return bt(this,wt)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=bt(this,wt);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}}}),a(yt,NodeList);const Nt=gt("items");function Tt(){throw new TypeError("Illegal constructor")}function Ot(e){const t=l(Tt.prototype);return mt(t,Nt,e),L.call(e,(e,n)=>{c(t,n,{value:e,enumerable:!0,configurable:!0})}),t}Tt.prototype=l(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Tt},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return bt(this,Nt).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(function(e){return"length"!==e&&isNaN(e)}(e)&&this[e])return this[e];const t=bt(this,Nt);for(let o=t.length-1;o>=0;o-=1){const l=t[o];if(((n=l).getAttribute("id")||n.getAttribute("name"))===e)return l}var n;return null}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(bt(this,Nt),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(bt(this,Nt),(e,t)=>[t,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return O.call(bt(this,Nt),(e,t)=>t)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return bt(this,Nt)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=bt(this,Nt);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}}}),a(Tt,HTMLCollection);const St=/[&\u00A0"]/g,Lt=/[&\u00A0<>]/g,{replace:Mt,toLowerCase:_t}=String.prototype;function Ct(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;";default:return""}}function Rt(e){return Mt.call(e,St,Ct)}const Dt=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),It=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Pt(e){switch(e.nodeType){case Node.ELEMENT_NODE:{const{attributes:t}=e,n=Ce.call(e);let o="<"+_t.call(n);for(let e,n=0;e=t[n];n++)o+=" "+e.name+'="'+Rt(e.value)+'"';return o+=">",Dt.has(n)?o:o+function(e){let t="";const n=xn(e);for(let e=0,o=n.length;e<o;e+=1)t+=Pt(n[e]);return t}(e)+"</"+_t.call(n)+">"}case Node.TEXT_NODE:{const{data:n,parentNode:o}=e;return o instanceof Element&&It.has(Ce.call(o))?n:(t=n,Mt.call(t,Lt,Ct))}case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw new Error}var t}const xt=gt("shadowRecord"),{createDocumentFragment:At}=document;function Ht(e){const t=bt(e,xt);if(C(t))throw new TypeError;return t}function $t(e){return Ht(e).delegatesFocus}function Bt(e){return Ht(e).host}function kt(e){return Ht(e).shadowRoot}function Ft(e){return!C(bt(e,xt))}const Wt={constructor:{writable:!0,configurable:!0,value:jt},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"}};function jt(){throw new TypeError("Illegal constructor")}r(Wt,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return le.call(Bt(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return re.call(Bt(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ee.call(Bt(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return ce.call(Bt(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,o){dt(Bt(e),t,at(e,n))}(this,e,t)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,o){pt(Bt(e),t,at(e,n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return Bt(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return vt(Dn(this))}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=Bt(this);return this===e?0:this.contains(e)?20:ne.call(t,e)&Y?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=Bt(this);return 0!=(ne.call(t,e)&Y)&&Rn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return qn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=qn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return qn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return de.call(Bt(this))}},nextSibling:{enumerable:!0,configurable:!0,get:()=>null},previousSibling:{enumerable:!0,configurable:!0,get:()=>null},nodeName:{enumerable:!0,configurable:!0,get:()=>"#document-fragment"},nodeType:{enumerable:!0,configurable:!0,get:()=>11},nodeValue:{enumerable:!0,configurable:!0,get:()=>null},ownerDocument:{enumerable:!0,configurable:!0,get(){return Bt(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=qn(this);let t="";for(let n=0,o=e.length;n<o;n+=1)t+=Et(e[n]);return t},set(e){const t=Bt(this);ue.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=!C(e)&&!!e.composed;return I(t)?this:Mn.call(Bt(this),{composed:t})}}},{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return Ot(b.call(Dn(this),e=>e instanceof Element))}},firstElementChild:{enumerable:!0,configurable:!0,get(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get(){const{children:e}=this;return e.item(e.length-1)||null}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=Bt(e),o=ve.call(n,t);return Pn(n,o)}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return vt(function(e,t){const n=Bt(e),o=ve.call(n,t);return In(n,o)}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=qn(this);let t="";for(let n=0,o=e.length;n<o;n+=1)t+=Pt(e[n]);return t},set(e){const t=Bt(this);Me.call(t,e)}}},{activeElement:{enumerable:!0,configurable:!0,get(){const e=A.call(document);if(R(e))return e;const t=Bt(this);if(0==(ne.call(t,e)&Y))return null;let n=e;for(;!Rn(t,n);)n=ae.call(n);return Cn(n)?null:n}},delegatesFocus:{configurable:!0,get(){return Ht(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){const n=H.call(document,e,t);return R(n)?n:We(this,Fe(n,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){throw new Error}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error}},host:{enumerable:!0,configurable:!0,get(){return Bt(this)}},mode:{configurable:!0,get(){return Ht(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}}),jt.prototype=l(DocumentFragment.prototype,Wt),Ae&&a(jt.prototype,window.ShadowRoot.prototype);let Ut=window.MutationObserver;if(void 0===Ut){function qt(){}qt.prototype={observe(){}},Ut=window.MutationObserver=qt}const Kt=Ut,Gt=Kt.prototype.observe,Vt='\n button:not([tabindex="-1"]):not([disabled]),\n [contenteditable]:not([tabindex="-1"]),\n video[controls]:not([tabindex="-1"]),\n audio[controls]:not([tabindex="-1"]),\n [href]:not([tabindex="-1"]),\n input:not([tabindex="-1"]):not([disabled]),\n select:not([tabindex="-1"]):not([disabled]),\n textarea:not([tabindex="-1"]):not([disabled]),\n [tabindex="0"]\n';function Xt(e){const{width:t,height:n}=Ne.call(e);return(t>0||n>0)&&"hidden"!==getComputedStyle(e).visibility}function Yt(e){return De.call(e,Vt)&&Xt(e)}const zt={IFRAME:1,VIDEO:1,AUDIO:1,A:1,INPUT:1,SELECT:1,TEXTAREA:1,BUTTON:1};function Jt(e){const t=Ce.call(e);return Xt(e)&&(function(e){if(I(pe.call(e,"tabindex")))return!1;const t=he.call(e,"tabindex");return""!==t&&("0"===t||"-1"===t)}(e)||pe.call(e,"contenteditable")||p.call(zt,t))}function Qt(e){for(let t=0,n=e.length;t<n;t+=1){const n=e[t];if(Yt(n))return n}return null}function Zt(e){const t=U.call(document,Vt),n=w.call(ve.call(e,Vt)),o=n[0],l=n[n.length-1],r=N.call(t,e),c=r>-1?r:N.call(t,o),i=0===n.length?c+1:N.call(t,l)+1;return{prev:w.call(t,0,c),inner:n,next:w.call(t,i)}}function en(e,t){const n=ne.call(e,t);return n&Y?0:n&J?1:n&Q?2:-1}function tn(e){e.preventDefault(),e.stopPropagation()}function nn(e){je.call(window,"focusin",tn,!0),je.call(window,"focusout",tn,!0),e(),Ue.call(window,"focusin",tn,!0),Ue.call(window,"focusout",tn,!0)}function on(e,t){nn(()=>{const n=function(e){const{next:t}=e;return Qt(t)}(t);R(n)?e.blur():n.focus()})}function ln(e,t){nn(()=>{const n=function(e){const{prev:t}=e;return Qt(_.call(t))}(t);R(n)?e.blur():n.focus()})}function rn(e,t){return function(e){for(let t=e.length-1;t>=0;t-=1){const n=e[t];if(Yt(n))return n}return null}(t.inner)===e}function cn(e){const t=Be.call(e),n=$e.call(e);if(t!==n)return;const o=ke.call(e);if(R(o))return;const l=Zt(t);if(1===en(t,o)){const e=Qt(l.inner);R(e)?on(n,l):nn(()=>{e.focus()})}else t===n&&ln(t,l)}function an(e){const t=Be.call(e),n=$e.call(e),o=ke.call(e),l=Zt(t),r=function(e,t){return Qt(t.inner)===e}(n,l),c=rn(n,l);if(!(I(r)&&I(c)||R(o)))switch(en(t,o)){case 1:r&&on(n,l);break;case 2:c&&ln(n,l)}}function un(e){const t=Be.call(e);Le.call(t,"focusin",an),setTimeout(()=>{R(t)||-1!==Re.call(t)||Se.call(t,"focusin",an)},0)}function sn(e){const t=Be.call(e),n=ke.call(e);(R(n)||0!==en(t,n))&&(Le.call(t,"focusin",un,!0),Le.call(t,"focusout",sn,!0))}function fn(e){if(function(e){return e!==A.call(document)&&Jt(e)}($e.call(e))){const t=Be.call(e);Se.call(t,"focusin",un,!0),Se.call(t,"focusout",sn,!0)}}function dn(e){Le.call(e,"focusin",cn,!0)}function pn(e){Le.call(e,"focusin",an),Le.call(e,"mousedown",fn,!0)}const hn=Node.prototype.getRootNode,gn=C(hn)?function(){let e,t=this;for(;!R(e=ie.call(t));)t=e;return t}:hn;function mn(e){return D(!C(e)&&!!e.composed)?gn.call(this,e):function(e){const t=_n(e);return R(t)?gn.call(e):kt(t)}(this)}function bn(e){let t=ae.call(e);for(;!R(t)&&Cn(t);)e=t,t=ae.call(e);return e}function En(e,t){const n=kn(e);let o=t instanceof Element?t:ae.call(t);for(;!R(o)&&o!==e;){const t=Bn(o),l=ae.call(o);if(t===n)return Cn(o);if(l===e)return!1;if(R(l)||Bn(l)===t)o=l;else{if(!Cn(l))return!1;if(!R(o=_n(bn(l)))){if(o===e)return!0;if(Bn(o)===n)return!0}}}return!1}function wn(e,t){const n=_n(e);if(R(n))return[];const o=ve.call(e,t);return kn(e)?function(e,t){const n=[];for(let o=0,l=t.length;o<l;o+=1){const l=t[o];!Rn(e,l)&&En(e,l)&&T.call(n,l)}return n}(e,o):In(n,o)}function yn(e,t){const n=_n(e);if(R(n))return null;const o=ve.call(e,t);return kn(e)?function(e,t){for(let n=0,o=t.length;n<o;n+=1){const o=t[n];if(!Rn(e,o)&&En(e,o))return o}return null}(e,o):Pn(n,o)}function vn(e){const t=Un(e),{addEventListener:n,removeEventListener:o,blur:l}=e;return class extends t{querySelector(e){return yn(this,e)}querySelectorAll(e){return vt(wn(this,e))}get innerHTML(){const e=qn(this);let t="";for(let n=0,o=e.length;n<o;n+=1)t+=Pt(e[n]);return t}set innerHTML(e){Me.call(this,e)}get outerHTML(){return Pt(this)}set outerHTML(e){_e.call(this,e)}attachShadow(e){return function(e,t){if(!C(bt(e,xt)))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");const{mode:n,delegatesFocus:o}=t,l=At.call(document),r={mode:n,delegatesFocus:!!o,host:e,shadowRoot:l};return mt(l,xt,r),mt(e,xt,r),a(l,jt.prototype),l}(this,e)}addEventListener(e,t,o){Ft(this)?function(e,t,n,o){dt(e,t,st(e,n))}(this,e,t):n.call(this,e,t,o)}removeEventListener(e,t,n){Ft(this)?function(e,t,n,o){pt(e,t,st(e,n))}(this,e,t):o.call(this,e,t,n)}get shadowRoot(){if(Ft(this)){const e=kt(this);if("open"===e.mode)return e}return null}get tabIndex(){if(Ft(this)&&$t(this)&&I(pe.call(this,"tabindex")))return 0;return x(t.prototype,"tabIndex").get.call(this)}set tabIndex(e){if(Ft(this)){const o=$t(this),l=Re.call(this),r=pe.call(this,"tabindex");x(t.prototype,"tabIndex").set.call(this,e);const c=Re.call(this),i=pe.call(this,"tabindex"),a=l!==c;if(r&&(a||I(i))&&(-1===l&&pn(this),0===l&&o&&dn(this)),I(i))return;if(r&&i&&I(a))return;return-1===c&&(dn(n=this),Se.call(n,"mousedown",fn,!0),Se.call(n,"focusin",an)),void(0===c&&o&&function(e){pn(e),Se.call(e,"focusin",cn,!0)}(this))}var n;x(t.prototype,"tabIndex").set.call(this,e)}blur(){if(Ft(this)&&$t(this)){const e=function(e){const t=A.call(document);return R(t)?t:0!=(ne.call(e,t)&Y)?t:null}(this);if(!R(e))return void e.blur()}return l.call(this)}get childNodes(){if(Ft(this)){const e=_n(this);return vt(R(e)?[]:In(e,xn(this)))}return se.call(this)}get children(){if(Ft(this)){const e=_n(this),t=R(e)?[]:In(e,xn(this));return Ot(b.call(t,e=>e instanceof Element))}return Ie.call(this)}}}let Nn;c(Node.prototype,"getRootNode",{value:mn,enumerable:!0,configurable:!0,writable:!0});const Tn={childList:!0},On=gt("slotchange");function Sn(e){const t=_n(e);if(R(t))return[];const n=w.call(se.call(e));return M.call(n,(e,n)=>(Rn(t,n)||T.call(e,n),e),[])}function Ln(e){const t=w.call(se.call(e));return M.call(t,(e,t)=>(t instanceof Element&&Cn(t)?T.apply(e,Ln(t)):T.call(e,t),e),[])}const{getRootNode:Mn}=Node.prototype;function _n(e){if(!(e instanceof Node))return null;const t=Bn(e);if(C(t))return null;let n=e;for(;!R(n)&&kn(n)!==t;)n=ie.call(n);return R(n)?null:n}function Cn(e){return"SLOT"===Ce.call(e)}function Rn(e,t){const n=Bn(t);return C(n)||kn(e)===n}function Dn(e){const t=Bt(e);return In(t,se.call(t))}function In(e,t){const n=[];for(let o=0,l=t.length;o<l;o+=1){const l=t[o];Rn(e,l)&&T.call(n,l)}return n}function Pn(e,t){for(let n=0,o=t.length;n<o;n+=1)if(Rn(e,t[n]))return t[n];return null}function xn(e){let t;if(C(kn(e)))t=se.call(e);else{const n=ve.call(e,"slot");t=M.call(n,(t,n)=>(Rn(e,n)&&T.apply(t,Sn(n)),t),[])}const n=_n(e);return R(n)?[]:M.call(t,(e,t)=>(Rn(n,t)&&T.call(e,t),e),[])}const An="$$OwnerKey$$",Hn="$$OwnKey$$";Symbol("x").toString();function $n(e){return e[An]}function Bn(e){let t,n=e;for(;!R(n);){if(!C(t=n[An]))return t;n=ie.call(n)}}function kn(e){return e[Hn]}const Fn="$$ShadowTokenKey$$";function Wn(e,t){C(t)||(me.call(e,t,""),e[Fn]=t)}function jn(e,t){const n=_n(e);if(t===n)return kt(n);if(t instanceof Element){if(Bn(e)===Bn(t))return t;if(!R(n)&&Cn(t)){const e=_n(t);if(!R(e)&&Rn(n,e))return e}}return null}function Un(e){const t=i(e).constructor;class n{constructor(){throw new TypeError("Illegal constructor")}hasChildNodes(){return qn(this).length>0}get firstChild(){return qn(this)[0]||null}get lastChild(){const e=qn(this);return e[e.length-1]||null}get textContent(){return Et(this)}set textContent(e){ue.call(this,e)}get childElementCount(){return this.children.length}get firstElementChild(){return this.children[0]||null}get lastElementChild(){const{children:e}=this;return e.item(e.length-1)||null}get assignedSlot(){const e=ie.call(this);return R(e)||!Cn(e)||Bn(e)===Bn(this)?null:e}get parentNode(){const e=ie.call(this);return R(e)?e:jn(this,e)}get parentElement(){const e=ie.call(this);if(R(e))return null;const t=jn(this,e);return t instanceof Element?t:null}compareDocumentPosition(e){return Mn.call(this)===e?10:$n(this)!==$n(e)?35:ne.call(this,e)}contains(e){return $n(this)===$n(e)&&0!=(ne.call(this,e)&Y)}cloneNode(e){const t=te.call(this,!1);if(!e)return t;const n=qn(this);for(let e=0,o=n.length;e<o;e+=1)t.appendChild(n[e].cloneNode(!0));return t}}return a(n,t),a(n.prototype,t.prototype),n}const qn=function(e){return e.childNodes};document.elementFromPoint=function(e,t){const n=H.call(document,e,t);return R(n)?n:We(document,Fe(n,!0))},c(document,"activeElement",{get(){let e=A.call(this);if(R(e))return e;for(;!C($n(e));)if(R(e=ae.call(e)))return null;return"HTML"===e.tagName&&(e=document.body),e},enumerable:!0,configurable:!0}),c(Document.prototype,"getElementById",{value(){const e=q.apply(this,w.call(arguments));if(R(e))return null;const t=$n(this);return $n(e)===t?e:null},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelector",{value(){const e=U.apply(this,w.call(arguments)),t=$n(this),n=E.call(e,e=>$n(e)===t);return C(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"querySelectorAll",{value(){const e=U.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByClassName",{value(){const e=K.apply(this,w.call(arguments)),t=$n(this);return Ot(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagName",{value(){const e=G.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(Document.prototype,"getElementsByTagNameNS",{value(){const e=V.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(u(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=X.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),function(){const e=HTMLBodyElement.prototype;c(e,"querySelector",{value(){const e=ve.apply(this,w.call(arguments)),t=$n(this),n=E.call(e,e=>$n(e)===t);return C(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),c(e,"querySelectorAll",{value(){const e=ve.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByClassName",{value(){const e=Pe.apply(this,w.call(arguments)),t=$n(this);return Ot(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByTagName",{value(){const e=Te.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0}),c(e,"getElementsByTagNameNS",{value(){const e=Oe.apply(this,w.call(arguments)),t=$n(this);return vt(b.call(e,e=>$n(e)===t))},writable:!0,enumerable:!0,configurable:!0})}(),void 0===window.ShadowRoot&&(window.ShadowRoot=jt);const Kn=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const Gn=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Vn(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!Kn)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",t=>e=t),t.click(),!Kn.get.call(e)})()&&(HTMLElement.prototype.click=function(){Se.call(this,"click",Vn);try{Gn.value.call(this)}finally{Le.call(this,"click",Vn)}}),void 0===Object.getOwnPropertyDescriptor(Event.prototype,"composed")&&function(){const e=r(l(null),{blur:1,focus:1,focusin:1,focusout:1,click:1,dblclick:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,wheel:1,beforeinput:1,input:1,keydown:1,keyup:1,compositionstart:1,compositionupdate:1,compositionend:1,touchstart:1,touchend:1,touchmove:1,touchcancel:1,pointerover:1,pointerenter:1,pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerout:1,pointerleave:1,gotpointercapture:1,lostpointercapture:1,dragstart:1,drag:1,dragenter:1,dragleave:1,dragover:1,drop:1,dragend:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,keypress:1});Object.defineProperties(Event.prototype,{composed:{get(){const{type:t}=this;return 1===e[t]},configurable:!0,enumerable:!0}})}();const{CustomEvent:Xn}=window;function Yn(e,t){const n=new Xn(e,t);return Object.defineProperties(n,{composed:{get:()=>!(!t||!t.composed),configurable:!0,enumerable:!0}}),n}window.CustomEvent!==Yn&&(window.CustomEvent=Yn,window.CustomEvent.prototype=Xn.prototype),function(){const e=Object.getOwnPropertyDescriptor(Event.prototype,"composed").get;Object.defineProperties(FocusEvent.prototype,{composed:{get(){const{isTrusted:t}=this,n=e.call(this);return!(!t||!1!==n)||n},enumerable:!0,configurable:!0}})}();const zn=window.MutationObserver,{disconnect:Jn,observe:Qn,takeRecords:Zn}=zn.prototype,eo="$$lwcObserverCallbackWrapper$$",to="$$lwcNodeObservers$$";function no(e){const{addedNodes:t,removedNodes:n,target:o,type:r}=e,c=l(MutationRecord.prototype);return f(c,{addedNodes:{get:()=>t,enumerable:!0,configurable:!0},removedNodes:{get:()=>n,enumerable:!0,configurable:!0},type:{get:()=>r,enumerable:!0,configurable:!0},target:{get:()=>o.shadowRoot,enumerable:!0,configurable:!0}}),c}function oo(e,t){let n=t;for(;!R(n);){const t=n[to];if(!C(t)&&(t[0]===e||-1!==N.call(t,e)))return!0;n=n.parentNode}return!1}function lo(e,t){return M.call(e,(e,n)=>{const{target:o,addedNodes:l,removedNodes:r,type:c}=n;if("childList"!==c||C(kn(o)))oo(t,o)&&T.call(e,n);else if(l.length>0){const r=l[0];oo(t,r)&&(!o[to]||o[to][0]!==t&&-1===N.call(o[to],t)?T.call(e,no(n)):T.call(e,n))}else{const l=o.shadowRoot,c=r[0];Bn(o)===Bn(c)&&oo(t,o)?T.call(e,n):l&&l[to]&&(l[to][0]===t||-1!==N.call(l[to],t))&&T.call(e,no(n))}return e},[])}function ro(e){const t=function(e){let t=e[eo];return C(t)&&(t=e[eo]=((t,n)=>{const o=lo(t,n);0!==o.length&&e.call(n,o,n)})),t}(e);return new zn(t)}function co(){Jn.call(this)}function io(e,t){return C(e[to])&&c(e,to,{value:[]}),T.call(e[to],this),e instanceof jt&&(e=e.host),Qn.call(this,e,t)}function ao(){return lo(Zn.call(this),this)}window.MutationObserver=ro,window.MutationObserver.prototype=zn.prototype,window.MutationObserver.prototype.disconnect=co,window.MutationObserver.prototype.observe=io,window.MutationObserver.prototype.takeRecords=ao;const uo=window.MutationObserver,so=uo.prototype.observe;let fo;const po={childList:!0,subtree:!0};function ho(e,t,n){if($n(e)!==t&&(function(e,t){e[An]=t}(e,t),e instanceof Element)){Wn(e,n);const o=qn(e);for(let e=0,l=o.length;e<l;e+=1){ho(o[e],t,n)}}}function go(){return new uo(e=>{L.call(e,e=>{const{target:t,addedNodes:n}=e,o=$n(t),l=function(e){return e[Fn]}(t);if(!C(o))for(let e=0,t=n.length;e<t;e+=1){ho(n[e],o,l)}})})}e.PatchedElement=vn,e.PatchedIframeElement=function(e){const t=vn(e);return class extends t{get contentWindow(){const e=He.call(this);return e?(t=e,{postMessage(){return t.postMessage.apply(t,arguments)},blur(){return t.blur.apply(t,arguments)},close(){return t.close.apply(t,arguments)},focus(){return t.focus.apply(t,arguments)},get closed(){return t.closed},get frames(){return t.frames},get length(){return t.length},get location(){return t.location},set location(e){t.location=e},get opener(){return t.opener},get parent(){return t.parent},get self(){return t.self},get top(){return t.top},get window(){return t.window}}):e;var t}}},e.PatchedNode=Un,e.PatchedSlotElement=function(e){const t=vn(e),{addEventListener:n}=e;return class extends t{addEventListener(e,t,o){"slotchange"!==e||bt(this,On)||(mt(this,On,!0),Nn||(Nn=new Kt(e=>{const t=[];L.call(e,e=>{const{target:n}=e;-1===N.call(t,n)&&(T.call(t,n),xe.call(n,new CustomEvent("slotchange")))})})),Gt.call(Nn,this,Tn)),n.call(this,e,t,o)}assignedElements(e){const t=!C(e)&&D(e.flatten)?Ln(this):Sn(this);return b.call(t,e=>e instanceof Element)}assignedNodes(e){return!C(e)&&D(e.flatten)?Ln(this):Sn(this)}get name(){const e=he.call(this,"name");return R(e)?"":e}get childNodes(){const e=_n(this);return vt(R(e)?[]:In(e,xn(this)))}get children(){const e=_n(this),t=R(e)?[]:In(e,xn(this));return Ot(b.call(t,e=>e instanceof Element))}}},e.markElementAsPortal=function(e){C(fo)&&(fo=go()),so.call(fo,e,po)},e.patchEvent=lt,e.setCSSToken=Wn,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).SyntheticShadow={})}(this,function(e){"use strict";var t=Object.create,n=Object.assign,r=Object.defineProperty,o=Object.getPrototypeOf,l=Object.setPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.defineProperties,u=Object.hasOwnProperty,c=Array.prototype,f=c.filter,s=c.slice,p=c.splice,d=c.indexOf,h=c.push,b=c.map,v=c.forEach,g=c.reduce,m=c.reverse;function y(e){return void 0===e}function w(e){return null===e}function E(e){return!0===e}function O(e){return!1===e}function N(e){return"function"==typeof e}function T(e,t){do{var n=i(e,t);if(!y(n))return n;e=o(e)}while(null!==e)}var S=i(Document.prototype,"activeElement").get,_=u.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,M=Document.prototype,P=(M.createDocumentFragment,M.createElement,M.createElementNS,M.createTextNode,M.createComment,M.querySelector,M.querySelectorAll),L=(M.getElementById,M.getElementsByClassName,M.getElementsByName,M.getElementsByTagName,M.getElementsByTagNameNS,Node.DOCUMENT_POSITION_CONTAINED_BY),C=(Node.DOCUMENT_POSITION_CONTAINS,Node.DOCUMENT_POSITION_PRECEDING),R=Node.DOCUMENT_POSITION_FOLLOWING,I=Node.DOCUMENT_FRAGMENT_NODE,D=Node.prototype,A=(D.appendChild,D.cloneNode),j=D.compareDocumentPosition,x=(D.hasChildNodes,D.insertBefore,D.removeChild,D.replaceChild,i(Node.prototype,"parentNode").get),$=u.call(Node.prototype,"parentElement")?i(Node.prototype,"parentElement").get:i(HTMLElement.prototype,"parentElement").get,F=i(Node.prototype,"textContent").set,H=u.call(Node.prototype,"childNodes")?i(Node.prototype,"childNodes").get:i(HTMLElement.prototype,"childNodes").get,k=i(Node.prototype,"nodeValue"),W=(k.set,k.get,u.call(Node.prototype,"isConnected")?i(Node.prototype,"isConnected").get:function(){return 0!=(j.call(document,this)&L)}),B=Element.prototype,U=B.hasAttribute,q=B.getAttribute,K=(B.getAttributeNS,B.setAttribute),G=(B.setAttributeNS,B.removeAttribute,B.removeAttributeNS,B.querySelector,B.querySelectorAll),V=B.getBoundingClientRect,X=(B.getElementsByTagName,B.getElementsByClassName,B.getElementsByTagNameNS,Element.prototype),Y=X.addEventListener,z=X.removeEventListener;Y=Y.__lwcOriginal__||Y,z=z.__lwcOriginal__||z;var J=u.call(Element.prototype,"innerHTML")?i(Element.prototype,"innerHTML").set:i(HTMLElement.prototype,"innerHTML").set,Q=i(Element.prototype,"tagName").get,Z=i(HTMLElement.prototype,"tabIndex").get,ee=u.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,te=(u.call(Element.prototype,"children")?i(Element.prototype,"children").get:i(HTMLElement.prototype,"children").get,function(e,t){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)});function ne(e,t){function n(){this.constructor=e}te(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}void 0!==window.ShadowRoot&&i(window.ShadowRoot.prototype,"host").get,void 0!==window.ShadowRoot&&i(window.ShadowRoot.prototype,"innerHTML").set;var re="EventTarget"in window?EventTarget.prototype.dispatchEvent:Node.prototype.dispatchEvent,oe=void 0!==window.ShadowRoot,le=i(HTMLIFrameElement.prototype,"contentWindow").get,ie=i(Event.prototype,"target").get,ae=i(Event.prototype,"currentTarget").get,ue=i(FocusEvent.prototype,"relatedTarget").get;var ce=/[&\u00A0"]/g,fe=/[&\u00A0<>]/g,se=String.prototype,pe=se.replace,de=se.toLowerCase;function he(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;";default:return""}}function be(e){return pe.call(e,ce,he)}var ve=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),ge=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function me(e){switch(e.nodeType){case Node.ELEMENT_NODE:for(var t=e.attributes,n=Q.call(e),r="<"+de.call(n),o=0,l=void 0;l=t[o];o++)r+=" "+l.name+'="'+be(l.value)+'"';return r+=">",ve.has(n)?r:r+function(e){for(var t="",n=Ft(e),r=0,o=n.length;r<o;r+=1)t+=me(n[r]);return t}(e)+"</"+de.call(n)+">";case Node.TEXT_NODE:var i=e,a=i.data,u=i.parentNode;return u instanceof Element&&ge.has(Q.call(u))?a:function(e){return pe.call(e,fe,he)}(a);case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw new Error}}function ye(e,t){for(var n=[],r=e,o=e===window?window:Mt.call(e);r;)n.push(r),r=r.assignedSlot?r.assignedSlot:r.nodeType===I&&r.host&&(t||r!==o)?r.host:r.parentNode;return n[n.length-1]===document&&n.push(window),n}function we(e,t){for(var n=ye(e,!0),r=t,o=0,l=void 0,i=void 0,a=void 0,u=void 0;o<r.length;o++)if((a=(l=r[o])===window?window:Mt.call(l))!==i&&(u=n.indexOf(a),i=a),!(a instanceof ht)||u>-1)return l;return null}var Ee=window.addEventListener,Oe=window.removeEventListener;function Ne(e){var t=null;try{if(!(t=e.$$lwcEventWrapper$$)){var n="function"==typeof e;t=e.$$lwcEventWrapper$$=function(t){return function(e){var t=ie.call(e);return!!(t instanceof Node&&0!=(j.call(document,t)&L)&&Bt(t))}(t)&&Fe(t),n?e.call(this,t):e.handleEvent&&e.handleEvent(t)}}}catch(e){}return t}function Te(e,t,n){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){var o=Ne(t);Ee.call(this,e,o,n)}}function Se(e,t,n){var r=Ne(t);Oe.call(this,e,r||t,n)}function _e(e,t,n){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){var o=Ne(t);Y.call(this,e,o,n)}}function Me(e,t,n){var r=Ne(t);z.call(this,e,r||t,n)}Ee=Ee.__lwcOriginal__||Ee,Oe=Oe.__lwcOriginal__||Oe,_e.__lwcOriginal__=Y,Me.__lwcOriginal__=z,Te.__lwcOriginal__=Ee,Se.__lwcOriginal__=Oe,window.addEventListener=Te,window.removeEventListener=Se,Node.prototype.addEventListener=_e,Node.prototype.removeEventListener=Me;var Pe,Le=Node.prototype,Ce=Le.addEventListener,Re=Le.removeEventListener;!function(e){e[e.CUSTOM_ELEMENT_LISTENER=1]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=2]="SHADOW_ROOT_LISTENER"}(Pe||(Pe={}));var Ie=new WeakMap;function De(e,t){return!!(j.call(e,t)&L)}var Ae={composed:!1};function je(e,t){var n=Mt.call(e,t);return"mode"in n&&"delegatesFocus"in n&&(n=st(n)),n}function xe(){var e=ae.call(this),t=ye(ie.call(this),this.composed);return e instanceof Node?we(Ie.get(this)===Pe.SHADOW_ROOT_LISTENER?pt(e):e,t):we(document,t)}function $e(){return ye(ie.call(this),this.composed)}function Fe(e){if(!Ie.has(e)){a(e,{target:{get:xe,enumerable:!0,configurable:!0},composedPath:{value:$e,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:xe,enumerable:!0,configurable:!0},path:{get:$e,enumerable:!0,configurable:!0}});var t=T(e,"relatedTarget");y(t)||r(e,"relatedTarget",{get:function(){var e=Ie.get(this),n=ae.call(this),r=t.get.call(this);return w(r)?null:we(e===Pe.SHADOW_ROOT_LISTENER?pt(n):n,ye(r,!0))},enumerable:!0,configurable:!0}),Ie.set(e,0)}}var He=new WeakMap;function ke(e){var n=He.get(e);return y(n)&&(n=t(null),He.set(e,n)),n}var We=new WeakMap;function Be(e,t){if(!N(t))throw new TypeError;var n=We.get(t);return y(n)&&((n=function(n){var r=n.composed,o=ie.call(n),l=ae.call(n);if(o!==l){var i=je(o,{composed:r});(De(i,l)||!1===r&&i===l)&&t.call(e,n)}}).placement=Pe.SHADOW_ROOT_LISTENER,We.set(t,n)),n}var Ue=new WeakMap;function qe(e,t){if(!N(t))throw new TypeError;var n=Ue.get(t);return y(n)&&((n=function(n){(function(e){var t=ie.call(e),n=ae.call(e);return!0===e.composed||t===n||De(je(t,Ae),n)})(n)&&t.call(e,n)}).placement=Pe.CUSTOM_ELEMENT_LISTENER,Ue.set(t,n)),n}function Ke(e){var t=!1,n=!1,o=e.type,l=e.stopImmediatePropagation,i=e.stopPropagation,a=ke(ae.call(e))[o];r(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),r(e,"stopPropagation",{value:function(){n=!0,i.call(e)},writable:!0,enumerable:!0,configurable:!0});var u=s.call(a);function c(n){v.call(u,function(r){O(t)&&r.placement===n&&-1!==d.call(a,r)&&r.call(void 0,e)})}Ie.set(e,Pe.SHADOW_ROOT_LISTENER),c(Pe.SHADOW_ROOT_LISTENER),O(t)&&O(n)&&(Ie.set(e,Pe.CUSTOM_ELEMENT_LISTENER),c(Pe.CUSTOM_ELEMENT_LISTENER)),Ie.set(e,0)}function Ge(e,t,n){var r=ke(e),o=r[t];y(o)&&(o=r[t]=[]),0===o.length&&Ce.call(e,t,Ke),h.call(o,n)}function Ve(e,t,n){var r,o;y(o=ke(e)[t])||-1===(r=d.call(o,n))||(p.call(o,r,1),0===o.length&&Re.call(e,t,Ke))}var Xe,Ye="Symbol(x)"===Symbol("x").toString();function ze(e){return Ye?Symbol(e):"$$lwc-"+e+"$$"}function Je(e,t,n){r(e,t,{value:n})}function Qe(e,t){return e[t]}function Ze(e){switch(e.nodeType){case Node.ELEMENT_NODE:for(var t=Ft(e),n="",r=0,o=t.length;r<o;r+=1)n+=Ze(t[r]);return n;default:return e.nodeValue}}var et,tt=ze("items");function nt(){throw new TypeError("Illegal constructor")}function rt(e){var n=t(nt.prototype);return Je(n,tt,e),v.call(e,function(e,t){r(n,t,{value:e,enumerable:!0,configurable:!0})}),n}nt.prototype=t(NodeList.prototype,((Xe={constructor:{writable:!0,configurable:!0,value:nt},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return Qe(this,tt).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){v.call(Qe(this,tt),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return b.call(Qe(this,tt),function(e,t){return[t,e]})}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return b.call(Qe(this,tt),function(e,t){return t})}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Qe(this,tt)}}})[Symbol.iterator]={writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=Qe(e,tt);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}},Xe)),l(nt,NodeList);var ot=ze("items");function lt(){throw new TypeError("Illegal constructor")}function it(e){var n=t(lt.prototype);return Je(n,ot,e),v.call(e,function(e,t){r(n,t,{value:e,enumerable:!0,configurable:!0})}),n}lt.prototype=t(HTMLCollection.prototype,((et={constructor:{writable:!0,configurable:!0,value:lt},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return Qe(this,ot).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(function(e){return"length"!==e&&isNaN(e)}(e)&&this[e])return this[e];for(var t,n=Qe(this,ot),r=n.length-1;r>=0;r-=1){var o=n[r];if(((t=o).getAttribute("id")||t.getAttribute("name"))===e)return o}return null}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){v.call(Qe(this,ot),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return b.call(Qe(this,ot),function(e,t){return[t,e]})}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return b.call(Qe(this,ot),function(e,t){return t})}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Qe(this,ot)}}})[Symbol.iterator]={writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=Qe(e,ot);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}},et)),l(lt,HTMLCollection);var at=ze("shadowRecord"),ut=document.createDocumentFragment;function ct(e){var t=Qe(e,at);if(y(t))throw new TypeError;return t}function ft(e){return ct(e).delegatesFocus}function st(e){return ct(e).host}function pt(e){return ct(e).shadowRoot}var dt={constructor:{writable:!0,configurable:!0,value:ht},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}}};function ht(){throw new TypeError("Illegal constructor")}n(dt,{addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){Ge(st(e),t,Be(e,n))}(this,e,t)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){Ve(st(e),t,Be(e,n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return st(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return rt(Dt(this))}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=st(this);return this===e?0:this.contains(e)?20:j.call(t,e)&L?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=st(this);return 0!=(j.call(t,e)&L)&&Ct(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return Yt(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=Yt(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yt(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return W.call(st(this))}},nextSibling:{enumerable:!0,configurable:!0,get:function(){return null}},previousSibling:{enumerable:!0,configurable:!0,get:function(){return null}},nodeName:{enumerable:!0,configurable:!0,get:function(){return"#document-fragment"}},nodeType:{enumerable:!0,configurable:!0,get:function(){return 11}},nodeValue:{enumerable:!0,configurable:!0,get:function(){return null}},ownerDocument:{enumerable:!0,configurable:!0,get:function(){return st(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:function(){return null}},parentNode:{enumerable:!0,configurable:!0,get:function(){return null}},textContent:{enumerable:!0,configurable:!0,get:function(){for(var e=Yt(this),t="",n=0,r=e.length;n<r;n+=1)t+=Ze(e[n]);return t},set:function(e){var t=st(this);F.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=!y(e)&&!!e.composed;return O(t)?this:Mt.call(st(this),{composed:t})}}},{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return it(f.call(Dt(this),function(e){return e instanceof Element}))}},firstElementChild:{enumerable:!0,configurable:!0,get:function(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get:function(){var e=this.children;return e.item(e.length-1)||null}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return t=e,n=st(this),r=G.call(n,t),jt(n,r);var t,n,r}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return rt((t=e,n=st(this),r=G.call(n,t),At(n,r)));var t,n,r}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=Yt(this),t="",n=0,r=e.length;n<r;n+=1)t+=me(e[n]);return t},set:function(e){var t=st(this);J.call(t,e)}}},{activeElement:{enumerable:!0,configurable:!0,get:function(){var e=S.call(document);if(w(e))return e;var t=st(this);if(0==(j.call(t,e)&L))return null;for(var n=e;!Ct(t,n);)n=$.call(n);return Lt(n)?null:n}},delegatesFocus:{configurable:!0,get:function(){return ct(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){var n=_.call(document,e,t);return w(n)?n:we(this,ye(n,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){throw new Error}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error}},host:{enumerable:!0,configurable:!0,get:function(){return st(this)}},mode:{configurable:!0,get:function(){return ct(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}}),ht.prototype=t(DocumentFragment.prototype,dt),oe&&l(ht.prototype,window.ShadowRoot.prototype);var bt=window.MutationObserver;if(void 0===bt){function vt(){}vt.prototype={observe:function(){}},bt=window.MutationObserver=vt}var gt,mt=bt,yt=mt.prototype.observe,wt={childList:!0},Et=ze("slotchange");function Ot(e){var t=Pt(e);if(w(t))return[];var n=s.call(H.call(e));return g.call(n,function(e,n){return Ct(t,n)||h.call(e,n),e},[])}function Nt(e){var t=s.call(H.call(e));return g.call(t,function(e,t){return t instanceof Element&&Lt(t)?h.apply(e,Nt(t)):h.call(e,t),e},[])}var Tt=Node.prototype.getRootNode,St=y(Tt)?function(){for(var e,t=this;!w(e=x.call(t));)t=e;return t}:Tt;function _t(e){var t,n;return E(!y(e)&&!!e.composed)?St.call(this,e):w(n=Pt(t=this))?St.call(t):pt(n)}r(Node.prototype,"getRootNode",{value:_t,enumerable:!0,configurable:!0,writable:!0});var Mt=Node.prototype.getRootNode;function Pt(e){if(!(e instanceof Node))return null;var t=Ut(e);if(y(t))return null;for(var n=e;!w(n)&&qt(n)!==t;)n=x.call(n);return w(n)?null:n}function Lt(e){return"SLOT"===Q.call(e)}function Ct(e,t){var n=Ut(t);return y(n)||qt(e)===n}function Rt(e){for(var t=$.call(e);!w(t)&&Lt(t);)e=t,t=$.call(e);return e}function It(e,t){for(var n=qt(e),r=t instanceof Element?t:$.call(t);!w(r)&&r!==e;){var o=Ut(r),l=$.call(r);if(o===n)return Lt(r);if(l===e)return!1;if(w(l)||Ut(l)===o)r=l;else{if(!Lt(l))return!1;if(!w(r=Pt(Rt(l)))){if(r===e)return!0;if(Ut(r)===n)return!0}}}return!1}function Dt(e){var t=st(e);return At(t,H.call(t))}function At(e,t){for(var n=[],r=0,o=t.length;r<o;r+=1){var l=t[r];Ct(e,l)&&h.call(n,l)}return n}function jt(e,t){for(var n=0,r=t.length;n<r;n+=1)if(Ct(e,t[n]))return t[n];return null}function xt(e,t){var n=Pt(e);if(w(n))return[];var r=G.call(e,t);return qt(e)?function(e,t){for(var n=[],r=0,o=t.length;r<o;r+=1){var l=t[r];!Ct(e,l)&&It(e,l)&&h.call(n,l)}return n}(e,r):At(n,r)}function $t(e,t){var n=Pt(e);if(w(n))return null;var r=G.call(e,t);return qt(e)?function(e,t){for(var n=0,r=t.length;n<r;n+=1){var o=t[n];if(!Ct(e,o)&&It(e,o))return o}return null}(e,r):jt(n,r)}function Ft(e){var t;if(y(qt(e)))t=H.call(e);else{var n=G.call(e,"slot");t=g.call(n,function(t,n){return Ct(e,n)&&h.apply(t,Ot(n)),t},[])}var r=Pt(e);return w(r)?[]:g.call(t,function(e,t){return Ct(r,t)&&h.call(e,t),e},[])}function Ht(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ne(t,e),t.prototype.querySelector=function(e){return $t(this,e)},t.prototype.querySelectorAll=function(e){return rt(xt(this,e))},Object.defineProperty(t.prototype,"innerHTML",{get:function(){for(var e=Yt(this),t="",n=0,r=e.length;n<r;n+=1)t+=me(e[n]);return t},set:function(e){J.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outerHTML",{get:function(){return me(this)},enumerable:!0,configurable:!0}),t}(Xt(e))}var kt="$$OwnerKey$$",Wt="$$OwnKey$$";Symbol("x").toString();function Bt(e){return e[kt]}function Ut(e){for(var t,n=e;!w(n);){if(!y(t=n[kt]))return t;n=x.call(n)}}function qt(e){return e[Wt]}var Kt="$$ShadowTokenKey$$";function Gt(e,t){y(t)||(K.call(e,t,""),e[Kt]=t)}function Vt(e,t){var n=Pt(e);if(t===n)return pt(n);if(t instanceof Element){if(Ut(e)===Ut(t))return t;if(!w(n)&&Lt(t)){var r=Pt(t);if(!w(r)&&Ct(n,r))return r}}return null}function Xt(e){var t=o(e).constructor,n=function(){function e(){throw new TypeError("Illegal constructor")}return e.prototype.hasChildNodes=function(){return Yt(this).length>0},Object.defineProperty(e.prototype,"firstChild",{get:function(){return Yt(this)[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){var e=Yt(this);return e[e.length-1]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{get:function(){return Ze(this)},set:function(e){F.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.children.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.children[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){var e=this.children;return e.item(e.length-1)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"assignedSlot",{get:function(){var e=x.call(this);return w(e)||!Lt(e)||Ut(e)===Ut(this)?null:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){var e=x.call(this);return w(e)?e:Vt(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){var e=x.call(this);if(w(e))return null;var t=Vt(this,e);return t instanceof Element?t:null},enumerable:!0,configurable:!0}),e.prototype.compareDocumentPosition=function(e){return Mt.call(this)===e?10:Bt(this)!==Bt(e)?35:j.call(this,e)},e.prototype.contains=function(e){return Bt(this)===Bt(e)&&0!=(j.call(this,e)&L)},e.prototype.cloneNode=function(e){var t=A.call(this,!1);if(!e)return t;for(var n=Yt(this),r=0,o=n.length;r<o;r+=1)t.appendChild(n[r].cloneNode(!0));return t},e}();return l(n,t),l(n.prototype,t.prototype),n}var Yt=function(e){return e.childNodes};document.elementFromPoint=function(e,t){var n=_.call(document,e,t);return w(n)?n:we(document,ye(n,!0))},r(document,"activeElement",{get:function(){var e=S.call(this);if(w(e))return e;for(;!y(Bt(e));)if(w(e=$.call(e)))return null;return"HTML"===e.tagName&&(e=document.body),e},enumerable:!0,configurable:!0}),void 0===window.ShadowRoot&&(window.ShadowRoot=ht);var zt=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var Jt,Qt=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Zt(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!zt)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",function(t){return e=t}),t.click(),!zt.get.call(e)})()&&(HTMLElement.prototype.click=function(){Y.call(this,"click",Zt);try{Qt.value.call(this)}finally{z.call(this,"click",Zt)}}),void 0===Object.getOwnPropertyDescriptor(Event.prototype,"composed")&&(Jt=n(t(null),{blur:1,focus:1,focusin:1,focusout:1,click:1,dblclick:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,wheel:1,beforeinput:1,input:1,keydown:1,keyup:1,compositionstart:1,compositionupdate:1,compositionend:1,touchstart:1,touchend:1,touchmove:1,touchcancel:1,pointerover:1,pointerenter:1,pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerout:1,pointerleave:1,gotpointercapture:1,lostpointercapture:1,dragstart:1,drag:1,dragenter:1,dragleave:1,dragover:1,drop:1,dragend:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,keypress:1}),Object.defineProperties(Event.prototype,{composed:{get:function(){var e=this.type;return 1===Jt[e]},configurable:!0,enumerable:!0}}));var en,tn=window.CustomEvent;function nn(e,t){var n=new tn(e,t);return Object.defineProperties(n,{composed:{get:function(){return!(!t||!t.composed)},configurable:!0,enumerable:!0}}),n}window.CustomEvent!==nn&&(window.CustomEvent=nn,window.CustomEvent.prototype=tn.prototype),en=Object.getOwnPropertyDescriptor(Event.prototype,"composed").get,Object.defineProperties(FocusEvent.prototype,{composed:{get:function(){var e=this.isTrusted,t=en.call(this);return!(!e||!1!==t)||t},enumerable:!0,configurable:!0}});var rn='\n button:not([tabindex="-1"]):not([disabled]),\n [contenteditable]:not([tabindex="-1"]),\n video[controls]:not([tabindex="-1"]),\n audio[controls]:not([tabindex="-1"]),\n [href]:not([tabindex="-1"]),\n input:not([tabindex="-1"]):not([disabled]),\n select:not([tabindex="-1"]):not([disabled]),\n textarea:not([tabindex="-1"]):not([disabled]),\n [tabindex="0"]\n';function on(e){var t=V.call(e),n=t.width,r=t.height;return(n>0||r>0)&&"hidden"!==getComputedStyle(e).visibility}function ln(e){return ee.call(e,rn)&&on(e)}var an={IFRAME:1,VIDEO:1,AUDIO:1,A:1,INPUT:1,SELECT:1,TEXTAREA:1,BUTTON:1};function un(e){var t=Q.call(e);return on(e)&&(function(e){if(O(U.call(e,"tabindex")))return!1;var t=q.call(e,"tabindex");return""!==t&&("0"===t||"-1"===t)}(e)||U.call(e,"contenteditable")||u.call(an,t))}function cn(e){for(var t=0,n=e.length;t<n;t+=1){var r=e[t];if(ln(r))return r}return null}function fn(e){var t=P.call(document,rn),n=s.call(G.call(e,rn)),r=n[0],o=n[n.length-1],l=d.call(t,e),i=l>-1?l:d.call(t,r),a=0===n.length?i+1:d.call(t,o)+1;return{prev:s.call(t,0,i),inner:n,next:s.call(t,a)}}function sn(e,t){var n=j.call(e,t);return n&L?0:n&C?1:n&R?2:-1}function pn(e){e.preventDefault(),e.stopPropagation()}function dn(e){Ee.call(window,"focusin",pn,!0),Ee.call(window,"focusout",pn,!0),e(),Oe.call(window,"focusin",pn,!0),Oe.call(window,"focusout",pn,!0)}function hn(e,t){dn(function(){var n=function(e){return cn(e.next)}(t);w(n)?e.blur():n.focus()})}function bn(e,t){dn(function(){var n=function(e){var t=e.prev;return cn(m.call(t))}(t);w(n)?e.blur():n.focus()})}function vn(e,t){return function(e){for(var t=e.length-1;t>=0;t-=1){var n=e[t];if(ln(n))return n}return null}(t.inner)===e}function gn(e){var t=ae.call(e),n=ie.call(e);if(t===n){var r=ue.call(e);if(!w(r)){var o=fn(t);if(1===sn(t,r)){var l=cn(o.inner);w(l)?hn(n,o):dn(function(){l.focus()})}else t===n&&bn(t,o)}}}function mn(e){var t=ae.call(e),n=ie.call(e),r=ue.call(e),o=fn(t),l=function(e,t){return cn(t.inner)===e}(n,o),i=vn(n,o);if(!(O(l)&&O(i)||w(r)))switch(sn(t,r)){case 1:l&&hn(n,o);break;case 2:i&&bn(n,o)}}function yn(e){var t=ae.call(e);z.call(t,"focusin",mn),setTimeout(function(){w(t)||-1!==Z.call(t)||Y.call(t,"focusin",mn)},0)}function wn(e){var t=ae.call(e),n=ue.call(e);(w(n)||0!==sn(t,n))&&(z.call(t,"focusin",yn,!0),z.call(t,"focusout",wn,!0))}function En(e){if(function(e){return e!==S.call(document)&&un(e)}(ie.call(e))){var t=ae.call(e);Y.call(t,"focusin",yn,!0),Y.call(t,"focusout",wn,!0)}}function On(e){z.call(e,"focusin",gn,!0)}function Nn(e){z.call(e,"focusin",mn),z.call(e,"mousedown",En,!0)}var Tn=window.MutationObserver,Sn=Tn.prototype,_n=Sn.disconnect,Mn=Sn.observe,Pn=Sn.takeRecords,Ln="$$lwcObservedTargets$$",Cn="$$lwcObserverCallbackWrapper$$";function Rn(e,n){var r=n[Ln],o=[];return v.call(r,function(e){var t=e instanceof window.ShadowRoot?qt(e.host):Ut(e);h.call(o,t)}),g.call(e,function(e,n){var l=n.target,i=n.addedNodes,u=n.removedNodes;if("childList"!==n.type||y(qt(l))){var c=l instanceof window.ShadowRoot?qt(l.host):Ut(l);-1!==d.call(o,c)&&h.call(e,n)}else{var f=Ut(i.length>0?i[0]:u[0]);-1!==d.call(o,f)&&(-1!==r.indexOf(l)?h.call(e,n):h.call(e,function(e){var n=e.addedNodes,r=e.removedNodes,o=e.target,l=e.type,i=t(MutationRecord.prototype);return a(i,{addedNodes:{get:function(){return n},enumerable:!0,configurable:!0},removedNodes:{get:function(){return r},enumerable:!0,configurable:!0},type:{get:function(){return l},enumerable:!0,configurable:!0},target:{get:function(){return o.shadowRoot},enumerable:!0,configurable:!0}}),i}(n)))}return e},[])}function In(e){var t=function(e){var t=e[Cn];return y(t)&&(t=e[Cn]=function(t,n){var r=Rn(t,n);0!==r.length&&e.call(n,r,n)}),t}(e),n=new Tn(t);return r(n,Ln,{value:[]}),n}function Dn(){y(this[Ln])||(this[Ln].length=0),_n.call(this)}function An(e,t){return y(this[Ln])||h.call(this[Ln],e),e instanceof ht&&(e=e.host),Mn.call(this,e,t)}function jn(){return Rn(Pn.call(this),this)}window.MutationObserver=In,window.MutationObserver.prototype=Tn.prototype,window.MutationObserver.prototype.disconnect=Dn,window.MutationObserver.prototype.observe=An,window.MutationObserver.prototype.takeRecords=jn;var xn,$n=window.MutationObserver,Fn=$n.prototype.observe,Hn={childList:!0,subtree:!0};function kn(e,t,n){if(Bt(e)!==t&&(function(e,t){e[kt]=t}(e,t),e instanceof Element)){Gt(e,n);for(var r=Yt(e),o=0,l=r.length;o<l;o+=1){kn(r[o],t,n)}}}function Wn(){return new $n(function(e){v.call(e,function(e){var t=e.target,n=e.addedNodes,r=Bt(t),o=function(e){return e[Kt]}(t);if(!y(r))for(var l=0,i=n.length;l<i;l+=1){kn(n[l],r,o)}})})}e.PatchedCustomElement=function(e){var t=Ht(e);return function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),n.prototype.attachShadow=function(e){return function(e,t){if(!y(Qe(e,at)))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");var n=t.mode,r=t.delegatesFocus,o=ut.call(document),i={mode:n,delegatesFocus:!!r,host:e,shadowRoot:o};return Je(o,at,i),Je(e,at,i),l(o,ht.prototype),o}(this,e)},n.prototype.addEventListener=function(e,t,n){!function(e,t,n,r){Ge(e,t,qe(e,n))}(this,e,t)},n.prototype.removeEventListener=function(e,t,n){!function(e,t,n,r){Ve(e,t,qe(e,n))}(this,e,t)},Object.defineProperty(n.prototype,"shadowRoot",{get:function(){var e=pt(this);return"open"===e.mode?e:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tabIndex",{get:function(){return ft(this)&&O(U.call(this,"tabindex"))?0:T(t.prototype,"tabIndex").get.call(this)},set:function(e){var n=ft(this),r=Z.call(this),o=U.call(this,"tabindex");T(t.prototype,"tabIndex").set.call(this,e);var l,i=Z.call(this),a=U.call(this,"tabindex"),u=r!==i;o&&(u||O(a))&&(-1===r&&Nn(this),0===r&&n&&On(this)),O(a)||o&&a&&O(u)||(-1===i&&(On(l=this),Y.call(l,"mousedown",En,!0),Y.call(l,"focusin",mn)),0===i&&n&&function(e){Nn(e),Y.call(e,"focusin",gn,!0)}(this))},enumerable:!0,configurable:!0}),n.prototype.blur=function(){if(ft(this)){var t=(n=this,w(r=S.call(document))?r:0!=(j.call(n,r)&L)?r:null);if(!w(t))return void t.blur()}var n,r;e.prototype.blur.call(this)},Object.defineProperty(n.prototype,"childNodes",{get:function(){var e=Pt(this);return rt(w(e)?[]:At(e,Ft(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"children",{get:function(){var e=Pt(this),t=w(e)?[]:At(e,Ft(this));return it(f.call(t,function(e){return e instanceof Element}))},enumerable:!0,configurable:!0}),n}(t)},e.PatchedElement=Ht,e.PatchedIframeElement=function(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ne(t,e),Object.defineProperty(t.prototype,"contentWindow",{get:function(){var e,t=le.call(this);return t?(e=t,{postMessage:function(){return e.postMessage.apply(e,arguments)},blur:function(){return e.blur.apply(e,arguments)},close:function(){return e.close.apply(e,arguments)},focus:function(){return e.focus.apply(e,arguments)},get closed(){return e.closed},get frames(){return e.frames},get length(){return e.length},get location(){return e.location},set location(t){e.location=t},get opener(){return e.opener},get parent(){return e.parent},get self(){return e.self},get top(){return e.top},get window(){return e.window}}):t},enumerable:!0,configurable:!0}),t}(Ht(e))},e.PatchedNode=Xt,e.PatchedSlotElement=function(e){var t=Ht(e),n=e.addEventListener;return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ne(t,e),t.prototype.addEventListener=function(e,t,r){"slotchange"!==e||Qe(this,Et)||(Je(this,Et,!0),gt||(gt=new mt(function(e){var t=[];v.call(e,function(e){var n=e.target;-1===d.call(t,n)&&(h.call(t,n),re.call(n,new CustomEvent("slotchange")))})})),yt.call(gt,this,wt)),n.call(this,e,t,r)},t.prototype.assignedElements=function(e){var t=!y(e)&&E(e.flatten)?Nt(this):Ot(this);return f.call(t,function(e){return e instanceof Element})},t.prototype.assignedNodes=function(e){return!y(e)&&E(e.flatten)?Nt(this):Ot(this)},Object.defineProperty(t.prototype,"name",{get:function(){var e=q.call(this,"name");return w(e)?"":e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){var e=Pt(this);return rt(w(e)?[]:At(e,Ft(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){var e=Pt(this),t=w(e)?[]:At(e,Ft(this));return it(f.call(t,function(e){return e instanceof Element}))},enumerable:!0,configurable:!0}),t}(t)},e.markElementAsPortal=function(e){y(xn)&&(xn=Wn()),Fn.call(xn,e,Hn)},e.patchEvent=Fe,e.setCSSToken=Gt,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).SyntheticShadow={})}(this,function(e){"use strict";var t=Object.create,n=Object.assign,r=Object.defineProperty,o=Object.getPrototypeOf,l=Object.setPrototypeOf,a=Object.getOwnPropertyDescriptor,i=Object.defineProperties,u=Object.hasOwnProperty,c=Array.prototype,f=c.filter,s=c.find,p=c.slice,d=c.splice,b=c.indexOf,h=c.push,v=c.map,g=c.forEach,m=c.reduce,y=c.reverse;function E(e){return void 0===e}function w(e){return null===e}function N(e){return!0===e}function O(e){return!1===e}function T(e){return"function"==typeof e}function S(e,t){do{var n=a(e,t);if(!E(n))return n;e=o(e)}while(null!==e)}var _=a(Document.prototype,"activeElement").get,L=u.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,M=Document.prototype,P=(M.createDocumentFragment,M.createElement,M.createElementNS,M.createTextNode,M.createComment,M.querySelector,M.querySelectorAll),C=M.getElementById,R=M.getElementsByClassName,D=M.getElementsByTagName,I=M.getElementsByTagNameNS,A=HTMLDocument.prototype.getElementsByName,j=Node.DOCUMENT_POSITION_CONTAINED_BY,x=(Node.DOCUMENT_POSITION_CONTAINS,Node.DOCUMENT_POSITION_PRECEDING),H=Node.DOCUMENT_POSITION_FOLLOWING,$=Node.DOCUMENT_FRAGMENT_NODE,B=Node.prototype,F=B.appendChild,k=B.cloneNode,W=B.compareDocumentPosition,U=(B.hasChildNodes,B.insertBefore),q=B.removeChild,K=B.replaceChild,G=a(Node.prototype,"parentNode").get,V=u.call(Node.prototype,"parentElement")?a(Node.prototype,"parentElement").get:a(HTMLElement.prototype,"parentElement").get,X=a(Node.prototype,"textContent").set,Y=u.call(Node.prototype,"childNodes")?a(Node.prototype,"childNodes").get:a(HTMLElement.prototype,"childNodes").get,z=a(Node.prototype,"nodeValue"),J=(z.set,z.get,u.call(Node.prototype,"isConnected")?a(Node.prototype,"isConnected").get:function(){return 0!=(W.call(document,this)&j)}),Q=Element.prototype,Z=Q.hasAttribute,ee=Q.getAttribute,te=(Q.getAttributeNS,Q.setAttribute),ne=(Q.setAttributeNS,Q.removeAttribute,Q.removeAttributeNS,Q.querySelector,Q.querySelectorAll),re=Q.getBoundingClientRect,oe=Q.getElementsByTagName,le=Q.getElementsByTagNameNS,ae=Element.prototype,ie=ae.addEventListener,ue=ae.removeEventListener;ie=ie.__lwcOriginal__||ie,ue=ue.__lwcOriginal__||ue;var ce=u.call(Element.prototype,"innerHTML")?a(Element.prototype,"innerHTML").set:a(HTMLElement.prototype,"innerHTML").set,fe=u.call(Element.prototype,"outerHTML")?a(Element.prototype,"outerHTML").set:a(HTMLElement.prototype,"outerHTML").set,se=a(Element.prototype,"tagName").get,pe=a(HTMLElement.prototype,"tabIndex").get,de=u.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,be=u.call(Element.prototype,"children")?a(Element.prototype,"children").get:a(HTMLElement.prototype,"children").get,he=HTMLElement.prototype.getElementsByClassName,ve=(void 0!==window.ShadowRoot&&a(window.ShadowRoot.prototype,"host").get,"EventTarget"in window?EventTarget.prototype.dispatchEvent:Node.prototype.dispatchEvent),ge=void 0!==window.ShadowRoot,me=a(HTMLIFrameElement.prototype,"contentWindow").get,ye=a(Event.prototype,"target").get,Ee=a(Event.prototype,"currentTarget").get,we=a(FocusEvent.prototype,"relatedTarget").get;function Ne(e,t){for(var n=[],r=e,o=e===window?window:hn.call(e);r;)n.push(r),r=r.assignedSlot?r.assignedSlot:r.nodeType===$&&r.host&&(t||r!==o)?r.host:r.parentNode;return n[n.length-1]===document&&n.push(window),n}function Oe(e,t){for(var n=Ne(e,!0),r=t,o=0,l=void 0,a=void 0,i=void 0,u=void 0;o<r.length;o++)if((i=(l=r[o])===window?window:hn.call(l))!==a&&(u=n.indexOf(i),a=i),!(i instanceof Mt)||u>-1)return l;return null}var Te=window.addEventListener,Se=window.removeEventListener;function _e(e){var t=null;try{if(!(t=e.$$lwcEventWrapper$$)){var n="function"==typeof e;t=e.$$lwcEventWrapper$$=function(t){return function(e){var t=ye.call(e);return!!(t instanceof Node&&0!=(W.call(document,t)&j)&&Sn(t))}(t)&&ke(t),n?e.call(this,t):e.handleEvent&&e.handleEvent(t)}}}catch(e){}return t}function Le(e,t,n){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){var o=_e(t);Te.call(this,e,o,n)}}function Me(e,t,n){var r=_e(t);Se.call(this,e,r||t,n)}function Pe(e,t,n){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){var o=_e(t);ie.call(this,e,o,n)}}function Ce(e,t,n){var r=_e(t);ue.call(this,e,r||t,n)}Te=Te.__lwcOriginal__||Te,Se=Se.__lwcOriginal__||Se,Pe.__lwcOriginal__=ie,Ce.__lwcOriginal__=ue,Le.__lwcOriginal__=Te,Me.__lwcOriginal__=Se,window.addEventListener=Le,window.removeEventListener=Me,Node.prototype.addEventListener=Pe,Node.prototype.removeEventListener=Ce;var Re,De=Node.prototype,Ie=De.addEventListener,Ae=De.removeEventListener;!function(e){e[e.CUSTOM_ELEMENT_LISTENER=1]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=2]="SHADOW_ROOT_LISTENER"}(Re||(Re={}));var je=new WeakMap;function xe(e,t){return!!(W.call(e,t)&j)}var He={composed:!1};function $e(e,t){var n=hn.call(e,t);return"mode"in n&&"delegatesFocus"in n&&(n=Tt(n)),n}function Be(){var e=Ee.call(this),t=Ne(ye.call(this),this.composed);return e instanceof Node?Oe(je.get(this)===Re.SHADOW_ROOT_LISTENER?St(e):e,t):Oe(document,t)}function Fe(){return Ne(ye.call(this),this.composed)}function ke(e){if(!je.has(e)){i(e,{target:{get:Be,enumerable:!0,configurable:!0},composedPath:{value:Fe,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Be,enumerable:!0,configurable:!0},path:{get:Fe,enumerable:!0,configurable:!0}});var t=S(e,"relatedTarget");E(t)||r(e,"relatedTarget",{get:function(){var e=je.get(this),n=Ee.call(this),r=t.get.call(this);return w(r)?null:Oe(e===Re.SHADOW_ROOT_LISTENER?St(n):n,Ne(r,!0))},enumerable:!0,configurable:!0}),je.set(e,0)}}var We=new WeakMap;function Ue(e){var n=We.get(e);return E(n)&&(n=t(null),We.set(e,n)),n}var qe=new WeakMap;function Ke(e,t){if(!T(t))throw new TypeError;var n=qe.get(t);return E(n)&&((n=function(n){var r=n.composed,o=ye.call(n),l=Ee.call(n);if(o!==l){var a=$e(o,{composed:r});(xe(a,l)||!1===r&&a===l)&&t.call(e,n)}}).placement=Re.SHADOW_ROOT_LISTENER,qe.set(t,n)),n}var Ge=new WeakMap;function Ve(e,t){if(!T(t))throw new TypeError;var n=Ge.get(t);return E(n)&&((n=function(n){(function(e){var t=ye.call(e),n=Ee.call(e);return!0===e.composed||t===n||xe($e(t,He),n)})(n)&&t.call(e,n)}).placement=Re.CUSTOM_ELEMENT_LISTENER,Ge.set(t,n)),n}function Xe(e){var t=!1,n=!1,o=e.type,l=e.stopImmediatePropagation,a=e.stopPropagation,i=Ue(Ee.call(e))[o];r(e,"stopImmediatePropagation",{value:function(){t=!0,l.call(e)},writable:!0,enumerable:!0,configurable:!0}),r(e,"stopPropagation",{value:function(){n=!0,a.call(e)},writable:!0,enumerable:!0,configurable:!0});var u=p.call(i);function c(n){g.call(u,function(r){O(t)&&r.placement===n&&-1!==b.call(i,r)&&r.call(void 0,e)})}je.set(e,Re.SHADOW_ROOT_LISTENER),c(Re.SHADOW_ROOT_LISTENER),O(t)&&O(n)&&(je.set(e,Re.CUSTOM_ELEMENT_LISTENER),c(Re.CUSTOM_ELEMENT_LISTENER)),je.set(e,0)}function Ye(e,t,n){var r=Ue(e),o=r[t];E(o)&&(o=r[t]=[]),0===o.length&&Ie.call(e,t,Xe),h.call(o,n)}function ze(e,t,n){var r,o;E(o=Ue(e)[t])||-1===(r=b.call(o,n))||(d.call(o,r,1),0===o.length&&Ae.call(e,t,Xe))}var Je,Qe="Symbol(x)"===Symbol("x").toString();function Ze(e){return Qe?Symbol(e):"$$lwc-"+e+"$$"}function et(e,t,n){r(e,t,{value:n})}function tt(e,t){return e[t]}function nt(e){switch(e.nodeType){case Node.ELEMENT_NODE:for(var t=Nn(e),n="",r=0,o=t.length;r<o;r+=1)n+=nt(t[r]);return n;default:return e.nodeValue}}var rt,ot=Ze("items");function lt(){throw new TypeError("Illegal constructor")}function at(e){var n=t(lt.prototype);return et(n,ot,e),g.call(e,function(e,t){r(n,t,{value:e,enumerable:!0,configurable:!0})}),n}lt.prototype=t(NodeList.prototype,((Je={constructor:{writable:!0,configurable:!0,value:lt},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return tt(this,ot).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){g.call(tt(this,ot),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(tt(this,ot),function(e,t){return[t,e]})}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(tt(this,ot),function(e,t){return t})}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return tt(this,ot)}}})[Symbol.iterator]={writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=tt(e,ot);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}},Je)),l(lt,NodeList);var it=Ze("items");function ut(){throw new TypeError("Illegal constructor")}function ct(e){var n=t(ut.prototype);return et(n,it,e),g.call(e,function(e,t){r(n,t,{value:e,enumerable:!0,configurable:!0})}),n}ut.prototype=t(HTMLCollection.prototype,((rt={constructor:{writable:!0,configurable:!0,value:ut},item:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return this[e]}},length:{enumerable:!0,configurable:!0,get:function(){return tt(this,it).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(function(e){return"length"!==e&&isNaN(e)}(e)&&this[e])return this[e];for(var t,n=tt(this,it),r=n.length-1;r>=0;r-=1){var o=n[r];if(((t=o).getAttribute("id")||t.getAttribute("name"))===e)return o}return null}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){g.call(tt(this,it),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(tt(this,it),function(e,t){return[t,e]})}},keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return v.call(tt(this,it),function(e,t){return t})}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return tt(this,it)}}})[Symbol.iterator]={writable:!0,configurable:!0,value:function(){var e=this,t=0;return{next:function(){var n=tt(e,it);return t<n.length?{value:n[t++],done:!1}:{done:!0}}}}},rt)),l(ut,HTMLCollection);var ft=/[&\u00A0"]/g,st=/[&\u00A0<>]/g,pt=String.prototype,dt=pt.replace,bt=pt.toLowerCase;function ht(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;";default:return""}}function vt(e){return dt.call(e,ft,ht)}var gt=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),mt=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function yt(e){switch(e.nodeType){case Node.ELEMENT_NODE:for(var t=e.attributes,n=se.call(e),r="<"+bt.call(n),o=0,l=void 0;l=t[o];o++)r+=" "+l.name+'="'+vt(l.value)+'"';return r+=">",gt.has(n)?r:r+function(e){for(var t="",n=Nn(e),r=0,o=n.length;r<o;r+=1)t+=yt(n[r]);return t}(e)+"</"+bt.call(n)+">";case Node.TEXT_NODE:var a=e,i=a.data,u=a.parentNode;return u instanceof Element&&mt.has(se.call(u))?i:function(e){return dt.call(e,st,ht)}(i);case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw new Error}}var Et=Ze("shadowRecord"),wt=document.createDocumentFragment;function Nt(e){var t=tt(e,Et);if(E(t))throw new TypeError;return t}function Ot(e){return Nt(e).delegatesFocus}function Tt(e){return Nt(e).host}function St(e){return Nt(e).shadowRoot}function _t(e){return!E(tt(e,Et))}var Lt={constructor:{writable:!0,configurable:!0,value:Mt},toString:{writable:!0,configurable:!0,value:function(){return"[object ShadowRoot]"}}};function Mt(){throw new TypeError("Illegal constructor")}n(Lt,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return U.call(Tt(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return q.call(Tt(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return F.call(Tt(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){return K.call(Tt(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){Ye(Tt(e),t,Ke(e,n))}(this,e,t)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){!function(e,t,n,r){ze(Tt(e),t,Ke(e,n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get:function(){return Tt(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get:function(){return at(yn(this))}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=Tt(this);return this===e?0:this.contains(e)?20:W.call(t,e)&j?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value:function(e){if(this===e)return!0;var t=Tt(this);return 0!=(W.call(t,e)&j)&&mn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get:function(){return In(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get:function(){var e=In(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value:function(){return In(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get:function(){return J.call(Tt(this))}},nextSibling:{enumerable:!0,configurable:!0,get:function(){return null}},previousSibling:{enumerable:!0,configurable:!0,get:function(){return null}},nodeName:{enumerable:!0,configurable:!0,get:function(){return"#document-fragment"}},nodeType:{enumerable:!0,configurable:!0,get:function(){return 11}},nodeValue:{enumerable:!0,configurable:!0,get:function(){return null}},ownerDocument:{enumerable:!0,configurable:!0,get:function(){return Tt(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:function(){return null}},parentNode:{enumerable:!0,configurable:!0,get:function(){return null}},textContent:{enumerable:!0,configurable:!0,get:function(){for(var e=In(this),t="",n=0,r=e.length;n<r;n+=1)t+=nt(e[n]);return t},set:function(e){var t=Tt(this);X.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value:function(e){var t=!E(e)&&!!e.composed;return O(t)?this:hn.call(Tt(this),{composed:t})}}},{childElementCount:{enumerable:!0,configurable:!0,get:function(){return this.children.length}},children:{enumerable:!0,configurable:!0,get:function(){return ct(f.call(yn(this),function(e){return e instanceof Element}))}},firstElementChild:{enumerable:!0,configurable:!0,get:function(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get:function(){var e=this.children;return e.item(e.length-1)||null}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return t=e,n=Tt(this),r=ne.call(n,t),wn(n,r);var t,n,r}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value:function(e){return at((t=e,n=Tt(this),r=ne.call(n,t),En(n,r)));var t,n,r}}},{innerHTML:{enumerable:!0,configurable:!0,get:function(){for(var e=In(this),t="",n=0,r=e.length;n<r;n+=1)t+=yt(e[n]);return t},set:function(e){var t=Tt(this);ce.call(t,e)}}},{activeElement:{enumerable:!0,configurable:!0,get:function(){var e=_.call(document);if(w(e))return e;var t=Tt(this);if(0==(W.call(t,e)&j))return null;for(var n=e;!mn(t,n);)n=V.call(n);return gn(n)?null:n}},delegatesFocus:{configurable:!0,get:function(){return Nt(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){var n=L.call(document,e,t);return w(n)?n:Oe(this,Ne(n,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value:function(e,t){throw new Error}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value:function(){throw new Error}},host:{enumerable:!0,configurable:!0,get:function(){return Tt(this)}},mode:{configurable:!0,get:function(){return Nt(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get:function(){throw new Error}}}),Mt.prototype=t(DocumentFragment.prototype,Lt),ge&&l(Mt.prototype,window.ShadowRoot.prototype);var Pt=function(e,t){return(Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function Ct(e,t){function n(){this.constructor=e}Pt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Rt=window.MutationObserver;if(void 0===Rt){function Dt(){}Dt.prototype={observe:function(){}},Rt=window.MutationObserver=Dt}var It=Rt,At=It.prototype.observe,jt='\n button:not([tabindex="-1"]):not([disabled]),\n [contenteditable]:not([tabindex="-1"]),\n video[controls]:not([tabindex="-1"]),\n audio[controls]:not([tabindex="-1"]),\n [href]:not([tabindex="-1"]),\n input:not([tabindex="-1"]):not([disabled]),\n select:not([tabindex="-1"]):not([disabled]),\n textarea:not([tabindex="-1"]):not([disabled]),\n [tabindex="0"]\n';function xt(e){var t=re.call(e),n=t.width,r=t.height;return(n>0||r>0)&&"hidden"!==getComputedStyle(e).visibility}function Ht(e){return de.call(e,jt)&&xt(e)}var $t={IFRAME:1,VIDEO:1,AUDIO:1,A:1,INPUT:1,SELECT:1,TEXTAREA:1,BUTTON:1};function Bt(e){var t=se.call(e);return xt(e)&&(function(e){if(O(Z.call(e,"tabindex")))return!1;var t=ee.call(e,"tabindex");return""!==t&&("0"===t||"-1"===t)}(e)||Z.call(e,"contenteditable")||u.call($t,t))}function Ft(e){for(var t=0,n=e.length;t<n;t+=1){var r=e[t];if(Ht(r))return r}return null}function kt(e){var t=P.call(document,jt),n=p.call(ne.call(e,jt)),r=n[0],o=n[n.length-1],l=b.call(t,e),a=l>-1?l:b.call(t,r),i=0===n.length?a+1:b.call(t,o)+1;return{prev:p.call(t,0,a),inner:n,next:p.call(t,i)}}function Wt(e,t){var n=W.call(e,t);return n&j?0:n&x?1:n&H?2:-1}function Ut(e){e.preventDefault(),e.stopPropagation()}function qt(e){Te.call(window,"focusin",Ut,!0),Te.call(window,"focusout",Ut,!0),e(),Se.call(window,"focusin",Ut,!0),Se.call(window,"focusout",Ut,!0)}function Kt(e,t){qt(function(){var n=function(e){return Ft(e.next)}(t);w(n)?e.blur():n.focus()})}function Gt(e,t){qt(function(){var n=function(e){var t=e.prev;return Ft(y.call(t))}(t);w(n)?e.blur():n.focus()})}function Vt(e,t){return function(e){for(var t=e.length-1;t>=0;t-=1){var n=e[t];if(Ht(n))return n}return null}(t.inner)===e}function Xt(e){var t=Ee.call(e),n=ye.call(e);if(t===n){var r=we.call(e);if(!w(r)){var o=kt(t);if(1===Wt(t,r)){var l=Ft(o.inner);w(l)?Kt(n,o):qt(function(){l.focus()})}else t===n&&Gt(t,o)}}}function Yt(e){var t=Ee.call(e),n=ye.call(e),r=we.call(e),o=kt(t),l=function(e,t){return Ft(t.inner)===e}(n,o),a=Vt(n,o);if(!(O(l)&&O(a)||w(r)))switch(Wt(t,r)){case 1:l&&Kt(n,o);break;case 2:a&&Gt(n,o)}}function zt(e){var t=Ee.call(e);ue.call(t,"focusin",Yt),setTimeout(function(){w(t)||-1!==pe.call(t)||ie.call(t,"focusin",Yt)},0)}function Jt(e){var t=Ee.call(e),n=we.call(e);(w(n)||0!==Wt(t,n))&&(ue.call(t,"focusin",zt,!0),ue.call(t,"focusout",Jt,!0))}function Qt(e){if(function(e){return e!==_.call(document)&&Bt(e)}(ye.call(e))){var t=Ee.call(e);ie.call(t,"focusin",zt,!0),ie.call(t,"focusout",Jt,!0)}}function Zt(e){ue.call(e,"focusin",Xt,!0)}function en(e){ue.call(e,"focusin",Yt),ue.call(e,"mousedown",Qt,!0)}var tn,nn=Node.prototype.getRootNode,rn=E(nn)?function(){for(var e,t=this;!w(e=G.call(t));)t=e;return t}:nn;function on(e){var t,n;return N(!E(e)&&!!e.composed)?rn.call(this,e):w(n=vn(t=this))?rn.call(t):St(n)}function ln(e){for(var t=V.call(e);!w(t)&&gn(t);)e=t,t=V.call(e);return e}function an(e,t){for(var n=Ln(e),r=t instanceof Element?t:V.call(t);!w(r)&&r!==e;){var o=_n(r),l=V.call(r);if(o===n)return gn(r);if(l===e)return!1;if(w(l)||_n(l)===o)r=l;else{if(!gn(l))return!1;if(!w(r=vn(ln(l)))){if(r===e)return!0;if(_n(r)===n)return!0}}}return!1}function un(e,t){var n=vn(e);if(w(n))return[];var r=ne.call(e,t);return Ln(e)?function(e,t){for(var n=[],r=0,o=t.length;r<o;r+=1){var l=t[r];!mn(e,l)&&an(e,l)&&h.call(n,l)}return n}(e,r):En(n,r)}function cn(e,t){var n=vn(e);if(w(n))return null;var r=ne.call(e,t);return Ln(e)?function(e,t){for(var n=0,r=t.length;n<r;n+=1){var o=t[n];if(!mn(e,o)&&an(e,o))return o}return null}(e,r):wn(n,r)}function fn(e){var t=Rn(e),n=e.addEventListener,r=e.removeEventListener,o=e.blur;return function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return Ct(a,e),a.prototype.querySelector=function(e){return cn(this,e)},a.prototype.querySelectorAll=function(e){return at(un(this,e))},Object.defineProperty(a.prototype,"innerHTML",{get:function(){for(var e=In(this),t="",n=0,r=e.length;n<r;n+=1)t+=yt(e[n]);return t},set:function(e){ce.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"outerHTML",{get:function(){return yt(this)},set:function(e){fe.call(this,e)},enumerable:!0,configurable:!0}),a.prototype.attachShadow=function(e){return function(e,t){if(!E(tt(e,Et)))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");var n=t.mode,r=t.delegatesFocus,o=wt.call(document),a={mode:n,delegatesFocus:!!r,host:e,shadowRoot:o};return et(o,Et,a),et(e,Et,a),l(o,Mt.prototype),o}(this,e)},a.prototype.addEventListener=function(e,t,r){_t(this)?function(e,t,n,r){Ye(e,t,Ve(e,n))}(this,e,t):n.call(this,e,t,r)},a.prototype.removeEventListener=function(e,t,n){_t(this)?function(e,t,n,r){ze(e,t,Ve(e,n))}(this,e,t):r.call(this,e,t,n)},Object.defineProperty(a.prototype,"shadowRoot",{get:function(){if(_t(this)){var e=St(this);if("open"===e.mode)return e}return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tabIndex",{get:function(){return _t(this)&&Ot(this)&&O(Z.call(this,"tabindex"))?0:S(t.prototype,"tabIndex").get.call(this)},set:function(e){if(_t(this)){var n=Ot(this),r=pe.call(this),o=Z.call(this,"tabindex");S(t.prototype,"tabIndex").set.call(this,e);var l=pe.call(this),a=Z.call(this,"tabindex"),i=r!==l;if(o&&(i||O(a))&&(-1===r&&en(this),0===r&&n&&Zt(this)),O(a))return;if(o&&a&&O(i))return;return-1===l&&(Zt(u=this),ie.call(u,"mousedown",Qt,!0),ie.call(u,"focusin",Yt)),void(0===l&&n&&function(e){en(e),ie.call(e,"focusin",Xt,!0)}(this))}var u;S(t.prototype,"tabIndex").set.call(this,e)},enumerable:!0,configurable:!0}),a.prototype.blur=function(){if(_t(this)&&Ot(this)){var e=(t=this,w(n=_.call(document))?n:0!=(W.call(t,n)&j)?n:null);if(!w(e))return void e.blur()}var t,n;return o.call(this)},Object.defineProperty(a.prototype,"childNodes",{get:function(){if(_t(this)){var e=vn(this);return at(w(e)?[]:En(e,Nn(this)))}return Y.call(this)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"children",{get:function(){if(_t(this)){var e=vn(this),t=w(e)?[]:En(e,Nn(this));return ct(f.call(t,function(e){return e instanceof Element}))}return be.call(this)},enumerable:!0,configurable:!0}),a}(t)}r(Node.prototype,"getRootNode",{value:on,enumerable:!0,configurable:!0,writable:!0});var sn={childList:!0},pn=Ze("slotchange");function dn(e){var t=vn(e);if(w(t))return[];var n=p.call(Y.call(e));return m.call(n,function(e,n){return mn(t,n)||h.call(e,n),e},[])}function bn(e){var t=p.call(Y.call(e));return m.call(t,function(e,t){return t instanceof Element&&gn(t)?h.apply(e,bn(t)):h.call(e,t),e},[])}var hn=Node.prototype.getRootNode;function vn(e){if(!(e instanceof Node))return null;var t=_n(e);if(E(t))return null;for(var n=e;!w(n)&&Ln(n)!==t;)n=G.call(n);return w(n)?null:n}function gn(e){return"SLOT"===se.call(e)}function mn(e,t){var n=_n(t);return E(n)||Ln(e)===n}function yn(e){var t=Tt(e);return En(t,Y.call(t))}function En(e,t){for(var n=[],r=0,o=t.length;r<o;r+=1){var l=t[r];mn(e,l)&&h.call(n,l)}return n}function wn(e,t){for(var n=0,r=t.length;n<r;n+=1)if(mn(e,t[n]))return t[n];return null}function Nn(e){var t;if(E(Ln(e)))t=Y.call(e);else{var n=ne.call(e,"slot");t=m.call(n,function(t,n){return mn(e,n)&&h.apply(t,dn(n)),t},[])}var r=vn(e);return w(r)?[]:m.call(t,function(e,t){return mn(r,t)&&h.call(e,t),e},[])}var On="$$OwnerKey$$",Tn="$$OwnKey$$";Symbol("x").toString();function Sn(e){return e[On]}function _n(e){for(var t,n=e;!w(n);){if(!E(t=n[On]))return t;n=G.call(n)}}function Ln(e){return e[Tn]}var Mn="$$ShadowTokenKey$$";function Pn(e,t){E(t)||(te.call(e,t,""),e[Mn]=t)}function Cn(e,t){var n=vn(e);if(t===n)return St(n);if(t instanceof Element){if(_n(e)===_n(t))return t;if(!w(n)&&gn(t)){var r=vn(t);if(!w(r)&&mn(n,r))return r}}return null}function Rn(e){var t=o(e).constructor,n=function(){function e(){throw new TypeError("Illegal constructor")}return e.prototype.hasChildNodes=function(){return In(this).length>0},Object.defineProperty(e.prototype,"firstChild",{get:function(){return In(this)[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){var e=In(this);return e[e.length-1]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{get:function(){return nt(this)},set:function(e){X.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.children.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.children[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){var e=this.children;return e.item(e.length-1)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"assignedSlot",{get:function(){var e=G.call(this);return w(e)||!gn(e)||_n(e)===_n(this)?null:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){var e=G.call(this);return w(e)?e:Cn(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){var e=G.call(this);if(w(e))return null;var t=Cn(this,e);return t instanceof Element?t:null},enumerable:!0,configurable:!0}),e.prototype.compareDocumentPosition=function(e){return hn.call(this)===e?10:Sn(this)!==Sn(e)?35:W.call(this,e)},e.prototype.contains=function(e){return Sn(this)===Sn(e)&&0!=(W.call(this,e)&j)},e.prototype.cloneNode=function(e){var t=k.call(this,!1);if(!e)return t;for(var n=In(this),r=0,o=n.length;r<o;r+=1)t.appendChild(n[r].cloneNode(!0));return t},e}();return l(n,t),l(n.prototype,t.prototype),n}var Dn,In=function(e){return e.childNodes};document.elementFromPoint=function(e,t){var n=L.call(document,e,t);return w(n)?n:Oe(document,Ne(n,!0))},r(document,"activeElement",{get:function(){var e=_.call(this);if(w(e))return e;for(;!E(Sn(e));)if(w(e=V.call(e)))return null;return"HTML"===e.tagName&&(e=document.body),e},enumerable:!0,configurable:!0}),r(Document.prototype,"getElementById",{value:function(){var e=C.apply(this,p.call(arguments));if(w(e))return null;var t=Sn(this);return Sn(e)===t?e:null},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"querySelector",{value:function(){var e=P.apply(this,p.call(arguments)),t=Sn(this),n=s.call(e,function(e){return Sn(e)===t});return E(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"querySelectorAll",{value:function(){var e=P.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByClassName",{value:function(){var e=R.apply(this,p.call(arguments)),t=Sn(this);return ct(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByTagName",{value:function(){var e=D.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(Document.prototype,"getElementsByTagNameNS",{value:function(){var e=I.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(a(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value:function(){var e=A.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),Dn=HTMLBodyElement.prototype,r(Dn,"querySelector",{value:function(){var e=ne.apply(this,p.call(arguments)),t=Sn(this),n=s.call(e,function(e){return Sn(e)===t});return E(n)?null:n},writable:!0,enumerable:!0,configurable:!0}),r(Dn,"querySelectorAll",{value:function(){var e=ne.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(Dn,"getElementsByClassName",{value:function(){var e=he.apply(this,p.call(arguments)),t=Sn(this);return ct(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(Dn,"getElementsByTagName",{value:function(){var e=oe.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),r(Dn,"getElementsByTagNameNS",{value:function(){var e=le.apply(this,p.call(arguments)),t=Sn(this);return at(f.call(e,function(e){return Sn(e)===t}))},writable:!0,enumerable:!0,configurable:!0}),void 0===window.ShadowRoot&&(window.ShadowRoot=Mt);var An=Object.getOwnPropertyDescriptor(Event.prototype,"composed");var jn,xn=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Hn(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:function(){return!0}})}(function(){if(!An)return!1;var e=new Event("click"),t=document.createElement("button");return t.addEventListener("click",function(t){return e=t}),t.click(),!An.get.call(e)})()&&(HTMLElement.prototype.click=function(){ie.call(this,"click",Hn);try{xn.value.call(this)}finally{ue.call(this,"click",Hn)}}),void 0===Object.getOwnPropertyDescriptor(Event.prototype,"composed")&&(jn=n(t(null),{blur:1,focus:1,focusin:1,focusout:1,click:1,dblclick:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,wheel:1,beforeinput:1,input:1,keydown:1,keyup:1,compositionstart:1,compositionupdate:1,compositionend:1,touchstart:1,touchend:1,touchmove:1,touchcancel:1,pointerover:1,pointerenter:1,pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerout:1,pointerleave:1,gotpointercapture:1,lostpointercapture:1,dragstart:1,drag:1,dragenter:1,dragleave:1,dragover:1,drop:1,dragend:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,keypress:1}),Object.defineProperties(Event.prototype,{composed:{get:function(){var e=this.type;return 1===jn[e]},configurable:!0,enumerable:!0}}));var $n,Bn=window.CustomEvent;function Fn(e,t){var n=new Bn(e,t);return Object.defineProperties(n,{composed:{get:function(){return!(!t||!t.composed)},configurable:!0,enumerable:!0}}),n}window.CustomEvent!==Fn&&(window.CustomEvent=Fn,window.CustomEvent.prototype=Bn.prototype),$n=Object.getOwnPropertyDescriptor(Event.prototype,"composed").get,Object.defineProperties(FocusEvent.prototype,{composed:{get:function(){var e=this.isTrusted,t=$n.call(this);return!(!e||!1!==t)||t},enumerable:!0,configurable:!0}});var kn=window.MutationObserver,Wn=kn.prototype,Un=Wn.disconnect,qn=Wn.observe,Kn=Wn.takeRecords,Gn="$$lwcObserverCallbackWrapper$$",Vn="$$lwcNodeObservers$$";function Xn(e){var n=e.addedNodes,r=e.removedNodes,o=e.target,l=e.type,a=t(MutationRecord.prototype);return i(a,{addedNodes:{get:function(){return n},enumerable:!0,configurable:!0},removedNodes:{get:function(){return r},enumerable:!0,configurable:!0},type:{get:function(){return l},enumerable:!0,configurable:!0},target:{get:function(){return o.shadowRoot},enumerable:!0,configurable:!0}}),a}function Yn(e,t){for(var n=t;!w(n);){var r=n[Vn];if(!E(r)&&(r[0]===e||-1!==b.call(r,e)))return!0;n=n.parentNode}return!1}function zn(e,t){return m.call(e,function(e,n){var r=n.target,o=n.addedNodes,l=n.removedNodes;if("childList"!==n.type||E(Ln(r)))Yn(t,r)&&h.call(e,n);else if(o.length>0){var a=o[0];Yn(t,a)&&(!r[Vn]||r[Vn][0]!==t&&-1===b.call(r[Vn],t)?h.call(e,Xn(n)):h.call(e,n))}else{var i=r.shadowRoot;a=l[0];_n(r)===_n(a)&&Yn(t,r)?h.call(e,n):i&&i[Vn]&&(i[Vn][0]===t||-1!==b.call(i[Vn],t))&&h.call(e,Xn(n))}return e},[])}function Jn(e){var t=function(e){var t=e[Gn];return E(t)&&(t=e[Gn]=function(t,n){var r=zn(t,n);0!==r.length&&e.call(n,r,n)}),t}(e);return new kn(t)}function Qn(){Un.call(this)}function Zn(e,t){return E(e[Vn])&&r(e,Vn,{value:[]}),h.call(e[Vn],this),e instanceof Mt&&(e=e.host),qn.call(this,e,t)}function er(){return zn(Kn.call(this),this)}window.MutationObserver=Jn,window.MutationObserver.prototype=kn.prototype,window.MutationObserver.prototype.disconnect=Qn,window.MutationObserver.prototype.observe=Zn,window.MutationObserver.prototype.takeRecords=er;var tr,nr=window.MutationObserver,rr=nr.prototype.observe,or={childList:!0,subtree:!0};function lr(e,t,n){if(Sn(e)!==t&&(function(e,t){e[On]=t}(e,t),e instanceof Element)){Pn(e,n);for(var r=In(e),o=0,l=r.length;o<l;o+=1){lr(r[o],t,n)}}}function ar(){return new nr(function(e){g.call(e,function(e){var t=e.target,n=e.addedNodes,r=Sn(t),o=function(e){return e[Mn]}(t);if(!E(r))for(var l=0,a=n.length;l<a;l+=1){lr(n[l],r,o)}})})}e.PatchedElement=fn,e.PatchedIframeElement=function(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ct(t,e),Object.defineProperty(t.prototype,"contentWindow",{get:function(){var e,t=me.call(this);return t?(e=t,{postMessage:function(){return e.postMessage.apply(e,arguments)},blur:function(){return e.blur.apply(e,arguments)},close:function(){return e.close.apply(e,arguments)},focus:function(){return e.focus.apply(e,arguments)},get closed(){return e.closed},get frames(){return e.frames},get length(){return e.length},get location(){return e.location},set location(t){e.location=t},get opener(){return e.opener},get parent(){return e.parent},get self(){return e.self},get top(){return e.top},get window(){return e.window}}):t},enumerable:!0,configurable:!0}),t}(fn(e))},e.PatchedNode=Rn,e.PatchedSlotElement=function(e){var t=fn(e),n=e.addEventListener;return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ct(t,e),t.prototype.addEventListener=function(e,t,r){"slotchange"!==e||tt(this,pn)||(et(this,pn,!0),tn||(tn=new It(function(e){var t=[];g.call(e,function(e){var n=e.target;-1===b.call(t,n)&&(h.call(t,n),ve.call(n,new CustomEvent("slotchange")))})})),At.call(tn,this,sn)),n.call(this,e,t,r)},t.prototype.assignedElements=function(e){var t=!E(e)&&N(e.flatten)?bn(this):dn(this);return f.call(t,function(e){return e instanceof Element})},t.prototype.assignedNodes=function(e){return!E(e)&&N(e.flatten)?bn(this):dn(this)},Object.defineProperty(t.prototype,"name",{get:function(){var e=ee.call(this,"name");return w(e)?"":e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){var e=vn(this);return at(w(e)?[]:En(e,Nn(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){var e=vn(this),t=w(e)?[]:En(e,Nn(this));return ct(f.call(t,function(e){return e instanceof Element}))},enumerable:!0,configurable:!0}),t}(t)},e.markElementAsPortal=function(e){E(tr)&&(tr=ar()),rr.call(tr,e,or)},e.patchEvent=ke,e.setCSSToken=Pn,Object.defineProperty(e,"__esModule",{value:!0})});
/// <reference types="jest" />
declare const getBoundingClientRect: jest.Mock<{}>;
export { addEventListener, removeEventListener, hasAttribute, getAttribute, getAttributeNS, setAttribute, setAttributeNS, removeAttribute, removeAttributeNS, querySelector, querySelectorAll, getElementsByTagName, getElementsByClassName, getElementsByTagNameNS, tagNameGetter, tabIndexGetter, innerHTMLSetter, matches, } from './../element';
export * from './../element';
export { getBoundingClientRect };
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });

@@ -16,21 +19,3 @@ /*

exports.getBoundingClientRect = getBoundingClientRect;
var element_1 = require("./../element"); // Pass through all the functions from element, we probably don't want those mocked
exports.addEventListener = element_1.addEventListener;
exports.removeEventListener = element_1.removeEventListener;
exports.hasAttribute = element_1.hasAttribute;
exports.getAttribute = element_1.getAttribute;
exports.getAttributeNS = element_1.getAttributeNS;
exports.setAttribute = element_1.setAttribute;
exports.setAttributeNS = element_1.setAttributeNS;
exports.removeAttribute = element_1.removeAttribute;
exports.removeAttributeNS = element_1.removeAttributeNS;
exports.querySelector = element_1.querySelector;
exports.querySelectorAll = element_1.querySelectorAll;
exports.getElementsByTagName = element_1.getElementsByTagName;
exports.getElementsByClassName = element_1.getElementsByClassName;
exports.getElementsByTagNameNS = element_1.getElementsByTagNameNS;
exports.tagNameGetter = element_1.tagNameGetter;
exports.tabIndexGetter = element_1.tabIndexGetter;
exports.innerHTMLSetter = element_1.innerHTMLSetter;
exports.matches = element_1.matches;
__export(require("./../element")); // Pass through all the functions from element, we probably don't want those mocked
//# sourceMappingURL=element.js.map

@@ -82,3 +82,3 @@ declare const DocumentPrototypeActiveElement: (this: Document) => Element | null;

<E extends Element = Element>(selectors: string): NodeListOf<E>;
}, getElementById: (elementId: string) => HTMLElement | null, getElementsByClassName: (classNames: string) => HTMLCollectionOf<Element>, getElementsByName: (elementName: string) => NodeListOf<HTMLElement>, getElementsByTagName: {
}, getElementById: (elementId: string) => HTMLElement | null, getElementsByClassName: (classNames: string) => HTMLCollectionOf<Element>, getElementsByTagName: {
<K extends "object" | "link" | "small" | "sub" | "sup" | "track" | "progress" | "a" | "abbr" | "address" | "applet" | "area" | "article" | "aside" | "audio" | "b" | "base" | "basefont" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dir" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "font" | "footer" | "form" | "frame" | "frameset" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "map" | "mark" | "marquee" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "q" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "slot" | "source" | "span" | "strong" | "style" | "table" | "tbody" | "td" | "template" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "u" | "ul" | "var" | "video" | "wbr">(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;

@@ -92,2 +92,3 @@ <K extends "symbol" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "path" | "metadata" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "svg" | "stop" | "switch" | "tspan" | "text" | "textPath" | "use" | "view">(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;

};
declare const getElementsByName: (elementName: string) => NodeListOf<HTMLElement>;
export { elementFromPoint, createDocumentFragment, createElement, createElementNS, createTextNode, createComment, DocumentPrototypeActiveElement, querySelector, querySelectorAll, getElementById, getElementsByClassName, getElementsByName, getElementsByTagName, getElementsByTagNameNS, };

@@ -16,3 +16,3 @@ "use strict";

exports.elementFromPoint = elementFromPoint;
const { createDocumentFragment, createElement, createElementNS, createTextNode, createComment, querySelector, querySelectorAll, getElementById, getElementsByClassName, getElementsByName, getElementsByTagName, getElementsByTagNameNS, } = Document.prototype;
const { createDocumentFragment, createElement, createElementNS, createTextNode, createComment, querySelector, querySelectorAll, getElementById, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, } = Document.prototype;
exports.createDocumentFragment = createDocumentFragment;

@@ -27,5 +27,8 @@ exports.createElement = createElement;

exports.getElementsByClassName = getElementsByClassName;
exports.getElementsByName = getElementsByName;
exports.getElementsByTagName = getElementsByTagName;
exports.getElementsByTagNameNS = getElementsByTagNameNS;
// In Firefox v57 and lower, getElementsByName is defined on HTMLDocument.prototype
// In all other browsers have the method on Document.prototype
const { getElementsByName } = HTMLDocument.prototype;
exports.getElementsByName = getElementsByName;
//# sourceMappingURL=document.js.map
declare const ShadowRootHostGetter: (this: ShadowRoot) => Element | null;
declare const ShadowRootInnerHTMLSetter: (this: ShadowRoot, s: string) => void;
declare const dispatchEvent: (event: Event) => boolean;

@@ -9,2 +8,2 @@ declare const isNativeShadowRootAvailable: boolean;

declare const focusEventRelatedTargetGetter: (this: FocusEvent) => EventTarget | null;
export { dispatchEvent, ShadowRootHostGetter, ShadowRootInnerHTMLSetter, isNativeShadowRootAvailable, iFrameContentWindowGetter, eventTargetGetter, eventCurrentTargetGetter, focusEventRelatedTargetGetter, };
export { dispatchEvent, ShadowRootHostGetter, isNativeShadowRootAvailable, iFrameContentWindowGetter, eventTargetGetter, eventCurrentTargetGetter, focusEventRelatedTargetGetter, };

@@ -16,8 +16,2 @@ "use strict";

exports.ShadowRootHostGetter = ShadowRootHostGetter;
const ShadowRootInnerHTMLSetter = typeof window.ShadowRoot !== 'undefined'
? language_1.getOwnPropertyDescriptor(window.ShadowRoot.prototype, 'innerHTML').set
: () => {
throw new Error('Internal Error: Missing ShadowRoot');
};
exports.ShadowRootInnerHTMLSetter = ShadowRootInnerHTMLSetter;
const dispatchEvent = 'EventTarget' in window ? EventTarget.prototype.dispatchEvent : Node.prototype.dispatchEvent; // IE11

@@ -24,0 +18,0 @@ exports.dispatchEvent = dispatchEvent;

@@ -13,3 +13,3 @@ declare const hasAttribute: (qualifiedName: string) => boolean, getAttribute: (qualifiedName: string) => string | null, getAttributeNS: (namespace: string | null, localName: string) => string | null, setAttribute: (qualifiedName: string, value: string) => void, setAttributeNS: (namespace: string | null, qualifiedName: string, value: string) => void, removeAttribute: (qualifiedName: string) => void, removeAttributeNS: (namespace: string | null, localName: string) => void, querySelector: {

(qualifiedName: string): HTMLCollectionOf<Element>;
}, getElementsByClassName: (classNames: string) => HTMLCollectionOf<Element>, getElementsByTagNameNS: {
}, getElementsByTagNameNS: {
(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;

@@ -27,2 +27,3 @@ (namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;

declare const innerHTMLSetter: (this: Element, s: string) => void;
declare const outerHTMLSetter: (this: Element, s: string) => void;
declare const tagNameGetter: (this: Element) => string;

@@ -32,2 +33,3 @@ declare const tabIndexGetter: (this: HTMLElement) => number;

declare const childrenGetter: (this: HTMLElement) => HTMLCollectionOf<Element>;
export { addEventListener, removeEventListener, hasAttribute, getAttribute, getAttributeNS, setAttribute, setAttributeNS, removeAttribute, removeAttributeNS, querySelector, querySelectorAll, getBoundingClientRect, getElementsByTagName, getElementsByClassName, getElementsByTagNameNS, tagNameGetter, tabIndexGetter, innerHTMLSetter, matches, childrenGetter, };
declare const getElementsByClassName: (classNames: string) => HTMLCollectionOf<Element>;
export { addEventListener, removeEventListener, hasAttribute, getAttribute, getAttributeNS, setAttribute, setAttributeNS, removeAttribute, removeAttributeNS, querySelector, querySelectorAll, getBoundingClientRect, getElementsByTagName, getElementsByClassName, getElementsByTagNameNS, tagNameGetter, tabIndexGetter, innerHTMLSetter, outerHTMLSetter, matches, childrenGetter, };

@@ -10,3 +10,3 @@ "use strict";

const language_1 = require("../shared/language");
const { hasAttribute, getAttribute, getAttributeNS, setAttribute, setAttributeNS, removeAttribute, removeAttributeNS, querySelector, querySelectorAll, getBoundingClientRect, getElementsByTagName, getElementsByClassName, getElementsByTagNameNS, } = Element.prototype;
const { hasAttribute, getAttribute, getAttributeNS, setAttribute, setAttributeNS, removeAttribute, removeAttributeNS, querySelector, querySelectorAll, getBoundingClientRect, getElementsByTagName, getElementsByTagNameNS, } = Element.prototype;
exports.hasAttribute = hasAttribute;

@@ -23,3 +23,2 @@ exports.getAttribute = getAttribute;

exports.getElementsByTagName = getElementsByTagName;
exports.getElementsByClassName = getElementsByClassName;
exports.getElementsByTagNameNS = getElementsByTagNameNS;

@@ -41,2 +40,6 @@ let { addEventListener, removeEventListener } = Element.prototype;

exports.innerHTMLSetter = innerHTMLSetter;
const outerHTMLSetter = language_1.hasOwnProperty.call(Element.prototype, 'outerHTML')
? language_1.getOwnPropertyDescriptor(Element.prototype, 'outerHTML').set
: language_1.getOwnPropertyDescriptor(HTMLElement.prototype, 'outerHTML').set; // IE11
exports.outerHTMLSetter = outerHTMLSetter;
const tagNameGetter = language_1.getOwnPropertyDescriptor(Element.prototype, 'tagName').get;

@@ -54,2 +57,6 @@ exports.tagNameGetter = tagNameGetter;

exports.childrenGetter = childrenGetter;
// for IE11, access from HTMLElement
// for all other browsers access the method from the parent Element interface
const { getElementsByClassName } = HTMLElement.prototype;
exports.getElementsByClassName = getElementsByClassName;
//# sourceMappingURL=element.js.map

@@ -6,3 +6,3 @@ declare const DOCUMENT_POSITION_CONTAINED_BY: number, DOCUMENT_POSITION_CONTAINS: number, DOCUMENT_POSITION_PRECEDING: number, DOCUMENT_POSITION_FOLLOWING: number, DOCUMENT_FRAGMENT_NODE: number;

declare const textContextSetter: (this: Node, s: string) => void;
declare const childNodesGetter: (this: Node) => NodeList;
declare const childNodesGetter: (this: Node) => NodeListOf<Node & Element>;
declare const nodeValueSetter: (this: Node, value: string) => void;

@@ -9,0 +9,0 @@ declare const nodeValueGetter: (this: Node) => string;

export { patchEvent } from './events';
export { PatchedSlotElement } from './slot';
export { PatchedCustomElement } from './custom-element';
export { PatchedElement } from './element';
export { setCSSToken, PatchedNode } from './node';
export { markElementAsPortal } from './portal';
export { PatchedElement, PatchedIframeElement } from './traverse';
export { PatchedIframeElement } from './iframe';

@@ -13,4 +13,4 @@ "use strict";

exports.PatchedSlotElement = slot_1.PatchedSlotElement;
var custom_element_1 = require("./custom-element");
exports.PatchedCustomElement = custom_element_1.PatchedCustomElement;
var element_1 = require("./element");
exports.PatchedElement = element_1.PatchedElement;
var node_1 = require("./node");

@@ -21,5 +21,4 @@ exports.setCSSToken = node_1.setCSSToken;

exports.markElementAsPortal = portal_1.markElementAsPortal;
var traverse_1 = require("./traverse");
exports.PatchedElement = traverse_1.PatchedElement;
exports.PatchedIframeElement = traverse_1.PatchedIframeElement;
var iframe_1 = require("./iframe");
exports.PatchedIframeElement = iframe_1.PatchedIframeElement;
//# sourceMappingURL=faux.js.map

@@ -5,2 +5,8 @@ export interface HTMLIFrameElementConstructor {

}
/**
* This is needed for compat mode to function because we don't use a real WeakMap,
* instead compat will attempt to extract the proxy internal slot out of a cross
* domain iframe, just to see if it is a proxy or not, and that will throw. To prevent
* that from throwing, we just protect it by wrapping all iframes.
*/
export declare function wrapIframeWindow(win: Window): {

@@ -21,1 +27,2 @@ postMessage(): any;

};
export declare function PatchedIframeElement(elm: HTMLIFrameElement): HTMLIFrameElementConstructor;
"use strict";
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
Object.defineProperty(exports, "__esModule", { value: true });
const element_1 = require("./element");
const dom_1 = require("../env/dom");
/**
* This is needed for compat mode to function because we don't use a real WeakMap,
* instead compat will attempt to extract the proxy internal slot out of a cross
* domain iframe, just to see if it is a proxy or not, and that will throw. To prevent
* that from throwing, we just protect it by wrapping all iframes.
*/
Object.defineProperty(exports, "__esModule", { value: true });
function wrapIframeWindow(win) {

@@ -64,2 +66,16 @@ return {

exports.wrapIframeWindow = wrapIframeWindow;
function PatchedIframeElement(elm) {
const Ctor = element_1.PatchedElement(elm);
return class PatchedHTMLIframeElement extends Ctor {
get contentWindow() {
const original = dom_1.iFrameContentWindowGetter.call(this);
if (original) {
const wrapped = wrapIframeWindow(original);
return wrapped;
}
return original;
}
};
}
exports.PatchedIframeElement = PatchedIframeElement;
//# sourceMappingURL=iframe.js.map

@@ -1,2 +0,2 @@

export interface NodeConstructor {
interface NodeConstructor {
prototype: Node;

@@ -21,1 +21,2 @@ new (): Node;

export declare const getInternalChildNodes: (node: Node) => NodeListOf<ChildNode>;
export {};
export declare function isDelegatingFocus(host: HTMLElement): boolean;
export declare function getHost(root: SyntheticShadowRootInterface): HTMLElement;
export declare function getShadowRoot(elm: HTMLElement): SyntheticShadowRootInterface;
export declare function hasSyntheticShadow(elm: HTMLElement): boolean;
export declare function attachShadow(elm: HTMLElement, options: ShadowRootInit): SyntheticShadowRootInterface;

@@ -5,0 +6,0 @@ export interface SyntheticShadowRootInterface extends ShadowRoot {

@@ -45,2 +45,6 @@ "use strict";

exports.getShadowRoot = getShadowRoot;
function hasSyntheticShadow(elm) {
return !language_1.isUndefined(fields_1.getInternalField(elm, InternalSlot));
}
exports.hasSyntheticShadow = hasSyntheticShadow;
function attachShadow(elm, options) {

@@ -166,2 +170,38 @@ if (!language_1.isUndefined(fields_1.getInternalField(elm, InternalSlot))) {

const NodePatchDescriptors = {
insertBefore: {
writable: true,
enumerable: true,
configurable: true,
value(newChild, refChild) {
node_1.insertBefore.call(getHost(this), newChild, refChild);
return newChild;
},
},
removeChild: {
writable: true,
enumerable: true,
configurable: true,
value(oldChild) {
node_1.removeChild.call(getHost(this), oldChild);
return oldChild;
},
},
appendChild: {
writable: true,
enumerable: true,
configurable: true,
value(newChild) {
node_1.appendChild.call(getHost(this), newChild);
return newChild;
},
},
replaceChild: {
writable: true,
enumerable: true,
configurable: true,
value(newChild, oldChild) {
node_1.replaceChild.call(getHost(this), newChild, oldChild);
return oldChild;
},
},
addEventListener: {

@@ -168,0 +208,0 @@ writable: true,

@@ -1,2 +0,2 @@

export interface HTMLSlotElementConstructor {
interface HTMLSlotElementConstructor {
prototype: HTMLSlotElement;

@@ -7,1 +7,2 @@ new (): HTMLSlotElement;

export declare function PatchedSlotElement(elm: HTMLSlotElement): HTMLSlotElementConstructor;
export {};

@@ -22,2 +22,3 @@ "use strict";

const static_html_collection_1 = require("../shared/static-html-collection");
const element_2 = require("./element");
// We can use a single observer without having to worry about leaking because

@@ -78,3 +79,3 @@ // "Registered observers in a node’s registered observer list have a weak

function PatchedSlotElement(elm) {
const Ctor = traverse_1.PatchedElement(elm);
const Ctor = element_2.PatchedElement(elm);
const { addEventListener: superAddEventListener } = elm;

@@ -81,0 +82,0 @@ return class PatchedHTMLSlotElement extends Ctor {

@@ -1,5 +0,3 @@

import { HTMLIFrameElementConstructor } from './iframe';
import { SyntheticShadowRootInterface } from './shadow-root';
import '../polyfills/node-get-root-node/main';
import { HTMLElementConstructor } from './custom-element';
export declare const patchedGetRootNode: (options?: GetRootNodeOptions | undefined) => Node;

@@ -11,6 +9,5 @@ export declare function getNodeOwner(node: Node): HTMLElement | null;

export declare function getAllMatches(owner: HTMLElement, nodeList: NodeList | Node[]): Array<Element & Node>;
export declare function getFirstMatch(owner: HTMLElement, nodeList: NodeList): Element | null;
export declare function shadowRootQuerySelector(root: SyntheticShadowRootInterface, selector: string): Element | null;
export declare function shadowRootQuerySelectorAll(root: SyntheticShadowRootInterface, selector: string): Element[];
export declare function getFilteredChildNodes(node: Node): Element[];
export declare function PatchedElement(elm: HTMLElement): HTMLElementConstructor;
export declare function PatchedIframeElement(elm: HTMLIFrameElement): HTMLIFrameElementConstructor;

@@ -16,9 +16,5 @@ "use strict";

const element_1 = require("../env/element");
const iframe_1 = require("./iframe");
const language_1 = require("../shared/language");
const language_2 = require("../shared/language");
const outer_html_1 = require("../3rdparty/polymer/outer-html");
const shadow_root_1 = require("./shadow-root");
const static_node_list_1 = require("../shared/static-node-list");
const dom_1 = require("../env/dom");
const slot_1 = require("./slot");

@@ -62,76 +58,2 @@ require("../polyfills/node-get-root-node/main");

exports.isNodeOwnedBy = isNodeOwnedBy;
// when finding a slot in the DOM, we can fold it if it is contained
// inside another slot.
function foldSlotElement(slot) {
let parent = node_2.parentElementGetter.call(slot);
while (!language_2.isNull(parent) && isSlotElement(parent)) {
slot = parent;
parent = node_2.parentElementGetter.call(slot);
}
return slot;
}
function isNodeSlotted(host, node) {
if (process.env.NODE_ENV !== 'production') {
assert_1.default.invariant(host instanceof HTMLElement, `isNodeSlotted() should be called with a host as the first argument instead of ${host}`);
assert_1.default.invariant(node instanceof Node, `isNodeSlotted() should be called with a node as the second argument instead of ${node}`);
assert_1.default.isTrue(node_2.compareDocumentPosition.call(node, host) & node_2.DOCUMENT_POSITION_CONTAINS, `isNodeSlotted() should never be called with a node that is not a child node of ${host}`);
}
const hostKey = node_1.getNodeKey(host);
// this routine assumes that the node is coming from a different shadow (it is not owned by the host)
// just in case the provided node is not an element
let currentElement = node instanceof Element ? node : node_2.parentElementGetter.call(node);
while (!language_2.isNull(currentElement) && currentElement !== host) {
const elmOwnerKey = node_1.getNodeNearestOwnerKey(currentElement);
const parent = node_2.parentElementGetter.call(currentElement);
if (elmOwnerKey === hostKey) {
// we have reached an element inside the host's template, and only if
// that element is an slot, then the node is considered slotted
// TODO: add the examples
return isSlotElement(currentElement);
}
else if (parent === host) {
return false;
}
else if (!language_2.isNull(parent) && node_1.getNodeNearestOwnerKey(parent) !== elmOwnerKey) {
// we are crossing a boundary of some sort since the elm and its parent
// have different owner key. for slotted elements, this is possible
// if the parent happens to be a slot.
if (isSlotElement(parent)) {
/**
* the slot parent might be allocated inside another slot, think of:
* <x-root> (<--- root element)
* <x-parent> (<--- own by x-root)
* <x-child> (<--- own by x-root)
* <slot> (<--- own by x-child)
* <slot> (<--- own by x-parent)
* <div> (<--- own by x-root)
*
* while checking if x-parent has the div slotted, we need to traverse
* up, but when finding the first slot, we skip that one in favor of the
* most outer slot parent before jumping into its corresponding host.
*/
currentElement = getNodeOwner(foldSlotElement(parent));
if (!language_2.isNull(currentElement)) {
if (currentElement === host) {
// the slot element is a top level element inside the shadow
// of a host that was allocated into host in question
return true;
}
else if (node_1.getNodeNearestOwnerKey(currentElement) === hostKey) {
// the slot element is an element inside the shadow
// of a host that was allocated into host in question
return true;
}
}
}
else {
return false;
}
}
else {
currentElement = parent;
}
}
return false;
}
function shadowRootChildNodes(root) {

@@ -164,52 +86,3 @@ const elm = shadow_root_1.getHost(root);

}
function getAllSlottedMatches(host, nodeList) {
const filteredAndPatched = [];
for (let i = 0, len = nodeList.length; i < len; i += 1) {
const node = nodeList[i];
if (!isNodeOwnedBy(host, node) && isNodeSlotted(host, node)) {
language_1.ArrayPush.call(filteredAndPatched, node);
}
}
return filteredAndPatched;
}
function getFirstSlottedMatch(host, nodeList) {
for (let i = 0, len = nodeList.length; i < len; i += 1) {
const node = nodeList[i];
if (!isNodeOwnedBy(host, node) && isNodeSlotted(host, node)) {
return node;
}
}
return null;
}
function lightDomQuerySelectorAll(elm, selectors) {
const owner = getNodeOwner(elm);
if (language_2.isNull(owner)) {
return [];
}
const nodeList = element_1.querySelectorAll.call(elm, selectors);
if (node_1.getNodeKey(elm)) {
// it is a custom element, and we should then filter by slotted elements
return getAllSlottedMatches(elm, nodeList);
}
else {
// regular element, we should then filter by ownership
return getAllMatches(owner, nodeList);
}
}
function lightDomQuerySelector(elm, selector) {
const owner = getNodeOwner(elm);
if (language_2.isNull(owner)) {
// the it is a root, and those can't have a lightdom
return null;
}
const nodeList = element_1.querySelectorAll.call(elm, selector);
if (node_1.getNodeKey(elm)) {
// it is a custom element, and we should then filter by slotted elements
return getFirstSlottedMatch(elm, nodeList);
}
else {
// regular element, we should then filter by ownership
return getFirstMatch(owner, nodeList);
}
}
exports.getFirstMatch = getFirstMatch;
function shadowRootQuerySelector(root, selector) {

@@ -260,48 +133,2 @@ const elm = shadow_root_1.getHost(root);

exports.getFilteredChildNodes = getFilteredChildNodes;
function PatchedElement(elm) {
const Ctor = node_1.PatchedNode(elm);
// Note: Element.getElementsByTagName and Element.getElementsByClassName are purposefully
// omitted from the list of patched methods. In order for the querySelector* APIs to run
// properly in jsdom, we need to make sure those methods doesn't respect the shadow DOM
// semantic.
// https://github.com/salesforce/lwc/pull/1179#issuecomment-484041707
return class PatchedHTMLElement extends Ctor {
querySelector(selector) {
return lightDomQuerySelector(this, selector);
}
querySelectorAll(selectors) {
return static_node_list_1.createStaticNodeList(lightDomQuerySelectorAll(this, selectors));
}
get innerHTML() {
const childNodes = node_1.getInternalChildNodes(this);
let innerHTML = '';
for (let i = 0, len = childNodes.length; i < len; i += 1) {
innerHTML += outer_html_1.getOuterHTML(childNodes[i]);
}
return innerHTML;
}
set innerHTML(value) {
element_1.innerHTMLSetter.call(this, value);
}
get outerHTML() {
return outer_html_1.getOuterHTML(this);
}
};
}
exports.PatchedElement = PatchedElement;
function PatchedIframeElement(elm) {
const Ctor = PatchedElement(elm);
// @ts-ignore type-mismatch
return class PatchedHTMLIframeElement extends Ctor {
get contentWindow() {
const original = dom_1.iFrameContentWindowGetter.call(this);
if (original) {
const wrapped = iframe_1.wrapIframeWindow(original);
return wrapped;
}
return original;
}
};
}
exports.PatchedIframeElement = PatchedIframeElement;
//# sourceMappingURL=traverse.js.map
import './polyfills/document-shadow/main';
import './polyfills/document-body-shadow/main';
import './polyfills/shadow-root/main';

@@ -3,0 +4,0 @@ import './polyfills/click-event-composed/main';

@@ -14,2 +14,3 @@ "use strict";

require("./polyfills/document-shadow/main");
require("./polyfills/document-body-shadow/main");
require("./polyfills/shadow-root/main");

@@ -16,0 +17,0 @@ require("./polyfills/click-event-composed/main"); // must come before event-composed

@@ -15,2 +15,4 @@ "use strict";

const path_composer_1 = require("../../3rdparty/polymer/path-composer");
const static_node_list_1 = require("../../shared/static-node-list");
const static_html_collection_1 = require("../../shared/static-html-collection");
function apply() {

@@ -48,4 +50,98 @@ function elemFromPoint(left, top) {

});
// The following patched methods hide shadowed elements from global
// traversing mechanisms. They are simplified for performance reasons to
// filter by ownership and do not account for slotted elements. This
// compromise is fine for our synthetic shadow dom because root elements
// cannot have slotted elements.
// Another compromise here is that all these traversing methods will return
// static HTMLCollection or static NodeList. We decided that this compromise
// is not a big problem considering the amount of code that is relying on
// the liveliness of these results are rare.
language_1.defineProperty(Document.prototype, 'getElementById', {
value() {
const elm = document_1.getElementById.apply(this, language_1.ArraySlice.call(arguments));
if (language_1.isNull(elm)) {
return null;
}
const ownerKey = node_1.getNodeOwnerKey(this);
return node_1.getNodeOwnerKey(elm) === ownerKey ? elm : null;
},
writable: true,
enumerable: true,
configurable: true,
});
language_1.defineProperty(Document.prototype, 'querySelector', {
value() {
const elements = document_1.querySelectorAll.apply(this, language_1.ArraySlice.call(arguments));
const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFind.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
return !language_1.isUndefined(filtered) ? filtered : null;
},
writable: true,
enumerable: true,
configurable: true,
});
language_1.defineProperty(Document.prototype, 'querySelectorAll', {
value() {
const elements = document_1.querySelectorAll.apply(this, language_1.ArraySlice.call(arguments));
const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
return static_node_list_1.createStaticNodeList(filtered);
},
writable: true,
enumerable: true,
configurable: true,
});
language_1.defineProperty(Document.prototype, 'getElementsByClassName', {
value() {
const elements = document_1.getElementsByClassName.apply(this, language_1.ArraySlice.call(arguments));
const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
return static_html_collection_1.createStaticHTMLCollection(filtered);
},
writable: true,
enumerable: true,
configurable: true,
});
language_1.defineProperty(Document.prototype, 'getElementsByTagName', {
value() {
const elements = document_1.getElementsByTagName.apply(this, language_1.ArraySlice.call(arguments));
const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
// NodeList because of https://bugzilla.mozilla.org/show_bug.cgi?id=14869
return static_node_list_1.createStaticNodeList(filtered);
},
writable: true,
enumerable: true,
configurable: true,
});
language_1.defineProperty(Document.prototype, 'getElementsByTagNameNS', {
value() {
const elements = document_1.getElementsByTagNameNS.apply(this, language_1.ArraySlice.call(arguments));
const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
// NodeList because of https://bugzilla.mozilla.org/show_bug.cgi?id=14869
return static_node_list_1.createStaticNodeList(filtered);
},
writable: true,
enumerable: true,
configurable: true,
});
language_1.defineProperty(
// In Firefox v57 and lower, getElementsByName is defined on HTMLDocument.prototype
language_1.getOwnPropertyDescriptor(HTMLDocument.prototype, 'getElementsByName')
? HTMLDocument.prototype
: Document.prototype, 'getElementsByName', {
value() {
const elements = document_1.getElementsByName.apply(this, language_1.ArraySlice.call(arguments));
const ownerKey = node_1.getNodeOwnerKey(this);
const filtered = language_1.ArrayFilter.call(elements, elm => node_1.getNodeOwnerKey(elm) === ownerKey);
return static_node_list_1.createStaticNodeList(filtered);
},
writable: true,
enumerable: true,
configurable: true,
});
}
exports.default = apply;
//# sourceMappingURL=polyfill.js.map

@@ -15,4 +15,4 @@ "use strict";

// Internal fields to maintain relationships
const observedTargetsField = '$$lwcObservedTargets$$';
const wrapperLookupField = '$$lwcObserverCallbackWrapper$$';
const observerLookupField = '$$lwcNodeObservers$$';
/**

@@ -58,9 +58,26 @@ * Retarget the mutation record's target value to its shadowRoot

/**
* This function first gathers the OwnerKey of all the targets observed by the MutationObserver instance.
* Next, process each MutationRecord to determine if the mutation occured in the same shadow tree as
* one of the targets being observed.
* Utility to identify if a target node is being observed by the given observer
* Start at the current node, if the observer is registered to observe the current node, the mutation qualifies
* @param {MutationObserver} observer
* @param {Node} target
*/
function isQualifiedObserver(observer, target) {
let parentNode = target;
while (!language_1.isNull(parentNode)) {
const parentNodeObservers = parentNode[observerLookupField];
if (!language_1.isUndefined(parentNodeObservers) &&
(parentNodeObservers[0] === observer || // perf optimization to check for the first item is a match
language_1.ArrayIndexOf.call(parentNodeObservers, observer) !== -1)) {
return true;
}
parentNode = parentNode.parentNode;
}
return false;
}
/**
* This function provides a shadow dom compliant filtered view of mutation records for a given observer.
*
* The key filtering logic is to match the observed target node's ownerKey/ownKey with the ownerKey of the nodes in the
* MutationRecord.
* The ownerKey of the rootnode will be undefined. Similarly ownerkey of nodes outside the shadow will be undefined.
* The key logic here is to determine if a given observer has been registered to observe any nodes
* between the target node of a mutation record to the target's root node.
* This function also retargets records when mutations occur directly under the shadow root
* @param {MutationRecords[]} mutations

@@ -70,28 +87,42 @@ * @param {MutationObserver} observer

function filterMutationRecords(mutations, observer) {
const observedTargets = observer[observedTargetsField];
const observedTargetOwnerKeys = [];
language_1.forEach.call(observedTargets, (node) => {
// If the observed target is a shadowRoot, the ownerkey of the shadow tree will be fetched using the host
const observedTargetOwnerKey = node instanceof window.ShadowRoot
? node_1.getNodeKey(node.host)
: node_1.getNodeNearestOwnerKey(node);
language_1.ArrayPush.call(observedTargetOwnerKeys, observedTargetOwnerKey);
});
return language_1.ArrayReduce.call(mutations, (filteredSet, record) => {
const { target, addedNodes, removedNodes, type } = record;
// If the mutations affected a lwc host element or its shadow,
// because LWC uses synthetic shadow, target will be the host
// If target is an lwc host,
// Determine if the mutations affected the host or the shadowRoot
// Mutations affecting host: changes to slot content
// Mutations affecting shadowRoot: changes to template content
if (type === 'childList' && !language_1.isUndefined(node_1.getNodeKey(target))) {
// Optimization: Peek in and test one node to decide if the MutationRecord qualifies
// The remaining nodes in this MutationRecord will have the same ownerKey
const sampleNode = addedNodes.length > 0 ? addedNodes[0] : removedNodes[0];
const sampleNodeOwnerKey = node_1.getNodeNearestOwnerKey(sampleNode);
// Is node being added/removed to a subtree that is being observed
if (language_1.ArrayIndexOf.call(observedTargetOwnerKeys, sampleNodeOwnerKey) !== -1) {
// If the target was being observed, then return record as-is
if (observedTargets.indexOf(target) !== -1) {
// In case of added nodes, we can climb up the tree and determine eligibility
if (addedNodes.length > 0) {
// Optimization: Peek in and test one node to decide if the MutationRecord qualifies
// The remaining nodes in this MutationRecord will have the same ownerKey
const sampleNode = addedNodes[0];
if (isQualifiedObserver(observer, sampleNode)) {
// If the target was being observed, then return record as-is
// this will be the case for slot content
if (target[observerLookupField] &&
(target[observerLookupField][0] === observer ||
language_1.ArrayIndexOf.call(target[observerLookupField], observer) !== -1)) {
language_1.ArrayPush.call(filteredSet, record);
}
else {
// else, must be observing the shadowRoot
language_1.ArrayPush.call(filteredSet, retargetMutationRecord(record));
}
}
}
else {
// In the case of removed nodes, climbing the tree is not an option as the nodes are disconnected
// We can only check if either the host or shadow root was observed and qualify the record
const shadowRoot = target.shadowRoot;
const sampleNode = removedNodes[0];
if (node_1.getNodeNearestOwnerKey(target) === node_1.getNodeNearestOwnerKey(sampleNode) && // trickery: sampleNode is slot content
isQualifiedObserver(observer, target) // use target as a close enough reference to climb up
) {
language_1.ArrayPush.call(filteredSet, record);
}
else {
// else, must be observing the shadowRoot
else if (shadowRoot &&
shadowRoot[observerLookupField] &&
(shadowRoot[observerLookupField][0] === observer ||
language_1.ArrayIndexOf.call(shadowRoot[observerLookupField], observer) !== -1)) {
language_1.ArrayPush.call(filteredSet, retargetMutationRecord(record));

@@ -102,9 +133,5 @@ }

else {
// if target is shadowRoot, then fetch key of shadow tree from the host
// this should never be the case when synthetic shadow is on, only when running in native
const recordTargetOwnerKey = target instanceof window.ShadowRoot
? node_1.getNodeKey(target.host)
: node_1.getNodeNearestOwnerKey(target);
const mutationInScope = language_1.ArrayIndexOf.call(observedTargetOwnerKeys, recordTargetOwnerKey) !== -1;
if (mutationInScope) {
// Mutation happened under a root node(shadow root or document) and the decision is straighforward
// Ascend the tree starting from target and check if observer is qualified
if (isQualifiedObserver(observer, target)) {
language_1.ArrayPush.call(filteredSet, record);

@@ -140,9 +167,5 @@ }

const observer = new OriginalMutationObserver(wrappedCallback);
language_1.defineProperty(observer, observedTargetsField, { value: [] });
return observer;
}
function patchedDisconnect() {
if (!language_1.isUndefined(this[observedTargetsField])) {
this[observedTargetsField].length = 0;
}
originalDisconnect.call(this);

@@ -157,6 +180,7 @@ }

function patchedObserve(target, options) {
// If the observer was created by the patched constructor, this field should be defined. Adding a guard for extra safety
if (!language_1.isUndefined(this[observedTargetsField])) {
language_1.ArrayPush.call(this[observedTargetsField], target);
// Maintain a list of all observers that want to observe a node
if (language_1.isUndefined(target[observerLookupField])) {
language_1.defineProperty(target, observerLookupField, { value: [] });
}
language_1.ArrayPush.call(target[observerLookupField], this);
// If the target is a SyntheticShadowRoot, observe the host since the shadowRoot is an empty documentFragment

@@ -163,0 +187,0 @@ if (target instanceof shadow_root_1.SyntheticShadowRoot) {

@@ -21,2 +21,5 @@ declare const freeze: {

(callbackfn: (value: any, index: number, array: any[]) => any, thisArg?: any): any[];
}, ArrayFind: {
<S extends any>(predicate: (this: void, value: any, index: number, obj: any[]) => value is S, thisArg?: any): S | undefined;
(predicate: (value: any, index: number, obj: any[]) => boolean, thisArg?: any): any;
}, ArraySlice: (start?: number | undefined, end?: number | undefined) => any[], ArraySplice: {

@@ -45,3 +48,3 @@ (start: number, deleteCount?: number | undefined): any[];

};
export { StringToLowerCase, StringReplace, StringIndexOf, StringCharCodeAt, StringSlice, StringSplit, freeze, seal, keys, create, assign, defineProperty, defineProperties, getPrototypeOf, setPrototypeOf, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, hasOwnProperty, preventExtensions, isExtensible, ArrayReduce, ArraySlice, ArraySplice, ArrayUnshift, ArrayFilter, ArrayMap, ArrayJoin, ArrayConcat, isArray, ArrayIndexOf, ArrayPush, ArrayReverse, forEach, };
export { StringToLowerCase, StringReplace, StringIndexOf, StringCharCodeAt, StringSlice, StringSplit, freeze, seal, keys, create, assign, defineProperty, defineProperties, getPrototypeOf, setPrototypeOf, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, hasOwnProperty, preventExtensions, isExtensible, ArrayFind, ArrayReduce, ArraySlice, ArraySplice, ArrayUnshift, ArrayFilter, ArrayMap, ArrayJoin, ArrayConcat, isArray, ArrayIndexOf, ArrayPush, ArrayReverse, forEach, };
export declare function isUndefined(obj: any): obj is undefined;

@@ -48,0 +51,0 @@ export declare function isNull(obj: any): obj is null;

@@ -27,5 +27,6 @@ "use strict";

exports.isArray = isArray;
const { concat: ArrayConcat, filter: ArrayFilter, slice: ArraySlice, splice: ArraySplice, unshift: ArrayUnshift, indexOf: ArrayIndexOf, push: ArrayPush, map: ArrayMap, join: ArrayJoin, forEach, reduce: ArrayReduce, reverse: ArrayReverse, } = Array.prototype;
const { concat: ArrayConcat, filter: ArrayFilter, find: ArrayFind, slice: ArraySlice, splice: ArraySplice, unshift: ArrayUnshift, indexOf: ArrayIndexOf, push: ArrayPush, map: ArrayMap, join: ArrayJoin, forEach, reduce: ArrayReduce, reverse: ArrayReverse, } = Array.prototype;
exports.ArrayConcat = ArrayConcat;
exports.ArrayFilter = ArrayFilter;
exports.ArrayFind = ArrayFind;
exports.ArraySlice = ArraySlice;

@@ -32,0 +33,0 @@ exports.ArraySplice = ArraySplice;

{
"name": "@lwc/synthetic-shadow",
"version": "0.37.3-alpha9",
"version": "0.37.4-alpha1",
"description": "Synthetic Shadow Root for LWC",

@@ -22,3 +22,3 @@ "license": "MIT",

},
"gitHead": "47b5590bcc9f1b43fc4e5524a30c1fae042b20d7"
"gitHead": "29fc327b8cfa8b258413bace39d18798a4b9ff61"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc