- md5
- e4da61e98cede1091a117d5ea5c2d176
- sha1
- ecdccb247acb416562a0c670f18ecf03d2c84f64
- sha256
- 1c2f98dc7e07c868a1890ace264fd22e8ee129c41fd4884ae9b2a48c13e06979
(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 l=a.localName;if("link"===l&&"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"===l){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.o=new Map,this.f=[],this.b=!1}function a(t,e){t.b=!0,t.f.push(e)}function l(t,e){t.b&&o(e,function(e){return c(t,e)})}function c(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 s(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):f(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=(n=n||{}).w||new Set,r=n.s||function(e){return f(t,e)},a=[];if(o(e,function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&"complete"===n.readyState?(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0):e.addEventListener("load",function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0,n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0;var o=new Set(i);o.delete(n),u(t,n,{w:o,s:r})}})}else a.push(e)},i),t.b)for(e=0;e<a.length;e++)c(t,a[e]);for(e=0;e<a.length;e++)r(a[e])}function f(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 p(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 d(t){t.b&&t.b.disconnect()}function m(t){if(t.a)throw Error("Already resolved.");t.a=void 0,t.b&&t.b(void 0)}function w(t){this.i=!1,this.c=t,this.m=new Map,this.j=function(t){return t()},this.g=!1,this.l=[],this.u=new p(t,document)}function y(t){if(!1!==t.g){t.g=!1;for(var e=t.l,n=[],o=new Map,i=0;i<e.length;i++)o.set(e[i].localName,[]);for(u(t.c,document,{s:function(e){if(void 0===e.__CE_state){var i=e.localName,r=o.get(i);r?r.push(e):t.c.a.get(i)&&n.push(e)}}}),i=0;i<n.length;i++)f(t.c,n[i]);for(;0<e.length;){for(var i=(r=e.shift()).localName,r=o.get(r.localName),a=0;a<r.length;a++)f(t.c,r[a]);(i=t.m.get(i))&&m(i)}}}function g(t,n,o){function i(n){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r-0]=arguments[r];for(var r=[],a=[],l=0;l<i.length;l++){var c=i[l];if(c instanceof Element&&e(c)&&a.push(c),c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)r.push(c);else r.push(c)}for(n.apply(this,i),i=0;i<a.length;i++)h(t,a[i]);if(e(this))for(i=0;i<r.length;i++)(a=r[i])instanceof Element&&s(t,a)}}o.h&&(n.prepend=i(o.h)),o.append&&(n.append=i(o.append))}function b(){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)&&s(r,o),t})}var r=tt;if(H&&i(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=H.call(this,t)}),R&&R.get)t(Element.prototype,R);else if(V&&V.get)t(HTMLElement.prototype,V);else{var c=E.call(document,"div");a(r,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return T.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(c.innerHTML=t;0<e.childNodes.length;)O.call(e,e.childNodes[0]);for(;0<c.childNodes.length;)j.call(e,c.childNodes[0])}})})}i(Element.prototype,"setAttribute",function(t,e){if(1!==this.__CE_state)return P.call(this,t,e);var n=F.call(this,t);P.call(this,t,e),e=F.call(this,t),r.attributeChangedCallback(this,t,n,e,null)}),i(Element.prototype,"setAttributeNS",function(t,e,n){if(1!==this.__CE_state)return W.call(this,t,e,n);var o=z.call(this,t,e);W.call(this,t,e,n),n=z.call(this,t,e),r.attributeChangedCallback(this,e,o,n,t)}),i(Element.prototype,"removeAttribute",function(t){if(1!==this.__CE_state)return I.call(this,t);var e=F.call(this,t);I.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 B.call(this,t,e);var n=z.call(this,t,e);B.call(this,t,e);var o=z.call(this,t,e);n!==o&&r.attributeChangedCallback(this,e,n,o,t)}),Y?n(HTMLElement.prototype,Y):X?n(Element.prototype,X):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),g(r,Element.prototype,{h:$,append:q}),function(t){function n(n){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r-0]=arguments[r];for(var r=[],a=[],l=0;l<i.length;l++){var c=i[l];if(c instanceof Element&&e(c)&&a.push(c),c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)r.push(c);else r.push(c)}for(n.apply(this,i),i=0;i<a.length;i++)h(t,a[i]);if(e(this))for(i=0;i<r.length;i++)(a=r[i])instanceof Element&&s(t,a)}}var o=Element.prototype;G&&(o.before=n(G)),G&&(o.after=n(J)),K&&i(o,"replaceWith",function(n){for(var o=[],i=0;i<arguments.length;++i)o[i-0]=arguments[i];for(var i=[],r=[],a=0;a<o.length;a++){var l=o[a];if(l instanceof Element&&e(l)&&r.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)i.push(l);else i.push(l)}for(a=e(this),K.apply(this,o),o=0;o<r.length;o++)h(t,r[o]);if(a)for(h(t,this),o=0;o<i.length;o++)(r=i[o])instanceof Element&&s(t,r)}),Q&&i(o,"remove",function(){var n=e(this);Q.call(this),n&&h(t,this)})}(r)}var v=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)},p.prototype.f=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||d(this),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)u(this.c,n[o])},w.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,a,l,c;try{var s=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=s("connectedCallback"),r=s("disconnectedCallback"),a=s("adoptedCallback"),l=s("attributeChangedCallback"),c=n.observedAttributes||[]}catch(t){return}finally{this.i=!1}n={localName:e,constructor:n,connectedCallback:i,disconnectedCallback:r,adoptedCallback:a,attributeChangedCallback:l,observedAttributes:c,constructionStack:[]},function(t,e,n){t.a.set(e,n),t.o.set(n.constructor,n)}(this.c,e,n),this.l.push(n),this.g||(this.g=!0,this.j(function(){return y(o)}))},w.prototype.get=function(t){if(t=this.c.a.get(t))return t.constructor},w.prototype.whenDefined=function(e){if(!t(e))return Promise.reject(new SyntaxError("'"+e+"' is not a valid custom element name."));var n=this.m.get(e);return n?n.f:(n=new function(){var t=this;this.b=this.a=void 0,this.f=new Promise(function(e){t.b=e,t.a&&e(t.a)})},this.m.set(e,n),this.c.a.get(e)&&!this.l.some(function(t){return t.localName===e})&&m(n),n.f)},w.prototype.v=function(t){d(this.u);var e=this.j;this.j=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=w,w.prototype.define=w.prototype.define,w.prototype.get=w.prototype.get,w.prototype.whenDefined=w.prototype.whenDefined,w.prototype.polyfillWrapFlushCallback=w.prototype.v;var E=window.Document.prototype.createElement,C=window.Document.prototype.createElementNS,N=window.Document.prototype.importNode,k=window.Document.prototype.prepend,D=window.Document.prototype.append,S=window.DocumentFragment.prototype.prepend,A=window.DocumentFragment.prototype.append,T=window.Node.prototype.cloneNode,j=window.Node.prototype.appendChild,M=window.Node.prototype.insertBefore,O=window.Node.prototype.removeChild,L=window.Node.prototype.replaceChild,x=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),H=window.Element.prototype.attachShadow,R=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),F=window.Element.prototype.getAttribute,P=window.Element.prototype.setAttribute,I=window.Element.prototype.removeAttribute,z=window.Element.prototype.getAttributeNS,W=window.Element.prototype.setAttributeNS,B=window.Element.prototype.removeAttributeNS,X=window.Element.prototype.insertAdjacentElement,$=window.Element.prototype.prepend,q=window.Element.prototype.append,G=window.Element.prototype.before,J=window.Element.prototype.after,K=window.Element.prototype.replaceWith,Q=window.Element.prototype.remove,U=window.HTMLElement,V=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Y=window.HTMLElement.prototype.insertAdjacentElement,Z=window.customElements;if(!Z||Z.forcePolyfill||"function"!=typeof Z.define||"function"!=typeof Z.get){var tt=new r;!function(){var t=tt;window.HTMLElement=function(){function e(){var e=this.constructor,n=t.o.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=E.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,c(t,o),o;var i=o[n=o.length-1];if(i===v)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=v,Object.setPrototypeOf(i,e.prototype),c(t,i),i}return e.prototype=U.prototype,e}()}(),function(){var t=tt;i(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructor}return e=E.call(this,e),c(t,e),e}),i(Document.prototype,"importNode",function(e,n){return e=N.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=C.call(this,e,n),c(t,e),e}),g(t,Document.prototype,{h:k,append:D})}(),g(tt,DocumentFragment.prototype,{h:S,append:A}),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),l=0;l<r;l++)a[l]=i[l]}if(o.set.call(this,t),a)for(t=0;t<a.length;t++)h(n,a[t])}}})}var n=tt;i(Node.prototype,"insertBefore",function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);if(t=M.call(this,t,o),e(this))for(o=0;o<i.length;o++)s(n,i[o]);return t}return i=e(t),o=M.call(this,t,o),i&&h(n,t),e(this)&&s(n,t),o}),i(Node.prototype,"appendChild",function(t){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);if(t=j.call(this,t),e(this))for(var i=0;i<o.length;i++)s(n,o[i]);return t}return o=e(t),i=j.call(this,t),o&&h(n,t),e(this)&&s(n,t),i}),i(Node.prototype,"cloneNode",function(t){return t=T.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++)s(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&&s(n,t),r}),x&&x.get?t(Node.prototype,x):a(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);j.call(this,document.createTextNode(t))}})})}(),b(),document.__CE_hasRegistry=!0;var et=new w(tt);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:et})}}).call(self);
No other release has this exact content. See every version of this file.