analog-clock-components 0.2.50 → 0.2.51

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.
@@ -1 +1 @@
1
- import{p as a,b as o}from"./p-alj9jHsZ.js";export{s as setNonce}from"./p-alj9jHsZ.js";import{g as e}from"./p-DQuL1Twl.js";(()=>{const s=import.meta.url,o={};return""!==s&&(o.resourcesUrl=new URL(".",s).href),a(o)})().then((async s=>(await e(),o([["p-c12ca25b",[[257,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],s))));
1
+ import{p as t,b as o}from"./p-CH_Nt4nz.js";export{s as setNonce}from"./p-CH_Nt4nz.js";import{g as e}from"./p-DQuL1Twl.js";(()=>{const o=import.meta.url,e={};return""!==o&&(e.resourcesUrl=new URL(".",o).href),t(e)})().then((async t=>(await e(),o([["p-69b911b3",[[257,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],t))));
@@ -1 +1 @@
1
- import{r as e,h as t}from"./p-alj9jHsZ.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
+ import{r as e,h as t}from"./p-CH_Nt4nz.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}
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.t=t)},o=(t,e)=>(0,console.error)(t,e),i=new Map,s=new Map,l="slot-fb{display:contents}slot-fb[hidden]{display:none}",r="undefined"!=typeof window?window:{},c={o:0,i:"",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)},u=t=>Promise.resolve(t),a=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),f=!!a&&(()=>!!r.document&&Object.getOwnPropertyDescriptor(r.document.adoptedStyleSheets,"length").writable)(),d=!1,h=[],p=[],m=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&c.o?w(y):c.raf(y))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){o(t)}t.length=0},y=()=>{v(h),v(p),(d=h.length>0)&&c.raf(y)},w=t=>u().then(t),b=m(p,!0),$=t=>"object"==(t=typeof t)||"function"===t;function g(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}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>O,ok:()=>S,unwrap:()=>E,unwrapErr:()=>C});var S=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>S(t))):S(n)}if(t.isErr)return j(t.value);throw"should never get here"}var k,E=t=>{if(t.isOk)return t.value;throw t.value},C=t=>{if(t.isErr)return t.value;throw t.value};function M(){const t=this.attachShadow({mode:"open"});void 0===k&&(k=null),k&&(f?t.adoptedStyleSheets.push(k):t.adoptedStyleSheets=[...t.adoptedStyleSheets,k])}var x=new WeakMap,N=t=>"sc-"+t.l,P=(t,e,...n)=>{let o=null,i=null,s=!1,l=!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&&((s="function"!=typeof t&&!$(o))&&(o+=""),s&&l?r[r.length-1].u+=o:r.push(s?D(null,o):o),l=s)};if(c(n),e){e.key&&(i=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=D(t,null);return u.h=e,r.length>0&&(u.p=r),u.m=i,u},D=(t,e)=>({o:0,v:t,u:e,$:null,p:null,h:null,m:null}),R={},U=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};U("::slotted"),U(":host"),U(":host-context");var W,A=(t,e)=>{if("string"==typeof t&&(16&e||8&e)&&(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")))try{return JSON.parse(t)}catch(t){}return null==t||$(t)?t:2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:t},L=(t,e,n,o,i,s)=>{if(n===o)return;let l=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,i=F(n);let s=F(o);e.remove(...i.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!i.includes(t))))}else if("key"===e);else{const r=$(o);if((l||r&&null!==o)&&!i)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const i=null==o?"":o;"list"===e?l=!1:null!=n&&t[e]==i||("function"==typeof t.__lookupSetter__(e)?t[e]=i:t.setAttribute(e,i))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!l||4&s||i)&&!r&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}},T=/\s/,F=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(T):[]),H=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,i=t&&t.h||{},s=e.h||{};for(const t of q(Object.keys(i)))t in s||L(o,t,i[t],void 0,n,e.o);for(const t of q(Object.keys(s)))L(o,t,i[t],s[t],n,e.o)};function q(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var z=!1,V=(t,e,n)=>{const o=e.p[n];let i,s,l=0;if(z||(z="svg"===o.v),!r.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(i=o.$=r.document.createElementNS(z?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.v),z&&"foreignObject"===o.v&&(z=!1),H(null,o,z),o.p)for(l=0;l<o.p.length;++l)s=V(t,o,l),s&&i.appendChild(s);return"svg"===o.v?z=!1:"foreignObject"===i.tagName&&(z=!0),i["s-hn"]=W,i},G=(t,e,n,o,i,s)=>{let l,r=t;for(r.shadowRoot&&r.tagName===W&&(r=r.shadowRoot);i<=s;++i)o[i]&&(l=V(null,n,i),l&&(o[i].$=l,_(r,l,e)))},I=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;t&&t.remove()}}},J=(t,e,n=!1)=>t.v===e.v&&(n?(n&&!t.m&&e.m&&(t.m=e.m),!0):t.m===e.m),Y=(t,e,n=!1)=>{const o=e.$=t.$,i=t.p,s=e.p,l=e.v;H(t,e,z="svg"===l||"foreignObject"!==l&&z),null!==i&&null!==s?((t,e,n,o,i=!1)=>{let s,l,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(J(d,m,i))Y(d,m,i),d=e[++r],m=o[++c];else if(J(h,v,i))Y(h,v,i),h=e[--f],v=o[--p];else if(J(d,v,i))Y(d,v,i),_(t,d.$,h.$.nextSibling),d=e[++r],v=o[--p];else if(J(h,m,i))Y(h,m,i),_(t,h.$,d.$),h=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].m&&e[a].m===m.m){u=a;break}u>=0?(l=e[u],l.v!==m.v?s=V(e&&e[c],n,u):(Y(l,m,i),e[u]=void 0,s=l.$),m=o[++c]):(s=V(e&&e[c],n,c),m=o[++c]),s&&_(d.$.parentNode,s,d.$)}r>f?G(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&I(e,r,f)})(o,i,e,s,n):null!==s?G(o,null,e,s,0,s.length-1):!n&&null!==i&&I(i,0,i.length-1),z&&"svg"===l&&(z=!1)},_=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),B=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},K=(t,e)=>{if(t.o|=16,4&t.o)return void(t.o|=512);B(t,t.j);const n=()=>Q(t,e);if(!e)return b(n);queueMicrotask((()=>{n()}))},Q=(t,e)=>{const n=t.$hostElement$,o=t.t;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 i;return i=it(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),i=X(i,(()=>it(o,"componentWillRender",void 0,n))),X(i,(()=>tt(t,o,e)))},X=(t,e)=>Z(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Z=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,tt=async(t,e,n)=>{var o;const i=t.$hostElement$,u=i["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,i=((t,e)=>{var n;const o=N(e),i=s.get(o);if(!r.document)return o;if(t=11===t.nodeType?t:r.document,i)if("string"==typeof i){let s,u=x.get(t=t.head||t);if(u||x.set(t,u=new Set),!u.has(o)){{s=r.document.createElement("style"),s.innerHTML=i;const o=null!=(n=c.k)?n:g(r.document);if(null!=o&&s.setAttribute("nonce",o),!(1&e.o))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(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(a){const e=new CSSStyleSheet;e.replaceSync(i),f?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=i+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=l),u&&u.add(o)}}else t.adoptedStyleSheets.includes(i)||(f?t.adoptedStyleSheets.push(i):t.adoptedStyleSheets=[...t.adoptedStyleSheets,i]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=i,n.classList.add(i+"-h"))})(t);et(t,e,i,n),u&&(u.map((t=>t())),i["s-rc"]=void 0);{const e=null!=(o=i["s-p"])?o:[],n=()=>nt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},et=(t,e,n,i)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,i=t.C||D(null,null),s=(t=>t&&t.v===R)(e)?e:P(null,null,e);if(W=o.tagName,n&&s.h)for(const t of Object.keys(s.h))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.h[t]=o[t]);s.v=null,s.o|=4,t.C=s,s.$=i.$=o.shadowRoot||o,Y(i,s,n)})(t,e,i)}catch(e){o(e,t.$hostElement$)}return null},nt=t=>{const e=t.$hostElement$,n=t.t,o=t.j;it(n,"componentDidRender",void 0,e),64&t.o?it(n,"componentDidUpdate",void 0,e):(t.o|=64,st(e),it(n,"componentDidLoad",void 0,e),t.M(e),o||ot()),t.S&&(t.S(),t.S=void 0),512&t.o&&w((()=>K(t,!1))),t.o&=-517},ot=()=>{w((()=>(t=>{const e=c.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(r)))},it=(t,e,n,i)=>{if(t&&t[e])try{return t[e](n)}catch(t){o(t,i)}},st=t=>t.classList.add("hydrated"),lt=(t,n,o,i)=>{const s=e(t);if(!s)return;if(!s)throw Error(`Couldn't find host element for "${i.l}" 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 l=s.N.get(n),r=s.o,c=s.t;if(o=A(o,i.P[n][0]),(!(8&r)||void 0===l)&&o!==l&&(!Number.isNaN(l)||!Number.isNaN(o))&&(s.N.set(n,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,l,n))return;K(s,!1)}},rt=(t,n,o)=>{var i,s;const l=t.prototype;if(n.P){const r=Object.entries(null!=(i=n.P)?i:{});if(r.map((([t,[i]])=>{if(31&i||2&o&&32&i){const{get:s,set:r}=Object.getOwnPropertyDescriptor(l,t)||{};s&&(n.P[t][0]|=2048),r&&(n.P[t][0]|=4096),(1&o||!s)&&Object.defineProperty(l,t,{get(){{if(!(2048&n.P[t][0]))return((t,n)=>e(this).N.get(n))(0,t);const o=e(this),i=o?o.t:l;if(!i)return;return i[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(l,t,{set(s){const l=e(this);if(l){if(r){const e=32&i?this[t]:l.$hostElement$[t];return void 0===e&&l.N.get(t)?s=l.N.get(t):!l.N.get(t)&&e&&l.N.set(t,e),r.call(this,A(s,i)),void lt(this,t,s=32&i?this[t]:l.$hostElement$[t],n)}{if(!(1&o&&4096&n.P[t][0]))return lt(this,t,s,n),void(1&o&&!l.t&&l.D.then((()=>{4096&n.P[t][0]&&l.t[t]!==l.N.get(t)&&(l.t[t]=s)})));const e=()=>{const e=l.t[t];!l.N.get(t)&&e&&l.N.set(t,e),l.t[t]=A(s,i),lt(this,t,l.t[t],n)};l.t?e():l.D.then((()=>e()))}}}})}})),1&o){const o=new Map;l.attributeChangedCallback=function(t,i,s){c.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(l.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=e(this),l=null==o?void 0:o.o;if(o&&l&&!(8&l)&&128&l&&s!==i){const e=o.t,l=null==(r=n.R)?void 0:r[t];null==l||l.forEach((n=>{null!=e[n]&&e[n].call(e,s,i,t)}))}return}}const u=Object.getOwnPropertyDescriptor(l,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.R)?s:{}),...r.filter((([t,e])=>31&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},ct=(t,e)=>{it(t,"connectedCallback",void 0,e)},ut=(t,e)=>{it(t,"disconnectedCallback",void 0,e||t)},at=(t,n={})=>{var u;if(!r.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const f=[],d=n.exclude||[],h=r.customElements,p=r.document.head,m=p.querySelector("meta[charset]"),v=r.document.createElement("style"),y=[];let w,b=!0;Object.assign(c,n),c.i=new URL(n.resourcesUrl||"./",r.document.baseURI).href;let $=!1;if(t.map((t=>{t[1].map((n=>{const l={o:n[0],l:n[1],P:n[2],U:n[3]};4&l.o&&($=!0),l.P=n[2];const r=l.l,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,O:e,N:new Map};n.D=new Promise((t=>n.M=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.l}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else M.call(t,l)}connectedCallback(){e(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),b?y.push(this):c.jmp((()=>(t=>{if(!(1&c.o)){const n=e(t);if(!n)return;const l=n.O,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?ct(n.t,t):(null==n?void 0:n.D)&&n.D.then((()=>ct(n.t,t)));else{n.o|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){B(n,n.j=e);break}}l.P&&Object.entries(l.P).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let l;if(!(32&e.o)){if(e.o|=32,n.W){const s=((t,e)=>{const n=t.l.replace(/-/g,"_"),s=t.W;if(!s)return;const l=i.get(s);return l?l[n]:import(`./${s}.entry.js`).then((t=>(i.set(s,t),t[n])),(t=>{o(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(s&&"then"in s){const t=()=>{};l=await s,t()}else l=s;if(!l)throw Error(`Constructor for "${n.l}#${e.A}" was not found`);l.isProxied||(rt(l,n,2),l.isProxied=!0);const r=()=>{};e.o|=8;try{new l(e)}catch(e){o(e,t)}e.o&=-9,r(),ct(e.t,t)}else{l=t.constructor;const n=t.localName,o=()=>e.o|=128;customElements.get(n)?o():customElements.whenDefined(n).then(o)}if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const e=N(n);if(!s.has(e)){const o=()=>{};((t,e,n)=>{let o=s.get(t);a&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,s.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>K(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,n,l)}r()}})(this))))}disconnectedCallback(){c.jmp((()=>(async t=>{if(!(1&c.o)){const n=e(t);(null==n?void 0:n.t)?ut(n.t,t):(null==n?void 0:n.D)&&n.D.then((()=>ut(n.t,t)))}x.has(t)&&x.delete(t),t.shadowRoot&&x.has(t.shadowRoot)&&x.delete(t.shadowRoot)})(this))),c.raf((()=>{var t;const n=e(this);if(!n)return;const o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==n?void 0:n.C)?void 0:t.$)instanceof Node&&!n.C.$.isConnected&&delete n.C.$}))}componentOnReady(){var t;return null==(t=e(this))?void 0:t.D}};l.W=t[0],d.includes(r)||h.get(r)||(f.push(r),h.define(r,rt(u,l,1)))}))})),f.length>0&&($&&(v.textContent+=l),v.textContent+=f.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(u=c.k)?u:g(r.document);null!=t&&v.setAttribute("nonce",t),p.insertBefore(v,m?m.nextSibling:p.firstChild)}b=!1,y.length?y.map((t=>t.connectedCallback())):c.jmp((()=>w=setTimeout(ot,30)))},ft=t=>c.k=t;export{at as b,P as h,u as p,n as r,ft as s}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CvIdLliy.js');
3
+ var index = require('./index-B-vK4cL7.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-CvIdLliy.js');
3
+ var index = require('./index-B-vK4cL7.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.36.3 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.37.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 */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
5
5
 
6
6
  /*
7
- Stencil Client Platform v4.36.3 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.37.0 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
  var __defProp = Object.defineProperty;
10
10
  var __export = (target, all) => {
@@ -24,6 +24,7 @@ var getHostRef = (ref) => {
24
24
  return void 0;
25
25
  };
26
26
  var registerInstance = (lazyInstance, hostRef) => {
27
+ if (!hostRef) return;
27
28
  lazyInstance.__stencil__getHostRef = () => hostRef;
28
29
  hostRef.$lazyInstance$ = lazyInstance;
29
30
  };
@@ -1115,7 +1116,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1115
1116
  } else {
1116
1117
  Cstr = elm.constructor;
1117
1118
  const cmpTag = elm.localName;
1118
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1119
+ const setWatchIsReady = () => hostRef.$flags$ |= 128 /* isWatchReady */;
1120
+ if (!!customElements.get(cmpTag)) {
1121
+ setWatchIsReady();
1122
+ } else {
1123
+ customElements.whenDefined(cmpTag).then(setWatchIsReady);
1124
+ }
1119
1125
  }
1120
1126
  if (Cstr && Cstr.style) {
1121
1127
  let style;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CvIdLliy.js');
3
+ var index = require('./index-B-vK4cL7.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  const defineCustomElements = async (win, options) => {
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.36.3",
7
+ "version": "4.37.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -3,9 +3,11 @@ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/clien
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
 
5
5
  const AnalogClock$1 = /*@__PURE__*/ proxyCustomElement(class AnalogClock extends HTMLElement {
6
- constructor() {
6
+ constructor(registerHost) {
7
7
  super();
8
- this.__registerHost();
8
+ if (registerHost !== false) {
9
+ this.__registerHost();
10
+ }
9
11
  this.__attachShadow();
10
12
  this.size = undefined;
11
13
  this.timeZone = 0;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-alj9jHsZ.js';
1
+ import { r as registerInstance, h } from './index-CH_Nt4nz.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
 
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-alj9jHsZ.js';
2
- export { s as setNonce } from './index-alj9jHsZ.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-CH_Nt4nz.js';
2
+ export { s as setNonce } from './index-CH_Nt4nz.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.36.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.37.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 */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.36.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.37.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -22,6 +22,7 @@ var getHostRef = (ref) => {
22
22
  return void 0;
23
23
  };
24
24
  var registerInstance = (lazyInstance, hostRef) => {
25
+ if (!hostRef) return;
25
26
  lazyInstance.__stencil__getHostRef = () => hostRef;
26
27
  hostRef.$lazyInstance$ = lazyInstance;
27
28
  };
@@ -1113,7 +1114,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1113
1114
  } else {
1114
1115
  Cstr = elm.constructor;
1115
1116
  const cmpTag = elm.localName;
1116
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1117
+ const setWatchIsReady = () => hostRef.$flags$ |= 128 /* isWatchReady */;
1118
+ if (!!customElements.get(cmpTag)) {
1119
+ setWatchIsReady();
1120
+ } else {
1121
+ customElements.whenDefined(cmpTag).then(setWatchIsReady);
1122
+ }
1117
1123
  }
1118
1124
  if (Cstr && Cstr.style) {
1119
1125
  let style;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-alj9jHsZ.js';
2
- export { s as setNonce } from './index-alj9jHsZ.js';
1
+ import { b as bootstrapLazy } from './index-CH_Nt4nz.js';
2
+ export { s as setNonce } from './index-CH_Nt4nz.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,4 +1,6 @@
1
1
  declare type CustomMethodDecorator<T> = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
2
+ type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends (x: infer I) => void ? I : never;
3
+ type MixinFactory = <TBase extends abstract new (...args: any[]) => any>(base: TBase) => abstract new (...args: ConstructorParameters<TBase>) => any;
2
4
  export interface ComponentDecorator {
3
5
  (opts?: ComponentOptions): ClassDecorator;
4
6
  }
@@ -349,6 +351,25 @@ export declare function readTask(task: RafCallback): void;
349
351
  * Unhandled exception raised while rendering, during event handling, or lifecycles will trigger the custom event handler.
350
352
  */
351
353
  export declare const setErrorHandler: (handler: ErrorHandler) => void;
354
+ /**
355
+ * Compose multiple mixin classes into a single constructor.
356
+ * The resulting class has the combined instance types of all mixed-in classes.
357
+ *
358
+ * Example:
359
+ * ```
360
+ * const AWrap = (Base) => {class A extends Base { propA = A }; return A;}
361
+ * const BWrap = (Base) => {class B extends Base { propB = B }; return B;}
362
+ * const CWrap = (Base) => {class C extends Base { propC = C }; return C;}
363
+ *
364
+ * class X extends Mixin(AWrap, BWrap, CWrap) {
365
+ * render() { return <div>{this.propA} {this.propB} {this.propC}</div>; }
366
+ * }
367
+ * ```
368
+ *
369
+ * @param mixinFactories mixin factory functions that return a class which extends from the provided class.
370
+ * @returns a class that that is composed from extending each of the provided classes in the order they were provided.
371
+ */
372
+ export declare function Mixin<TMixins extends readonly MixinFactory[]>(...mixinFactories: TMixins): abstract new (...args: any[]) => UnionToIntersection<InstanceType<ReturnType<TMixins[number]>>>;
352
373
  /**
353
374
  * This file gets copied to all distributions of stencil component collections.
354
375
  * - no imports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "analog-clock-components",
3
- "version": "0.2.50",
3
+ "version": "0.2.51",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "format": "prettier --write src"
26
26
  },
27
27
  "dependencies": {
28
- "@stencil/core": "4.36.3"
28
+ "@stencil/core": "4.37.0"
29
29
  },
30
30
  "license": "MIT",
31
31
  "devDependencies": {
@@ -1,2 +0,0 @@
1
- var t=Object.defineProperty,e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},o=(t,e)=>(0,console.error)(t,e),i=new Map,l=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",s="undefined"!=typeof window?window:{},c={o:0,i:"",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)},u=t=>Promise.resolve(t),a=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),f=!!a&&(()=>!!s.document&&Object.getOwnPropertyDescriptor(s.document.adoptedStyleSheets,"length").writable)(),d=!1,h=[],p=[],m=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&c.o?w(y):c.raf(y))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){o(t)}t.length=0},y=()=>{v(h),v(p),(d=h.length>0)&&c.raf(y)},w=t=>u().then(t),b=m(p,!0),$=t=>"object"==(t=typeof t)||"function"===t;function g(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}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>O,ok:()=>S,unwrap:()=>E,unwrapErr:()=>C});var S=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>S(t))):S(n)}if(t.isErr)return j(t.value);throw"should never get here"}var k,E=t=>{if(t.isOk)return t.value;throw t.value},C=t=>{if(t.isErr)return t.value;throw t.value};function M(){const t=this.attachShadow({mode:"open"});void 0===k&&(k=null),k&&(f?t.adoptedStyleSheets.push(k):t.adoptedStyleSheets=[...t.adoptedStyleSheets,k])}var x=new WeakMap,N=t=>"sc-"+t.l,P=(t,e,...n)=>{let o=null,i=null,l=!1,r=!1;const s=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof t&&!$(o))&&(o+=""),l&&r?s[s.length-1].u+=o:s.push(l?D(null,o):o),r=l)};if(c(n),e){e.key&&(i=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=D(t,null);return u.h=e,s.length>0&&(u.p=s),u.m=i,u},D=(t,e)=>({o:0,v:t,u:e,$:null,p:null,h:null,m:null}),R={},U=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};U("::slotted"),U(":host"),U(":host-context");var W,A=(t,e)=>{if("string"==typeof t&&(16&e||8&e)&&(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")))try{return JSON.parse(t)}catch(t){}return null==t||$(t)?t:2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:t},L=(t,e,n,o,i,l)=>{if(n===o)return;let r=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,i=F(n);let l=F(o);e.remove(...i.filter((t=>t&&!l.includes(t)))),e.add(...l.filter((t=>t&&!i.includes(t))))}else if("key"===e);else{const s=$(o);if((r||s&&null!==o)&&!i)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const i=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==i||("function"==typeof t.__lookupSetter__(e)?t[e]=i:t.setAttribute(e,i))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&l||i)&&!s&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}},T=/\s/,F=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(T):[]),H=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,i=t&&t.h||{},l=e.h||{};for(const t of q(Object.keys(i)))t in l||L(o,t,i[t],void 0,n,e.o);for(const t of q(Object.keys(l)))L(o,t,i[t],l[t],n,e.o)};function q(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var z=!1,V=(t,e,n)=>{const o=e.p[n];let i,l,r=0;if(z||(z="svg"===o.v),!s.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(i=o.$=s.document.createElementNS(z?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.v),z&&"foreignObject"===o.v&&(z=!1),H(null,o,z),o.p)for(r=0;r<o.p.length;++r)l=V(t,o,r),l&&i.appendChild(l);return"svg"===o.v?z=!1:"foreignObject"===i.tagName&&(z=!0),i["s-hn"]=W,i},G=(t,e,n,o,i,l)=>{let r,s=t;for(s.shadowRoot&&s.tagName===W&&(s=s.shadowRoot);i<=l;++i)o[i]&&(r=V(null,n,i),r&&(o[i].$=r,_(s,r,e)))},I=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;t&&t.remove()}}},J=(t,e,n=!1)=>t.v===e.v&&(n?(n&&!t.m&&e.m&&(t.m=e.m),!0):t.m===e.m),Y=(t,e,n=!1)=>{const o=e.$=t.$,i=t.p,l=e.p,r=e.v;H(t,e,z="svg"===r||"foreignObject"!==r&&z),null!==i&&null!==l?((t,e,n,o,i=!1)=>{let l,r,s=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,m=o[0],v=o[p];for(;s<=f&&c<=p;)if(null==d)d=e[++s];else if(null==h)h=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(J(d,m,i))Y(d,m,i),d=e[++s],m=o[++c];else if(J(h,v,i))Y(h,v,i),h=e[--f],v=o[--p];else if(J(d,v,i))Y(d,v,i),_(t,d.$,h.$.nextSibling),d=e[++s],v=o[--p];else if(J(h,m,i))Y(h,m,i),_(t,h.$,d.$),h=e[--f],m=o[++c];else{for(u=-1,a=s;a<=f;++a)if(e[a]&&null!==e[a].m&&e[a].m===m.m){u=a;break}u>=0?(r=e[u],r.v!==m.v?l=V(e&&e[c],n,u):(Y(r,m,i),e[u]=void 0,l=r.$),m=o[++c]):(l=V(e&&e[c],n,c),m=o[++c]),l&&_(d.$.parentNode,l,d.$)}s>f?G(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&I(e,s,f)})(o,i,e,l,n):null!==l?G(o,null,e,l,0,l.length-1):!n&&null!==i&&I(i,0,i.length-1),z&&"svg"===r&&(z=!1)},_=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),B=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},K=(t,e)=>{if(t.o|=16,4&t.o)return void(t.o|=512);B(t,t.j);const n=()=>Q(t,e);if(!e)return b(n);queueMicrotask((()=>{n()}))},Q=(t,e)=>{const n=t.$hostElement$,o=t.t;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 i;return i=it(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),i=X(i,(()=>it(o,"componentWillRender",void 0,n))),X(i,(()=>tt(t,o,e)))},X=(t,e)=>Z(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Z=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,tt=async(t,e,n)=>{var o;const i=t.$hostElement$,u=i["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,i=((t,e)=>{var n;const o=N(e),i=l.get(o);if(!s.document)return o;if(t=11===t.nodeType?t:s.document,i)if("string"==typeof i){let l,u=x.get(t=t.head||t);if(u||x.set(t,u=new Set),!u.has(o)){{l=s.document.createElement("style"),l.innerHTML=i;const o=null!=(n=c.k)?n:g(s.document);if(null!=o&&l.setAttribute("nonce",o),!(1&e.o))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 CSSStyleSheet;e.replaceSync(i),f?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=i+e.innerHTML:t.prepend(l)}else t.append(l);1&e.o&&t.insertBefore(l,null)}4&e.o&&(l.innerHTML+=r),u&&u.add(o)}}else t.adoptedStyleSheets.includes(i)||(f?t.adoptedStyleSheets.push(i):t.adoptedStyleSheets=[...t.adoptedStyleSheets,i]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=i,n.classList.add(i+"-h"))})(t);et(t,e,i,n),u&&(u.map((t=>t())),i["s-rc"]=void 0);{const e=null!=(o=i["s-p"])?o:[],n=()=>nt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},et=(t,e,n,i)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,i=t.C||D(null,null),l=(t=>t&&t.v===R)(e)?e:P(null,null,e);if(W=o.tagName,n&&l.h)for(const t of Object.keys(l.h))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(l.h[t]=o[t]);l.v=null,l.o|=4,t.C=l,l.$=i.$=o.shadowRoot||o,Y(i,l,n)})(t,e,i)}catch(e){o(e,t.$hostElement$)}return null},nt=t=>{const e=t.$hostElement$,n=t.t,o=t.j;it(n,"componentDidRender",void 0,e),64&t.o?it(n,"componentDidUpdate",void 0,e):(t.o|=64,lt(e),it(n,"componentDidLoad",void 0,e),t.M(e),o||ot()),t.S&&(t.S(),t.S=void 0),512&t.o&&w((()=>K(t,!1))),t.o&=-517},ot=()=>{w((()=>(t=>{const e=c.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(s)))},it=(t,e,n,i)=>{if(t&&t[e])try{return t[e](n)}catch(t){o(t,i)}},lt=t=>t.classList.add("hydrated"),rt=(t,n,o,i)=>{const l=e(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${i.l}" 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 r=l.N.get(n),s=l.o,c=l.t;if(o=A(o,i.P[n][0]),(!(8&s)||void 0===r)&&o!==r&&(!Number.isNaN(r)||!Number.isNaN(o))&&(l.N.set(n,o),c&&2==(18&s))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,r,n))return;K(l,!1)}},st=(t,n,o)=>{var i,l;const r=t.prototype;if(n.P){const s=Object.entries(null!=(i=n.P)?i:{});if(s.map((([t,[i]])=>{if(31&i||2&o&&32&i){const{get:l,set:s}=Object.getOwnPropertyDescriptor(r,t)||{};l&&(n.P[t][0]|=2048),s&&(n.P[t][0]|=4096),(1&o||!l)&&Object.defineProperty(r,t,{get(){{if(!(2048&n.P[t][0]))return((t,n)=>e(this).N.get(n))(0,t);const o=e(this),i=o?o.t:r;if(!i)return;return i[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(l){const r=e(this);if(r){if(s){const e=32&i?this[t]:r.$hostElement$[t];return void 0===e&&r.N.get(t)?l=r.N.get(t):!r.N.get(t)&&e&&r.N.set(t,e),s.call(this,A(l,i)),void rt(this,t,l=32&i?this[t]:r.$hostElement$[t],n)}{if(!(1&o&&4096&n.P[t][0]))return rt(this,t,l,n),void(1&o&&!r.t&&r.D.then((()=>{4096&n.P[t][0]&&r.t[t]!==r.N.get(t)&&(r.t[t]=l)})));const e=()=>{const e=r.t[t];!r.N.get(t)&&e&&r.N.set(t,e),r.t[t]=A(l,i),rt(this,t,r.t[t],n)};r.t?e():r.D.then((()=>e()))}}}})}})),1&o){const o=new Map;r.attributeChangedCallback=function(t,i,l){c.jmp((()=>{var s;const c=o.get(t);if(this.hasOwnProperty(c))l=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==l)return;if(null==c){const o=e(this),r=null==o?void 0:o.o;if(o&&r&&!(8&r)&&128&r&&l!==i){const e=o.t,r=null==(s=n.R)?void 0:s[t];null==r||r.forEach((n=>{null!=e[n]&&e[n].call(e,l,i,t)}))}return}}const u=Object.getOwnPropertyDescriptor(r,c);(l=(null!==l||"boolean"!=typeof this[c])&&l)===this[c]||u.get&&!u.set||(this[c]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.R)?l:{}),...s.filter((([t,e])=>31&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},ct=(t,e)=>{it(t,"connectedCallback",void 0,e)},ut=(t,e)=>{it(t,"disconnectedCallback",void 0,e||t)},at=(t,n={})=>{var u;if(!s.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const f=[],d=n.exclude||[],h=s.customElements,p=s.document.head,m=p.querySelector("meta[charset]"),v=s.document.createElement("style"),y=[];let w,b=!0;Object.assign(c,n),c.i=new URL(n.resourcesUrl||"./",s.document.baseURI).href;let $=!1;if(t.map((t=>{t[1].map((n=>{const r={o:n[0],l:n[1],P:n[2],U:n[3]};4&r.o&&($=!0),r.P=n[2];const s=r.l,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,O:e,N:new Map};n.D=new Promise((t=>n.M=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,r),1&r.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.l}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else M.call(t,r)}connectedCallback(){e(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),b?y.push(this):c.jmp((()=>(t=>{if(!(1&c.o)){const n=e(t);if(!n)return;const r=n.O,s=()=>{};if(1&n.o)(null==n?void 0:n.t)?ct(n.t,t):(null==n?void 0:n.D)&&n.D.then((()=>ct(n.t,t)));else{n.o|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){B(n,n.j=e);break}}r.P&&Object.entries(r.P).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let r;if(!(32&e.o)){if(e.o|=32,n.W){const l=((t,e)=>{const n=t.l.replace(/-/g,"_"),l=t.W;if(!l)return;const r=i.get(l);return r?r[n]:import(`./${l}.entry.js`).then((t=>(i.set(l,t),t[n])),(t=>{o(t,e.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};r=await l,t()}else r=l;if(!r)throw Error(`Constructor for "${n.l}#${e.A}" was not found`);r.isProxied||(st(r,n,2),r.isProxied=!0);const s=()=>{};e.o|=8;try{new r(e)}catch(e){o(e,t)}e.o&=-9,s(),ct(e.t,t)}else r=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(r&&r.style){let t;"string"==typeof r.style&&(t=r.style);const e=N(n);if(!l.has(e)){const o=()=>{};((t,e,n)=>{let o=l.get(t);a&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,l.set(t,o)})(e,t,!!(1&n.o)),o()}}}const s=e.j,c=()=>K(e,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(t,n,r)}s()}})(this))))}disconnectedCallback(){c.jmp((()=>(async t=>{if(!(1&c.o)){const n=e(t);(null==n?void 0:n.t)?ut(n.t,t):(null==n?void 0:n.D)&&n.D.then((()=>ut(n.t,t)))}x.has(t)&&x.delete(t),t.shadowRoot&&x.has(t.shadowRoot)&&x.delete(t.shadowRoot)})(this))),c.raf((()=>{var t;const n=e(this);if(!n)return;const o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==n?void 0:n.C)?void 0:t.$)instanceof Node&&!n.C.$.isConnected&&delete n.C.$}))}componentOnReady(){var t;return null==(t=e(this))?void 0:t.D}};r.W=t[0],d.includes(s)||h.get(s)||(f.push(s),h.define(s,st(u,r,1)))}))})),f.length>0&&($&&(v.textContent+=r),v.textContent+=f.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(u=c.k)?u:g(s.document);null!=t&&v.setAttribute("nonce",t),p.insertBefore(v,m?m.nextSibling:p.firstChild)}b=!1,y.length?y.map((t=>t.connectedCallback())):c.jmp((()=>w=setTimeout(ot,30)))},ft=t=>c.k=t;export{at as b,P as h,u as p,n as r,ft as s}