CoreFiles by mySites.guru
webcomponents-ce.min.js1 lines, 13,649 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
22034e6afcbceb3cd00924260c5ad5df
sha1
fb79d65284a8a17120506229617a31cabfa30e12
sha256
7054a0cb04ba361d6596ff7639cca68dc73973e4a69a322cabda0cd5fc7ef560
(function(){"use strict";function t(t){var e=_.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function e(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function n(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function o(t,e,i){i=i||new Set;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var a=r;e(a);var c=a.localName;if("link"===c&&"import"===a.getAttribute("rel")){if((r=a.import)instanceof Node&&!i.has(r))for(i.add(r),r=r.firstChild;r;r=r.nextSibling)o(r,e,i);r=n(t,a);continue}if("template"===c){r=n(t,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)o(a,e,i)}r=r.firstChild?r.firstChild:n(t,r)}}function i(t,e,n){t[e]=n}function r(){this.a=new Map,this.m=new Map,this.f=[],this.b=!1}function a(t,e,n){t.a.set(e,n),t.m.set(n.constructor,n)}function c(t,e){t.b=!0,t.f.push(e)}function l(t,e){t.b&&o(e,function(e){return s(t,e)})}function s(t,e){if(t.b&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.f.length;n++)t.f[n](e)}}function f(t,e){var n=[];for(o(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var i=n[e];1===i.__CE_state?t.connectedCallback(i):p(t,i)}}function h(t,e){var n=[];for(o(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var i=n[e];1===i.__CE_state&&t.disconnectedCallback(i)}}function u(t,e,n){var i=[];if(o(e,function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var o=e.import;o instanceof Node&&"complete"===o.readyState?(o.__CE_isImportDocument=!0,o.__CE_hasRegistry=!0):e.addEventListener("load",function(){var o=e.import;o.__CE_documentLoadHandled||(o.__CE_documentLoadHandled=!0,o.__CE_isImportDocument=!0,o.__CE_hasRegistry=!0,n.delete(o),u(t,o,n))})}else i.push(e)},n=n||new Set),t.b)for(e=0;e<i.length;e++)s(t,i[e]);for(e=0;e<i.length;e++)p(t,i[e])}function p(t,n){if(void 0===n.__CE_state){var o=t.a.get(n.localName);if(o){o.constructionStack.push(n);var i=o.constructor;try{try{if(new i!==n)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{o.constructionStack.pop()}}catch(t){throw n.__CE_state=2,t}if(n.__CE_state=1,n.__CE_definition=o,o.attributeChangedCallback)for(o=o.observedAttributes,i=0;i<o.length;i++){var r=o[i],a=n.getAttribute(r);null!==a&&t.attributeChangedCallback(n,r,null,a,null)}e(n)&&t.connectedCallback(n)}}}function d(t,e){this.c=t,this.a=e,this.b=void 0,u(this.c,this.a),"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function m(t){t.b&&t.b.disconnect()}function w(){var t=this;this.b=this.a=void 0,this.f=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function y(t){if(t.a)throw Error("Already resolved.");t.a=void 0,t.b&&t.b(void 0)}function b(t){this.i=!1,this.c=t,this.l=new Map,this.j=function(t){return t()},this.g=!1,this.h=[],this.s=new d(t,document)}function g(t,n,o){n.prepend=function(n){for(var i=[],r=0;r<arguments.length;++r)i[r-0]=arguments[r];r=i.filter(function(t){return t instanceof Node&&e(t)}),o.o.apply(this,i);for(var a=0;a<r.length;a++)h(t,r[a]);if(e(this))for(r=0;r<i.length;r++)(a=i[r])instanceof Element&&f(t,a)},n.append=function(n){for(var i=[],r=0;r<arguments.length;++r)i[r-0]=arguments[r];r=i.filter(function(t){return t instanceof Node&&e(t)}),o.append.apply(this,i);for(var a=0;a<r.length;a++)h(t,r[a]);if(e(this))for(r=0;r<i.length;r++)(a=i[r])instanceof Element&&f(t,a)}}function v(t){var n=Element.prototype;n.before=function(n){for(var o=[],i=0;i<arguments.length;++i)o[i-0]=arguments[i];i=o.filter(function(t){return t instanceof Node&&e(t)}),$.apply(this,o);for(var r=0;r<i.length;r++)h(t,i[r]);if(e(this))for(i=0;i<o.length;i++)(r=o[i])instanceof Element&&f(t,r)},n.after=function(n){for(var o=[],i=0;i<arguments.length;++i)o[i-0]=arguments[i];i=o.filter(function(t){return t instanceof Node&&e(t)}),G.apply(this,o);for(var r=0;r<i.length;r++)h(t,i[r]);if(e(this))for(i=0;i<o.length;i++)(r=o[i])instanceof Element&&f(t,r)},n.replaceWith=function(n){for(var o=[],i=0;i<arguments.length;++i)o[i-0]=arguments[i];var i=o.filter(function(t){return t instanceof Node&&e(t)}),r=e(this);J.apply(this,o);for(var a=0;a<i.length;a++)h(t,i[a]);if(r)for(h(t,this),i=0;i<o.length;i++)(r=o[i])instanceof Element&&f(t,r)},n.remove=function(){var n=e(this);K.call(this),n&&h(t,this)}}var E=new function(){},_=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));r.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},r.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},r.prototype.attributeChangedCallback=function(t,e,n,o,i){var r=t.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(e)&&r.attributeChangedCallback.call(t,e,n,o,i)},d.prototype.f=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||m(this),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)u(this.c,n[o])},b.prototype.define=function(e,n){var o=this;if(!(n instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!t(e))throw new SyntaxError("The element name '"+e+"' is not valid.");if(this.c.a.get(e))throw Error("A custom element with name '"+e+"' has already been defined.");if(this.i)throw Error("A custom element is already being defined.");this.i=!0;var i,r,c,l,s;try{var f=function(t){var e=h[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},h=n.prototype;if(!(h instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");i=f("connectedCallback"),r=f("disconnectedCallback"),c=f("adoptedCallback"),l=f("attributeChangedCallback"),s=n.observedAttributes||[]}catch(t){return}finally{this.i=!1}a(this.c,e,{localName:e,constructor:n,connectedCallback:i,disconnectedCallback:r,adoptedCallback:c,attributeChangedCallback:l,observedAttributes:s,constructionStack:[]}),this.h.push(e),this.g||(this.g=!0,this.j(function(){if(!1!==o.g)for(o.g=!1,u(o.c,document);0<o.h.length;){var t=o.h.shift();(t=o.l.get(t))&&y(t)}}))},b.prototype.get=function(t){if(t=this.c.a.get(t))return t.constructor},b.prototype.whenDefined=function(e){if(!t(e))return Promise.reject(new SyntaxError("'"+e+"' is not a valid custom element name."));var n=this.l.get(e);return n?n.f:(n=new w,this.l.set(e,n),this.c.a.get(e)&&-1===this.h.indexOf(e)&&y(n),n.f)},b.prototype.u=function(t){m(this.s);var e=this.j;this.j=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=b,b.prototype.define=b.prototype.define,b.prototype.get=b.prototype.get,b.prototype.whenDefined=b.prototype.whenDefined,b.prototype.polyfillWrapFlushCallback=b.prototype.u;var C=window.Document.prototype.createElement,N=window.Document.prototype.createElementNS,k=window.Document.prototype.importNode,A=window.Document.prototype.prepend,D=window.Document.prototype.append,S=window.Node.prototype.cloneNode,T=window.Node.prototype.appendChild,j=window.Node.prototype.insertBefore,O=window.Node.prototype.removeChild,L=window.Node.prototype.replaceChild,M=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),x=window.Element.prototype.attachShadow,H=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),R=window.Element.prototype.getAttribute,P=window.Element.prototype.setAttribute,F=window.Element.prototype.removeAttribute,W=window.Element.prototype.getAttributeNS,I=window.Element.prototype.setAttributeNS,z=window.Element.prototype.removeAttributeNS,B=window.Element.prototype.insertAdjacentElement,q=window.Element.prototype.prepend,X=window.Element.prototype.append,$=window.Element.prototype.before,G=window.Element.prototype.after,J=window.Element.prototype.replaceWith,K=window.Element.prototype.remove,Q=window.HTMLElement,U=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),V=window.HTMLElement.prototype.insertAdjacentElement,Y=window.customElements;if(!Y||Y.forcePolyfill||"function"!=typeof Y.define||"function"!=typeof Y.get){var Z=new r;!function(){var t=Z;window.HTMLElement=function(){function e(){var e=this.constructor,n=t.m.get(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(!o.length)return o=C.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,s(t,o),o;var i=o[n=o.length-1];if(i===E)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=E,Object.setPrototypeOf(i,e.prototype),s(t,i),i}return e.prototype=Q.prototype,e}()}(),function(){var t=Z;i(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructor}return e=C.call(this,e),s(t,e),e}),i(Document.prototype,"importNode",function(e,n){return e=k.call(this,e,n),this.__CE_hasRegistry?u(t,e):l(t,e),e}),i(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.a.get(n);if(o)return new o.constructor}return e=N.call(this,e,n),s(t,e),e}),g(t,Document.prototype,{o:A,append:D})}(),function(){function t(t,o){Object.defineProperty(t,"textContent",{enumerable:o.enumerable,configurable:!0,get:o.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)o.set.call(this,t);else{if(a=void 0,this.firstChild){var i=this.childNodes,r=i.length;if(0<r&&e(this))for(var a=Array(r),c=0;c<r;c++)a[c]=i[c]}if(o.set.call(this,t),a)for(t=0;t<a.length;t++)h(n,a[t])}}})}var n=Z;i(Node.prototype,"insertBefore",function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);if(t=j.call(this,t,o),e(this))for(o=0;o<i.length;o++)f(n,i[o]);return t}return i=e(t),o=j.call(this,t,o),i&&h(n,t),e(this)&&f(n,t),o}),i(Node.prototype,"appendChild",function(t){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);if(t=T.call(this,t),e(this))for(var i=0;i<o.length;i++)f(n,o[i]);return t}return o=e(t),i=T.call(this,t),o&&h(n,t),e(this)&&f(n,t),i}),i(Node.prototype,"cloneNode",function(t){return t=S.call(this,t),this.ownerDocument.__CE_hasRegistry?u(n,t):l(n,t),t}),i(Node.prototype,"removeChild",function(t){var o=e(t),i=O.call(this,t);return o&&h(n,t),i}),i(Node.prototype,"replaceChild",function(t,o){if(t instanceof DocumentFragment){if(i=Array.prototype.slice.apply(t.childNodes),t=L.call(this,t,o),e(this))for(h(n,o),o=0;o<i.length;o++)f(n,i[o]);return t}var i=e(t),r=L.call(this,t,o),a=e(this);return a&&h(n,o),i&&h(n,t),a&&f(n,t),r}),M&&M.get?t(Node.prototype,M):c(n,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)O.call(this,this.firstChild);T.call(this,document.createTextNode(t))}})})}(),function(){function t(t,n){Object.defineProperty(t,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var i=this,a=void 0;if(e(this)&&(a=[],o(this,function(t){t!==i&&a.push(t)})),n.set.call(this,t),a)for(var c=0;c<a.length;c++){var s=a[c];1===s.__CE_state&&r.disconnectedCallback(s)}return this.ownerDocument.__CE_hasRegistry?u(r,this):l(r,this),t}})}function n(t,n){i(t,"insertAdjacentElement",function(t,o){var i=e(o);return t=n.call(this,t,o),i&&h(r,o),e(t)&&f(r,o),t})}var r=Z;if(x?i(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=x.call(this,t)}):console.warn("Custom Elements: `Element#attachShadow` was not patched."),H&&H.get)t(Element.prototype,H);else if(U&&U.get)t(HTMLElement.prototype,U);else{var a=C.call(document,"div");c(r,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return S.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(a.innerHTML=t;0<e.childNodes.length;)O.call(e,e.childNodes[0]);for(;0<a.childNodes.length;)T.call(e,a.childNodes[0])}})})}i(Element.prototype,"setAttribute",function(t,e){if(1!==this.__CE_state)return P.call(this,t,e);var n=R.call(this,t);P.call(this,t,e),e=R.call(this,t),r.attributeChangedCallback(this,t,n,e,null)}),i(Element.prototype,"setAttributeNS",function(t,e,n){if(1!==this.__CE_state)return I.call(this,t,e,n);var o=W.call(this,t,e);I.call(this,t,e,n),n=W.call(this,t,e),r.attributeChangedCallback(this,e,o,n,t)}),i(Element.prototype,"removeAttribute",function(t){if(1!==this.__CE_state)return F.call(this,t);var e=R.call(this,t);F.call(this,t),null!==e&&r.attributeChangedCallback(this,t,e,null,null)}),i(Element.prototype,"removeAttributeNS",function(t,e){if(1!==this.__CE_state)return z.call(this,t,e);var n=W.call(this,t,e);z.call(this,t,e);var o=W.call(this,t,e);n!==o&&r.attributeChangedCallback(this,e,n,o,t)}),V?n(HTMLElement.prototype,V):B?n(Element.prototype,B):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),g(r,Element.prototype,{o:q,append:X}),v(r)}(),document.__CE_hasRegistry=!0;var tt=new b(Z);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:tt})}}).call(self),window.WebComponents=window.WebComponents||{},requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))});

No other release has this exact content. See every version of this file.