CoreFiles by mySites.guru
webcomponents-hi.min.js1 lines, 8,114 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
25b414ed974a3d07660aefcf6d82f5a0
sha1
4bdfeaa157a7adab8f882531f11b689239b87c7b
sha256
57033dd3fa8de47aef908dd0394eedb459dc8662025c9189d986e43df7b2fb81
(function(){"use strict";!function(e){function t(e,t){if("function"==typeof window.CustomEvent)return new CustomEvent(e,t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n}function n(e){if(u)return e.ownerDocument!==document?e.ownerDocument:null;var t=e.__importDoc;if(!t&&e.parentNode){if("function"==typeof(t=e.parentNode).closest)t=t.closest("link[rel=import]");else for(;!c(t)&&(t=t.parentNode););e.__importDoc=t}return t}function o(e){function t(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",t),e())}document.addEventListener("readystatechange",t),t()}function r(e){o(function(){return function(e){var t=document.querySelectorAll("link[rel=import]:not([import-dependency])"),n=t.length;n?l(t,function(t){return i(t,function(){0==--n&&e()})}):e()}(function(){return e&&e()})})}function i(e,t){if(e.__loaded)t&&t();else if("script"===e.localName&&!e.src||"style"===e.localName&&!e.firstChild)e.__loaded=!0,t&&t();else{var n=function(o){e.removeEventListener(o.type,n),e.__loaded=!0,t&&t()};e.addEventListener("load",n),y&&"style"===e.localName||e.addEventListener("error",n)}}function c(e){return e.nodeType===Node.ELEMENT_NODE&&"link"===e.localName&&"import"===e.rel}function a(){var e=this;this.a={},this.b=0,this.h=new MutationObserver(function(t){return e.B(t)}),this.h.observe(document.head,{childList:!0,subtree:!0}),this.c(document)}function l(e,t,n){var o=e?e.length:0,r=n?-1:1;for(n=n?o-1:0;n<o&&0<=n;n+=r)t(e[n],n)}var u="import"in document.createElement("link"),d=null;!1=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return d||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var s=/(url\()([^)]*)(\))/g,p=/(@import[\s]+(?!url\())([^;]*)(;)/g,f=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,m={w:function(e,t){if(e.href&&e.setAttribute("href",m.f(e.getAttribute("href"),t)),e.src&&e.setAttribute("src",m.f(e.getAttribute("src"),t)),"style"===e.localName){var n=m.s(e.textContent,t,s);e.textContent=m.s(n,t,p)}},s:function(e,t,n){return e.replace(n,function(e,n,o,r){return e=o.replace(/["']/g,""),t&&(e=m.f(e,t)),n+"'"+e+"'"+r})},f:function(e,t){if(void 0===m.g){m.g=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",m.g="http://a/c%20d"===n.href}catch(e){}}return m.g?new URL(e,t).href:((n=m.u)||(n=document.implementation.createHTMLDocument("temp"),m.u=n,n.j=n.createElement("base"),n.head.appendChild(n.j),n.i=n.createElement("a")),n.j.href=t,n.i.href=e,n.i.href||e)}},h={async:!0,load:function(e,t,n){if(e)if(e.match(/^data:/)){var o=(e=e.split(","))[1];o=-1<e[0].indexOf(";base64")?atob(o):decodeURIComponent(o),t(o)}else{var r=new XMLHttpRequest;r.open("GET",e,h.async),r.onload=function(){var e=r.responseURL||r.getResponseHeader("Location");e&&0===e.indexOf("/")&&(e=(location.origin||location.protocol+"//"+location.host)+e);var o=r.response||r.responseText;304===r.status||0===r.status||200<=r.status&&300>r.status?t(o,e):n(o)},r.send()}else n("error: href must be specified")}},y=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);if(a.prototype.c=function(e){var t=this;l(e.querySelectorAll("link[rel=import]"),function(e){return t.m(e)})},a.prototype.m=function(e){var t=this,n=e.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(e.import=o,this.l(e))}else this.b++,this.a[n]="pending",h.load(n,function(e,o){e=t.C(e,o||n),t.a[n]=e,t.b--,t.c(e),t.o()},function(){t.a[n]=null,t.b--,t.o()})},a.prototype.C=function(e,t){if(!e)return document.createDocumentFragment();y&&(e=e.replace(f,function(e,t,n){return-1===e.indexOf("type=")?t+" type=import-disable "+n:e}));var n=document.createElement("template");if(n.innerHTML=e,n.content)e=n.content;else for(e=document.createDocumentFragment();n.firstChild;)e.appendChild(n.firstChild);(n=e.querySelector("base"))&&(t=m.f(n.getAttribute("href"),t),n.removeAttribute("href"));var o=0;return l(e.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n    style:not([type]), link[rel=stylesheet][href]:not([type]),\n    script:not([type]), script[type="application/javascript"],\n    script[type="text/javascript"]'),function(e){i(e),m.w(e,t),e.setAttribute("import-dependency",""),"script"===e.localName&&!e.src&&e.textContent&&(e.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(e.textContent+"\n//# sourceURL="+t+(o?"-"+o:"")+".js\n")),e.textContent="",o++)}),e},a.prototype.o=function(){var e=this;if(!this.b){this.h.disconnect(),this.flatten(document);var t=!1,n=!1,o=function(){n&&t&&(e.c(document),e.b||(e.h.observe(document.head,{childList:!0,subtree:!0}),e.A()))};this.F(function(){n=!0,o()}),this.D(function(){t=!0,o()})}},a.prototype.flatten=function(e){var t=this;l(e.querySelectorAll("link[rel=import]"),function(e){var n=t.a[e.href];(e.import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(t.a[e.href]=e,e.readyState="loading",e.import=e,t.flatten(n),e.appendChild(n))})},a.prototype.D=function(e){function t(r){if(r<o){var c=n[r],a=document.createElement("script");c.removeAttribute("import-dependency"),l(c.attributes,function(e){return a.setAttribute(e.name,e.value)}),d=a,c.parentNode.replaceChild(a,c),i(a,function(){d=null,t(r+1)})}else e()}var n=document.querySelectorAll("script[import-dependency]"),o=n.length;t(0)},a.prototype.F=function(e){var t=document.querySelectorAll("style[import-dependency],\n    link[rel=stylesheet][import-dependency]"),o=t.length;if(o){var r=y&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");l(t,function(t){if(i(t,function(){t.removeAttribute("import-dependency"),0==--o&&e()}),r&&t.parentNode!==document.head){var c=document.createElement(t.localName);for(c.__appliedElement=t,c.setAttribute("type","import-placeholder"),t.parentNode.insertBefore(c,t.nextSibling),c=n(t);c&&n(c);)c=n(c);c.parentNode!==document.head&&(c=null),document.head.insertBefore(t,c),t.removeAttribute("type")}})}else e()},a.prototype.A=function(){var e=this;l(document.querySelectorAll("link[rel=import]"),function(t){return e.l(t)},!0)},a.prototype.l=function(e){e.__loaded||(e.__loaded=!0,e.import&&(e.import.readyState="complete"),e.dispatchEvent(t(e.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},a.prototype.B=function(e){var t=this;l(e,function(e){return l(e.addedNodes,function(e){e&&e.nodeType===Node.ELEMENT_NODE&&(c(e)?t.m(e):t.c(e))})})},u){l(document.querySelectorAll("link[rel=import]"),function(e){e.import&&"loading"===e.import.readyState||(e.__loaded=!0)});var v=function(e){c(e=e.target)&&(e.__loaded=!0)};document.addEventListener("load",v,!0),document.addEventListener("error",v,!0)}else{var b=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!b||b.configurable?Node:Element).prototype,"baseURI",{get:function(){var e=c(this)?this:n(this);return e?e.href:b&&b.get?b.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),o(function(){return new a})}r(function(){return document.dispatchEvent(t("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),e.useNative=u,e.whenReady=r,e.importForElement=n}(window.HTMLImports=window.HTMLImports||{});var e=window.customElements,t=window.HTMLImports,n=window.HTMLTemplateElement;if(window.WebComponents=window.WebComponents||{},e&&e.polyfillWrapFlushCallback){var o,r=function(){if(o){n.v&&n.v(window.document);var e=o;return o=null,e(),!0}},i=t.whenReady;e.polyfillWrapFlushCallback(function(e){o=e,i(r)}),t.whenReady=function(e){i(function(){r()?t.whenReady(e):e()})}}t.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});var c=document.createElement("style");c.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var a=document.querySelector("head");a.insertBefore(c,a.firstChild)}).call(this);

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