@nylas/react 1.1.0-canary.7 → 1.1.0-canary.9

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.
Files changed (45) hide show
  1. package/dist/elements/index.js +92 -0
  2. package/dist/elements/index.js.map +1 -0
  3. package/dist/elements/react-component-lib/createComponent.js +65 -0
  4. package/dist/elements/react-component-lib/createComponent.js.map +1 -0
  5. package/dist/elements/react-component-lib/createOverlayComponent.js +98 -0
  6. package/dist/elements/react-component-lib/createOverlayComponent.js.map +1 -0
  7. package/dist/elements/react-component-lib/index.js +3 -0
  8. package/dist/elements/react-component-lib/index.js.map +1 -0
  9. package/dist/elements/react-component-lib/interfaces.js +2 -0
  10. package/dist/elements/react-component-lib/interfaces.js.map +1 -0
  11. package/dist/elements/react-component-lib/utils/attachProps.js +92 -0
  12. package/dist/elements/react-component-lib/utils/attachProps.js.map +1 -0
  13. package/dist/elements/react-component-lib/utils/case.js +7 -0
  14. package/dist/elements/react-component-lib/utils/case.js.map +1 -0
  15. package/dist/elements/react-component-lib/utils/dev.js +13 -0
  16. package/dist/elements/react-component-lib/utils/dev.js.map +1 -0
  17. package/dist/elements/react-component-lib/utils/index.js +31 -0
  18. package/dist/elements/react-component-lib/utils/index.js.map +1 -0
  19. package/dist/index.js +29 -0
  20. package/dist/index.js.map +1 -0
  21. package/package.json +8 -12
  22. package/dist/core-js-38e53e34.cjs +0 -4
  23. package/dist/core-js-a9d3b6e1.js +0 -3297
  24. package/dist/dom-68f08be9.cjs +0 -15
  25. package/dist/dom-86e17616.js +0 -664
  26. package/dist/elements-dc5b338e-6078b875.js +0 -28031
  27. package/dist/elements-dc5b338e-96e197ca.cjs +0 -16516
  28. package/dist/flow-40ff9cea-6f8c30e2.cjs +0 -9
  29. package/dist/flow-40ff9cea-ee70fdf5.js +0 -505
  30. package/dist/focus-visible-e8093c16-018ffd63.cjs +0 -1
  31. package/dist/focus-visible-e8093c16-ab01d60a.js +0 -84
  32. package/dist/index-1fd24ccf.js +0 -3582
  33. package/dist/index-823fdc6f.cjs +0 -36
  34. package/dist/react.cjs +0 -1
  35. package/dist/react.js +0 -98
  36. /package/dist/{elements → types/elements}/index.d.ts +0 -0
  37. /package/dist/{elements → types/elements}/react-component-lib/createComponent.d.ts +0 -0
  38. /package/dist/{elements → types/elements}/react-component-lib/createOverlayComponent.d.ts +0 -0
  39. /package/dist/{elements → types/elements}/react-component-lib/index.d.ts +0 -0
  40. /package/dist/{elements → types/elements}/react-component-lib/interfaces.d.ts +0 -0
  41. /package/dist/{elements → types/elements}/react-component-lib/utils/attachProps.d.ts +0 -0
  42. /package/dist/{elements → types/elements}/react-component-lib/utils/case.d.ts +0 -0
  43. /package/dist/{elements → types/elements}/react-component-lib/utils/dev.d.ts +0 -0
  44. /package/dist/{elements → types/elements}/react-component-lib/utils/index.d.ts +0 -0
  45. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
