@roxyapi/ui 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +5 -5
- package/README.md +3 -3
- package/THEMING.md +3 -3
- package/components-catalog.json +258 -158
- package/dist/cdn/components/almanac-day.js +3 -205
- package/dist/cdn/components/angel-number-card.js +3 -205
- package/dist/cdn/components/angel-number-lookup.js +3 -205
- package/dist/cdn/components/arudha-padas.js +3 -205
- package/dist/cdn/components/ashtakavarga-grid.js +3 -205
- package/dist/cdn/components/aspects-table.js +3 -205
- package/dist/cdn/components/astrocartography-map.js +3 -205
- package/dist/cdn/components/bazi-chart.js +3 -205
- package/dist/cdn/components/bhav-chalit-table.js +2 -204
- package/dist/cdn/components/bhava-bala-table.js +3 -205
- package/dist/cdn/components/biorhythm-chart.js +3 -205
- package/dist/cdn/components/bodygraph.js +7 -209
- package/dist/cdn/components/chara-karakas.js +3 -205
- package/dist/cdn/components/choghadiya-grid.js +3 -205
- package/dist/cdn/components/compatibility-card.js +2 -204
- package/dist/cdn/components/compound-number.js +3 -205
- package/dist/cdn/components/crystal-card.js +3 -205
- package/dist/cdn/components/crystal-grid.js +3 -205
- package/dist/cdn/components/dasha-timeline.js +3 -205
- package/dist/cdn/components/data.js +3 -205
- package/dist/cdn/components/divisional-chart.js +13 -215
- package/dist/cdn/components/dosha-card.js +3 -205
- package/dist/cdn/components/dosha-constitution.js +3 -205
- package/dist/cdn/components/dream-card.js +3 -205
- package/dist/cdn/components/dream-search.js +3 -205
- package/dist/cdn/components/endpoint-form.js +3 -205
- package/dist/cdn/components/ephemeris-table.js +2 -204
- package/dist/cdn/components/fixed-stars.js +2 -204
- package/dist/cdn/components/flying-star-chart.js +2 -204
- package/dist/cdn/components/forecast-digest.js +3 -205
- package/dist/cdn/components/forecast-timeline.js +3 -205
- package/dist/cdn/components/gematria.js +3 -205
- package/dist/cdn/components/gochara-table.js +3 -205
- package/dist/cdn/components/guna-milan.js +3 -205
- package/dist/cdn/components/hd-connection.js +5 -207
- package/dist/cdn/components/hd-penta.js +5 -207
- package/dist/cdn/components/hd-type-card.js +3 -205
- package/dist/cdn/components/hd-variables.js +3 -205
- package/dist/cdn/components/heliacal-table.js +3 -205
- package/dist/cdn/components/hexagram.js +3 -205
- package/dist/cdn/components/hora-table.js +3 -205
- package/dist/cdn/components/horoscope-card.js +3 -205
- package/dist/cdn/components/kp-chart.js +3 -205
- package/dist/cdn/components/kp-finance-card.js +3 -205
- package/dist/cdn/components/kp-planets-table.js +3 -205
- package/dist/cdn/components/kp-ruling-planets.js +3 -205
- package/dist/cdn/components/kua-card.js +3 -205
- package/dist/cdn/components/local-space-compass.js +8 -210
- package/dist/cdn/components/location-search.js +3 -205
- package/dist/cdn/components/luck-pillars.js +3 -205
- package/dist/cdn/components/mayan-day-sign.js +3 -205
- package/dist/cdn/components/moon-phase.js +3 -205
- package/dist/cdn/components/nakshatra-card.js +3 -205
- package/dist/cdn/components/natal-chart.js +6 -208
- package/dist/cdn/components/numerology-card.js +3 -205
- package/dist/cdn/components/panchang-table.js +3 -205
- package/dist/cdn/components/positions-table.js +3 -205
- package/dist/cdn/components/profection-card.js +3 -205
- package/dist/cdn/components/reference-card.js +3 -205
- package/dist/cdn/components/relocation-wheel.js +6 -208
- package/dist/cdn/components/shadbala-table.js +3 -205
- package/dist/cdn/components/synastry-chart.js +7 -209
- package/dist/cdn/components/tarot-card.js +3 -205
- package/dist/cdn/components/tarot-catalog.js +3 -205
- package/dist/cdn/components/tarot-spread.js +3 -205
- package/dist/cdn/components/transit-wheel.js +8 -210
- package/dist/cdn/components/transits-table.js +3 -205
- package/dist/cdn/components/upagraha-table.js +2 -204
- package/dist/cdn/components/vastu-mandala.js +4 -206
- package/dist/cdn/components/vedic-aspects.js +2 -204
- package/dist/cdn/components/vedic-daily.js +3 -205
- package/dist/cdn/components/vedic-kundli.js +10 -212
- package/dist/cdn/components/vedic-planets-table.js +3 -205
- package/dist/cdn/components/western-planets-table.js +2 -204
- package/dist/cdn/components/yoga-list.js +3 -205
- package/dist/cdn/components/zodiac-card.js +2 -204
- package/dist/cdn/locales/de.js +1 -1
- package/dist/cdn/roxy-ui.js +49 -251
- package/dist/components/almanac-day.js +1 -203
- package/dist/components/angel-number-card.js +1 -203
- package/dist/components/angel-number-lookup.js +1 -203
- package/dist/components/arudha-padas.js +1 -203
- package/dist/components/ashtakavarga-grid.js +1 -203
- package/dist/components/aspects-table.js +1 -203
- package/dist/components/astrocartography-map.js +6 -208
- package/dist/components/bazi-chart.js +1 -203
- package/dist/components/bhav-chalit-table.js +1 -203
- package/dist/components/bhava-bala-table.js +1 -203
- package/dist/components/biorhythm-chart.js +1 -203
- package/dist/components/bodygraph.js +3 -205
- package/dist/components/chara-karakas.js +1 -203
- package/dist/components/choghadiya-grid.js +1 -203
- package/dist/components/compatibility-card.js +1 -203
- package/dist/components/compound-number.js +1 -203
- package/dist/components/crystal-card.js +1 -203
- package/dist/components/crystal-grid.js +1 -203
- package/dist/components/dasha-timeline.js +1 -203
- package/dist/components/data.js +1 -203
- package/dist/components/divisional-chart.js +45 -247
- package/dist/components/dosha-card.js +1 -203
- package/dist/components/dosha-constitution.js +1 -203
- package/dist/components/dream-card.js +1 -203
- package/dist/components/dream-search.js +1 -203
- package/dist/components/endpoint-form.js +1 -203
- package/dist/components/ephemeris-table.js +1 -203
- package/dist/components/fixed-stars.js +1 -203
- package/dist/components/flying-star-chart.js +1 -203
- package/dist/components/forecast-digest.js +1 -203
- package/dist/components/forecast-timeline.js +1 -203
- package/dist/components/gematria.js +1 -203
- package/dist/components/gochara-table.js +1 -203
- package/dist/components/guna-milan.js +1 -203
- package/dist/components/hd-connection.js +3 -205
- package/dist/components/hd-penta.js +5 -207
- package/dist/components/hd-type-card.js +1 -203
- package/dist/components/hd-variables.js +1 -203
- package/dist/components/heliacal-table.js +1 -203
- package/dist/components/hexagram.d.ts +1 -1
- package/dist/components/hexagram.js +1 -203
- package/dist/components/hora-table.js +1 -203
- package/dist/components/horoscope-card.js +1 -203
- package/dist/components/kp-chart.js +1 -203
- package/dist/components/kp-finance-card.js +1 -203
- package/dist/components/kp-planets-table.js +1 -203
- package/dist/components/kp-ruling-planets.js +1 -203
- package/dist/components/kua-card.js +1 -203
- package/dist/components/local-space-compass.js +4 -206
- package/dist/components/location-search.js +1 -203
- package/dist/components/luck-pillars.js +1 -203
- package/dist/components/mayan-day-sign.js +1 -203
- package/dist/components/moon-phase.js +1 -203
- package/dist/components/nakshatra-card.js +1 -203
- package/dist/components/natal-chart.d.ts +1 -1
- package/dist/components/natal-chart.js +5 -207
- package/dist/components/numerology-card.js +1 -203
- package/dist/components/panchang-table.js +1 -203
- package/dist/components/positions-table.js +1 -203
- package/dist/components/profection-card.js +1 -203
- package/dist/components/reference-card.js +1 -203
- package/dist/components/relocation-wheel.js +3 -205
- package/dist/components/shadbala-table.js +1 -203
- package/dist/components/synastry-chart.js +6 -208
- package/dist/components/tarot-card.js +1 -203
- package/dist/components/tarot-catalog.js +1 -203
- package/dist/components/tarot-spread.js +1 -203
- package/dist/components/transit-wheel.js +8 -210
- package/dist/components/transits-table.js +1 -203
- package/dist/components/upagraha-table.js +1 -203
- package/dist/components/vastu-mandala.js +6 -208
- package/dist/components/vedic-aspects.js +1 -203
- package/dist/components/vedic-daily.js +1 -203
- package/dist/components/vedic-kundli.js +15 -217
- package/dist/components/vedic-planets-table.js +1 -203
- package/dist/components/western-planets-table.js +1 -203
- package/dist/components/yoga-list.js +1 -203
- package/dist/components/zodiac-card.js +1 -203
- package/dist/forms.json +1 -1
- package/dist/index.cjs +49 -251
- package/dist/index.js +50 -252
- package/dist/locales/de.js +1 -1
- package/dist/schemas/post--astrology-lilith.json +1 -1
- package/dist/schemas/post--astrology-progressions.json +1 -1
- package/dist/schemas/post--kabbalah-birth-profile.json +1 -1
- package/dist/schemas/post--numerology-chart.json +1 -1
- package/dist/schemas/post--vedic-astrology-daily.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-current.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-major.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha-antardasha-pratyantardasha-sookshma.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha-antardasha-pratyantardasha.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha-antardasha.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-chart.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-cusps.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-daily-finance.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-horary.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-planets.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-ruling-planets-interval.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-ruling-planets.json +1 -1
- package/dist/schemas/post--vedic-astrology-transit.json +1 -1
- package/dist/styles/palettes.d.ts +4 -0
- package/dist/styles/themes/celeste.css +1 -115
- package/dist/styles/themes/eucalyptus.css +1 -121
- package/dist/styles/themes/kiln.css +1 -121
- package/dist/styles/themes/moonlit.css +1 -121
- package/dist/styles/themes/practitioner.css +1 -170
- package/dist/styles/tokens-css.d.ts +1 -1
- package/dist/styles/tokens.css +1 -202
- package/dist/types/types.gen.d.ts +48 -36
- package/dist/utils/string.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,208 +1,6 @@
|
|
|
1
|
-
var RoxyUI_horoscope_card=(()=>{var K=Object.defineProperty;var
|
|
2
|
-
\f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Me=/'/g,Ge=/"/g,je=/^(?:script|style|textarea|title)$/i,xe=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),a=xe(1),xr=xe(2),br=xe(3),R=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Ie=new WeakMap,A=_.createTreeWalker(_,129);function qe(o,e){if(!fe(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ne!==void 0?Ne.createHTML(e):e}var Nt=(o,e)=>{let t=o.length-1,r=[],n,s=e===2?"<svg>":e===3?"<math>":"",i=D;for(let l=0;l<t;l++){let c=o[l],y,m,p=-1,x=0;for(;x<c.length&&(i.lastIndex=x,m=i.exec(c),m!==null);)x=i.lastIndex,i===D?m[1]==="!--"?i=Ue:m[1]!==void 0?i=De:m[2]!==void 0?(je.test(m[2])&&(n=RegExp("</"+m[2],"g")),i=T):m[3]!==void 0&&(i=T):i===T?m[0]===">"?(i=n??D,p=-1):m[1]===void 0?p=-2:(p=i.lastIndex-m[2].length,y=m[1],i=m[3]===void 0?T:m[3]==='"'?Ge:Me):i===Ge||i===Me?i=T:i===Ue||i===De?i=D:(i=T,n=void 0);let v=i===T&&o[l+1].startsWith("/>")?" ":"";s+=i===D?c+Lt:p>=0?(r.push(y),c.slice(0,p)+He+c.slice(p)+$+v):c+$+(p===-2?l:v)}return[qe(o,s+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},I=class o{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,i=0,l=e.length-1,c=this.parts,[y,m]=Nt(e,t);if(this.el=o.createElement(y,r),A.currentNode=this.el.content,t===2||t===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=A.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(He)){let x=m[i++],v=n.getAttribute(p).split($),q=/([.?@])?(.*)/.exec(x);c.push({type:1,index:s,name:q[2],strings:v,ctor:q[1]==="."?he:q[1]==="?"?ue:q[1]==="@"?me:O}),n.removeAttribute(p)}else p.startsWith($)&&(c.push({type:6,index:s}),n.removeAttribute(p));if(je.test(n.tagName)){let p=n.textContent.split($),x=p.length-1;if(x>0){n.textContent=Z?Z.emptyScript:"";for(let v=0;v<x;v++)n.append(p[v],M()),A.nextNode(),c.push({type:2,index:++s});n.append(p[x],M())}}}else if(n.nodeType===8)if(n.data===ze)c.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf($,p+1))!==-1;)c.push({type:7,index:s}),p+=$.length-1}s++}}static createElement(e,t){let r=_.createElement("template");return r.innerHTML=e,r}};function C(o,e,t=o,r){if(e===R)return e;let n=r!==void 0?t._$Co?.[r]:t._$Cl,s=G(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(o),n._$AT(o,t,r)),r!==void 0?(t._$Co??=[])[r]=n:t._$Cl=n),n!==void 0&&(e=C(o,n._$AS(o,e.values),n,r)),e}var pe=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??_).importNode(t,!0);A.currentNode=n;let s=A.nextNode(),i=0,l=0,c=r[0];for(;c!==void 0;){if(i===c.index){let y;c.type===2?y=new H(s,s.nextSibling,this,e):c.type===1?y=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(y=new ye(s,this,e)),this._$AV.push(y),c=r[++l]}i!==c?.index&&(s=A.nextNode(),i++)}return A.currentNode=_,n}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},H=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=C(this,e,t),G(e)?e===d||e==null||e===""?(this._$AH!==d&&this._$AR(),this._$AH=d):e!==this._$AH&&e!==R&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ft(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==d&&G(this._$AH)?this._$AA.nextSibling.data=e:this.T(_.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=I.createElement(qe(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let s=new pe(n,this),i=s.u(this.options);s.p(t),this.T(i),this._$AH=s}}_$AC(e){let t=Ie.get(e.strings);return t===void 0&&Ie.set(e.strings,t=new I(e)),t}k(e){fe(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let s of e)n===t.length?t.push(r=new o(this.O(M()),this.O(M()),this,this.options)):r=t[n],r._$AI(s),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=Fe(e).nextSibling;Fe(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},O=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(e,t=this,r,n){let s=this.strings,i=!1;if(s===void 0)e=C(this,e,t,0),i=!G(e)||e!==this._$AH&&e!==R,i&&(this._$AH=e);else{let l=e,c,y;for(e=s[0],c=0;c<s.length-1;c++)y=C(this,l[r+c],t,c),y===R&&(y=this._$AH[c]),i||=!G(y)||y!==this._$AH[c],y===d?e=d:e!==d&&(e+=(y??"")+s[c+1]),this._$AH[c]=y}i&&!n&&this.j(e)}j(e){e===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},he=class extends O{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===d?void 0:e}},ue=class extends O{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==d)}},me=class extends O{constructor(e,t,r,n,s){super(e,t,r,n,s),this.type=5}_$AI(e,t=this){if((e=C(this,e,t,0)??d)===R)return;let r=this._$AH,n=e===d&&r!==d||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==d&&(r===d||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ye=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){C(this,e)}};var Ut=ge.litHtmlPolyfillSupport;Ut?.(I,H),(ge.litHtmlVersions??=[]).push("3.3.3");var Ke=(o,e,t)=>{let r=t?.renderBefore??e,n=r._$litPart$;if(n===void 0){let s=t?.renderBefore??null;r._$litPart$=n=new H(e.insertBefore(M(),s),s,void 0,t??{})}return n._$AI(o),n};var be=globalThis,E=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ke(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return R}};E._$litElement$=!0,E.finalized=!0,be.litElementHydrateSupport?.({LitElement:E});var Dt=be.litElementPolyfillSupport;Dt?.({LitElement:E});(be.litElementVersions??=[]).push("4.2.2");var Mt={attribute:!0,type:String,converter:U,reflect:!1,hasChanged:W},Gt=(o=Mt,e,t)=>{let{kind:r,metadata:n}=t,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),s.set(t.name,o),r==="accessor"){let{name:i}=t;return{set(l){let c=e.get.call(this);e.set.call(this,l),this.requestUpdate(i,c,o,!0,l)},init(l){return l!==void 0&&this.C(i,void 0,o,l),l}}}if(r==="setter"){let{name:i}=t;return function(l){let c=this[i];e.call(this,l),this.requestUpdate(i,c,o,!0,l)}}throw Error("Unsupported decorator location: "+r)};function g(o){return(e,t)=>typeof t=="object"?Gt(o,e,t):((r,n,s)=>{let i=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(n,s):void 0})(o,e,t)}function b(o){return g({...o,state:!0,attribute:!1})}var Be=[{endpoint:"astrology/horoscope/{sign}/daily",method:"GET",attrs:{period:"daily"}},{endpoint:"astrology/horoscope/{sign}/weekly",method:"GET",attrs:{period:"weekly"}},{endpoint:"astrology/horoscope/{sign}/monthly",method:"GET",attrs:{period:"monthly"}},{endpoint:"astrology/horoscope/{sign}/yearly",method:"GET",attrs:{period:"yearly"}}];function X(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}function ve(o){return o?o.charAt(0).toUpperCase()+o.slice(1).toLowerCase():""}var we=(o,e)=>e?o[X(e)]:void 0,It={sun:"☉",moon:"☽",mercury:"☿",venus:"♀",earth:"♁",mars:"♂",jupiter:"♃",saturn:"♄",uranus:"♅",neptune:"♆",pluto:"♇",rahu:"☊",ketu:"☋",ascendant:"Asc",midheaven:"MC","part of fortune":"⊗",vertex:"Vx",lagna:"La","north node":"☊","south node":"☋",chiron:"⚷",lilith:"⚸","black moon lilith":"⚸"},z=o=>we(It,o);var Ht={aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpio:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓"},j=o=>we(Ht,o);var zt={conjunction:"☌",semisextile:"⚺","semi sextile":"⚺",semisquare:"∠","semi square":"∠",sextile:"⚹",square:"□",trine:"△",sesquiquadrate:"⚼",quincunx:"⚻",opposition:"☍"},Ye=o=>we(zt,o);var jt=/^\d{4}-\d{2}-\d{2}$/,qt=/^\d{4}-\d{2}$/,Kt=/^\d{2}:\d{2}(:\d{2})?$/,Bt=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,Ve=new Map;function Se(o){if(!o)return["en"];let e=Ve.get(o);if(e)return[e,"en"];let t="en";try{t=Intl.getCanonicalLocales(o)[0]??"en"}catch{t="en"}return Ve.set(o,t),[t,"en"]}var We=new Map;function Yt(o){let e=o??"",t=We.get(e);if(t)return t;let n={hour:new Intl.DateTimeFormat(Se(o),{timeStyle:"short",timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2e3,0,1,1))).find(s=>s.type==="hour")?.value?.length===2?"2-digit":"numeric",minute:"2-digit"};return We.set(e,n),n}function Vt(o,e){return o&&e?`${o} - ${e}`:o||e}function Ze(o){let e=Kt.test(o)?`1970-01-01T${o}`:jt.test(o)?`${o}T00:00:00`:qt.test(o)?`${o}-01T00:00:00`:Bt.test(o)?o.replace(" ","T"):null;return e?{d:new Date(`${e}Z`),timeZone:"UTC"}:{d:new Date(o)}}function S(o,e){if(typeof e!="string"||e.length===0)return"";let{d:t,timeZone:r}=Ze(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(Se(o),{month:"short",day:"numeric",year:"numeric",timeZone:r})}function ke(o,e,t){return Vt(S(o,e),S(o,t))}function Q(o,e,t){if(typeof e!="string"||e.length===0)return"";if(t==="year")return e.match(/^(\d{4})/)?.[1]??e;let{d:r,timeZone:n}=Ze(e);return Number.isNaN(r.getTime())?e:r.toLocaleString(Se(o),{day:t==="month"?void 0:"numeric",month:"short",year:"numeric",...t==="time"?Yt(o):{},timeZone:n})}function Je(o){return(o.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}var $e=f`.aspect-trine,.aspect-sextile{--_aspect:var(--roxy-info);--_aspect-ink:var(--roxy-info-fg)}.aspect-square,.aspect-opposition{--_aspect:var(--roxy-danger);--_aspect-ink:var(--roxy-danger-fg)}.aspect-quincunx,.aspect-semi-sextile{--_aspect:var(--roxy-success);--_aspect-ink:var(--roxy-success-fg)}.aspect-conjunction{--_aspect:var(--roxy-accent-ink);--_aspect-ink:var(--roxy-accent-ink)}:is(.aspect-trine,.aspect-sextile,.aspect-square,.aspect-opposition,.aspect-quincunx,.aspect-semi-sextile,.aspect-conjunction){color:var(--_aspect-ink);stroke-opacity:1}.aspect-swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);background:var(--_aspect);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}`,un=[f`.aspect{stroke:var(--_aspect,var(--roxy-muted));stroke-width:.8px;fill:none;opacity:.55;stroke-opacity:.7}`,$e];function Xe(o){return`aspect-${Je(o)}`}var P=o=>o??d;var Qe=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Te(o){if(o.lang)return o.lang;if(typeof document>"u")return;let e=o.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}var Wt={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Ee(o){let e=o.toLowerCase();return Qe.find(t=>t.toLowerCase()===e)}function et(o){let e=Te(o);if(!e)return;let t=Ee(e);if(t)return t;let r=e.toLowerCase().split("-"),n=r[0];if(n==="zh"){let s=r.find(i=>i==="hans"||i==="hant")??Wt[r[1]??""];return s?Ee(`zh-${s}`):void 0}return Ee(n)}var tt=`/**
|
|
4
|
-
* Roxy UI design tokens: every colour, size, space, radius, font and duration a component reads.
|
|
5
|
-
*
|
|
6
|
-
* Two tiers. BASES are the few values a host tunes: fonts, base text size and its scale ratio, the
|
|
7
|
-
* space unit, the base radius, motion, and the colour bases (bg, fg, accent and the four status
|
|
8
|
-
* colours). Every other token DERIVES from them with calc() or color-mix(), so dark mode reassigns
|
|
9
|
-
* the colour bases only and one font token restyles every heading. A host may still set any
|
|
10
|
-
* derived token directly, and its value wins.
|
|
11
|
-
*
|
|
12
|
-
* Delivery: a global light-DOM stylesheet (linked, or injected by the CDN bundle). Custom properties
|
|
13
|
-
* inherit through the shadow boundary, so a token set on any light-DOM ancestor reaches every
|
|
14
|
-
* component. The :host selectors apply only if this sheet is adopted into a shadow root.
|
|
15
|
-
*
|
|
16
|
-
* Light is the default. Dark applies under prefers-color-scheme: dark, or [data-theme="dark"] or
|
|
17
|
-
* .dark on the element or any ancestor; [data-theme="light"] or .light opts back into light. An
|
|
18
|
-
* explicit choice wins over the OS because those blocks come later in source order.
|
|
19
|
-
*
|
|
20
|
-
* A derivation is computed where it is declared, so the derived block also matches every theme
|
|
21
|
-
* trigger: a base reassigned on :root or on an element carrying data-theme, .light or .dark
|
|
22
|
-
* re-derives everything below it.
|
|
23
|
-
*
|
|
24
|
-
* Font: --roxy-font-sans is unset by default, so every component inherits the host page font; any
|
|
25
|
-
* value set by the host or a preset replaces it, and --roxy-font-display follows it until set.
|
|
26
|
-
*
|
|
27
|
-
* Motion: --roxy-motion-duration defaults to 200ms and prefers-reduced-motion forces 0ms.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* Two mechanisms keep the host page in charge of every token, and both are load bearing.
|
|
32
|
-
*
|
|
33
|
-
* Every rule sits in the roxy.tokens cascade layer, and an unlayered declaration beats a layered
|
|
34
|
-
* one at ANY specificity, so a plain \`:root { --roxy-accent: #8b5cf6 }\` on the host page wins, and
|
|
35
|
-
* so does the same line inside a layer of its own, because this statement registers ours first
|
|
36
|
-
* and the CDN bundle injects this sheet at the top of <head>. A host that links this file after its
|
|
37
|
-
* own CSS orders the layers itself: \`@layer roxy, base, components, utilities;\` before either sheet.
|
|
38
|
-
*
|
|
39
|
-
* Every selector is ALSO wrapped in :where(), which has ZERO specificity, so a host declaration
|
|
40
|
-
* still wins wherever a layer cannot decide it, under every dark signal alike.
|
|
41
|
-
*
|
|
42
|
-
* The theme presets in styles/themes/*.css write into roxy.theme; both files declare this order,
|
|
43
|
-
* so either one loading alone still ranks a preset above these defaults.
|
|
44
|
-
*/
|
|
45
|
-
@layer roxy.tokens, roxy.theme;
|
|
46
|
-
|
|
47
|
-
@layer roxy.tokens {
|
|
48
|
-
/* Bases, light. Also the mode-specific derivations: accent ink and status inks mix toward black. */
|
|
49
|
-
:where(:root, :host) {
|
|
50
|
-
/* A real inherited property: native controls, popups and scrollbars follow it. */
|
|
51
|
-
color-scheme: light;
|
|
52
|
-
|
|
53
|
-
--roxy-bg: #ffffff;
|
|
54
|
-
--roxy-fg: #0a0a0a;
|
|
55
|
-
--roxy-accent: #4a6297;
|
|
56
|
-
--roxy-success: #16a34a;
|
|
57
|
-
--roxy-warning: #ea580c;
|
|
58
|
-
--roxy-danger: #dc2626;
|
|
59
|
-
--roxy-info: #0284c7;
|
|
60
|
-
|
|
61
|
-
/* Accent and status inks: 70 percent toward black reads at AA on the card and on a tint of the base. */
|
|
62
|
-
--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);
|
|
63
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);
|
|
64
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);
|
|
65
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);
|
|
66
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);
|
|
67
|
-
|
|
68
|
-
/* Unset on purpose: a component inherits the host page font until a host or preset sets one. */
|
|
69
|
-
--roxy-font-sans: initial;
|
|
70
|
-
--roxy-font-mono:
|
|
71
|
-
ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas,
|
|
72
|
-
"Liberation Mono", monospace;
|
|
73
|
-
|
|
74
|
-
--roxy-text-base: 1rem;
|
|
75
|
-
--roxy-text-scale: 1.15;
|
|
76
|
-
--roxy-weight-normal: 400;
|
|
77
|
-
--roxy-weight-bold: 600;
|
|
78
|
-
--roxy-leading-tight: 1.25;
|
|
79
|
-
--roxy-leading-normal: 1.5;
|
|
80
|
-
--roxy-tracking-tight: -0.01em;
|
|
81
|
-
--roxy-tracking-normal: 0em;
|
|
82
|
-
|
|
83
|
-
--roxy-space-unit: 0.25rem;
|
|
84
|
-
--roxy-radius: 6px;
|
|
85
|
-
|
|
86
|
-
--roxy-motion-duration: 200ms;
|
|
87
|
-
--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* Derived roles, identical in every mode, restated on every theme trigger so they follow its bases. */
|
|
91
|
-
:where(:root, :host, [data-theme], .light, .dark) {
|
|
92
|
-
/* Flat: the card is the page colour, separated by a hairline. */
|
|
93
|
-
--roxy-surface: var(--roxy-bg);
|
|
94
|
-
--roxy-primary: var(--roxy-fg);
|
|
95
|
-
--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));
|
|
96
|
-
--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));
|
|
97
|
-
--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));
|
|
98
|
-
--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);
|
|
99
|
-
--roxy-heat: var(--roxy-danger);
|
|
100
|
-
|
|
101
|
-
--roxy-font-display: var(--roxy-font-sans);
|
|
102
|
-
|
|
103
|
-
--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));
|
|
104
|
-
--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));
|
|
105
|
-
--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));
|
|
106
|
-
--roxy-text-xl: calc(
|
|
107
|
-
var(--roxy-text-lg) *
|
|
108
|
-
var(--roxy-text-scale) *
|
|
109
|
-
var(--roxy-text-scale)
|
|
110
|
-
);
|
|
111
|
-
|
|
112
|
-
--roxy-space-xs: var(--roxy-space-unit);
|
|
113
|
-
--roxy-space-sm: calc(var(--roxy-space-unit) * 2);
|
|
114
|
-
--roxy-space-md: calc(var(--roxy-space-unit) * 4);
|
|
115
|
-
--roxy-space-lg: calc(var(--roxy-space-unit) * 6);
|
|
116
|
-
--roxy-space-xl: calc(var(--roxy-space-unit) * 10);
|
|
117
|
-
--roxy-line-thick: calc(var(--roxy-space-unit) / 2);
|
|
118
|
-
--roxy-touch: calc(var(--roxy-space-unit) * 11);
|
|
119
|
-
|
|
120
|
-
--roxy-radius-sm: calc(var(--roxy-radius) / 2);
|
|
121
|
-
--roxy-radius-md: var(--roxy-radius);
|
|
122
|
-
--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);
|
|
123
|
-
--roxy-radius-full: 9999px;
|
|
124
|
-
|
|
125
|
-
/* Flat surfaces cast nothing; only a floating layer (a popup, an enlarged chart) lifts. */
|
|
126
|
-
--roxy-shadow-sm: none;
|
|
127
|
-
--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);
|
|
128
|
-
--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* Bases, dark, by system preference. Inks mix toward white so they read on a dark card. */
|
|
132
|
-
@media (prefers-color-scheme: dark) {
|
|
133
|
-
:where(:root, :host) {
|
|
134
|
-
color-scheme: dark;
|
|
135
|
-
--roxy-bg: #0a0a0a;
|
|
136
|
-
--roxy-fg: #fafafa;
|
|
137
|
-
--roxy-accent: #92aade;
|
|
138
|
-
--roxy-success: #22c55e;
|
|
139
|
-
--roxy-warning: #fb923c;
|
|
140
|
-
--roxy-danger: #ef4444;
|
|
141
|
-
--roxy-info: #38bdf8;
|
|
142
|
-
|
|
143
|
-
--roxy-accent-ink: var(--roxy-accent);
|
|
144
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);
|
|
145
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);
|
|
146
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);
|
|
147
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/* Explicit light: beats the OS dark block when the host chooses light. */
|
|
152
|
-
:where(
|
|
153
|
-
:root[data-theme="light"],
|
|
154
|
-
[data-theme="light"],
|
|
155
|
-
:root.light,
|
|
156
|
-
.light,
|
|
157
|
-
:host([data-theme="light"])
|
|
158
|
-
) {
|
|
159
|
-
color-scheme: light;
|
|
160
|
-
--roxy-bg: #ffffff;
|
|
161
|
-
--roxy-fg: #0a0a0a;
|
|
162
|
-
--roxy-accent: #4a6297;
|
|
163
|
-
--roxy-success: #16a34a;
|
|
164
|
-
--roxy-warning: #ea580c;
|
|
165
|
-
--roxy-danger: #dc2626;
|
|
166
|
-
--roxy-info: #0284c7;
|
|
167
|
-
|
|
168
|
-
--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);
|
|
169
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);
|
|
170
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);
|
|
171
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);
|
|
172
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/* Explicit dark: a .dark class or data-theme="dark" on any ancestor themes every component below it. */
|
|
176
|
-
:where(
|
|
177
|
-
:root[data-theme="dark"],
|
|
178
|
-
[data-theme="dark"],
|
|
179
|
-
:root.dark,
|
|
180
|
-
.dark,
|
|
181
|
-
:host([data-theme="dark"])
|
|
182
|
-
) {
|
|
183
|
-
color-scheme: dark;
|
|
184
|
-
--roxy-bg: #0a0a0a;
|
|
185
|
-
--roxy-fg: #fafafa;
|
|
186
|
-
--roxy-accent: #92aade;
|
|
187
|
-
--roxy-success: #22c55e;
|
|
188
|
-
--roxy-warning: #fb923c;
|
|
189
|
-
--roxy-danger: #ef4444;
|
|
190
|
-
--roxy-info: #38bdf8;
|
|
191
|
-
|
|
192
|
-
--roxy-accent-ink: var(--roxy-accent);
|
|
193
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);
|
|
194
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);
|
|
195
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);
|
|
196
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
@media (prefers-reduced-motion: reduce) {
|
|
200
|
-
:where(:root, :host) {
|
|
201
|
-
--roxy-motion-duration: 0ms;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
`;var ee="roxy-ui-tokens";function te(){if(typeof document>"u")return null;let o=document.getElementById(ee);if(o)return o;let e=document.createElement("style");return e.id=ee,e.textContent=tt,document.head.prepend(e),e}var rt="__ROXY_UI_I18N__";function nt(){let o=globalThis,e=o[rt];if(e)return e;let t={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[rt]=t,t}function Zt(o,e){return e?o.replace(/\{\{(\w+)\}\}/g,(t,r)=>r in e?String(e[r]??""):t):o}function ot(o,e,t){return Zt(Jt(o,e)??e,t)}function Jt(o,e){if(!o)return;let{catalogs:t}=nt(),r=o.toLowerCase();return(t[r]??t[r.split("-")[0]])?.[X(e)]}function st(o){let{listeners:e}=nt();return e.add(o),()=>{e.delete(o)}}var re=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=st(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var ne=class extends E{constructor(){super();this.translator=(t,r)=>this.t(t,r);new re(this)}connectedCallback(){super.connectedCallback(),te()}t(t,r){return ot(this.effectiveLang(),t,r)}effectiveLang(){return Te(this)}};var it=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var Xt=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,oe=[Xt,it];var Qt="__cols",er="__rows";function tr(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function se(o){if(Array.isArray(o)){let s=!1,i=o.map(l=>{let c=se(l);return c!==l&&(s=!0),c});return s?i:o}if(!tr(o))return o;let e=o[Qt],t=o[er];if(Array.isArray(e)&&Array.isArray(t)&&Object.keys(o).length===2)return t.map(s=>{let i={};return e.forEach((l,c)=>{i[l]=se(s[c])}),i});let r=!1,n={};for(let[s,i]of Object.entries(o)){let l=se(i);l!==i&&(r=!0),n[s]=l}return r?n:o}function at(o){return se(o)}function dt(o,e){return o.find(t=>t.attrs&&Object.entries(t.attrs).every(([r,n])=>e[r]===n))??o[0]}var rr="pk_live_YOUR_KEY",lt={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function ct(o){if(o)return o===rr?lt.sample:o.startsWith("pk_")?void 0:lt.secret}function pt(o,e,t={}){t.warn&&console.warn(e.message),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:e.reason,message:e.message},bubbles:!0,composed:!0}))}var ht="https://roxyapi.com/api/v2";async function nr(o){try{let e=await o.json();if(e?.error){let t=e.code==="validation_error"&&Array.isArray(e.issues)?e.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:e.error,issues:t?.length?t:null,worded:!0}}}catch{}return{message:`Request failed (${o.status})`,issues:null,worded:!1}}var ut={fromAttribute:o=>{if(o!=null){try{let e=JSON.parse(o);if(e&&typeof e=="object"&&!Array.isArray(e))return e}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},L=class extends Error{constructor(t,r=null,n=!0){super(t);this.issues=r;this.worded=n}};function mt(o){return o.submitUrl?void 0:ct(o.publishableKey)}async function Ae(o,e,t){let r=mt(o);if(r)throw new L(r.message);let n=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:or(e,o.submitContext),signal:t}):await sr(o,e,t);if(!n.ok){let s=await nr(n);throw new L(s.message,s.issues,s.worded)}return await n.json()}function or(o,e){return JSON.stringify(e?{...o,context:e}:o)}function sr(o,e,t){let r=new URL(`${o.baseUrl??ht}${e.path}`,document.baseURI);for(let[s,i]of Object.entries(e.query??{}))i!=null&&r.searchParams.set(s,String(i));let n={Accept:"application/json"};return o.publishableKey&&(n["X-API-Key"]=o.publishableKey),e.body!=null&&(n["Content-Type"]="application/json"),fetch(r,{method:e.method??"GET",headers:n,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}var ie=class{constructor(e){this.baseUrl=ht;this.worded=!0;this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){this.worded=!0;let t=mt(this);if(t){this.host.error=t.message,pt(this.host,t);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=!0,this.host.error=null,this.host.issues=null;try{let n=await Ae(this,e,r.signal);if(r.signal.aborted)return;this.host.data=n}catch(n){if(r.signal.aborted||n?.name==="AbortError")return;n instanceof L&&(this.host.issues=n.issues),this.worded=n instanceof L&&n.worded,this.host.error=n instanceof Error?n.message:String(n)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=!1)}}};function yt(o,e,t,r=[]){let n={...t},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(y,m)=>{let p=n[m];return delete n[m],encodeURIComponent(String(p??""))}),i=new Set(r),l={},c={};for(let[y,m]of Object.entries(n))m===void 0||m===""||(e==="GET"||i.has(y)?l[y]=m:c[y]=m);return{path:s,method:e,query:l,body:e==="POST"?c:void 0}}function gt(){return a`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var Bn=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Zn=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function ft(o,e,t){let r=o.filter(n=>!!n.body);return r.length===0?d:a`<section class="block" part="section readings"><h3>${t}</h3>${r.map((n,s)=>a`<details class="interp-card" part="reading" name="${e}" ?open="${s===0}"><summary><span class="interp-lead">${n.label}</span> ${gt()} ${n.aside?a`<span class="interp-aside"><small>${n.aside}</small></span>`:d}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??d}</div></details>`)}</section>`}var ir="roxy-data";function ar(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var ae=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){if(this.host.data!=null)return;let e=this.read();e!==void 0&&(this.host.data=e,this.host.requestUpdate())}read(){let e=this.findInlineScript();return e?this.parse(e.textContent):void 0}findInlineScript(){for(let e of Array.from(this.host.children))if(ar(e)&&e.classList.contains(ir))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var u=class extends ne{constructor(){super();this.data=null;this.endpoint="";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.issues=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.hostLoaded=!1;this.moreLoading=!1;this.moreError=null;this.onMore=async()=>{let t=this.lastRequest,r=this.listKey,n=this.listRows();if(!(!t||!r||!n)){this.moreLoading=!0,this.moreError=null;try{let s=await Ae(this.fetcher,{...t,query:{...t.query,offset:n.length}});if(this.lastRequest!==t)return;let i=s[r];this.data={...this.data,...s,[r]:[...n,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===t&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=!1}}};this.onEdit=()=>{this.editing=!0};this.onFormSubmit=t=>{let r=this.selfFetch();if(!r)return;let n=t.detail;this.lastValues=n.values,this.sticky=!!n.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(n.values),this.fetchFresh(yt(r.endpoint,r.method,n.values,n.queryKeys??[]))};new ae(this),this.fetcher=new ie(this)}static{this.styles=[oe]}static{this.endpoints=[]}willUpdate(t){if(t.has("data")&&this.data!=null){let r=at(this.data);r!==this.data&&(this.data=r)}(t.has("publishableKey")||t.has("baseUrl")||t.has("submitUrl")||t.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let t=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:dt(this.constructor.endpoints,this);return t&&{endpoint:t.endpoint,method:this.method??t.method}}render(){return a`${this.hiddenSectionsStyle()}${this.renderState()}`}drawn(t){try{return this.renderData(t)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:!0,composed:!0})),customElements.get("roxy-data")?a`<roxy-data .data="${t}" lang="${P(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hiddenSectionsStyle(){let t=this.hideSections.split(",").map(n=>n.trim().toLowerCase()).filter(n=>/^[a-z][a-z0-9-]*$/.test(n));if(t.length===0)return d;let r=t.map(n=>`[part~="${n}"],roxy-endpoint-form::part(${n}){display:none!important}`).join("");return a`<style>${r}</style>`}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?a`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(t,r,n){return this.hideReadings?d:ft(t,r,this.t(n??"Reading"))}renderResult(t){let r=a`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(t)}`;return this.showAttribution()?a`${r}${this.renderAttribution()}`:r}renderWithForm(t){return a`${this.renderForm()}${t}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?d:this.renderErrorBanner(this.error):this.data==null?d:this.showAttribution()?a`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let t=this.listRows(),r=this.data?.total;return!this.lastRequest||!t||typeof r!="number"?d:t.length>=r?d:a`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?a`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:d}</div>`}listRows(){let t=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(t)?t:void 0}fetchFresh(t){return this.lastRequest=t,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(t)}load(t){return this.hostLoaded=!0,this.syncFetcher(),this.fetchFresh(t)}pickRow(t){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:t,bubbles:!0,composed:!0})),this.openRow(t.id)}openRow(t){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let n=this.effectiveLang();n&&r.setAttribute("lang",n),this.openedRow=r,this.openedRowId=t,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(t))}`,method:"GET",query:{lang:et(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return a`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(d):this.renderEmpty()}renderForm(){let t=this.selfFetch();return a`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${t?.endpoint??""}" method="${t?.method??"POST"}" spec-url="${P(this.specUrl)}" publishable-key="${P(this.publishableKey)}" location-url="${P(this.locationUrl)}" submit-label="${P(this.submitLabel)}" lang="${P(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let t=sessionStorage.getItem(this.rememberKey());return t?JSON.parse(t):void 0}catch{return}}writeRemembered(t){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(t))}catch{}}renderEmpty(){return a`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return a`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let n=this.renderErrorBanner(t);return r?a`${n}${this.renderForm()}`:n}renderErrorBanner(t){return a`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(t)}</div>`}};h([g({attribute:!1})],u.prototype,"data",2),h([g({type:String,attribute:"data-endpoint"})],u.prototype,"endpoint",2),h([g({type:String})],u.prototype,"method",2),h([g({type:String,attribute:"publishable-key"})],u.prototype,"publishableKey",2),h([g({type:String,attribute:"base-url"})],u.prototype,"baseUrl",2),h([g({type:String,attribute:"spec-url"})],u.prototype,"specUrl",2),h([g({type:String,attribute:"submit-url"})],u.prototype,"submitUrl",2),h([g({attribute:"submit-context",converter:ut})],u.prototype,"submitContext",2),h([g({type:String,attribute:"location-url"})],u.prototype,"locationUrl",2),h([g({type:Boolean})],u.prototype,"remember",2),h([g({type:Boolean,attribute:"hide-readings",reflect:!0})],u.prototype,"hideReadings",2),h([g({type:String,attribute:"hide-sections",reflect:!0})],u.prototype,"hideSections",2),h([g({type:String,attribute:"submit-label"})],u.prototype,"submitLabel",2),h([g({type:String,attribute:"error-message"})],u.prototype,"errorMessage",2),h([g({type:String})],u.prototype,"attribution",2),h([b()],u.prototype,"loading",2),h([b()],u.prototype,"error",2),h([b()],u.prototype,"issues",2),h([b()],u.prototype,"selfFetched",2),h([b()],u.prototype,"editing",2),h([b()],u.prototype,"sticky",2),h([b()],u.prototype,"openedRow",2),h([b()],u.prototype,"openedRowId",2),h([b()],u.prototype,"moreLoading",2),h([b()],u.prototype,"moreError",2);var xt=o=>e=>{customElements.get(o)||customElements.define(o,e)};var bt=f`.row{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);display:grid}@container (width<=30rem){.row{grid-template-columns:minmax(0,1fr)}}`;var dr={daily:"Daily",weekly:"Weekly",monthly:"Monthly",yearly:"Yearly"},lr={aspect:"Aspect","sign-ingress":"Sign ingress","retrograde-station":"Retrograde station","lunar-phase":"Lunar phase",eclipse:"Eclipse","solar-season":"Solar season"},cr=[["love","Love"],["career","Career"],["health","Health"],["finance","Finance"],["advice","Advice"]],pr=[["love","Love"],["career","Career"],["health","Health"],["finance","Finance"]],k=class extends u{constructor(){super(...arguments);this.period="daily";this.layout="auto"}renderData(t){let r=t.sign??"",n=j(r)??"",s="energyRating"in t&&typeof t.energyRating=="number"?t.energyRating:null,i=this.effectiveLang(),l="date"in t&&t.date&&S(i,t.date)||"week"in t&&t.week&&S(i,t.week)||"month"in t&&t.month&&Q(i,t.month,"month")||("year"in t&&t.year?String(t.year):"")||"";return a`<article class="card" part="card" aria-labelledby="horoscope-title"><header class="head" part="header"><span class="glyph" aria-hidden="true">${n}</span><div><h2 class="title" id="horoscope-title">${r} ${this.t(dr[this.period])}</h2>${l?a`<p class="date roxy-label">${l}</p>`:d}</div>${s!==null?a`<span class="energy" part="details" aria-label="${this.t("Energy {{value}} of 10",{value:s})}">${this.t("Energy {{value}}/10",{value:s})} <span class="energy-bar"><span style="width:${s/10*100}%"></span></span></span>`:d}</header>${this.renderReading(t)} ${this.renderSky(t)} ${this.renderEvents(t.events)} ${this.renderYear(t)} ${this.renderMonth(t)} ${(()=>{let c="luckyNumber"in t&&t.luckyNumber!==void 0?t.luckyNumber:void 0,y="luckyColor"in t&&t.luckyColor?t.luckyColor:"",m="luckyNumbers"in t&&t.luckyNumbers?t.luckyNumbers:[],p="luckyDays"in t&&t.luckyDays?t.luckyDays:[],x=t.compatibleSigns??[];return c===void 0&&!y&&m.length===0&&p.length===0&&x.length===0?d:a`<div class="lucky" part="details">${c!==void 0?a`<span>${this.t("Lucky number")} <strong>${c}</strong></span>`:d} ${y?a`<span>${this.t("Lucky color")} <strong>${y}</strong></span>`:d} ${m.length?a`<span>${this.t("Lucky numbers")} <strong>${m.join(", ")}</strong></span>`:d} ${p.length?a`<span>${this.t("Lucky days")} <strong>${p.join(", ")}</strong></span>`:d} ${x.length?a`<span class="compat-wrap">${this.t("Best with")}<ul class="compat roxy-chips">${x.map(v=>a`<li>${v}</li>`)}</ul></span>`:d}</div>`})()}</article>`}renderReading(t){if(this.hideReadings)return d;if(this.layout==="column"||this.layout==="auto"&&!!t.column)return t.column?this.renderColumn(t.column):d;let n=this.paragraphs(t.overview);return a`${n.length?a`<div class="overview" part="section overview">${n}</div>`:d}<div class="sections" part="section outlook">${cr.map(([s,i])=>{let l=this.paragraphs(t[s]);return l.length?a`<div class="section"><h3>${this.t(i)}</h3>${l}</div>`:d})}</div>`}renderColumn(t){let r=this.paragraphs(t);return r.length===0?d:a`<div class="column" part="section column">${r}</div>`}paragraphs(t){return(t??"").split(/\n\s*\n/).map(r=>r.trim()).filter(Boolean).map(r=>a`<p>${r}</p>`)}renderEvents(t){if(!t?.length)return d;let r=this.effectiveLang();return a`<section part="section events"><h3>${this.t("Events")}</h3><ul class="rows" aria-label="${this.t("Events")}">${t.map(n=>this.renderRow(a`<time class="row-when" datetime="${n.at}">${Q(r,n.at,"time")}</time>`,this.renderEventBodies(n),a`<span class="kind">${this.t(lr[n.type])}</span> <span>${this.t("House")} ${n.house}</span> ${n.sign?a`<span>${this.glyphName(j(n.sign),ve(n.sign))}</span>`:d} ${n.through?a`<span>${this.t("through {{date}}",{date:S(r,n.through)})}</span>`:d}`,{when:"element"}))}</ul></section>`}renderEventBodies(t){let r=(t.bodies??[]).map(n=>this.glyphName(z(n),n));return r.length===2&&t.aspect?a`${r[0]} <span class="${Xe({type:t.aspect})}">${Ye(t.aspect)??t.aspect}</span> ${r[1]}`:a`${r}`}renderYear(t){if(!("themes"in t))return d;let r=this.effectiveLang();return a`${t.themes.length?a`<section part="section themes"><h3>${this.t("Themes")}</h3><ul class="rows">${t.themes.map(n=>this.renderRow(ke(r,n.from,n.to),a`${this.glyphName(z(n.body),n.body)} ${this.glyphName(j(n.sign),ve(n.sign))}`,a`<span>${this.t("House")} ${n.house}</span><span>${n.theme}</span>`))}</ul></section>`:d} ${t.keyPeriods.length?a`<section part="section key-periods"><h3>${this.t("Key periods")}</h3><ul class="rows">${t.keyPeriods.map(n=>this.renderRow(ke(r,n.from,n.to),this.glyphName(z(n.body),n.body),a`<span>${this.t("House")} ${n.house}</span><span>${n.focus}</span>`))}</ul></section>`:d} ${t.eclipses.length?a`<section part="section eclipses"><h3>${this.t("Eclipses")}</h3><ul class="rows">${t.eclipses.map(n=>this.renderRow(S(r,n.date),a`<span class="name">${n.kind}</span>`,a`<span>${this.t("House")} ${n.house}</span><span>${n.theme}</span>`))}</ul></section>`:d} ${t.retrogrades.length?a`<section part="section retrogrades"><h3>${this.t("Retrogrades")}</h3><ul class="rows">${t.retrogrades.map(n=>this.renderRow(S(r,n.date),a`${this.glyphName(z(n.body),n.body)} <span>${n.direction}</span>`,a`<span>${this.t("House")} ${n.house}</span><span>${n.theme}</span>`))}</ul></section>`:d} ${this.renderBestPeriods(t.bestPeriods)}`}renderBestPeriods(t){if(!t)return d;let r=this.effectiveLang(),n=pr.filter(([s])=>t[s]);return n.length===0?d:a`<section part="section best-periods"><h3>${this.t("Best months")}</h3><div class="tiles" part="details">${n.map(([s,i])=>{let l=t[s];return l?a`<div class="tile"><span class="roxy-label">${this.t(i)}</span> <span class="tile-value">${Q(r,l.from,"month")}</span> <span class="tile-note">${this.t("{{count}} harmonious aspects",{count:l.count})}</span></div>`:d})}</div></section>`}renderRow(t,r,n,s){return a`<li class="row" part="label-track">${s?.when==="element"?t:a`<span class="row-when">${t}</span>`} <span class="row-what">${r}</span> <span class="row-meta">${n}</span></li>`}glyphName(t,r){return a`<span aria-hidden="true">${t??""}</span> <span class="name">${r}</span>`}renderSky(t){let r="moonSign"in t?t.moonSign:"",n="moonPhase"in t?t.moonPhase:"",s=("activeTransits"in t?t.activeTransits:[])??[];if(!r&&!n&&s.length===0)return d;let i=j(r)??"";return a`<div class="sky" part="section sky">${r||n?a`<div class="moon-line">${r?a`<span><span class="roxy-label">${this.t("Moon")}</span> <span aria-hidden="true">${i}</span> <b>${r}</b></span>`:d} ${n?a`<span><span class="roxy-label">${this.t("Phase")}</span> <b>${n}</b></span>`:d}</div>`:d} ${s.length?a`<ul class="transits" aria-label="${this.t("Active transits")}">${s.map(l=>a`<li>${l}</li>`)}</ul>`:d}</div>`}renderMonth(t){let r=("weekByWeek"in t?t.weekByWeek:[])??[],n=("keyDates"in t?t.keyDates:[])??[];return r.length===0&&n.length===0?d:a`${r.length&&!this.hideReadings?a`<section part="section week-by-week"><h3>${this.t("Week by week")}</h3><div class="weeks">${r.map(s=>a`<div class="week"><span class="roxy-label">${this.t("Week {{n}}",{n:s.week})}</span><div><div class="week-focus">${s.focus}</div>${s.advice?a`<p class="week-advice">${s.advice}</p>`:d}</div></div>`)}</div></section>`:d} ${n.length?a`<section part="section key-dates"><h3>${this.t("Key dates")}</h3><dl class="dates" part="label-track">${n.map(s=>a`<div class="date-row"><dt>${S(this.effectiveLang(),s.date)||s.date}</dt><dd>${s.event}</dd></div>`)}</dl></section>`:d}`}};k.endpoints=Be,k.styles=[oe,$e,bt,f`.card{gap:var(--roxy-space-lg);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}section>h3{margin-block-end:var(--roxy-space-sm)}.head{align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.glyph{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 1.5);line-height:1}.title{text-transform:capitalize;white-space:nowrap}.energy{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;margin-inline-start:auto}.energy-bar{inline-size:10ch;block-size:var(--roxy-space-sm);background:var(--roxy-border);border-radius:var(--roxy-radius-full);vertical-align:middle;margin-inline-start:var(--roxy-space-xs);display:inline-block;overflow:hidden}.energy-bar>span{background:var(--roxy-accent);height:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.column p,.overview p,.section p{line-height:1.7}.overview,.column,.section{align-content:start;gap:var(--roxy-space-sm);display:grid}.column{gap:var(--roxy-space-md)}.sections{gap:var(--roxy-space-lg) var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,48ch),1fr));display:grid}.section p{font-size:var(--roxy-text-sm)}.sky,.lucky{border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);padding-block-start:var(--roxy-space-md)}.sky{gap:var(--roxy-space-sm);display:grid}.lucky{gap:var(--roxy-space-sm) var(--roxy-space-md);color:var(--roxy-secondary);flex-wrap:wrap;display:flex}.lucky strong{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.compat-wrap{align-items:center;gap:var(--roxy-space-xs);flex-wrap:wrap;width:100%;display:flex}.compat>li{text-transform:capitalize}.moon-line{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.moon-line b{font-weight:var(--roxy-weight-bold)}.moon-line .roxy-label{margin-inline-end:var(--roxy-space-xs)}.transits{gap:var(--roxy-space-xs);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}.transits li::marker{color:var(--roxy-accent)}.weeks{gap:var(--roxy-space-sm);display:grid}.week{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);align-items:baseline;gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm);display:grid}.week:first-child{border-block-start:0;padding-block-start:0}.week-focus{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.week-advice{font-size:var(--roxy-text-sm);margin-block-start:calc(var(--roxy-space-unit) / 2)}.dates{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);margin:0;display:grid}.date-row{display:contents}.date-row dt{color:var(--roxy-accent-ink);font-size:inherit;font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.date-row dd{margin:0}.rows{margin:0;padding:0;list-style:none;display:grid}.row{align-items:baseline;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border)}.row:first-child{border-block-start:0;padding-block-start:0}.row-when{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.row-what{font-size:var(--roxy-text-sm)}.row-what .name,.row-meta .kind{font-weight:var(--roxy-weight-bold)}.row-meta{gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;grid-column:2;display:flex}@container (width<=30rem){.row-meta{grid-column:1}}.tiles{gap:var(--roxy-space-sm) var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,16ch),1fr));display:grid}.tile{gap:calc(var(--roxy-space-unit) / 2);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm);display:grid}.tile-value{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.tile-note{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}`],h([g({type:String,reflect:!0})],k.prototype,"period",2),h([g({type:String,reflect:!0})],k.prototype,"layout",2),k=h([xt("roxy-horoscope-card")],k);return $t(hr);})();
|
|
1
|
+
var RoxyUI_horoscope_card=(()=>{var K=Object.defineProperty;var _t=Object.getOwnPropertyDescriptor;var ve=Object.getOwnPropertyNames;var we=Object.prototype.hasOwnProperty;var Se=(o,t)=>{for(var e in t)K(o,e,{get:t[e],enumerable:!0})},$e=(o,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ve(t))!we.call(o,n)&&n!==e&&K(o,n,{get:()=>t[n],enumerable:!(r=_t(t,n))||r.enumerable});return o};var ke=o=>$e(K({},"__esModule",{value:!0}),o),h=(o,t,e,r)=>{for(var n=r>1?void 0:r?_t(t,e):t,s=o.length-1,i;s>=0;s--)(i=o[s])&&(n=(r?i(t,e,n):i(n))||n);return r&&n&&K(t,e,n),n};var hr={};Se(hr,{ROXY_UI_TOKENS_STYLE_ID:()=>tt,RoxyHoroscopeCard:()=>$,injectRoxyTokens:()=>et});var B=globalThis,Y=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,dt=Symbol(),Rt=new WeakMap,F=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==dt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Y&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Rt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Rt.set(e,t))}return t}toString(){return this.cssText}},Pt=o=>new F(typeof o=="string"?o:o+"",void 0,dt),f=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,n,s)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[s+1],o[0]);return new F(e,o,dt)},Ct=(o,t)=>{if(Y)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),n=B.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,o.appendChild(r)}},ct=Y?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Pt(e)})(o):o;var{is:Ee,defineProperty:Te,getOwnPropertyDescriptor:Ae,getOwnPropertyNames:_e,getOwnPropertySymbols:Re,getPrototypeOf:Pe}=Object,W=globalThis,Ot=W.trustedTypes,Ce=Ot?Ot.emptyScript:"",Oe=W.reactiveElementPolyfillSupport,N=(o,t)=>o,U={toAttribute(o,t){switch(t){case Boolean:o=o?Ce:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},V=(o,t)=>!Ee(o,t),Lt={attribute:!0,type:String,converter:U,reflect:!1,useDefault:!1,hasChanged:V};Symbol.metadata??=Symbol("metadata"),W.litPropertyMetadata??=new WeakMap;var w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Lt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(t,r,e);n!==void 0&&Te(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){let{get:n,set:s}=Ae(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let c=n?.call(this);s?.call(this,i),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Lt}static _$Ei(){if(this.hasOwnProperty(N("elementProperties")))return;let t=Pe(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(N("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(N("properties"))){let e=this.properties,r=[..._e(e),...Re(e)];for(let n of r)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let n of r)e.unshift(ct(n))}else t!==void 0&&e.push(ct(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ct(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){let r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(n!==void 0&&r.reflect===!0){let s=(r.converter?.toAttribute!==void 0?r.converter:U).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(t,e){let r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let s=r.getPropertyOptions(n),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:U;this._$Em=n;let c=i.fromAttribute(e,s.type);this[n]=c??this._$Ej?.get(n)??c,this._$Em=null}}requestUpdate(t,e,r,n=!1,s){if(t!==void 0){let i=this.constructor;if(n===!1&&(s=this[t]),r??=i.getPropertyOptions(t),!((r.hasChanged??V)(s,e)||r.useDefault&&r.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:n,wrapped:s},i){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),s!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,s]of r){let{wrapped:i}=s,c=this[n];i!==!0||this._$AL.has(n)||c===void 0||this.C(n,void 0,s,c)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[N("elementProperties")]=new Map,w[N("finalized")]=new Map,Oe?.({ReactiveElement:w}),(W.reactiveElementVersions??=[]).push("2.1.2");var gt=globalThis,Ft=o=>o,Z=gt.trustedTypes,Nt=Z?Z.createPolicy("lit-html",{createHTML:o=>o}):void 0,It="$lit$",k=`lit$${Math.random().toFixed(9).slice(2)}$`,zt="?"+k,Le=`<${zt}>`,_=document,G=()=>_.createComment(""),M=o=>o===null||typeof o!="object"&&typeof o!="function",ft=Array.isArray,Fe=o=>ft(o)||typeof o?.[Symbol.iterator]=="function",lt=`[
|
|
2
|
+
\f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ut=/-->/g,Dt=/>/g,T=RegExp(`>|${lt}(?:([^\\s"'>=/]+)(${lt}*=${lt}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Mt=/"/g,jt=/^(?:script|style|textarea|title)$/i,xt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),a=xt(1),xr=xt(2),br=xt(3),R=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Ht=new WeakMap,A=_.createTreeWalker(_,129);function qt(o,t){if(!ft(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nt!==void 0?Nt.createHTML(t):t}var Ne=(o,t)=>{let e=o.length-1,r=[],n,s=t===2?"<svg>":t===3?"<math>":"",i=D;for(let c=0;c<e;c++){let l=o[c],y,m,p=-1,x=0;for(;x<l.length&&(i.lastIndex=x,m=i.exec(l),m!==null);)x=i.lastIndex,i===D?m[1]==="!--"?i=Ut:m[1]!==void 0?i=Dt:m[2]!==void 0?(jt.test(m[2])&&(n=RegExp("</"+m[2],"g")),i=T):m[3]!==void 0&&(i=T):i===T?m[0]===">"?(i=n??D,p=-1):m[1]===void 0?p=-2:(p=i.lastIndex-m[2].length,y=m[1],i=m[3]===void 0?T:m[3]==='"'?Mt:Gt):i===Mt||i===Gt?i=T:i===Ut||i===Dt?i=D:(i=T,n=void 0);let v=i===T&&o[c+1].startsWith("/>")?" ":"";s+=i===D?l+Le:p>=0?(r.push(y),l.slice(0,p)+It+l.slice(p)+k+v):l+k+(p===-2?c:v)}return[qt(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},H=class o{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,i=0,c=t.length-1,l=this.parts,[y,m]=Ne(t,e);if(this.el=o.createElement(y,r),A.currentNode=this.el.content,e===2||e===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=A.nextNode())!==null&&l.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(It)){let x=m[i++],v=n.getAttribute(p).split(k),q=/([.?@])?(.*)/.exec(x);l.push({type:1,index:s,name:q[2],strings:v,ctor:q[1]==="."?ht:q[1]==="?"?ut:q[1]==="@"?mt:O}),n.removeAttribute(p)}else p.startsWith(k)&&(l.push({type:6,index:s}),n.removeAttribute(p));if(jt.test(n.tagName)){let p=n.textContent.split(k),x=p.length-1;if(x>0){n.textContent=Z?Z.emptyScript:"";for(let v=0;v<x;v++)n.append(p[v],G()),A.nextNode(),l.push({type:2,index:++s});n.append(p[x],G())}}}else if(n.nodeType===8)if(n.data===zt)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(k,p+1))!==-1;)l.push({type:7,index:s}),p+=k.length-1}s++}}static createElement(t,e){let r=_.createElement("template");return r.innerHTML=t,r}};function C(o,t,e=o,r){if(t===R)return t;let n=r!==void 0?e._$Co?.[r]:e._$Cl,s=M(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(o),n._$AT(o,e,r)),r!==void 0?(e._$Co??=[])[r]=n:e._$Cl=n),n!==void 0&&(t=C(o,n._$AS(o,t.values),n,r)),t}var pt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,n=(t?.creationScope??_).importNode(e,!0);A.currentNode=n;let s=A.nextNode(),i=0,c=0,l=r[0];for(;l!==void 0;){if(i===l.index){let y;l.type===2?y=new I(s,s.nextSibling,this,t):l.type===1?y=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(y=new yt(s,this,t)),this._$AV.push(y),l=r[++c]}i!==l?.index&&(s=A.nextNode(),i++)}return A.currentNode=_,n}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},I=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=C(this,t,e),M(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==R&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Fe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(_.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,n=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=H.createElement(qt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{let s=new pt(n,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=Ht.get(t.strings);return e===void 0&&Ht.set(t.strings,e=new H(t)),e}k(t){ft(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,n=0;for(let s of t)n===e.length?e.push(r=new o(this.O(G()),this.O(G()),this,this.options)):r=e[n],r._$AI(s),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=Ft(t).nextSibling;Ft(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},O=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(t,e=this,r,n){let s=this.strings,i=!1;if(s===void 0)t=C(this,t,e,0),i=!M(t)||t!==this._$AH&&t!==R,i&&(this._$AH=t);else{let c=t,l,y;for(t=s[0],l=0;l<s.length-1;l++)y=C(this,c[r+l],e,l),y===R&&(y=this._$AH[l]),i||=!M(y)||y!==this._$AH[l],y===d?t=d:t!==d&&(t+=(y??"")+s[l+1]),this._$AH[l]=y}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ht=class extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},ut=class extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},mt=class extends O{constructor(t,e,r,n,s){super(t,e,r,n,s),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??d)===R)return;let r=this._$AH,n=t===d&&r!==d||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==d&&(r===d||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},yt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){C(this,t)}};var Ue=gt.litHtmlPolyfillSupport;Ue?.(H,I),(gt.litHtmlVersions??=[]).push("3.3.3");var Kt=(o,t,e)=>{let r=e?.renderBefore??t,n=r._$litPart$;if(n===void 0){let s=e?.renderBefore??null;r._$litPart$=n=new I(t.insertBefore(G(),s),s,void 0,e??{})}return n._$AI(o),n};var bt=globalThis,E=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Kt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return R}};E._$litElement$=!0,E.finalized=!0,bt.litElementHydrateSupport?.({LitElement:E});var De=bt.litElementPolyfillSupport;De?.({LitElement:E});(bt.litElementVersions??=[]).push("4.2.2");var Ge={attribute:!0,type:String,converter:U,reflect:!1,hasChanged:V},Me=(o=Ge,t,e)=>{let{kind:r,metadata:n}=e,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),s.set(e.name,o),r==="accessor"){let{name:i}=e;return{set(c){let l=t.get.call(this);t.set.call(this,c),this.requestUpdate(i,l,o,!0,c)},init(c){return c!==void 0&&this.C(i,void 0,o,c),c}}}if(r==="setter"){let{name:i}=e;return function(c){let l=this[i];t.call(this,c),this.requestUpdate(i,l,o,!0,c)}}throw Error("Unsupported decorator location: "+r)};function g(o){return(t,e)=>typeof e=="object"?Me(o,t,e):((r,n,s)=>{let i=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(n,s):void 0})(o,t,e)}function b(o){return g({...o,state:!0,attribute:!1})}var Bt=[{endpoint:"astrology/horoscope/{sign}/daily",method:"GET",attrs:{period:"daily"}},{endpoint:"astrology/horoscope/{sign}/weekly",method:"GET",attrs:{period:"weekly"}},{endpoint:"astrology/horoscope/{sign}/monthly",method:"GET",attrs:{period:"monthly"}},{endpoint:"astrology/horoscope/{sign}/yearly",method:"GET",attrs:{period:"yearly"}}];function X(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}function vt(o){return o?o.charAt(0).toUpperCase()+o.slice(1).toLowerCase():""}var wt=(o,t)=>t?o[X(t)]:void 0,He={sun:"☉",moon:"☽",mercury:"☿",venus:"♀",earth:"♁",mars:"♂",jupiter:"♃",saturn:"♄",uranus:"♅",neptune:"♆",pluto:"♇",rahu:"☊",ketu:"☋",ascendant:"Asc",midheaven:"MC","part of fortune":"⊗",vertex:"Vx",lagna:"La","north node":"☊","south node":"☋",chiron:"⚷",lilith:"⚸","black moon lilith":"⚸"},z=o=>wt(He,o);var Ie={aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpio:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓"},j=o=>wt(Ie,o);var ze={conjunction:"☌",semisextile:"⚺","semi sextile":"⚺",semisquare:"∠","semi square":"∠",sextile:"⚹",square:"□",trine:"△",sesquiquadrate:"⚼",quincunx:"⚻",opposition:"☍"},Yt=o=>wt(ze,o);var je=/^\d{4}-\d{2}-\d{2}$/,qe=/^\d{4}-\d{2}$/,Ke=/^\d{2}:\d{2}(:\d{2})?$/,Be=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,Wt=new Map;function St(o){if(!o)return["en"];let t=Wt.get(o);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(o)[0]??"en"}catch{e="en"}return Wt.set(o,e),[e,"en"]}var Vt=new Map;function Ye(o){let t=o??"",e=Vt.get(t);if(e)return e;let n={hour:new Intl.DateTimeFormat(St(o),{timeStyle:"short",timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2e3,0,1,1))).find(s=>s.type==="hour")?.value?.length===2?"2-digit":"numeric",minute:"2-digit"};return Vt.set(t,n),n}function We(o,t){return o&&t?`${o} - ${t}`:o||t}function Zt(o){let t=Ke.test(o)?`1970-01-01T${o}`:je.test(o)?`${o}T00:00:00`:qe.test(o)?`${o}-01T00:00:00`:Be.test(o)?o.replace(" ","T"):null;return t?{d:new Date(`${t}Z`),timeZone:"UTC"}:{d:new Date(o)}}function S(o,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:r}=Zt(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(St(o),{month:"short",day:"numeric",year:"numeric",timeZone:r})}function $t(o,t,e){return We(S(o,t),S(o,e))}function Q(o,t,e){if(typeof t!="string"||t.length===0)return"";if(e==="year")return t.match(/^(\d{4})/)?.[1]??t;let{d:r,timeZone:n}=Zt(t);return Number.isNaN(r.getTime())?t:r.toLocaleString(St(o),{day:e==="month"?void 0:"numeric",month:"short",year:"numeric",...e==="time"?Ye(o):{},timeZone:n})}function Jt(o){return(o.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}var kt=f`.aspect-trine,.aspect-sextile{--_aspect:var(--roxy-info);--_aspect-ink:var(--roxy-info-fg)}.aspect-square,.aspect-opposition{--_aspect:var(--roxy-danger);--_aspect-ink:var(--roxy-danger-fg)}.aspect-quincunx,.aspect-semi-sextile{--_aspect:var(--roxy-success);--_aspect-ink:var(--roxy-success-fg)}.aspect-conjunction{--_aspect:var(--roxy-accent-ink);--_aspect-ink:var(--roxy-accent-ink)}:is(.aspect-trine,.aspect-sextile,.aspect-square,.aspect-opposition,.aspect-quincunx,.aspect-semi-sextile,.aspect-conjunction){color:var(--_aspect-ink);stroke-opacity:1}.aspect-swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);background:var(--_aspect);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}`,un=[f`.aspect{stroke:var(--_aspect,var(--roxy-muted));stroke-width:.8px;fill:none;opacity:.55;stroke-opacity:.7}`,kt];function Xt(o){return`aspect-${Jt(o)}`}var P=o=>o??d;var Qt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Tt(o){if(o.lang)return o.lang;if(typeof document>"u")return;let t=o.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var Ve={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Et(o){let t=o.toLowerCase();return Qt.find(e=>e.toLowerCase()===t)}function te(o){let t=Tt(o);if(!t)return;let e=Et(t);if(e)return e;let r=t.toLowerCase().split("-"),n=r[0];if(n==="zh"){let s=r.find(i=>i==="hans"||i==="hant")??Ve[r[1]??""];return s?Et(`zh-${s}`):void 0}return Et(n)}var ee='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black)}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var tt="roxy-ui-tokens";function et(){if(typeof document>"u")return null;let o=document.getElementById(tt);if(o)return o;let t=document.createElement("style");return t.id=tt,t.textContent=ee,document.head.prepend(t),t}var re="__ROXY_UI_I18N__";function ne(){let o=globalThis,t=o[re];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[re]=e,e}function Ze(o,t){return t?o.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):o}function oe(o,t,e){return Ze(Je(o,t)??t,e)}function Je(o,t){if(!o)return;let{catalogs:e}=ne(),r=o.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[X(t)]}function se(o){let{listeners:t}=ne();return t.add(o),()=>{t.delete(o)}}var rt=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=se(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var nt=class extends E{constructor(){super();this.translator=(e,r)=>this.t(e,r);new rt(this)}connectedCallback(){super.connectedCallback(),et()}t(e,r){return oe(this.effectiveLang(),e,r)}effectiveLang(){return Tt(this)}};var ie=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var Xe=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,ot=[Xe,ie];var Qe="__cols",tr="__rows";function er(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function st(o){if(Array.isArray(o)){let s=!1,i=o.map(c=>{let l=st(c);return l!==c&&(s=!0),l});return s?i:o}if(!er(o))return o;let t=o[Qe],e=o[tr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(o).length===2)return e.map(s=>{let i={};return t.forEach((c,l)=>{i[c]=st(s[l])}),i});let r=!1,n={};for(let[s,i]of Object.entries(o)){let c=st(i);c!==i&&(r=!0),n[s]=c}return r?n:o}function ae(o){return st(o)}function de(o,t){return o.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,n])=>t[r]===n))??o[0]}var rr="pk_live_YOUR_KEY",ce={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function le(o){if(o)return o===rr?ce.sample:o.startsWith("pk_")?void 0:ce.secret}function pe(o,t,e={}){e.warn&&console.warn(t.message),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:!0,composed:!0}))}var he="https://roxyapi.com/api/v2";async function nr(o){try{let t=await o.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:!0}}}catch{}return{message:`Request failed (${o.status})`,issues:null,worded:!1}}var ue={fromAttribute:o=>{if(o!=null){try{let t=JSON.parse(o);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},L=class extends Error{constructor(e,r=null,n=!0){super(e);this.issues=r;this.worded=n}};function me(o){return o.submitUrl?void 0:le(o.publishableKey)}async function At(o,t,e){let r=me(o);if(r)throw new L(r.message);let n=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:or(t,o.submitContext),signal:e}):await sr(o,t,e);if(!n.ok){let s=await nr(n);throw new L(s.message,s.issues,s.worded)}return await n.json()}function or(o,t){return JSON.stringify(t?{...o,context:t}:o)}function sr(o,t,e){let r=new URL(`${o.baseUrl??he}${t.path}`,document.baseURI);for(let[s,i]of Object.entries(t.query??{}))i!=null&&r.searchParams.set(s,String(i));let n={Accept:"application/json"};return o.publishableKey&&(n["X-API-Key"]=o.publishableKey),t.body!=null&&(n["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:n,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var it=class{constructor(t){this.baseUrl=he;this.worded=!0;this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=!0;let e=me(this);if(e){this.host.error=e.message,pe(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=!0,this.host.error=null,this.host.issues=null;try{let n=await At(this,t,r.signal);if(r.signal.aborted)return;this.host.data=n}catch(n){if(r.signal.aborted||n?.name==="AbortError")return;n instanceof L&&(this.host.issues=n.issues),this.worded=n instanceof L&&n.worded,this.host.error=n instanceof Error?n.message:String(n)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=!1)}}};function ye(o,t,e,r=[]){let n={...e},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(y,m)=>{let p=n[m];return delete n[m],encodeURIComponent(String(p??""))}),i=new Set(r),c={},l={};for(let[y,m]of Object.entries(n))m===void 0||m===""||(t==="GET"||i.has(y)?c[y]=m:l[y]=m);return{path:s,method:t,query:c,body:t==="POST"?l:void 0}}function ge(){return a`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var Bn=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Zn=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function fe(o,t,e){let r=o.filter(n=>!!n.body);return r.length===0?d:a`<section class="block" part="section readings"><h3>${e}</h3>${r.map((n,s)=>a`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${n.label}</span> ${ge()} ${n.aside?a`<span class="interp-aside"><small>${n.aside}</small></span>`:d}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??d}</div></details>`)}</section>`}var ir="roxy-data";function ar(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var at=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){if(this.host.data!=null)return;let t=this.read();t!==void 0&&(this.host.data=t,this.host.requestUpdate())}read(){let t=this.findInlineScript();return t?this.parse(t.textContent):void 0}findInlineScript(){for(let t of Array.from(this.host.children))if(ar(t)&&t.classList.contains(ir))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var u=class extends nt{constructor(){super();this.data=null;this.endpoint="";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.issues=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.hostLoaded=!1;this.moreLoading=!1;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,n=this.listRows();if(!(!e||!r||!n)){this.moreLoading=!0,this.moreError=null;try{let s=await At(this.fetcher,{...e,query:{...e.query,offset:n.length}});if(this.lastRequest!==e)return;let i=s[r];this.data={...this.data,...s,[r]:[...n,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===e&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=!1}}};this.onEdit=()=>{this.editing=!0};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let n=e.detail;this.lastValues=n.values,this.sticky=!!n.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(n.values),this.fetchFresh(ye(r.endpoint,r.method,n.values,n.queryKeys??[]))};new at(this),this.fetcher=new it(this)}static{this.styles=[ot]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=ae(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:de(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return a`${this.hiddenSectionsStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:!0,composed:!0})),customElements.get("roxy-data")?a`<roxy-data .data="${e}" lang="${P(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hiddenSectionsStyle(){let e=this.hideSections.split(",").map(n=>n.trim().toLowerCase()).filter(n=>/^[a-z][a-z0-9-]*$/.test(n));if(e.length===0)return d;let r=e.map(n=>`[part~="${n}"],roxy-endpoint-form::part(${n}){display:none!important}`).join("");return a`<style>${r}</style>`}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?a`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,n){return this.hideReadings?d:fe(e,r,this.t(n??"Reading"))}renderResult(e){let r=a`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?a`${r}${this.renderAttribution()}`:r}renderWithForm(e){return a`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?d:this.renderErrorBanner(this.error):this.data==null?d:this.showAttribution()?a`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?d:e.length>=r?d:a`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?a`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:d}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=!0,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:!0,composed:!0})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let n=this.effectiveLang();n&&r.setAttribute("lang",n),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:te(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return a`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(d):this.renderEmpty()}renderForm(){let e=this.selfFetch();return a`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${P(this.specUrl)}" publishable-key="${P(this.publishableKey)}" location-url="${P(this.locationUrl)}" submit-label="${P(this.submitLabel)}" lang="${P(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return a`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return a`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let n=this.renderErrorBanner(e);return r?a`${n}${this.renderForm()}`:n}renderErrorBanner(e){return a`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};h([g({attribute:!1})],u.prototype,"data",2),h([g({type:String,attribute:"data-endpoint"})],u.prototype,"endpoint",2),h([g({type:String})],u.prototype,"method",2),h([g({type:String,attribute:"publishable-key"})],u.prototype,"publishableKey",2),h([g({type:String,attribute:"base-url"})],u.prototype,"baseUrl",2),h([g({type:String,attribute:"spec-url"})],u.prototype,"specUrl",2),h([g({type:String,attribute:"submit-url"})],u.prototype,"submitUrl",2),h([g({attribute:"submit-context",converter:ue})],u.prototype,"submitContext",2),h([g({type:String,attribute:"location-url"})],u.prototype,"locationUrl",2),h([g({type:Boolean})],u.prototype,"remember",2),h([g({type:Boolean,attribute:"hide-readings",reflect:!0})],u.prototype,"hideReadings",2),h([g({type:String,attribute:"hide-sections",reflect:!0})],u.prototype,"hideSections",2),h([g({type:String,attribute:"submit-label"})],u.prototype,"submitLabel",2),h([g({type:String,attribute:"error-message"})],u.prototype,"errorMessage",2),h([g({type:String})],u.prototype,"attribution",2),h([b()],u.prototype,"loading",2),h([b()],u.prototype,"error",2),h([b()],u.prototype,"issues",2),h([b()],u.prototype,"selfFetched",2),h([b()],u.prototype,"editing",2),h([b()],u.prototype,"sticky",2),h([b()],u.prototype,"openedRow",2),h([b()],u.prototype,"openedRowId",2),h([b()],u.prototype,"moreLoading",2),h([b()],u.prototype,"moreError",2);var xe=o=>t=>{customElements.get(o)||customElements.define(o,t)};var be=f`.row{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);display:grid}@container (width<=30rem){.row{grid-template-columns:minmax(0,1fr)}}`;var dr={daily:"Daily",weekly:"Weekly",monthly:"Monthly",yearly:"Yearly"},cr={aspect:"Aspect","sign-ingress":"Sign ingress","retrograde-station":"Retrograde station","lunar-phase":"Lunar phase",eclipse:"Eclipse","solar-season":"Solar season"},lr=[["love","Love"],["career","Career"],["health","Health"],["finance","Finance"],["advice","Advice"]],pr=[["love","Love"],["career","Career"],["health","Health"],["finance","Finance"]],$=class extends u{constructor(){super(...arguments);this.period="daily";this.layout="auto"}renderData(e){let r=e.sign??"",n=j(r)??"",s="energyRating"in e&&typeof e.energyRating=="number"?e.energyRating:null,i=this.effectiveLang(),c="date"in e&&e.date&&S(i,e.date)||"week"in e&&e.week&&S(i,e.week)||"month"in e&&e.month&&Q(i,e.month,"month")||("year"in e&&e.year?String(e.year):"")||"";return a`<article class="card" part="card" aria-labelledby="horoscope-title"><header class="head" part="header"><span class="glyph" aria-hidden="true">${n}</span><div><h2 class="title" id="horoscope-title">${r} ${this.t(dr[this.period])}</h2>${c?a`<p class="date roxy-label">${c}</p>`:d}</div>${s!==null?a`<span class="energy" part="details" aria-label="${this.t("Energy {{value}} of 10",{value:s})}">${this.t("Energy {{value}}/10",{value:s})} <span class="energy-bar"><span style="width:${s/10*100}%"></span></span></span>`:d}</header>${this.renderReading(e)} ${this.renderSky(e)} ${this.renderEvents(e.events)} ${this.renderYear(e)} ${this.renderMonth(e)} ${(()=>{let l="luckyNumber"in e&&e.luckyNumber!==void 0?e.luckyNumber:void 0,y="luckyColor"in e&&e.luckyColor?e.luckyColor:"",m="luckyNumbers"in e&&e.luckyNumbers?e.luckyNumbers:[],p="luckyDays"in e&&e.luckyDays?e.luckyDays:[],x=e.compatibleSigns??[];return l===void 0&&!y&&m.length===0&&p.length===0&&x.length===0?d:a`<div class="lucky" part="details">${l!==void 0?a`<span>${this.t("Lucky number")} <strong>${l}</strong></span>`:d} ${y?a`<span>${this.t("Lucky color")} <strong>${y}</strong></span>`:d} ${m.length?a`<span>${this.t("Lucky numbers")} <strong>${m.join(", ")}</strong></span>`:d} ${p.length?a`<span>${this.t("Lucky days")} <strong>${p.join(", ")}</strong></span>`:d} ${x.length?a`<span class="compat-wrap">${this.t("Best with")}<ul class="compat roxy-chips">${x.map(v=>a`<li>${v}</li>`)}</ul></span>`:d}</div>`})()}</article>`}renderReading(e){if(this.hideReadings)return d;if(this.layout==="column"||this.layout==="auto"&&!!e.column)return e.column?this.renderColumn(e.column):d;let n=this.paragraphs(e.overview);return a`${n.length?a`<div class="overview" part="section overview">${n}</div>`:d}<div class="sections" part="section outlook">${lr.map(([s,i])=>{let c=this.paragraphs(e[s]);return c.length?a`<div class="section"><h3>${this.t(i)}</h3>${c}</div>`:d})}</div>`}renderColumn(e){let r=this.paragraphs(e);return r.length===0?d:a`<div class="column" part="section column">${r}</div>`}paragraphs(e){return(e??"").split(/\n\s*\n/).map(r=>r.trim()).filter(Boolean).map(r=>a`<p>${r}</p>`)}renderEvents(e){if(!e?.length)return d;let r=this.effectiveLang();return a`<section part="section events"><h3>${this.t("Events")}</h3><ul class="rows" aria-label="${this.t("Events")}">${e.map(n=>this.renderRow(a`<time class="row-when" datetime="${n.at}">${Q(r,n.at,"time")}</time>`,this.renderEventBodies(n),a`<span class="kind">${this.t(cr[n.type])}</span> <span>${this.t("House")} ${n.house}</span> ${n.sign?a`<span>${this.glyphName(j(n.sign),vt(n.sign))}</span>`:d} ${n.through?a`<span>${this.t("through {{date}}",{date:S(r,n.through)})}</span>`:d}`,{when:"element"}))}</ul></section>`}renderEventBodies(e){let r=(e.bodies??[]).map(n=>this.glyphName(z(n),n));return r.length===2&&e.aspect?a`${r[0]} <span class="${Xt({type:e.aspect})}">${Yt(e.aspect)??e.aspect}</span> ${r[1]}`:a`${r}`}renderYear(e){if(!("themes"in e))return d;let r=this.effectiveLang();return a`${e.themes.length?a`<section part="section themes"><h3>${this.t("Themes")}</h3><ul class="rows">${e.themes.map(n=>this.renderRow($t(r,n.from,n.to),a`${this.glyphName(z(n.body),n.body)} ${this.glyphName(j(n.sign),vt(n.sign))}`,a`<span>${this.t("House")} ${n.house}</span><span>${n.theme}</span>`))}</ul></section>`:d} ${e.keyPeriods.length?a`<section part="section key-periods"><h3>${this.t("Key periods")}</h3><ul class="rows">${e.keyPeriods.map(n=>this.renderRow($t(r,n.from,n.to),this.glyphName(z(n.body),n.body),a`<span>${this.t("House")} ${n.house}</span><span>${n.focus}</span>`))}</ul></section>`:d} ${e.eclipses.length?a`<section part="section eclipses"><h3>${this.t("Eclipses")}</h3><ul class="rows">${e.eclipses.map(n=>this.renderRow(S(r,n.date),a`<span class="name">${n.kind}</span>`,a`<span>${this.t("House")} ${n.house}</span><span>${n.theme}</span>`))}</ul></section>`:d} ${e.retrogrades.length?a`<section part="section retrogrades"><h3>${this.t("Retrogrades")}</h3><ul class="rows">${e.retrogrades.map(n=>this.renderRow(S(r,n.date),a`${this.glyphName(z(n.body),n.body)} <span>${n.direction}</span>`,a`<span>${this.t("House")} ${n.house}</span><span>${n.theme}</span>`))}</ul></section>`:d} ${this.renderBestPeriods(e.bestPeriods)}`}renderBestPeriods(e){if(!e)return d;let r=this.effectiveLang(),n=pr.filter(([s])=>e[s]);return n.length===0?d:a`<section part="section best-periods"><h3>${this.t("Best months")}</h3><div class="tiles" part="details">${n.map(([s,i])=>{let c=e[s];return c?a`<div class="tile"><span class="roxy-label">${this.t(i)}</span> <span class="tile-value">${Q(r,c.from,"month")}</span> <span class="tile-note">${this.t("{{count}} harmonious aspects",{count:c.count})}</span></div>`:d})}</div></section>`}renderRow(e,r,n,s){return a`<li class="row" part="label-track">${s?.when==="element"?e:a`<span class="row-when">${e}</span>`} <span class="row-what">${r}</span> <span class="row-meta">${n}</span></li>`}glyphName(e,r){return a`<span aria-hidden="true">${e??""}</span> <span class="name">${r}</span>`}renderSky(e){let r="moonSign"in e?e.moonSign:"",n="moonPhase"in e?e.moonPhase:"",s=("activeTransits"in e?e.activeTransits:[])??[];if(!r&&!n&&s.length===0)return d;let i=j(r)??"";return a`<div class="sky" part="section sky">${r||n?a`<div class="moon-line">${r?a`<span><span class="roxy-label">${this.t("Moon")}</span> <span aria-hidden="true">${i}</span> <b>${r}</b></span>`:d} ${n?a`<span><span class="roxy-label">${this.t("Phase")}</span> <b>${n}</b></span>`:d}</div>`:d} ${s.length?a`<ul class="transits" aria-label="${this.t("Active transits")}">${s.map(c=>a`<li>${c}</li>`)}</ul>`:d}</div>`}renderMonth(e){let r=("weekByWeek"in e?e.weekByWeek:[])??[],n=("keyDates"in e?e.keyDates:[])??[];return r.length===0&&n.length===0?d:a`${r.length&&!this.hideReadings?a`<section part="section week-by-week"><h3>${this.t("Week by week")}</h3><div class="weeks">${r.map(s=>a`<div class="week"><span class="roxy-label">${this.t("Week {{n}}",{n:s.week})}</span><div><div class="week-focus">${s.focus}</div>${s.advice?a`<p class="week-advice">${s.advice}</p>`:d}</div></div>`)}</div></section>`:d} ${n.length?a`<section part="section key-dates"><h3>${this.t("Key dates")}</h3><dl class="dates" part="label-track">${n.map(s=>a`<div class="date-row"><dt>${S(this.effectiveLang(),s.date)||s.date}</dt><dd>${s.event}</dd></div>`)}</dl></section>`:d}`}};$.endpoints=Bt,$.styles=[ot,kt,be,f`.card{gap:var(--roxy-space-lg);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}section>h3{margin-block-end:var(--roxy-space-sm)}.head{align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.glyph{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 1.5);line-height:1}.title{text-transform:capitalize;white-space:nowrap}.energy{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;margin-inline-start:auto}.energy-bar{inline-size:10ch;block-size:var(--roxy-space-sm);background:var(--roxy-border);border-radius:var(--roxy-radius-full);vertical-align:middle;margin-inline-start:var(--roxy-space-xs);display:inline-block;overflow:hidden}.energy-bar>span{background:var(--roxy-accent);height:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.column p,.overview p,.section p{line-height:1.7}.overview,.column,.section{align-content:start;gap:var(--roxy-space-sm);display:grid}.column{gap:var(--roxy-space-md)}.sections{gap:var(--roxy-space-lg) var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,48ch),1fr));display:grid}.section p{font-size:var(--roxy-text-sm)}.sky,.lucky{border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);padding-block-start:var(--roxy-space-md)}.sky{gap:var(--roxy-space-sm);display:grid}.lucky{gap:var(--roxy-space-sm) var(--roxy-space-md);color:var(--roxy-secondary);flex-wrap:wrap;display:flex}.lucky strong{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.compat-wrap{align-items:center;gap:var(--roxy-space-xs);flex-wrap:wrap;width:100%;display:flex}.compat>li{text-transform:capitalize}.moon-line{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.moon-line b{font-weight:var(--roxy-weight-bold)}.moon-line .roxy-label{margin-inline-end:var(--roxy-space-xs)}.transits{gap:var(--roxy-space-xs);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}.transits li::marker{color:var(--roxy-accent)}.weeks{gap:var(--roxy-space-sm);display:grid}.week{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);align-items:baseline;gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm);display:grid}.week:first-child{border-block-start:0;padding-block-start:0}.week-focus{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.week-advice{font-size:var(--roxy-text-sm);margin-block-start:calc(var(--roxy-space-unit) / 2)}.dates{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);margin:0;display:grid}.date-row{display:contents}.date-row dt{color:var(--roxy-accent-ink);font-size:inherit;font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.date-row dd{margin:0}.rows{margin:0;padding:0;list-style:none;display:grid}.row{align-items:baseline;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border)}.row:first-child{border-block-start:0;padding-block-start:0}.row-when{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.row-what{font-size:var(--roxy-text-sm)}.row-what .name,.row-meta .kind{font-weight:var(--roxy-weight-bold)}.row-meta{gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;grid-column:2;display:flex}@container (width<=30rem){.row-meta{grid-column:1}}.tiles{gap:var(--roxy-space-sm) var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,16ch),1fr));display:grid}.tile{gap:calc(var(--roxy-space-unit) / 2);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm);display:grid}.tile-value{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.tile-note{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}`],h([g({type:String,reflect:!0})],$.prototype,"period",2),h([g({type:String,reflect:!0})],$.prototype,"layout",2),$=h([xe("roxy-horoscope-card")],$);return ke(hr);})();
|
|
206
4
|
/*! Bundled license information:
|
|
207
5
|
|
|
208
6
|
@lit/reactive-element/css-tag.js:
|