@webcomponents/webcomponentsjs
Advanced tools
Comparing version 1.0.15 to 1.0.16
{ | ||
"name": "@webcomponents/webcomponentsjs", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Web Components Polyfills", | ||
@@ -5,0 +5,0 @@ "main": "webcomponents-lite.js", |
@@ -15,2 +15,4 @@ /** | ||
let HTMLImports = window['HTMLImports']; | ||
let Template = window['HTMLTemplateElement']; | ||
// global for (1) existence means `WebComponentsReady` will file, | ||
@@ -26,2 +28,6 @@ // (2) WebComponents.ready == true means event has fired. | ||
if (flushCallback) { | ||
// make sure to run the HTMLTemplateElement polyfill before custom elements upgrade | ||
if (Template['bootstrap']) { | ||
Template['bootstrap'](window.document); | ||
} | ||
let cb = flushCallback; | ||
@@ -28,0 +34,0 @@ flushCallback = null; |
@@ -24,16 +24,16 @@ (function(){/* | ||
*/ | ||
'use strict';(function(){function ba(b){function a(a,d){Object.defineProperty(a,"innerHTML",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(a){var e=this,c=void 0;g(this)&&(c=[],w(this,function(b){b!==e&&c.push(b)}));d.set.call(this,a);if(c)for(var v=0;v<c.length;v++){var f=c[v];1===f.__CE_state&&b.disconnectedCallback(f)}this.ownerDocument.__CE_hasRegistry?b.f(this):b.l(this);return a}})}function d(a,d){m(a,"insertAdjacentElement",function(a,e){var c=g(e);a=d.call(this,a,e);c&&b.a(e); | ||
'use strict';(function(){function ca(b){function a(a,d){Object.defineProperty(a,"innerHTML",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(a){var e=this,c=void 0;g(this)&&(c=[],w(this,function(b){b!==e&&c.push(b)}));d.set.call(this,a);if(c)for(var v=0;v<c.length;v++){var f=c[v];1===f.__CE_state&&b.disconnectedCallback(f)}this.ownerDocument.__CE_hasRegistry?b.f(this):b.l(this);return a}})}function d(a,d){m(a,"insertAdjacentElement",function(a,e){var c=g(e);a=d.call(this,a,e);c&&b.a(e); | ||
g(a)&&b.b(e);return a})}M&&m(Element.prototype,"attachShadow",function(b){return this.__CE_shadowRoot=b=M.call(this,b)});if(D&&D.get)a(Element.prototype,D);else if(E&&E.get)a(HTMLElement.prototype,E);else{var c=F.call(document,"div");b.v(function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return N.call(this,!0).innerHTML},set:function(b){var a="template"===this.localName?this.content:this;for(c.innerHTML=b;0<a.childNodes.length;)G.call(a,a.childNodes[0]);for(;0<c.childNodes.length;)y.call(a, | ||
c.childNodes[0])}})})}m(Element.prototype,"setAttribute",function(a,d){if(1!==this.__CE_state)return O.call(this,a,d);var e=H.call(this,a);O.call(this,a,d);d=H.call(this,a);b.attributeChangedCallback(this,a,e,d,null)});m(Element.prototype,"setAttributeNS",function(a,d,c){if(1!==this.__CE_state)return P.call(this,a,d,c);var e=z.call(this,a,d);P.call(this,a,d,c);c=z.call(this,a,d);b.attributeChangedCallback(this,d,e,c,a)});m(Element.prototype,"removeAttribute",function(a){if(1!==this.__CE_state)return Q.call(this, | ||
a);var d=H.call(this,a);Q.call(this,a);null!==d&&b.attributeChangedCallback(this,a,d,null,null)});m(Element.prototype,"removeAttributeNS",function(a,d){if(1!==this.__CE_state)return R.call(this,a,d);var c=z.call(this,a,d);R.call(this,a,d);var e=z.call(this,a,d);c!==e&&b.attributeChangedCallback(this,d,c,e,a)});S?d(HTMLElement.prototype,S):T?d(Element.prototype,T):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");I(b,Element.prototype,{s:ca,append:da});ea(b,{A:fa,H:ha, | ||
replaceWith:ia,remove:ja})}function ea(b,a){var d=Element.prototype;function c(a){return function(d){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];e=[];for(var f=[],h=0;h<c.length;h++){var l=c[h];l instanceof Element&&g(l)&&f.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)e.push(l);else e.push(l)}a.apply(this,c);for(c=0;c<f.length;c++)b.a(f[c]);if(g(this))for(c=0;c<e.length;c++)f=e[c],f instanceof Element&&b.b(f)}}void 0!==a.A&&(d.before=c(a.A));void 0!== | ||
a);var d=H.call(this,a);Q.call(this,a);null!==d&&b.attributeChangedCallback(this,a,d,null,null)});m(Element.prototype,"removeAttributeNS",function(a,d){if(1!==this.__CE_state)return R.call(this,a,d);var c=z.call(this,a,d);R.call(this,a,d);var e=z.call(this,a,d);c!==e&&b.attributeChangedCallback(this,d,c,e,a)});S?d(HTMLElement.prototype,S):T?d(Element.prototype,T):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");I(b,Element.prototype,{s:da,append:ea});fa(b,{A:ha,H:ia, | ||
replaceWith:ja,remove:ka})}function fa(b,a){var d=Element.prototype;function c(a){return function(d){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];e=[];for(var f=[],h=0;h<c.length;h++){var l=c[h];l instanceof Element&&g(l)&&f.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)e.push(l);else e.push(l)}a.apply(this,c);for(c=0;c<f.length;c++)b.a(f[c]);if(g(this))for(c=0;c<e.length;c++)f=e[c],f instanceof Element&&b.b(f)}}void 0!==a.A&&(d.before=c(a.A));void 0!== | ||
a.A&&(d.after=c(a.H));void 0!==a.replaceWith&&m(d,"replaceWith",function(d){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];e=[];for(var n=[],k=0;k<c.length;k++){var h=c[k];h instanceof Element&&g(h)&&n.push(h);if(h instanceof DocumentFragment)for(h=h.firstChild;h;h=h.nextSibling)e.push(h);else e.push(h)}k=g(this);a.replaceWith.apply(this,c);for(c=0;c<n.length;c++)b.a(n[c]);if(k)for(b.a(this),c=0;c<e.length;c++)n=e[c],n instanceof Element&&b.b(n)});void 0!==a.remove&&m(d,"remove",function(){var d= | ||
g(this);a.remove.call(this);d&&b.a(this)})}function ka(b){function a(a,c){Object.defineProperty(a,"textContent",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(a){if(this.nodeType===Node.TEXT_NODE)c.set.call(this,a);else{var d=void 0;if(this.firstChild){var e=this.childNodes,n=e.length;if(0<n&&g(this)){d=Array(n);for(var k=0;k<n;k++)d[k]=e[k]}}c.set.call(this,a);if(d)for(a=0;a<d.length;a++)b.a(d[a])}}})}m(Node.prototype,"insertBefore",function(a,c){if(a instanceof DocumentFragment){var d= | ||
g(this);a.remove.call(this);d&&b.a(this)})}function la(b){function a(a,c){Object.defineProperty(a,"textContent",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(a){if(this.nodeType===Node.TEXT_NODE)c.set.call(this,a);else{var d=void 0;if(this.firstChild){var e=this.childNodes,n=e.length;if(0<n&&g(this)){d=Array(n);for(var k=0;k<n;k++)d[k]=e[k]}}c.set.call(this,a);if(d)for(a=0;a<d.length;a++)b.a(d[a])}}})}m(Node.prototype,"insertBefore",function(a,c){if(a instanceof DocumentFragment){var d= | ||
Array.prototype.slice.apply(a.childNodes);a=U.call(this,a,c);if(g(this))for(c=0;c<d.length;c++)b.b(d[c]);return a}d=g(a);c=U.call(this,a,c);d&&b.a(a);g(this)&&b.b(a);return c});m(Node.prototype,"appendChild",function(a){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=y.call(this,a);if(g(this))for(var d=0;d<c.length;d++)b.b(c[d]);return a}c=g(a);d=y.call(this,a);c&&b.a(a);g(this)&&b.b(a);return d});m(Node.prototype,"cloneNode",function(a){a=N.call(this,a);this.ownerDocument.__CE_hasRegistry? | ||
b.f(a):b.l(a);return a});m(Node.prototype,"removeChild",function(a){var c=g(a),d=G.call(this,a);c&&b.a(a);return d});m(Node.prototype,"replaceChild",function(a,c){if(a instanceof DocumentFragment){var d=Array.prototype.slice.apply(a.childNodes);a=V.call(this,a,c);if(g(this))for(b.a(c),c=0;c<d.length;c++)b.b(d[c]);return a}d=g(a);var f=V.call(this,a,c),v=g(this);v&&b.a(c);d&&b.a(a);v&&b.b(a);return f});J&&J.get?a(Node.prototype,J):b.v(function(b){a(b,{enumerable:!0,configurable:!0,get:function(){for(var a= | ||
[],b=0;b<this.childNodes.length;b++)a.push(this.childNodes[b].textContent);return a.join("")},set:function(a){for(;this.firstChild;)G.call(this,this.firstChild);y.call(this,document.createTextNode(a))}})})}function la(b){m(Document.prototype,"createElement",function(a){if(this.__CE_hasRegistry){var d=b.c(a);if(d)return new d.constructor}a=F.call(this,a);b.g(a);return a});m(Document.prototype,"importNode",function(a,d){a=ma.call(this,a,d);this.__CE_hasRegistry?b.f(a):b.l(a);return a});m(Document.prototype, | ||
"createElementNS",function(a,d){if(this.__CE_hasRegistry&&(null===a||"http://www.w3.org/1999/xhtml"===a)){var c=b.c(d);if(c)return new c.constructor}a=na.call(this,a,d);b.g(a);return a});I(b,Document.prototype,{s:oa,append:pa})}function I(b,a,d){function c(a){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];e=[];for(var f=[],h=0;h<d.length;h++){var l=d[h];l instanceof Element&&g(l)&&f.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)e.push(l); | ||
else e.push(l)}a.apply(this,d);for(d=0;d<f.length;d++)b.a(f[d]);if(g(this))for(d=0;d<e.length;d++)f=e[d],f instanceof Element&&b.b(f)}}void 0!==d.s&&(a.prepend=c(d.s));void 0!==d.append&&(a.append=c(d.append))}function qa(b){window.HTMLElement=function(){function a(){var a=this.constructor,c=b.J(a);if(!c)throw Error("The custom element being constructed was not registered with `customElements`.");var e=c.constructionStack;if(0===e.length)return e=F.call(document,c.localName),Object.setPrototypeOf(e, | ||
a.prototype),e.__CE_state=1,e.__CE_definition=c,b.g(e),e;c=e.length-1;var f=e[c];if(f===W)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");e[c]=W;Object.setPrototypeOf(f,a.prototype);b.g(f);return f}a.prototype=ra.prototype;return a}()}function p(b){this.c=!1;this.a=b;this.h=new Map;this.f=function(a){return a()};this.b=!1;this.g=[];this.i=new K(b,document)}function X(){var b=this;this.b=this.a=void 0;this.f=new Promise(function(a){b.b= | ||
a;b.a&&a(b.a)})}function K(b,a){this.c=b;this.a=a;this.b=void 0;this.c.f(this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.g.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function q(){this.o=new Map;this.m=new Map;this.j=[];this.h=!1}function Y(b){var a=sa.has(b);b=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(b);return!a&&b}function g(b){var a=b.isConnected;if(void 0!==a)return a;for(;b&&!(b.__CE_isImportDocument||b instanceof Document);)b=b.parentNode||(window.ShadowRoot&& | ||
[],b=0;b<this.childNodes.length;b++)a.push(this.childNodes[b].textContent);return a.join("")},set:function(a){for(;this.firstChild;)G.call(this,this.firstChild);y.call(this,document.createTextNode(a))}})})}function ma(b){m(Document.prototype,"createElement",function(a){if(this.__CE_hasRegistry){var d=b.c(a);if(d)return new d.constructor}a=F.call(this,a);b.g(a);return a});m(Document.prototype,"importNode",function(a,d){a=na.call(this,a,d);this.__CE_hasRegistry?b.f(a):b.l(a);return a});m(Document.prototype, | ||
"createElementNS",function(a,d){if(this.__CE_hasRegistry&&(null===a||"http://www.w3.org/1999/xhtml"===a)){var c=b.c(d);if(c)return new c.constructor}a=oa.call(this,a,d);b.g(a);return a});I(b,Document.prototype,{s:pa,append:qa})}function I(b,a,d){function c(a){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];e=[];for(var f=[],h=0;h<d.length;h++){var l=d[h];l instanceof Element&&g(l)&&f.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)e.push(l); | ||
else e.push(l)}a.apply(this,d);for(d=0;d<f.length;d++)b.a(f[d]);if(g(this))for(d=0;d<e.length;d++)f=e[d],f instanceof Element&&b.b(f)}}void 0!==d.s&&(a.prepend=c(d.s));void 0!==d.append&&(a.append=c(d.append))}function ra(b){window.HTMLElement=function(){function a(){var a=this.constructor,c=b.J(a);if(!c)throw Error("The custom element being constructed was not registered with `customElements`.");var e=c.constructionStack;if(0===e.length)return e=F.call(document,c.localName),Object.setPrototypeOf(e, | ||
a.prototype),e.__CE_state=1,e.__CE_definition=c,b.g(e),e;c=e.length-1;var f=e[c];if(f===W)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");e[c]=W;Object.setPrototypeOf(f,a.prototype);b.g(f);return f}a.prototype=sa.prototype;return a}()}function p(b){this.c=!1;this.a=b;this.h=new Map;this.f=function(a){return a()};this.b=!1;this.g=[];this.i=new K(b,document)}function X(){var b=this;this.b=this.a=void 0;this.f=new Promise(function(a){b.b= | ||
a;b.a&&a(b.a)})}function K(b,a){this.c=b;this.a=a;this.b=void 0;this.c.f(this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.g.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function q(){this.o=new Map;this.m=new Map;this.j=[];this.h=!1}function Y(b){var a=ta.has(b);b=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(b);return!a&&b}function g(b){var a=b.isConnected;if(void 0!==a)return a;for(;b&&!(b.__CE_isImportDocument||b instanceof Document);)b=b.parentNode||(window.ShadowRoot&& | ||
b instanceof ShadowRoot?b.host:void 0);return!(!b||!(b.__CE_isImportDocument||b instanceof Document))}function L(b,a){for(;a&&a!==b&&!a.nextSibling;)a=a.parentNode;return a&&a!==b?a.nextSibling:null}function w(b,a,d){d=d?d:new Set;for(var c=b;c;){if(c.nodeType===Node.ELEMENT_NODE){var e=c;a(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){c=e.import;if(c instanceof Node&&!d.has(c))for(d.add(c),c=c.firstChild;c;c=c.nextSibling)w(c,a,d);c=L(b,e);continue}else if("template"===f){c= | ||
@@ -44,3 +44,3 @@ L(b,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)w(e,a,d)}c=c.firstChild?c.firstChild:L(b,c)}}function m(b,a,d){b[a]=d}(function(b){function a(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function d(a){if(l)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b= | ||
{childList:!0,subtree:!0});this.c(document)}function h(a,b,c){var d=a?a.length:0,e=c?-1:1;for(c=c?d-1:0;c<d&&0<=c;c+=e)b(a[c],c)}var l="import"in document.createElement("link"),g=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return g||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var m=/(url\()([^)]*)(\))/g,p=/(@import[\s]+(?!url\())([^;]*)(;)/g,q=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g, | ||
u={I:function(a,b){a.href&&a.setAttribute("href",u.u(a.getAttribute("href"),b));a.src&&a.setAttribute("src",u.u(a.getAttribute("src"),b));if("style"===a.localName){var c=u.D(a.textContent,b,m);a.textContent=u.D(c,b,p)}},D:function(a,b,c){return a.replace(c,function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=u.u(a,b));return c+"'"+a+"'"+e})},u:function(a,b){if(void 0===u.w){u.w=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";u.w="http://a/c%20d"===c.href}catch(ta){}}if(u.w)return(new URL(a,b)).href; | ||
u={I:function(a,b){a.href&&a.setAttribute("href",u.u(a.getAttribute("href"),b));a.src&&a.setAttribute("src",u.u(a.getAttribute("src"),b));if("style"===a.localName){var c=u.D(a.textContent,b,m);a.textContent=u.D(c,b,p)}},D:function(a,b,c){return a.replace(c,function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=u.u(a,b));return c+"'"+a+"'"+e})},u:function(a,b){if(void 0===u.w){u.w=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";u.w="http://a/c%20d"===c.href}catch(ua){}}if(u.w)return(new URL(a,b)).href; | ||
c=u.G;c||(c=document.implementation.createHTMLDocument("temp"),u.G=c,c.C=c.createElement("base"),c.head.appendChild(c.C),c.B=c.createElement("a"));c.C.href=b;c.B.href=a;return c.B.href||a}},t={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=a.split(",");var d=a[1];d=-1<a[0].indexOf(";base64")?atob(d):decodeURIComponent(d);b(d)}else{var e=new XMLHttpRequest;e.open("GET",a,t.async);e.onload=function(){var a=e.responseURL||e.getResponseHeader("Location");a&&0===a.indexOf("/")&&(a=(location.origin|| | ||
@@ -55,3 +55,3 @@ location.protocol+"//"+location.host)+a);var d=e.response||e.responseText;304===e.status||0===e.status||200<=e.status&&300>e.status?b(d,a):c(d)};e.send()}else c("error: href must be specified")}},r=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);k.prototype.c=function(a){var b=this;h(a.querySelectorAll("link[rel=import]"),function(a){return b.h(a)})};k.prototype.h=function(a){var b=this,c=a.href;if(void 0!==this.a[c]){var d=this.a[c];d&&d.__loaded&&(a.import=d,this.g(a))}else this.b++, | ||
function(a){a.import&&"loading"===a.import.readyState||(a.__loaded=!0)});var w=function(a){a=a.target;n(a)&&(a.__loaded=!0)};document.addEventListener("load",w,!0);document.addEventListener("error",w,!0)}else{var x=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!x||x.configurable?Node:Element).prototype,"baseURI",{get:function(){var a=n(this)?this:d(this);return a?a.href:x&&x.get?x.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0, | ||
enumerable:!0});e(function(){return new k})}f(function(){return document.dispatchEvent(a("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});b.useNative=l;b.whenReady=f;b.importForElement=d})(window.HTMLImports=window.HTMLImports||{});var sa=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));q.prototype.K=function(b,a){this.o.set(b,a);this.m.set(a.constructor,a)};q.prototype.c=function(b){return this.o.get(b)}; | ||
enumerable:!0});e(function(){return new k})}f(function(){return document.dispatchEvent(a("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});b.useNative=l;b.whenReady=f;b.importForElement=d})(window.HTMLImports=window.HTMLImports||{});var ta=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));q.prototype.K=function(b,a){this.o.set(b,a);this.m.set(a.constructor,a)};q.prototype.c=function(b){return this.o.get(b)}; | ||
q.prototype.J=function(b){return this.m.get(b)};q.prototype.v=function(b){this.h=!0;this.j.push(b)};q.prototype.l=function(b){var a=this;this.h&&w(b,function(b){return a.g(b)})};q.prototype.g=function(b){if(this.h&&!b.__CE_patched){b.__CE_patched=!0;for(var a=0;a<this.j.length;a++)this.j[a](b)}};q.prototype.b=function(b){var a=[];w(b,function(b){return a.push(b)});for(b=0;b<a.length;b++){var d=a[b];1===d.__CE_state?this.connectedCallback(d):this.i(d)}};q.prototype.a=function(b){var a=[];w(b,function(b){return a.push(b)}); | ||
@@ -66,8 +66,8 @@ for(b=0;b<a.length;b++){var d=a[b];1===d.__CE_state&&this.disconnectedCallback(d)}};q.prototype.f=function(b,a){var d=this;a=a?a:{};var c=a.L||new Set,e=a.F||function(a){return d.i(a)},f=[];w(b,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var b=a.import;b instanceof Node&&"complete"===b.readyState?(b.__CE_isImportDocument=!0,b.__CE_hasRegistry=!0):a.addEventListener("load",function(){var b=a.import;if(!b.__CE_documentLoadHandled){b.__CE_documentLoadHandled=!0;b.__CE_isImportDocument= | ||
p.prototype.whenDefined=function(b){if(!Y(b))return Promise.reject(new SyntaxError("'"+b+"' is not a valid custom element name."));var a=this.h.get(b);if(a)return a.f;a=new X;this.h.set(b,a);this.a.c(b)&&!this.g.some(function(a){return a.localName===b})&&a.c();return a.f};p.prototype.l=function(b){this.i.f();var a=this.f;this.f=function(d){return b(function(){return a(d)})}};window.CustomElementRegistry=p;p.prototype.define=p.prototype.define;p.prototype.get=p.prototype.get;p.prototype.whenDefined= | ||
p.prototype.whenDefined;p.prototype.polyfillWrapFlushCallback=p.prototype.l;var F=window.Document.prototype.createElement,na=window.Document.prototype.createElementNS,ma=window.Document.prototype.importNode,oa=window.Document.prototype.prepend,pa=window.Document.prototype.append,r=window.DocumentFragment.prototype.prepend,A=window.DocumentFragment.prototype.append,N=window.Node.prototype.cloneNode,y=window.Node.prototype.appendChild,U=window.Node.prototype.insertBefore,G=window.Node.prototype.removeChild, | ||
p.prototype.whenDefined;p.prototype.polyfillWrapFlushCallback=p.prototype.l;var F=window.Document.prototype.createElement,oa=window.Document.prototype.createElementNS,na=window.Document.prototype.importNode,pa=window.Document.prototype.prepend,qa=window.Document.prototype.append,r=window.DocumentFragment.prototype.prepend,A=window.DocumentFragment.prototype.append,N=window.Node.prototype.cloneNode,y=window.Node.prototype.appendChild,U=window.Node.prototype.insertBefore,G=window.Node.prototype.removeChild, | ||
V=window.Node.prototype.replaceChild,J=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),M=window.Element.prototype.attachShadow,D=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),H=window.Element.prototype.getAttribute,O=window.Element.prototype.setAttribute,Q=window.Element.prototype.removeAttribute,z=window.Element.prototype.getAttributeNS,P=window.Element.prototype.setAttributeNS,R=window.Element.prototype.removeAttributeNS,T=window.Element.prototype.insertAdjacentElement, | ||
ca=window.Element.prototype.prepend,da=window.Element.prototype.append,fa=window.Element.prototype.before,ha=window.Element.prototype.after,ia=window.Element.prototype.replaceWith,ja=window.Element.prototype.remove,ra=window.HTMLElement,E=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),S=window.HTMLElement.prototype.insertAdjacentElement,W=new function(){},t=window.customElements;if(!t||t.forcePolyfill||"function"!=typeof t.define||"function"!=typeof t.get)t=new q,qa(t), | ||
la(t),I(t,DocumentFragment.prototype,{s:r,append:A}),ka(t),ba(t),document.__CE_hasRegistry=!0,r=new p(t),Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:r});r=window.customElements;var B=window.HTMLImports;window.WebComponents=window.WebComponents||{};if(r&&r.polyfillWrapFlushCallback){var C,Z=function(){if(C){var b=C;C=null;b();return!0}},aa=B.whenReady;r.polyfillWrapFlushCallback(function(b){C=b;aa(Z)});B.whenReady=function(b){aa(function(){Z()?B.whenReady(b): | ||
b()})}}B.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});r=document.createElement("style");r.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";A=document.querySelector("head");A.insertBefore(r,A.firstChild)})();}).call(this); | ||
da=window.Element.prototype.prepend,ea=window.Element.prototype.append,ha=window.Element.prototype.before,ia=window.Element.prototype.after,ja=window.Element.prototype.replaceWith,ka=window.Element.prototype.remove,sa=window.HTMLElement,E=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),S=window.HTMLElement.prototype.insertAdjacentElement,W=new function(){},t=window.customElements;if(!t||t.forcePolyfill||"function"!=typeof t.define||"function"!=typeof t.get)t=new q,ra(t), | ||
ma(t),I(t,DocumentFragment.prototype,{s:r,append:A}),la(t),ca(t),document.__CE_hasRegistry=!0,r=new p(t),Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:r});r=window.customElements;var B=window.HTMLImports,Z=window.HTMLTemplateElement;window.WebComponents=window.WebComponents||{};if(r&&r.polyfillWrapFlushCallback){var C,aa=function(){if(C){Z.bootstrap&&Z.bootstrap(window.document);var b=C;C=null;b();return!0}},ba=B.whenReady;r.polyfillWrapFlushCallback(function(b){C= | ||
b;ba(aa)});B.whenReady=function(b){ba(function(){aa()?B.whenReady(b):b()})}}B.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});r=document.createElement("style");r.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";A=document.querySelector("head");A.insertBefore(r,A.firstChild)})();}).call(this); | ||
//# sourceMappingURL=webcomponents-hi-ce.js.map |
@@ -24,19 +24,19 @@ (function(){/* | ||
*/ | ||
'use strict';(function(){(function(h){function l(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function q(a){if(y)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b=b.closest("link[rel=import]");else for(;!u(b)&&(b=b.parentNode););a.__importDoc=b}return b}function p(a){var b= | ||
'use strict';(function(){(function(h){function l(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function q(a){if(z)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b=b.closest("link[rel=import]");else for(;!u(b)&&(b=b.parentNode););a.__importDoc=b}return b}function p(a){var b= | ||
document.querySelectorAll("link[rel=import]:not([import-dependency])"),c=b.length;c?k(b,function(b){return v(b,function(){0===--c&&a()})}):a()}function m(a){function b(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",b),a())}document.addEventListener("readystatechange",b);b()}function t(a){m(function(){return p(function(){return a&&a()})})}function v(a,b){if(a.__loaded)b&&b();else if("script"===a.localName&&!a.src||"style"===a.localName&&!a.firstChild)a.__loaded= | ||
!0,b&&b();else{var c=function(d){a.removeEventListener(d.type,c);a.__loaded=!0;b&&b()};a.addEventListener("load",c);z&&"style"===a.localName||a.addEventListener("error",c)}}function u(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function e(){var a=this;this.a={};this.b=0;this.h=new MutationObserver(function(b){return a.A(b)});this.h.observe(document.head,{childList:!0,subtree:!0});this.c(document)}function k(a,b,c){var d=a?a.length:0,f=c?-1:1;for(c=c?d-1:0;c<d&& | ||
0<=c;c+=f)b(a[c],c)}var y="import"in document.createElement("link"),A=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return A||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var w=/(url\()([^)]*)(\))/g,x=/(@import[\s]+(?!url\())([^;]*)(;)/g,D=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,g={v:function(a,b){a.href&&a.setAttribute("href",g.f(a.getAttribute("href"),b));a.src&&a.setAttribute("src", | ||
!0,b&&b();else{var c=function(d){a.removeEventListener(d.type,c);a.__loaded=!0;b&&b()};a.addEventListener("load",c);A&&"style"===a.localName||a.addEventListener("error",c)}}function u(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function e(){var a=this;this.a={};this.b=0;this.h=new MutationObserver(function(b){return a.A(b)});this.h.observe(document.head,{childList:!0,subtree:!0});this.c(document)}function k(a,b,c){var d=a?a.length:0,f=c?-1:1;for(c=c?d-1:0;c<d&& | ||
0<=c;c+=f)b(a[c],c)}var z="import"in document.createElement("link"),B=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return B||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var w=/(url\()([^)]*)(\))/g,x=/(@import[\s]+(?!url\())([^;]*)(;)/g,y=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,g={v:function(a,b){a.href&&a.setAttribute("href",g.f(a.getAttribute("href"),b));a.src&&a.setAttribute("src", | ||
g.f(a.getAttribute("src"),b));if("style"===a.localName){var c=g.s(a.textContent,b,w);a.textContent=g.s(c,b,x)}},s:function(a,b,c){return a.replace(c,function(a,c,n,e){a=n.replace(/["']/g,"");b&&(a=g.f(a,b));return c+"'"+a+"'"+e})},f:function(a,b){if(void 0===g.g){g.g=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";g.g="http://a/c%20d"===c.href}catch(d){}}if(g.g)return(new URL(a,b)).href;c=g.u;c||(c=document.implementation.createHTMLDocument("temp"),g.u=c,c.j=c.createElement("base"),c.head.appendChild(c.j), | ||
c.i=c.createElement("a"));c.j.href=b;c.i.href=a;return c.i.href||a}},B={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=a.split(",");var d=a[1];d=-1<a[0].indexOf(";base64")?atob(d):decodeURIComponent(d);b(d)}else{var f=new XMLHttpRequest;f.open("GET",a,B.async);f.onload=function(){var a=f.responseURL||f.getResponseHeader("Location");a&&0===a.indexOf("/")&&(a=(location.origin||location.protocol+"//"+location.host)+a);var d=f.response||f.responseText;304===f.status||0===f.status||200<=f.status&& | ||
300>f.status?b(d,a):c(d)};f.send()}else c("error: href must be specified")}},z=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);e.prototype.c=function(a){var b=this;k(a.querySelectorAll("link[rel=import]"),function(a){return b.m(a)})};e.prototype.m=function(a){var b=this,c=a.href;if(void 0!==this.a[c]){var d=this.a[c];d&&d.__loaded&&(a.import=d,this.l(a))}else this.b++,this.a[c]="pending",B.load(c,function(a,d){a=b.B(a,d||c);b.a[c]=a;b.b--;b.c(a);b.o()},function(){b.a[c]= | ||
null;b.b--;b.o()})};e.prototype.B=function(a,b){if(!a)return document.createDocumentFragment();z&&(a=a.replace(D,function(a,b,c){return-1===a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content;else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=g.f(c.getAttribute("href"),b),c.removeAttribute("href");var d=0;k(a.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"]'), | ||
c.i=c.createElement("a"));c.j.href=b;c.i.href=a;return c.i.href||a}},C={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=a.split(",");var d=a[1];d=-1<a[0].indexOf(";base64")?atob(d):decodeURIComponent(d);b(d)}else{var f=new XMLHttpRequest;f.open("GET",a,C.async);f.onload=function(){var a=f.responseURL||f.getResponseHeader("Location");a&&0===a.indexOf("/")&&(a=(location.origin||location.protocol+"//"+location.host)+a);var d=f.response||f.responseText;304===f.status||0===f.status||200<=f.status&& | ||
300>f.status?b(d,a):c(d)};f.send()}else c("error: href must be specified")}},A=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);e.prototype.c=function(a){var b=this;k(a.querySelectorAll("link[rel=import]"),function(a){return b.m(a)})};e.prototype.m=function(a){var b=this,c=a.href;if(void 0!==this.a[c]){var d=this.a[c];d&&d.__loaded&&(a.import=d,this.l(a))}else this.b++,this.a[c]="pending",C.load(c,function(a,d){a=b.B(a,d||c);b.a[c]=a;b.b--;b.c(a);b.o()},function(){b.a[c]= | ||
null;b.b--;b.o()})};e.prototype.B=function(a,b){if(!a)return document.createDocumentFragment();A&&(a=a.replace(y,function(a,b,c){return-1===a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content;else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=g.f(c.getAttribute("href"),b),c.removeAttribute("href");var d=0;k(a.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(a){v(a);g.v(a,b);a.setAttribute("import-dependency","");"script"===a.localName&&!a.src&&a.textContent&&(a.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(a.textContent+("\n//# sourceURL="+b+(d?"-"+d:"")+".js\n"))),a.textContent="",d++)});return a};e.prototype.o=function(){var a=this;if(!this.b){this.h.disconnect();this.flatten(document);var b=!1,c=!1,d=function(){c&&b&&(a.c(document),a.b||(a.h.observe(document.head,{childList:!0,subtree:!0}),a.w()))};this.D(function(){c= | ||
!0;d()});this.C(function(){b=!0;d()})}};e.prototype.flatten=function(a){var b=this;k(a.querySelectorAll("link[rel=import]"),function(a){var c=b.a[a.href];(a.import=c)&&c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b.a[a.href]=a,a.readyState="loading",a.import=a,b.flatten(c),a.appendChild(c))})};e.prototype.C=function(a){function b(f){if(f<d){var n=c[f],e=document.createElement("script");n.removeAttribute("import-dependency");k(n.attributes,function(a){return e.setAttribute(a.name,a.value)});A=e;n.parentNode.replaceChild(e, | ||
n);v(e,function(){A=null;b(f+1)})}else a()}var c=document.querySelectorAll("script[import-dependency]"),d=c.length;b(0)};e.prototype.D=function(a){var b=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),c=b.length;if(c){var d=z&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");k(b,function(b){v(b,function(){b.removeAttribute("import-dependency");0===--c&&a()});if(d&&b.parentNode!==document.head){var e=document.createElement(b.localName); | ||
!0;d()});this.C(function(){b=!0;d()})}};e.prototype.flatten=function(a){var b=this;k(a.querySelectorAll("link[rel=import]"),function(a){var c=b.a[a.href];(a.import=c)&&c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b.a[a.href]=a,a.readyState="loading",a.import=a,b.flatten(c),a.appendChild(c))})};e.prototype.C=function(a){function b(f){if(f<d){var n=c[f],e=document.createElement("script");n.removeAttribute("import-dependency");k(n.attributes,function(a){return e.setAttribute(a.name,a.value)});B=e;n.parentNode.replaceChild(e, | ||
n);v(e,function(){B=null;b(f+1)})}else a()}var c=document.querySelectorAll("script[import-dependency]"),d=c.length;b(0)};e.prototype.D=function(a){var b=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),c=b.length;if(c){var d=A&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");k(b,function(b){v(b,function(){b.removeAttribute("import-dependency");0===--c&&a()});if(d&&b.parentNode!==document.head){var e=document.createElement(b.localName); | ||
e.__appliedElement=b;e.setAttribute("type","import-placeholder");b.parentNode.insertBefore(e,b.nextSibling);for(e=q(b);e&&q(e);)e=q(e);e.parentNode!==document.head&&(e=null);document.head.insertBefore(b,e);b.removeAttribute("type")}})}else a()};e.prototype.w=function(){var a=this;k(document.querySelectorAll("link[rel=import]"),function(b){return a.l(b)},!0)};e.prototype.l=function(a){a.__loaded||(a.__loaded=!0,a.import&&(a.import.readyState="complete"),a.dispatchEvent(l(a.import?"load":"error",{bubbles:!1, | ||
cancelable:!1,detail:void 0})))};e.prototype.A=function(a){var b=this;k(a,function(a){return k(a.addedNodes,function(a){a&&a.nodeType===Node.ELEMENT_NODE&&(u(a)?b.m(a):b.c(a))})})};if(y){k(document.querySelectorAll("link[rel=import]"),function(a){a.import&&"loading"===a.import.readyState||(a.__loaded=!0)});var C=function(a){a=a.target;u(a)&&(a.__loaded=!0)};document.addEventListener("load",C,!0);document.addEventListener("error",C,!0)}else{var r=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI"); | ||
Object.defineProperty((!r||r.configurable?Node:Element).prototype,"baseURI",{get:function(){var a=u(this)?this:q(this);return a?a.href:r&&r.get?r.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0});m(function(){return new e})}t(function(){return document.dispatchEvent(l("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});h.useNative=y;h.whenReady=t;h.importForElement=q})(window.HTMLImports=window.HTMLImports||{});var l=window.customElements, | ||
p=window.HTMLImports;window.WebComponents=window.WebComponents||{};if(l&&l.polyfillWrapFlushCallback){var m,t=function(){if(m){var h=m;m=null;h();return!0}},w=p.whenReady;l.polyfillWrapFlushCallback(function(h){m=h;w(t)});p.whenReady=function(h){w(function(){t()?p.whenReady(h):h()})}}p.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});l=document.createElement("style");l.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n"; | ||
var x=document.querySelector("head");x.insertBefore(l,x.firstChild)})();}).call(this); | ||
cancelable:!1,detail:void 0})))};e.prototype.A=function(a){var b=this;k(a,function(a){return k(a.addedNodes,function(a){a&&a.nodeType===Node.ELEMENT_NODE&&(u(a)?b.m(a):b.c(a))})})};if(z){k(document.querySelectorAll("link[rel=import]"),function(a){a.import&&"loading"===a.import.readyState||(a.__loaded=!0)});var D=function(a){a=a.target;u(a)&&(a.__loaded=!0)};document.addEventListener("load",D,!0);document.addEventListener("error",D,!0)}else{var r=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI"); | ||
Object.defineProperty((!r||r.configurable?Node:Element).prototype,"baseURI",{get:function(){var a=u(this)?this:q(this);return a?a.href:r&&r.get?r.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0});m(function(){return new e})}t(function(){return document.dispatchEvent(l("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});h.useNative=z;h.whenReady=t;h.importForElement=q})(window.HTMLImports=window.HTMLImports||{});var l=window.customElements, | ||
p=window.HTMLImports,t=window.HTMLTemplateElement;window.WebComponents=window.WebComponents||{};if(l&&l.polyfillWrapFlushCallback){var m,w=function(){if(m){t.bootstrap&&t.bootstrap(window.document);var h=m;m=null;h();return!0}},x=p.whenReady;l.polyfillWrapFlushCallback(function(h){m=h;x(w)});p.whenReady=function(h){x(function(){w()?p.whenReady(h):h()})}}p.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady", | ||
{bubbles:!0}))})});l=document.createElement("style");l.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var y=document.querySelector("head");y.insertBefore(l,y.firstChild)})();}).call(this); | ||
//# sourceMappingURL=webcomponents-hi.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
866417
1749