analog-clock-components 0.1.556 → 0.1.558

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 e,b as o}from"./p-e86bc608.js";export{s as setNonce}from"./p-e86bc608.js";import{g as t}from"./p-e1255160.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),e(s)})().then((async e=>(await t(),o([["p-1b376619",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],e))));
1
+ import{p as e,b as o}from"./p-e67be85c.js";export{s as setNonce}from"./p-e67be85c.js";import{g as a}from"./p-e1255160.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((async e=>(await a(),o([["p-da3cba75",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],e))));
@@ -1 +1 @@
1
- import{r as e,h as t}from"./p-e86bc608.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-e67be85c.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=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",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),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,p=[],m=[],y=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&a.o?b(w):a.raf(w))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},w=()=>{v(p),v(m),(d=p.length>0)&&a.raf(w)},b=t=>f().then(t),$=y(m,!0),g=t=>"object"==(t=typeof t)||"function"===t;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}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=t=>({isOk:!0,isErr:!1,value:t}),O=t=>({isOk:!1,isErr:!0,value:t});function k(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>j(t))):j(n)}if(t.isErr)return O(t.value);throw"should never get here"}var E,C=t=>{if(t.isOk)return t.value;throw t.value},M=t=>{if(t.isErr)return t.value;throw t.value},x=(t,e,...n)=>{let o=null,l=null,s=!1,i=!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&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?P(null,o):o),i=s)};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=P(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},P=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),A={},D=(t,e)=>null==t||g(t)?t:2&e?parseFloat(t):t,H=new WeakMap,N=t=>"sc-"+t.$,T=(t,e,n,o,l,s)=>{if(n!==o){let i=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,l=L(n);let s=L(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("key"===e);else{const r=g(o);if((i||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||l)&&!r&&t.setAttribute(e,o=!0===o?"":o)}}},F=/\s/,L=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(F):[]),R=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of U(Object.keys(l)))t in s||T(o,t,l[t],void 0,n,e.o);for(const t of U(Object.keys(s)))T(o,t,l[t],s[t],n,e.o)};function U(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var V=!1,W=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(V||(V="svg"===o.m),l=o.v=u.createElementNS(V?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),V&&"foreignObject"===o.m&&(V=!1),R(null,o,V),o.h)for(i=0;i<o.h.length;++i)s=W(t,o,i),s&&l.appendChild(s);return"svg"===o.m?V=!1:"foreignObject"===l.tagName&&(V=!0),l["s-hn"]=E,l},q=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===E&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=W(null,n,l),i&&(o[l].v=i,B(r,i,e)))},G=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},_=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),z=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m;R(t,e,V="svg"===i||"foreignObject"!==i&&V),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,h=e[0],d=e[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(_(h,m,l))z(h,m,l),h=e[++r],m=o[++c];else if(_(d,y,l))z(d,y,l),d=e[--f],y=o[--p];else if(_(h,y,l))z(h,y,l),B(t,h.v,d.v.nextSibling),h=e[++r],y=o[--p];else if(_(d,m,l))z(d,m,l),B(t,d.v,h.v),d=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?s=W(e&&e[c],n,u):(z(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=W(e&&e[c],n,c),m=o[++c]),s&&B(h.v.parentNode,s,h.v)}r>f?q(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&G(e,r,f)})(o,l,e,s,n):null!==s?q(o,null,e,s,0,s.length-1):!n&&null!==l&&G(l,0,l.length-1),V&&"svg"===i&&(V=!1)},B=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),I=(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()})))}},J=(t,e)=>{if(t.o|=16,!(4&t.o))return I(t,t.j),$((()=>K(t,e)));t.o|=512},K=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.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`);return Q(void 0,(()=>Y(t,n,e)))},Q=(t,e)=>X(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),X=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Y=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=N(e),l=i.get(o);if(t=11===t.nodeType?t:u,l)if("string"==typeof l){let s,i=H.get(t=t.head||t);if(i||H.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:S(u);if(null!=i&&s.setAttribute("nonce",i),!(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(h){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=r),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);Z(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>tt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},Z=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.O,s=t.C||P(null,null),i=(t=>t&&t.m===A)(e)?e:x(null,null,e);if(E=o.tagName,n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.C=i,i.v=s.v=o.shadowRoot||o,z(s,i,n)})(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},tt=t=>{const e=t.$hostElement$,n=t.t,o=t.j;64&t.o||(t.o|=64,ot(e),nt(n,"componentDidLoad",void 0,e),t.M(e),o||et()),t.S&&(t.S(),t.S=void 0),512&t.o&&b((()=>J(t,!1))),t.o&=-517},et=()=>{ot(u.documentElement),b((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(c)))},nt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},ot=t=>t.classList.add("hydrated"),lt=(t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${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/ionic-team/stencil/issues/5457).`);const i=s.P.get(e),r=s.o,c=s.t;o=D(o,l.A[e][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(e,o),c&&2==(18&r)&&J(s,!1))},st=(t,e,o)=>{var l,s;const i=t.prototype;if(e.A){const r=Object.entries(null!=(l=e.A)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.A[t][0]|=2048),r&&(e.A[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.A[t][0]))return((t,e)=>n(this).P.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.P.get(t)?s=i.P.get(t):!i.P.get(t)&&n&&i.P.set(t,n),r.call(this,D(s,l)),void lt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.A[t][0]))return lt(this,t,s,e),void(1&o&&!i.t&&i.D.then((()=>{4096&e.A[t][0]&&i.t[t]!==i.P.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.P.get(t)&&n&&i.P.set(t,n),i.t[t]=D(s,l),lt(this,t,i.t[t],e)};i.t?n():i.D.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.H)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,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=e.H)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},it=(t,e)=>{nt(t,"disconnectedCallback",void 0,e||t)},rt=(t,o={})=>{var f;const d=[],p=o.exclude||[],m=c.customElements,y=u.head,v=y.querySelector("meta[charset]"),w=u.createElement("style"),b=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{const r={o:o[0],$:o[1],A:o[2],N:o[3]};4&r.o&&(j=!0),r.A=o[2];const c=r.$,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,O:n,P:new Map};o.D=new Promise((t=>o.M=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,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.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?b.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.O,r=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.D)&&e.D.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(e,e.j=n);break}}o.A&&Object.entries(o.A).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){e.o|=32;{const i=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.T;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${n.$}#${e.F}" was not found`);o.isProxied||(st(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,r()}if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=N(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>J(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,e,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const e=n(t);(null==e?void 0:e.t)?it(e.t,t):(null==e?void 0:e.D)&&e.D.then((()=>it(e.t,t)))}H.has(t)&&H.delete(t),t.shadowRoot&&H.has(t.shadowRoot)&&H.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this);(null==(t=null==e?void 0:e.C)?void 0:t.v)instanceof Node&&!e.C.v.isConnected&&delete e.C.v}))}componentOnReady(){return n(this).D}};r.T=t[0],p.includes(c)||m.get(c)||(d.push(c),m.define(c,st(u,r,1)))}))})),d.length>0&&(j&&(w.textContent+=r),w.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(f=a.k)?f:S(u);null!=t&&w.setAttribute("nonce",t),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):a.jmp((()=>$=setTimeout(et,30)))},ct=t=>a.k=t;export{rt as b,x as h,f as p,o as r,ct as s}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-aa5fd1e8.js');
5
+ const index = require('./index-4d0cc548.js');
6
6
 
7
7
  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)}";
