@haxtheweb/haxcms-nodejs
Version:
HAXcms single and multisite nodejs server, api, and administration
7 lines • 3.75 kB
JavaScript
var e;e=function(){
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
var e,n,i="__scoped";null!==(e=globalThis.reactiveElementPolyfillSupport)&&void 0!==e||(globalThis.reactiveElementPolyfillSupport=function(e){var n=e.ReactiveElement;if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){var a=n.prototype;window.ShadyDOM&&window.ShadyDOM.inUse&&!0===window.ShadyDOM.noPatch&&window.ShadyDOM.patchElementProto(a);var l=a.createRenderRoot;a.createRenderRoot=function(){var e,n,a,d=this.localName;if(window.ShadyCSS.nativeShadow)return l.call(this);if(!this.constructor.hasOwnProperty(i)){this.constructor[i]=!0;var r=this.constructor.elementStyles.map((function(e){return e instanceof CSSStyleSheet?Array.from(e.cssRules).reduce((function(e,n){return e+n.cssText}),""):e.cssText}));null===(n=null===(e=window.ShadyCSS)||void 0===e?void 0:e.ScopingShim)||void 0===n||n.prepareAdoptedCssText(r,d),void 0===this.constructor._$AJ&&window.ShadyCSS.prepareTemplateStyles(document.createElement("template"),d)}return null!==(a=this.shadowRoot)&&void 0!==a?a:this.attachShadow(this.constructor.shadowRootOptions)};var d=a.connectedCallback;a.connectedCallback=function(){d.call(this),this.hasUpdated&&window.ShadyCSS.styleElement(this)};var r=a._$AE;a._$AE=function(e){this.hasUpdated||window.ShadyCSS.styleElement(this),r.call(this,e)}}});var a,l=new Set,d=new Map;null!==(n=globalThis.litHtmlPolyfillSupport)&&void 0!==n||(globalThis.litHtmlPolyfillSupport=function(e,n){if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){var o=function(e){return void 0!==e&&!l.has(e)},t=function(e){var n=d.get(e);return void 0===n&&d.set(e,n=[]),n},i=new Map,a=e.createElement;e.createElement=function(n,i){var l=a.call(e,n,i),d=null==i?void 0:i.scope;if(void 0!==d&&(window.ShadyCSS.nativeShadow||window.ShadyCSS.prepareTemplateDom(l,d),o(d))){var r=t(d),h=l.content.querySelectorAll("style");r.push.apply(r,Array.from(h).map((function(e){var n;return null===(n=e.parentNode)||void 0===n||n.removeChild(e),e.textContent})))}return l};var r=document.createDocumentFragment(),h=document.createComment(""),S=n.prototype,s=S._$AI;S._$AI=function(e,n){var i,a;void 0===n&&(n=this);var S=this._$AA.parentNode,c=null===(i=this.options)||void 0===i?void 0:i.scope;if(S instanceof ShadowRoot&&o(c)){var p=this._$AA,u=this._$AB;r.appendChild(h),this._$AA=h,this._$AB=null,s.call(this,e,n);var v=(null==e?void 0:e._$litType$)?this._$AH._$AD.el:document.createElement("template");if(function(e,n){var i,a=t(e),r=0!==a.length;r&&((i=document.createElement("style")).textContent=a.join("\n"),n.content.appendChild(i)),l.add(e),d.delete(e),window.ShadyCSS.prepareTemplateStyles(n,e),r&&window.ShadyCSS.nativeShadow&&null!==(i=n.content.querySelector("style"))&&n.content.appendChild(i)}(c,v),r.removeChild(h),null===(a=window.ShadyCSS)||void 0===a?void 0:a.nativeShadow){var w=v.content.querySelector("style");null!==w&&r.appendChild(w.cloneNode(!0))}S.insertBefore(r,u),this._$AA=p,this._$AB=u}else s.call(this,e,n)},S._$AC=function(n){var a,l=null===(a=this.options)||void 0===a?void 0:a.scope,d=i.get(l);void 0===d&&i.set(l,d=new Map);var r=d.get(n.strings);return void 0===r&&d.set(n.strings,r=new e(n,this.options)),r}}}),null!==(a=globalThis.litElementPolyfillSupport)&&void 0!==a||(globalThis.litElementPolyfillSupport=function(e){var n=e.LitElement;if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){n._$AJ=!0;var i=n.prototype,a=i.createRenderRoot;i.createRenderRoot=function(){return this.renderOptions.scope=this.localName,a.call(this)}}})},"function"==typeof define&&define.amd?define(e):e();