lwc
Version:
Lightning Web Components (LWC)
11 lines (10 loc) • 44.8 kB
JavaScript
!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:i,getPrototypeOf:a,hasOwnProperty:c,isFrozen:s,keys:u,seal:f,setPrototypeOf:h}=Object,{filter:p,find:g,indexOf:d,join:m,map:b,push:E,reduce:y,reverse:N,slice:T,splice:w,unshift:v,forEach:L}=Array.prototype,{charCodeAt:O,replace:S,slice:M,toLowerCase:C}=String.prototype;function _(e){return void 0===e}function A(e){return null===e}function R(e){return!0===e}function H(e){return!1===e}function D(e){return"function"==typeof e}const P=(()=>"Symbol(x)"===Symbol("x").toString())();function I(e,t){return P?Symbol(e):`$$lwc-${t}-${e}$$`}const $=new WeakMap;function B(e,n,l){let o=$.get(e);_(o)&&(o=t(null),$.set(e,o)),o[n]=l}function x(e,t){const n=$.get(e);if(!_(n))return n[t]}const{DOCUMENT_POSITION_CONTAINED_BY:k,DOCUMENT_POSITION_CONTAINS:F,DOCUMENT_POSITION_PRECEDING:W,DOCUMENT_POSITION_FOLLOWING:U,ELEMENT_NODE:K,TEXT_NODE:j,CDATA_SECTION_NODE:G,PROCESSING_INSTRUCTION_NODE:q,COMMENT_NODE:X,DOCUMENT_FRAGMENT_NODE:V}=Node,{appendChild:Y,cloneNode:z,compareDocumentPosition:J,insertBefore:Q,removeChild:Z,replaceChild:ee,hasChildNodes:te}=Node.prototype,{contains:ne}=HTMLElement.prototype,le=r(Node.prototype,"firstChild").get,oe=r(Node.prototype,"lastChild").get,re=r(Node.prototype,"textContent").get,ie=r(Node.prototype,"parentNode").get,ae=r(Node.prototype,"ownerDocument").get,ce=c.call(Node.prototype,"parentElement")?r(Node.prototype,"parentElement").get:r(HTMLElement.prototype,"parentElement").get,se=r(Node.prototype,"textContent").set,ue=c.call(Node.prototype,"childNodes")?r(Node.prototype,"childNodes").get:r(HTMLElement.prototype,"childNodes").get,fe=c.call(Node.prototype,"isConnected")?r(Node.prototype,"isConnected").get:function(){const e=ae.call(this);return null===e||0!=(J.call(e,this)&k)},{getAttribute:he,getBoundingClientRect:pe,getElementsByTagName:ge,getElementsByTagNameNS:de,hasAttribute:me,querySelector:be,querySelectorAll:Ee,removeAttribute:ye,setAttribute:Ne}=Element.prototype,Te=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")},we=r(Element.prototype,"childElementCount").get,ve=r(Element.prototype,"firstElementChild").get,Le=r(Element.prototype,"lastElementChild").get,Oe=r(HTMLElement.prototype,"innerText"),Se=Oe?Oe.get:null,Me=Oe?Oe.set:null,Ce=r(HTMLElement.prototype,"outerText"),_e=Ce?Ce.get:null,Ae=Ce?Ce.set:null,Re=c.call(Element.prototype,"innerHTML")?r(Element.prototype,"innerHTML"):r(HTMLElement.prototype,"innerHTML"),He=Re.get,De=Re.set,Pe=c.call(Element.prototype,"outerHTML")?r(Element.prototype,"outerHTML"):r(HTMLElement.prototype,"outerHTML"),Ie=Pe.get,$e=Pe.set,Be=r(Element.prototype,"tagName").get,xe=r(HTMLElement.prototype,"tabIndex"),ke=xe.get,Fe=xe.set,We=c.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,Ue=c.call(Element.prototype,"children")?r(Element.prototype,"children").get:r(HTMLElement.prototype,"children").get,{getElementsByClassName:Ke}=HTMLElement.prototype,je=c.call(Element.prototype,"shadowRoot")?r(Element.prototype,"shadowRoot").get:()=>null;let Ge,qe;"undefined"!=typeof HTMLSlotElement?(Ge=HTMLSlotElement.prototype.assignedNodes,qe=HTMLSlotElement.prototype.assignedElements):(Ge=()=>{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")},qe=()=>{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 Xe=r(Event.prototype,"target").get,Ve=r(Event.prototype,"currentTarget").get,Ye=r(FocusEvent.prototype,"relatedTarget").get,ze=r(Document.prototype,"activeElement").get,Je=c.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,Qe=r(Document.prototype,"defaultView").get,{createComment:Ze,querySelectorAll:et,getElementById:tt,getElementsByClassName:nt,getElementsByTagName:lt,getElementsByTagNameNS:ot}=Document.prototype,{getElementsByName:rt}=HTMLDocument.prototype,{addEventListener:it,removeEventListener:at,getComputedStyle:ct,getSelection:st}=window,ut=MutationObserver,ft=ut.prototype.observe;let ht=null;"undefined"!=typeof ShadowRoot&&(ht=ShadowRoot);const pt=A(ht)?()=>!1:e=>e instanceof ht;const{createElement:gt}=Document.prototype;function dt(e){const t=ae.call(e);return null===t?e:t}function mt(e){const t=dt(e),n=Qe.call(t);if(null===n)throw new TypeError;return n}let bt;function Et(e){if(_(bt)){const t=dt(e);bt=t.body&&"temporary-bypass"===he.call(t.body,"data-global-patching-bypass")}return R(bt)}function yt(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{}h(e,HTMLElement.constructor),h(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,l(Document.prototype,"createElement",{value:function(t,n){const l=gt.apply(this,T.call(arguments));return 4===t.length&&115===O.call(t,0)&&108===O.call(t,1)&&111===O.call(t,2)&&116===O.call(t,3)&&h(l,e.prototype),l}})}();const{assign:Nt,create:Tt,defineProperties:wt,defineProperty:vt,freeze:Lt,getOwnPropertyDescriptor:Ot,getOwnPropertyNames:St,getPrototypeOf:Mt,hasOwnProperty:Ct,isFrozen:_t,keys:At,seal:Rt,setPrototypeOf:Ht}=Object,Dt=function(){if("object"==typeof globalThis)return globalThis;let e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}();Dt.lwcRuntimeFlags||Object.defineProperty(Dt,"lwcRuntimeFlags",{value:Tt(null)});const Pt=Dt.lwcRuntimeFlags,It="undefined"!=typeof EventTarget?EventTarget.prototype:Node.prototype,{addEventListener:$t,dispatchEvent:Bt,removeEventListener:xt}=It,kt=new WeakMap,Ft=new WeakMap;function Wt(e,t,n){if(t===n)return!0;let l=Ft.get(e);return _(l)&&(l=e.composedPath(),Ft.set(e,l)),l.includes(n)}function Ut(e){if(!function(e){return D(e)||"object"==typeof e&&!A(e)&&D(e.handleEvent)}(e))return e;let t=kt.get(e);return _(t)&&(t=function(t){const n=Ve.call(t),{composed:l}=t;let o;if(Pt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)o=!(bl.has(t)&&H(l));else{o=Wt(t,zt(t),n)}if(o)return D(e)?e.call(this,t):e.handleEvent&&e.handleEvent(t)},kt.set(e,t)),t}var Kt;!function(e){e[e.CUSTOM_ELEMENT_LISTENER=0]="CUSTOM_ELEMENT_LISTENER",e[e.SHADOW_ROOT_LISTENER=1]="SHADOW_ROOT_LISTENER",e[e.UNKNOWN_LISTENER=2]="UNKNOWN_LISTENER"}(Kt||(Kt={}));const jt=new WeakMap;function Gt(e,t){return!!(J.call(e,t)&k)}const qt={composed:!1};function Xt(e,t){let n=e.getRootNode(t);return"mode"in n&&"delegatesFocus"in n&&(n=ul(n)),n}const Vt=new WeakMap;function Yt(e){let n=Vt.get(e);return _(n)&&(n=t(null),Vt.set(e,n)),n}function zt(e){var t;return null!==(t=bl.get(e))&&void 0!==t?t:Xe.call(e)}const Jt=new WeakMap;function Qt(e){if(!D(e))throw new TypeError;let t=Jt.get(e);return _(t)&&(t=function(t){let n,l=Ve.call(t);if(pt(l)||(l=fl(l)),Pt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)n=function(e){const{composed:t}=e,n=Xe.call(e),l=Ve.call(e);if(n===l)return bl.get(e)===fl(n);if(R(t))return!0;if(R(bl.has(e)))return!1;const o=Xt(n,qt),r=l;return Gt(o,r)||o===r}(t);else{n=Wt(t,zt(t),l)}n&&e.call(l,t)},t.placement=Kt.SHADOW_ROOT_LISTENER,Jt.set(e,t)),t}const Zt=new WeakMap;function en(e){if(!D(e))throw new TypeError;let t=Zt.get(e);return _(t)&&(t=function(t){const n=Ve.call(t);let l;if(Pt.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE)l=function(e){const{composed:t}=e;if(R(t))return!0;if(bl.has(e))return!1;const n=Xe.call(e),l=Ve.call(e);if(n===l)return!0;const o=Xt(n,qt);return Gt(o,l)}(t);else{l=Wt(t,zt(t),n)}l&&e.call(n,t)},t.placement=Kt.CUSTOM_ELEMENT_LISTENER,Zt.set(e,t)),t}function tn(e){let t=!1,n=!1;const{type:o,stopImmediatePropagation:r,stopPropagation:i}=e,a=Yt(Ve.call(e))[o];l(e,"stopImmediatePropagation",{value(){t=!0,r.call(e)},writable:!0,enumerable:!0,configurable:!0}),l(e,"stopPropagation",{value(){n=!0,i.call(e)},writable:!0,enumerable:!0,configurable:!0});const c=T.call(a);function s(n){L.call(c,(l=>{H(t)&&l.placement===n&&-1!==d.call(a,l)&&l.call(void 0,e)}))}jt.set(e,Kt.SHADOW_ROOT_LISTENER),s(Kt.SHADOW_ROOT_LISTENER),H(t)&&H(n)&&(jt.set(e,Kt.CUSTOM_ELEMENT_LISTENER),s(Kt.CUSTOM_ELEMENT_LISTENER)),jt.set(e,Kt.UNKNOWN_LISTENER)}function nn(e,t,n){const l=Yt(e);let o=l[t];_(o)&&(o=l[t]=[]),-1===d.call(o,n)&&(0===o.length&&$t.call(e,t,tn),E.call(o,n))}function ln(e,t,n){let l,o;_(o=Yt(e)[t])||-1===(l=d.call(o,n))||(w.call(o,l,1),0===o.length&&xt.call(e,t,tn))}function on(e,t,n){if(D(t)){nn(this,e,en(t))}}function rn(e,t,n){if(D(t)){ln(this,e,en(t))}}const an="$$HostElementKey$$",cn="$$ShadowedNodeKey$$";function sn(e,t,n){const l=e;{const{value:e}=n;l[t]=e}}function un(e){return e[an]}function fn(e){let t,n=e;for(;!A(n);){if(t=un(n),!_(t))return t;n=ie.call(n)}}function hn(e){return e[cn]}function pn(e){return!_(un(e))}function gn(e){let t=ce.call(e);for(;!A(t)&&bn(t);)e=t,t=ce.call(e);return e}function dn(e,t){const n=hn(e);let l=t instanceof Element?t:ce.call(t);for(;!A(l)&&l!==e;){const t=fn(l),o=ce.call(l);if(t===n)return bn(l);if(o===e)return!1;if(A(o)||fn(o)===t)l=o;else{if(!bn(o))return!1;if(l=mn(gn(o)),!A(l)){if(l===e)return!0;if(fn(l)===n)return!0}}}return!1}function mn(e){if(!(e instanceof Node))return null;const t=fn(e);if(_(t))return null;let n=e;for(;!A(n)&&hn(n)!==t;)n=ie.call(n);return A(n)?null:n}function bn(e){return e instanceof HTMLSlotElement}function En(e,t){const n=fn(t);return _(n)||hn(e)===n}function yn(e){const t=ul(e);return wn(t,yt(ue.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)&&dn(e,o)&&E.call(n,o)}return n}function Tn(e,t){for(let n=0,l=t.length;n<l;n+=1){const l=t[n];if(!En(e,l)&&dn(e,l))return l}return null}function wn(e,t){const n=[];for(let l=0,o=t.length;l<o;l+=1){const o=t[l];En(e,o)&&E.call(n,o)}return n}function vn(e,t){for(let n=0,l=t.length;n<l;n+=1)if(En(e,t[n]))return t[n];return null}function Ln(e){let t;if(!hl(e)&&!bn(e))return t=ue.call(e),yt(t);if(hl(e)){const t=yt(Ee.call(e,"slot")),n=al(fl(e));return y.call(t,((e,t)=>(n===al(t)&&E.apply(e,On(t)),e)),[])}{t=yt(ue.call(e));const n=al(e);return y.call(t,((e,t)=>(n===al(t)&&E.call(e,t),e)),[])}}function On(e){const t=mn(e);if(A(t))return[];const n=yt(ue.call(e));return y.call(n,((e,n)=>(En(t,n)||E.call(e,n),e)),[])}function Sn(e){switch(e.nodeType){case K:{const t=Ln(e);let n="";for(let e=0,l=t.length;e<l;e+=1){const l=t[e];l.nodeType!==X&&(n+=Sn(l))}return n}default:return e.nodeValue}}const Mn=I("StaticNodeListItems","synthetic-shadow");function Cn(){throw new TypeError("Illegal constructor")}function _n(e){const n=t(Cn.prototype);return B(n,Mn,e),L.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}Cn.prototype=t(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:Cn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return x(this,Mn).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,t){L.call(x(this,Mn),e,t)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return b.call(x(this,Mn),((e,t)=>[t,e]))}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return b.call(x(this,Mn),((e,t)=>t))}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return x(this,Mn)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const t=x(this,Mn);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]"}}),h(Cn,NodeList);const An=I("StaticHTMLCollectionItems","synthetic-shadow");function Rn(){throw new TypeError("Illegal constructor")}function Hn(e){const n=t(Rn.prototype);return B(n,An,e),L.call(e,((e,t)=>{l(n,t,{value:e,enumerable:!0,configurable:!0})})),n}Rn.prototype=t(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Rn},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return x(this,An).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(""===e)return null;const t=x(this,An);for(let n=0,l=t.length;n<l;n++){const n=t[l];if(e===he.call(n,"id")||e===he.call(n,"name"))return n}return null}},[Symbol.toStringTag]:{configurable:!0,get:()=>"HTMLCollection"},toString:{writable:!0,configurable:!0,value:()=>"[object HTMLCollection]"}}),h(Rn,HTMLCollection);const Dn=/[&\u00A0"]/g,Pn=/[&\u00A0<>]/g,{replace:In,toLowerCase:$n}=String.prototype;function Bn(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function xn(e){return In.call(e,Dn,Bn)}const kn=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),Fn=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function Wn(e){switch(e.nodeType){case K:{const{attributes:t}=e,n=Be.call(e);let l="<"+$n.call(n);for(let e,n=0;e=t[n];n++)l+=" "+e.name+'="'+xn(e.value)+'"';return l+=">",kn.has(n)?l:l+function(e){let t="";const n=Ln(e);for(let e=0,l=n.length;e<l;e+=1)t+=Wn(n[e]);return t}(e)+"</"+$n.call(n)+">"}case j:{const{data:n,parentNode:l}=e;return l instanceof Element&&Fn.has(Be.call(l))?n:(t=n,In.call(t,Pn,Bn))}case G:return`<!CDATA[[${e.data}]]>`;case q:return`<?${e.target} ${e.data}?>`;case X:return`\x3c!--${e.data}--\x3e`;default:return""}var t}function Un(e){return bn(e)||hl(e)}function Kn(e,t){const n=mn(e);if(t===n)return fl(n);if(t instanceof Element){if(fn(e)===fn(t))return t;if(!A(n)&&bn(t)){const e=mn(t);if(!A(e)&&En(n,e))return e}}return null}function jn(){return nl(this).length>0}function Gn(){return nl(this)[0]||null}function qn(){const e=nl(this);return e[e.length-1]||null}function Xn(){return Sn(this)}function Vn(){const e=ie.call(this);return A(e)?e:Kn(this,e)}function Yn(){const e=ie.call(this);if(A(e))return null;const t=Kn(this,e);return t instanceof Element?t:null}function zn(e){return this.getRootNode()===e?10:un(this)!==un(e)?35:J.call(this,e)}function Jn(e){return null!=e&&un(this)===un(e)&&0!=(J.call(this,e)&k)}function Qn(e){const t=z.call(this,!1);if(!e)return t;const n=nl(this);for(let e=0,l=n.length;e<l;e+=1)t.appendChild(n[e].cloneNode(!0));return t}function Zn(){if(hl(this)){const e=mn(this);return _n(A(e)?[]:wn(e,Ln(this)))}return ue.call(this)}const el=Node.prototype.getRootNode,tl=_(el)?function(){let e,t=this;for(;!A(e=ie.call(t));)t=e;return t}:el;n(Node.prototype,{firstChild:{get(){return Un(this)?Gn.call(this):le.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Un(this)?qn.call(this):oe.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return Pt.ENABLE_NODE_PATCH?Et(this)?re.call(this):Xn.call(this):pn(this)||hl(this)?Xn.call(this):re.call(this)},set:function(e){se.call(this,e)},enumerable:!0,configurable:!0},parentNode:{get(){return pn(this)?Vn.call(this):ie.call(this)},enumerable:!0,configurable:!0},parentElement:{get(){return pn(this)?Yn.call(this):ce.call(this)},enumerable:!0,configurable:!0},childNodes:{get(){return Un(this)?Zn.call(this):ue.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Un(this)?jn.call(this):te.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value(e){return Et(this)?J.call(this,e):zn.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value(e){return this===e||(Pt.ENABLE_NODE_PATCH?Et(this)?ne.call(this,e):Jn.call(this,e):null!=e&&(pn(this)||hl(this)?Jn.call(this,e):ne.call(this,e)))},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return Pt.ENABLE_NODE_PATCH?R(e)?Et(this)?z.call(this,e):Qn.call(this,e):z.call(this,e):pn(this)||hl(this)?Qn.call(this,e):z.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:function(e){return R(!_(e)&&!!e.composed)?tl.call(this,e):function(e){const t=mn(e);return A(t)?tl.call(e):fl(t)}(this)},enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get(){return fe.call(this)}}});const nl=function(e){return e.childNodes};c.call(HTMLElement.prototype,"contains")&&l(HTMLElement.prototype,"contains",r(Node.prototype,"contains")),c.call(HTMLElement.prototype,"parentElement")&&l(HTMLElement.prototype,"parentElement",r(Node.prototype,"parentElement"));const ll=I("shadowRecord","synthetic-shadow"),{createDocumentFragment:ol}=document;function rl(e){const t=x(e,ll);if(_(t))throw new TypeError;return t}const il="$shadowResolver$";function al(e){return e.$shadowResolver$}function cl(e,t){e.$shadowResolver$=t}function sl(e){return rl(e).delegatesFocus}function ul(e){return rl(e).host}function fl(e){return rl(e).shadowRoot}function hl(e){return!_(x(e,ll))}l(Node.prototype,il,{set(e){var t,n;this.$$ShadowResolverKey$$=e,t=this,n=e.nodeKey,sn(t,an,{value:n,configurable:!0})},get(){return this.$$ShadowResolverKey$$},configurable:!0,enumerable:!0});let pl=0;function gl(e,t){if(!_(x(e,ll)))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=dt(e),r=ol.call(o),i={mode:n,delegatesFocus:!!l,host:e,shadowRoot:r};B(r,ll,i),B(e,ll,i);const a=()=>r,c=a.nodeKey=pl++;return sn(e,cn,{value:c}),cl(r,a),h(r,El.prototype),r}const dl={constructor:{writable:!0,configurable:!0,value:El},toString:{writable:!0,configurable:!0,value:()=>"[object ShadowRoot]"}},ml={activeElement:{enumerable:!0,configurable:!0,get(){const e=ul(this),t=dt(e),n=ze.call(t);if(A(n))return n;if(0==(J.call(e,n)&k))return null;let l=n;for(;!En(e,l);)l=ce.call(l);return bn(l)?null:l}},delegatesFocus:{configurable:!0,get(){return rl(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){const n=dt(ul(this)),l=Je.call(n,e,t);return A(l)?l:Nl(this,yl(l,!0))}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,t){throw new Error('Disallowed method "elementsFromPoint" on ShadowRoot.')}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get(){return ul(this)}},mode:{configurable:!0,get(){return rl(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}},bl=new WeakMap;function El(){throw new TypeError("Illegal constructor")}function yl(e,t){const n=[];let l;if(e instanceof Window)l=e;else{if(!(e instanceof Node))return n;l=e.getRootNode()}let o,r=e;for(;!A(r);)if(n.push(r),r instanceof Element||r instanceof Text){const e=r.assignedSlot;r=A(e)?r.parentNode:e}else r=(r instanceof El||pt(r))&&(t||r!==l)?r.host:r instanceof Node?r.parentNode:null;return o=e instanceof Window?e.document:dt(e),n[n.length-1]===o&&n.push(window),n}
/**
@license
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/function Nl(e,t){if(A(e))return null;const n=yl(e,!0),l=t;for(let e,t,o,r,i=0;i<l.length;i++)if(e=l[i],o=e instanceof Window?e:e.getRootNode(),o!==t&&(r=n.indexOf(o),t=o),!(o instanceof El)||!_(r)&&r>-1)return e;return null}e(dl,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return Q.call(ul(this),e,t),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return Z.call(ul(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return Y.call(ul(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,t){return ee.call(ul(this),e,t),t}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){D(n)&&nn(ul(e),t,Qt(n))}(this,e,t)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value(e){return bl.set(e,this),Bt.apply(ul(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,t,n){!function(e,t,n,l){D(n)&&ln(ul(e),t,Qt(n))}(this,e,t)}},baseURI:{enumerable:!0,configurable:!0,get(){return ul(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return _n(yn(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=ul(this);return this===e?0:this.contains(e)?20:J.call(t,e)&k?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const t=ul(this);return 0!=(J.call(t,e)&k)&&En(t,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return nl(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=nl(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return nl(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return fe.call(ul(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 ul(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get:()=>null},parentNode:{enumerable:!0,configurable:!0,get:()=>null},textContent:{enumerable:!0,configurable:!0,get(){const e=nl(this);let t="";for(let n=0,l=e.length;n<l;n+=1){const l=e[n];l.nodeType!==X&&(t+=Sn(l))}return t},set(e){const t=ul(this);se.call(t,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){return!_(e)&&R(e.composed)?ul(this).getRootNode(e):this}}},{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return Hn(p.call(yn(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=ul(e);return vn(n,yt(Ee.call(n,t)))}(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return _n(function(e,t){const n=ul(e);return wn(n,yt(Ee.call(n,t)))}(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=nl(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=Wn(e[n]);return t},set(e){const t=ul(this);De.call(t,e)}}},ml),El.prototype=t(DocumentFragment.prototype,dl),Document.prototype.elementFromPoint=function(e,t){const n=Je.call(this,e,t);return A(n)?n:Nl(this,yl(n,!0))},l(Document.prototype,"activeElement",{get(){let e=ze.call(this);if(A(e))return e;for(;!_(un(e));)if(e=ce.call(e),A(e))return null;return"HTML"===e.tagName&&(e=this.body),e},enumerable:!0,configurable:!0}),l(Document.prototype,"getElementById",{value(){const e=tt.apply(this,T.call(arguments));return A(e)?null:_(un(e))||Et(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelector",{value(){const e=yt(et.apply(this,T.call(arguments))),t=g.call(e,(e=>_(un(e))||Et(e)));return _(t)?null:t},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"querySelectorAll",{value(){const e=yt(et.apply(this,T.call(arguments)));return _n(p.call(e,(e=>_(un(e))||Et(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByClassName",{value(){const e=yt(nt.apply(this,T.call(arguments)));return Hn(p.call(e,(e=>_(un(e))||Et(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagName",{value(){const e=yt(lt.apply(this,T.call(arguments)));return Hn(p.call(e,(e=>_(un(e))||Et(e))))},writable:!0,enumerable:!0,configurable:!0}),l(Document.prototype,"getElementsByTagNameNS",{value(){const e=yt(ot.apply(this,T.call(arguments)));return Hn(p.call(e,(e=>_(un(e))||Et(e))))},writable:!0,enumerable:!0,configurable:!0}),l(r(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=yt(rt.apply(this,T.call(arguments)));return _n(p.call(e,(e=>_(un(e))||Et(e))))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:El,configurable:!0,writable:!0});const Tl=Object.getOwnPropertyDescriptor(Event.prototype,"composed");const wl=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function vl(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get:()=>!0})}(function(){if(!Tl)return!1;let e=new Event("click");const t=document.createElement("button");return t.addEventListener("click",(t=>e=t)),t.click(),!Tl.get.call(e)})()&&(HTMLElement.prototype.click=function(){$t.call(this,"click",vl);try{wl.value.call(this)}finally{xt.call(this,"click",vl)}}),!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 Ll=CustomEvent;function Ol(e,t){const n=new Ll(e,t),l=!(!t||!t.composed);return Object.defineProperties(n,{composed:{get:()=>l,configurable:!0,enumerable:!0}}),n}if(Ol.prototype=Ll.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}})}"undefined"!=typeof HTMLIFrameElement&&function(){const e=r(HTMLIFrameElement.prototype,"contentWindow"),{get:t}=e;e.get=function(){const e=t.call(this);return A(e)||_(un(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 Sl=MutationObserver,{disconnect:Ml,observe:Cl,takeRecords:_l}=Sl.prototype,Al="$$lwcObserverCallbackWrapper$$",Rl=new WeakMap;function Hl(e){return e.$$lwcNodeObservers$$}function Dl(e){const{addedNodes:l,removedNodes:o,target:r,type:i}=e,a=t(MutationRecord.prototype);return n(a,{addedNodes:{get:()=>l,enumerable:!0,configurable:!0},removedNodes:{get:()=>o,enumerable:!0,configurable:!0},type:{get:()=>i,enumerable:!0,configurable:!0},target:{get:()=>r.shadowRoot,enumerable:!0,configurable:!0}}),a}function Pl(e,t){let n=t;for(;!A(n);){const t=Hl(n);if(!_(t)&&(t[0]===e||-1!==d.call(t,e)))return!0;n=n.parentNode}return!1}function Il(e,t){return y.call(e,((e,n)=>{const{target:l,addedNodes:o,removedNodes:r,type:i}=n;if("childList"!==i||_(hn(l)))Pl(t,l)&&E.call(e,n);else if(o.length>0){const r=o[0];if(Pl(t,r)){const o=Hl(l);!o||o[0]!==t&&-1===d.call(o,t)?E.call(e,Dl(n)):E.call(e,n)}}else{const o=l.shadowRoot,i=r[0];if(fn(l)===fn(i)&&Pl(t,l))E.call(e,n);else if(o){const l=Hl(o);!l||l[0]!==t&&-1===d.call(l,t)||E.call(e,Dl(n))}}return e}),[])}function $l(e){const t=function(e){let t=e[Al];return _(t)&&(t=e[Al]=(t,n)=>{const l=Il(t,n);0!==l.length&&e.call(n,l,n)}),t}(e);return new Sl(t)}function Bl(e,t,n){if(arguments.length>1){const e=T.call(arguments);return e[1]=Ut(e[1]),it.apply(this,e)}return it.apply(this,arguments)}function xl(e,t,n){if(arguments.length>1){const e=T.call(arguments);e[1]=Ut(e[1]),at.apply(this,e)}at.apply(this,arguments)}function kl(){const e=Xe.call(this);if(!(e instanceof Node))return e;const t=dt(e),n=yl(e,this.composed),l=Ve.call(this);if(!(l instanceof Node))return A(l)&&_(un(e))?e:Nl(t,n);if(l===t||l===t.body)return _(un(e))?e:Nl(t,n);let o=l,r=n;if(hl(l)){jt.get(this)===Kt.SHADOW_ROOT_LISTENER&&(o=fl(l))}return hl(e)&&bl.has(this)&&(r=yl(fl(e),this.composed)),Nl(o,r)}function Fl(){const e=Xe.call(this),t=Ve.call(this);if(!(e instanceof Node))return[];if(A(t))return[];let n=e;return hl(e)&&bl.has(this)&&(n=fl(e)),yl(n,this.composed)}function Wl(e){const t=r(e.prototype,"relatedTarget").get;l(e.prototype,"relatedTarget",{get(){const e=t.call(this);if(A(e))return null;if(!(e instanceof Node&&pn(e)))return e;let n=Ve.call(this);return A(n)&&(n=dt(e)),Nl(n,yl(e,!0))},enumerable:!0,configurable:!0})}let Ul;$l.prototype=Sl.prototype,$l.prototype.disconnect=function(){Ml.call(this);const e=Rl.get(this);_(e)||(L.call(e,(e=>{const t=e.$$lwcNodeObservers$$;if(!_(t)){const e=d.call(t,this);-1!==e&&w.call(t,e,1)}})),e.length=0)},$l.prototype.observe=function(e,t){let n=Hl(e);var l;if(_(n)&&(n=[],l=n,e.$$lwcNodeObservers$$=l),-1===d.call(n,this)&&E.call(n,this),e instanceof El&&(e=e.host),Rl.has(this)){const t=Rl.get(this);-1===d.call(t,e)&&E.call(t,e)}else Rl.set(this,[e]);return Cl.call(this,e,t)},$l.prototype.takeRecords=function(){return Il(_l.call(this),this)},l(window,"MutationObserver",{value:$l,configurable:!0,writable:!0}),n(It,{addEventListener:{value:function(e,t,n){if(hl(this))return on.apply(this,arguments);const l=T.call(arguments);return l.length>1&&(l[1]=Ut(l[1])),$t.apply(this,l)},enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:function(e,t,n){if(hl(this))return rn.apply(this,arguments);const l=T.call(arguments);arguments.length>1&&(l[1]=Ut(l[1])),xt.apply(this,l),xt.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),"undefined"==typeof EventTarget&&n(Window.prototype,{addEventListener:{value:Bl,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:xl,enumerable:!0,writable:!0,configurable:!0}}),n(Event.prototype,{target:{get:kl,enumerable:!0,configurable:!0},currentTarget:{get:function(){const e=Ve.call(this);return A(e)?null:jt.get(this)===Kt.SHADOW_ROOT_LISTENER?fl(e):e},enumerable:!0,configurable:!0},composedPath:{value:Fl,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:kl,enumerable:!0,configurable:!0},path:{get:Fl,enumerable:!0,configurable:!0}}),Wl(FocusEvent),Wl(MouseEvent);const Kl={childList:!0},jl=I("slotchange","synthetic-shadow");function Gl(e){const t=yt(ue.call(e));return y.call(t,((e,t)=>(t instanceof Element&&bn(t)?E.apply(e,Gl(t)):E.call(e,t),e)),[])}function ql(){const e=ie.call(this);return A(e)||!bn(e)||fn(e)===fn(this)?null:e}function Xl(e,t){let n;const l=un(e);if(_(l))n=e instanceof HTMLBodyElement?p.call(t,(t=>_(un(t))||Et(e))):T.call(t);else if(hl(e)){const l=mn(e);n=A(l)?[]:hn(e)?Nn(e,t):wn(l,t)}else n=p.call(t,(e=>fn(e)===l));return n}var Vl;function Yl(){const e=nl(this);let t="";for(let n=0,l=e.length;n<l;n+=1)t+=Wn(e[n]);return t}function zl(){return Wn(this)}function Jl(){const e=mn(this),t=A(e)?[]:wn(e,Ln(this));return Hn(p.call(t,(e=>e instanceof Element)))}function Ql(){return this.children.length}function Zl(){return this.children[0]||null}function eo(){const{children:e}=this;return e.item(e.length-1)||null}function to(e,t,n){let l;if(hl(e)){const n=mn(e);l=A(n)?[]:hn(e)?Nn(e,t):wn(n,t)}else if(pn(e)){const o=un(e);if(_(o))if(n===Vl.Enabled){const n=fn(e);l=p.call(t,(e=>fn(e)===n))}else l=T.call(t);else l=p.call(t,(e=>fn(e)===o))}else l=e instanceof HTMLBodyElement||n===Vl.Enabled?p.call(t,(t=>_(un(t))||Et(e))):T.call(t);return l}n(HTMLSlotElement.prototype,{addEventListener:{value(e,t,n){HTMLElement.prototype.addEventListener.call(this,e,t,n),"slotchange"!==e||x(this,jl)||(B(this,jl,!0),Ul||(Ul=new ut((e=>{const t=[];L.call(e,(e=>{const{target:n}=e;-1===d.call(t,n)&&(E.call(t,n),Bt.call(n,new CustomEvent("slotchange")))}))}))),ft.call(Ul,this,Kl))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value(e){if(pn(this)){const t=!_(e)&&R(e.flatten)?Gl(this):On(this);return p.call(t,(e=>e instanceof Element))}return qe.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value(e){if(pn(this)){return!_(e)&&R(e.flatten)?Gl(this):On(this)}return Ge.apply(this,T.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get(){const e=he.call(this,"name");return A(e)?"":e},set(e){Ne.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(pn(this)){const e=mn(this);return _n(A(e)?[]:wn(e,Ln(this)))}return ue.call(this)},enumerable:!0,configurable:!0}}),n(Text.prototype,{assignedSlot:{get:ql,enumerable:!0,configurable:!0}}),function(e){e[e.Disabled=0]="Disabled",e[e.Enabled=1]="Enabled"}(Vl||(Vl={})),n(Element.prototype,{innerHTML:{get(){return Pt.ENABLE_ELEMENT_PATCH?Et(this)?He.call(this):Yl.call(this):pn(this)||hl(this)?Yl.call(this):He.call(this)},set(e){De.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return Pt.ENABLE_ELEMENT_PATCH?Et(this)?Ie.call(this):zl.call(this):pn(this)||hl(this)?zl.call(this):Ie.call(this)},set(e){$e.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:function(e){return R(e["$$lwc-synthetic-mode$$"])?gl(this,e):Te.call(this,e)},enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:function(){if(hl(this)){const e=fl(this);if("open"===e.mode)return e}return je.call(this)},enumerable:!0,configurable:!0},children:{get(){return Un(this)?Jl.call(this):Ue.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Un(this)?Ql.call(this):we.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Un(this)?Zl.call(this):ve.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Un(this)?eo.call(this):Le.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:ql,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=yt(Ee.apply(this,T.call(arguments)));if(hl(this)){const t=mn(this);return A(t)?null:hn(this)?Tn(this,e):vn(t,e)}if(pn(this)){const t=un(this);if(_(t)){if(!Pt.ENABLE_NODE_LIST_PATCH)return 0===e.length?null:e[0];const t=fn(this),n=g.call(e,(e=>fn(e)===t));return _(n)?null:n}{const n=g.call(e,(e=>fn(e)===t));return _(n)?null:n}}{if(!(Pt.ENABLE_NODE_LIST_PATCH||this instanceof HTMLBodyElement)){const t=e[0];return _(t)?null:t}const t=g.call(e,(e=>_(un(e))||Et(this)));return _(t)?null:t}},writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){const e=yt(Ee.apply(this,T.call(arguments)));if(!Pt.ENABLE_NODE_LIST_PATCH){return _n(to(this,e,Vl.Disabled))}return _n(to(this,e,Vl.Enabled))},writable:!0,enumerable:!0,configurable:!0}}),n(Element.prototype,{getElementsByClassName:{value(){const e=yt(Ke.apply(this,T.call(arguments)));if(!Pt.ENABLE_HTML_COLLECTIONS_PATCH)return Hn(Xl(this,e));return Hn(to(this,e,Vl.Enabled))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){const e=yt(ge.apply(this,T.call(arguments)));if(!Pt.ENABLE_HTML_COLLECTIONS_PATCH)return Hn(Xl(this,e));return Hn(to(this,e,Vl.Enabled))},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){const e=yt(de.apply(this,T.call(arguments)));if(!Pt.ENABLE_HTML_COLLECTIONS_PATCH)return Hn(Xl(this,e));return Hn(to(this,e,Vl.Enabled))},writable:!0,enumerable:!0,configurable:!0}}),c.call(HTMLElement.prototype,"getElementsByClassName")&&l(HTMLElement.prototype,"getElementsByClassName",r(Element.prototype,"getElementsByClassName"));const no="\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",lo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function oo(e){return e.filter((e=>me.call(e,"tabindex")?"0"===he.call(e,"tabindex"):!lo.has(Be.call(e))||!me.call(e,"disabled")))}const ro=I("DidAddMouseEventListeners","synthetic-shadow");function io(e){return(!hl(e)||!sl(e))&&(We.call(e,no)&&function(e){const{width:t,height:n}=pe.call(e),l=t>0||n>0,o="AREA"===e.tagName;return(l||o)&&"hidden"!==getComputedStyle(e).visibility}(e))}function ao(){const e=this.getRootNode();if(e===this){const e=be.call(this,no);return void(A(e)||e.focus.apply(e,arguments))}const t=e;if(t.activeElement===this)return;const n=yt(Ee.call(this,no));let l=!1;for(;!l&&0!==n.length;){const e=n.shift();e.focus.apply(e,arguments);l=e.getRootNode().activeElement===e}}function co(e){const t=dt(e),n=oo(yt(et.call(t,no))),l=oo(yt(Ee.call(e,no))),o=l[0],r=l[l.length-1],i=d.call(n,e),a=i>-1?i:d.call(n,o),c=0===l.length?a+1:d.call(n,r)+1;return{prev:T.call(n,0,a),inner:l,next:T.call(n,c)}}function so(e,t){const n=J.call(e,t);return n&k?0:n&W?1:n&U?2:-1}function uo(e){e.preventDefault(),e.stopPropagation()}function fo(e,t){it.call(e,"focusin",uo,!0),it.call(e,"focusout",uo,!0),t(),at.call(e,"focusin",uo,!0),at.call(e,"focusout",uo,!0)}function ho(e,t,n){const l=mt(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(No(t.getRootNode(),n))return n}return null}(e,n);A(o)?fo(l,(()=>{t.blur()})):fo(l,(()=>{o.focus()}))}let po=!1;function go(){po=!0}function mo(){po=!1}function bo(){return!po}function Eo(e){if(po)return;const t=Ve.call(e),n=Xe.call(e);if(t!==n)return;const l=Ye.call(e);if(A(l))return;const o=co(t);if(1===so(t,l)){const e=No.bind(null,t.getRootNode()),r=g.call(o.inner,e);if(_(r))ho(o.next,n,l);else{fo(mt(r),(()=>{r.focus()}))}}else t===n&&ho(N.call(o.prev),n,l)}function yo(e){if(po)return;const t=Ye.call(e);if(A(t))return;const n=Ve.call(e),l=co(n);if(-1!==d.call(l.inner,t))return;const o=Xe.call(e),r=so(n,t);1===r&&ho(l.next,o,t),2===r&&ho(N.call(l.prev),o,t)}function No(e,t){if(!io(t))return!1;const n=dt(t);let l=t.getRootNode();for(;l!==n&&l!==e;){const e=l.host;if("-1"===he.call(e,"tabindex"))return!1;l=e&&e.getRootNode()}return!0}function To(e){xt.call(e,"focusin",Eo,!0)}function wo(e){const t=dt(e);x(t,ro)||(B(t,ro,!0),$t.call(t,"mousedown",go,!0),$t.call(t,"mouseup",(()=>{setTimeout(mo)}),!0),$t.call(t,"dragstart",mo,!0))}function vo(e){xt.call(e,"focusin",yo,!0)}function Lo(e){const t=mt(e);return ct.call(t,e)}function Oo(e){const t=mt(e);return st.call(t)}function So(e){return"visible"===e.visibility&&"none"!==e.display}function Mo(e){const t=[];if((e=>e.nodeType===K)(e)){const{tagName:n}=e,l=Lo(e);if("OPTION"===n)return[1,Se.call(e),1];if("TEXTAREA"===n)return[];{const n=e.childNodes;for(let e=0,l=n.length;e<l;e++)E.apply(t,Mo(n[e]))}if(!So(l))return"SELECT"===n||"DATALIST"===n?[]:t;"BR"===n&&t.push("\n");const{display:o}=l;"table-cell"===o&&t.push("\t"),"table-row"===o&&t.push("\n"),"P"===n&&(t.unshift(2),t.push(2)),"block"!==o&&"table-caption"!==o&&"flex"!==o&&"table"!==o||(t.unshift(1),t.push(1))}else(e=>e.nodeType===j)(e)&&t.push(function(e){const t=Oo(e);if(null===t)return e.textContent||"";const n=document.createRange();n.selectNodeContents(e);const l=n.getBoundingClientRect();if(l.height<=0||l.width<=0)return"";t.removeAllRanges(),t.addRange(n);return t.toString()||e.textContent||""}(e));return t}function Co(e){if(!So(Lo(e)))return Sn(e)||"";const t=function(e){const t=mt(e),n=Oo(e);if(null===n)return null;const l=[];for(let e=0;e<n.rangeCount;e++)l.push(n.getRangeAt(e));const o={element:e,onselect:t.onselect,onselectstart:t.onselectstart,onselectionchange:t.onselectionchange,ranges:l};return t.onselect=null,t.onselectstart=null,t.onselectionchange=null,o}(e),n=[],l=e.childNodes;for(let e=0,t=l.length;e<t;e++)E.apply(n,Mo(l[e]));!function(e){if(null===e)return;const{element:t,onselect:n,onselectstart:l,onselectionchange:o,ranges:r}=e,i=mt(t),a=Oo(t);a.removeAllRanges();for(let e=0;e<r.length;e++)a.addRange(r[e]);i.onselect=n,i.onselectstart=l,i.onselectionchange=o}(t);let o="",r=0;for(let e=0,t=n.length;e<t;e++){const t=n[e];if("string"==typeof t){if(r>0){for(let e=0;e<r;e++)o+="\n";r=0}t.length>0&&(o+=t)}else{if(0==o.length)continue;t>r&&(r=t)}}return o}const{blur:_o,focus:Ao}=HTMLElement.prototype;function Ro(){return sl(this)&&H(me.call(this,"tabindex"))?0:ke.call(this)}function Ho(e){const t=sl(this),n=ke.call(this),l=me.call(this,"tabindex");Fe.call(this,e);const o=ke.call(this),r=me.call(this,"tabindex"),i=n!==o;var a;(l&&(i||H(r))&&(-1===n&&vo(this),0===n&&t&&To(this)),H(r))||(l&&r&&H(i)||(-1===o&&(wo(a=this),To(a),$t.call(a,"focusin",yo,!0)),0===o&&t&&function(e){wo(e),vo(e),$t.call(e,"focusin",Eo,!0)}(this)))}function Do(){if(sl(this)){const e=function(e){const t=dt(e),n=ze.call(t);return A(n)||0!=(J.call(e,n)&k)?n:null}(this);if(!A(e))return void e.blur()}return _o.call(this)}function Po(){const e=bo();e&&go(),hl(this)&&sl(this)?ao.call(this):(Ao.apply(this,arguments),e&&mo())}n(HTMLElement.prototype,{tabIndex:{get(){return hl(this)?Ro.call(this):ke.call(this)},set(e){return hl(this)?Ho.call(this,e):Fe.call(this,e)},enumerable:!0,configurable:!0},blur:{value(){if(hl(this))return Do.call(this);_o.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value(){Po.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),null!==Se&&null!==Me&&l(HTMLElement.prototype,"innerText",{get(){return Pt.ENABLE_INNER_OUTER_TEXT_PATCH?Pt.ENABLE_ELEMENT_PATCH?Et(this)?Se.call(this):Co(this):pn(this)||hl(this)?Co(this):Se.call(this):Se.call(this)},set(e){Me.call(this,e)},enumerable:!0,configurable:!0}),null!==_e&&null!==Ae&&l(HTMLElement.prototype,"outerText",{get(){return Pt.ENABLE_INNER_OUTER_TEXT_PATCH?Pt.ENABLE_ELEMENT_PATCH?Et(this)?_e.call(this):Co(this):pn(this)||hl(this)?Co(this):_e.call(this):_e.call(this)},set(e){Ae.call(this,e)},enumerable:!0,configurable:!0});const Io="$shadowToken$";l(Element.prototype,Io,{set(e){const t=this.$$ShadowTokenKey$$;_(t)||t===e||ye.call(this,t),_(e)||Ne.call(this,e,""),this.$$ShadowTokenKey$$=e},get(){return this.$$ShadowTokenKey$$},configurable:!0});const $o=function(){};let Bo;const xo={childList:!0};function ko(e,t,n){const l=al(e);if(l!==t&&(cl(e,t),e instanceof Element)){if(function(e,t){e.$shadowToken$=t}(e,n),hl(e))return;_(l)&&ft.call(Bo,e,xo);const o=ue.call(e);for(let e=0,l=o.length;e<l;e+=1)ko(o[e],t,n)}}function Fo(e){if(_(Bo)&&(Bo=new ut((e=>{L.call(e,(e=>{const{target:t,addedNodes:n,removedNodes:l}=e,o=al(t),r=t.$shadowToken$;for(let e=0,n=l.length;e<n;e+=1){const n=l[e];J.call(t,n)&Node.DOCUMENT_POSITION_CONTAINED_BY||ko(n,$o,void 0)}for(let e=0,l=n.length;e<l;e+=1){const l=n[e];J.call(t,l)&Node.DOCUMENT_POSITION_CONTAINED_BY&&ko(l,o,r)}}))}))),_(al(e)))throw new Error("Invalid Element");ft.call(Bo,e,xo)}l(Element.prototype,"$domManual$",{set(e){this.$$DomManualKey$$=e,R(e)&&Fo(this)},get(){return this.$$DomManualKey$$},configurable:!0})}));