analog-clock-components 0.2.146 → 0.2.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analog-clock/analog-clock.esm.js +1 -1
- package/dist/analog-clock/p-CdCwhkGi.js +3 -0
- package/dist/analog-clock/{p-4d055701.entry.js → p-c704972e.entry.js} +1 -1
- package/dist/cjs/analog-clock.cjs.entry.js +1 -1
- package/dist/cjs/analog-clock.cjs.js +2 -2
- package/dist/cjs/{index-CmxxSPre.js → index-vPwCXQkS.js} +35 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/analog-clock.entry.js +1 -1
- package/dist/esm/analog-clock.js +3 -3
- package/dist/esm/{index-BnuLf9dv.js → index-CdCwhkGi.js} +35 -6
- package/dist/esm/loader.js +2 -2
- package/dist/types/stencil-public-runtime.d.ts +11 -0
- package/package.json +2 -2
- package/dist/analog-clock/p-BnuLf9dv.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,b as o}from"./p-CdCwhkGi.js";export{s as setNonce}from"./p-CdCwhkGi.js";import{g as t}from"./p-DQuL1Twl.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),e(s)})().then((async e=>(await t(),o([["p-c704972e",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],e))));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
function t(t,e,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,e);if(o&&(!n||o.get))return o;t=Object.getPrototypeOf(t)}}var e,n=(e,n)=>{var o;Object.entries(null!=(o=n.o.t)?o:{}).map((([o,[l]])=>{if(31&l||32&l){const l=e[o],i=t(Object.getPrototypeOf(e),o,!0)||Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(e,o,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(o)?e[o]=n.l.get(o):void 0!==l&&(e[o]=l)}}))},o=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},l=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&n(t,e))},i=(t,e)=>(0,console.error)(t,e),s=new Map,r=new Map,c=new Map,u="undefined"!=typeof window?window:{},f={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),d=(()=>{try{return!!u.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),h=!!d&&(()=>!!u.document&&Object.getOwnPropertyDescriptor(u.document.adoptedStyleSheets,"length").writable)(),p=!1,m=[],v=[],y=()=>{var t;return(null==(t=u.document)?void 0:t.hidden)?g($):f.raf($)},b=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&f.u?g($):y())},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){i(t)}t.length=0},$=()=>{w(m),w(v),(p=m.length>0)&&y()},g=t=>a().then(t),j=b(v,!0);function O(){const t=this.attachShadow({mode:"open"});void 0===e&&(e=null),e&&(h?t.adoptedStyleSheets.push(e):t.adoptedStyleSheets=[...t.adoptedStyleSheets,e])}function S(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var k,M=new WeakMap,E=t=>"sc-"+t.p,C=t=>"object"==(t=typeof t)||"function"===t,N=(t,e,...n)=>{let o=null,l=null,s=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)if(o=e[n],Array.isArray(o))u(o);else if(null!=o&&"boolean"!=typeof o){if(s="function"!=typeof t&&!C(o))o+="";else if("function"!=typeof t&&void 0===o.u){i("Invalid vNode child");continue}s&&r?c[c.length-1].m+=o:c.push(s?x(null,o):o),r=s}};if(u(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const f=x(t,null);return f.v=e,c.length>0&&(f.$=c),f.j=l,f},x=(t,e)=>({u:0,O:t,m:null!=e?e:null,S:null,$:null,v:null,j:null}),L={},T=(t,e)=>null==t||C(t)?t:2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:t,D=(t,e,n,l,i,s)=>{if(n===l)return;let r=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,o=R(n);let i=R(l);e.remove(...o.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!o.includes(t))))}else if("key"===e);else{if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let i;{const e=o(t);if(e&&e.o&&e.o.t){const t=e.o.t[n];t&&t[1]&&(i=t[1])}}return i||(i=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==l||!1===l?!1===l&&""!==t.getAttribute(i)||t.removeAttribute(i):t.setAttribute(i,!0===l?"":l))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=l}catch(t){}return}{const o=C(l);if((r||o&&null!==l)&&!i)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]===o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||i)&&!o&&1===t.nodeType&&t.setAttribute(e,l=!0===l?"":l)}}},P=/\s/,R=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(P):[]),A=(t,e,n)=>{const o=11===e.S.nodeType&&e.S.host?e.S.host:e.S,l=t&&t.v||{},i=e.v||{};for(const t of H(Object.keys(l)))t in i||D(o,t,l[t],void 0,n,e.u);for(const t of H(Object.keys(i)))D(o,t,l[t],i[t],n,e.u)};function H(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var U=!1,W=(t,e,n)=>{const o=e.$[n];let l,i,s=0;if(U||(U="svg"===o.O),!u.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.S=u.document.createElementNS(U?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.O),U&&"foreignObject"===o.O&&(U=!1),A(null,o,U),o.$){const e="template"===o.O?l.content:l;for(s=0;s<o.$.length;++s)i=W(t,o,s),i&&e.appendChild(i)}return"svg"===o.O?U=!1:"foreignObject"===l.tagName&&(U=!0),l["s-hn"]=k,l},z=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===k&&(r=r.shadowRoot),"template"===n.O&&(r=r.content);l<=i;++l)o[l]&&(s=W(null,n,l),s&&(o[l].S=s,B(r,s,e)))},F=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.S;t&&t.remove()}}},V=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),q=(t,e,n=!1)=>{const o=e.S=t.S,l=t.$,i=e.$,s=e.O;A(t,e,U="svg"===s||"foreignObject"!==s&&U),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,m=o[0],v=o[p];const y="template"===n.O?t.content:t;for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(V(d,m,l))q(d,m,l),d=e[++r],m=o[++c];else if(V(h,v,l))q(h,v,l),h=e[--a],v=o[--p];else if(V(d,v,l))q(d,v,l),B(y,d.S,h.S.nextSibling),d=e[++r],v=o[--p];else if(V(h,m,l))q(h,m,l),B(y,h.S,d.S),h=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].j&&e[f].j===m.j){u=f;break}u>=0?(s=e[u],s.O!==m.O?i=W(e&&e[c],n,u):(q(s,m,l),e[u]=void 0,i=s.S),m=o[++c]):(i=W(e&&e[c],n,c),m=o[++c]),i&&B(d.S.parentNode,i,d.S)}r>a?z(t,null==o[p+1]?null:o[p+1].S,n,o,c,p):c>p&&F(e,r,a)})(o,l,e,i,n):null!==i?z(o,null,e,i,0,i.length-1):!n&&null!==l&&F(l,0,l.length-1),U&&"svg"===s&&(U=!1)},B=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),G=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.k=()=>{e["s-p"].splice(n-1,1),o()})))}},I=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);G(t,t.M);const n=()=>Y(t,e);if(!e)return j(n);queueMicrotask((()=>{n()}))},Y=(t,e)=>{const n=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.C.length&&t.C.forEach((t=>t(n))),l=tt(o,"componentWillLoad",void 0,n)):l=tt(o,"componentWillUpdate",void 0,n),l=Z(l,(()=>tt(o,"componentWillRender",void 0,n))),Z(l,(()=>J(t,o,e)))},Z=(t,e)=>_(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),_=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,J=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=((t,e)=>{var n,o,l;const i=E(e),s=c.get(i);if(!u.document)return i;if(t=11===t.nodeType?t:u.document,s)if("string"==typeof s){let l,r=M.get(t=t.head||t);if(r||M.set(t,r=new Set),!r.has(i)){l=u.document.createElement("style"),l.textContent=s;const c=null!=(n=f.N)?n:S(u.document);if(null!=c&&l.setAttribute("nonce",c),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(s),h?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=s+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(i)}}else{let e=M.get(t);if(e||M.set(t,e=new Set),!e.has(i)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(s.constructor===n.CSSStyleSheet)o=s;else{o=new n.CSSStyleSheet;for(let t=0;t<s.cssRules.length;t++)o.insertRule(s.cssRules[t].cssText,t)}h?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);K(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>Q(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}},K=(t,e,n,o)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.L||x(null,null),i=(t=>t&&t.O===L)(e)?e:N(null,null,e);if(k=o.tagName,n&&i.v)for(const t of Object.keys(i.v))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.v[t]=o[t]);i.O=null,i.u|=4,t.L=i,i.S=l.S=o.shadowRoot||o,q(l,i,n)})(t,e,o)}catch(e){i(e,t.$hostElement$)}return null},Q=t=>{const e=t.$hostElement$,n=t.i,o=t.M;tt(n,"componentDidRender",void 0,e),64&t.u?tt(n,"componentDidUpdate",void 0,e):(t.u|=64,et(e),tt(n,"componentDidLoad",void 0,e),t.T(e),o||X()),t.k&&(t.k(),t.k=void 0),512&t.u&&g((()=>I(t,!1))),t.u&=-517},X=()=>{g((()=>(t=>{const e=f.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(u)))},tt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){i(t,o)}},et=t=>t.classList.add("hydrated"),nt=(t,e,n,l)=>{const i=o(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.p}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=i.l.get(e),r=i.u,c=i.i;if(n=T(n,l.t[e][0]),(!(8&r)||void 0===s)&&n!==s&&(!Number.isNaN(s)||!Number.isNaN(n))&&(i.l.set(e,n),2&r)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,s,e)&&!(16&r))return;16&r||I(i,!1)}},ot=(e,n,l)=>{var i,s;const r=e.prototype;if(n.t){const c=Object.entries(null!=(i=n.t)?i:{});if(c.map((([e,[i]])=>{if(31&i||2&l&&32&i){const{get:s,set:c}=t(r,e)||{};s&&(n.t[e][0]|=2048),c&&(n.t[e][0]|=4096),(1&l||!s)&&Object.defineProperty(r,e,{get(){{if(!(2048&n.t[e][0]))return((t,e)=>o(this).l.get(e))(0,e);const t=o(this),l=t?t.i:r;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,e,{set(t){const s=o(this);if(s){if(c)return void 0===(32&i?this[e]:s.$hostElement$[e])&&s.l.get(e)&&(t=s.l.get(e)),c.call(this,T(t,i)),void nt(this,e,t=32&i?this[e]:s.$hostElement$[e],n);{if(!(1&l&&4096&n.t[e][0]))return nt(this,e,t,n),void(1&l&&!s.i&&s.C.push((()=>{4096&n.t[e][0]&&s.i[e]!==s.l.get(e)&&(s.i[e]=t)})));const o=()=>{const o=s.i[e];!s.l.get(e)&&o&&s.l.set(e,o),s.i[e]=T(t,i),nt(this,e,s.i[e],n)};s.i?o():s.C.push((()=>{o()}))}}}})}})),1&l){const t=new Map;r.attributeChangedCallback=function(e,l,i){f.jmp((()=>{var s;const u=t.get(e),f=o(this);if(this.hasOwnProperty(u)&&(i=this[u],delete this[u]),r.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==i)return;if(null==u){const t=null==f?void 0:f.u;if(f&&t&&!(8&t)&&i!==l){const o=f.i,r=null==(s=n.D)?void 0:s[e];null==r||r.forEach((n=>{const[[s,r]]=Object.entries(n);null!=o[s]&&(128&t||1&r)&&o[s].call(o,i,l,e)}))}return}const a=c.find((([t])=>t===u)),d=a&&4&a[1][0],h=d&&null===i&&void 0===this[u];d&&(i=null!==i&&"false"!==i);const p=Object.getOwnPropertyDescriptor(r,u);h||i==this[u]||p.get&&!p.set||(this[u]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.D)?s:{}),...c.filter((([t,e])=>31&e[0])).map((([e,n])=>{const o=n[1]||e;return t.set(o,e),o}))]))}}return e},lt=async(t,e,n)=>{var o;let l;try{if(!(32&e.u)){if(e.u|=32,e.u&=-1025,n.P){const c=((t,e)=>{var n;const o=t.p.replace(/-/g,"_"),l=t.P;if(!l)return;const c=s.get(l);if(c)return c[o];const u=null!=(n=r.get(l))?n:0,f=[u>0?"s-retry="+u:"",""].filter(Boolean).join("&");
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
3
|
+
return import(`./${l}.entry.js${f?"?"+f:""}`).then((t=>(r.delete(l),s.set(l,t),t[o])),(t=>{r.set(l,u+1),i(t,e.$hostElement$)}))})(n,e);if(c&&"then"in c){const t=()=>{};l=await c,t()}else l=c;if(!l)throw e.u&=-33,e.R=(null!=(o=e.R)?o:0)+1,e.R<3&&(e.u|=1024),Error(`Constructor for "${n.p}#${e.A}" was not found`);l.isProxied||(ot(l,n,2),l.isProxied=!0);const u=()=>{};e.u|=8;try{new l(e)}catch(e){i(e,t)}e.u&=-9,u(),it(e.i,t)}else l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const e=E(n);if(!c.has(e)){const o=()=>{};((t,e,n)=>{let o=c.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,c.set(t,o)})(e,t,!!(1&n.u)),o()}}}const u=e.M,f=()=>I(e,!0);u&&u["s-rc"]?u["s-rc"].push(f):f()}catch(n){i(n,t),e.k&&(e.k(),e.k=void 0),!e.T||1024&e.u||e.T(t)}},it=(t,e)=>{tt(t,"connectedCallback",void 0,e)},st=(t,e)=>{tt(t,"disconnectedCallback",void 0,e||t)},rt=(t,e={})=>{var n;if(!u.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],i=e.exclude||[],s=u.customElements,r=u.document.head,c=r.querySelector("meta[charset]"),a=u.document.createElement("style"),d=[];let h,p=!0;if(Object.assign(f,e),f.h=new URL(e.resourcesUrl||"./",u.document.baseURI).href,t.map((t=>{t[1].map((e=>{const n={u:e[0],p:e[1],t:e[2],H:e[3]};n.t=e[2];const r=n.p,c=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,U:new Map};n.W=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[],n.C=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,n),1&n.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else O.call(t,n)}connectedCallback(){o(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),h&&(clearTimeout(h),h=null),p?d.push(this):f.jmp((()=>(t=>{if(!(1&f.u)){const e=o(t);if(!e)return;const n=e.o,l=()=>{};if(1&e.u)(null==e?void 0:e.i)?it(e.i,t):1024&e.u?setTimeout((()=>lt(t,e,n)),1e3):(null==e?void 0:e.W)&&e.W.then((()=>it(e.i,t)));else{e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){G(e,e.M=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),lt(t,e,n)}l()}})(this))))}disconnectedCallback(){f.jmp((()=>(async t=>{if(!(1&f.u)){const e=o(t);(null==e?void 0:e.i)?st(e.i,t):(null==e?void 0:e.W)&&e.W.then((()=>st(e.i,t)))}M.has(t)&&M.delete(t),t.shadowRoot&&M.has(t.shadowRoot)&&M.delete(t.shadowRoot)})(this))),g((()=>{var t;const e=o(this);if(!e)return;const n=d.findIndex((t=>t===this));n>-1&&d.splice(n,1),(null==(t=null==e?void 0:e.L)?void 0:t.S)instanceof Node&&!e.L.S.isConnected&&delete e.L.S}))}componentOnReady(){var t;return null==(t=o(this))?void 0:t.W}};n.P=t[0],i.includes(r)||s.get(r)||(l.push(r),s.define(r,ot(c,n,1)))}))})),l.length>0&&(a.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",a.innerHTML.length)){a.setAttribute("data-styles","");const t=null!=(n=f.N)?n:S(u.document);null!=t&&a.setAttribute("nonce",t),r.insertBefore(a,c?c.nextSibling:r.firstChild)}p=!1,d.length?d.map((t=>t.connectedCallback())):f.jmp((()=>h=setTimeout(X,30)))},ct=t=>f.N=t;export{rt as b,N as h,a as p,l as r,ct as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-
|
|
1
|
+
import{r as e,h as t}from"./p-CdCwhkGi.js";const c=class{constructor(t){e(this,t),this.size=void 0,this.timeZone=0,this.time=Date.now()}componentDidLoad(){this.timer=window.setInterval((()=>{this.time=Date.now()}),250)}disconnectedCallback(){clearInterval(this.timer)}get hour(){return new Date(this.time).getHours()}get minute(){return new Date(this.time).getMinutes()}get second(){return new Date(this.time).getSeconds()}hourToDegrees(){const e=this.hour+this.timeZone;return Math.floor(this.minute/2)+30*e}minuteToDegrees(){return Math.floor(this.second/10)+6*this.minute}secondToDegrees(){return 6*this.second}render(){return t("svg",{key:"39e3465d3bf04035966b00bb15186d1f712163cd",class:"clock",viewBox:"0 0 200 200",width:this.size,height:this.size},t("circle",{key:"e4c4288aa0efc9cf98027eef1f5bd7c550c23a18",id:"circle",cx:"100",cy:"100",r:"95","stroke-width":"10",fill:"transparent"}),t("line",{key:"296fb8ac19749103439f2ce1878db5ccfb214c20",id:"hour",transform:`rotate(${this.hourToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"60","stroke-width":"10","stroke-linecap":"round"}),t("line",{key:"acbe2c6ebdf05ff46e06144839dec43c45e8b40d",id:"minute",transform:`rotate(${this.minuteToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"30","stroke-width":"8","stroke-linecap":"round"}),t("line",{key:"f275abf7169379b2f61c9cdd185068f5e2373d4a",id:"second",transform:`rotate(${this.secondToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"20","stroke-width":"2","stroke-linecap":"round"}))}};c.style=".clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}";export{c as analog_clock}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-vPwCXQkS.js');
|
|
4
4
|
|
|
5
5
|
const analogClockCss = () => `.clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}`;
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-vPwCXQkS.js');
|
|
4
4
|
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
5
5
|
|
|
6
6
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.
|
|
8
|
+
Stencil Client Patch Browser v4.44.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
var patchBrowser = () => {
|
|
@@ -4,7 +4,7 @@ const NAMESPACE = 'analog-clock';
|
|
|
4
4
|
const BUILD = /* analog-clock */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, state: true, updatable: true};
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
|
-
Stencil Client Platform v4.
|
|
7
|
+
Stencil Client Platform v4.44.0 | MIT Licensed | https://stenciljs.com
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
|
|
@@ -93,7 +93,9 @@ var consoleError = (e, el) => (0, console.error)(e, el);
|
|
|
93
93
|
|
|
94
94
|
// src/client/client-load-module.ts
|
|
95
95
|
var cmpModules = /* @__PURE__ */ new Map();
|
|
96
|
+
var failedLoadAttempts = /* @__PURE__ */ new Map();
|
|
96
97
|
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
98
|
+
var _a;
|
|
97
99
|
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
98
100
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
99
101
|
if (!bundleId) {
|
|
@@ -103,21 +105,28 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
103
105
|
if (module) {
|
|
104
106
|
return module[exportName];
|
|
105
107
|
}
|
|
108
|
+
const retryCount = (_a = failedLoadAttempts.get(bundleId)) != null ? _a : 0;
|
|
109
|
+
const cacheBustParams = [
|
|
110
|
+
retryCount > 0 ? `s-retry=${retryCount}` : "",
|
|
111
|
+
""
|
|
112
|
+
].filter(Boolean).join("&");
|
|
106
113
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
107
114
|
return import(
|
|
108
115
|
/* @vite-ignore */
|
|
109
116
|
/* webpackInclude: /\.entry\.js$/ */
|
|
110
117
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
111
118
|
/* webpackMode: "lazy" */
|
|
112
|
-
`./${bundleId}.entry.js${""}`
|
|
119
|
+
`./${bundleId}.entry.js${cacheBustParams ? "?" + cacheBustParams : ""}`
|
|
113
120
|
).then(
|
|
114
121
|
(importedModule) => {
|
|
115
122
|
{
|
|
123
|
+
failedLoadAttempts.delete(bundleId);
|
|
116
124
|
cmpModules.set(bundleId, importedModule);
|
|
117
125
|
}
|
|
118
126
|
return importedModule[exportName];
|
|
119
127
|
},
|
|
120
128
|
(e) => {
|
|
129
|
+
failedLoadAttempts.set(bundleId, retryCount + 1);
|
|
121
130
|
consoleError(e, hostRef.$hostElement$);
|
|
122
131
|
}
|
|
123
132
|
);
|
|
@@ -127,6 +136,8 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
127
136
|
var styles = /* @__PURE__ */ new Map();
|
|
128
137
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
129
138
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
139
|
+
var MAX_LAZY_LOAD_RETRIES = 3;
|
|
140
|
+
var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
|
|
130
141
|
var win = typeof window !== "undefined" ? window : {};
|
|
131
142
|
var plt = {
|
|
132
143
|
$flags$: 0,
|
|
@@ -153,6 +164,10 @@ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @_
|
|
|
153
164
|
var queuePending = false;
|
|
154
165
|
var queueDomReads = [];
|
|
155
166
|
var queueDomWrites = [];
|
|
167
|
+
var scheduleFlush = () => {
|
|
168
|
+
var _a;
|
|
169
|
+
return ((_a = win.document) == null ? void 0 : _a.hidden) ? nextTick(flush) : plt.raf(flush);
|
|
170
|
+
};
|
|
156
171
|
var queueTask = (queue, write) => (cb) => {
|
|
157
172
|
queue.push(cb);
|
|
158
173
|
if (!queuePending) {
|
|
@@ -160,7 +175,7 @@ var queueTask = (queue, write) => (cb) => {
|
|
|
160
175
|
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
161
176
|
nextTick(flush);
|
|
162
177
|
} else {
|
|
163
|
-
|
|
178
|
+
scheduleFlush();
|
|
164
179
|
}
|
|
165
180
|
}
|
|
166
181
|
};
|
|
@@ -179,7 +194,7 @@ var flush = () => {
|
|
|
179
194
|
{
|
|
180
195
|
consume(queueDomWrites);
|
|
181
196
|
if (queuePending = queueDomReads.length > 0) {
|
|
182
|
-
|
|
197
|
+
scheduleFlush();
|
|
183
198
|
}
|
|
184
199
|
}
|
|
185
200
|
};
|
|
@@ -371,6 +386,11 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
371
386
|
} else if (child != null && typeof child !== "boolean") {
|
|
372
387
|
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
373
388
|
child = String(child);
|
|
389
|
+
} else if (typeof nodeName !== "function" && child.$flags$ === void 0) {
|
|
390
|
+
{
|
|
391
|
+
consoleError("Invalid vNode child");
|
|
392
|
+
}
|
|
393
|
+
continue;
|
|
374
394
|
}
|
|
375
395
|
if (simple && lastSimple) {
|
|
376
396
|
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
@@ -1129,10 +1149,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1129
1149
|
|
|
1130
1150
|
// src/runtime/initialize-component.ts
|
|
1131
1151
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1152
|
+
var _a;
|
|
1132
1153
|
let Cstr;
|
|
1133
1154
|
try {
|
|
1134
1155
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1135
1156
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1157
|
+
hostRef.$flags$ &= -1025 /* hasFailedLoad */;
|
|
1136
1158
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1137
1159
|
if (bundleId) {
|
|
1138
1160
|
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
@@ -1144,6 +1166,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1144
1166
|
Cstr = CstrImport;
|
|
1145
1167
|
}
|
|
1146
1168
|
if (!Cstr) {
|
|
1169
|
+
hostRef.$flags$ &= -33 /* hasInitializedComponent */;
|
|
1170
|
+
hostRef.$loadRetryCount$ = ((_a = hostRef.$loadRetryCount$) != null ? _a : 0) + 1;
|
|
1171
|
+
if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {
|
|
1172
|
+
hostRef.$flags$ |= 1024 /* hasFailedLoad */;
|
|
1173
|
+
}
|
|
1147
1174
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1148
1175
|
}
|
|
1149
1176
|
if (!Cstr.isProxied) {
|
|
@@ -1197,7 +1224,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1197
1224
|
hostRef.$onRenderResolve$();
|
|
1198
1225
|
hostRef.$onRenderResolve$ = void 0;
|
|
1199
1226
|
}
|
|
1200
|
-
if (hostRef.$onReadyResolve$) {
|
|
1227
|
+
if (hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {
|
|
1201
1228
|
hostRef.$onReadyResolve$(elm);
|
|
1202
1229
|
}
|
|
1203
1230
|
}
|
|
@@ -1243,6 +1270,8 @@ var connectedCallback = (elm) => {
|
|
|
1243
1270
|
} else {
|
|
1244
1271
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1245
1272
|
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1273
|
+
} else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {
|
|
1274
|
+
setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);
|
|
1246
1275
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1247
1276
|
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1248
1277
|
}
|
|
@@ -1346,7 +1375,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1346
1375
|
}
|
|
1347
1376
|
disconnectedCallback() {
|
|
1348
1377
|
plt.jmp(() => disconnectedCallback(this));
|
|
1349
|
-
|
|
1378
|
+
nextTick(() => {
|
|
1350
1379
|
var _a3;
|
|
1351
1380
|
const hostRef = getHostRef(this);
|
|
1352
1381
|
if (!hostRef) {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-CdCwhkGi.js';
|
|
2
2
|
|
|
3
3
|
const analogClockCss = () => `.clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}`;
|
|
4
4
|
|
package/dist/esm/analog-clock.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-CdCwhkGi.js';
|
|
2
|
+
export { s as setNonce } from './index-CdCwhkGi.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.44.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
var patchBrowser = () => {
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'analog-clock';
|
|
|
2
2
|
const BUILD = /* analog-clock */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, state: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.44.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
|
|
@@ -91,7 +91,9 @@ var consoleError = (e, el) => (0, console.error)(e, el);
|
|
|
91
91
|
|
|
92
92
|
// src/client/client-load-module.ts
|
|
93
93
|
var cmpModules = /* @__PURE__ */ new Map();
|
|
94
|
+
var failedLoadAttempts = /* @__PURE__ */ new Map();
|
|
94
95
|
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
96
|
+
var _a;
|
|
95
97
|
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
96
98
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
97
99
|
if (!bundleId) {
|
|
@@ -101,21 +103,28 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
101
103
|
if (module) {
|
|
102
104
|
return module[exportName];
|
|
103
105
|
}
|
|
106
|
+
const retryCount = (_a = failedLoadAttempts.get(bundleId)) != null ? _a : 0;
|
|
107
|
+
const cacheBustParams = [
|
|
108
|
+
retryCount > 0 ? `s-retry=${retryCount}` : "",
|
|
109
|
+
""
|
|
110
|
+
].filter(Boolean).join("&");
|
|
104
111
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
105
112
|
return import(
|
|
106
113
|
/* @vite-ignore */
|
|
107
114
|
/* webpackInclude: /\.entry\.js$/ */
|
|
108
115
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
109
116
|
/* webpackMode: "lazy" */
|
|
110
|
-
`./${bundleId}.entry.js${""}`
|
|
117
|
+
`./${bundleId}.entry.js${cacheBustParams ? "?" + cacheBustParams : ""}`
|
|
111
118
|
).then(
|
|
112
119
|
(importedModule) => {
|
|
113
120
|
{
|
|
121
|
+
failedLoadAttempts.delete(bundleId);
|
|
114
122
|
cmpModules.set(bundleId, importedModule);
|
|
115
123
|
}
|
|
116
124
|
return importedModule[exportName];
|
|
117
125
|
},
|
|
118
126
|
(e) => {
|
|
127
|
+
failedLoadAttempts.set(bundleId, retryCount + 1);
|
|
119
128
|
consoleError(e, hostRef.$hostElement$);
|
|
120
129
|
}
|
|
121
130
|
);
|
|
@@ -125,6 +134,8 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
125
134
|
var styles = /* @__PURE__ */ new Map();
|
|
126
135
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
127
136
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
137
|
+
var MAX_LAZY_LOAD_RETRIES = 3;
|
|
138
|
+
var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
|
|
128
139
|
var win = typeof window !== "undefined" ? window : {};
|
|
129
140
|
var plt = {
|
|
130
141
|
$flags$: 0,
|
|
@@ -151,6 +162,10 @@ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @_
|
|
|
151
162
|
var queuePending = false;
|
|
152
163
|
var queueDomReads = [];
|
|
153
164
|
var queueDomWrites = [];
|
|
165
|
+
var scheduleFlush = () => {
|
|
166
|
+
var _a;
|
|
167
|
+
return ((_a = win.document) == null ? void 0 : _a.hidden) ? nextTick(flush) : plt.raf(flush);
|
|
168
|
+
};
|
|
154
169
|
var queueTask = (queue, write) => (cb) => {
|
|
155
170
|
queue.push(cb);
|
|
156
171
|
if (!queuePending) {
|
|
@@ -158,7 +173,7 @@ var queueTask = (queue, write) => (cb) => {
|
|
|
158
173
|
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
159
174
|
nextTick(flush);
|
|
160
175
|
} else {
|
|
161
|
-
|
|
176
|
+
scheduleFlush();
|
|
162
177
|
}
|
|
163
178
|
}
|
|
164
179
|
};
|
|
@@ -177,7 +192,7 @@ var flush = () => {
|
|
|
177
192
|
{
|
|
178
193
|
consume(queueDomWrites);
|
|
179
194
|
if (queuePending = queueDomReads.length > 0) {
|
|
180
|
-
|
|
195
|
+
scheduleFlush();
|
|
181
196
|
}
|
|
182
197
|
}
|
|
183
198
|
};
|
|
@@ -369,6 +384,11 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
369
384
|
} else if (child != null && typeof child !== "boolean") {
|
|
370
385
|
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
371
386
|
child = String(child);
|
|
387
|
+
} else if (typeof nodeName !== "function" && child.$flags$ === void 0) {
|
|
388
|
+
{
|
|
389
|
+
consoleError("Invalid vNode child");
|
|
390
|
+
}
|
|
391
|
+
continue;
|
|
372
392
|
}
|
|
373
393
|
if (simple && lastSimple) {
|
|
374
394
|
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
@@ -1127,10 +1147,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1127
1147
|
|
|
1128
1148
|
// src/runtime/initialize-component.ts
|
|
1129
1149
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1150
|
+
var _a;
|
|
1130
1151
|
let Cstr;
|
|
1131
1152
|
try {
|
|
1132
1153
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1133
1154
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1155
|
+
hostRef.$flags$ &= -1025 /* hasFailedLoad */;
|
|
1134
1156
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1135
1157
|
if (bundleId) {
|
|
1136
1158
|
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
@@ -1142,6 +1164,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1142
1164
|
Cstr = CstrImport;
|
|
1143
1165
|
}
|
|
1144
1166
|
if (!Cstr) {
|
|
1167
|
+
hostRef.$flags$ &= -33 /* hasInitializedComponent */;
|
|
1168
|
+
hostRef.$loadRetryCount$ = ((_a = hostRef.$loadRetryCount$) != null ? _a : 0) + 1;
|
|
1169
|
+
if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {
|
|
1170
|
+
hostRef.$flags$ |= 1024 /* hasFailedLoad */;
|
|
1171
|
+
}
|
|
1145
1172
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1146
1173
|
}
|
|
1147
1174
|
if (!Cstr.isProxied) {
|
|
@@ -1195,7 +1222,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1195
1222
|
hostRef.$onRenderResolve$();
|
|
1196
1223
|
hostRef.$onRenderResolve$ = void 0;
|
|
1197
1224
|
}
|
|
1198
|
-
if (hostRef.$onReadyResolve$) {
|
|
1225
|
+
if (hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {
|
|
1199
1226
|
hostRef.$onReadyResolve$(elm);
|
|
1200
1227
|
}
|
|
1201
1228
|
}
|
|
@@ -1241,6 +1268,8 @@ var connectedCallback = (elm) => {
|
|
|
1241
1268
|
} else {
|
|
1242
1269
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1243
1270
|
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1271
|
+
} else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {
|
|
1272
|
+
setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);
|
|
1244
1273
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1245
1274
|
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1246
1275
|
}
|
|
@@ -1344,7 +1373,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1344
1373
|
}
|
|
1345
1374
|
disconnectedCallback() {
|
|
1346
1375
|
plt.jmp(() => disconnectedCallback(this));
|
|
1347
|
-
|
|
1376
|
+
nextTick(() => {
|
|
1348
1377
|
var _a3;
|
|
1349
1378
|
const hostRef = getHostRef(this);
|
|
1350
1379
|
if (!hostRef) {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-CdCwhkGi.js';
|
|
2
|
+
export { s as setNonce } from './index-CdCwhkGi.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1008,6 +1008,7 @@ export declare namespace JSXBase {
|
|
|
1008
1008
|
onClose?: (event: Event) => void;
|
|
1009
1009
|
open?: boolean;
|
|
1010
1010
|
returnValue?: string;
|
|
1011
|
+
closedby?: 'any' | 'closerequest' | 'none';
|
|
1011
1012
|
}
|
|
1012
1013
|
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1013
1014
|
height?: number | string;
|
|
@@ -1045,6 +1046,8 @@ export declare namespace JSXBase {
|
|
|
1045
1046
|
allowtransparency?: string | boolean;
|
|
1046
1047
|
frameBorder?: number | string;
|
|
1047
1048
|
frameborder?: number | string;
|
|
1049
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1050
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1048
1051
|
importance?: 'low' | 'auto' | 'high';
|
|
1049
1052
|
height?: number | string;
|
|
1050
1053
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -1067,6 +1070,8 @@ export declare namespace JSXBase {
|
|
|
1067
1070
|
crossOrigin?: string;
|
|
1068
1071
|
crossorigin?: string;
|
|
1069
1072
|
decoding?: 'async' | 'auto' | 'sync';
|
|
1073
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1074
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1070
1075
|
importance?: 'low' | 'auto' | 'high';
|
|
1071
1076
|
height?: number | string;
|
|
1072
1077
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -1166,6 +1171,8 @@ export declare namespace JSXBase {
|
|
|
1166
1171
|
}
|
|
1167
1172
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1168
1173
|
as?: string;
|
|
1174
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1175
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1169
1176
|
href?: string;
|
|
1170
1177
|
hrefLang?: string;
|
|
1171
1178
|
hreflang?: string;
|
|
@@ -1289,6 +1296,8 @@ export declare namespace JSXBase {
|
|
|
1289
1296
|
crossOrigin?: string;
|
|
1290
1297
|
crossorigin?: string;
|
|
1291
1298
|
defer?: boolean;
|
|
1299
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1300
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1292
1301
|
importance?: 'low' | 'auto' | 'high';
|
|
1293
1302
|
integrity?: string;
|
|
1294
1303
|
nonce?: string;
|
|
@@ -1404,7 +1413,9 @@ export declare namespace JSXBase {
|
|
|
1404
1413
|
tabIndex?: number;
|
|
1405
1414
|
tabindex?: number | string;
|
|
1406
1415
|
title?: string;
|
|
1416
|
+
translate?: 'yes' | 'no' | (string & {});
|
|
1407
1417
|
popover?: string | null;
|
|
1418
|
+
focusgroup?: string;
|
|
1408
1419
|
inputMode?: string;
|
|
1409
1420
|
inputmode?: string;
|
|
1410
1421
|
enterKeyHint?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "analog-clock-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.147",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"format": "prettier --write src"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@stencil/core": "4.
|
|
29
|
+
"@stencil/core": "4.44.0"
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function t(t,e,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,e);if(o&&(!n||o.get))return o;t=Object.getPrototypeOf(t)}}var e,n=(e,n)=>{var o;Object.entries(null!=(o=n.o.t)?o:{}).map((([o,[l]])=>{if(31&l||32&l){const l=e[o],i=t(Object.getPrototypeOf(e),o,!0)||Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(e,o,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(o)?e[o]=n.l.get(o):void 0!==l&&(e[o]=l)}}))},o=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},l=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&n(t,e))},i=(t,e)=>(0,console.error)(t,e),s=new Map,r=new Map,c="undefined"!=typeof window?window:{},u={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),a=(()=>{try{return!!c.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),d=!!a&&(()=>!!c.document&&Object.getOwnPropertyDescriptor(c.document.adoptedStyleSheets,"length").writable)(),h=!1,p=[],m=[],v=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&u.u?w(b):u.raf(b))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){i(t)}t.length=0},b=()=>{y(p),y(m),(h=p.length>0)&&u.raf(b)},w=t=>f().then(t),$=v(m,!0);function g(){const t=this.attachShadow({mode:"open"});void 0===e&&(e=null),e&&(d?t.adoptedStyleSheets.push(e):t.adoptedStyleSheets=[...t.adoptedStyleSheets,e])}function j(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var O,S=new WeakMap,k=t=>"sc-"+t.p,M=t=>"object"==(t=typeof t)||"function"===t,E=(t,e,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!M(o))&&(o+=""),i&&s?r[r.length-1].m+=o:r.push(i?C(null,o):o),s=i)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=C(t,null);return u.v=e,r.length>0&&(u.$=r),u.j=l,u},C=(t,e)=>({u:0,O:t,m:null!=e?e:null,S:null,$:null,v:null,j:null}),x={},L=(t,e)=>null==t||M(t)?t:2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:t,N=(t,e,n,l,i,s)=>{if(n===l)return;let r=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,o=P(n);let i=P(l);e.remove(...o.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!o.includes(t))))}else if("key"===e);else{if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let i;{const e=o(t);if(e&&e.o&&e.o.t){const t=e.o.t[n];t&&t[1]&&(i=t[1])}}return i||(i=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==l||!1===l?!1===l&&""!==t.getAttribute(i)||t.removeAttribute(i):t.setAttribute(i,!0===l?"":l))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=l}catch(t){}return}{const o=M(l);if((r||o&&null!==l)&&!i)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]===o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||i)&&!o&&1===t.nodeType&&t.setAttribute(e,l=!0===l?"":l)}}},D=/\s/,P=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(D):[]),R=(t,e,n)=>{const o=11===e.S.nodeType&&e.S.host?e.S.host:e.S,l=t&&t.v||{},i=e.v||{};for(const t of T(Object.keys(l)))t in i||N(o,t,l[t],void 0,n,e.u);for(const t of T(Object.keys(i)))N(o,t,l[t],i[t],n,e.u)};function T(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var A=!1,H=(t,e,n)=>{const o=e.$[n];let l,i,s=0;if(A||(A="svg"===o.O),!c.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.S=c.document.createElementNS(A?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.O),A&&"foreignObject"===o.O&&(A=!1),R(null,o,A),o.$){const e="template"===o.O?l.content:l;for(s=0;s<o.$.length;++s)i=H(t,o,s),i&&e.appendChild(i)}return"svg"===o.O?A=!1:"foreignObject"===l.tagName&&(A=!0),l["s-hn"]=O,l},U=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===O&&(r=r.shadowRoot),"template"===n.O&&(r=r.content);l<=i;++l)o[l]&&(s=H(null,n,l),s&&(o[l].S=s,V(r,s,e)))},W=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.S;t&&t.remove()}}},z=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),F=(t,e,n=!1)=>{const o=e.S=t.S,l=t.$,i=e.$,s=e.O;R(t,e,A="svg"===s||"foreignObject"!==s&&A),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,m=o[0],v=o[p];const y="template"===n.O?t.content:t;for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(z(d,m,l))F(d,m,l),d=e[++r],m=o[++c];else if(z(h,v,l))F(h,v,l),h=e[--a],v=o[--p];else if(z(d,v,l))F(d,v,l),V(y,d.S,h.S.nextSibling),d=e[++r],v=o[--p];else if(z(h,m,l))F(h,m,l),V(y,h.S,d.S),h=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].j&&e[f].j===m.j){u=f;break}u>=0?(s=e[u],s.O!==m.O?i=H(e&&e[c],n,u):(F(s,m,l),e[u]=void 0,i=s.S),m=o[++c]):(i=H(e&&e[c],n,c),m=o[++c]),i&&V(d.S.parentNode,i,d.S)}r>a?U(t,null==o[p+1]?null:o[p+1].S,n,o,c,p):c>p&&W(e,r,a)})(o,l,e,i,n):null!==i?U(o,null,e,i,0,i.length-1):!n&&null!==l&&W(l,0,l.length-1),A&&"svg"===s&&(A=!1)},V=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),q=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.k=()=>{e["s-p"].splice(n-1,1),o()})))}},G=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);q(t,t.M);const n=()=>Y(t,e);if(!e)return $(n);queueMicrotask((()=>{n()}))},Y=(t,e)=>{const n=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.C.length&&t.C.forEach((t=>t(n))),l=Q(o,"componentWillLoad",void 0,n)):l=Q(o,"componentWillUpdate",void 0,n),l=Z(l,(()=>Q(o,"componentWillRender",void 0,n))),Z(l,(()=>B(t,o,e)))},Z=(t,e)=>_(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),_=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,B=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=((t,e)=>{var n,o,l;const i=k(e),s=r.get(i);if(!c.document)return i;if(t=11===t.nodeType?t:c.document,s)if("string"==typeof s){let l,r=S.get(t=t.head||t);if(r||S.set(t,r=new Set),!r.has(i)){l=c.document.createElement("style"),l.textContent=s;const f=null!=(n=u.L)?n:j(c.document);if(null!=f&&l.setAttribute("nonce",f),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(a){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(s),d?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=s+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(i)}}else{let e=S.get(t);if(e||S.set(t,e=new Set),!e.has(i)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(s.constructor===n.CSSStyleSheet)o=s;else{o=new n.CSSStyleSheet;for(let t=0;t<s.cssRules.length;t++)o.insertRule(s.cssRules[t].cssText,t)}d?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);I(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>J(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}},I=(t,e,n,o)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.N||C(null,null),i=(t=>t&&t.O===x)(e)?e:E(null,null,e);if(O=o.tagName,n&&i.v)for(const t of Object.keys(i.v))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.v[t]=o[t]);i.O=null,i.u|=4,t.N=i,i.S=l.S=o.shadowRoot||o,F(l,i,n)})(t,e,o)}catch(e){i(e,t.$hostElement$)}return null},J=t=>{const e=t.$hostElement$,n=t.i,o=t.M;Q(n,"componentDidRender",void 0,e),64&t.u?Q(n,"componentDidUpdate",void 0,e):(t.u|=64,X(e),Q(n,"componentDidLoad",void 0,e),t.D(e),o||K()),t.k&&(t.k(),t.k=void 0),512&t.u&&w((()=>G(t,!1))),t.u&=-517},K=()=>{w((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(c)))},Q=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){i(t,o)}},X=t=>t.classList.add("hydrated"),tt=(t,e,n,l)=>{const i=o(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.p}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=i.l.get(e),r=i.u,c=i.i;if(n=L(n,l.t[e][0]),(!(8&r)||void 0===s)&&n!==s&&(!Number.isNaN(s)||!Number.isNaN(n))&&(i.l.set(e,n),2&r)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,s,e)&&!(16&r))return;16&r||G(i,!1)}},et=(e,n,l)=>{var i,s;const r=e.prototype;if(n.t){const c=Object.entries(null!=(i=n.t)?i:{});if(c.map((([e,[i]])=>{if(31&i||2&l&&32&i){const{get:s,set:c}=t(r,e)||{};s&&(n.t[e][0]|=2048),c&&(n.t[e][0]|=4096),(1&l||!s)&&Object.defineProperty(r,e,{get(){{if(!(2048&n.t[e][0]))return((t,e)=>o(this).l.get(e))(0,e);const t=o(this),l=t?t.i:r;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,e,{set(t){const s=o(this);if(s){if(c)return void 0===(32&i?this[e]:s.$hostElement$[e])&&s.l.get(e)&&(t=s.l.get(e)),c.call(this,L(t,i)),void tt(this,e,t=32&i?this[e]:s.$hostElement$[e],n);{if(!(1&l&&4096&n.t[e][0]))return tt(this,e,t,n),void(1&l&&!s.i&&s.C.push((()=>{4096&n.t[e][0]&&s.i[e]!==s.l.get(e)&&(s.i[e]=t)})));const o=()=>{const o=s.i[e];!s.l.get(e)&&o&&s.l.set(e,o),s.i[e]=L(t,i),tt(this,e,s.i[e],n)};s.i?o():s.C.push((()=>{o()}))}}}})}})),1&l){const t=new Map;r.attributeChangedCallback=function(e,l,i){u.jmp((()=>{var s;const u=t.get(e),f=o(this);if(this.hasOwnProperty(u)&&(i=this[u],delete this[u]),r.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==i)return;if(null==u){const t=null==f?void 0:f.u;if(f&&t&&!(8&t)&&i!==l){const o=f.i,r=null==(s=n.P)?void 0:s[e];null==r||r.forEach((n=>{const[[s,r]]=Object.entries(n);null!=o[s]&&(128&t||1&r)&&o[s].call(o,i,l,e)}))}return}const a=c.find((([t])=>t===u)),d=a&&4&a[1][0],h=d&&null===i&&void 0===this[u];d&&(i=null!==i&&"false"!==i);const p=Object.getOwnPropertyDescriptor(r,u);h||i==this[u]||p.get&&!p.set||(this[u]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.P)?s:{}),...c.filter((([t,e])=>31&e[0])).map((([e,n])=>{const o=n[1]||e;return t.set(o,e),o}))]))}}return e},nt=(t,e)=>{Q(t,"connectedCallback",void 0,e)},ot=(t,e)=>{Q(t,"disconnectedCallback",void 0,e||t)},lt=(t,e={})=>{var n;if(!c.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],f=e.exclude||[],d=c.customElements,h=c.document.head,p=h.querySelector("meta[charset]"),m=c.document.createElement("style"),v=[];let y,b=!0;if(Object.assign(u,e),u.h=new URL(e.resourcesUrl||"./",c.document.baseURI).href,t.map((t=>{t[1].map((e=>{const n={u:e[0],p:e[1],t:e[2],R:e[3]};n.t=e[2];const c=n.p,h=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,T:new Map};n.A=new Promise((t=>n.D=t)),t["s-p"]=[],t["s-rc"]=[],n.C=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,n),1&n.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else g.call(t,n)}connectedCallback(){o(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),y&&(clearTimeout(y),y=null),b?v.push(this):u.jmp((()=>(t=>{if(!(1&u.u)){const e=o(t);if(!e)return;const n=e.o,l=()=>{};if(1&e.u)(null==e?void 0:e.i)?nt(e.i,t):(null==e?void 0:e.A)&&e.A.then((()=>nt(e.i,t)));else{e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){q(e,e.M=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;try{if(!(32&e.u)){if(e.u|=32,n.H){const l=((t,e)=>{const n=t.p.replace(/-/g,"_"),o=t.H;if(!o)return;const l=s.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{i(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.p}#${e.U}" was not found`);o.isProxied||(et(o,n,2),o.isProxied=!0);const r=()=>{};e.u|=8;try{new o(e)}catch(e){i(e,t)}e.u&=-9,r(),nt(e.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=k(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);a&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.u)),o()}}}const l=e.M,c=()=>G(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()}catch(n){i(n,t),e.k&&(e.k(),e.k=void 0),e.D&&e.D(t)}})(t,e,n)}l()}})(this))))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.u)){const e=o(t);(null==e?void 0:e.i)?ot(e.i,t):(null==e?void 0:e.A)&&e.A.then((()=>ot(e.i,t)))}S.has(t)&&S.delete(t),t.shadowRoot&&S.has(t.shadowRoot)&&S.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const e=o(this);if(!e)return;const n=v.findIndex((t=>t===this));n>-1&&v.splice(n,1),(null==(t=null==e?void 0:e.N)?void 0:t.S)instanceof Node&&!e.N.S.isConnected&&delete e.N.S}))}componentOnReady(){var t;return null==(t=o(this))?void 0:t.A}};n.H=t[0],f.includes(c)||d.get(c)||(l.push(c),d.define(c,et(h,n,1)))}))})),l.length>0&&(m.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const t=null!=(n=u.L)?n:j(c.document);null!=t&&m.setAttribute("nonce",t),h.insertBefore(m,p?p.nextSibling:h.firstChild)}b=!1,v.length?v.map((t=>t.connectedCallback())):u.jmp((()=>y=setTimeout(K,30)))},it=t=>u.L=t;export{lt as b,E as h,f as p,l as r,it as s}
|