8
8
  const AnalogClockStyle0 = analogClockCss;
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-aa5fd1e8.js');
5
+ const index = require('./index-4d0cc548.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.24.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('analog-clock.cjs.js', document.baseURI).href));
@@ -24,7 +24,7 @@ const NAMESPACE = 'analog-clock';
24
24
  const BUILD = /* analog-clock */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: true, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.24.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -79,12 +79,17 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
79
79
  /* webpackExclude: /\.system\.entry\.js$/ */
80
80
  /* webpackMode: "lazy" */
81
81
  `./${bundleId}.entry.js${""}`
82
- )); }).then((importedModule) => {
83
- {
84
- cmpModules.set(bundleId, importedModule);
82
+ )); }).then(
83
+ (importedModule) => {
84
+ {
85
+ cmpModules.set(bundleId, importedModule);
86
+ }
87
+ return importedModule[exportName];
88
+ },
89
+ (e) => {
90
+ consoleError(e, hostRef.$hostElement$);
85
91
  }
86
- return importedModule[exportName];
87
- }, consoleError);
92
+ );
88
93
  };
89
94
 
90
95
  // src/client/client-style.ts
@@ -338,7 +343,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
338
343
  if (styleContainerNode.nodeName === "HEAD") {
339
344
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
340
345
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
341
- styleContainerNode.insertBefore(styleElm, referenceNode2);
346
+ styleContainerNode.insertBefore(
347
+ styleElm,
348
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
349
+ );
342
350
  } else if ("host" in styleContainerNode) {
343
351
  if (supportsConstructableStylesheets) {
344
352
  const stylesheet = new CSSStyleSheet();
@@ -388,7 +396,7 @@ var attachStyles = (hostRef) => {
388
396
  endAttachStyles();
389
397
  };
390
398
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
391
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
399
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
392
400
  if (oldValue !== newValue) {
393
401
  let isProp = isMemberInElement(elm, memberName);
394
402
  memberName.toLowerCase();
@@ -396,15 +404,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
396
404
  const classList = elm.classList;
397
405
  const oldClasses = parseClassList(oldValue);
398
406
  let newClasses = parseClassList(newValue);
399
- if (elm["s-si"]) {
400
- newClasses.push(elm["s-si"]);
401
- oldClasses.forEach((c) => {
402
- if (c.startsWith(elm["s-si"])) newClasses.push(c);
403
- });
404
- newClasses = [...new Set(newClasses)];
405
- classList.add(...newClasses);
406
- delete elm["s-si"];
407
- } else {
407
+ {
408
408
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
409
409
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
410
410
  }
@@ -446,29 +446,41 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
446
446
  };
447
447
  var parseClassListRegex = /\s/;
448
448
  var parseClassList = (value) => {
449
- if (typeof value === "object" && "baseVal" in value) {
449
+ if (typeof value === "object" && value && "baseVal" in value) {
450
450
  value = value.baseVal;
451
451
  }
452
- if (!value) {
452
+ if (!value || typeof value !== "string") {
453
453
  return [];
454
454
  }
455
455
  return value.split(parseClassListRegex);
456
456
  };
457
457
 
458
458
  // src/runtime/vdom/update-element.ts
459
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
459
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
460
460
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
461
461
  const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
462
462
  const newVnodeAttrs = newVnode.$attrs$ || {};
463
463
  {
464
464
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
465
465
  if (!(memberName in newVnodeAttrs)) {
466
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
466
+ setAccessor(
467
+ elm,
468
+ memberName,
469
+ oldVnodeAttrs[memberName],
470
+ void 0,
471
+ isSvgMode2,
472
+ newVnode.$flags$);
467
473
  }
468
474
  }
469
475
  }
470
476
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
471
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
477
+ setAccessor(
478
+ elm,
479
+ memberName,
480
+ oldVnodeAttrs[memberName],
481
+ newVnodeAttrs[memberName],
482
+ isSvgMode2,
483
+ newVnode.$flags$);
472
484
  }
473
485
  };
474
486
  function sortedAttrNames(attrNames) {
@@ -805,7 +817,7 @@ var postUpdateComponent = (hostRef) => {
805
817
  addHydratedFlag(elm);
806
818
  }
807
819
  {
808
- safeCall(instance, "componentDidLoad");
820
+ safeCall(instance, "componentDidLoad", void 0, elm);
809
821
  }
810
822
  endPostUpdate();
811
823
  {
@@ -834,12 +846,12 @@ var appDidLoad = (who) => {
834
846
  }
835
847
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
836
848
  };
837
- var safeCall = (instance, method, arg) => {
849
+ var safeCall = (instance, method, arg, elm) => {
838
850
  if (instance && instance[method]) {
839
851
  try {
840
852
  return instance[method](arg);
841
853
  } catch (e) {
842
- consoleError(e);
854
+ consoleError(e, elm);
843
855
  }
844
856
  }
845
857
  return void 0;
@@ -1000,9 +1012,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1000
1012
  let Cstr;
1001
1013
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1002
1014
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1003
- const bundleId = cmpMeta.$lazyBundleId$;
1004
- if (bundleId) {
1005
- const CstrImport = loadModule(cmpMeta);
1015
+ {
1016
+ const CstrImport = loadModule(cmpMeta, hostRef);
1006
1017
  if (CstrImport && "then" in CstrImport) {
1007
1018
  const endLoad = uniqueTime();
1008
1019
  Cstr = await CstrImport;
@@ -1024,16 +1035,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1024
1035
  try {
1025
1036
  new Cstr(hostRef);
1026
1037
  } catch (e) {
1027
- consoleError(e);
1038
+ consoleError(e, elm);
1028
1039
  }
1029
1040
  {
1030
1041
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1031
1042
  }
1032
1043
  endNewInstance();
1033
- } else {
1034
- Cstr = elm.constructor;
1035
- const cmpTag = elm.localName;
1036
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1037
1044
  }
1038
1045
  if (Cstr && Cstr.style) {
1039
1046
  let style;
@@ -1056,7 +1063,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1056
1063
  schedule();
1057
1064
  }
1058
1065
  };
1059
- var fireConnectedCallback = (instance) => {
1066
+ var fireConnectedCallback = (instance, elm) => {
1060
1067
  };
1061
1068
 
1062
1069
  // src/runtime/connected-callback.ts
@@ -1096,18 +1103,18 @@ var connectedCallback = (elm) => {
1096
1103
  endConnected();
1097
1104
  }
1098
1105
  };
1099
- var disconnectInstance = (instance) => {
1106
+ var disconnectInstance = (instance, elm) => {
1100
1107
  {
1101
- safeCall(instance, "disconnectedCallback");
1108
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1102
1109
  }
1103
1110
  };
1104
1111
  var disconnectedCallback = async (elm) => {
1105
1112
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1106
1113
  const hostRef = getHostRef(elm);
1107
1114
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1108
- disconnectInstance(hostRef.$lazyInstance$);
1115
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1109
1116
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1110
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1117
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1111
1118
  }
1112
1119
  }
1113
1120
  if (rootAppliedStyles.has(elm)) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-aa5fd1e8.js');
5
+ const index = require('./index-4d0cc548.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.24.0",
7
+ "version": "4.25.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-19cb5a41.js';
1
+ import { r as registerInstance, h } from './index-b03a4334.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
  const AnalogClockStyle0 = analogClockCss;
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-19cb5a41.js';
2
- export { s as setNonce } from './index-19cb5a41.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-b03a4334.js';
2
+ export { s as setNonce } from './index-b03a4334.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.24.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -2,7 +2,7 @@ const NAMESPACE = 'analog-clock';
2
2
  const BUILD = /* analog-clock */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: true, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.24.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -57,12 +57,17 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
57
57
  /* webpackExclude: /\.system\.entry\.js$/ */
58
58
  /* webpackMode: "lazy" */
59
59
  `./${bundleId}.entry.js${""}`
60
- ).then((importedModule) => {
61
- {
62
- cmpModules.set(bundleId, importedModule);
60
+ ).then(
61
+ (importedModule) => {
62
+ {
63
+ cmpModules.set(bundleId, importedModule);
64
+ }
65
+ return importedModule[exportName];
66
+ },
67
+ (e) => {
68
+ consoleError(e, hostRef.$hostElement$);
63
69
  }
64
- return importedModule[exportName];
65
- }, consoleError);
70
+ );
66
71
  };
67
72
 
68
73
  // src/client/client-style.ts
@@ -316,7 +321,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
316
321
  if (styleContainerNode.nodeName === "HEAD") {
317
322
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
318
323
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
319
- styleContainerNode.insertBefore(styleElm, referenceNode2);
324
+ styleContainerNode.insertBefore(
325
+ styleElm,
326
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
327
+ );
320
328
  } else if ("host" in styleContainerNode) {
321
329
  if (supportsConstructableStylesheets) {
322
330
  const stylesheet = new CSSStyleSheet();
@@ -366,7 +374,7 @@ var attachStyles = (hostRef) => {
366
374
  endAttachStyles();
367
375
  };
368
376
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
369
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
377
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
370
378
  if (oldValue !== newValue) {
371
379
  let isProp = isMemberInElement(elm, memberName);
372
380
  memberName.toLowerCase();
@@ -374,15 +382,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
374
382
  const classList = elm.classList;
375
383
  const oldClasses = parseClassList(oldValue);
376
384
  let newClasses = parseClassList(newValue);
377
- if (elm["s-si"]) {
378
- newClasses.push(elm["s-si"]);
379
- oldClasses.forEach((c) => {
380
- if (c.startsWith(elm["s-si"])) newClasses.push(c);
381
- });
382
- newClasses = [...new Set(newClasses)];
383
- classList.add(...newClasses);
384
- delete elm["s-si"];
385
- } else {
385
+ {
386
386
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
387
387
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
388
388
  }
@@ -424,29 +424,41 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
424
424
  };
425
425
  var parseClassListRegex = /\s/;
426
426
  var parseClassList = (value) => {
427
- if (typeof value === "object" && "baseVal" in value) {
427
+ if (typeof value === "object" && value && "baseVal" in value) {
428
428
  value = value.baseVal;
429
429
  }
430
- if (!value) {
430
+ if (!value || typeof value !== "string") {
431
431
  return [];
432
432
  }
433
433
  return value.split(parseClassListRegex);
434
434
  };
435
435
 
436
436
  // src/runtime/vdom/update-element.ts
437
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
437
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
438
438
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
439
439
  const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
440
440
  const newVnodeAttrs = newVnode.$attrs$ || {};
441
441
  {
442
442
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
443
443
  if (!(memberName in newVnodeAttrs)) {
444
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
444
+ setAccessor(
445
+ elm,
446
+ memberName,
447
+ oldVnodeAttrs[memberName],
448
+ void 0,
449
+ isSvgMode2,
450
+ newVnode.$flags$);
445
451
  }
446
452
  }
447
453
  }
448
454
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
449
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
455
+ setAccessor(
456
+ elm,
457
+ memberName,
458
+ oldVnodeAttrs[memberName],
459
+ newVnodeAttrs[memberName],
460
+ isSvgMode2,
461
+ newVnode.$flags$);
450
462
  }
451
463
  };
452
464
  function sortedAttrNames(attrNames) {
@@ -783,7 +795,7 @@ var postUpdateComponent = (hostRef) => {
783
795
  addHydratedFlag(elm);
784
796
  }
785
797
  {
786
- safeCall(instance, "componentDidLoad");
798
+ safeCall(instance, "componentDidLoad", void 0, elm);
787
799
  }
788
800
  endPostUpdate();
789
801
  {
@@ -812,12 +824,12 @@ var appDidLoad = (who) => {
812
824
  }
813
825
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
814
826
  };
815
- var safeCall = (instance, method, arg) => {
827
+ var safeCall = (instance, method, arg, elm) => {
816
828
  if (instance && instance[method]) {
817
829
  try {
818
830
  return instance[method](arg);
819
831
  } catch (e) {
820
- consoleError(e);
832
+ consoleError(e, elm);
821
833
  }
822
834
  }
823
835
  return void 0;
@@ -978,9 +990,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
978
990
  let Cstr;
979
991
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
980
992
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
981
- const bundleId = cmpMeta.$lazyBundleId$;
982
- if (bundleId) {
983
- const CstrImport = loadModule(cmpMeta);
993
+ {
994
+ const CstrImport = loadModule(cmpMeta, hostRef);
984
995
  if (CstrImport && "then" in CstrImport) {
985
996
  const endLoad = uniqueTime();
986
997
  Cstr = await CstrImport;
@@ -1002,16 +1013,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1002
1013
  try {
1003
1014
  new Cstr(hostRef);
1004
1015
  } catch (e) {
1005
- consoleError(e);
1016
+ consoleError(e, elm);
1006
1017
  }
1007
1018
  {
1008
1019
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1009
1020
  }
1010
1021
  endNewInstance();
1011
- } else {
1012
- Cstr = elm.constructor;
1013
- const cmpTag = elm.localName;
1014
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1015
1022
  }
1016
1023
  if (Cstr && Cstr.style) {
1017
1024
  let style;
@@ -1034,7 +1041,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1034
1041
  schedule();
1035
1042
  }
1036
1043
  };
1037
- var fireConnectedCallback = (instance) => {
1044
+ var fireConnectedCallback = (instance, elm) => {
1038
1045
  };
1039
1046
 
1040
1047
  // src/runtime/connected-callback.ts
@@ -1074,18 +1081,18 @@ var connectedCallback = (elm) => {
1074
1081
  endConnected();
1075
1082
  }
1076
1083
  };
1077
- var disconnectInstance = (instance) => {
1084
+ var disconnectInstance = (instance, elm) => {
1078
1085
  {
1079
- safeCall(instance, "disconnectedCallback");
1086
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1080
1087
  }
1081
1088
  };
1082
1089
  var disconnectedCallback = async (elm) => {
1083
1090
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1084
1091
  const hostRef = getHostRef(elm);
1085
1092
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1086
- disconnectInstance(hostRef.$lazyInstance$);
1093
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1087
1094
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1088
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1095
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1089
1096
  }
1090
1097
  }
1091
1098
  if (rootAppliedStyles.has(elm)) {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-19cb5a41.js';
2
- export { s as setNonce } from './index-19cb5a41.js';
1
+ import { b as bootstrapLazy } from './index-b03a4334.js';
2
+ export { s as setNonce } from './index-b03a4334.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "analog-clock-components",
3
- "version": "0.1.556",
3
+ "version": "0.1.558",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -25,12 +25,12 @@
25
25
  "format": "prettier --write src"
26
26
  },
27
27
  "dependencies": {
28
- "@stencil/core": "4.24.0"
28
+ "@stencil/core": "4.25.1"
29
29
  },
30
30
  "license": "MIT",
31
31
  "devDependencies": {
32
32
  "cspell": "8.17.2",
33
- "eslint": "9.18.0",
33
+ "eslint": "9.19.0",
34
34
  "prettier": "3.4.2",
35
35
  "typescript": "5.7.3"
36
36
  }
@@ -1,2 +0,0 @@
1
- var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,p=[],m=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.o?b(v):a.raf(v))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},v=()=>{w(p),w(m),(d=p.length>0)&&a.raf(v)},b=e=>f().then(e),$=y(m,!0),g=e=>"object"==(e=typeof e)||"function"===e;function S(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function k(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return O(e.value);throw"should never get here"}var E,C=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value},x=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?P(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=P(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},P=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},D=(e,t)=>null==e||g(e)?e:2&t?parseFloat(e):e,H=new WeakMap,N=e=>"sc-"+e.$,T=(e,t,n,o,l,s)=>{if(n!==o){let i=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,l=L(n);let s=L(o);e["s-si"]?(s.push(e["s-si"]),l.forEach((t=>{t.startsWith(e["s-si"])&&s.push(t)})),s=[...new Set(s)],t.add(...s),delete e["s-si"]):(t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e)))))}else if("key"===t);else{const r=g(o);if((i||r&&null!==o)&&!l)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||l)&&!r&&e.setAttribute(t,o=!0===o?"":o)}}},F=/\s/,L=e=>("object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(F):[]),R=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of U(Object.keys(l)))e in s||T(o,e,l[e],void 0,n,t.o);for(const e of U(Object.keys(s)))T(o,e,l[e],s[e],n,t.o)};function U(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var V=!1,W=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(V||(V="svg"===o.m),l=o.v=u.createElementNS(V?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),V&&"foreignObject"===o.m&&(V=!1),R(null,o,V),o.h)for(i=0;i<o.h.length;++i)s=W(e,o,i),s&&l.appendChild(s);return"svg"===o.m?V=!1:"foreignObject"===l.tagName&&(V=!0),l["s-hn"]=E,l},q=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===E&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=W(null,n,l),i&&(o[l].v=i,B(r,i,t)))},G=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},_=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),z=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m;R(e,t,V="svg"===i||"foreignObject"!==i&&V),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(_(h,m,l))z(h,m,l),h=t[++r],m=o[++c];else if(_(d,y,l))z(d,y,l),d=t[--f],y=o[--p];else if(_(h,y,l))z(h,y,l),B(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(_(d,m,l))z(d,m,l),B(e,d.v,h.v),d=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=W(t&&t[c],n,u):(z(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=W(t&&t[c],n,c),m=o[++c]),s&&B(h.v.parentNode,s,h.v)}r>f?q(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&G(t,r,f)})(o,l,t,s,n):null!==s?q(o,null,t,s,0,s.length-1):!n&&null!==l&&G(l,0,l.length-1),V&&"svg"===i&&(V=!1)},B=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),I=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},J=(e,t)=>{if(e.o|=16,!(4&e.o))return I(e,e.j),$((()=>K(e,t)));e.o|=512},K=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.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`);return Q(void 0,(()=>Y(e,n,t)))},Q=(e,t)=>X(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),X=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Y=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=N(t),l=i.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,i=H.get(e=e.head||e);if(i||H.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:S(u);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=r),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);Z(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ee(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},Z=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||P(null,null),i=(e=>e&&e.m===A)(t)?t:x(null,null,t);if(E=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,z(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},ee=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,oe(t),ne(n,"componentDidLoad"),e.M(t),o||te()),e.S&&(e.S(),e.S=void 0),512&e.o&&b((()=>J(e,!1))),e.o&=-517},te=()=>{oe(u.documentElement),b((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"analog-clock"}});return e.dispatchEvent(t),t})(c)))},ne=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e)}},oe=e=>e.classList.add("hydrated"),le=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${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/ionic-team/stencil/issues/5457).`);const i=s.P.get(t),r=s.o,c=s.t;o=D(o,l.A[t][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&J(s,!1))},se=(e,t,o)=>{var l,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(l=t.A)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.A[e][0]|=2048),r&&(t.A[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.A[e][0]))return((e,t)=>n(this).P.get(t))(0,e);const o=n(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=n(this);if(r){const n=32&l?this[e]:i.$hostElement$[e];return void 0===n&&i.P.get(e)?s=i.P.get(e):!i.P.get(e)&&n&&i.P.set(e,n),r.call(this,D(s,l)),void le(this,e,s=32&l?this[e]:i.$hostElement$[e],t)}{if(!(1&o&&4096&t.A[e][0]))return le(this,e,s,t),void(1&o&&!i.t&&i.D.then((()=>{4096&t.A[e][0]&&i.t[e]!==i.P.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.P.get(e)&&n&&i.P.set(e,n),i.t[e]=D(s,l),le(this,e,i.t[e],t)};i.t?n():i.D.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ie=e=>{ne(e,"disconnectedCallback")},re=(e,o={})=>{var f;const d=[],p=o.exclude||[],m=c.customElements,y=u.head,w=y.querySelector("meta[charset]"),v=u.createElement("style"),b=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(e.map((e=>{e[1].map((o=>{const r={o:o[0],$:o[1],A:o[2],N:o[3]};4&r.o&&(j=!0),r.A=o[2];const c=r.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,P:new Map};o.D=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,r),1&r.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?b.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,r=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(t,t.j=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.T){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.T;if(!n)return;const o=s.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),l)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.$}#${t.F}" was not found`);o.isProxied||(se(o,n,2),o.isProxied=!0);const i=()=>{};t.o|=8;try{new o(t)}catch(e){l(e)}t.o&=-9,i()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=N(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>J(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,t,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const t=n(e);(null==t?void 0:t.t)?ie(t.t):(null==t?void 0:t.D)&&t.D.then((()=>ie(t.t)))}H.has(e)&&H.delete(e),e.shadowRoot&&H.has(e.shadowRoot)&&H.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const t=n(this);(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).D}};r.T=e[0],p.includes(c)||m.get(c)||(d.push(c),m.define(c,se(u,r,1)))}))})),d.length>0&&(j&&(v.textContent+=r),v.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(f=a.k)?f:S(u);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):a.jmp((()=>$=setTimeout(te,30)))},ce=e=>a.k=e;export{re as b,x as h,f as p,o as r,ce as s}