@@ -1,15 +0,0 @@
1
- "use strict";(function(){var f=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function h(e){var t=f.has(e);return e=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e),!t&&e}function s(e){var t=e.isConnected;if(t!==void 0)return t;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function m(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function p(e,t,n){n=n===void 0?new Set:n;for(var r=e;r;){if(r.nodeType===Node.ELEMENT_NODE){var o=r;t(o);var i=o.localName;if(i==="link"&&o.getAttribute("rel")==="import"){if(r=o.import,r instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)p(r,t,n);r=m(e,o);continue}else if(i==="template"){r=m(e,o);continue}if(o=o.__CE_shadowRoot)for(o=o.firstChild;o;o=o.nextSibling)p(o,t,n)}r=r.firstChild?r.firstChild:m(e,r)}}function d(e,t,n){e[t]=n}function _(){this.a=new Map,this.g=new Map,this.c=[],this.f=[],this.b=!1}function ot(e,t,n){e.a.set(t,n),e.g.set(n.constructorFunction,n)}function rt(e,t){e.b=!0,e.c.push(t)}function it(e,t){e.b=!0,e.f.push(t)}function O(e,t){e.b&&p(t,function(n){return C(e,n)})}function C(e,t){if(e.b&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.c.length;n++)e.c[n](t);for(n=0;n<e.f.length;n++)e.f[n](t)}}function w(e,t){var n=[];for(p(t,function(o){return n.push(o)}),t=0;t<n.length;t++){var r=n[t];r.__CE_state===1?e.connectedCallback(r):S(e,r)}}function v(e,t){var n=[];for(p(t,function(o){return n.push(o)}),t=0;t<n.length;t++){var r=n[t];r.__CE_state===1&&e.disconnectedCallback(r)}}function E(e,t,n){n=n===void 0?{}:n;var r=n.u||new Set,o=n.i||function(l){return S(e,l)},i=[];if(p(t,function(l){if(l.localName==="link"&&l.getAttribute("rel")==="import"){var c=l.import;c instanceof Node&&(c.__CE_isImportDocument=!0,c.__CE_hasRegistry=!0),c&&c.readyState==="complete"?c.__CE_documentLoadHandled=!0:l.addEventListener("load",function(){var a=l.import;if(!a.__CE_documentLoadHandled){a.__CE_documentLoadHandled=!0;var u=new Set(r);u.delete(a),E(e,a,{u,i:o})}})}else i.push(l)},r),e.b)for(t=0;t<i.length;t++)C(e,i[t]);for(t=0;t<i.length;t++)o(i[t])}function S(e,t){if(t.__CE_state===void 0){var n=t.ownerDocument;if((n.defaultView||n.__CE_isImportDocument&&n.__CE_hasRegistry)&&(n=e.a.get(t.localName))){n.constructionStack.push(t);var r=n.constructorFunction;try{try{if(new r!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{n.constructionStack.pop()}}catch(l){throw t.__CE_state=2,l}if(t.__CE_state=1,t.__CE_definition=n,n.attributeChangedCallback)for(n=n.observedAttributes,r=0;r<n.length;r++){var o=n[r],i=t.getAttribute(o);i!==null&&e.attributeChangedCallback(t,o,null,i,null)}s(t)&&e.connectedCallback(t)}}}_.prototype.connectedCallback=function(e){var t=e.__CE_definition;t.connectedCallback&&t.connectedCallback.call(e)},_.prototype.disconnectedCallback=function(e){var t=e.__CE_definition;t.disconnectedCallback&&t.disconnectedCallback.call(e)},_.prototype.attributeChangedCallback=function(e,t,n,r,o){var i=e.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(t)&&i.attributeChangedCallback.call(e,t,n,r,o)};function P(e){var t=document;this.c=e,this.a=t,this.b=void 0,E(this.c,this.a),this.a.readyState==="loading"&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function F(e){e.b&&e.b.disconnect()}P.prototype.f=function(e){var t=this.a.readyState;for(t!=="interactive"&&t!=="complete"||F(this),t=0;t<e.length;t++)for(var n=e[t].addedNodes,r=0;r<n.length;r++)E(this.c,n[r])};function lt(){var e=this;this.b=this.a=void 0,this.c=new Promise(function(t){e.b=t,e.a&&t(e.a)})}function I(e){if(e.a)throw Error("Already resolved.");e.a=void 0,e.b&&e.b(void 0)}function y(e){this.c=!1,this.a=e,this.j=new Map,this.f=function(t){return t()},this.b=!1,this.g=[],this.o=new P(e)}y.prototype.l=function(e,t){var n=this;if(!(t instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!h(e))throw new SyntaxError("The element name '"+e+"' is not valid.");if(this.a.a.get(e))throw Error("A custom element with name '"+e+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var r=function(g){var N=o[g];if(N!==void 0&&!(N instanceof Function))throw Error("The '"+g+"' callback must be a function.");return N},o=t.prototype;if(!(o instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=r("connectedCallback"),l=r("disconnectedCallback"),c=r("adoptedCallback"),a=r("attributeChangedCallback"),u=t.observedAttributes||[]}catch{return}finally{this.c=!1}t={localName:e,constructorFunction:t,connectedCallback:i,disconnectedCallback:l,adoptedCallback:c,attributeChangedCallback:a,observedAttributes:u,constructionStack:[]},ot(this.a,e,t),this.g.push(t),this.b||(this.b=!0,this.f(function(){return st(n)}))},y.prototype.i=function(e){E(this.a,e)};function st(e){if(e.b!==!1){e.b=!1;for(var t=e.g,n=[],r=new Map,o=0;o<t.length;o++)r.set(t[o].localName,[]);for(E(e.a,document,{i:function(c){if(c.__CE_state===void 0){var a=c.localName,u=r.get(a);u?u.push(c):e.a.a.get(a)&&n.push(c)}}}),o=0;o<n.length;o++)S(e.a,n[o]);for(;0<t.length;){var i=t.shift();o=i.localName,i=r.get(i.localName);for(var l=0;l<i.length;l++)S(e.a,i[l]);(o=e.j.get(o))&&I(o)}}}y.prototype.get=function(e){if(e=this.a.a.get(e))return e.constructorFunction},y.prototype.m=function(e){if(!h(e))return Promise.reject(new SyntaxError("'"+e+"' is not a valid custom element name."));var t=this.j.get(e);return t||(t=new lt,this.j.set(e,t),this.a.a.get(e)&&!this.g.some(function(n){return n.localName===e})&&I(t)),t.c},y.prototype.s=function(e){F(this.o);var t=this.f;this.f=function(n){return e(function(){return t(n)})}},window.CustomElementRegistry=y,y.prototype.define=y.prototype.l,y.prototype.upgrade=y.prototype.i,y.prototype.get=y.prototype.get,y.prototype.whenDefined=y.prototype.m,y.prototype.polyfillWrapFlushCallback=y.prototype.s;var z=window.Document.prototype.createElement,U=window.Document.prototype.createElementNS,ct=window.Document.prototype.importNode,at=window.Document.prototype.prepend,ut=window.Document.prototype.append,pt=window.DocumentFragment.prototype.prepend,ft=window.DocumentFragment.prototype.append,B=window.Node.prototype.cloneNode,T=window.Node.prototype.appendChild,W=window.Node.prototype.insertBefore,j=window.Node.prototype.removeChild,V=window.Node.prototype.replaceChild,L=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),$=window.Element.prototype.attachShadow,M=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),x=window.Element.prototype.getAttribute,G=window.Element.prototype.setAttribute,J=window.Element.prototype.removeAttribute,D=window.Element.prototype.getAttributeNS,K=window.Element.prototype.setAttributeNS,Q=window.Element.prototype.removeAttributeNS,Y=window.Element.prototype.insertAdjacentElement,Z=window.Element.prototype.insertAdjacentHTML,ht=window.Element.prototype.prepend,dt=window.Element.prototype.append,k=window.Element.prototype.before,mt=window.Element.prototype.after,X=window.Element.prototype.replaceWith,q=window.Element.prototype.remove,gt=window.HTMLElement,H=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),tt=window.HTMLElement.prototype.insertAdjacentElement,et=window.HTMLElement.prototype.insertAdjacentHTML,nt=new function(){};function yt(){var e=b;window.HTMLElement=function(){function t(){var n=this.constructor,r=e.g.get(n);if(!r)throw Error("The custom element being constructed was not registered with `customElements`.");var o=r.constructionStack;if(o.length===0)return o=z.call(document,r.localName),Object.setPrototypeOf(o,n.prototype),o.__CE_state=1,o.__CE_definition=r,C(e,o),o;r=o.length-1;var i=o[r];if(i===nt)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[r]=nt,Object.setPrototypeOf(i,n.prototype),C(e,i),i}return t.prototype=gt.prototype,Object.defineProperty(t.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:t}),t}()}function R(e,t,n){function r(o){return function(i){for(var l=[],c=0;c<arguments.length;++c)l[c]=arguments[c];c=[];for(var a=[],u=0;u<l.length;u++){var g=l[u];if(g instanceof Element&&s(g)&&a.push(g),g instanceof DocumentFragment)for(g=g.firstChild;g;g=g.nextSibling)c.push(g);else c.push(g)}for(o.apply(this,l),l=0;l<a.length;l++)v(e,a[l]);if(s(this))for(l=0;l<c.length;l++)a=c[l],a instanceof Element&&w(e,a)}}n.h!==void 0&&(t.prepend=r(n.h)),n.append!==void 0&&(t.append=r(n.append))}function vt(){var e=b;d(Document.prototype,"createElement",function(t){if(this.__CE_hasRegistry){var n=e.a.get(t);if(n)return new n.constructorFunction}return t=z.call(this,t),C(e,t),t}),d(Document.prototype,"importNode",function(t,n){return t=ct.call(this,t,!!n),this.__CE_hasRegistry?E(e,t):O(e,t),t}),d(Document.prototype,"createElementNS",function(t,n){if(this.__CE_hasRegistry&&(t===null||t==="http://www.w3.org/1999/xhtml")){var r=e.a.get(n);if(r)return new r.constructorFunction}return t=U.call(this,t,n),C(e,t),t}),R(e,Document.prototype,{h:at,append:ut})}function wt(){function e(n,r){Object.defineProperty(n,"textContent",{enumerable:r.enumerable,configurable:!0,get:r.get,set:function(o){if(this.nodeType===Node.TEXT_NODE)r.set.call(this,o);else{var i=void 0;if(this.firstChild){var l=this.childNodes,c=l.length;if(0<c&&s(this)){i=Array(c);for(var a=0;a<c;a++)i[a]=l[a]}}if(r.set.call(this,o),i)for(o=0;o<i.length;o++)v(t,i[o])}}})}var t=b;d(Node.prototype,"insertBefore",function(n,r){if(n instanceof DocumentFragment){var o=Array.prototype.slice.apply(n.childNodes);if(n=W.call(this,n,r),s(this))for(r=0;r<o.length;r++)w(t,o[r]);return n}return o=s(n),r=W.call(this,n,r),o&&v(t,n),s(this)&&w(t,n),r}),d(Node.prototype,"appendChild",function(n){if(n instanceof DocumentFragment){var r=Array.prototype.slice.apply(n.childNodes);if(n=T.call(this,n),s(this))for(var o=0;o<r.length;o++)w(t,r[o]);return n}return r=s(n),o=T.call(this,n),r&&v(t,n),s(this)&&w(t,n),o}),d(Node.prototype,"cloneNode",function(n){return n=B.call(this,!!n),this.ownerDocument.__CE_hasRegistry?E(t,n):O(t,n),n}),d(Node.prototype,"removeChild",function(n){var r=s(n),o=j.call(this,n);return r&&v(t,n),o}),d(Node.prototype,"replaceChild",function(n,r){if(n instanceof DocumentFragment){var o=Array.prototype.slice.apply(n.childNodes);if(n=V.call(this,n,r),s(this))for(v(t,r),r=0;r<o.length;r++)w(t,o[r]);return n}o=s(n);var i=V.call(this,n,r),l=s(this);return l&&v(t,r),o&&v(t,n),l&&w(t,n),i}),L&&L.get?e(Node.prototype,L):rt(t,function(n){e(n,{enumerable:!0,configurable:!0,get:function(){for(var r=[],o=0;o<this.childNodes.length;o++){var i=this.childNodes[o];i.nodeType!==Node.COMMENT_NODE&&r.push(i.textContent)}return r.join("")},set:function(r){for(;this.firstChild;)j.call(this,this.firstChild);r!=null&&r!==""&&T.call(this,document.createTextNode(r))}})})}function Et(e){function t(r){return function(o){for(var i=[],l=0;l<arguments.length;++l)i[l]=arguments[l];l=[];for(var c=[],a=0;a<i.length;a++){var u=i[a];if(u instanceof Element&&s(u)&&c.push(u),u instanceof DocumentFragment)for(u=u.firstChild;u;u=u.nextSibling)l.push(u);else l.push(u)}for(r.apply(this,i),i=0;i<c.length;i++)v(e,c[i]);if(s(this))for(i=0;i<l.length;i++)c=l[i],c instanceof Element&&w(e,c)}}var n=Element.prototype;k!==void 0&&(n.before=t(k)),k!==void 0&&(n.after=t(mt)),X!==void 0&&d(n,"replaceWith",function(r){for(var o=[],i=0;i<arguments.length;++i)o[i]=arguments[i];i=[];for(var l=[],c=0;c<o.length;c++){var a=o[c];if(a instanceof Element&&s(a)&&l.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)i.push(a);else i.push(a)}for(c=s(this),X.apply(this,o),o=0;o<l.length;o++)v(e,l[o]);if(c)for(v(e,this),o=0;o<i.length;o++)l=i[o],l instanceof Element&&w(e,l)}),q!==void 0&&d(n,"remove",function(){var r=s(this);q.call(this),r&&v(e,this)})}function _t(){function e(o,i){Object.defineProperty(o,"innerHTML",{enumerable:i.enumerable,configurable:!0,get:i.get,set:function(l){var c=this,a=void 0;if(s(this)&&(a=[],p(this,function(N){N!==c&&a.push(N)})),i.set.call(this,l),a)for(var u=0;u<a.length;u++){var g=a[u];g.__CE_state===1&&r.disconnectedCallback(g)}return this.ownerDocument.__CE_hasRegistry?E(r,this):O(r,this),l}})}function t(o,i){d(o,"insertAdjacentElement",function(l,c){var a=s(c);return l=i.call(this,l,c),a&&v(r,c),s(l)&&w(r,c),l})}function n(o,i){function l(c,a){for(var u=[];c!==a;c=c.nextSibling)u.push(c);for(a=0;a<u.length;a++)E(r,u[a])}d(o,"insertAdjacentHTML",function(c,a){if(c=c.toLowerCase(),c==="beforebegin"){var u=this.previousSibling;i.call(this,c,a),l(u||this.parentNode.firstChild,this)}else if(c==="afterbegin")u=this.firstChild,i.call(this,c,a),l(this.firstChild,u);else if(c==="beforeend")u=this.lastChild,i.call(this,c,a),l(u||this.firstChild,null);else if(c==="afterend")u=this.nextSibling,i.call(this,c,a),l(this.nextSibling,u);else throw new SyntaxError("The value provided ("+String(c)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.")})}var r=b;$&&d(Element.prototype,"attachShadow",function(o){o=$.call(this,o);var i=r;if(i.b&&!o.__CE_patched){o.__CE_patched=!0;for(var l=0;l<i.c.length;l++)i.c[l](o)}return this.__CE_shadowRoot=o}),M&&M.get?e(Element.prototype,M):H&&H.get?e(HTMLElement.prototype,H):it(r,function(o){e(o,{enumerable:!0,configurable:!0,get:function(){return B.call(this,!0).innerHTML},set:function(i){var l=this.localName==="template",c=l?this.content:this,a=U.call(document,this.namespaceURI,this.localName);for(a.innerHTML=i;0<c.childNodes.length;)j.call(c,c.childNodes[0]);for(i=l?a.content:a;0<i.childNodes.length;)T.call(c,i.childNodes[0])}})}),d(Element.prototype,"setAttribute",function(o,i){if(this.__CE_state!==1)return G.call(this,o,i);var l=x.call(this,o);G.call(this,o,i),i=x.call(this,o),r.attributeChangedCallback(this,o,l,i,null)}),d(Element.prototype,"setAttributeNS",function(o,i,l){if(this.__CE_state!==1)return K.call(this,o,i,l);var c=D.call(this,o,i);K.call(this,o,i,l),l=D.call(this,o,i),r.attributeChangedCallback(this,i,c,l,o)}),d(Element.prototype,"removeAttribute",function(o){if(this.__CE_state!==1)return J.call(this,o);var i=x.call(this,o);J.call(this,o),i!==null&&r.attributeChangedCallback(this,o,i,null,null)}),d(Element.prototype,"removeAttributeNS",function(o,i){if(this.__CE_state!==1)return Q.call(this,o,i);var l=D.call(this,o,i);Q.call(this,o,i);var c=D.call(this,o,i);l!==c&&r.attributeChangedCallback(this,i,l,c,o)}),tt?t(HTMLElement.prototype,tt):Y?t(Element.prototype,Y):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),et?n(HTMLElement.prototype,et):Z?n(Element.prototype,Z):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."),R(r,Element.prototype,{h:ht,append:dt}),Et(r)}var A=window.customElements;if(!A||A.forcePolyfill||typeof A.define!="function"||typeof A.get!="function"){var b=new _;yt(),vt(),R(b,DocumentFragment.prototype,{h:pt,append:ft}),wt(),_t(),document.__CE_hasRegistry=!0;var Ct=new y(b);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Ct})}}).call(self);typeof document.baseURI!="string"&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var f=document.querySelector("base");return f&&f.href?f.href:document.URL}});typeof window.CustomEvent!="function"&&(window.CustomEvent=function(f,h){h=h||{bubbles:!1,cancelable:!1,detail:void 0};var s=document.createEvent("CustomEvent");return s.initCustomEvent(f,h.bubbles,h.cancelable,h.detail),s},window.CustomEvent.prototype=window.Event.prototype);(function(f,h,s){f.composedPath||(f.composedPath=function(){if(this.path)return this.path;var m=this.target;for(this.path=[];m.parentNode!==null;)this.path.push(m),m=m.parentNode;return this.path.push(h,s),this.path})})(Event.prototype,document,window);/*!
2
- Element.closest and Element.matches
3
- https://github.com/jonathantneal/closest
4
- Creative Commons Zero v1.0 Universal
5
- */(function(f){typeof f.matches!="function"&&(f.matches=f.msMatchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||function(h){h=(this.document||this.ownerDocument).querySelectorAll(h);for(var s=0;h[s]&&h[s]!==this;)++s;return!!h[s]}),typeof f.closest!="function"&&(f.closest=function(h){for(var s=this;s&&s.nodeType===1;){if(s.matches(h))return s;s=s.parentNode}return null})})(window.Element.prototype);/*!
6
- Element.getRootNode()
7
- */(function(f){function h(m){return m=s(m),m&&m.nodeType===11?h(m.host):m}function s(m){return m&&m.parentNode?s(m.parentNode):m}typeof f.getRootNode!="function"&&(f.getRootNode=function(m){return m&&m.composed?h(this):s(this)})})(Element.prototype);/*!
8
- Element.isConnected()
9
- */(function(f){"isConnected"in f||Object.defineProperty(f,"isConnected",{configurable:!0,enumerable:!0,get:function(){var h=this.getRootNode({composed:!0});return h&&h.nodeType===9}})})(Element.prototype);/*!
10
- Element.remove()
11
- */(function(f){f.forEach(function(h){h.hasOwnProperty("remove")||Object.defineProperty(h,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode!==null&&this.parentNode.removeChild(this)}})})})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);/*!
12
- Element.classList
13
- */(function(f){"classList"in f||Object.defineProperty(f,"classList",{get:function(){var h=this,s=(h.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function m(){s.length>0?h.setAttribute("class",s.join(" ")):h.removeAttribute("class")}return s[0]===""&&s.splice(0,1),s.toggle=function(p,d){d!==void 0?d?s.add(p):s.remove(p):s.indexOf(p)!==-1?s.splice(s.indexOf(p),1):s.push(p),m()},s.add=function(){for(var p=[].slice.call(arguments),d=0,_=p.length;d<_;d++)s.indexOf(p[d])===-1&&s.push(p[d]);m()},s.remove=function(){for(var p=[].slice.call(arguments),d=0,_=p.length;d<_;d++)s.indexOf(p[d])!==-1&&s.splice(s.indexOf(p[d]),1);m()},s.item=function(p){return s[p]},s.contains=function(p){return s.indexOf(p)!==-1},s.replace=function(p,d){s.indexOf(p)!==-1&&s.splice(s.indexOf(p),1,d),m()},s.value=h.getAttribute("class")||"",s}})})(Element.prototype);/*!
14
- DOMTokenList
15
- */(function(f){try{document.body.classList.add()}catch{var h=f.add,s=f.remove;f.add=function(){for(var p=0;p<arguments.length;p++)h.call(this,arguments[p])},f.remove=function(){for(var p=0;p<arguments.length;p++)s.call(this,arguments[p])}}})(DOMTokenList.prototype);