lwc 2.37.0 → 2.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engine-dom/esm/es2017/engine-dom.js +2226 -2517
- package/dist/engine-dom/iife/es2017/engine-dom.js +8217 -8508
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +6603 -6857
- package/dist/engine-dom/iife/es5/engine-dom.js +8142 -8179
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +6730 -6721
- package/dist/engine-dom/umd/es2017/engine-dom.js +8218 -8509
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +6604 -6858
- package/dist/engine-dom/umd/es5/engine-dom.js +8143 -8180
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +6731 -6722
- package/dist/engine-server/commonjs/es2017/engine-server.js +1966 -2235
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +1966 -2235
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +211 -233
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +4598 -4620
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +9 -9
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +4422 -4423
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +4328 -4352
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +9 -9
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +4170 -4172
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +4599 -4621
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +9 -9
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +4423 -4424
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +4329 -4353
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +9 -9
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +4171 -4173
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js +2 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js +2 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/package.json +7 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";const{assign:e,create:t,defineProperties:n,defineProperty:l,freeze:o,getOwnPropertyDescriptor:r,getOwnPropertyNames:a,getPrototypeOf:i,hasOwnProperty:c,isFrozen:u,keys:s,seal:f,setPrototypeOf:p}=Object,{concat:h,copyWithin:g,fill:m,filter:d,find:b,indexOf:y,join:E,map:w,pop:v,push:T,reduce:N,reverse:M,shift:L,slice:S,some:C,sort:H,splice:O,unshift:D,forEach:R}=Array.prototype,{charCodeAt:P,replace:I,split:A,slice:$,toLowerCase:B}=String.prototype;function _(e){return void 0===e}function x(e){return null===e}function F(e){return!0===e}function k(e){return!1===e}function W(e){return"function"==typeof e}function U(e){return"object"==typeof e}const G="object"==typeof globalThis?globalThis:window,j="$shadowResolver$",K="$$ShadowResolverKey$$",q="$shadowStaticNodeKey$",Y="$shadowToken$",X="$$ShadowTokenKey$$",V="$nativeGetElementById$",z="$nativeQuerySelectorAll$",Q=Node,J=Q.prototype,{DOCUMENT_POSITION_CONTAINED_BY:Z,DOCUMENT_POSITION_CONTAINS:ee,DOCUMENT_POSITION_PRECEDING:te,DOCUMENT_POSITION_FOLLOWING:ne,ELEMENT_NODE:le,TEXT_NODE:oe,CDATA_SECTION_NODE:re,PROCESSING_INSTRUCTION_NODE:ae,COMMENT_NODE:ie,DOCUMENT_FRAGMENT_NODE:ce}=Q,{appendChild:ue,cloneNode:se,compareDocumentPosition:fe,insertBefore:pe,removeChild:he,replaceChild:ge,hasChildNodes:me}=J,{contains:de}=HTMLElement.prototype,be=r(J,"firstChild").get,ye=r(J,"lastChild").get,Ee=r(J,"textContent").get,we=r(J,"parentNode").get,ve=r(J,"ownerDocument").get,Te=c.call(J,"parentElement")?r(J,"parentElement").get:r(HTMLElement.prototype,"parentElement").get,Ne=r(J,"textContent").set,Me=c.call(J,"childNodes")?r(J,"childNodes").get:r(HTMLElement.prototype,"childNodes").get,Le=c.call(J,"isConnected")?r(J,"isConnected").get:function(){const e=ve.call(this);return null===e||0!=(fe.call(e,this)&Z)},{getAttribute:Se,getBoundingClientRect:Ce,getElementsByTagName:He,getElementsByTagNameNS:Oe,hasAttribute:De,querySelector:Re,querySelectorAll:Pe,removeAttribute:Ie,setAttribute:Ae}=Element.prototype,$e=c.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:()=>{throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},Be=r(Element.prototype,"childElementCount").get,_e=r(Element.prototype,"firstElementChild").get,xe=r(Element.prototype,"lastElementChild").get,Fe=r(HTMLElement.prototype,"innerText"),ke=Fe?Fe.get:null,We=Fe?Fe.set:null,Ue=r(HTMLElement.prototype,"outerText"),Ge=Ue?Ue.get:null,je=Ue?Ue.set:null,Ke=c.call(Element.prototype,"innerHTML")?r(Element.prototype,"innerHTML"):r(HTMLElement.prototype,"innerHTML"),qe=Ke.get,Ye=Ke.set,Xe=c.call(Element.prototype,"outerHTML")?r(Element.prototype,"outerHTML"):r(HTMLElement.prototype,"outerHTML"),Ve=Xe.get,ze=Xe.set,Qe=r(Element.prototype,"tagName").get,Je=r(HTMLElement.prototype,"tabIndex"),Ze=Je.get,et=Je.set,tt=c.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,nt=c.call(Element.prototype,"children")?r(Element.prototype,"children").get:r(HTMLElement.prototype,"children").get,{getElementsByClassName:lt}=HTMLElement.prototype,ot=c.call(Element.prototype,"shadowRoot")?r(Element.prototype,"shadowRoot").get:()=>null,rt=c.call(Element.prototype,"assignedSlot")?r(Element.prototype,"assignedSlot").get:()=>null;let at,it;"undefined"!=typeof HTMLSlotElement?(at=HTMLSlotElement.prototype.assignedNodes,it=HTMLSlotElement.prototype.assignedElements):(at=()=>{throw new TypeError("assignedNodes() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")},it=()=>{throw new TypeError("assignedElements() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")});const ct=r(Event.prototype,"target").get,ut=r(Event.prototype,"currentTarget").get,st=r(FocusEvent.prototype,"relatedTarget").get,ft=c.call(Event.prototype,"composedPath")?Event.prototype.composedPath:()=>[],pt=r(Document.prototype,"activeElement").get,ht=c.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,gt=c.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,mt=r(Document.prototype,"defaultView").get,{createComment:dt,querySelectorAll:bt,getElementById:yt,getElementsByClassName:Et,getElementsByTagName:wt,getElementsByTagNameNS:vt}=Document.prototype,{getElementsByName:Tt}=HTMLDocument.prototype,{addEventListener:Nt,removeEventListener:Mt,getComputedStyle:Lt,getSelection:St}=window,Ct=MutationObserver,Ht=Ct.prototype.observe;let Ot=null;"undefined"!=typeof ShadowRoot&&(Ot=ShadowRoot);const Dt=!x(Ot),Rt=x(Ot)?()=>!1:e=>e instanceof Ot;const{createElement:Pt}=Document.prototype;function It(e){const t=ve.call(e);return null===t?e:t}function At(e){const t=It(e),n=mt.call(t);if(null===n)throw new TypeError;return n}let $t;function Bt(e){if(_($t)){const t=It(e);$t=t.body&&"temporary-bypass"===Se.call(t.body,"data-global-patching-bypass")}return F($t)}function _t(e){const t=e.length,n=[];if(t>0)for(let l=0;l<t;l++)n[l]=e[l];return n}"undefined"==typeof HTMLSlotElement&&function(){class e{}p(e,HTMLElement.constructor),p(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,l(Document.prototype,"createElement",{value:function(t,n){const l=Pt.apply(this,S.call(arguments));return 4===t.length&&115===P.call(t,0)&&108===P.call(t,1)&&111===P.call(t,2)&&116===P.call(t,3)&&p(l,e.prototype),l}})}();const xt="undefined"!=typeof EventTarget?EventTarget.prototype:Q.prototype,{addEventListener:Ft,dispatchEvent:kt,removeEventListener:Wt}=xt;G.lwcRuntimeFlags||Object.defineProperty(G,"lwcRuntimeFlags",{value:t(null)});const Ut=G.lwcRuntimeFlags,Gt="$$HostElementKey$$",jt="$$ShadowedNodeKey$$";function Kt(e,t,n){const l=e;{const{value:e}=n;l[t]=e}}function qt(e){return e[Gt]}function Yt(e){let t,n=e;for(;!x(n);){if(t=qt(n),!_(t))return t;if(n=we.call(n),Ut.ENABLE_LIGHT_GET_ROOT_NODE_PATCH&&!x(n)&&Zt(n))return}}function Xt(e){return e[jt]}function Vt(e){return!_(qt(e))}function zt(e){let t=Te.call(e);for(;!x(t)&&en(t);)e=t,t=Te.call(e);return e}function Qt(e,t){const n=Xt(e);let l=t instanceof Element?t:Te.call(t);for(;!x(l)&&l!==e;){const t=Yt(l),o=Te.call(l);if(t===n)return en(l);if(o===e)return!1;if(x(o)||Yt(o)===t)l=o;else{if(!en(o))return!1;if(l=Jt(zt(o)),!x(l)){if(l===e)return!0;if(Yt(l)===n)return!0}}}return!1}function Jt(e){if(!(e instanceof Q))return null;const t=Yt(e);if(_(t))return null;let n=e;for(;!x(n)&&Xt(n)!==t;)n=we.call(n);return x(n)?null:n}function Zt(e){return en(e)&&Vt(e)}function en(e){return e instanceof HTMLSlotElement}function tn(e,t){const n=Yt(t);if(_(n)){if(Ut.ENABLE_LIGHT_GET_ROOT_NODE_PATCH){const e=we.call(t);if(!x(e)&&Zt(e))return!1}return!0}return Xt(e)===n}function nn(e){const t=pl(e);return rn(t,_t(Me.call(t)))}function ln(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];!tn(e,o)&&Qt(e,o)&&T.call(n,o)}return n}function on(e,t){for(let n=0,l=t.length;n<l;n+=1){const l=t[n];if(!tn(e,l)&&Qt(e,l))return l}return null}function rn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];tn(e,o)&&T.call(n,o)}return n}function an(e,t){for(let n=0,l=t.length;n<l;n+=1)if(tn(e,t[n]))return t[n];return null}function cn(e){if(!gl(e)&&!en(e)){return _t(Me.call(e))}if(gl(e)){const t=_t(Pe.call(e,"slot")),n=ul(hl(e));return N.call(t,((e,t)=>(n===ul(t)&&T.apply(e,un(t)),e)),[])}{const t=_t(Me.call(e)),n=ul(e);return d.call(t,(e=>n===ul(e)))}}function un(e){const t=Jt(e);if(x(t))return[];const n=_t(Me.call(e));return d.call(n,(e=>!Vt(e)||!tn(t,e)))}const sn=/[&\u00A0"]/g,fn=/[&\u00A0<>]/g,{replace:pn,toLowerCase:hn}=String.prototype;function gn(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function mn(e){return pn.call(e,sn,gn)}const dn=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),bn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function yn(e){switch(e.nodeType){case le:{const{attributes:t}=e,n=Qe.call(e);let l="<"+hn.call(n);for(let e,n=0;e=t[n];n++)l+=" "+e.name+'="'+mn(e.value)+'"';return l+=">",dn.has(n)?l:l+function(e){let t="";const n=cn(e);for(let e=0,l=n.length;e<l;e+=1)t+=yn(n[e]);return t}(e)+"</"+hn.call(n)+">"}case oe:{const{data:n,parentNode:l}=e;return l instanceof Element&&bn.has(Qe.call(l))?n:(t=n,pn.call(t,fn,gn))}case re:return`<!CDATA[[${e.data}]]>`;case ae:return`<?${e.target} ${e.data}?>`;case ie:return`\x3c!--${e.data}--\x3e`;default:return""}var t}function En(e){if(e.nodeType===le){const t=cn(e);let n="";for(let e=0,l=t.length;e<l;e+=1){const l=t[e];l.nodeType!==ie&&(n+=En(l))}return n}return e.nodeValue}const wn=new WeakMap;function vn(){throw new TypeError("Illegal constructor")}function Tn(e){const n=t(vn.prototype);return wn.set(n,e),R.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}vn.prototype=t(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:vn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return wn.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){R.call(wn.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return w.call(wn.get(this),((e,t)=>[t,e]))}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return w.call(wn.get(this),((e,t)=>t))}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return wn.get(this)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=wn.get(this);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}},[Symbol.toStringTag]:{configurable:!0,get:()=>"NodeList"},toString:{writable:!0,configurable:!0,value:()=>"[object NodeList]"}}),p(vn,NodeList);const Nn=(e,t)=>{let n;for(;!_(n=e.host);){const l=n.getRootNode();if(l===t)return n;e=l}};function Mn(e,t,n,l){const o=gt.call(t,n,l),r=[],a=function(e){var t;const n=[];let l=e.getRootNode();for(;!_(l);)n.push(l),l=null===(t=l.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!x(o))for(let e=0;e<o.length;e++){const t=o[e];if(Zt(t))continue;const n=t.getRootNode();if(-1!==y.call(a,n)){T.call(r,t);continue}const l=Nn(n,a[0]);_(l)||-1!==y.call(o,l)||-1!==y.call(r,l)||T.call(r,l)}return r}const Ln=new WeakMap;function Sn(){throw new TypeError("Illegal constructor")}function Cn(e){const n=t(Sn.prototype);return Ln.set(n,e),R.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}function Hn(e){return Zt(e)||gl(e)}function On(e,t){const n=Jt(e);if(t===n)return hl(n);if(t instanceof Element){if(Yt(e)===Yt(t))return t;if(!x(n)&&en(t)){const e=Jt(t);if(!x(e)&&tn(n,e))return e}}return null}function Dn(){return Un(this).length>0}function Rn(){return Un(this)[0]||null}function Pn(){const e=Un(this);return e[e.length-1]||null}function In(){return En(this)}function An(){const e=we.call(this);return x(e)?e:On(this,e)}function $n(){const e=we.call(this);if(x(e))return null;const t=On(this,e);return t instanceof Element?t:null}function Bn(e){return this===e?0:this.getRootNode()===e?10:qt(this)!==qt(e)?35:fe.call(this,e)}function _n(e){return null!=e&&qt(this)===qt(e)&&0!=(fe.call(this,e)&Z)}function xn(e){const t=se.call(this,!1);if(!e)return t;const n=Un(this);for(let e=0,l=n.length;e<l;e+=1)t.appendChild(n[e].cloneNode(!0));return t}function Fn(){if(gl(this)){const e=Jt(this);return Tn(x(e)?[]:rn(e,cn(this)))}return Me.call(this)}Sn.prototype=t(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Sn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return Ln.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(""===e)return null;const t=Ln.get(this);for(let n=0,l=t.length;n<l;n++){const n=t[l];if(e===Se.call(n,"id")||e===Se.call(n,"name"))return n}return null}},[Symbol.toStringTag]:{configurable:!0,get:()=>"HTMLCollection"},toString:{writable:!0,configurable:!0,value:()=>"[object HTMLCollection]"}}),p(Sn,HTMLCollection);const kn=Q.prototype.getRootNode,Wn=_(kn)?function(){let e,t=this;for(;!x(e=we.call(t));)t=e;return t}:kn;n(Q.prototype,{firstChild:{get(){return Hn(this)?Rn.call(this):be.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Hn(this)?Pn.call(this):ye.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return Vt(this)||gl(this)?In.call(this):Ee.call(this)},set:function(e){Ne.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get(){if(Vt(this))return An.call(this);const e=we.call(this);return!x(e)&&Zt(e)?Jt(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(Vt(this))return $n.call(this);const e=Te.call(this);return!x(e)&&Zt(e)?Jt(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return Hn(this)?Fn.call(this):Me.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Hn(this)?Dn.call(this):me.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value(e){return Bt(this)?fe.call(this,e):Bn.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value(e){return this===e||null!=e&&(Vt(this)||gl(this)?_n.call(this,e):de.call(this,e))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return Vt(this)||gl(this)?xn.call(this,e):se.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){return F(!_(e)&&!!e.composed)?Wn.call(this,e):function(e){const t=Jt(e);return x(t)?Wn.call(e):hl(t)}(this)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get(){return Le.call(this)}}});const Un=function(e){return e.childNodes};c.call(HTMLElement.prototype,"contains")&&l(HTMLElement.prototype,"contains",r(Q.prototype,"contains")),c.call(HTMLElement.prototype,"parentElement")&&l(HTMLElement.prototype,"parentElement",r(Q.prototype,"parentElement"));const Gn=new WeakMap,jn=new WeakMap;function Kn(e,t,n){if(t===n)return!0;let l=jn.get(e);return _(l)&&(l=e.composedPath(),jn.set(e,l)),l.includes(n)}function qn(e){if(!function(e){return W(e)||U(e)&&!x(e)&&W(e.handleEvent)}(e))return e;let t=Gn.get(e);return _(t)&&(t=function(t){const n=ut.call(t);if(Kn(t,zn(t),n))return W(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},Gn.set(e,t)),t}const Yn=new WeakMap,Xn=new WeakMap;function Vn(e){let n=Xn.get(e);return _(n)&&(n=t(null),Xn.set(e,n)),n}function zn(e){var t;return null!==(t=wl.get(e))&&void 0!==t?t:ct.call(e)}const Qn=new WeakMap;function Jn(e){if(!W(e))throw new TypeError;let t=Qn.get(e);return _(t)&&(t=function(t){let n=ut.call(t);Rt(n)||(n=hl(n));Kn(t,zn(t),n)&&e.call(n,t)},t.placement=1,Qn.set(e,t)),t}const Zn=new WeakMap;function el(e){if(!W(e))throw new TypeError;let t=Zn.get(e);return _(t)&&(t=function(t){const n=ut.call(t);Kn(t,zn(t),n)&&e.call(n,t)},t.placement=0,Zn.set(e,t)),t}function tl(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:r,stopPropagation:a}=e,i=Vn(ut.call(e))[o];l(e,"stopImmediatePropagation",{value(){t=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0}),l(e,"stopPropagation",{value(){n=!0,a.call(e)},writable:!0,enumerable:!0,configurable:!0});const c=S.call(i);function u(n){R.call(c,(l=>{k(t)&&l.placement===n&&-1!==y.call(i,l)&&l.call(void 0,e)}))}Yn.set(e,1),u(1),k(t)&&k(n)&&(Yn.set(e,0),u(0)),Yn.set(e,2)}function nl(e,t,n){const l=Vn(e);let o=l[t];_(o)&&(o=l[t]=[]),-1===y.call(o,n)&&(0===o.length&&Ft.call(e,t,tl),T.call(o,n))}function ll(e,t,n){let l,o;_(o=Vn(e)[t])||-1===(l=y.call(o,n))||(O.call(o,l,1),0===o.length&&Wt.call(e,t,tl))}function ol(e,t,n){if(W(t)){nl(this,e,el(t))}}function rl(e,t,n){if(W(t)){ll(this,e,el(t))}}const al=new WeakMap,{createDocumentFragment:il}=document;function cl(e){const t=al.get(e);if(_(t))throw new TypeError;return t}function ul(e){return e[j]}function sl(e,t){e[j]=t}function fl(e){return cl(e).delegatesFocus}function pl(e){return cl(e).host}function hl(e){return cl(e).shadowRoot}function gl(e){const t=al.get(e);return!_(t)&&e===t.host}function ml(e){const t=al.get(e);return!_(t)&&e===t.shadowRoot}l(Q.prototype,j,{set(e){var t,n;_(e)||(this[K]=e,t=this,n=e.nodeKey,Kt(t,Gt,{value:n,configurable:!0}))},get(){return this[K]},configurable:!0,enumerable:!0}),l(G,"$isNativeShadowRootDefined$",{value:Dt}),_(G[V])&&l(G,V,{value:yt}),_(G[z])&&l(G,z,{value:bt});let dl=0;function bl(e,t){if(al.has(e))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:l}=t,o=It(e),r=il.call(o),a={mode:n,delegatesFocus:!!l,host:e,shadowRoot:r};al.set(r,a),al.set(e,a);const i=()=>r,c=i.nodeKey=dl++;return Kt(e,jt,{value:c}),sl(r,i),p(r,Tl.prototype),r}const yl={constructor:{writable:!0,configurable:!0,value:Tl},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"},synthetic:{writable:!1,enumerable:!1,configurable:!1,value:!0}},El={activeElement:{enumerable:!0,configurable:!0,get(){const e=pl(this),t=It(e),n=pt.call(t);if(x(n))return n;if(0==(fe.call(e,n)&Z))return null;let l=n;for(;!tn(e,l);)l=Te.call(l);return en(l)?null:l}},delegatesFocus:{configurable:!0,get(){return cl(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Ll(this,It(pl(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Mn(this,It(pl(this)),e,t)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get(){return pl(this)}},mode:{configurable:!0,get(){return cl(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}},wl=new WeakMap,vl={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return pe.call(pl(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return he.call(pl(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ue.call(pl(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return ge.call(pl(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){W(n)&&nl(pl(e),t,Jn(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value(e){return wl.set(e,this),kt.apply(pl(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){W(n)&&ll(pl(e),t,Jn(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return pl(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return Tn(nn(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=pl(this);return this===e?0:this.contains(e)?20:fe.call(t,e)&Z?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=pl(this);return 0!=(fe.call(t,e)&Z)&&tn(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return Un(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=Un(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return Un(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return Le.call(pl(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 pl(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=Un(this);let t="";for(let n=0,l=e.length;n<l;n+=1){const l=e[n];l.nodeType!==ie&&(t+=En(l))}return t},set(e){const t=pl(this);Ne.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){return!_(e)&&F(e.composed)?pl(this).getRootNode(e):this}}};function Tl(){throw new TypeError("Illegal constructor")}function Nl(e,t){const n=[];let l;if(e instanceof Window)l=e;else{if(!(e instanceof Q))return n;l=e.getRootNode()}let o,r=e;for(;!x(r);)if(n.push(r),r instanceof Element||r instanceof Text){const e=r.assignedSlot;r=x(e)?r.parentNode:e}else r=!ml(r)&&!Rt(r)||!t&&r===l?r instanceof Q?r.parentNode:null:r.host;return o=e instanceof Window?e.document:It(e),n[n.length-1]===o&&n.push(window),n}
|
|
1
|
+
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";const{assign:e,create:t,defineProperties:n,defineProperty:l,freeze:o,getOwnPropertyDescriptor:r,getOwnPropertyNames:a,getPrototypeOf:i,hasOwnProperty:c,isFrozen:u,keys:s,seal:f,setPrototypeOf:p}=Object,{concat:h,copyWithin:g,fill:m,filter:d,find:b,indexOf:y,join:E,map:w,pop:v,push:T,reduce:N,reverse:M,shift:L,slice:S,some:C,sort:H,splice:O,unshift:R,forEach:D}=Array.prototype,{charCodeAt:P,replace:I,split:A,slice:$,toLowerCase:B}=String.prototype;function _(e){return void 0===e}function x(e){return null===e}function F(e){return!0===e}function k(e){return!1===e}function W(e){return"function"==typeof e}function U(e){return"object"==typeof e}const G="object"==typeof globalThis?globalThis:window,j="$shadowResolver$",K="$$ShadowResolverKey$$",q="$shadowStaticNodeKey$",Y="$shadowToken$",X="$$ShadowTokenKey$$",V="$nativeGetElementById$",z="$nativeQuerySelectorAll$";G.lwcRuntimeFlags||Object.defineProperty(G,"lwcRuntimeFlags",{value:t(null)});const Q=Node,J=Q.prototype,{DOCUMENT_POSITION_CONTAINED_BY:Z,DOCUMENT_POSITION_CONTAINS:ee,DOCUMENT_POSITION_PRECEDING:te,DOCUMENT_POSITION_FOLLOWING:ne,ELEMENT_NODE:le,TEXT_NODE:oe,CDATA_SECTION_NODE:re,PROCESSING_INSTRUCTION_NODE:ae,COMMENT_NODE:ie,DOCUMENT_FRAGMENT_NODE:ce}=Q,{appendChild:ue,cloneNode:se,compareDocumentPosition:fe,insertBefore:pe,removeChild:he,replaceChild:ge,hasChildNodes:me}=J,{contains:de}=HTMLElement.prototype,be=r(J,"firstChild").get,ye=r(J,"lastChild").get,Ee=r(J,"textContent").get,we=r(J,"parentNode").get,ve=r(J,"ownerDocument").get,Te=c.call(J,"parentElement")?r(J,"parentElement").get:r(HTMLElement.prototype,"parentElement").get,Ne=r(J,"textContent").set,Me=c.call(J,"childNodes")?r(J,"childNodes").get:r(HTMLElement.prototype,"childNodes").get,Le=c.call(J,"isConnected")?r(J,"isConnected").get:function(){const e=ve.call(this);return null===e||0!=(fe.call(e,this)&Z)},{getAttribute:Se,getBoundingClientRect:Ce,getElementsByTagName:He,getElementsByTagNameNS:Oe,hasAttribute:Re,querySelector:De,querySelectorAll:Pe,removeAttribute:Ie,setAttribute:Ae}=Element.prototype,$e=c.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:()=>{throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},Be=r(Element.prototype,"childElementCount").get,_e=r(Element.prototype,"firstElementChild").get,xe=r(Element.prototype,"lastElementChild").get,Fe=r(HTMLElement.prototype,"innerText"),ke=Fe?Fe.get:null,We=Fe?Fe.set:null,Ue=r(HTMLElement.prototype,"outerText"),Ge=Ue?Ue.get:null,je=Ue?Ue.set:null,Ke=c.call(Element.prototype,"innerHTML")?r(Element.prototype,"innerHTML"):r(HTMLElement.prototype,"innerHTML"),qe=Ke.get,Ye=Ke.set,Xe=c.call(Element.prototype,"outerHTML")?r(Element.prototype,"outerHTML"):r(HTMLElement.prototype,"outerHTML"),Ve=Xe.get,ze=Xe.set,Qe=r(Element.prototype,"tagName").get,Je=r(HTMLElement.prototype,"tabIndex"),Ze=Je.get,et=Je.set,tt=c.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,nt=c.call(Element.prototype,"children")?r(Element.prototype,"children").get:r(HTMLElement.prototype,"children").get,{getElementsByClassName:lt}=HTMLElement.prototype,ot=c.call(Element.prototype,"shadowRoot")?r(Element.prototype,"shadowRoot").get:()=>null,rt=c.call(Element.prototype,"assignedSlot")?r(Element.prototype,"assignedSlot").get:()=>null;let at,it;"undefined"!=typeof HTMLSlotElement?(at=HTMLSlotElement.prototype.assignedNodes,it=HTMLSlotElement.prototype.assignedElements):(at=()=>{throw new TypeError("assignedNodes() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")},it=()=>{throw new TypeError("assignedElements() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")});const ct=r(Event.prototype,"target").get,ut=r(Event.prototype,"currentTarget").get,st=r(FocusEvent.prototype,"relatedTarget").get,ft=c.call(Event.prototype,"composedPath")?Event.prototype.composedPath:()=>[],pt=r(Document.prototype,"activeElement").get,ht=c.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,gt=c.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,mt=r(Document.prototype,"defaultView").get,{createComment:dt,querySelectorAll:bt,getElementById:yt,getElementsByClassName:Et,getElementsByTagName:wt,getElementsByTagNameNS:vt}=Document.prototype,{getElementsByName:Tt}=HTMLDocument.prototype,{addEventListener:Nt,removeEventListener:Mt,getComputedStyle:Lt,getSelection:St}=window,Ct=MutationObserver,Ht=Ct.prototype.observe;let Ot=null;"undefined"!=typeof ShadowRoot&&(Ot=ShadowRoot);const Rt=!x(Ot),Dt=x(Ot)?()=>!1:e=>e instanceof Ot;const{createElement:Pt}=Document.prototype;function It(e){const t=ve.call(e);return null===t?e:t}function At(e){const t=It(e),n=mt.call(t);if(null===n)throw new TypeError;return n}let $t;function Bt(e){if(_($t)){const t=It(e);$t=t.body&&"temporary-bypass"===Se.call(t.body,"data-global-patching-bypass")}return F($t)}function _t(e){const t=e.length,n=[];if(t>0)for(let l=0;l<t;l++)n[l]=e[l];return n}"undefined"==typeof HTMLSlotElement&&function(){class e{}p(e,HTMLElement.constructor),p(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,l(Document.prototype,"createElement",{value:function(t,n){const l=Pt.apply(this,S.call(arguments));return 4===t.length&&115===P.call(t,0)&&108===P.call(t,1)&&111===P.call(t,2)&&116===P.call(t,3)&&p(l,e.prototype),l}})}();const xt="undefined"!=typeof EventTarget?EventTarget.prototype:Q.prototype,{addEventListener:Ft,dispatchEvent:kt,removeEventListener:Wt}=xt,Ut="$$HostElementKey$$",Gt="$$ShadowedNodeKey$$";function jt(e,t,n){const l=e;{const{value:e}=n;l[t]=e}}function Kt(e){return e[Ut]}function qt(e){let t,n=e;for(;!x(n);){if(t=Kt(n),!_(t))return t;if(n=we.call(n),lwcRuntimeFlags.ENABLE_LIGHT_GET_ROOT_NODE_PATCH&&!x(n)&&Jt(n))return}}function Yt(e){return e[Gt]}function Xt(e){return!_(Kt(e))}function Vt(e){let t=Te.call(e);for(;!x(t)&&Zt(t);)e=t,t=Te.call(e);return e}function zt(e,t){const n=Yt(e);let l=t instanceof Element?t:Te.call(t);for(;!x(l)&&l!==e;){const t=qt(l),o=Te.call(l);if(t===n)return Zt(l);if(o===e)return!1;if(x(o)||qt(o)===t)l=o;else{if(!Zt(o))return!1;if(l=Qt(Vt(o)),!x(l)){if(l===e)return!0;if(qt(l)===n)return!0}}}return!1}function Qt(e){if(!(e instanceof Q))return null;const t=qt(e);if(_(t))return null;let n=e;for(;!x(n)&&Yt(n)!==t;)n=we.call(n);return x(n)?null:n}function Jt(e){return Zt(e)&&Xt(e)}function Zt(e){return e instanceof HTMLSlotElement}function en(e,t){const n=qt(t);if(_(n)){if(lwcRuntimeFlags.ENABLE_LIGHT_GET_ROOT_NODE_PATCH){const e=we.call(t);if(!x(e)&&Jt(e))return!1}return!0}return Yt(e)===n}function tn(e){const t=fl(e);return on(t,_t(Me.call(t)))}function nn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];!en(e,o)&&zt(e,o)&&T.call(n,o)}return n}function ln(e,t){for(let n=0,l=t.length;n<l;n+=1){const l=t[n];if(!en(e,l)&&zt(e,l))return l}return null}function on(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];en(e,o)&&T.call(n,o)}return n}function rn(e,t){for(let n=0,l=t.length;n<l;n+=1)if(en(e,t[n]))return t[n];return null}function an(e){if(!hl(e)&&!Zt(e)){return _t(Me.call(e))}if(hl(e)){const t=_t(Pe.call(e,"slot")),n=cl(pl(e));return N.call(t,((e,t)=>(n===cl(t)&&T.apply(e,cn(t)),e)),[])}{const t=_t(Me.call(e)),n=cl(e);return d.call(t,(e=>n===cl(e)))}}function cn(e){const t=Qt(e);if(x(t))return[];const n=_t(Me.call(e));return d.call(n,(e=>!Xt(e)||!en(t,e)))}const un=/[&\u00A0"]/g,sn=/[&\u00A0<>]/g,{replace:fn,toLowerCase:pn}=String.prototype;function hn(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function gn(e){return fn.call(e,un,hn)}const mn=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),dn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function bn(e){switch(e.nodeType){case le:{const{attributes:t}=e,n=Qe.call(e);let l="<"+pn.call(n);for(let e,n=0;e=t[n];n++)l+=" "+e.name+'="'+gn(e.value)+'"';return l+=">",mn.has(n)?l:l+function(e){let t="";const n=an(e);for(let e=0,l=n.length;e<l;e+=1)t+=bn(n[e]);return t}(e)+"</"+pn.call(n)+">"}case oe:{const{data:n,parentNode:l}=e;return l instanceof Element&&dn.has(Qe.call(l))?n:(t=n,fn.call(t,sn,hn))}case re:return`<!CDATA[[${e.data}]]>`;case ae:return`<?${e.target} ${e.data}?>`;case ie:return`\x3c!--${e.data}--\x3e`;default:return""}var t}function yn(e){if(e.nodeType===le){const t=an(e);let n="";for(let e=0,l=t.length;e<l;e+=1){const l=t[e];l.nodeType!==ie&&(n+=yn(l))}return n}return e.nodeValue}const En=new WeakMap;function wn(){throw new TypeError("Illegal constructor")}function vn(e){const n=t(wn.prototype);return En.set(n,e),D.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}wn.prototype=t(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:wn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return En.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){D.call(En.get(this),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return w.call(En.get(this),((e,t)=>[t,e]))}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return w.call(En.get(this),((e,t)=>t))}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return En.get(this)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=En.get(this);return e<t.length?{value:t[e++],done:!1}:{done:!0}}}}},[Symbol.toStringTag]:{configurable:!0,get:()=>"NodeList"},toString:{writable:!0,configurable:!0,value:()=>"[object NodeList]"}}),p(wn,NodeList);const Tn=(e,t)=>{let n;for(;!_(n=e.host);){const l=n.getRootNode();if(l===t)return n;e=l}};function Nn(e,t,n,l){const o=gt.call(t,n,l),r=[],a=function(e){var t;const n=[];let l=e.getRootNode();for(;!_(l);)n.push(l),l=null===(t=l.host)||void 0===t?void 0:t.getRootNode();return n}(e);if(!x(o))for(let e=0;e<o.length;e++){const t=o[e];if(Jt(t))continue;const n=t.getRootNode();if(-1!==y.call(a,n)){T.call(r,t);continue}const l=Tn(n,a[0]);_(l)||-1!==y.call(o,l)||-1!==y.call(r,l)||T.call(r,l)}return r}const Mn=new WeakMap;function Ln(){throw new TypeError("Illegal constructor")}function Sn(e){const n=t(Ln.prototype);return Mn.set(n,e),D.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}function Cn(e){return Jt(e)||hl(e)}function Hn(e,t){const n=Qt(e);if(t===n)return pl(n);if(t instanceof Element){if(qt(e)===qt(t))return t;if(!x(n)&&Zt(t)){const e=Qt(t);if(!x(e)&&en(n,e))return e}}return null}function On(){return Wn(this).length>0}function Rn(){return Wn(this)[0]||null}function Dn(){const e=Wn(this);return e[e.length-1]||null}function Pn(){return yn(this)}function In(){const e=we.call(this);return x(e)?e:Hn(this,e)}function An(){const e=we.call(this);if(x(e))return null;const t=Hn(this,e);return t instanceof Element?t:null}function $n(e){return this===e?0:this.getRootNode()===e?10:Kt(this)!==Kt(e)?35:fe.call(this,e)}function Bn(e){return null!=e&&Kt(this)===Kt(e)&&0!=(fe.call(this,e)&Z)}function _n(e){const t=se.call(this,!1);if(!e)return t;const n=Wn(this);for(let e=0,l=n.length;e<l;e+=1)t.appendChild(n[e].cloneNode(!0));return t}function xn(){if(hl(this)){const e=Qt(this);return vn(x(e)?[]:on(e,an(this)))}return Me.call(this)}Ln.prototype=t(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Ln},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return Mn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(""===e)return null;const t=Mn.get(this);for(let n=0,l=t.length;n<l;n++){const n=t[l];if(e===Se.call(n,"id")||e===Se.call(n,"name"))return n}return null}},[Symbol.toStringTag]:{configurable:!0,get:()=>"HTMLCollection"},toString:{writable:!0,configurable:!0,value:()=>"[object HTMLCollection]"}}),p(Ln,HTMLCollection);const Fn=Q.prototype.getRootNode,kn=_(Fn)?function(){let e,t=this;for(;!x(e=we.call(t));)t=e;return t}:Fn;n(Q.prototype,{firstChild:{get(){return Cn(this)?Rn.call(this):be.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Cn(this)?Dn.call(this):ye.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return Xt(this)||hl(this)?Pn.call(this):Ee.call(this)},set:function(e){Ne.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get(){if(Xt(this))return In.call(this);const e=we.call(this);return!x(e)&&Jt(e)?Qt(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(Xt(this))return An.call(this);const e=Te.call(this);return!x(e)&&Jt(e)?Qt(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return Cn(this)?xn.call(this):Me.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Cn(this)?On.call(this):me.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value(e){return Bt(this)?fe.call(this,e):$n.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value(e){return this===e||null!=e&&(Xt(this)||hl(this)?Bn.call(this,e):de.call(this,e))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return Xt(this)||hl(this)?_n.call(this,e):se.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){return F(!_(e)&&!!e.composed)?kn.call(this,e):function(e){const t=Qt(e);return x(t)?kn.call(e):pl(t)}(this)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get(){return Le.call(this)}}});const Wn=function(e){return e.childNodes};c.call(HTMLElement.prototype,"contains")&&l(HTMLElement.prototype,"contains",r(Q.prototype,"contains")),c.call(HTMLElement.prototype,"parentElement")&&l(HTMLElement.prototype,"parentElement",r(Q.prototype,"parentElement"));const Un=new WeakMap,Gn=new WeakMap;function jn(e,t,n){if(t===n)return!0;let l=Gn.get(e);return _(l)&&(l=e.composedPath(),Gn.set(e,l)),l.includes(n)}function Kn(e){if(!function(e){return W(e)||U(e)&&!x(e)&&W(e.handleEvent)}(e))return e;let t=Un.get(e);return _(t)&&(t=function(t){const n=ut.call(t);if(jn(t,Vn(t),n))return W(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},Un.set(e,t)),t}const qn=new WeakMap,Yn=new WeakMap;function Xn(e){let n=Yn.get(e);return _(n)&&(n=t(null),Yn.set(e,n)),n}function Vn(e){var t;return null!==(t=El.get(e))&&void 0!==t?t:ct.call(e)}const zn=new WeakMap;function Qn(e){if(!W(e))throw new TypeError;let t=zn.get(e);return _(t)&&(t=function(t){let n=ut.call(t);Dt(n)||(n=pl(n));jn(t,Vn(t),n)&&e.call(n,t)},t.placement=1,zn.set(e,t)),t}const Jn=new WeakMap;function Zn(e){if(!W(e))throw new TypeError;let t=Jn.get(e);return _(t)&&(t=function(t){const n=ut.call(t);jn(t,Vn(t),n)&&e.call(n,t)},t.placement=0,Jn.set(e,t)),t}function el(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:r,stopPropagation:a}=e,i=Xn(ut.call(e))[o];l(e,"stopImmediatePropagation",{value(){t=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0}),l(e,"stopPropagation",{value(){n=!0,a.call(e)},writable:!0,enumerable:!0,configurable:!0});const c=S.call(i);function u(n){D.call(c,(l=>{k(t)&&l.placement===n&&-1!==y.call(i,l)&&l.call(void 0,e)}))}qn.set(e,1),u(1),k(t)&&k(n)&&(qn.set(e,0),u(0)),qn.set(e,2)}function tl(e,t,n){const l=Xn(e);let o=l[t];_(o)&&(o=l[t]=[]),-1===y.call(o,n)&&(0===o.length&&Ft.call(e,t,el),T.call(o,n))}function nl(e,t,n){let l,o;_(o=Xn(e)[t])||-1===(l=y.call(o,n))||(O.call(o,l,1),0===o.length&&Wt.call(e,t,el))}function ll(e,t,n){if(W(t)){tl(this,e,Zn(t))}}function ol(e,t,n){if(W(t)){nl(this,e,Zn(t))}}const rl=new WeakMap,{createDocumentFragment:al}=document;function il(e){const t=rl.get(e);if(_(t))throw new TypeError;return t}function cl(e){return e[j]}function ul(e,t){e[j]=t}function sl(e){return il(e).delegatesFocus}function fl(e){return il(e).host}function pl(e){return il(e).shadowRoot}function hl(e){const t=rl.get(e);return!_(t)&&e===t.host}function gl(e){const t=rl.get(e);return!_(t)&&e===t.shadowRoot}l(Q.prototype,j,{set(e){var t,n;_(e)||(this[K]=e,t=this,n=e.nodeKey,jt(t,Ut,{value:n,configurable:!0}))},get(){return this[K]},configurable:!0,enumerable:!0}),l(G,"$isNativeShadowRootDefined$",{value:Rt}),_(G[V])&&l(G,V,{value:yt}),_(G[z])&&l(G,z,{value:bt});let ml=0;function dl(e,t){if(rl.has(e))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:l}=t,o=It(e),r=al.call(o),a={mode:n,delegatesFocus:!!l,host:e,shadowRoot:r};rl.set(r,a),rl.set(e,a);const i=()=>r,c=i.nodeKey=ml++;return jt(e,Gt,{value:c}),ul(r,i),p(r,vl.prototype),r}const bl={constructor:{writable:!0,configurable:!0,value:vl},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"},synthetic:{writable:!1,enumerable:!1,configurable:!1,value:!0}},yl={activeElement:{enumerable:!0,configurable:!0,get(){const e=fl(this),t=It(e),n=pt.call(t);if(x(n))return n;if(0==(fe.call(e,n)&Z))return null;let l=n;for(;!en(e,l);)l=Te.call(l);return Zt(l)?null:l}},delegatesFocus:{configurable:!0,get(){return il(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Ml(this,It(fl(this)),e,t)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Nn(this,It(fl(this)),e,t)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get(){return fl(this)}},mode:{configurable:!0,get(){return il(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}},El=new WeakMap,wl={insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return pe.call(fl(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return he.call(fl(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return ue.call(fl(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return ge.call(fl(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){W(n)&&tl(fl(e),t,Qn(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value(e){return El.set(e,this),kt.apply(fl(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){W(n)&&nl(fl(e),t,Qn(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return fl(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return vn(tn(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const t=fl(this);return this===e?0:this.contains(e)?20:fe.call(t,e)&Z?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=fl(this);return 0!=(fe.call(t,e)&Z)&&en(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return Wn(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=Wn(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return Wn(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return Le.call(fl(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 fl(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=Wn(this);let t="";for(let n=0,l=e.length;n<l;n+=1){const l=e[n];l.nodeType!==ie&&(t+=yn(l))}return t},set(e){const t=fl(this);Ne.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){return!_(e)&&F(e.composed)?fl(this).getRootNode(e):this}}};function vl(){throw new TypeError("Illegal constructor")}function Tl(e,t){const n=[];let l;if(e instanceof Window)l=e;else{if(!(e instanceof Q))return n;l=e.getRootNode()}let o,r=e;for(;!x(r);)if(n.push(r),r instanceof Element||r instanceof Text){const e=r.assignedSlot;r=x(e)?r.parentNode:e}else r=!gl(r)&&!Dt(r)||!t&&r===l?r instanceof Q?r.parentNode:null:r.host;return o=e instanceof Window?e.document:It(e),n[n.length-1]===o&&n.push(window),n}
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/function Ml(e,t){if(x(e))return null;const n=Nl(e,!0),l=t;for(let e,t,o,r,a=0;a<l.length;a++)if(e=l[a],o=e instanceof Window?e:e.getRootNode(),o!==t&&(r=n.indexOf(o),t=o),!ml(o)||!_(r)&&r>-1)return e;return null}function Ll(e,t,n,l){const o=ht.call(t,n,l);return x(o)?o:Ml(e,Nl(o,!0))}e(yl,vl,{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return Cn(d.call(nn(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}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=pl(e);return an(n,_t(Pe.call(n,t)))}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return Tn(function(e,t){const n=pl(e);return rn(n,_t(Pe.call(n,t)))}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=Un(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=yn(e[n]);return t},set(e){const t=pl(this);Ye.call(t,e)}}},El),Tl.prototype=t(DocumentFragment.prototype,yl),l(Tl,Symbol.hasInstance,{value:function(e){return U(e)&&!x(e)&&(Rt(e)||i(e)===Tl.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return Ll(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Mn(this,this,e,t)},l(Document.prototype,"activeElement",{get(){let e=pt.call(this);if(x(e))return e;for(;!_(qt(e));)if(e=Te.call(e),x(e))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),l(Document.prototype,"getElementById",{value(){const e=yt.apply(this,S.call(arguments));return x(e)?null:_(qt(e))||Bt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelector",{value(){const e=_t(bt.apply(this,S.call(arguments))),t=b.call(e,(e=>_(qt(e))||Bt(e)));return _(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelectorAll",{value(){const e=_t(bt.apply(this,S.call(arguments)));return Tn(d.call(e,(e=>_(qt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByClassName",{value(){const e=_t(Et.apply(this,S.call(arguments)));return Cn(d.call(e,(e=>_(qt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagName",{value(){const e=_t(wt.apply(this,S.call(arguments)));return Cn(d.call(e,(e=>_(qt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagNameNS",{value(){const e=_t(vt.apply(this,S.call(arguments)));return Cn(d.call(e,(e=>_(qt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(r(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=_t(Tt.apply(this,S.call(arguments)));return Tn(d.call(e,(e=>_(qt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:Tl,configurable:!0,writable:!0});const Sl=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const Cl=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Hl(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!Sl)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",(t=>e=t)),t.click(),!Sl.get.call(e)})()&&(HTMLElement.prototype.click=function(){Ft.call(this,"click",Hl);try{Cl.value.call(this)}finally{Wt.call(this,"click",Hl)}}),!0!==new Event("test",{composed:!0}).composed&&function(){const n=e(t(null),{beforeinput:1,blur:1,click:1,compositionend:1,compositionstart:1,compositionupdate:1,copy:1,cut:1,dblclick:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,drag:1,dragend:1,dragenter:1,dragleave:1,dragover:1,dragstart:1,drop:1,focus:1,focusin:1,focusout:1,gotpointercapture:1,input:1,keydown:1,keypress:1,keyup:1,lostpointercapture:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,paste:1,pointercancel:1,pointerdown:1,pointerenter:1,pointerleave:1,pointermove:1,pointerout:1,pointerover:1,pointerup:1,touchcancel:1,touchend:1,touchmove:1,touchstart:1,wheel:1}),l=Event;function o(e,t){const n=new l(e,t),o=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>o,configurable:!0,enumerable:!0}}),n}o.prototype=l.prototype,o.AT_TARGET=l.AT_TARGET,o.BUBBLING_PHASE=l.BUBBLING_PHASE,o.CAPTURING_PHASE=l.CAPTURING_PHASE,o.NONE=l.NONE,window.Event=o,Object.defineProperties(Event.prototype,{composed:{get(){const{type:e}=this;return 1===n[e]},configurable:!0,enumerable:!0}})}();const Ol=CustomEvent;function Dl(e,t){const n=new Ol(e,t),l=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>l,configurable:!0,enumerable:!0}}),n}if(Dl.prototype=Ol.prototype,window.CustomEvent=Dl,"undefined"!=typeof ClipboardEvent){const l=e(t(null),{copy:1,cut:1,paste:1});n(ClipboardEvent.prototype,{composed:{get(){const{type:e}=this;return 1===l[e]},configurable:!0,enumerable:!0}})}(function(){const e="undefined"!=typeof HTMLIFrameElement,t="undefined"!=typeof Proxy&&F(Proxy.isCompat);return e&&t})()&&function(){const e=r(HTMLIFrameElement.prototype,"contentWindow"),{get:t}=e;e.get=function(){const e=t.call(this);return x(e)||_(qt(this))?e:(n=e,{addEventListener(){return n.addEventListener.apply(n,arguments)},blur(){return n.blur.apply(n,arguments)},close(){return n.close.apply(n,arguments)},focus(){return n.focus.apply(n,arguments)},postMessage(){return n.postMessage.apply(n,arguments)},removeEventListener(){return n.removeEventListener.apply(n,arguments)},get closed(){return n.closed},get frames(){return n.frames},get length(){return n.length},get location(){return n.location},set location(e){n.location=e},get opener(){return n.opener},get parent(){return n.parent},get self(){return n.self},get top(){return n.top},get window(){return n.window}});var n},l(HTMLIFrameElement.prototype,"contentWindow",e)}();const Rl=MutationObserver,{disconnect:Pl,observe:Il,takeRecords:Al}=Rl.prototype,$l="$$lwcObserverCallbackWrapper$$",Bl="$$lwcNodeObservers$$",_l=new WeakMap;function xl(e){return e[Bl]}function Fl(e){const{addedNodes:l,removedNodes:o,target:r,type:a}=e,i=t(MutationRecord.prototype);return n(i,{addedNodes:{get:()=>l,enumerable:!0,configurable:!0},removedNodes:{get:()=>o,enumerable:!0,configurable:!0},type:{get:()=>a,enumerable:!0,configurable:!0},target:{get:()=>r.shadowRoot,enumerable:!0,configurable:!0}}),i}function kl(e,t){let n=t;for(;!x(n);){const t=xl(n);if(!_(t)&&(t[0]===e||-1!==y.call(t,e)))return!0;n=n.parentNode}return!1}function Wl(e,t){return N.call(e,((e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:a}=n;if("childList"!==a||_(Xt(l)))kl(t,l)&&T.call(e,n);else if(o.length>0){const r=o[0];if(kl(t,r)){const o=xl(l);!o||o[0]!==t&&-1===y.call(o,t)?T.call(e,Fl(n)):T.call(e,n)}}else{const o=l.shadowRoot,a=r[0];if(Yt(l)===Yt(a)&&kl(t,l))T.call(e,n);else if(o){const l=xl(o);!l||l[0]!==t&&-1===y.call(l,t)||T.call(e,Fl(n))}}return e}),[])}function Ul(e){const t=function(e){let t=e[$l];return _(t)&&(t=e[$l]=(t,n)=>{const l=Wl(t,n);0!==l.length&&e.call(n,l,n)}),t}(e);return new Rl(t)}function Gl(e,t,n){if(arguments.length>1){const e=S.call(arguments);return e[1]=qn(e[1]),Nt.apply(this,e)}return Nt.apply(this,arguments)}function jl(e,t,n){if(arguments.length>1){const e=S.call(arguments);e[1]=qn(e[1]),Mt.apply(this,e)}Mt.apply(this,arguments)}function Kl(){const e=ct.call(this);if(!(e instanceof Q))return e;const t=It(e),n=Nl(e,this.composed),l=ut.call(this);if(!(l instanceof Q))return x(l)&&_(qt(e))?e:Ml(t,n);if(l===t||l===t.body)return _(qt(e))?e:Ml(t,n);let o=l,r=n;if(gl(l)){1===Yn.get(this)&&(o=hl(l))}return gl(e)&&wl.has(this)&&(r=Nl(hl(e),this.composed)),Ml(o,r)}function ql(){const e=ct.call(this);if(!(e instanceof Q))return[];const t=Boolean(e.shadowRoot),n=(l=e,al.has(l));var l;if(t&&!n)return ft.call(this);if(x(ut.call(this)))return[];let o=e;return gl(e)&&wl.has(this)&&(o=hl(e)),Nl(o,this.composed)}function Yl(e){const t=r(e.prototype,"relatedTarget").get;l(e.prototype,"relatedTarget",{get(){const e=t.call(this);if(x(e))return null;if(!(e instanceof Q&&Vt(e)))return e;let n=ut.call(this);return x(n)&&(n=It(e)),Ml(n,Nl(e,!0))},enumerable:!0,configurable:!0})}Ul.prototype=Rl.prototype,Ul.prototype.disconnect=function(){Pl.call(this);const e=_l.get(this);_(e)||(R.call(e,(e=>{const t=e[Bl];if(!_(t)){const e=y.call(t,this);-1!==e&&O.call(t,e,1)}})),e.length=0)},Ul.prototype.observe=function(e,t){let n=xl(e);var l;if(_(n)&&(n=[],l=n,e[Bl]=l),-1===y.call(n,this)&&T.call(n,this),ml(e)&&(e=e.host),_l.has(this)){const t=_l.get(this);-1===y.call(t,e)&&T.call(t,e)}else _l.set(this,[e]);return Il.call(this,e,t)},Ul.prototype.takeRecords=function(){return Wl(Al.call(this),this)},l(window,"MutationObserver",{value:Ul,configurable:!0,writable:!0}),n(xt,{addEventListener:{value:function(e,t,n){if(gl(this))return ol.apply(this,arguments);if(arguments.length<2){const e=S.call(arguments);return e.length>1&&(e[1]=qn(e[1])),Ft.apply(this,e)}const l=qn(t);return Ft.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(gl(this))return rl.apply(this,arguments);const l=S.call(arguments);arguments.length>1&&(l[1]=qn(l[1])),Wt.apply(this,l),Wt.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&n(Window.prototype,{addEventListener:{value:Gl,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:jl,enumerable:!0,writable:!0,configurable:!0}}),n(Event.prototype,{target:{get:Kl,enumerable:!0,configurable:!0},currentTarget:{get:function(){const e=ut.call(this);return x(e)?null:1===Yn.get(this)?hl(e):e},enumerable:!0,configurable:!0},composedPath:{value:ql,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:Kl,enumerable:!0,configurable:!0},path:{get:ql,enumerable:!0,configurable:!0}}),Yl(FocusEvent),Yl(MouseEvent);const Xl=c.call(Text.prototype,"assignedSlot")?r(Text.prototype,"assignedSlot").get:()=>null;let Vl;const zl={childList:!0},Ql=new WeakMap;function Jl(e){const t=_t(Me.call(e));return N.call(t,((e,t)=>(t instanceof Element&&en(t)?T.apply(e,Jl(t)):T.call(e,t),e)),[])}function Zl(){const e=we.call(this);if(e instanceof Element){const t=ot.call(e);if(Rt(t))return this instanceof Text?Xl.call(this):rt.call(this)}return!x(e)&&en(e)&&qt(e)!==qt(this)?e:null}function eo(e,t){let n;const l=qt(e);if(_(l))n=e instanceof HTMLBodyElement?d.call(t,(t=>_(qt(t))||Bt(e))):S.call(t);else if(gl(e)){const l=Jt(e);n=x(l)?[]:Xt(e)?ln(e,t):rn(l,t)}else n=d.call(t,(e=>Yt(e)===l));return n}function to(){const e=Un(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=yn(e[n]);return t}function no(){return yn(this)}function lo(){const e=Jt(this),t=x(e)?[]:rn(e,cn(this));return Cn(d.call(t,(e=>e instanceof Element)))}function oo(){return this.children.length}function ro(){return this.children[0]||null}function ao(){const{children:e}=this;return e.item(e.length-1)||null}n(HTMLSlotElement.prototype,{addEventListener:{value(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||Ql.get(this)||(Ql.set(this,!0),Vl||(Vl=new Ct((e=>{const t=[];R.call(e,(e=>{const{target:n}=e;-1===y.call(t,n)&&(T.call(t,n),kt.call(n,new CustomEvent("slotchange")))}))}))),Ht.call(Vl,this,zl))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value(e){if(Vt(this)){const t=!_(e)&&F(e.flatten)?Jl(this):un(this);return d.call(t,(e=>e instanceof Element))}return it.apply(this,S.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value(e){if(Vt(this)){return!_(e)&&F(e.flatten)?Jl(this):un(this)}return at.apply(this,S.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get(){const e=Se.call(this,"name");return x(e)?"":e},set(e){Ae.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(Vt(this)){const e=Jt(this);return Tn(x(e)?[]:rn(e,cn(this)))}return Me.call(this)},enumerable:!0,configurable:!0}}),n(Text.prototype,{assignedSlot:{get:Zl,enumerable:!0,configurable:!0}}),n(Element.prototype,{innerHTML:{get(){return Vt(this)||gl(this)?to.call(this):qe.call(this)},set(e){Ye.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return Vt(this)||gl(this)?no.call(this):Ve.call(this)},set(e){ze.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?bl(this,e):$e.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(gl(this)){const e=hl(this);if("open"===e.mode)return e}return ot.call(this)},enumerable:!0,configurable:!0},children:{get(){return Hn(this)?lo.call(this):nt.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Hn(this)?oo.call(this):Be.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Hn(this)?ro.call(this):_e.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Hn(this)?ao.call(this):xe.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:Zl,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"innerHTML")&&l(HTMLElement.prototype,"innerHTML",r(Element.prototype,"innerHTML")),c.call(HTMLElement.prototype,"outerHTML")&&l(HTMLElement.prototype,"outerHTML",r(Element.prototype,"outerHTML")),c.call(HTMLElement.prototype,"children")&&l(HTMLElement.prototype,"children",r(Element.prototype,"children")),n(Element.prototype,{querySelector:{value:function(){const e=_t(Pe.apply(this,S.call(arguments)));if(gl(this)){const t=Jt(this);return _(Xt(this))?x(t)?null:an(t,e):on(this,e)}if(Vt(this)){const t=qt(this);if(_(t))return 0===e.length?null:e[0];{const n=b.call(e,(e=>Yt(e)===t));return _(n)?null:n}}{if(!(this instanceof HTMLBodyElement)){const t=e[0];return _(t)?null:t}const t=b.call(e,(e=>_(qt(e))||Bt(this)));return _(t)?null:t}},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){return Tn(function(e,t){let n;if(gl(e)){const l=Jt(e);n=_(Xt(e))?x(l)?[]:rn(l,t):ln(e,t)}else if(Vt(e)){const l=qt(e);n=_(l)?S.call(t):d.call(t,(e=>Yt(e)===l))}else n=e instanceof HTMLBodyElement?d.call(t,(t=>_(qt(t))||Bt(e))):S.call(t);return n}(this,_t(Pe.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),n(Element.prototype,{getElementsByClassName:{value(){return Cn(eo(this,_t(lt.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){return Cn(eo(this,_t(He.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){return Cn(eo(this,_t(Oe.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"getElementsByClassName")&&l(HTMLElement.prototype,"getElementsByClassName",r(Element.prototype,"getElementsByClassName"));const io="\n [contenteditable],\n [tabindex],\n a[href],\n area[href],\n audio[controls],\n button,\n iframe,\n input,\n select,\n textarea,\n video[controls]\n",co=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function uo(e){return e.filter((e=>De.call(e,"tabindex")?"0"===Se.call(e,"tabindex"):!co.has(Qe.call(e))||!De.call(e,"disabled")))}const so=new WeakMap;function fo(e){return(!gl(e)||!fl(e))&&(tt.call(e,io)&&function(e){const{width:t,height:n}=Ce.call(e),l=t>0||n>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function po(){const e=this.getRootNode();if(e===this){const e=Re.call(this,io);return void(x(e)||e.focus.apply(e,arguments))}const t=e;if(t.activeElement===this)return;const n=_t(Pe.call(this,io));let l=!1;for(;!l&&0!==n.length;){const e=n.shift();e.focus.apply(e,arguments);l=e.getRootNode().activeElement===e}}function ho(e){const t=It(e),n=uo(_t(bt.call(t,io))),l=uo(_t(Pe.call(e,io))),o=l[0],r=l[l.length-1],a=y.call(n,e),i=a>-1?a:y.call(n,o),c=0===l.length?i+1:y.call(n,r)+1;return{prev:S.call(n,0,i),inner:l,next:S.call(n,c)}}function go(e,t){const n=fe.call(e,t);return n&Z?0:n&te?1:n&ne?2:-1}function mo(e){e.preventDefault(),e.stopPropagation()}function bo(e,t){Nt.call(e,"focusin",mo,!0),Nt.call(e,"focusout",mo,!0),t(),Mt.call(e,"focusin",mo,!0),Mt.call(e,"focusout",mo,!0)}function yo(e,t,n){const l=At(n),o=function(e,t){const n=e.length;if(n>0)for(let l=0;l<n;l+=1){const n=e[l];if(Lo(t.getRootNode(),n))return n}return null}(e,n);x(o)?bo(l,(()=>{t.blur()})):bo(l,(()=>{o.focus()}))}let Eo=!1;function wo(){Eo=!0}function vo(){Eo=!1}function To(){return!Eo}function No(e){if(Eo)return;const t=ut.call(e),n=ct.call(e);if(t!==n)return;const l=st.call(e);if(x(l))return;const o=ho(t);if(1===go(t,l)){const e=Lo.bind(null,t.getRootNode()),r=b.call(o.inner,e);if(_(r))yo(o.next,n,l);else{bo(At(r),(()=>{r.focus()}))}}else t===n&&yo(M.call(o.prev),n,l)}function Mo(e){if(Eo)return;const t=st.call(e);if(x(t))return;const n=ut.call(e),l=ho(n);if(-1!==y.call(l.inner,t))return;const o=ct.call(e),r=go(n,t);1===r&&yo(l.next,o,t),2===r&&yo(M.call(l.prev),o,t)}function Lo(e,t){if(!fo(t))return!1;const n=It(t);let l=t.getRootNode();for(;l!==n&&l!==e;){const e=l.host;if("-1"===Se.call(e,"tabindex"))return!1;l=e&&e.getRootNode()}return!0}function So(e){Wt.call(e,"focusin",No,!0)}function Co(e){const t=It(e);so.get(t)||(so.set(t,!0),Ft.call(t,"mousedown",wo,!0),Ft.call(t,"mouseup",(()=>{setTimeout(vo)}),!0),Ft.call(t,"dragstart",vo,!0))}function Ho(e){Wt.call(e,"focusin",Mo,!0)}const{blur:Oo,focus:Do}=HTMLElement.prototype;function Ro(){return fl(this)&&k(De.call(this,"tabindex"))?0:Ze.call(this)}function Po(e){const t=fl(this),n=Ze.call(this),l=De.call(this,"tabindex");et.call(this,e);const o=Ze.call(this),r=De.call(this,"tabindex"),a=n!==o;var i;(l&&(a||k(r))&&(-1===n&&Ho(this),0===n&&t&&So(this)),k(r))||(l&&r&&k(a)||(-1===o&&(Co(i=this),So(i),Ft.call(i,"focusin",Mo,!0)),0===o&&t&&function(e){Co(e),Ho(e),Ft.call(e,"focusin",No,!0)}(this)))}function Io(){if(fl(this)){const e=function(e){const t=It(e),n=pt.call(t);return x(n)||0!=(fe.call(e,n)&Z)?n:null}(this);if(!x(e))return void e.blur()}return Oo.call(this)}function Ao(){const e=To();e&&wo(),gl(this)&&fl(this)?po.call(this):(Do.apply(this,arguments),e&&vo())}function $o(e,t){e[j]=t;const n=Me.call(e);for(let e=0,l=n.length;e<l;e++)$o(n[e],t)}n(HTMLElement.prototype,{tabIndex:{get(){return gl(this)?Ro.call(this):Ze.call(this)},set(e){return gl(this)?Po.call(this,e):et.call(this,e)},enumerable:!0,configurable:!0},blur:{value(){if(gl(this))return Io.call(this);Oo.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value(){Ao.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==ke&&null!==We&&l(HTMLElement.prototype,"innerText",{get(){return ke.call(this)},set(e){We.call(this,e)},enumerable:!0,configurable:!0}),null!==Ge&&null!==je&&l(HTMLElement.prototype,"outerText",{get(){return Ge.call(this)},set(e){je.call(this,e)},enumerable:!0,configurable:!0}),l(Element.prototype,Y,{set(e){const t=this[X];_(t)||t===e||Ie.call(this,t),_(e)||Ae.call(this,e,""),this[X]=e},get(){return this[X]},configurable:!0}),l(Element.prototype,"$shadowStaticNode$",{set(e){if(e){$o(this,this[j])}this[q]=e},get(){return this[q]},configurable:!0});const Bo="$$DomManualKey$$",_o=function(){};let xo;const Fo={childList:!0};function ko(e,t,n){const l=ul(e);if(l!==t&&(sl(e,t),e instanceof Element)){if(function(e,t){e[Y]=t}(e,n),gl(e))return;_(l)&&Ht.call(xo,e,Fo);const o=Me.call(e);for(let e=0,l=o.length;e<l;e+=1)ko(o[e],t,n)}}function Wo(){return new Ct((e=>{R.call(e,(e=>{const{target:t,addedNodes:n,removedNodes:l}=e,o=ul(t),r=t[Y];for(let e=0,n=l.length;e<n;e+=1){const n=l[e];fe.call(t,n)&Q.DOCUMENT_POSITION_CONTAINED_BY||ko(n,_o,void 0)}for(let e=0,l=n.length;e<l;e+=1){const l=n[e];fe.call(t,l)&Q.DOCUMENT_POSITION_CONTAINED_BY&&ko(l,o,r)}}))}))}l(Element.prototype,"$domManual$",{set(e){this[Bo]=e,F(e)&&function(e){if(_(xo)&&(xo=Wo()),_(ul(e)))throw new Error("Invalid Element");Ht.call(xo,e,Fo)}(this)},get(){return this[Bo]},configurable:!0})}));
|
|
3
|
+
@license
|
|
4
|
+
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
5
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
6
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
7
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
8
|
+
Code distributed by Google as part of the polymer project is also
|
|
9
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
10
|
+
*/function Nl(e,t){if(x(e))return null;const n=Tl(e,!0),l=t;for(let e,t,o,r,a=0;a<l.length;a++)if(e=l[a],o=e instanceof Window?e:e.getRootNode(),o!==t&&(r=n.indexOf(o),t=o),!gl(o)||!_(r)&&r>-1)return e;return null}function Ml(e,t,n,l){const o=ht.call(t,n,l);return x(o)?o:Nl(e,Tl(o,!0))}e(bl,wl,{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return Sn(d.call(tn(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}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return function(e,t){const n=fl(e);return rn(n,_t(Pe.call(n,t)))}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return vn(function(e,t){const n=fl(e);return on(n,_t(Pe.call(n,t)))}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=Wn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=bn(e[n]);return t},set(e){const t=fl(this);Ye.call(t,e)}}},yl),vl.prototype=t(DocumentFragment.prototype,bl),l(vl,Symbol.hasInstance,{value:function(e){return U(e)&&!x(e)&&(Dt(e)||i(e)===vl.prototype)}}),Document.prototype.elementFromPoint=function(e,t){return Ml(this,this,e,t)},Document.prototype.elementsFromPoint=function(e,t){return Nn(this,this,e,t)},l(Document.prototype,"activeElement",{get(){let e=pt.call(this);if(x(e))return e;for(;!_(Kt(e));)if(e=Te.call(e),x(e))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),l(Document.prototype,"getElementById",{value(){const e=yt.apply(this,S.call(arguments));return x(e)?null:_(Kt(e))||Bt(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelector",{value(){const e=_t(bt.apply(this,S.call(arguments))),t=b.call(e,(e=>_(Kt(e))||Bt(e)));return _(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelectorAll",{value(){const e=_t(bt.apply(this,S.call(arguments)));return vn(d.call(e,(e=>_(Kt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByClassName",{value(){const e=_t(Et.apply(this,S.call(arguments)));return Sn(d.call(e,(e=>_(Kt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagName",{value(){const e=_t(wt.apply(this,S.call(arguments)));return Sn(d.call(e,(e=>_(Kt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagNameNS",{value(){const e=_t(vt.apply(this,S.call(arguments)));return Sn(d.call(e,(e=>_(Kt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),l(r(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=_t(Tt.apply(this,S.call(arguments)));return vn(d.call(e,(e=>_(Kt(e))||Bt(e))))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:vl,configurable:!0,writable:!0});const Ll=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const Sl=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function Cl(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!Ll)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",(t=>e=t)),t.click(),!Ll.get.call(e)})()&&(HTMLElement.prototype.click=function(){Ft.call(this,"click",Cl);try{Sl.value.call(this)}finally{Wt.call(this,"click",Cl)}}),!0!==new Event("test",{composed:!0}).composed&&function(){const n=e(t(null),{beforeinput:1,blur:1,click:1,compositionend:1,compositionstart:1,compositionupdate:1,copy:1,cut:1,dblclick:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,drag:1,dragend:1,dragenter:1,dragleave:1,dragover:1,dragstart:1,drop:1,focus:1,focusin:1,focusout:1,gotpointercapture:1,input:1,keydown:1,keypress:1,keyup:1,lostpointercapture:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,paste:1,pointercancel:1,pointerdown:1,pointerenter:1,pointerleave:1,pointermove:1,pointerout:1,pointerover:1,pointerup:1,touchcancel:1,touchend:1,touchmove:1,touchstart:1,wheel:1}),l=Event;function o(e,t){const n=new l(e,t),o=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>o,configurable:!0,enumerable:!0}}),n}o.prototype=l.prototype,o.AT_TARGET=l.AT_TARGET,o.BUBBLING_PHASE=l.BUBBLING_PHASE,o.CAPTURING_PHASE=l.CAPTURING_PHASE,o.NONE=l.NONE,window.Event=o,Object.defineProperties(Event.prototype,{composed:{get(){const{type:e}=this;return 1===n[e]},configurable:!0,enumerable:!0}})}();const Hl=CustomEvent;function Ol(e,t){const n=new Hl(e,t),l=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>l,configurable:!0,enumerable:!0}}),n}if(Ol.prototype=Hl.prototype,window.CustomEvent=Ol,"undefined"!=typeof ClipboardEvent){const l=e(t(null),{copy:1,cut:1,paste:1});n(ClipboardEvent.prototype,{composed:{get(){const{type:e}=this;return 1===l[e]},configurable:!0,enumerable:!0}})}(function(){const e="undefined"!=typeof HTMLIFrameElement,t="undefined"!=typeof Proxy&&F(Proxy.isCompat);return e&&t})()&&function(){const e=r(HTMLIFrameElement.prototype,"contentWindow"),{get:t}=e;e.get=function(){const e=t.call(this);return x(e)||_(Kt(this))?e:(n=e,{addEventListener(){return n.addEventListener.apply(n,arguments)},blur(){return n.blur.apply(n,arguments)},close(){return n.close.apply(n,arguments)},focus(){return n.focus.apply(n,arguments)},postMessage(){return n.postMessage.apply(n,arguments)},removeEventListener(){return n.removeEventListener.apply(n,arguments)},get closed(){return n.closed},get frames(){return n.frames},get length(){return n.length},get location(){return n.location},set location(e){n.location=e},get opener(){return n.opener},get parent(){return n.parent},get self(){return n.self},get top(){return n.top},get window(){return n.window}});var n},l(HTMLIFrameElement.prototype,"contentWindow",e)}();const Rl=MutationObserver,{disconnect:Dl,observe:Pl,takeRecords:Il}=Rl.prototype,Al="$$lwcObserverCallbackWrapper$$",$l="$$lwcNodeObservers$$",Bl=new WeakMap;function _l(e){return e[$l]}function xl(e){const{addedNodes:l,removedNodes:o,target:r,type:a}=e,i=t(MutationRecord.prototype);return n(i,{addedNodes:{get:()=>l,enumerable:!0,configurable:!0},removedNodes:{get:()=>o,enumerable:!0,configurable:!0},type:{get:()=>a,enumerable:!0,configurable:!0},target:{get:()=>r.shadowRoot,enumerable:!0,configurable:!0}}),i}function Fl(e,t){let n=t;for(;!x(n);){const t=_l(n);if(!_(t)&&(t[0]===e||-1!==y.call(t,e)))return!0;n=n.parentNode}return!1}function kl(e,t){return N.call(e,((e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:a}=n;if("childList"!==a||_(Yt(l)))Fl(t,l)&&T.call(e,n);else if(o.length>0){const r=o[0];if(Fl(t,r)){const o=_l(l);!o||o[0]!==t&&-1===y.call(o,t)?T.call(e,xl(n)):T.call(e,n)}}else{const o=l.shadowRoot,a=r[0];if(qt(l)===qt(a)&&Fl(t,l))T.call(e,n);else if(o){const l=_l(o);!l||l[0]!==t&&-1===y.call(l,t)||T.call(e,xl(n))}}return e}),[])}function Wl(e){const t=function(e){let t=e[Al];return _(t)&&(t=e[Al]=(t,n)=>{const l=kl(t,n);0!==l.length&&e.call(n,l,n)}),t}(e);return new Rl(t)}function Ul(e,t,n){if(arguments.length>1){const e=S.call(arguments);return e[1]=Kn(e[1]),Nt.apply(this,e)}return Nt.apply(this,arguments)}function Gl(e,t,n){if(arguments.length>1){const e=S.call(arguments);e[1]=Kn(e[1]),Mt.apply(this,e)}Mt.apply(this,arguments)}function jl(){const e=ct.call(this);if(!(e instanceof Q))return e;const t=It(e),n=Tl(e,this.composed),l=ut.call(this);if(!(l instanceof Q))return x(l)&&_(Kt(e))?e:Nl(t,n);if(l===t||l===t.body)return _(Kt(e))?e:Nl(t,n);let o=l,r=n;if(hl(l)){1===qn.get(this)&&(o=pl(l))}return hl(e)&&El.has(this)&&(r=Tl(pl(e),this.composed)),Nl(o,r)}function Kl(){const e=ct.call(this);if(!(e instanceof Q))return[];const t=Boolean(e.shadowRoot),n=(l=e,rl.has(l));var l;if(t&&!n)return ft.call(this);if(x(ut.call(this)))return[];let o=e;return hl(e)&&El.has(this)&&(o=pl(e)),Tl(o,this.composed)}function ql(e){const t=r(e.prototype,"relatedTarget").get;l(e.prototype,"relatedTarget",{get(){const e=t.call(this);if(x(e))return null;if(!(e instanceof Q&&Xt(e)))return e;let n=ut.call(this);return x(n)&&(n=It(e)),Nl(n,Tl(e,!0))},enumerable:!0,configurable:!0})}Wl.prototype=Rl.prototype,Wl.prototype.disconnect=function(){Dl.call(this);const e=Bl.get(this);_(e)||(D.call(e,(e=>{const t=e[$l];if(!_(t)){const e=y.call(t,this);-1!==e&&O.call(t,e,1)}})),e.length=0)},Wl.prototype.observe=function(e,t){let n=_l(e);var l;if(_(n)&&(n=[],l=n,e[$l]=l),-1===y.call(n,this)&&T.call(n,this),gl(e)&&(e=e.host),Bl.has(this)){const t=Bl.get(this);-1===y.call(t,e)&&T.call(t,e)}else Bl.set(this,[e]);return Pl.call(this,e,t)},Wl.prototype.takeRecords=function(){return kl(Il.call(this),this)},l(window,"MutationObserver",{value:Wl,configurable:!0,writable:!0}),n(xt,{addEventListener:{value:function(e,t,n){if(hl(this))return ll.apply(this,arguments);if(arguments.length<2){const e=S.call(arguments);return e.length>1&&(e[1]=Kn(e[1])),Ft.apply(this,e)}const l=Kn(t);return Ft.call(this,e,l,n)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(hl(this))return ol.apply(this,arguments);const l=S.call(arguments);arguments.length>1&&(l[1]=Kn(l[1])),Wt.apply(this,l),Wt.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&n(Window.prototype,{addEventListener:{value:Ul,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Gl,enumerable:!0,writable:!0,configurable:!0}}),n(Event.prototype,{target:{get:jl,enumerable:!0,configurable:!0},currentTarget:{get:function(){const e=ut.call(this);return x(e)?null:1===qn.get(this)?pl(e):e},enumerable:!0,configurable:!0},composedPath:{value:Kl,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:jl,enumerable:!0,configurable:!0},path:{get:Kl,enumerable:!0,configurable:!0}}),ql(FocusEvent),ql(MouseEvent);const Yl=c.call(Text.prototype,"assignedSlot")?r(Text.prototype,"assignedSlot").get:()=>null;let Xl;const Vl={childList:!0},zl=new WeakMap;function Ql(e){const t=_t(Me.call(e));return N.call(t,((e,t)=>(t instanceof Element&&Zt(t)?T.apply(e,Ql(t)):T.call(e,t),e)),[])}function Jl(){const e=we.call(this);if(e instanceof Element){const t=ot.call(e);if(Dt(t))return this instanceof Text?Yl.call(this):rt.call(this)}return!x(e)&&Zt(e)&&Kt(e)!==Kt(this)?e:null}function Zl(e,t){let n;const l=Kt(e);if(_(l))n=e instanceof HTMLBodyElement?d.call(t,(t=>_(Kt(t))||Bt(e))):S.call(t);else if(hl(e)){const l=Qt(e);n=x(l)?[]:Yt(e)?nn(e,t):on(l,t)}else n=d.call(t,(e=>qt(e)===l));return n}function eo(){const e=Wn(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=bn(e[n]);return t}function to(){return bn(this)}function no(){const e=Qt(this),t=x(e)?[]:on(e,an(this));return Sn(d.call(t,(e=>e instanceof Element)))}function lo(){return this.children.length}function oo(){return this.children[0]||null}function ro(){const{children:e}=this;return e.item(e.length-1)||null}n(HTMLSlotElement.prototype,{addEventListener:{value(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||zl.get(this)||(zl.set(this,!0),Xl||(Xl=new Ct((e=>{const t=[];D.call(e,(e=>{const{target:n}=e;-1===y.call(t,n)&&(T.call(t,n),kt.call(n,new CustomEvent("slotchange")))}))}))),Ht.call(Xl,this,Vl))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value(e){if(Xt(this)){const t=!_(e)&&F(e.flatten)?Ql(this):cn(this);return d.call(t,(e=>e instanceof Element))}return it.apply(this,S.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value(e){if(Xt(this)){return!_(e)&&F(e.flatten)?Ql(this):cn(this)}return at.apply(this,S.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get(){const e=Se.call(this,"name");return x(e)?"":e},set(e){Ae.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(Xt(this)){const e=Qt(this);return vn(x(e)?[]:on(e,an(this)))}return Me.call(this)},enumerable:!0,configurable:!0}}),n(Text.prototype,{assignedSlot:{get:Jl,enumerable:!0,configurable:!0}}),n(Element.prototype,{innerHTML:{get(){return Xt(this)||hl(this)?eo.call(this):qe.call(this)},set(e){Ye.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return Xt(this)||hl(this)?to.call(this):Ve.call(this)},set(e){ze.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return e["$$lwc-synthetic-mode"]?dl(this,e):$e.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(hl(this)){const e=pl(this);if("open"===e.mode)return e}return ot.call(this)},enumerable:!0,configurable:!0},children:{get(){return Cn(this)?no.call(this):nt.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Cn(this)?lo.call(this):Be.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Cn(this)?oo.call(this):_e.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Cn(this)?ro.call(this):xe.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:Jl,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"innerHTML")&&l(HTMLElement.prototype,"innerHTML",r(Element.prototype,"innerHTML")),c.call(HTMLElement.prototype,"outerHTML")&&l(HTMLElement.prototype,"outerHTML",r(Element.prototype,"outerHTML")),c.call(HTMLElement.prototype,"children")&&l(HTMLElement.prototype,"children",r(Element.prototype,"children")),n(Element.prototype,{querySelector:{value:function(){const e=_t(Pe.apply(this,S.call(arguments)));if(hl(this)){const t=Qt(this);return _(Yt(this))?x(t)?null:rn(t,e):ln(this,e)}if(Xt(this)){const t=Kt(this);if(_(t))return 0===e.length?null:e[0];{const n=b.call(e,(e=>qt(e)===t));return _(n)?null:n}}{if(!(this instanceof HTMLBodyElement)){const t=e[0];return _(t)?null:t}const t=b.call(e,(e=>_(Kt(e))||Bt(this)));return _(t)?null:t}},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){return vn(function(e,t){let n;if(hl(e)){const l=Qt(e);n=_(Yt(e))?x(l)?[]:on(l,t):nn(e,t)}else if(Xt(e)){const l=Kt(e);n=_(l)?S.call(t):d.call(t,(e=>qt(e)===l))}else n=e instanceof HTMLBodyElement?d.call(t,(t=>_(Kt(t))||Bt(e))):S.call(t);return n}(this,_t(Pe.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),n(Element.prototype,{getElementsByClassName:{value(){return Sn(Zl(this,_t(lt.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){return Sn(Zl(this,_t(He.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){return Sn(Zl(this,_t(Oe.apply(this,S.call(arguments)))))},writable:!0,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"getElementsByClassName")&&l(HTMLElement.prototype,"getElementsByClassName",r(Element.prototype,"getElementsByClassName"));const ao="\n [contenteditable],\n [tabindex],\n a[href],\n area[href],\n audio[controls],\n button,\n iframe,\n input,\n select,\n textarea,\n video[controls]\n",io=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function co(e){return e.filter((e=>Re.call(e,"tabindex")?"0"===Se.call(e,"tabindex"):!io.has(Qe.call(e))||!Re.call(e,"disabled")))}const uo=new WeakMap;function so(e){return(!hl(e)||!sl(e))&&(tt.call(e,ao)&&function(e){const{width:t,height:n}=Ce.call(e),l=t>0||n>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function fo(){const e=this.getRootNode();if(e===this){const e=De.call(this,ao);return void(x(e)||e.focus.apply(e,arguments))}const t=e;if(t.activeElement===this)return;const n=_t(Pe.call(this,ao));let l=!1;for(;!l&&0!==n.length;){const e=n.shift();e.focus.apply(e,arguments);l=e.getRootNode().activeElement===e}}function po(e){const t=It(e),n=co(_t(bt.call(t,ao))),l=co(_t(Pe.call(e,ao))),o=l[0],r=l[l.length-1],a=y.call(n,e),i=a>-1?a:y.call(n,o),c=0===l.length?i+1:y.call(n,r)+1;return{prev:S.call(n,0,i),inner:l,next:S.call(n,c)}}function ho(e,t){const n=fe.call(e,t);return n&Z?0:n&te?1:n&ne?2:-1}function go(e){e.preventDefault(),e.stopPropagation()}function mo(e,t){Nt.call(e,"focusin",go,!0),Nt.call(e,"focusout",go,!0),t(),Mt.call(e,"focusin",go,!0),Mt.call(e,"focusout",go,!0)}function bo(e,t,n){const l=At(n),o=function(e,t){const n=e.length;if(n>0)for(let l=0;l<n;l+=1){const n=e[l];if(Mo(t.getRootNode(),n))return n}return null}(e,n);x(o)?mo(l,(()=>{t.blur()})):mo(l,(()=>{o.focus()}))}let yo=!1;function Eo(){yo=!0}function wo(){yo=!1}function vo(){return!yo}function To(e){if(yo)return;const t=ut.call(e),n=ct.call(e);if(t!==n)return;const l=st.call(e);if(x(l))return;const o=po(t);if(1===ho(t,l)){const e=Mo.bind(null,t.getRootNode()),r=b.call(o.inner,e);if(_(r))bo(o.next,n,l);else{mo(At(r),(()=>{r.focus()}))}}else t===n&&bo(M.call(o.prev),n,l)}function No(e){if(yo)return;const t=st.call(e);if(x(t))return;const n=ut.call(e),l=po(n);if(-1!==y.call(l.inner,t))return;const o=ct.call(e),r=ho(n,t);1===r&&bo(l.next,o,t),2===r&&bo(M.call(l.prev),o,t)}function Mo(e,t){if(!so(t))return!1;const n=It(t);let l=t.getRootNode();for(;l!==n&&l!==e;){const e=l.host;if("-1"===Se.call(e,"tabindex"))return!1;l=e&&e.getRootNode()}return!0}function Lo(e){Wt.call(e,"focusin",To,!0)}function So(e){const t=It(e);uo.get(t)||(uo.set(t,!0),Ft.call(t,"mousedown",Eo,!0),Ft.call(t,"mouseup",(()=>{setTimeout(wo)}),!0),Ft.call(t,"dragstart",wo,!0))}function Co(e){Wt.call(e,"focusin",No,!0)}const{blur:Ho,focus:Oo}=HTMLElement.prototype;function Ro(){return sl(this)&&k(Re.call(this,"tabindex"))?0:Ze.call(this)}function Do(e){const t=sl(this),n=Ze.call(this),l=Re.call(this,"tabindex");et.call(this,e);const o=Ze.call(this),r=Re.call(this,"tabindex"),a=n!==o;var i;(l&&(a||k(r))&&(-1===n&&Co(this),0===n&&t&&Lo(this)),k(r))||(l&&r&&k(a)||(-1===o&&(So(i=this),Lo(i),Ft.call(i,"focusin",No,!0)),0===o&&t&&function(e){So(e),Co(e),Ft.call(e,"focusin",To,!0)}(this)))}function Po(){if(sl(this)){const e=function(e){const t=It(e),n=pt.call(t);return x(n)||0!=(fe.call(e,n)&Z)?n:null}(this);if(!x(e))return void e.blur()}return Ho.call(this)}function Io(){const e=vo();e&&Eo(),hl(this)&&sl(this)?fo.call(this):(Oo.apply(this,arguments),e&&wo())}function Ao(e,t){e[j]=t;const n=Me.call(e);for(let e=0,l=n.length;e<l;e++)Ao(n[e],t)}n(HTMLElement.prototype,{tabIndex:{get(){return hl(this)?Ro.call(this):Ze.call(this)},set(e){return hl(this)?Do.call(this,e):et.call(this,e)},enumerable:!0,configurable:!0},blur:{value(){if(hl(this))return Po.call(this);Ho.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value(){Io.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==ke&&null!==We&&l(HTMLElement.prototype,"innerText",{get(){return ke.call(this)},set(e){We.call(this,e)},enumerable:!0,configurable:!0}),null!==Ge&&null!==je&&l(HTMLElement.prototype,"outerText",{get(){return Ge.call(this)},set(e){je.call(this,e)},enumerable:!0,configurable:!0}),l(Element.prototype,Y,{set(e){const t=this[X];_(t)||t===e||Ie.call(this,t),_(e)||Ae.call(this,e,""),this[X]=e},get(){return this[X]},configurable:!0}),l(Element.prototype,"$shadowStaticNode$",{set(e){if(e){Ao(this,this[j])}this[q]=e},get(){return this[q]},configurable:!0});const $o="$$DomManualKey$$",Bo=function(){};let _o;const xo={childList:!0};function Fo(e,t,n){const l=cl(e);if(l!==t&&(ul(e,t),e instanceof Element)){if(function(e,t){e[Y]=t}(e,n),hl(e))return;_(l)&&Ht.call(_o,e,xo);const o=Me.call(e);for(let e=0,l=o.length;e<l;e+=1)Fo(o[e],t,n)}}function ko(){return new Ct((e=>{D.call(e,(e=>{const{target:t,addedNodes:n,removedNodes:l}=e,o=cl(t),r=t[Y];for(let e=0,n=l.length;e<n;e+=1){const n=l[e];fe.call(t,n)&Q.DOCUMENT_POSITION_CONTAINED_BY||Fo(n,Bo,void 0)}for(let e=0,l=n.length;e<l;e+=1){const l=n[e];fe.call(t,l)&Q.DOCUMENT_POSITION_CONTAINED_BY&&Fo(l,o,r)}}))}))}l(Element.prototype,"$domManual$",{set(e){this[$o]=e,F(e)&&function(e){if(_(_o)&&(_o=ko()),_(cl(e)))throw new Error("Invalid Element");Ht.call(_o,e,xo)}(this)},get(){return this[$o]},configurable:!0})}));
|