@roxyapi/ui 0.31.0 → 0.31.1
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/components-catalog.json +129 -129
- package/dist/cdn/components/bodygraph.js +13 -13
- package/dist/cdn/components/bodygraph.js.map +3 -3
- package/dist/cdn/components/endpoint-form.js +1 -1
- package/dist/cdn/components/endpoint-form.js.map +1 -1
- package/dist/cdn/components/hd-connection.js +12 -12
- package/dist/cdn/components/hd-connection.js.map +3 -3
- package/dist/cdn/components/hd-penta.js +6 -6
- package/dist/cdn/components/hd-penta.js.map +3 -3
- package/dist/cdn/roxy-ui.js +56 -56
- package/dist/cdn/roxy-ui.js.map +3 -3
- package/dist/components/bodygraph.js +10 -10
- package/dist/components/bodygraph.js.map +3 -3
- package/dist/components/endpoint-form.js +1 -1
- package/dist/components/endpoint-form.js.map +1 -1
- package/dist/components/hd-connection.js +10 -10
- package/dist/components/hd-connection.js.map +3 -3
- package/dist/components/hd-penta.js +9 -9
- package/dist/components/hd-penta.js.map +3 -3
- package/dist/index.cjs +57 -57
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +57 -57
- package/dist/index.js.map +3 -3
- package/dist/utils/bodygraph-render.d.ts +4 -0
- package/dist/utils/bodygraph-render.d.ts.map +1 -1
- package/dist/utils/bodygraph-styles.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/utils/bodygraph-render.ts +70 -2
- package/src/utils/bodygraph-styles.ts +17 -1
- package/src/version.ts +1 -1
package/dist/cdn/roxy-ui.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";var RoxyUI=(()=>{var Tr=Object.defineProperty;var Os=Object.getOwnPropertyDescriptor;var
|
|
2
|
-
\f\r]`,hr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Us=/'/g,Ys=/"/g,Xs=/^(?:script|style|textarea|title)$/i,Oa=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),s=Oa(1),L=Oa(2),Kd=Oa(3),at=Symbol.for("lit-noChange"),i=Symbol.for("lit-nothing"),Zs=new WeakMap,tt=rt.createTreeWalker(rt,129);function Qs(o,t){if(!Ga(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ks!==void 0?Ks.createHTML(t):t}var ti=(o,t)=>{let e=o.length-1,r=[],a,n=t===2?"<svg>":t===3?"<math>":"",l=hr;for(let d=0;d<e;d++){let c=o[d],p,h,m=-1,f=0;for(;f<c.length&&(l.lastIndex=f,h=l.exec(c),h!==null);)f=l.lastIndex,l===hr?h[1]==="!--"?l=Vs:h[1]!==void 0?l=qs:h[2]!==void 0?(Xs.test(h[2])&&(a=RegExp("</"+h[2],"g")),l=et):h[3]!==void 0&&(l=et):l===et?h[0]===">"?(l=a??hr,m=-1):h[1]===void 0?m=-2:(m=l.lastIndex-h[2].length,p=h[1],l=h[3]===void 0?et:h[3]==='"'?Ys:Us):l===Ys||l===Us?l=et:l===Vs||l===qs?l=hr:(l=et,a=void 0);let C=l===et&&o[d+1].startsWith("/>")?" ":"";n+=l===hr?c+Qo:m>=0?(r.push(p),c.slice(0,m)+Ws+c.slice(m)+Ae+C):c+Ae+(m===-2?d:C)}return[Qs(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},yr=class o{constructor({strings:t,_$litType$:e},r){let a;this.parts=[];let n=0,l=0,d=t.length-1,c=this.parts,[p,h]=ti(t,e);if(this.el=o.createElement(p,r),tt.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(a=tt.nextNode())!==null&&c.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let m of a.getAttributeNames())if(m.endsWith(Ws)){let f=h[l++],C=a.getAttribute(m).split(Ae),w=/([.?@])?(.*)/.exec(f);c.push({type:1,index:n,name:w[2],strings:C,ctor:w[1]==="."?Ea:w[1]==="?"?Ma:w[1]==="@"?za:Xt}),a.removeAttribute(m)}else m.startsWith(Ae)&&(c.push({type:6,index:n}),a.removeAttribute(m));if(Xs.test(a.tagName)){let m=a.textContent.split(Ae),f=m.length-1;if(f>0){a.textContent=Pr?Pr.emptyScript:"";for(let C=0;C<f;C++)a.append(m[C],gr()),tt.nextNode(),c.push({type:2,index:++n});a.append(m[f],gr())}}}else if(a.nodeType===8)if(a.data===Js)c.push({type:2,index:n});else{let m=-1;for(;(m=a.data.indexOf(Ae,m+1))!==-1;)c.push({type:7,index:n}),m+=Ae.length-1}n++}}static createElement(t,e){let r=rt.createElement("template");return r.innerHTML=t,r}};function Jt(o,t,e=o,r){if(t===at)return t;let a=r!==void 0?e._$Co?.[r]:e._$Cl,n=ur(t)?void 0:t._$litDirective$;return a?.constructor!==n&&(a?._$AO?.(!1),n===void 0?a=void 0:(a=new n(o),a._$AT(o,e,r)),r!==void 0?(e._$Co??=[])[r]=a:e._$Cl=a),a!==void 0&&(t=Jt(o,a._$AS(o,t.values),a,r)),t}var Da=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,a=(t?.creationScope??rt).importNode(e,!0);tt.currentNode=a;let n=tt.nextNode(),l=0,d=0,c=r[0];for(;c!==void 0;){if(l===c.index){let p;c.type===2?p=new fr(n,n.nextSibling,this,t):c.type===1?p=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(p=new Pa(n,this,t)),this._$AV.push(p),c=r[++d]}l!==c?.index&&(n=tt.nextNode(),l++)}return tt.currentNode=rt,a}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++}},fr=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,a){this.type=2,this._$AH=i,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=a,this._$Cv=a?.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=Jt(this,t,e),ur(t)?t===i||t==null||t===""?(this._$AH!==i&&this._$AR(),this._$AH=i):t!==this._$AH&&t!==at&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ei(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!==i&&ur(this._$AH)?this._$AA.nextSibling.data=t:this.T(rt.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,a=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=yr.createElement(Qs(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===a)this._$AH.p(e);else{let n=new Da(a,this),l=n.u(this.options);n.p(e),this.T(l),this._$AH=n}}_$AC(t){let e=Zs.get(t.strings);return e===void 0&&Zs.set(t.strings,e=new yr(t)),e}k(t){Ga(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,a=0;for(let n of t)a===e.length?e.push(r=new o(this.O(gr()),this.O(gr()),this,this.options)):r=e[a],r._$AI(n),a++;a<e.length&&(this._$AR(r&&r._$AB.nextSibling,a),e.length=a)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=Fs(t).nextSibling;Fs(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Xt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,a,n){this.type=1,this._$AH=i,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=i}_$AI(t,e=this,r,a){let n=this.strings,l=!1;if(n===void 0)t=Jt(this,t,e,0),l=!ur(t)||t!==this._$AH&&t!==at,l&&(this._$AH=t);else{let d=t,c,p;for(t=n[0],c=0;c<n.length-1;c++)p=Jt(this,d[r+c],e,c),p===at&&(p=this._$AH[c]),l||=!ur(p)||p!==this._$AH[c],p===i?t=i:t!==i&&(t+=(p??"")+n[c+1]),this._$AH[c]=p}l&&!a&&this.j(t)}j(t){t===i?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ea=class extends Xt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===i?void 0:t}},Ma=class extends Xt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==i)}},za=class extends Xt{constructor(t,e,r,a,n){super(t,e,r,a,n),this.type=5}_$AI(t,e=this){if((t=Jt(this,t,e,0)??i)===at)return;let r=this._$AH,a=t===i&&r!==i||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==i&&(r===i||a);a&&this.element.removeEventListener(this.name,this,r),n&&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)}},Pa=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){Jt(this,t)}};var ri=Na.litHtmlPolyfillSupport;ri?.(yr,fr),(Na.litHtmlVersions??=[]).push("3.3.3");var en=(o,t,e)=>{let r=e?.renderBefore??t,a=r._$litPart$;if(a===void 0){let n=e?.renderBefore??null;r._$litPart$=a=new fr(t.insertBefore(gr(),n),n,void 0,e??{})}return a._$AI(o),a};var _a=globalThis,Te=class extends ve{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=en(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return at}};Te._$litElement$=!0,Te.finalized=!0,_a.litElementHydrateSupport?.({LitElement:Te});var ai=_a.litElementPolyfillSupport;ai?.({LitElement:Te});(_a.litElementVersions??=[]).push("4.2.2");var b=o=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(o,t)}):customElements.define(o,t)};var si={attribute:!0,type:String,converter:mr,reflect:!1,hasChanged:zr},ni=(o=si,t,e)=>{let{kind:r,metadata:a}=e,n=globalThis.litPropertyMetadata.get(a);if(n===void 0&&globalThis.litPropertyMetadata.set(a,n=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),n.set(e.name,o),r==="accessor"){let{name:l}=e;return{set(d){let c=t.get.call(this);t.set.call(this,d),this.requestUpdate(l,c,o,!0,d)},init(d){return d!==void 0&&this.C(l,void 0,o,d),d}}}if(r==="setter"){let{name:l}=e;return function(d){let c=this[l];t.call(this,d),this.requestUpdate(l,c,o,!0,d)}}throw Error("Unsupported decorator location: "+r)};function S(o){return(t,e)=>typeof e=="object"?ni(o,t,e):((r,a,n)=>{let l=a.hasOwnProperty(n);return a.constructor.createProperty(n,r),l?Object.getOwnPropertyDescriptor(a,n):void 0})(o,t,e)}function G(o){return S({...o,state:!0,attribute:!1})}var oi=[{key:"spiritual",source:"Spiritual"},{key:"love",source:"Love"},{key:"career",source:"Career"},{key:"money",source:"Money"},{key:"twinFlame",source:"Twin flame"}];function Gr(o,t,e,r){let a=[];if(t)for(let n of oi){let l=t[n.key];l&&a.push({label:o(n.source),body:l})}return e&&a.push({label:o("Biblical"),body:e}),r&&a.push({label:o("Shadow"),body:r}),a}var oe=o=>o??i;var tn=["de","en","es","fr","hi","pt","ru","tr"];function Ba(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}function rn(o){let t=Ba(o);if(!t)return;let e=t.toLowerCase().split("-")[0];return tn.includes(e)?e:void 0}function me(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}function N(o){return o?o.charAt(0).toUpperCase()+o.slice(1).toLowerCase():""}function _(o){return o.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var an="__ROXY_UI_I18N__";function Ia(){let o=globalThis,t=o[an];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[an]=e,e}function sn(o,t){return t?o.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):o}function nn(o,t,e){if(!o)return sn(t,e);let{catalogs:r}=Ia(),a=o.toLowerCase(),n=r[a]??r[a.split("-")[0]];return sn(n?.[me(t)]??t,e)}function on(o){if(!o)return;let{fieldLabels:t}=Ia(),e=o.toLowerCase();return t[e]??t[e.split("-")[0]]}function ln(o,t){return on(o)?.fields[t]}function dn(o,t,e){return on(o)?.enums[`${t}.${e}`]}function cn(o){let{listeners:t}=Ia();return t.add(o),()=>{t.delete(o)}}var Or=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=cn(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var De=class extends Te{constructor(){super();this.translator=(e,r)=>this.t(e,r);new Or(this)}t(e,r){return nn(this.effectiveLang(),e,r)}effectiveLang(){return Ba(this)}};var x=u`:host{font-family:var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);line-height:var(--roxy-leading-normal,1.5);animation:roxy-fade-in var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1)) both;background:0 0;display:block;container-type:inline-size}: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,var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif))}@keyframes roxy-fade-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border,#e4e4e7) 0%, color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent) 50%, var(--roxy-border,#e4e4e7) 100%);border-radius:var(--roxy-radius-md,8px);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,1.5rem);color:var(--roxy-muted,#71717a);text-align:center;font-size:var(--roxy-text-sm,.875rem)}.roxy-error{gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-lg,1.5rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);justify-items:start;display:grid}.roxy-surface{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a)}:host(:focus-within) .roxy-card{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-attribution{margin-top:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink,#b45309);text-decoration:underline}.roxy-attribution a:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm,.5rem);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-fg,#0a0a0a);font-family:inherit;font-size:var(--roxy-text-sm,.875rem);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent,#f59e0b);color:var(--roxy-accent-ink,#b45309)}.roxy-edit:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}:host{font-variant-emoji:text}`;var Qt="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function _r(o){return!!o&&!o.startsWith("pk_")}function Br(o,t={}){t.warn&&console.warn(Qt),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:Qt},bubbles:!0,composed:!0}))}var ii="https://roxyapi.com/api/v2";async function ja(o){try{let t=await o.json();if(t?.error)return t.error}catch{}return`Request failed (${o.status})`}var Ir=class{constructor(t){this.baseUrl=ii;this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){if(!this.submitUrl&&this.secretKeyRefused())return;this.abort?.abort();let e=new AbortController;this.abort=e,this.host.loading=!0,this.host.error=null;try{let r=this.submitUrl?await fetch(this.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t),signal:e.signal}):await this.callApi(t,e.signal);if(!r.ok)throw new Error(await ja(r));let a=await r.json();if(e.signal.aborted)return;this.host.data=a}catch(r){if(r?.name==="AbortError")return;this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===e&&(this.abort=void 0),e.signal.aborted||(this.host.loading=!1)}}callApi(t,e){let r=new URL(`${this.baseUrl}${t.path}`);for(let[n,l]of Object.entries(t.query??{}))l!=null&&r.searchParams.set(n,String(l));let a={Accept:"application/json"};return this.publishableKey&&(a["X-API-Key"]=this.publishableKey),t.body!=null&&(a["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:a,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}secretKeyRefused(){return _r(this.publishableKey)?(this.host.error=Qt,Br(this.host),!0):!1}};function pn(o,t,e,r=[]){let a={...e},n=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,h)=>{let m=a[h];return delete a[h],encodeURIComponent(String(m??""))}),l=new Set(r),d={},c={};for(let[p,h]of Object.entries(a))h===void 0||h===""||(t==="GET"||l.has(p)?d[p]=h:c[p]=h);return{path:n,method:t,query:d,body:t==="POST"?c:void 0}}function j(){return s`<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 M=u`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:14px;height:14px;color:var(--roxy-muted,#71717a);transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Ha=u`.interp-keywords{flex-wrap:wrap;gap:.25rem;display:flex}.interp-keywords .kw{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem);padding:1px 8px}`,O=u`.block{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.block h3{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.interp-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem)}.interp-card summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);align-items:center;gap:var(--roxy-space-sm,.5rem);font-weight:500;font-size:var(--roxy-text-sm,.875rem);display:flex}.interp-card summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-radius:var(--roxy-radius-sm,4px)}.interp-lead{flex-wrap:wrap;flex:auto;order:1;align-items:baseline;gap:.4rem;min-width:0;display:inline-flex}.interp-aside{flex-shrink:0;order:2;align-items:center;gap:.5rem;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted,#71717a);white-space:nowrap;font-weight:400}@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,.5rem);gap:var(--roxy-space-sm,.5rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);overflow-wrap:anywhere;line-height:1.6;display:grid}.interp-body p{margin:0}${Ha}`;function st(o){return o?.length?s`<div class="interp-keywords">${o.map(t=>s`<span class="kw">${t}</span>`)}</div>`:i}function xr(o,t){if(!o)return i;let e=(r,a)=>a?s`<p><strong>${t(r)}</strong> ${a}</p>`:i;return s`${o.summary?s`<p>${o.summary}</p>`:i} ${e("Impact:",o.impact)}${e("Timing:",o.timing)}${e("Guidance:",o.guidance)} ${st(o.keywords)}`}function mn(o,t,e){let r=o.filter(a=>!!a.body);return r.length===0?i:s`<section class="block" part="section readings"><h3>${e}</h3>${r.map((a,n)=>s`<details class="interp-card" part="reading" name="${t}" ?open="${n===0}"><summary><span class="interp-lead">${a.label}</span> ${j()} ${a.aside?s`<span class="interp-aside"><small>${a.aside}</small></span>`:i}</summary><div class="interp-body"><p>${a.body}</p>${a.extra??i}</div></details>`)}</section>`}var hn="roxy-data";function Fa(o){return JSON.stringify(o).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function gn(o){return`<script type="application/json" class="${hn}">${Fa(o)}<\/script>`}function li(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var jr=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(li(t)&&t.classList.contains(hn))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var y=class extends De{constructor(){super();this.data=null;this.endpoint="";this.method="POST";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.onEdit=()=>{this.editing=!0};this.onFormSubmit=e=>{let r=e.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetcher.run(pn(this.endpoint,this.method,r.values,r.queryKeys??[]))};new jr(this),this.fetcher=new Ir(this)}static{this.styles=[x]}willUpdate(e){e.has("publishableKey")&&(this.fetcher.publishableKey=this.publishableKey),e.has("baseUrl")&&this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),e.has("submitUrl")&&(this.fetcher.submitUrl=this.submitUrl)}render(){return s`${this.hiddenSectionsStyle()}${this.renderState()}`}hiddenSectionsStyle(){let e=this.hideSections.split(",").map(a=>a.trim().toLowerCase()).filter(a=>/^[a-z][a-z0-9-]*$/.test(a));if(e.length===0)return i;let r=e.map(a=>`[part~="${a}"]{display:none!important}`).join("");return s`<style>${r}</style>`}renderState(){return 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()?s`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderInterpretation(e,r,a){return this.hideReadings?i:mn(e,r,this.t(a??"Reading"))}renderResult(e){let r=this.sticky?s`${this.renderForm()}${this.renderData(e)}`:s`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.renderData(e)}`;return this.showAttribution()?s`${r}${this.renderAttribution()}`:r}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return s`<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.endpoint?this.renderForm():this.renderEmpty()}renderForm(){return s`<roxy-endpoint-form part="form" data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${oe(this.specUrl)}" publishable-key="${oe(this.publishableKey)}" submit-label="${oe(this.submitLabel)}" lang="${oe(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.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 s`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return s`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=s`<div class="roxy-error" role="alert" part="error">${this.t(e)}</div>`;return this.endpoint?s`${r}${this.renderForm()}`:r}};g([S({attribute:!1})],y.prototype,"data",2),g([S({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),g([S({type:String})],y.prototype,"method",2),g([S({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),g([S({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),g([S({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),g([S({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),g([S({type:Boolean})],y.prototype,"remember",2),g([S({type:Boolean,attribute:"hide-readings",reflect:!0})],y.prototype,"hideReadings",2),g([S({type:String,attribute:"hide-sections",reflect:!0})],y.prototype,"hideSections",2),g([S({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),g([S({type:String})],y.prototype,"attribution",2),g([G()],y.prototype,"loading",2),g([G()],y.prototype,"error",2),g([G()],y.prototype,"selfFetched",2),g([G()],y.prototype,"editing",2),g([G()],y.prototype,"sticky",2);var nt=class extends y{renderData(t){let e=(t.energy??"").toLowerCase(),r=e==="positive"||e==="cautionary"||e==="neutral"?e:"",a=t.keywords??[],n=t.actionSteps??[];return s`<article class="card" part="card" aria-label="${`${this.t("Angel number")} ${t.number??""}`}"><div class="hero" part="header">${t.number?s`<div class="numeral">${t.number}</div>`:i}<div><p class="label">${this.t("Angel number")}</p>${t.title?s`<h2 class="title">${t.title}</h2>`:i}</div></div>${t.coreMessage&&!this.hideReadings?s`<p class="core">${t.coreMessage}</p>`:i}<div class="badges" part="details">${t.type?s`<span class="badge">${t.type}</span>`:i} ${typeof t.digitRoot=="number"?s`<span class="badge">${this.t("Digit root")} ${t.digitRoot}</span>`:i} ${t.energy?s`<span class="${`badge ${r}`}">${t.energy}</span>`:i}</div>${a.length>0&&!this.hideReadings?s`<div class="chips">${a.map(l=>s`<span>${l}</span>`)}</div>`:i} ${this.renderSections(t)} ${t.affirmation&&!this.hideReadings?s`<p class="affirmation">${t.affirmation}</p>`:i} ${n.length>0&&!this.hideReadings?s`<div class="steps" part="section action-steps"><h3>${this.t("Action steps")}</h3><ul>${n.map(l=>s`<li>${l}</li>`)}</ul></div>`:i}</article>`}renderSections(t){return this.renderInterpretation(Gr(this.translator,t.meaning,t.biblical,t.shadow),"angel-meaning","Reading")}};nt.styles=[x,O,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.hero{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.numeral{flex-shrink:0}.hero>div:not(.numeral){min-width:0}@container (width<=24rem){.hero{justify-items:start;gap:var(--roxy-space-sm,.5rem);grid-template-columns:minmax(0,1fr);display:grid}}.numeral{font-size:3rem;line-height:1;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);font-variant-numeric:tabular-nums}.label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.core{color:var(--roxy-fg,#0a0a0a);margin:0;line-height:1.6}.badges{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.badge{align-items:center;gap:var(--roxy-space-xs,.25rem);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 35%, transparent);color:var(--roxy-fg,#0a0a0a);text-transform:capitalize;padding:3px 10px;display:inline-flex}.badge.positive{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.badge.cautionary{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.badge.neutral{background:color-mix(in srgb, var(--roxy-info,#0284c7) 16%, transparent);color:var(--roxy-info-fg,#075985)}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.affirmation{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 12%, transparent);border-left:3px solid var(--roxy-accent,#f59e0b);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-radius:var(--roxy-radius-sm,4px);color:var(--roxy-fg,#0a0a0a);margin:0;font-style:italic}.steps h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.steps ul{padding-left:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);gap:2px;margin:0;display:grid}`],nt=g([b("roxy-angel-number-card")],nt);var di={positive:"Positive energy",neutral:"Neutral energy",cautionary:"Cautionary energy"},ot=class extends y{renderData(t){let e=t.knownMeaning,r=t.digitRootMeaning,a=e?.title??this.t("Number analysis"),n=e?.actionSteps??[];return s`<article class="card" part="card" aria-label="${`Number ${t.number??""}`}"><div class="hero" part="header">${t.number?s`<div class="numeral">${t.number}</div>`:i}<div>${e?.title?s`<p class="label">${this.t("Number analysis")}</p>`:i}<h2 class="title">${a}</h2></div></div><div class="badges" part="details">${t.type?s`<span class="badge">${t.type}</span>`:i} ${typeof t.digits=="number"?s`<span class="badge">${this.t("{{count}} digits",{count:t.digits})}</span>`:i} ${typeof t.uniqueDigits=="number"?s`<span class="badge">${this.t("{{count}} unique",{count:t.uniqueDigits})}</span>`:i} ${typeof t.digitRoot=="number"?s`<span class="badge">${this.t("Digit root {{n}}",{n:t.digitRoot})}</span>`:i} ${t.isPalindrome?s`<span class="badge flag">${this.t("Palindrome")}</span>`:i} ${t.isRepeating?s`<span class="badge flag">${this.t("Repeating")}</span>`:i} ${e?.energy?s`<span class="${`badge energy-${e.energy}`}">${this.t(di[e.energy]??"Neutral energy")}</span>`:i}</div>${t.contextNote?s`<div class="context" part="section context"><p class="label">${this.t("Where you saw it")}</p><p>${t.contextNote}</p></div>`:i} ${e&&!this.hideReadings?s`<div class="section" part="section known-meaning"><p class="label">${this.t("Known angel number")}</p>${e.coreMessage?s`<p>${e.coreMessage}</p>`:i} ${e.keywords&&e.keywords.length>0?s`<div class="chips">${e.keywords.map(l=>s`<span>${l}</span>`)}</div>`:i} ${this.renderMeaning(e.meaning,"lookup-known",e.biblical,e.shadow)} ${e.affirmation?s`<p><em>${e.affirmation}</em></p>`:i} ${n.length>0?s`<p class="label">${this.t("What to do next")}</p><ol class="steps">${n.map(l=>s`<li>${l}</li>`)}</ol>`:i}</div>`:i} ${r&&!this.hideReadings?s`<div class="section" part="section digit-root"><p class="label">${r.number?this.t("Foundational digit root ({{n}})",{n:r.number}):this.t("Foundational digit root")}</p>${r.title?s`<h3>${r.title}</h3>`:i} ${r.coreMessage?s`<p>${r.coreMessage}</p>`:i} ${e?i:this.renderRootMeaning(r)}</div>`:i}</article>`}renderMeaning(t,e,r,a){return this.renderInterpretation(Gr(this.translator,t,r,a),e,"Reading")}renderRootMeaning(t){return s`${t.keywords&&t.keywords.length>0?s`<div class="chips">${t.keywords.map(e=>s`<span>${e}</span>`)}</div>`:i}${this.renderMeaning(t.meaning,"lookup-root")}${t.affirmation?s`<p><em>${t.affirmation}</em></p>`:i}`}};ot.styles=[x,M,O,u`.card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.hero{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.numeral{flex-shrink:0}.hero>div:not(.numeral){min-width:0}@container (width<=24rem){.hero{justify-items:start;gap:var(--roxy-space-sm,.5rem);grid-template-columns:minmax(0,1fr);display:grid}}.numeral{font-size:3rem;line-height:1;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);font-variant-numeric:tabular-nums}.label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.badges{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 35%, transparent);color:var(--roxy-fg,#0a0a0a);text-transform:capitalize;align-items:center;padding:3px 10px;display:inline-flex}.badge.flag{background:color-mix(in srgb, var(--roxy-info,#0284c7) 16%, transparent);color:var(--roxy-info-fg,#075985)}.badge.energy-positive{background:color-mix(in srgb, var(--roxy-success,#16a34a) 18%, transparent)}.badge.energy-cautionary{background:color-mix(in srgb, var(--roxy-warning,#ea580c) 18%, transparent)}.context{gap:var(--roxy-space-xs,.25rem);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-left:3px solid var(--roxy-accent,#f59e0b);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent);border-radius:0 var(--roxy-radius-sm,4px) var(--roxy-radius-sm,4px) 0;display:grid}.steps{gap:var(--roxy-space-xs,.25rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;padding-left:1.1rem;line-height:1.6;display:grid}.section{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem);gap:var(--roxy-space-sm,.5rem);display:grid}.section>.label{margin:0}.section>h3{font-size:var(--roxy-text-base,1rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.section p{color:var(--roxy-fg,#0a0a0a);line-height:1.6;font-size:var(--roxy-text-sm,.875rem);margin:0}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}`],ot=g([b("roxy-angel-number-lookup")],ot);var er=(o,t)=>t?o[me(t)]:void 0,ci={sun:"☉",moon:"☽",mercury:"☿",venus:"♀",earth:"♁",mars:"♂",jupiter:"♃",saturn:"♄",uranus:"♅",neptune:"♆",pluto:"♇",rahu:"☊",ketu:"☋",ascendant:"Asc",lagna:"La","north node":"☊","south node":"☋",chiron:"⚷",lilith:"⚸","black moon lilith":"⚸"},R=o=>er(ci,o),pi={sun:"Su",moon:"Mo",mercury:"Me",venus:"Ve",mars:"Ma",jupiter:"Ju",saturn:"Sa",uranus:"Ur",neptune:"Ne",pluto:"Pl",rahu:"Ra",ketu:"Ke",ascendant:"Asc",lagna:"La"},yn=o=>er(pi,o),mi={aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpio:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓"},z=o=>er(mi,o),hi={aries:"Ar",taurus:"Ta",gemini:"Ge",cancer:"Cn",leo:"Le",virgo:"Vi",libra:"Li",scorpio:"Sc",sagittarius:"Sg",capricorn:"Cp",aquarius:"Aq",pisces:"Pi"},Hr=o=>er(hi,o),Z=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],gi={conjunction:"☌",semisextile:"⚺","semi sextile":"⚺",semisquare:"∠","semi square":"∠",sextile:"⚹",square:"□",trine:"△",sesquiquadrate:"⚼",quincunx:"⚻",opposition:"☍"},Fr=o=>er(gi,o),ui={heaven:"☰",lake:"☱",fire:"☲",thunder:"☳",wind:"☴",water:"☵",mountain:"☶",earth:"☷"},Ka=o=>er(ui,o),un={"new moon":"🌑","waxing crescent":"🌒","first quarter":"🌓","waxing gibbous":"🌔","full moon":"🌕","waning gibbous":"🌖","last quarter":"🌗","waning crescent":"🌘"},fn=o=>{if(!o)return;let t=me(o),e=t.replace(/ moon$/,""),r=e==="third quarter"?"last quarter":e;return un[t]??un[r]};var Va=/^\d{4}-\d{2}-\d{2}$/,bn=/^\d{2}:\d{2}(:\d{2})?$/,yi=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,xn=new Map;function ue(o){if(!o)return["en"];let t=xn.get(o);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(o)[0]??"en"}catch{e="en"}return xn.set(o,e),[e,"en"]}function br(o){let t=bn.test(o)?`1970-01-01T${o}`:Va.test(o)?`${o}T00:00:00`:yi.test(o)?o:null;return t?{d:new Date(`${t}Z`),timeZone:"UTC"}:{d:new Date(o)}}function te(o,t){if(typeof t!="string"||t.length===0||Va.test(t))return"";let{d:e,timeZone:r}=br(t);return Number.isNaN(e.getTime())?t:e.toLocaleTimeString(ue(o),{hour:"numeric",minute:"2-digit",timeZone:r})}function A(o,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:r}=br(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(ue(o),{month:"short",day:"numeric",year:"numeric",timeZone:r})}function Ee(o,t){if(!t)return"";let e=te(o,t.start),r=te(o,t.end);return e&&r?`${e} - ${r}`:e||r||""}function qa(o,t,e){let r=A(o,t),a=A(o,e);return r&&a?`${r} - ${a}`:r||a}function Ua(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:a}=br(t);return Number.isNaN(r.getTime())?t:r.toLocaleString(ue(o),{day:e==="month"?void 0:"numeric",month:"short",year:"numeric",hour:e==="time"?"numeric":void 0,minute:e==="time"?"2-digit":void 0,timeZone:a})}function Kr(o,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:r}=br(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(ue(o),{month:"short",day:"numeric",timeZone:r})}function vn(o,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:r}=br(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(ue(o),{weekday:"short",day:"numeric",timeZone:r})}function Ln(o,t,e){return typeof t!="number"||!Number.isFinite(t)||typeof e!="number"||!Number.isInteger(e)||e<1||e>12?"":new Date(Date.UTC(t,e-1,1,12)).toLocaleDateString(ue(o),{month:"long",year:"numeric",timeZone:"UTC"})}function Vr(o,t){return typeof t!="number"||!Number.isInteger(t)||t<1||t>12?"":new Date(Date.UTC(2e3,t-1,1,12)).toLocaleDateString(ue(o),{month:"long",timeZone:"UTC"})}function $n(o,t){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(ue(o),{maximumFractionDigits:0})}function v(o,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(ue(o),{maximumFractionDigits:e})}function ae(o,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":(t/100).toLocaleString(ue(o),{style:"percent",maximumFractionDigits:e})}var Le={conjunction:"aspect-conjunction",sextile:"aspect-sextile",square:"aspect-square",trine:"aspect-trine",opposition:"aspect-opposition"};function ce(o){return(o.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}function W(o){return N(ce(o))}var fi={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function it(o,t,e){let r=typeof t=="string"?fi[t]??_(t):"",a=typeof e=="number"?`${v(o,e,2)}°`:"";return r&&a?`${r} (${a})`:r||a}function q(o,t,e){let r=typeof t=="string"&&Va.test(t)&&typeof e=="string"&&bn.test(e)?`${t}T${e}`:t,a=A(o,r),n=te(o,r);return a&&n?`${a}, ${n}`:a||n}function Ya(o,t){if(!(typeof t!="string"||!t))return t===o?void 0:t}function vr(o,t){let e=typeof o=="string"?o:"",r=Ya(e,t);return e?r?`${e} (${r})`:e:r??""}var I=u`.roxy-frame{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.roxy-frame .roxy-frame-deg{font-variant-numeric:tabular-nums}`;function F(o,t,e){if(!t?.ayanamsa)return i;let r=it(o,t.ayanamsa);if(!r)return i;let a=typeof t.ayanamsaDegrees=="number"?v(o,t.ayanamsaDegrees,4):void 0;return s`<p class="roxy-frame">${a===void 0?e("Sidereal frame: {{frame}}",{frame:r}):e("Sidereal frame: {{frame}}, {{degrees}}° subtracted",{frame:r,degrees:a})}</p>`}function wn(o,t,e){let r=Object.values(t??{}).filter(a=>!!a?.ayanamsa);return r.length===0?i:s`<div class="roxy-frame">${r.map(a=>{let n=it(o,a.ayanamsa),l=typeof a.ayanamsaDegrees=="number"?v(o,a.ayanamsaDegrees,4):void 0,d=a.governs?.length?a.governs.join(", "):"";return s`<p class="roxy-frame">${l===void 0?e("Sidereal frame: {{frame}}",{frame:n}):e("Sidereal frame: {{frame}}, {{degrees}}° subtracted",{frame:n,degrees:l})}${d?e(", governs {{sections}}",{sections:d}):""}</p>`})}</div>`}var xi=new Set(["a1","a12"]),lt=class extends y{renderData(t){let e=t.padas??[];if(!e.length)return this.renderEmpty();let r=e.filter(a=>a.exceptionApplied).length;return s`<div class="wrap" part="card" aria-label="${this.t("Arudha padas")}"><header class="head" part="header"><h2 class="title">${this.t("Arudha padas")}</h2>${F(this.effectiveLang(),t.frame,this.translator)}</header><div class="leads" part="details"><div class="lead"><span>${this.t("Lagna")}</span><strong>${t.lagnaRashi??""}</strong></div><div class="lead"><span>${this.t("Arudha Lagna")}</span><strong>${t.arudhaLagna??""}</strong></div><div class="lead"><span>${this.t("Upapada")}</span><strong>${t.upapada??""}</strong></div></div><div class="scroll" part="table" tabindex="0"><table role="table"><caption class="roxy-sr-only">${this.t("The twelve Arudha padas: each pada with its bhava, the bhava sign and its lord, the sign the lord occupies, the sign the pada falls in, which house from the Lagna that is, whether the classical exception was applied, and what the pada is read for.")}</caption><thead><tr><th scope="col">${this.t("Pada")}</th><th scope="col">${this.t("Bhava")}</th><th scope="col">${this.t("Bhava rashi")}</th><th scope="col">${this.t("Lord")}</th><th scope="col">${this.t("Lord rashi")}</th><th scope="col">${this.t("Pada rashi")}</th><th scope="col">${this.t("From Lagna")}</th><th scope="col">${this.t("Read for")}</th></tr></thead><tbody>${e.map(a=>this.renderRow(a))}</tbody></table></div>${r>0?s`<p class="note" part="legend"><span class="exception">${this.t("Moved")}</span> ${this.t("marks a pada that fell in its own bhava or the seventh from it and was moved to the tenth from there, as the classical rule requires. {{count}} of {{total}} padas here.",{count:r,total:e.length})}</p>`:i}</div>`}renderRow(t){let e=a=>z(a)??"",r=a=>{let n=e(a);return s`${n?s`<span class="glyph">${n}</span>`:i}${a??""}`};return s`<tr class="${xi.has(t.id)?"lead-row":""}"><td class="pada">${t.name??""}${t.abbreviation?s`<span class="abbr">${t.abbreviation}</span>`:i}</td><td class="num">${t.house??""}</td><td>${r(t.bhavaRashi)}</td><td>${t.lord??""}</td><td>${r(t.lordRashi)}</td><td>${r(t.rashi)} ${t.exceptionApplied?s`<span class="exception">${this.t("Moved")}</span>`:i}</td><td class="num">${t.houseFromLagna??""}</td><td class="meaning"><strong>${t.meaning??""}</strong> ${t.significations?s`<p>${t.significations}</p>`:i}</td></tr>`}};lt.styles=[x,I,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7)}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.leads{gap:var(--roxy-space-md,1rem);padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));display:grid}.lead span{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:block}.lead strong{font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a)}.scroll{min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:700px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}tbody tr.lead-row{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 10%, transparent)}td.pada{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.abbr{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-normal,400);margin-left:.4em}tbody tr.lead-row .abbr,tbody tr.lead-row .glyph{color:var(--roxy-accent-ink,#b45309)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.4em}.num{font-variant-numeric:tabular-nums}.exception{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-warning-fg,#b45309)}.meaning{white-space:normal;min-width:12rem}.meaning strong{font-weight:var(--roxy-weight-bold,600);display:block}.meaning p{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.note{padding:0 var(--roxy-space-md,1rem) var(--roxy-space-md,1rem);color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}`],lt=g([b("roxy-arudha-padas")],lt);var ee=u`.roxy-tablist{border-bottom:2px solid var(--roxy-border,#e4e4e7);scrollbar-width:thin;gap:2px;min-width:0;display:flex;overflow-x:auto}.roxy-tab{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);cursor:pointer;color:var(--roxy-muted,#71717a);transition:color var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);background:0 0;border:none;border-bottom:2px solid #0000;flex-shrink:0;margin-bottom:-2px;font-family:inherit}.roxy-tab[aria-selected=true]{color:var(--roxy-accent-ink,#b45309);border-bottom-color:var(--roxy-accent,#f59e0b);font-weight:var(--roxy-weight-bold,600)}.roxy-tab:hover:not([aria-selected=true]){color:var(--roxy-fg,#0a0a0a)}.roxy-tab:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:-2px;border-radius:4px}`;function se(o){let{items:t,active:e,onSelect:r,label:a,idPrefix:n,controls:l=!1}=o;return s`<div class="roxy-tablist" part="tablist" role="tablist" aria-label="${a}" @keydown="${c=>{if(c.key!=="ArrowRight"&&c.key!=="ArrowLeft")return;c.preventDefault();let p=t.findIndex(C=>C.id===e);if(p===-1)return;let h=c.key==="ArrowRight"?1:-1,m=t[(p+h+t.length)%t.length];if(!m)return;r(m.id);let f=c.currentTarget.getRootNode();requestAnimationFrame(()=>{f.querySelector(`#${n}-tab-${m.id}`)?.focus()})}}">${t.map(c=>s`<button type="button" class="roxy-tab" part="tab" role="tab" id="${n}-tab-${c.id}" aria-selected="${e===c.id?"true":"false"}" aria-controls="${l?`${n}-panel-${c.id}`:i}" tabindex="${e===c.id?"0":"-1"}" @click="${()=>r(c.id)}">${c.label}</button>`)}</div>${l?t.filter(c=>c.id!==e).map(c=>s`<div role="tabpanel" id="${n}-panel-${c.id}" aria-labelledby="${n}-tab-${c.id}" hidden></div>`):i}`}var bi=[{id:"sarva",source:"Sarvashtakavarga"},{id:"bhinna",source:"Bhinnashtakavarga"},{id:"reduced",source:"Reduced"},{id:"pinda",source:"Shodhya Pinda"}],Me=class extends y{constructor(){super(...arguments);this.activeTab="sarva"}renderData(e){let r=e.signs??[];return s`<div class="wrap" part="card" aria-label="${this.t("Ashtakavarga grid")}"><div class="head" part="header"><h2 class="title">${this.t("Ashtakavarga")}</h2>${r.length?s`<p class="subtitle">${this.t("{{count}} signs",{count:r.length})}</p>`:i} ${F(this.effectiveLang(),e.frame,this.translator)}</div>${se({items:bi.map(({id:a,source:n})=>({id:a,label:this.t(n)})),active:this.activeTab,onSelect:a=>{this.activeTab=a},label:this.t("Ashtakavarga views"),idPrefix:"ashtakavarga",controls:!0})}<div id="ashtakavarga-panel-${this.activeTab}" part="panel" role="tabpanel" aria-labelledby="ashtakavarga-tab-${this.activeTab}">${this.activeTab==="sarva"?this.renderSarva(r):this.activeTab==="bhinna"?this.renderBhinna(r):this.activeTab==="reduced"?this.renderReduced(r):this.renderPinda()}</div></div>`}bhinnaTier(e){return e<=1?"tier-1":e<=2?"tier-2":e<=3?"tier-3":e<=4?"tier-4":e<=5?"tier-5":e<=6?"tier-6":"tier-7"}sarvaTier(e){return e<=20?"tier-1":e<=24?"tier-2":e<=27?"tier-3":e<=29?"tier-4":e<=32?"tier-5":e<=36?"tier-6":"tier-7"}renderLegend(e){return s`<div class="legend" part="legend"><span>${this.t("Fewer bindus")}</span> <span class="legend-scale" aria-hidden="true">${[1,2,3,4,5,6,7].map(r=>s`<span class="legend-swatch tier-${r}"></span>`)} </span><span>${this.t("More bindus")}</span> <span class="legend-note">${e}</span></div>`}renderSarva(e){let r=this.data?.sarvashtakavarga;return r?s`<div class="overflow-scroll" part="table"><table><caption class="roxy-sr-only">${this.t("Sarvashtakavarga: each of the twelve signs and the bindus all planets contribute to it, with a grand total.")}</caption><thead><tr><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Bindus")}</th></tr></thead><tbody>${e.map((a,n)=>{let l=r.bindus[n]??0;return s`<tr><td><div class="planet-cell"><span class="glyph" aria-hidden="true">${z(a)??""}</span> ${a}</div></td><td class="${`bindu-cell ${this.sarvaTier(l)}`}">${l}</td></tr>`})}</tbody><tfoot><tr class="total-row"><td>${this.t("Total")}</td><td>${r.total}</td></tr></tfoot></table></div>${this.renderLegend("Under 25 is a weak sign, 25 to 29 average, 30 and above strong. The 12 signs always total 337.")}`:s`<p class="roxy-empty">${this.t("No sarvashtakavarga data")}</p>`}renderBhinna(e){let r=this.data?.bhinnashtakavarga;return r?.length?s`${this.renderBinduGrid(e,r,"Bhinnashtakavarga: the bindus each planet scores in every one of the twelve signs, with a row total.")} ${this.renderLegend("Each planet scores 0 to 8 bindus per sign. 4 is the mid, 5 and above is strong support for that planet in that sign.")}`:s`<p class="roxy-empty">${this.t("No bhinnashtakavarga data")}</p>`}renderReduced(e){let r=this.data?.reducedBhinnashtakavarga,a=this.data?.reducedSarvashtakavarga;return!r?.length&&!a?s`<p class="roxy-empty">${this.t("No reduced ashtakavarga data")}</p>`:s`${this.renderBinduGrid(e,r??[],"Reduced Bhinnashtakavarga after Shodhana: the bindus each planet keeps in every one of the twelve signs, with a row total and a Reduced Sarvashtakavarga totals row.",a)} ${this.renderLegend("Bindus left after Trikona and Ekadipati Shodhana, the input to Shodhya Pinda. The Reduced SAV row totals the seven planets only, so it does not include the Lagna row above it.")}`}renderBinduGrid(e,r,a,n){return r.length?s`<div class="overflow-scroll" part="table"><table class="bhinna-table"><caption class="roxy-sr-only">${a}</caption><thead><tr><th scope="col">${this.t("Planet")}</th>${e.map(l=>s`<th scope="col" title="${l}">${z(l)??l}</th>`)}<th scope="col">${this.t("Total")}</th></tr></thead><tbody>${r.map(l=>s`<tr><td>${l.planet}</td>${l.bindus.map(d=>s`<td class="${`bindu-cell ${this.bhinnaTier(d)}`}">${d}</td>`)}<td>${l.total}</td></tr>`)}</tbody>${n?s`<tfoot><tr class="total-row"><td>${this.t("Reduced SAV")}</td>${e.map((l,d)=>s`<td>${n.bindus[d]??0}</td>`)}<td>${n.total}</td></tr></tfoot>`:i}</table></div>`:s`<p class="roxy-empty">${this.t("No bindu data")}</p>`}renderPinda(){let e=this.data?.shodhyaPinda;return e?.length?s`<div class="overflow-scroll" part="table"><table><caption class="roxy-sr-only">${this.t("Shodhya Pinda: each planet with its Rashi Pinda, Graha Pinda and Shodhya Pinda strength scores.")}</caption><thead><tr><th scope="col">${this.t("Planet")}</th><th scope="col">${this.t("Rashi Pinda")}</th><th scope="col">${this.t("Graha Pinda")}</th><th scope="col">${this.t("Shodhya Pinda")}</th></tr></thead><tbody>${e.map(r=>s`<tr><td>${r.planet}</td><td>${r.rashiPinda}</td><td>${r.grahaPinda}</td><td>${r.shodhyaPinda}</td></tr>`)}</tbody></table></div>`:s`<p class="roxy-empty">${this.t("No shodhya pinda data")}</p>`}};Me.styles=[x,I,ee,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.overflow-scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:center}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}td:first-child,th:first-child{text-align:left}.glyph{margin-right:3px;font-size:1.1em;line-height:1}.planet-cell{white-space:nowrap;align-items:center;gap:4px;display:flex}.total-row td{font-weight:var(--roxy-weight-bold,600);border-top:2px solid var(--roxy-border,#e4e4e7);border-bottom:none}.bindu-cell{border-radius:var(--roxy-radius-sm,4px);font-weight:var(--roxy-weight-bold,600);font-variant-numeric:tabular-nums;min-width:2rem;color:var(--roxy-fg,currentColor)}.tier-1{background:color-mix(in srgb, var(--roxy-heat,#ef4444) 30%, transparent)}.tier-2{background:color-mix(in srgb, var(--roxy-heat,#ef4444) 17%, transparent)}.tier-3{background:color-mix(in srgb, var(--roxy-heat,#ef4444) 7%, transparent)}.tier-4{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent)}.tier-5{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent)}.tier-6{background:color-mix(in srgb, var(--roxy-success,#16a34a) 32%, transparent)}.tier-7{background:color-mix(in srgb, var(--roxy-success,#16a34a) 50%, transparent)}.legend{align-items:center;gap:var(--roxy-space-xs,.25rem) var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);flex-wrap:wrap;display:flex}.legend-scale{gap:2px;display:flex}.legend-swatch{border-radius:2px;width:16px;height:10px}.legend-note{flex:12rem}.bhinna-table th:first-child,.bhinna-table td:first-child{min-width:5rem}@container (width<=480px){.bhinna-table th,.bhinna-table td{font-size:var(--roxy-text-xs,.75rem);padding:.3rem .35rem}.bhinna-table th:first-child,.bhinna-table td:first-child{min-width:3.5rem}.bindu-cell{min-width:1.5rem}}.overflow-scroll{-webkit-mask-image:linear-gradient(90deg,#0000 0,#000 .5rem calc(100% - 1rem),#0000 100%);mask-image:linear-gradient(90deg,#0000 0,#000 .5rem calc(100% - 1rem),#0000 100%)}`],g([G()],Me.prototype,"activeTab",2),Me=g([b("roxy-ashtakavarga-grid")],Me);function vi(o){let t=o.strictOrbs?"strict":"industry-standard",e=o.include?.length?`including ${o.include.join(" and ")}`:"classical bodies only";return`Detected with ${t} orbs, ${e}.`}var kn={GRAND_CROSS:0,GRAND_TRINE:1,KITE:2,T_SQUARE:3,YOD:4,MYSTIC_RECTANGLE:5,STELLIUM:6},dt=class extends y{renderData(t){let e="aspects"in t?t.aspects??[]:[],r="patterns"in t?t.patterns??[]:[],a="summary"in t?t.summary:void 0;if(e.length===0&&r.length===0)return this.renderEmpty();let n=A(this.effectiveLang(),"transitDate"in t?t.transitDate:"date"in t?t.date:""),l="options"in t?t.options:void 0;return s`<div class="wrap" part="card" aria-label="${this.t("Aspects")}"><div class="head" part="header"><h2 class="title">${e.length===0?this.t("Chart patterns"):this.t("Aspects")}</h2>${e.length>0||n?s`<p class="subtitle">${[e.length>0?`${e.length} aspect${e.length===1?"":"s"}`:"",n].filter(Boolean).join(" · ")}</p>`:i}</div>${a?this.renderSummary(a):i} ${a&&"strongest"in a&&a.strongest?this.renderStrongest(a.strongest):i} ${e.length>0?s`<div role="list" part="section aspects" aria-label="${this.t("Aspect list")}">${e.map((d,c)=>this.renderAspect(d,c))}</div>`:i} ${r.length>0?s`<div part="section patterns"><p class="section-label">${this.t("Patterns")}</p>${[...r].sort((d,c)=>(kn[d.kind]??9)-(kn[c.kind]??9)||(c.tightness??0)-(d.tightness??0)).map(d=>this.renderPattern(d))}</div>`:i} ${l?s`<p class="provenance">${vi(l)}</p>`:i}</div>`}renderSummary(t){let e="totalAspects"in t?t.totalAspects:t.total,r=Object.entries(t.byType??{}).sort((a,n)=>n[1]-a[1]);return s`<div class="summary-pills" part="details" role="region" aria-label="${this.t("Aspect summary")}">${typeof e=="number"?s`<span class="pill pill--muted">${this.t("Total")}: ${e}</span>`:i} <span class="pill pill--success">${this.t("Harmonious")}: ${t.harmonious}</span> <span class="pill pill--danger">${this.t("Challenging")}: ${t.challenging}</span> <span class="pill pill--muted">${this.t("Neutral")}: ${t.neutral}</span> ${r.map(([a,n])=>s`<span class="pill pill--muted">${W({type:a})}: ${n}</span>`)}</div>`}renderStrongest(t){let e=R(t.planet1)??"",r=R(t.planet2)??"",a=(t.interpretation??"neutral").toLowerCase();return s`<div class="strongest" part="details strongest"><span class="label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph">${e}</span>${t.planet1} <span class="nature-badge ${a}">${W(t)}</span> <span aria-hidden="true" class="glyph">${r}</span>${t.planet2} <span class="meta">${this.t("{{status}} · orb {{orb}}° · str {{strength}}",{status:t.isApplying?this.t("Applying"):this.t("Separating"),orb:v(this.effectiveLang(),t.orb,2),strength:v(this.effectiveLang(),t.strength,0)})}</span></div>`}renderAspect(t,e){let r=R(t.planet1)??"",a=R(t.planet2)??"",n=(t.interpretation??"neutral").toLowerCase(),l=W(t),d=t.isApplying?this.t("Applying"):this.t("Separating"),c="meaning"in t?t.meaning:void 0,p="transitInterpretation"in t?t.transitInterpretation:void 0,h=!!(c||p),m=s`<span aria-hidden="true" class="glyph">${r}</span>${t.planet1} <span class="nature-badge ${n}">${l}</span> <span aria-hidden="true" class="glyph">${a}</span>${t.planet2} <span class="meta">${this.t("{{status}} · orb {{orb}}° · str {{strength}}",{status:d,orb:v(this.effectiveLang(),t.orb,2),strength:v(this.effectiveLang(),t.strength,0)})}</span>`;return!h||this.hideReadings?s`<div class="interp-card" part="reading" role="listitem"><div class="static-head">${m}</div></div>`:s`<details class="interp-card" part="reading" role="listitem" name="aspects" ?open="${e===0}"><summary>${m}${j()}</summary><div class="interp-body">${c?this.renderMeaning(c):i} ${p?this.renderTransit(p):i}</div></details>`}renderMeaning(t){let e=t.description?.short??t.description?.long;return xr({summary:e,keywords:t.keywords},this.translator)}renderTransit(t){return xr(t,this.translator)}renderPattern(t){let e=t.planets??[],r=t.apex?[...e].sort((a,n)=>+(n===t.apex)-+(a===t.apex)):e;return s`<div class="pattern" part="pattern"><div class="pattern-head"><span class="pattern-name">${t.name??t.kind??"Pattern"}</span> ${t.element?s`<span class="pattern-tag">${t.element}</span>`:i} ${t.modality?s`<span class="pattern-tag">${t.modality}</span>`:i} ${t.dissociate?s`<span class="pattern-tag" title="${this.t("Out of sign: one or more planets sit outside the pattern element or modality, so the theme holds but runs weaker.")}">${this.t("Dissociate")}</span>`:i} ${typeof t.tightness=="number"?s`<span class="pattern-tight">${this.t("{{percent}} tight",{percent:ae(this.effectiveLang(),t.tightness,0)})}</span>`:i}</div>${r.length?s`<div class="pattern-planets">${r.map(a=>{let n=R(a),l=!!t.apex&&a===t.apex;return s`<span class="${l?"planet-chip apex":"planet-chip"}">${n?s`<span aria-hidden="true">${n}</span>`:i}${a}${l?s`<span class="apex-tag">${this.t("apex")}</span>`:i}</span>`})}</div>`:i} ${t.interpretation&&!this.hideReadings?s`<p class="pattern-interp">${t.interpretation}</p>`:i}</div>`}};dt.styles=[x,M,O,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.summary-pills{gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.pill{padding:2px var(--roxy-space-sm,.5rem);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);border:1px solid;align-items:center;gap:4px;display:inline-flex}.pill--muted{color:var(--roxy-fg,#0a0a0a);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent)}.pill--success{color:var(--roxy-success-fg,#166534);background:color-mix(in srgb, var(--roxy-success,#16a34a) 10%, transparent)}.pill--danger{color:var(--roxy-danger-fg,#991b1b);background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent)}.section-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-xs,.25rem) 0}.interp-card summary{flex-wrap:wrap;gap:.5em}.interp-card summary .meta{color:var(--roxy-muted,#71717a);font-weight:400;font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.static-head{font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;align-items:center;gap:.5em;font-weight:500;display:flex}.glyph{font-size:1.1em;line-height:1}.nature-badge{font-size:var(--roxy-text-xs,.75rem);text-transform:capitalize;border-radius:9999px;padding:1px 8px;font-weight:600;display:inline-block}.nature-badge.harmonious{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.nature-badge.challenging{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.nature-badge.neutral{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a)}.pattern{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem);gap:.35rem;display:grid}.pattern-head{flex-wrap:wrap;align-items:baseline;gap:.5rem;display:flex}.pattern-name{font-weight:var(--roxy-weight-bold,600)}.pattern-tag{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);color:var(--roxy-fg,#0a0a0a);text-transform:capitalize;padding:1px 8px}.pattern-planets{flex-wrap:wrap;gap:.25rem;display:flex}.planet-chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a);align-items:baseline;gap:.3rem;padding:1px 8px;display:inline-flex}.planet-chip.apex{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 20%, transparent);font-weight:var(--roxy-weight-bold,600)}.planet-chip .apex-tag{text-transform:uppercase;letter-spacing:.04em;font-size:.85em;font-weight:400}.pattern-tight{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.pattern-interp{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.45}.strongest{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;align-items:baseline;gap:.4rem;display:flex}.strongest .label{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600)}.strongest .meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.provenance{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);margin:0}`],dt=g([b("roxy-aspects-table")],dt);var Li={Sun:"var(--roxy-accent)",Moon:"var(--roxy-secondary)",Mercury:"var(--roxy-info)",Venus:"var(--roxy-success)",Mars:"var(--roxy-danger)",Jupiter:"var(--roxy-warning)",Saturn:"var(--roxy-muted)",Uranus:"var(--roxy-info-fg)",Neptune:"var(--roxy-success-fg)",Pluto:"var(--roxy-danger-fg)"},Sn=["var(--roxy-accent)","var(--roxy-info)","var(--roxy-success)","var(--roxy-danger)","var(--roxy-warning)","var(--roxy-secondary)","var(--roxy-info-fg)","var(--roxy-success-fg)","var(--roxy-danger-fg)","var(--roxy-accent-ink)","var(--roxy-warning-fg)","var(--roxy-primary)"];function ct(o,t=0){return Li[N(o)]??Sn[t%Sn.length]??"var(--roxy-accent)"}var Rn="M120 170L120 171L118 171L116 171L114 171L114 170L116 170L118 170L119 170L120 170ZM21 169L19 170L18 169L17 169L16 169L17 168L19 168L20 169L21 169ZM135 168L136 168L137 169L137 170L135 170L133 171L132 171L130 171L127 171L126 171L126 170L128 170L129 170L130 169L131 168L132 168L133 168L135 168ZM59 164L60 164L61 163L61 164L60 164L58 164L57 164L58 163L59 164ZM54 163L56 164L55 164L54 164L53 163L54 163ZM81 162L82 162L83 162L84 163L83 162L82 162L81 162L79 163L78 162L80 162L81 162ZM112 161L111 162L110 162L109 163L108 162L107 162L106 162L105 162L106 161L107 161L108 161L108 160L109 159L110 159L111 160L111 161L112 161ZM121 154L120 154L119 154L119 155L118 155L117 155L117 156L118 156L117 156L116 157L115 157L114 158L115 158L115 159L116 159L117 159L117 160L118 160L118 161L119 162L119 163L119 164L118 164L117 165L116 165L114 166L113 166L112 166L110 166L109 167L108 167L106 167L104 167L103 167L105 167L106 168L105 168L104 168L102 168L102 169L103 170L105 170L107 170L109 171L110 171L112 171L114 171L117 172L118 172L120 172L121 173L122 173L123 173L125 173L126 172L128 172L130 172L133 172L135 172L137 172L138 172L139 171L142 171L144 171L146 171L148 171L150 171L151 170L150 170L150 169L148 169L146 169L144 169L144 168L145 168L146 168L148 168L149 167L150 167L151 167L152 166L154 166L155 166L156 166L158 166L159 166L160 166L161 165L162 165L163 165L164 164L165 164L164 164L164 163L165 163L166 163L167 163L168 162L169 162L170 161L171 161L171 162L173 162L173 161L174 161L176 161L177 161L178 161L179 161L180 162L181 161L182 161L183 161L184 161L185 161L186 160L187 160L188 160L190 160L191 161L192 161L192 160L193 160L195 160L196 160L197 160L198 160L199 160L200 160L201 160L202 160L203 161L204 161L205 160L206 160L207 160L208 160L209 160L210 160L211 160L212 160L213 159L214 159L215 159L216 159L217 159L218 160L219 160L220 160L220 159L221 159L222 159L223 158L224 158L225 158L226 158L227 158L228 157L229 157L230 157L231 157L232 156L233 156L234 156L235 156L236 156L237 156L237 157L238 157L239 157L240 157L241 158L242 158L243 158L244 157L245 158L246 158L247 158L248 158L249 158L250 159L250 160L249 160L248 160L248 161L249 161L248 161L248 162L249 162L250 162L251 162L252 162L252 161L253 161L253 160L254 160L256 160L257 160L258 159L259 158L260 158L261 158L262 157L263 157L264 157L265 157L266 157L267 157L268 156L269 157L270 157L271 157L272 157L273 157L274 157L275 157L276 157L277 157L278 157L279 157L280 157L281 157L282 156L283 156L284 156L285 156L286 157L287 157L288 157L289 157L290 157L291 156L292 156L293 156L294 156L295 156L296 157L297 157L299 157L300 157L301 157L302 157L303 156L304 157L305 157L306 157L307 157L308 157L309 157L310 157L311 156L312 156L313 156L314 156L315 156L315 155L316 156L317 157L319 157L320 157L321 157L322 157L323 157L324 157L325 157L326 157L326 158L327 158L328 158L329 158L330 159L331 159L333 159L334 159L335 159L336 159L337 159L338 159L339 160L340 160L341 160L342 161L343 161L344 161L345 161L346 161L347 161L348 161L349 161L351 161L351 162L350 163L349 164L348 164L347 164L346 164L346 165L345 165L344 165L344 166L343 167L344 167L344 168L345 168L347 168L347 169L345 169L344 169L342 169L341 170L340 171L341 171L342 172L344 172L345 173L347 173L349 173L349 174L352 174L353 174L356 174L358 174L360 175L360 180L0 180L0 175L1 174L3 174L4 174L6 175L7 174L10 174L11 174L13 175L16 175L18 175L22 175L25 175L29 175L31 176L34 175L37 175L33 175L30 174L29 174L26 174L27 173L27 172L25 172L25 171L23 171L26 171L28 171L29 171L31 171L33 171L34 170L33 170L32 170L30 169L28 169L27 169L25 169L24 169L23 168L22 168L22 167L23 167L25 167L26 167L27 167L29 167L30 167L31 167L32 167L34 166L34 165L35 165L36 166L37 165L38 165L40 165L41 165L42 165L44 165L45 164L46 164L48 164L49 164L50 164L52 164L53 164L55 165L56 164L57 164L59 165L60 164L61 164L63 164L64 164L65 164L66 164L67 164L68 165L69 164L70 165L71 165L72 165L74 165L75 165L77 165L78 165L79 165L80 165L79 165L79 164L77 164L77 163L76 163L77 163L78 163L80 163L81 163L82 163L82 164L84 164L85 163L86 163L88 163L89 163L90 163L91 163L92 163L93 163L94 163L95 163L96 164L97 164L99 164L99 163L100 163L101 164L102 163L103 164L104 164L105 164L106 164L107 163L108 163L110 163L111 163L112 163L113 162L112 161L112 160L111 160L112 159L113 158L112 158L112 157L113 157L114 156L115 156L116 155L117 155L118 155L119 154L120 154L121 154L121 153L122 153L123 154L122 154L121 154ZM112 144L114 144L115 145L114 145L113 145L112 146L111 145L110 145L109 145L108 144L107 144L105 143L106 143L108 144L109 144L110 143L111 143L112 143L112 144ZM121 141L122 142L121 142L120 142L119 142L120 141L121 142L121 141ZM250 140L249 140L249 139L250 139L251 139L250 140ZM325 131L326 131L327 131L328 131L328 132L328 133L327 134L326 134L325 133L325 132L325 131ZM353 131L354 131L354 132L353 133L353 134L352 134L351 134L351 135L351 136L350 136L349 137L348 137L348 136L347 136L347 135L348 134L349 134L350 134L351 133L352 132L352 131L353 130L353 131ZM355 126L355 127L356 127L356 128L357 128L358 128L359 128L358 129L357 129L357 130L357 131L356 131L355 132L355 131L355 130L354 130L354 129L355 129L355 128L355 127L354 127L354 126L353 125L353 124L354 125L355 126ZM347 112L346 112L345 112L345 111L344 110L345 110L345 111L346 111L347 112ZM358 107L359 108L358 108L357 108L358 107L358 108L358 107ZM359 107L359 106L360 106L360 107L359 107ZM230 104L230 105L230 106L230 105L230 106L230 107L229 107L229 108L229 109L229 110L228 112L228 114L227 115L226 115L225 116L225 115L224 115L224 114L223 113L223 112L223 111L224 111L224 110L224 109L224 108L224 107L224 106L225 106L226 106L227 105L228 105L228 104L229 103L229 102L230 102L230 103L230 104ZM324 104L324 105L325 104L325 105L325 106L326 107L326 108L326 109L327 109L328 110L329 110L329 111L330 112L330 113L331 112L331 113L332 114L333 115L333 116L333 117L334 118L334 119L333 119L333 120L333 121L333 122L332 123L331 124L331 125L330 126L330 127L329 128L328 128L327 128L327 129L326 129L325 129L325 128L324 128L324 129L323 129L322 128L321 128L320 127L320 126L319 126L318 126L318 125L318 124L318 125L317 125L318 124L318 123L317 124L316 124L316 125L315 124L315 123L314 123L313 122L312 122L311 121L310 122L308 122L307 122L306 122L305 123L304 123L304 124L303 124L302 124L301 124L300 124L299 125L299 124L299 125L298 125L297 125L296 124L295 124L296 123L296 122L295 121L295 120L295 119L294 118L294 117L293 117L293 116L294 117L293 116L294 116L294 115L293 114L294 114L294 113L294 112L294 113L295 112L295 111L296 111L297 111L298 110L299 110L300 110L301 110L301 109L302 109L302 108L302 107L303 106L303 107L304 107L304 106L305 105L306 105L306 104L307 104L308 104L308 105L309 105L310 105L309 104L310 104L310 103L311 103L311 102L312 102L313 102L312 101L313 101L314 102L315 102L316 102L317 102L317 103L316 103L316 104L315 105L316 105L316 106L317 106L318 106L318 107L319 107L320 108L321 107L321 106L322 105L322 104L322 103L322 102L322 101L323 101L323 102L324 103L324 104ZM301 100L300 100L299 100L300 99L300 100L301 100ZM341 100L340 100L340 99L341 100ZM342 100L341 99L341 98L341 99L342 100ZM304 100L303 100L304 100L304 99L305 99L306 98L307 98L307 99L306 99L305 99L304 100ZM298 98L299 98L299 99L298 99L297 99L297 98L298 98ZM303 98L303 99L301 99L300 99L300 98L301 98L301 99L302 98L303 98ZM340 98L340 99L339 98L338 97L339 98L340 98ZM289 97L291 97L291 96L293 97L293 98L294 98L296 98L295 99L293 98L292 98L291 98L289 98L288 98L286 97L285 97L286 96L287 96L288 96L289 97ZM315 96L314 97L314 96L314 95L315 96ZM336 97L335 97L335 96L335 95L335 96L336 96L336 97ZM332 95L331 96L330 96L329 96L328 96L328 95L329 96L330 96L330 95L330 96L331 95L332 95L332 94L332 95ZM307 93L307 94L306 94L306 93L307 93ZM310 93L311 94L310 93L309 93L308 93L309 93L310 93ZM333 94L333 95L333 94L332 94L332 93L331 93L332 93L333 94ZM314 91L314 93L315 93L316 92L317 92L318 92L319 92L320 92L321 93L323 93L325 94L326 95L328 96L328 97L327 97L328 98L329 99L329 100L330 100L331 100L331 101L330 101L330 100L329 100L328 100L327 99L326 98L325 98L324 98L323 98L323 99L322 99L321 99L320 98L319 98L318 98L319 97L318 96L318 95L316 95L315 94L314 94L313 94L313 93L312 93L313 92L314 92L312 92L311 91L312 91L312 90L314 91ZM305 89L304 90L303 90L301 90L300 90L300 91L301 91L303 91L302 92L302 93L302 94L303 95L303 96L302 95L303 94L302 95L301 95L302 94L301 94L301 93L300 93L300 94L300 96L299 95L300 94L299 93L299 92L299 91L300 90L300 89L301 89L302 89L303 89L304 89L305 88L305 89ZM309 89L309 90L308 90L308 91L308 90L307 89L308 88L309 88L309 89ZM286 96L285 96L284 95L283 94L282 94L281 93L281 92L280 91L279 90L279 89L279 88L278 88L277 87L276 86L275 85L276 85L277 85L278 86L279 86L280 87L281 88L282 88L282 89L283 89L284 90L283 91L284 91L285 92L286 92L286 93L286 94L286 96ZM298 88L299 89L298 89L297 90L298 91L297 91L297 92L296 94L295 94L294 93L293 93L292 93L291 93L290 93L290 92L290 91L289 90L289 89L290 88L291 88L291 87L292 87L293 87L294 86L294 85L295 85L296 84L297 83L298 84L299 85L298 85L299 86L298 86L297 87L298 88ZM306 82L307 83L306 84L306 83L305 83L306 84L305 84L304 84L304 83L304 82L303 83L302 83L302 82L303 82L303 81L304 82L305 81L305 80L306 81L306 82ZM261 84L260 84L260 83L260 82L260 80L261 81L262 82L262 84L261 84ZM304 80L303 81L302 80L303 80L303 79L303 80L304 79L304 80ZM299 81L297 82L298 81L298 80L299 80L300 79L299 80L299 81ZM302 78L303 78L303 79L302 80L302 79L302 78ZM306 78L306 79L305 79L305 80L305 79L304 79L305 79L305 78L304 77L305 77L306 78ZM302 77L301 78L301 77L300 77L301 77L302 77ZM301 71L302 72L303 73L302 74L302 75L302 76L303 76L304 76L304 77L303 77L303 76L303 77L302 76L301 76L301 75L301 76L300 75L300 74L300 72L301 71ZM114 72L113 72L113 71L114 71L114 72ZM103 72L102 72L102 71L102 72L103 72L104 72L103 72ZM107 70L108 70L109 70L110 70L110 71L111 71L112 71L111 72L110 72L109 72L108 72L107 72L106 72L106 71L107 71L107 72L108 71L107 71L107 70ZM290 71L289 72L289 71L289 70L290 70L291 70L291 71L290 71ZM24 71L24 70L25 70L25 71L24 71ZM100 67L101 68L102 67L102 68L103 68L103 69L104 69L105 69L106 70L105 70L104 70L102 70L103 70L103 69L102 69L101 68L100 68L99 68L98 68L98 67L97 67L97 68L96 68L95 68L96 68L96 67L97 67L98 67L99 67L100 67ZM102 66L102 65L102 66ZM301 67L301 68L300 67L300 66L301 65L302 65L302 66L301 67ZM315 56L314 57L314 56L313 57L312 57L313 56L314 56L315 56ZM215 54L214 55L213 55L212 55L213 55L214 55L215 54ZM204 54L204 55L205 55L206 55L205 55L204 55L204 54ZM196 52L195 53L194 53L192 52L193 52L194 52L195 52L196 52ZM189 49L190 49L190 51L189 51L188 51L188 50L188 49L189 49ZM321 53L321 54L320 55L319 55L317 55L316 57L315 56L315 55L313 56L312 56L311 56L312 57L311 59L310 59L310 58L310 57L309 57L310 56L311 56L312 55L313 55L315 54L316 54L317 53L319 52L320 51L320 49L321 49L322 50L322 51L321 52L321 53ZM190 48L189 49L189 48L189 47L190 48ZM324 46L325 46L326 47L324 47L323 48L322 47L321 48L320 48L320 47L321 47L322 45L322 44L323 45L324 46ZM116 43L117 44L118 44L117 44L116 44L116 43ZM118 41L116 41L115 40L116 40L117 40L118 41ZM56 41L56 42L54 41L53 40L52 40L52 39L53 39L53 40L54 40L55 40L55 41L56 41ZM124 39L123 40L124 40L125 40L124 40L125 41L126 40L127 41L126 41L127 41L127 42L127 43L126 43L126 42L125 43L124 43L125 43L124 42L123 42L121 42L121 41L122 41L123 39L124 38L125 38L124 39ZM47 36L48 36L48 37L49 38L48 38L48 37L47 37L47 36ZM324 39L325 41L323 41L323 42L324 43L324 44L323 43L322 44L322 43L322 42L322 41L322 40L322 39L322 38L322 37L323 36L322 36L323 36L323 37L323 38L324 39ZM173 38L171 38L170 38L171 37L170 36L172 35L173 35L174 35L174 36L174 37L173 38ZM193 34L192 35L191 35L191 34L192 34L193 34ZM27 33L26 33L25 33L26 32L27 32L28 32L27 33ZM177 31L176 32L177 32L178 32L178 33L177 34L178 34L179 35L180 36L180 37L182 37L182 38L181 38L181 39L179 39L178 39L177 39L176 40L175 40L174 40L176 39L177 39L175 38L176 38L175 37L177 37L177 36L176 35L175 35L175 34L174 35L174 34L174 33L174 32L175 31L176 31L177 31ZM14 30L13 30L14 30ZM98 27L97 28L96 28L97 27L98 27ZM8 26L9 26L10 26L10 27L11 27L10 27L9 27L8 27L8 26ZM95 24L95 25L96 25L97 25L98 26L99 26L100 26L99 27L97 26L96 26L94 27L94 26L93 26L94 26L94 25L94 24L95 24ZM165 24L166 25L165 26L162 26L161 27L160 26L157 26L158 26L156 25L158 25L156 24L158 24L159 24L161 24L162 24L164 23L165 24ZM104 23L103 23L103 22L104 22L105 22L105 23L104 23ZM5 23L6 24L5 23L8 23L10 24L9 24L7 25L7 26L6 26L5 25L4 25L3 24L2 25L1 24L0 24L1 25L0 25L0 21L2 22L5 23ZM84 21L82 21L80 21L81 20L82 20L83 20L84 21ZM360 19L359 19L360 18L360 19ZM1 19L0 19L0 18L1 18L2 19L1 19ZM89 21L89 22L91 21L92 21L92 22L93 23L94 22L94 21L94 20L96 20L97 20L99 21L98 22L99 22L99 23L97 24L95 24L94 23L94 24L93 25L92 26L90 26L89 26L89 27L88 27L87 28L86 29L85 30L85 31L87 31L87 32L88 33L89 33L91 33L92 34L93 34L94 34L95 35L97 35L98 35L98 36L98 37L99 38L100 39L101 38L101 37L101 36L100 35L102 35L103 34L103 33L103 32L101 31L103 30L102 29L102 28L103 27L104 28L105 28L106 28L107 28L108 28L109 29L110 29L110 30L111 31L112 31L112 32L114 31L115 30L116 31L117 32L119 33L118 34L120 34L120 35L122 35L123 35L123 36L124 36L124 37L124 38L123 39L121 39L120 40L118 40L116 40L115 40L114 40L113 40L111 41L110 42L109 43L110 43L111 42L113 41L115 41L116 41L115 42L115 43L116 44L117 44L118 44L119 43L120 44L119 45L117 45L116 46L115 46L114 46L116 45L114 45L113 45L112 46L111 46L110 46L109 47L109 48L110 48L109 49L108 49L107 49L106 49L108 49L107 49L106 49L106 50L105 51L104 51L105 51L105 52L104 53L104 52L104 51L103 51L104 52L103 52L104 52L104 53L104 54L104 55L103 55L102 56L101 56L101 57L100 57L99 58L99 59L99 60L99 61L99 62L100 63L100 64L100 65L99 65L99 64L98 64L98 63L97 63L97 62L97 61L96 60L95 60L94 60L92 60L91 60L90 60L91 60L91 61L90 61L89 61L88 60L87 60L86 60L85 61L84 61L83 62L83 63L83 64L82 65L82 66L82 67L82 68L83 69L83 70L84 71L85 71L86 72L87 71L88 71L89 71L89 70L90 69L91 69L92 69L93 68L93 69L93 70L92 70L93 71L92 71L92 72L92 71L92 72L92 73L91 74L92 74L93 74L94 74L95 74L96 74L96 75L97 75L97 76L96 76L96 77L97 77L97 78L96 78L96 79L97 80L98 81L99 81L100 81L100 80L101 80L101 81L102 81L103 81L104 81L104 80L105 79L106 79L107 79L107 78L108 78L109 78L108 79L108 80L108 81L109 81L109 80L109 79L110 79L110 78L110 79L111 79L112 79L113 79L114 79L114 80L115 80L116 80L116 79L117 79L118 79L117 80L118 80L119 81L120 81L120 82L121 82L122 83L122 84L123 84L124 84L125 84L126 84L127 85L128 85L128 86L129 86L129 88L130 88L130 89L129 90L130 90L131 90L131 91L132 91L133 91L135 92L136 92L135 93L137 92L139 93L140 93L141 94L143 95L144 95L145 95L145 97L145 99L144 100L143 101L142 102L142 103L141 103L141 104L141 106L141 107L141 108L140 108L140 110L139 111L139 112L138 112L138 113L137 113L135 113L135 114L134 114L132 115L132 116L131 117L132 117L131 118L131 119L130 119L129 121L128 122L127 123L127 124L126 124L125 125L124 125L123 124L122 124L123 125L123 126L123 127L122 128L121 129L119 129L118 129L118 130L118 131L117 131L116 131L115 131L115 132L116 132L117 133L116 133L115 133L115 135L114 135L113 135L113 136L112 136L113 137L114 137L114 138L113 139L112 140L111 140L111 141L111 142L112 142L111 142L110 143L109 143L109 144L107 144L106 143L105 142L105 141L105 140L104 139L105 138L106 137L104 137L105 136L106 134L107 134L107 132L106 133L106 132L106 130L107 129L106 128L106 127L107 127L107 126L108 124L109 122L108 121L109 120L109 119L109 118L109 116L110 114L110 111L110 110L110 108L109 108L109 107L107 106L105 105L104 105L104 104L103 102L102 100L101 98L100 97L99 97L99 96L99 95L99 94L100 93L100 92L100 93L99 92L99 91L100 90L100 89L101 89L101 88L102 87L103 86L103 85L102 84L103 84L103 83L102 83L102 82L101 81L100 81L100 82L100 83L99 83L99 82L98 82L97 82L96 82L96 81L95 80L94 80L94 79L93 78L92 77L93 77L92 77L91 77L90 76L89 76L88 76L88 75L87 74L86 74L85 74L84 74L83 74L82 74L81 73L80 73L79 73L78 72L76 72L76 71L75 71L75 70L74 70L75 69L74 69L75 69L74 68L74 67L73 66L72 65L71 64L70 63L69 62L68 62L68 61L67 60L67 59L66 58L65 58L65 59L65 60L66 60L66 61L67 61L67 62L68 62L68 63L69 64L69 65L69 66L70 66L71 67L70 67L69 66L68 66L68 65L68 64L67 64L67 63L66 63L65 62L66 62L66 61L65 61L64 60L64 59L63 58L63 57L62 56L61 56L60 56L59 55L58 54L57 52L56 51L56 50L56 49L56 48L55 47L56 46L56 44L56 43L56 42L55 42L57 42L57 43L58 43L58 42L57 41L55 40L54 40L53 39L52 38L51 37L51 36L49 36L49 35L48 35L48 34L46 33L46 32L45 32L43 32L42 31L40 30L39 30L37 30L36 30L34 30L33 29L32 29L32 30L31 30L30 30L29 31L28 31L28 30L29 29L30 29L29 29L28 29L27 30L26 31L27 31L26 32L25 32L24 33L23 33L22 34L20 34L19 35L18 35L17 35L15 36L15 35L16 35L17 35L18 34L19 34L20 34L21 33L22 33L22 32L23 31L22 31L21 31L21 32L20 31L19 31L18 31L18 30L17 30L16 30L15 30L15 29L14 28L15 27L16 27L17 27L18 26L18 27L19 26L18 26L19 25L18 25L17 26L16 25L15 26L14 25L13 25L12 24L13 24L16 23L16 24L18 24L18 23L16 23L16 22L15 22L13 22L14 21L16 21L17 21L17 20L18 20L19 20L21 19L22 19L23 19L25 19L26 19L28 19L29 20L30 19L32 20L34 20L35 20L36 20L38 20L39 20L41 21L42 21L43 21L44 21L46 20L47 20L49 20L50 20L51 20L52 20L53 20L54 21L56 20L56 21L57 20L59 20L60 21L62 21L64 21L65 21L66 22L65 22L67 22L69 22L70 22L71 23L72 22L71 22L72 21L73 21L74 21L75 21L76 22L77 22L79 22L80 22L82 22L81 22L82 21L84 22L84 23L85 22L86 21L85 20L84 20L84 19L85 18L86 18L87 19L88 20L89 21ZM66 17L65 17L68 17L69 18L70 17L71 17L72 18L72 17L73 17L75 17L75 18L76 19L77 20L79 20L77 20L78 21L76 21L74 21L73 21L71 21L68 21L67 21L66 21L65 21L64 21L63 20L65 20L66 20L68 20L66 19L64 19L62 19L64 19L62 19L61 18L62 17L65 17L66 17ZM76 17L75 17L73 17L73 16L75 16L76 17ZM104 17L103 17L102 17L101 17L100 17L99 17L99 16L100 16L102 16L104 17ZM93 17L94 17L95 17L98 16L99 17L99 18L101 18L102 17L104 18L106 18L106 19L108 18L109 19L111 19L112 20L113 21L111 21L114 22L115 22L117 23L118 23L118 24L116 25L115 25L113 24L112 24L113 25L114 25L115 26L115 27L114 27L111 26L113 27L114 28L111 28L109 27L108 27L108 26L107 26L105 25L105 26L102 26L101 25L102 25L104 25L106 25L106 24L107 23L107 22L105 21L103 21L104 21L103 20L102 20L101 20L99 20L95 20L93 20L91 20L90 19L92 19L90 19L90 18L91 17L92 16L94 16L93 17ZM80 16L81 16L83 16L83 17L82 17L83 17L83 18L82 19L81 19L80 18L78 17L80 17L78 17L80 16ZM324 17L322 17L320 17L321 16L322 16L323 17L324 17ZM87 17L86 18L85 18L84 17L85 16L88 16L89 16L88 17L87 17ZM60 19L57 19L56 19L54 18L55 17L56 16L55 16L58 16L60 16L62 16L63 16L64 17L63 17L61 17L60 18L60 19ZM331 15L330 15L328 15L326 15L328 15L331 15ZM86 15L84 15L83 15L84 15L85 14L86 15ZM325 14L324 15L321 15L319 15L317 15L318 14L319 14L321 14L325 14ZM82 13L82 14L82 15L80 15L79 15L79 14L77 14L79 14L80 13L81 13L82 13ZM72 14L73 14L74 14L74 15L70 15L68 16L66 16L66 15L68 15L64 15L62 15L64 14L65 14L67 14L69 14L71 15L70 14L70 13L71 13L72 14ZM238 19L237 19L234 19L233 19L232 19L231 18L232 18L232 17L234 16L236 15L238 14L241 14L244 14L246 13L248 13L249 13L248 14L245 14L242 15L238 16L237 17L235 18L236 18L238 19ZM85 13L86 13L88 13L89 14L90 14L91 14L92 14L94 15L95 14L97 14L99 14L100 15L98 16L97 15L94 16L92 16L90 15L88 15L87 15L87 14L86 14L84 14L83 13L85 13ZM64 12L64 13L63 13L62 14L60 14L59 14L57 14L59 13L61 12L62 13L64 12ZM287 13L287 14L288 13L291 13L293 14L294 14L294 15L293 15L290 16L289 16L291 16L292 16L293 16L294 17L294 16L296 16L299 16L299 17L303 17L303 16L305 16L307 16L309 17L309 18L308 18L310 19L311 19L312 18L314 19L316 18L317 19L318 18L320 19L319 18L320 17L330 18L333 19L337 19L339 19L340 20L341 21L342 20L344 20L346 21L348 20L350 21L351 21L350 20L354 20L356 20L359 21L360 21L360 25L359 25L357 25L358 26L359 27L359 28L357 27L355 28L354 28L352 29L351 30L350 30L349 29L346 30L345 30L344 30L343 31L342 32L343 32L343 34L342 34L342 35L340 36L340 37L339 37L338 38L337 39L336 38L336 37L335 35L336 33L337 33L337 32L338 32L340 31L342 30L344 29L344 27L343 28L340 29L339 28L337 29L334 30L335 31L333 31L331 31L331 30L330 30L329 31L325 31L322 31L319 33L315 35L317 35L317 36L318 36L319 36L320 36L321 37L321 38L321 39L321 40L320 42L319 43L318 44L317 45L316 46L315 47L314 47L313 47L312 47L311 47L311 48L310 48L310 49L309 49L309 50L308 50L308 51L307 51L308 51L309 53L309 54L309 55L308 55L307 56L306 56L306 55L307 54L306 53L307 53L306 52L305 52L305 51L305 50L304 50L303 50L302 51L301 51L302 51L301 50L302 50L302 49L301 49L300 50L299 51L298 51L298 52L299 52L299 53L300 53L301 52L302 53L303 53L301 53L301 54L300 54L299 55L300 56L301 57L301 58L302 58L302 59L301 59L302 60L302 61L302 62L301 62L300 63L300 64L299 65L297 66L296 67L295 67L294 68L294 67L293 68L292 68L291 69L290 70L290 69L289 68L288 68L287 69L286 70L286 71L286 72L287 73L288 74L289 75L289 77L289 78L288 79L287 80L286 80L285 81L285 80L284 80L283 79L283 78L282 77L281 77L280 77L280 78L279 79L279 80L279 81L280 81L280 82L280 83L281 83L282 83L282 84L283 84L283 85L283 86L283 87L284 87L284 88L284 89L283 88L281 87L281 86L281 85L280 85L280 84L280 83L279 82L278 82L278 81L279 80L278 79L279 79L278 78L279 77L278 76L278 75L278 74L277 73L277 74L275 74L274 74L275 73L274 72L274 71L274 70L273 70L272 69L272 68L271 67L270 67L271 68L270 68L269 68L268 68L267 69L266 70L265 71L264 72L263 72L262 73L262 74L261 74L260 74L260 75L260 76L260 77L260 78L260 80L259 80L259 81L258 81L258 82L257 81L256 80L256 79L255 78L255 77L255 76L254 75L254 74L253 72L253 71L253 70L253 69L251 69L250 69L249 68L250 68L249 67L248 66L247 66L247 65L246 65L245 65L243 65L241 65L240 65L239 64L237 64L237 63L236 63L235 64L233 63L232 62L231 61L230 60L229 60L228 60L228 61L229 62L229 63L230 63L230 64L231 65L231 64L232 64L232 65L231 65L232 66L233 66L234 66L235 65L236 64L236 65L237 66L238 66L239 66L239 67L240 67L240 68L239 68L239 69L238 70L238 71L237 71L237 72L236 72L235 72L235 73L234 73L233 73L232 74L231 75L230 75L229 76L228 76L227 76L227 77L226 77L225 77L224 77L223 77L223 76L223 75L223 74L223 73L222 73L222 72L221 71L220 70L219 69L219 68L219 67L218 66L217 66L217 65L217 64L216 63L215 62L215 61L215 60L215 61L214 62L213 62L212 60L213 61L213 62L214 64L215 65L216 66L215 66L216 67L217 68L217 69L217 70L217 71L218 72L219 73L219 74L220 75L221 76L222 76L222 77L223 77L223 78L223 79L224 79L224 80L225 80L226 79L227 79L228 79L229 79L230 78L231 78L231 79L231 80L231 81L230 82L229 83L229 85L228 86L227 87L226 88L224 89L223 90L222 91L222 92L221 92L220 93L220 94L219 95L219 96L219 97L219 98L220 99L220 100L220 101L220 102L221 103L221 104L221 105L220 105L220 106L219 107L217 108L216 109L215 110L215 111L215 112L216 112L216 113L215 114L216 114L215 114L214 115L213 115L213 116L213 117L212 118L212 119L211 119L211 120L210 121L209 122L208 123L207 123L206 124L205 124L204 124L203 124L202 124L201 124L200 125L199 124L198 124L198 123L198 122L198 121L197 120L196 119L196 118L195 117L195 116L195 115L194 114L194 113L194 112L193 111L193 110L193 109L192 108L192 107L192 106L192 105L192 104L193 104L193 103L193 102L194 102L194 101L193 100L193 99L193 98L193 97L192 96L192 95L191 94L190 93L189 92L189 91L189 90L189 89L190 88L190 87L189 86L188 86L189 85L187 86L186 86L185 85L185 84L184 84L183 84L182 84L181 84L179 85L178 85L177 85L176 85L175 85L174 85L173 85L172 86L171 85L170 84L169 84L169 83L168 83L167 82L167 81L166 81L166 80L165 80L165 79L164 79L164 78L163 78L163 77L163 76L162 75L163 75L163 74L164 74L163 73L164 73L164 72L164 71L164 70L163 69L163 68L164 67L164 66L165 66L165 65L165 64L166 64L166 63L167 62L168 62L169 61L170 61L170 60L170 59L171 58L171 57L172 56L173 56L174 55L174 54L175 54L175 55L176 55L177 55L178 55L179 54L180 54L181 54L181 53L183 53L185 53L186 53L187 53L188 53L190 53L191 53L191 54L191 55L190 56L191 56L191 57L193 57L194 57L195 58L196 59L197 59L198 59L199 60L200 59L200 58L201 57L202 57L203 57L203 58L204 58L205 58L206 58L207 59L208 59L209 59L210 59L211 58L212 59L213 59L214 59L215 58L214 58L215 58L215 57L215 56L216 55L216 54L216 53L215 53L214 54L213 54L212 53L211 53L210 54L209 53L208 53L207 52L206 52L207 51L206 51L207 50L209 50L209 49L211 49L212 48L214 48L215 48L217 49L218 49L220 49L222 48L221 47L220 47L219 46L218 45L217 45L218 44L218 43L219 43L218 43L217 43L216 43L215 44L216 45L217 45L216 45L215 45L214 46L213 45L214 45L212 45L213 44L214 44L213 44L212 44L212 43L211 43L210 44L210 45L209 45L209 46L208 47L208 48L209 49L208 49L207 49L206 50L206 49L205 49L204 49L204 50L203 50L203 51L204 51L204 52L203 52L203 53L203 54L202 54L202 53L201 52L201 51L200 51L200 50L199 50L199 49L200 48L199 48L198 48L198 47L197 47L196 46L195 46L195 45L194 45L194 44L193 44L192 45L193 46L194 46L194 47L195 48L196 48L197 49L198 49L198 50L197 50L196 50L197 51L196 52L196 51L196 50L195 50L195 49L194 49L193 49L192 48L191 48L191 47L190 46L189 46L188 46L187 46L187 47L185 47L183 47L183 48L182 49L181 49L180 50L180 51L180 52L179 52L179 53L178 53L177 53L176 53L175 54L174 54L173 53L172 53L171 53L171 52L170 51L171 51L171 50L171 49L171 48L171 47L172 46L173 46L175 46L176 47L178 47L179 46L179 44L178 43L177 42L176 42L175 41L177 41L178 41L178 40L179 41L181 40L182 39L183 39L184 38L185 37L186 36L187 37L187 36L188 36L189 36L189 35L188 34L188 33L189 33L190 33L191 32L191 33L190 33L191 34L190 34L190 35L191 36L192 36L193 36L194 36L195 36L196 35L198 35L199 35L199 36L200 36L200 35L201 35L201 34L201 33L202 33L203 32L203 33L204 33L204 32L203 31L205 31L206 30L207 31L208 31L209 30L208 29L206 30L204 30L203 30L202 30L201 29L202 28L201 27L202 27L202 26L205 25L205 24L204 24L202 24L201 25L201 26L200 26L198 27L197 29L198 29L199 30L198 31L197 31L196 33L196 34L195 34L194 35L193 35L193 34L192 33L191 31L190 31L188 32L187 32L186 31L185 30L185 28L186 27L189 27L191 26L192 24L195 22L196 21L199 20L201 20L203 20L205 19L206 19L208 19L211 20L210 20L211 20L212 20L214 21L217 21L220 22L221 23L220 24L218 24L214 23L213 23L215 24L215 26L216 26L217 26L217 25L220 25L222 24L223 24L224 24L225 23L224 23L224 22L223 21L226 22L227 22L226 22L226 23L228 23L228 22L230 22L234 21L233 22L235 22L237 22L239 21L240 22L241 21L240 20L241 20L244 20L245 21L249 22L249 21L248 21L247 21L247 20L247 19L249 18L249 17L250 17L253 17L253 18L252 19L253 20L253 21L254 22L253 22L251 24L252 24L253 23L254 23L255 22L254 22L255 21L254 21L254 20L254 19L253 19L255 18L255 17L256 18L255 19L256 19L256 18L258 18L260 18L262 18L261 17L261 16L262 16L265 16L267 16L266 16L267 15L268 15L270 14L273 14L276 14L277 14L279 14L281 14L281 13L282 13L284 12L286 13L285 13L287 13ZM229 49L230 49L230 50L229 51L229 52L230 53L231 53L232 53L234 53L234 52L234 51L233 51L233 50L233 49L234 49L235 49L234 48L233 48L233 49L233 48L232 48L233 48L233 47L231 47L231 46L230 46L230 45L231 45L232 45L233 45L233 44L233 43L232 43L231 43L230 43L229 44L228 44L227 45L228 46L227 47L229 48L229 49ZM86 12L86 13L84 12L86 12ZM70 12L68 13L66 12L67 12L69 12L70 12ZM205 12L202 13L201 12L203 12L205 12ZM70 11L69 12L67 12L67 11L68 11L69 11L70 11ZM84 12L83 12L82 12L81 12L81 11L83 11L84 12ZM80 12L79 12L77 12L75 12L76 11L75 11L76 11L79 11L80 12ZM285 12L279 12L281 11L282 11L283 11L285 11L285 12ZM198 10L202 11L199 11L198 12L197 13L196 13L194 13L195 12L193 12L191 11L190 10L193 10L194 10L195 10L196 10L197 10L198 10ZM205 10L207 10L206 10L203 11L200 10L198 10L197 10L200 9L202 10L203 9L205 10ZM231 9L230 10L229 10L228 10L227 10L227 9L225 9L227 9L228 9L229 9L230 9L232 9L231 9ZM280 11L278 11L275 11L273 11L273 10L271 10L274 9L276 9L278 9L280 10L280 11ZM93 10L94 11L93 11L91 12L89 12L87 12L86 11L87 11L85 11L84 10L83 10L84 9L85 9L86 9L85 9L88 9L89 9L91 9L92 10L93 10ZM112 7L114 7L116 7L118 7L118 8L116 8L113 8L112 8L115 8L112 9L111 9L109 10L107 10L106 11L103 11L104 11L105 11L104 12L102 12L100 13L102 13L99 14L97 14L94 14L92 14L91 14L90 13L92 13L92 12L95 12L94 12L92 12L93 11L95 11L93 10L96 10L97 10L98 10L96 9L92 9L91 9L90 9L89 8L88 8L90 8L91 8L93 8L95 7L96 7L97 8L98 7L99 7L101 7L104 7L107 7L109 7L112 7ZM153 6L159 7L157 8L153 8L148 8L149 8L152 8L155 8L157 8L158 8L157 9L159 8L164 8L167 8L168 9L164 9L163 10L160 10L162 10L161 11L160 11L160 12L162 13L160 13L158 13L160 14L160 15L159 15L161 16L158 16L160 16L159 17L158 17L156 17L158 17L158 18L156 17L155 18L157 18L158 19L156 20L156 19L154 19L155 19L154 20L156 20L158 20L155 21L152 22L149 22L148 22L147 22L146 23L144 24L143 24L142 24L140 25L139 25L139 26L139 27L137 27L138 28L137 29L137 30L135 30L134 29L132 29L131 29L130 28L128 26L128 25L126 24L127 23L126 23L127 22L129 21L129 20L128 20L127 21L125 20L126 19L127 19L129 19L127 19L126 18L125 19L124 18L125 17L124 16L123 15L121 15L121 14L119 14L117 14L114 14L111 14L110 14L109 13L111 13L113 13L109 12L107 12L111 11L114 11L115 10L112 10L113 9L116 9L118 9L117 8L120 8L123 8L126 8L127 8L130 8L132 8L133 8L135 8L133 8L133 7L137 7L140 7L141 6L145 6L153 6Z";var qr=360,tr=180,Lr=o=>o+180,rr=o=>90-o,Cn=23.44,An=66.56,Tn=o=>o===0?"0":`${Math.abs(o)}°${o>0?"E":"W"}`,Dn=o=>o===0?"0":`${Math.abs(o)}°${o>0?"N":"S"}`;function $i(o){let t=[],e=[],r=null;for(let a of o)r!==null&&Math.abs(a.longitude-r)>180&&(e.length&&t.push(e),e=[]),e.push(`${Lr(a.longitude)},${rr(a.latitude)}`),r=a.longitude;return e.length&&t.push(e),t.filter(a=>a.length>1).map(a=>a.join(" "))}var En={mc:"MC",ic:"IC",ascendant:"ASC",descendant:"DSC"},pt=class extends y{renderData(t){let e=t.lines??[],r=t.birthDetails;return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t("Astrocartography")}</h2>${r?s`<div class="meta">${q(this.effectiveLang(),r.date,r.time)} · ${Dn(Math.round(r.latitude))} ${Tn(Math.round(r.longitude))}</div>`:i}</header>${this.renderMap(e,r)} ${this.renderLegend(e)} ${t.summary&&!this.hideReadings?s`<p class="summary">${t.summary}</p>`:i} ${this.renderInterpretations(e)}</div>`}renderMap(t,e){return s`<svg viewBox="0 0 ${qr} ${tr}" part="chart" role="img" aria-label="${this.t("World map of planetary astrocartography lines")}"><title>${this.t("Astrocartography world map")}</title><desc>${this.t("Equirectangular world map. Each body has a Midheaven and Imum Coeli meridian and a curved Ascendant and Descendant line, colored per body.")}</desc><rect class="map-frame" x="0" y="0" width="${qr}" height="${tr}"/><path class="land" d="${Rn}" fill-rule="evenodd"/>${this.renderGraticule()} ${t.map((r,a)=>this.renderBodyLines(r,a))} ${e?L`<text class="birthplace" x=${Lr(e.longitude)} y=${rr(e.latitude)} text-anchor="middle" dominant-baseline="central"><title>${this.t("Birth location")}</title>★</text>`:i}</svg>`}renderGraticule(){let t=[];for(let a=-150;a<=150;a+=30){let n=Lr(a),l=a===0;t.push(L`<line class=${l?"grat-axis":"grat"} x1=${n} y1="0" x2=${n} y2=${tr} />`),t.push(L`<text class="axis-label" x=${n} y=${tr-2} text-anchor="middle">${Tn(a)}</text>`)}let e=[];for(let a=-60;a<=60;a+=30){let n=rr(a),l=a===0;e.push(L`<line class=${l?"grat-axis":"grat"} x1="0" y1=${n} x2=${qr} y2=${n} />`),e.push(L`<text class="axis-label" x="2" y=${n-1}>${Dn(a)}</text>`)}let r=[Cn,-Cn,An,-An].map(a=>L`<line class="grat-ref" x1="0" y1=${rr(a)} x2=${qr} y2=${rr(a)} />`);return L`${t}${e}${r}`}renderBodyLines(t,e){let r=ct(t.planet,e),a=t.symbol||R(t.planet)||t.planet,n=[this.renderMeridian(t.mc.longitude,r,a,t.planet,"mc",!1),this.renderMeridian(t.ic.longitude,r,a,t.planet,"ic",!0),this.renderCurve(t.ascendant.points,r,a,t.planet,"ascendant",!1),this.renderCurve(t.descendant.points,r,a,t.planet,"descendant",!0)];return L`${n}`}renderMeridian(t,e,r,a,n,l){let d=Lr(t),c=n==="ic"?tr-7:9;return L`<g>
|
|
4
|
-
<line class=${`acg-line${l?" dashed":""}`} stroke=${e} x1=${d} y1="0" x2=${d} y2=${
|
|
1
|
+
"use strict";var RoxyUI=(()=>{var Tr=Object.defineProperty;var Os=Object.getOwnPropertyDescriptor;var jo=Object.getOwnPropertyNames;var Ho=Object.prototype.hasOwnProperty;var Fo=(o,t)=>{for(var e in t)Tr(o,e,{get:t[e],enumerable:!0})},Ko=(o,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jo(t))!Ho.call(o,a)&&a!==e&&Tr(o,a,{get:()=>t[a],enumerable:!(r=Os(t,a))||r.enumerable});return o};var Vo=o=>Ko(Tr({},"__esModule",{value:!0}),o),g=(o,t,e,r)=>{for(var a=r>1?void 0:r?Os(t,e):t,n=o.length-1,l;n>=0;n--)(l=o[n])&&(a=(r?l(t,e,a):l(a))||a);return r&&a&&Tr(t,e,a),a};var Fd={};Fo(Fd,{ROXY_COMPONENTS:()=>ka,ROXY_UI_COMPONENTS:()=>Hd,ROXY_UI_TOKENS_STYLE_ID:()=>Sa,ROXY_UI_VERSION:()=>ua,RoxyAngelNumberCard:()=>nt,RoxyAngelNumberLookup:()=>ot,RoxyArudhaPadas:()=>lt,RoxyAshtakavargaGrid:()=>Me,RoxyAspectsTable:()=>dt,RoxyAstrocartographyMap:()=>pt,RoxyBhavChalitTable:()=>mt,RoxyBhavaBalaTable:()=>ht,RoxyBiorhythmChart:()=>ze,RoxyBodygraph:()=>Ne,RoxyCharaKarakas:()=>yt,RoxyChoghadiyaGrid:()=>ft,RoxyCompatibilityCard:()=>Ge,RoxyCrystalCard:()=>xt,RoxyCrystalGrid:()=>_e,RoxyDashaTimeline:()=>we,RoxyData:()=>Oe,RoxyDivisionalChart:()=>Be,RoxyDoshaCard:()=>Ie,RoxyDreamCard:()=>wt,RoxyDreamSearch:()=>kt,RoxyEndpointForm:()=>X,RoxyEphemerisTable:()=>je,RoxyFixedStars:()=>St,RoxyForecastDigest:()=>Rt,RoxyForecastTimeline:()=>Ct,RoxyGocharaTable:()=>At,RoxyGunaMilan:()=>Tt,RoxyHdConnection:()=>Dt,RoxyHdPenta:()=>Et,RoxyHdTypeCard:()=>Mt,RoxyHdVariables:()=>zt,RoxyHeliacalTable:()=>Pt,RoxyHexagram:()=>Nt,RoxyHoraTable:()=>Gt,RoxyHoroscopeCard:()=>He,RoxyKpChart:()=>Fe,RoxyKpPlanetsTable:()=>_t,RoxyKpRulingPlanets:()=>Ot,RoxyLocalSpaceCompass:()=>Bt,RoxyLocationSearch:()=>Q,RoxyMoonPhase:()=>Ke,RoxyNakshatraCard:()=>It,RoxyNatalChart:()=>Ce,RoxyNumerologyCard:()=>qe,RoxyPanchangTable:()=>Ue,RoxyPositionsTable:()=>Ye,RoxyProfectionCard:()=>jt,RoxyReferenceCard:()=>Ht,RoxyRelocationWheel:()=>Ft,RoxyShadbalaTable:()=>Kt,RoxySynastryChart:()=>Vt,RoxyTarotCard:()=>Ze,RoxyTarotCatalog:()=>We,RoxyTarotSpread:()=>Je,RoxyTransitWheel:()=>xe,RoxyTransitsTable:()=>Xe,RoxyUpagrahaTable:()=>qt,RoxyVedicAspects:()=>Ut,RoxyVedicDaily:()=>Yt,RoxyVedicKundli:()=>be,RoxyVedicPlanetsTable:()=>Zt,RoxyWesternPlanetsTable:()=>Wt,RoxyYogaList:()=>Qe,injectRoxyTokens:()=>Ra,roxyDataScript:()=>un,serializeRoxyData:()=>Fa});var Dr=globalThis,Er=Dr.ShadowRoot&&(Dr.ShadyCSS===void 0||Dr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ca=Symbol(),Bs=new WeakMap,cr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Ca)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(Er&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Bs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Bs.set(e,t))}return t}toString(){return this.cssText}},Is=o=>new cr(typeof o=="string"?o:o+"",void 0,Ca),u=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,a,n)=>r+(l=>{if(l._$cssResult$===!0)return l.cssText;if(typeof l=="number")return l;throw Error("Value passed to 'css' function must be a 'css' function result: "+l+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+o[n+1],o[0]);return new cr(e,o,Ca)},js=(o,t)=>{if(Er)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),a=Dr.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=e.cssText,o.appendChild(r)}},Aa=Er?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Is(e)})(o):o;var{is:qo,defineProperty:Uo,getOwnPropertyDescriptor:Yo,getOwnPropertyNames:Zo,getOwnPropertySymbols:Wo,getPrototypeOf:Jo}=Object,Mr=globalThis,Hs=Mr.trustedTypes,Xo=Hs?Hs.emptyScript:"",Qo=Mr.reactiveElementPolyfillSupport,pr=(o,t)=>o,mr={toAttribute(o,t){switch(t){case Boolean:o=o?Xo: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}},zr=(o,t)=>!qo(o,t),Fs={attribute:!0,type:String,converter:mr,reflect:!1,useDefault:!1,hasChanged:zr};Symbol.metadata??=Symbol("metadata"),Mr.litPropertyMetadata??=new WeakMap;var ve=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=Fs){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(),a=this.getPropertyDescriptor(t,r,e);a!==void 0&&Uo(this.prototype,t,a)}}static getPropertyDescriptor(t,e,r){let{get:a,set:n}=Yo(this.prototype,t)??{get(){return this[e]},set(l){this[e]=l}};return{get:a,set(l){let d=a?.call(this);n?.call(this,l),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Fs}static _$Ei(){if(this.hasOwnProperty(pr("elementProperties")))return;let t=Jo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(pr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pr("properties"))){let e=this.properties,r=[...Zo(e),...Wo(e)];for(let a of r)this.createProperty(a,e[a])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,a]of e)this.elementProperties.set(r,a)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let a=this._$Eu(e,r);a!==void 0&&this._$Eh.set(a,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 a of r)e.unshift(Aa(a))}else t!==void 0&&e.push(Aa(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 js(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),a=this.constructor._$Eu(t,r);if(a!==void 0&&r.reflect===!0){let n=(r.converter?.toAttribute!==void 0?r.converter:mr).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(a):this.setAttribute(a,n),this._$Em=null}}_$AK(t,e){let r=this.constructor,a=r._$Eh.get(t);if(a!==void 0&&this._$Em!==a){let n=r.getPropertyOptions(a),l=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:mr;this._$Em=a;let d=l.fromAttribute(e,n.type);this[a]=d??this._$Ej?.get(a)??d,this._$Em=null}}requestUpdate(t,e,r,a=!1,n){if(t!==void 0){let l=this.constructor;if(a===!1&&(n=this[t]),r??=l.getPropertyOptions(t),!((r.hasChanged??zr)(n,e)||r.useDefault&&r.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(l._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:a,wrapped:n},l){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,l??e??this[t]),n!==!0||l!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),a===!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[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[a,n]of r){let{wrapped:l}=n,d=this[a];l!==!0||this._$AL.has(a)||d===void 0||this.C(a,void 0,n,d)}}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){}};ve.elementStyles=[],ve.shadowRootOptions={mode:"open"},ve[pr("elementProperties")]=new Map,ve[pr("finalized")]=new Map,Qo?.({ReactiveElement:ve}),(Mr.reactiveElementVersions??=[]).push("2.1.2");var Na=globalThis,Ks=o=>o,Pr=Na.trustedTypes,Vs=Pr?Pr.createPolicy("lit-html",{createHTML:o=>o}):void 0,Js="$lit$",Ae=`lit$${Math.random().toFixed(9).slice(2)}$`,Xs="?"+Ae,ei=`<${Xs}>`,rt=document,gr=()=>rt.createComment(""),ur=o=>o===null||typeof o!="object"&&typeof o!="function",Ga=Array.isArray,ti=o=>Ga(o)||typeof o?.[Symbol.iterator]=="function",Ta=`[
|
|
2
|
+
\f\r]`,hr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qs=/-->/g,Us=/>/g,et=RegExp(`>|${Ta}(?:([^\\s"'>=/]+)(${Ta}*=${Ta}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ys=/'/g,Zs=/"/g,Qs=/^(?:script|style|textarea|title)$/i,_a=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),s=_a(1),L=_a(2),Zd=_a(3),at=Symbol.for("lit-noChange"),i=Symbol.for("lit-nothing"),Ws=new WeakMap,tt=rt.createTreeWalker(rt,129);function en(o,t){if(!Ga(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vs!==void 0?Vs.createHTML(t):t}var ri=(o,t)=>{let e=o.length-1,r=[],a,n=t===2?"<svg>":t===3?"<math>":"",l=hr;for(let d=0;d<e;d++){let c=o[d],p,h,m=-1,f=0;for(;f<c.length&&(l.lastIndex=f,h=l.exec(c),h!==null);)f=l.lastIndex,l===hr?h[1]==="!--"?l=qs:h[1]!==void 0?l=Us:h[2]!==void 0?(Qs.test(h[2])&&(a=RegExp("</"+h[2],"g")),l=et):h[3]!==void 0&&(l=et):l===et?h[0]===">"?(l=a??hr,m=-1):h[1]===void 0?m=-2:(m=l.lastIndex-h[2].length,p=h[1],l=h[3]===void 0?et:h[3]==='"'?Zs:Ys):l===Zs||l===Ys?l=et:l===qs||l===Us?l=hr:(l=et,a=void 0);let C=l===et&&o[d+1].startsWith("/>")?" ":"";n+=l===hr?c+ei:m>=0?(r.push(p),c.slice(0,m)+Js+c.slice(m)+Ae+C):c+Ae+(m===-2?d:C)}return[en(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},yr=class o{constructor({strings:t,_$litType$:e},r){let a;this.parts=[];let n=0,l=0,d=t.length-1,c=this.parts,[p,h]=ri(t,e);if(this.el=o.createElement(p,r),tt.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(a=tt.nextNode())!==null&&c.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let m of a.getAttributeNames())if(m.endsWith(Js)){let f=h[l++],C=a.getAttribute(m).split(Ae),w=/([.?@])?(.*)/.exec(f);c.push({type:1,index:n,name:w[2],strings:C,ctor:w[1]==="."?Ea:w[1]==="?"?Ma:w[1]==="@"?za:Qt}),a.removeAttribute(m)}else m.startsWith(Ae)&&(c.push({type:6,index:n}),a.removeAttribute(m));if(Qs.test(a.tagName)){let m=a.textContent.split(Ae),f=m.length-1;if(f>0){a.textContent=Pr?Pr.emptyScript:"";for(let C=0;C<f;C++)a.append(m[C],gr()),tt.nextNode(),c.push({type:2,index:++n});a.append(m[f],gr())}}}else if(a.nodeType===8)if(a.data===Xs)c.push({type:2,index:n});else{let m=-1;for(;(m=a.data.indexOf(Ae,m+1))!==-1;)c.push({type:7,index:n}),m+=Ae.length-1}n++}}static createElement(t,e){let r=rt.createElement("template");return r.innerHTML=t,r}};function Xt(o,t,e=o,r){if(t===at)return t;let a=r!==void 0?e._$Co?.[r]:e._$Cl,n=ur(t)?void 0:t._$litDirective$;return a?.constructor!==n&&(a?._$AO?.(!1),n===void 0?a=void 0:(a=new n(o),a._$AT(o,e,r)),r!==void 0?(e._$Co??=[])[r]=a:e._$Cl=a),a!==void 0&&(t=Xt(o,a._$AS(o,t.values),a,r)),t}var Da=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,a=(t?.creationScope??rt).importNode(e,!0);tt.currentNode=a;let n=tt.nextNode(),l=0,d=0,c=r[0];for(;c!==void 0;){if(l===c.index){let p;c.type===2?p=new fr(n,n.nextSibling,this,t):c.type===1?p=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(p=new Pa(n,this,t)),this._$AV.push(p),c=r[++d]}l!==c?.index&&(n=tt.nextNode(),l++)}return tt.currentNode=rt,a}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++}},fr=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,a){this.type=2,this._$AH=i,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=a,this._$Cv=a?.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=Xt(this,t,e),ur(t)?t===i||t==null||t===""?(this._$AH!==i&&this._$AR(),this._$AH=i):t!==this._$AH&&t!==at&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ti(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!==i&&ur(this._$AH)?this._$AA.nextSibling.data=t:this.T(rt.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,a=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=yr.createElement(en(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===a)this._$AH.p(e);else{let n=new Da(a,this),l=n.u(this.options);n.p(e),this.T(l),this._$AH=n}}_$AC(t){let e=Ws.get(t.strings);return e===void 0&&Ws.set(t.strings,e=new yr(t)),e}k(t){Ga(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,a=0;for(let n of t)a===e.length?e.push(r=new o(this.O(gr()),this.O(gr()),this,this.options)):r=e[a],r._$AI(n),a++;a<e.length&&(this._$AR(r&&r._$AB.nextSibling,a),e.length=a)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=Ks(t).nextSibling;Ks(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Qt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,a,n){this.type=1,this._$AH=i,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=i}_$AI(t,e=this,r,a){let n=this.strings,l=!1;if(n===void 0)t=Xt(this,t,e,0),l=!ur(t)||t!==this._$AH&&t!==at,l&&(this._$AH=t);else{let d=t,c,p;for(t=n[0],c=0;c<n.length-1;c++)p=Xt(this,d[r+c],e,c),p===at&&(p=this._$AH[c]),l||=!ur(p)||p!==this._$AH[c],p===i?t=i:t!==i&&(t+=(p??"")+n[c+1]),this._$AH[c]=p}l&&!a&&this.j(t)}j(t){t===i?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ea=class extends Qt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===i?void 0:t}},Ma=class extends Qt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==i)}},za=class extends Qt{constructor(t,e,r,a,n){super(t,e,r,a,n),this.type=5}_$AI(t,e=this){if((t=Xt(this,t,e,0)??i)===at)return;let r=this._$AH,a=t===i&&r!==i||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==i&&(r===i||a);a&&this.element.removeEventListener(this.name,this,r),n&&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)}},Pa=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){Xt(this,t)}};var ai=Na.litHtmlPolyfillSupport;ai?.(yr,fr),(Na.litHtmlVersions??=[]).push("3.3.3");var tn=(o,t,e)=>{let r=e?.renderBefore??t,a=r._$litPart$;if(a===void 0){let n=e?.renderBefore??null;r._$litPart$=a=new fr(t.insertBefore(gr(),n),n,void 0,e??{})}return a._$AI(o),a};var Oa=globalThis,Te=class extends ve{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=tn(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return at}};Te._$litElement$=!0,Te.finalized=!0,Oa.litElementHydrateSupport?.({LitElement:Te});var si=Oa.litElementPolyfillSupport;si?.({LitElement:Te});(Oa.litElementVersions??=[]).push("4.2.2");var b=o=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(o,t)}):customElements.define(o,t)};var ni={attribute:!0,type:String,converter:mr,reflect:!1,hasChanged:zr},oi=(o=ni,t,e)=>{let{kind:r,metadata:a}=e,n=globalThis.litPropertyMetadata.get(a);if(n===void 0&&globalThis.litPropertyMetadata.set(a,n=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),n.set(e.name,o),r==="accessor"){let{name:l}=e;return{set(d){let c=t.get.call(this);t.set.call(this,d),this.requestUpdate(l,c,o,!0,d)},init(d){return d!==void 0&&this.C(l,void 0,o,d),d}}}if(r==="setter"){let{name:l}=e;return function(d){let c=this[l];t.call(this,d),this.requestUpdate(l,c,o,!0,d)}}throw Error("Unsupported decorator location: "+r)};function S(o){return(t,e)=>typeof e=="object"?oi(o,t,e):((r,a,n)=>{let l=a.hasOwnProperty(n);return a.constructor.createProperty(n,r),l?Object.getOwnPropertyDescriptor(a,n):void 0})(o,t,e)}function G(o){return S({...o,state:!0,attribute:!1})}var ii=[{key:"spiritual",source:"Spiritual"},{key:"love",source:"Love"},{key:"career",source:"Career"},{key:"money",source:"Money"},{key:"twinFlame",source:"Twin flame"}];function Gr(o,t,e,r){let a=[];if(t)for(let n of ii){let l=t[n.key];l&&a.push({label:o(n.source),body:l})}return e&&a.push({label:o("Biblical"),body:e}),r&&a.push({label:o("Shadow"),body:r}),a}var oe=o=>o??i;var rn=["de","en","es","fr","hi","pt","ru","tr"];function Ba(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}function an(o){let t=Ba(o);if(!t)return;let e=t.toLowerCase().split("-")[0];return rn.includes(e)?e:void 0}function me(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}function N(o){return o?o.charAt(0).toUpperCase()+o.slice(1).toLowerCase():""}function O(o){return o.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var sn="__ROXY_UI_I18N__";function Ia(){let o=globalThis,t=o[sn];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[sn]=e,e}function nn(o,t){return t?o.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):o}function on(o,t,e){if(!o)return nn(t,e);let{catalogs:r}=Ia(),a=o.toLowerCase(),n=r[a]??r[a.split("-")[0]];return nn(n?.[me(t)]??t,e)}function ln(o){if(!o)return;let{fieldLabels:t}=Ia(),e=o.toLowerCase();return t[e]??t[e.split("-")[0]]}function dn(o,t){return ln(o)?.fields[t]}function cn(o,t,e){return ln(o)?.enums[`${t}.${e}`]}function pn(o){let{listeners:t}=Ia();return t.add(o),()=>{t.delete(o)}}var _r=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=pn(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var De=class extends Te{constructor(){super();this.translator=(e,r)=>this.t(e,r);new _r(this)}t(e,r){return on(this.effectiveLang(),e,r)}effectiveLang(){return Ba(this)}};var x=u`:host{font-family:var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);line-height:var(--roxy-leading-normal,1.5);animation:roxy-fade-in var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1)) both;background:0 0;display:block;container-type:inline-size}: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,var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif))}@keyframes roxy-fade-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border,#e4e4e7) 0%, color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent) 50%, var(--roxy-border,#e4e4e7) 100%);border-radius:var(--roxy-radius-md,8px);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,1.5rem);color:var(--roxy-muted,#71717a);text-align:center;font-size:var(--roxy-text-sm,.875rem)}.roxy-error{gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-lg,1.5rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);justify-items:start;display:grid}.roxy-surface{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a)}:host(:focus-within) .roxy-card{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-attribution{margin-top:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink,#b45309);text-decoration:underline}.roxy-attribution a:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm,.5rem);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-fg,#0a0a0a);font-family:inherit;font-size:var(--roxy-text-sm,.875rem);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent,#f59e0b);color:var(--roxy-accent-ink,#b45309)}.roxy-edit:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}:host{font-variant-emoji:text}`;var er="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function Or(o){return!!o&&!o.startsWith("pk_")}function Br(o,t={}){t.warn&&console.warn(er),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:er},bubbles:!0,composed:!0}))}var li="https://roxyapi.com/api/v2";async function ja(o){try{let t=await o.json();if(t?.error)return t.error}catch{}return`Request failed (${o.status})`}var Ir=class{constructor(t){this.baseUrl=li;this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){if(!this.submitUrl&&this.secretKeyRefused())return;this.abort?.abort();let e=new AbortController;this.abort=e,this.host.loading=!0,this.host.error=null;try{let r=this.submitUrl?await fetch(this.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t),signal:e.signal}):await this.callApi(t,e.signal);if(!r.ok)throw new Error(await ja(r));let a=await r.json();if(e.signal.aborted)return;this.host.data=a}catch(r){if(r?.name==="AbortError")return;this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===e&&(this.abort=void 0),e.signal.aborted||(this.host.loading=!1)}}callApi(t,e){let r=new URL(`${this.baseUrl}${t.path}`);for(let[n,l]of Object.entries(t.query??{}))l!=null&&r.searchParams.set(n,String(l));let a={Accept:"application/json"};return this.publishableKey&&(a["X-API-Key"]=this.publishableKey),t.body!=null&&(a["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:a,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}secretKeyRefused(){return Or(this.publishableKey)?(this.host.error=er,Br(this.host),!0):!1}};function mn(o,t,e,r=[]){let a={...e},n=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,h)=>{let m=a[h];return delete a[h],encodeURIComponent(String(m??""))}),l=new Set(r),d={},c={};for(let[p,h]of Object.entries(a))h===void 0||h===""||(t==="GET"||l.has(p)?d[p]=h:c[p]=h);return{path:n,method:t,query:d,body:t==="POST"?c:void 0}}function j(){return s`<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 M=u`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:14px;height:14px;color:var(--roxy-muted,#71717a);transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Ha=u`.interp-keywords{flex-wrap:wrap;gap:.25rem;display:flex}.interp-keywords .kw{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem);padding:1px 8px}`,_=u`.block{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.block h3{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.interp-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem)}.interp-card summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);align-items:center;gap:var(--roxy-space-sm,.5rem);font-weight:500;font-size:var(--roxy-text-sm,.875rem);display:flex}.interp-card summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-radius:var(--roxy-radius-sm,4px)}.interp-lead{flex-wrap:wrap;flex:auto;order:1;align-items:baseline;gap:.4rem;min-width:0;display:inline-flex}.interp-aside{flex-shrink:0;order:2;align-items:center;gap:.5rem;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted,#71717a);white-space:nowrap;font-weight:400}@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,.5rem);gap:var(--roxy-space-sm,.5rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);overflow-wrap:anywhere;line-height:1.6;display:grid}.interp-body p{margin:0}${Ha}`;function st(o){return o?.length?s`<div class="interp-keywords">${o.map(t=>s`<span class="kw">${t}</span>`)}</div>`:i}function xr(o,t){if(!o)return i;let e=(r,a)=>a?s`<p><strong>${t(r)}</strong> ${a}</p>`:i;return s`${o.summary?s`<p>${o.summary}</p>`:i} ${e("Impact:",o.impact)}${e("Timing:",o.timing)}${e("Guidance:",o.guidance)} ${st(o.keywords)}`}function hn(o,t,e){let r=o.filter(a=>!!a.body);return r.length===0?i:s`<section class="block" part="section readings"><h3>${e}</h3>${r.map((a,n)=>s`<details class="interp-card" part="reading" name="${t}" ?open="${n===0}"><summary><span class="interp-lead">${a.label}</span> ${j()} ${a.aside?s`<span class="interp-aside"><small>${a.aside}</small></span>`:i}</summary><div class="interp-body"><p>${a.body}</p>${a.extra??i}</div></details>`)}</section>`}var gn="roxy-data";function Fa(o){return JSON.stringify(o).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function un(o){return`<script type="application/json" class="${gn}">${Fa(o)}<\/script>`}function di(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var jr=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(di(t)&&t.classList.contains(gn))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var y=class extends De{constructor(){super();this.data=null;this.endpoint="";this.method="POST";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.onEdit=()=>{this.editing=!0};this.onFormSubmit=e=>{let r=e.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetcher.run(mn(this.endpoint,this.method,r.values,r.queryKeys??[]))};new jr(this),this.fetcher=new Ir(this)}static{this.styles=[x]}willUpdate(e){e.has("publishableKey")&&(this.fetcher.publishableKey=this.publishableKey),e.has("baseUrl")&&this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),e.has("submitUrl")&&(this.fetcher.submitUrl=this.submitUrl)}render(){return s`${this.hiddenSectionsStyle()}${this.renderState()}`}hiddenSectionsStyle(){let e=this.hideSections.split(",").map(a=>a.trim().toLowerCase()).filter(a=>/^[a-z][a-z0-9-]*$/.test(a));if(e.length===0)return i;let r=e.map(a=>`[part~="${a}"]{display:none!important}`).join("");return s`<style>${r}</style>`}renderState(){return 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()?s`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderInterpretation(e,r,a){return this.hideReadings?i:hn(e,r,this.t(a??"Reading"))}renderResult(e){let r=this.sticky?s`${this.renderForm()}${this.renderData(e)}`:s`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.renderData(e)}`;return this.showAttribution()?s`${r}${this.renderAttribution()}`:r}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return s`<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.endpoint?this.renderForm():this.renderEmpty()}renderForm(){return s`<roxy-endpoint-form part="form" data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${oe(this.specUrl)}" publishable-key="${oe(this.publishableKey)}" submit-label="${oe(this.submitLabel)}" lang="${oe(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.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 s`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return s`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=s`<div class="roxy-error" role="alert" part="error">${this.t(e)}</div>`;return this.endpoint?s`${r}${this.renderForm()}`:r}};g([S({attribute:!1})],y.prototype,"data",2),g([S({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),g([S({type:String})],y.prototype,"method",2),g([S({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),g([S({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),g([S({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),g([S({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),g([S({type:Boolean})],y.prototype,"remember",2),g([S({type:Boolean,attribute:"hide-readings",reflect:!0})],y.prototype,"hideReadings",2),g([S({type:String,attribute:"hide-sections",reflect:!0})],y.prototype,"hideSections",2),g([S({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),g([S({type:String})],y.prototype,"attribution",2),g([G()],y.prototype,"loading",2),g([G()],y.prototype,"error",2),g([G()],y.prototype,"selfFetched",2),g([G()],y.prototype,"editing",2),g([G()],y.prototype,"sticky",2);var nt=class extends y{renderData(t){let e=(t.energy??"").toLowerCase(),r=e==="positive"||e==="cautionary"||e==="neutral"?e:"",a=t.keywords??[],n=t.actionSteps??[];return s`<article class="card" part="card" aria-label="${`${this.t("Angel number")} ${t.number??""}`}"><div class="hero" part="header">${t.number?s`<div class="numeral">${t.number}</div>`:i}<div><p class="label">${this.t("Angel number")}</p>${t.title?s`<h2 class="title">${t.title}</h2>`:i}</div></div>${t.coreMessage&&!this.hideReadings?s`<p class="core">${t.coreMessage}</p>`:i}<div class="badges" part="details">${t.type?s`<span class="badge">${t.type}</span>`:i} ${typeof t.digitRoot=="number"?s`<span class="badge">${this.t("Digit root")} ${t.digitRoot}</span>`:i} ${t.energy?s`<span class="${`badge ${r}`}">${t.energy}</span>`:i}</div>${a.length>0&&!this.hideReadings?s`<div class="chips">${a.map(l=>s`<span>${l}</span>`)}</div>`:i} ${this.renderSections(t)} ${t.affirmation&&!this.hideReadings?s`<p class="affirmation">${t.affirmation}</p>`:i} ${n.length>0&&!this.hideReadings?s`<div class="steps" part="section action-steps"><h3>${this.t("Action steps")}</h3><ul>${n.map(l=>s`<li>${l}</li>`)}</ul></div>`:i}</article>`}renderSections(t){return this.renderInterpretation(Gr(this.translator,t.meaning,t.biblical,t.shadow),"angel-meaning","Reading")}};nt.styles=[x,_,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.hero{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.numeral{flex-shrink:0}.hero>div:not(.numeral){min-width:0}@container (width<=24rem){.hero{justify-items:start;gap:var(--roxy-space-sm,.5rem);grid-template-columns:minmax(0,1fr);display:grid}}.numeral{font-size:3rem;line-height:1;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);font-variant-numeric:tabular-nums}.label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.core{color:var(--roxy-fg,#0a0a0a);margin:0;line-height:1.6}.badges{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.badge{align-items:center;gap:var(--roxy-space-xs,.25rem);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 35%, transparent);color:var(--roxy-fg,#0a0a0a);text-transform:capitalize;padding:3px 10px;display:inline-flex}.badge.positive{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.badge.cautionary{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.badge.neutral{background:color-mix(in srgb, var(--roxy-info,#0284c7) 16%, transparent);color:var(--roxy-info-fg,#075985)}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.affirmation{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 12%, transparent);border-left:3px solid var(--roxy-accent,#f59e0b);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-radius:var(--roxy-radius-sm,4px);color:var(--roxy-fg,#0a0a0a);margin:0;font-style:italic}.steps h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.steps ul{padding-left:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);gap:2px;margin:0;display:grid}`],nt=g([b("roxy-angel-number-card")],nt);var ci={positive:"Positive energy",neutral:"Neutral energy",cautionary:"Cautionary energy"},ot=class extends y{renderData(t){let e=t.knownMeaning,r=t.digitRootMeaning,a=e?.title??this.t("Number analysis"),n=e?.actionSteps??[];return s`<article class="card" part="card" aria-label="${`Number ${t.number??""}`}"><div class="hero" part="header">${t.number?s`<div class="numeral">${t.number}</div>`:i}<div>${e?.title?s`<p class="label">${this.t("Number analysis")}</p>`:i}<h2 class="title">${a}</h2></div></div><div class="badges" part="details">${t.type?s`<span class="badge">${t.type}</span>`:i} ${typeof t.digits=="number"?s`<span class="badge">${this.t("{{count}} digits",{count:t.digits})}</span>`:i} ${typeof t.uniqueDigits=="number"?s`<span class="badge">${this.t("{{count}} unique",{count:t.uniqueDigits})}</span>`:i} ${typeof t.digitRoot=="number"?s`<span class="badge">${this.t("Digit root {{n}}",{n:t.digitRoot})}</span>`:i} ${t.isPalindrome?s`<span class="badge flag">${this.t("Palindrome")}</span>`:i} ${t.isRepeating?s`<span class="badge flag">${this.t("Repeating")}</span>`:i} ${e?.energy?s`<span class="${`badge energy-${e.energy}`}">${this.t(ci[e.energy]??"Neutral energy")}</span>`:i}</div>${t.contextNote?s`<div class="context" part="section context"><p class="label">${this.t("Where you saw it")}</p><p>${t.contextNote}</p></div>`:i} ${e&&!this.hideReadings?s`<div class="section" part="section known-meaning"><p class="label">${this.t("Known angel number")}</p>${e.coreMessage?s`<p>${e.coreMessage}</p>`:i} ${e.keywords&&e.keywords.length>0?s`<div class="chips">${e.keywords.map(l=>s`<span>${l}</span>`)}</div>`:i} ${this.renderMeaning(e.meaning,"lookup-known",e.biblical,e.shadow)} ${e.affirmation?s`<p><em>${e.affirmation}</em></p>`:i} ${n.length>0?s`<p class="label">${this.t("What to do next")}</p><ol class="steps">${n.map(l=>s`<li>${l}</li>`)}</ol>`:i}</div>`:i} ${r&&!this.hideReadings?s`<div class="section" part="section digit-root"><p class="label">${r.number?this.t("Foundational digit root ({{n}})",{n:r.number}):this.t("Foundational digit root")}</p>${r.title?s`<h3>${r.title}</h3>`:i} ${r.coreMessage?s`<p>${r.coreMessage}</p>`:i} ${e?i:this.renderRootMeaning(r)}</div>`:i}</article>`}renderMeaning(t,e,r,a){return this.renderInterpretation(Gr(this.translator,t,r,a),e,"Reading")}renderRootMeaning(t){return s`${t.keywords&&t.keywords.length>0?s`<div class="chips">${t.keywords.map(e=>s`<span>${e}</span>`)}</div>`:i}${this.renderMeaning(t.meaning,"lookup-root")}${t.affirmation?s`<p><em>${t.affirmation}</em></p>`:i}`}};ot.styles=[x,M,_,u`.card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.hero{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.numeral{flex-shrink:0}.hero>div:not(.numeral){min-width:0}@container (width<=24rem){.hero{justify-items:start;gap:var(--roxy-space-sm,.5rem);grid-template-columns:minmax(0,1fr);display:grid}}.numeral{font-size:3rem;line-height:1;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);font-variant-numeric:tabular-nums}.label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.badges{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 35%, transparent);color:var(--roxy-fg,#0a0a0a);text-transform:capitalize;align-items:center;padding:3px 10px;display:inline-flex}.badge.flag{background:color-mix(in srgb, var(--roxy-info,#0284c7) 16%, transparent);color:var(--roxy-info-fg,#075985)}.badge.energy-positive{background:color-mix(in srgb, var(--roxy-success,#16a34a) 18%, transparent)}.badge.energy-cautionary{background:color-mix(in srgb, var(--roxy-warning,#ea580c) 18%, transparent)}.context{gap:var(--roxy-space-xs,.25rem);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-left:3px solid var(--roxy-accent,#f59e0b);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent);border-radius:0 var(--roxy-radius-sm,4px) var(--roxy-radius-sm,4px) 0;display:grid}.steps{gap:var(--roxy-space-xs,.25rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;padding-left:1.1rem;line-height:1.6;display:grid}.section{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem);gap:var(--roxy-space-sm,.5rem);display:grid}.section>.label{margin:0}.section>h3{font-size:var(--roxy-text-base,1rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.section p{color:var(--roxy-fg,#0a0a0a);line-height:1.6;font-size:var(--roxy-text-sm,.875rem);margin:0}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}`],ot=g([b("roxy-angel-number-lookup")],ot);var tr=(o,t)=>t?o[me(t)]:void 0,pi={sun:"☉",moon:"☽",mercury:"☿",venus:"♀",earth:"♁",mars:"♂",jupiter:"♃",saturn:"♄",uranus:"♅",neptune:"♆",pluto:"♇",rahu:"☊",ketu:"☋",ascendant:"Asc",lagna:"La","north node":"☊","south node":"☋",chiron:"⚷",lilith:"⚸","black moon lilith":"⚸"},R=o=>tr(pi,o),mi={sun:"Su",moon:"Mo",mercury:"Me",venus:"Ve",mars:"Ma",jupiter:"Ju",saturn:"Sa",uranus:"Ur",neptune:"Ne",pluto:"Pl",rahu:"Ra",ketu:"Ke",ascendant:"Asc",lagna:"La"},fn=o=>tr(mi,o),hi={aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpio:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓"},z=o=>tr(hi,o),gi={aries:"Ar",taurus:"Ta",gemini:"Ge",cancer:"Cn",leo:"Le",virgo:"Vi",libra:"Li",scorpio:"Sc",sagittarius:"Sg",capricorn:"Cp",aquarius:"Aq",pisces:"Pi"},Hr=o=>tr(gi,o),Z=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],ui={conjunction:"☌",semisextile:"⚺","semi sextile":"⚺",semisquare:"∠","semi square":"∠",sextile:"⚹",square:"□",trine:"△",sesquiquadrate:"⚼",quincunx:"⚻",opposition:"☍"},Fr=o=>tr(ui,o),yi={heaven:"☰",lake:"☱",fire:"☲",thunder:"☳",wind:"☴",water:"☵",mountain:"☶",earth:"☷"},Ka=o=>tr(yi,o),yn={"new moon":"🌑","waxing crescent":"🌒","first quarter":"🌓","waxing gibbous":"🌔","full moon":"🌕","waning gibbous":"🌖","last quarter":"🌗","waning crescent":"🌘"},xn=o=>{if(!o)return;let t=me(o),e=t.replace(/ moon$/,""),r=e==="third quarter"?"last quarter":e;return yn[t]??yn[r]};var Va=/^\d{4}-\d{2}-\d{2}$/,vn=/^\d{2}:\d{2}(:\d{2})?$/,fi=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,bn=new Map;function ue(o){if(!o)return["en"];let t=bn.get(o);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(o)[0]??"en"}catch{e="en"}return bn.set(o,e),[e,"en"]}function br(o){let t=vn.test(o)?`1970-01-01T${o}`:Va.test(o)?`${o}T00:00:00`:fi.test(o)?o:null;return t?{d:new Date(`${t}Z`),timeZone:"UTC"}:{d:new Date(o)}}function te(o,t){if(typeof t!="string"||t.length===0||Va.test(t))return"";let{d:e,timeZone:r}=br(t);return Number.isNaN(e.getTime())?t:e.toLocaleTimeString(ue(o),{hour:"numeric",minute:"2-digit",timeZone:r})}function A(o,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:r}=br(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(ue(o),{month:"short",day:"numeric",year:"numeric",timeZone:r})}function Ee(o,t){if(!t)return"";let e=te(o,t.start),r=te(o,t.end);return e&&r?`${e} - ${r}`:e||r||""}function qa(o,t,e){let r=A(o,t),a=A(o,e);return r&&a?`${r} - ${a}`:r||a}function Ua(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:a}=br(t);return Number.isNaN(r.getTime())?t:r.toLocaleString(ue(o),{day:e==="month"?void 0:"numeric",month:"short",year:"numeric",hour:e==="time"?"numeric":void 0,minute:e==="time"?"2-digit":void 0,timeZone:a})}function Kr(o,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:r}=br(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(ue(o),{month:"short",day:"numeric",timeZone:r})}function Ln(o,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:r}=br(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(ue(o),{weekday:"short",day:"numeric",timeZone:r})}function $n(o,t,e){return typeof t!="number"||!Number.isFinite(t)||typeof e!="number"||!Number.isInteger(e)||e<1||e>12?"":new Date(Date.UTC(t,e-1,1,12)).toLocaleDateString(ue(o),{month:"long",year:"numeric",timeZone:"UTC"})}function Vr(o,t){return typeof t!="number"||!Number.isInteger(t)||t<1||t>12?"":new Date(Date.UTC(2e3,t-1,1,12)).toLocaleDateString(ue(o),{month:"long",timeZone:"UTC"})}function wn(o,t){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(ue(o),{maximumFractionDigits:0})}function v(o,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(ue(o),{maximumFractionDigits:e})}function ae(o,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":(t/100).toLocaleString(ue(o),{style:"percent",maximumFractionDigits:e})}var Le={conjunction:"aspect-conjunction",sextile:"aspect-sextile",square:"aspect-square",trine:"aspect-trine",opposition:"aspect-opposition"};function ce(o){return(o.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}function W(o){return N(ce(o))}var xi={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function it(o,t,e){let r=typeof t=="string"?xi[t]??O(t):"",a=typeof e=="number"?`${v(o,e,2)}°`:"";return r&&a?`${r} (${a})`:r||a}function q(o,t,e){let r=typeof t=="string"&&Va.test(t)&&typeof e=="string"&&vn.test(e)?`${t}T${e}`:t,a=A(o,r),n=te(o,r);return a&&n?`${a}, ${n}`:a||n}function Ya(o,t){if(!(typeof t!="string"||!t))return t===o?void 0:t}function vr(o,t){let e=typeof o=="string"?o:"",r=Ya(e,t);return e?r?`${e} (${r})`:e:r??""}var I=u`.roxy-frame{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.roxy-frame .roxy-frame-deg{font-variant-numeric:tabular-nums}`;function F(o,t,e){if(!t?.ayanamsa)return i;let r=it(o,t.ayanamsa);if(!r)return i;let a=typeof t.ayanamsaDegrees=="number"?v(o,t.ayanamsaDegrees,4):void 0;return s`<p class="roxy-frame">${a===void 0?e("Sidereal frame: {{frame}}",{frame:r}):e("Sidereal frame: {{frame}}, {{degrees}}° subtracted",{frame:r,degrees:a})}</p>`}function kn(o,t,e){let r=Object.values(t??{}).filter(a=>!!a?.ayanamsa);return r.length===0?i:s`<div class="roxy-frame">${r.map(a=>{let n=it(o,a.ayanamsa),l=typeof a.ayanamsaDegrees=="number"?v(o,a.ayanamsaDegrees,4):void 0,d=a.governs?.length?a.governs.join(", "):"";return s`<p class="roxy-frame">${l===void 0?e("Sidereal frame: {{frame}}",{frame:n}):e("Sidereal frame: {{frame}}, {{degrees}}° subtracted",{frame:n,degrees:l})}${d?e(", governs {{sections}}",{sections:d}):""}</p>`})}</div>`}var bi=new Set(["a1","a12"]),lt=class extends y{renderData(t){let e=t.padas??[];if(!e.length)return this.renderEmpty();let r=e.filter(a=>a.exceptionApplied).length;return s`<div class="wrap" part="card" aria-label="${this.t("Arudha padas")}"><header class="head" part="header"><h2 class="title">${this.t("Arudha padas")}</h2>${F(this.effectiveLang(),t.frame,this.translator)}</header><div class="leads" part="details"><div class="lead"><span>${this.t("Lagna")}</span><strong>${t.lagnaRashi??""}</strong></div><div class="lead"><span>${this.t("Arudha Lagna")}</span><strong>${t.arudhaLagna??""}</strong></div><div class="lead"><span>${this.t("Upapada")}</span><strong>${t.upapada??""}</strong></div></div><div class="scroll" part="table" tabindex="0"><table role="table"><caption class="roxy-sr-only">${this.t("The twelve Arudha padas: each pada with its bhava, the bhava sign and its lord, the sign the lord occupies, the sign the pada falls in, which house from the Lagna that is, whether the classical exception was applied, and what the pada is read for.")}</caption><thead><tr><th scope="col">${this.t("Pada")}</th><th scope="col">${this.t("Bhava")}</th><th scope="col">${this.t("Bhava rashi")}</th><th scope="col">${this.t("Lord")}</th><th scope="col">${this.t("Lord rashi")}</th><th scope="col">${this.t("Pada rashi")}</th><th scope="col">${this.t("From Lagna")}</th><th scope="col">${this.t("Read for")}</th></tr></thead><tbody>${e.map(a=>this.renderRow(a))}</tbody></table></div>${r>0?s`<p class="note" part="legend"><span class="exception">${this.t("Moved")}</span> ${this.t("marks a pada that fell in its own bhava or the seventh from it and was moved to the tenth from there, as the classical rule requires. {{count}} of {{total}} padas here.",{count:r,total:e.length})}</p>`:i}</div>`}renderRow(t){let e=a=>z(a)??"",r=a=>{let n=e(a);return s`${n?s`<span class="glyph">${n}</span>`:i}${a??""}`};return s`<tr class="${bi.has(t.id)?"lead-row":""}"><td class="pada">${t.name??""}${t.abbreviation?s`<span class="abbr">${t.abbreviation}</span>`:i}</td><td class="num">${t.house??""}</td><td>${r(t.bhavaRashi)}</td><td>${t.lord??""}</td><td>${r(t.lordRashi)}</td><td>${r(t.rashi)} ${t.exceptionApplied?s`<span class="exception">${this.t("Moved")}</span>`:i}</td><td class="num">${t.houseFromLagna??""}</td><td class="meaning"><strong>${t.meaning??""}</strong> ${t.significations?s`<p>${t.significations}</p>`:i}</td></tr>`}};lt.styles=[x,I,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7)}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.leads{gap:var(--roxy-space-md,1rem);padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));display:grid}.lead span{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:block}.lead strong{font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a)}.scroll{min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:700px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}tbody tr.lead-row{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 10%, transparent)}td.pada{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.abbr{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-normal,400);margin-left:.4em}tbody tr.lead-row .abbr,tbody tr.lead-row .glyph{color:var(--roxy-accent-ink,#b45309)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.4em}.num{font-variant-numeric:tabular-nums}.exception{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-warning-fg,#b45309)}.meaning{white-space:normal;min-width:12rem}.meaning strong{font-weight:var(--roxy-weight-bold,600);display:block}.meaning p{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.note{padding:0 var(--roxy-space-md,1rem) var(--roxy-space-md,1rem);color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}`],lt=g([b("roxy-arudha-padas")],lt);var ee=u`.roxy-tablist{border-bottom:2px solid var(--roxy-border,#e4e4e7);scrollbar-width:thin;gap:2px;min-width:0;display:flex;overflow-x:auto}.roxy-tab{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);cursor:pointer;color:var(--roxy-muted,#71717a);transition:color var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);background:0 0;border:none;border-bottom:2px solid #0000;flex-shrink:0;margin-bottom:-2px;font-family:inherit}.roxy-tab[aria-selected=true]{color:var(--roxy-accent-ink,#b45309);border-bottom-color:var(--roxy-accent,#f59e0b);font-weight:var(--roxy-weight-bold,600)}.roxy-tab:hover:not([aria-selected=true]){color:var(--roxy-fg,#0a0a0a)}.roxy-tab:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:-2px;border-radius:4px}`;function se(o){let{items:t,active:e,onSelect:r,label:a,idPrefix:n,controls:l=!1}=o;return s`<div class="roxy-tablist" part="tablist" role="tablist" aria-label="${a}" @keydown="${c=>{if(c.key!=="ArrowRight"&&c.key!=="ArrowLeft")return;c.preventDefault();let p=t.findIndex(C=>C.id===e);if(p===-1)return;let h=c.key==="ArrowRight"?1:-1,m=t[(p+h+t.length)%t.length];if(!m)return;r(m.id);let f=c.currentTarget.getRootNode();requestAnimationFrame(()=>{f.querySelector(`#${n}-tab-${m.id}`)?.focus()})}}">${t.map(c=>s`<button type="button" class="roxy-tab" part="tab" role="tab" id="${n}-tab-${c.id}" aria-selected="${e===c.id?"true":"false"}" aria-controls="${l?`${n}-panel-${c.id}`:i}" tabindex="${e===c.id?"0":"-1"}" @click="${()=>r(c.id)}">${c.label}</button>`)}</div>${l?t.filter(c=>c.id!==e).map(c=>s`<div role="tabpanel" id="${n}-panel-${c.id}" aria-labelledby="${n}-tab-${c.id}" hidden></div>`):i}`}var vi=[{id:"sarva",source:"Sarvashtakavarga"},{id:"bhinna",source:"Bhinnashtakavarga"},{id:"reduced",source:"Reduced"},{id:"pinda",source:"Shodhya Pinda"}],Me=class extends y{constructor(){super(...arguments);this.activeTab="sarva"}renderData(e){let r=e.signs??[];return s`<div class="wrap" part="card" aria-label="${this.t("Ashtakavarga grid")}"><div class="head" part="header"><h2 class="title">${this.t("Ashtakavarga")}</h2>${r.length?s`<p class="subtitle">${this.t("{{count}} signs",{count:r.length})}</p>`:i} ${F(this.effectiveLang(),e.frame,this.translator)}</div>${se({items:vi.map(({id:a,source:n})=>({id:a,label:this.t(n)})),active:this.activeTab,onSelect:a=>{this.activeTab=a},label:this.t("Ashtakavarga views"),idPrefix:"ashtakavarga",controls:!0})}<div id="ashtakavarga-panel-${this.activeTab}" part="panel" role="tabpanel" aria-labelledby="ashtakavarga-tab-${this.activeTab}">${this.activeTab==="sarva"?this.renderSarva(r):this.activeTab==="bhinna"?this.renderBhinna(r):this.activeTab==="reduced"?this.renderReduced(r):this.renderPinda()}</div></div>`}bhinnaTier(e){return e<=1?"tier-1":e<=2?"tier-2":e<=3?"tier-3":e<=4?"tier-4":e<=5?"tier-5":e<=6?"tier-6":"tier-7"}sarvaTier(e){return e<=20?"tier-1":e<=24?"tier-2":e<=27?"tier-3":e<=29?"tier-4":e<=32?"tier-5":e<=36?"tier-6":"tier-7"}renderLegend(e){return s`<div class="legend" part="legend"><span>${this.t("Fewer bindus")}</span> <span class="legend-scale" aria-hidden="true">${[1,2,3,4,5,6,7].map(r=>s`<span class="legend-swatch tier-${r}"></span>`)} </span><span>${this.t("More bindus")}</span> <span class="legend-note">${e}</span></div>`}renderSarva(e){let r=this.data?.sarvashtakavarga;return r?s`<div class="overflow-scroll" part="table"><table><caption class="roxy-sr-only">${this.t("Sarvashtakavarga: each of the twelve signs and the bindus all planets contribute to it, with a grand total.")}</caption><thead><tr><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Bindus")}</th></tr></thead><tbody>${e.map((a,n)=>{let l=r.bindus[n]??0;return s`<tr><td><div class="planet-cell"><span class="glyph" aria-hidden="true">${z(a)??""}</span> ${a}</div></td><td class="${`bindu-cell ${this.sarvaTier(l)}`}">${l}</td></tr>`})}</tbody><tfoot><tr class="total-row"><td>${this.t("Total")}</td><td>${r.total}</td></tr></tfoot></table></div>${this.renderLegend("Under 25 is a weak sign, 25 to 29 average, 30 and above strong. The 12 signs always total 337.")}`:s`<p class="roxy-empty">${this.t("No sarvashtakavarga data")}</p>`}renderBhinna(e){let r=this.data?.bhinnashtakavarga;return r?.length?s`${this.renderBinduGrid(e,r,"Bhinnashtakavarga: the bindus each planet scores in every one of the twelve signs, with a row total.")} ${this.renderLegend("Each planet scores 0 to 8 bindus per sign. 4 is the mid, 5 and above is strong support for that planet in that sign.")}`:s`<p class="roxy-empty">${this.t("No bhinnashtakavarga data")}</p>`}renderReduced(e){let r=this.data?.reducedBhinnashtakavarga,a=this.data?.reducedSarvashtakavarga;return!r?.length&&!a?s`<p class="roxy-empty">${this.t("No reduced ashtakavarga data")}</p>`:s`${this.renderBinduGrid(e,r??[],"Reduced Bhinnashtakavarga after Shodhana: the bindus each planet keeps in every one of the twelve signs, with a row total and a Reduced Sarvashtakavarga totals row.",a)} ${this.renderLegend("Bindus left after Trikona and Ekadipati Shodhana, the input to Shodhya Pinda. The Reduced SAV row totals the seven planets only, so it does not include the Lagna row above it.")}`}renderBinduGrid(e,r,a,n){return r.length?s`<div class="overflow-scroll" part="table"><table class="bhinna-table"><caption class="roxy-sr-only">${a}</caption><thead><tr><th scope="col">${this.t("Planet")}</th>${e.map(l=>s`<th scope="col" title="${l}">${z(l)??l}</th>`)}<th scope="col">${this.t("Total")}</th></tr></thead><tbody>${r.map(l=>s`<tr><td>${l.planet}</td>${l.bindus.map(d=>s`<td class="${`bindu-cell ${this.bhinnaTier(d)}`}">${d}</td>`)}<td>${l.total}</td></tr>`)}</tbody>${n?s`<tfoot><tr class="total-row"><td>${this.t("Reduced SAV")}</td>${e.map((l,d)=>s`<td>${n.bindus[d]??0}</td>`)}<td>${n.total}</td></tr></tfoot>`:i}</table></div>`:s`<p class="roxy-empty">${this.t("No bindu data")}</p>`}renderPinda(){let e=this.data?.shodhyaPinda;return e?.length?s`<div class="overflow-scroll" part="table"><table><caption class="roxy-sr-only">${this.t("Shodhya Pinda: each planet with its Rashi Pinda, Graha Pinda and Shodhya Pinda strength scores.")}</caption><thead><tr><th scope="col">${this.t("Planet")}</th><th scope="col">${this.t("Rashi Pinda")}</th><th scope="col">${this.t("Graha Pinda")}</th><th scope="col">${this.t("Shodhya Pinda")}</th></tr></thead><tbody>${e.map(r=>s`<tr><td>${r.planet}</td><td>${r.rashiPinda}</td><td>${r.grahaPinda}</td><td>${r.shodhyaPinda}</td></tr>`)}</tbody></table></div>`:s`<p class="roxy-empty">${this.t("No shodhya pinda data")}</p>`}};Me.styles=[x,I,ee,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.overflow-scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:center}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}td:first-child,th:first-child{text-align:left}.glyph{margin-right:3px;font-size:1.1em;line-height:1}.planet-cell{white-space:nowrap;align-items:center;gap:4px;display:flex}.total-row td{font-weight:var(--roxy-weight-bold,600);border-top:2px solid var(--roxy-border,#e4e4e7);border-bottom:none}.bindu-cell{border-radius:var(--roxy-radius-sm,4px);font-weight:var(--roxy-weight-bold,600);font-variant-numeric:tabular-nums;min-width:2rem;color:var(--roxy-fg,currentColor)}.tier-1{background:color-mix(in srgb, var(--roxy-heat,#ef4444) 30%, transparent)}.tier-2{background:color-mix(in srgb, var(--roxy-heat,#ef4444) 17%, transparent)}.tier-3{background:color-mix(in srgb, var(--roxy-heat,#ef4444) 7%, transparent)}.tier-4{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent)}.tier-5{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent)}.tier-6{background:color-mix(in srgb, var(--roxy-success,#16a34a) 32%, transparent)}.tier-7{background:color-mix(in srgb, var(--roxy-success,#16a34a) 50%, transparent)}.legend{align-items:center;gap:var(--roxy-space-xs,.25rem) var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);flex-wrap:wrap;display:flex}.legend-scale{gap:2px;display:flex}.legend-swatch{border-radius:2px;width:16px;height:10px}.legend-note{flex:12rem}.bhinna-table th:first-child,.bhinna-table td:first-child{min-width:5rem}@container (width<=480px){.bhinna-table th,.bhinna-table td{font-size:var(--roxy-text-xs,.75rem);padding:.3rem .35rem}.bhinna-table th:first-child,.bhinna-table td:first-child{min-width:3.5rem}.bindu-cell{min-width:1.5rem}}.overflow-scroll{-webkit-mask-image:linear-gradient(90deg,#0000 0,#000 .5rem calc(100% - 1rem),#0000 100%);mask-image:linear-gradient(90deg,#0000 0,#000 .5rem calc(100% - 1rem),#0000 100%)}`],g([G()],Me.prototype,"activeTab",2),Me=g([b("roxy-ashtakavarga-grid")],Me);function Li(o){let t=o.strictOrbs?"strict":"industry-standard",e=o.include?.length?`including ${o.include.join(" and ")}`:"classical bodies only";return`Detected with ${t} orbs, ${e}.`}var Sn={GRAND_CROSS:0,GRAND_TRINE:1,KITE:2,T_SQUARE:3,YOD:4,MYSTIC_RECTANGLE:5,STELLIUM:6},dt=class extends y{renderData(t){let e="aspects"in t?t.aspects??[]:[],r="patterns"in t?t.patterns??[]:[],a="summary"in t?t.summary:void 0;if(e.length===0&&r.length===0)return this.renderEmpty();let n=A(this.effectiveLang(),"transitDate"in t?t.transitDate:"date"in t?t.date:""),l="options"in t?t.options:void 0;return s`<div class="wrap" part="card" aria-label="${this.t("Aspects")}"><div class="head" part="header"><h2 class="title">${e.length===0?this.t("Chart patterns"):this.t("Aspects")}</h2>${e.length>0||n?s`<p class="subtitle">${[e.length>0?`${e.length} aspect${e.length===1?"":"s"}`:"",n].filter(Boolean).join(" · ")}</p>`:i}</div>${a?this.renderSummary(a):i} ${a&&"strongest"in a&&a.strongest?this.renderStrongest(a.strongest):i} ${e.length>0?s`<div role="list" part="section aspects" aria-label="${this.t("Aspect list")}">${e.map((d,c)=>this.renderAspect(d,c))}</div>`:i} ${r.length>0?s`<div part="section patterns"><p class="section-label">${this.t("Patterns")}</p>${[...r].sort((d,c)=>(Sn[d.kind]??9)-(Sn[c.kind]??9)||(c.tightness??0)-(d.tightness??0)).map(d=>this.renderPattern(d))}</div>`:i} ${l?s`<p class="provenance">${Li(l)}</p>`:i}</div>`}renderSummary(t){let e="totalAspects"in t?t.totalAspects:t.total,r=Object.entries(t.byType??{}).sort((a,n)=>n[1]-a[1]);return s`<div class="summary-pills" part="details" role="region" aria-label="${this.t("Aspect summary")}">${typeof e=="number"?s`<span class="pill pill--muted">${this.t("Total")}: ${e}</span>`:i} <span class="pill pill--success">${this.t("Harmonious")}: ${t.harmonious}</span> <span class="pill pill--danger">${this.t("Challenging")}: ${t.challenging}</span> <span class="pill pill--muted">${this.t("Neutral")}: ${t.neutral}</span> ${r.map(([a,n])=>s`<span class="pill pill--muted">${W({type:a})}: ${n}</span>`)}</div>`}renderStrongest(t){let e=R(t.planet1)??"",r=R(t.planet2)??"",a=(t.interpretation??"neutral").toLowerCase();return s`<div class="strongest" part="details strongest"><span class="label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph">${e}</span>${t.planet1} <span class="nature-badge ${a}">${W(t)}</span> <span aria-hidden="true" class="glyph">${r}</span>${t.planet2} <span class="meta">${this.t("{{status}} · orb {{orb}}° · str {{strength}}",{status:t.isApplying?this.t("Applying"):this.t("Separating"),orb:v(this.effectiveLang(),t.orb,2),strength:v(this.effectiveLang(),t.strength,0)})}</span></div>`}renderAspect(t,e){let r=R(t.planet1)??"",a=R(t.planet2)??"",n=(t.interpretation??"neutral").toLowerCase(),l=W(t),d=t.isApplying?this.t("Applying"):this.t("Separating"),c="meaning"in t?t.meaning:void 0,p="transitInterpretation"in t?t.transitInterpretation:void 0,h=!!(c||p),m=s`<span aria-hidden="true" class="glyph">${r}</span>${t.planet1} <span class="nature-badge ${n}">${l}</span> <span aria-hidden="true" class="glyph">${a}</span>${t.planet2} <span class="meta">${this.t("{{status}} · orb {{orb}}° · str {{strength}}",{status:d,orb:v(this.effectiveLang(),t.orb,2),strength:v(this.effectiveLang(),t.strength,0)})}</span>`;return!h||this.hideReadings?s`<div class="interp-card" part="reading" role="listitem"><div class="static-head">${m}</div></div>`:s`<details class="interp-card" part="reading" role="listitem" name="aspects" ?open="${e===0}"><summary>${m}${j()}</summary><div class="interp-body">${c?this.renderMeaning(c):i} ${p?this.renderTransit(p):i}</div></details>`}renderMeaning(t){let e=t.description?.short??t.description?.long;return xr({summary:e,keywords:t.keywords},this.translator)}renderTransit(t){return xr(t,this.translator)}renderPattern(t){let e=t.planets??[],r=t.apex?[...e].sort((a,n)=>+(n===t.apex)-+(a===t.apex)):e;return s`<div class="pattern" part="pattern"><div class="pattern-head"><span class="pattern-name">${t.name??t.kind??"Pattern"}</span> ${t.element?s`<span class="pattern-tag">${t.element}</span>`:i} ${t.modality?s`<span class="pattern-tag">${t.modality}</span>`:i} ${t.dissociate?s`<span class="pattern-tag" title="${this.t("Out of sign: one or more planets sit outside the pattern element or modality, so the theme holds but runs weaker.")}">${this.t("Dissociate")}</span>`:i} ${typeof t.tightness=="number"?s`<span class="pattern-tight">${this.t("{{percent}} tight",{percent:ae(this.effectiveLang(),t.tightness,0)})}</span>`:i}</div>${r.length?s`<div class="pattern-planets">${r.map(a=>{let n=R(a),l=!!t.apex&&a===t.apex;return s`<span class="${l?"planet-chip apex":"planet-chip"}">${n?s`<span aria-hidden="true">${n}</span>`:i}${a}${l?s`<span class="apex-tag">${this.t("apex")}</span>`:i}</span>`})}</div>`:i} ${t.interpretation&&!this.hideReadings?s`<p class="pattern-interp">${t.interpretation}</p>`:i}</div>`}};dt.styles=[x,M,_,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.summary-pills{gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.pill{padding:2px var(--roxy-space-sm,.5rem);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);border:1px solid;align-items:center;gap:4px;display:inline-flex}.pill--muted{color:var(--roxy-fg,#0a0a0a);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent)}.pill--success{color:var(--roxy-success-fg,#166534);background:color-mix(in srgb, var(--roxy-success,#16a34a) 10%, transparent)}.pill--danger{color:var(--roxy-danger-fg,#991b1b);background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent)}.section-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-xs,.25rem) 0}.interp-card summary{flex-wrap:wrap;gap:.5em}.interp-card summary .meta{color:var(--roxy-muted,#71717a);font-weight:400;font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.static-head{font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;align-items:center;gap:.5em;font-weight:500;display:flex}.glyph{font-size:1.1em;line-height:1}.nature-badge{font-size:var(--roxy-text-xs,.75rem);text-transform:capitalize;border-radius:9999px;padding:1px 8px;font-weight:600;display:inline-block}.nature-badge.harmonious{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.nature-badge.challenging{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.nature-badge.neutral{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a)}.pattern{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem);gap:.35rem;display:grid}.pattern-head{flex-wrap:wrap;align-items:baseline;gap:.5rem;display:flex}.pattern-name{font-weight:var(--roxy-weight-bold,600)}.pattern-tag{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);color:var(--roxy-fg,#0a0a0a);text-transform:capitalize;padding:1px 8px}.pattern-planets{flex-wrap:wrap;gap:.25rem;display:flex}.planet-chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a);align-items:baseline;gap:.3rem;padding:1px 8px;display:inline-flex}.planet-chip.apex{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 20%, transparent);font-weight:var(--roxy-weight-bold,600)}.planet-chip .apex-tag{text-transform:uppercase;letter-spacing:.04em;font-size:.85em;font-weight:400}.pattern-tight{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.pattern-interp{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.45}.strongest{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;align-items:baseline;gap:.4rem;display:flex}.strongest .label{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600)}.strongest .meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.provenance{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);margin:0}`],dt=g([b("roxy-aspects-table")],dt);var $i={Sun:"var(--roxy-accent)",Moon:"var(--roxy-secondary)",Mercury:"var(--roxy-info)",Venus:"var(--roxy-success)",Mars:"var(--roxy-danger)",Jupiter:"var(--roxy-warning)",Saturn:"var(--roxy-muted)",Uranus:"var(--roxy-info-fg)",Neptune:"var(--roxy-success-fg)",Pluto:"var(--roxy-danger-fg)"},Rn=["var(--roxy-accent)","var(--roxy-info)","var(--roxy-success)","var(--roxy-danger)","var(--roxy-warning)","var(--roxy-secondary)","var(--roxy-info-fg)","var(--roxy-success-fg)","var(--roxy-danger-fg)","var(--roxy-accent-ink)","var(--roxy-warning-fg)","var(--roxy-primary)"];function ct(o,t=0){return $i[N(o)]??Rn[t%Rn.length]??"var(--roxy-accent)"}var Cn="M120 170L120 171L118 171L116 171L114 171L114 170L116 170L118 170L119 170L120 170ZM21 169L19 170L18 169L17 169L16 169L17 168L19 168L20 169L21 169ZM135 168L136 168L137 169L137 170L135 170L133 171L132 171L130 171L127 171L126 171L126 170L128 170L129 170L130 169L131 168L132 168L133 168L135 168ZM59 164L60 164L61 163L61 164L60 164L58 164L57 164L58 163L59 164ZM54 163L56 164L55 164L54 164L53 163L54 163ZM81 162L82 162L83 162L84 163L83 162L82 162L81 162L79 163L78 162L80 162L81 162ZM112 161L111 162L110 162L109 163L108 162L107 162L106 162L105 162L106 161L107 161L108 161L108 160L109 159L110 159L111 160L111 161L112 161ZM121 154L120 154L119 154L119 155L118 155L117 155L117 156L118 156L117 156L116 157L115 157L114 158L115 158L115 159L116 159L117 159L117 160L118 160L118 161L119 162L119 163L119 164L118 164L117 165L116 165L114 166L113 166L112 166L110 166L109 167L108 167L106 167L104 167L103 167L105 167L106 168L105 168L104 168L102 168L102 169L103 170L105 170L107 170L109 171L110 171L112 171L114 171L117 172L118 172L120 172L121 173L122 173L123 173L125 173L126 172L128 172L130 172L133 172L135 172L137 172L138 172L139 171L142 171L144 171L146 171L148 171L150 171L151 170L150 170L150 169L148 169L146 169L144 169L144 168L145 168L146 168L148 168L149 167L150 167L151 167L152 166L154 166L155 166L156 166L158 166L159 166L160 166L161 165L162 165L163 165L164 164L165 164L164 164L164 163L165 163L166 163L167 163L168 162L169 162L170 161L171 161L171 162L173 162L173 161L174 161L176 161L177 161L178 161L179 161L180 162L181 161L182 161L183 161L184 161L185 161L186 160L187 160L188 160L190 160L191 161L192 161L192 160L193 160L195 160L196 160L197 160L198 160L199 160L200 160L201 160L202 160L203 161L204 161L205 160L206 160L207 160L208 160L209 160L210 160L211 160L212 160L213 159L214 159L215 159L216 159L217 159L218 160L219 160L220 160L220 159L221 159L222 159L223 158L224 158L225 158L226 158L227 158L228 157L229 157L230 157L231 157L232 156L233 156L234 156L235 156L236 156L237 156L237 157L238 157L239 157L240 157L241 158L242 158L243 158L244 157L245 158L246 158L247 158L248 158L249 158L250 159L250 160L249 160L248 160L248 161L249 161L248 161L248 162L249 162L250 162L251 162L252 162L252 161L253 161L253 160L254 160L256 160L257 160L258 159L259 158L260 158L261 158L262 157L263 157L264 157L265 157L266 157L267 157L268 156L269 157L270 157L271 157L272 157L273 157L274 157L275 157L276 157L277 157L278 157L279 157L280 157L281 157L282 156L283 156L284 156L285 156L286 157L287 157L288 157L289 157L290 157L291 156L292 156L293 156L294 156L295 156L296 157L297 157L299 157L300 157L301 157L302 157L303 156L304 157L305 157L306 157L307 157L308 157L309 157L310 157L311 156L312 156L313 156L314 156L315 156L315 155L316 156L317 157L319 157L320 157L321 157L322 157L323 157L324 157L325 157L326 157L326 158L327 158L328 158L329 158L330 159L331 159L333 159L334 159L335 159L336 159L337 159L338 159L339 160L340 160L341 160L342 161L343 161L344 161L345 161L346 161L347 161L348 161L349 161L351 161L351 162L350 163L349 164L348 164L347 164L346 164L346 165L345 165L344 165L344 166L343 167L344 167L344 168L345 168L347 168L347 169L345 169L344 169L342 169L341 170L340 171L341 171L342 172L344 172L345 173L347 173L349 173L349 174L352 174L353 174L356 174L358 174L360 175L360 180L0 180L0 175L1 174L3 174L4 174L6 175L7 174L10 174L11 174L13 175L16 175L18 175L22 175L25 175L29 175L31 176L34 175L37 175L33 175L30 174L29 174L26 174L27 173L27 172L25 172L25 171L23 171L26 171L28 171L29 171L31 171L33 171L34 170L33 170L32 170L30 169L28 169L27 169L25 169L24 169L23 168L22 168L22 167L23 167L25 167L26 167L27 167L29 167L30 167L31 167L32 167L34 166L34 165L35 165L36 166L37 165L38 165L40 165L41 165L42 165L44 165L45 164L46 164L48 164L49 164L50 164L52 164L53 164L55 165L56 164L57 164L59 165L60 164L61 164L63 164L64 164L65 164L66 164L67 164L68 165L69 164L70 165L71 165L72 165L74 165L75 165L77 165L78 165L79 165L80 165L79 165L79 164L77 164L77 163L76 163L77 163L78 163L80 163L81 163L82 163L82 164L84 164L85 163L86 163L88 163L89 163L90 163L91 163L92 163L93 163L94 163L95 163L96 164L97 164L99 164L99 163L100 163L101 164L102 163L103 164L104 164L105 164L106 164L107 163L108 163L110 163L111 163L112 163L113 162L112 161L112 160L111 160L112 159L113 158L112 158L112 157L113 157L114 156L115 156L116 155L117 155L118 155L119 154L120 154L121 154L121 153L122 153L123 154L122 154L121 154ZM112 144L114 144L115 145L114 145L113 145L112 146L111 145L110 145L109 145L108 144L107 144L105 143L106 143L108 144L109 144L110 143L111 143L112 143L112 144ZM121 141L122 142L121 142L120 142L119 142L120 141L121 142L121 141ZM250 140L249 140L249 139L250 139L251 139L250 140ZM325 131L326 131L327 131L328 131L328 132L328 133L327 134L326 134L325 133L325 132L325 131ZM353 131L354 131L354 132L353 133L353 134L352 134L351 134L351 135L351 136L350 136L349 137L348 137L348 136L347 136L347 135L348 134L349 134L350 134L351 133L352 132L352 131L353 130L353 131ZM355 126L355 127L356 127L356 128L357 128L358 128L359 128L358 129L357 129L357 130L357 131L356 131L355 132L355 131L355 130L354 130L354 129L355 129L355 128L355 127L354 127L354 126L353 125L353 124L354 125L355 126ZM347 112L346 112L345 112L345 111L344 110L345 110L345 111L346 111L347 112ZM358 107L359 108L358 108L357 108L358 107L358 108L358 107ZM359 107L359 106L360 106L360 107L359 107ZM230 104L230 105L230 106L230 105L230 106L230 107L229 107L229 108L229 109L229 110L228 112L228 114L227 115L226 115L225 116L225 115L224 115L224 114L223 113L223 112L223 111L224 111L224 110L224 109L224 108L224 107L224 106L225 106L226 106L227 105L228 105L228 104L229 103L229 102L230 102L230 103L230 104ZM324 104L324 105L325 104L325 105L325 106L326 107L326 108L326 109L327 109L328 110L329 110L329 111L330 112L330 113L331 112L331 113L332 114L333 115L333 116L333 117L334 118L334 119L333 119L333 120L333 121L333 122L332 123L331 124L331 125L330 126L330 127L329 128L328 128L327 128L327 129L326 129L325 129L325 128L324 128L324 129L323 129L322 128L321 128L320 127L320 126L319 126L318 126L318 125L318 124L318 125L317 125L318 124L318 123L317 124L316 124L316 125L315 124L315 123L314 123L313 122L312 122L311 121L310 122L308 122L307 122L306 122L305 123L304 123L304 124L303 124L302 124L301 124L300 124L299 125L299 124L299 125L298 125L297 125L296 124L295 124L296 123L296 122L295 121L295 120L295 119L294 118L294 117L293 117L293 116L294 117L293 116L294 116L294 115L293 114L294 114L294 113L294 112L294 113L295 112L295 111L296 111L297 111L298 110L299 110L300 110L301 110L301 109L302 109L302 108L302 107L303 106L303 107L304 107L304 106L305 105L306 105L306 104L307 104L308 104L308 105L309 105L310 105L309 104L310 104L310 103L311 103L311 102L312 102L313 102L312 101L313 101L314 102L315 102L316 102L317 102L317 103L316 103L316 104L315 105L316 105L316 106L317 106L318 106L318 107L319 107L320 108L321 107L321 106L322 105L322 104L322 103L322 102L322 101L323 101L323 102L324 103L324 104ZM301 100L300 100L299 100L300 99L300 100L301 100ZM341 100L340 100L340 99L341 100ZM342 100L341 99L341 98L341 99L342 100ZM304 100L303 100L304 100L304 99L305 99L306 98L307 98L307 99L306 99L305 99L304 100ZM298 98L299 98L299 99L298 99L297 99L297 98L298 98ZM303 98L303 99L301 99L300 99L300 98L301 98L301 99L302 98L303 98ZM340 98L340 99L339 98L338 97L339 98L340 98ZM289 97L291 97L291 96L293 97L293 98L294 98L296 98L295 99L293 98L292 98L291 98L289 98L288 98L286 97L285 97L286 96L287 96L288 96L289 97ZM315 96L314 97L314 96L314 95L315 96ZM336 97L335 97L335 96L335 95L335 96L336 96L336 97ZM332 95L331 96L330 96L329 96L328 96L328 95L329 96L330 96L330 95L330 96L331 95L332 95L332 94L332 95ZM307 93L307 94L306 94L306 93L307 93ZM310 93L311 94L310 93L309 93L308 93L309 93L310 93ZM333 94L333 95L333 94L332 94L332 93L331 93L332 93L333 94ZM314 91L314 93L315 93L316 92L317 92L318 92L319 92L320 92L321 93L323 93L325 94L326 95L328 96L328 97L327 97L328 98L329 99L329 100L330 100L331 100L331 101L330 101L330 100L329 100L328 100L327 99L326 98L325 98L324 98L323 98L323 99L322 99L321 99L320 98L319 98L318 98L319 97L318 96L318 95L316 95L315 94L314 94L313 94L313 93L312 93L313 92L314 92L312 92L311 91L312 91L312 90L314 91ZM305 89L304 90L303 90L301 90L300 90L300 91L301 91L303 91L302 92L302 93L302 94L303 95L303 96L302 95L303 94L302 95L301 95L302 94L301 94L301 93L300 93L300 94L300 96L299 95L300 94L299 93L299 92L299 91L300 90L300 89L301 89L302 89L303 89L304 89L305 88L305 89ZM309 89L309 90L308 90L308 91L308 90L307 89L308 88L309 88L309 89ZM286 96L285 96L284 95L283 94L282 94L281 93L281 92L280 91L279 90L279 89L279 88L278 88L277 87L276 86L275 85L276 85L277 85L278 86L279 86L280 87L281 88L282 88L282 89L283 89L284 90L283 91L284 91L285 92L286 92L286 93L286 94L286 96ZM298 88L299 89L298 89L297 90L298 91L297 91L297 92L296 94L295 94L294 93L293 93L292 93L291 93L290 93L290 92L290 91L289 90L289 89L290 88L291 88L291 87L292 87L293 87L294 86L294 85L295 85L296 84L297 83L298 84L299 85L298 85L299 86L298 86L297 87L298 88ZM306 82L307 83L306 84L306 83L305 83L306 84L305 84L304 84L304 83L304 82L303 83L302 83L302 82L303 82L303 81L304 82L305 81L305 80L306 81L306 82ZM261 84L260 84L260 83L260 82L260 80L261 81L262 82L262 84L261 84ZM304 80L303 81L302 80L303 80L303 79L303 80L304 79L304 80ZM299 81L297 82L298 81L298 80L299 80L300 79L299 80L299 81ZM302 78L303 78L303 79L302 80L302 79L302 78ZM306 78L306 79L305 79L305 80L305 79L304 79L305 79L305 78L304 77L305 77L306 78ZM302 77L301 78L301 77L300 77L301 77L302 77ZM301 71L302 72L303 73L302 74L302 75L302 76L303 76L304 76L304 77L303 77L303 76L303 77L302 76L301 76L301 75L301 76L300 75L300 74L300 72L301 71ZM114 72L113 72L113 71L114 71L114 72ZM103 72L102 72L102 71L102 72L103 72L104 72L103 72ZM107 70L108 70L109 70L110 70L110 71L111 71L112 71L111 72L110 72L109 72L108 72L107 72L106 72L106 71L107 71L107 72L108 71L107 71L107 70ZM290 71L289 72L289 71L289 70L290 70L291 70L291 71L290 71ZM24 71L24 70L25 70L25 71L24 71ZM100 67L101 68L102 67L102 68L103 68L103 69L104 69L105 69L106 70L105 70L104 70L102 70L103 70L103 69L102 69L101 68L100 68L99 68L98 68L98 67L97 67L97 68L96 68L95 68L96 68L96 67L97 67L98 67L99 67L100 67ZM102 66L102 65L102 66ZM301 67L301 68L300 67L300 66L301 65L302 65L302 66L301 67ZM315 56L314 57L314 56L313 57L312 57L313 56L314 56L315 56ZM215 54L214 55L213 55L212 55L213 55L214 55L215 54ZM204 54L204 55L205 55L206 55L205 55L204 55L204 54ZM196 52L195 53L194 53L192 52L193 52L194 52L195 52L196 52ZM189 49L190 49L190 51L189 51L188 51L188 50L188 49L189 49ZM321 53L321 54L320 55L319 55L317 55L316 57L315 56L315 55L313 56L312 56L311 56L312 57L311 59L310 59L310 58L310 57L309 57L310 56L311 56L312 55L313 55L315 54L316 54L317 53L319 52L320 51L320 49L321 49L322 50L322 51L321 52L321 53ZM190 48L189 49L189 48L189 47L190 48ZM324 46L325 46L326 47L324 47L323 48L322 47L321 48L320 48L320 47L321 47L322 45L322 44L323 45L324 46ZM116 43L117 44L118 44L117 44L116 44L116 43ZM118 41L116 41L115 40L116 40L117 40L118 41ZM56 41L56 42L54 41L53 40L52 40L52 39L53 39L53 40L54 40L55 40L55 41L56 41ZM124 39L123 40L124 40L125 40L124 40L125 41L126 40L127 41L126 41L127 41L127 42L127 43L126 43L126 42L125 43L124 43L125 43L124 42L123 42L121 42L121 41L122 41L123 39L124 38L125 38L124 39ZM47 36L48 36L48 37L49 38L48 38L48 37L47 37L47 36ZM324 39L325 41L323 41L323 42L324 43L324 44L323 43L322 44L322 43L322 42L322 41L322 40L322 39L322 38L322 37L323 36L322 36L323 36L323 37L323 38L324 39ZM173 38L171 38L170 38L171 37L170 36L172 35L173 35L174 35L174 36L174 37L173 38ZM193 34L192 35L191 35L191 34L192 34L193 34ZM27 33L26 33L25 33L26 32L27 32L28 32L27 33ZM177 31L176 32L177 32L178 32L178 33L177 34L178 34L179 35L180 36L180 37L182 37L182 38L181 38L181 39L179 39L178 39L177 39L176 40L175 40L174 40L176 39L177 39L175 38L176 38L175 37L177 37L177 36L176 35L175 35L175 34L174 35L174 34L174 33L174 32L175 31L176 31L177 31ZM14 30L13 30L14 30ZM98 27L97 28L96 28L97 27L98 27ZM8 26L9 26L10 26L10 27L11 27L10 27L9 27L8 27L8 26ZM95 24L95 25L96 25L97 25L98 26L99 26L100 26L99 27L97 26L96 26L94 27L94 26L93 26L94 26L94 25L94 24L95 24ZM165 24L166 25L165 26L162 26L161 27L160 26L157 26L158 26L156 25L158 25L156 24L158 24L159 24L161 24L162 24L164 23L165 24ZM104 23L103 23L103 22L104 22L105 22L105 23L104 23ZM5 23L6 24L5 23L8 23L10 24L9 24L7 25L7 26L6 26L5 25L4 25L3 24L2 25L1 24L0 24L1 25L0 25L0 21L2 22L5 23ZM84 21L82 21L80 21L81 20L82 20L83 20L84 21ZM360 19L359 19L360 18L360 19ZM1 19L0 19L0 18L1 18L2 19L1 19ZM89 21L89 22L91 21L92 21L92 22L93 23L94 22L94 21L94 20L96 20L97 20L99 21L98 22L99 22L99 23L97 24L95 24L94 23L94 24L93 25L92 26L90 26L89 26L89 27L88 27L87 28L86 29L85 30L85 31L87 31L87 32L88 33L89 33L91 33L92 34L93 34L94 34L95 35L97 35L98 35L98 36L98 37L99 38L100 39L101 38L101 37L101 36L100 35L102 35L103 34L103 33L103 32L101 31L103 30L102 29L102 28L103 27L104 28L105 28L106 28L107 28L108 28L109 29L110 29L110 30L111 31L112 31L112 32L114 31L115 30L116 31L117 32L119 33L118 34L120 34L120 35L122 35L123 35L123 36L124 36L124 37L124 38L123 39L121 39L120 40L118 40L116 40L115 40L114 40L113 40L111 41L110 42L109 43L110 43L111 42L113 41L115 41L116 41L115 42L115 43L116 44L117 44L118 44L119 43L120 44L119 45L117 45L116 46L115 46L114 46L116 45L114 45L113 45L112 46L111 46L110 46L109 47L109 48L110 48L109 49L108 49L107 49L106 49L108 49L107 49L106 49L106 50L105 51L104 51L105 51L105 52L104 53L104 52L104 51L103 51L104 52L103 52L104 52L104 53L104 54L104 55L103 55L102 56L101 56L101 57L100 57L99 58L99 59L99 60L99 61L99 62L100 63L100 64L100 65L99 65L99 64L98 64L98 63L97 63L97 62L97 61L96 60L95 60L94 60L92 60L91 60L90 60L91 60L91 61L90 61L89 61L88 60L87 60L86 60L85 61L84 61L83 62L83 63L83 64L82 65L82 66L82 67L82 68L83 69L83 70L84 71L85 71L86 72L87 71L88 71L89 71L89 70L90 69L91 69L92 69L93 68L93 69L93 70L92 70L93 71L92 71L92 72L92 71L92 72L92 73L91 74L92 74L93 74L94 74L95 74L96 74L96 75L97 75L97 76L96 76L96 77L97 77L97 78L96 78L96 79L97 80L98 81L99 81L100 81L100 80L101 80L101 81L102 81L103 81L104 81L104 80L105 79L106 79L107 79L107 78L108 78L109 78L108 79L108 80L108 81L109 81L109 80L109 79L110 79L110 78L110 79L111 79L112 79L113 79L114 79L114 80L115 80L116 80L116 79L117 79L118 79L117 80L118 80L119 81L120 81L120 82L121 82L122 83L122 84L123 84L124 84L125 84L126 84L127 85L128 85L128 86L129 86L129 88L130 88L130 89L129 90L130 90L131 90L131 91L132 91L133 91L135 92L136 92L135 93L137 92L139 93L140 93L141 94L143 95L144 95L145 95L145 97L145 99L144 100L143 101L142 102L142 103L141 103L141 104L141 106L141 107L141 108L140 108L140 110L139 111L139 112L138 112L138 113L137 113L135 113L135 114L134 114L132 115L132 116L131 117L132 117L131 118L131 119L130 119L129 121L128 122L127 123L127 124L126 124L125 125L124 125L123 124L122 124L123 125L123 126L123 127L122 128L121 129L119 129L118 129L118 130L118 131L117 131L116 131L115 131L115 132L116 132L117 133L116 133L115 133L115 135L114 135L113 135L113 136L112 136L113 137L114 137L114 138L113 139L112 140L111 140L111 141L111 142L112 142L111 142L110 143L109 143L109 144L107 144L106 143L105 142L105 141L105 140L104 139L105 138L106 137L104 137L105 136L106 134L107 134L107 132L106 133L106 132L106 130L107 129L106 128L106 127L107 127L107 126L108 124L109 122L108 121L109 120L109 119L109 118L109 116L110 114L110 111L110 110L110 108L109 108L109 107L107 106L105 105L104 105L104 104L103 102L102 100L101 98L100 97L99 97L99 96L99 95L99 94L100 93L100 92L100 93L99 92L99 91L100 90L100 89L101 89L101 88L102 87L103 86L103 85L102 84L103 84L103 83L102 83L102 82L101 81L100 81L100 82L100 83L99 83L99 82L98 82L97 82L96 82L96 81L95 80L94 80L94 79L93 78L92 77L93 77L92 77L91 77L90 76L89 76L88 76L88 75L87 74L86 74L85 74L84 74L83 74L82 74L81 73L80 73L79 73L78 72L76 72L76 71L75 71L75 70L74 70L75 69L74 69L75 69L74 68L74 67L73 66L72 65L71 64L70 63L69 62L68 62L68 61L67 60L67 59L66 58L65 58L65 59L65 60L66 60L66 61L67 61L67 62L68 62L68 63L69 64L69 65L69 66L70 66L71 67L70 67L69 66L68 66L68 65L68 64L67 64L67 63L66 63L65 62L66 62L66 61L65 61L64 60L64 59L63 58L63 57L62 56L61 56L60 56L59 55L58 54L57 52L56 51L56 50L56 49L56 48L55 47L56 46L56 44L56 43L56 42L55 42L57 42L57 43L58 43L58 42L57 41L55 40L54 40L53 39L52 38L51 37L51 36L49 36L49 35L48 35L48 34L46 33L46 32L45 32L43 32L42 31L40 30L39 30L37 30L36 30L34 30L33 29L32 29L32 30L31 30L30 30L29 31L28 31L28 30L29 29L30 29L29 29L28 29L27 30L26 31L27 31L26 32L25 32L24 33L23 33L22 34L20 34L19 35L18 35L17 35L15 36L15 35L16 35L17 35L18 34L19 34L20 34L21 33L22 33L22 32L23 31L22 31L21 31L21 32L20 31L19 31L18 31L18 30L17 30L16 30L15 30L15 29L14 28L15 27L16 27L17 27L18 26L18 27L19 26L18 26L19 25L18 25L17 26L16 25L15 26L14 25L13 25L12 24L13 24L16 23L16 24L18 24L18 23L16 23L16 22L15 22L13 22L14 21L16 21L17 21L17 20L18 20L19 20L21 19L22 19L23 19L25 19L26 19L28 19L29 20L30 19L32 20L34 20L35 20L36 20L38 20L39 20L41 21L42 21L43 21L44 21L46 20L47 20L49 20L50 20L51 20L52 20L53 20L54 21L56 20L56 21L57 20L59 20L60 21L62 21L64 21L65 21L66 22L65 22L67 22L69 22L70 22L71 23L72 22L71 22L72 21L73 21L74 21L75 21L76 22L77 22L79 22L80 22L82 22L81 22L82 21L84 22L84 23L85 22L86 21L85 20L84 20L84 19L85 18L86 18L87 19L88 20L89 21ZM66 17L65 17L68 17L69 18L70 17L71 17L72 18L72 17L73 17L75 17L75 18L76 19L77 20L79 20L77 20L78 21L76 21L74 21L73 21L71 21L68 21L67 21L66 21L65 21L64 21L63 20L65 20L66 20L68 20L66 19L64 19L62 19L64 19L62 19L61 18L62 17L65 17L66 17ZM76 17L75 17L73 17L73 16L75 16L76 17ZM104 17L103 17L102 17L101 17L100 17L99 17L99 16L100 16L102 16L104 17ZM93 17L94 17L95 17L98 16L99 17L99 18L101 18L102 17L104 18L106 18L106 19L108 18L109 19L111 19L112 20L113 21L111 21L114 22L115 22L117 23L118 23L118 24L116 25L115 25L113 24L112 24L113 25L114 25L115 26L115 27L114 27L111 26L113 27L114 28L111 28L109 27L108 27L108 26L107 26L105 25L105 26L102 26L101 25L102 25L104 25L106 25L106 24L107 23L107 22L105 21L103 21L104 21L103 20L102 20L101 20L99 20L95 20L93 20L91 20L90 19L92 19L90 19L90 18L91 17L92 16L94 16L93 17ZM80 16L81 16L83 16L83 17L82 17L83 17L83 18L82 19L81 19L80 18L78 17L80 17L78 17L80 16ZM324 17L322 17L320 17L321 16L322 16L323 17L324 17ZM87 17L86 18L85 18L84 17L85 16L88 16L89 16L88 17L87 17ZM60 19L57 19L56 19L54 18L55 17L56 16L55 16L58 16L60 16L62 16L63 16L64 17L63 17L61 17L60 18L60 19ZM331 15L330 15L328 15L326 15L328 15L331 15ZM86 15L84 15L83 15L84 15L85 14L86 15ZM325 14L324 15L321 15L319 15L317 15L318 14L319 14L321 14L325 14ZM82 13L82 14L82 15L80 15L79 15L79 14L77 14L79 14L80 13L81 13L82 13ZM72 14L73 14L74 14L74 15L70 15L68 16L66 16L66 15L68 15L64 15L62 15L64 14L65 14L67 14L69 14L71 15L70 14L70 13L71 13L72 14ZM238 19L237 19L234 19L233 19L232 19L231 18L232 18L232 17L234 16L236 15L238 14L241 14L244 14L246 13L248 13L249 13L248 14L245 14L242 15L238 16L237 17L235 18L236 18L238 19ZM85 13L86 13L88 13L89 14L90 14L91 14L92 14L94 15L95 14L97 14L99 14L100 15L98 16L97 15L94 16L92 16L90 15L88 15L87 15L87 14L86 14L84 14L83 13L85 13ZM64 12L64 13L63 13L62 14L60 14L59 14L57 14L59 13L61 12L62 13L64 12ZM287 13L287 14L288 13L291 13L293 14L294 14L294 15L293 15L290 16L289 16L291 16L292 16L293 16L294 17L294 16L296 16L299 16L299 17L303 17L303 16L305 16L307 16L309 17L309 18L308 18L310 19L311 19L312 18L314 19L316 18L317 19L318 18L320 19L319 18L320 17L330 18L333 19L337 19L339 19L340 20L341 21L342 20L344 20L346 21L348 20L350 21L351 21L350 20L354 20L356 20L359 21L360 21L360 25L359 25L357 25L358 26L359 27L359 28L357 27L355 28L354 28L352 29L351 30L350 30L349 29L346 30L345 30L344 30L343 31L342 32L343 32L343 34L342 34L342 35L340 36L340 37L339 37L338 38L337 39L336 38L336 37L335 35L336 33L337 33L337 32L338 32L340 31L342 30L344 29L344 27L343 28L340 29L339 28L337 29L334 30L335 31L333 31L331 31L331 30L330 30L329 31L325 31L322 31L319 33L315 35L317 35L317 36L318 36L319 36L320 36L321 37L321 38L321 39L321 40L320 42L319 43L318 44L317 45L316 46L315 47L314 47L313 47L312 47L311 47L311 48L310 48L310 49L309 49L309 50L308 50L308 51L307 51L308 51L309 53L309 54L309 55L308 55L307 56L306 56L306 55L307 54L306 53L307 53L306 52L305 52L305 51L305 50L304 50L303 50L302 51L301 51L302 51L301 50L302 50L302 49L301 49L300 50L299 51L298 51L298 52L299 52L299 53L300 53L301 52L302 53L303 53L301 53L301 54L300 54L299 55L300 56L301 57L301 58L302 58L302 59L301 59L302 60L302 61L302 62L301 62L300 63L300 64L299 65L297 66L296 67L295 67L294 68L294 67L293 68L292 68L291 69L290 70L290 69L289 68L288 68L287 69L286 70L286 71L286 72L287 73L288 74L289 75L289 77L289 78L288 79L287 80L286 80L285 81L285 80L284 80L283 79L283 78L282 77L281 77L280 77L280 78L279 79L279 80L279 81L280 81L280 82L280 83L281 83L282 83L282 84L283 84L283 85L283 86L283 87L284 87L284 88L284 89L283 88L281 87L281 86L281 85L280 85L280 84L280 83L279 82L278 82L278 81L279 80L278 79L279 79L278 78L279 77L278 76L278 75L278 74L277 73L277 74L275 74L274 74L275 73L274 72L274 71L274 70L273 70L272 69L272 68L271 67L270 67L271 68L270 68L269 68L268 68L267 69L266 70L265 71L264 72L263 72L262 73L262 74L261 74L260 74L260 75L260 76L260 77L260 78L260 80L259 80L259 81L258 81L258 82L257 81L256 80L256 79L255 78L255 77L255 76L254 75L254 74L253 72L253 71L253 70L253 69L251 69L250 69L249 68L250 68L249 67L248 66L247 66L247 65L246 65L245 65L243 65L241 65L240 65L239 64L237 64L237 63L236 63L235 64L233 63L232 62L231 61L230 60L229 60L228 60L228 61L229 62L229 63L230 63L230 64L231 65L231 64L232 64L232 65L231 65L232 66L233 66L234 66L235 65L236 64L236 65L237 66L238 66L239 66L239 67L240 67L240 68L239 68L239 69L238 70L238 71L237 71L237 72L236 72L235 72L235 73L234 73L233 73L232 74L231 75L230 75L229 76L228 76L227 76L227 77L226 77L225 77L224 77L223 77L223 76L223 75L223 74L223 73L222 73L222 72L221 71L220 70L219 69L219 68L219 67L218 66L217 66L217 65L217 64L216 63L215 62L215 61L215 60L215 61L214 62L213 62L212 60L213 61L213 62L214 64L215 65L216 66L215 66L216 67L217 68L217 69L217 70L217 71L218 72L219 73L219 74L220 75L221 76L222 76L222 77L223 77L223 78L223 79L224 79L224 80L225 80L226 79L227 79L228 79L229 79L230 78L231 78L231 79L231 80L231 81L230 82L229 83L229 85L228 86L227 87L226 88L224 89L223 90L222 91L222 92L221 92L220 93L220 94L219 95L219 96L219 97L219 98L220 99L220 100L220 101L220 102L221 103L221 104L221 105L220 105L220 106L219 107L217 108L216 109L215 110L215 111L215 112L216 112L216 113L215 114L216 114L215 114L214 115L213 115L213 116L213 117L212 118L212 119L211 119L211 120L210 121L209 122L208 123L207 123L206 124L205 124L204 124L203 124L202 124L201 124L200 125L199 124L198 124L198 123L198 122L198 121L197 120L196 119L196 118L195 117L195 116L195 115L194 114L194 113L194 112L193 111L193 110L193 109L192 108L192 107L192 106L192 105L192 104L193 104L193 103L193 102L194 102L194 101L193 100L193 99L193 98L193 97L192 96L192 95L191 94L190 93L189 92L189 91L189 90L189 89L190 88L190 87L189 86L188 86L189 85L187 86L186 86L185 85L185 84L184 84L183 84L182 84L181 84L179 85L178 85L177 85L176 85L175 85L174 85L173 85L172 86L171 85L170 84L169 84L169 83L168 83L167 82L167 81L166 81L166 80L165 80L165 79L164 79L164 78L163 78L163 77L163 76L162 75L163 75L163 74L164 74L163 73L164 73L164 72L164 71L164 70L163 69L163 68L164 67L164 66L165 66L165 65L165 64L166 64L166 63L167 62L168 62L169 61L170 61L170 60L170 59L171 58L171 57L172 56L173 56L174 55L174 54L175 54L175 55L176 55L177 55L178 55L179 54L180 54L181 54L181 53L183 53L185 53L186 53L187 53L188 53L190 53L191 53L191 54L191 55L190 56L191 56L191 57L193 57L194 57L195 58L196 59L197 59L198 59L199 60L200 59L200 58L201 57L202 57L203 57L203 58L204 58L205 58L206 58L207 59L208 59L209 59L210 59L211 58L212 59L213 59L214 59L215 58L214 58L215 58L215 57L215 56L216 55L216 54L216 53L215 53L214 54L213 54L212 53L211 53L210 54L209 53L208 53L207 52L206 52L207 51L206 51L207 50L209 50L209 49L211 49L212 48L214 48L215 48L217 49L218 49L220 49L222 48L221 47L220 47L219 46L218 45L217 45L218 44L218 43L219 43L218 43L217 43L216 43L215 44L216 45L217 45L216 45L215 45L214 46L213 45L214 45L212 45L213 44L214 44L213 44L212 44L212 43L211 43L210 44L210 45L209 45L209 46L208 47L208 48L209 49L208 49L207 49L206 50L206 49L205 49L204 49L204 50L203 50L203 51L204 51L204 52L203 52L203 53L203 54L202 54L202 53L201 52L201 51L200 51L200 50L199 50L199 49L200 48L199 48L198 48L198 47L197 47L196 46L195 46L195 45L194 45L194 44L193 44L192 45L193 46L194 46L194 47L195 48L196 48L197 49L198 49L198 50L197 50L196 50L197 51L196 52L196 51L196 50L195 50L195 49L194 49L193 49L192 48L191 48L191 47L190 46L189 46L188 46L187 46L187 47L185 47L183 47L183 48L182 49L181 49L180 50L180 51L180 52L179 52L179 53L178 53L177 53L176 53L175 54L174 54L173 53L172 53L171 53L171 52L170 51L171 51L171 50L171 49L171 48L171 47L172 46L173 46L175 46L176 47L178 47L179 46L179 44L178 43L177 42L176 42L175 41L177 41L178 41L178 40L179 41L181 40L182 39L183 39L184 38L185 37L186 36L187 37L187 36L188 36L189 36L189 35L188 34L188 33L189 33L190 33L191 32L191 33L190 33L191 34L190 34L190 35L191 36L192 36L193 36L194 36L195 36L196 35L198 35L199 35L199 36L200 36L200 35L201 35L201 34L201 33L202 33L203 32L203 33L204 33L204 32L203 31L205 31L206 30L207 31L208 31L209 30L208 29L206 30L204 30L203 30L202 30L201 29L202 28L201 27L202 27L202 26L205 25L205 24L204 24L202 24L201 25L201 26L200 26L198 27L197 29L198 29L199 30L198 31L197 31L196 33L196 34L195 34L194 35L193 35L193 34L192 33L191 31L190 31L188 32L187 32L186 31L185 30L185 28L186 27L189 27L191 26L192 24L195 22L196 21L199 20L201 20L203 20L205 19L206 19L208 19L211 20L210 20L211 20L212 20L214 21L217 21L220 22L221 23L220 24L218 24L214 23L213 23L215 24L215 26L216 26L217 26L217 25L220 25L222 24L223 24L224 24L225 23L224 23L224 22L223 21L226 22L227 22L226 22L226 23L228 23L228 22L230 22L234 21L233 22L235 22L237 22L239 21L240 22L241 21L240 20L241 20L244 20L245 21L249 22L249 21L248 21L247 21L247 20L247 19L249 18L249 17L250 17L253 17L253 18L252 19L253 20L253 21L254 22L253 22L251 24L252 24L253 23L254 23L255 22L254 22L255 21L254 21L254 20L254 19L253 19L255 18L255 17L256 18L255 19L256 19L256 18L258 18L260 18L262 18L261 17L261 16L262 16L265 16L267 16L266 16L267 15L268 15L270 14L273 14L276 14L277 14L279 14L281 14L281 13L282 13L284 12L286 13L285 13L287 13ZM229 49L230 49L230 50L229 51L229 52L230 53L231 53L232 53L234 53L234 52L234 51L233 51L233 50L233 49L234 49L235 49L234 48L233 48L233 49L233 48L232 48L233 48L233 47L231 47L231 46L230 46L230 45L231 45L232 45L233 45L233 44L233 43L232 43L231 43L230 43L229 44L228 44L227 45L228 46L227 47L229 48L229 49ZM86 12L86 13L84 12L86 12ZM70 12L68 13L66 12L67 12L69 12L70 12ZM205 12L202 13L201 12L203 12L205 12ZM70 11L69 12L67 12L67 11L68 11L69 11L70 11ZM84 12L83 12L82 12L81 12L81 11L83 11L84 12ZM80 12L79 12L77 12L75 12L76 11L75 11L76 11L79 11L80 12ZM285 12L279 12L281 11L282 11L283 11L285 11L285 12ZM198 10L202 11L199 11L198 12L197 13L196 13L194 13L195 12L193 12L191 11L190 10L193 10L194 10L195 10L196 10L197 10L198 10ZM205 10L207 10L206 10L203 11L200 10L198 10L197 10L200 9L202 10L203 9L205 10ZM231 9L230 10L229 10L228 10L227 10L227 9L225 9L227 9L228 9L229 9L230 9L232 9L231 9ZM280 11L278 11L275 11L273 11L273 10L271 10L274 9L276 9L278 9L280 10L280 11ZM93 10L94 11L93 11L91 12L89 12L87 12L86 11L87 11L85 11L84 10L83 10L84 9L85 9L86 9L85 9L88 9L89 9L91 9L92 10L93 10ZM112 7L114 7L116 7L118 7L118 8L116 8L113 8L112 8L115 8L112 9L111 9L109 10L107 10L106 11L103 11L104 11L105 11L104 12L102 12L100 13L102 13L99 14L97 14L94 14L92 14L91 14L90 13L92 13L92 12L95 12L94 12L92 12L93 11L95 11L93 10L96 10L97 10L98 10L96 9L92 9L91 9L90 9L89 8L88 8L90 8L91 8L93 8L95 7L96 7L97 8L98 7L99 7L101 7L104 7L107 7L109 7L112 7ZM153 6L159 7L157 8L153 8L148 8L149 8L152 8L155 8L157 8L158 8L157 9L159 8L164 8L167 8L168 9L164 9L163 10L160 10L162 10L161 11L160 11L160 12L162 13L160 13L158 13L160 14L160 15L159 15L161 16L158 16L160 16L159 17L158 17L156 17L158 17L158 18L156 17L155 18L157 18L158 19L156 20L156 19L154 19L155 19L154 20L156 20L158 20L155 21L152 22L149 22L148 22L147 22L146 23L144 24L143 24L142 24L140 25L139 25L139 26L139 27L137 27L138 28L137 29L137 30L135 30L134 29L132 29L131 29L130 28L128 26L128 25L126 24L127 23L126 23L127 22L129 21L129 20L128 20L127 21L125 20L126 19L127 19L129 19L127 19L126 18L125 19L124 18L125 17L124 16L123 15L121 15L121 14L119 14L117 14L114 14L111 14L110 14L109 13L111 13L113 13L109 12L107 12L111 11L114 11L115 10L112 10L113 9L116 9L118 9L117 8L120 8L123 8L126 8L127 8L130 8L132 8L133 8L135 8L133 8L133 7L137 7L140 7L141 6L145 6L153 6Z";var qr=360,rr=180,Lr=o=>o+180,ar=o=>90-o,An=23.44,Tn=66.56,Dn=o=>o===0?"0":`${Math.abs(o)}°${o>0?"E":"W"}`,En=o=>o===0?"0":`${Math.abs(o)}°${o>0?"N":"S"}`;function wi(o){let t=[],e=[],r=null;for(let a of o)r!==null&&Math.abs(a.longitude-r)>180&&(e.length&&t.push(e),e=[]),e.push(`${Lr(a.longitude)},${ar(a.latitude)}`),r=a.longitude;return e.length&&t.push(e),t.filter(a=>a.length>1).map(a=>a.join(" "))}var Mn={mc:"MC",ic:"IC",ascendant:"ASC",descendant:"DSC"},pt=class extends y{renderData(t){let e=t.lines??[],r=t.birthDetails;return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t("Astrocartography")}</h2>${r?s`<div class="meta">${q(this.effectiveLang(),r.date,r.time)} · ${En(Math.round(r.latitude))} ${Dn(Math.round(r.longitude))}</div>`:i}</header>${this.renderMap(e,r)} ${this.renderLegend(e)} ${t.summary&&!this.hideReadings?s`<p class="summary">${t.summary}</p>`:i} ${this.renderInterpretations(e)}</div>`}renderMap(t,e){return s`<svg viewBox="0 0 ${qr} ${rr}" part="chart" role="img" aria-label="${this.t("World map of planetary astrocartography lines")}"><title>${this.t("Astrocartography world map")}</title><desc>${this.t("Equirectangular world map. Each body has a Midheaven and Imum Coeli meridian and a curved Ascendant and Descendant line, colored per body.")}</desc><rect class="map-frame" x="0" y="0" width="${qr}" height="${rr}"/><path class="land" d="${Cn}" fill-rule="evenodd"/>${this.renderGraticule()} ${t.map((r,a)=>this.renderBodyLines(r,a))} ${e?L`<text class="birthplace" x=${Lr(e.longitude)} y=${ar(e.latitude)} text-anchor="middle" dominant-baseline="central"><title>${this.t("Birth location")}</title>★</text>`:i}</svg>`}renderGraticule(){let t=[];for(let a=-150;a<=150;a+=30){let n=Lr(a),l=a===0;t.push(L`<line class=${l?"grat-axis":"grat"} x1=${n} y1="0" x2=${n} y2=${rr} />`),t.push(L`<text class="axis-label" x=${n} y=${rr-2} text-anchor="middle">${Dn(a)}</text>`)}let e=[];for(let a=-60;a<=60;a+=30){let n=ar(a),l=a===0;e.push(L`<line class=${l?"grat-axis":"grat"} x1="0" y1=${n} x2=${qr} y2=${n} />`),e.push(L`<text class="axis-label" x="2" y=${n-1}>${En(a)}</text>`)}let r=[An,-An,Tn,-Tn].map(a=>L`<line class="grat-ref" x1="0" y1=${ar(a)} x2=${qr} y2=${ar(a)} />`);return L`${t}${e}${r}`}renderBodyLines(t,e){let r=ct(t.planet,e),a=t.symbol||R(t.planet)||t.planet,n=[this.renderMeridian(t.mc.longitude,r,a,t.planet,"mc",!1),this.renderMeridian(t.ic.longitude,r,a,t.planet,"ic",!0),this.renderCurve(t.ascendant.points,r,a,t.planet,"ascendant",!1),this.renderCurve(t.descendant.points,r,a,t.planet,"descendant",!0)];return L`${n}`}renderMeridian(t,e,r,a,n,l){let d=Lr(t),c=n==="ic"?rr-7:9;return L`<g>
|
|
4
|
+
<line class=${`acg-line${l?" dashed":""}`} stroke=${e} x1=${d} y1="0" x2=${d} y2=${rr}><title>${this.t("{{planet}} {{angle}} line",{planet:a,angle:this.t(Mn[n]??"MC")})}</title></line>
|
|
5
5
|
<text class="acg-glyph" fill=${e} x=${d} y=${c} text-anchor="middle" dominant-baseline="central">${r}</text>
|
|
6
|
-
</g>`}renderCurve(t,e,r,a,n,l){let d
|
|
7
|
-
${d.map(p=>L`<polyline class=${`acg-line${l?" dashed":""}`} stroke=${e} points=${p}><title>${this.t("{{planet}} {{angle}} line",{planet:a,angle:this.t(
|
|
8
|
-
<text class="acg-glyph" fill=${e} x=${Lr(c.longitude)} y=${
|
|
9
|
-
</g>`}renderLegend(t){return t.length===0?i:s`<div class="legend" part="legend">${t.map((e,r)=>{let a=ct(e.planet,r);return s`<span class="legend-item"><span class="legend-swatch" style="${`border-top-color: ${a}`}"></span> ${e.symbol?s`${e.symbol}`:i}${e.planet}</span>`})} <span class="legend-note">${this.t("Solid lines are the Ascendant and Midheaven, dashed are the Descendant and IC.")}</span></div>`}renderInterpretations(t){return t.length===0||this.hideReadings?i:s`<section class="block" part="section readings"><h3>${this.t("Planetary lines")}</h3>${t.map((e,r)=>{let a=ct(e.planet,r),n=[["MC",e.mc.interpretation],["IC",e.ic.interpretation],["AC",e.ascendant.interpretation],["DC",e.descendant.interpretation]];return s`<details class="interp-card" part="reading" name="acg-lines" ?open="${r===0}"><summary><span class="interp-lead"><span class="interp-dot" style="${`background: ${a}`}"></span> ${e.symbol?s`${e.symbol}`:i}${e.planet} </span>${j()}</summary><div class="interp-body">${n.filter(([,l])=>l).map(([l,d])=>s`<p class="interp-line"><span class="code">${l}</span>${d}</p>`)}</div></details>`})}</section>`}};pt.styles=[x,M,O,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}svg{border-radius:var(--roxy-radius-sm,4px);width:100%;height:auto;display:block}.map-frame{fill:color-mix(in srgb, var(--roxy-border,#e4e4e7) 12%, transparent);stroke:var(--roxy-border,#e4e4e7);stroke-width:.8px}.land{fill:var(--roxy-secondary,#475569);opacity:.13}.grat{stroke:var(--roxy-border,#e4e4e7);stroke-width:.4px;fill:none}.grat-axis{stroke:var(--roxy-muted,#71717a);stroke-width:.6px;opacity:.6}.grat-ref{stroke:var(--roxy-secondary,#475569);stroke-width:.4px;stroke-dasharray:2 2;opacity:.5;fill:none}.axis-label{fill:var(--roxy-muted,#71717a);font-size:5px;font-family:var(--roxy-font-sans)}.acg-line{fill:none;stroke-width:1px;opacity:.95}.acg-line.dashed{stroke-dasharray:4 2.5}.acg-glyph{font-size:8px;font-family:var(--roxy-font-sans);font-weight:600}.birthplace{fill:var(--roxy-fg,#0a0a0a);font-size:9px}.legend{gap:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);flex-wrap:wrap;display:flex}.legend-item{align-items:center;gap:.3rem;display:inline-flex}.legend-swatch{border-top-style:solid;border-top-width:2px;width:14px;height:0}.legend-note{width:100%;color:var(--roxy-muted,#71717a)}.summary{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0}.interp-dot{border-radius:50%;flex-shrink:0;align-self:center;width:10px;height:10px}.interp-line{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0}.interp-line .code{color:var(--roxy-accent-ink,#b45309);margin-right:.4rem;font-weight:600}`],pt=g([b("roxy-astrocartography-map")],pt);function ye(o,t){return!t||!o?.length?"":o.map(e=>t[String(e)]?.[0]).filter(Boolean).join(", ")}function Za(o,t){return!t||typeof o!="number"?"":(t[String(o)]??[]).join(", ")}var mt=class extends y{renderData(t){let e=t.grahas??[],r=t.bhavas??[];if(!e.length&&!r.length)return this.renderEmpty();let a=e.filter(l=>l.moved),n=t.movedCount??a.length;return s`<div class="wrap" part="card" aria-label="${this.t("Bhav Chalit")}"><header class="head" part="header"><h2 class="title">${this.t("Bhav Chalit")}</h2><p class="lede">${n===0?this.t("No graha changes house. The Rashi chart and the Chalit chart agree, which is a normal result rather than a missing reading."):this.t("{{count}} of {{total}} grahas change house between the Rashi chart and the unequal Sripati cusps.",{count:n,total:e.length})}</p>${F(this.effectiveLang(),t.frame,this.translator)}</header>${a.length?s`<div class="moved-list" part="table moved">${a.map(l=>this.renderMoved(l,t.houseThemes))}</div>`:i} ${r.length?s`<details part="details"><summary>${this.t("Bhava cusps and occupants")}</summary><div class="scroll"><table part="table"><thead><tr><th>${this.t("Bhava")}</th><th>${this.t("Rashi")}</th><th>${this.t("Start")}</th><th>${this.t("Madhya")}</th><th>${this.t("End")}</th><th>${this.t("Span")}</th><th>${this.t("Grahas")}</th></tr></thead><tbody>${r.map(l=>this.renderBhavaRow(l))}</tbody></table></div></details>`:i}</div>`}renderMoved(t,e){let r=R(t.graha)??"",a=typeof t.bhava=="number"?ye([t.bhava],e):"";return s`<div class="moved-row"><span class="graha">${r?s`<span class="glyph">${r}</span>`:i}${t.graha} </span><span class="shift">${this.t("house {{from}} in the Rashi chart, house {{to}} here",{from:t.rashiHouse??"",to:t.bhava??""})} </span>${a?s`<span class="themes">${a}</span>`:i}</div>`}renderBhavaRow(t){let e=(t.grahas??[]).join(", ");return s`<tr><td class="num">${t.house}</td><td>${t.rashi}</td><td class="num">${v(this.effectiveLang(),t.start,2)}°</td><td class="num">${v(this.effectiveLang(),t.madhya,2)}°</td><td class="num">${v(this.effectiveLang(),t.end,2)}°</td><td class="num">${v(this.effectiveLang(),t.span,2)}°</td><td class="occupants">${e||"—"}</td></tr>`}};mt.styles=[x,I,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.lede{font-size:var(--roxy-text-sm,.875rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.moved-list{gap:var(--roxy-space-xs,.25rem);display:grid}.moved-row{align-items:baseline;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);padding:var(--roxy-space-sm,.5rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-sm,4px);background:color-mix(in srgb, var(--roxy-warning,#f59e0b) 8%, transparent);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold,600)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.35em}.shift{font-variant-numeric:tabular-nums;color:var(--roxy-fg,#0a0a0a)}.themes{color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-xs,.75rem)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}.scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}td.num{font-variant-numeric:tabular-nums}td.occupants{white-space:normal;color:var(--roxy-secondary,#475569)}summary{cursor:pointer;color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-sm,.875rem);font-weight:500}`],mt=g([b("roxy-bhav-chalit-table")],mt);var Mn=[{key:"bhavadhipatiBala",source:"Bhavadhipati",color:"var(--roxy-accent, #f59e0b)"},{key:"digBala",source:"Dig",color:"var(--roxy-info, #0284c7)"},{key:"drishtiBala",source:"Drishti",color:"var(--roxy-success, #16a34a)"}],ht=class extends y{renderData(t){let e=t.bhavas??[];if(!e.length)return this.renderEmpty();let r=Math.max(...e.map(a=>a.totalVirupas??0),1);return s`<div class="wrap" part="card" aria-label="${this.t("Bhava Bala")}"><header class="head" part="header"><h2 class="title">${this.t("Bhava Bala")}</h2><p class="subtitle">${t.houseSystem?this.t("Twelve houses ranked by strength on the {{system}} frame",{system:t.houseSystem}):this.t("Twelve houses ranked by strength")}</p>${F(this.effectiveLang(),t.frame,this.translator)}</header><div class="rows" part="table" role="list">${e.map(a=>this.renderBhava(a,r,t.houseThemes))}</div><div class="legend" part="legend" aria-label="${this.t("Component legend")}">${Mn.map(a=>s`<div class="legend-row"><span class="swatch" style="background:${a.color}" aria-hidden="true"></span> ${this.t("{{component}} Bala",{component:this.t(a.source)})}</div>`)}</div></div>`}renderBhava(t,e,r){let a=typeof t.house=="number"?ye([t.house],r):"";return s`<article class="row" role="listitem"><div class="row-top"><span class="house">${this.t("House {{n}}",{n:t.house})}</span> <span class="rashi">${t.rashi}</span> ${t.lord?s`<span class="lord">${this.t("lord {{graha}}",{graha:t.lord})}</span>`:i} <span class="total">${this.t("{{value}} rupas",{value:v(this.effectiveLang(),t.totalRupas,2)})} ${typeof t.rank=="number"?s`<span class="rank">#${t.rank}</span>`:i}</span></div><div class="bar" role="img" aria-label="${this.t("Bhava Bala {{value}} virupas",{value:v(this.effectiveLang(),t.totalVirupas,1)})}">${Mn.map(n=>{let l=Math.max(0,t[n.key]??0);return l>0?s`<span class="seg" style="width:${l/e*100}%;background:${n.color}" title="${this.t("{{component}} {{value}} virupas",{component:this.t(n.source),value:v(this.effectiveLang(),l,1)})}"></span>`:i})}</div>${a?s`<p class="themes">${a}</p>`:i}</article>`}};ht.styles=[x,I,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.rows{gap:var(--roxy-space-sm,.5rem);display:grid}.row{grid-template-columns:minmax(0,1fr);gap:2px;display:grid}.row-top{align-items:baseline;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;display:flex}.house{font-weight:var(--roxy-weight-bold,600);min-width:4.5rem}.rashi{color:var(--roxy-secondary,#475569)}.lord{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.total{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold,600);margin-left:auto}.rank{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-sm,4px);border:1px solid var(--roxy-border,#e4e4e7);font-variant-numeric:tabular-nums;padding:.05rem .4rem}.bar{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);height:10px;display:flex;overflow:hidden}.seg{height:100%}.themes{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.legend{gap:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);flex-wrap:wrap;display:flex}.legend-row{align-items:center;gap:4px;display:flex}.swatch{border-radius:2px;width:14px;height:9px}`],ht=g([b("roxy-bhava-bala-table")],ht);var Ur={physical:"#dc2626",emotional:"#0284c7",intellectual:"#16a34a",intuitive:"#a855f7",aesthetic:"#f59e0b",awareness:"#ec4899",spiritual:"#14b8a6",passion:"#ef4444",mastery:"#6366f1",wisdom:"#475569"},zn=["physical","emotional","intellectual","intuitive"],wi={physical:"Physical",emotional:"Emotional",intellectual:"Intellectual",intuitive:"Intuitive"},ze=class extends y{constructor(){super(...arguments);this.mode="daily"}renderData(e){return this.mode==="critical-days"&&"criticalDays"in e?this.renderCritical(e):this.mode==="forecast"&&"days"in e?this.renderForecast(e):this.renderDaily(e)}renderDaily(e){let r=e.quickRead??{},a=Object.entries(r).map(([l,d])=>{let c=typeof d=="number"?d:0,p=Math.abs(c)>1?c/100:c;return[l,p]}),n=e.spotlight;return s`<section class="wrap" part="card" aria-label="${this.t("Daily biorhythm")}"><header class="head" part="header"><h2 class="title">${this.t("Biorhythm")}</h2><div class="head-meta">${e.overallPhase?s`<span class="phase">${_(e.overallPhase)}</span>`:i} ${typeof e.energyRating=="number"?s`<span class="energy">${this.t("Energy {{value}}/10",{value:e.energyRating})}</span>`:i}</div></header>${n?s`<div class="spotlight" part="details spotlight" style="${`border-left-color: ${Ur[n.cycle]??"var(--roxy-accent, #f59e0b)"}`}"><p class="label">${this.t("Spotlight cycle")}</p><div class="lead"><strong>${_(n.cycle)}</strong> ${typeof n.value=="number"?s`<span class="energy">${ae(this.effectiveLang(),n.value,0)}</span>`:i} ${n.phase?s`<span class="phase">${_(n.phase)}</span>`:i}</div>${n.message&&!this.hideReadings?s`<p>${n.message}</p>`:i}</div>`:i}<div class="bars" part="chart bars" role="list">${a.map(([l,d])=>{let c=(d+1)/2*100,p=Ur[l]??"var(--roxy-accent, #f59e0b)";return s`<div class="bar" role="listitem"><span style="text-transform:capitalize">${l}</span> <span class="track"><span class="fill" style="width:${c}%;background:${p}"></span> </span><span class="value">${ae(this.effectiveLang(),d*100,0)}</span></div>`})}</div>${this.hideReadings?i:s`${e.dailyMessage?s`<p class="advice">${e.dailyMessage}</p>`:i} ${e.advice?s`<p class="advice">${e.advice}</p>`:i}`}</section>`}renderForecast(e){let r=e.days??[];if(r.length===0)return s`<div class="roxy-empty" role="status">${this.t("No forecast")}</div>`;let a=600,n=160,l=a/Math.max(r.length-1,1),d=e.summary;return s`<section class="wrap" part="card" aria-label="${this.t("Biorhythm forecast")}"><header class="head" part="header"><h2 class="title">${this.t("Forecast")}</h2><span class="energy">${qa(this.effectiveLang(),e.startDate,e.endDate)}</span></header><svg viewBox="0 0 ${a} ${n}" part="chart" role="img" aria-label="${this.t("Biorhythm cycle lines across the forecast window")}"><title>${this.t("Biorhythm forecast")}</title><line x1="0" y1="${n/2}" x2="${a}" y2="${n/2}" stroke="var(--roxy-border, #e4e4e7)" stroke-width="1"/>${zn.map(c=>{let p=r.map((m,f)=>{let C=m[c]??0,w=f*l,k=n/2-C/100*(n/2-8);return`${w.toFixed(2)},${k.toFixed(2)}`}).join(" "),h=Ur[c]??"#475569";return L`<polyline points=${p} fill="none" stroke=${h} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />`})} ${r.map((c,p)=>c.isCritical?L`<circle cx=${(p*l).toFixed(2)} cy=${n/2} r="3" fill="var(--roxy-danger, #dc2626)"><title>${[A(this.effectiveLang(),c.date),c.criticalCycles?.length?`${c.criticalCycles.join(", ")} critical`:"critical",typeof c.energyRating=="number"?`energy ${c.energyRating}/10`:""].filter(Boolean).join(" · ")}</title></circle>`:i)}</svg><div class="legend" part="legend">${zn.map(c=>s`<span class="key"><span class="dot" style="${`background: ${Ur[c]}`}"></span>${this.t(wi[c])}</span>`)} <span class="key"><span class="dot critical"></span>${this.t("critical day")}</span></div>${d?s`<dl class="stats" part="details">${this.stat(this.t("Best day"),A(this.effectiveLang(),d.bestDay))} ${this.stat(this.t("Worst day"),A(this.effectiveLang(),d.worstDay))} ${this.stat(this.t("Average energy"),typeof d.averageEnergy=="number"?`${d.averageEnergy}/10`:"")} ${this.stat(this.t("Critical days"),typeof d.criticalDayCount=="number"?`${d.criticalDayCount}`:"")}</dl>`:i} ${d?.periodAdvice&&!this.hideReadings?s`<p class="advice">${d.periodAdvice}</p>`:i}</section>`}renderCritical(e){let r=e.criticalDays??[],a=e.doubleCriticalDays??[],n=r.map(l=>({label:A(this.effectiveLang(),l.date)||l.date,aside:[l.cycle,l.severity].filter(Boolean).join(" · "),body:l.advisory??"",extra:s`<p class="crit-meta">${[l.direction?`${l.direction} through zero`:"",typeof l.period=="number"?`${l.period} day cycle`:""].filter(Boolean).join(" · ")}</p>`}));return s`<section class="wrap" part="card" aria-label="${this.t("Critical days")}"><header class="head" part="header"><h2 class="title">${this.t("Critical days")}</h2><span class="energy">${qa(this.effectiveLang(),e.startDate,e.endDate)}</span></header><dl class="stats" part="details">${this.stat(this.t("Events"),typeof e.totalCriticalDays=="number"?`${e.totalCriticalDays}`:"")} ${this.stat(this.t("Double days"),a.length?`${a.length}`:"0")} ${this.stat(this.t("Triple day"),e.tripleCriticalDay?A(this.effectiveLang(),e.tripleCriticalDay):"None in range")}</dl>${a.length>0?s`<p class="crit-note">${this.t("Two or more cycles cross zero on {{dates}}. Take extra care on these dates.",{dates:a.map(l=>A(this.effectiveLang(),l)||l).join(", ")})}</p>`:i} ${this.renderInterpretation(n,"biorhythm-critical","Advisories")}</section>`}stat(e,r){return r?s`<div class="stat"><dt>${e}</dt><dd>${r}</dd></div>`:i}};ze.styles=[x,M,O,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.head-meta{align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.energy{font-variant-numeric:tabular-nums;color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.phase{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:2px 10px}.spotlight{gap:var(--roxy-space-xs,.25rem);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-left:3px solid var(--roxy-accent,#f59e0b);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 22%, transparent);border-radius:0 var(--roxy-radius-sm,4px) var(--roxy-radius-sm,4px) 0;display:grid}.spotlight .label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.spotlight .lead{align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.spotlight strong{text-transform:capitalize}.spotlight p{font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.6}.bars{gap:var(--roxy-space-xs,.25rem);display:grid}.bar{gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:8rem 1fr 3.5rem;align-items:center;display:grid}.track{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);height:14px;position:relative;overflow:hidden}.fill{height:100%;transition:width var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.value{font-variant-numeric:tabular-nums;text-align:right;color:var(--roxy-muted,#71717a)}.advice{color:var(--roxy-fg,#0a0a0a);margin:0}svg{width:100%;max-width:var(--roxy-chart-max-width,600px);height:auto;display:block}.legend{gap:var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-fg,#0a0a0a);flex-wrap:wrap;display:flex}.key{text-transform:capitalize;align-items:center;gap:.35rem;display:inline-flex}.dot{border-radius:var(--roxy-radius-full,9999px);width:.6rem;height:.6rem}.dot.critical{background:var(--roxy-danger,#dc2626)}.stats{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(7rem,1fr));margin:0;display:grid}.stat{gap:2px;display:grid}.stat dt{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.stat dd{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);font-variant-numeric:tabular-nums;margin:0}.crit-note{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent);border-radius:var(--roxy-radius-sm,4px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin:0}.crit-meta{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0}`],g([S({type:String,reflect:!0})],ze.prototype,"mode",2),ze=g([b("roxy-biorhythm-chart")],ze);var On=14,ki=86,_n=0,Si=102,ar=6,Bn=(ki-On)*ar,Ri=(Si-_n)*ar;function Wr(o,t){return{x:(o-On)*ar,y:(t-_n)*ar}}var T=50,es=o=>2*T-o,$r=1.02*ar,In=1.35*ar,J=2.87,le=4.4,Pn=5.65,Wa={head:{64:[T-J,11.2],61:[T,11.2],63:[T+J,11.2]},ajna:{47:[T-J,18],24:[T,18],4:[T+J,18],17:[T-J,20.6],11:[T+J,20.6],43:[T,25.3]},throat:{62:[T-J,32.4],23:[T,32.4],56:[T+J,32.4],16:[T-le,34.7],35:[T+le,34.7],20:[T-le,37.3],12:[T+le,37.3],45:[T+le,39.6],31:[T-J,41.9],8:[T,41.9],33:[T+J,41.9]},g:{1:[T,47.7],7:[T-J,50.3],13:[T+J,50.3],10:[T-Pn,53.4],25:[T+Pn,53.4],15:[T-J,56.8],46:[T+J,56.8],2:[T,59.2]},heart:{21:[63.9,59.5],51:[62.1,61.3],26:[60.1,63.3],40:[66.6,63.3]},spleen:{48:[20,70.8],57:[22.5,72.4],44:[25,73.8],50:[27.7,75.3],32:[25,76.6],28:[22.5,78],18:[20,79.5]},sacral:{5:[T-J,72.7],14:[T,72.7],29:[T+J,72.7],34:[T-le,75.4],27:[T-le,79],59:[T+le,79],42:[T-J,81.7],3:[T,81.7],9:[T+J,81.7]},"solar-plexus":{},root:{53:[T-J,90.2],60:[T,90.2],52:[T+J,90.2],54:[T-le,92.6],19:[T+le,92.6],38:[T-le,95.3],39:[T+le,95.3],58:[T-le,98.1],41:[T+le,98.1]}},Ci={48:36,57:22,44:37,50:6,32:49,28:55,18:30};function Ai(){let o={},t={};for(let[e,[r,a]]of Object.entries(Wa.spleen))Wa["solar-plexus"][Ci[Number(e)]]=[es(r),a];for(let[e,r]of Object.entries(Wa))for(let[a,[n,l]]of Object.entries(r))o[Number(a)]=Wr(n,l),t[Number(a)]=e;return{points:o,centerOf:t}}var{points:Qa,centerOf:wr}=Ai(),oh=Bn/2;function gt(o){return o.map(([t,e])=>Wr(t,e))}function Ja(o,t,e){return gt([[T-o,t],[T+o,t],[T+o,e],[T-o,e]])}var Xa=5.9,Nn=[[18.3,68.3],[18.3,82],[30.3,75.15]],ts=[{id:"head",label:"Head",color:"gold",points:gt([[43.55,12.5],[56.45,12.5],[50,1.7]])},{id:"ajna",label:"Ajna",color:"green",points:gt([[43.55,16.5],[56.45,16.5],[50,27.7]])},{id:"throat",label:"Throat",color:"brown",points:Ja(Xa,31,43.3)},{id:"g",label:"G",color:"gold",points:gt([[50,45.8],[57.7,53.6],[50,61.4],[42.3,53.6]])},{id:"heart",label:"Heart",color:"red",points:gt([[56.65,65.23],[64.2,56.74],[69.75,65.23]])},{id:"spleen",label:"Spleen",color:"brown",points:gt(Nn)},{id:"sacral",label:"Sacral",color:"red",points:Ja(Xa,71.3,83.1)},{id:"solar-plexus",label:"Solar Plexus",color:"brown",points:gt(Nn.map(([o,t])=>[es(o),t]))},{id:"root",label:"Root",color:"brown",points:Ja(Xa,88.5,99.8)}],Ti=[[64,47],[61,24],[63,4],[17,62],[11,56],[43,23],[16,48],[20,34],[20,10],[7,31],[1,8],[13,33],[21,45],[12,22],[35,36],[57,20],[15,5],[2,14],[46,29],[34,10],[10,57],[25,51],[27,50],[57,34],[26,44],[18,58],[28,38],[32,54],[3,60],[9,52],[42,53],[59,6],[19,49],[39,55],[41,30],[37,40]],Di=Ei();function Ei(){let o=es,t=[[50,3],[58,3],[60,10],[57,17.5],[56.5,20.5],[53.5,23.5],[51.5,27],[54,28],[64,30],[79,35],[83,42],[84,58],[83,74],[83,86],[76,93],[68,97],[64,99],[62,100.5],[60,100.5]],e=[`M ${Yr(t[0])}`];for(let r=1;r+2<t.length;r+=3)e.push(`C ${Yr(t[r])} ${Yr(t[r+1])} ${Yr(t[r+2])}`);e.push(`L ${Zr(t[t.length-1],o)}`);for(let r=t.length-3;r>=1;r-=3)e.push(`C ${Zr(t[r+1],o)} ${Zr(t[r],o)} ${Zr(t[r-1],o)}`);return e.push("Z"),e.join(" ")}function Yr([o,t]){let e=Wr(o,t);return`${e.x} ${e.y}`}function Zr([o,t],e){let r=Wr(e(o),t);return`${r.x} ${r.y}`}function Mi(o){return o.map(t=>`${t.x},${t.y}`).join(" ")}function jn(o){return o.left&&o.right?"both":o.left?"src-left":"src-right"}function zi(){return L`<path class="bg-body" d=${Di} />`}function Pi(o){let t=[];for(let[e,r]of Ti){let a=Qa[e],n=Qa[r];if(!a||!n)continue;t.push(L`<line class="bg-channel" x1=${a.x} y1=${a.y} x2=${n.x} y2=${n.y} />`);let l={x:(a.x+n.x)/2,y:(a.y+n.y)/2};for(let[d,c]of[[e,a],[r,n]]){let p=o.get(d);if(!p)continue;let h=jn(p);t.push(L`<line class="bg-half ${h==="both"?"src-left":h}" x1=${c.x} y1=${c.y} x2=${l.x} y2=${l.y} />`),h==="both"&&t.push(L`<line class="bg-half src-right stripe" x1=${c.x} y1=${c.y} x2=${l.x} y2=${l.y} />`)}}return t}function Ni(o,t,e){return ts.map(r=>{let a=o.has(r.id),n=`bg-center bg-${r.color}${a?" defined":""}`,l=t?.get(r.id)||r.label;return L`<polygon class=${n} points=${Mi(r.points)}><title>${l}: ${a?e.defined:e.open}</title></polygon>`})}function Gn(o,t){return`M ${o.x} ${o.y-$r} A ${$r} ${$r} 0 0 ${t} ${o.x} ${o.y+$r} Z`}function Gi(o,t){let e=[];for(let[r,a]of Object.entries(Qa)){let n=Number(r),l=o.get(n),d=l?jn(l):"",c=t.get(n);e.push(L`<g class="bg-gate-node">
|
|
10
|
-
${d==="both"?[L`<path class="bg-gate-dot on src-left" d=${
|
|
6
|
+
</g>`}renderCurve(t,e,r,a,n,l){let d=wi(t??[]);if(d.length===0)return i;let c=(t??[]).reduce((p,h)=>Math.abs(h.latitude)<Math.abs(p.latitude)?h:p,t[0]??{latitude:0,longitude:0});return L`<g>
|
|
7
|
+
${d.map(p=>L`<polyline class=${`acg-line${l?" dashed":""}`} stroke=${e} points=${p}><title>${this.t("{{planet}} {{angle}} line",{planet:a,angle:this.t(Mn[n]??"MC")})}</title></polyline>`)}
|
|
8
|
+
<text class="acg-glyph" fill=${e} x=${Lr(c.longitude)} y=${ar(c.latitude)} text-anchor="middle" dominant-baseline="central">${r}</text>
|
|
9
|
+
</g>`}renderLegend(t){return t.length===0?i:s`<div class="legend" part="legend">${t.map((e,r)=>{let a=ct(e.planet,r);return s`<span class="legend-item"><span class="legend-swatch" style="${`border-top-color: ${a}`}"></span> ${e.symbol?s`${e.symbol}`:i}${e.planet}</span>`})} <span class="legend-note">${this.t("Solid lines are the Ascendant and Midheaven, dashed are the Descendant and IC.")}</span></div>`}renderInterpretations(t){return t.length===0||this.hideReadings?i:s`<section class="block" part="section readings"><h3>${this.t("Planetary lines")}</h3>${t.map((e,r)=>{let a=ct(e.planet,r),n=[["MC",e.mc.interpretation],["IC",e.ic.interpretation],["AC",e.ascendant.interpretation],["DC",e.descendant.interpretation]];return s`<details class="interp-card" part="reading" name="acg-lines" ?open="${r===0}"><summary><span class="interp-lead"><span class="interp-dot" style="${`background: ${a}`}"></span> ${e.symbol?s`${e.symbol}`:i}${e.planet} </span>${j()}</summary><div class="interp-body">${n.filter(([,l])=>l).map(([l,d])=>s`<p class="interp-line"><span class="code">${l}</span>${d}</p>`)}</div></details>`})}</section>`}};pt.styles=[x,M,_,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}svg{border-radius:var(--roxy-radius-sm,4px);width:100%;height:auto;display:block}.map-frame{fill:color-mix(in srgb, var(--roxy-border,#e4e4e7) 12%, transparent);stroke:var(--roxy-border,#e4e4e7);stroke-width:.8px}.land{fill:var(--roxy-secondary,#475569);opacity:.13}.grat{stroke:var(--roxy-border,#e4e4e7);stroke-width:.4px;fill:none}.grat-axis{stroke:var(--roxy-muted,#71717a);stroke-width:.6px;opacity:.6}.grat-ref{stroke:var(--roxy-secondary,#475569);stroke-width:.4px;stroke-dasharray:2 2;opacity:.5;fill:none}.axis-label{fill:var(--roxy-muted,#71717a);font-size:5px;font-family:var(--roxy-font-sans)}.acg-line{fill:none;stroke-width:1px;opacity:.95}.acg-line.dashed{stroke-dasharray:4 2.5}.acg-glyph{font-size:8px;font-family:var(--roxy-font-sans);font-weight:600}.birthplace{fill:var(--roxy-fg,#0a0a0a);font-size:9px}.legend{gap:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);flex-wrap:wrap;display:flex}.legend-item{align-items:center;gap:.3rem;display:inline-flex}.legend-swatch{border-top-style:solid;border-top-width:2px;width:14px;height:0}.legend-note{width:100%;color:var(--roxy-muted,#71717a)}.summary{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0}.interp-dot{border-radius:50%;flex-shrink:0;align-self:center;width:10px;height:10px}.interp-line{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0}.interp-line .code{color:var(--roxy-accent-ink,#b45309);margin-right:.4rem;font-weight:600}`],pt=g([b("roxy-astrocartography-map")],pt);function ye(o,t){return!t||!o?.length?"":o.map(e=>t[String(e)]?.[0]).filter(Boolean).join(", ")}function Za(o,t){return!t||typeof o!="number"?"":(t[String(o)]??[]).join(", ")}var mt=class extends y{renderData(t){let e=t.grahas??[],r=t.bhavas??[];if(!e.length&&!r.length)return this.renderEmpty();let a=e.filter(l=>l.moved),n=t.movedCount??a.length;return s`<div class="wrap" part="card" aria-label="${this.t("Bhav Chalit")}"><header class="head" part="header"><h2 class="title">${this.t("Bhav Chalit")}</h2><p class="lede">${n===0?this.t("No graha changes house. The Rashi chart and the Chalit chart agree, which is a normal result rather than a missing reading."):this.t("{{count}} of {{total}} grahas change house between the Rashi chart and the unequal Sripati cusps.",{count:n,total:e.length})}</p>${F(this.effectiveLang(),t.frame,this.translator)}</header>${a.length?s`<div class="moved-list" part="table moved">${a.map(l=>this.renderMoved(l,t.houseThemes))}</div>`:i} ${r.length?s`<details part="details"><summary>${this.t("Bhava cusps and occupants")}</summary><div class="scroll"><table part="table"><thead><tr><th>${this.t("Bhava")}</th><th>${this.t("Rashi")}</th><th>${this.t("Start")}</th><th>${this.t("Madhya")}</th><th>${this.t("End")}</th><th>${this.t("Span")}</th><th>${this.t("Grahas")}</th></tr></thead><tbody>${r.map(l=>this.renderBhavaRow(l))}</tbody></table></div></details>`:i}</div>`}renderMoved(t,e){let r=R(t.graha)??"",a=typeof t.bhava=="number"?ye([t.bhava],e):"";return s`<div class="moved-row"><span class="graha">${r?s`<span class="glyph">${r}</span>`:i}${t.graha} </span><span class="shift">${this.t("house {{from}} in the Rashi chart, house {{to}} here",{from:t.rashiHouse??"",to:t.bhava??""})} </span>${a?s`<span class="themes">${a}</span>`:i}</div>`}renderBhavaRow(t){let e=(t.grahas??[]).join(", ");return s`<tr><td class="num">${t.house}</td><td>${t.rashi}</td><td class="num">${v(this.effectiveLang(),t.start,2)}°</td><td class="num">${v(this.effectiveLang(),t.madhya,2)}°</td><td class="num">${v(this.effectiveLang(),t.end,2)}°</td><td class="num">${v(this.effectiveLang(),t.span,2)}°</td><td class="occupants">${e||"—"}</td></tr>`}};mt.styles=[x,I,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.lede{font-size:var(--roxy-text-sm,.875rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.moved-list{gap:var(--roxy-space-xs,.25rem);display:grid}.moved-row{align-items:baseline;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);padding:var(--roxy-space-sm,.5rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-sm,4px);background:color-mix(in srgb, var(--roxy-warning,#f59e0b) 8%, transparent);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold,600)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.35em}.shift{font-variant-numeric:tabular-nums;color:var(--roxy-fg,#0a0a0a)}.themes{color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-xs,.75rem)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}.scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}td.num{font-variant-numeric:tabular-nums}td.occupants{white-space:normal;color:var(--roxy-secondary,#475569)}summary{cursor:pointer;color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-sm,.875rem);font-weight:500}`],mt=g([b("roxy-bhav-chalit-table")],mt);var zn=[{key:"bhavadhipatiBala",source:"Bhavadhipati",color:"var(--roxy-accent, #f59e0b)"},{key:"digBala",source:"Dig",color:"var(--roxy-info, #0284c7)"},{key:"drishtiBala",source:"Drishti",color:"var(--roxy-success, #16a34a)"}],ht=class extends y{renderData(t){let e=t.bhavas??[];if(!e.length)return this.renderEmpty();let r=Math.max(...e.map(a=>a.totalVirupas??0),1);return s`<div class="wrap" part="card" aria-label="${this.t("Bhava Bala")}"><header class="head" part="header"><h2 class="title">${this.t("Bhava Bala")}</h2><p class="subtitle">${t.houseSystem?this.t("Twelve houses ranked by strength on the {{system}} frame",{system:t.houseSystem}):this.t("Twelve houses ranked by strength")}</p>${F(this.effectiveLang(),t.frame,this.translator)}</header><div class="rows" part="table" role="list">${e.map(a=>this.renderBhava(a,r,t.houseThemes))}</div><div class="legend" part="legend" aria-label="${this.t("Component legend")}">${zn.map(a=>s`<div class="legend-row"><span class="swatch" style="background:${a.color}" aria-hidden="true"></span> ${this.t("{{component}} Bala",{component:this.t(a.source)})}</div>`)}</div></div>`}renderBhava(t,e,r){let a=typeof t.house=="number"?ye([t.house],r):"";return s`<article class="row" role="listitem"><div class="row-top"><span class="house">${this.t("House {{n}}",{n:t.house})}</span> <span class="rashi">${t.rashi}</span> ${t.lord?s`<span class="lord">${this.t("lord {{graha}}",{graha:t.lord})}</span>`:i} <span class="total">${this.t("{{value}} rupas",{value:v(this.effectiveLang(),t.totalRupas,2)})} ${typeof t.rank=="number"?s`<span class="rank">#${t.rank}</span>`:i}</span></div><div class="bar" role="img" aria-label="${this.t("Bhava Bala {{value}} virupas",{value:v(this.effectiveLang(),t.totalVirupas,1)})}">${zn.map(n=>{let l=Math.max(0,t[n.key]??0);return l>0?s`<span class="seg" style="width:${l/e*100}%;background:${n.color}" title="${this.t("{{component}} {{value}} virupas",{component:this.t(n.source),value:v(this.effectiveLang(),l,1)})}"></span>`:i})}</div>${a?s`<p class="themes">${a}</p>`:i}</article>`}};ht.styles=[x,I,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.rows{gap:var(--roxy-space-sm,.5rem);display:grid}.row{grid-template-columns:minmax(0,1fr);gap:2px;display:grid}.row-top{align-items:baseline;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;display:flex}.house{font-weight:var(--roxy-weight-bold,600);min-width:4.5rem}.rashi{color:var(--roxy-secondary,#475569)}.lord{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.total{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold,600);margin-left:auto}.rank{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-sm,4px);border:1px solid var(--roxy-border,#e4e4e7);font-variant-numeric:tabular-nums;padding:.05rem .4rem}.bar{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);height:10px;display:flex;overflow:hidden}.seg{height:100%}.themes{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.legend{gap:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);flex-wrap:wrap;display:flex}.legend-row{align-items:center;gap:4px;display:flex}.swatch{border-radius:2px;width:14px;height:9px}`],ht=g([b("roxy-bhava-bala-table")],ht);var Ur={physical:"#dc2626",emotional:"#0284c7",intellectual:"#16a34a",intuitive:"#a855f7",aesthetic:"#f59e0b",awareness:"#ec4899",spiritual:"#14b8a6",passion:"#ef4444",mastery:"#6366f1",wisdom:"#475569"},Pn=["physical","emotional","intellectual","intuitive"],ki={physical:"Physical",emotional:"Emotional",intellectual:"Intellectual",intuitive:"Intuitive"},ze=class extends y{constructor(){super(...arguments);this.mode="daily"}renderData(e){return this.mode==="critical-days"&&"criticalDays"in e?this.renderCritical(e):this.mode==="forecast"&&"days"in e?this.renderForecast(e):this.renderDaily(e)}renderDaily(e){let r=e.quickRead??{},a=Object.entries(r).map(([l,d])=>{let c=typeof d=="number"?d:0,p=Math.abs(c)>1?c/100:c;return[l,p]}),n=e.spotlight;return s`<section class="wrap" part="card" aria-label="${this.t("Daily biorhythm")}"><header class="head" part="header"><h2 class="title">${this.t("Biorhythm")}</h2><div class="head-meta">${e.overallPhase?s`<span class="phase">${O(e.overallPhase)}</span>`:i} ${typeof e.energyRating=="number"?s`<span class="energy">${this.t("Energy {{value}}/10",{value:e.energyRating})}</span>`:i}</div></header>${n?s`<div class="spotlight" part="details spotlight" style="${`border-left-color: ${Ur[n.cycle]??"var(--roxy-accent, #f59e0b)"}`}"><p class="label">${this.t("Spotlight cycle")}</p><div class="lead"><strong>${O(n.cycle)}</strong> ${typeof n.value=="number"?s`<span class="energy">${ae(this.effectiveLang(),n.value,0)}</span>`:i} ${n.phase?s`<span class="phase">${O(n.phase)}</span>`:i}</div>${n.message&&!this.hideReadings?s`<p>${n.message}</p>`:i}</div>`:i}<div class="bars" part="chart bars" role="list">${a.map(([l,d])=>{let c=(d+1)/2*100,p=Ur[l]??"var(--roxy-accent, #f59e0b)";return s`<div class="bar" role="listitem"><span style="text-transform:capitalize">${l}</span> <span class="track"><span class="fill" style="width:${c}%;background:${p}"></span> </span><span class="value">${ae(this.effectiveLang(),d*100,0)}</span></div>`})}</div>${this.hideReadings?i:s`${e.dailyMessage?s`<p class="advice">${e.dailyMessage}</p>`:i} ${e.advice?s`<p class="advice">${e.advice}</p>`:i}`}</section>`}renderForecast(e){let r=e.days??[];if(r.length===0)return s`<div class="roxy-empty" role="status">${this.t("No forecast")}</div>`;let a=600,n=160,l=a/Math.max(r.length-1,1),d=e.summary;return s`<section class="wrap" part="card" aria-label="${this.t("Biorhythm forecast")}"><header class="head" part="header"><h2 class="title">${this.t("Forecast")}</h2><span class="energy">${qa(this.effectiveLang(),e.startDate,e.endDate)}</span></header><svg viewBox="0 0 ${a} ${n}" part="chart" role="img" aria-label="${this.t("Biorhythm cycle lines across the forecast window")}"><title>${this.t("Biorhythm forecast")}</title><line x1="0" y1="${n/2}" x2="${a}" y2="${n/2}" stroke="var(--roxy-border, #e4e4e7)" stroke-width="1"/>${Pn.map(c=>{let p=r.map((m,f)=>{let C=m[c]??0,w=f*l,k=n/2-C/100*(n/2-8);return`${w.toFixed(2)},${k.toFixed(2)}`}).join(" "),h=Ur[c]??"#475569";return L`<polyline points=${p} fill="none" stroke=${h} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />`})} ${r.map((c,p)=>c.isCritical?L`<circle cx=${(p*l).toFixed(2)} cy=${n/2} r="3" fill="var(--roxy-danger, #dc2626)"><title>${[A(this.effectiveLang(),c.date),c.criticalCycles?.length?`${c.criticalCycles.join(", ")} critical`:"critical",typeof c.energyRating=="number"?`energy ${c.energyRating}/10`:""].filter(Boolean).join(" · ")}</title></circle>`:i)}</svg><div class="legend" part="legend">${Pn.map(c=>s`<span class="key"><span class="dot" style="${`background: ${Ur[c]}`}"></span>${this.t(ki[c])}</span>`)} <span class="key"><span class="dot critical"></span>${this.t("critical day")}</span></div>${d?s`<dl class="stats" part="details">${this.stat(this.t("Best day"),A(this.effectiveLang(),d.bestDay))} ${this.stat(this.t("Worst day"),A(this.effectiveLang(),d.worstDay))} ${this.stat(this.t("Average energy"),typeof d.averageEnergy=="number"?`${d.averageEnergy}/10`:"")} ${this.stat(this.t("Critical days"),typeof d.criticalDayCount=="number"?`${d.criticalDayCount}`:"")}</dl>`:i} ${d?.periodAdvice&&!this.hideReadings?s`<p class="advice">${d.periodAdvice}</p>`:i}</section>`}renderCritical(e){let r=e.criticalDays??[],a=e.doubleCriticalDays??[],n=r.map(l=>({label:A(this.effectiveLang(),l.date)||l.date,aside:[l.cycle,l.severity].filter(Boolean).join(" · "),body:l.advisory??"",extra:s`<p class="crit-meta">${[l.direction?`${l.direction} through zero`:"",typeof l.period=="number"?`${l.period} day cycle`:""].filter(Boolean).join(" · ")}</p>`}));return s`<section class="wrap" part="card" aria-label="${this.t("Critical days")}"><header class="head" part="header"><h2 class="title">${this.t("Critical days")}</h2><span class="energy">${qa(this.effectiveLang(),e.startDate,e.endDate)}</span></header><dl class="stats" part="details">${this.stat(this.t("Events"),typeof e.totalCriticalDays=="number"?`${e.totalCriticalDays}`:"")} ${this.stat(this.t("Double days"),a.length?`${a.length}`:"0")} ${this.stat(this.t("Triple day"),e.tripleCriticalDay?A(this.effectiveLang(),e.tripleCriticalDay):"None in range")}</dl>${a.length>0?s`<p class="crit-note">${this.t("Two or more cycles cross zero on {{dates}}. Take extra care on these dates.",{dates:a.map(l=>A(this.effectiveLang(),l)||l).join(", ")})}</p>`:i} ${this.renderInterpretation(n,"biorhythm-critical","Advisories")}</section>`}stat(e,r){return r?s`<div class="stat"><dt>${e}</dt><dd>${r}</dd></div>`:i}};ze.styles=[x,M,_,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.head-meta{align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.energy{font-variant-numeric:tabular-nums;color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.phase{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:2px 10px}.spotlight{gap:var(--roxy-space-xs,.25rem);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-left:3px solid var(--roxy-accent,#f59e0b);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 22%, transparent);border-radius:0 var(--roxy-radius-sm,4px) var(--roxy-radius-sm,4px) 0;display:grid}.spotlight .label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.spotlight .lead{align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.spotlight strong{text-transform:capitalize}.spotlight p{font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.6}.bars{gap:var(--roxy-space-xs,.25rem);display:grid}.bar{gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:8rem 1fr 3.5rem;align-items:center;display:grid}.track{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);height:14px;position:relative;overflow:hidden}.fill{height:100%;transition:width var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.value{font-variant-numeric:tabular-nums;text-align:right;color:var(--roxy-muted,#71717a)}.advice{color:var(--roxy-fg,#0a0a0a);margin:0}svg{width:100%;max-width:var(--roxy-chart-max-width,600px);height:auto;display:block}.legend{gap:var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-fg,#0a0a0a);flex-wrap:wrap;display:flex}.key{text-transform:capitalize;align-items:center;gap:.35rem;display:inline-flex}.dot{border-radius:var(--roxy-radius-full,9999px);width:.6rem;height:.6rem}.dot.critical{background:var(--roxy-danger,#dc2626)}.stats{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(7rem,1fr));margin:0;display:grid}.stat{gap:2px;display:grid}.stat dt{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.stat dd{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);font-variant-numeric:tabular-nums;margin:0}.crit-note{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent);border-radius:var(--roxy-radius-sm,4px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin:0}.crit-meta{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0}`],g([S({type:String,reflect:!0})],ze.prototype,"mode",2),ze=g([b("roxy-biorhythm-chart")],ze);var On=14,Si=86,Bn=0,Ri=102,ut=6,In=(Si-On)*ut,Ci=(Ri-Bn)*ut;function Wr(o,t){return{x:(o-On)*ut,y:(t-Bn)*ut}}var T=50,es=o=>2*T-o,$r=1.02*ut,jn=1.35*ut,ts=1.15*ut,J=2.87,le=4.4,Nn=5.65,Wa={head:{64:[T-J,11.2],61:[T,11.2],63:[T+J,11.2]},ajna:{47:[T-J,18],24:[T,18],4:[T+J,18],17:[T-J,20.6],11:[T+J,20.6],43:[T,25.3]},throat:{62:[T-J,32.4],23:[T,32.4],56:[T+J,32.4],16:[T-le,34.7],35:[T+le,34.7],20:[T-le,37.3],12:[T+le,37.3],45:[T+le,39.6],31:[T-J,41.9],8:[T,41.9],33:[T+J,41.9]},g:{1:[T,47.7],7:[T-J,50.3],13:[T+J,50.3],10:[T-Nn,53.4],25:[T+Nn,53.4],15:[T-J,56.8],46:[T+J,56.8],2:[T,59.2]},heart:{21:[63.9,59.5],51:[62.1,61.3],26:[60.1,63.3],40:[66.6,63.3]},spleen:{48:[20,70.8],57:[22.5,72.4],44:[25,73.8],50:[27.7,75.3],32:[25,76.6],28:[22.5,78],18:[20,79.5]},sacral:{5:[T-J,72.7],14:[T,72.7],29:[T+J,72.7],34:[T-le,75.4],27:[T-le,79],59:[T+le,79],42:[T-J,81.7],3:[T,81.7],9:[T+J,81.7]},"solar-plexus":{},root:{53:[T-J,90.2],60:[T,90.2],52:[T+J,90.2],54:[T-le,92.6],19:[T+le,92.6],38:[T-le,95.3],39:[T+le,95.3],58:[T-le,98.1],41:[T+le,98.1]}},Ai={48:36,57:22,44:37,50:6,32:49,28:55,18:30};function Ti(){let o={},t={};for(let[e,[r,a]]of Object.entries(Wa.spleen))Wa["solar-plexus"][Ai[Number(e)]]=[es(r),a];for(let[e,r]of Object.entries(Wa))for(let[a,[n,l]]of Object.entries(r))o[Number(a)]=Wr(n,l),t[Number(a)]=e;return{points:o,centerOf:t}}var{points:Qa,centerOf:wr}=Ti(),ph=In/2;function gt(o){return o.map(([t,e])=>Wr(t,e))}function Ja(o,t,e){return gt([[T-o,t],[T+o,t],[T+o,e],[T-o,e]])}var Xa=5.9,Gn=[[18.3,68.3],[18.3,82],[30.3,75.15]],rs=[{id:"head",label:"Head",color:"gold",points:gt([[43.55,12.5],[56.45,12.5],[50,1.7]])},{id:"ajna",label:"Ajna",color:"green",points:gt([[43.55,16.5],[56.45,16.5],[50,27.7]])},{id:"throat",label:"Throat",color:"brown",points:Ja(Xa,31,43.3)},{id:"g",label:"G",color:"gold",points:gt([[50,45.8],[57.7,53.6],[50,61.4],[42.3,53.6]])},{id:"heart",label:"Heart",color:"red",points:gt([[56.65,65.23],[64.2,56.74],[69.75,65.23]])},{id:"spleen",label:"Spleen",color:"brown",points:gt(Gn)},{id:"sacral",label:"Sacral",color:"red",points:Ja(Xa,71.3,83.1)},{id:"solar-plexus",label:"Solar Plexus",color:"brown",points:gt(Gn.map(([o,t])=>[es(o),t]))},{id:"root",label:"Root",color:"brown",points:Ja(Xa,88.5,99.8)}],Di=[[64,47],[61,24],[63,4],[17,62],[11,56],[43,23],[16,48],[20,34],[20,10],[7,31],[1,8],[13,33],[21,45],[12,22],[35,36],[57,20],[15,5],[2,14],[46,29],[34,10],[10,57],[25,51],[27,50],[57,34],[26,44],[18,58],[28,38],[32,54],[3,60],[9,52],[42,53],[59,6],[19,49],[39,55],[41,30],[37,40]],Ei=Mi();function Mi(){let o=es,t=[[50,3],[58,3],[60,10],[57,17.5],[56.5,20.5],[53.5,23.5],[51.5,27],[54,28],[64,30],[79,35],[83,42],[84,58],[83,74],[83,86],[76,93],[68,97],[64,99],[62,100.5],[60,100.5]],e=[`M ${Yr(t[0])}`];for(let r=1;r+2<t.length;r+=3)e.push(`C ${Yr(t[r])} ${Yr(t[r+1])} ${Yr(t[r+2])}`);e.push(`L ${Zr(t[t.length-1],o)}`);for(let r=t.length-3;r>=1;r-=3)e.push(`C ${Zr(t[r+1],o)} ${Zr(t[r],o)} ${Zr(t[r-1],o)}`);return e.push("Z"),e.join(" ")}function Yr([o,t]){let e=Wr(o,t);return`${e.x} ${e.y}`}function Zr([o,t],e){let r=Wr(e(o),t);return`${r.x} ${r.y}`}function zi(o){return o.map(t=>`${t.x},${t.y}`).join(" ")}function Hn(o){return o.left&&o.right?"both":o.left?"src-left":"src-right"}function Pi(){return L`<path class="bg-body" d=${Ei} />`}function Ni(o){let t=[];for(let[e,r]of Di){let a=Qa[e],n=Qa[r];if(!a||!n)continue;t.push(L`<line class="bg-channel" x1=${a.x} y1=${a.y} x2=${n.x} y2=${n.y} />`);let l={x:(a.x+n.x)/2,y:(a.y+n.y)/2};for(let[d,c]of[[e,a],[r,n]]){let p=o.get(d);if(!p)continue;let h=Hn(p);t.push(L`<line class="bg-half ${h==="both"?"src-left":h}" x1=${c.x} y1=${c.y} x2=${l.x} y2=${l.y} />`),h==="both"&&t.push(L`<line class="bg-half src-right stripe" x1=${c.x} y1=${c.y} x2=${l.x} y2=${l.y} />`)}}return t}function Gi(o,t,e){return rs.flatMap(r=>{let a=o.has(r.id),n=`bg-center bg-${r.color}${a?" defined":""}`,l=t?.get(r.id)||r.label,d=r.labelAt??Ii(r.points);return[L`<polygon class=${n} points=${zi(r.points)}><title>${l}: ${a?e.defined:e.open}</title></polygon>`,_i(l,d,a,r.points)]})}function _i(o,t,e,r){let a=o.split(/\s+/).filter(Boolean),n=a.reduce((h,m)=>Math.max(h,m.length),0),l=Bi(r,t.y)*.86,d=Math.min(ts,l/Math.max(1,n*Oi)),c=d*1.05,p=t.y-c*(a.length-1)/2;return L`<text class="bg-center-name ${e?"defined":""}" style=${`font-size:${d}px`} x=${t.x} y=${t.y} text-anchor="middle" dominant-baseline="central" aria-hidden="true">${a.map((h,m)=>L`<tspan x=${t.x} y=${p+m*c}>${h}</tspan>`)}</text>`}var Oi=.66;function Bi(o,t){let e=[];for(let r=0;r<o.length;r++){let a=o[r],n=o[(r+1)%o.length];if(a.y===n.y)continue;let l=Math.min(a.y,n.y),d=Math.max(a.y,n.y);t<l||t>d||e.push(a.x+(t-a.y)/(n.y-a.y)*(n.x-a.x))}return e.length<2?0:Math.max(...e)-Math.min(...e)}function Ii(o){let t=o.length||1;return{x:o.reduce((e,r)=>e+r.x,0)/t,y:o.reduce((e,r)=>e+r.y,0)/t}}function _n(o,t){return`M ${o.x} ${o.y-$r} A ${$r} ${$r} 0 0 ${t} ${o.x} ${o.y+$r} Z`}function ji(o,t){let e=[];for(let[r,a]of Object.entries(Qa)){let n=Number(r),l=o.get(n),d=l?Hn(l):"",c=t.get(n);e.push(L`<g class="bg-gate-node">
|
|
10
|
+
${d==="both"?[L`<path class="bg-gate-dot on src-left" d=${_n(a,0)} />`,L`<path class="bg-gate-dot on src-right" d=${_n(a,1)} />`]:L`<circle class="bg-gate-dot ${d&&`on ${d}`}" cx=${a.x} cy=${a.y} r=${$r} />`}
|
|
11
11
|
<text class="bg-gate ${l?"on":""}" x=${a.x} y=${a.y} text-anchor="middle" dominant-baseline="central">${n}</text>
|
|
12
12
|
${c?L`<title>${c}</title>`:i}
|
|
13
|
-
</g>`)}return e}var Jr=`0 0 ${
|
|
14
|
-
${
|
|
15
|
-
${
|
|
16
|
-
${
|
|
17
|
-
${
|
|
18
|
-
`}var Qr=u`.chart{width:100%;max-width:var(--roxy-chart-max-width,30rem);height:auto;margin:0 auto;display:block}@container (width<=26rem){.chart{width:calc(100% + 2 * var(--roxy-space-lg,1.5rem));margin-inline:calc(-1 * var(--roxy-space-lg,1.5rem))}}.bg-body{fill:color-mix(in srgb, var(--roxy-secondary,#475569) 8%, transparent);stroke:var(--roxy-border,#e4e4e7);stroke-width:1px}.bg-channel{stroke:var(--roxy-border,#e4e4e7);stroke-width:5px;stroke-linecap:round}.bg-half{stroke-width:5px;stroke-linecap:round}.bg-half.stripe{stroke-linecap:butt;stroke-dasharray:7 7}.bg-center{fill:var(--roxy-surface,#fff);stroke:var(--roxy-secondary,#475569);stroke-width:1.8px}.bg-center.defined{stroke:color-mix(in srgb, var(--roxy-fg,#0a0a0a) 45%, transparent)}:host{--center-gold:#e0a200;--center-green:#2f8f00;--center-red:#c41f1f;--center-brown:#76502f}.bg-center.bg-gold.defined,.legend .swatch.bg-gold{fill:var(--center-gold);background:var(--center-gold)}.bg-center.bg-green.defined,.legend .swatch.bg-green{fill:var(--center-green);background:var(--center-green)}.bg-center.bg-red.defined,.legend .swatch.bg-red{fill:var(--center-red);background:var(--center-red)}.bg-center.bg-brown.defined,.legend .swatch.bg-brown{fill:var(--center-brown);background:var(--center-brown)}.bg-gate-dot{fill:var(--roxy-surface,#fff);stroke:var(--roxy-border,#e4e4e7);stroke-width:1px}.bg-gate-dot.on{stroke:none}.bg-gate{fill:var(--roxy-muted,#71717a);font-size:${In}px;font-weight:600;font-family:var(--roxy-font-sans)}.bg-gate.on{fill:var(--src-ink,var(--roxy-surface,#fff))}.legend{gap:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);flex-wrap:wrap;display:flex}.legend .swatch{vertical-align:middle;border:1px solid var(--roxy-secondary,#475569);border-radius:2px;width:10px;height:10px;margin-right:4px;display:inline-block}.bg-half.src-left{stroke:var(--src-left)}.bg-half.src-right{stroke:var(--src-right)}.bg-gate-dot.on.src-left{fill:var(--src-left)}.bg-gate-dot.on.src-right{fill:var(--src-right)}.legend .swatch.src-left{background:var(--src-left)}.legend .swatch.src-right{background:var(--src-right)}.legend .swatch.source{border-radius:var(--roxy-radius-full,9999px);border-color:#0000}`;var Pe=u`.facts{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));display:grid}.fact{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);background:var(--roxy-surface,#fff)}.fact span{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:block}.fact strong{font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a)}.lead{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.6}.themes{gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.pill{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 10px}.pill--good{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.pill--shadow{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.keynotes{gap:var(--roxy-space-xs,.25rem);margin:0;display:grid}.keynotes dt{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.keynotes dd{margin:0}`;function ea(o,t){return o==="design"?t("Design"):o==="personality"?t("Personality"):o??""}function $e(o){let t=o.filter(e=>!!e.value);return t.length===0?i:s`<div class="facts" part="facts">${t.map(e=>s`<div class="fact" part="fact"><span>${e.label}</span> <strong>${e.value}</strong></div>`)}</div>`}function ta(o,t,e){return!o&&!t?i:s`<div class="themes" part="themes">${o?s`<span class="pill pill--good">${e("Signature: {{value}}",{value:o})}</span>`:i} ${t?s`<span class="pill pill--shadow">${e("Not-self: {{value}}",{value:t})}</span>`:i}</div>`}function ra(o,t){return!o?.personality&&!o?.design?i:s`<dl class="keynotes" part="keynotes">${o.personality?s`<dt>${t("Line {{line}} · Personality",{line:o.personalityLine??""})}</dt><dd>${o.personality}</dd>`:i} ${o.design?s`<dt>${t("Line {{line}} · Design",{line:o.designLine??""})}</dt><dd>${o.design}</dd>`:i}</dl>`}function fe(o,t){return ln(o,t)??_(t)}function Hn(o,t,e){return dn(o,t,e)??_(e)}var aa="Localized";function $(o,t,e){let r=o,a=r?.[`${t}${aa}`];if(typeof a=="string"&&a!=="")return a;if(e!==void 0)return e;let n=r?.[t];return typeof n=="string"?n:""}function Fn(o,t){let e=o,r=e?.[t];if(!Array.isArray(r))return[];let a=e?.[`${t}${aa}`],n=Array.isArray(a)?a:[];return r.map((l,d)=>{let c=n[d];return{value:String(l),label:typeof c=="string"&&c!==""?c:String(l)}})}function sr(o){let t;for(let e of Object.keys(o)){if(!e.endsWith(aa))continue;let r=e.slice(0,-aa.length);if(r===""||!(r in o))continue;t??={...o};let a=o[e];a!=null&&a!==""&&(t[r]=a),delete t[e]}return t??o}var Oi=["gold","green","brown","red"];function _i(o){let t=new Map;for(let e of o){if(e.gate==null)continue;let r=t.get(e.gate);r?r.push(e):t.set(e.gate,[e])}return t}var Ne=class extends y{constructor(){super(...arguments);this.side="personality"}renderData(e){let r=e.centers??[],a=new Set(r.filter(p=>p.defined).map(p=>p.id)),n=_i(e.gates??[]),l=new Map([...n].map(([p,h])=>[p,{left:h.some(m=>m.side==="design"),right:h.some(m=>m.side==="personality")}])),d=this.buildGateTitles(n),c=new Map(r.map(p=>[p.id,$(p,"name")]));return s`<div class="wrap" part="card"><header class="head" part="header"><h2 class="title">${this.t("Bodygraph")}</h2>${e.type||e.profile?s`<div class="type-line">${[$(e,"type"),e.profile?this.t("Profile {{profile}}",{profile:e.profile}):""].filter(Boolean).join(" · ")}</div>`:i}</header><div class="layout" part="layout"><svg class="chart" part="chart" viewBox="${Jr}" preserveAspectRatio="xMidYMid meet" role="img" aria-label="${this.t("Human Design bodygraph with nine centers, channels, and activated gates overlaid on a human silhouette")}"><title>${this.t("Human Design bodygraph")}</title><desc>${this.t("Nine energy centers in their canonical positions over a human silhouette, each filled with its traditional color when defined and outlined when open, wired by channels between activated gates.")}</desc>${Xr({definedCenters:a,gateSources:l,gateTitles:d,centerNames:c,stateWords:{defined:this.t("Defined"),open:this.t("Open")}})}</svg> ${this.renderSummary(e,c)}</div>${this.renderReading(e)} ${this.renderChannels(e.channels??[],c)} ${this.renderCenters(r)} ${this.renderActivations(e)}</div>`}buildGateTitles(e){let r=new Map;for(let[a,n]of e){let l=n.map(d=>[this.gateGlyph(d),`${a}${d.line!=null?`.${d.line}`:""}`,ea(d.side,this.translator)].filter(Boolean).join(" "));r.set(a,[this.t("Gate {{gate}}",{gate:a}),$(n[0],"gateName"),...l].filter(Boolean).join(" · "))}return r}gateGlyph(e){return e.planet?R(e.planet)??$(e,"planet"):""}renderSummary(e,r){let a=e.incarnationCross;return s`<div class="summary" part="details">${$e([{label:this.t("Type"),value:$(e,"type")},{label:this.t("Strategy"),value:$(e,"strategy")},{label:this.t("Authority"),value:$(e,"authority")},{label:this.t("Profile"),value:e.profile},{label:this.t("Definition"),value:$(e,"definition")}])} ${e.typeDescription&&!this.hideReadings?s`<p class="lead">${e.typeDescription}</p>`:i} ${a?.name?s`<p class="cross">${a.name} ${a.gates?.length?s`<span class="gates">(${a.gates.join(", ")})</span>`:i}</p>`:i} ${ta(e.signature?$(e,"signature"):void 0,e.notSelf?$(e,"notSelf"):void 0,this.translator)} ${this.renderLegend(r)}</div>`}renderLegend(e){let r=Oi.map(a=>[a,ts.filter(n=>n.color===a).map(n=>e.get(n.id)||n.label).join(", ")]);return s`<div class="legend" part="legend"><span class="legend-row"><span class="swatch source src-right"></span>${this.t("Personality")} <span class="swatch source src-left"></span>${this.t("Design")} </span><span class="legend-row">${this.t("Center colors when defined. Open centers are outlined.")}</span> ${r.map(([a,n])=>s`<span><span class="swatch bg-${a} defined"></span>${n}</span>`)} <span><span class="swatch"></span>${this.t("Open center")}</span></div>`}renderReading(e){let r=e.incarnationCross,a=[{label:this.t("Strategy"),aside:$(e,"strategy"),body:e.strategyDescription},{label:this.t("Authority"),aside:$(e,"authority"),body:e.authorityDescription},{label:this.t("Profile"),aside:e.profile,body:e.profileDescription,extra:ra(e.profileKeynotes,this.translator)},{label:this.t("Definition"),aside:$(e,"definition"),body:e.definitionDescription},{label:this.t("Aura"),body:e.aura},{label:this.t("Incarnation cross"),aside:r?$(r,"angle"):void 0,body:r?.description??""}];return this.renderInterpretation(a,"hd-reading")}renderChannels(e,r){if(e.length===0||this.hideReadings)return i;let a=new Map;for(let l of e){let d=l.circuit??"",c=a.get(d);c?c.push(l):a.set(d,[l])}let n=0;return s`<section class="block" part="section channels"><h3>${this.t("Defined channels ({{count}})",{count:e.length})}</h3>${[...a].map(([l,d])=>s`<div class="group">${l?s`<p class="group-head">${this.t("{{circuit}} circuit",{circuit:$(d[0],"circuit")})}</p>`:i} ${d[0]?.circuitDescription?s`<p class="group-note">${d[0].circuitDescription}</p>`:i} ${d.map(c=>s`<details class="interp-card" part="reading" name="hd-channel" ?open="${n++===0}"><summary><span class="interp-lead"><span class="chan-gates">${c.gateA}-${c.gateB}</span> <span>${$(c,"name")}</span> </span>${j()} <span class="interp-aside"><span class="chips">${(c.centers??[]).map(p=>s`<span class="chip">${r.get(p)||p}</span>`)}</span></span></summary><div class="interp-body">${c.description?s`<p>${c.description}</p>`:i}</div></details>`)}</div>`)}</section>`}renderCenters(e){if(e.length===0||this.hideReadings)return i;let r=e.filter(a=>a.defined).length;return s`<section class="block" part="section centers"><h3>${this.t("Centers ({{defined}} defined, {{open}} open)",{defined:r,open:e.length-r})}</h3>${e.map((a,n)=>s`<details class="interp-card" part="reading" name="hd-center" ?open="${n===0}"><summary><span class="interp-lead">${$(a,"name")}</span> ${j()} <span class="interp-aside"><span class="chips"><span class="chip ${a.defined?"chip--on":""}">${a.defined?this.t("Defined"):this.t("Open")}</span> ${a.motor?s`<span class="chip">${this.t("Motor")}</span>`:i} ${a.awareness?s`<span class="chip">${this.t("Awareness")}</span>`:i}</span></span></summary><div class="interp-body">${a.theme?s`<p>${a.theme}</p>`:i} ${!a.defined&&a.notSelfQuestion?s`<dl class="keynotes"><dt>${this.t("Not-self question")}</dt><dd>${a.notSelfQuestion}</dd></dl>`:i} ${a.biology?s`<p class="footnote">${this.t("Biology")}. ${a.biology}</p>`:i} ${a.gates?.length?s`<p class="footnote">${this.t("Gates {{gates}}",{gates:a.gates.join(", ")})}</p>`:i}</div></details>`)}</section>`}renderActivations(e){let r=e.gates??[];if(r.length===0||this.hideReadings)return i;let a=r.filter(h=>h.side==="personality"),n=r.filter(h=>h.side==="design"),l=a.length>0&&n.length>0,d=this.side,c=l?d==="design"?n:a:r,p=l?e.sides?.[d]:void 0;return s`<section class="block" part="section activations"><h3>${this.t("Activations ({{count}})",{count:r.length})}</h3>${l?se({items:[{id:"personality",label:`${this.t("Personality")} (${a.length})`},{id:"design",label:`${this.t("Design")} (${n.length})`}],active:d,onSelect:h=>{this.side=h},label:this.t("Chart sides"),idPrefix:"hd",controls:!0}):i}<div id="${l?`hd-panel-${d}`:i}" part="panel" role="${l?"tabpanel":i}" aria-labelledby="${l?`hd-tab-${d}`:i}">${p?s`<p class="side-note">${p}</p>`:i} ${c.map((h,m)=>this.renderGate(h,m===0))}</div></section>`}renderGate(e,r){let a=this.gateGlyph(e),n=$(e,"planet"),l=e.ichingHexagram;return s`<details class="interp-card" part="reading" name="hd-gate" ?open="${r}"><summary><span class="interp-lead">${a?s`<span class="glyph" aria-hidden="true">${a}</span>`:i} <span class="gate-id">${e.gate}${e.line!=null?`.${e.line}`:""}</span> <span>${$(e,"gateName")}</span> </span>${j()} ${n?s`<span class="interp-aside"><small>${n}</small></span>`:i}</summary><div class="interp-body">${e.gateDescription?s`<p>${e.gateDescription}</p>`:i} ${e.lineMeaning?s`<dl class="keynotes"><dt>${this.t("Line {{line}}",{line:e.line??""})}</dt><dd>${e.lineMeaning}</dd></dl>`:i} ${e.planetDescription?s`<p class="footnote">${n}. ${e.planetDescription}</p>`:i} ${l?.number?s`<p class="footnote">${this.t("I Ching hexagram {{number}}",{number:l.number})}${l.english?`, ${l.english}`:""}</p>`:i}</div></details>`}};Ne.styles=[x,ee,M,O,Pe,Qr,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.type-line{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.layout{gap:var(--roxy-space-lg,1.5rem);grid-template-columns:minmax(0,1fr);align-items:start;display:grid}.wrap{--src-left:var(--roxy-danger,#dc2626);--src-right:var(--roxy-fg,#0a0a0a)}.summary{gap:var(--roxy-space-md,1rem);display:grid}.cross{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);border-left:2px solid var(--roxy-accent,#f59e0b);padding-left:var(--roxy-space-sm,.5rem);margin:0}.cross .gates{color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums}.legend-row{color:var(--roxy-muted,#71717a);flex-basis:100%}.legend-row .swatch:not(:first-child){margin-left:var(--roxy-space-md,1rem)}.legend .swatch.defined{border-color:color-mix(in srgb, var(--roxy-fg,#0a0a0a) 45%, transparent)}.group{margin-bottom:var(--roxy-space-md,1rem)}.group:last-child{margin-bottom:0}.group-head{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.group-note{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:1.6}.footnote{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0;line-height:1.6}.chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a);padding:1px 8px;display:inline-block}.chip--on{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent)}.chips{flex-wrap:wrap;gap:.25rem;display:inline-flex}.gate-id,.chan-gates{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309)}.glyph{color:var(--roxy-accent-ink,#b45309)}.side-note{margin:0 0 var(--roxy-space-sm,.5rem);padding-top:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:1.6}`],g([G()],Ne.prototype,"side",2),Ne=g([b("roxy-bodygraph")],Ne);var Bi={eight:"Eight karaka scheme, Rahu included and ranked from the end of its sign.",seven:"Seven karaka scheme, Rahu excluded and the Pitrikaraka office not assigned."},ut=class extends y{renderData(t){let e=t.karakas??[];return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Chara karakas")}"><header class="head" part="header"><h2 class="title">${this.t("Chara karakas")}</h2><p class="scheme"><span class="scheme-chip">${t.scheme??""}</span> ${t.scheme?Bi[t.scheme]??"":""}</p>${F(this.effectiveLang(),t.frame,this.translator)}</header><div class="leads" part="details"><div class="lead"><span>${this.t("Atmakaraka")}</span><strong>${t.atmakaraka??""}</strong></div><div class="lead"><span>${this.t("Darakaraka")}</span><strong>${t.darakaraka??""}</strong></div></div><div class="scroll" part="table" tabindex="0"><table role="table"><caption class="roxy-sr-only">${this.t("Chara karakas in descending rank: each office, the graha holding it, its rashi, the degree it holds, the degree that earned the office, and what the office is read for.")}</caption><thead><tr><th scope="col">${this.t("Office")}</th><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Ranked on")}</th><th scope="col">${this.t("Read for")}</th></tr></thead><tbody>${e.map((r,a)=>this.renderRow(r,a===0))}</tbody></table></div></div>`:this.renderEmpty()}renderRow(t,e){let r=R(t.graha)??"",a=z(t.rashi)??"";return s`<tr class="${e?"ak":""}"><td class="office">${t.name??""}${t.abbreviation?s`<span class="abbr">${t.abbreviation}</span>`:i}</td><td>${r?s`<span class="glyph">${r}</span>`:i}${t.graha??""}</td><td>${a?s`<span class="glyph">${a}</span>`:i}${t.rashi??""}</td><td class="num">${v(this.effectiveLang(),t.degreeInRashi,2)}</td><td class="num">${v(this.effectiveLang(),t.rankingDegree,2)} ${t.isReversed?s`<span class="reversed">${this.t("measured from the end of the sign")}</span>`:i}</td><td class="meaning"><strong>${t.meaning??""}</strong> ${t.significations?s`<p>${t.significations}</p>`:i}</td></tr>`}};ut.styles=[x,I,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.scheme{align-items:baseline;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:var(--roxy-leading-normal,1.5);flex-wrap:wrap;display:flex}.scheme-chip{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.05em;background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-accent-ink,#b45309);border-radius:999px;padding:.15em .6em}.leads{gap:var(--roxy-space-md,1rem);padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));display:grid}.lead span{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:block}.lead strong{font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a)}.scroll{min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:640px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}tbody tr.ak{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 10%, transparent)}td.office{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.abbr{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-normal,400);margin-left:.4em}tbody tr.ak .abbr{color:var(--roxy-accent-ink,#b45309)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.4em}tbody tr.ak .glyph{color:var(--roxy-accent-ink,#b45309)}.num{font-variant-numeric:tabular-nums}.reversed{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}.meaning{white-space:normal;min-width:12rem}.meaning strong{font-weight:var(--roxy-weight-bold,600);display:block}.meaning p{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}`],ut=g([b("roxy-chara-karakas")],ut);var yt=class extends y{isCurrent(t){let e=Date.now(),r=Date.parse(t.start),a=Date.parse(t.end);return Number.isNaN(r)||Number.isNaN(a)?!1:e>=r&&e<a}renderTile(t){let e=t.effect==="Good"?"good":t.effect==="Bad"?"bad":"neutral",r=this.isCurrent(t),a=R(t.lord)??"",n=Ee(this.effectiveLang(),t);return s`<div class="cho-tile ${e}${r?" now":""}" role="listitem" aria-current="${r?"time":"false"}"><span class="tile-name">${t.name}${r?s`<span class="now-badge">${this.t("Now")}</span>`:i} </span><span class="tile-time" aria-label="${this.t("Time range")}">${n}</span> <span class="tile-lord">${a?s`<span aria-hidden="true">${a}</span>`:i} ${t.lord}</span></div>`}renderData(t){let{date:e,dayChoghadiya:r,nightChoghadiya:a}=t;return s`<div class="wrap" part="card"><div class="header" part="header"><h2 class="title">${this.t("Choghadiya")}</h2>${e?s`<p class="subtitle">${A(this.effectiveLang(),e)}</p>`:i}</div><div class="cho-grid" part="table"><section class="period-col" aria-label="${this.t("Day muhurta periods")}"><h3 class="period-heading">${this.t("Day")}</h3><div role="list" aria-label="${this.t("Daytime choghadiya")}">${r&&r.length>0?r.map(n=>this.renderTile(n)):s`<p class="roxy-empty" role="status">${this.t("No daytime periods")}</p>`}</div></section><section class="period-col" aria-label="${this.t("Night muhurta periods")}"><h3 class="period-heading">${this.t("Night")}</h3><div role="list" aria-label="${this.t("Nighttime choghadiya")}">${a&&a.length>0?a.map(n=>this.renderTile(n)):s`<p class="roxy-empty" role="status">${this.t("No nighttime periods")}</p>`}</div></section></div></div>`}};yt.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.header{gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);margin:0}.cho-grid{gap:var(--roxy-space-md,1rem);grid-template-columns:1fr;display:grid}@media (width>=720px){.cho-grid{grid-template-columns:1fr 1fr}}.period-col{gap:var(--roxy-space-xs,.25rem);display:grid}.period-heading{font-size:var(--roxy-text-base,1rem);font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-xs,.25rem);color:var(--roxy-fg,#0a0a0a)}.cho-tile{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.25em .75em;padding:.55em .85em;display:grid}.cho-tile.good{background:color-mix(in srgb, var(--roxy-success,#22c55e) 18%, transparent);border-color:color-mix(in srgb, var(--roxy-success,#22c55e) 45%, transparent);color:var(--roxy-fg,#0a0a0a)}.cho-tile.bad{background:color-mix(in srgb, var(--roxy-danger,#ef4444) 18%, transparent);border-color:color-mix(in srgb, var(--roxy-danger,#ef4444) 45%, transparent);color:var(--roxy-fg,#0a0a0a)}.cho-tile.neutral{color:var(--roxy-fg,#0a0a0a);background:0 0}.cho-tile.now{outline:2px solid var(--roxy-accent,#f59e0b);outline-offset:1px;box-shadow:0 0 0 4px color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent)}.now-badge{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);text-transform:uppercase;letter-spacing:.06em;margin-left:.4em;display:inline-block}.tile-name{font-size:var(--roxy-text-base,1rem);font-weight:var(--roxy-weight-bold,600);overflow-wrap:anywhere;grid-column:1;min-width:0}.tile-time{font-size:var(--roxy-text-xs,.75rem);opacity:.8;white-space:nowrap;text-align:right;grid-area:1/2/3;align-self:center}.tile-lord{font-size:var(--roxy-text-sm,.875rem);opacity:.85;grid-column:1;align-items:center;gap:.25em;display:flex}`],yt=g([b("roxy-choghadiya-grid")],yt);var Ii=["sun","moon","venus","mars"],Kn=["fire","earth","air","water"],Ge=class extends y{constructor(){super(...arguments);this.mode="astrology"}getBreakdown(){let e=this.data;if(!e)return{};if("categories"in e&&e.categories){let r={};for(let[a,n]of Object.entries(e.categories))typeof n=="number"&&Number.isFinite(n)&&(r[a]=n);return r}return{}}renderData(e){let r=e.overallScore,a=this.getBreakdown(),n="rating"in e?e.rating:void 0,l="archetype"in e?e.archetype:void 0,d="advice"in e?e.advice:void 0,c="summary"in e?e.summary:void 0,p="interpretation"in e?e.interpretation:void 0,h="strengths"in e?e.strengths:void 0,m="challenges"in e?e.challenges:void 0,f="keyAspects"in e?e.keyAspects:void 0,C=!this.hideReadings;return s`<article class="card" part="card" aria-label="${`Compatibility (${this.mode})`}"><div class="head" part="header"><h2>${_(`${this.mode} compatibility`)}</h2><div>${typeof r=="number"?s`<div class="score">${Math.round(r)}</div>`:i} ${n?s`<div class="rating">${n}</div>`:i}</div></div>${Object.keys(a).length>0?s`<div role="list" part="details breakdown">${Object.entries(a).map(([w,k])=>s`<div class="bar-row" role="listitem"><span style="text-transform:capitalize">${w}</span> <span class="bar"><span style="width:${Math.max(0,Math.min(100,k))}%"></span></span> <span>${Math.round(k)}</span></div>`)}</div>`:i} ${l?s`<p><span class="archetype">${l.label}</span> ${l.description&&C?s`· ${l.description}`:i}</p>`:i} ${c&&C?s`<p class="lead">${c}</p>`:i} ${p&&C?s`<p class="body">${p}</p>`:i} ${d&&C?s`<p class="body">${d}</p>`:i} ${this.renderAspectBreakdown()} ${this.renderSignCompatibility()} ${this.renderElementBalance()} ${this.renderSubScores()} ${C&&((h?.length??0)>0||(m?.length??0)>0)?s`<div class="lists" part="section strengths-challenges">${h?.length?s`<div><h3>${this.t("Strengths")}</h3><ul>${h.map(w=>s`<li>${w}</li>`)}</ul></div>`:i} ${m?.length?s`<div><h3>${this.t("Challenges")}</h3><ul>${m.map(w=>s`<li>${w}</li>`)}</ul></div>`:i}</div>`:i} ${f?.length?s`<div class="lists" part="section key-aspects"><div><h3>${this.t("Key aspects")}</h3><ul class="key-aspects">${f.slice(0,6).map(w=>s`<li>${ji(this.effectiveLang(),w,C)}</li>`)}</ul></div></div>`:i}</article>`}renderAspectBreakdown(){let e=this.astro()?.aspectBreakdown;return e?s`<div class="pills" part="details aspect-breakdown" role="region" aria-label="${this.t("Aspect breakdown")}">${typeof e.total=="number"?s`<span class="pill">${this.t("Total")}: ${e.total}</span>`:i} <span class="pill pill--success">${this.t("Harmonious")}: ${e.harmonious}</span> <span class="pill pill--danger">${this.t("Challenging")}: ${e.challenging}</span> <span class="pill">${this.t("Neutral")}: ${e.neutral}</span></div>`:i}renderSignCompatibility(){let e=this.astro(),r=e?.signCompatibility;if(!r)return i;let a=e?.persons,n=Ii.map(l=>{let d=r[l];if(!d)return null;let c=p=>{let h=N((p==="person1"?d.person1Sign:d.person2Sign)??""),m=a?.[p]?.[l]?.degree,f=z(h)??"",C=typeof m=="number"?` ${Math.round(m)}°`:"";return`${f} ${h}${C}`.trim()};return{label:`${R(l)??""} ${N(l)}`.trim(),aside:`${c("person1")} and ${c("person2")}`,body:d.description??""}}).filter(l=>l!==null);return this.renderInterpretation(n,"compat-signs","Sign compatibility")}renderElementBalance(){let e=this.astro()?.elementBalance;if(!e)return i;let r=e.person1,a=e.person2,n=Math.max(1,...Kn.map(d=>Math.max(r?.[d]??0,a?.[d]??0))),l=e.sharedElement?.toLowerCase();return s`<section class="block" part="section element-balance"><h3>${this.t("Element balance")}</h3><div class="elements"><div class="el-row head"><span></span> <span>${this.t("Person 1")}</span> <span>${this.t("Person 2")}</span></div>${Kn.map(d=>{let c=r?.[d]??0,p=a?.[d]??0;return s`<div class="${d===l?"el-row shared":"el-row"}"><span class="el-name">${d}</span> <span class="el-bar p1"><span>${c}</span> <span class="track"><span style="width:${c/n*100}%"></span></span> </span><span class="el-bar p2"><span class="track"><span style="width:${p/n*100}%"></span></span> <span>${p}</span></span></div>`})}</div>${e.description&&!this.hideReadings?s`<p class="shared-note">${e.description}</p>`:i}</section>`}renderSubScores(){let e=this.data;if(!e)return i;let r=[];if("lifePath"in e){let a=[["Life Path",e.lifePath],["Expression",e.expression],["Soul Urge",e.soulUrge]];for(let[n,l]of a)l&&r.push({label:n,aside:`${l.person1} and ${l.person2} · ${ae(this.effectiveLang(),l.compatibility,0)}`,body:l.description??""})}if("cycles"in e&&e.cycles)for(let[a,n]of Object.entries(e.cycles))n&&r.push({label:N(a),aside:`${ae(this.effectiveLang(),n.alignment,0)} in step · ${_(n.phase??"")}`,body:n.description??""});return this.renderInterpretation(r,"compat-sub-scores","Breakdown")}astro(){let e=this.data;return e&&"signCompatibility"in e?e:void 0}};Ge.styles=[x,M,O,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:center;gap:var(--roxy-space-md,1rem);grid-template-columns:1fr auto;display:grid}.head h2{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;margin:0}.score{font-variant-numeric:tabular-nums;font-size:2rem;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);line-height:1}.rating{color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-sm,.875rem)}.bar-row{gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:8rem 1fr 3.5rem;align-items:center;display:grid}.bar{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);height:8px;overflow:hidden}.bar>span{background:var(--roxy-accent,#f59e0b);height:100%;transition:width var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.bar-row>span:last-child{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a);text-align:right}.archetype{color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.lists h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.lists ul{padding-left:var(--roxy-space-md,1rem);margin:0}.lead{color:var(--roxy-fg,#0a0a0a);margin:0;font-weight:500}p.body{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.6}.pills{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.pill{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 8px}.pill--success{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.pill--danger{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.elements{gap:var(--roxy-space-sm,.5rem);display:grid}.el-row{align-items:center;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:4rem 1fr 1fr;display:grid}.el-row .el-name{text-transform:capitalize;color:var(--roxy-fg,#0a0a0a)}.el-row.head span{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600)}.el-row.head span:nth-child(2){text-align:right}.el-bar{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);align-items:center;gap:.4rem;display:flex}.el-bar.p1{flex-direction:row-reverse}.el-bar .track{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);flex:auto;height:8px;display:flex;overflow:hidden}.el-bar.p1 .track{justify-content:flex-end}.el-bar .track>span{background:var(--roxy-accent,#f59e0b);height:100%;display:block}.el-bar.p2 .track>span{background:var(--roxy-info,#0284c7)}.el-row.shared .el-name{font-weight:var(--roxy-weight-bold,600)}.shared-note{margin:var(--roxy-space-sm,.5rem) 0 0;font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.key-aspects{padding-left:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);margin:0}`],g([S({type:String,reflect:!0})],Ge.prototype,"mode",2),Ge=g([b("roxy-compatibility-card")],Ge);function ji(o,t,e){let r=ce(t),a=typeof t.orb=="number"?` (orb ${v(o,t.orb,1)}°)`:"",n=[t.planet1,r,t.planet2].filter(Boolean).join(" ");return t.description&&e?`${n}${a} · ${t.description}`:`${n}${a}`}var Hi={apple:"#8db600",azure:"#007fff",blackish:"black",bluish:"blue",bottle:"#006a4e",brass:"#b5a642",brick:"#b22222",brownish:"brown",browns:"brown",burgundy:"#800020",clear:"#eef2f6",colorless:"#eef2f6",colourless:"#eef2f6",cream:"#fffdd0",creamy:"#fffdd0",emerald:"#50c878",golden:"gold",greenish:"green",lilac:"#c8a2c8",mauve:"#e0b0ff",peach:"peachpuff",pinkish:"pink",reddish:"red",rose:"#f4a6b7",royal:"royalblue",silvery:"silver",sky:"skyblue",yellowish:"yellow"},Fi=new Set(["beige","black","blue","brown","crimson","cyan","gold","gray","green","grey","indigo","lavender","magenta","maroon","navy","olive","orange","pink","purple","red","salmon","silver","tan","teal","turquoise","violet","white","yellow"]),Ki={bright:["white",85],dark:["black",60],deep:["black",70],faintly:["white",30],light:["white",55],pale:["white",45],rich:["black",80]};function sa(o){let t=[],e=[];for(let l of o.toLowerCase().split(/[\s-]+/)){let d=Ki[l];if(d){e.push(d);continue}let c=Hi[l]??(Fi.has(l)?l:"");c&&t.push(c)}let[r,a]=t;if(!r)return"var(--roxy-border, #e4e4e7)";let n=a?`color-mix(in srgb, ${r}, ${a})`:r;for(let[l,d]of e)n=`color-mix(in srgb, ${n} ${d}%, ${l})`;return n}var ft=class extends y{renderData(t){let e=t.colors??[],r=t.keywords??[],a=t.pairsWith??[],n=Vr(this.effectiveLang(),t.birthMonth)||void 0;return s`<article class="wrap" part="card" aria-label="${t.name??"Crystal"}"><div class="hero" part="header">${t.imageUrl?s`<img class="photo" part="chart" src="${t.imageUrl}" alt="${t.name??"Crystal"}" loading="lazy">`:i}<div><h2 class="title">${t.name}</h2>${t.description&&!this.hideReadings?s`<p class="desc">${t.description}</p>`:i}</div></div><dl class="attrs" part="details">${this.attr(this.t("Planet"),t.planet)} ${this.attr(this.t("Hardness"),typeof t.hardness=="number"?`${t.hardness} Mohs`:void 0)} ${this.attr(this.t("Vibration"),t.numericalVibration)} ${this.attr(this.t("Birthstone"),n)} ${this.list(this.t("Chakras"),t.chakras)} ${this.list(this.t("Zodiac"),t.zodiacSigns)} ${this.list(this.t("Elements"),t.elements)} ${e.length?s`<div class="attr"><dt>${this.t("Colors")}</dt><dd><div class="colors">${e.map(l=>s`<span class="color"><span class="dot" style="${`background:${sa(l)}`}"></span>${l}</span>`)}</div></dd></div>`:i}</dl>${this.renderMeaning(t.meaning)} ${r.length&&!this.hideReadings?s`<div part="section keywords"><p class="section-label">${this.t("Keywords")}</p><div class="chips">${r.map(l=>s`<span class="chip">${l}</span>`)}</div></div>`:i} ${t.affirmation&&!this.hideReadings?s`<p class="affirmation">${t.affirmation}</p>`:i} ${a.length?s`<div part="section pairs-with"><p class="section-label">${this.t("Pairs with")}</p><div class="chips">${a.map(l=>s`<span class="chip">${String(l).replace(/-/g," ")}</span>`)}</div></div>`:i}</article>`}attr(t,e){return e==null||e===""?i:s`<div class="attr"><dt>${t}</dt><dd>${e}</dd></div>`}list(t,e){return e?.length?s`<div class="attr"><dt>${t}</dt><dd>${e.join(", ")}</dd></div>`:i}renderMeaning(t){if(!t||this.hideReadings)return i;let r=[[this.t("Spiritual"),t.spiritual],[this.t("Emotional"),t.emotional],[this.t("Physical"),t.physical]].filter(([,a])=>!!a);return r.length===0?i:s`<div class="meaning" part="section meaning">${r.map(([a,n])=>s`<h3>${a}</h3><p>${n}</p>`)}</div>`}};ft.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.hero{gap:var(--roxy-space-md,1rem);align-items:flex-start;display:flex}.photo{border-radius:var(--roxy-radius-md,8px);object-fit:cover;background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 35%, transparent);flex:none;width:96px;height:96px}.title{margin:0 0 var(--roxy-space-xs,.25rem) 0;font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600)}.desc{line-height:1.55;font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0}.attrs{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(7rem,1fr));display:grid}.attr{gap:2px;display:grid}.attr dt{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.attr dd{font-size:var(--roxy-text-sm,.875rem);margin:0;font-weight:500}.colors{flex-wrap:wrap;gap:.4rem;display:flex}.color{font-size:var(--roxy-text-xs,.75rem);text-transform:capitalize;align-items:center;gap:.3rem;display:inline-flex}.dot{border-radius:var(--roxy-radius-full,9999px);border:1px solid color-mix(in srgb, var(--roxy-fg,#0a0a0a) 18%, transparent);width:.7rem;height:.7rem}.meaning h3{margin:0 0 var(--roxy-space-xs,.25rem) 0;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.meaning p{margin:0 0 var(--roxy-space-sm,.5rem) 0;font-size:var(--roxy-text-sm,.875rem);line-height:1.55}.chips{flex-wrap:wrap;gap:.3rem;display:flex}.chip{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem);text-transform:capitalize;padding:1px 8px}.section-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-xs,.25rem) 0}.affirmation{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-left:3px solid var(--roxy-accent,#f59e0b);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent);font-style:italic;font-size:var(--roxy-text-sm,.875rem);border-radius:0 var(--roxy-radius-sm,4px) var(--roxy-radius-sm,4px) 0;margin:0}`],ft=g([b("roxy-crystal-card")],ft);var Oe=class extends y{constructor(){super(...arguments);this.heading=""}renderData(e){let r=e.crystals??[];if(r.length===0)return this.renderEmpty();let a=this.heading||this.deriveHeading(e),n="total"in e&&typeof e.total=="number"?e.total:r.length;return s`<section class="wrap" part="card" aria-label="${a}"><header class="head" part="header"><h2 class="title">${a}</h2><span class="count">${n} ${n===1?"crystal":"crystals"}</span></header><ul class="grid" part="section crystals">${r.map(l=>s`<li class="tile">${l.imageUrl?s`<img class="photo" src="${l.imageUrl}" alt="${l.name??"Crystal"}" loading="lazy">`:s`<div class="photo" aria-hidden="true"></div>`}<p class="name">${l.name}</p>${l.colors&&l.colors.length>0?s`<div class="colors" aria-label="${`Colours: ${l.colors.join(", ")}`}">${l.colors.map(d=>s`<span class="swatch" style="${`background:${sa(d)}`}" title="${d}"></span>`)}</div>`:i}</li>`)}</ul></section>`}deriveHeading(e){return"chakra"in e&&e.chakra?this.t("{{chakra}} chakra crystals",{chakra:e.chakra}):"element"in e&&e.element?this.t("{{element}} element crystals",{element:e.element}):"sign"in e&&e.sign?this.t("Crystals for {{sign}}",{sign:e.sign}):"month"in e&&typeof e.month=="number"?this.t("{{month}} birthstones",{month:Vr(this.effectiveLang(),e.month)}):this.t("Crystals")}};Oe.styles=[x,u`.wrap{gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.count{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.grid{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fill,minmax(8rem,1fr));margin:0;padding:0;list-style:none;display:grid}.tile{gap:var(--roxy-space-xs,.25rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem);box-shadow:var(--roxy-shadow-sm);display:grid}.photo{aspect-ratio:1;border-radius:var(--roxy-radius-sm,4px);object-fit:cover;background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 35%, transparent);width:100%}.name{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.colors{flex-wrap:wrap;gap:4px;display:flex}.swatch{border-radius:var(--roxy-radius-full,9999px);border:1px solid color-mix(in srgb, var(--roxy-fg,#0a0a0a) 18%, transparent);width:10px;height:10px}`],g([S({type:String,reflect:!0})],Oe.prototype,"heading",2),Oe=g([b("roxy-crystal-grid")],Oe);function Vn(o){return"pranaDashas"in o?"Prana":"sookshmaDashas"in o?"Sookshma":"pratyantardashas"in o?"Pratyantardasha":"antardashas"in o?"Antardasha":"Mahadasha"}function rs(o){if("sookshmaPeriod"in o&&o.sookshmaPeriod)return{source:"Sookshma",period:o.sookshmaPeriod};if("pratyantardashaPeriod"in o&&o.pratyantardashaPeriod)return{source:"Pratyantardasha",period:o.pratyantardashaPeriod};if("antardashaPeriod"in o&&o.antardashaPeriod)return{source:"Antardasha",period:o.antardashaPeriod};if("mahadashaPeriod"in o&&o.mahadashaPeriod)return{source:"Mahadasha",period:o.mahadashaPeriod}}function as(o){if(!o)return"";let t=[];return o.years&&t.push(`${o.years}y`),o.months&&t.push(`${o.months}m`),o.days&&t.push(`${o.days}d`),t.length?t.join(" "):"0d"}function qn(o,t){return ye(o?.strongHouses?.length?o.strongHouses:o?.signifiedHouses,t)}function na(o,t){let e=t.startDate?A(o,t.startDate):"",r=t.endDate?A(o,t.endDate):"";return e&&e===r?`${q(o,t.startDate)} to ${q(o,t.endDate)}`:e&&r?`${e} to ${r}`:e||r}var we=class extends y{constructor(){super(...arguments);this.period="current";this.view="timeline"}renderData(e){let r=this.collectPeriods(e),a=r.length?Math.max(...r.map(h=>h.durationYears)):0,n=qi(r.length?Math.min(...r.map(h=>h.durationYears)):0),l=this.hideReadings?[]:this.readings(e,r),d=this.frameRows(e),c=[{id:"timeline",label:this.t("Timeline")},...l.length?[{id:"readings",label:this.t("Readings ({{count}})",{count:l.length})}]:[],...d.length?[{id:"frame",label:this.t("Chart details")}]:[]],p=c.some(h=>h.id===this.view)?this.view:"timeline";return s`<div class="wrap" part="card" aria-label="${this.t("Dasha timeline")}"><header class="head" part="header"><h2 class="title">${this.heading(e)}</h2>${this.renderLordChain(e)}</header>${this.renderParentMahadasha(e)} ${c.length>1?se({items:c,active:p,onSelect:h=>{this.view=h},label:this.t("Dasha views"),idPrefix:"roxy-dasha",controls:!0}):i}<div id="roxy-dasha-panel-${p}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="${c.length>1?`roxy-dasha-tab-${p}`:i}">${p==="timeline"?s`${this.period==="current"?this.renderCurrent(e):i} ${r.length>0?s`<div class="timeline" part="chart timeline" role="list">${r.map(h=>this.renderBar(h,a,n,e.houseThemes))}</div>`:i}`:i} ${p==="readings"?this.renderReadings(l):i} ${p==="frame"?this.renderFrame(d):i}</div></div>`}renderLordChain(e){let r=["mahadashaLord"in e?e.mahadashaLord:void 0,"antardashaLord"in e?e.antardashaLord:void 0,"pratyantardashaLord"in e?e.pratyantardashaLord:void 0,"sookshmaLord"in e?e.sookshmaLord:void 0].filter(Boolean);return r.length>1?s`<div class="nakshatra">${r.join(" › ")}</div>`:"nakshatraName"in e&&e.nakshatraName?s`<div class="nakshatra">${"nakshatraLord"in e&&e.nakshatraLord?this.t("Moon nakshatra: {{name}} (lord {{lord}})",{name:e.nakshatraName,lord:e.nakshatraLord}):this.t("Moon nakshatra: {{name}}",{name:e.nakshatraName})}</div>`:i}frameRows(e){let r=[];if("nakshatraName"in e&&e.nakshatraName){let a="moonNakshatra"in e&&e.moonNakshatra?` (${e.moonNakshatra} of 27)`:"";r.push(["Moon nakshatra",`${e.nakshatraName}${a}`])}if("nakshatraLord"in e&&e.nakshatraLord&&r.push(["Nakshatra lord",e.nakshatraLord]),"moonLongitude"in e&&typeof e.moonLongitude=="number"&&r.push(["Moon longitude",`${v(this.effectiveLang(),e.moonLongitude,3)}° sidereal`]),"ayanamsaType"in e&&e.ayanamsaType&&r.push(["Ayanamsa",it(this.effectiveLang(),e.ayanamsaType,"ayanamsa"in e?e.ayanamsa:void 0)]),"birthDashaBalance"in e&&e.birthDashaBalance){let a="nakshatraLord"in e&&e.nakshatraLord?`${e.nakshatraLord} `:"";r.push(["Balance at birth",`${as(e.birthDashaBalance)} of the opening ${a}mahadasha`])}return"totalYears"in e&&typeof e.totalYears=="number"&&r.push(["Cycle length",`${e.totalYears} years`]),r}renderFrame(e){return s`<dl class="frame" part="details frame">${e.map(([r,a])=>s`<div><dt>${r}</dt><dd>${a}</dd></div>`)}</dl>`}renderReadings(e){return this.renderInterpretation(e,"roxy-dasha",e.length===1?"Reading":"Readings")}heading(e){let r=rs(e);return r?this.t("{{level}} periods in {{planet}} {{parent}}",{level:this.t(Vn(e)),planet:r.period.planet,parent:this.t(r.source)}):"mahadashas"in e?this.t("Vimshottari Mahadasha"):"mahadasha"in e?this.t("Active dashas"):this.period==="major"?this.t("Vimshottari Mahadasha"):this.t("Active dashas")}renderParentMahadasha(e){let r=rs(e);if(!r)return i;let a=r.period,n=na(this.effectiveLang(),a),l=a.nominalStartDate?A(this.effectiveLang(),a.nominalStartDate):"";return s`<p class="parent">${this.t("Inside the {{planet}} {{level}}{{span}}{{duration}}.",{planet:a.planet,level:this.t(r.source),span:n?`, ${n}`:"",duration:typeof a.durationYears=="number"?` (${Vi(this.effectiveLang(),a.durationYears)})`:""})} ${l?s`<br>${this.t("It began {{date}}, before birth, so only the sub-periods running after the birth date are listed.",{date:l})}`:i}</p>`}readings(e,r){let a=[],n=rs(e);if(n?.period.interpretation&&a.push({label:this.t("{{planet}} {{level}}",{planet:n.period.planet,level:this.t(n.source)}),aside:na(this.effectiveLang(),n.period),body:n.period.interpretation}),"mahadasha"in e){let d=[["Mahadasha",e.mahadasha,e.remainingInMahadasha],["Antardasha",e.antardasha,e.remainingInAntardasha],["Pratyantardasha",e.pratyantardasha,e.remainingInPratyantardasha],["Sookshma",e.sookshmaDasha,e.remainingInSookshma],["Prana",e.pranaDasha,e.remainingInPrana]];for(let[c,p,h]of d){if(!p?.interpretation)continue;let m=as(h);a.push({label:this.t("{{planet}} {{level}}",{planet:p.planet,level:this.t(c)}),aside:m?this.t("{{balance}} left",{balance:m}):na(this.effectiveLang(),p),body:p.interpretation})}}let l=r.find(d=>this.isCurrent(d));return l?.interpretation&&a.push({label:`${l.planet} ${Vn(e)}`,aside:na(this.effectiveLang(),l),body:l.interpretation}),a}renderCurrent(e){if(!("mahadasha"in e))return i;let r=[["Mahadasha",e.mahadasha,e.remainingInMahadasha],["Antardasha",e.antardasha,e.remainingInAntardasha],["Pratyantardasha",e.pratyantardasha,e.remainingInPratyantardasha],["Sookshma",e.sookshmaDasha,e.remainingInSookshma],["Prana",e.pranaDasha,e.remainingInPrana]];return s`<div class="current" part="details current">${r.map(([a,n,l])=>{if(!n)return i;let d=as(l),c=qn(n.significators,e.houseThemes);return s`<div><span>${this.t(a)}</span> <strong>${n.planet}</strong> ${d?s`<small>${this.t("{{balance}} left",{balance:d})}</small>`:i} ${c?s`<small class="houses">${this.t("Signifies {{houses}}",{houses:c})}</small>`:i}</div>`})}</div>`}collectPeriods(e){return"mahadashas"in e&&e.mahadashas?.length?e.mahadashas:"antardashas"in e&&e.antardashas?.length?e.antardashas:"pratyantardashas"in e&&e.pratyantardashas?.length?e.pratyantardashas:"sookshmaDashas"in e&&e.sookshmaDashas?.length?e.sookshmaDashas:"pranaDashas"in e&&e.pranaDashas?.length?e.pranaDashas:[]}isCurrent(e){if(!e.startDate||!e.endDate)return!1;let r=Date.now(),a=Date.parse(e.startDate),n=Date.parse(e.endDate);return Number.isNaN(a)||Number.isNaN(n)?!1:r>=a&&r<n}progressIn(e){if(!e.startDate||!e.endDate)return-1;let r=Date.parse(e.startDate),a=Date.parse(e.endDate),n=Date.now();return Number.isNaN(r)||Number.isNaN(a)||n<r||n>=a||a<=r?-1:(n-r)/(a-r)}renderBar(e,r,a,n){let l=e.durationYears,d=r>0?l/r*100:0,c=this.isCurrent(e),p=c?this.progressIn(e):-1,h=c?"bar-track bar-now":"bar-track",m=qn(e.significators,n),f=["bar",c?"now":"",a==="time"?"fine":""].filter(Boolean).join(" ");return s`<div class="${f}" role="listitem" aria-current="${c?"time":"false"}"><span><strong>${e.planet}</strong>${c?s`<span class="now-badge">${this.t("Now")}</span>`:i} </span><span class="${h}"><span class="bar-fill" style="width:${d}%"></span> ${p>=0?s`<span class="bar-progress" style="left:${p*d}%" aria-hidden="true"></span>`:i} </span><span class="dates">${e.startDate?Ua(this.effectiveLang(),e.startDate,a):""} ${e.endDate?s`- ${Ua(this.effectiveLang(),e.endDate,a)}`:""} </span>${m?s`<span class="houses">${this.t("Signifies {{houses}}",{houses:m})}</span>`:i}</div>`}};we.styles=[x,M,O,ee,u`.wrap{gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.nakshatra{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.current{gap:var(--roxy-space-md,1rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);box-shadow:var(--roxy-shadow-sm);grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));display:grid}.current div span:first-child{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:block}.current div strong{font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a)}.current div small{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}.parent{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);border-left:2px solid var(--roxy-border,#e4e4e7);padding-left:var(--roxy-space-sm,.5rem);margin:0}.timeline{gap:var(--roxy-space-xs,.25rem);display:grid}.bar{gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:5rem 1fr 8rem;align-items:center;row-gap:.15rem;display:grid}.bar.now strong{color:var(--roxy-accent-ink,#b45309)}.now-badge{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);text-transform:uppercase;letter-spacing:.06em;margin-left:.4em;display:inline-block}.bar-track{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);height:14px;position:relative;overflow:hidden}.bar-fill{background:var(--roxy-accent,#f59e0b);opacity:.45;height:100%;transition:width var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.bar-now .bar-fill{opacity:1}.bar-progress{background:var(--roxy-accent-ink,#b45309);width:2px;box-shadow:0 0 0 2px color-mix(in srgb, var(--roxy-accent,#f59e0b) 35%, transparent);border-radius:2px;position:absolute;top:-2px;bottom:-2px}.dates{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;text-align:right}.bar.fine{grid-template-columns:5rem 1fr}.bar.fine .dates{text-align:left;grid-column:1/-1;min-width:0}.bar .houses{min-width:0;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);grid-column:1/-1}[role=tabpanel]{padding-top:var(--roxy-space-md,1rem)}.frame{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));margin:0;display:grid}.frame dt{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em}.frame dd{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);font-variant-numeric:tabular-nums;margin:0}.block{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);padding:var(--roxy-space-md,1rem)}`],g([S({type:String,reflect:!0})],we.prototype,"period",2),g([G()],we.prototype,"view",2),we=g([b("roxy-dasha-timeline")],we);var ss=365.25;function Vi(o,t){if(t>=1)return`${v(o,t,1)} years`;let e=t*ss;if(e>=1)return`${v(o,e,e>=10?0:1)} days`;let r=e*24;return r>=1?`${v(o,r,1)} hours`:`${v(o,r*60,0)} minutes`}function qi(o){return o>=2?"year":o>=60/ss?"month":o>=1/ss?"day":"time"}var Un=["title","name","label","heading","overview","summary"],Ui=80,Yi=["imageUrl","image","icon","symbol"],Zi=["imageUrl","image"],Wi=["affirmation","mantra","motto","quote"],Ji=new Set(["seed"]),Xi=new Set(["id","slug","key"]),Qi=new Set(["calculation","calculations","type","position","count","totalcount","total","limit","offset","page","pagesize","perpage"]),el=8,Yn=1,tl=12,rl=o=>o.toLowerCase().replace(/[_-]/g,""),Zn=o=>/^(has|is)([A-Z_]|$)/.test(o),al=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?)?$/,sl=/^[A-Z0-9]+(_[A-Z0-9]+)+$/,nl=/^https?:\/\//,ol=6;function xt(o){return o===null||["string","number","boolean"].includes(typeof o)}function ns(o){return o!==null&&typeof o=="object"&&!(Array.isArray(o)&&o.every(xt))}function Wn(o){if(o==null)return!0;if(Array.isArray(o))return o.length===0;if(typeof o!="object")return!1;let t=Object.values(o);return t.length===0||t.every(Wn)}var _e=class extends y{constructor(){super(...arguments);this.depth=0}renderData(e){return this.depth>=ol?s`<div class="roxy-empty" role="status">${this.t("Nested data omitted")}</div>`:s`<div class="roxy-card" part="card" aria-label="${this.t("Generic data display")}">${this.renderValue(e)}</div>`}renderValue(e){return e==null?i:xt(e)?s`<p>${this.scalarTemplate(e)}</p>`:Array.isArray(e)?this.renderArray(e):this.renderObject(e)}renderArray(e){return e.length===0?s`<div class="roxy-empty" role="status">${this.t("Empty list")}</div>`:e.every(xt)?this.renderChips(e):e.every(a=>a!==null&&typeof a=="object"&&!Array.isArray(a))?this.renderTable(e):s`<ol>${e.map(a=>s`<li>${this.renderValue(a)}</li>`)}</ol>`}renderChips(e){return s`<ul class="roxy-chips">${e.filter(r=>r!==null).map(r=>s`<li>${this.formatScalar(r)}</li>`)}</ul>`}renderTable(e){let r=e.map(p=>this.suppress(p)),a=this.collectKeys(r),n=new Set(a.filter(p=>r.some(h=>ns(h[p]??null)))),l=n.size>0&&n.size<a.length,d=p=>l?n.has(p)?"col-wide":"col-tight":"",c=s`<div class="roxy-table-wrap" part="table" role="group" aria-label="${this.t("Data table")}" tabindex="0"><table class="roxy-table" role="table"><thead><tr>${a.map(p=>s`<th class="${d(p)}">${fe(this.effectiveLang(),p)}</th>`)}</tr></thead><tbody>${r.map(p=>s`<tr>${a.map(h=>s`<td class="${d(h)}">${this.renderCell(p[h],h)}</td>`)}</tr>`)}</tbody></table></div>`;return r.length>tl?s`<details class="roxy-table-details"><summary>${this.t("{{count}} rows",{count:r.length})}</summary>${c}</details>`:c}suppress(e){let r=sr(e),a=Un.some(n=>typeof r[n]=="string");return Object.fromEntries(Object.entries(r).filter(([n])=>{let l=rl(n);return Ji.has(l)||a&&Xi.has(l)?!1:!Qi.has(l)}))}renderObject(e){let r=this.suppress(e),a=Un.find(m=>typeof r[m]=="string"&&r[m].length<=Ui),n=Yi.find(m=>typeof r[m]=="string"&&r[m].startsWith("http")),l=a!=="summary"&&typeof r.summary=="string"?"summary":null,d=Wi.find(m=>typeof r[m]=="string"),c=Object.entries(r).filter(([m,f])=>m!==a&&m!==l&&m!==d&&!Zi.includes(m)&&!Wn(f)),p=c.filter(([,m])=>!ns(m)),h=c.filter(([,m])=>ns(m));return s`${n?s`<img class="roxy-image" src="${String(r[n])}" alt="${a?String(r[a]):this.t("illustration")}" loading="lazy">`:i} ${a?s`<h3 class="roxy-title" part="header">${r[a]}</h3>`:i} ${l?s`<p class="roxy-summary">${r[l]}</p>`:i} ${d?s`<blockquote class="roxy-quote">${r[d]}</blockquote>`:i} ${p.length>0?s`<dl class="roxy-rows" part="details">${p.map(([m,f])=>s`<dt>${fe(this.effectiveLang(),m)}</dt><dd>${this.renderField(f,m)}</dd>`)}</dl>`:i} ${h.map(([m,f])=>this.renderSection(m,f))}`}renderSection(e,r){let a=r!==null&&typeof r=="object"?Array.isArray(r)?r.length:Object.keys(r).length:0,n=this.renderField(r,e),l=fe(this.effectiveLang(),e);return a>el||this.depth>=Yn?s`<details class="roxy-section" ?open="${this.depth<Yn}"><summary>${l}</summary>${n}</details>`:s`<div class="roxy-section"><h4>${l}</h4>${n}</div>`}renderField(e,r){return e==null?"":e===!0&&r!==void 0&&Zn(r)?s`<span class="roxy-badge">${this.t("Yes")}</span>`:xt(e)?s`${this.scalarTemplate(e)}`:Array.isArray(e)&&e.every(xt)?this.renderChips(e):s`<roxy-data bare lang="${oe(this.effectiveLang())}" .data="${e}" .depth="${this.depth+1}"></roxy-data>`}renderCell(e,r){return e==null?"":e===!0&&r!==void 0&&Zn(r)?s`<span class="roxy-badge">${this.t("Yes")}</span>`:xt(e)?this.scalarTemplate(e):Array.isArray(e)&&e.every(xt)?e.filter(a=>a!==null).map(a=>this.formatScalar(a)).join(", "):s`<roxy-data bare lang="${oe(this.effectiveLang())}" .data="${e}" .depth="${this.depth+1}"></roxy-data>`}scalarTemplate(e){return typeof e=="string"&&nl.test(e)?s`<a href="${e}" target="_blank" rel="noopener noreferrer">${e}</a>`:this.formatScalar(e)}formatScalar(e){if(typeof e=="number")return v(this.effectiveLang(),e,2)||String(e);if(typeof e=="boolean")return e?this.t("Yes"):this.t("No");if(al.test(e)){let r=te(this.effectiveLang(),e),a=A(this.effectiveLang(),e);return r?`${a}, ${r}`:a}return sl.test(e)?_(e.toLowerCase()):e}collectKeys(e){let r=new Set;for(let a of e)for(let n of Object.keys(a))r.add(n);return Array.from(r)}};_e.styles=[x,u`.roxy-card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);box-shadow:var(--roxy-shadow-sm)}.roxy-card a{color:var(--roxy-accent-ink,#b45309)}.roxy-title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-sm,.5rem) 0;color:var(--roxy-primary,#0f172a);letter-spacing:var(--roxy-tracking-tight)}.roxy-summary{color:var(--roxy-secondary,#475569);margin:0 0 var(--roxy-space-md,1rem) 0;font-size:var(--roxy-text-sm,.875rem)}dl.roxy-rows{grid-template-columns:minmax(8ch, min(30%, max-content)) minmax(0, 1fr);gap:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);margin:0;display:grid}dl.roxy-rows dt{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);text-transform:capitalize}dl.roxy-rows dd{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);word-break:break-word;margin:0}ul.roxy-chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}ul.roxy-chips li{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.roxy-table-wrap{min-width:0;overflow-x:auto}table.roxy-table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}table.roxy-table th,table.roxy-table td{border-bottom:1px solid var(--roxy-border,#e4e4e7);padding:var(--roxy-space-sm,.5rem);text-align:left;text-transform:none;word-break:normal;overflow-wrap:normal}table.roxy-table th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em;white-space:nowrap}table.roxy-table th.col-tight,table.roxy-table td.col-tight{white-space:nowrap;width:1%}table.roxy-table th.col-wide,table.roxy-table td.col-wide{width:auto}.roxy-image{border-radius:var(--roxy-radius-md,8px);max-width:100%;height:auto;margin-bottom:var(--roxy-space-md,1rem)}.roxy-section{margin-top:var(--roxy-space-md,1rem)}.roxy-section h4{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-secondary,#475569);margin:0 0 var(--roxy-space-xs,.25rem) 0;text-transform:capitalize}blockquote.roxy-quote{margin:var(--roxy-space-md,1rem) 0;padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-left:3px solid var(--roxy-accent,#f59e0b);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);font-style:italic}.roxy-badge{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:1px 8px;display:inline-block}details.roxy-section,details.roxy-table-details{margin-top:var(--roxy-space-md,1rem)}details.roxy-section>summary,details.roxy-table-details>summary{cursor:pointer;font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-secondary,#475569);text-transform:capitalize}details.roxy-section>summary:focus-visible,details.roxy-table-details>summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-radius:4px}`],g([S({attribute:!1})],_e.prototype,"depth",2),_e=g([b("roxy-data")],_e);function he(o){let t=o%360;return t<0?t+360:t}function re(o){let t=he(o),e=Math.floor(t/30)%12,r=t%30,a=Math.floor(r),n=(r-a)*60,l=Math.floor(n),d=Math.round((n-l)*60);return{sign:Z[e]??"Aries",signIndex:e,degree:a,minute:l,second:d}}function ie(o,t){let{sign:e,degree:r,minute:a}=re(o);return`${r}° ${t||e} ${String(a).padStart(2,"0")}'`}function os(o){let t=Math.floor(o),e=Math.round((o-t)*60);return e===60&&(e=0,t+=1),{degree:t,minute:e}}function bt(o){let{degree:t,minute:e}=os(o);return`${t}°${String(e).padStart(2,"0")}'`}function kr(o){return he(o+180)}function oa(o,t){let e=he(o),r=he(t)-e;return r<0&&(r+=360),he(e+r/2)}function Sr(o,t,e){let r=o.filter(n=>Number.isFinite(t(n))).map(n=>{let l=he(t(n));return{item:n,longitude:l,displayLongitude:l}}).sort((n,l)=>n.longitude-l.longitude);for(let n=1;n<r.length;n++){let l=r[n-1],d=r[n];if(!l||!d)continue;let c=l.displayLongitude+e;d.displayLongitude<c&&(d.displayLongitude=c)}let a=r[r.length-1];if(a&&a.displayLongitude>360){let n=a.displayLongitude-360;for(let l of r)l.displayLongitude-=n}return r}function vt(o,t){return t>0?o/t*(180/Math.PI):0}function D(o,t,e,r){let a=r*Math.PI/180;return{x:o+e*Math.cos(a),y:t+e*Math.sin(a)}}var ge=400,K=20,ne=ge-2*K,Y=ge/2,Jn=Object.fromEntries(Z.map(o=>[o.toLowerCase(),o])),il=[{id:"north",source:"North"},{id:"south",source:"South"},{id:"east",source:"East"}],Qn="ʳ",eo="ᶜ",to="ʷ";function is(o){return Z.indexOf(o)}function ro(o,t){return typeof o.longitude!="number"||!Number.isFinite(o.longitude)?!1:re(o.longitude).sign.toLowerCase()!==t.toLowerCase()}function ll(o,t){let e=yn(o.graha)??o.graha,r=`${o.isRetrograde?Qn:""}${o.combust?eo:""}${o.war?to:""}`;if(typeof o.longitude!="number"||!Number.isFinite(o.longitude)||ro(o,t))return`${e}${r}`;let{degree:a}=re(o.longitude);return`${e} ${a}°${r}`}function dl(o,t,e){let r=[N(o.graha)],a=ro(o,t);if(a&&r.push(e("in {{sign}}",{sign:t})),typeof o.longitude=="number"&&Number.isFinite(o.longitude)){let n=re(o.longitude),l=String(n.minute).padStart(2,"0");r.push(a?`D1: ${n.degree}°${l}' ${n.sign}`:`${n.degree}°${l}' ${n.sign}`)}if(o.nakshatra?.name){let n=o.nakshatra.pada?` ${e("pada {{n}}",{n:o.nakshatra.pada})}`:"";r.push(`${o.nakshatra.name}${n}`)}return o.nakshatra?.lord&&r.push(e("nakshatra lord {{graha}}",{graha:o.nakshatra.lord})),o.awastha&&r.push(o.awastha),o.deeptadi&&r.push(o.deeptadi),o.combust&&r.push(e("combust")),o.war&&r.push(o.war.winner?e("planetary war with {{graha}}, won by {{winner}}",{graha:o.war.opponent,winner:o.war.winner}):e("planetary war with {{graha}}",{graha:o.war.opponent})),o.isRetrograde&&r.push(e("retrograde")),r.join(" · ")}function ls(o,t,e,r,a,n){let l=r-(o.length-1)*a/2;return o.map((d,c)=>{let p=l+c*a;return L`<text class="planet-text" x=${e} y=${p} text-anchor="middle" dominant-baseline="central">${ll(d,t)}<title>${dl(d,t,n)}</title></text>`})}function la(o,t={}){let{divisionLabel:e,lagnaOverride:r,states:a}=t,n=new Set((a?.combustion??[]).map(h=>(h.planet??"").toLowerCase())),l=new Map;for(let h of a?.planetaryWar??[])!h.planet1||!h.planet2||(l.set(h.planet1.toLowerCase(),{opponent:h.planet2,winner:h.winner}),l.set(h.planet2.toLowerCase(),{opponent:h.planet1,winner:h.winner}));let d={};for(let h of Z)d[h.toLowerCase()]=[];let c=r?Jn[r.toLowerCase()]??"":"",p=c;for(let[h,m]of Object.entries(o??{})){let f=(m?.rashi??"").toLowerCase();if(h==="Lagna"||m?.graha==="Lagna"){c||(p=Jn[f]??"");continue}if(!f||!(f in d))continue;let C=m.graha??h,w=C.toLowerCase();d[f]?.push({graha:C,longitude:m.longitude,nakshatra:m.nakshatra,isRetrograde:m.isRetrograde,awastha:m.awastha,deeptadi:m.deeptadi,combust:n.has(w)||void 0,war:l.get(w)})}return{lagnaSign:p,placements:d,divisionLabel:e}}var Lt=ne/4,cl={Pisces:{col:0,row:0},Aries:{col:1,row:0},Taurus:{col:2,row:0},Gemini:{col:3,row:0},Cancer:{col:3,row:1},Leo:{col:3,row:2},Virgo:{col:3,row:3},Libra:{col:2,row:3},Scorpio:{col:1,row:3},Sagittarius:{col:0,row:3},Capricorn:{col:0,row:2},Aquarius:{col:0,row:1}};function pl(o){let t=cl[o]??{col:0,row:0};return{x:K+t.col*Lt,y:K+t.row*Lt,w:Lt,h:Lt}}function ml(o){let t=K,e=K+Lt,r=K+2*Lt,a=K+3*Lt,n=ge-K;return L`
|
|
13
|
+
</g>`)}return e}var Jr=`0 0 ${In} ${Ci}`;function Xr(o){return L`
|
|
14
|
+
${Pi()}
|
|
15
|
+
${Ni(o.gateSources)}
|
|
16
|
+
${Gi(o.definedCenters,o.centerNames,o.stateWords??{defined:"defined",open:"open"})}
|
|
17
|
+
${ji(o.gateSources,o.gateTitles)}
|
|
18
|
+
`}var Qr=u`.chart{width:100%;max-width:var(--roxy-chart-max-width,30rem);height:auto;margin:0 auto;display:block}@container (width<=26rem){.chart{width:calc(100% + 2 * var(--roxy-space-lg,1.5rem));margin-inline:calc(-1 * var(--roxy-space-lg,1.5rem))}}.bg-body{fill:color-mix(in srgb, var(--roxy-secondary,#475569) 8%, transparent);stroke:var(--roxy-border,#e4e4e7);stroke-width:1px}.bg-channel{stroke:var(--roxy-border,#e4e4e7);stroke-width:5px;stroke-linecap:round}.bg-half{stroke-width:5px;stroke-linecap:round}.bg-half.stripe{stroke-linecap:butt;stroke-dasharray:7 7}.bg-center{fill:var(--roxy-surface,#fff);stroke:var(--roxy-secondary,#475569);stroke-width:1.8px}.bg-center.defined{stroke:color-mix(in srgb, var(--roxy-fg,#0a0a0a) 45%, transparent)}:host{--center-gold:#e0a200;--center-green:#2f8f00;--center-red:#c41f1f;--center-brown:#76502f}.bg-center.bg-gold.defined,.legend .swatch.bg-gold{fill:var(--center-gold);background:var(--center-gold)}.bg-center.bg-green.defined,.legend .swatch.bg-green{fill:var(--center-green);background:var(--center-green)}.bg-center.bg-red.defined,.legend .swatch.bg-red{fill:var(--center-red);background:var(--center-red)}.bg-center.bg-brown.defined,.legend .swatch.bg-brown{fill:var(--center-brown);background:var(--center-brown)}.bg-gate-dot{fill:var(--roxy-surface,#fff);stroke:var(--roxy-border,#e4e4e7);stroke-width:1px}.bg-gate-dot.on{stroke:none}.bg-center-name{fill:var(--roxy-muted,#71717a);opacity:.5;font-size:${ts}px;letter-spacing:.08em;text-transform:uppercase;pointer-events:none;font-weight:600}.bg-center-name.defined{fill:var(--roxy-surface,#fff);opacity:.62}.bg-gate{fill:var(--roxy-muted,#71717a);font-size:${jn}px;font-weight:600;font-family:var(--roxy-font-sans)}.bg-gate.on{fill:var(--src-ink,var(--roxy-surface,#fff))}.legend{gap:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);flex-wrap:wrap;display:flex}.legend .swatch{vertical-align:middle;border:1px solid var(--roxy-secondary,#475569);border-radius:2px;width:10px;height:10px;margin-right:4px;display:inline-block}.bg-half.src-left{stroke:var(--src-left)}.bg-half.src-right{stroke:var(--src-right)}.bg-gate-dot.on.src-left{fill:var(--src-left)}.bg-gate-dot.on.src-right{fill:var(--src-right)}.legend .swatch.src-left{background:var(--src-left)}.legend .swatch.src-right{background:var(--src-right)}.legend .swatch.source{border-radius:var(--roxy-radius-full,9999px);border-color:#0000}`;var Pe=u`.facts{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));display:grid}.fact{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);background:var(--roxy-surface,#fff)}.fact span{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:block}.fact strong{font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a)}.lead{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.6}.themes{gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.pill{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 10px}.pill--good{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.pill--shadow{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.keynotes{gap:var(--roxy-space-xs,.25rem);margin:0;display:grid}.keynotes dt{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.keynotes dd{margin:0}`;function ea(o,t){return o==="design"?t("Design"):o==="personality"?t("Personality"):o??""}function $e(o){let t=o.filter(e=>!!e.value);return t.length===0?i:s`<div class="facts" part="facts">${t.map(e=>s`<div class="fact" part="fact"><span>${e.label}</span> <strong>${e.value}</strong></div>`)}</div>`}function ta(o,t,e){return!o&&!t?i:s`<div class="themes" part="themes">${o?s`<span class="pill pill--good">${e("Signature: {{value}}",{value:o})}</span>`:i} ${t?s`<span class="pill pill--shadow">${e("Not-self: {{value}}",{value:t})}</span>`:i}</div>`}function ra(o,t){return!o?.personality&&!o?.design?i:s`<dl class="keynotes" part="keynotes">${o.personality?s`<dt>${t("Line {{line}} · Personality",{line:o.personalityLine??""})}</dt><dd>${o.personality}</dd>`:i} ${o.design?s`<dt>${t("Line {{line}} · Design",{line:o.designLine??""})}</dt><dd>${o.design}</dd>`:i}</dl>`}function fe(o,t){return dn(o,t)??O(t)}function Fn(o,t,e){return cn(o,t,e)??O(e)}var aa="Localized";function $(o,t,e){let r=o,a=r?.[`${t}${aa}`];if(typeof a=="string"&&a!=="")return a;if(e!==void 0)return e;let n=r?.[t];return typeof n=="string"?n:""}function Kn(o,t){let e=o,r=e?.[t];if(!Array.isArray(r))return[];let a=e?.[`${t}${aa}`],n=Array.isArray(a)?a:[];return r.map((l,d)=>{let c=n[d];return{value:String(l),label:typeof c=="string"&&c!==""?c:String(l)}})}function sr(o){let t;for(let e of Object.keys(o)){if(!e.endsWith(aa))continue;let r=e.slice(0,-aa.length);if(r===""||!(r in o))continue;t??={...o};let a=o[e];a!=null&&a!==""&&(t[r]=a),delete t[e]}return t??o}var Hi=["gold","green","brown","red"];function Fi(o){let t=new Map;for(let e of o){if(e.gate==null)continue;let r=t.get(e.gate);r?r.push(e):t.set(e.gate,[e])}return t}var Ne=class extends y{constructor(){super(...arguments);this.side="personality"}renderData(e){let r=e.centers??[],a=new Set(r.filter(p=>p.defined).map(p=>p.id)),n=Fi(e.gates??[]),l=new Map([...n].map(([p,h])=>[p,{left:h.some(m=>m.side==="design"),right:h.some(m=>m.side==="personality")}])),d=this.buildGateTitles(n),c=new Map(r.map(p=>[p.id,$(p,"name")]));return s`<div class="wrap" part="card"><header class="head" part="header"><h2 class="title">${this.t("Bodygraph")}</h2>${e.type||e.profile?s`<div class="type-line">${[$(e,"type"),e.profile?this.t("Profile {{profile}}",{profile:e.profile}):""].filter(Boolean).join(" · ")}</div>`:i}</header><div class="layout" part="layout"><svg class="chart" part="chart" viewBox="${Jr}" preserveAspectRatio="xMidYMid meet" role="img" aria-label="${this.t("Human Design bodygraph with nine centers, channels, and activated gates overlaid on a human silhouette")}"><title>${this.t("Human Design bodygraph")}</title><desc>${this.t("Nine energy centers in their canonical positions over a human silhouette, each filled with its traditional color when defined and outlined when open, wired by channels between activated gates.")}</desc>${Xr({definedCenters:a,gateSources:l,gateTitles:d,centerNames:c,stateWords:{defined:this.t("Defined"),open:this.t("Open")}})}</svg> ${this.renderSummary(e,c)}</div>${this.renderReading(e)} ${this.renderChannels(e.channels??[],c)} ${this.renderCenters(r)} ${this.renderActivations(e)}</div>`}buildGateTitles(e){let r=new Map;for(let[a,n]of e){let l=n.map(d=>[this.gateGlyph(d),`${a}${d.line!=null?`.${d.line}`:""}`,ea(d.side,this.translator)].filter(Boolean).join(" "));r.set(a,[this.t("Gate {{gate}}",{gate:a}),$(n[0],"gateName"),...l].filter(Boolean).join(" · "))}return r}gateGlyph(e){return e.planet?R(e.planet)??$(e,"planet"):""}renderSummary(e,r){let a=e.incarnationCross;return s`<div class="summary" part="details">${$e([{label:this.t("Type"),value:$(e,"type")},{label:this.t("Strategy"),value:$(e,"strategy")},{label:this.t("Authority"),value:$(e,"authority")},{label:this.t("Profile"),value:e.profile},{label:this.t("Definition"),value:$(e,"definition")}])} ${e.typeDescription&&!this.hideReadings?s`<p class="lead">${e.typeDescription}</p>`:i} ${a?.name?s`<p class="cross">${a.name} ${a.gates?.length?s`<span class="gates">(${a.gates.join(", ")})</span>`:i}</p>`:i} ${ta(e.signature?$(e,"signature"):void 0,e.notSelf?$(e,"notSelf"):void 0,this.translator)} ${this.renderLegend(r)}</div>`}renderLegend(e){let r=Hi.map(a=>[a,rs.filter(n=>n.color===a).map(n=>e.get(n.id)||n.label).join(", ")]);return s`<div class="legend" part="legend"><span class="legend-row"><span class="swatch source src-right"></span>${this.t("Personality")} <span class="swatch source src-left"></span>${this.t("Design")} </span><span class="legend-row">${this.t("Center colors when defined. Open centers are outlined.")}</span> ${r.map(([a,n])=>s`<span><span class="swatch bg-${a} defined"></span>${n}</span>`)} <span><span class="swatch"></span>${this.t("Open center")}</span></div>`}renderReading(e){let r=e.incarnationCross,a=[{label:this.t("Strategy"),aside:$(e,"strategy"),body:e.strategyDescription},{label:this.t("Authority"),aside:$(e,"authority"),body:e.authorityDescription},{label:this.t("Profile"),aside:e.profile,body:e.profileDescription,extra:ra(e.profileKeynotes,this.translator)},{label:this.t("Definition"),aside:$(e,"definition"),body:e.definitionDescription},{label:this.t("Aura"),body:e.aura},{label:this.t("Incarnation cross"),aside:r?$(r,"angle"):void 0,body:r?.description??""}];return this.renderInterpretation(a,"hd-reading")}renderChannels(e,r){if(e.length===0||this.hideReadings)return i;let a=new Map;for(let l of e){let d=l.circuit??"",c=a.get(d);c?c.push(l):a.set(d,[l])}let n=0;return s`<section class="block" part="section channels"><h3>${this.t("Defined channels ({{count}})",{count:e.length})}</h3>${[...a].map(([l,d])=>s`<div class="group">${l?s`<p class="group-head">${this.t("{{circuit}} circuit",{circuit:$(d[0],"circuit")})}</p>`:i} ${d[0]?.circuitDescription?s`<p class="group-note">${d[0].circuitDescription}</p>`:i} ${d.map(c=>s`<details class="interp-card" part="reading" name="hd-channel" ?open="${n++===0}"><summary><span class="interp-lead"><span class="chan-gates">${c.gateA}-${c.gateB}</span> <span>${$(c,"name")}</span> </span>${j()} <span class="interp-aside"><span class="chips">${(c.centers??[]).map(p=>s`<span class="chip">${r.get(p)||p}</span>`)}</span></span></summary><div class="interp-body">${c.description?s`<p>${c.description}</p>`:i}</div></details>`)}</div>`)}</section>`}renderCenters(e){if(e.length===0||this.hideReadings)return i;let r=e.filter(a=>a.defined).length;return s`<section class="block" part="section centers"><h3>${this.t("Centers ({{defined}} defined, {{open}} open)",{defined:r,open:e.length-r})}</h3>${e.map((a,n)=>s`<details class="interp-card" part="reading" name="hd-center" ?open="${n===0}"><summary><span class="interp-lead">${$(a,"name")}</span> ${j()} <span class="interp-aside"><span class="chips"><span class="chip ${a.defined?"chip--on":""}">${a.defined?this.t("Defined"):this.t("Open")}</span> ${a.motor?s`<span class="chip">${this.t("Motor")}</span>`:i} ${a.awareness?s`<span class="chip">${this.t("Awareness")}</span>`:i}</span></span></summary><div class="interp-body">${a.theme?s`<p>${a.theme}</p>`:i} ${!a.defined&&a.notSelfQuestion?s`<dl class="keynotes"><dt>${this.t("Not-self question")}</dt><dd>${a.notSelfQuestion}</dd></dl>`:i} ${a.biology?s`<p class="footnote">${this.t("Biology")}. ${a.biology}</p>`:i} ${a.gates?.length?s`<p class="footnote">${this.t("Gates {{gates}}",{gates:a.gates.join(", ")})}</p>`:i}</div></details>`)}</section>`}renderActivations(e){let r=e.gates??[];if(r.length===0||this.hideReadings)return i;let a=r.filter(h=>h.side==="personality"),n=r.filter(h=>h.side==="design"),l=a.length>0&&n.length>0,d=this.side,c=l?d==="design"?n:a:r,p=l?e.sides?.[d]:void 0;return s`<section class="block" part="section activations"><h3>${this.t("Activations ({{count}})",{count:r.length})}</h3>${l?se({items:[{id:"personality",label:`${this.t("Personality")} (${a.length})`},{id:"design",label:`${this.t("Design")} (${n.length})`}],active:d,onSelect:h=>{this.side=h},label:this.t("Chart sides"),idPrefix:"hd",controls:!0}):i}<div id="${l?`hd-panel-${d}`:i}" part="panel" role="${l?"tabpanel":i}" aria-labelledby="${l?`hd-tab-${d}`:i}">${p?s`<p class="side-note">${p}</p>`:i} ${c.map((h,m)=>this.renderGate(h,m===0))}</div></section>`}renderGate(e,r){let a=this.gateGlyph(e),n=$(e,"planet"),l=e.ichingHexagram;return s`<details class="interp-card" part="reading" name="hd-gate" ?open="${r}"><summary><span class="interp-lead">${a?s`<span class="glyph" aria-hidden="true">${a}</span>`:i} <span class="gate-id">${e.gate}${e.line!=null?`.${e.line}`:""}</span> <span>${$(e,"gateName")}</span> </span>${j()} ${n?s`<span class="interp-aside"><small>${n}</small></span>`:i}</summary><div class="interp-body">${e.gateDescription?s`<p>${e.gateDescription}</p>`:i} ${e.lineMeaning?s`<dl class="keynotes"><dt>${this.t("Line {{line}}",{line:e.line??""})}</dt><dd>${e.lineMeaning}</dd></dl>`:i} ${e.planetDescription?s`<p class="footnote">${n}. ${e.planetDescription}</p>`:i} ${l?.number?s`<p class="footnote">${this.t("I Ching hexagram {{number}}",{number:l.number})}${l.english?`, ${l.english}`:""}</p>`:i}</div></details>`}};Ne.styles=[x,ee,M,_,Pe,Qr,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.type-line{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.layout{gap:var(--roxy-space-lg,1.5rem);grid-template-columns:minmax(0,1fr);align-items:start;display:grid}.wrap{--src-left:var(--roxy-danger,#dc2626);--src-right:var(--roxy-fg,#0a0a0a)}.summary{gap:var(--roxy-space-md,1rem);display:grid}.cross{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);border-left:2px solid var(--roxy-accent,#f59e0b);padding-left:var(--roxy-space-sm,.5rem);margin:0}.cross .gates{color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums}.legend-row{color:var(--roxy-muted,#71717a);flex-basis:100%}.legend-row .swatch:not(:first-child){margin-left:var(--roxy-space-md,1rem)}.legend .swatch.defined{border-color:color-mix(in srgb, var(--roxy-fg,#0a0a0a) 45%, transparent)}.group{margin-bottom:var(--roxy-space-md,1rem)}.group:last-child{margin-bottom:0}.group-head{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.group-note{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:1.6}.footnote{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0;line-height:1.6}.chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a);padding:1px 8px;display:inline-block}.chip--on{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent)}.chips{flex-wrap:wrap;gap:.25rem;display:inline-flex}.gate-id,.chan-gates{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309)}.glyph{color:var(--roxy-accent-ink,#b45309)}.side-note{margin:0 0 var(--roxy-space-sm,.5rem);padding-top:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:1.6}`],g([G()],Ne.prototype,"side",2),Ne=g([b("roxy-bodygraph")],Ne);var Ki={eight:"Eight karaka scheme, Rahu included and ranked from the end of its sign.",seven:"Seven karaka scheme, Rahu excluded and the Pitrikaraka office not assigned."},yt=class extends y{renderData(t){let e=t.karakas??[];return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Chara karakas")}"><header class="head" part="header"><h2 class="title">${this.t("Chara karakas")}</h2><p class="scheme"><span class="scheme-chip">${t.scheme??""}</span> ${t.scheme?Ki[t.scheme]??"":""}</p>${F(this.effectiveLang(),t.frame,this.translator)}</header><div class="leads" part="details"><div class="lead"><span>${this.t("Atmakaraka")}</span><strong>${t.atmakaraka??""}</strong></div><div class="lead"><span>${this.t("Darakaraka")}</span><strong>${t.darakaraka??""}</strong></div></div><div class="scroll" part="table" tabindex="0"><table role="table"><caption class="roxy-sr-only">${this.t("Chara karakas in descending rank: each office, the graha holding it, its rashi, the degree it holds, the degree that earned the office, and what the office is read for.")}</caption><thead><tr><th scope="col">${this.t("Office")}</th><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Ranked on")}</th><th scope="col">${this.t("Read for")}</th></tr></thead><tbody>${e.map((r,a)=>this.renderRow(r,a===0))}</tbody></table></div></div>`:this.renderEmpty()}renderRow(t,e){let r=R(t.graha)??"",a=z(t.rashi)??"";return s`<tr class="${e?"ak":""}"><td class="office">${t.name??""}${t.abbreviation?s`<span class="abbr">${t.abbreviation}</span>`:i}</td><td>${r?s`<span class="glyph">${r}</span>`:i}${t.graha??""}</td><td>${a?s`<span class="glyph">${a}</span>`:i}${t.rashi??""}</td><td class="num">${v(this.effectiveLang(),t.degreeInRashi,2)}</td><td class="num">${v(this.effectiveLang(),t.rankingDegree,2)} ${t.isReversed?s`<span class="reversed">${this.t("measured from the end of the sign")}</span>`:i}</td><td class="meaning"><strong>${t.meaning??""}</strong> ${t.significations?s`<p>${t.significations}</p>`:i}</td></tr>`}};yt.styles=[x,I,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.scheme{align-items:baseline;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:var(--roxy-leading-normal,1.5);flex-wrap:wrap;display:flex}.scheme-chip{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.05em;background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-accent-ink,#b45309);border-radius:999px;padding:.15em .6em}.leads{gap:var(--roxy-space-md,1rem);padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));display:grid}.lead span{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:block}.lead strong{font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a)}.scroll{min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:640px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}tbody tr.ak{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 10%, transparent)}td.office{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.abbr{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-normal,400);margin-left:.4em}tbody tr.ak .abbr{color:var(--roxy-accent-ink,#b45309)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.4em}tbody tr.ak .glyph{color:var(--roxy-accent-ink,#b45309)}.num{font-variant-numeric:tabular-nums}.reversed{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}.meaning{white-space:normal;min-width:12rem}.meaning strong{font-weight:var(--roxy-weight-bold,600);display:block}.meaning p{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}`],yt=g([b("roxy-chara-karakas")],yt);var ft=class extends y{isCurrent(t){let e=Date.now(),r=Date.parse(t.start),a=Date.parse(t.end);return Number.isNaN(r)||Number.isNaN(a)?!1:e>=r&&e<a}renderTile(t){let e=t.effect==="Good"?"good":t.effect==="Bad"?"bad":"neutral",r=this.isCurrent(t),a=R(t.lord)??"",n=Ee(this.effectiveLang(),t);return s`<div class="cho-tile ${e}${r?" now":""}" role="listitem" aria-current="${r?"time":"false"}"><span class="tile-name">${t.name}${r?s`<span class="now-badge">${this.t("Now")}</span>`:i} </span><span class="tile-time" aria-label="${this.t("Time range")}">${n}</span> <span class="tile-lord">${a?s`<span aria-hidden="true">${a}</span>`:i} ${t.lord}</span></div>`}renderData(t){let{date:e,dayChoghadiya:r,nightChoghadiya:a}=t;return s`<div class="wrap" part="card"><div class="header" part="header"><h2 class="title">${this.t("Choghadiya")}</h2>${e?s`<p class="subtitle">${A(this.effectiveLang(),e)}</p>`:i}</div><div class="cho-grid" part="table"><section class="period-col" aria-label="${this.t("Day muhurta periods")}"><h3 class="period-heading">${this.t("Day")}</h3><div role="list" aria-label="${this.t("Daytime choghadiya")}">${r&&r.length>0?r.map(n=>this.renderTile(n)):s`<p class="roxy-empty" role="status">${this.t("No daytime periods")}</p>`}</div></section><section class="period-col" aria-label="${this.t("Night muhurta periods")}"><h3 class="period-heading">${this.t("Night")}</h3><div role="list" aria-label="${this.t("Nighttime choghadiya")}">${a&&a.length>0?a.map(n=>this.renderTile(n)):s`<p class="roxy-empty" role="status">${this.t("No nighttime periods")}</p>`}</div></section></div></div>`}};ft.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.header{gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);margin:0}.cho-grid{gap:var(--roxy-space-md,1rem);grid-template-columns:1fr;display:grid}@media (width>=720px){.cho-grid{grid-template-columns:1fr 1fr}}.period-col{gap:var(--roxy-space-xs,.25rem);display:grid}.period-heading{font-size:var(--roxy-text-base,1rem);font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-xs,.25rem);color:var(--roxy-fg,#0a0a0a)}.cho-tile{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.25em .75em;padding:.55em .85em;display:grid}.cho-tile.good{background:color-mix(in srgb, var(--roxy-success,#22c55e) 18%, transparent);border-color:color-mix(in srgb, var(--roxy-success,#22c55e) 45%, transparent);color:var(--roxy-fg,#0a0a0a)}.cho-tile.bad{background:color-mix(in srgb, var(--roxy-danger,#ef4444) 18%, transparent);border-color:color-mix(in srgb, var(--roxy-danger,#ef4444) 45%, transparent);color:var(--roxy-fg,#0a0a0a)}.cho-tile.neutral{color:var(--roxy-fg,#0a0a0a);background:0 0}.cho-tile.now{outline:2px solid var(--roxy-accent,#f59e0b);outline-offset:1px;box-shadow:0 0 0 4px color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent)}.now-badge{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);text-transform:uppercase;letter-spacing:.06em;margin-left:.4em;display:inline-block}.tile-name{font-size:var(--roxy-text-base,1rem);font-weight:var(--roxy-weight-bold,600);overflow-wrap:anywhere;grid-column:1;min-width:0}.tile-time{font-size:var(--roxy-text-xs,.75rem);opacity:.8;white-space:nowrap;text-align:right;grid-area:1/2/3;align-self:center}.tile-lord{font-size:var(--roxy-text-sm,.875rem);opacity:.85;grid-column:1;align-items:center;gap:.25em;display:flex}`],ft=g([b("roxy-choghadiya-grid")],ft);var Vi=["sun","moon","venus","mars"],Vn=["fire","earth","air","water"],Ge=class extends y{constructor(){super(...arguments);this.mode="astrology"}getBreakdown(){let e=this.data;if(!e)return{};if("categories"in e&&e.categories){let r={};for(let[a,n]of Object.entries(e.categories))typeof n=="number"&&Number.isFinite(n)&&(r[a]=n);return r}return{}}renderData(e){let r=e.overallScore,a=this.getBreakdown(),n="rating"in e?e.rating:void 0,l="archetype"in e?e.archetype:void 0,d="advice"in e?e.advice:void 0,c="summary"in e?e.summary:void 0,p="interpretation"in e?e.interpretation:void 0,h="strengths"in e?e.strengths:void 0,m="challenges"in e?e.challenges:void 0,f="keyAspects"in e?e.keyAspects:void 0,C=!this.hideReadings;return s`<article class="card" part="card" aria-label="${`Compatibility (${this.mode})`}"><div class="head" part="header"><h2>${O(`${this.mode} compatibility`)}</h2><div>${typeof r=="number"?s`<div class="score">${Math.round(r)}</div>`:i} ${n?s`<div class="rating">${n}</div>`:i}</div></div>${Object.keys(a).length>0?s`<div role="list" part="details breakdown">${Object.entries(a).map(([w,k])=>s`<div class="bar-row" role="listitem"><span style="text-transform:capitalize">${w}</span> <span class="bar"><span style="width:${Math.max(0,Math.min(100,k))}%"></span></span> <span>${Math.round(k)}</span></div>`)}</div>`:i} ${l?s`<p><span class="archetype">${l.label}</span> ${l.description&&C?s`· ${l.description}`:i}</p>`:i} ${c&&C?s`<p class="lead">${c}</p>`:i} ${p&&C?s`<p class="body">${p}</p>`:i} ${d&&C?s`<p class="body">${d}</p>`:i} ${this.renderAspectBreakdown()} ${this.renderSignCompatibility()} ${this.renderElementBalance()} ${this.renderSubScores()} ${C&&((h?.length??0)>0||(m?.length??0)>0)?s`<div class="lists" part="section strengths-challenges">${h?.length?s`<div><h3>${this.t("Strengths")}</h3><ul>${h.map(w=>s`<li>${w}</li>`)}</ul></div>`:i} ${m?.length?s`<div><h3>${this.t("Challenges")}</h3><ul>${m.map(w=>s`<li>${w}</li>`)}</ul></div>`:i}</div>`:i} ${f?.length?s`<div class="lists" part="section key-aspects"><div><h3>${this.t("Key aspects")}</h3><ul class="key-aspects">${f.slice(0,6).map(w=>s`<li>${qi(this.effectiveLang(),w,C)}</li>`)}</ul></div></div>`:i}</article>`}renderAspectBreakdown(){let e=this.astro()?.aspectBreakdown;return e?s`<div class="pills" part="details aspect-breakdown" role="region" aria-label="${this.t("Aspect breakdown")}">${typeof e.total=="number"?s`<span class="pill">${this.t("Total")}: ${e.total}</span>`:i} <span class="pill pill--success">${this.t("Harmonious")}: ${e.harmonious}</span> <span class="pill pill--danger">${this.t("Challenging")}: ${e.challenging}</span> <span class="pill">${this.t("Neutral")}: ${e.neutral}</span></div>`:i}renderSignCompatibility(){let e=this.astro(),r=e?.signCompatibility;if(!r)return i;let a=e?.persons,n=Vi.map(l=>{let d=r[l];if(!d)return null;let c=p=>{let h=N((p==="person1"?d.person1Sign:d.person2Sign)??""),m=a?.[p]?.[l]?.degree,f=z(h)??"",C=typeof m=="number"?` ${Math.round(m)}°`:"";return`${f} ${h}${C}`.trim()};return{label:`${R(l)??""} ${N(l)}`.trim(),aside:`${c("person1")} and ${c("person2")}`,body:d.description??""}}).filter(l=>l!==null);return this.renderInterpretation(n,"compat-signs","Sign compatibility")}renderElementBalance(){let e=this.astro()?.elementBalance;if(!e)return i;let r=e.person1,a=e.person2,n=Math.max(1,...Vn.map(d=>Math.max(r?.[d]??0,a?.[d]??0))),l=e.sharedElement?.toLowerCase();return s`<section class="block" part="section element-balance"><h3>${this.t("Element balance")}</h3><div class="elements"><div class="el-row head"><span></span> <span>${this.t("Person 1")}</span> <span>${this.t("Person 2")}</span></div>${Vn.map(d=>{let c=r?.[d]??0,p=a?.[d]??0;return s`<div class="${d===l?"el-row shared":"el-row"}"><span class="el-name">${d}</span> <span class="el-bar p1"><span>${c}</span> <span class="track"><span style="width:${c/n*100}%"></span></span> </span><span class="el-bar p2"><span class="track"><span style="width:${p/n*100}%"></span></span> <span>${p}</span></span></div>`})}</div>${e.description&&!this.hideReadings?s`<p class="shared-note">${e.description}</p>`:i}</section>`}renderSubScores(){let e=this.data;if(!e)return i;let r=[];if("lifePath"in e){let a=[["Life Path",e.lifePath],["Expression",e.expression],["Soul Urge",e.soulUrge]];for(let[n,l]of a)l&&r.push({label:n,aside:`${l.person1} and ${l.person2} · ${ae(this.effectiveLang(),l.compatibility,0)}`,body:l.description??""})}if("cycles"in e&&e.cycles)for(let[a,n]of Object.entries(e.cycles))n&&r.push({label:N(a),aside:`${ae(this.effectiveLang(),n.alignment,0)} in step · ${O(n.phase??"")}`,body:n.description??""});return this.renderInterpretation(r,"compat-sub-scores","Breakdown")}astro(){let e=this.data;return e&&"signCompatibility"in e?e:void 0}};Ge.styles=[x,M,_,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:center;gap:var(--roxy-space-md,1rem);grid-template-columns:1fr auto;display:grid}.head h2{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;margin:0}.score{font-variant-numeric:tabular-nums;font-size:2rem;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);line-height:1}.rating{color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-sm,.875rem)}.bar-row{gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:8rem 1fr 3.5rem;align-items:center;display:grid}.bar{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);height:8px;overflow:hidden}.bar>span{background:var(--roxy-accent,#f59e0b);height:100%;transition:width var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.bar-row>span:last-child{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a);text-align:right}.archetype{color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.lists h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.lists ul{padding-left:var(--roxy-space-md,1rem);margin:0}.lead{color:var(--roxy-fg,#0a0a0a);margin:0;font-weight:500}p.body{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.6}.pills{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.pill{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 8px}.pill--success{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.pill--danger{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.elements{gap:var(--roxy-space-sm,.5rem);display:grid}.el-row{align-items:center;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:4rem 1fr 1fr;display:grid}.el-row .el-name{text-transform:capitalize;color:var(--roxy-fg,#0a0a0a)}.el-row.head span{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600)}.el-row.head span:nth-child(2){text-align:right}.el-bar{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);align-items:center;gap:.4rem;display:flex}.el-bar.p1{flex-direction:row-reverse}.el-bar .track{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);flex:auto;height:8px;display:flex;overflow:hidden}.el-bar.p1 .track{justify-content:flex-end}.el-bar .track>span{background:var(--roxy-accent,#f59e0b);height:100%;display:block}.el-bar.p2 .track>span{background:var(--roxy-info,#0284c7)}.el-row.shared .el-name{font-weight:var(--roxy-weight-bold,600)}.shared-note{margin:var(--roxy-space-sm,.5rem) 0 0;font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.key-aspects{padding-left:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);margin:0}`],g([S({type:String,reflect:!0})],Ge.prototype,"mode",2),Ge=g([b("roxy-compatibility-card")],Ge);function qi(o,t,e){let r=ce(t),a=typeof t.orb=="number"?` (orb ${v(o,t.orb,1)}°)`:"",n=[t.planet1,r,t.planet2].filter(Boolean).join(" ");return t.description&&e?`${n}${a} · ${t.description}`:`${n}${a}`}var Ui={apple:"#8db600",azure:"#007fff",blackish:"black",bluish:"blue",bottle:"#006a4e",brass:"#b5a642",brick:"#b22222",brownish:"brown",browns:"brown",burgundy:"#800020",clear:"#eef2f6",colorless:"#eef2f6",colourless:"#eef2f6",cream:"#fffdd0",creamy:"#fffdd0",emerald:"#50c878",golden:"gold",greenish:"green",lilac:"#c8a2c8",mauve:"#e0b0ff",peach:"peachpuff",pinkish:"pink",reddish:"red",rose:"#f4a6b7",royal:"royalblue",silvery:"silver",sky:"skyblue",yellowish:"yellow"},Yi=new Set(["beige","black","blue","brown","crimson","cyan","gold","gray","green","grey","indigo","lavender","magenta","maroon","navy","olive","orange","pink","purple","red","salmon","silver","tan","teal","turquoise","violet","white","yellow"]),Zi={bright:["white",85],dark:["black",60],deep:["black",70],faintly:["white",30],light:["white",55],pale:["white",45],rich:["black",80]};function sa(o){let t=[],e=[];for(let l of o.toLowerCase().split(/[\s-]+/)){let d=Zi[l];if(d){e.push(d);continue}let c=Ui[l]??(Yi.has(l)?l:"");c&&t.push(c)}let[r,a]=t;if(!r)return"var(--roxy-border, #e4e4e7)";let n=a?`color-mix(in srgb, ${r}, ${a})`:r;for(let[l,d]of e)n=`color-mix(in srgb, ${n} ${d}%, ${l})`;return n}var xt=class extends y{renderData(t){let e=t.colors??[],r=t.keywords??[],a=t.pairsWith??[],n=Vr(this.effectiveLang(),t.birthMonth)||void 0;return s`<article class="wrap" part="card" aria-label="${t.name??"Crystal"}"><div class="hero" part="header">${t.imageUrl?s`<img class="photo" part="chart" src="${t.imageUrl}" alt="${t.name??"Crystal"}" loading="lazy">`:i}<div><h2 class="title">${t.name}</h2>${t.description&&!this.hideReadings?s`<p class="desc">${t.description}</p>`:i}</div></div><dl class="attrs" part="details">${this.attr(this.t("Planet"),t.planet)} ${this.attr(this.t("Hardness"),typeof t.hardness=="number"?`${t.hardness} Mohs`:void 0)} ${this.attr(this.t("Vibration"),t.numericalVibration)} ${this.attr(this.t("Birthstone"),n)} ${this.list(this.t("Chakras"),t.chakras)} ${this.list(this.t("Zodiac"),t.zodiacSigns)} ${this.list(this.t("Elements"),t.elements)} ${e.length?s`<div class="attr"><dt>${this.t("Colors")}</dt><dd><div class="colors">${e.map(l=>s`<span class="color"><span class="dot" style="${`background:${sa(l)}`}"></span>${l}</span>`)}</div></dd></div>`:i}</dl>${this.renderMeaning(t.meaning)} ${r.length&&!this.hideReadings?s`<div part="section keywords"><p class="section-label">${this.t("Keywords")}</p><div class="chips">${r.map(l=>s`<span class="chip">${l}</span>`)}</div></div>`:i} ${t.affirmation&&!this.hideReadings?s`<p class="affirmation">${t.affirmation}</p>`:i} ${a.length?s`<div part="section pairs-with"><p class="section-label">${this.t("Pairs with")}</p><div class="chips">${a.map(l=>s`<span class="chip">${String(l).replace(/-/g," ")}</span>`)}</div></div>`:i}</article>`}attr(t,e){return e==null||e===""?i:s`<div class="attr"><dt>${t}</dt><dd>${e}</dd></div>`}list(t,e){return e?.length?s`<div class="attr"><dt>${t}</dt><dd>${e.join(", ")}</dd></div>`:i}renderMeaning(t){if(!t||this.hideReadings)return i;let r=[[this.t("Spiritual"),t.spiritual],[this.t("Emotional"),t.emotional],[this.t("Physical"),t.physical]].filter(([,a])=>!!a);return r.length===0?i:s`<div class="meaning" part="section meaning">${r.map(([a,n])=>s`<h3>${a}</h3><p>${n}</p>`)}</div>`}};xt.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.hero{gap:var(--roxy-space-md,1rem);align-items:flex-start;display:flex}.photo{border-radius:var(--roxy-radius-md,8px);object-fit:cover;background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 35%, transparent);flex:none;width:96px;height:96px}.title{margin:0 0 var(--roxy-space-xs,.25rem) 0;font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600)}.desc{line-height:1.55;font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0}.attrs{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(7rem,1fr));display:grid}.attr{gap:2px;display:grid}.attr dt{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.attr dd{font-size:var(--roxy-text-sm,.875rem);margin:0;font-weight:500}.colors{flex-wrap:wrap;gap:.4rem;display:flex}.color{font-size:var(--roxy-text-xs,.75rem);text-transform:capitalize;align-items:center;gap:.3rem;display:inline-flex}.dot{border-radius:var(--roxy-radius-full,9999px);border:1px solid color-mix(in srgb, var(--roxy-fg,#0a0a0a) 18%, transparent);width:.7rem;height:.7rem}.meaning h3{margin:0 0 var(--roxy-space-xs,.25rem) 0;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.meaning p{margin:0 0 var(--roxy-space-sm,.5rem) 0;font-size:var(--roxy-text-sm,.875rem);line-height:1.55}.chips{flex-wrap:wrap;gap:.3rem;display:flex}.chip{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem);text-transform:capitalize;padding:1px 8px}.section-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-xs,.25rem) 0}.affirmation{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-left:3px solid var(--roxy-accent,#f59e0b);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent);font-style:italic;font-size:var(--roxy-text-sm,.875rem);border-radius:0 var(--roxy-radius-sm,4px) var(--roxy-radius-sm,4px) 0;margin:0}`],xt=g([b("roxy-crystal-card")],xt);var _e=class extends y{constructor(){super(...arguments);this.heading=""}renderData(e){let r=e.crystals??[];if(r.length===0)return this.renderEmpty();let a=this.heading||this.deriveHeading(e),n="total"in e&&typeof e.total=="number"?e.total:r.length;return s`<section class="wrap" part="card" aria-label="${a}"><header class="head" part="header"><h2 class="title">${a}</h2><span class="count">${n} ${n===1?"crystal":"crystals"}</span></header><ul class="grid" part="section crystals">${r.map(l=>s`<li class="tile">${l.imageUrl?s`<img class="photo" src="${l.imageUrl}" alt="${l.name??"Crystal"}" loading="lazy">`:s`<div class="photo" aria-hidden="true"></div>`}<p class="name">${l.name}</p>${l.colors&&l.colors.length>0?s`<div class="colors" aria-label="${`Colours: ${l.colors.join(", ")}`}">${l.colors.map(d=>s`<span class="swatch" style="${`background:${sa(d)}`}" title="${d}"></span>`)}</div>`:i}</li>`)}</ul></section>`}deriveHeading(e){return"chakra"in e&&e.chakra?this.t("{{chakra}} chakra crystals",{chakra:e.chakra}):"element"in e&&e.element?this.t("{{element}} element crystals",{element:e.element}):"sign"in e&&e.sign?this.t("Crystals for {{sign}}",{sign:e.sign}):"month"in e&&typeof e.month=="number"?this.t("{{month}} birthstones",{month:Vr(this.effectiveLang(),e.month)}):this.t("Crystals")}};_e.styles=[x,u`.wrap{gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.count{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.grid{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fill,minmax(8rem,1fr));margin:0;padding:0;list-style:none;display:grid}.tile{gap:var(--roxy-space-xs,.25rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem);box-shadow:var(--roxy-shadow-sm);display:grid}.photo{aspect-ratio:1;border-radius:var(--roxy-radius-sm,4px);object-fit:cover;background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 35%, transparent);width:100%}.name{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.colors{flex-wrap:wrap;gap:4px;display:flex}.swatch{border-radius:var(--roxy-radius-full,9999px);border:1px solid color-mix(in srgb, var(--roxy-fg,#0a0a0a) 18%, transparent);width:10px;height:10px}`],g([S({type:String,reflect:!0})],_e.prototype,"heading",2),_e=g([b("roxy-crystal-grid")],_e);function qn(o){return"pranaDashas"in o?"Prana":"sookshmaDashas"in o?"Sookshma":"pratyantardashas"in o?"Pratyantardasha":"antardashas"in o?"Antardasha":"Mahadasha"}function as(o){if("sookshmaPeriod"in o&&o.sookshmaPeriod)return{source:"Sookshma",period:o.sookshmaPeriod};if("pratyantardashaPeriod"in o&&o.pratyantardashaPeriod)return{source:"Pratyantardasha",period:o.pratyantardashaPeriod};if("antardashaPeriod"in o&&o.antardashaPeriod)return{source:"Antardasha",period:o.antardashaPeriod};if("mahadashaPeriod"in o&&o.mahadashaPeriod)return{source:"Mahadasha",period:o.mahadashaPeriod}}function ss(o){if(!o)return"";let t=[];return o.years&&t.push(`${o.years}y`),o.months&&t.push(`${o.months}m`),o.days&&t.push(`${o.days}d`),t.length?t.join(" "):"0d"}function Un(o,t){return ye(o?.strongHouses?.length?o.strongHouses:o?.signifiedHouses,t)}function na(o,t){let e=t.startDate?A(o,t.startDate):"",r=t.endDate?A(o,t.endDate):"";return e&&e===r?`${q(o,t.startDate)} to ${q(o,t.endDate)}`:e&&r?`${e} to ${r}`:e||r}var we=class extends y{constructor(){super(...arguments);this.period="current";this.view="timeline"}renderData(e){let r=this.collectPeriods(e),a=r.length?Math.max(...r.map(h=>h.durationYears)):0,n=Ji(r.length?Math.min(...r.map(h=>h.durationYears)):0),l=this.hideReadings?[]:this.readings(e,r),d=this.frameRows(e),c=[{id:"timeline",label:this.t("Timeline")},...l.length?[{id:"readings",label:this.t("Readings ({{count}})",{count:l.length})}]:[],...d.length?[{id:"frame",label:this.t("Chart details")}]:[]],p=c.some(h=>h.id===this.view)?this.view:"timeline";return s`<div class="wrap" part="card" aria-label="${this.t("Dasha timeline")}"><header class="head" part="header"><h2 class="title">${this.heading(e)}</h2>${this.renderLordChain(e)}</header>${this.renderParentMahadasha(e)} ${c.length>1?se({items:c,active:p,onSelect:h=>{this.view=h},label:this.t("Dasha views"),idPrefix:"roxy-dasha",controls:!0}):i}<div id="roxy-dasha-panel-${p}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="${c.length>1?`roxy-dasha-tab-${p}`:i}">${p==="timeline"?s`${this.period==="current"?this.renderCurrent(e):i} ${r.length>0?s`<div class="timeline" part="chart timeline" role="list">${r.map(h=>this.renderBar(h,a,n,e.houseThemes))}</div>`:i}`:i} ${p==="readings"?this.renderReadings(l):i} ${p==="frame"?this.renderFrame(d):i}</div></div>`}renderLordChain(e){let r=["mahadashaLord"in e?e.mahadashaLord:void 0,"antardashaLord"in e?e.antardashaLord:void 0,"pratyantardashaLord"in e?e.pratyantardashaLord:void 0,"sookshmaLord"in e?e.sookshmaLord:void 0].filter(Boolean);return r.length>1?s`<div class="nakshatra">${r.join(" › ")}</div>`:"nakshatraName"in e&&e.nakshatraName?s`<div class="nakshatra">${"nakshatraLord"in e&&e.nakshatraLord?this.t("Moon nakshatra: {{name}} (lord {{lord}})",{name:e.nakshatraName,lord:e.nakshatraLord}):this.t("Moon nakshatra: {{name}}",{name:e.nakshatraName})}</div>`:i}frameRows(e){let r=[];if("nakshatraName"in e&&e.nakshatraName){let a="moonNakshatra"in e&&e.moonNakshatra?` (${e.moonNakshatra} of 27)`:"";r.push(["Moon nakshatra",`${e.nakshatraName}${a}`])}if("nakshatraLord"in e&&e.nakshatraLord&&r.push(["Nakshatra lord",e.nakshatraLord]),"moonLongitude"in e&&typeof e.moonLongitude=="number"&&r.push(["Moon longitude",`${v(this.effectiveLang(),e.moonLongitude,3)}° sidereal`]),"ayanamsaType"in e&&e.ayanamsaType&&r.push(["Ayanamsa",it(this.effectiveLang(),e.ayanamsaType,"ayanamsa"in e?e.ayanamsa:void 0)]),"birthDashaBalance"in e&&e.birthDashaBalance){let a="nakshatraLord"in e&&e.nakshatraLord?`${e.nakshatraLord} `:"";r.push(["Balance at birth",`${ss(e.birthDashaBalance)} of the opening ${a}mahadasha`])}return"totalYears"in e&&typeof e.totalYears=="number"&&r.push(["Cycle length",`${e.totalYears} years`]),r}renderFrame(e){return s`<dl class="frame" part="details frame">${e.map(([r,a])=>s`<div><dt>${r}</dt><dd>${a}</dd></div>`)}</dl>`}renderReadings(e){return this.renderInterpretation(e,"roxy-dasha",e.length===1?"Reading":"Readings")}heading(e){let r=as(e);return r?this.t("{{level}} periods in {{planet}} {{parent}}",{level:this.t(qn(e)),planet:r.period.planet,parent:this.t(r.source)}):"mahadashas"in e?this.t("Vimshottari Mahadasha"):"mahadasha"in e?this.t("Active dashas"):this.period==="major"?this.t("Vimshottari Mahadasha"):this.t("Active dashas")}renderParentMahadasha(e){let r=as(e);if(!r)return i;let a=r.period,n=na(this.effectiveLang(),a),l=a.nominalStartDate?A(this.effectiveLang(),a.nominalStartDate):"";return s`<p class="parent">${this.t("Inside the {{planet}} {{level}}{{span}}{{duration}}.",{planet:a.planet,level:this.t(r.source),span:n?`, ${n}`:"",duration:typeof a.durationYears=="number"?` (${Wi(this.effectiveLang(),a.durationYears)})`:""})} ${l?s`<br>${this.t("It began {{date}}, before birth, so only the sub-periods running after the birth date are listed.",{date:l})}`:i}</p>`}readings(e,r){let a=[],n=as(e);if(n?.period.interpretation&&a.push({label:this.t("{{planet}} {{level}}",{planet:n.period.planet,level:this.t(n.source)}),aside:na(this.effectiveLang(),n.period),body:n.period.interpretation}),"mahadasha"in e){let d=[["Mahadasha",e.mahadasha,e.remainingInMahadasha],["Antardasha",e.antardasha,e.remainingInAntardasha],["Pratyantardasha",e.pratyantardasha,e.remainingInPratyantardasha],["Sookshma",e.sookshmaDasha,e.remainingInSookshma],["Prana",e.pranaDasha,e.remainingInPrana]];for(let[c,p,h]of d){if(!p?.interpretation)continue;let m=ss(h);a.push({label:this.t("{{planet}} {{level}}",{planet:p.planet,level:this.t(c)}),aside:m?this.t("{{balance}} left",{balance:m}):na(this.effectiveLang(),p),body:p.interpretation})}}let l=r.find(d=>this.isCurrent(d));return l?.interpretation&&a.push({label:`${l.planet} ${qn(e)}`,aside:na(this.effectiveLang(),l),body:l.interpretation}),a}renderCurrent(e){if(!("mahadasha"in e))return i;let r=[["Mahadasha",e.mahadasha,e.remainingInMahadasha],["Antardasha",e.antardasha,e.remainingInAntardasha],["Pratyantardasha",e.pratyantardasha,e.remainingInPratyantardasha],["Sookshma",e.sookshmaDasha,e.remainingInSookshma],["Prana",e.pranaDasha,e.remainingInPrana]];return s`<div class="current" part="details current">${r.map(([a,n,l])=>{if(!n)return i;let d=ss(l),c=Un(n.significators,e.houseThemes);return s`<div><span>${this.t(a)}</span> <strong>${n.planet}</strong> ${d?s`<small>${this.t("{{balance}} left",{balance:d})}</small>`:i} ${c?s`<small class="houses">${this.t("Signifies {{houses}}",{houses:c})}</small>`:i}</div>`})}</div>`}collectPeriods(e){return"mahadashas"in e&&e.mahadashas?.length?e.mahadashas:"antardashas"in e&&e.antardashas?.length?e.antardashas:"pratyantardashas"in e&&e.pratyantardashas?.length?e.pratyantardashas:"sookshmaDashas"in e&&e.sookshmaDashas?.length?e.sookshmaDashas:"pranaDashas"in e&&e.pranaDashas?.length?e.pranaDashas:[]}isCurrent(e){if(!e.startDate||!e.endDate)return!1;let r=Date.now(),a=Date.parse(e.startDate),n=Date.parse(e.endDate);return Number.isNaN(a)||Number.isNaN(n)?!1:r>=a&&r<n}progressIn(e){if(!e.startDate||!e.endDate)return-1;let r=Date.parse(e.startDate),a=Date.parse(e.endDate),n=Date.now();return Number.isNaN(r)||Number.isNaN(a)||n<r||n>=a||a<=r?-1:(n-r)/(a-r)}renderBar(e,r,a,n){let l=e.durationYears,d=r>0?l/r*100:0,c=this.isCurrent(e),p=c?this.progressIn(e):-1,h=c?"bar-track bar-now":"bar-track",m=Un(e.significators,n),f=["bar",c?"now":"",a==="time"?"fine":""].filter(Boolean).join(" ");return s`<div class="${f}" role="listitem" aria-current="${c?"time":"false"}"><span><strong>${e.planet}</strong>${c?s`<span class="now-badge">${this.t("Now")}</span>`:i} </span><span class="${h}"><span class="bar-fill" style="width:${d}%"></span> ${p>=0?s`<span class="bar-progress" style="left:${p*d}%" aria-hidden="true"></span>`:i} </span><span class="dates">${e.startDate?Ua(this.effectiveLang(),e.startDate,a):""} ${e.endDate?s`- ${Ua(this.effectiveLang(),e.endDate,a)}`:""} </span>${m?s`<span class="houses">${this.t("Signifies {{houses}}",{houses:m})}</span>`:i}</div>`}};we.styles=[x,M,_,ee,u`.wrap{gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.nakshatra{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.current{gap:var(--roxy-space-md,1rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);box-shadow:var(--roxy-shadow-sm);grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));display:grid}.current div span:first-child{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:block}.current div strong{font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a)}.current div small{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}.parent{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);border-left:2px solid var(--roxy-border,#e4e4e7);padding-left:var(--roxy-space-sm,.5rem);margin:0}.timeline{gap:var(--roxy-space-xs,.25rem);display:grid}.bar{gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:5rem 1fr 8rem;align-items:center;row-gap:.15rem;display:grid}.bar.now strong{color:var(--roxy-accent-ink,#b45309)}.now-badge{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);text-transform:uppercase;letter-spacing:.06em;margin-left:.4em;display:inline-block}.bar-track{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);height:14px;position:relative;overflow:hidden}.bar-fill{background:var(--roxy-accent,#f59e0b);opacity:.45;height:100%;transition:width var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.bar-now .bar-fill{opacity:1}.bar-progress{background:var(--roxy-accent-ink,#b45309);width:2px;box-shadow:0 0 0 2px color-mix(in srgb, var(--roxy-accent,#f59e0b) 35%, transparent);border-radius:2px;position:absolute;top:-2px;bottom:-2px}.dates{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;text-align:right}.bar.fine{grid-template-columns:5rem 1fr}.bar.fine .dates{text-align:left;grid-column:1/-1;min-width:0}.bar .houses{min-width:0;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);grid-column:1/-1}[role=tabpanel]{padding-top:var(--roxy-space-md,1rem)}.frame{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));margin:0;display:grid}.frame dt{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em}.frame dd{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);font-variant-numeric:tabular-nums;margin:0}.block{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);padding:var(--roxy-space-md,1rem)}`],g([S({type:String,reflect:!0})],we.prototype,"period",2),g([G()],we.prototype,"view",2),we=g([b("roxy-dasha-timeline")],we);var ns=365.25;function Wi(o,t){if(t>=1)return`${v(o,t,1)} years`;let e=t*ns;if(e>=1)return`${v(o,e,e>=10?0:1)} days`;let r=e*24;return r>=1?`${v(o,r,1)} hours`:`${v(o,r*60,0)} minutes`}function Ji(o){return o>=2?"year":o>=60/ns?"month":o>=1/ns?"day":"time"}var Yn=["title","name","label","heading","overview","summary"],Xi=80,Qi=["imageUrl","image","icon","symbol"],el=["imageUrl","image"],tl=["affirmation","mantra","motto","quote"],rl=new Set(["seed"]),al=new Set(["id","slug","key"]),sl=new Set(["calculation","calculations","type","position","count","totalcount","total","limit","offset","page","pagesize","perpage"]),nl=8,Zn=1,ol=12,il=o=>o.toLowerCase().replace(/[_-]/g,""),Wn=o=>/^(has|is)([A-Z_]|$)/.test(o),ll=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?)?$/,dl=/^[A-Z0-9]+(_[A-Z0-9]+)+$/,cl=/^https?:\/\//,pl=6;function bt(o){return o===null||["string","number","boolean"].includes(typeof o)}function os(o){return o!==null&&typeof o=="object"&&!(Array.isArray(o)&&o.every(bt))}function Jn(o){if(o==null)return!0;if(Array.isArray(o))return o.length===0;if(typeof o!="object")return!1;let t=Object.values(o);return t.length===0||t.every(Jn)}var Oe=class extends y{constructor(){super(...arguments);this.depth=0}renderData(e){return this.depth>=pl?s`<div class="roxy-empty" role="status">${this.t("Nested data omitted")}</div>`:s`<div class="roxy-card" part="card" aria-label="${this.t("Generic data display")}">${this.renderValue(e)}</div>`}renderValue(e){return e==null?i:bt(e)?s`<p>${this.scalarTemplate(e)}</p>`:Array.isArray(e)?this.renderArray(e):this.renderObject(e)}renderArray(e){return e.length===0?s`<div class="roxy-empty" role="status">${this.t("Empty list")}</div>`:e.every(bt)?this.renderChips(e):e.every(a=>a!==null&&typeof a=="object"&&!Array.isArray(a))?this.renderTable(e):s`<ol>${e.map(a=>s`<li>${this.renderValue(a)}</li>`)}</ol>`}renderChips(e){return s`<ul class="roxy-chips">${e.filter(r=>r!==null).map(r=>s`<li>${this.formatScalar(r)}</li>`)}</ul>`}renderTable(e){let r=e.map(p=>this.suppress(p)),a=this.collectKeys(r),n=new Set(a.filter(p=>r.some(h=>os(h[p]??null)))),l=n.size>0&&n.size<a.length,d=p=>l?n.has(p)?"col-wide":"col-tight":"",c=s`<div class="roxy-table-wrap" part="table" role="group" aria-label="${this.t("Data table")}" tabindex="0"><table class="roxy-table" role="table"><thead><tr>${a.map(p=>s`<th class="${d(p)}">${fe(this.effectiveLang(),p)}</th>`)}</tr></thead><tbody>${r.map(p=>s`<tr>${a.map(h=>s`<td class="${d(h)}">${this.renderCell(p[h],h)}</td>`)}</tr>`)}</tbody></table></div>`;return r.length>ol?s`<details class="roxy-table-details"><summary>${this.t("{{count}} rows",{count:r.length})}</summary>${c}</details>`:c}suppress(e){let r=sr(e),a=Yn.some(n=>typeof r[n]=="string");return Object.fromEntries(Object.entries(r).filter(([n])=>{let l=il(n);return rl.has(l)||a&&al.has(l)?!1:!sl.has(l)}))}renderObject(e){let r=this.suppress(e),a=Yn.find(m=>typeof r[m]=="string"&&r[m].length<=Xi),n=Qi.find(m=>typeof r[m]=="string"&&r[m].startsWith("http")),l=a!=="summary"&&typeof r.summary=="string"?"summary":null,d=tl.find(m=>typeof r[m]=="string"),c=Object.entries(r).filter(([m,f])=>m!==a&&m!==l&&m!==d&&!el.includes(m)&&!Jn(f)),p=c.filter(([,m])=>!os(m)),h=c.filter(([,m])=>os(m));return s`${n?s`<img class="roxy-image" src="${String(r[n])}" alt="${a?String(r[a]):this.t("illustration")}" loading="lazy">`:i} ${a?s`<h3 class="roxy-title" part="header">${r[a]}</h3>`:i} ${l?s`<p class="roxy-summary">${r[l]}</p>`:i} ${d?s`<blockquote class="roxy-quote">${r[d]}</blockquote>`:i} ${p.length>0?s`<dl class="roxy-rows" part="details">${p.map(([m,f])=>s`<dt>${fe(this.effectiveLang(),m)}</dt><dd>${this.renderField(f,m)}</dd>`)}</dl>`:i} ${h.map(([m,f])=>this.renderSection(m,f))}`}renderSection(e,r){let a=r!==null&&typeof r=="object"?Array.isArray(r)?r.length:Object.keys(r).length:0,n=this.renderField(r,e),l=fe(this.effectiveLang(),e);return a>nl||this.depth>=Zn?s`<details class="roxy-section" ?open="${this.depth<Zn}"><summary>${l}</summary>${n}</details>`:s`<div class="roxy-section"><h4>${l}</h4>${n}</div>`}renderField(e,r){return e==null?"":e===!0&&r!==void 0&&Wn(r)?s`<span class="roxy-badge">${this.t("Yes")}</span>`:bt(e)?s`${this.scalarTemplate(e)}`:Array.isArray(e)&&e.every(bt)?this.renderChips(e):s`<roxy-data bare lang="${oe(this.effectiveLang())}" .data="${e}" .depth="${this.depth+1}"></roxy-data>`}renderCell(e,r){return e==null?"":e===!0&&r!==void 0&&Wn(r)?s`<span class="roxy-badge">${this.t("Yes")}</span>`:bt(e)?this.scalarTemplate(e):Array.isArray(e)&&e.every(bt)?e.filter(a=>a!==null).map(a=>this.formatScalar(a)).join(", "):s`<roxy-data bare lang="${oe(this.effectiveLang())}" .data="${e}" .depth="${this.depth+1}"></roxy-data>`}scalarTemplate(e){return typeof e=="string"&&cl.test(e)?s`<a href="${e}" target="_blank" rel="noopener noreferrer">${e}</a>`:this.formatScalar(e)}formatScalar(e){if(typeof e=="number")return v(this.effectiveLang(),e,2)||String(e);if(typeof e=="boolean")return e?this.t("Yes"):this.t("No");if(ll.test(e)){let r=te(this.effectiveLang(),e),a=A(this.effectiveLang(),e);return r?`${a}, ${r}`:a}return dl.test(e)?O(e.toLowerCase()):e}collectKeys(e){let r=new Set;for(let a of e)for(let n of Object.keys(a))r.add(n);return Array.from(r)}};Oe.styles=[x,u`.roxy-card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);box-shadow:var(--roxy-shadow-sm)}.roxy-card a{color:var(--roxy-accent-ink,#b45309)}.roxy-title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-sm,.5rem) 0;color:var(--roxy-primary,#0f172a);letter-spacing:var(--roxy-tracking-tight)}.roxy-summary{color:var(--roxy-secondary,#475569);margin:0 0 var(--roxy-space-md,1rem) 0;font-size:var(--roxy-text-sm,.875rem)}dl.roxy-rows{grid-template-columns:minmax(8ch, min(30%, max-content)) minmax(0, 1fr);gap:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);margin:0;display:grid}dl.roxy-rows dt{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);text-transform:capitalize}dl.roxy-rows dd{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);word-break:break-word;margin:0}ul.roxy-chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}ul.roxy-chips li{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.roxy-table-wrap{min-width:0;overflow-x:auto}table.roxy-table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}table.roxy-table th,table.roxy-table td{border-bottom:1px solid var(--roxy-border,#e4e4e7);padding:var(--roxy-space-sm,.5rem);text-align:left;text-transform:none;word-break:normal;overflow-wrap:normal}table.roxy-table th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em;white-space:nowrap}table.roxy-table th.col-tight,table.roxy-table td.col-tight{white-space:nowrap;width:1%}table.roxy-table th.col-wide,table.roxy-table td.col-wide{width:auto}.roxy-image{border-radius:var(--roxy-radius-md,8px);max-width:100%;height:auto;margin-bottom:var(--roxy-space-md,1rem)}.roxy-section{margin-top:var(--roxy-space-md,1rem)}.roxy-section h4{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-secondary,#475569);margin:0 0 var(--roxy-space-xs,.25rem) 0;text-transform:capitalize}blockquote.roxy-quote{margin:var(--roxy-space-md,1rem) 0;padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-left:3px solid var(--roxy-accent,#f59e0b);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);font-style:italic}.roxy-badge{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:1px 8px;display:inline-block}details.roxy-section,details.roxy-table-details{margin-top:var(--roxy-space-md,1rem)}details.roxy-section>summary,details.roxy-table-details>summary{cursor:pointer;font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-secondary,#475569);text-transform:capitalize}details.roxy-section>summary:focus-visible,details.roxy-table-details>summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-radius:4px}`],g([S({attribute:!1})],Oe.prototype,"depth",2),Oe=g([b("roxy-data")],Oe);function he(o){let t=o%360;return t<0?t+360:t}function re(o){let t=he(o),e=Math.floor(t/30)%12,r=t%30,a=Math.floor(r),n=(r-a)*60,l=Math.floor(n),d=Math.round((n-l)*60);return{sign:Z[e]??"Aries",signIndex:e,degree:a,minute:l,second:d}}function ie(o,t){let{sign:e,degree:r,minute:a}=re(o);return`${r}° ${t||e} ${String(a).padStart(2,"0")}'`}function is(o){let t=Math.floor(o),e=Math.round((o-t)*60);return e===60&&(e=0,t+=1),{degree:t,minute:e}}function vt(o){let{degree:t,minute:e}=is(o);return`${t}°${String(e).padStart(2,"0")}'`}function kr(o){return he(o+180)}function oa(o,t){let e=he(o),r=he(t)-e;return r<0&&(r+=360),he(e+r/2)}function Sr(o,t,e){let r=o.filter(n=>Number.isFinite(t(n))).map(n=>{let l=he(t(n));return{item:n,longitude:l,displayLongitude:l}}).sort((n,l)=>n.longitude-l.longitude);for(let n=1;n<r.length;n++){let l=r[n-1],d=r[n];if(!l||!d)continue;let c=l.displayLongitude+e;d.displayLongitude<c&&(d.displayLongitude=c)}let a=r[r.length-1];if(a&&a.displayLongitude>360){let n=a.displayLongitude-360;for(let l of r)l.displayLongitude-=n}return r}function Lt(o,t){return t>0?o/t*(180/Math.PI):0}function D(o,t,e,r){let a=r*Math.PI/180;return{x:o+e*Math.cos(a),y:t+e*Math.sin(a)}}var ge=400,K=20,ne=ge-2*K,Y=ge/2,Xn=Object.fromEntries(Z.map(o=>[o.toLowerCase(),o])),ml=[{id:"north",source:"North"},{id:"south",source:"South"},{id:"east",source:"East"}],eo="ʳ",to="ᶜ",ro="ʷ";function ls(o){return Z.indexOf(o)}function ao(o,t){return typeof o.longitude!="number"||!Number.isFinite(o.longitude)?!1:re(o.longitude).sign.toLowerCase()!==t.toLowerCase()}function hl(o,t){let e=fn(o.graha)??o.graha,r=`${o.isRetrograde?eo:""}${o.combust?to:""}${o.war?ro:""}`;if(typeof o.longitude!="number"||!Number.isFinite(o.longitude)||ao(o,t))return`${e}${r}`;let{degree:a}=re(o.longitude);return`${e} ${a}°${r}`}function gl(o,t,e){let r=[N(o.graha)],a=ao(o,t);if(a&&r.push(e("in {{sign}}",{sign:t})),typeof o.longitude=="number"&&Number.isFinite(o.longitude)){let n=re(o.longitude),l=String(n.minute).padStart(2,"0");r.push(a?`D1: ${n.degree}°${l}' ${n.sign}`:`${n.degree}°${l}' ${n.sign}`)}if(o.nakshatra?.name){let n=o.nakshatra.pada?` ${e("pada {{n}}",{n:o.nakshatra.pada})}`:"";r.push(`${o.nakshatra.name}${n}`)}return o.nakshatra?.lord&&r.push(e("nakshatra lord {{graha}}",{graha:o.nakshatra.lord})),o.awastha&&r.push(o.awastha),o.deeptadi&&r.push(o.deeptadi),o.combust&&r.push(e("combust")),o.war&&r.push(o.war.winner?e("planetary war with {{graha}}, won by {{winner}}",{graha:o.war.opponent,winner:o.war.winner}):e("planetary war with {{graha}}",{graha:o.war.opponent})),o.isRetrograde&&r.push(e("retrograde")),r.join(" · ")}function ds(o,t,e,r,a,n){let l=r-(o.length-1)*a/2;return o.map((d,c)=>{let p=l+c*a;return L`<text class="planet-text" x=${e} y=${p} text-anchor="middle" dominant-baseline="central">${hl(d,t)}<title>${gl(d,t,n)}</title></text>`})}function la(o,t={}){let{divisionLabel:e,lagnaOverride:r,states:a}=t,n=new Set((a?.combustion??[]).map(h=>(h.planet??"").toLowerCase())),l=new Map;for(let h of a?.planetaryWar??[])!h.planet1||!h.planet2||(l.set(h.planet1.toLowerCase(),{opponent:h.planet2,winner:h.winner}),l.set(h.planet2.toLowerCase(),{opponent:h.planet1,winner:h.winner}));let d={};for(let h of Z)d[h.toLowerCase()]=[];let c=r?Xn[r.toLowerCase()]??"":"",p=c;for(let[h,m]of Object.entries(o??{})){let f=(m?.rashi??"").toLowerCase();if(h==="Lagna"||m?.graha==="Lagna"){c||(p=Xn[f]??"");continue}if(!f||!(f in d))continue;let C=m.graha??h,w=C.toLowerCase();d[f]?.push({graha:C,longitude:m.longitude,nakshatra:m.nakshatra,isRetrograde:m.isRetrograde,awastha:m.awastha,deeptadi:m.deeptadi,combust:n.has(w)||void 0,war:l.get(w)})}return{lagnaSign:p,placements:d,divisionLabel:e}}var $t=ne/4,ul={Pisces:{col:0,row:0},Aries:{col:1,row:0},Taurus:{col:2,row:0},Gemini:{col:3,row:0},Cancer:{col:3,row:1},Leo:{col:3,row:2},Virgo:{col:3,row:3},Libra:{col:2,row:3},Scorpio:{col:1,row:3},Sagittarius:{col:0,row:3},Capricorn:{col:0,row:2},Aquarius:{col:0,row:1}};function yl(o){let t=ul[o]??{col:0,row:0};return{x:K+t.col*$t,y:K+t.row*$t,w:$t,h:$t}}function fl(o){let t=K,e=K+$t,r=K+2*$t,a=K+3*$t,n=ge-K;return L`
|
|
19
19
|
<rect class="line" x=${t} y=${t} width=${ne} height=${ne} stroke-width="1.5" fill="none" />
|
|
20
20
|
<line class="line" x1=${t} y1=${e} x2=${n} y2=${e} stroke-width="1" />
|
|
21
21
|
<line class="line" x1=${t} y1=${a} x2=${n} y2=${a} stroke-width="1" />
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<line class="line" x1=${r} y1=${t} x2=${r} y2=${e} stroke-width="1" />
|
|
27
27
|
<line class="line" x1=${r} y1=${a} x2=${r} y2=${n} stroke-width="1" />
|
|
28
28
|
${o?L`<text class="centre-label" x=${Y} y=${Y} text-anchor="middle" dominant-baseline="central">${o}</text>`:i}
|
|
29
|
-
`}function
|
|
29
|
+
`}function cs(o,t){let e=ls(t),r=ls(o);return e===-1||r===-1?0:(r-e+12)%12+1}function xl(o,t,e,r,a){let n=yl(o),l=n.x+n.w/2,d=n.y+n.h/2,c=Hr(o)??o,p=14;return L`
|
|
30
30
|
<g class=${e?"cell lagna":"cell"}>
|
|
31
31
|
${e?L`
|
|
32
32
|
<rect class="lagna-bg" x=${n.x} y=${n.y} width=${n.w} height=${n.h} />
|
|
@@ -35,27 +35,27 @@
|
|
|
35
35
|
<text class="sign-text" x=${n.x+6} y=${n.y+12} text-anchor="start" dominant-baseline="central">${c}</text>
|
|
36
36
|
${r>0?L`<text class="house-num" x=${n.x+n.w-6} y=${n.y+12} text-anchor="end" dominant-baseline="central">${r}</text>`:i}
|
|
37
37
|
${e?L`<text class="lagna-marker" x=${l} y=${n.y+26} text-anchor="middle" dominant-baseline="central">${a("ASC")}</text>`:i}
|
|
38
|
-
${t.length?
|
|
38
|
+
${t.length?ds(t,o,l,d+4,14,a):i}
|
|
39
39
|
</g>
|
|
40
|
-
`}function
|
|
41
|
-
${
|
|
42
|
-
${Z.map(r=>
|
|
43
|
-
`}var H={tl:{x:K,y:K},tr:{x:ge-K,y:K},br:{x:ge-K,y:ge-K},bl:{x:K,y:ge-K},top:{x:Y,y:K},right:{x:ge-K,y:Y},bottom:{x:Y,y:ge-K},left:{x:K,y:Y},tlMid:{x:Y-ne/4,y:Y-ne/4},trMid:{x:Y+ne/4,y:Y-ne/4},brMid:{x:Y+ne/4,y:Y+ne/4},blMid:{x:Y-ne/4,y:Y+ne/4}};function ke(o){let t=o.reduce((r,a)=>r+a.x,0)/o.length,e=o.reduce((r,a)=>r+a.y,0)/o.length;return{x:t,y:e}}var
|
|
40
|
+
`}function Qn(o,t){let e=o.lagnaSign.toLowerCase();return L`
|
|
41
|
+
${fl(o.divisionLabel)}
|
|
42
|
+
${Z.map(r=>xl(r,o.placements[r.toLowerCase()]??[],r.toLowerCase()===e,cs(r,o.lagnaSign),t))}
|
|
43
|
+
`}var H={tl:{x:K,y:K},tr:{x:ge-K,y:K},br:{x:ge-K,y:ge-K},bl:{x:K,y:ge-K},top:{x:Y,y:K},right:{x:ge-K,y:Y},bottom:{x:Y,y:ge-K},left:{x:K,y:Y},tlMid:{x:Y-ne/4,y:Y-ne/4},trMid:{x:Y+ne/4,y:Y-ne/4},brMid:{x:Y+ne/4,y:Y+ne/4},blMid:{x:Y-ne/4,y:Y+ne/4}};function ke(o){let t=o.reduce((r,a)=>r+a.x,0)/o.length,e=o.reduce((r,a)=>r+a.y,0)/o.length;return{x:t,y:e}}var bl={1:{x:Y,y:H.tlMid.y},2:ke([H.tl,H.top,H.tlMid]),3:ke([H.tl,H.left,H.tlMid]),4:{x:H.tlMid.x,y:Y},5:ke([H.bl,H.left,H.blMid]),6:ke([H.bl,H.bottom,H.blMid]),7:{x:Y,y:H.blMid.y},8:ke([H.br,H.bottom,H.brMid]),9:ke([H.br,H.right,H.brMid]),10:{x:H.brMid.x,y:Y},11:ke([H.tr,H.right,H.trMid]),12:ke([H.tr,H.top,H.trMid])};function vl(o){let{tl:t,tr:e,br:r,bl:a,top:n,right:l,bottom:d,left:c}=H;return L`
|
|
44
44
|
<rect class="line" x=${t.x} y=${t.y} width=${ne} height=${ne} stroke-width="1.5" fill="none" />
|
|
45
45
|
<polygon class="line" points="${n.x},${n.y} ${l.x},${l.y} ${d.x},${d.y} ${c.x},${c.y}" stroke-width="1" fill="none" />
|
|
46
46
|
<line class="line" x1=${t.x} y1=${t.y} x2=${r.x} y2=${r.y} stroke-width="1" />
|
|
47
47
|
<line class="line" x1=${e.x} y1=${e.y} x2=${a.x} y2=${a.y} stroke-width="1" />
|
|
48
48
|
${o?L`<text class="centre-label" x=${Y} y=${Y} text-anchor="middle" dominant-baseline="central">${o}</text>`:i}
|
|
49
|
-
`}function
|
|
49
|
+
`}function Ll(o,t,e,r,a,n){let l=bl[o];if(!l)return L``;let d=Math.min(14,Math.abs(l.y-Y)*.45+6),c=d+12,p=a?`${t} · ${Hr(e)??e}`:`${t}`;return L`
|
|
50
50
|
<g class=${a?"cell lagna":"cell"}>
|
|
51
51
|
<text class="rashi-num" x=${l.x} y=${l.y-d} text-anchor="middle" dominant-baseline="central">${p}</text>
|
|
52
52
|
${a?L`<text class="lagna-marker" x=${l.x} y=${l.y-c} text-anchor="middle" dominant-baseline="central">${n("ASC")}</text>`:i}
|
|
53
|
-
${r.length?
|
|
53
|
+
${r.length?ds(r,e,l.x,l.y+8,12,n):i}
|
|
54
54
|
</g>
|
|
55
|
-
`}function
|
|
56
|
-
${
|
|
57
|
-
${Z.map((e,r)=>{let a=
|
|
58
|
-
`}var ia=ne/3;function
|
|
55
|
+
`}function $l(o,t){return L`
|
|
56
|
+
${vl(o.divisionLabel)}
|
|
57
|
+
${Z.map((e,r)=>{let a=cs(e,o.lagnaSign);return Ll(a,r+1,e,o.placements[e.toLowerCase()]??[],a===1,t)})}
|
|
58
|
+
`}var ia=ne/3;function wl(){let o=K,t=K+ia,e=K+2*ia,r=ge-K,B={Aries:[{x:t,y:o},{x:e,y:o},{x:e,y:t},{x:t,y:t}],Taurus:[{x:o,y:o},{x:t,y:o},{x:t,y:t}],Gemini:[{x:o,y:o},{x:t,y:t},{x:o,y:t}],Cancer:[{x:o,y:t},{x:t,y:t},{x:t,y:e},{x:o,y:e}],Leo:[{x:o,y:e},{x:t,y:e},{x:o,y:r}],Virgo:[{x:t,y:e},{x:t,y:r},{x:o,y:r}],Libra:[{x:t,y:e},{x:e,y:e},{x:e,y:r},{x:t,y:r}],Scorpio:[{x:e,y:e},{x:e,y:r},{x:r,y:r}],Sagittarius:[{x:e,y:e},{x:r,y:r},{x:r,y:e}],Capricorn:[{x:e,y:t},{x:r,y:t},{x:r,y:e},{x:e,y:e}],Aquarius:[{x:r,y:o},{x:r,y:t},{x:e,y:t}],Pisces:[{x:e,y:o},{x:r,y:o},{x:e,y:t}]},V={};for(let[de,Jt]of Object.entries(B))V[de]={points:[...Jt],centroid:ke(Jt)};return V}var kl=wl();function Sl(o){let t=K,e=K+ia,r=K+2*ia,a=ge-K;return L`
|
|
59
59
|
<rect class="line" x=${t} y=${t} width=${ne} height=${ne} stroke-width="1.5" fill="none" />
|
|
60
60
|
<line class="line" x1=${t} y1=${e} x2=${e} y2=${e} stroke-width="1" />
|
|
61
61
|
<line class="line" x1=${r} y1=${e} x2=${a} y2=${e} stroke-width="1" />
|
|
@@ -70,66 +70,66 @@
|
|
|
70
70
|
<line class="line" x1=${a} y1=${a} x2=${r} y2=${r} stroke-width="1" />
|
|
71
71
|
<line class="line" x1=${t} y1=${a} x2=${e} y2=${r} stroke-width="1" />
|
|
72
72
|
${o?L`<text class="centre-label" x=${Y} y=${Y} text-anchor="middle" dominant-baseline="central">${o}</text>`:i}
|
|
73
|
-
`}function
|
|
73
|
+
`}function Rl(o,t,e,r,a){let n=kl[o];if(!n)return L``;let{centroid:l,points:d}=n,c=Hr(o)??o,p=d.map(h=>`${h.x},${h.y}`).join(" ");return L`
|
|
74
74
|
<g class=${e?"cell lagna":"cell"}>
|
|
75
75
|
${e?L`<polygon class="lagna-bg" points=${p} />`:i}
|
|
76
76
|
<text class="sign-text" x=${l.x} y=${l.y-16} text-anchor="middle" dominant-baseline="central">${c}</text>
|
|
77
77
|
${r>0?L`<text class="house-num" x=${l.x+18} y=${l.y-16} text-anchor="start" dominant-baseline="central">${r}</text>`:i}
|
|
78
78
|
${e?L`<text class="lagna-marker" x=${l.x} y=${l.y-30} text-anchor="middle" dominant-baseline="central">${a("ASC")}</text>`:i}
|
|
79
|
-
${t.length?
|
|
79
|
+
${t.length?ds(t,o,l.x,l.y+4,12,a):i}
|
|
80
80
|
</g>
|
|
81
|
-
`}function
|
|
82
|
-
${
|
|
83
|
-
${Z.map(r=>
|
|
84
|
-
`}function ao(o){return is(o.lagnaSign)!==-1}function wl(o,t){let e=Object.values(o.placements).flat(),r=[];return e.some(a=>a.isRetrograde)&&r.push(`${Qn} ${t("retrograde")}`),e.some(a=>a.combust)&&r.push(`${eo} ${t("combust")}`),e.some(a=>a.war)&&r.push(`${to} ${t("planetary war")}`),r.length===0?i:s`<p class="roxy-frame">${r.join(" · ")}</p>`}function kl(o){return s`<p class="roxy-frame">${o("No ascendant in this chart, so the houses are not numbered.")}</p>`}function da(o,t){let e=[];ao(o)||e.push(kl(t));let r=wl(o,t);return r!==i&&e.push(r),e}function ca(o,t,e){if(t==="north"&&!ao(o))return Xn(o,e);switch(t){case"north":return fl(o,e);case"east":return $l(o,e);default:return Xn(o,e)}}function pa(o,t,e){return se({items:il.map(({id:r,source:a})=>({id:r,label:e(a)})),active:o,onSelect:t,label:e("Kundli style"),idPrefix:"kundli",controls:!0})}var ma=u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);display:grid}.header{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}svg{width:100%;max-width:var(--roxy-chart-max-width,560px);aspect-ratio:1;height:auto;margin:0 auto;display:block}.line{fill:#0000;stroke:var(--roxy-border,#d4d4d8)}.sign-text{fill:var(--roxy-muted,#71717a);font-size:11px;font-weight:500;font-family:var(--roxy-font-sans);text-transform:uppercase;letter-spacing:.04em}.rashi-num{fill:var(--roxy-muted,#71717a);font-size:12px;font-weight:500;font-family:var(--roxy-font-sans)}.house-num{fill:var(--roxy-accent-ink,#b45309);font-size:11px;font-weight:600;font-family:var(--roxy-font-sans);opacity:.85}.planet-text{fill:var(--roxy-fg,#0a0a0a);font-size:13px;font-weight:600;font-family:var(--roxy-font-sans)}.centre-label{fill:var(--roxy-muted,#71717a);font-size:14px;font-weight:600;font-family:var(--roxy-font-sans);letter-spacing:.02em}.lagna-marker{fill:var(--roxy-accent-ink,#b45309);font-size:10px;font-weight:700;font-family:var(--roxy-font-sans);letter-spacing:.08em;text-transform:uppercase}.lagna-bg{fill:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent)}.lagna-slash{stroke:var(--roxy-accent,#f59e0b);stroke-linecap:round;opacity:.7}`;var Be=class extends y{constructor(){super(...arguments);this.chartStyle="north";this.setStyle=e=>{this.chartStyle=e}}viewModel(){if(!this.data?.chart?.meta)return null;let{division:e}=this.data,r=`D${e.number} ${e.name}`;return la(this.data.chart.meta,{divisionLabel:r})}renderData(e){let r=this.viewModel();if(!r)return this.renderEmpty();let{division:a,vargottama:n}=e;return s`<div class="wrap" part="card"><div class="header" part="header"><div><h2 class="title">D${a.number} ${a.name} ${Ya(a.name,a.sanskritName)?s`<span class="division-meta">· ${a.sanskritName}</span>`:i}</h2>${a.significance?s`<p class="significance">${a.significance}</p>`:i} ${F(this.effectiveLang(),e.frame,this.translator)} ${da(r,this.translator)}</div>${pa(this.chartStyle,this.setStyle,this.translator)}</div><div id="kundli-panel-${this.chartStyle}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="kundli-tab-${this.chartStyle}"><svg viewBox="0 0 400 400" preserveAspectRatio="xMidYMid meet" part="chart" role="img" aria-label="${this.t("{{chart}} divisional chart with twelve sign houses",{chart:`D${a.number} ${a.name}`})}"><title>D${a.number} ${a.name}</title>${ca(r,this.chartStyle,this.translator)}</svg></div>${n&&n.length>0?s`<div class="vargottama-row" part="details" role="list" aria-label="${this.t("Vargottama planets")}"><span class="vargottama-label">${this.t("Vargottama")}:</span> ${n.map(l=>s`<span class="vargottama-pill" role="listitem">${R(l)??""} ${l}</span>`)}</div>`:i}</div>`}};Be.styles=[x,I,ma,ee,u`.division-meta{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);margin:0}.significance{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);border-left:2px solid var(--roxy-border,#e4e4e7);padding-left:var(--roxy-space-sm,.5rem);margin:0}.vargottama-row{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;align-items:center;display:flex}.vargottama-label{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);margin-right:var(--roxy-space-xs,.25rem);font-weight:500}.vargottama-pill{font-size:var(--roxy-text-sm,.875rem);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 22%, transparent);color:var(--roxy-fg,#0a0a0a);border:1px solid color-mix(in srgb, var(--roxy-accent,#f59e0b) 45%, transparent);border-radius:999px;align-items:center;gap:.2em;padding:.15em .6em;font-weight:600;display:inline-flex}`],g([S({type:String,reflect:!0,attribute:"chart-style"})],Be.prototype,"chartStyle",2),Be=g([b("roxy-divisional-chart")],Be);var Sl={manglik:"Mangal Dosha",kalsarpa:"Kaal Sarp Dosha",sadhesati:"Sade Sati"},Ie=class extends y{constructor(){super(...arguments);this.type="manglik"}renderData(e){let r=!!e.present,a=Sl[this.type]??this.type,n=(e.severity??"").toLowerCase(),l=n==="severe"?3:n==="moderate"?2:n==="mild"?1:0,d=l*33,c=l===3?"var(--roxy-danger)":l>=1?"var(--roxy-warning)":"transparent";return s`<article class="card" part="card" aria-label="${a}"><header class="head" part="header"><h2 class="title">${a}</h2><span class="${`badge ${r?"present":"absent"}`}">${r?this.t("Present"):this.t("Absent")} </span>${F(this.effectiveLang(),e.frame,this.translator)}</header>${"type"in e&&e.type?s`<p class="subtype"><span class="subtype-label">${this.type==="sadhesati"?this.t("Current phase"):this.t("Type")}</span>${e.type}</p>`:i} ${e.severity?s`<div class="severity-bar" part="details" role="meter" aria-valuemin="0" aria-valuemax="3" aria-valuenow="${l}" aria-label="${this.t("Severity")} ${e.severity}"><span class="severity-fill" style="width:${d}%;background:${c}"></span></div>`:i} ${e.description&&!this.hideReadings?s`<p class="description">${e.description}</p>`:i} ${this.renderEffects(e)} ${e.remedies&&e.remedies.length>0&&!this.hideReadings?s`<div part="section remedies"><h3>${this.t("Remedies")}</h3><ul>${e.remedies.map(p=>s`<li>${p}</li>`)}</ul></div>`:i} ${"exceptions"in e&&e.exceptions&&e.exceptions.length>0&&!this.hideReadings?s`<div part="section exceptions"><h3>${this.t("Exceptions")}</h3><ul>${e.exceptions.map(p=>s`<li>${p}</li>`)}</ul></div>`:i}</article>`}renderEffects(e){if(!e.effects||this.hideReadings)return i;let r=[];for(let[a,n]of Object.entries(e.effects))if(typeof n=="string"&&n.length>0)r.push(s`<div><h3>${a}</h3><p>${n}</p></div>`);else if(n&&typeof n=="object")for(let[l,d]of Object.entries(n))typeof d=="string"&&d.length>0&&r.push(s`<div><h3>${l}</h3><p>${d}</p></div>`);return r.length===0?i:s`<div class="effects" part="section effects">${r}</div>`}};Ie.styles=[x,I,u`.card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;margin:0}.subtype{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0}.subtype .subtype-label{color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-size:var(--roxy-text-xs,.75rem);margin-right:.4rem}.badge{align-items:center;gap:var(--roxy-space-xs,.25rem);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em;padding:4px 10px;display:inline-flex}.badge.absent{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.badge.present{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.severity-bar{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 30%, transparent);border-radius:4px;width:100%;height:8px;position:relative;overflow:hidden}.severity-fill{height:100%;transition:width var(--roxy-motion-duration,.2s) ease-out;border-radius:4px;display:block}@media (prefers-reduced-motion:reduce){.severity-fill{transition:none}}.description{color:var(--roxy-fg,#0a0a0a);margin:0}h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}ul{padding-left:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);margin:0}.effects{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.effects p{font-size:var(--roxy-text-sm,.875rem);margin:0}`],g([S({type:String,reflect:!0})],Ie.prototype,"type",2),Ie=g([b("roxy-dosha-card")],Ie);var $t=class extends y{renderData(t){return s`<article class="card" part="card" aria-label="${t.name??this.t("Dream symbol")}"><header class="head" part="header">${t.letter?s`<span class="letter" aria-hidden="true">${t.letter}</span>`:i}<div><p class="label">${this.t("Dream symbol")}</p>${t.name?s`<h2 class="name">${t.name}</h2>`:i}</div></header>${t.meaning?s`<p class="meaning">${t.meaning}</p>`:i}</article>`}};$t.styles=[x,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.letter{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);width:2.5rem;height:2.5rem;color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-variant-numeric:tabular-nums;flex:none;justify-content:center;align-items:center;display:inline-flex}.label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.name{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.meaning{color:var(--roxy-fg,#0a0a0a);margin:0;line-height:1.6}`],$t=g([b("roxy-dream-card")],$t);var wt=class extends y{renderData(t){let e=t.symbols??[];if(e.length===0)return this.renderEmpty();let r=typeof t.total=="number"?t.total:e.length;return s`<section class="wrap" part="card" aria-label="${this.t("Dream symbols")}"><header class="head" part="header"><h2 class="title">${this.t("Dream symbols")}</h2><span class="count">${this.t("{{count}} matches",{count:r})}</span></header><ul class="grid" part="section symbols">${e.map(a=>s`<li><button type="button" class="result" @click="${()=>this.select(a)}">${a.letter?s`<span class="letter" aria-hidden="true">${a.letter}</span>`:i} <span class="name">${a.name}</span></button></li>`)}</ul></section>`}select(t){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:{id:t.id,name:t.name,letter:t.letter},bubbles:!0,composed:!0}))}};wt.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.count{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.grid{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fill,minmax(8rem,1fr));margin:0;padding:0;list-style:none;display:grid}.result{align-items:center;gap:var(--roxy-space-sm,.5rem);text-align:left;width:100%;font:inherit;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);cursor:pointer;background:0 0;transition:border-color .12s,background .12s;display:flex}.result:hover,.result:focus-visible{border-color:var(--roxy-accent,#f59e0b);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent);outline:none}.letter{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);width:1.6rem;height:1.6rem;color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;flex:none;place-items:center;display:grid}.name{font-size:var(--roxy-text-sm,.875rem);font-weight:500}`],wt=g([b("roxy-dream-search")],wt);var Rl=12,ps=["latitude","longitude","timezone"],ms=["latitude","longitude"];function Cl(o){let t=o.match(/^(.+?)(Latitude|Longitude)$/);return t?{group:t[1],leaf:t[2].toLowerCase()}:null}var Al=Z.map(o=>o.toLowerCase());function ha(o,t){if(o){if("$ref"in o&&o.$ref){let e=o.$ref.split("/").pop();return e?t[e]:void 0}return o}}function so(o){let t=o.anyOf??o.oneOf;return!t||t.length===0?o:t.find(e=>Array.isArray(e.enum))??t.find(e=>cs(e)&&cs(e)!=="null")??t[0]??o}function cs(o){if(typeof o.type=="string")return o.type;if(!Array.isArray(o.type))return;let t=o.type.filter(e=>e!=="null");return t.length===1?t[0]:void 0}function Tl(o){let t=so(o),e=cs(t);return Array.isArray(t.enum)?t.enum.length<=Rl?"tiles":"select":e==="boolean"?"toggle":t.format==="date"?"date":t.format==="time"?"time":t.format==="date-time"?"datetime":e==="integer"||e==="number"?"number":e==="string"?"text":e==="array"?"array":null}function no(o){if(o.length!==12)return!1;let t=new Set(o.map(e=>e.toLowerCase()));return Al.every(e=>t.has(e))}function ga(o,t,e){let r=so(t);return{key:e.key,name:o,group:e.group,inQuery:e.inQuery,kind:Tl(t)??"text",required:e.required,description:r.description??t.description,enum:r.enum,min:r.minimum,max:r.maximum,default:t.default??r.default,example:t.example??r.example}}function oo(o,t,e){let r=[],a=!1,n=o.requestBody?.content?.["application/json"]?.schema,l=ha(n,t);if(l?.properties){let d=new Set(l.required??[]);for(let[c,p]of Object.entries(l.properties)){let h=ha(p,t)??{};if(h.type==="object"&&h.properties){let m=new Set(h.required??[]);for(let[f,C]of Object.entries(h.properties)){let w=ha(C,t)??{};r.push(ga(f,w,{key:`${c}.${f}`,group:c,required:d.has(c)&&m.has(f)}))}}else{let m=Cl(c);r.push(m?ga(m.leaf,h,{key:c,group:m.group,required:d.has(c)}):ga(c,h,{key:c,required:d.has(c)}))}}}for(let d of o.parameters??[]){if(d.in!=="path"&&d.in!=="query")continue;if(d.name==="lang"&&d.in==="query"){a=!0;continue}let c=ha(d.schema,t)??{};r.push(ga(d.name,c,{key:d.name,required:!!d.required,inQuery:d.in==="query"}))}return{title:Dl(o.summary,e),fields:r,hasLang:a}}function Dl(o,t){let e=o?.split(" - ")[0]?.trim();return e||_(t.split("/").pop()??"")}function io(o){let t=o.toLowerCase();return/compat|synastry|guna|connection|penta|composite/.test(t)?"Compare":/\bcast\b|\/draw|iching|hexagram|tarot/.test(t)?"Cast":/horoscope|dream|angel|nakshatra|crystal|meaning|reference/.test(t)?"Get reading":"Generate"}function lo(o,t){let e=t.replace(/^\//,"").replace(/[{}]/g,"").replace(/\//g,"-");return`${o.toLowerCase()}--${e}.json`}var ua="0.31.0";var co="https://roxyapi.com/api/v2/openapi.json",El=`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${ua}/dist/schemas`,hs=new Map,ya=class extends Error{constructor(e){super(`HTTP ${e}`);this.status=e}},fa=class extends Error{constructor(e,r){super(`Endpoint ${e} ${r} not found in OpenAPI spec`);this.method=e;this.path=r}};async function Ml(o){let t=hs.get(o);return t||(t=fetch(o).then(async e=>{if(!e.ok)throw new ya(e.status);return await e.json()}).catch(e=>{throw hs.delete(o),e}),hs.set(o,t)),t}function zl(){return globalThis.crypto?.randomUUID?.()??Math.random().toString(36).slice(2)}function Pl(o){let t=o.trim();if(!t)return[];try{let e=JSON.parse(t);if(Array.isArray(e))return e}catch{}return t.split(",").map(e=>e.trim()).filter(Boolean)}var X=class extends De{constructor(){super(...arguments);this.endpoint="vedic-astrology/birth-chart";this.method="POST";this.specUrl="";this.submitLabel="";this.fields=[];this.formTitle="";this.hasLang=!1;this.values={};this.loaded=!1;this.specError=null;this.validationErrors=[];this.retryLoadSchema=()=>{this.loaded=!1,this.specError=null,this.loadSchema()};this.onSubmit=e=>{e.preventDefault(),this.submit()}}connectedCallback(){super.connectedCallback(),this.loadSchema()}async loadSchema(){this.specError=null;try{this.applyModel(await this.resolveModel())}catch(e){this.specError=this.specErrorMessage(e),this.loaded=!0,this.dispatchEvent(new CustomEvent("roxy-spec-error",{detail:{url:this.specUrl||co,message:e instanceof Error?e.message:String(e)},bubbles:!0,composed:!0}))}}specErrorMessage(e){return e instanceof ya?this.t("HTTP error {{status}}",{status:e.status}):e instanceof fa?this.t("Endpoint {{method}} {{path}} not found in OpenAPI spec",{method:e.method,path:e.path}):e instanceof Error?e.message:String(e)}async resolveModel(){return this.specUrl?this.modelFromSpec(this.specUrl):await this.tryLoadSlice()??this.modelFromSpec(co)}async modelFromSpec(e){let r=await Ml(e),a=`/${this.endpoint.replace(/^\//,"")}`,n=r.paths?.[a]?.[this.method.toLowerCase()];if(!n)throw new fa(this.method,a);return oo(n,r.components?.schemas??{},this.endpoint)}async tryLoadSlice(){try{let e=await fetch(`${El}/${lo(this.method,this.endpoint)}`);return e.ok?await e.json():null}catch{return null}}applyModel(e){this.fields=e.fields,this.formTitle=e.title,this.hasLang=e.hasLang;let r={};for(let a of e.fields){a.default!==void 0&&(r[a.key]=a.default);let n=a.group?this.initialValues?.[a.group]?.[a.name]:this.initialValues?.[a.name];n!==void 0&&(r[a.key]=n)}this.values=r,this.loaded=!0}setValue(e,r){this.values={...this.values,[e]:r}}roleOf(e){return e.name==="seed"?"seed":(e.name==="limit"||e.name==="offset")&&!e.required?"hidden-default":ps.includes(e.name)&&this.groupHasLocation(e.group)||e.name==="timezone"&&this.locationGroups().some(r=>this.timezoneFieldFor(r)?.key===e.key)?"location":"normal"}isRendered(e){return this.roleOf(e)==="normal"}groupKeys(){let e=[];for(let r of this.fields)e.includes(r.group)||e.push(r.group);return e}groupHasLocation(e){let r=this.fields.filter(a=>a.group===e);return ms.every(a=>r.some(n=>n.name===a))}locationGroups(){return this.groupKeys().filter(e=>this.groupHasLocation(e))}timezoneFieldFor(e){let r=this.fields.find(a=>a.group===e&&a.name==="timezone");if(r)return r;if(this.locationGroups()[0]===e)return this.fields.find(a=>a.group===void 0&&a.name==="timezone")}locationRequired(e){let r=this.fields.filter(a=>a.group===e);return ps.some(a=>r.some(n=>n.name===a&&n.required))}groupIsRequired(e){return this.groupHasLocation(e)||this.fields.some(r=>r.group===e&&r.required)}get singleEnumField(){if(this.groupKeys().some(a=>this.groupHasLocation(a))||this.groupKeys().some(a=>a!==void 0))return null;let e=this.fields.filter(a=>a.required&&this.isRendered(a)),r=e[0];return e.length!==1||!r?null:r.kind==="tiles"||r.kind==="select"?r:null}effectiveSubmitLabel(){return this.submitLabel||this.t(io(this.endpoint))}requestLang(){return rn(this)}fieldText(e){return fe(this.requestLang(),e)}optionText(e,r){return Hn(this.requestLang(),e,r)}onLocationFor(e){return r=>{let a=r.detail;if(!a)return;let n=h=>this.fields.find(m=>m.group===e&&m.name===h)?.key,l={...this.values},d=n("latitude"),c=n("longitude");d&&(l[d]=a.latitude),c&&(l[c]=a.longitude);let p=this.timezoneFieldFor(e);p&&(l[p.key]=a.timezone??a.utcOffset),this.values=l}}selectTile(e,r){this.setValue(e.key,r),this.singleEnumField?.key===e.key&&this.submit()}onTilesKeyDown(e){return r=>{let a=e.enum??[];if(a.length===0)return;let n=a.indexOf(this.values[e.key]),l;if(r.key==="Home")l=0;else if(r.key==="End")l=a.length-1;else if(r.key==="ArrowRight"||r.key==="ArrowDown")l=n===-1?0:(n+1)%a.length;else if(r.key==="ArrowLeft"||r.key==="ArrowUp")l=n===-1?a.length-1:(n-1+a.length)%a.length;else return;r.preventDefault();let d=a[l];if(d===void 0)return;this.selectTile(e,d);let c=r.currentTarget;requestAnimationFrame(()=>c.querySelector(`[data-tile='${l}']`)?.focus())}}submit(){let e=this.collectMissing();if(e.keys.length>0){this.validationErrors=e.labels,this.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{missing:e.keys},bubbles:!0,composed:!0}));return}this.validationErrors=[];let r={};for(let l of this.fields){let d=this.values[l.key];if(l.name==="seed"&&(d===void 0||d==="")&&(d=zl()),!(d===void 0||d===""))if(l.kind==="array"&&typeof d=="string"&&(d=Pl(d)),l.group){let c=r[l.group]??{};c[l.name]=d,r[l.group]=c}else r[l.name]=d}let a=this.fields.filter(l=>l.inQuery).map(l=>l.name),n=this.requestLang();this.hasLang&&n&&(r.lang=n,a.push("lang")),this.dispatchEvent(new CustomEvent("roxy-submit",{detail:{endpoint:this.endpoint,values:r,queryKeys:a,sticky:this.singleEnumField!=null},bubbles:!0,composed:!0}))}collectMissing(){let e=[],r=[],a=new Set;for(let n of this.fields){if(!n.required)continue;let l=this.roleOf(n)==="location";if(!this.isRendered(n)&&!l)continue;let d=this.values[n.key];if(!(d!==void 0&&d!=="")){if(e.push(n.key),l){a.add(n.group);continue}r.push(n.group?`${this.groupName(n.group)} ${this.fieldText(n.name)}`:this.fieldText(n.name))}}for(let n of a)r.push(this.locationLabel(n));return{keys:e,labels:r}}reqMark(e){return e.required?s`<span class="req" aria-hidden="true">*</span>`:i}description(e){if(!e.description)return i;if(e.description.length<=120)return s`<small class="help">${e.description}</small>`;let r=e.description.split(". ")[0]??e.description;return s`<details class="help-details"><summary><span class="help-lead">${r}</span>${j()}</summary><small class="help help-full">${e.description}</small></details>`}renderTiles(e){let r=`roxy-form-${e.key}-label`,a=!!e.enum&&no(e.enum),n=e.enum??[],l=n.indexOf(this.values[e.key]),d=l===-1?0:l;return s`<div class="field tiles-field"><span class="label" id="${r}">${this.fieldText(e.name)}${this.reqMark(e)}</span><div class="tiles" role="radiogroup" aria-labelledby="${r}" @keydown="${this.onTilesKeyDown(e)}">${n.map((c,p)=>{let h=this.values[e.key]===c,m=a?z(c):void 0;return s`<button type="button" class="tile" role="radio" data-tile="${p}" aria-checked="${h?"true":"false"}" tabindex="${p===d?"0":"-1"}" @click="${()=>this.selectTile(e,c)}">${m?s`<span class="tile-glyph" aria-hidden="true">${m}</span>`:i} <span class="tile-label">${this.optionText(e.name,c)}</span></button>`})}</div>${this.description(e)}</div>`}renderSelect(e){let r=`roxy-form-${e.key}`;return s`<div part="field" class="field"><label for="${r}">${this.fieldText(e.name)}${this.reqMark(e)}</label> <select id="${r}" ?required="${e.required}" @change="${a=>this.setValue(e.key,a.target.value)}"><option value="">${this.t("Choose")}</option>${(e.enum??[]).map(a=>s`<option value="${a}" ?selected="${this.values[e.key]===a}">${this.optionText(e.name,a)}</option>`)}</select> ${this.description(e)}</div>`}renderToggle(e){let r=`roxy-form-${e.key}`,a=this.values[e.key]===!0;return s`<div part="field" class="field"><div class="toggle-row"><button type="button" id="${r}" class="toggle" role="switch" aria-checked="${a?"true":"false"}" @click="${()=>this.setValue(e.key,!a)}"><span class="knob"></span></button> <label class="toggle-label" for="${r}">${this.fieldText(e.name)}${this.reqMark(e)}</label></div>${this.description(e)}</div>`}renderInput(e){let r=`roxy-form-${e.key}`,a=e.kind==="datetime"?"datetime-local":e.kind==="number"?"number":e.kind,n=e.kind==="array"?this.t("Comma separated"):e.example!=null?String(e.example):"";return s`<div part="field" class="field"><label for="${r}">${this.fieldText(e.name)}${this.reqMark(e)}</label> <input id="${r}" type="${e.kind==="array"?"text":a}" ?required="${e.required}" min="${oe(e.min)}" max="${oe(e.max)}" step="${e.kind==="number"?"any":i}" placeholder="${n||i}" .value="${this.values[e.key]??""}" @input="${l=>this.setValue(e.key,this.coerce(e.kind,l.target.value))}"> ${this.description(e)}</div>`}renderField(e){switch(e.kind){case"tiles":return this.renderTiles(e);case"select":return this.renderSelect(e);case"toggle":return this.renderToggle(e);default:return this.renderInput(e)}}locationFillList(e){let r=[...ms];return this.timezoneFieldFor(e)&&r.push("timezone"),r.join(", ")}groupName(e){return this.t(_(e))}locationLabel(e){return e?this.t("{{group}} location",{group:this.groupName(e)}):this.t("Birth location")}locationBlock(e){return s`<div class="location-block"><label>${this.locationLabel(e)}${this.locationRequired(e)?s`<span class="req" aria-hidden="true">*</span>`:i}</label><roxy-location-search publishable-key="${oe(this.publishableKey)}" lang="${oe(this.effectiveLang())}" @roxy-location-select="${this.onLocationFor(e)}" placeholder="${e?this.t("{{group}} city",{group:this.groupName(e)}):this.t("City of birth")}"></roxy-location-search><small class="help">${this.t("Fills {{fields}}. Pick a city to autofill.",{fields:this.locationFillList(e)})}</small></div>`}groupCard(e){let r=this.fields.filter(a=>a.group===e&&this.isRendered(a));return s`<fieldset part="group" class="person-group"><legend>${this.groupName(e)}</legend>${this.groupHasLocation(e)?this.locationBlock(e):i}<div class="fields">${r.map(a=>this.renderField(a))}</div></fieldset>`}render(){if(!this.loaded)return s`<form><div class="roxy-skeleton" style="height:8rem"></div></form>`;if(this.specError)return s`<div class="spec-error" role="alert">${this.t("Schema load failed: {{message}}",{message:this.specError})} <button type="button" class="submit" @click="${this.retryLoadSchema}">${this.t("Retry")}</button></div>`;let e=this.fields.filter(p=>!p.group&&this.isRendered(p)),r=e.filter(p=>p.required),a=e.filter(p=>!p.required),n=this.groupKeys().filter(p=>p!==void 0),l=n.filter(p=>this.groupIsRequired(p)),d=n.filter(p=>!this.groupIsRequired(p)),c=a.length>0||d.length>0;return s`<form @submit="${this.onSubmit}"><h2 part="title" class="title">${this.formTitle}</h2>${this.validationErrors.length>0?s`<div part="validation-error" class="validation-error" role="alert"><strong>${this.t("Please complete:")}</strong> ${this.validationErrors.join(", ")}</div>`:i}<div class="fields">${r.map(p=>this.renderField(p))}</div>${this.groupHasLocation(void 0)?this.locationBlock(void 0):i} ${l.map(p=>this.groupCard(p))} ${c?s`<details part="advanced" class="advanced"><summary>${this.t("Advanced")}${j()}</summary><div class="fields">${a.map(p=>this.renderField(p))}</div>${d.map(p=>this.groupCard(p))}</details>`:i} ${this.singleEnumField?i:s`<button part="submit" class="submit" type="submit">${this.effectiveSubmitLabel()}</button>`}</form>`}coerce(e,r){if(r!==""){if(e==="number"){let a=Number(r);return Number.isFinite(a)?a:void 0}return r}}};X.styles=[x,M,u`form{gap:var(--roxy-space-md,1rem);background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.fields{align-items:start;gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.fields:empty{display:none}.person-group{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);gap:var(--roxy-space-md,1rem);min-inline-size:0;margin:0;display:grid}.person-group legend{padding:0 var(--roxy-space-xs,.25rem);font-weight:var(--roxy-weight-bold,600)}.field{gap:var(--roxy-space-xs,.25rem);flex-direction:column;min-width:0;display:flex}.tiles-field{grid-column:1/-1}label,.label{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-secondary,#475569)}.req{color:var(--roxy-danger-fg,#991b1b);margin-left:4px}input,select{box-sizing:border-box;width:100%;padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a);background:var(--roxy-bg,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);font-family:inherit}input:focus,select:focus{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-color:var(--roxy-accent-ink,#b45309)}.help{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.help-details>summary{cursor:pointer;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);align-items:center;gap:4px;display:flex}.help-details .help-lead{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.help-details .help-full{margin-top:var(--roxy-space-xs,.25rem);display:block}.location-block{gap:var(--roxy-space-xs,.25rem);grid-column:1/-1;display:grid}.tiles{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(5.5rem,1fr));display:grid}.tile{min-height:44px;padding:var(--roxy-space-sm,.5rem);background:var(--roxy-bg,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-fg,#0a0a0a);font-family:inherit;font-size:var(--roxy-text-sm,.875rem);cursor:pointer;transition:border-color var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease), background-color var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-direction:column;justify-content:center;align-items:center;gap:2px;display:flex}.tile:hover{border-color:var(--roxy-accent,#f59e0b)}.tile[aria-checked=true]{border-color:var(--roxy-accent,#f59e0b);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 12%, transparent);color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.tile:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.tile-glyph{font-size:1.35em;line-height:1}.toggle-row{align-items:center;gap:var(--roxy-space-sm,.5rem);display:flex}.toggle{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);background:var(--roxy-border,#e4e4e7);cursor:pointer;width:44px;height:26px;transition:background-color var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-shrink:0;padding:0;position:relative}.toggle[aria-checked=true]{background:var(--roxy-accent,#f59e0b);border-color:var(--roxy-accent,#f59e0b)}.toggle .knob{background:var(--roxy-bg,#fff);width:20px;height:20px;transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);border-radius:50%;position:absolute;top:2px;left:2px}.toggle[aria-checked=true] .knob{transform:translate(18px)}.toggle:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.toggle-label{cursor:pointer}@media (prefers-reduced-motion:reduce){.tile,.toggle,.toggle .knob{transition:none}}.advanced{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.advanced>summary{cursor:pointer;font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);align-items:center;gap:6px;display:flex}.advanced[open]>summary{margin-bottom:var(--roxy-space-md,1rem)}.advanced .fields,.advanced .person-group{margin-top:var(--roxy-space-md,1rem)}.validation-error{gap:var(--roxy-space-xs,.25rem);padding:var(--roxy-space-md,1rem);background:color-mix(in srgb, var(--roxy-danger,#dc2626) 8%, transparent);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);display:grid}button.submit{background:var(--roxy-accent-ink,#b45309);color:var(--roxy-bg,#fff);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-lg,1.5rem);font-size:var(--roxy-text-base,1rem);font-weight:var(--roxy-weight-bold,600);cursor:pointer;transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));border:0;justify-self:start}button.submit:hover{transform:scale(1.02)}button.submit:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}@media (prefers-reduced-motion:reduce){button.submit{transition:none}}.spec-error{gap:var(--roxy-space-md,1rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);justify-items:start;display:grid}`],g([S({type:String,attribute:"data-endpoint"})],X.prototype,"endpoint",2),g([S({type:String})],X.prototype,"method",2),g([S({type:String,attribute:"spec-url"})],X.prototype,"specUrl",2),g([S({type:String,attribute:"submit-label"})],X.prototype,"submitLabel",2),g([S({type:String,attribute:"publishable-key"})],X.prototype,"publishableKey",2),g([S({attribute:!1})],X.prototype,"initialValues",2),g([G()],X.prototype,"fields",2),g([G()],X.prototype,"formTitle",2),g([G()],X.prototype,"hasLang",2),g([G()],X.prototype,"values",2),g([G()],X.prototype,"loaded",2),g([G()],X.prototype,"specError",2),g([G()],X.prototype,"validationErrors",2),X=g([b("roxy-endpoint-form")],X);var Nl="12:00 UTC",je=class extends y{constructor(){super(...arguments);this.heading="Ephemeris"}renderData(e){if(!e.days?.length)return this.renderEmpty();let r=this.toViewModel(e),a=this.effectiveLang();return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t(this.heading)}</h2><p class="month"><span>${Ln(a,r.year,r.month)}</span><span class="basis">${Nl}</span></p></header>${this.renderSignKey(r.signs)}<section part="section changes"><h3>${this.t("Sign changes and retrograde periods")}</h3><div class="tracks" role="list">${r.bodies.map(n=>this.renderTrack(n))}</div></section><section part="section daily"><h3>${this.t("Daily positions")}</h3><div class="scroll" part="table" aria-label="${this.t("Daily positions")}" tabindex="0">${this.renderGrid(r)}</div></section></div>`}renderSignKey(e){return e.length===0?i:s`<section part="section legend"><h3>${this.t("Signs in this month")}</h3><ul class="signkey" role="list">${e.map(r=>s`<li class="signkey-item"><span class="signkey-glyph" aria-hidden="true">${r.glyph}</span>${r.label}</li>`)}</ul></section>`}renderTrack(e){let r=R(e.name);return s`<div class="track" role="listitem"><span class="body-name">${r?s`<span class="glyph" aria-hidden="true">${r}</span>`:i}${e.label} </span><span class="span">${this.renderPosition(e.first)}<span class="arrow" aria-hidden="true">→</span>${this.renderPosition(e.last)} </span>${e.ingresses.length||e.retrogrades.length?s`<span class="chips">${e.ingresses.map(a=>this.renderIngressChip(a))} ${e.retrogrades.map(a=>this.renderRetrogradeChip(a))}</span>`:i}</div>`}renderPosition(e){let{degree:r,minute:a}=os(e.degreeInSign),n=z(e.sign),l=$(e,"sign");return s`<span class="pos" title="${l}">${r}${n?s`<span class="sg" aria-hidden="true">${n}</span>`:s`<span class="sg">${l}</span>`}${String(a).padStart(2,"0")}</span>`}renderIngressChip(e){let r=z(e.sign),a=Kr(this.effectiveLang(),e.date);return s`<span class="chip chip--ingress" aria-label="${this.t("Enters {{sign}} on {{date}}",{sign:e.signLabel,date:a})}"><span aria-hidden="true">→</span>${r?s`<span aria-hidden="true">${r}</span>`:i}${e.signLabel} <span class="chip-date">${a}</span></span>`}renderRetrogradeChip(e){let r=this.effectiveLang(),a=Kr(r,e.start),n=Kr(r,e.end),l=a===n?a:`${a} - ${n}`;return s`<span class="chip chip--retro"><span aria-hidden="true">℞</span>${this.t("Retrograde {{range}}",{range:l})}</span>`}renderGrid(e){let r=this.effectiveLang();return s`<table><caption class="roxy-sr-only">${this.t("Every body with its position on each day of the month, as a zodiac sign and a degree.")}</caption><thead><tr><th scope="col" class="day">${this.t("Date")}</th>${e.bodies.map(a=>{let n=R(a.name);return s`<th scope="col" title="${a.label}">${n?s`<span class="glyph" aria-hidden="true">${n}</span><span class="roxy-sr-only">${a.label}</span>`:a.label}</th>`})}</tr></thead><tbody>${e.rows.map(a=>s`<tr><th scope="row" class="day">${vn(r,a.date)}</th>${a.cells.map((n,l)=>this.renderCell(n,e.bodies[l],a.date))}</tr>`)}</tbody></table>`}renderCell(e,r,a){if(!e)return s`<td>—</td>`;let n=[e.isRetrograde?"retro":"",r?.ingressDates.has(a)?"ingress":"",r?.stationDates.has(a)?"station":""].filter(Boolean).join(" ");return s`<td class="${n}">${this.renderPosition(e)}${e.isRetrograde?s`<span class="retro-mark" aria-label="${this.t("retrograde")}">℞</span>`:i}</td>`}toViewModel(e){let r=[],a=new Map;for(let d of e.days)for(let c of d.positions){let p=a.get(c.planet);p||(p=[],a.set(c.planet,p),r.push(c.planet)),p.push({date:d.date,p:c})}let n=[];for(let d of r){let c=a.get(d),p=c?.[0],h=c?.[c.length-1];if(!c||!p||!h)continue;let m=[],f=[],C=new Set,w=new Set;for(let k=0;k<c.length;k++){let B=c[k],V=c[k-1];if(!B||(V&&B.p.sign!==V.p.sign&&(m.push({date:B.date,sign:B.p.sign,signLabel:$(B.p,"sign")}),C.add(B.date)),V&&B.p.isRetrograde!==V.p.isRetrograde&&w.add(B.date),!B.p.isRetrograde))continue;let de=f[f.length-1];de&&V?.p.isRetrograde?de.end=B.date:f.push({start:B.date,end:B.date})}n.push({name:d,label:$(h.p,"planet"),first:p.p,last:h.p,ingresses:m,retrogrades:f,ingressDates:C,stationDates:w})}let l=e.days.map(d=>{let c=new Map(d.positions.map(p=>[p.planet,p]));return{date:d.date,cells:n.map(p=>c.get(p.name))}});return{year:e.year,month:e.month,bodies:n,rows:l,signs:this.toSignKey(e)}}toSignKey(e){let r=new Map;for(let n of e.days)for(let l of n.positions){let d=String(l.sign??"").toLowerCase();d&&!r.has(d)&&r.set(d,$(l,"sign"))}let a=[];for(let n of Z){let l=r.get(n.toLowerCase()),d=z(n);l&&d&&a.push({sign:n,label:l,glyph:d})}return a}};je.styles=[x,u`:host{overflow-x:clip}.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}header{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.month{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);gap:var(--roxy-space-xs,.25rem) var(--roxy-space-sm,.5rem);flex-wrap:wrap;margin:0;display:flex}.basis{font-variant-numeric:tabular-nums}.wrap>*{min-width:0}h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em;color:var(--roxy-muted,#71717a)}.signkey{flex-wrap:wrap;gap:1px 0;margin:0;padding:0;list-style:none;display:flex}.signkey-item{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);white-space:nowrap;align-items:baseline;gap:.3rem;padding:2px 10px 2px 0;display:inline-flex}.signkey-glyph{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.tracks{background:var(--roxy-border,#e4e4e7);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);grid-template-columns:minmax(0,1fr);gap:1px;display:grid;overflow:hidden}.track{align-items:center;gap:var(--roxy-space-xs,.25rem) var(--roxy-space-sm,.5rem);padding:6px var(--roxy-space-sm,.5rem);background:var(--roxy-surface,#fff);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;display:flex}.body-name{align-items:baseline;gap:.35rem;min-width:8.5rem;font-weight:500;display:inline-flex}.body-name .glyph{color:var(--roxy-accent-ink,#b45309);font-size:1.1em}.span{color:var(--roxy-secondary,#475569);font-variant-numeric:tabular-nums;white-space:nowrap;align-items:baseline;gap:.3rem;display:inline-flex}.arrow{color:var(--roxy-muted,#71717a)}.chip-date{color:var(--roxy-secondary,#475569)}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;margin-left:auto;display:flex}.chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);white-space:nowrap;align-items:baseline;gap:.25rem;padding:1px 8px;display:inline-flex}.chip--ingress{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a)}.chip--retro{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent);color:var(--roxy-danger-fg,#991b1b);font-weight:var(--roxy-weight-bold,600)}.scroll:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b);outline-offset:2px}.scroll{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table{border-collapse:collapse;font-size:var(--roxy-text-xs,.75rem)}th,td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap;padding:4px 8px}thead th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}thead th .glyph{color:var(--roxy-fg,#0a0a0a);font-size:1.15em}th.day{z-index:1;background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);font-variant-numeric:tabular-nums;border-right:1px solid var(--roxy-border,#e4e4e7);font-weight:500;position:sticky;left:0}thead th.day{z-index:2;background:var(--roxy-surface,#fff)}td{font-variant-numeric:tabular-nums}.sg{color:var(--roxy-secondary,#475569);font-variant-numeric:normal;margin:0 .15em}.retro-mark{font-weight:var(--roxy-weight-bold,600);margin-left:.25em}td.retro{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent);color:var(--roxy-danger-fg,#991b1b)}td.retro .sg{color:inherit}td.ingress{box-shadow:inset 3px 0 var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}td.station{border-top:2px solid var(--roxy-danger-fg,#991b1b);font-weight:var(--roxy-weight-bold,600)}`],g([S({type:String})],je.prototype,"heading",2),je=g([b("roxy-ephemeris-table")],je);var kt=class extends y{renderData(t){let e=t.conjunctions??[],r=t.stars??[];return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t("Fixed stars")}</h2>${typeof t.orb=="number"?s`<span class="badge"><b>${this.t("Orb")}</b> ${v(this.effectiveLang(),t.orb,1)}°</span>`:i}</header>${t.summary&&!this.hideReadings?s`<p class="summary">${t.summary}</p>`:i} ${e.length?s`<section part="section conjunctions"><p class="subhead">${this.t("Conjunctions to the chart")}</p>${e.map((a,n)=>s`<details class="interp-card" part="reading" name="fixed-star-contacts" ?open="${n===0}"><summary><span class="interp-lead">${this.t("{{point}} conjunct {{star}}",{point:a.point,star:a.star})}</span> ${j()} <span class="interp-aside"><small>${this.t("orb {{value}}°",{value:v(this.effectiveLang(),a.orb,2)})}</small></span></summary>${a.interpretation&&!this.hideReadings?s`<div class="interp-body"><p>${a.interpretation}</p></div>`:i}</details>`)}</section>`:s`<p class="empty-note">${this.t("No star sits within the orb of a natal point.")}</p>`} ${r.length?this.renderCatalog(r):i}</div>`}renderCatalog(t){return s`<details class="catalog"><summary>${j()} ${this.t("Star catalog ({{count}})",{count:t.length})}</summary><div class="scroll"><table><caption class="subhead">${this.t("Precessed positions for the chart date")}</caption><thead><tr><th scope="col">${this.t("Star")}</th><th scope="col">${this.t("Position")}</th><th scope="col" class="num">${this.t("Mag")}</th><th scope="col">${this.t("Nature")}</th><th scope="col">${this.t("Keywords")}</th></tr></thead><tbody>${t.map(e=>{let r=z(e.sign);return s`<tr><td>${e.name}</td><td>${r?s`<span class="sg">${r}</span>`:i}${bt(e.degree)} ${e.sign}</td><td class="num">${v(this.effectiveLang(),e.magnitude,1)}</td><td>${e.nature}</td><td><div class="kw">${(e.keywords??[]).map(a=>s`<span>${a}</span>`)}</div></td></tr>`})}</tbody></table></div></details>`}};kt.styles=[x,M,O,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}header{align-items:baseline;gap:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 8px}.badge b{color:var(--roxy-accent-ink,#b45309);font-weight:600}.summary{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0}.empty-note{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.subhead{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0 0 var(--roxy-space-sm,.5rem);font-weight:600}.interp-lead .point{color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.interp-aside small{font-variant-numeric:tabular-nums}.catalog summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);align-items:center;gap:.5rem;font-weight:600;display:flex}.scroll{min-width:0;margin-top:var(--roxy-space-sm,.5rem);overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap;vertical-align:top;padding:6px 10px}th{color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.04em;font-weight:600;font-size:var(--roxy-text-xs,.75rem)}td.num{text-align:right;font-variant-numeric:tabular-nums}.sg{color:var(--roxy-secondary,#475569);margin-right:.3rem}.kw{white-space:normal;flex-wrap:wrap;gap:.2rem;max-width:18rem;display:flex}.kw span{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a);padding:0 6px}`],kt=g([b("roxy-fixed-stars")],kt);var St=class extends y{renderData(t){let e=t.windows??[];if(e.length===0)return this.renderEmpty();let r=[A(this.effectiveLang(),t.startDate),A(this.effectiveLang(),t.endDate)].filter(Boolean).join(" – ");return s`<div class="wrap" part="card" aria-label="${this.t("Forecast digest")}"><div class="head" part="header"><h2 class="title">${this.t("Forecast digest")}</h2>${r?s`<p class="subtitle">${r}</p>`:i}</div>${e.map(a=>this.renderWindow(a))}</div>`}windowLabel(t){return t===1?"Next 24 hours":typeof t=="number"?`Next ${t} days`:"Window"}renderWindow(t){let e=[...t.top??[]].sort((n,l)=>(l.significance??0)-(n.significance??0)),r=t.byDomain??{},a=Object.entries(r);return s`<section class="window" part="section window"><div class="window-head" part="details"><span class="window-label">${this.windowLabel(t.days)}</span> <span class="window-count">${this.t("{{count}} events",{count:t.count??0})}</span></div>${a.length>0?s`<div class="domains" part="legend">${a.map(([n,l])=>s`<span class="domain-chip"><span class="swatch sw-${n}"></span>${_(n)} ${l}</span>`)}</div>`:i} ${e.length>0?s`<div role="list">${e.map(n=>this.renderEvent(n))}</div>`:s`<p class="quiet">${this.t("No notable events.")}</p>`}</section>`}renderEvent(t){let e=typeof t.significance=="number"?t.significance:0,r=this.hideReadings||t.description==null?_(t.type??""):t.description;return s`<div class="event" role="listitem"><span class="event-date">${A(this.effectiveLang(),t.date)}</span> <span class="event-desc">${r}</span> <span class="sig" role="img" aria-label="${this.t("significance {{value}} of 100",{value:v(this.effectiveLang(),e,0)})}"><span class="sig-fill ${t.domain}" style="width:${Math.max(0,Math.min(100,e))}%"></span></span></div>`}};St.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.window{gap:var(--roxy-space-sm,.5rem);padding-top:var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);display:grid}.window:first-of-type{border-top:none;padding-top:0}.window-head{flex-wrap:wrap;align-items:baseline;gap:.5rem;display:flex}.window-label{font-weight:var(--roxy-weight-bold,600)}.window-count{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.domains{flex-wrap:wrap;gap:.4rem;display:flex}.domain-chip{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);align-items:center;gap:.35rem;display:inline-flex}.swatch{border-radius:2px;width:.65rem;height:.65rem;display:inline-block}.sw-western{background:var(--roxy-accent,#f59e0b)}.sw-vedic{background:var(--roxy-info,#2563eb)}.sw-biorhythm{background:var(--roxy-success,#16a34a)}.event{grid-template-columns:auto 1fr;align-items:baseline;gap:.25rem .6rem;display:grid}.event-date{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;white-space:nowrap}.event-desc{font-size:var(--roxy-text-sm,.875rem);line-height:1.4}.sig{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);border-radius:2px;grid-column:2;height:4px;overflow:hidden}.sig-fill{border-radius:2px;height:100%;display:block}.sig-fill.western{background:var(--roxy-accent,#f59e0b)}.sig-fill.vedic{background:var(--roxy-info,#2563eb)}.sig-fill.biorhythm{background:var(--roxy-success,#16a34a)}.quiet{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);font-style:italic}`],St=g([b("roxy-forecast-digest")],St);var Gl={western:"Western",vedic:"Vedic",biorhythm:"Biorhythm"},Ol=["western","vedic","biorhythm"],Rt=class extends y{renderData(t){let e=t.events??[],r=this.groupByDate(e),a=Ol.filter(n=>e.some(l=>l.domain===n));return s`<div class="wrap" part="card" aria-label="${this.t("Forecast timeline")}"><header class="head" part="header"><h2 class="title">${this.t("Forecast timeline")}</h2>${t.startDate&&t.endDate?s`<div class="range">${A(this.effectiveLang(),t.startDate)} - ${A(this.effectiveLang(),t.endDate)} · ${this.t("{{count}} events",{count:t.count??e.length})}</div>`:i}</header>${a.length?s`<div class="legend" part="legend">${a.map(n=>s`<span><span class="swatch swatch-${n}"></span>${Gl[n]}</span>`)}</div>`:i} ${r.length?s`<div class="days" part="section events" role="list">${r.map(([n,l])=>this.renderDay(n,l))}</div>`:s`<p class="roxy-empty" role="status">${this.t("No events in this window")}</p>`}</div>`}groupByDate(t){let e=new Map;for(let r of t){let a=r.date??"",n=e.get(a)??[];n.push(r),e.set(a,n)}return[...e.entries()]}renderDay(t,e){return s`<div class="day" role="listitem"><div class="day-date">${A(this.effectiveLang(),t)}</div><div class="events">${e.map(r=>this.renderEvent(r))}</div></div>`}renderEvent(t){let e=typeof t.significance=="number"?t.significance:0,r=Math.max(0,Math.min(100,e));return s`<div class="event"><span class="dot dot-${t.domain}" aria-hidden="true"></span><div class="event-body"><div class="event-line">${this.renderHeadline(t)}</div>${t.description&&!this.hideReadings?s`<p class="event-desc">${t.description}</p>`:i}<div class="sig" title="${this.t("significance {{value}} of 100",{value:r})}"><span class="sig-track"><span class="sig-fill sig-fill-${t.domain}" style="width:${r}%"></span> </span><span class="sig-val">${r}</span></div></div></div>`}renderHeadline(t){let e=t.body?N(t.body):"",r=t.target?N(t.target):"",a=ce({type:t.aspect}),n=Le[a]??"",l=a?Fr(t.aspect)??W({type:t.aspect}):"",d=typeof t.orb=="number"?v(this.effectiveLang(),t.orb,1):"",c=this.typeQualifier(t);return a&&r?s`<strong>${e}</strong> <span class="${n}">${l}</span> <strong>${r}</strong>${d?s`<span class="kind">${this.t("orb {{value}}°",{value:d})}</span>`:i}`:s`<strong>${e||_(t.type??"")}</strong>${c?s`<span class="kind">${c}</span>`:i}`}typeQualifier(t){return t.type==="sign-ingress"&&t.target?`enters ${N(t.target)}`:t.type==="retrograde-station"&&t.station?t.station:t.type==="eclipse"?[t.kind,"eclipse"].filter(Boolean).join(" "):t.type==="critical-day"?"critical day":t.type==="dasha-change"&&t.target?`dasha ${N(t.target)}`:_(t.type??"")}};Rt.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.range{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);font-variant-numeric:tabular-nums}.legend{gap:var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);flex-wrap:wrap;display:flex}.legend .swatch{vertical-align:middle;border-radius:50%;width:10px;height:10px;margin-right:4px;display:inline-block}.swatch-western{background:var(--roxy-accent,#f59e0b)}.swatch-vedic{background:var(--roxy-info,#2563eb)}.swatch-biorhythm{background:var(--roxy-success,#16a34a)}.day{gap:var(--roxy-space-md,1rem);padding-block:var(--roxy-space-sm,.5rem);border-top:1px solid var(--roxy-border,#e4e4e7);grid-template-columns:4.5rem 1fr;display:grid}.day:first-of-type{border-top:none}.day-date{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;padding-top:2px}.events{gap:var(--roxy-space-sm,.5rem);display:grid}.event{gap:var(--roxy-space-sm,.5rem);grid-template-columns:.6rem 1fr;align-items:start;display:grid}.dot{border-radius:50%;width:.6rem;height:.6rem;margin-top:4px}.dot-western{background:var(--roxy-accent,#f59e0b)}.dot-vedic{background:var(--roxy-info,#2563eb)}.dot-biorhythm{background:var(--roxy-success,#16a34a)}.event-body{min-width:0}.event-line{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.event-line .aspect-trine,.event-line .aspect-sextile{color:var(--roxy-success-fg,#166534)}.event-line .aspect-square,.event-line .aspect-opposition{color:var(--roxy-danger-fg,#991b1b)}.event-line .aspect-conjunction{color:var(--roxy-accent-ink,#b45309)}.event-line .kind{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.04em;margin-left:.35em}.event-desc{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);margin:2px 0 0}.sig{align-items:center;gap:.4rem;margin-top:4px;display:flex}.sig-track{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);flex:1;max-width:8rem;height:4px;overflow:hidden}.sig-fill{border-radius:var(--roxy-radius-full,9999px);height:100%;display:block}.sig-fill-western{background:var(--roxy-accent,#f59e0b)}.sig-fill-vedic{background:var(--roxy-info,#2563eb)}.sig-fill-biorhythm{background:var(--roxy-success,#16a34a)}.sig-val{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums}`],Rt=g([b("roxy-forecast-timeline")],Rt);var po=8,Ct=class extends y{renderData(t){let e=t.transitingPlanets??[];if(!e.length)return this.renderEmpty();let r=t.keyTransits??[],a=t.natalPlanets?.find(n=>n.name==="Moon")?.sign;return s`<div class="wrap" part="card" aria-label="${this.t("Gochara transits")}"><header class="head" part="header"><h2 class="title">${this.t("Gochara")}</h2><p class="sub">${this.t("Where each graha transits at {{when}}, read against the natal chart of {{birth}}.",{when:q(this.effectiveLang(),t.transitDatetime),birth:q(this.effectiveLang(),t.birthDatetime)})}</p>${a?s`<p class="sub">${this.t("Gochara houses are counted from the natal Moon in {{sign}}.",{sign:a})}</p>`:i} ${F(this.effectiveLang(),t.frame,this.translator)}</header><div part="table">${e.map(n=>this.renderPlanet(n))}</div>${r.length&&!this.hideReadings?s`<section class="key" part="section key-transits"><h3 class="key-title">${this.t("Key transits")}</h3>${r.map(n=>s`<p class="key-item">${n.description}</p>`)}</section>`:i}</div>`}renderPlanet(t){let e=R(t.name)??"",r=typeof t.longitude=="number"?re(t.longitude):void 0;return s`<article class="row"><div class="row-top"><span class="graha">${e?s`<span class="glyph">${e}</span>`:i}${t.name} </span><span class="pos">${t.sign}${r?s`${bt(r.degree)}`:i} </span>${typeof t.houseFromMoon=="number"?s`<span class="house moon">${this.t("house {{n}} from the Moon",{n:t.houseFromMoon})}</span>`:i} ${typeof t.natalHouse=="number"?s`<span class="house lagna">${this.t("house {{n}} from the Lagna",{n:t.natalHouse})}</span>`:i}</div>${this.renderKaksha(t.kaksha)} ${this.renderContacts(this.t("Drishti"),t.drishtiToNatal)} ${this.renderContacts(this.t("Aspects"),t.aspectsToNatal)}</article>`}renderContacts(t,e){return e?.length?s`<p class="aspects"><span class="contact-label">${t}</span> ${e.map(r=>typeof r.orb=="number"?this.t("{{aspect}} natal {{planet}} ({{orb}}°)",{aspect:W({type:r.aspectType}),planet:r.natalPlanet,orb:v(this.effectiveLang(),r.orb,1)}):this.t("{{aspect}} natal {{planet}}",{aspect:W({type:r.aspectType}),planet:r.natalPlanet})).join(" · ")}</p>`:i}renderKaksha(t){if(!t||typeof t.number!="number")return i;let e=t.number,r=t.bindu===!0?"yes":t.bindu===!1?"no":"",a=po,n=t.lord&&typeof t.startDegree=="number"&&typeof t.endDegree=="number"?this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}, spanning {{start}}° to {{end}}° of the sign",{n:e,total:a,graha:t.lord,start:v(this.effectiveLang(),t.startDegree,2),end:v(this.effectiveLang(),t.endDegree,2)}):t.lord?this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}",{n:e,total:a,graha:t.lord}):typeof t.startDegree=="number"&&typeof t.endDegree=="number"?this.t("Kaksha {{n}} of {{total}}, spanning {{start}}° to {{end}}° of the sign",{n:e,total:a,start:v(this.effectiveLang(),t.startDegree,2),end:v(this.effectiveLang(),t.endDegree,2)}):this.t("Kaksha {{n}} of {{total}}",{n:e,total:a}),l=t.bindu===null||t.bindu===void 0?"":typeof t.binduCount=="number"?t.bindu?this.t("this kaksha lord gave bindu, {{count}} of {{total}} in this sign",{count:t.binduCount,total:a}):this.t("this kaksha lord gave no bindu, {{count}} of {{total}} in this sign",{count:t.binduCount,total:a}):t.bindu?this.t("this kaksha lord gave bindu"):this.t("this kaksha lord gave no bindu");return s`<div class="kaksha-bar" part="chart" role="img" aria-label="${this.t("Kaksha {{n}} of {{total}} within the current sign",{n:e,total:a})}">${Array.from({length:po},(d,c)=>s`<span class="seg ${c+1===e?`here ${r}`:""}"></span>`)}</div><p class="meta">${l?`${n} · ${l}`:n}</p>`}};Ct.styles=[x,I,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);box-shadow:var(--roxy-shadow-sm);grid-template-columns:minmax(0,1fr);display:grid;overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.sub{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.row{gap:var(--roxy-space-xs,.25rem);padding:var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);grid-template-columns:minmax(0,1fr);display:grid}.row-top{align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold,600)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.35em}.pos{color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-sm,.875rem);font-variant-numeric:tabular-nums}.house{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-sm,4px);border:1px solid var(--roxy-border,#e4e4e7);padding:.1rem .45rem}.house.moon{border-color:var(--roxy-accent,#f59e0b)}.house.lagna{color:var(--roxy-muted,#71717a)}.contact-label{font-weight:var(--roxy-weight-bold,600);margin-right:.35em}.kaksha-bar{grid-template-columns:repeat(8,1fr);gap:2px;height:10px;margin:.15rem 0;display:grid}.seg{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);border-radius:2px}.seg.here{background:color-mix(in srgb, var(--roxy-muted,#71717a) 45%, transparent)}.seg.here.yes{background:color-mix(in srgb, var(--roxy-success,#16a34a) 55%, transparent)}.seg.here.no{background:color-mix(in srgb, var(--roxy-warning,#f59e0b) 55%, transparent)}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.num{font-variant-numeric:tabular-nums}.aspects{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-secondary,#475569);line-height:var(--roxy-leading-normal,1.5);margin:0}.key{padding:var(--roxy-space-md,1rem);border-top:2px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-sm,.5rem);display:grid}.key-title{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em;color:var(--roxy-muted,#71717a);margin:0}.key-item{font-size:var(--roxy-text-sm,.875rem);line-height:var(--roxy-leading-normal,1.5);margin:0}`],Ct=g([b("roxy-gochara-table")],Ct);var _l={varna:1,vashya:2,tara:3,yoni:4,"graha maitri":5,gana:6,bhakoot:7,nadi:8},At=class extends y{renderData(t){let e=(t.breakdown??[]).filter(h=>h?.category!==void 0),r=t.total??0,a=t.maxScore??36,n=r/a*100,l="color-mix(in srgb, var(--roxy-border) 50%, transparent)",d=n>=70?"var(--roxy-success)":n>=50?"var(--roxy-warning)":"var(--roxy-danger)",c=n*2.827,p=(100-n)*2.827;return s`<article class="card" part="card" aria-label="${this.t("Guna Milan score")}"><div class="score-header" part="header"><div class="score-info"><div class="score-bar" part="details"><div><span class="total">${v(this.effectiveLang(),t.total,1)}</span> <span class="over">/ ${t.maxScore}</span> ${typeof t.percentage=="number"?s`<small style="margin-left:.5rem;color:var(--roxy-muted)">${ae(this.effectiveLang(),t.percentage,1)}</small>`:i}</div><div class="verdict-wrap">${typeof t.isCompatible=="boolean"?s`<span class="verdict ${t.isCompatible?"yes":"no"}">${t.isCompatible?this.t("Compatible"):this.t("Not compatible")}</span>`:i} ${t.recommendation&&!this.hideReadings?s`<span class="recommendation">${t.recommendation}</span>`:i}</div></div></div><div class="score-ring" part="chart" role="meter" aria-label="${this.t("Guna Milan score")}" aria-valuemin="0" aria-valuemax="36" aria-valuenow="${r}"><svg viewBox="0 0 100 100" aria-hidden="true"><circle class="ring-track" cx="50" cy="50" r="45" fill="none" stroke="${l}" stroke-width="8"/><circle class="ring-fill" cx="50" cy="50" r="45" fill="none" stroke="${d}" stroke-width="8" stroke-dasharray="${c},${p}" stroke-linecap="round" transform="rotate(-90 50 50)"/><text x="50" y="50" text-anchor="middle" dominant-baseline="central" class="ring-text">${r}</text><text x="50" y="64" text-anchor="middle" dominant-baseline="central" class="ring-max">/${a}</text></svg></div></div>${e.length>0?s`<div class="table-scroll" part="table"><table><caption class="roxy-sr-only">${this.t("Guna Milan breakdown: each koota with the classification of person 1 and person 2, and the score it earned out of its maximum.")}</caption><thead><tr><th scope="col">${this.t("Koota")}</th><th scope="col">${this.t("Person 1")}</th><th scope="col">${this.t("Person 2")}</th><th scope="col" class="bar-col">${this.t("Progress")}</th><th scope="col" class="score">${this.t("Score")}</th></tr></thead><tbody>${e.map(h=>{let m=h.score??0,f=h.maxScore??Bl(h.category),C=f?m/f*100:0;return s`<tr><td>${h.category} ${h.description?s`<small>${h.description}</small>`:i}</td><td class="classification">${h.person1??""}</td><td class="classification">${h.person2??""}</td><td class="bar-cell bar-col"><div class="mini-bar"><span style="width:${C}%"></span></div></td><td class="score">${v(this.effectiveLang(),m,1)} / ${f}</td></tr>`})}</tbody></table></div>`:i} ${(t.doshas?.length??0)>0||(t.doshaCancellations?.length??0)>0?s`<div class="tags" part="details">${t.doshas?.map(h=>s`<span class="dosha">${h}</span>`)} ${t.doshaCancellations?.map(h=>s`<span class="cancel" title="${h.reason}">${this.t("{{dosha}} cancelled",{dosha:h.dosha})}</span>`)}</div>`:i} ${F(this.effectiveLang(),t.frame,this.translator)}</article>`}};At.styles=[x,I,u`.card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.card>*{min-width:0}.score-header{align-items:center;gap:1rem;display:flex}.score-info{flex:1;min-width:0}.table-scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}.score-bar{align-items:center;gap:var(--roxy-space-md,1rem);grid-template-columns:1fr auto;display:grid}.total{font-size:2.25rem;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);font-variant-numeric:tabular-nums;line-height:1}.over{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-base,1rem)}.verdict-wrap{justify-items:end;gap:var(--roxy-space-xs,.25rem);text-align:right;display:grid}.verdict{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:1px 10px}.verdict.yes{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.verdict.no{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.recommendation{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-secondary,#475569)}.score-ring{flex-shrink:0;width:120px;height:120px}.score-ring svg{width:100%;height:100%}.score-ring .ring-text{fill:var(--roxy-fg,#0a0a0a);font-size:22px;font-weight:700;font-family:var(--roxy-font-sans)}.score-ring .ring-max{fill:var(--roxy-muted,#71717a);font-size:10px;font-family:var(--roxy-font-sans)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}td small{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);margin-top:2px;line-height:1.5;display:block}td.classification{color:var(--roxy-secondary,#475569);white-space:nowrap}th.score{text-align:right}td.score{text-align:right;font-variant-numeric:tabular-nums;color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600)}td.bar-cell{width:22%}@container (width<=32rem){.bar-col{display:none}}@container (width<=26rem){.score-header{flex-direction:column-reverse;align-items:stretch}.score-ring{align-self:center}.score-ring .ring-text,.score-ring .ring-max{display:none}.score-bar{gap:var(--roxy-space-xs,.25rem);grid-template-columns:1fr}.verdict-wrap{text-align:left;justify-items:start}}.mini-bar{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);height:8px;overflow:hidden}.mini-bar>span{background:var(--roxy-accent,#f59e0b);height:100%;transition:width var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.tags{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.tags span{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.tags .dosha{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.tags .cancel{background:color-mix(in srgb, var(--roxy-success,#16a34a) 18%, transparent);color:var(--roxy-success-fg,#166534)}`],At=g([b("roxy-guna-milan")],At);function Bl(o){return o&&_l[o.toLowerCase()]||1}var Tt=class extends y{renderChart(t){let e=new Map;for(let l of t.channels??[]){let d=new Set(l.personAGates??[]),c=new Set(l.personBGates??[]);for(let p of[l.gateA,l.gateB]){if(p==null)continue;let h=e.get(p)??{left:!1,right:!1};h.left||=d.has(p),h.right||=c.has(p),e.set(p,h)}}let r=new Set((t.centers??[]).filter(l=>l.defined).map(l=>l.id)),a=new Map((t.centers??[]).map(l=>[l.id,l.name])),n=new Map;for(let l of t.channels??[]){let d=l.name;for(let c of[l.gateA,l.gateB]){if(c==null)continue;let p=e.get(c),h=[p?.left&&"A",p?.right&&"B"].filter(Boolean).join(" + ");n.set(c,[`Gate ${c}`,d,h].filter(Boolean).join(" · "))}}return s`<svg class="chart" part="chart" viewBox="${Jr}" preserveAspectRatio="xMidYMid meet" role="img" aria-label="Combined Human Design bodygraph for two charts, with each gate marked for the person who carries it"><title>Combined bodygraph</title>${Xr({definedCenters:r,gateSources:e,gateTitles:n,centerNames:a,stateWords:{defined:"Defined",open:"Open"}})}</svg><div class="legend" part="legend"><span><span class="swatch source src-left"></span>Person A</span> <span><span class="swatch source src-right"></span>Person B</span> <span><span class="swatch"></span>Open center</span></div>`}renderData(t){let e=t.channels??[],r=t.centers??[],a=r.filter(n=>n.defined).length;return s`<div class="wrap" part="card" aria-label="Human Design connection"><header class="head" part="header"><h2 class="title">Connection</h2>${typeof t.totalChannels=="number"?s`<span class="count">${t.totalChannels} channels</span>`:i}</header>${this.renderChart(t)} ${$e([{label:"Channels",value:t.totalChannels?.toString()},{label:"Combined definition",value:t.combinedDefinition?_(String(t.combinedDefinition)):void 0},{label:"Centers defined",value:r.length>0?`${a} of ${r.length}`:void 0}])} ${this.hideReadings?i:s`<p class="lead">A connection chart reads the two charts as one bodygraph. Wherever the two of them together hold both gates of a channel, that channel is defined between them, and the centers it joins are defined in the connection whether or not either person defines them alone.</p>`} ${this.renderDynamics(t.summary)} ${this.renderCenters(r)} ${this.renderChannels(e,r)}</div>`}renderDynamics(t){if(!t)return i;let e=[{label:"Electromagnetic",aside:xa(t.electromagnetic),body:"Each person holds one of the two gates, so the channel completes only when they are together. The classic point of attraction."},{label:"Dominance",aside:xa(t.dominance),body:"One person holds both gates and the other holds neither, so the conditioning runs one way, from the person who carries the channel to the person who does not."},{label:"Compromise",aside:xa(t.compromise),body:"One person holds both gates and the other holds a single hanging gate of the same channel, so the channel is complete for one of them and half open for the other."},{label:"Companionship",aside:xa(t.companionship),body:"Both people independently hold both gates, so neither needs the other to complete it. A shared and familiar frequency rather than an attraction."}];return this.renderInterpretation(e,"hd-connection-dynamic","Dynamics")}renderCenters(t){return t.length===0?i:s`<section class="block" part="section centers"><h3>Centers</h3>${this.hideReadings?i:s`<p class="note">Defined is the state of the combined chart. Beside it is who already defines that center in their own chart. A center defined only together is what the connection itself creates: it is there when the two are together and gone when they are apart. The combined definition counts how the defined centers hang together, so Single is one connected piece and a split is more than one.</p>`} ${t.map(e=>{let r=e.definedBy??[],a=r.includes("A"),n=r.includes("B"),l=!!e.defined&&!a&&!n;return s`<div class="row"><span class="cname">${e.name??_(String(e.id??""))}</span> <span class="badge ${e.defined?l?"together":"defined":"open"}">${e.defined?l?"Only together":"Defined":"Open"} </span><span class="who">${Il(!!e.defined,a,n)}</span></div>`})}</section>`}renderChannels(t,e){if(t.length===0)return i;let r=new Map(e.map(n=>[String(n.id??""),n.name??""])),a=n=>r.get(n)||_(n);return s`<section class="block" part="section channels"><h3>Channels</h3><div class="scroll" part="table" tabindex="0" role="region" aria-label="Connection channels"><table role="table"><caption class="roxy-sr-only">Connection channels: each channel with its gates, the centers it links, its circuit and dynamic, and the gates person A and person B each hold.</caption><thead><tr><th scope="col">Channel</th><th scope="col">Gates</th><th scope="col">Centers</th><th scope="col">Circuit</th><th scope="col">Dynamic</th><th scope="col">Person A holds</th><th scope="col">Person B holds</th></tr></thead><tbody>${t.map(n=>s`<tr><td>${n.name??""}</td><td class="gates">${n.gateA}-${n.gateB}</td><td>${(n.centers??[]).map(a).join(" to ")}</td><td>${n.circuit??""}</td><td>${n.dynamic?s`<span class="dyn">${n.dynamic}</span>`:i}</td><td class="held">${mo(n.personAGates)}</td><td class="held">${mo(n.personBGates)}</td></tr>`)}</tbody></table></div></section>`}};Tt.styles=[x,M,O,Pe,Qr,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.count{color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);font-variant-numeric:tabular-nums}.note{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:1.6}.row{align-items:center;gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-sm,.5rem) 0;border-bottom:1px solid var(--roxy-border,#e4e4e7);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;display:flex}.row:last-child{border-bottom:none}.cname{flex:1;min-width:8rem}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:1px 8px;display:inline-flex}.badge.defined{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.badge.open{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a)}.badge.together{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-fg,#0a0a0a)}.who{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{text-align:left;padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr:last-child td{border-bottom:none}.gates{font-variant-numeric:tabular-nums;color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.dyn{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-fg,#0a0a0a);padding:1px 8px;display:inline-block}.held{font-variant-numeric:tabular-nums}.scroll{min-width:0;overflow-x:auto}.wrap{--src-left:#1f6fb2;--src-right:#b04e14;--src-ink:#fff}`],Tt=g([b("roxy-hd-connection")],Tt);function xa(o){if(typeof o=="number")return o===0?"None":o===1?"1 channel":`${o} channels`}function mo(o){let t=o??[];return t.length>0?t.join(", "):"Neither"}function Il(o,t,e){return t&&e?"Defined in both charts":t?"Defined by A":e?"Defined by B":o?"Defined by neither alone, only by the connection":"Open in both charts"}var us=360,jl=470,ys=8,uo=us-ys*2,va=48,Rr=15,gs=7,ho=16,ba=[{id:"throat",label:"Throat",y:0},{id:"g",label:"G",y:211},{id:"sacral",label:"Sacral",y:422}],yo=`0 0 ${us} ${jl}`;function Hl(o,t){return ys+uo*(o*2+1)/(t*2)}function fo(o){return wr[o.gateA]==="throat"||wr[o.gateB]==="throat"}function Fl(o){return(fo(o)?wr[o.gateA]==="throat":wr[o.gateA]==="g")?o.gateA:o.gateB}function Kl(){return ba.map(o=>L`<g>
|
|
85
|
-
<rect class="pn-bar" x=${
|
|
86
|
-
<text class="pn-bar-label" x=${
|
|
87
|
-
</g>`)}function
|
|
88
|
-
<circle class="pn-badge" cx=${o+Rr+
|
|
89
|
-
<text class="pn-badge-text" x=${o+Rr+
|
|
90
|
-
</g>`)}function
|
|
81
|
+
`}function Cl(o,t){let e=o.lagnaSign.toLowerCase();return L`
|
|
82
|
+
${Sl(o.divisionLabel)}
|
|
83
|
+
${Z.map(r=>Rl(r,o.placements[r.toLowerCase()]??[],r.toLowerCase()===e,cs(r,o.lagnaSign),t))}
|
|
84
|
+
`}function so(o){return ls(o.lagnaSign)!==-1}function Al(o,t){let e=Object.values(o.placements).flat(),r=[];return e.some(a=>a.isRetrograde)&&r.push(`${eo} ${t("retrograde")}`),e.some(a=>a.combust)&&r.push(`${to} ${t("combust")}`),e.some(a=>a.war)&&r.push(`${ro} ${t("planetary war")}`),r.length===0?i:s`<p class="roxy-frame">${r.join(" · ")}</p>`}function Tl(o){return s`<p class="roxy-frame">${o("No ascendant in this chart, so the houses are not numbered.")}</p>`}function da(o,t){let e=[];so(o)||e.push(Tl(t));let r=Al(o,t);return r!==i&&e.push(r),e}function ca(o,t,e){if(t==="north"&&!so(o))return Qn(o,e);switch(t){case"north":return $l(o,e);case"east":return Cl(o,e);default:return Qn(o,e)}}function pa(o,t,e){return se({items:ml.map(({id:r,source:a})=>({id:r,label:e(a)})),active:o,onSelect:t,label:e("Kundli style"),idPrefix:"kundli",controls:!0})}var ma=u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);display:grid}.header{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}svg{width:100%;max-width:var(--roxy-chart-max-width,560px);aspect-ratio:1;height:auto;margin:0 auto;display:block}.line{fill:#0000;stroke:var(--roxy-border,#d4d4d8)}.sign-text{fill:var(--roxy-muted,#71717a);font-size:11px;font-weight:500;font-family:var(--roxy-font-sans);text-transform:uppercase;letter-spacing:.04em}.rashi-num{fill:var(--roxy-muted,#71717a);font-size:12px;font-weight:500;font-family:var(--roxy-font-sans)}.house-num{fill:var(--roxy-accent-ink,#b45309);font-size:11px;font-weight:600;font-family:var(--roxy-font-sans);opacity:.85}.planet-text{fill:var(--roxy-fg,#0a0a0a);font-size:13px;font-weight:600;font-family:var(--roxy-font-sans)}.centre-label{fill:var(--roxy-muted,#71717a);font-size:14px;font-weight:600;font-family:var(--roxy-font-sans);letter-spacing:.02em}.lagna-marker{fill:var(--roxy-accent-ink,#b45309);font-size:10px;font-weight:700;font-family:var(--roxy-font-sans);letter-spacing:.08em;text-transform:uppercase}.lagna-bg{fill:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent)}.lagna-slash{stroke:var(--roxy-accent,#f59e0b);stroke-linecap:round;opacity:.7}`;var Be=class extends y{constructor(){super(...arguments);this.chartStyle="north";this.setStyle=e=>{this.chartStyle=e}}viewModel(){if(!this.data?.chart?.meta)return null;let{division:e}=this.data,r=`D${e.number} ${e.name}`;return la(this.data.chart.meta,{divisionLabel:r})}renderData(e){let r=this.viewModel();if(!r)return this.renderEmpty();let{division:a,vargottama:n}=e;return s`<div class="wrap" part="card"><div class="header" part="header"><div><h2 class="title">D${a.number} ${a.name} ${Ya(a.name,a.sanskritName)?s`<span class="division-meta">· ${a.sanskritName}</span>`:i}</h2>${a.significance?s`<p class="significance">${a.significance}</p>`:i} ${F(this.effectiveLang(),e.frame,this.translator)} ${da(r,this.translator)}</div>${pa(this.chartStyle,this.setStyle,this.translator)}</div><div id="kundli-panel-${this.chartStyle}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="kundli-tab-${this.chartStyle}"><svg viewBox="0 0 400 400" preserveAspectRatio="xMidYMid meet" part="chart" role="img" aria-label="${this.t("{{chart}} divisional chart with twelve sign houses",{chart:`D${a.number} ${a.name}`})}"><title>D${a.number} ${a.name}</title>${ca(r,this.chartStyle,this.translator)}</svg></div>${n&&n.length>0?s`<div class="vargottama-row" part="details" role="list" aria-label="${this.t("Vargottama planets")}"><span class="vargottama-label">${this.t("Vargottama")}:</span> ${n.map(l=>s`<span class="vargottama-pill" role="listitem">${R(l)??""} ${l}</span>`)}</div>`:i}</div>`}};Be.styles=[x,I,ma,ee,u`.division-meta{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);margin:0}.significance{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);border-left:2px solid var(--roxy-border,#e4e4e7);padding-left:var(--roxy-space-sm,.5rem);margin:0}.vargottama-row{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;align-items:center;display:flex}.vargottama-label{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);margin-right:var(--roxy-space-xs,.25rem);font-weight:500}.vargottama-pill{font-size:var(--roxy-text-sm,.875rem);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 22%, transparent);color:var(--roxy-fg,#0a0a0a);border:1px solid color-mix(in srgb, var(--roxy-accent,#f59e0b) 45%, transparent);border-radius:999px;align-items:center;gap:.2em;padding:.15em .6em;font-weight:600;display:inline-flex}`],g([S({type:String,reflect:!0,attribute:"chart-style"})],Be.prototype,"chartStyle",2),Be=g([b("roxy-divisional-chart")],Be);var Dl={manglik:"Mangal Dosha",kalsarpa:"Kaal Sarp Dosha",sadhesati:"Sade Sati"},Ie=class extends y{constructor(){super(...arguments);this.type="manglik"}renderData(e){let r=!!e.present,a=Dl[this.type]??this.type,n=(e.severity??"").toLowerCase(),l=n==="severe"?3:n==="moderate"?2:n==="mild"?1:0,d=l*33,c=l===3?"var(--roxy-danger)":l>=1?"var(--roxy-warning)":"transparent";return s`<article class="card" part="card" aria-label="${a}"><header class="head" part="header"><h2 class="title">${a}</h2><span class="${`badge ${r?"present":"absent"}`}">${r?this.t("Present"):this.t("Absent")} </span>${F(this.effectiveLang(),e.frame,this.translator)}</header>${"type"in e&&e.type?s`<p class="subtype"><span class="subtype-label">${this.type==="sadhesati"?this.t("Current phase"):this.t("Type")}</span>${e.type}</p>`:i} ${e.severity?s`<div class="severity-bar" part="details" role="meter" aria-valuemin="0" aria-valuemax="3" aria-valuenow="${l}" aria-label="${this.t("Severity")} ${e.severity}"><span class="severity-fill" style="width:${d}%;background:${c}"></span></div>`:i} ${e.description&&!this.hideReadings?s`<p class="description">${e.description}</p>`:i} ${this.renderEffects(e)} ${e.remedies&&e.remedies.length>0&&!this.hideReadings?s`<div part="section remedies"><h3>${this.t("Remedies")}</h3><ul>${e.remedies.map(p=>s`<li>${p}</li>`)}</ul></div>`:i} ${"exceptions"in e&&e.exceptions&&e.exceptions.length>0&&!this.hideReadings?s`<div part="section exceptions"><h3>${this.t("Exceptions")}</h3><ul>${e.exceptions.map(p=>s`<li>${p}</li>`)}</ul></div>`:i}</article>`}renderEffects(e){if(!e.effects||this.hideReadings)return i;let r=[];for(let[a,n]of Object.entries(e.effects))if(typeof n=="string"&&n.length>0)r.push(s`<div><h3>${a}</h3><p>${n}</p></div>`);else if(n&&typeof n=="object")for(let[l,d]of Object.entries(n))typeof d=="string"&&d.length>0&&r.push(s`<div><h3>${l}</h3><p>${d}</p></div>`);return r.length===0?i:s`<div class="effects" part="section effects">${r}</div>`}};Ie.styles=[x,I,u`.card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;margin:0}.subtype{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0}.subtype .subtype-label{color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-size:var(--roxy-text-xs,.75rem);margin-right:.4rem}.badge{align-items:center;gap:var(--roxy-space-xs,.25rem);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em;padding:4px 10px;display:inline-flex}.badge.absent{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.badge.present{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.severity-bar{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 30%, transparent);border-radius:4px;width:100%;height:8px;position:relative;overflow:hidden}.severity-fill{height:100%;transition:width var(--roxy-motion-duration,.2s) ease-out;border-radius:4px;display:block}@media (prefers-reduced-motion:reduce){.severity-fill{transition:none}}.description{color:var(--roxy-fg,#0a0a0a);margin:0}h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}ul{padding-left:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);margin:0}.effects{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.effects p{font-size:var(--roxy-text-sm,.875rem);margin:0}`],g([S({type:String,reflect:!0})],Ie.prototype,"type",2),Ie=g([b("roxy-dosha-card")],Ie);var wt=class extends y{renderData(t){return s`<article class="card" part="card" aria-label="${t.name??this.t("Dream symbol")}"><header class="head" part="header">${t.letter?s`<span class="letter" aria-hidden="true">${t.letter}</span>`:i}<div><p class="label">${this.t("Dream symbol")}</p>${t.name?s`<h2 class="name">${t.name}</h2>`:i}</div></header>${t.meaning?s`<p class="meaning">${t.meaning}</p>`:i}</article>`}};wt.styles=[x,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.letter{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);width:2.5rem;height:2.5rem;color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-variant-numeric:tabular-nums;flex:none;justify-content:center;align-items:center;display:inline-flex}.label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.name{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.meaning{color:var(--roxy-fg,#0a0a0a);margin:0;line-height:1.6}`],wt=g([b("roxy-dream-card")],wt);var kt=class extends y{renderData(t){let e=t.symbols??[];if(e.length===0)return this.renderEmpty();let r=typeof t.total=="number"?t.total:e.length;return s`<section class="wrap" part="card" aria-label="${this.t("Dream symbols")}"><header class="head" part="header"><h2 class="title">${this.t("Dream symbols")}</h2><span class="count">${this.t("{{count}} matches",{count:r})}</span></header><ul class="grid" part="section symbols">${e.map(a=>s`<li><button type="button" class="result" @click="${()=>this.select(a)}">${a.letter?s`<span class="letter" aria-hidden="true">${a.letter}</span>`:i} <span class="name">${a.name}</span></button></li>`)}</ul></section>`}select(t){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:{id:t.id,name:t.name,letter:t.letter},bubbles:!0,composed:!0}))}};kt.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.count{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.grid{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fill,minmax(8rem,1fr));margin:0;padding:0;list-style:none;display:grid}.result{align-items:center;gap:var(--roxy-space-sm,.5rem);text-align:left;width:100%;font:inherit;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);cursor:pointer;background:0 0;transition:border-color .12s,background .12s;display:flex}.result:hover,.result:focus-visible{border-color:var(--roxy-accent,#f59e0b);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent);outline:none}.letter{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);width:1.6rem;height:1.6rem;color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;flex:none;place-items:center;display:grid}.name{font-size:var(--roxy-text-sm,.875rem);font-weight:500}`],kt=g([b("roxy-dream-search")],kt);var El=12,ms=["latitude","longitude","timezone"],hs=["latitude","longitude"];function Ml(o){let t=o.match(/^(.+?)(Latitude|Longitude)$/);return t?{group:t[1],leaf:t[2].toLowerCase()}:null}var zl=Z.map(o=>o.toLowerCase());function ha(o,t){if(o){if("$ref"in o&&o.$ref){let e=o.$ref.split("/").pop();return e?t[e]:void 0}return o}}function no(o){let t=o.anyOf??o.oneOf;return!t||t.length===0?o:t.find(e=>Array.isArray(e.enum))??t.find(e=>ps(e)&&ps(e)!=="null")??t[0]??o}function ps(o){if(typeof o.type=="string")return o.type;if(!Array.isArray(o.type))return;let t=o.type.filter(e=>e!=="null");return t.length===1?t[0]:void 0}function Pl(o){let t=no(o),e=ps(t);return Array.isArray(t.enum)?t.enum.length<=El?"tiles":"select":e==="boolean"?"toggle":t.format==="date"?"date":t.format==="time"?"time":t.format==="date-time"?"datetime":e==="integer"||e==="number"?"number":e==="string"?"text":e==="array"?"array":null}function oo(o){if(o.length!==12)return!1;let t=new Set(o.map(e=>e.toLowerCase()));return zl.every(e=>t.has(e))}function ga(o,t,e){let r=no(t);return{key:e.key,name:o,group:e.group,inQuery:e.inQuery,kind:Pl(t)??"text",required:e.required,description:r.description??t.description,enum:r.enum,min:r.minimum,max:r.maximum,default:t.default??r.default,example:t.example??r.example}}function io(o,t,e){let r=[],a=!1,n=o.requestBody?.content?.["application/json"]?.schema,l=ha(n,t);if(l?.properties){let d=new Set(l.required??[]);for(let[c,p]of Object.entries(l.properties)){let h=ha(p,t)??{};if(h.type==="object"&&h.properties){let m=new Set(h.required??[]);for(let[f,C]of Object.entries(h.properties)){let w=ha(C,t)??{};r.push(ga(f,w,{key:`${c}.${f}`,group:c,required:d.has(c)&&m.has(f)}))}}else{let m=Ml(c);r.push(m?ga(m.leaf,h,{key:c,group:m.group,required:d.has(c)}):ga(c,h,{key:c,required:d.has(c)}))}}}for(let d of o.parameters??[]){if(d.in!=="path"&&d.in!=="query")continue;if(d.name==="lang"&&d.in==="query"){a=!0;continue}let c=ha(d.schema,t)??{};r.push(ga(d.name,c,{key:d.name,required:!!d.required,inQuery:d.in==="query"}))}return{title:Nl(o.summary,e),fields:r,hasLang:a}}function Nl(o,t){let e=o?.split(" - ")[0]?.trim();return e||O(t.split("/").pop()??"")}function lo(o){let t=o.toLowerCase();return/compat|synastry|guna|connection|penta|composite/.test(t)?"Compare":/\bcast\b|\/draw|iching|hexagram|tarot/.test(t)?"Cast":/horoscope|dream|angel|nakshatra|crystal|meaning|reference/.test(t)?"Get reading":"Generate"}function co(o,t){let e=t.replace(/^\//,"").replace(/[{}]/g,"").replace(/\//g,"-");return`${o.toLowerCase()}--${e}.json`}var ua="0.31.1";var po="https://roxyapi.com/api/v2/openapi.json",Gl=`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${ua}/dist/schemas`,gs=new Map,ya=class extends Error{constructor(e){super(`HTTP ${e}`);this.status=e}},fa=class extends Error{constructor(e,r){super(`Endpoint ${e} ${r} not found in OpenAPI spec`);this.method=e;this.path=r}};async function _l(o){let t=gs.get(o);return t||(t=fetch(o).then(async e=>{if(!e.ok)throw new ya(e.status);return await e.json()}).catch(e=>{throw gs.delete(o),e}),gs.set(o,t)),t}function Ol(){return globalThis.crypto?.randomUUID?.()??Math.random().toString(36).slice(2)}function Bl(o){let t=o.trim();if(!t)return[];try{let e=JSON.parse(t);if(Array.isArray(e))return e}catch{}return t.split(",").map(e=>e.trim()).filter(Boolean)}var X=class extends De{constructor(){super(...arguments);this.endpoint="vedic-astrology/birth-chart";this.method="POST";this.specUrl="";this.submitLabel="";this.fields=[];this.formTitle="";this.hasLang=!1;this.values={};this.loaded=!1;this.specError=null;this.validationErrors=[];this.retryLoadSchema=()=>{this.loaded=!1,this.specError=null,this.loadSchema()};this.onSubmit=e=>{e.preventDefault(),this.submit()}}connectedCallback(){super.connectedCallback(),this.loadSchema()}async loadSchema(){this.specError=null;try{this.applyModel(await this.resolveModel())}catch(e){this.specError=this.specErrorMessage(e),this.loaded=!0,this.dispatchEvent(new CustomEvent("roxy-spec-error",{detail:{url:this.specUrl||po,message:e instanceof Error?e.message:String(e)},bubbles:!0,composed:!0}))}}specErrorMessage(e){return e instanceof ya?this.t("HTTP error {{status}}",{status:e.status}):e instanceof fa?this.t("Endpoint {{method}} {{path}} not found in OpenAPI spec",{method:e.method,path:e.path}):e instanceof Error?e.message:String(e)}async resolveModel(){return this.specUrl?this.modelFromSpec(this.specUrl):await this.tryLoadSlice()??this.modelFromSpec(po)}async modelFromSpec(e){let r=await _l(e),a=`/${this.endpoint.replace(/^\//,"")}`,n=r.paths?.[a]?.[this.method.toLowerCase()];if(!n)throw new fa(this.method,a);return io(n,r.components?.schemas??{},this.endpoint)}async tryLoadSlice(){try{let e=await fetch(`${Gl}/${co(this.method,this.endpoint)}`);return e.ok?await e.json():null}catch{return null}}applyModel(e){this.fields=e.fields,this.formTitle=e.title,this.hasLang=e.hasLang;let r={};for(let a of e.fields){a.default!==void 0&&(r[a.key]=a.default);let n=a.group?this.initialValues?.[a.group]?.[a.name]:this.initialValues?.[a.name];n!==void 0&&(r[a.key]=n)}this.values=r,this.loaded=!0}setValue(e,r){this.values={...this.values,[e]:r}}roleOf(e){return e.name==="seed"?"seed":(e.name==="limit"||e.name==="offset")&&!e.required?"hidden-default":ms.includes(e.name)&&this.groupHasLocation(e.group)||e.name==="timezone"&&this.locationGroups().some(r=>this.timezoneFieldFor(r)?.key===e.key)?"location":"normal"}isRendered(e){return this.roleOf(e)==="normal"}groupKeys(){let e=[];for(let r of this.fields)e.includes(r.group)||e.push(r.group);return e}groupHasLocation(e){let r=this.fields.filter(a=>a.group===e);return hs.every(a=>r.some(n=>n.name===a))}locationGroups(){return this.groupKeys().filter(e=>this.groupHasLocation(e))}timezoneFieldFor(e){let r=this.fields.find(a=>a.group===e&&a.name==="timezone");if(r)return r;if(this.locationGroups()[0]===e)return this.fields.find(a=>a.group===void 0&&a.name==="timezone")}locationRequired(e){let r=this.fields.filter(a=>a.group===e);return ms.some(a=>r.some(n=>n.name===a&&n.required))}groupIsRequired(e){return this.groupHasLocation(e)||this.fields.some(r=>r.group===e&&r.required)}get singleEnumField(){if(this.groupKeys().some(a=>this.groupHasLocation(a))||this.groupKeys().some(a=>a!==void 0))return null;let e=this.fields.filter(a=>a.required&&this.isRendered(a)),r=e[0];return e.length!==1||!r?null:r.kind==="tiles"||r.kind==="select"?r:null}effectiveSubmitLabel(){return this.submitLabel||this.t(lo(this.endpoint))}requestLang(){return an(this)}fieldText(e){return fe(this.requestLang(),e)}optionText(e,r){return Fn(this.requestLang(),e,r)}onLocationFor(e){return r=>{let a=r.detail;if(!a)return;let n=h=>this.fields.find(m=>m.group===e&&m.name===h)?.key,l={...this.values},d=n("latitude"),c=n("longitude");d&&(l[d]=a.latitude),c&&(l[c]=a.longitude);let p=this.timezoneFieldFor(e);p&&(l[p.key]=a.timezone??a.utcOffset),this.values=l}}selectTile(e,r){this.setValue(e.key,r),this.singleEnumField?.key===e.key&&this.submit()}onTilesKeyDown(e){return r=>{let a=e.enum??[];if(a.length===0)return;let n=a.indexOf(this.values[e.key]),l;if(r.key==="Home")l=0;else if(r.key==="End")l=a.length-1;else if(r.key==="ArrowRight"||r.key==="ArrowDown")l=n===-1?0:(n+1)%a.length;else if(r.key==="ArrowLeft"||r.key==="ArrowUp")l=n===-1?a.length-1:(n-1+a.length)%a.length;else return;r.preventDefault();let d=a[l];if(d===void 0)return;this.selectTile(e,d);let c=r.currentTarget;requestAnimationFrame(()=>c.querySelector(`[data-tile='${l}']`)?.focus())}}submit(){let e=this.collectMissing();if(e.keys.length>0){this.validationErrors=e.labels,this.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{missing:e.keys},bubbles:!0,composed:!0}));return}this.validationErrors=[];let r={};for(let l of this.fields){let d=this.values[l.key];if(l.name==="seed"&&(d===void 0||d==="")&&(d=Ol()),!(d===void 0||d===""))if(l.kind==="array"&&typeof d=="string"&&(d=Bl(d)),l.group){let c=r[l.group]??{};c[l.name]=d,r[l.group]=c}else r[l.name]=d}let a=this.fields.filter(l=>l.inQuery).map(l=>l.name),n=this.requestLang();this.hasLang&&n&&(r.lang=n,a.push("lang")),this.dispatchEvent(new CustomEvent("roxy-submit",{detail:{endpoint:this.endpoint,values:r,queryKeys:a,sticky:this.singleEnumField!=null},bubbles:!0,composed:!0}))}collectMissing(){let e=[],r=[],a=new Set;for(let n of this.fields){if(!n.required)continue;let l=this.roleOf(n)==="location";if(!this.isRendered(n)&&!l)continue;let d=this.values[n.key];if(!(d!==void 0&&d!=="")){if(e.push(n.key),l){a.add(n.group);continue}r.push(n.group?`${this.groupName(n.group)} ${this.fieldText(n.name)}`:this.fieldText(n.name))}}for(let n of a)r.push(this.locationLabel(n));return{keys:e,labels:r}}reqMark(e){return e.required?s`<span class="req" aria-hidden="true">*</span>`:i}description(e){if(!e.description)return i;if(e.description.length<=120)return s`<small class="help">${e.description}</small>`;let r=e.description.split(". ")[0]??e.description;return s`<details class="help-details"><summary><span class="help-lead">${r}</span>${j()}</summary><small class="help help-full">${e.description}</small></details>`}renderTiles(e){let r=`roxy-form-${e.key}-label`,a=!!e.enum&&oo(e.enum),n=e.enum??[],l=n.indexOf(this.values[e.key]),d=l===-1?0:l;return s`<div class="field tiles-field"><span class="label" id="${r}">${this.fieldText(e.name)}${this.reqMark(e)}</span><div class="tiles" role="radiogroup" aria-labelledby="${r}" @keydown="${this.onTilesKeyDown(e)}">${n.map((c,p)=>{let h=this.values[e.key]===c,m=a?z(c):void 0;return s`<button type="button" class="tile" role="radio" data-tile="${p}" aria-checked="${h?"true":"false"}" tabindex="${p===d?"0":"-1"}" @click="${()=>this.selectTile(e,c)}">${m?s`<span class="tile-glyph" aria-hidden="true">${m}</span>`:i} <span class="tile-label">${this.optionText(e.name,c)}</span></button>`})}</div>${this.description(e)}</div>`}renderSelect(e){let r=`roxy-form-${e.key}`;return s`<div part="field" class="field"><label for="${r}">${this.fieldText(e.name)}${this.reqMark(e)}</label> <select id="${r}" ?required="${e.required}" @change="${a=>this.setValue(e.key,a.target.value)}"><option value="">${this.t("Choose")}</option>${(e.enum??[]).map(a=>s`<option value="${a}" ?selected="${this.values[e.key]===a}">${this.optionText(e.name,a)}</option>`)}</select> ${this.description(e)}</div>`}renderToggle(e){let r=`roxy-form-${e.key}`,a=this.values[e.key]===!0;return s`<div part="field" class="field"><div class="toggle-row"><button type="button" id="${r}" class="toggle" role="switch" aria-checked="${a?"true":"false"}" @click="${()=>this.setValue(e.key,!a)}"><span class="knob"></span></button> <label class="toggle-label" for="${r}">${this.fieldText(e.name)}${this.reqMark(e)}</label></div>${this.description(e)}</div>`}renderInput(e){let r=`roxy-form-${e.key}`,a=e.kind==="datetime"?"datetime-local":e.kind==="number"?"number":e.kind,n=e.kind==="array"?this.t("Comma separated"):e.example!=null?String(e.example):"";return s`<div part="field" class="field"><label for="${r}">${this.fieldText(e.name)}${this.reqMark(e)}</label> <input id="${r}" type="${e.kind==="array"?"text":a}" ?required="${e.required}" min="${oe(e.min)}" max="${oe(e.max)}" step="${e.kind==="number"?"any":i}" placeholder="${n||i}" .value="${this.values[e.key]??""}" @input="${l=>this.setValue(e.key,this.coerce(e.kind,l.target.value))}"> ${this.description(e)}</div>`}renderField(e){switch(e.kind){case"tiles":return this.renderTiles(e);case"select":return this.renderSelect(e);case"toggle":return this.renderToggle(e);default:return this.renderInput(e)}}locationFillList(e){let r=[...hs];return this.timezoneFieldFor(e)&&r.push("timezone"),r.join(", ")}groupName(e){return this.t(O(e))}locationLabel(e){return e?this.t("{{group}} location",{group:this.groupName(e)}):this.t("Birth location")}locationBlock(e){return s`<div class="location-block"><label>${this.locationLabel(e)}${this.locationRequired(e)?s`<span class="req" aria-hidden="true">*</span>`:i}</label><roxy-location-search publishable-key="${oe(this.publishableKey)}" lang="${oe(this.effectiveLang())}" @roxy-location-select="${this.onLocationFor(e)}" placeholder="${e?this.t("{{group}} city",{group:this.groupName(e)}):this.t("City of birth")}"></roxy-location-search><small class="help">${this.t("Fills {{fields}}. Pick a city to autofill.",{fields:this.locationFillList(e)})}</small></div>`}groupCard(e){let r=this.fields.filter(a=>a.group===e&&this.isRendered(a));return s`<fieldset part="group" class="person-group"><legend>${this.groupName(e)}</legend>${this.groupHasLocation(e)?this.locationBlock(e):i}<div class="fields">${r.map(a=>this.renderField(a))}</div></fieldset>`}render(){if(!this.loaded)return s`<form><div class="roxy-skeleton" style="height:8rem"></div></form>`;if(this.specError)return s`<div class="spec-error" role="alert">${this.t("Schema load failed: {{message}}",{message:this.specError})} <button type="button" class="submit" @click="${this.retryLoadSchema}">${this.t("Retry")}</button></div>`;let e=this.fields.filter(p=>!p.group&&this.isRendered(p)),r=e.filter(p=>p.required),a=e.filter(p=>!p.required),n=this.groupKeys().filter(p=>p!==void 0),l=n.filter(p=>this.groupIsRequired(p)),d=n.filter(p=>!this.groupIsRequired(p)),c=a.length>0||d.length>0;return s`<form @submit="${this.onSubmit}"><h2 part="title" class="title">${this.formTitle}</h2>${this.validationErrors.length>0?s`<div part="validation-error" class="validation-error" role="alert"><strong>${this.t("Please complete:")}</strong> ${this.validationErrors.join(", ")}</div>`:i}<div class="fields">${r.map(p=>this.renderField(p))}</div>${this.groupHasLocation(void 0)?this.locationBlock(void 0):i} ${l.map(p=>this.groupCard(p))} ${c?s`<details part="advanced" class="advanced"><summary>${this.t("Advanced")}${j()}</summary><div class="fields">${a.map(p=>this.renderField(p))}</div>${d.map(p=>this.groupCard(p))}</details>`:i} ${this.singleEnumField?i:s`<button part="submit" class="submit" type="submit">${this.effectiveSubmitLabel()}</button>`}</form>`}coerce(e,r){if(r!==""){if(e==="number"){let a=Number(r);return Number.isFinite(a)?a:void 0}return r}}};X.styles=[x,M,u`form{gap:var(--roxy-space-md,1rem);background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.fields{align-items:start;gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.fields:empty{display:none}.person-group{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);gap:var(--roxy-space-md,1rem);min-inline-size:0;margin:0;display:grid}.person-group legend{padding:0 var(--roxy-space-xs,.25rem);font-weight:var(--roxy-weight-bold,600)}.field{gap:var(--roxy-space-xs,.25rem);flex-direction:column;min-width:0;display:flex}.tiles-field{grid-column:1/-1}label,.label{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-secondary,#475569)}.req{color:var(--roxy-danger-fg,#991b1b);margin-left:4px}input,select{box-sizing:border-box;width:100%;padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a);background:var(--roxy-bg,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);font-family:inherit}input:focus,select:focus{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-color:var(--roxy-accent-ink,#b45309)}.help{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.help-details>summary{cursor:pointer;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);align-items:center;gap:4px;display:flex}.help-details .help-lead{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.help-details .help-full{margin-top:var(--roxy-space-xs,.25rem);display:block}.location-block{gap:var(--roxy-space-xs,.25rem);grid-column:1/-1;display:grid}.tiles{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(5.5rem,1fr));display:grid}.tile{min-height:44px;padding:var(--roxy-space-sm,.5rem);background:var(--roxy-bg,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-fg,#0a0a0a);font-family:inherit;font-size:var(--roxy-text-sm,.875rem);cursor:pointer;transition:border-color var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease), background-color var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-direction:column;justify-content:center;align-items:center;gap:2px;display:flex}.tile:hover{border-color:var(--roxy-accent,#f59e0b)}.tile[aria-checked=true]{border-color:var(--roxy-accent,#f59e0b);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 12%, transparent);color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.tile:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.tile-glyph{font-size:1.35em;line-height:1}.toggle-row{align-items:center;gap:var(--roxy-space-sm,.5rem);display:flex}.toggle{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);background:var(--roxy-border,#e4e4e7);cursor:pointer;width:44px;height:26px;transition:background-color var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-shrink:0;padding:0;position:relative}.toggle[aria-checked=true]{background:var(--roxy-accent,#f59e0b);border-color:var(--roxy-accent,#f59e0b)}.toggle .knob{background:var(--roxy-bg,#fff);width:20px;height:20px;transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);border-radius:50%;position:absolute;top:2px;left:2px}.toggle[aria-checked=true] .knob{transform:translate(18px)}.toggle:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.toggle-label{cursor:pointer}@media (prefers-reduced-motion:reduce){.tile,.toggle,.toggle .knob{transition:none}}.advanced{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.advanced>summary{cursor:pointer;font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);align-items:center;gap:6px;display:flex}.advanced[open]>summary{margin-bottom:var(--roxy-space-md,1rem)}.advanced .fields,.advanced .person-group{margin-top:var(--roxy-space-md,1rem)}.validation-error{gap:var(--roxy-space-xs,.25rem);padding:var(--roxy-space-md,1rem);background:color-mix(in srgb, var(--roxy-danger,#dc2626) 8%, transparent);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);display:grid}button.submit{background:var(--roxy-accent-ink,#b45309);color:var(--roxy-bg,#fff);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-lg,1.5rem);font-size:var(--roxy-text-base,1rem);font-weight:var(--roxy-weight-bold,600);cursor:pointer;transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));border:0;justify-self:start}button.submit:hover{transform:scale(1.02)}button.submit:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}@media (prefers-reduced-motion:reduce){button.submit{transition:none}}.spec-error{gap:var(--roxy-space-md,1rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);justify-items:start;display:grid}`],g([S({type:String,attribute:"data-endpoint"})],X.prototype,"endpoint",2),g([S({type:String})],X.prototype,"method",2),g([S({type:String,attribute:"spec-url"})],X.prototype,"specUrl",2),g([S({type:String,attribute:"submit-label"})],X.prototype,"submitLabel",2),g([S({type:String,attribute:"publishable-key"})],X.prototype,"publishableKey",2),g([S({attribute:!1})],X.prototype,"initialValues",2),g([G()],X.prototype,"fields",2),g([G()],X.prototype,"formTitle",2),g([G()],X.prototype,"hasLang",2),g([G()],X.prototype,"values",2),g([G()],X.prototype,"loaded",2),g([G()],X.prototype,"specError",2),g([G()],X.prototype,"validationErrors",2),X=g([b("roxy-endpoint-form")],X);var Il="12:00 UTC",je=class extends y{constructor(){super(...arguments);this.heading="Ephemeris"}renderData(e){if(!e.days?.length)return this.renderEmpty();let r=this.toViewModel(e),a=this.effectiveLang();return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t(this.heading)}</h2><p class="month"><span>${$n(a,r.year,r.month)}</span><span class="basis">${Il}</span></p></header>${this.renderSignKey(r.signs)}<section part="section changes"><h3>${this.t("Sign changes and retrograde periods")}</h3><div class="tracks" role="list">${r.bodies.map(n=>this.renderTrack(n))}</div></section><section part="section daily"><h3>${this.t("Daily positions")}</h3><div class="scroll" part="table" aria-label="${this.t("Daily positions")}" tabindex="0">${this.renderGrid(r)}</div></section></div>`}renderSignKey(e){return e.length===0?i:s`<section part="section legend"><h3>${this.t("Signs in this month")}</h3><ul class="signkey" role="list">${e.map(r=>s`<li class="signkey-item"><span class="signkey-glyph" aria-hidden="true">${r.glyph}</span>${r.label}</li>`)}</ul></section>`}renderTrack(e){let r=R(e.name);return s`<div class="track" role="listitem"><span class="body-name">${r?s`<span class="glyph" aria-hidden="true">${r}</span>`:i}${e.label} </span><span class="span">${this.renderPosition(e.first)}<span class="arrow" aria-hidden="true">→</span>${this.renderPosition(e.last)} </span>${e.ingresses.length||e.retrogrades.length?s`<span class="chips">${e.ingresses.map(a=>this.renderIngressChip(a))} ${e.retrogrades.map(a=>this.renderRetrogradeChip(a))}</span>`:i}</div>`}renderPosition(e){let{degree:r,minute:a}=is(e.degreeInSign),n=z(e.sign),l=$(e,"sign");return s`<span class="pos" title="${l}">${r}${n?s`<span class="sg" aria-hidden="true">${n}</span>`:s`<span class="sg">${l}</span>`}${String(a).padStart(2,"0")}</span>`}renderIngressChip(e){let r=z(e.sign),a=Kr(this.effectiveLang(),e.date);return s`<span class="chip chip--ingress" aria-label="${this.t("Enters {{sign}} on {{date}}",{sign:e.signLabel,date:a})}"><span aria-hidden="true">→</span>${r?s`<span aria-hidden="true">${r}</span>`:i}${e.signLabel} <span class="chip-date">${a}</span></span>`}renderRetrogradeChip(e){let r=this.effectiveLang(),a=Kr(r,e.start),n=Kr(r,e.end),l=a===n?a:`${a} - ${n}`;return s`<span class="chip chip--retro"><span aria-hidden="true">℞</span>${this.t("Retrograde {{range}}",{range:l})}</span>`}renderGrid(e){let r=this.effectiveLang();return s`<table><caption class="roxy-sr-only">${this.t("Every body with its position on each day of the month, as a zodiac sign and a degree.")}</caption><thead><tr><th scope="col" class="day">${this.t("Date")}</th>${e.bodies.map(a=>{let n=R(a.name);return s`<th scope="col" title="${a.label}">${n?s`<span class="glyph" aria-hidden="true">${n}</span><span class="roxy-sr-only">${a.label}</span>`:a.label}</th>`})}</tr></thead><tbody>${e.rows.map(a=>s`<tr><th scope="row" class="day">${Ln(r,a.date)}</th>${a.cells.map((n,l)=>this.renderCell(n,e.bodies[l],a.date))}</tr>`)}</tbody></table>`}renderCell(e,r,a){if(!e)return s`<td>—</td>`;let n=[e.isRetrograde?"retro":"",r?.ingressDates.has(a)?"ingress":"",r?.stationDates.has(a)?"station":""].filter(Boolean).join(" ");return s`<td class="${n}">${this.renderPosition(e)}${e.isRetrograde?s`<span class="retro-mark" aria-label="${this.t("retrograde")}">℞</span>`:i}</td>`}toViewModel(e){let r=[],a=new Map;for(let d of e.days)for(let c of d.positions){let p=a.get(c.planet);p||(p=[],a.set(c.planet,p),r.push(c.planet)),p.push({date:d.date,p:c})}let n=[];for(let d of r){let c=a.get(d),p=c?.[0],h=c?.[c.length-1];if(!c||!p||!h)continue;let m=[],f=[],C=new Set,w=new Set;for(let k=0;k<c.length;k++){let B=c[k],V=c[k-1];if(!B||(V&&B.p.sign!==V.p.sign&&(m.push({date:B.date,sign:B.p.sign,signLabel:$(B.p,"sign")}),C.add(B.date)),V&&B.p.isRetrograde!==V.p.isRetrograde&&w.add(B.date),!B.p.isRetrograde))continue;let de=f[f.length-1];de&&V?.p.isRetrograde?de.end=B.date:f.push({start:B.date,end:B.date})}n.push({name:d,label:$(h.p,"planet"),first:p.p,last:h.p,ingresses:m,retrogrades:f,ingressDates:C,stationDates:w})}let l=e.days.map(d=>{let c=new Map(d.positions.map(p=>[p.planet,p]));return{date:d.date,cells:n.map(p=>c.get(p.name))}});return{year:e.year,month:e.month,bodies:n,rows:l,signs:this.toSignKey(e)}}toSignKey(e){let r=new Map;for(let n of e.days)for(let l of n.positions){let d=String(l.sign??"").toLowerCase();d&&!r.has(d)&&r.set(d,$(l,"sign"))}let a=[];for(let n of Z){let l=r.get(n.toLowerCase()),d=z(n);l&&d&&a.push({sign:n,label:l,glyph:d})}return a}};je.styles=[x,u`:host{overflow-x:clip}.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}header{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.month{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);gap:var(--roxy-space-xs,.25rem) var(--roxy-space-sm,.5rem);flex-wrap:wrap;margin:0;display:flex}.basis{font-variant-numeric:tabular-nums}.wrap>*{min-width:0}h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em;color:var(--roxy-muted,#71717a)}.signkey{flex-wrap:wrap;gap:1px 0;margin:0;padding:0;list-style:none;display:flex}.signkey-item{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);white-space:nowrap;align-items:baseline;gap:.3rem;padding:2px 10px 2px 0;display:inline-flex}.signkey-glyph{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.tracks{background:var(--roxy-border,#e4e4e7);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);grid-template-columns:minmax(0,1fr);gap:1px;display:grid;overflow:hidden}.track{align-items:center;gap:var(--roxy-space-xs,.25rem) var(--roxy-space-sm,.5rem);padding:6px var(--roxy-space-sm,.5rem);background:var(--roxy-surface,#fff);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;display:flex}.body-name{align-items:baseline;gap:.35rem;min-width:8.5rem;font-weight:500;display:inline-flex}.body-name .glyph{color:var(--roxy-accent-ink,#b45309);font-size:1.1em}.span{color:var(--roxy-secondary,#475569);font-variant-numeric:tabular-nums;white-space:nowrap;align-items:baseline;gap:.3rem;display:inline-flex}.arrow{color:var(--roxy-muted,#71717a)}.chip-date{color:var(--roxy-secondary,#475569)}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;margin-left:auto;display:flex}.chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);white-space:nowrap;align-items:baseline;gap:.25rem;padding:1px 8px;display:inline-flex}.chip--ingress{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a)}.chip--retro{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent);color:var(--roxy-danger-fg,#991b1b);font-weight:var(--roxy-weight-bold,600)}.scroll:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b);outline-offset:2px}.scroll{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table{border-collapse:collapse;font-size:var(--roxy-text-xs,.75rem)}th,td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap;padding:4px 8px}thead th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}thead th .glyph{color:var(--roxy-fg,#0a0a0a);font-size:1.15em}th.day{z-index:1;background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);font-variant-numeric:tabular-nums;border-right:1px solid var(--roxy-border,#e4e4e7);font-weight:500;position:sticky;left:0}thead th.day{z-index:2;background:var(--roxy-surface,#fff)}td{font-variant-numeric:tabular-nums}.sg{color:var(--roxy-secondary,#475569);font-variant-numeric:normal;margin:0 .15em}.retro-mark{font-weight:var(--roxy-weight-bold,600);margin-left:.25em}td.retro{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent);color:var(--roxy-danger-fg,#991b1b)}td.retro .sg{color:inherit}td.ingress{box-shadow:inset 3px 0 var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}td.station{border-top:2px solid var(--roxy-danger-fg,#991b1b);font-weight:var(--roxy-weight-bold,600)}`],g([S({type:String})],je.prototype,"heading",2),je=g([b("roxy-ephemeris-table")],je);var St=class extends y{renderData(t){let e=t.conjunctions??[],r=t.stars??[];return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t("Fixed stars")}</h2>${typeof t.orb=="number"?s`<span class="badge"><b>${this.t("Orb")}</b> ${v(this.effectiveLang(),t.orb,1)}°</span>`:i}</header>${t.summary&&!this.hideReadings?s`<p class="summary">${t.summary}</p>`:i} ${e.length?s`<section part="section conjunctions"><p class="subhead">${this.t("Conjunctions to the chart")}</p>${e.map((a,n)=>s`<details class="interp-card" part="reading" name="fixed-star-contacts" ?open="${n===0}"><summary><span class="interp-lead">${this.t("{{point}} conjunct {{star}}",{point:a.point,star:a.star})}</span> ${j()} <span class="interp-aside"><small>${this.t("orb {{value}}°",{value:v(this.effectiveLang(),a.orb,2)})}</small></span></summary>${a.interpretation&&!this.hideReadings?s`<div class="interp-body"><p>${a.interpretation}</p></div>`:i}</details>`)}</section>`:s`<p class="empty-note">${this.t("No star sits within the orb of a natal point.")}</p>`} ${r.length?this.renderCatalog(r):i}</div>`}renderCatalog(t){return s`<details class="catalog"><summary>${j()} ${this.t("Star catalog ({{count}})",{count:t.length})}</summary><div class="scroll"><table><caption class="subhead">${this.t("Precessed positions for the chart date")}</caption><thead><tr><th scope="col">${this.t("Star")}</th><th scope="col">${this.t("Position")}</th><th scope="col" class="num">${this.t("Mag")}</th><th scope="col">${this.t("Nature")}</th><th scope="col">${this.t("Keywords")}</th></tr></thead><tbody>${t.map(e=>{let r=z(e.sign);return s`<tr><td>${e.name}</td><td>${r?s`<span class="sg">${r}</span>`:i}${vt(e.degree)} ${e.sign}</td><td class="num">${v(this.effectiveLang(),e.magnitude,1)}</td><td>${e.nature}</td><td><div class="kw">${(e.keywords??[]).map(a=>s`<span>${a}</span>`)}</div></td></tr>`})}</tbody></table></div></details>`}};St.styles=[x,M,_,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}header{align-items:baseline;gap:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 8px}.badge b{color:var(--roxy-accent-ink,#b45309);font-weight:600}.summary{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0}.empty-note{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.subhead{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0 0 var(--roxy-space-sm,.5rem);font-weight:600}.interp-lead .point{color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.interp-aside small{font-variant-numeric:tabular-nums}.catalog summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);align-items:center;gap:.5rem;font-weight:600;display:flex}.scroll{min-width:0;margin-top:var(--roxy-space-sm,.5rem);overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap;vertical-align:top;padding:6px 10px}th{color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.04em;font-weight:600;font-size:var(--roxy-text-xs,.75rem)}td.num{text-align:right;font-variant-numeric:tabular-nums}.sg{color:var(--roxy-secondary,#475569);margin-right:.3rem}.kw{white-space:normal;flex-wrap:wrap;gap:.2rem;max-width:18rem;display:flex}.kw span{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a);padding:0 6px}`],St=g([b("roxy-fixed-stars")],St);var Rt=class extends y{renderData(t){let e=t.windows??[];if(e.length===0)return this.renderEmpty();let r=[A(this.effectiveLang(),t.startDate),A(this.effectiveLang(),t.endDate)].filter(Boolean).join(" – ");return s`<div class="wrap" part="card" aria-label="${this.t("Forecast digest")}"><div class="head" part="header"><h2 class="title">${this.t("Forecast digest")}</h2>${r?s`<p class="subtitle">${r}</p>`:i}</div>${e.map(a=>this.renderWindow(a))}</div>`}windowLabel(t){return t===1?"Next 24 hours":typeof t=="number"?`Next ${t} days`:"Window"}renderWindow(t){let e=[...t.top??[]].sort((n,l)=>(l.significance??0)-(n.significance??0)),r=t.byDomain??{},a=Object.entries(r);return s`<section class="window" part="section window"><div class="window-head" part="details"><span class="window-label">${this.windowLabel(t.days)}</span> <span class="window-count">${this.t("{{count}} events",{count:t.count??0})}</span></div>${a.length>0?s`<div class="domains" part="legend">${a.map(([n,l])=>s`<span class="domain-chip"><span class="swatch sw-${n}"></span>${O(n)} ${l}</span>`)}</div>`:i} ${e.length>0?s`<div role="list">${e.map(n=>this.renderEvent(n))}</div>`:s`<p class="quiet">${this.t("No notable events.")}</p>`}</section>`}renderEvent(t){let e=typeof t.significance=="number"?t.significance:0,r=this.hideReadings||t.description==null?O(t.type??""):t.description;return s`<div class="event" role="listitem"><span class="event-date">${A(this.effectiveLang(),t.date)}</span> <span class="event-desc">${r}</span> <span class="sig" role="img" aria-label="${this.t("significance {{value}} of 100",{value:v(this.effectiveLang(),e,0)})}"><span class="sig-fill ${t.domain}" style="width:${Math.max(0,Math.min(100,e))}%"></span></span></div>`}};Rt.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.window{gap:var(--roxy-space-sm,.5rem);padding-top:var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);display:grid}.window:first-of-type{border-top:none;padding-top:0}.window-head{flex-wrap:wrap;align-items:baseline;gap:.5rem;display:flex}.window-label{font-weight:var(--roxy-weight-bold,600)}.window-count{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.domains{flex-wrap:wrap;gap:.4rem;display:flex}.domain-chip{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);align-items:center;gap:.35rem;display:inline-flex}.swatch{border-radius:2px;width:.65rem;height:.65rem;display:inline-block}.sw-western{background:var(--roxy-accent,#f59e0b)}.sw-vedic{background:var(--roxy-info,#2563eb)}.sw-biorhythm{background:var(--roxy-success,#16a34a)}.event{grid-template-columns:auto 1fr;align-items:baseline;gap:.25rem .6rem;display:grid}.event-date{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;white-space:nowrap}.event-desc{font-size:var(--roxy-text-sm,.875rem);line-height:1.4}.sig{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);border-radius:2px;grid-column:2;height:4px;overflow:hidden}.sig-fill{border-radius:2px;height:100%;display:block}.sig-fill.western{background:var(--roxy-accent,#f59e0b)}.sig-fill.vedic{background:var(--roxy-info,#2563eb)}.sig-fill.biorhythm{background:var(--roxy-success,#16a34a)}.quiet{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);font-style:italic}`],Rt=g([b("roxy-forecast-digest")],Rt);var jl={western:"Western",vedic:"Vedic",biorhythm:"Biorhythm"},Hl=["western","vedic","biorhythm"],Ct=class extends y{renderData(t){let e=t.events??[],r=this.groupByDate(e),a=Hl.filter(n=>e.some(l=>l.domain===n));return s`<div class="wrap" part="card" aria-label="${this.t("Forecast timeline")}"><header class="head" part="header"><h2 class="title">${this.t("Forecast timeline")}</h2>${t.startDate&&t.endDate?s`<div class="range">${A(this.effectiveLang(),t.startDate)} - ${A(this.effectiveLang(),t.endDate)} · ${this.t("{{count}} events",{count:t.count??e.length})}</div>`:i}</header>${a.length?s`<div class="legend" part="legend">${a.map(n=>s`<span><span class="swatch swatch-${n}"></span>${jl[n]}</span>`)}</div>`:i} ${r.length?s`<div class="days" part="section events" role="list">${r.map(([n,l])=>this.renderDay(n,l))}</div>`:s`<p class="roxy-empty" role="status">${this.t("No events in this window")}</p>`}</div>`}groupByDate(t){let e=new Map;for(let r of t){let a=r.date??"",n=e.get(a)??[];n.push(r),e.set(a,n)}return[...e.entries()]}renderDay(t,e){return s`<div class="day" role="listitem"><div class="day-date">${A(this.effectiveLang(),t)}</div><div class="events">${e.map(r=>this.renderEvent(r))}</div></div>`}renderEvent(t){let e=typeof t.significance=="number"?t.significance:0,r=Math.max(0,Math.min(100,e));return s`<div class="event"><span class="dot dot-${t.domain}" aria-hidden="true"></span><div class="event-body"><div class="event-line">${this.renderHeadline(t)}</div>${t.description&&!this.hideReadings?s`<p class="event-desc">${t.description}</p>`:i}<div class="sig" title="${this.t("significance {{value}} of 100",{value:r})}"><span class="sig-track"><span class="sig-fill sig-fill-${t.domain}" style="width:${r}%"></span> </span><span class="sig-val">${r}</span></div></div></div>`}renderHeadline(t){let e=t.body?N(t.body):"",r=t.target?N(t.target):"",a=ce({type:t.aspect}),n=Le[a]??"",l=a?Fr(t.aspect)??W({type:t.aspect}):"",d=typeof t.orb=="number"?v(this.effectiveLang(),t.orb,1):"",c=this.typeQualifier(t);return a&&r?s`<strong>${e}</strong> <span class="${n}">${l}</span> <strong>${r}</strong>${d?s`<span class="kind">${this.t("orb {{value}}°",{value:d})}</span>`:i}`:s`<strong>${e||O(t.type??"")}</strong>${c?s`<span class="kind">${c}</span>`:i}`}typeQualifier(t){return t.type==="sign-ingress"&&t.target?`enters ${N(t.target)}`:t.type==="retrograde-station"&&t.station?t.station:t.type==="eclipse"?[t.kind,"eclipse"].filter(Boolean).join(" "):t.type==="critical-day"?"critical day":t.type==="dasha-change"&&t.target?`dasha ${N(t.target)}`:O(t.type??"")}};Ct.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.range{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);font-variant-numeric:tabular-nums}.legend{gap:var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);flex-wrap:wrap;display:flex}.legend .swatch{vertical-align:middle;border-radius:50%;width:10px;height:10px;margin-right:4px;display:inline-block}.swatch-western{background:var(--roxy-accent,#f59e0b)}.swatch-vedic{background:var(--roxy-info,#2563eb)}.swatch-biorhythm{background:var(--roxy-success,#16a34a)}.day{gap:var(--roxy-space-md,1rem);padding-block:var(--roxy-space-sm,.5rem);border-top:1px solid var(--roxy-border,#e4e4e7);grid-template-columns:4.5rem 1fr;display:grid}.day:first-of-type{border-top:none}.day-date{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;padding-top:2px}.events{gap:var(--roxy-space-sm,.5rem);display:grid}.event{gap:var(--roxy-space-sm,.5rem);grid-template-columns:.6rem 1fr;align-items:start;display:grid}.dot{border-radius:50%;width:.6rem;height:.6rem;margin-top:4px}.dot-western{background:var(--roxy-accent,#f59e0b)}.dot-vedic{background:var(--roxy-info,#2563eb)}.dot-biorhythm{background:var(--roxy-success,#16a34a)}.event-body{min-width:0}.event-line{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.event-line .aspect-trine,.event-line .aspect-sextile{color:var(--roxy-success-fg,#166534)}.event-line .aspect-square,.event-line .aspect-opposition{color:var(--roxy-danger-fg,#991b1b)}.event-line .aspect-conjunction{color:var(--roxy-accent-ink,#b45309)}.event-line .kind{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.04em;margin-left:.35em}.event-desc{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);margin:2px 0 0}.sig{align-items:center;gap:.4rem;margin-top:4px;display:flex}.sig-track{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);flex:1;max-width:8rem;height:4px;overflow:hidden}.sig-fill{border-radius:var(--roxy-radius-full,9999px);height:100%;display:block}.sig-fill-western{background:var(--roxy-accent,#f59e0b)}.sig-fill-vedic{background:var(--roxy-info,#2563eb)}.sig-fill-biorhythm{background:var(--roxy-success,#16a34a)}.sig-val{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums}`],Ct=g([b("roxy-forecast-timeline")],Ct);var mo=8,At=class extends y{renderData(t){let e=t.transitingPlanets??[];if(!e.length)return this.renderEmpty();let r=t.keyTransits??[],a=t.natalPlanets?.find(n=>n.name==="Moon")?.sign;return s`<div class="wrap" part="card" aria-label="${this.t("Gochara transits")}"><header class="head" part="header"><h2 class="title">${this.t("Gochara")}</h2><p class="sub">${this.t("Where each graha transits at {{when}}, read against the natal chart of {{birth}}.",{when:q(this.effectiveLang(),t.transitDatetime),birth:q(this.effectiveLang(),t.birthDatetime)})}</p>${a?s`<p class="sub">${this.t("Gochara houses are counted from the natal Moon in {{sign}}.",{sign:a})}</p>`:i} ${F(this.effectiveLang(),t.frame,this.translator)}</header><div part="table">${e.map(n=>this.renderPlanet(n))}</div>${r.length&&!this.hideReadings?s`<section class="key" part="section key-transits"><h3 class="key-title">${this.t("Key transits")}</h3>${r.map(n=>s`<p class="key-item">${n.description}</p>`)}</section>`:i}</div>`}renderPlanet(t){let e=R(t.name)??"",r=typeof t.longitude=="number"?re(t.longitude):void 0;return s`<article class="row"><div class="row-top"><span class="graha">${e?s`<span class="glyph">${e}</span>`:i}${t.name} </span><span class="pos">${t.sign}${r?s`${vt(r.degree)}`:i} </span>${typeof t.houseFromMoon=="number"?s`<span class="house moon">${this.t("house {{n}} from the Moon",{n:t.houseFromMoon})}</span>`:i} ${typeof t.natalHouse=="number"?s`<span class="house lagna">${this.t("house {{n}} from the Lagna",{n:t.natalHouse})}</span>`:i}</div>${this.renderKaksha(t.kaksha)} ${this.renderContacts(this.t("Drishti"),t.drishtiToNatal)} ${this.renderContacts(this.t("Aspects"),t.aspectsToNatal)}</article>`}renderContacts(t,e){return e?.length?s`<p class="aspects"><span class="contact-label">${t}</span> ${e.map(r=>typeof r.orb=="number"?this.t("{{aspect}} natal {{planet}} ({{orb}}°)",{aspect:W({type:r.aspectType}),planet:r.natalPlanet,orb:v(this.effectiveLang(),r.orb,1)}):this.t("{{aspect}} natal {{planet}}",{aspect:W({type:r.aspectType}),planet:r.natalPlanet})).join(" · ")}</p>`:i}renderKaksha(t){if(!t||typeof t.number!="number")return i;let e=t.number,r=t.bindu===!0?"yes":t.bindu===!1?"no":"",a=mo,n=t.lord&&typeof t.startDegree=="number"&&typeof t.endDegree=="number"?this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}, spanning {{start}}° to {{end}}° of the sign",{n:e,total:a,graha:t.lord,start:v(this.effectiveLang(),t.startDegree,2),end:v(this.effectiveLang(),t.endDegree,2)}):t.lord?this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}",{n:e,total:a,graha:t.lord}):typeof t.startDegree=="number"&&typeof t.endDegree=="number"?this.t("Kaksha {{n}} of {{total}}, spanning {{start}}° to {{end}}° of the sign",{n:e,total:a,start:v(this.effectiveLang(),t.startDegree,2),end:v(this.effectiveLang(),t.endDegree,2)}):this.t("Kaksha {{n}} of {{total}}",{n:e,total:a}),l=t.bindu===null||t.bindu===void 0?"":typeof t.binduCount=="number"?t.bindu?this.t("this kaksha lord gave bindu, {{count}} of {{total}} in this sign",{count:t.binduCount,total:a}):this.t("this kaksha lord gave no bindu, {{count}} of {{total}} in this sign",{count:t.binduCount,total:a}):t.bindu?this.t("this kaksha lord gave bindu"):this.t("this kaksha lord gave no bindu");return s`<div class="kaksha-bar" part="chart" role="img" aria-label="${this.t("Kaksha {{n}} of {{total}} within the current sign",{n:e,total:a})}">${Array.from({length:mo},(d,c)=>s`<span class="seg ${c+1===e?`here ${r}`:""}"></span>`)}</div><p class="meta">${l?`${n} · ${l}`:n}</p>`}};At.styles=[x,I,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);box-shadow:var(--roxy-shadow-sm);grid-template-columns:minmax(0,1fr);display:grid;overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.sub{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.row{gap:var(--roxy-space-xs,.25rem);padding:var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);grid-template-columns:minmax(0,1fr);display:grid}.row-top{align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold,600)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.35em}.pos{color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-sm,.875rem);font-variant-numeric:tabular-nums}.house{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-sm,4px);border:1px solid var(--roxy-border,#e4e4e7);padding:.1rem .45rem}.house.moon{border-color:var(--roxy-accent,#f59e0b)}.house.lagna{color:var(--roxy-muted,#71717a)}.contact-label{font-weight:var(--roxy-weight-bold,600);margin-right:.35em}.kaksha-bar{grid-template-columns:repeat(8,1fr);gap:2px;height:10px;margin:.15rem 0;display:grid}.seg{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);border-radius:2px}.seg.here{background:color-mix(in srgb, var(--roxy-muted,#71717a) 45%, transparent)}.seg.here.yes{background:color-mix(in srgb, var(--roxy-success,#16a34a) 55%, transparent)}.seg.here.no{background:color-mix(in srgb, var(--roxy-warning,#f59e0b) 55%, transparent)}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.num{font-variant-numeric:tabular-nums}.aspects{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-secondary,#475569);line-height:var(--roxy-leading-normal,1.5);margin:0}.key{padding:var(--roxy-space-md,1rem);border-top:2px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-sm,.5rem);display:grid}.key-title{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em;color:var(--roxy-muted,#71717a);margin:0}.key-item{font-size:var(--roxy-text-sm,.875rem);line-height:var(--roxy-leading-normal,1.5);margin:0}`],At=g([b("roxy-gochara-table")],At);var Fl={varna:1,vashya:2,tara:3,yoni:4,"graha maitri":5,gana:6,bhakoot:7,nadi:8},Tt=class extends y{renderData(t){let e=(t.breakdown??[]).filter(h=>h?.category!==void 0),r=t.total??0,a=t.maxScore??36,n=r/a*100,l="color-mix(in srgb, var(--roxy-border) 50%, transparent)",d=n>=70?"var(--roxy-success)":n>=50?"var(--roxy-warning)":"var(--roxy-danger)",c=n*2.827,p=(100-n)*2.827;return s`<article class="card" part="card" aria-label="${this.t("Guna Milan score")}"><div class="score-header" part="header"><div class="score-info"><div class="score-bar" part="details"><div><span class="total">${v(this.effectiveLang(),t.total,1)}</span> <span class="over">/ ${t.maxScore}</span> ${typeof t.percentage=="number"?s`<small style="margin-left:.5rem;color:var(--roxy-muted)">${ae(this.effectiveLang(),t.percentage,1)}</small>`:i}</div><div class="verdict-wrap">${typeof t.isCompatible=="boolean"?s`<span class="verdict ${t.isCompatible?"yes":"no"}">${t.isCompatible?this.t("Compatible"):this.t("Not compatible")}</span>`:i} ${t.recommendation&&!this.hideReadings?s`<span class="recommendation">${t.recommendation}</span>`:i}</div></div></div><div class="score-ring" part="chart" role="meter" aria-label="${this.t("Guna Milan score")}" aria-valuemin="0" aria-valuemax="36" aria-valuenow="${r}"><svg viewBox="0 0 100 100" aria-hidden="true"><circle class="ring-track" cx="50" cy="50" r="45" fill="none" stroke="${l}" stroke-width="8"/><circle class="ring-fill" cx="50" cy="50" r="45" fill="none" stroke="${d}" stroke-width="8" stroke-dasharray="${c},${p}" stroke-linecap="round" transform="rotate(-90 50 50)"/><text x="50" y="50" text-anchor="middle" dominant-baseline="central" class="ring-text">${r}</text><text x="50" y="64" text-anchor="middle" dominant-baseline="central" class="ring-max">/${a}</text></svg></div></div>${e.length>0?s`<div class="table-scroll" part="table"><table><caption class="roxy-sr-only">${this.t("Guna Milan breakdown: each koota with the classification of person 1 and person 2, and the score it earned out of its maximum.")}</caption><thead><tr><th scope="col">${this.t("Koota")}</th><th scope="col">${this.t("Person 1")}</th><th scope="col">${this.t("Person 2")}</th><th scope="col" class="bar-col">${this.t("Progress")}</th><th scope="col" class="score">${this.t("Score")}</th></tr></thead><tbody>${e.map(h=>{let m=h.score??0,f=h.maxScore??Kl(h.category),C=f?m/f*100:0;return s`<tr><td>${h.category} ${h.description?s`<small>${h.description}</small>`:i}</td><td class="classification">${h.person1??""}</td><td class="classification">${h.person2??""}</td><td class="bar-cell bar-col"><div class="mini-bar"><span style="width:${C}%"></span></div></td><td class="score">${v(this.effectiveLang(),m,1)} / ${f}</td></tr>`})}</tbody></table></div>`:i} ${(t.doshas?.length??0)>0||(t.doshaCancellations?.length??0)>0?s`<div class="tags" part="details">${t.doshas?.map(h=>s`<span class="dosha">${h}</span>`)} ${t.doshaCancellations?.map(h=>s`<span class="cancel" title="${h.reason}">${this.t("{{dosha}} cancelled",{dosha:h.dosha})}</span>`)}</div>`:i} ${F(this.effectiveLang(),t.frame,this.translator)}</article>`}};Tt.styles=[x,I,u`.card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.card>*{min-width:0}.score-header{align-items:center;gap:1rem;display:flex}.score-info{flex:1;min-width:0}.table-scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}.score-bar{align-items:center;gap:var(--roxy-space-md,1rem);grid-template-columns:1fr auto;display:grid}.total{font-size:2.25rem;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);font-variant-numeric:tabular-nums;line-height:1}.over{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-base,1rem)}.verdict-wrap{justify-items:end;gap:var(--roxy-space-xs,.25rem);text-align:right;display:grid}.verdict{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:1px 10px}.verdict.yes{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.verdict.no{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.recommendation{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-secondary,#475569)}.score-ring{flex-shrink:0;width:120px;height:120px}.score-ring svg{width:100%;height:100%}.score-ring .ring-text{fill:var(--roxy-fg,#0a0a0a);font-size:22px;font-weight:700;font-family:var(--roxy-font-sans)}.score-ring .ring-max{fill:var(--roxy-muted,#71717a);font-size:10px;font-family:var(--roxy-font-sans)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}td small{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);margin-top:2px;line-height:1.5;display:block}td.classification{color:var(--roxy-secondary,#475569);white-space:nowrap}th.score{text-align:right}td.score{text-align:right;font-variant-numeric:tabular-nums;color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600)}td.bar-cell{width:22%}@container (width<=32rem){.bar-col{display:none}}@container (width<=26rem){.score-header{flex-direction:column-reverse;align-items:stretch}.score-ring{align-self:center}.score-ring .ring-text,.score-ring .ring-max{display:none}.score-bar{gap:var(--roxy-space-xs,.25rem);grid-template-columns:1fr}.verdict-wrap{text-align:left;justify-items:start}}.mini-bar{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);height:8px;overflow:hidden}.mini-bar>span{background:var(--roxy-accent,#f59e0b);height:100%;transition:width var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.tags{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.tags span{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.tags .dosha{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.tags .cancel{background:color-mix(in srgb, var(--roxy-success,#16a34a) 18%, transparent);color:var(--roxy-success-fg,#166534)}`],Tt=g([b("roxy-guna-milan")],Tt);function Kl(o){return o&&Fl[o.toLowerCase()]||1}var Dt=class extends y{renderChart(t){let e=new Map;for(let l of t.channels??[]){let d=new Set(l.personAGates??[]),c=new Set(l.personBGates??[]);for(let p of[l.gateA,l.gateB]){if(p==null)continue;let h=e.get(p)??{left:!1,right:!1};h.left||=d.has(p),h.right||=c.has(p),e.set(p,h)}}let r=new Set((t.centers??[]).filter(l=>l.defined).map(l=>l.id)),a=new Map((t.centers??[]).map(l=>[l.id,l.name])),n=new Map;for(let l of t.channels??[]){let d=l.name;for(let c of[l.gateA,l.gateB]){if(c==null)continue;let p=e.get(c),h=[p?.left&&"A",p?.right&&"B"].filter(Boolean).join(" + ");n.set(c,[`Gate ${c}`,d,h].filter(Boolean).join(" · "))}}return s`<svg class="chart" part="chart" viewBox="${Jr}" preserveAspectRatio="xMidYMid meet" role="img" aria-label="Combined Human Design bodygraph for two charts, with each gate marked for the person who carries it"><title>Combined bodygraph</title>${Xr({definedCenters:r,gateSources:e,gateTitles:n,centerNames:a,stateWords:{defined:"Defined",open:"Open"}})}</svg><div class="legend" part="legend"><span><span class="swatch source src-left"></span>Person A</span> <span><span class="swatch source src-right"></span>Person B</span> <span><span class="swatch"></span>Open center</span></div>`}renderData(t){let e=t.channels??[],r=t.centers??[],a=r.filter(n=>n.defined).length;return s`<div class="wrap" part="card" aria-label="Human Design connection"><header class="head" part="header"><h2 class="title">Connection</h2>${typeof t.totalChannels=="number"?s`<span class="count">${t.totalChannels} channels</span>`:i}</header>${this.renderChart(t)} ${$e([{label:"Channels",value:t.totalChannels?.toString()},{label:"Combined definition",value:t.combinedDefinition?O(String(t.combinedDefinition)):void 0},{label:"Centers defined",value:r.length>0?`${a} of ${r.length}`:void 0}])} ${this.hideReadings?i:s`<p class="lead">A connection chart reads the two charts as one bodygraph. Wherever the two of them together hold both gates of a channel, that channel is defined between them, and the centers it joins are defined in the connection whether or not either person defines them alone.</p>`} ${this.renderDynamics(t.summary)} ${this.renderCenters(r)} ${this.renderChannels(e,r)}</div>`}renderDynamics(t){if(!t)return i;let e=[{label:"Electromagnetic",aside:xa(t.electromagnetic),body:"Each person holds one of the two gates, so the channel completes only when they are together. The classic point of attraction."},{label:"Dominance",aside:xa(t.dominance),body:"One person holds both gates and the other holds neither, so the conditioning runs one way, from the person who carries the channel to the person who does not."},{label:"Compromise",aside:xa(t.compromise),body:"One person holds both gates and the other holds a single hanging gate of the same channel, so the channel is complete for one of them and half open for the other."},{label:"Companionship",aside:xa(t.companionship),body:"Both people independently hold both gates, so neither needs the other to complete it. A shared and familiar frequency rather than an attraction."}];return this.renderInterpretation(e,"hd-connection-dynamic","Dynamics")}renderCenters(t){return t.length===0?i:s`<section class="block" part="section centers"><h3>Centers</h3>${this.hideReadings?i:s`<p class="note">Defined is the state of the combined chart. Beside it is who already defines that center in their own chart. A center defined only together is what the connection itself creates: it is there when the two are together and gone when they are apart. The combined definition counts how the defined centers hang together, so Single is one connected piece and a split is more than one.</p>`} ${t.map(e=>{let r=e.definedBy??[],a=r.includes("A"),n=r.includes("B"),l=!!e.defined&&!a&&!n;return s`<div class="row"><span class="cname">${e.name??O(String(e.id??""))}</span> <span class="badge ${e.defined?l?"together":"defined":"open"}">${e.defined?l?"Only together":"Defined":"Open"} </span><span class="who">${Vl(!!e.defined,a,n)}</span></div>`})}</section>`}renderChannels(t,e){if(t.length===0)return i;let r=new Map(e.map(n=>[String(n.id??""),n.name??""])),a=n=>r.get(n)||O(n);return s`<section class="block" part="section channels"><h3>Channels</h3><div class="scroll" part="table" tabindex="0" role="region" aria-label="Connection channels"><table role="table"><caption class="roxy-sr-only">Connection channels: each channel with its gates, the centers it links, its circuit and dynamic, and the gates person A and person B each hold.</caption><thead><tr><th scope="col">Channel</th><th scope="col">Gates</th><th scope="col">Centers</th><th scope="col">Circuit</th><th scope="col">Dynamic</th><th scope="col">Person A holds</th><th scope="col">Person B holds</th></tr></thead><tbody>${t.map(n=>s`<tr><td>${n.name??""}</td><td class="gates">${n.gateA}-${n.gateB}</td><td>${(n.centers??[]).map(a).join(" to ")}</td><td>${n.circuit??""}</td><td>${n.dynamic?s`<span class="dyn">${n.dynamic}</span>`:i}</td><td class="held">${ho(n.personAGates)}</td><td class="held">${ho(n.personBGates)}</td></tr>`)}</tbody></table></div></section>`}};Dt.styles=[x,M,_,Pe,Qr,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.count{color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);font-variant-numeric:tabular-nums}.note{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:1.6}.row{align-items:center;gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-sm,.5rem) 0;border-bottom:1px solid var(--roxy-border,#e4e4e7);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;display:flex}.row:last-child{border-bottom:none}.cname{flex:1;min-width:8rem}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:1px 8px;display:inline-flex}.badge.defined{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.badge.open{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a)}.badge.together{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-fg,#0a0a0a)}.who{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{text-align:left;padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr:last-child td{border-bottom:none}.gates{font-variant-numeric:tabular-nums;color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.dyn{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-fg,#0a0a0a);padding:1px 8px;display:inline-block}.held{font-variant-numeric:tabular-nums}.scroll{min-width:0;overflow-x:auto}.wrap{--src-left:#1f6fb2;--src-right:#b04e14;--src-ink:#fff}`],Dt=g([b("roxy-hd-connection")],Dt);function xa(o){if(typeof o=="number")return o===0?"None":o===1?"1 channel":`${o} channels`}function ho(o){let t=o??[];return t.length>0?t.join(", "):"Neither"}function Vl(o,t,e){return t&&e?"Defined in both charts":t?"Defined by A":e?"Defined by B":o?"Defined by neither alone, only by the connection":"Open in both charts"}var ys=360,ql=470,fs=8,yo=ys-fs*2,va=48,Rr=15,us=7,go=16,ba=[{id:"throat",label:"Throat",y:0},{id:"g",label:"G",y:211},{id:"sacral",label:"Sacral",y:422}],fo=`0 0 ${ys} ${ql}`;function Ul(o,t){return fs+yo*(o*2+1)/(t*2)}function xo(o){return wr[o.gateA]==="throat"||wr[o.gateB]==="throat"}function Yl(o){return(xo(o)?wr[o.gateA]==="throat":wr[o.gateA]==="g")?o.gateA:o.gateB}function Zl(){return ba.map(o=>L`<g>
|
|
85
|
+
<rect class="pn-bar" x=${fs} y=${o.y} width=${yo} height=${va} rx="10" />
|
|
86
|
+
<text class="pn-bar-label" x=${ys/2} y=${o.y+va/2} text-anchor="middle" dominant-baseline="central">${o.label}</text>
|
|
87
|
+
</g>`)}function Wl(o,t,e,r){return e.map((a,n)=>L`<g>
|
|
88
|
+
<circle class="pn-badge" cx=${o+Rr+us+2+n*go} cy=${t} r=${us} />
|
|
89
|
+
<text class="pn-badge-text" x=${o+Rr+us+2+n*go} y=${t} text-anchor="middle" dominant-baseline="central">${r(a)}</text>
|
|
90
|
+
</g>`)}function uo(o,t,e,r,a){let n=r.length>0;return L`<g>
|
|
91
91
|
<circle class="pn-gate-dot ${n?"on":""}" cx=${o} cy=${t} r=${Rr} />
|
|
92
92
|
<text class="pn-gate ${n?"on":""}" x=${o} y=${t} text-anchor="middle" dominant-baseline="central">${e}</text>
|
|
93
|
-
${
|
|
94
|
-
</g>`}function
|
|
93
|
+
${Wl(o,t,r,a)}
|
|
94
|
+
</g>`}function bo(o){let t=[];for(let e of[!0,!1]){let r=o.rungs.filter(p=>xo(p)===e),a=e?va:ba[1].y+va,n=e?ba[1].y:ba[2].y,l=a+26,d=n-26,c=(l+d)/2;r.forEach((p,h)=>{let m=Ul(h,r.length),f=Yl(p),C=f===p.gateA?p.gateB:p.gateA,w=`pn-rung ${p.defined?"on":""} ${p.isCore?"core":""}`;t.push(L`<g>
|
|
95
95
|
<line class=${w} x1=${m} y1=${l+Rr} x2=${m} y2=${c-13} />
|
|
96
96
|
<line class=${w} x1=${m} y1=${c+13} x2=${m} y2=${d-Rr} />
|
|
97
97
|
<text class="pn-name ${p.defined?"on":""}" x=${m} y=${c} text-anchor="middle" dominant-baseline="central">${p.name}</text>
|
|
98
|
-
${
|
|
99
|
-
${
|
|
100
|
-
</g>`)})}return L`${Kl()}${t.length>0?t:i}`}var Dt=class extends y{renderChart(t){let e=(t.channels??[]).filter(a=>a.gateA!=null&&a.gateB!=null).map(a=>({gateA:a.gateA,gateB:a.gateB,name:a.name??"",defined:a.defined===!0,isCore:a.isCore===!0}));if(e.length===0)return i;let r=new Map((t.gates??[]).filter(a=>a.gate!=null).map(a=>[a.gate,a.heldBy??[]]));return s`<svg class="chart" part="chart" viewBox="${yo}" preserveAspectRatio="xMidYMid meet" role="img" aria-label="Penta ladder: the Throat, G and Sacral with the six penta channels between them, each marked defined or open and lettered with the members holding its gates"><title>Penta</title>${xo({rungs:e,holders:r,letterFor:bo})}</svg>`}renderData(t){let e=t.channels??[],r=t.gates??[],a=t.summary,n=a?.gapGates??[],l=e.some(d=>d.isCore);return s`<div class="wrap" part="card" aria-label="Human Design penta"><header class="head" part="header"><h2 class="title">Penta</h2>${typeof t.memberCount=="number"?s`<span class="count">${t.memberCount} members</span>`:i}</header>${this.renderChart(t)} ${$e([{label:"Members",value:t.memberCount?.toString()},{label:"Defined channels",value:typeof a?.definedChannels=="number"&&e.length>0?`${a.definedChannels} of ${e.length}`:void 0},{label:"Filled gates",value:typeof a?.filledGates=="number"&&r.length>0?`${a.filledGates} of ${r.length}`:void 0},{label:"Core",value:typeof a?.coreDefined=="boolean"?a.coreDefined?"Defined":"Open":void 0},{label:"Gap gates",value:n.length>0?n.join(", "):void 0}])} ${this.hideReadings?i:s`<p class="lead">A penta is the field three to five people form when they work as a group. It is read from the twelve penta gates the members bring between them: a channel with both of its gates held somewhere in the group is a defined Strength, and a gate no member holds is a gap the group has to compensate for.</p>`} ${this.renderGroup("Upper (direction)",e.filter(d=>d.position==="upper"),"Upper channels run from the G Center to the Throat. They carry the leadership of the group and how it presents itself.")} ${this.renderGroup("Lower (execution)",e.filter(d=>d.position==="lower"),"Lower channels run from the G Center to the Sacral. They carry the managed, generative, resource work.")} ${this.renderGroup("Channels",e.filter(d=>d.position!=="upper"&&d.position!=="lower"))} ${l&&!this.hideReadings?s`<p class="footnote">Core is the 2/14 Channel of the Beat, the material core of the penta: gate 2 sets the direction for resources, gate 14 is the resources themselves.</p>`:i} ${this.renderGates(r)} ${e.length>0||r.length>0?s`<p class="footnote" part="legend">Members are lettered in the order they were sent, so A is the first member of the group.</p>`:i}</div>`}renderGroup(t,e,r){return e.length===0?i:s`<div class="section" part="section channels"><h3>${t}</h3>${r&&!this.hideReadings?s`<p class="note">${r}</p>`:i} ${e.map(a=>s`<div class="row"><span class="gates">${a.gateA}-${a.gateB}</span> <span class="cname">${a.name??""} ${a.circuit?s`<span class="circuit">${a.circuit} circuit</span>`:i} </span><span class="badge ${a.defined?"defined":"open"}">${a.defined?"Defined":"Open"}</span> ${a.isCore?s`<span class="badge core">Core</span>`:i} <span class="held">Gate ${a.gateA} held by ${fs(a.gateAHeldBy)}. Gate ${a.gateB} held by ${fs(a.gateBHeldBy)}.</span></div>`)}</div>`}renderGates(t){if(t.length===0)return i;let e=t.filter(r=>r.filled).length;return s`<div class="section" part="section gates"><h3>Gates (${e} of ${t.length} filled)</h3>${this.hideReadings?i:s`<p class="note">The role each gate brings to the group, and who carries it. A gap is a role no member holds, so the group compensates for it.</p>`} ${t.map(r=>s`<div class="row"><span class="gate-id">${r.gate}</span> <span class="cname">${r.gateName??""}</span> ${r.filled?s`<span class="who">Held by ${fs(r.heldBy)}</span>`:s`<span class="badge gap">Gap</span>`}</div>`)}</div>`}};Dt.styles=[x,Pe,u`.chart{width:100%;max-width:var(--roxy-chart-max-width,22rem);height:auto;margin:0 auto;display:block}.pn-bar{fill:color-mix(in srgb, var(--roxy-accent,#f59e0b) 12%, transparent);stroke:var(--roxy-accent-ink,#b45309);stroke-width:1.5px}.pn-bar-label{fill:var(--roxy-fg,#0a0a0a);font-size:15px;font-weight:var(--roxy-weight-bold,600);font-family:var(--roxy-font-sans)}.pn-rung{stroke:var(--roxy-border,#e4e4e7);stroke-width:6px;stroke-dasharray:6 6}.pn-rung.on{stroke:var(--roxy-accent-ink,#b45309);stroke-dasharray:none}.pn-rung.on.core{stroke-width:9px}.pn-name{fill:var(--roxy-muted,#71717a);font-size:12px;font-family:var(--roxy-font-sans)}.pn-name.on{fill:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600)}.pn-gate-dot{fill:var(--roxy-surface,#fff);stroke:var(--roxy-border,#e4e4e7);stroke-width:1.5px;stroke-dasharray:4 4}.pn-gate-dot.on{stroke:var(--roxy-accent-ink,#b45309);stroke-dasharray:none}.pn-gate{fill:var(--roxy-muted,#71717a);font-size:13px;font-weight:var(--roxy-weight-bold,600);font-family:var(--roxy-font-sans)}.pn-gate.on{fill:var(--roxy-fg,#0a0a0a)}.pn-badge{fill:var(--roxy-accent-ink,#b45309)}.pn-badge-text{fill:var(--roxy-surface,#fff);font-size:9px;font-weight:var(--roxy-weight-bold,600);font-family:var(--roxy-font-sans)}.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.count{color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600)}.section{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.section h3{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.note{margin:var(--roxy-space-xs,.25rem) 0 0;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:1.6}.row{align-items:center;gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-sm,.5rem) 0;border-bottom:1px solid var(--roxy-border,#e4e4e7);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;display:flex}.row:last-child{border-bottom:none}.gates,.gate-id{font-variant-numeric:tabular-nums;color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600);min-width:3.5rem}.cname{flex:1;min-width:8rem}.circuit{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}.held{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);flex-basis:100%;line-height:1.6}.who{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:1px 8px;display:inline-flex}.badge.defined{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.badge.open{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a)}.badge.core{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-fg,#0a0a0a)}.badge.gap{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.footnote{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0;line-height:1.6}`],Dt=g([b("roxy-hd-penta")],Dt);var ql="ABCDE",bo=o=>ql[o]??String(o+1);function fs(o){let t=(o??[]).map(bo);return t.length>0?t.join(", "):"nobody"}var Et=class extends y{renderData(t){return Ul(t)?this.renderType(t):this.renderProfile(t)}renderType(t){return s`<div class="wrap" part="card"><header class="head" part="header"><h2 class="title">${this.t("Type")}</h2>${t.type||t.profile?s`<div class="type-line">${[$(t,"type"),t.profile?this.t("Profile {{profile}}",{profile:t.profile}):""].filter(Boolean).join(" · ")}</div>`:i}</header>${$e([{label:this.t("Type"),value:$(t,"type")},{label:this.t("Strategy"),value:$(t,"strategy")},{label:this.t("Authority"),value:$(t,"authority")},{label:this.t("Profile"),value:t.profile}])} ${t.typeDescription&&!this.hideReadings?s`<p class="lead">${t.typeDescription}</p>`:i} ${ta(t.signature?$(t,"signature"):void 0,t.notSelf?$(t,"notSelf"):void 0,this.translator)} ${this.renderInterpretation([{label:this.t("Strategy"),aside:$(t,"strategy"),body:t.strategyDescription},{label:this.t("Authority"),aside:$(t,"authority"),body:t.authorityDescription},{label:this.t("Aura"),body:t.aura}],"hd-type-reading")}</div>`}renderProfile(t){return s`<div class="wrap" part="card"><header class="head" part="header"><h2 class="title">${this.t("Profile")}</h2>${t.profile?s`<div class="type-line">${t.profile}</div>`:i}</header>${$e([{label:this.t("Profile"),value:t.profile},{label:this.t("Personality line"),value:t.personalityLine?.toString()},{label:this.t("Design line"),value:t.designLine?.toString()}])} ${this.hideReadings?i:s`<section class="block" part="section lines"><h3>${this.t("Lines")}</h3>${ra({personality:t.personalityKeynote,personalityLine:t.personalityLine,design:t.designKeynote,designLine:t.designLine},this.translator)}</section>`}</div>`}};Et.styles=[x,M,O,Pe,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.type-line{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}`],Et=g([b("roxy-hd-type-card")],Et);function Ul(o){return typeof o.type=="string"}var Mt=class extends y{renderData(t){let e=[...t.arrows??[]].sort((r,a)=>vo(r.position)-vo(a.position));return s`<div class="wrap" part="card" aria-label="${this.t("Human Design variables")}"><h2 class="title" part="header">${this.t("Variables")}</h2><div class="grid" part="details arrows">${e.map(r=>this.renderArrow(r))}</div>${t.confident===!1?s`<p class="note" role="note">${typeof t.confidenceMarginDeg=="number"?this.t("Low confidence: a birth time near a color or tone boundary (within {{margin}}°). Verify the exact birth time.",{margin:t.confidenceMarginDeg}):this.t("Low confidence: a birth time near a color or tone boundary. Verify the exact birth time.")}</p>`:i} ${this.renderReading(e,t.baseDescription)}</div>`}renderArrow(t){let e=t.direction==="left"?"←":"→",r=$(t,"baseName");return s`<div class="arrow"><div class="arrow-head"><span class="glyph" aria-hidden="true">${e}</span> <span class="name">${$(t,"name")}</span></div>${t.layer?s`<span class="layer">${$(t,"layer")}</span>`:i} <span class="labels">${[$(t,"directionLabel"),$(t,"colorLabel")].filter(Boolean).join(" · ")} </span>${typeof t.color=="number"?s`<span class="ctb">${this.t("Color {{color}} · Tone {{tone}} · Base {{base}}",{color:t.color,tone:t.tone??"",base:t.base??""})}${r?`, ${r}`:""}</span>`:i} ${t.activation?.planet?s`<span class="ctb">${[t.activation.planet,ea(t.activation.side,this.translator)].filter(Boolean).join(" · ")}</span>`:i} ${t.confident===!1?s`<span class="note" role="note">${this.t("Knife-edge: could flip with a more precise birth time.")}</span>`:i}</div>`}renderReading(t,e){let r=t.filter(l=>l.description||l.colorMeaning);if(r.length===0||this.hideReadings)return i;let a=new Map;for(let l of r){let d=l.layer??"",c=a.get(d);c?c.push(l):a.set(d,[l])}let n=0;return s`<section class="block" part="section readings"><h3>${this.t("Reading")}</h3>${[...a].map(([l,d])=>s`<div class="group">${l?s`<p class="group-head">${$(d[0],"layer")}</p>`:i} ${d[0]?.layerDescription?s`<p class="group-note">${d[0].layerDescription}</p>`:i} ${d.map(c=>this.renderArrowReading(c,n++===0))}</div>`)} ${e?s`<p class="footnote">${this.t("Base")}. ${e}</p>`:i}</section>`}renderArrowReading(t,e){let r=t.cognition,a=r?$(r,"label"):"",n=[{label:this.t("Color"),body:t.colorMeaning},{label:this.t("Tone"),body:t.toneMeaning},{label:this.t("Direction"),body:t.directionMeaning},{label:a?`${this.t("Cognition")} · ${a}`:this.t("Cognition"),body:r?.description}].filter(l=>!!l.body);return s`<details class="interp-card" part="reading" name="hd-variable" ?open="${e}"><summary><span class="interp-lead">${$(t,"name")}</span> ${j()} ${t.position?s`<span class="interp-aside"><small>${$(t,"position")}</small></span>`:i}</summary><div class="interp-body">${t.description?s`<p>${t.description}</p>`:i} ${n.length>0?s`<dl class="facets">${n.map(l=>s`<dt>${l.label}</dt><dd>${l.body}</dd>`)}</dl>`:i}</div></details>`}};Mt.styles=[x,M,O,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.grid{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.arrow{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);gap:var(--roxy-space-xs,.25rem);align-content:start;display:grid}.arrow-head{align-items:center;gap:var(--roxy-space-sm,.5rem);display:flex}.glyph{color:var(--roxy-accent-ink,#b45309);font-size:1.75rem;line-height:1}.name{font-weight:var(--roxy-weight-bold,600)}.layer{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.labels{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.ctb{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums}.note{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-warning-fg,#9a3412)}@container (width<=28rem){.grid{grid-template-columns:minmax(0,1fr)}}.group{margin-bottom:var(--roxy-space-md,1rem)}.group:last-of-type{margin-bottom:0}.group-head{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.group-note{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:1.6}.facets{gap:var(--roxy-space-xs,.25rem);margin:0;display:grid}.facets dt{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.facets dd{margin:0}.footnote{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0;line-height:1.6}`],Mt=g([b("roxy-hd-variables")],Mt);function vo(o){switch(o){case"Top left":return 0;case"Top right":return 1;case"Bottom left":return 2;case"Bottom right":return 3;default:return 99}}var Yl={udaya:"Rose",asta:"Set"},Zl={udaya:"rises",asta:"sets"},zt=class extends y{renderData(t){let e=t.grahas??[];return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Heliacal visibility")}"><header class="head" part="header"><h2 class="title">${this.t("Heliacal rising and setting")}</h2><p class="sub">${this.t("Whether each graha stands far enough from the Sun to be seen, for {{date}}. The Sun and the nodes never appear here: they have no heliacal event.",{date:t.date})}</p></header><div class="rows" part="table">${e.map(r=>this.renderGraha(r))}</div></div>`:this.renderEmpty()}renderGraha(t){let e=R(t.graha)??"";return s`<article class="row"><div class="row-top"><span class="graha">${e?s`<span class="glyph">${e}</span>`:i}${t.graha} </span><span class="state ${t.visible?"visible":"invisible"}">${t.visible?this.t("Visible"):this.t("Invisible")} </span>${t.retrograde?s`<span class="retro" title="${this.t("retrograde")}">R</span>`:i}</div><p class="window" part="window">${this.windowLine(t)}</p><p class="meta" part="details">${this.metaLine(t)}</p></article>`}windowLine(t){let e=t.nextEvent,r=t.lastEvent;if(e){let a={event:this.t(Zl[e.type]),where:e.horizon==="east"?this.t("in the east"):this.t("in the west"),when:q(this.effectiveLang(),e.datetime)};return s`${t.visible?this.t("Visible until it {{event}} {{where}} on {{when}}",a):this.t("Invisible until it {{event}} {{where}} on {{when}}",a)}`}return r?s`${this.t("{{event}} {{where}} on {{when}}, with no further event inside the search window",{event:this.t(Yl[r.type]),where:r.horizon==="east"?this.t("in the east"):this.t("in the west"),when:q(this.effectiveLang(),r.datetime)})}`:s`${this.t("No rising or setting inside the search window, which is normal for a graha far from the Sun")}`}metaLine(t){let e=t.horizon==="east"?this.t("a morning graha, read before sunrise"):this.t("an evening graha, read after sunset"),r=t.nextEvent??t.lastEvent,a=r&&r.kalamsa!==t.kalamsa,n={degrees:v(this.effectiveLang(),t.timeDegrees,2),limit:v(this.effectiveLang(),t.kalamsa,0),shifted:a?v(this.effectiveLang(),r.kalamsa,0):""};return s`${a?this.t("{{degrees}}° of time from the Sun against a limit of {{limit}}°, becoming {{shifted}}° at that event",n):this.t("{{degrees}}° of time from the Sun against a limit of {{limit}}°",n)} · ${e}`}};zt.styles=[x,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.sub{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);margin:0}.rows{display:grid}.row{gap:var(--roxy-space-xs,.25rem);padding:var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);grid-template-columns:minmax(0,1fr);display:grid}.row-top{align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.35em}.state{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-sm,4px);border:1px solid var(--roxy-border,#e4e4e7);color:var(--roxy-fg,#0a0a0a);padding:.1rem .45rem}.state.invisible{background:color-mix(in srgb, var(--roxy-warning,#f59e0b) 14%, transparent)}.retro{color:var(--roxy-warning-fg,#9a3412);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600)}.window{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.num{font-variant-numeric:tabular-nums}`],zt=g([b("roxy-heliacal-table")],zt);var Pt=class extends y{resolveHexagram(){let t=this.data;if(!t)return null;if("hexagram"in t&&t.hexagram){if("lines"in t){let r=t;return{hex:r.hexagram,lines:r.lines,changingLinePositions:r.changingLinePositions,resultingHexagram:r.resultingHexagram}}let e=t;return{hex:e.hexagram,dailyMessage:e.dailyMessage}}return{hex:t}}renderData(){let t=this.resolveHexagram();if(!t)return this.renderEmpty();let{hex:e,lines:r,changingLinePositions:a,dailyMessage:n,resultingHexagram:l}=t,d=r??this.derivedLines(e),c=new Set(a??[]),p=!this.hideReadings;return s`<article class="card" part="card" aria-label="${this.t("I Ching hexagram")}"><div class="glyphs" part="chart">${e.symbol?s`<div class="symbol">${e.symbol}</div>`:i}<div class="lines" aria-hidden="true">${d.slice().reverse().map((h,m)=>{let f=d.length-1-m+1,C=c.has(f),w=h===6||h===8;return s`<div class="line ${`${w?"broken":"solid"}${C?" changing":""}`}">${w?L`<span class="seg"></span><span class="seg"></span>`:L`<span class="seg"></span>`}</div>`})}</div></div><div part="header"><h2 class="title">${[e.number!=null?`${e.number}.`:"",e.english??e.chinese??"Hexagram"].filter(Boolean).join(" ")}</h2><p class="subtitle">${e.chinese?s`${e.chinese}`:i} ${e.pinyin?s`· ${e.pinyin}`:i}</p><div class="trigrams" part="details">${e.upperTrigram?s`<div>${this.t("Upper")} <span class="tri-glyph">${Ka(e.upperTrigram)??""}</span>${e.upperTrigram}</div>`:i} ${e.lowerTrigram?s`<div>${this.t("Lower")} <span class="tri-glyph">${Ka(e.lowerTrigram)??""}</span>${e.lowerTrigram}</div>`:i}</div>${e.judgment&&p?s`<p class="judgment">${e.judgment}</p>`:i} ${e.image&&p?s`<p class="image">${e.image}</p>`:i} ${n&&p?s`<p class="message">${n}</p>`:i} ${e.interpretation?.general&&p?s`<p>${e.interpretation.general}</p>`:i} ${c.size>0?s`<div class="changing" part="section changing-lines">${this.t("Changing lines: {{lines}}.",{lines:Array.from(c).sort((h,m)=>h-m).join(", ")})} ${l?.english?s`${this.t("Becomes hexagram {{number}} {{name}}.",{number:l.number,name:l.english})}`:i}</div>`:i} ${this.renderLines(e,c)}</div></article>`}renderLines(t,e){let r=t.changingLines??[];if(r.length===0)return i;let a=e.size>0,n=a?r.filter(d=>e.has(d.position)):r;if(n.length===0)return i;let l=n.map(d=>({label:`Line ${d.position}`,body:d.text??"",extra:d.meaning?s`<p class="line-meaning">${d.meaning}</p>`:i}));return this.renderInterpretation(l,"hexagram-lines",a?"Changing lines":"Lines")}derivedLines(t){let e=t.binary??"";return/^[01]{6}$/.test(e)?Array.from(e,r=>r==="1"?7:8):Array.from({length:6},()=>7)}};Pt.styles=[x,M,O,u`.card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-lg,1.5rem);grid-template-columns:6rem 1fr;display:grid}@container (width<=480px){.card{grid-template-columns:1fr}}.glyphs{gap:var(--roxy-space-md,1rem);align-content:start;align-self:start;justify-items:center;display:grid}.symbol{color:var(--roxy-accent-ink,#b45309);font-size:3rem;line-height:1}.lines{gap:4px;width:4rem;display:grid}.line{justify-content:center;align-items:center;gap:4px;height:8px;display:flex}.seg{background:var(--roxy-fg,#0a0a0a);border-radius:1px;height:6px;display:block}.line.broken .seg{width:1.4rem}.line.solid .seg{width:3rem}.line.changing .seg{background:var(--roxy-accent,#f59e0b)}.title{font-size:var(--roxy-text-xl,1.5rem);font-weight:var(--roxy-weight-bold,600);letter-spacing:var(--roxy-tracking-tight);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0 0 var(--roxy-space-sm,.5rem)}.trigrams{gap:var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-sm,.5rem);color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:flex}.tri-glyph{font-size:var(--roxy-text-xl,1.5rem);color:var(--roxy-accent-ink,#b45309);vertical-align:middle;margin-right:4px}.judgment,.image,.message{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.judgment:before{content:"Judgment. ";font-weight:var(--roxy-weight-bold,600);color:var(--roxy-secondary,#475569)}.image:before{content:"Image. ";font-weight:var(--roxy-weight-bold,600);color:var(--roxy-secondary,#475569)}.line-meaning{padding-left:var(--roxy-space-sm,.5rem);border-left:2px solid var(--roxy-border,#e4e4e7);color:var(--roxy-muted,#71717a);margin:0}.changing{margin-top:var(--roxy-space-md,1rem);padding-top:var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-sm,.875rem)}`],Pt=g([b("roxy-hexagram")],Pt);var Nt=class extends y{renderData(t){let e=t.dayHoras??[],r=t.nightHoras??[];return e.length===0&&r.length===0?this.renderEmpty():s`<div class="wrap" part="card" aria-label="${this.t("Hora periods")}"><div class="head" part="header"><h2 class="title">${this.t("Hora")}</h2>${t.date?s`<p class="subtitle">${A(this.effectiveLang(),t.date)}</p>`:i}</div><div class="cols" part="table">${this.renderColumn(this.t("Day"),e)} ${this.renderColumn(this.t("Night"),r)}</div></div>`}renderColumn(t,e){return e.length===0?i:s`<div class="col"><p class="section-label">${t}</p>${e.map(r=>s`<div class="row"><span class="glyph" aria-hidden="true">${R(r.planet)??"·"}</span> <span class="planet">${r.planet}</span> <span class="time">${Ee(this.effectiveLang(),r)}</span> ${typeof r.number=="number"?s`<span class="num">${r.number}</span>`:i}</div>`)}</div>`}};Nt.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.cols{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.section-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-xs,.25rem) 0}.row{align-items:center;gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-xs,.25rem) 0;border-bottom:1px solid var(--roxy-border,#e4e4e7);font-size:var(--roxy-text-sm,.875rem);display:flex}.row:last-child{border-bottom:none}.glyph{color:var(--roxy-accent-ink,#b45309);text-align:center;width:1.25em;font-size:1.15em;line-height:1}.planet{flex:1;font-weight:500}.time{color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums;white-space:nowrap}.num{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;text-align:right;width:1.5em}@container (width<=30rem){.cols{grid-template-columns:1fr}}`],Nt=g([b("roxy-hora-table")],Nt);var He=class extends y{constructor(){super(...arguments);this.period="daily"}renderData(e){let r=e.sign??"",a=z(r)??"",n="energyRating"in e&&typeof e.energyRating=="number"?e.energyRating:null,l="date"in e&&e.date&&A(this.effectiveLang(),e.date)||"week"in e&&e.week||"month"in e&&e.month||"";return s`<article class="card" part="card" aria-label="${`${this.period} horoscope for ${r}`}"><header class="head" part="header"><span class="glyph" aria-hidden="true">${a}</span><div><h2 class="title">${r} ${this.period}</h2>${l?s`<div class="date">${l}</div>`:i}</div>${n!==null?s`<span class="energy" part="details" aria-label="${this.t("Energy {{value}} of 10",{value:n})}">${this.t("Energy {{value}}/10",{value:n})} <span class="energy-bar"><span style="width:${n/10*100}%"></span></span></span>`:i}</header>${e.overview&&!this.hideReadings?s`<p class="overview">${e.overview}</p>`:i} ${this.renderSky(e)} ${this.hideReadings?i:s`<div class="sections" part="section outlook">${e.love?s`<div class="section"><h3>${this.t("Love")}</h3><p>${e.love}</p></div>`:i} ${e.career?s`<div class="section"><h3>${this.t("Career")}</h3><p>${e.career}</p></div>`:i} ${e.health?s`<div class="section"><h3>${this.t("Health")}</h3><p>${e.health}</p></div>`:i} ${e.finance?s`<div class="section"><h3>${this.t("Finance")}</h3><p>${e.finance}</p></div>`:i} ${"advice"in e&&e.advice?s`<div class="section"><h3>${this.t("Advice")}</h3><p>${e.advice}</p></div>`:i}</div>`} ${this.renderMonth(e)} ${(()=>{let d="luckyNumber"in e&&e.luckyNumber!==void 0?e.luckyNumber:void 0,c="luckyColor"in e&&e.luckyColor?e.luckyColor:"",p="luckyNumbers"in e&&e.luckyNumbers?e.luckyNumbers:[],h="luckyDays"in e&&e.luckyDays?e.luckyDays:[],m=e.compatibleSigns??[];return d===void 0&&!c&&p.length===0&&h.length===0&&m.length===0?i:s`<div class="lucky" part="details">${d!==void 0?s`<span>${this.t("Lucky number")} <strong>${d}</strong></span>`:i} ${c?s`<span>${this.t("Lucky color")} <strong>${c}</strong></span>`:i} ${p.length?s`<span>${this.t("Lucky numbers")} <strong>${p.join(", ")}</strong></span>`:i} ${h.length?s`<span>${this.t("Lucky days")} <strong>${h.join(", ")}</strong></span>`:i} ${m.length?s`<span class="compat-wrap">${this.t("Best with")} <span class="compat">${m.map(f=>s`<span>${f}</span>`)}</span></span>`:i}</div>`})()}</article>`}renderSky(e){let r="moonSign"in e?e.moonSign:"",a="moonPhase"in e?e.moonPhase:"",n=("activeTransits"in e?e.activeTransits:[])??[];if(!r&&!a&&n.length===0)return i;let l=z(r)??"";return s`<div class="sky" part="section sky">${r||a?s`<div class="moon-line">${r?s`<span><span class="lbl">${this.t("Moon")}</span> <span aria-hidden="true">${l}</span> <b>${r}</b></span>`:i} ${a?s`<span><span class="lbl">${this.t("Phase")}</span> <b>${a}</b></span>`:i}</div>`:i} ${n.length?s`<ul class="transits" aria-label="${this.t("Active transits")}">${n.map(d=>s`<li>${d}</li>`)}</ul>`:i}</div>`}renderMonth(e){let r=("weekByWeek"in e?e.weekByWeek:[])??[],a=("keyDates"in e?e.keyDates:[])??[];return r.length===0&&a.length===0?i:s`${r.length&&!this.hideReadings?s`<section part="section week-by-week"><h3 class="block-title">${this.t("Week by week")}</h3><div class="weeks">${r.map(n=>s`<div class="week"><span class="week-no">${this.t("Week {{n}}",{n:n.week})}</span><div><div class="week-focus">${n.focus}</div>${n.advice?s`<p class="week-advice">${n.advice}</p>`:i}</div></div>`)}</div></section>`:i} ${a.length?s`<section part="section key-dates"><h3 class="block-title">${this.t("Key dates")}</h3><dl class="dates">${a.map(n=>s`<div class="date-row"><dt>${A(this.effectiveLang(),n.date)||n.date}</dt><dd>${n.event}</dd></div>`)}</dl></section>`:i}`}};He.styles=[x,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.glyph{color:var(--roxy-accent-ink,#b45309);font-size:2.25rem;line-height:1}.title{font-size:var(--roxy-text-xl,1.5rem);font-weight:var(--roxy-weight-bold,600);letter-spacing:var(--roxy-tracking-tight);text-transform:capitalize;margin:0}.date{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a)}.energy{font-variant-numeric:tabular-nums;font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-secondary,#475569);margin-left:auto}.energy-bar{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);vertical-align:middle;width:6rem;height:6px;margin-left:6px;display:inline-block;overflow:hidden}.energy-bar>span{background:var(--roxy-accent,#f59e0b);height:100%;transition:width var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.overview{font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a);margin:0}.sections{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.section h3{margin:0 0 var(--roxy-space-xs,.25rem) 0;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em}.section p{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0}.lucky{gap:var(--roxy-space-sm,.5rem);border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-secondary,#475569);flex-wrap:wrap;display:flex}.lucky strong{color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600)}.compat-wrap{align-items:center;gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;width:100%;display:flex}.compat{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.compat span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);text-transform:capitalize;padding:2px 8px}.sky{gap:var(--roxy-space-sm,.5rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);display:grid}.moon-line{align-items:baseline;gap:.35rem var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);flex-wrap:wrap;display:flex}.moon-line b{font-weight:var(--roxy-weight-bold,600)}.moon-line .lbl{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600);margin-right:.35rem}.transits{gap:.25rem;margin:0;padding:0;list-style:none;display:grid}.transits li{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);padding-left:.9rem;position:relative}.transits li:before{content:"";background:var(--roxy-accent,#f59e0b);border-radius:50%;width:5px;height:5px;position:absolute;top:.5em;left:0}.block-title{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em}.weeks{gap:var(--roxy-space-sm,.5rem);display:grid}.week{gap:var(--roxy-space-sm,.5rem);border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-sm,.5rem);grid-template-columns:3.5rem 1fr;align-items:baseline;display:grid}.week:first-child{border-top:0;padding-top:0}.week-no{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600)}.week-focus{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem)}.week-advice{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:.15rem 0 0}.dates{gap:.3rem var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:max-content 1fr;margin:0;display:grid}.date-row{display:contents}.date-row dt{font-variant-numeric:tabular-nums;color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600);white-space:nowrap}.date-row dd{color:var(--roxy-fg,#0a0a0a);margin:0}`],g([S({type:String,reflect:!0})],He.prototype,"period",2),He=g([b("roxy-horoscope-card")],He);var Wl=[{id:"planets",label:"Planets"},{id:"cusps",label:"Cusps"},{id:"significators",label:"Significators"}],La=[1,2,3,4];function xs(o,t){return o?typeof t=="number"?`${o} ${t}`:o:""}function Lo(o){return[...new Set(o.map(String))].join(" > ")}function Jl(o){return[...new Set(o??[])]}var Fe=class extends y{constructor(){super(...arguments);this.activeTab="planets"}bodies(){let e=this.data;if(!e)return[];let r=(e.planets??[]).map(n=>({name:n.planet,longitude:n.longitude,house:n.house,nakshatra:n.nakshatra,pada:n.pada,starLord:n.starLord,subLord:n.subLord,subSubLord:n.subSubLord,kpNumber:n.kpNumber,retrograde:n.retrograde})),a=e.nodes;for(let[n,l]of[["Rahu",a?.rahu],["Ketu",a?.ketu]])l&&r.push({name:n,longitude:l.longitude,house:l.house,nakshatra:l.nakshatra,starLord:l.starLord,subLord:l.subLord,subSubLord:l.subSubLord,kpNumber:l.kpNumber,retrograde:!0});return r}renderData(e){let r=e.ascendant;return s`<div class="wrap" part="card" aria-label="KP chart" tabindex="0"><header class="head" part="header"><h2 class="title">KP chart</h2>${r?s`<div class="asc">Ascendant: <strong>${typeof r.longitude=="number"?ie(r.longitude):r.sign??""} </strong>${r.nakshatra?s`· ${xs(r.nakshatra,r.pada)}`:i} ${r.subLord?s`· sub lord ${r.subLord}`:i} ${typeof r.kpNumber=="number"?s`· KP ${r.kpNumber}`:i}</div>`:i} ${typeof e.meta?.ayanamsa=="number"?s`<div class="ayan">Ayanamsa: ${it(this.effectiveLang(),e.meta.ayanamsaType,e.meta.ayanamsa)} ${e.meta.houseSystem?s`· ${e.meta.houseSystem} houses`:i}</div>`:i}</header>${se({items:Wl,active:this.activeTab,onSelect:a=>{this.activeTab=a},label:"KP chart views",idPrefix:"kp",controls:!0})}<div id="kp-panel-${this.activeTab}" part="panel" role="tabpanel" aria-labelledby="kp-tab-${this.activeTab}">${this.activeTab==="planets"?this.renderPlanets():this.activeTab==="cusps"?this.renderCusps():this.renderSignificators()}</div></div>`}renderPlanets(){let e=this.bodies();return e.length?s`<table part="table" role="table"><caption class="roxy-sr-only">KP planets and nodes: each body with its position, house, nakshatra and pada, star lord, sub lord, sub sub lord and KP number.</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">Position</th><th scope="col">House</th><th scope="col">Nakshatra, pada</th><th scope="col">Star lord</th><th scope="col">Sub lord</th><th scope="col">Sub-sub lord</th><th scope="col">KP no.</th></tr></thead><tbody>${e.map(r=>s`<tr><td class="body">${r.name}${r.retrograde?s`<span class="retro">R</span>`:i}</td><td class="num">${typeof r.longitude=="number"?ie(r.longitude):""}</td><td class="num">${typeof r.house=="number"?r.house:""}</td><td>${xs(r.nakshatra,r.pada)}</td><td>${r.starLord??""}</td><td>${r.subLord??""}</td><td>${r.subSubLord??""}</td><td class="num">${typeof r.kpNumber=="number"?r.kpNumber:""}</td></tr>`)}</tbody></table>`:s`<p class="roxy-empty" role="status">No planets</p>`}renderCusps(){let e=this.data?.cusps??[],r=this.data?.houseThemes;return e.length?s`<table part="table" role="table"><caption class="roxy-sr-only">KP Placidus cusps: each house cusp with what it signifies, its position, sign lord, nakshatra and pada, star lord, sub lord, sub sub lord and KP number.</caption><thead><tr><th scope="col">House</th><th scope="col">Position</th><th scope="col">Sign lord</th><th scope="col">Nakshatra, pada</th><th scope="col">Star lord</th><th scope="col">Sub lord</th><th scope="col">Sub-sub lord</th><th scope="col">KP no.</th></tr></thead><tbody>${e.map(a=>s`<tr><td class="body num">${a.house}${this.renderThemes(Za(a.house,r))}</td><td class="num">${typeof a.longitude=="number"?ie(a.longitude):a.sign??""}</td><td>${a.signLord??""}</td><td>${xs(a.nakshatra,a.pada)}</td><td>${a.starLord??""}</td><td>${a.subLord??""}</td><td>${a.subSubLord??""}</td><td class="num">${typeof a.kpNumber=="number"?a.kpNumber:""}</td></tr>`)}</tbody></table>`:s`<p class="roxy-empty" role="status">No cusps</p>`}renderSignificators(){let e=this.data?.significators,r=this.data?.houseThemes,a=e?.houseWise??[],n=e?.planetWise??[];return!a.length&&!n.length?s`<p class="roxy-empty" role="status">No significators</p>`:s`${this.renderLevelLegend(a)} ${a.length?s`<div class="sig-head"><h3 class="sig-title">House-wise significators</h3><p class="sig-note">Planets that signify each house, strongest level first.</p></div><table part="table" role="table"><caption class="roxy-sr-only">KP house-wise significators: each house, the planets that signify it at levels 1 to 4, and the full strength order.</caption><thead><tr><th scope="col">House</th>${La.map(l=>s`<th scope="col">L${l}</th>`)}<th scope="col">Strength order</th></tr></thead><tbody>${a.map(l=>s`<tr><td class="body num">${l.house}${this.renderThemes(Za(l.house,r))}</td>${La.map(d=>this.renderCell(this.planetsAtLevel(l,d).join(", ")))}<td class="chain">${Lo(l.all??[])}</td></tr>`)}</tbody></table>`:i} ${n.length?s`<div class="sig-head"><h3 class="sig-title">Planet-wise significators</h3><p class="sig-note">Houses each planet signifies, strongest level first.</p></div><table part="table" role="table"><caption class="roxy-sr-only">KP planet-wise significators: each planet, the houses it signifies at levels 1 to 4, and the full strength order.</caption><thead><tr><th scope="col">Planet</th>${La.map(l=>s`<th scope="col">L${l}</th>`)}<th scope="col">Strength order</th></tr></thead><tbody>${n.map(l=>s`<tr><td class="body">${l.planet}</td>${La.map(d=>this.renderCell(this.housesAtLevel(l,d).join(", ")))}<td class="chain">${Lo(l.allHouses??[])}${this.renderThemes(ye(Jl(l.allHouses),r))}</td></tr>`)}</tbody></table>`:i}`}renderThemes(e){return e?s`<span class="themes">${e}</span>`:i}renderCell(e){return e?s`<td>${e}</td>`:s`<td class="empty-cell">none</td>`}planetsAtLevel(e,r){return(e.significators??[]).filter(a=>a.level===r).flatMap(a=>a.planets??[])}housesAtLevel(e,r){return(e.signifies??[]).filter(a=>a.level===r).flatMap(a=>a.houses??[])}renderLevelLegend(e){let r=new Map;for(let a of e)for(let n of a.significators??[])n.description&&!r.has(n.level)&&r.set(n.level,n.description);return r.size===0?i:s`<ul class="legend" part="legend" aria-label="Significator levels">${[...r.entries()].sort((a,n)=>a[0]-n[0]).map(([a,n])=>s`<li><b>L${a}</b>${n}</li>`)}</ul>`}};Fe.styles=[x,ee,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);width:100%;overflow:auto}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.asc,.ayan{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.asc strong{color:var(--roxy-fg,#0a0a0a)}.roxy-tablist{padding:0 var(--roxy-space-md,1rem)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:620px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}td.body{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.retro{color:var(--roxy-warning-fg,#9a3412);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);margin-left:4px}.num{font-variant-numeric:tabular-nums}.sig-head{padding:var(--roxy-space-md,1rem) var(--roxy-space-md,1rem) 0;gap:var(--roxy-space-xs,.25rem);display:grid}.sig-title{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);margin:0}.sig-note{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);margin:0}.legend{gap:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);padding:var(--roxy-space-md,1rem) var(--roxy-space-md,1rem) 0;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);flex-wrap:wrap;margin:0;list-style:none;display:flex}.legend b{color:var(--roxy-accent-ink,#b45309);margin-right:4px}.chain,.empty-cell{color:var(--roxy-muted,#71717a)}.themes{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-normal,400);text-transform:none;letter-spacing:normal;display:block}`],g([G()],Fe.prototype,"activeTab",2),Fe=g([b("roxy-kp-chart")],Fe);var Gt=class extends y{renderData(t){let e=t.planets??[];return s`<div class="wrap" part="card" aria-label="KP planets table" tabindex="0"><header class="head" part="header"><h2 class="title">KP planets</h2>${typeof t.ayanamsa=="number"?s`<span class="ayanamsa">Ayanamsa: ${v(this.effectiveLang(),t.ayanamsa,2)}°</span>`:i}</header><table part="table" role="table"><caption class="roxy-sr-only">KP planets: each planet with its sign, sign lord, nakshatra, star lord, sub lord, sub sub lord and KP number.</caption><thead><tr><th scope="col">Planet</th><th scope="col">Sign</th><th scope="col">Sign lord</th><th scope="col">Nakshatra</th><th scope="col">Star lord</th><th scope="col">Sub lord</th><th scope="col">Sub-sub lord</th><th scope="col">KP no.</th></tr></thead><tbody>${e.map(r=>s`<tr><td class="planet">${r.planet} ${r.retrograde?s`<span class="retro">R</span>`:i}</td><td>${r.sign??""}</td><td>${r.signLord??""}</td><td>${r.nakshatra??""}</td><td>${r.nakshatraLord??""}</td><td>${r.subLord??""}</td><td>${r.subSubLord??""}</td><td>${r.kpNumber??""}</td></tr>`)}</tbody></table></div>`}};Gt.styles=[x,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:auto}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);justify-content:space-between;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.ayanamsa{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:560px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}td.planet{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.retro{color:var(--roxy-warning-fg,#9a3412);font-size:var(--roxy-text-xs,.75rem);margin-left:4px}`],Gt=g([b("roxy-kp-planets-table")],Gt);var Ot=class extends y{renderData(t){let e=t.significators??[];return s`<div class="wrap" part="card" aria-label="KP ruling planets"><header part="header"><h2 class="title">KP ruling planets</h2>${t.dayLord?s`<div class="day-lord">Day lord: <strong>${t.dayLord}</strong></div>`:i}</header><div class="groups" part="details"><div class="group"><h3>Moon</h3><dl><dt>Sign lord</dt><dd>${t.moonSignLord??""}</dd><dt>Star lord</dt><dd>${t.moonStarLord??""}</dd><dt>Sub lord</dt><dd>${t.moonSublord??""}</dd><dt>Sub-sub lord</dt><dd>${t.moonSubSublord??""}</dd></dl></div><div class="group"><h3>Lagna</h3><dl><dt>Sign lord</dt><dd>${t.lagnaSignLord??""}</dd><dt>Star lord</dt><dd>${t.lagnaStarLord??""}</dd><dt>Sub lord</dt><dd>${t.lagnaSublord??""}</dd><dt>Sub-sub lord</dt><dd>${t.lagnaSubSublord??""}</dd></dl></div></div>${t.rulingPlanets?.length?s`<div class="rp-list" part="details" role="list" aria-label="Ruling planets by strength"><span class="rp-label">Ruling planets</span> ${t.rulingPlanets.map((r,a)=>s`<span class="rp" role="listitem"><span class="rank">${a+1}</span> ${r}</span>`)}</div>`:i} ${e.length?s`<table part="table"><caption class="roxy-sr-only">House significators: each ruling planet, the houses it signifies, and what those houses stand for.</caption><thead><tr><th scope="col">Planet</th><th scope="col">Signifies houses</th></tr></thead><tbody>${e.map(r=>{let a=ye(r.signifies,t.houseThemes);return s`<tr><td>${r.planet}</td><td><span class="num">${(r.signifies??[]).join(", ")}</span> ${a?s`<span class="themes">${a}</span>`:i}</td></tr>`})}</tbody></table>`:i}</div>`}};Ot.styles=[x,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);padding:var(--roxy-space-md,1rem);gap:var(--roxy-space-md,1rem);box-shadow:var(--roxy-shadow-sm);grid-template-columns:minmax(0,1fr);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.day-lord{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.day-lord strong{color:var(--roxy-fg,#0a0a0a)}.groups{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));display:grid}.group h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.group dl{gap:2px var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:auto 1fr;margin:0;display:grid}.group dt{color:var(--roxy-muted,#71717a)}.group dd{color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600);margin:0}.rp-list{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;align-items:center;display:flex}.rp-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em;margin-right:var(--roxy-space-xs,.25rem)}.rp{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:999px;align-items:center;gap:.3em;padding:.15em .6em;display:inline-flex}.rp .rank{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-accent-ink,#b45309)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-sm,.5rem);text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7)}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}.num{font-variant-numeric:tabular-nums}.themes{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}`],Ot=g([b("roxy-kp-ruling-planets")],Ot);var bs=320,pe=bs/2,Se=128,Xl=118,Ql=140,ed=150;function Re(o,t){let e=o*Math.PI/180;return{x:pe+t*Math.sin(e),y:pe-t*Math.cos(e)}}var td=[{az:0,source:"N"},{az:45,source:"NE"},{az:90,source:"E"},{az:135,source:"SE"},{az:180,source:"S"},{az:225,source:"SW"},{az:270,source:"W"},{az:315,source:"NW"}],_t=class extends y{renderData(t){let e=t.bodies??[],r=t.birthDetails;return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t("Local space")}</h2>${r?s`<div class="meta">${q(this.effectiveLang(),r.date,r.time)}</div>`:i}</header>${this.renderDial(e)} ${t.summary?s`<p class="summary">${t.summary}</p>`:i} ${this.renderList(e)}</div>`}renderDial(t){return s`<svg viewBox="0 0 ${bs} ${bs}" part="chart" role="img" aria-label="${this.t("Local space compass of planetary directions from the birthplace")}"><title>${this.t("Local space compass")}</title><desc>${this.t("A compass centered on the birthplace. Each body is a line pointing to its azimuth, clockwise from north. Bodies below the horizon are dimmed.")}</desc><circle class="dial-fill" cx="${pe}" cy="${pe}" r="${Se}"/><circle class="dial" cx="${pe}" cy="${pe}" r="${Se*.66}" stroke-width="0.5"/><circle class="dial" cx="${pe}" cy="${pe}" r="${Se*.33}" stroke-width="0.5"/>${this.renderCompassRing()} ${this.renderSpokes(t)}<circle class="center-dot" cx="${pe}" cy="${pe}" r="2.5"/></svg>`}renderCompassRing(){let t=[];for(let d=0;d<360;d+=22.5){let c=Re(d,Se),p=Re(d,Se-(d%45===0?8:4));t.push(L`<line class="tick" x1=${p.x} y1=${p.y} x2=${c.x} y2=${c.y} />`)}let e=Re(0,Se),r=Re(180,Se),a=Re(90,Se),n=Re(270,Se),l=td.map(({az:d,source:c})=>{let p=Re(d,ed),h=d%90===0;return L`<text class=${`compass-label${h?" cardinal":""}`} x=${p.x} y=${p.y} text-anchor="middle" dominant-baseline="central">${this.t(c)}</text>`});return L`
|
|
98
|
+
${uo(m,l,f,o.holders.get(f)??[],o.letterFor)}
|
|
99
|
+
${uo(m,d,C,o.holders.get(C)??[],o.letterFor)}
|
|
100
|
+
</g>`)})}return L`${Zl()}${t.length>0?t:i}`}var Et=class extends y{renderChart(t){let e=(t.channels??[]).filter(a=>a.gateA!=null&&a.gateB!=null).map(a=>({gateA:a.gateA,gateB:a.gateB,name:a.name??"",defined:a.defined===!0,isCore:a.isCore===!0}));if(e.length===0)return i;let r=new Map((t.gates??[]).filter(a=>a.gate!=null).map(a=>[a.gate,a.heldBy??[]]));return s`<svg class="chart" part="chart" viewBox="${fo}" preserveAspectRatio="xMidYMid meet" role="img" aria-label="Penta ladder: the Throat, G and Sacral with the six penta channels between them, each marked defined or open and lettered with the members holding its gates"><title>Penta</title>${bo({rungs:e,holders:r,letterFor:vo})}</svg>`}renderData(t){let e=t.channels??[],r=t.gates??[],a=t.summary,n=a?.gapGates??[],l=e.some(d=>d.isCore);return s`<div class="wrap" part="card" aria-label="Human Design penta"><header class="head" part="header"><h2 class="title">Penta</h2>${typeof t.memberCount=="number"?s`<span class="count">${t.memberCount} members</span>`:i}</header>${this.renderChart(t)} ${$e([{label:"Members",value:t.memberCount?.toString()},{label:"Defined channels",value:typeof a?.definedChannels=="number"&&e.length>0?`${a.definedChannels} of ${e.length}`:void 0},{label:"Filled gates",value:typeof a?.filledGates=="number"&&r.length>0?`${a.filledGates} of ${r.length}`:void 0},{label:"Core",value:typeof a?.coreDefined=="boolean"?a.coreDefined?"Defined":"Open":void 0},{label:"Gap gates",value:n.length>0?n.join(", "):void 0}])} ${this.hideReadings?i:s`<p class="lead">A penta is the field three to five people form when they work as a group. It is read from the twelve penta gates the members bring between them: a channel with both of its gates held somewhere in the group is a defined Strength, and a gate no member holds is a gap the group has to compensate for.</p>`} ${this.renderGroup("Upper (direction)",e.filter(d=>d.position==="upper"),"Upper channels run from the G Center to the Throat. They carry the leadership of the group and how it presents itself.")} ${this.renderGroup("Lower (execution)",e.filter(d=>d.position==="lower"),"Lower channels run from the G Center to the Sacral. They carry the managed, generative, resource work.")} ${this.renderGroup("Channels",e.filter(d=>d.position!=="upper"&&d.position!=="lower"))} ${l&&!this.hideReadings?s`<p class="footnote">Core is the 2/14 Channel of the Beat, the material core of the penta: gate 2 sets the direction for resources, gate 14 is the resources themselves.</p>`:i} ${this.renderGates(r)} ${e.length>0||r.length>0?s`<p class="footnote" part="legend">Members are lettered in the order they were sent, so A is the first member of the group.</p>`:i}</div>`}renderGroup(t,e,r){return e.length===0?i:s`<div class="section" part="section channels"><h3>${t}</h3>${r&&!this.hideReadings?s`<p class="note">${r}</p>`:i} ${e.map(a=>s`<div class="row"><span class="gates">${a.gateA}-${a.gateB}</span> <span class="cname">${a.name??""} ${a.circuit?s`<span class="circuit">${a.circuit} circuit</span>`:i} </span><span class="badge ${a.defined?"defined":"open"}">${a.defined?"Defined":"Open"}</span> ${a.isCore?s`<span class="badge core">Core</span>`:i} <span class="held">Gate ${a.gateA} held by ${xs(a.gateAHeldBy)}. Gate ${a.gateB} held by ${xs(a.gateBHeldBy)}.</span></div>`)}</div>`}renderGates(t){if(t.length===0)return i;let e=t.filter(r=>r.filled).length;return s`<div class="section" part="section gates"><h3>Gates (${e} of ${t.length} filled)</h3>${this.hideReadings?i:s`<p class="note">The role each gate brings to the group, and who carries it. A gap is a role no member holds, so the group compensates for it.</p>`} ${t.map(r=>s`<div class="row"><span class="gate-id">${r.gate}</span> <span class="cname">${r.gateName??""}</span> ${r.filled?s`<span class="who">Held by ${xs(r.heldBy)}</span>`:s`<span class="badge gap">Gap</span>`}</div>`)}</div>`}};Et.styles=[x,Pe,u`.chart{width:100%;max-width:var(--roxy-chart-max-width,22rem);height:auto;margin:0 auto;display:block}.pn-bar{fill:color-mix(in srgb, var(--roxy-accent,#f59e0b) 12%, transparent);stroke:var(--roxy-accent-ink,#b45309);stroke-width:1.5px}.pn-bar-label{fill:var(--roxy-fg,#0a0a0a);font-size:15px;font-weight:var(--roxy-weight-bold,600);font-family:var(--roxy-font-sans)}.pn-rung{stroke:var(--roxy-border,#e4e4e7);stroke-width:6px;stroke-dasharray:6 6}.pn-rung.on{stroke:var(--roxy-accent-ink,#b45309);stroke-dasharray:none}.pn-rung.on.core{stroke-width:9px}.pn-name{fill:var(--roxy-muted,#71717a);font-size:12px;font-family:var(--roxy-font-sans)}.pn-name.on{fill:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600)}.pn-gate-dot{fill:var(--roxy-surface,#fff);stroke:var(--roxy-border,#e4e4e7);stroke-width:1.5px;stroke-dasharray:4 4}.pn-gate-dot.on{stroke:var(--roxy-accent-ink,#b45309);stroke-dasharray:none}.pn-gate{fill:var(--roxy-muted,#71717a);font-size:13px;font-weight:var(--roxy-weight-bold,600);font-family:var(--roxy-font-sans)}.pn-gate.on{fill:var(--roxy-fg,#0a0a0a)}.pn-badge{fill:var(--roxy-accent-ink,#b45309)}.pn-badge-text{fill:var(--roxy-surface,#fff);font-size:9px;font-weight:var(--roxy-weight-bold,600);font-family:var(--roxy-font-sans)}.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.count{color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600)}.section{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.section h3{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.note{margin:var(--roxy-space-xs,.25rem) 0 0;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:1.6}.row{align-items:center;gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-sm,.5rem) 0;border-bottom:1px solid var(--roxy-border,#e4e4e7);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;display:flex}.row:last-child{border-bottom:none}.gates,.gate-id{font-variant-numeric:tabular-nums;color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600);min-width:3.5rem}.cname{flex:1;min-width:8rem}.circuit{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}.held{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);flex-basis:100%;line-height:1.6}.who{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:1px 8px;display:inline-flex}.badge.defined{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.badge.open{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a)}.badge.core{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-fg,#0a0a0a)}.badge.gap{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.footnote{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0;line-height:1.6}`],Et=g([b("roxy-hd-penta")],Et);var Jl="ABCDE",vo=o=>Jl[o]??String(o+1);function xs(o){let t=(o??[]).map(vo);return t.length>0?t.join(", "):"nobody"}var Mt=class extends y{renderData(t){return Xl(t)?this.renderType(t):this.renderProfile(t)}renderType(t){return s`<div class="wrap" part="card"><header class="head" part="header"><h2 class="title">${this.t("Type")}</h2>${t.type||t.profile?s`<div class="type-line">${[$(t,"type"),t.profile?this.t("Profile {{profile}}",{profile:t.profile}):""].filter(Boolean).join(" · ")}</div>`:i}</header>${$e([{label:this.t("Type"),value:$(t,"type")},{label:this.t("Strategy"),value:$(t,"strategy")},{label:this.t("Authority"),value:$(t,"authority")},{label:this.t("Profile"),value:t.profile}])} ${t.typeDescription&&!this.hideReadings?s`<p class="lead">${t.typeDescription}</p>`:i} ${ta(t.signature?$(t,"signature"):void 0,t.notSelf?$(t,"notSelf"):void 0,this.translator)} ${this.renderInterpretation([{label:this.t("Strategy"),aside:$(t,"strategy"),body:t.strategyDescription},{label:this.t("Authority"),aside:$(t,"authority"),body:t.authorityDescription},{label:this.t("Aura"),body:t.aura}],"hd-type-reading")}</div>`}renderProfile(t){return s`<div class="wrap" part="card"><header class="head" part="header"><h2 class="title">${this.t("Profile")}</h2>${t.profile?s`<div class="type-line">${t.profile}</div>`:i}</header>${$e([{label:this.t("Profile"),value:t.profile},{label:this.t("Personality line"),value:t.personalityLine?.toString()},{label:this.t("Design line"),value:t.designLine?.toString()}])} ${this.hideReadings?i:s`<section class="block" part="section lines"><h3>${this.t("Lines")}</h3>${ra({personality:t.personalityKeynote,personalityLine:t.personalityLine,design:t.designKeynote,designLine:t.designLine},this.translator)}</section>`}</div>`}};Mt.styles=[x,M,_,Pe,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.type-line{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}`],Mt=g([b("roxy-hd-type-card")],Mt);function Xl(o){return typeof o.type=="string"}var zt=class extends y{renderData(t){let e=[...t.arrows??[]].sort((r,a)=>Lo(r.position)-Lo(a.position));return s`<div class="wrap" part="card" aria-label="${this.t("Human Design variables")}"><h2 class="title" part="header">${this.t("Variables")}</h2><div class="grid" part="details arrows">${e.map(r=>this.renderArrow(r))}</div>${t.confident===!1?s`<p class="note" role="note">${typeof t.confidenceMarginDeg=="number"?this.t("Low confidence: a birth time near a color or tone boundary (within {{margin}}°). Verify the exact birth time.",{margin:t.confidenceMarginDeg}):this.t("Low confidence: a birth time near a color or tone boundary. Verify the exact birth time.")}</p>`:i} ${this.renderReading(e,t.baseDescription)}</div>`}renderArrow(t){let e=t.direction==="left"?"←":"→",r=$(t,"baseName");return s`<div class="arrow"><div class="arrow-head"><span class="glyph" aria-hidden="true">${e}</span> <span class="name">${$(t,"name")}</span></div>${t.layer?s`<span class="layer">${$(t,"layer")}</span>`:i} <span class="labels">${[$(t,"directionLabel"),$(t,"colorLabel")].filter(Boolean).join(" · ")} </span>${typeof t.color=="number"?s`<span class="ctb">${this.t("Color {{color}} · Tone {{tone}} · Base {{base}}",{color:t.color,tone:t.tone??"",base:t.base??""})}${r?`, ${r}`:""}</span>`:i} ${t.activation?.planet?s`<span class="ctb">${[t.activation.planet,ea(t.activation.side,this.translator)].filter(Boolean).join(" · ")}</span>`:i} ${t.confident===!1?s`<span class="note" role="note">${this.t("Knife-edge: could flip with a more precise birth time.")}</span>`:i}</div>`}renderReading(t,e){let r=t.filter(l=>l.description||l.colorMeaning);if(r.length===0||this.hideReadings)return i;let a=new Map;for(let l of r){let d=l.layer??"",c=a.get(d);c?c.push(l):a.set(d,[l])}let n=0;return s`<section class="block" part="section readings"><h3>${this.t("Reading")}</h3>${[...a].map(([l,d])=>s`<div class="group">${l?s`<p class="group-head">${$(d[0],"layer")}</p>`:i} ${d[0]?.layerDescription?s`<p class="group-note">${d[0].layerDescription}</p>`:i} ${d.map(c=>this.renderArrowReading(c,n++===0))}</div>`)} ${e?s`<p class="footnote">${this.t("Base")}. ${e}</p>`:i}</section>`}renderArrowReading(t,e){let r=t.cognition,a=r?$(r,"label"):"",n=[{label:this.t("Color"),body:t.colorMeaning},{label:this.t("Tone"),body:t.toneMeaning},{label:this.t("Direction"),body:t.directionMeaning},{label:a?`${this.t("Cognition")} · ${a}`:this.t("Cognition"),body:r?.description}].filter(l=>!!l.body);return s`<details class="interp-card" part="reading" name="hd-variable" ?open="${e}"><summary><span class="interp-lead">${$(t,"name")}</span> ${j()} ${t.position?s`<span class="interp-aside"><small>${$(t,"position")}</small></span>`:i}</summary><div class="interp-body">${t.description?s`<p>${t.description}</p>`:i} ${n.length>0?s`<dl class="facets">${n.map(l=>s`<dt>${l.label}</dt><dd>${l.body}</dd>`)}</dl>`:i}</div></details>`}};zt.styles=[x,M,_,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.grid{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.arrow{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);gap:var(--roxy-space-xs,.25rem);align-content:start;display:grid}.arrow-head{align-items:center;gap:var(--roxy-space-sm,.5rem);display:flex}.glyph{color:var(--roxy-accent-ink,#b45309);font-size:1.75rem;line-height:1}.name{font-weight:var(--roxy-weight-bold,600)}.layer{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.labels{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.ctb{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums}.note{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-warning-fg,#9a3412)}@container (width<=28rem){.grid{grid-template-columns:minmax(0,1fr)}}.group{margin-bottom:var(--roxy-space-md,1rem)}.group:last-of-type{margin-bottom:0}.group-head{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.group-note{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:1.6}.facets{gap:var(--roxy-space-xs,.25rem);margin:0;display:grid}.facets dt{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.facets dd{margin:0}.footnote{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0;line-height:1.6}`],zt=g([b("roxy-hd-variables")],zt);function Lo(o){switch(o){case"Top left":return 0;case"Top right":return 1;case"Bottom left":return 2;case"Bottom right":return 3;default:return 99}}var Ql={udaya:"Rose",asta:"Set"},ed={udaya:"rises",asta:"sets"},Pt=class extends y{renderData(t){let e=t.grahas??[];return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Heliacal visibility")}"><header class="head" part="header"><h2 class="title">${this.t("Heliacal rising and setting")}</h2><p class="sub">${this.t("Whether each graha stands far enough from the Sun to be seen, for {{date}}. The Sun and the nodes never appear here: they have no heliacal event.",{date:t.date})}</p></header><div class="rows" part="table">${e.map(r=>this.renderGraha(r))}</div></div>`:this.renderEmpty()}renderGraha(t){let e=R(t.graha)??"";return s`<article class="row"><div class="row-top"><span class="graha">${e?s`<span class="glyph">${e}</span>`:i}${t.graha} </span><span class="state ${t.visible?"visible":"invisible"}">${t.visible?this.t("Visible"):this.t("Invisible")} </span>${t.retrograde?s`<span class="retro" title="${this.t("retrograde")}">R</span>`:i}</div><p class="window" part="window">${this.windowLine(t)}</p><p class="meta" part="details">${this.metaLine(t)}</p></article>`}windowLine(t){let e=t.nextEvent,r=t.lastEvent;if(e){let a={event:this.t(ed[e.type]),where:e.horizon==="east"?this.t("in the east"):this.t("in the west"),when:q(this.effectiveLang(),e.datetime)};return s`${t.visible?this.t("Visible until it {{event}} {{where}} on {{when}}",a):this.t("Invisible until it {{event}} {{where}} on {{when}}",a)}`}return r?s`${this.t("{{event}} {{where}} on {{when}}, with no further event inside the search window",{event:this.t(Ql[r.type]),where:r.horizon==="east"?this.t("in the east"):this.t("in the west"),when:q(this.effectiveLang(),r.datetime)})}`:s`${this.t("No rising or setting inside the search window, which is normal for a graha far from the Sun")}`}metaLine(t){let e=t.horizon==="east"?this.t("a morning graha, read before sunrise"):this.t("an evening graha, read after sunset"),r=t.nextEvent??t.lastEvent,a=r&&r.kalamsa!==t.kalamsa,n={degrees:v(this.effectiveLang(),t.timeDegrees,2),limit:v(this.effectiveLang(),t.kalamsa,0),shifted:a?v(this.effectiveLang(),r.kalamsa,0):""};return s`${a?this.t("{{degrees}}° of time from the Sun against a limit of {{limit}}°, becoming {{shifted}}° at that event",n):this.t("{{degrees}}° of time from the Sun against a limit of {{limit}}°",n)} · ${e}`}};Pt.styles=[x,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.sub{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);margin:0}.rows{display:grid}.row{gap:var(--roxy-space-xs,.25rem);padding:var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);grid-template-columns:minmax(0,1fr);display:grid}.row-top{align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.35em}.state{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-sm,4px);border:1px solid var(--roxy-border,#e4e4e7);color:var(--roxy-fg,#0a0a0a);padding:.1rem .45rem}.state.invisible{background:color-mix(in srgb, var(--roxy-warning,#f59e0b) 14%, transparent)}.retro{color:var(--roxy-warning-fg,#9a3412);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600)}.window{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.num{font-variant-numeric:tabular-nums}`],Pt=g([b("roxy-heliacal-table")],Pt);var Nt=class extends y{resolveHexagram(){let t=this.data;if(!t)return null;if("hexagram"in t&&t.hexagram){if("lines"in t){let r=t;return{hex:r.hexagram,lines:r.lines,changingLinePositions:r.changingLinePositions,resultingHexagram:r.resultingHexagram}}let e=t;return{hex:e.hexagram,dailyMessage:e.dailyMessage}}return{hex:t}}renderData(){let t=this.resolveHexagram();if(!t)return this.renderEmpty();let{hex:e,lines:r,changingLinePositions:a,dailyMessage:n,resultingHexagram:l}=t,d=r??this.derivedLines(e),c=new Set(a??[]),p=!this.hideReadings;return s`<article class="card" part="card" aria-label="${this.t("I Ching hexagram")}"><div class="glyphs" part="chart">${e.symbol?s`<div class="symbol">${e.symbol}</div>`:i}<div class="lines" aria-hidden="true">${d.slice().reverse().map((h,m)=>{let f=d.length-1-m+1,C=c.has(f),w=h===6||h===8;return s`<div class="line ${`${w?"broken":"solid"}${C?" changing":""}`}">${w?L`<span class="seg"></span><span class="seg"></span>`:L`<span class="seg"></span>`}</div>`})}</div></div><div part="header"><h2 class="title">${[e.number!=null?`${e.number}.`:"",e.english??e.chinese??"Hexagram"].filter(Boolean).join(" ")}</h2><p class="subtitle">${e.chinese?s`${e.chinese}`:i} ${e.pinyin?s`· ${e.pinyin}`:i}</p><div class="trigrams" part="details">${e.upperTrigram?s`<div>${this.t("Upper")} <span class="tri-glyph">${Ka(e.upperTrigram)??""}</span>${e.upperTrigram}</div>`:i} ${e.lowerTrigram?s`<div>${this.t("Lower")} <span class="tri-glyph">${Ka(e.lowerTrigram)??""}</span>${e.lowerTrigram}</div>`:i}</div>${e.judgment&&p?s`<p class="judgment">${e.judgment}</p>`:i} ${e.image&&p?s`<p class="image">${e.image}</p>`:i} ${n&&p?s`<p class="message">${n}</p>`:i} ${e.interpretation?.general&&p?s`<p>${e.interpretation.general}</p>`:i} ${c.size>0?s`<div class="changing" part="section changing-lines">${this.t("Changing lines: {{lines}}.",{lines:Array.from(c).sort((h,m)=>h-m).join(", ")})} ${l?.english?s`${this.t("Becomes hexagram {{number}} {{name}}.",{number:l.number,name:l.english})}`:i}</div>`:i} ${this.renderLines(e,c)}</div></article>`}renderLines(t,e){let r=t.changingLines??[];if(r.length===0)return i;let a=e.size>0,n=a?r.filter(d=>e.has(d.position)):r;if(n.length===0)return i;let l=n.map(d=>({label:`Line ${d.position}`,body:d.text??"",extra:d.meaning?s`<p class="line-meaning">${d.meaning}</p>`:i}));return this.renderInterpretation(l,"hexagram-lines",a?"Changing lines":"Lines")}derivedLines(t){let e=t.binary??"";return/^[01]{6}$/.test(e)?Array.from(e,r=>r==="1"?7:8):Array.from({length:6},()=>7)}};Nt.styles=[x,M,_,u`.card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-lg,1.5rem);grid-template-columns:6rem 1fr;display:grid}@container (width<=480px){.card{grid-template-columns:1fr}}.glyphs{gap:var(--roxy-space-md,1rem);align-content:start;align-self:start;justify-items:center;display:grid}.symbol{color:var(--roxy-accent-ink,#b45309);font-size:3rem;line-height:1}.lines{gap:4px;width:4rem;display:grid}.line{justify-content:center;align-items:center;gap:4px;height:8px;display:flex}.seg{background:var(--roxy-fg,#0a0a0a);border-radius:1px;height:6px;display:block}.line.broken .seg{width:1.4rem}.line.solid .seg{width:3rem}.line.changing .seg{background:var(--roxy-accent,#f59e0b)}.title{font-size:var(--roxy-text-xl,1.5rem);font-weight:var(--roxy-weight-bold,600);letter-spacing:var(--roxy-tracking-tight);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0 0 var(--roxy-space-sm,.5rem)}.trigrams{gap:var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-sm,.5rem);color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:flex}.tri-glyph{font-size:var(--roxy-text-xl,1.5rem);color:var(--roxy-accent-ink,#b45309);vertical-align:middle;margin-right:4px}.judgment,.image,.message{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.judgment:before{content:"Judgment. ";font-weight:var(--roxy-weight-bold,600);color:var(--roxy-secondary,#475569)}.image:before{content:"Image. ";font-weight:var(--roxy-weight-bold,600);color:var(--roxy-secondary,#475569)}.line-meaning{padding-left:var(--roxy-space-sm,.5rem);border-left:2px solid var(--roxy-border,#e4e4e7);color:var(--roxy-muted,#71717a);margin:0}.changing{margin-top:var(--roxy-space-md,1rem);padding-top:var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-sm,.875rem)}`],Nt=g([b("roxy-hexagram")],Nt);var Gt=class extends y{renderData(t){let e=t.dayHoras??[],r=t.nightHoras??[];return e.length===0&&r.length===0?this.renderEmpty():s`<div class="wrap" part="card" aria-label="${this.t("Hora periods")}"><div class="head" part="header"><h2 class="title">${this.t("Hora")}</h2>${t.date?s`<p class="subtitle">${A(this.effectiveLang(),t.date)}</p>`:i}</div><div class="cols" part="table">${this.renderColumn(this.t("Day"),e)} ${this.renderColumn(this.t("Night"),r)}</div></div>`}renderColumn(t,e){return e.length===0?i:s`<div class="col"><p class="section-label">${t}</p>${e.map(r=>s`<div class="row"><span class="glyph" aria-hidden="true">${R(r.planet)??"·"}</span> <span class="planet">${r.planet}</span> <span class="time">${Ee(this.effectiveLang(),r)}</span> ${typeof r.number=="number"?s`<span class="num">${r.number}</span>`:i}</div>`)}</div>`}};Gt.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.cols{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.section-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-xs,.25rem) 0}.row{align-items:center;gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-xs,.25rem) 0;border-bottom:1px solid var(--roxy-border,#e4e4e7);font-size:var(--roxy-text-sm,.875rem);display:flex}.row:last-child{border-bottom:none}.glyph{color:var(--roxy-accent-ink,#b45309);text-align:center;width:1.25em;font-size:1.15em;line-height:1}.planet{flex:1;font-weight:500}.time{color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums;white-space:nowrap}.num{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;text-align:right;width:1.5em}@container (width<=30rem){.cols{grid-template-columns:1fr}}`],Gt=g([b("roxy-hora-table")],Gt);var He=class extends y{constructor(){super(...arguments);this.period="daily"}renderData(e){let r=e.sign??"",a=z(r)??"",n="energyRating"in e&&typeof e.energyRating=="number"?e.energyRating:null,l="date"in e&&e.date&&A(this.effectiveLang(),e.date)||"week"in e&&e.week||"month"in e&&e.month||"";return s`<article class="card" part="card" aria-label="${`${this.period} horoscope for ${r}`}"><header class="head" part="header"><span class="glyph" aria-hidden="true">${a}</span><div><h2 class="title">${r} ${this.period}</h2>${l?s`<div class="date">${l}</div>`:i}</div>${n!==null?s`<span class="energy" part="details" aria-label="${this.t("Energy {{value}} of 10",{value:n})}">${this.t("Energy {{value}}/10",{value:n})} <span class="energy-bar"><span style="width:${n/10*100}%"></span></span></span>`:i}</header>${e.overview&&!this.hideReadings?s`<p class="overview">${e.overview}</p>`:i} ${this.renderSky(e)} ${this.hideReadings?i:s`<div class="sections" part="section outlook">${e.love?s`<div class="section"><h3>${this.t("Love")}</h3><p>${e.love}</p></div>`:i} ${e.career?s`<div class="section"><h3>${this.t("Career")}</h3><p>${e.career}</p></div>`:i} ${e.health?s`<div class="section"><h3>${this.t("Health")}</h3><p>${e.health}</p></div>`:i} ${e.finance?s`<div class="section"><h3>${this.t("Finance")}</h3><p>${e.finance}</p></div>`:i} ${"advice"in e&&e.advice?s`<div class="section"><h3>${this.t("Advice")}</h3><p>${e.advice}</p></div>`:i}</div>`} ${this.renderMonth(e)} ${(()=>{let d="luckyNumber"in e&&e.luckyNumber!==void 0?e.luckyNumber:void 0,c="luckyColor"in e&&e.luckyColor?e.luckyColor:"",p="luckyNumbers"in e&&e.luckyNumbers?e.luckyNumbers:[],h="luckyDays"in e&&e.luckyDays?e.luckyDays:[],m=e.compatibleSigns??[];return d===void 0&&!c&&p.length===0&&h.length===0&&m.length===0?i:s`<div class="lucky" part="details">${d!==void 0?s`<span>${this.t("Lucky number")} <strong>${d}</strong></span>`:i} ${c?s`<span>${this.t("Lucky color")} <strong>${c}</strong></span>`:i} ${p.length?s`<span>${this.t("Lucky numbers")} <strong>${p.join(", ")}</strong></span>`:i} ${h.length?s`<span>${this.t("Lucky days")} <strong>${h.join(", ")}</strong></span>`:i} ${m.length?s`<span class="compat-wrap">${this.t("Best with")} <span class="compat">${m.map(f=>s`<span>${f}</span>`)}</span></span>`:i}</div>`})()}</article>`}renderSky(e){let r="moonSign"in e?e.moonSign:"",a="moonPhase"in e?e.moonPhase:"",n=("activeTransits"in e?e.activeTransits:[])??[];if(!r&&!a&&n.length===0)return i;let l=z(r)??"";return s`<div class="sky" part="section sky">${r||a?s`<div class="moon-line">${r?s`<span><span class="lbl">${this.t("Moon")}</span> <span aria-hidden="true">${l}</span> <b>${r}</b></span>`:i} ${a?s`<span><span class="lbl">${this.t("Phase")}</span> <b>${a}</b></span>`:i}</div>`:i} ${n.length?s`<ul class="transits" aria-label="${this.t("Active transits")}">${n.map(d=>s`<li>${d}</li>`)}</ul>`:i}</div>`}renderMonth(e){let r=("weekByWeek"in e?e.weekByWeek:[])??[],a=("keyDates"in e?e.keyDates:[])??[];return r.length===0&&a.length===0?i:s`${r.length&&!this.hideReadings?s`<section part="section week-by-week"><h3 class="block-title">${this.t("Week by week")}</h3><div class="weeks">${r.map(n=>s`<div class="week"><span class="week-no">${this.t("Week {{n}}",{n:n.week})}</span><div><div class="week-focus">${n.focus}</div>${n.advice?s`<p class="week-advice">${n.advice}</p>`:i}</div></div>`)}</div></section>`:i} ${a.length?s`<section part="section key-dates"><h3 class="block-title">${this.t("Key dates")}</h3><dl class="dates">${a.map(n=>s`<div class="date-row"><dt>${A(this.effectiveLang(),n.date)||n.date}</dt><dd>${n.event}</dd></div>`)}</dl></section>`:i}`}};He.styles=[x,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.glyph{color:var(--roxy-accent-ink,#b45309);font-size:2.25rem;line-height:1}.title{font-size:var(--roxy-text-xl,1.5rem);font-weight:var(--roxy-weight-bold,600);letter-spacing:var(--roxy-tracking-tight);text-transform:capitalize;margin:0}.date{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a)}.energy{font-variant-numeric:tabular-nums;font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-secondary,#475569);margin-left:auto}.energy-bar{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);vertical-align:middle;width:6rem;height:6px;margin-left:6px;display:inline-block;overflow:hidden}.energy-bar>span{background:var(--roxy-accent,#f59e0b);height:100%;transition:width var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.overview{font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a);margin:0}.sections{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.section h3{margin:0 0 var(--roxy-space-xs,.25rem) 0;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em}.section p{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0}.lucky{gap:var(--roxy-space-sm,.5rem);border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-secondary,#475569);flex-wrap:wrap;display:flex}.lucky strong{color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600)}.compat-wrap{align-items:center;gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;width:100%;display:flex}.compat{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.compat span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);text-transform:capitalize;padding:2px 8px}.sky{gap:var(--roxy-space-sm,.5rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);display:grid}.moon-line{align-items:baseline;gap:.35rem var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);flex-wrap:wrap;display:flex}.moon-line b{font-weight:var(--roxy-weight-bold,600)}.moon-line .lbl{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600);margin-right:.35rem}.transits{gap:.25rem;margin:0;padding:0;list-style:none;display:grid}.transits li{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);padding-left:.9rem;position:relative}.transits li:before{content:"";background:var(--roxy-accent,#f59e0b);border-radius:50%;width:5px;height:5px;position:absolute;top:.5em;left:0}.block-title{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em}.weeks{gap:var(--roxy-space-sm,.5rem);display:grid}.week{gap:var(--roxy-space-sm,.5rem);border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-sm,.5rem);grid-template-columns:3.5rem 1fr;align-items:baseline;display:grid}.week:first-child{border-top:0;padding-top:0}.week-no{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600)}.week-focus{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem)}.week-advice{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:.15rem 0 0}.dates{gap:.3rem var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:max-content 1fr;margin:0;display:grid}.date-row{display:contents}.date-row dt{font-variant-numeric:tabular-nums;color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600);white-space:nowrap}.date-row dd{color:var(--roxy-fg,#0a0a0a);margin:0}`],g([S({type:String,reflect:!0})],He.prototype,"period",2),He=g([b("roxy-horoscope-card")],He);var td=[{id:"planets",label:"Planets"},{id:"cusps",label:"Cusps"},{id:"significators",label:"Significators"}],La=[1,2,3,4];function bs(o,t){return o?typeof t=="number"?`${o} ${t}`:o:""}function $o(o){return[...new Set(o.map(String))].join(" > ")}function rd(o){return[...new Set(o??[])]}var Fe=class extends y{constructor(){super(...arguments);this.activeTab="planets"}bodies(){let e=this.data;if(!e)return[];let r=(e.planets??[]).map(n=>({name:n.planet,longitude:n.longitude,house:n.house,nakshatra:n.nakshatra,pada:n.pada,starLord:n.starLord,subLord:n.subLord,subSubLord:n.subSubLord,kpNumber:n.kpNumber,retrograde:n.retrograde})),a=e.nodes;for(let[n,l]of[["Rahu",a?.rahu],["Ketu",a?.ketu]])l&&r.push({name:n,longitude:l.longitude,house:l.house,nakshatra:l.nakshatra,starLord:l.starLord,subLord:l.subLord,subSubLord:l.subSubLord,kpNumber:l.kpNumber,retrograde:!0});return r}renderData(e){let r=e.ascendant;return s`<div class="wrap" part="card" aria-label="KP chart" tabindex="0"><header class="head" part="header"><h2 class="title">KP chart</h2>${r?s`<div class="asc">Ascendant: <strong>${typeof r.longitude=="number"?ie(r.longitude):r.sign??""} </strong>${r.nakshatra?s`· ${bs(r.nakshatra,r.pada)}`:i} ${r.subLord?s`· sub lord ${r.subLord}`:i} ${typeof r.kpNumber=="number"?s`· KP ${r.kpNumber}`:i}</div>`:i} ${typeof e.meta?.ayanamsa=="number"?s`<div class="ayan">Ayanamsa: ${it(this.effectiveLang(),e.meta.ayanamsaType,e.meta.ayanamsa)} ${e.meta.houseSystem?s`· ${e.meta.houseSystem} houses`:i}</div>`:i}</header>${se({items:td,active:this.activeTab,onSelect:a=>{this.activeTab=a},label:"KP chart views",idPrefix:"kp",controls:!0})}<div id="kp-panel-${this.activeTab}" part="panel" role="tabpanel" aria-labelledby="kp-tab-${this.activeTab}">${this.activeTab==="planets"?this.renderPlanets():this.activeTab==="cusps"?this.renderCusps():this.renderSignificators()}</div></div>`}renderPlanets(){let e=this.bodies();return e.length?s`<table part="table" role="table"><caption class="roxy-sr-only">KP planets and nodes: each body with its position, house, nakshatra and pada, star lord, sub lord, sub sub lord and KP number.</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">Position</th><th scope="col">House</th><th scope="col">Nakshatra, pada</th><th scope="col">Star lord</th><th scope="col">Sub lord</th><th scope="col">Sub-sub lord</th><th scope="col">KP no.</th></tr></thead><tbody>${e.map(r=>s`<tr><td class="body">${r.name}${r.retrograde?s`<span class="retro">R</span>`:i}</td><td class="num">${typeof r.longitude=="number"?ie(r.longitude):""}</td><td class="num">${typeof r.house=="number"?r.house:""}</td><td>${bs(r.nakshatra,r.pada)}</td><td>${r.starLord??""}</td><td>${r.subLord??""}</td><td>${r.subSubLord??""}</td><td class="num">${typeof r.kpNumber=="number"?r.kpNumber:""}</td></tr>`)}</tbody></table>`:s`<p class="roxy-empty" role="status">No planets</p>`}renderCusps(){let e=this.data?.cusps??[],r=this.data?.houseThemes;return e.length?s`<table part="table" role="table"><caption class="roxy-sr-only">KP Placidus cusps: each house cusp with what it signifies, its position, sign lord, nakshatra and pada, star lord, sub lord, sub sub lord and KP number.</caption><thead><tr><th scope="col">House</th><th scope="col">Position</th><th scope="col">Sign lord</th><th scope="col">Nakshatra, pada</th><th scope="col">Star lord</th><th scope="col">Sub lord</th><th scope="col">Sub-sub lord</th><th scope="col">KP no.</th></tr></thead><tbody>${e.map(a=>s`<tr><td class="body num">${a.house}${this.renderThemes(Za(a.house,r))}</td><td class="num">${typeof a.longitude=="number"?ie(a.longitude):a.sign??""}</td><td>${a.signLord??""}</td><td>${bs(a.nakshatra,a.pada)}</td><td>${a.starLord??""}</td><td>${a.subLord??""}</td><td>${a.subSubLord??""}</td><td class="num">${typeof a.kpNumber=="number"?a.kpNumber:""}</td></tr>`)}</tbody></table>`:s`<p class="roxy-empty" role="status">No cusps</p>`}renderSignificators(){let e=this.data?.significators,r=this.data?.houseThemes,a=e?.houseWise??[],n=e?.planetWise??[];return!a.length&&!n.length?s`<p class="roxy-empty" role="status">No significators</p>`:s`${this.renderLevelLegend(a)} ${a.length?s`<div class="sig-head"><h3 class="sig-title">House-wise significators</h3><p class="sig-note">Planets that signify each house, strongest level first.</p></div><table part="table" role="table"><caption class="roxy-sr-only">KP house-wise significators: each house, the planets that signify it at levels 1 to 4, and the full strength order.</caption><thead><tr><th scope="col">House</th>${La.map(l=>s`<th scope="col">L${l}</th>`)}<th scope="col">Strength order</th></tr></thead><tbody>${a.map(l=>s`<tr><td class="body num">${l.house}${this.renderThemes(Za(l.house,r))}</td>${La.map(d=>this.renderCell(this.planetsAtLevel(l,d).join(", ")))}<td class="chain">${$o(l.all??[])}</td></tr>`)}</tbody></table>`:i} ${n.length?s`<div class="sig-head"><h3 class="sig-title">Planet-wise significators</h3><p class="sig-note">Houses each planet signifies, strongest level first.</p></div><table part="table" role="table"><caption class="roxy-sr-only">KP planet-wise significators: each planet, the houses it signifies at levels 1 to 4, and the full strength order.</caption><thead><tr><th scope="col">Planet</th>${La.map(l=>s`<th scope="col">L${l}</th>`)}<th scope="col">Strength order</th></tr></thead><tbody>${n.map(l=>s`<tr><td class="body">${l.planet}</td>${La.map(d=>this.renderCell(this.housesAtLevel(l,d).join(", ")))}<td class="chain">${$o(l.allHouses??[])}${this.renderThemes(ye(rd(l.allHouses),r))}</td></tr>`)}</tbody></table>`:i}`}renderThemes(e){return e?s`<span class="themes">${e}</span>`:i}renderCell(e){return e?s`<td>${e}</td>`:s`<td class="empty-cell">none</td>`}planetsAtLevel(e,r){return(e.significators??[]).filter(a=>a.level===r).flatMap(a=>a.planets??[])}housesAtLevel(e,r){return(e.signifies??[]).filter(a=>a.level===r).flatMap(a=>a.houses??[])}renderLevelLegend(e){let r=new Map;for(let a of e)for(let n of a.significators??[])n.description&&!r.has(n.level)&&r.set(n.level,n.description);return r.size===0?i:s`<ul class="legend" part="legend" aria-label="Significator levels">${[...r.entries()].sort((a,n)=>a[0]-n[0]).map(([a,n])=>s`<li><b>L${a}</b>${n}</li>`)}</ul>`}};Fe.styles=[x,ee,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);width:100%;overflow:auto}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-xs,.25rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.asc,.ayan{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.asc strong{color:var(--roxy-fg,#0a0a0a)}.roxy-tablist{padding:0 var(--roxy-space-md,1rem)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:620px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}td.body{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.retro{color:var(--roxy-warning-fg,#9a3412);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);margin-left:4px}.num{font-variant-numeric:tabular-nums}.sig-head{padding:var(--roxy-space-md,1rem) var(--roxy-space-md,1rem) 0;gap:var(--roxy-space-xs,.25rem);display:grid}.sig-title{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);margin:0}.sig-note{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);margin:0}.legend{gap:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);padding:var(--roxy-space-md,1rem) var(--roxy-space-md,1rem) 0;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);flex-wrap:wrap;margin:0;list-style:none;display:flex}.legend b{color:var(--roxy-accent-ink,#b45309);margin-right:4px}.chain,.empty-cell{color:var(--roxy-muted,#71717a)}.themes{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-normal,400);text-transform:none;letter-spacing:normal;display:block}`],g([G()],Fe.prototype,"activeTab",2),Fe=g([b("roxy-kp-chart")],Fe);var _t=class extends y{renderData(t){let e=t.planets??[];return s`<div class="wrap" part="card" aria-label="KP planets table" tabindex="0"><header class="head" part="header"><h2 class="title">KP planets</h2>${typeof t.ayanamsa=="number"?s`<span class="ayanamsa">Ayanamsa: ${v(this.effectiveLang(),t.ayanamsa,2)}°</span>`:i}</header><table part="table" role="table"><caption class="roxy-sr-only">KP planets: each planet with its sign, sign lord, nakshatra, star lord, sub lord, sub sub lord and KP number.</caption><thead><tr><th scope="col">Planet</th><th scope="col">Sign</th><th scope="col">Sign lord</th><th scope="col">Nakshatra</th><th scope="col">Star lord</th><th scope="col">Sub lord</th><th scope="col">Sub-sub lord</th><th scope="col">KP no.</th></tr></thead><tbody>${e.map(r=>s`<tr><td class="planet">${r.planet} ${r.retrograde?s`<span class="retro">R</span>`:i}</td><td>${r.sign??""}</td><td>${r.signLord??""}</td><td>${r.nakshatra??""}</td><td>${r.nakshatraLord??""}</td><td>${r.subLord??""}</td><td>${r.subSubLord??""}</td><td>${r.kpNumber??""}</td></tr>`)}</tbody></table></div>`}};_t.styles=[x,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:auto}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);justify-content:space-between;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.ayanamsa{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:560px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}td.planet{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.retro{color:var(--roxy-warning-fg,#9a3412);font-size:var(--roxy-text-xs,.75rem);margin-left:4px}`],_t=g([b("roxy-kp-planets-table")],_t);var Ot=class extends y{renderData(t){let e=t.significators??[];return s`<div class="wrap" part="card" aria-label="KP ruling planets"><header part="header"><h2 class="title">KP ruling planets</h2>${t.dayLord?s`<div class="day-lord">Day lord: <strong>${t.dayLord}</strong></div>`:i}</header><div class="groups" part="details"><div class="group"><h3>Moon</h3><dl><dt>Sign lord</dt><dd>${t.moonSignLord??""}</dd><dt>Star lord</dt><dd>${t.moonStarLord??""}</dd><dt>Sub lord</dt><dd>${t.moonSublord??""}</dd><dt>Sub-sub lord</dt><dd>${t.moonSubSublord??""}</dd></dl></div><div class="group"><h3>Lagna</h3><dl><dt>Sign lord</dt><dd>${t.lagnaSignLord??""}</dd><dt>Star lord</dt><dd>${t.lagnaStarLord??""}</dd><dt>Sub lord</dt><dd>${t.lagnaSublord??""}</dd><dt>Sub-sub lord</dt><dd>${t.lagnaSubSublord??""}</dd></dl></div></div>${t.rulingPlanets?.length?s`<div class="rp-list" part="details" role="list" aria-label="Ruling planets by strength"><span class="rp-label">Ruling planets</span> ${t.rulingPlanets.map((r,a)=>s`<span class="rp" role="listitem"><span class="rank">${a+1}</span> ${r}</span>`)}</div>`:i} ${e.length?s`<table part="table"><caption class="roxy-sr-only">House significators: each ruling planet, the houses it signifies, and what those houses stand for.</caption><thead><tr><th scope="col">Planet</th><th scope="col">Signifies houses</th></tr></thead><tbody>${e.map(r=>{let a=ye(r.signifies,t.houseThemes);return s`<tr><td>${r.planet}</td><td><span class="num">${(r.signifies??[]).join(", ")}</span> ${a?s`<span class="themes">${a}</span>`:i}</td></tr>`})}</tbody></table>`:i}</div>`}};Ot.styles=[x,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);padding:var(--roxy-space-md,1rem);gap:var(--roxy-space-md,1rem);box-shadow:var(--roxy-shadow-sm);grid-template-columns:minmax(0,1fr);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.day-lord{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.day-lord strong{color:var(--roxy-fg,#0a0a0a)}.groups{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));display:grid}.group h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.group dl{gap:2px var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:auto 1fr;margin:0;display:grid}.group dt{color:var(--roxy-muted,#71717a)}.group dd{color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600);margin:0}.rp-list{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;align-items:center;display:flex}.rp-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em;margin-right:var(--roxy-space-xs,.25rem)}.rp{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:999px;align-items:center;gap:.3em;padding:.15em .6em;display:inline-flex}.rp .rank{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-accent-ink,#b45309)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-sm,.5rem);text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7)}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}.num{font-variant-numeric:tabular-nums}.themes{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}`],Ot=g([b("roxy-kp-ruling-planets")],Ot);var vs=320,pe=vs/2,Se=128,ad=118,sd=140,nd=150;function Re(o,t){let e=o*Math.PI/180;return{x:pe+t*Math.sin(e),y:pe-t*Math.cos(e)}}var od=[{az:0,source:"N"},{az:45,source:"NE"},{az:90,source:"E"},{az:135,source:"SE"},{az:180,source:"S"},{az:225,source:"SW"},{az:270,source:"W"},{az:315,source:"NW"}],Bt=class extends y{renderData(t){let e=t.bodies??[],r=t.birthDetails;return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t("Local space")}</h2>${r?s`<div class="meta">${q(this.effectiveLang(),r.date,r.time)}</div>`:i}</header>${this.renderDial(e)} ${t.summary?s`<p class="summary">${t.summary}</p>`:i} ${this.renderList(e)}</div>`}renderDial(t){return s`<svg viewBox="0 0 ${vs} ${vs}" part="chart" role="img" aria-label="${this.t("Local space compass of planetary directions from the birthplace")}"><title>${this.t("Local space compass")}</title><desc>${this.t("A compass centered on the birthplace. Each body is a line pointing to its azimuth, clockwise from north. Bodies below the horizon are dimmed.")}</desc><circle class="dial-fill" cx="${pe}" cy="${pe}" r="${Se}"/><circle class="dial" cx="${pe}" cy="${pe}" r="${Se*.66}" stroke-width="0.5"/><circle class="dial" cx="${pe}" cy="${pe}" r="${Se*.33}" stroke-width="0.5"/>${this.renderCompassRing()} ${this.renderSpokes(t)}<circle class="center-dot" cx="${pe}" cy="${pe}" r="2.5"/></svg>`}renderCompassRing(){let t=[];for(let d=0;d<360;d+=22.5){let c=Re(d,Se),p=Re(d,Se-(d%45===0?8:4));t.push(L`<line class="tick" x1=${p.x} y1=${p.y} x2=${c.x} y2=${c.y} />`)}let e=Re(0,Se),r=Re(180,Se),a=Re(90,Se),n=Re(270,Se),l=od.map(({az:d,source:c})=>{let p=Re(d,nd),h=d%90===0;return L`<text class=${`compass-label${h?" cardinal":""}`} x=${p.x} y=${p.y} text-anchor="middle" dominant-baseline="central">${this.t(c)}</text>`});return L`
|
|
101
101
|
<line class="cardinal-axis" x1=${e.x} y1=${e.y} x2=${r.x} y2=${r.y} />
|
|
102
102
|
<line class="cardinal-axis" x1=${a.x} y1=${a.y} x2=${n.x} y2=${n.y} />
|
|
103
|
-
${t}${l}`}renderSpokes(t){return t.map((e,r)=>{let a=ct(e.planet,r),n=e.aboveHorizon===!1,l=Re(e.azimuth,
|
|
103
|
+
${t}${l}`}renderSpokes(t){return t.map((e,r)=>{let a=ct(e.planet,r),n=e.aboveHorizon===!1,l=Re(e.azimuth,ad),d=Re(e.azimuth,sd),c=e.symbol||R(e.planet)||e.planet,p=`${e.altitude>0?"+":""}${Math.round(e.altitude)}°`;return L`<g>
|
|
104
104
|
<line class=${`spoke${n?" below":""}`} stroke=${a} x1=${pe} y1=${pe} x2=${l.x} y2=${l.y}><title>${this.t("{{planet}} {{direction}} {{azimuth}}° altitude {{altitude}}",{planet:e.planet,direction:e.compassDirection,azimuth:Math.round(e.azimuth),altitude:p})}</title></line>
|
|
105
105
|
<text class=${`body-glyph${n?" below":""}`} fill=${a} x=${d.x} y=${d.y} text-anchor="middle" dominant-baseline="central">${c}</text>
|
|
106
|
-
</g>`})}renderList(t){return t.length===0?i:s`<div class="table-scroll" part="table"><table class="list"><caption class="roxy-sr-only">${this.t("Local space directions: each body with its compass direction, azimuth, altitude and whether it sits above or below the horizon.")}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Direction")}</th><th scope="col" class="num">${this.t("Azimuth")}</th><th scope="col" class="num">${this.t("Altitude")}</th><th scope="col">${this.t("Horizon")}</th></tr></thead><tbody>${t.map((e,r)=>{let a=ct(e.planet,r),n=e.aboveHorizon===!1;return s`<tr><td><span class="body-cell"><span class="body-dot" style="${`background: ${a}`}"></span> ${e.symbol?s`${e.symbol}`:i}${e.planet}</span></td><td>${e.compassDirection}</td><td class="num">${Math.round(e.azimuth)}°</td><td class="num">${e.altitude>0?"+":""}${Math.round(e.altitude)}°</td><td><span class="${`horizon-pill ${n?"down":"up"}`}">${n?this.t("Below"):this.t("Above")}</span></td></tr>`})}</tbody></table></div>`}};_t.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}svg{width:100%;max-width:var(--roxy-chart-max-width,480px);aspect-ratio:1;height:auto;margin:0 auto;display:block}.dial{fill:none;stroke:var(--roxy-border,#e4e4e7)}.dial-fill{fill:color-mix(in srgb, var(--roxy-border,#e4e4e7) 10%, transparent);stroke:var(--roxy-border,#e4e4e7);stroke-width:1px}.cardinal-axis{stroke:var(--roxy-border,#e4e4e7);stroke-width:.5px}.tick{stroke:var(--roxy-secondary,#475569);stroke-width:.6px;opacity:.5}.compass-label{fill:var(--roxy-secondary,#475569);font-size:9px;font-weight:600;font-family:var(--roxy-font-sans)}.compass-label.cardinal,.center-dot{fill:var(--roxy-fg,#0a0a0a)}.spoke{stroke-width:1.4px}.spoke.below{stroke-dasharray:3 3;opacity:.4}.body-glyph{font-size:11px;font-weight:600;font-family:var(--roxy-font-sans)}.body-glyph.below{opacity:.45}.wrap>*{min-width:0}.table-scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}.list{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}.list th,.list td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);padding:4px 8px}.list th{color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.04em;font-weight:600;font-size:var(--roxy-text-xs,.75rem)}.list td.num{text-align:right;font-variant-numeric:tabular-nums}.body-cell{align-items:center;gap:.4rem;display:inline-flex}.body-dot{border-radius:50%;flex-shrink:0;width:10px;height:10px}.horizon-pill{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:1px 7px}.horizon-pill.up{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.horizon-pill.down{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);color:var(--roxy-fg,#0a0a0a)}.summary{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0}`],_t=g([b("roxy-local-space-compass")],_t);function $o(o,t){let e,r=((...a)=>{e&&clearTimeout(e),e=setTimeout(()=>{e=void 0,o(...a)},t)});return r.cancel=()=>{e&&(clearTimeout(e),e=void 0)},r}var Q=class extends De{constructor(){super(...arguments);this.endpoint="https://roxyapi.com/api/v2/location/search";this.placeholder="Search city";this.defaultValue="";this.query="";this.results=[];this.isOpen=!1;this.isLoading=!1;this.highlight=-1;this.keyBlocked=!1;this.error=null;this.debouncedFetch=$o(e=>{this.fetchResults(e)},300);this.onInput=e=>{let r=e.target.value;if(this.query=r,r.length<2){this.results=[],this.isOpen=!1,this.highlight=-1,this.error=null;return}this.debouncedFetch(r)};this.onKeyDown=e=>{if(!this.isOpen||this.results.length===0){e.key==="ArrowDown"&&this.query.length>=2&&(this.fetchResults(this.query),e.preventDefault());return}if(e.key==="ArrowDown")e.preventDefault(),this.highlight=(this.highlight+1)%this.results.length;else if(e.key==="ArrowUp")e.preventDefault(),this.highlight=(this.highlight-1+this.results.length)%this.results.length;else if(e.key==="Enter"){e.preventDefault();let r=this.results[this.highlight]??this.results[0];r&&this.select(r)}else e.key==="Escape"&&(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),this.query=this.defaultValue,this.clickOutsideHandler=e=>{e.composedPath().includes(this)||(this.isOpen=!1)},document.addEventListener("mousedown",this.clickOutsideHandler)}willUpdate(e){if(e.has("publishableKey")||e.has("apiKey")){let r=_r(this.publishableKey??this.apiKey);r&&!this.keyBlocked&&Br(this,{warn:!0}),this.keyBlocked=r}}disconnectedCallback(){super.disconnectedCallback(),this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler),this.debouncedFetch.cancel(),this.abortController&&(this.abortController.abort(),this.abortController=void 0)}async fetchResults(e){if(this.keyBlocked)return;this.abortController&&this.abortController.abort();let r=new AbortController;this.abortController=r,this.isLoading=!0;try{let a=new URL(this.endpoint);a.searchParams.set("q",e),a.searchParams.set("limit","8");let n={Accept:"application/json"};this.apiKey&&this.publishableKey&&console.warn("[roxy-location-search] both api-key and publishable-key set; using publishable-key. Remove api-key from your widget markup.");let l=this.publishableKey??this.apiKey;l&&(n["X-API-Key"]=l);let d=await fetch(a,{headers:n,signal:r.signal});if(!d.ok)throw new Error(await ja(d));let c=await d.json();if(r.signal.aborted)return;this.error=null,this.results=c.cities??[],this.isOpen=!0,this.highlight=this.results.length>0?0:-1}catch(a){if(a?.name==="AbortError")return;this.results=[],this.isOpen=!1,this.highlight=-1,this.error=a instanceof Error?a.message:String(a)}finally{this.abortController===r&&(this.abortController=void 0),r.signal.aborted||(this.isLoading=!1)}}select(e){this.query=`${e.city}${e.province?`, ${e.province}`:""}, ${e.country}`,this.isOpen=!1,this.results=[],this.dispatchEvent(new CustomEvent("roxy-location-select",{detail:e,bubbles:!0,composed:!0}))}render(){return this.keyBlocked?s`<div class="roxy-error" role="alert">${this.t(Qt)}</div>`:s`<div class="field"><input part="input" type="text" role="combobox" aria-expanded="${this.isOpen?"true":"false"}" aria-controls="roxy-location-listbox" aria-activedescendant="${this.isOpen&&this.highlight>=0?`roxy-location-option-${this.highlight}`:""}" aria-autocomplete="list" autocomplete="off" placeholder="${this.t(this.placeholder)}" .value="${this.query}" @input="${this.onInput}" @keydown="${this.onKeyDown}" @focus="${()=>{this.results.length>0&&(this.isOpen=!0)}}"> ${this.isLoading?s`<span class="spinner" role="status" aria-label="${this.t("Loading")}"></span>`:i} ${this.isOpen?s`<ul id="roxy-location-listbox" part="results" class="results" role="listbox">${this.results.length===0?s`<li class="empty" role="status">${this.t("No cities found")}</li>`:this.results.map((e,r)=>s`<li role="presentation"><button type="button" part="option" class="option" role="option" id="${`roxy-location-option-${r}`}" aria-selected="${this.highlight===r?"true":"false"}" @click="${()=>this.select(e)}" @mouseenter="${()=>{this.highlight=r}}"><span class="city">${e.city}</span> <span class="where">${e.province?s`${e.province},`:""}${e.country}</span> <span class="tz">UTC${e.utcOffset>=0?"+":""}${e.utcOffset}</span></button></li>`)}</ul>`:i}</div>${this.error?s`<p class="search-error" role="alert">${this.t(this.error)}</p>`:i}`}};Q.styles=[x,u`:host{display:block;position:relative}.field{position:relative}input{width:100%;padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a);background:var(--roxy-bg,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);transition:border-color var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));box-sizing:border-box;font-family:inherit}input:focus{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-color:var(--roxy-accent-ink,#b45309)}.spinner{border:2px solid var(--roxy-muted,#71717a);border-top-color:#0000;border-radius:50%;width:14px;height:14px;animation:.7s linear infinite roxy-spin;position:absolute;top:50%;right:12px;transform:translateY(-50%)}@keyframes roxy-spin{to{transform:translateY(-50%)rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation:none}}.results{z-index:50;padding:var(--roxy-space-xs,.25rem);background:var(--roxy-bg,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);box-shadow:var(--roxy-shadow-md);max-height:22rem;animation:roxy-fade-in var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));margin:0;list-style:none;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto}.option{align-items:center;gap:var(--roxy-space-sm,.5rem);width:100%;padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-radius:var(--roxy-radius-sm,6px);text-align:left;font-family:inherit;font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);cursor:pointer;transition:background-color var(--roxy-motion-duration,.2s);background:0 0;border:0;display:flex}.option:hover,.option[aria-selected=true]{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 10%, transparent)}.option .city{font-weight:var(--roxy-weight-bold,600)}.option .where{color:var(--roxy-muted,#71717a);flex-grow:1}.option .tz{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums}.empty{padding:var(--roxy-space-md,1rem);color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.search-error{margin:var(--roxy-space-xs,.25rem) 0 0;color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem)}`],g([S({type:String,attribute:"api-key"})],Q.prototype,"apiKey",2),g([S({type:String,attribute:"publishable-key"})],Q.prototype,"publishableKey",2),g([S({type:String})],Q.prototype,"endpoint",2),g([S({type:String})],Q.prototype,"placeholder",2),g([S({type:String,attribute:"default-value"})],Q.prototype,"defaultValue",2),g([G()],Q.prototype,"query",2),g([G()],Q.prototype,"results",2),g([G()],Q.prototype,"isOpen",2),g([G()],Q.prototype,"isLoading",2),g([G()],Q.prototype,"highlight",2),g([G()],Q.prototype,"keyBlocked",2),g([G()],Q.prototype,"error",2),Q=g([b("roxy-location-search")],Q);var Ke=class extends y{constructor(){super(...arguments);this.mode="current"}renderData(e){let r="phases"in e?e.phases:"calendar"in e?e.calendar:[];if(this.mode!=="current"&&r.length>0){let a="month"in e?e.month:void 0,n="year"in e?e.year:void 0;return s`<article class="card" part="card" aria-label="${this.t("Moon phase calendar")}"><h2 class="label" part="header">${a??"Moon phases"} ${n??""}</h2><div class="list" part="table" role="list">${r.map(l=>this.renderListItem(l))}</div></article>`}return"phase"in e?this.renderSingle(e):i}renderSingle(e){let r=e.meaning?.symbol||wo(e.phase);return s`<article class="card" part="card" aria-label="${this.t("Current moon phase")}"><div class="hero" part="header"><span class="emoji" aria-hidden="true">${r}</span><div><h2 class="label">${e.phase??"Moon"}</h2>${e.date?s`<div class="date">${A(this.effectiveLang(),e.date)}</div>`:i}</div></div><div class="stats" part="details">${typeof e.illumination=="number"?s`<div><span>${this.t("Illumination")}</span> <strong>${ae(this.effectiveLang(),e.illumination<=1?e.illumination*100:e.illumination,0)}</strong></div>`:i} ${typeof e.age=="number"?s`<div><span>${this.t("Age")}</span> <strong>${this.t("{{count}} days",{count:v(this.effectiveLang(),e.age,1)})}</strong></div>`:i} ${e.sign?s`<div><span>${this.t("Sign")}</span> <strong>${e.sign}</strong></div>`:i} ${typeof e.distance=="number"?s`<div><span>${this.t("Distance")}</span> <strong>${this.t("{{value}}k km",{value:v(this.effectiveLang(),e.distance/1e3,0)})}</strong></div>`:i}</div>${e.meaning?.description&&!this.hideReadings?s`<p class="meaning">${e.meaning.description}</p>`:i} ${e.meaning?.keywords?.length&&!this.hideReadings?s`<div class="keywords">${e.meaning.keywords.map(a=>s`<span>${a}</span>`)}</div>`:i}</article>`}renderListItem(e){let r=wo(e.phase);return s`<div class="list-item" role="listitem"><span aria-hidden="true">${r}</span> <span>${e.phase}</span> <span>${A(this.effectiveLang(),e.date)}</span></div>`}};Ke.styles=[x,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.hero{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.emoji{font-size:3rem;line-height:1}.label{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;margin:0}.date{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.stats{gap:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-secondary,#475569);grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));display:grid}.stats div span:first-child{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:block}.stats strong{color:var(--roxy-fg,#0a0a0a);font-variant-numeric:tabular-nums}.meaning{color:var(--roxy-fg,#0a0a0a)}.keywords{gap:var(--roxy-space-xs,.25rem);margin-top:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.keywords span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.list{gap:var(--roxy-space-sm,.5rem);display:grid}.list-item{gap:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);padding:var(--roxy-space-sm,.5rem) 0;font-size:var(--roxy-text-sm,.875rem);grid-template-columns:2.5rem 1fr auto;align-items:center;display:grid}.list-item:last-child{border-bottom:none}`],g([S({type:String,reflect:!0})],Ke.prototype,"mode",2),Ke=g([b("roxy-moon-phase")],Ke);function wo(o){return fn(o)??"🌙"}var Bt=class extends y{renderData(t){let e=t.remedies;return s`<article class="wrap" part="card" aria-label="${this.t("Nakshatra {{name}}",{name:t.name})}"><header class="head" part="header"><h2 class="name">${t.name}</h2>${typeof t.number=="number"?s`<span class="number">${this.t("Nakshatra {{number}} of 27",{number:t.number})}</span>`:i} ${t.range?s`<span class="range">${t.range}</span>`:i}</header><dl class="facts" part="details">${t.lord?s`<div class="fact"><dt>${this.t("Lord")}</dt><dd>${t.lord}</dd></div>`:i} ${t.deity?s`<div class="fact"><dt>${this.t("Deity")}</dt><dd>${t.deity}</dd></div>`:i} ${t.symbol?s`<div class="fact"><dt>${this.t("Symbol")}</dt><dd>${t.symbol}</dd></div>`:i}</dl>${t.characteristics&&!this.hideReadings?s`<div class="section" part="section characteristics"><h3>${this.t("Characteristics")}</h3><p>${t.characteristics}</p></div>`:i} ${e&&!this.hideReadings?s`<div class="section" part="section remedies"><h3>${this.t("Remedies")}</h3><div class="remedies">${e.mantras?s`<div class="remedy"><strong>${this.t("Mantras:")}</strong> ${e.mantras}</div>`:i} ${e.gemstones?s`<div class="remedy"><strong>${this.t("Gemstones:")}</strong> ${e.gemstones}</div>`:i} ${e.rituals?s`<div class="remedy"><strong>${this.t("Rituals:")}</strong> ${e.rituals}</div>`:i}</div></div>`:i}</article>`}};Bt.styles=[x,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);padding:var(--roxy-space-md,1rem);gap:var(--roxy-space-md,1rem);box-shadow:var(--roxy-shadow-sm);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.name{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.number{color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600)}.range{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.facts{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));display:grid}.fact{gap:2px;display:grid}.fact dt{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.05em}.fact dd{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0}.section h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.section p{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0;line-height:1.5}.remedies{gap:var(--roxy-space-xs,.25rem);display:grid}.remedy{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.remedy strong{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600)}`],Bt=g([b("roxy-nakshatra-card")],Bt);var nr=u`.aspect{stroke-width:.8px;fill:none;opacity:.55}.aspect-trine,.aspect-sextile{stroke:var(--roxy-success,#16a34a)}.aspect-square,.aspect-opposition{stroke:var(--roxy-danger,#dc2626)}.aspect-conjunction{stroke:var(--roxy-accent-ink,#b45309)}.aspect-other{stroke:var(--roxy-muted,#71717a);stroke-opacity:.7}`,ko=.3,rd=.9,So=.5,ad=1.8;function or(o){let{strength:t}=o;if(typeof t!="number"||!Number.isFinite(t))return;let e=Math.min(1,Math.max(0,t/100)),r=ko+e*(rd-ko),a=So+e*(ad-So);return`opacity:${r.toFixed(3)};stroke-width:${a.toFixed(3)}`}var Ro={GRAND_CROSS:0,GRAND_TRINE:1,KITE:2,T_SQUARE:3,YOD:4,MYSTIC_RECTANGLE:5,STELLIUM:6},$s=420,E=$s/2,ir=164,vs=146,Cr=120,Ve=96,sd=178,Ls=196,nd=14,od=15,id=28,Ce=class extends y{constructor(){super(...arguments);this.heading="Natal chart";this.view="wheel"}getPlanets(){return this.data?.planets??[]}getAscendant(){return this.data?.ascendant?.longitude??0}getMidheaven(){let e=this.data?.midheaven?.longitude;return typeof e=="number"?e:null}get hasCusps(){return(this.data?.houses??[]).length===12}toAngle(e){return 180+this.getAscendant()-e}renderData(e){let r=this.getPlanets(),a=e.aspects??[],n=this.view;return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t(this.heading)}</h2>${e.birthDetails?s`<div class="meta">${q(this.effectiveLang(),e.birthDetails.date,e.birthDetails.time)}</div>`:i}</header>${a.length>0?s`${se({items:[{id:"wheel",label:this.t("Wheel")},{id:"grid",label:this.t("Aspect grid")}],active:n,onSelect:l=>{this.view=l},label:this.t("Natal chart views"),idPrefix:"natal",controls:!0})}<div id="natal-panel-${n}" part="panel" role="tabpanel" aria-labelledby="natal-tab-${n}">${n==="wheel"?this.renderWheel(r,a):this.renderAspectGrid(r,a)}</div>`:this.renderWheel(r,a)}<div class="legend" part="legend"><span>${this.t("{{count}} planets",{count:r.length})}</span> ${a.length>0?s`<span>${this.t("{{count}} aspects",{count:a.length})}</span>`:i} ${this.hasCusps&&e.houseSystem?s`<span>${this.t("{{system}} houses",{system:e.houseSystem})}</span>`:s`<span class="caveat">${this.t("Equal sectors from the Ascendant, no house cusps in this response")}</span>`} ${a.length>0?s`<span><span class="legend-swatch" style="background:var(--roxy-success)"></span>${this.t("Harmonious")}</span> <span><span class="legend-swatch" style="background:var(--roxy-danger)"></span>${this.t("Challenging")}</span>`:i}</div>${this.renderDetails()} ${this.renderPatterns()} ${this.renderInterpretations()}</div>`}renderWheel(e,r){return s`<svg viewBox="0 0 ${$s} ${$s}" part="chart" role="img" aria-label="${this.hasCusps?this.t("Natal chart wheel with twelve houses, planets, and aspects"):this.t("Natal chart wheel with planets and aspects, houses shown as equal sectors from the Ascendant")}"><title>${this.t("Natal chart wheel")}</title><desc>${this.t("Twelve zodiac sign segments around a circular wheel. Planet glyphs are placed at their ecliptic longitudes. Aspect lines connect related planets.")}</desc><circle class="wheel-line" cx="${E}" cy="${E}" r="${ir}" stroke-width="1.5"/><circle class="wheel-line" cx="${E}" cy="${E}" r="${vs-14}" stroke-width="0.8"/><circle class="wheel-line" cx="${E}" cy="${E}" r="${Cr}" stroke-width="1"/><circle class="wheel-line" cx="${E}" cy="${E}" r="${Ve-16}" stroke-width="0.5"/>${this.renderTicks()} ${this.renderSpokes()} ${this.renderSigns()} ${this.renderHouseNumbers()} ${this.renderCuspDegrees()} ${this.renderAspects(e,r)} ${this.renderPlanets(e)} ${this.renderAngles()}</svg>`}renderAspectGrid(e,r){let a=e.map(d=>({name:d.name,label:$(d,"name")})),n=(d,c)=>[me(d),me(c)].sort().join("|"),l=new Map;for(let d of r)l.set(n(d.planet1,d.planet2),d);return a.length===0?s`<p class="roxy-empty" role="status">${this.t("No planets to grid")}</p>`:s`<div class="grid-scroll" part="section aspects table aspect-grid"><table class="aspect-grid"><caption class="roxy-sr-only">${this.t("Planet by planet aspect grid: the aspect each pair of planets forms, read from the planet naming the row across to the planet naming the column.")}</caption><thead><tr><th></th>${a.slice(0,-1).map(d=>{let c=R(d.name)??d.label;return s`<th scope="col" title="${d.label}">${c}</th>`})}</tr></thead><tbody>${a.slice(1).map((d,c)=>{let p=R(d.name)??d.label;return s`<tr><th scope="row" title="${d.label}">${p}</th>${a.slice(0,c+1).map(h=>{let m=l.get(n(d.name,h.name));if(!m)return s`<td class="empty"></td>`;let f=ce(m),C=Fr(f)??$(m,"type",W(m)),w=Le[f]??"aspect-other",k=v(this.effectiveLang(),m.orb,1);return s`<td class="${`cell ${w}`}" title="${`${d.label} ${$(m,"type",f)} ${h.label}${k?` (${this.t("Orb")} ${k}°)`:""}`}"><span class="asp">${C}</span></td>`})} ${a.slice(c+1,-1).map(()=>s`<td class="empty"></td>`)}</tr>`})}</tbody></table></div>`}renderAngles(){let e=this.getAscendant(),r=this.getMidheaven(),a=[{longitude:e,label:this.t("ASC")},{longitude:kr(e),label:this.t("DSC")}];r!==null&&(a.push({longitude:r,label:this.t("MC")}),a.push({longitude:kr(r),label:this.t("IC")}));let n=this.data?.partOfFortune?.longitude;typeof n=="number"&&a.push({longitude:he(n),label:this.t("PoF")});let l=this.data?.vertex?.longitude;return typeof l=="number"&&a.push({longitude:he(l),label:this.t("Vtx")}),Sr(a,d=>d.longitude,vt(id,Ls)).map(({item:d,longitude:c,displayLongitude:p})=>this.renderAngleMark(c,p,d.label))}renderAngleMark(e,r,a){let n=this.toAngle(e),l=this.toAngle(r),d=D(E,E,ir,n),c=D(E,E,sd,n),p=D(E,E,Ls,l),h=Math.abs(r-e)>.5,m=D(E,E,Ls-8,l);return L`
|
|
106
|
+
</g>`})}renderList(t){return t.length===0?i:s`<div class="table-scroll" part="table"><table class="list"><caption class="roxy-sr-only">${this.t("Local space directions: each body with its compass direction, azimuth, altitude and whether it sits above or below the horizon.")}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Direction")}</th><th scope="col" class="num">${this.t("Azimuth")}</th><th scope="col" class="num">${this.t("Altitude")}</th><th scope="col">${this.t("Horizon")}</th></tr></thead><tbody>${t.map((e,r)=>{let a=ct(e.planet,r),n=e.aboveHorizon===!1;return s`<tr><td><span class="body-cell"><span class="body-dot" style="${`background: ${a}`}"></span> ${e.symbol?s`${e.symbol}`:i}${e.planet}</span></td><td>${e.compassDirection}</td><td class="num">${Math.round(e.azimuth)}°</td><td class="num">${e.altitude>0?"+":""}${Math.round(e.altitude)}°</td><td><span class="${`horizon-pill ${n?"down":"up"}`}">${n?this.t("Below"):this.t("Above")}</span></td></tr>`})}</tbody></table></div>`}};Bt.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}svg{width:100%;max-width:var(--roxy-chart-max-width,480px);aspect-ratio:1;height:auto;margin:0 auto;display:block}.dial{fill:none;stroke:var(--roxy-border,#e4e4e7)}.dial-fill{fill:color-mix(in srgb, var(--roxy-border,#e4e4e7) 10%, transparent);stroke:var(--roxy-border,#e4e4e7);stroke-width:1px}.cardinal-axis{stroke:var(--roxy-border,#e4e4e7);stroke-width:.5px}.tick{stroke:var(--roxy-secondary,#475569);stroke-width:.6px;opacity:.5}.compass-label{fill:var(--roxy-secondary,#475569);font-size:9px;font-weight:600;font-family:var(--roxy-font-sans)}.compass-label.cardinal,.center-dot{fill:var(--roxy-fg,#0a0a0a)}.spoke{stroke-width:1.4px}.spoke.below{stroke-dasharray:3 3;opacity:.4}.body-glyph{font-size:11px;font-weight:600;font-family:var(--roxy-font-sans)}.body-glyph.below{opacity:.45}.wrap>*{min-width:0}.table-scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}.list{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}.list th,.list td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);padding:4px 8px}.list th{color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.04em;font-weight:600;font-size:var(--roxy-text-xs,.75rem)}.list td.num{text-align:right;font-variant-numeric:tabular-nums}.body-cell{align-items:center;gap:.4rem;display:inline-flex}.body-dot{border-radius:50%;flex-shrink:0;width:10px;height:10px}.horizon-pill{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:1px 7px}.horizon-pill.up{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.horizon-pill.down{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);color:var(--roxy-fg,#0a0a0a)}.summary{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0}`],Bt=g([b("roxy-local-space-compass")],Bt);function wo(o,t){let e,r=((...a)=>{e&&clearTimeout(e),e=setTimeout(()=>{e=void 0,o(...a)},t)});return r.cancel=()=>{e&&(clearTimeout(e),e=void 0)},r}var Q=class extends De{constructor(){super(...arguments);this.endpoint="https://roxyapi.com/api/v2/location/search";this.placeholder="Search city";this.defaultValue="";this.query="";this.results=[];this.isOpen=!1;this.isLoading=!1;this.highlight=-1;this.keyBlocked=!1;this.error=null;this.debouncedFetch=wo(e=>{this.fetchResults(e)},300);this.onInput=e=>{let r=e.target.value;if(this.query=r,r.length<2){this.results=[],this.isOpen=!1,this.highlight=-1,this.error=null;return}this.debouncedFetch(r)};this.onKeyDown=e=>{if(!this.isOpen||this.results.length===0){e.key==="ArrowDown"&&this.query.length>=2&&(this.fetchResults(this.query),e.preventDefault());return}if(e.key==="ArrowDown")e.preventDefault(),this.highlight=(this.highlight+1)%this.results.length;else if(e.key==="ArrowUp")e.preventDefault(),this.highlight=(this.highlight-1+this.results.length)%this.results.length;else if(e.key==="Enter"){e.preventDefault();let r=this.results[this.highlight]??this.results[0];r&&this.select(r)}else e.key==="Escape"&&(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),this.query=this.defaultValue,this.clickOutsideHandler=e=>{e.composedPath().includes(this)||(this.isOpen=!1)},document.addEventListener("mousedown",this.clickOutsideHandler)}willUpdate(e){if(e.has("publishableKey")||e.has("apiKey")){let r=Or(this.publishableKey??this.apiKey);r&&!this.keyBlocked&&Br(this,{warn:!0}),this.keyBlocked=r}}disconnectedCallback(){super.disconnectedCallback(),this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler),this.debouncedFetch.cancel(),this.abortController&&(this.abortController.abort(),this.abortController=void 0)}async fetchResults(e){if(this.keyBlocked)return;this.abortController&&this.abortController.abort();let r=new AbortController;this.abortController=r,this.isLoading=!0;try{let a=new URL(this.endpoint);a.searchParams.set("q",e),a.searchParams.set("limit","8");let n={Accept:"application/json"};this.apiKey&&this.publishableKey&&console.warn("[roxy-location-search] both api-key and publishable-key set; using publishable-key. Remove api-key from your widget markup.");let l=this.publishableKey??this.apiKey;l&&(n["X-API-Key"]=l);let d=await fetch(a,{headers:n,signal:r.signal});if(!d.ok)throw new Error(await ja(d));let c=await d.json();if(r.signal.aborted)return;this.error=null,this.results=c.cities??[],this.isOpen=!0,this.highlight=this.results.length>0?0:-1}catch(a){if(a?.name==="AbortError")return;this.results=[],this.isOpen=!1,this.highlight=-1,this.error=a instanceof Error?a.message:String(a)}finally{this.abortController===r&&(this.abortController=void 0),r.signal.aborted||(this.isLoading=!1)}}select(e){this.query=`${e.city}${e.province?`, ${e.province}`:""}, ${e.country}`,this.isOpen=!1,this.results=[],this.dispatchEvent(new CustomEvent("roxy-location-select",{detail:e,bubbles:!0,composed:!0}))}render(){return this.keyBlocked?s`<div class="roxy-error" role="alert">${this.t(er)}</div>`:s`<div class="field"><input part="input" type="text" role="combobox" aria-expanded="${this.isOpen?"true":"false"}" aria-controls="roxy-location-listbox" aria-activedescendant="${this.isOpen&&this.highlight>=0?`roxy-location-option-${this.highlight}`:""}" aria-autocomplete="list" autocomplete="off" placeholder="${this.t(this.placeholder)}" .value="${this.query}" @input="${this.onInput}" @keydown="${this.onKeyDown}" @focus="${()=>{this.results.length>0&&(this.isOpen=!0)}}"> ${this.isLoading?s`<span class="spinner" role="status" aria-label="${this.t("Loading")}"></span>`:i} ${this.isOpen?s`<ul id="roxy-location-listbox" part="results" class="results" role="listbox">${this.results.length===0?s`<li class="empty" role="status">${this.t("No cities found")}</li>`:this.results.map((e,r)=>s`<li role="presentation"><button type="button" part="option" class="option" role="option" id="${`roxy-location-option-${r}`}" aria-selected="${this.highlight===r?"true":"false"}" @click="${()=>this.select(e)}" @mouseenter="${()=>{this.highlight=r}}"><span class="city">${e.city}</span> <span class="where">${e.province?s`${e.province},`:""}${e.country}</span> <span class="tz">UTC${e.utcOffset>=0?"+":""}${e.utcOffset}</span></button></li>`)}</ul>`:i}</div>${this.error?s`<p class="search-error" role="alert">${this.t(this.error)}</p>`:i}`}};Q.styles=[x,u`:host{display:block;position:relative}.field{position:relative}input{width:100%;padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a);background:var(--roxy-bg,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);transition:border-color var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));box-sizing:border-box;font-family:inherit}input:focus{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-color:var(--roxy-accent-ink,#b45309)}.spinner{border:2px solid var(--roxy-muted,#71717a);border-top-color:#0000;border-radius:50%;width:14px;height:14px;animation:.7s linear infinite roxy-spin;position:absolute;top:50%;right:12px;transform:translateY(-50%)}@keyframes roxy-spin{to{transform:translateY(-50%)rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation:none}}.results{z-index:50;padding:var(--roxy-space-xs,.25rem);background:var(--roxy-bg,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);box-shadow:var(--roxy-shadow-md);max-height:22rem;animation:roxy-fade-in var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));margin:0;list-style:none;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto}.option{align-items:center;gap:var(--roxy-space-sm,.5rem);width:100%;padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-radius:var(--roxy-radius-sm,6px);text-align:left;font-family:inherit;font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);cursor:pointer;transition:background-color var(--roxy-motion-duration,.2s);background:0 0;border:0;display:flex}.option:hover,.option[aria-selected=true]{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 10%, transparent)}.option .city{font-weight:var(--roxy-weight-bold,600)}.option .where{color:var(--roxy-muted,#71717a);flex-grow:1}.option .tz{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums}.empty{padding:var(--roxy-space-md,1rem);color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.search-error{margin:var(--roxy-space-xs,.25rem) 0 0;color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem)}`],g([S({type:String,attribute:"api-key"})],Q.prototype,"apiKey",2),g([S({type:String,attribute:"publishable-key"})],Q.prototype,"publishableKey",2),g([S({type:String})],Q.prototype,"endpoint",2),g([S({type:String})],Q.prototype,"placeholder",2),g([S({type:String,attribute:"default-value"})],Q.prototype,"defaultValue",2),g([G()],Q.prototype,"query",2),g([G()],Q.prototype,"results",2),g([G()],Q.prototype,"isOpen",2),g([G()],Q.prototype,"isLoading",2),g([G()],Q.prototype,"highlight",2),g([G()],Q.prototype,"keyBlocked",2),g([G()],Q.prototype,"error",2),Q=g([b("roxy-location-search")],Q);var Ke=class extends y{constructor(){super(...arguments);this.mode="current"}renderData(e){let r="phases"in e?e.phases:"calendar"in e?e.calendar:[];if(this.mode!=="current"&&r.length>0){let a="month"in e?e.month:void 0,n="year"in e?e.year:void 0;return s`<article class="card" part="card" aria-label="${this.t("Moon phase calendar")}"><h2 class="label" part="header">${a??"Moon phases"} ${n??""}</h2><div class="list" part="table" role="list">${r.map(l=>this.renderListItem(l))}</div></article>`}return"phase"in e?this.renderSingle(e):i}renderSingle(e){let r=e.meaning?.symbol||ko(e.phase);return s`<article class="card" part="card" aria-label="${this.t("Current moon phase")}"><div class="hero" part="header"><span class="emoji" aria-hidden="true">${r}</span><div><h2 class="label">${e.phase??"Moon"}</h2>${e.date?s`<div class="date">${A(this.effectiveLang(),e.date)}</div>`:i}</div></div><div class="stats" part="details">${typeof e.illumination=="number"?s`<div><span>${this.t("Illumination")}</span> <strong>${ae(this.effectiveLang(),e.illumination<=1?e.illumination*100:e.illumination,0)}</strong></div>`:i} ${typeof e.age=="number"?s`<div><span>${this.t("Age")}</span> <strong>${this.t("{{count}} days",{count:v(this.effectiveLang(),e.age,1)})}</strong></div>`:i} ${e.sign?s`<div><span>${this.t("Sign")}</span> <strong>${e.sign}</strong></div>`:i} ${typeof e.distance=="number"?s`<div><span>${this.t("Distance")}</span> <strong>${this.t("{{value}}k km",{value:v(this.effectiveLang(),e.distance/1e3,0)})}</strong></div>`:i}</div>${e.meaning?.description&&!this.hideReadings?s`<p class="meaning">${e.meaning.description}</p>`:i} ${e.meaning?.keywords?.length&&!this.hideReadings?s`<div class="keywords">${e.meaning.keywords.map(a=>s`<span>${a}</span>`)}</div>`:i}</article>`}renderListItem(e){let r=ko(e.phase);return s`<div class="list-item" role="listitem"><span aria-hidden="true">${r}</span> <span>${e.phase}</span> <span>${A(this.effectiveLang(),e.date)}</span></div>`}};Ke.styles=[x,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.hero{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.emoji{font-size:3rem;line-height:1}.label{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;margin:0}.date{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.stats{gap:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-secondary,#475569);grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));display:grid}.stats div span:first-child{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:block}.stats strong{color:var(--roxy-fg,#0a0a0a);font-variant-numeric:tabular-nums}.meaning{color:var(--roxy-fg,#0a0a0a)}.keywords{gap:var(--roxy-space-xs,.25rem);margin-top:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.keywords span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.list{gap:var(--roxy-space-sm,.5rem);display:grid}.list-item{gap:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);padding:var(--roxy-space-sm,.5rem) 0;font-size:var(--roxy-text-sm,.875rem);grid-template-columns:2.5rem 1fr auto;align-items:center;display:grid}.list-item:last-child{border-bottom:none}`],g([S({type:String,reflect:!0})],Ke.prototype,"mode",2),Ke=g([b("roxy-moon-phase")],Ke);function ko(o){return xn(o)??"🌙"}var It=class extends y{renderData(t){let e=t.remedies;return s`<article class="wrap" part="card" aria-label="${this.t("Nakshatra {{name}}",{name:t.name})}"><header class="head" part="header"><h2 class="name">${t.name}</h2>${typeof t.number=="number"?s`<span class="number">${this.t("Nakshatra {{number}} of 27",{number:t.number})}</span>`:i} ${t.range?s`<span class="range">${t.range}</span>`:i}</header><dl class="facts" part="details">${t.lord?s`<div class="fact"><dt>${this.t("Lord")}</dt><dd>${t.lord}</dd></div>`:i} ${t.deity?s`<div class="fact"><dt>${this.t("Deity")}</dt><dd>${t.deity}</dd></div>`:i} ${t.symbol?s`<div class="fact"><dt>${this.t("Symbol")}</dt><dd>${t.symbol}</dd></div>`:i}</dl>${t.characteristics&&!this.hideReadings?s`<div class="section" part="section characteristics"><h3>${this.t("Characteristics")}</h3><p>${t.characteristics}</p></div>`:i} ${e&&!this.hideReadings?s`<div class="section" part="section remedies"><h3>${this.t("Remedies")}</h3><div class="remedies">${e.mantras?s`<div class="remedy"><strong>${this.t("Mantras:")}</strong> ${e.mantras}</div>`:i} ${e.gemstones?s`<div class="remedy"><strong>${this.t("Gemstones:")}</strong> ${e.gemstones}</div>`:i} ${e.rituals?s`<div class="remedy"><strong>${this.t("Rituals:")}</strong> ${e.rituals}</div>`:i}</div></div>`:i}</article>`}};It.styles=[x,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);padding:var(--roxy-space-md,1rem);gap:var(--roxy-space-md,1rem);box-shadow:var(--roxy-shadow-sm);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.name{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.number{color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600)}.range{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.facts{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));display:grid}.fact{gap:2px;display:grid}.fact dt{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.05em}.fact dd{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0}.section h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.section p{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0;line-height:1.5}.remedies{gap:var(--roxy-space-xs,.25rem);display:grid}.remedy{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.remedy strong{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600)}`],It=g([b("roxy-nakshatra-card")],It);var nr=u`.aspect{stroke-width:.8px;fill:none;opacity:.55}.aspect-trine,.aspect-sextile{stroke:var(--roxy-success,#16a34a)}.aspect-square,.aspect-opposition{stroke:var(--roxy-danger,#dc2626)}.aspect-conjunction{stroke:var(--roxy-accent-ink,#b45309)}.aspect-other{stroke:var(--roxy-muted,#71717a);stroke-opacity:.7}`,So=.3,id=.9,Ro=.5,ld=1.8;function or(o){let{strength:t}=o;if(typeof t!="number"||!Number.isFinite(t))return;let e=Math.min(1,Math.max(0,t/100)),r=So+e*(id-So),a=Ro+e*(ld-Ro);return`opacity:${r.toFixed(3)};stroke-width:${a.toFixed(3)}`}var Co={GRAND_CROSS:0,GRAND_TRINE:1,KITE:2,T_SQUARE:3,YOD:4,MYSTIC_RECTANGLE:5,STELLIUM:6},ws=420,E=ws/2,ir=164,Ls=146,Cr=120,Ve=96,dd=178,$s=196,cd=14,pd=15,md=28,Ce=class extends y{constructor(){super(...arguments);this.heading="Natal chart";this.view="wheel"}getPlanets(){return this.data?.planets??[]}getAscendant(){return this.data?.ascendant?.longitude??0}getMidheaven(){let e=this.data?.midheaven?.longitude;return typeof e=="number"?e:null}get hasCusps(){return(this.data?.houses??[]).length===12}toAngle(e){return 180+this.getAscendant()-e}renderData(e){let r=this.getPlanets(),a=e.aspects??[],n=this.view;return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t(this.heading)}</h2>${e.birthDetails?s`<div class="meta">${q(this.effectiveLang(),e.birthDetails.date,e.birthDetails.time)}</div>`:i}</header>${a.length>0?s`${se({items:[{id:"wheel",label:this.t("Wheel")},{id:"grid",label:this.t("Aspect grid")}],active:n,onSelect:l=>{this.view=l},label:this.t("Natal chart views"),idPrefix:"natal",controls:!0})}<div id="natal-panel-${n}" part="panel" role="tabpanel" aria-labelledby="natal-tab-${n}">${n==="wheel"?this.renderWheel(r,a):this.renderAspectGrid(r,a)}</div>`:this.renderWheel(r,a)}<div class="legend" part="legend"><span>${this.t("{{count}} planets",{count:r.length})}</span> ${a.length>0?s`<span>${this.t("{{count}} aspects",{count:a.length})}</span>`:i} ${this.hasCusps&&e.houseSystem?s`<span>${this.t("{{system}} houses",{system:e.houseSystem})}</span>`:s`<span class="caveat">${this.t("Equal sectors from the Ascendant, no house cusps in this response")}</span>`} ${a.length>0?s`<span><span class="legend-swatch" style="background:var(--roxy-success)"></span>${this.t("Harmonious")}</span> <span><span class="legend-swatch" style="background:var(--roxy-danger)"></span>${this.t("Challenging")}</span>`:i}</div>${this.renderDetails()} ${this.renderPatterns()} ${this.renderInterpretations()}</div>`}renderWheel(e,r){return s`<svg viewBox="0 0 ${ws} ${ws}" part="chart" role="img" aria-label="${this.hasCusps?this.t("Natal chart wheel with twelve houses, planets, and aspects"):this.t("Natal chart wheel with planets and aspects, houses shown as equal sectors from the Ascendant")}"><title>${this.t("Natal chart wheel")}</title><desc>${this.t("Twelve zodiac sign segments around a circular wheel. Planet glyphs are placed at their ecliptic longitudes. Aspect lines connect related planets.")}</desc><circle class="wheel-line" cx="${E}" cy="${E}" r="${ir}" stroke-width="1.5"/><circle class="wheel-line" cx="${E}" cy="${E}" r="${Ls-14}" stroke-width="0.8"/><circle class="wheel-line" cx="${E}" cy="${E}" r="${Cr}" stroke-width="1"/><circle class="wheel-line" cx="${E}" cy="${E}" r="${Ve-16}" stroke-width="0.5"/>${this.renderTicks()} ${this.renderSpokes()} ${this.renderSigns()} ${this.renderHouseNumbers()} ${this.renderCuspDegrees()} ${this.renderAspects(e,r)} ${this.renderPlanets(e)} ${this.renderAngles()}</svg>`}renderAspectGrid(e,r){let a=e.map(d=>({name:d.name,label:$(d,"name")})),n=(d,c)=>[me(d),me(c)].sort().join("|"),l=new Map;for(let d of r)l.set(n(d.planet1,d.planet2),d);return a.length===0?s`<p class="roxy-empty" role="status">${this.t("No planets to grid")}</p>`:s`<div class="grid-scroll" part="section aspects table aspect-grid"><table class="aspect-grid"><caption class="roxy-sr-only">${this.t("Planet by planet aspect grid: the aspect each pair of planets forms, read from the planet naming the row across to the planet naming the column.")}</caption><thead><tr><th></th>${a.slice(0,-1).map(d=>{let c=R(d.name)??d.label;return s`<th scope="col" title="${d.label}">${c}</th>`})}</tr></thead><tbody>${a.slice(1).map((d,c)=>{let p=R(d.name)??d.label;return s`<tr><th scope="row" title="${d.label}">${p}</th>${a.slice(0,c+1).map(h=>{let m=l.get(n(d.name,h.name));if(!m)return s`<td class="empty"></td>`;let f=ce(m),C=Fr(f)??$(m,"type",W(m)),w=Le[f]??"aspect-other",k=v(this.effectiveLang(),m.orb,1);return s`<td class="${`cell ${w}`}" title="${`${d.label} ${$(m,"type",f)} ${h.label}${k?` (${this.t("Orb")} ${k}°)`:""}`}"><span class="asp">${C}</span></td>`})} ${a.slice(c+1,-1).map(()=>s`<td class="empty"></td>`)}</tr>`})}</tbody></table></div>`}renderAngles(){let e=this.getAscendant(),r=this.getMidheaven(),a=[{longitude:e,label:this.t("ASC")},{longitude:kr(e),label:this.t("DSC")}];r!==null&&(a.push({longitude:r,label:this.t("MC")}),a.push({longitude:kr(r),label:this.t("IC")}));let n=this.data?.partOfFortune?.longitude;typeof n=="number"&&a.push({longitude:he(n),label:this.t("PoF")});let l=this.data?.vertex?.longitude;return typeof l=="number"&&a.push({longitude:he(l),label:this.t("Vtx")}),Sr(a,d=>d.longitude,Lt(md,$s)).map(({item:d,longitude:c,displayLongitude:p})=>this.renderAngleMark(c,p,d.label))}renderAngleMark(e,r,a){let n=this.toAngle(e),l=this.toAngle(r),d=D(E,E,ir,n),c=D(E,E,dd,n),p=D(E,E,$s,l),h=Math.abs(r-e)>.5,m=D(E,E,$s-8,l);return L`
|
|
107
107
|
<g>
|
|
108
108
|
<line class="angle-tick" x1=${d.x} y1=${d.y} x2=${c.x} y2=${c.y} />
|
|
109
109
|
${h?L`<line class="angle-tick" x1=${c.x} y1=${c.y} x2=${m.x} y2=${m.y} />`:i}
|
|
110
110
|
<text class="angle-marker" x=${p.x} y=${p.y} text-anchor="middle" dominant-baseline="central">${a}</text>
|
|
111
111
|
</g>
|
|
112
|
-
`}renderSpokes(){let e=this.data?.houses??[];return(this.hasCusps?e.map(a=>a.longitude):Array.from({length:12},(a,n)=>this.getAscendant()+n*30)).map(a=>{let n=this.toAngle(a),l=D(E,E,Cr,n),d=D(E,E,ir,n);return L`<line class="wheel-line" x1=${l.x} y1=${l.y} x2=${d.x} y2=${d.y} stroke-width="0.8" />`})}renderSigns(){return Z.map((e,r)=>{let a=this.toAngle(r*30+15),n=D(E,E,
|
|
113
|
-
${
|
|
112
|
+
`}renderSpokes(){let e=this.data?.houses??[];return(this.hasCusps?e.map(a=>a.longitude):Array.from({length:12},(a,n)=>this.getAscendant()+n*30)).map(a=>{let n=this.toAngle(a),l=D(E,E,Cr,n),d=D(E,E,ir,n);return L`<line class="wheel-line" x1=${l.x} y1=${l.y} x2=${d.x} y2=${d.y} stroke-width="0.8" />`})}renderSigns(){return Z.map((e,r)=>{let a=this.toAngle(r*30+15),n=D(E,E,Ls,a);return L`<text class="sign-glyph" x=${n.x} y=${n.y} text-anchor="middle" dominant-baseline="central">${z(e)??""}</text>`})}renderHouseNumbers(){let e=this.data?.houses??[];if(this.hasCusps)return e.map((a,n)=>{let l=e[(n+1)%12],d=oa(a.longitude,l?l.longitude:a.longitude+30),c=D(E,E,Cr-12,this.toAngle(d));return L`<text class="house-num" x=${c.x} y=${c.y} text-anchor="middle" dominant-baseline="central">${a.number}</text>`});let r=Math.floor(this.getAscendant()/30);return Array.from({length:12},(a,n)=>{let l=this.toAngle(n*30+15),d=D(E,E,Cr-12,l),c=(n-r+12)%12+1;return L`<text class="house-num" x=${d.x} y=${d.y} text-anchor="middle" dominant-baseline="central">${c}</text>`})}renderTicks(){let e=[];for(let r=0;r<360;r+=5){let a=this.toAngle(r),n=r%30===0,l=n?Ls-14:ir-5,d=D(E,E,l,a),c=D(E,E,ir,a);e.push(L`<line class=${n?"tick tick-major":"tick"} x1=${d.x} y1=${d.y} x2=${c.x} y2=${c.y} stroke-width=${n?1:.5} />`)}return e}renderCuspDegrees(){let e=this.data?.houses??[];return this.hasCusps?e.map(r=>{let a=this.toAngle(r.longitude),n=D(E,E,Cr+9,a),l=re(r.longitude);return L`<text class="cusp-deg" x=${n.x} y=${n.y} text-anchor="middle" dominant-baseline="central">${l.degree}°${String(l.minute).padStart(2,"0")}'</text>`}):i}renderPlanets(e){let r=Math.max(Lt(cd,Ve),Lt(pd,Ve-13));return Sr(e,a=>a.longitude,r).map(a=>{let{item:n,longitude:l,displayLongitude:d}=a,c=this.toAngle(l),p=this.toAngle(d),h=D(E,E,Ve,p),m=D(E,E,Ve-13,p),f=D(E,E,ir-4,c),C=D(E,E,Ve+8,p),w=$(n,"name"),k=R(n.name)??w,B=re(n.longitude),V=n.isRetrograde===!0,de=`${B.degree}°${String(B.minute).padStart(2,"0")}'`,Jt=Math.abs(d-l)>.5;return L`<g>
|
|
113
|
+
${Jt?L`<line class="planet-leader" x1=${f.x} y1=${f.y} x2=${C.x} y2=${C.y} />`:i}
|
|
114
114
|
<text class="planet-glyph" x=${h.x} y=${h.y} text-anchor="middle" dominant-baseline="central"><title>${w}${V?` ${this.t("retrograde")}`:""} - ${de} ${$(n,"sign")}</title>${k}</text>
|
|
115
115
|
<text class="planet-deg" x=${m.x} y=${m.y} text-anchor="middle" dominant-baseline="central">${de}${V?L`<tspan class="retro"> ℞</tspan>`:i}</text>
|
|
116
|
-
</g>`})}renderDetails(){let e=this.data?.summary,r=this.data?.aspectsInterpretation;if(!e&&!r)return i;let a=Fn(e,"retrogradePlanets");return s`<div class="details" part="details">${e?.dominantElement||e?.dominantModality?s`<div class="pill-row">${e.dominantElement?s`<span class="pill">${this.t("Dominant element")}: ${$(e,"dominantElement")}</span>`:i} ${e.dominantModality?s`<span class="pill">${this.t("Dominant modality")}: ${$(e,"dominantModality")}</span>`:i}</div>`:i} ${r?s`<div class="pill-row"><span class="pill pill--success">${this.t("Harmonious")} ${r.harmonious}</span> <span class="pill pill--danger">${this.t("Challenging")} ${r.challenging}</span> <span class="pill pill--muted">${this.t("Neutral")} ${r.neutral}</span></div>`:i} ${a.length>0?s`<div class="pill-row">${a.map(({value:n,label:l})=>{let d=R(n)??"";return s`<span class="pill pill--muted">${d} ${l} R</span>`})}</div>`:i} ${r?.summary&&!this.hideReadings?s`<p class="summary">${r.summary}</p>`:i} ${this.renderElementModalityGrid()}</div>`}renderElementModalityGrid(){let e=this.getPlanets();if(e.length===0)return i;let r=["Fire","Earth","Air","Water"],a=["Cardinal","Fixed","Mutable"],n={Fire:this.t("Fire"),Earth:this.t("Earth"),Air:this.t("Air"),Water:this.t("Water")},l={Cardinal:{abbr:this.t("Car"),full:this.t("Cardinal")},Fixed:{abbr:this.t("Fix"),full:this.t("Fixed")},Mutable:{abbr:this.t("Mut"),full:this.t("Mutable")}},d=Z,c=this.data?.summary,p=N(c?.dominantElement??""),h=N(c?.dominantModality??""),m={};for(let w of r)m[w]={Cardinal:[],Fixed:[],Mutable:[]};let f=0;for(let w of e){let k=d.indexOf(N(w.sign??""));if(k<0)continue;let B=r[k%4],V=a[k%3],de=R(w.name)??$(w,"name");m[B]?.[V]?.push(de),f++}if(f===0)return i;let C=w=>r.reduce((k,B)=>k+(m[B]?.[w]?.length??0),0);return s`<div class="grid-scroll"><table class="em-grid" part="table element-modality" aria-label="${this.t("Element and modality distribution")}"><caption>${this.t("All {{count}} bodies in the chart, placed by sign",{count:f})}</caption><thead><tr><th></th>${a.map(w=>s`<th scope="col" title="${l[w]?.full??w}" class="${w===h?"dominant":""}">${l[w]?.abbr??w}</th>`)}<th scope="col">${this.t("Total")}</th></tr></thead><tbody>${r.map(w=>{let k=w===p,B=a.reduce((V,de)=>V+(m[w]?.[de]?.length??0),0);return s`<tr><th scope="row" class="${k?"dominant":""}">${n[w]??w}</th>${a.map(V=>s`<td class="${k||V===h?"dominant":""}">${(m[w]?.[V]??[]).join(" ")}</td>`)}<td class="${k?"em-total dominant":"em-total"}">${B}</td></tr>`})}<tr><th scope="row">${this.t("Total")}</th>${a.map(w=>s`<td class="${w===h?"em-total dominant":"em-total"}">${C(w)}</td>`)}<td class="em-total">${f}</td></tr></tbody></table></div>`}renderPatterns(){let e=this.data?.patterns??[];if(e.length===0)return i;let r=[...e].sort((a,n)=>(Ro[a.kind]??9)-(Ro[n.kind]??9)||(n.tightness??0)-(a.tightness??0));return s`<section class="block" part="section patterns"><h3>${this.t("Chart patterns")}</h3>${r.map(a=>this.renderPattern(a))}</section>`}renderPattern(e){let r=e.planets??[],a=e.apex?[...r].sort((n,l)=>+(l===e.apex)-+(n===e.apex)):r;return s`<div class="pattern" part="pattern"><div class="pattern-head"><span class="pattern-name">${e.name}</span> ${e.element?s`<span class="pattern-tag">${e.element}</span>`:i} ${e.modality?s`<span class="pattern-tag">${e.modality}</span>`:i} ${e.dissociate?s`<span class="pattern-tag" title="${this.t("Out of sign: one or more planets sit outside the pattern element or modality, so the theme holds but runs weaker.")}">${this.t("Dissociate")}</span>`:i} ${typeof e.tightness=="number"?s`<span class="pattern-tight">${this.t("{{percent}} tight",{percent:ae(this.effectiveLang(),e.tightness,0)})}</span>`:i}</div><div class="pattern-planets">${a.map(n=>{let l=R(n),d=!!e.apex&&n===e.apex;return s`<span class="${d?"planet-chip apex":"planet-chip"}">${l?s`<span aria-hidden="true">${l}</span>`:i}${n}${d?s`<span class="apex-tag">${this.t("apex")}</span>`:i}</span>`})}</div>${e.interpretation&&!this.hideReadings?s`<p class="pattern-interp">${e.interpretation}</p>`:i}</div>`}renderInterpretations(){let e=this.getPlanets().filter(r=>r.interpretation).map(r=>{let a=r.interpretation,n=R(r.name)??"",l=v(this.effectiveLang(),r.degree??0,1),d=$(r,"name"),c=a.summary||a.detailed||"",p=a.summary?a.detailed:void 0;return{label:`${n} ${d}`.trim(),aside:[$(r,"sign"),l].filter(Boolean).join(" "),body:c,extra:s`${p?s`<p>${p}</p>`:i} ${st(a.keywords)}`}});return this.renderInterpretation(e,"natal-planet-readings","Planet readings")}renderAspects(e,r){let a=new Map;for(let n of e){if(typeof n.longitude!="number")continue;let l=me(n.name);l&&a.set(l,n.longitude)}return r.map(n=>{let l=a.get(me(n.planet1)),d=a.get(me(n.planet2));if(l===void 0||d===void 0)return i;let c=D(E,E,Ve-18,this.toAngle(l)),p=D(E,E,Ve-18,this.toAngle(d)),h=ce(n),m=Le[h]??"aspect-other",f=v(this.effectiveLang(),n.orb,1);return L`<line class=${`aspect ${m}`} style=${or(n)} x1=${c.x} y1=${c.y} x2=${p.x} y2=${p.y}><title>${$(n,"planet1")} ${$(n,"type",h)} ${$(n,"planet2")}${f?` (${this.t("Orb")} ${f}°)`:""}</title></line>`})}};Ce.styles=[x,nr,ee,M,O,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}svg{width:100%;max-width:var(--roxy-chart-max-width,560px);aspect-ratio:1;height:auto;margin:0 auto;display:block}.wheel-line{fill:none;stroke:var(--roxy-border,#e4e4e7)}.sign-glyph{fill:var(--roxy-secondary,#475569);font-size:14px;font-family:var(--roxy-font-sans)}.planet-glyph{fill:var(--roxy-accent,#f59e0b);font-size:14px;font-weight:600;font-family:var(--roxy-font-sans)}.planet-deg{fill:var(--roxy-fg,#0a0a0a);font-size:7px;font-family:var(--roxy-font-sans)}@container (width<=480px){.sign-glyph,.planet-glyph{font-size:18px}.planet-deg{font-size:10px}.house-num{font-size:12px}}.planet-deg .retro{fill:var(--roxy-danger,#dc2626)}.planet-leader{stroke:var(--roxy-accent,#f59e0b);stroke-width:.5px;opacity:.55}.house-num{fill:var(--roxy-muted,#71717a);font-size:9px;font-family:var(--roxy-font-sans)}.cusp-deg{fill:var(--roxy-muted,#71717a);font-size:6px;font-family:var(--roxy-font-sans)}.tick{stroke:var(--roxy-border,#e4e4e7)}.tick-major{stroke:var(--roxy-secondary,#475569)}.angle-marker{fill:var(--roxy-accent-ink,#b45309);font-size:10px;font-weight:700;font-family:var(--roxy-font-sans);letter-spacing:.04em}.angle-tick{stroke:var(--roxy-accent-ink,#b45309);stroke-width:1.5px}.legend{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.legend-swatch{vertical-align:middle;border-radius:50%;width:8px;height:8px;margin-right:4px;display:inline-block}.legend .caveat{color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);padding:1px 8px}.grid-scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table.aspect-grid{border-collapse:collapse;font-size:var(--roxy-text-xs,.75rem);margin:0 auto}table.aspect-grid th,table.aspect-grid td{text-align:center;border:1px solid var(--roxy-border,#e4e4e7);width:1.6rem;height:1.6rem;padding:0}table.aspect-grid th{color:var(--roxy-secondary,#475569);font-weight:var(--roxy-weight-bold,600)}table.aspect-grid td.cell{cursor:default}table.aspect-grid td.empty{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 18%, transparent)}table.aspect-grid td .asp{font-size:.95em;line-height:1}table.aspect-grid td.aspect-trine .asp,table.aspect-grid td.aspect-sextile .asp{color:var(--roxy-success,#16a34a)}table.aspect-grid td.aspect-square .asp,table.aspect-grid td.aspect-opposition .asp{color:var(--roxy-danger,#dc2626)}table.aspect-grid td.aspect-conjunction .asp{color:var(--roxy-accent-ink,#b45309)}table.aspect-grid td.aspect-other .asp{color:var(--roxy-muted,#71717a)}.details{margin-top:var(--roxy-space-md,1rem)}.pill-row{gap:var(--roxy-space-xs,.25rem);margin-bottom:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.pill{border-radius:var(--roxy-radius-sm,4px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-fg,#0f172a) 8%, transparent);color:var(--roxy-fg,#0f172a);padding:2px 8px}.pill--success{background:color-mix(in srgb, var(--roxy-success,#16a34a) 15%, transparent);color:var(--roxy-success-fg,#166534)}.pill--danger{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 15%, transparent);color:var(--roxy-danger-fg,#991b1b)}.pill--muted{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a)}.summary{color:var(--roxy-fg,#0f172a);font-size:var(--roxy-text-sm,.875rem);margin:var(--roxy-space-md,1rem) 0}.em-grid{border-collapse:collapse;font-size:var(--roxy-text-xs,.75rem);width:100%}.em-grid caption{caption-side:top;text-align:left;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);padding-bottom:var(--roxy-space-xs,.25rem)}.em-grid th,.em-grid td{border:1px solid var(--roxy-border,#e4e4e7);text-align:center;vertical-align:middle;padding:3px 5px}.em-grid th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.04em}.em-grid th[scope=row]{text-align:left}.em-grid td{color:var(--roxy-accent,#f59e0b);min-width:1.4rem;font-size:.95em;line-height:1.4}.em-grid .em-total{color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 25%, transparent)}.em-grid .dominant{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 10%, transparent)}.em-grid th.dominant,.em-grid td.em-total.dominant{color:var(--roxy-fg,#0a0a0a)}.pattern{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem);gap:.35rem;display:grid}.pattern-head{flex-wrap:wrap;align-items:baseline;gap:.5rem;display:flex}.pattern-name{font-weight:var(--roxy-weight-bold,600)}.pattern-tag{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);color:var(--roxy-fg,#0a0a0a);text-transform:capitalize;padding:1px 8px}.pattern-tight{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.pattern-planets{flex-wrap:wrap;gap:.25rem;display:flex}.planet-chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a);align-items:baseline;gap:.3rem;padding:1px 8px;display:inline-flex}.planet-chip.apex{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 20%, transparent);font-weight:var(--roxy-weight-bold,600)}.planet-chip .apex-tag{text-transform:uppercase;letter-spacing:.04em;font-size:.85em;font-weight:400}.pattern-interp{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.45}`],g([S({type:String})],Ce.prototype,"heading",2),g([G()],Ce.prototype,"view",2),Ce=g([b("roxy-natal-chart")],Ce);var ld=new Set([11,22,33]),dd=[["career","Career"],["relationships","Relationships"],["spirituality","Spirituality"]],qe=class extends y{constructor(){super(...arguments);this.type="life-path"}renderData(e){let r=this.t(cd[this.type]??this.type);return"coreNumbers"in e?this.renderChart(e,r):"personalDay"in e?this.renderPersonalDay(e,r):"personalMonth"in e?this.renderPersonalMonth(e,r):"personalYear"in e?this.renderPersonalYear(e,r):"dailyMessage"in e?this.renderDailyNumber(e,r):this.renderNumberCard(e,r)}renderNumberCard(e,r){let a=!this.hideReadings;return s`<article class="card" part="card" aria-label="${r}">${this.renderHero(r,e.number,e.meaning?.title,$a(e.number,e.type))} ${e.meaning?.description&&a?s`<p class="meaning">${e.meaning.description}</p>`:i} ${e.calculation?s`<pre class="calc" part="calculation">${e.calculation}</pre>`:i} ${e.hasKarmicDebt&&e.karmicDebtNumber?s`<div class="karmic" part="section karmic-debt">${this.t("Karmic debt")} ${e.karmicDebtNumber}. ${a?pd(e.karmicDebtMeaning):""}</div>`:i} ${this.renderReading(e.meaning,"numerology-guidance")}</article>`}renderDailyNumber(e,r){let a=!this.hideReadings;return s`<article class="card" part="card" aria-label="${r}">${this.renderHero(r,e.number,e.meaning?.title,$a(e.number,e.type))} ${e.dailyMessage&&a?s`<p class="meaning">${e.dailyMessage}</p>`:i} ${e.meaning?.description&&a?s`<p class="meaning">${e.meaning.description}</p>`:i} ${this.renderReading(e.meaning,"numerology-daily-guidance")}</article>`}renderPersonalDay(e,r){return s`<article class="card" part="card" aria-label="${r}">${this.renderHero(r,e.personalDay,e.theme)} ${e.guidance&&!this.hideReadings?s`<p class="meaning">${e.guidance}</p>`:i}<dl class="attrs" part="details">${this.attr(this.t("Date"),A(this.effectiveLang(),e.targetDate))} ${this.attr(this.t("Personal month"),ws(e.personalMonth,e.personalMonthTheme))} ${this.attr(this.t("Personal year"),ws(e.personalYear,e.personalYearTheme))}</dl></article>`}renderPersonalMonth(e,r){return s`<article class="card" part="card" aria-label="${r}">${this.renderHero(r,e.personalMonth,e.theme)} ${e.focus&&!this.hideReadings?s`<p class="meaning">${e.focus}</p>`:i}<dl class="attrs" part="details">${this.attr(this.t("Calendar month"),e.calendarMonth)} ${this.attr(this.t("Personal year"),ws(e.personalYear,e.personalYearTheme))}</dl></article>`}renderPersonalYear(e,r){let a=!this.hideReadings;return s`<article class="card" part="card" aria-label="${r}">${this.renderHero(r,e.personalYear,e.theme)} ${e.cycle?s`<p class="label">${e.cycle}</p>`:i} ${e.forecast&&a?s`<p class="meaning">${e.forecast}</p>`:i} ${a?this.renderLists(["Opportunities",e.opportunities],["Challenges",e.challenges]):i} ${e.advice&&a?s`<p class="meaning">${e.advice}</p>`:i}</article>`}renderChart(e,r){let a=Object.entries(e.coreNumbers??{}).filter(([,h])=>h),n=e.additionalInsights,l=e.luckyAssociations,d=e.birthDayProfile,c=e.maturityStatus,p=!this.hideReadings;return s`<article class="card" part="card" aria-label="${r}"><div part="header"><p class="label">${r}</p>${e.profile?.name?s`<h2 class="title">${e.profile.name}</h2>`:i} ${e.profile?.birthdate?s`<p class="label">${A(this.effectiveLang(),e.profile.birthdate)}</p>`:i}</div>${e.summary&&p?s`<p class="meaning">${e.summary}</p>`:i} ${a.length>0?s`<div class="cores" part="details cores">${a.map(([h,m])=>s`<div class="item"><div class="core-head"><span class="core-key">${_(h)}</span> <strong>${m.number??""}</strong></div>${m.meaning?.title?s`<span class="core-title">${m.meaning.title}</span>`:i} ${$a(m.number,m.type)?s`<span class="master">${this.t("Master")} ${m.number}</span>`:i}</div>`)}</div>`:i} ${this.renderInterpretation(a.map(([h,m])=>({label:_(h),aside:[m.number!=null?`${m.number}`:"",$a(m.number,m.type)?"master":"",m.hasKarmicDebt&&m.karmicDebtNumber?`karmic debt ${m.karmicDebtNumber}`:""].filter(Boolean).join(" · "),body:m.meaning?.description??"",extra:this.renderReading(m.meaning,`numerology-core-${h}`)})),"numerology-cores","Core numbers")} ${c?s`<dl class="attrs" part="details maturity">${this.attr(this.t("Maturity"),c.isActive?this.t("Active"):this.t("Not yet active"))} ${this.attr(this.t("Current age"),c.currentAge)} ${this.attr(this.t("Activates"),c.activationRange)}</dl>`:i} ${d?s`<section class="sub" part="section birth-day-profile"><h3>${this.t("Birth day profile")}</h3>${d.title?s`<h4 class="sub-title">${[d.day?`Day ${d.day}`:"",d.title].filter(Boolean).join(" · ")}</h4>`:i} ${d.description&&p?s`<p>${d.description}</p>`:i} ${this.renderReading(d,"numerology-birth-day-profile")}</section>`:i} ${n?this.renderInsights(n):i} ${l?s`<section class="sub" part="section lucky-associations"><h3>${this.t("Lucky associations")}</h3><dl class="attrs">${this.attr(this.t("Day"),l.day)} ${this.attr(this.t("Element"),l.element)} ${this.attr(this.t("Ruling planet"),l.rulingPlanet)} ${this.attr(this.t("Colors"),l.colors?.join(", "))} ${this.attr(this.t("Gemstones"),l.gemstones?.join(", "))} ${this.attr(this.t("Compatible"),l.compatibleNumbers?.join(", "))} ${this.attr(this.t("Incompatible"),l.incompatibleNumbers?.join(", "))}</dl></section>`:i}</article>`}renderInsights(e){let r=e.karmicLessons,a=e.karmicDebt,n=e.personalYear,l=e.hiddenPassion,d=e.subconsciousSelf,c=e.nameLetters,p=Object.entries(r?.presentNumbers??{}),h=!this.hideReadings;return s`${r?s`<section class="sub" part="section karmic-lessons"><h3>${this.t("Karmic lessons")}</h3>${r.missingNumbers?.length?s`<div class="chips">${r.missingNumbers.map(m=>s`<span>${this.t("Missing")} ${m}</span>`)}</div>`:s`<p>${this.t("No numbers are missing from the birth name.")}</p>`} ${p.length>0?s`<div class="chips">${p.map(([m,f])=>s`<span>${m} x ${f}</span>`)}</div>`:i} ${this.renderInterpretation((r.lessons??[]).map(m=>({label:m.lesson??`Lesson ${m.number}`,aside:m.number!=null?`${m.number}`:"",body:m.description??"",extra:m.howToOvercome?s`<p><strong>${this.t("How to overcome")}.</strong> ${m.howToOvercome}</p>`:i})),"numerology-karmic-lessons","Lessons")}</section>`:i}${a?.hasKarmicDebt?s`<section class="sub" part="section karmic-debt"><h3>${this.t("Karmic debt")}</h3>${a.debtNumbers?.length?s`<div class="chips">${a.debtNumbers.map(m=>s`<span>${this.t("Debt")} ${m}</span>`)}</div>`:i} ${this.renderInterpretation((a.meanings??[]).map(m=>({label:`${this.t("Karmic debt")} ${m.number}`,body:m.description??"",extra:s`${m.challenge?s`<p><strong>${this.t("Challenge")}.</strong> ${m.challenge}</p>`:i}${m.resolution?s`<p><strong>${this.t("Resolution")}.</strong> ${m.resolution}</p>`:i}`})),"numerology-karmic-debt","Debts")}</section>`:i}${n?s`<section class="sub" part="section personal-year"><h3>${this.t("Personal year")}</h3><h4 class="sub-title">${[n.personalYear!=null?`${n.personalYear}`:"",n.theme??"",n.cycle??""].filter(Boolean).join(" · ")}</h4>${n.forecast&&h?s`<p>${n.forecast}</p>`:i} ${h?this.renderLists(["Opportunities",n.opportunities],["Challenges",n.challenges]):i} ${n.advice&&h?s`<p>${n.advice}</p>`:i} ${n.personalMonth?s`<p><strong>${[n.personalMonth.personalMonth!=null?`${this.t("Personal month")} ${n.personalMonth.personalMonth}`:this.t("Personal month"),n.personalMonth.theme??""].filter(Boolean).join(" · ")}.</strong> ${h?n.personalMonth.focus??"":""}</p>`:i}</section>`:i}${e.pinnacles?.length&&h?s`<section class="sub" part="section pinnacles"><h3>${this.t("Pinnacles")}</h3>${this.renderInterpretation(e.pinnacles.map(m=>({label:[m.position!=null?`Pinnacle ${m.position}`:"Pinnacle",m.meaning?.title??""].filter(Boolean).join(" · "),aside:[m.number!=null?`${m.number}`:"",Co(m.startAge,m.endAge)].filter(Boolean).join(" · "),body:m.meaning?.description??"",extra:this.renderLists(["Opportunities",m.meaning?.opportunities],["Challenges",m.meaning?.challenges])})),"numerology-pinnacles","Life phases")}</section>`:i}${e.challenges?.length&&h?s`<section class="sub" part="section obstacle-periods"><h3>${this.t("Challenges")}</h3>${this.renderInterpretation(e.challenges.map(m=>({label:[m.position!=null?`Challenge ${m.position}`:"Challenge",m.meaning?.title??""].filter(Boolean).join(" · "),aside:[m.number!=null?`${m.number}`:"",Co(m.startAge,m.endAge)].filter(Boolean).join(" · "),body:m.meaning?.description??"",extra:s`${m.meaning?.lesson?s`<p><strong>${this.t("Lesson")}.</strong> ${m.meaning.lesson}</p>`:i}${m.meaning?.howToOvercome?s`<p><strong>${this.t("How to overcome")}.</strong> ${m.meaning.howToOvercome}</p>`:i}`})),"numerology-challenges","Obstacle periods")}</section>`:i}${l||d?s`<section class="sub" part="section name-numbers"><h3>${this.t("Name numbers")}</h3>${l?s`<div><h4 class="sub-title">${[l.number!=null?`Hidden passion ${l.number}`:"Hidden passion",l.title??""].filter(Boolean).join(" · ")}</h4>${l.description&&h?s`<p>${l.description}</p>`:i} ${typeof l.count=="number"?s`<p class="label">${`Appears ${l.count} times in the name`}</p>`:i}</div>`:i} ${d?s`<div><h4 class="sub-title">${[d.number!=null?`Subconscious self ${d.number}`:"Subconscious self",d.title??""].filter(Boolean).join(" · ")}</h4>${d.description&&h?s`<p>${d.description}</p>`:i} ${d.uniqueNumbers?.length?s`<p class="label">${`Numbers present: ${d.uniqueNumbers.join(", ")}`}</p>`:i}</div>`:i}</section>`:i}${c&&h?s`<section class="sub" part="section name-letters"><h3>${this.t("Name letters")}</h3>${this.renderInterpretation([{label:this.t("Cornerstone"),aside:ks(c.cornerstone?.letter,c.cornerstone?.number),body:c.cornerstone?.meaning??""},{label:this.t("Capstone"),aside:ks(c.capstone?.letter,c.capstone?.number),body:c.capstone?.meaning??""},{label:this.t("First vowel"),aside:ks(c.firstVowel?.letter),body:c.firstVowel?.meaning??""}],"numerology-name-letters","Letter analysis")}</section>`:i}`}renderHero(e,r,a,n=!1){return s`<div class="hero" part="header">${typeof r=="number"?s`<div class="numeral">${r}</div>`:i}<div><p class="label">${e}</p>${a?s`<h2 class="title">${a}</h2>`:i} ${n?s`<span class="master">${this.t("Master number")}</span>`:i}</div></div>`}renderReading(e,r){if(!e||this.hideReadings)return i;let a=dd.map(([n,l])=>({label:l,body:e[n]??""}));return s`${e.keywords?.length?s`<div class="chips">${e.keywords.map(n=>s`<span>${n}</span>`)}</div>`:i}${this.renderLists(["Strengths",e.strengths],["Challenges",e.challenges])}${this.renderInterpretation(a,r,"Guidance")}`}renderLists(...e){let r=e.filter(([,a])=>a&&a.length>0);return r.length===0?i:s`<div class="lists">${r.map(([a,n])=>s`<div><h3>${this.t(a)}</h3><ul>${(n??[]).map(l=>s`<li>${l}</li>`)}</ul></div>`)}</div>`}attr(e,r){return r==null||r===""?i:s`<div class="attr"><dt>${e}</dt><dd>${r}</dd></div>`}};qe.styles=[x,M,O,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.hero{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.numeral{font-size:4rem;line-height:1;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);font-variant-numeric:tabular-nums}.label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.meaning{color:var(--roxy-fg,#0a0a0a);margin:0}.master{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);margin-top:2px;padding:2px 10px;display:inline-block}.calc{font-family:var(--roxy-font-mono);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 30%, transparent);padding:var(--roxy-space-sm,.5rem);border-radius:var(--roxy-radius-sm,4px);white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.cores{gap:var(--roxy-space-sm,.5rem);border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));display:grid}.cores .item{font-size:var(--roxy-text-sm,.875rem);gap:2px;display:grid}.cores .item .core-head{align-items:baseline;gap:var(--roxy-space-xs,.25rem);display:flex}.cores .item .core-key{color:var(--roxy-muted,#71717a);text-transform:capitalize}.cores .item strong{color:var(--roxy-accent-ink,#b45309);font-variant-numeric:tabular-nums;font-size:var(--roxy-text-base,1rem);font-weight:var(--roxy-weight-bold,600)}.cores .item .core-title{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));display:grid}.lists h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.lists ul{gap:var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-sm,.875rem);margin:0;padding-left:1.1rem;line-height:1.6;display:grid}.sub{gap:var(--roxy-space-sm,.5rem);border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem);display:grid}.sub>h3{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.sub-title{font-size:var(--roxy-text-base,1rem);font-weight:var(--roxy-weight-bold,600);margin:0}.sub p{font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.6}.attrs{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(7rem,1fr));margin:0;display:grid}.attr{gap:2px;display:grid}.attr dt{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.attr dd{font-size:var(--roxy-text-sm,.875rem);margin:0;font-weight:500}.karmic{background:color-mix(in srgb, var(--roxy-warning,#ea580c) 12%, transparent);border:1px solid color-mix(in srgb, var(--roxy-warning,#ea580c) 32%, transparent);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-radius:var(--roxy-radius-md,8px);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}`],g([S({type:String,reflect:!0})],qe.prototype,"type",2),qe=g([b("roxy-numerology-card")],qe);var cd={"life-path":"Life Path",expression:"Expression","soul-urge":"Soul Urge",personality:"Personality","birth-day":"Birth Day",maturity:"Maturity",daily:"Daily Number","personal-day":"Personal Day","personal-month":"Personal month","personal-year":"Personal year",chart:"Numerology chart"};function pd(o){return o?[o.description,o.challenge,o.resolution].filter(Boolean).join(" "):""}function $a(o,t){return t==="master"||o!==void 0&&ld.has(o)}function ws(o,t){return[o!=null?`${o}`:"",t??""].filter(Boolean).join(" · ")}function Co(o,t){return o==null?"":t==null?`ages ${o} onward`:`ages ${o} to ${t}`}function ks(o,t){return[o??"",t!=null?`${t}`:""].filter(Boolean).join(" · ")}function Ss(...o){return o.filter(Boolean).join(" · ")}function Rs(...o){return o.filter(Boolean).join(", ")}var Ue=class extends y{constructor(){super(...arguments);this.detail="detailed"}renderData(e){let r="sunrise"in e?e:null,a="sunLongitude"in e?e:null,n=r?[["Brahma Muhurta",r.brahmaMuhurta],["Abhijit Muhurta",r.abhijitMuhurta],["Vijaya Muhurta",r.vijayaMuhurta],["Godhuli Muhurta",r.godhuliMuhurta],["Nishita Muhurta",r.nishitaMuhurta],["Pratah Sandhya",r.pratahSandhya],["Sayahna Sandhya",r.sayahnaSandhya]]:[],l=r?this.expandWindows(this.t("Amrit Kalam"),r.amritKalam):[],d=r?[["Rahu Kaal",r.rahuKaal],["Yamaganda",r.yamaganda],["Gulika",r.gulika]]:[],c=r?[...this.expandWindows(this.t("Dur Muhurta"),r.durMuhurta),...this.expandWindows(this.t("Varjyam"),r.varjyam)]:[],p=this.detail==="detailed"&&r!==null;return s`<div class="wrap" part="card" aria-label="${this.t("Panchang")}"><header class="head" part="header"><h2 class="title">${this.t("Panchang")}</h2><span class="date">${r?A(this.effectiveLang(),r.date):""}</span></header><table part="table"><tbody>${this.limbs(e,r).map(h=>this.renderLimbRow(h))} ${r?s`${this.renderRow(this.t("Sunrise"),te(this.effectiveLang(),r.sunrise))} ${this.renderRow(this.t("Sunset"),te(this.effectiveLang(),r.sunset))} ${this.renderRow(this.t("Moonrise"),te(this.effectiveLang(),r.moonrise))} ${this.renderRow(this.t("Moonset"),te(this.effectiveLang(),r.moonset))} ${this.renderRow(this.t("Moon sign"),this.formatRashi(r.moonSign))} ${this.renderRow(this.t("Sun sign"),this.formatRashi(r.sunSign))} ${this.renderRow(this.t("Sun nakshatra"),this.formatSunNakshatra(r.sunNakshatra))} ${this.renderRow(this.t("Hora"),this.formatHora(r.hora))}`:a?s`${this.renderRow(this.t("Sun"),this.formatLongitude(a.sunLongitude))} ${this.renderRow(this.t("Moon"),this.formatLongitude(a.moonLongitude))}`:i}</tbody></table>${r?this.renderTransitions(r.transitions):i} ${p?s`<div class="section" part="section auspicious">${this.t("Auspicious muhurtas")}</div><table part="table auspicious"><tbody>${this.renderPeriodRows([...n.filter(h=>!!h[1]),...l])}</tbody></table><div class="section" part="section inauspicious">${this.t("Inauspicious periods")}</div><table part="table inauspicious"><tbody>${this.renderPeriodRows([...d.filter(h=>!!h[1]),...c])} ${this.renderBhadraRow(r.bhadra)} ${this.renderPanchakaRow(r.panchaka)}</tbody></table>${this.renderBalams(r.chandrabalam,r.tarabalam)}`:i}</div>`}limbs(e,r){let a=e.tithi,n=e.nakshatra,l=e.yoga,d=e.karana,c=[{label:this.t("Tithi"),value:Rs(a?.name,a?.paksha?`${a.paksha} paksha`:void 0),meta:Ss(a?.rulingPlanet?`Ruled by ${a.rulingPlanet}`:void 0,a?.deity?`Deity ${a.deity}`:void 0,a?.element,typeof a?.percent=="number"?`${ae(this.effectiveLang(),a.percent,0)} elapsed`:void 0)},{label:this.t("Nakshatra"),value:Rs(n?.name,typeof n?.pada=="number"?`pada ${n.pada}`:void 0),meta:Ss(n?.lord?`Lord ${n.lord}`:void 0,n?.deity?`Deity ${n.deity}`:void 0,n?.symbol?`Symbol ${n.symbol}`:void 0,n?.characteristics)},{label:this.t("Yoga"),value:l?.name??"",meta:l?.characteristics??""},{label:this.t("Karana"),value:Rs(d?.name,d?.type),meta:d?.characteristics??""}];return r?.vara&&c.push({label:this.t("Vara"),value:vr(r.vara.name,r.vara.sanskritName),meta:r.vara.lord?`Lord ${r.vara.lord}`:""}),c.filter(p=>!!p.value)}renderLimbRow(e){return s`<tr><th>${e.label}</th><td>${e.value}${e.meta?s`<small>${e.meta}</small>`:i}</td></tr>`}renderRow(e,r){return r?s`<tr><th>${e}</th><td>${r}</td></tr>`:i}renderTransitions(e){return e?s`<div class="section" part="section transitions">${this.t("Next transitions")}</div><table part="table transitions"><tbody>${this.renderTransitionRow(this.t("Tithi"),e.tithi)} ${this.renderTransitionRow(this.t("Nakshatra"),e.nakshatra)} ${this.renderTransitionRow(this.t("Yoga"),e.yoga)} ${this.renderTransitionRow(this.t("Karana"),e.karana)} ${this.renderMoonSignRow(e.moonSign)}</tbody></table>`:i}renderPeriodRows(e){return e.map(([r,a])=>{let n=Ee(this.effectiveLang(),a);return n?s`<tr><th>${r}</th><td>${n}</td></tr>`:i})}expandWindows(e,r){return!r||r.length===0?[]:r.map((a,n)=>[r.length>1?`${e} ${n+1}`:e,a])}renderBhadraRow(e){if(!e)return i;let r=this.formatSpan(e.startsAt,e.endsAt);return s`<tr><th>${this.t("Bhadra (Vishti)")}</th><td>${e.active&&r?r:s`<span class="quiet">${this.t("None today")}</span>`}</td></tr>`}renderPanchakaRow(e){if(!e)return i;let r=this.formatSpan(e.startsAt,e.endsAt);return s`<tr><th>${this.t("Panchaka")}</th><td>${e.active?s`${e.type?`${e.type} Panchaka`:"Panchaka"}${r?s`<small>${r}</small>`:i}`:s`<span class="quiet">${this.t("None today")}</span>`}</td></tr>`}renderBalams(e,r){return!e&&!r?i:s`<div class="section" part="section balams">${this.t("Chandrabalam and Tarabalam")}</div><table part="table balams"><tbody>${e?s`<tr><th>${this.t("Favorable Moon signs")}</th><td>${this.renderChips(e.favorableRashis,"good")}</td></tr>${this.renderRow(this.t("Ashtama Chandra rashi"),e.ashtamaChandraRashi??"")}`:i} ${r?s`<tr><th>${this.t("Favorable birth nakshatras")}</th><td>${this.renderChips(r.favorableNakshatras,"good")}</td></tr><tr><th>${this.t("Unfavorable birth nakshatras")}</th><td>${this.renderChips(r.unfavorableNakshatras,"bad")}</td></tr>`:i}</tbody></table>`}renderChips(e,r){return e?.length?s`<div class="chips">${e.map(a=>s`<span class="chip ${r}">${a}</span>`)}</div>`:s`<span class="quiet">${this.t("None")}</span>`}renderTransitionRow(e,r){if(!r?.endsAt)return i;let a=te(this.effectiveLang(),r.endsAt),n=r.next?typeof r.nextPada=="number"?this.t("ends {{time}} to {{next}} pada {{pada}}",{time:a,next:r.next,pada:r.nextPada}):this.t("ends {{time}} to {{next}}",{time:a,next:r.next}):this.t("ends {{time}}",{time:a});return s`<tr><th>${e}</th><td>${n}</td></tr>`}renderMoonSignRow(e){return e?.changesAt?s`<tr><th>${this.t("Moon sign")}</th><td>${e.next?this.t("{{sign}} until {{time}}, then {{next}}",{sign:e.current??"",time:te(this.effectiveLang(),e.changesAt),next:e.next}):this.t("{{sign}} until {{time}}",{sign:e.current??"",time:te(this.effectiveLang(),e.changesAt)})}</td></tr>`:i}formatSpan(e,r){let a=Ee(this.effectiveLang(),{start:e??void 0,end:r??void 0});return!a||!e||!r||e.slice(0,10)===r.slice(0,10)?a:this.t("{{range}} (ends {{date}})",{range:a,date:A(this.effectiveLang(),r)})}formatRashi(e){return vr(e?.name,e?.sanskritName)}formatSunNakshatra(e){return e?.name?Ss(e.name,typeof e.pada=="number"?`pada ${e.pada}`:void 0,e.lord?`lord ${e.lord}`:void 0):""}formatHora(e){if(!e?.current)return"";let r=Ee(this.effectiveLang(),e);return r?`${e.current} (${r})`:e.current}formatLongitude(e){return typeof e=="number"?ie(e):""}};Ue.styles=[x,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);justify-content:space-between;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.date{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}tbody tr:nth-child(odd){background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 24%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;vertical-align:top}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;width:38%}td{color:var(--roxy-fg,#0a0a0a);font-variant-numeric:tabular-nums}td small{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:normal;margin-top:2px;line-height:1.5;display:block}.section{border-top:1px solid var(--roxy-border,#e4e4e7);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em}.quiet{color:var(--roxy-muted,#71717a)}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;margin-top:4px;display:flex}.chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);padding:1px 8px}.chip.good{background:color-mix(in srgb, var(--roxy-success,#16a34a) 14%, transparent);color:var(--roxy-success-fg,#166534)}.chip.bad{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 14%, transparent);color:var(--roxy-danger-fg,#991b1b)}`],g([S({type:String,reflect:!0})],Ue.prototype,"detail",2),Ue=g([b("roxy-panchang-table")],Ue);var Ye=class extends y{constructor(){super(...arguments);this.heading=""}renderData(e){let r=this.toViewModel(e),a=r.cols;return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.heading||r.title}</h2>${r.badges.length?s`<div class="badges" part="details">${r.badges.map(n=>s`<span class="badge"><b>${n.label}</b> ${n.value}</span>`)}</div>`:i}</header>${r.summary&&!this.hideReadings?s`<p class="summary">${r.summary}</p>`:i}<div class="scroll" part="table"><table><caption>${r.title}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Position")}</th>${a.natal?s`<th scope="col">${this.t("Natal")}</th>`:i} ${a.house?s`<th scope="col" class="num">${this.t("House")}</th>`:i} ${a.motion?s`<th scope="col">${this.t("Motion")}</th>`:i} ${a.formula?s`<th scope="col">${this.t("Formula")}</th>`:i}</tr></thead><tbody>${r.rows.map(n=>this.renderRow(n,a))}</tbody></table></div>${this.renderReadings(r.rows)}</div>`}renderRow(e,r){let a=R(e.label);return s`<tr class="${e.isAngle?"angle":""}"><td class="body-cell">${a?s`<span class="glyph">${a}</span>`:i}${e.label}</td><td>${this.signCell(e.sign,e.degree)}</td>${r.natal?s`<td>${e.natalLongitude!=null?this.signFromLongitude(e.natalLongitude):s`—`}</td>`:i} ${r.house?s`<td class="num">${e.house!=null?e.house:s`—`}</td>`:i} ${r.motion?s`<td>${e.speed!=null?s`${v(this.effectiveLang(),e.speed,3)}${this.t("°/day")}${e.isRetrograde?s`<span class="retro">℞</span>`:i}`:s`—`}</td>`:i} ${r.formula?s`<td class="formula">${e.formula??s`—`}</td>`:i}</tr>`}signCell(e,r){let a=z(e);return s`<span class="sign">${a?s`<span class="sg">${a}</span>`:i}${bt(r)} ${e}</span>`}signFromLongitude(e){let r=re(e);return this.signCell(r.sign,r.degree+r.minute/60)}renderReadings(e){let r=e.filter(a=>a.interpretation).map(a=>({label:`${R(a.label)??""} ${a.label}`.trim(),aside:`${a.sign} ${bt(a.degree)}`.trim(),body:a.interpretation??""}));return this.renderInterpretation(r,"positions-readings","Readings")}toViewModel(e){if("asteroids"in e)return{title:this.t("Asteroids"),badges:e.houseSystem?[{label:this.t("Houses"),value:e.houseSystem}]:[],summary:e.summary,cols:{house:!0,motion:!0,formula:!1,natal:!1},rows:e.asteroids.map(a=>({label:a.name,sign:a.sign,degree:a.degree,house:a.house,speed:a.speed,isRetrograde:a.isRetrograde,interpretation:a.interpretation}))};if("lilith"in e)return{title:this.t("Black Moon Lilith"),badges:e.houseSystem?[{label:this.t("Houses"),value:e.houseSystem}]:[],summary:e.summary,cols:{house:!0,motion:!0,formula:!1,natal:!1},rows:e.lilith.map(a=>({label:this.t("{{variant}} apogee",{variant:N(a.variant)}),sign:a.sign,degree:a.degree,house:a.house,speed:a.speed,isRetrograde:a.isRetrograde,interpretation:a.interpretation}))};if("directed"in e)return{title:this.t("Solar arc directions"),badges:[{label:this.t("Arc"),value:`${v(this.effectiveLang(),e.solarArc,2)}°`},{label:this.t("Directed to"),value:A(this.effectiveLang(),e.targetDate)}],summary:e.summary,cols:{house:!1,motion:!1,formula:!1,natal:!0},rows:e.directed.map(a=>({label:a.name,sign:a.sign,degree:a.degree,natalLongitude:a.natalLongitude,interpretation:a.interpretation}))};if("lots"in e)return{title:this.t("Arabic lots"),badges:e.sect?[{label:this.t("Sect"),value:N(e.sect)}]:[],summary:e.summary,cols:{house:!1,motion:!1,formula:!0,natal:!1},rows:e.lots.map(a=>({label:a.name,sign:a.sign,degree:a.degree,formula:a.formula,interpretation:a.interpretation}))};let r=[];return e.ascendant&&r.push({label:this.t("Ascendant"),sign:e.ascendant.sign,degree:e.ascendant.degree,isAngle:!0}),e.midheaven&&r.push({label:this.t("Midheaven"),sign:e.midheaven.sign,degree:e.midheaven.degree,isAngle:!0}),{title:this.t("Secondary progressions"),badges:[{label:this.t("Progressed to"),value:A(this.effectiveLang(),e.targetDate)},{label:this.t("Elapsed"),value:this.t("{{years}} yrs",{years:v(this.effectiveLang(),e.elapsedYears,1)})}],summary:e.summary,cols:{house:!0,motion:!0,formula:!1,natal:!1},rows:[...r,...e.planets.map(a=>({label:a.name,sign:a.sign,degree:a.degree,house:a.house,speed:a.speed,isRetrograde:a.isRetrograde,interpretation:a.interpretation}))]}}};Ye.styles=[x,M,O,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}header{align-items:baseline;gap:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.badges{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 8px}.badge b{color:var(--roxy-accent-ink,#b45309);font-weight:600}.summary{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0}.scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}caption{text-align:left;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);padding-bottom:var(--roxy-space-xs,.25rem)}th,td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap;padding:6px 10px}th{color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.04em;font-weight:600;font-size:var(--roxy-text-xs,.75rem)}td.num{text-align:right;font-variant-numeric:tabular-nums}.body-cell{color:var(--roxy-fg,#0a0a0a);font-weight:500}.body-cell .glyph{color:var(--roxy-accent-ink,#b45309);margin-right:.35rem}tr.angle td{color:var(--roxy-secondary,#475569)}.sign{align-items:baseline;gap:.3rem;display:inline-flex}.sign .sg{color:var(--roxy-secondary,#475569)}.retro{color:var(--roxy-danger,#dc2626);font-weight:600}.formula{color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums;white-space:normal}`],g([S({type:String})],Ye.prototype,"heading",2),Ye=g([b("roxy-positions-table")],Ye);var It=class extends y{renderData(t){let e=z(t.profectedSign),r=R(t.lordOfYear),a=z(t.lordNatalPosition?.sign);return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t("Annual profection")}</h2>${t.targetDate?s`<span class="badge"><b>${this.t("For")}</b> ${A(this.effectiveLang(),t.targetDate)}</span>`:i}</header><div class="focus" part="details"><div class="age"><span class="n">${t.age}</span> <span class="l">${this.t("Age")}</span></div><span class="arrow">${this.t("Activates")}</span><div class="house"><span class="h">${this.t("House")} ${t.profectedHouse}</span> <span class="sign">${e?s`<span class="sg">${e}</span>`:i}${t.profectedSign}</span></div></div><div class="lord" part="details"><span class="label">${this.t("Lord of the year")}</span> <span class="value">${r?s`${r}`:i}${t.lordOfYear}</span> ${t.lordNatalPosition?s`<span class="sub">${this.t("Natal")} ${a?s`<span>${a}</span>`:i}${this.t("{{sign}} · house {{house}}",{sign:t.lordNatalPosition.sign,house:t.lordNatalPosition.house})}</span>`:i}</div>${t.interpretation&&!this.hideReadings?s`<p class="interp">${t.interpretation}</p>`:i}</div>`}};It.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}header{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 8px}.badge b{color:var(--roxy-accent-ink,#b45309);font-weight:600}.focus{align-items:center;gap:var(--roxy-space-md,1rem);padding:var(--roxy-space-md,1rem);border-radius:var(--roxy-radius-md,8px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 9%, transparent);flex-wrap:wrap;display:flex}.age{justify-items:center;min-width:4.5rem;display:grid}.age .n{color:var(--roxy-accent-ink,#b45309);font-variant-numeric:tabular-nums;font-size:2rem;font-weight:700;line-height:1}.age .l{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.arrow{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.house{gap:2px;display:grid}.house .h{font-size:var(--roxy-text-lg,1.125rem);color:var(--roxy-fg,#0a0a0a);font-weight:600}.house .sign{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-secondary,#475569)}.house .sign .sg{margin-right:.3rem}.lord{font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;align-items:baseline;gap:.4rem .75rem;display:flex}.lord .label{color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-size:var(--roxy-text-xs,.75rem)}.lord .value{color:var(--roxy-fg,#0a0a0a);font-weight:600}.lord .sub{color:var(--roxy-muted,#71717a)}.interp{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);line-height:var(--roxy-leading-normal,1.5);margin:0}`],It=g([b("roxy-profection-card")],It);var To=["name","english","title"],md=new Set(["description","meaning","characteristics","tagline","definedMeaning","undefinedMeaning","motto"]),hd=new Set(["id","symbol",...To]),Ao=48;function gd(o){return _(o).toLowerCase().replace(/\s+/g,"-")}function ud(o){return Object.values(sr(o)).filter(t=>typeof t=="string"||typeof t=="number").map(String).join(" · ")}var jt=class extends y{renderData(t){let e=sr(t),r=this.deriveTitle(e),a=typeof e.symbol=="string"?e.symbol:void 0,n=Array.isArray(e.keywords)?e.keywords.map(String):[],l=[],d=[],c=[],p=(m,f,C)=>{if(f!=null){if(Array.isArray(f)){let w=f.filter(k=>k!=null).map(k=>typeof k=="object"?ud(k):String(k)).filter(k=>k.length>0);w.length>0&&d.push([m,w,w.some(k=>k.length>Ao)])}else if(typeof f=="string")md.has(m)||f.length>Ao?l.push([m,f]):c.push([m,f]);else if(typeof f=="number"||typeof f=="boolean")c.push([m,String(f)]);else if(typeof f=="object"&&C<2)for(let[w,k]of Object.entries(sr(f)))p(`${m} ${w}`,k,C+1)}};for(let[m,f]of Object.entries(e))hd.has(m)||m==="keywords"&&Array.isArray(f)||p(m,f,0);let h=!this.hideReadings;return s`<article class="card" part="card" aria-label="${r}"><header class="head" part="header">${a?s`<span class="symbol" aria-hidden="true">${a}</span>`:i}<div><p class="label">${this.t("Reference")}</p><h2 class="name">${r}</h2></div></header>${n.length>0&&h?s`<div class="chips">${n.map(m=>s`<span>${m}</span>`)}</div>`:i} ${h?l.map(([m,f])=>s`<p class="prose"><span class="prose-label">${fe(this.effectiveLang(),m)}</span>${f}</p>`):i} ${c.length>0?s`<div class="facts-wrap" part="details"><dl class="facts">${c.map(([m,f])=>s`<div class="fact"><dt>${fe(this.effectiveLang(),m)}</dt><dd>${f}</dd></div>`)}</dl></div>`:i} ${d.map(([m,f,C])=>C&&!h?i:s`<div class="list" part="section ${gd(m)}"><h3>${fe(this.effectiveLang(),m)}</h3><div class="chips">${f.map(w=>s`<span>${w}</span>`)}</div></div>`)}</article>`}deriveTitle(t){for(let a of To)if(typeof t[a]=="string")return t[a];let e=typeof t.type=="string"?_(t.type):"",r=t.number;return r!=null?`${e} ${r}`.trim():this.t("Reference")}};jt.styles=[x,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.symbol{color:var(--roxy-accent-ink,#b45309);flex:none;font-size:2.5rem;line-height:1}.label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.name{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.prose{margin:0;line-height:1.6}.prose .prose-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em;margin-bottom:2px;display:block}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.list h3,.facts-wrap h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.facts{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));margin:0;display:grid}.fact dt{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:capitalize}.fact dd{font-size:var(--roxy-text-sm,.875rem);margin:0}`],jt=g([b("roxy-reference-card")],jt);var Do=o=>R(o)??"",Ht=class extends y{renderData(t){let e=t.changes;return s`<div class="stack" part="stack"><roxy-natal-chart heading="Relocation chart" lang="${oe(this.effectiveLang())}" exportparts="card, header, tablist, tab, panel, chart, table, aspects, aspect-grid, element-modality, legend, details, section, patterns, pattern, readings, reading" ?hide-readings="${this.hideReadings}" .data="${t}"></roxy-natal-chart><section class="changes" part="card changes"><h3 class="title">${this.t("What changes at this location")}</h3><div class="move" part="details">${typeof e?.distanceKm=="number"?s`<span>${Math.round(e.distanceKm)===0?"Same location as birth":`${$n(this.effectiveLang(),e.distanceKm)} km ${e.direction??""} of birthplace`}</span>`:i} ${e?s`<span>${t.ascendant?.sign?e.ascendantSignChanged?this.t("Ascendant moves to {{sign}}",{sign:t.ascendant.sign}):this.t("Ascendant stays in {{sign}}",{sign:t.ascendant.sign}):e.ascendantSignChanged?this.t("Ascendant changes sign"):this.t("Ascendant keeps its sign")}</span>`:i}</div>${t.interpretation?.summary&&!this.hideReadings?s`<p class="summary">${t.interpretation.summary}</p>`:i} ${e?.angularPlanets?.length?s`<div part="section angular-planets"><p class="block-label">${this.t("Angular planets here")}</p><div class="chips">${e.angularPlanets.map(r=>s`<span class="chip">${Do(r)} ${r}</span>`)}</div></div>`:i}<div part="section house-changes"><p class="block-label">${this.t("Planets that change house")}</p>${e?.planetsChangedHouse?.length?s`<ul class="moves-list">${e.planetsChangedHouse.map(r=>s`<li>${Do(r.planet)} ${this.t("{{planet}}: house {{from}} to {{to}}",{planet:r.planet,from:r.natalHouse,to:r.relocatedHouse})}</li>`)}</ul>`:s`<p class="empty-note">${this.t("No planet changes house at this location.")}</p>`}</div></section></div>`}};Ht.styles=[x,u`.stack{gap:var(--roxy-space-md,1rem);display:grid}.changes{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.move{gap:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);flex-wrap:wrap;display:flex}.summary{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0}.block-label{font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;color:var(--roxy-muted,#71717a);margin:0 0 var(--roxy-space-xs,.25rem);font-weight:600}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 10px}.moves-list{gap:2px;margin:0;padding:0;list-style:none;display:grid}.moves-list li{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.moves-list .arrow{color:var(--roxy-muted,#71717a)}.empty-note{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);margin:0}`],Ht=g([b("roxy-relocation-wheel")],Ht);var Cs=[{key:"sthanaBala",source:"Sthana",color:"var(--roxy-info, #0284c7)"},{key:"digBala",source:"Dig",color:"var(--roxy-success, #16a34a)"},{key:"kalaBala",source:"Kala",color:"var(--roxy-warning, #ea580c)"},{key:"chestaBala",source:"Chesta",color:"var(--roxy-accent, #f59e0b)"},{key:"naisargikaBala",source:"Naisargika",color:"var(--roxy-secondary, #475569)"},{key:"drikBala",source:"Drik",color:"var(--roxy-danger, #dc2626)"}],Ft=class extends y{renderData(t){if(!t.planets?.length)return this.renderEmpty();let e=[...t.planets].sort((r,a)=>r.relativeRank-a.relativeRank);return s`<div class="wrap" part="card" aria-label="${this.t("Shadbala planetary strength")}"><div class="head" part="header"><h2 class="title">${this.t("Shadbala")}</h2><p class="subtitle">${this.t("{{count}} planets ranked by strength",{count:e.length})}</p>${F(this.effectiveLang(),t.frame,this.translator)}</div><div role="list" part="chart bars" aria-label="${this.t("Planet strength bars")}">${e.map(r=>this.renderPlanetRow(r))}</div><div class="legend" part="legend" aria-label="${this.t("Strength component legend")}">${Cs.map(r=>s`<div class="legend-row"><span class="legend-swatch" style="background:${r.color}" aria-hidden="true"></span> ${this.t("{{component}} Bala",{component:this.t(r.source)})}</div>`)}</div><p class="footnote" part="legend">${this.t("Ishta Phala is the capacity to give benefic results, Kashta Phala the capacity to give malefic ones. Both are in virupas and are read together, since a planet can be strong and still deliver hardship.")}</p></div>`}renderPlanetRow(t){let e=R(t.planet)??"",r=Cs.map(p=>Math.max(0,t[p.key])),a=r.reduce((p,h)=>p+h,0),n=typeof t.strengthRatio=="number"&&t.strengthRatio>=1,l=n?"adequacy-badge--adequate":"adequacy-badge--weak",d=n?"adequate":"weak",c=v(this.effectiveLang(),t.totalRupas,2)&&v(this.effectiveLang(),t.minRequired,2)?`${v(this.effectiveLang(),t.totalRupas,2)} / ${v(this.effectiveLang(),t.minRequired,2)} R`:"";return s`<div class="planet-row" role="listitem" aria-label="${this.t("{{planet}} Shadbala",{planet:t.planet})}"><div class="planet-label"><span class="glyph" aria-hidden="true">${e}</span> ${t.planet} <span class="rank-badge" aria-label="${this.t("rank {{n}}",{n:t.relativeRank})}">#${t.relativeRank}</span></div><div class="bar-wrap"><div class="bar" role="img" aria-label="${this.t("Strength components for {{planet}}",{planet:t.planet})}">${a>0?Cs.map((p,h)=>{let m=r[h];if(m<=0)return i;let f=m/a*100;return s`<div class="bar-segment" style="flex-grow:${f};background:${p.color}" title="${this.t("{{component}} {{value}} virupas",{component:this.t(p.source),value:v(this.effectiveLang(),m,1)})}"></div>`}):i}</div>${this.renderPhala(t)}</div><div class="pills">${c?s`<span class="rupas-label">${c}</span>`:i} <span class="${`adequacy-badge ${l}`}">${d}</span></div></div>`}renderPhala(t){let e=typeof t.ishtaPhala=="number"?t.ishtaPhala:0,r=typeof t.kashtaPhala=="number"?t.kashtaPhala:0;if(e+r<=0)return i;let a=v(this.effectiveLang(),e,1)||"0",n=v(this.effectiveLang(),r,1)||"0";return s`<div class="phala" role="img" aria-label="${this.t("Ishta Phala {{ishta}}, Kashta Phala {{kashta}} virupas",{ishta:a,kashta:n})}"><span class="phala-ishta" style="flex-grow:${e}"></span> <span class="phala-kashta" style="flex-grow:${r}"></span></div><div class="phala-label"><span>${this.t("Ishta {{value}}",{value:a})}</span> <span>${this.t("Kashta {{value}}",{value:n})}</span></div>`}};Ft.styles=[x,I,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.planet-row{align-items:center;gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-sm,.5rem) 0;border-bottom:1px solid var(--roxy-border,#e4e4e7);grid-template-columns:8rem 1fr auto;display:grid}.planet-row:last-of-type{border-bottom:none}.planet-label{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);align-items:center;gap:6px;display:flex}.glyph{font-size:1.2em;line-height:1}.bar-wrap{flex-direction:column;gap:4px;display:flex}.bar{border-radius:var(--roxy-radius-sm,4px);background:var(--roxy-border,#e4e4e7);height:12px;display:flex;overflow:hidden}.bar-segment{height:100%;transition:flex-grow var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1))}.pills{flex-direction:column;align-items:flex-end;gap:4px;display:flex}.rupas-label{font-variant-numeric:tabular-nums;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);white-space:nowrap}.phala{border-radius:var(--roxy-radius-full,9999px);background:var(--roxy-border,#e4e4e7);height:6px;display:flex;overflow:hidden}.phala-ishta{background:var(--roxy-success,#16a34a)}.phala-kashta{background:var(--roxy-danger,#dc2626)}.phala-label{justify-content:space-between;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums;display:flex}.footnote{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0}.adequacy-badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:1px 6px;display:inline-block}.adequacy-badge--adequate{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.adequacy-badge--weak{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.rank-badge{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.legend{gap:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.legend-row{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);align-items:center;gap:6px;display:flex}.legend-swatch{border-radius:var(--roxy-radius-sm,4px);flex-shrink:0;width:10px;height:10px;display:inline-block}@container (width<=480px){.planet-row{grid-template-rows:auto auto;grid-template-columns:6rem 1fr}.pills{flex-direction:row;grid-column:1/-1;justify-content:flex-start;align-items:center}}`],Ft=g([b("roxy-shadbala-table")],Ft);var yd=12,Ds=360,U=Ds/2,As=170,fd=154,Ts=124,lr=96,Kt=class extends y{renderData(t){let{person1:e,person2:r,compatibilityScore:a,analysis:n}=t,l=t.interAspects??[],d=e?.planets??[],c=r?.planets??[],p=typeof a=="number"?Math.round(a):void 0,h=n?.overall,m=n?.strengths??[],f=n?.challenges??[],C=d.length>0&&c.length>0,w=[...l].sort((B,V)=>(V.strength??0)-(B.strength??0)),k=w.slice(0,yd);return s`<div class="wrap" part="card" aria-label="${this.t("Synastry compatibility chart")}"><div class="head" part="header"><h2 class="title">${this.t("Synastry")}</h2>${typeof p=="number"?s`<span class="score" aria-label="${this.t("Score {{score}} of 100",{score:p})}">${p} / 100</span>`:i}</div>${this.renderPeople(e,r)} ${C?s`<svg viewBox="0 0 ${Ds} ${Ds}" part="chart" role="img" aria-label="${this.t("Dual chart wheel comparing two natal charts")}"><title>${this.t("Synastry dual wheel")}</title><circle class="wheel-line" cx="${U}" cy="${U}" r="${As}" stroke-width="1.5"/><circle class="wheel-line" cx="${U}" cy="${U}" r="${lr+14}" stroke-width="0.8"/><circle class="wheel-line" cx="${U}" cy="${U}" r="${lr-14}" stroke-width="0.6"/>${this.renderSpokes()} ${this.renderSigns()} ${this.renderInterAspectLines(d,c,l)} ${this.renderRing(d,Ts,"p1",1)} ${this.renderRing(c,lr,"p2",2)} ${this.renderAscendants(t)}</svg><div class="legend-row" part="legend"><span><span class="swatch" style="background:var(--roxy-accent)"></span>${this.t("Person 1")}</span> <span><span class="swatch" style="background:var(--roxy-info)"></span>${this.t("Person 2")}</span> <span><span class="swatch" style="background:var(--roxy-success)"></span>${this.t("Harmonious")}</span> <span><span class="swatch" style="background:var(--roxy-danger)"></span>${this.t("Challenging")}</span> <span class="caveat">${this.t("Sign sectors, not houses")}</span></div>`:s`<div class="missing-planets" role="status">${this.t("Synastry response missing planet positions.")} ${this.t("A current {{endpoint}} response carries {{first}} and {{second}}, and the inter-aspect readings below still work without them.",{endpoint:"/astrology/synastry",first:"person1.planets",second:"person2.planets"})}</div>`} ${this.renderSummaryPills(t.summary)} ${h&&!this.hideReadings?s`<p class="summary">${h}</p>`:i} ${k.length>0?s`<section class="block" part="section inter-aspects"><h3>${this.t("Inter-aspects")}</h3>${k.map((B,V)=>this.renderAspectCard(B,V))}</section>`:i} ${w.length>k.length?this.renderCatalog(w):i} ${!this.hideReadings&&(m.length>0||f.length>0)?s`<div class="lists" part="section strengths-challenges">${m.length?s`<div><h3>${this.t("Strengths")}</h3><ul>${m.map(B=>s`<li>${B}</li>`)}</ul></div>`:i} ${f.length?s`<div><h3>${this.t("Challenges")}</h3><ul>${f.map(B=>s`<li>${B}</li>`)}</ul></div>`:i}</div>`:i}</div>`}renderPeople(t,e){let r=(n,l)=>{if(!n)return i;let d=n.ascendant,p=[["Sun",n.sunSign??"",$(n,"sunSign")],["Moon",n.moonSign??"",$(n,"moonSign")],["ASC",d?.sign??"",d?`${$(d,"sign")} ${v(this.effectiveLang(),d.degree,0)}°`:""]].filter(([,,h])=>h);return p.length===0?i:s`<div class="person"><span class="person-name"><span class="person-dot p${l}" aria-hidden="true"></span> ${n.name||this.t("Person {{n}}",{n:l})}</span><div class="big-three">${p.map(([h,m,f])=>s`<span><span class="lbl">${this.t(h)}</span> <span aria-hidden="true">${z(m)??""}</span> ${f}</span>`)}</div></div>`},a=[r(t,1),r(e,2)].filter(n=>n!==i);return a.length===0?i:s`<div class="people">${a}</div>`}renderSummaryPills(t){if(!t||typeof t!="object")return i;let e=Object.entries(t.byType??{}).sort((r,a)=>a[1]-r[1]);return typeof t.total!="number"&&e.length===0?i:s`<div class="summary-pills" part="details" role="region" aria-label="${this.t("Inter-aspect summary")}">${typeof t.total=="number"?s`<span class="pill">${this.t("Total")}: ${t.total}</span>`:i} <span class="pill pill--success">${this.t("Harmonious")}: ${t.harmonious}</span> <span class="pill pill--danger">${this.t("Challenging")}: ${t.challenging}</span> <span class="pill">${this.t("Neutral")}: ${t.neutral}</span> ${e.map(([r,a])=>s`<span class="pill">${W({type:r})}: ${a}</span>`)}</div>`}renderAspectCard(t,e){let r=R(t.planet1)??"",a=R(t.planet2)??"",n=(t.interpretation??"neutral").toLowerCase(),l=t.meaning,d=s`<span class="interp-lead"><span aria-hidden="true" class="glyph">${r}</span>${$(t,"planet1")} <span class="asp-name ${n}">${$(t,"type",W(t))}</span> <span aria-hidden="true" class="glyph">${a}</span>${$(t,"planet2")}</span>`,c=s`<span class="interp-aside"><small>${this.t("orb {{orb}}° · str {{strength}}",{orb:v(this.effectiveLang(),t.orb,2),strength:v(this.effectiveLang(),t.strength,0)})}</small></span>`;return this.hideReadings||!l?.relationshipContext&&!l?.description?.short?s`<div class="interp-card" part="reading"><div class="static-head">${d}${c}</div></div>`:s`<details class="interp-card" part="reading" name="synastry-aspects" ?open="${e===0}"><summary>${d}${j()}${c}</summary><div class="interp-body">${l.relationshipContext?s`<p><span class="context">${this.t("In this pairing")}</span> ${l.relationshipContext}</p>`:i} ${l.description?.short?s`<p>${l.description.short}</p>`:i} ${st(l.keywords)}</div></details>`}renderCatalog(t){return s`<details class="catalog"><summary>${j()} ${this.t("All {{count}} inter-aspects",{count:t.length})}</summary><div class="scroll" part="table">${this.renderAspects(t)}</div></details>`}toAngle(t){return 180-t}renderSpokes(){return Array.from({length:12},(t,e)=>{let r=this.toAngle(e*30),a=D(U,U,lr-14,r),n=D(U,U,As,r);return L`<line class="wheel-line" x1=${a.x} y1=${a.y} x2=${n.x} y2=${n.y} stroke-width="0.6" />`})}renderSigns(){return Z.map((t,e)=>{let r=this.toAngle(e*30+15),a=D(U,U,fd,r);return L`<text class="sign" x=${a.x} y=${a.y} text-anchor="middle" dominant-baseline="central">${z(t)}</text>`})}renderRing(t,e,r,a){return t.map(n=>{if(!Number.isFinite(n.longitude))return i;let l=this.toAngle(n.longitude),d=D(U,U,e,l),p=D(U,U,e+(a===1?-12:-10),l),h=R(n.name)??$(n,"name"),m=re(n.longitude),f=n.isRetrograde===!0,C=`${m.degree}°${String(m.minute).padStart(2,"0")}'`,w=typeof n.house=="number"?` · ${this.t("House {{n}}",{n:n.house})}`:"",k=`${$(n,"name")}${f?` ${this.t("retrograde")}`:""} - ${C} ${$(n,"sign")}${w}`;return L`<g>
|
|
116
|
+
</g>`})}renderDetails(){let e=this.data?.summary,r=this.data?.aspectsInterpretation;if(!e&&!r)return i;let a=Kn(e,"retrogradePlanets");return s`<div class="details" part="details">${e?.dominantElement||e?.dominantModality?s`<div class="pill-row">${e.dominantElement?s`<span class="pill">${this.t("Dominant element")}: ${$(e,"dominantElement")}</span>`:i} ${e.dominantModality?s`<span class="pill">${this.t("Dominant modality")}: ${$(e,"dominantModality")}</span>`:i}</div>`:i} ${r?s`<div class="pill-row"><span class="pill pill--success">${this.t("Harmonious")} ${r.harmonious}</span> <span class="pill pill--danger">${this.t("Challenging")} ${r.challenging}</span> <span class="pill pill--muted">${this.t("Neutral")} ${r.neutral}</span></div>`:i} ${a.length>0?s`<div class="pill-row">${a.map(({value:n,label:l})=>{let d=R(n)??"";return s`<span class="pill pill--muted">${d} ${l} R</span>`})}</div>`:i} ${r?.summary&&!this.hideReadings?s`<p class="summary">${r.summary}</p>`:i} ${this.renderElementModalityGrid()}</div>`}renderElementModalityGrid(){let e=this.getPlanets();if(e.length===0)return i;let r=["Fire","Earth","Air","Water"],a=["Cardinal","Fixed","Mutable"],n={Fire:this.t("Fire"),Earth:this.t("Earth"),Air:this.t("Air"),Water:this.t("Water")},l={Cardinal:{abbr:this.t("Car"),full:this.t("Cardinal")},Fixed:{abbr:this.t("Fix"),full:this.t("Fixed")},Mutable:{abbr:this.t("Mut"),full:this.t("Mutable")}},d=Z,c=this.data?.summary,p=N(c?.dominantElement??""),h=N(c?.dominantModality??""),m={};for(let w of r)m[w]={Cardinal:[],Fixed:[],Mutable:[]};let f=0;for(let w of e){let k=d.indexOf(N(w.sign??""));if(k<0)continue;let B=r[k%4],V=a[k%3],de=R(w.name)??$(w,"name");m[B]?.[V]?.push(de),f++}if(f===0)return i;let C=w=>r.reduce((k,B)=>k+(m[B]?.[w]?.length??0),0);return s`<div class="grid-scroll"><table class="em-grid" part="table element-modality" aria-label="${this.t("Element and modality distribution")}"><caption>${this.t("All {{count}} bodies in the chart, placed by sign",{count:f})}</caption><thead><tr><th></th>${a.map(w=>s`<th scope="col" title="${l[w]?.full??w}" class="${w===h?"dominant":""}">${l[w]?.abbr??w}</th>`)}<th scope="col">${this.t("Total")}</th></tr></thead><tbody>${r.map(w=>{let k=w===p,B=a.reduce((V,de)=>V+(m[w]?.[de]?.length??0),0);return s`<tr><th scope="row" class="${k?"dominant":""}">${n[w]??w}</th>${a.map(V=>s`<td class="${k||V===h?"dominant":""}">${(m[w]?.[V]??[]).join(" ")}</td>`)}<td class="${k?"em-total dominant":"em-total"}">${B}</td></tr>`})}<tr><th scope="row">${this.t("Total")}</th>${a.map(w=>s`<td class="${w===h?"em-total dominant":"em-total"}">${C(w)}</td>`)}<td class="em-total">${f}</td></tr></tbody></table></div>`}renderPatterns(){let e=this.data?.patterns??[];if(e.length===0)return i;let r=[...e].sort((a,n)=>(Co[a.kind]??9)-(Co[n.kind]??9)||(n.tightness??0)-(a.tightness??0));return s`<section class="block" part="section patterns"><h3>${this.t("Chart patterns")}</h3>${r.map(a=>this.renderPattern(a))}</section>`}renderPattern(e){let r=e.planets??[],a=e.apex?[...r].sort((n,l)=>+(l===e.apex)-+(n===e.apex)):r;return s`<div class="pattern" part="pattern"><div class="pattern-head"><span class="pattern-name">${e.name}</span> ${e.element?s`<span class="pattern-tag">${e.element}</span>`:i} ${e.modality?s`<span class="pattern-tag">${e.modality}</span>`:i} ${e.dissociate?s`<span class="pattern-tag" title="${this.t("Out of sign: one or more planets sit outside the pattern element or modality, so the theme holds but runs weaker.")}">${this.t("Dissociate")}</span>`:i} ${typeof e.tightness=="number"?s`<span class="pattern-tight">${this.t("{{percent}} tight",{percent:ae(this.effectiveLang(),e.tightness,0)})}</span>`:i}</div><div class="pattern-planets">${a.map(n=>{let l=R(n),d=!!e.apex&&n===e.apex;return s`<span class="${d?"planet-chip apex":"planet-chip"}">${l?s`<span aria-hidden="true">${l}</span>`:i}${n}${d?s`<span class="apex-tag">${this.t("apex")}</span>`:i}</span>`})}</div>${e.interpretation&&!this.hideReadings?s`<p class="pattern-interp">${e.interpretation}</p>`:i}</div>`}renderInterpretations(){let e=this.getPlanets().filter(r=>r.interpretation).map(r=>{let a=r.interpretation,n=R(r.name)??"",l=v(this.effectiveLang(),r.degree??0,1),d=$(r,"name"),c=a.summary||a.detailed||"",p=a.summary?a.detailed:void 0;return{label:`${n} ${d}`.trim(),aside:[$(r,"sign"),l].filter(Boolean).join(" "),body:c,extra:s`${p?s`<p>${p}</p>`:i} ${st(a.keywords)}`}});return this.renderInterpretation(e,"natal-planet-readings","Planet readings")}renderAspects(e,r){let a=new Map;for(let n of e){if(typeof n.longitude!="number")continue;let l=me(n.name);l&&a.set(l,n.longitude)}return r.map(n=>{let l=a.get(me(n.planet1)),d=a.get(me(n.planet2));if(l===void 0||d===void 0)return i;let c=D(E,E,Ve-18,this.toAngle(l)),p=D(E,E,Ve-18,this.toAngle(d)),h=ce(n),m=Le[h]??"aspect-other",f=v(this.effectiveLang(),n.orb,1);return L`<line class=${`aspect ${m}`} style=${or(n)} x1=${c.x} y1=${c.y} x2=${p.x} y2=${p.y}><title>${$(n,"planet1")} ${$(n,"type",h)} ${$(n,"planet2")}${f?` (${this.t("Orb")} ${f}°)`:""}</title></line>`})}};Ce.styles=[x,nr,ee,M,_,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}svg{width:100%;max-width:var(--roxy-chart-max-width,560px);aspect-ratio:1;height:auto;margin:0 auto;display:block}.wheel-line{fill:none;stroke:var(--roxy-border,#e4e4e7)}.sign-glyph{fill:var(--roxy-secondary,#475569);font-size:14px;font-family:var(--roxy-font-sans)}.planet-glyph{fill:var(--roxy-accent,#f59e0b);font-size:14px;font-weight:600;font-family:var(--roxy-font-sans)}.planet-deg{fill:var(--roxy-fg,#0a0a0a);font-size:7px;font-family:var(--roxy-font-sans)}@container (width<=480px){.sign-glyph,.planet-glyph{font-size:18px}.planet-deg{font-size:10px}.house-num{font-size:12px}}.planet-deg .retro{fill:var(--roxy-danger,#dc2626)}.planet-leader{stroke:var(--roxy-accent,#f59e0b);stroke-width:.5px;opacity:.55}.house-num{fill:var(--roxy-muted,#71717a);font-size:9px;font-family:var(--roxy-font-sans)}.cusp-deg{fill:var(--roxy-muted,#71717a);font-size:6px;font-family:var(--roxy-font-sans)}.tick{stroke:var(--roxy-border,#e4e4e7)}.tick-major{stroke:var(--roxy-secondary,#475569)}.angle-marker{fill:var(--roxy-accent-ink,#b45309);font-size:10px;font-weight:700;font-family:var(--roxy-font-sans);letter-spacing:.04em}.angle-tick{stroke:var(--roxy-accent-ink,#b45309);stroke-width:1.5px}.legend{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.legend-swatch{vertical-align:middle;border-radius:50%;width:8px;height:8px;margin-right:4px;display:inline-block}.legend .caveat{color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);padding:1px 8px}.grid-scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table.aspect-grid{border-collapse:collapse;font-size:var(--roxy-text-xs,.75rem);margin:0 auto}table.aspect-grid th,table.aspect-grid td{text-align:center;border:1px solid var(--roxy-border,#e4e4e7);width:1.6rem;height:1.6rem;padding:0}table.aspect-grid th{color:var(--roxy-secondary,#475569);font-weight:var(--roxy-weight-bold,600)}table.aspect-grid td.cell{cursor:default}table.aspect-grid td.empty{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 18%, transparent)}table.aspect-grid td .asp{font-size:.95em;line-height:1}table.aspect-grid td.aspect-trine .asp,table.aspect-grid td.aspect-sextile .asp{color:var(--roxy-success,#16a34a)}table.aspect-grid td.aspect-square .asp,table.aspect-grid td.aspect-opposition .asp{color:var(--roxy-danger,#dc2626)}table.aspect-grid td.aspect-conjunction .asp{color:var(--roxy-accent-ink,#b45309)}table.aspect-grid td.aspect-other .asp{color:var(--roxy-muted,#71717a)}.details{margin-top:var(--roxy-space-md,1rem)}.pill-row{gap:var(--roxy-space-xs,.25rem);margin-bottom:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.pill{border-radius:var(--roxy-radius-sm,4px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-fg,#0f172a) 8%, transparent);color:var(--roxy-fg,#0f172a);padding:2px 8px}.pill--success{background:color-mix(in srgb, var(--roxy-success,#16a34a) 15%, transparent);color:var(--roxy-success-fg,#166534)}.pill--danger{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 15%, transparent);color:var(--roxy-danger-fg,#991b1b)}.pill--muted{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a)}.summary{color:var(--roxy-fg,#0f172a);font-size:var(--roxy-text-sm,.875rem);margin:var(--roxy-space-md,1rem) 0}.em-grid{border-collapse:collapse;font-size:var(--roxy-text-xs,.75rem);width:100%}.em-grid caption{caption-side:top;text-align:left;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);padding-bottom:var(--roxy-space-xs,.25rem)}.em-grid th,.em-grid td{border:1px solid var(--roxy-border,#e4e4e7);text-align:center;vertical-align:middle;padding:3px 5px}.em-grid th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.04em}.em-grid th[scope=row]{text-align:left}.em-grid td{color:var(--roxy-accent,#f59e0b);min-width:1.4rem;font-size:.95em;line-height:1.4}.em-grid .em-total{color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 25%, transparent)}.em-grid .dominant{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 10%, transparent)}.em-grid th.dominant,.em-grid td.em-total.dominant{color:var(--roxy-fg,#0a0a0a)}.pattern{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem);gap:.35rem;display:grid}.pattern-head{flex-wrap:wrap;align-items:baseline;gap:.5rem;display:flex}.pattern-name{font-weight:var(--roxy-weight-bold,600)}.pattern-tag{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);color:var(--roxy-fg,#0a0a0a);text-transform:capitalize;padding:1px 8px}.pattern-tight{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.pattern-planets{flex-wrap:wrap;gap:.25rem;display:flex}.planet-chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a);align-items:baseline;gap:.3rem;padding:1px 8px;display:inline-flex}.planet-chip.apex{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 20%, transparent);font-weight:var(--roxy-weight-bold,600)}.planet-chip .apex-tag{text-transform:uppercase;letter-spacing:.04em;font-size:.85em;font-weight:400}.pattern-interp{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.45}`],g([S({type:String})],Ce.prototype,"heading",2),g([G()],Ce.prototype,"view",2),Ce=g([b("roxy-natal-chart")],Ce);var hd=new Set([11,22,33]),gd=[["career","Career"],["relationships","Relationships"],["spirituality","Spirituality"]],qe=class extends y{constructor(){super(...arguments);this.type="life-path"}renderData(e){let r=this.t(ud[this.type]??this.type);return"coreNumbers"in e?this.renderChart(e,r):"personalDay"in e?this.renderPersonalDay(e,r):"personalMonth"in e?this.renderPersonalMonth(e,r):"personalYear"in e?this.renderPersonalYear(e,r):"dailyMessage"in e?this.renderDailyNumber(e,r):this.renderNumberCard(e,r)}renderNumberCard(e,r){let a=!this.hideReadings;return s`<article class="card" part="card" aria-label="${r}">${this.renderHero(r,e.number,e.meaning?.title,$a(e.number,e.type))} ${e.meaning?.description&&a?s`<p class="meaning">${e.meaning.description}</p>`:i} ${e.calculation?s`<pre class="calc" part="calculation">${e.calculation}</pre>`:i} ${e.hasKarmicDebt&&e.karmicDebtNumber?s`<div class="karmic" part="section karmic-debt">${this.t("Karmic debt")} ${e.karmicDebtNumber}. ${a?yd(e.karmicDebtMeaning):""}</div>`:i} ${this.renderReading(e.meaning,"numerology-guidance")}</article>`}renderDailyNumber(e,r){let a=!this.hideReadings;return s`<article class="card" part="card" aria-label="${r}">${this.renderHero(r,e.number,e.meaning?.title,$a(e.number,e.type))} ${e.dailyMessage&&a?s`<p class="meaning">${e.dailyMessage}</p>`:i} ${e.meaning?.description&&a?s`<p class="meaning">${e.meaning.description}</p>`:i} ${this.renderReading(e.meaning,"numerology-daily-guidance")}</article>`}renderPersonalDay(e,r){return s`<article class="card" part="card" aria-label="${r}">${this.renderHero(r,e.personalDay,e.theme)} ${e.guidance&&!this.hideReadings?s`<p class="meaning">${e.guidance}</p>`:i}<dl class="attrs" part="details">${this.attr(this.t("Date"),A(this.effectiveLang(),e.targetDate))} ${this.attr(this.t("Personal month"),ks(e.personalMonth,e.personalMonthTheme))} ${this.attr(this.t("Personal year"),ks(e.personalYear,e.personalYearTheme))}</dl></article>`}renderPersonalMonth(e,r){return s`<article class="card" part="card" aria-label="${r}">${this.renderHero(r,e.personalMonth,e.theme)} ${e.focus&&!this.hideReadings?s`<p class="meaning">${e.focus}</p>`:i}<dl class="attrs" part="details">${this.attr(this.t("Calendar month"),e.calendarMonth)} ${this.attr(this.t("Personal year"),ks(e.personalYear,e.personalYearTheme))}</dl></article>`}renderPersonalYear(e,r){let a=!this.hideReadings;return s`<article class="card" part="card" aria-label="${r}">${this.renderHero(r,e.personalYear,e.theme)} ${e.cycle?s`<p class="label">${e.cycle}</p>`:i} ${e.forecast&&a?s`<p class="meaning">${e.forecast}</p>`:i} ${a?this.renderLists(["Opportunities",e.opportunities],["Challenges",e.challenges]):i} ${e.advice&&a?s`<p class="meaning">${e.advice}</p>`:i}</article>`}renderChart(e,r){let a=Object.entries(e.coreNumbers??{}).filter(([,h])=>h),n=e.additionalInsights,l=e.luckyAssociations,d=e.birthDayProfile,c=e.maturityStatus,p=!this.hideReadings;return s`<article class="card" part="card" aria-label="${r}"><div part="header"><p class="label">${r}</p>${e.profile?.name?s`<h2 class="title">${e.profile.name}</h2>`:i} ${e.profile?.birthdate?s`<p class="label">${A(this.effectiveLang(),e.profile.birthdate)}</p>`:i}</div>${e.summary&&p?s`<p class="meaning">${e.summary}</p>`:i} ${a.length>0?s`<div class="cores" part="details cores">${a.map(([h,m])=>s`<div class="item"><div class="core-head"><span class="core-key">${O(h)}</span> <strong>${m.number??""}</strong></div>${m.meaning?.title?s`<span class="core-title">${m.meaning.title}</span>`:i} ${$a(m.number,m.type)?s`<span class="master">${this.t("Master")} ${m.number}</span>`:i}</div>`)}</div>`:i} ${this.renderInterpretation(a.map(([h,m])=>({label:O(h),aside:[m.number!=null?`${m.number}`:"",$a(m.number,m.type)?"master":"",m.hasKarmicDebt&&m.karmicDebtNumber?`karmic debt ${m.karmicDebtNumber}`:""].filter(Boolean).join(" · "),body:m.meaning?.description??"",extra:this.renderReading(m.meaning,`numerology-core-${h}`)})),"numerology-cores","Core numbers")} ${c?s`<dl class="attrs" part="details maturity">${this.attr(this.t("Maturity"),c.isActive?this.t("Active"):this.t("Not yet active"))} ${this.attr(this.t("Current age"),c.currentAge)} ${this.attr(this.t("Activates"),c.activationRange)}</dl>`:i} ${d?s`<section class="sub" part="section birth-day-profile"><h3>${this.t("Birth day profile")}</h3>${d.title?s`<h4 class="sub-title">${[d.day?`Day ${d.day}`:"",d.title].filter(Boolean).join(" · ")}</h4>`:i} ${d.description&&p?s`<p>${d.description}</p>`:i} ${this.renderReading(d,"numerology-birth-day-profile")}</section>`:i} ${n?this.renderInsights(n):i} ${l?s`<section class="sub" part="section lucky-associations"><h3>${this.t("Lucky associations")}</h3><dl class="attrs">${this.attr(this.t("Day"),l.day)} ${this.attr(this.t("Element"),l.element)} ${this.attr(this.t("Ruling planet"),l.rulingPlanet)} ${this.attr(this.t("Colors"),l.colors?.join(", "))} ${this.attr(this.t("Gemstones"),l.gemstones?.join(", "))} ${this.attr(this.t("Compatible"),l.compatibleNumbers?.join(", "))} ${this.attr(this.t("Incompatible"),l.incompatibleNumbers?.join(", "))}</dl></section>`:i}</article>`}renderInsights(e){let r=e.karmicLessons,a=e.karmicDebt,n=e.personalYear,l=e.hiddenPassion,d=e.subconsciousSelf,c=e.nameLetters,p=Object.entries(r?.presentNumbers??{}),h=!this.hideReadings;return s`${r?s`<section class="sub" part="section karmic-lessons"><h3>${this.t("Karmic lessons")}</h3>${r.missingNumbers?.length?s`<div class="chips">${r.missingNumbers.map(m=>s`<span>${this.t("Missing")} ${m}</span>`)}</div>`:s`<p>${this.t("No numbers are missing from the birth name.")}</p>`} ${p.length>0?s`<div class="chips">${p.map(([m,f])=>s`<span>${m} x ${f}</span>`)}</div>`:i} ${this.renderInterpretation((r.lessons??[]).map(m=>({label:m.lesson??`Lesson ${m.number}`,aside:m.number!=null?`${m.number}`:"",body:m.description??"",extra:m.howToOvercome?s`<p><strong>${this.t("How to overcome")}.</strong> ${m.howToOvercome}</p>`:i})),"numerology-karmic-lessons","Lessons")}</section>`:i}${a?.hasKarmicDebt?s`<section class="sub" part="section karmic-debt"><h3>${this.t("Karmic debt")}</h3>${a.debtNumbers?.length?s`<div class="chips">${a.debtNumbers.map(m=>s`<span>${this.t("Debt")} ${m}</span>`)}</div>`:i} ${this.renderInterpretation((a.meanings??[]).map(m=>({label:`${this.t("Karmic debt")} ${m.number}`,body:m.description??"",extra:s`${m.challenge?s`<p><strong>${this.t("Challenge")}.</strong> ${m.challenge}</p>`:i}${m.resolution?s`<p><strong>${this.t("Resolution")}.</strong> ${m.resolution}</p>`:i}`})),"numerology-karmic-debt","Debts")}</section>`:i}${n?s`<section class="sub" part="section personal-year"><h3>${this.t("Personal year")}</h3><h4 class="sub-title">${[n.personalYear!=null?`${n.personalYear}`:"",n.theme??"",n.cycle??""].filter(Boolean).join(" · ")}</h4>${n.forecast&&h?s`<p>${n.forecast}</p>`:i} ${h?this.renderLists(["Opportunities",n.opportunities],["Challenges",n.challenges]):i} ${n.advice&&h?s`<p>${n.advice}</p>`:i} ${n.personalMonth?s`<p><strong>${[n.personalMonth.personalMonth!=null?`${this.t("Personal month")} ${n.personalMonth.personalMonth}`:this.t("Personal month"),n.personalMonth.theme??""].filter(Boolean).join(" · ")}.</strong> ${h?n.personalMonth.focus??"":""}</p>`:i}</section>`:i}${e.pinnacles?.length&&h?s`<section class="sub" part="section pinnacles"><h3>${this.t("Pinnacles")}</h3>${this.renderInterpretation(e.pinnacles.map(m=>({label:[m.position!=null?`Pinnacle ${m.position}`:"Pinnacle",m.meaning?.title??""].filter(Boolean).join(" · "),aside:[m.number!=null?`${m.number}`:"",Ao(m.startAge,m.endAge)].filter(Boolean).join(" · "),body:m.meaning?.description??"",extra:this.renderLists(["Opportunities",m.meaning?.opportunities],["Challenges",m.meaning?.challenges])})),"numerology-pinnacles","Life phases")}</section>`:i}${e.challenges?.length&&h?s`<section class="sub" part="section obstacle-periods"><h3>${this.t("Challenges")}</h3>${this.renderInterpretation(e.challenges.map(m=>({label:[m.position!=null?`Challenge ${m.position}`:"Challenge",m.meaning?.title??""].filter(Boolean).join(" · "),aside:[m.number!=null?`${m.number}`:"",Ao(m.startAge,m.endAge)].filter(Boolean).join(" · "),body:m.meaning?.description??"",extra:s`${m.meaning?.lesson?s`<p><strong>${this.t("Lesson")}.</strong> ${m.meaning.lesson}</p>`:i}${m.meaning?.howToOvercome?s`<p><strong>${this.t("How to overcome")}.</strong> ${m.meaning.howToOvercome}</p>`:i}`})),"numerology-challenges","Obstacle periods")}</section>`:i}${l||d?s`<section class="sub" part="section name-numbers"><h3>${this.t("Name numbers")}</h3>${l?s`<div><h4 class="sub-title">${[l.number!=null?`Hidden passion ${l.number}`:"Hidden passion",l.title??""].filter(Boolean).join(" · ")}</h4>${l.description&&h?s`<p>${l.description}</p>`:i} ${typeof l.count=="number"?s`<p class="label">${`Appears ${l.count} times in the name`}</p>`:i}</div>`:i} ${d?s`<div><h4 class="sub-title">${[d.number!=null?`Subconscious self ${d.number}`:"Subconscious self",d.title??""].filter(Boolean).join(" · ")}</h4>${d.description&&h?s`<p>${d.description}</p>`:i} ${d.uniqueNumbers?.length?s`<p class="label">${`Numbers present: ${d.uniqueNumbers.join(", ")}`}</p>`:i}</div>`:i}</section>`:i}${c&&h?s`<section class="sub" part="section name-letters"><h3>${this.t("Name letters")}</h3>${this.renderInterpretation([{label:this.t("Cornerstone"),aside:Ss(c.cornerstone?.letter,c.cornerstone?.number),body:c.cornerstone?.meaning??""},{label:this.t("Capstone"),aside:Ss(c.capstone?.letter,c.capstone?.number),body:c.capstone?.meaning??""},{label:this.t("First vowel"),aside:Ss(c.firstVowel?.letter),body:c.firstVowel?.meaning??""}],"numerology-name-letters","Letter analysis")}</section>`:i}`}renderHero(e,r,a,n=!1){return s`<div class="hero" part="header">${typeof r=="number"?s`<div class="numeral">${r}</div>`:i}<div><p class="label">${e}</p>${a?s`<h2 class="title">${a}</h2>`:i} ${n?s`<span class="master">${this.t("Master number")}</span>`:i}</div></div>`}renderReading(e,r){if(!e||this.hideReadings)return i;let a=gd.map(([n,l])=>({label:l,body:e[n]??""}));return s`${e.keywords?.length?s`<div class="chips">${e.keywords.map(n=>s`<span>${n}</span>`)}</div>`:i}${this.renderLists(["Strengths",e.strengths],["Challenges",e.challenges])}${this.renderInterpretation(a,r,"Guidance")}`}renderLists(...e){let r=e.filter(([,a])=>a&&a.length>0);return r.length===0?i:s`<div class="lists">${r.map(([a,n])=>s`<div><h3>${this.t(a)}</h3><ul>${(n??[]).map(l=>s`<li>${l}</li>`)}</ul></div>`)}</div>`}attr(e,r){return r==null||r===""?i:s`<div class="attr"><dt>${e}</dt><dd>${r}</dd></div>`}};qe.styles=[x,M,_,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.hero{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.numeral{font-size:4rem;line-height:1;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);font-variant-numeric:tabular-nums}.label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.meaning{color:var(--roxy-fg,#0a0a0a);margin:0}.master{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);margin-top:2px;padding:2px 10px;display:inline-block}.calc{font-family:var(--roxy-font-mono);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 30%, transparent);padding:var(--roxy-space-sm,.5rem);border-radius:var(--roxy-radius-sm,4px);white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.cores{gap:var(--roxy-space-sm,.5rem);border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));display:grid}.cores .item{font-size:var(--roxy-text-sm,.875rem);gap:2px;display:grid}.cores .item .core-head{align-items:baseline;gap:var(--roxy-space-xs,.25rem);display:flex}.cores .item .core-key{color:var(--roxy-muted,#71717a);text-transform:capitalize}.cores .item strong{color:var(--roxy-accent-ink,#b45309);font-variant-numeric:tabular-nums;font-size:var(--roxy-text-base,1rem);font-weight:var(--roxy-weight-bold,600)}.cores .item .core-title{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));display:grid}.lists h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.lists ul{gap:var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-sm,.875rem);margin:0;padding-left:1.1rem;line-height:1.6;display:grid}.sub{gap:var(--roxy-space-sm,.5rem);border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem);display:grid}.sub>h3{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.sub-title{font-size:var(--roxy-text-base,1rem);font-weight:var(--roxy-weight-bold,600);margin:0}.sub p{font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.6}.attrs{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(7rem,1fr));margin:0;display:grid}.attr{gap:2px;display:grid}.attr dt{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.attr dd{font-size:var(--roxy-text-sm,.875rem);margin:0;font-weight:500}.karmic{background:color-mix(in srgb, var(--roxy-warning,#ea580c) 12%, transparent);border:1px solid color-mix(in srgb, var(--roxy-warning,#ea580c) 32%, transparent);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-radius:var(--roxy-radius-md,8px);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}`],g([S({type:String,reflect:!0})],qe.prototype,"type",2),qe=g([b("roxy-numerology-card")],qe);var ud={"life-path":"Life Path",expression:"Expression","soul-urge":"Soul Urge",personality:"Personality","birth-day":"Birth Day",maturity:"Maturity",daily:"Daily Number","personal-day":"Personal Day","personal-month":"Personal month","personal-year":"Personal year",chart:"Numerology chart"};function yd(o){return o?[o.description,o.challenge,o.resolution].filter(Boolean).join(" "):""}function $a(o,t){return t==="master"||o!==void 0&&hd.has(o)}function ks(o,t){return[o!=null?`${o}`:"",t??""].filter(Boolean).join(" · ")}function Ao(o,t){return o==null?"":t==null?`ages ${o} onward`:`ages ${o} to ${t}`}function Ss(o,t){return[o??"",t!=null?`${t}`:""].filter(Boolean).join(" · ")}function Rs(...o){return o.filter(Boolean).join(" · ")}function Cs(...o){return o.filter(Boolean).join(", ")}var Ue=class extends y{constructor(){super(...arguments);this.detail="detailed"}renderData(e){let r="sunrise"in e?e:null,a="sunLongitude"in e?e:null,n=r?[["Brahma Muhurta",r.brahmaMuhurta],["Abhijit Muhurta",r.abhijitMuhurta],["Vijaya Muhurta",r.vijayaMuhurta],["Godhuli Muhurta",r.godhuliMuhurta],["Nishita Muhurta",r.nishitaMuhurta],["Pratah Sandhya",r.pratahSandhya],["Sayahna Sandhya",r.sayahnaSandhya]]:[],l=r?this.expandWindows(this.t("Amrit Kalam"),r.amritKalam):[],d=r?[["Rahu Kaal",r.rahuKaal],["Yamaganda",r.yamaganda],["Gulika",r.gulika]]:[],c=r?[...this.expandWindows(this.t("Dur Muhurta"),r.durMuhurta),...this.expandWindows(this.t("Varjyam"),r.varjyam)]:[],p=this.detail==="detailed"&&r!==null;return s`<div class="wrap" part="card" aria-label="${this.t("Panchang")}"><header class="head" part="header"><h2 class="title">${this.t("Panchang")}</h2><span class="date">${r?A(this.effectiveLang(),r.date):""}</span></header><table part="table"><tbody>${this.limbs(e,r).map(h=>this.renderLimbRow(h))} ${r?s`${this.renderRow(this.t("Sunrise"),te(this.effectiveLang(),r.sunrise))} ${this.renderRow(this.t("Sunset"),te(this.effectiveLang(),r.sunset))} ${this.renderRow(this.t("Moonrise"),te(this.effectiveLang(),r.moonrise))} ${this.renderRow(this.t("Moonset"),te(this.effectiveLang(),r.moonset))} ${this.renderRow(this.t("Moon sign"),this.formatRashi(r.moonSign))} ${this.renderRow(this.t("Sun sign"),this.formatRashi(r.sunSign))} ${this.renderRow(this.t("Sun nakshatra"),this.formatSunNakshatra(r.sunNakshatra))} ${this.renderRow(this.t("Hora"),this.formatHora(r.hora))}`:a?s`${this.renderRow(this.t("Sun"),this.formatLongitude(a.sunLongitude))} ${this.renderRow(this.t("Moon"),this.formatLongitude(a.moonLongitude))}`:i}</tbody></table>${r?this.renderTransitions(r.transitions):i} ${p?s`<div class="section" part="section auspicious">${this.t("Auspicious muhurtas")}</div><table part="table auspicious"><tbody>${this.renderPeriodRows([...n.filter(h=>!!h[1]),...l])}</tbody></table><div class="section" part="section inauspicious">${this.t("Inauspicious periods")}</div><table part="table inauspicious"><tbody>${this.renderPeriodRows([...d.filter(h=>!!h[1]),...c])} ${this.renderBhadraRow(r.bhadra)} ${this.renderPanchakaRow(r.panchaka)}</tbody></table>${this.renderBalams(r.chandrabalam,r.tarabalam)}`:i}</div>`}limbs(e,r){let a=e.tithi,n=e.nakshatra,l=e.yoga,d=e.karana,c=[{label:this.t("Tithi"),value:Cs(a?.name,a?.paksha?`${a.paksha} paksha`:void 0),meta:Rs(a?.rulingPlanet?`Ruled by ${a.rulingPlanet}`:void 0,a?.deity?`Deity ${a.deity}`:void 0,a?.element,typeof a?.percent=="number"?`${ae(this.effectiveLang(),a.percent,0)} elapsed`:void 0)},{label:this.t("Nakshatra"),value:Cs(n?.name,typeof n?.pada=="number"?`pada ${n.pada}`:void 0),meta:Rs(n?.lord?`Lord ${n.lord}`:void 0,n?.deity?`Deity ${n.deity}`:void 0,n?.symbol?`Symbol ${n.symbol}`:void 0,n?.characteristics)},{label:this.t("Yoga"),value:l?.name??"",meta:l?.characteristics??""},{label:this.t("Karana"),value:Cs(d?.name,d?.type),meta:d?.characteristics??""}];return r?.vara&&c.push({label:this.t("Vara"),value:vr(r.vara.name,r.vara.sanskritName),meta:r.vara.lord?`Lord ${r.vara.lord}`:""}),c.filter(p=>!!p.value)}renderLimbRow(e){return s`<tr><th>${e.label}</th><td>${e.value}${e.meta?s`<small>${e.meta}</small>`:i}</td></tr>`}renderRow(e,r){return r?s`<tr><th>${e}</th><td>${r}</td></tr>`:i}renderTransitions(e){return e?s`<div class="section" part="section transitions">${this.t("Next transitions")}</div><table part="table transitions"><tbody>${this.renderTransitionRow(this.t("Tithi"),e.tithi)} ${this.renderTransitionRow(this.t("Nakshatra"),e.nakshatra)} ${this.renderTransitionRow(this.t("Yoga"),e.yoga)} ${this.renderTransitionRow(this.t("Karana"),e.karana)} ${this.renderMoonSignRow(e.moonSign)}</tbody></table>`:i}renderPeriodRows(e){return e.map(([r,a])=>{let n=Ee(this.effectiveLang(),a);return n?s`<tr><th>${r}</th><td>${n}</td></tr>`:i})}expandWindows(e,r){return!r||r.length===0?[]:r.map((a,n)=>[r.length>1?`${e} ${n+1}`:e,a])}renderBhadraRow(e){if(!e)return i;let r=this.formatSpan(e.startsAt,e.endsAt);return s`<tr><th>${this.t("Bhadra (Vishti)")}</th><td>${e.active&&r?r:s`<span class="quiet">${this.t("None today")}</span>`}</td></tr>`}renderPanchakaRow(e){if(!e)return i;let r=this.formatSpan(e.startsAt,e.endsAt);return s`<tr><th>${this.t("Panchaka")}</th><td>${e.active?s`${e.type?`${e.type} Panchaka`:"Panchaka"}${r?s`<small>${r}</small>`:i}`:s`<span class="quiet">${this.t("None today")}</span>`}</td></tr>`}renderBalams(e,r){return!e&&!r?i:s`<div class="section" part="section balams">${this.t("Chandrabalam and Tarabalam")}</div><table part="table balams"><tbody>${e?s`<tr><th>${this.t("Favorable Moon signs")}</th><td>${this.renderChips(e.favorableRashis,"good")}</td></tr>${this.renderRow(this.t("Ashtama Chandra rashi"),e.ashtamaChandraRashi??"")}`:i} ${r?s`<tr><th>${this.t("Favorable birth nakshatras")}</th><td>${this.renderChips(r.favorableNakshatras,"good")}</td></tr><tr><th>${this.t("Unfavorable birth nakshatras")}</th><td>${this.renderChips(r.unfavorableNakshatras,"bad")}</td></tr>`:i}</tbody></table>`}renderChips(e,r){return e?.length?s`<div class="chips">${e.map(a=>s`<span class="chip ${r}">${a}</span>`)}</div>`:s`<span class="quiet">${this.t("None")}</span>`}renderTransitionRow(e,r){if(!r?.endsAt)return i;let a=te(this.effectiveLang(),r.endsAt),n=r.next?typeof r.nextPada=="number"?this.t("ends {{time}} to {{next}} pada {{pada}}",{time:a,next:r.next,pada:r.nextPada}):this.t("ends {{time}} to {{next}}",{time:a,next:r.next}):this.t("ends {{time}}",{time:a});return s`<tr><th>${e}</th><td>${n}</td></tr>`}renderMoonSignRow(e){return e?.changesAt?s`<tr><th>${this.t("Moon sign")}</th><td>${e.next?this.t("{{sign}} until {{time}}, then {{next}}",{sign:e.current??"",time:te(this.effectiveLang(),e.changesAt),next:e.next}):this.t("{{sign}} until {{time}}",{sign:e.current??"",time:te(this.effectiveLang(),e.changesAt)})}</td></tr>`:i}formatSpan(e,r){let a=Ee(this.effectiveLang(),{start:e??void 0,end:r??void 0});return!a||!e||!r||e.slice(0,10)===r.slice(0,10)?a:this.t("{{range}} (ends {{date}})",{range:a,date:A(this.effectiveLang(),r)})}formatRashi(e){return vr(e?.name,e?.sanskritName)}formatSunNakshatra(e){return e?.name?Rs(e.name,typeof e.pada=="number"?`pada ${e.pada}`:void 0,e.lord?`lord ${e.lord}`:void 0):""}formatHora(e){if(!e?.current)return"";let r=Ee(this.effectiveLang(),e);return r?`${e.current} (${r})`:e.current}formatLongitude(e){return typeof e=="number"?ie(e):""}};Ue.styles=[x,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);justify-content:space-between;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.date{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}tbody tr:nth-child(odd){background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 24%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;vertical-align:top}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;width:38%}td{color:var(--roxy-fg,#0a0a0a);font-variant-numeric:tabular-nums}td small{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:normal;margin-top:2px;line-height:1.5;display:block}.section{border-top:1px solid var(--roxy-border,#e4e4e7);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em}.quiet{color:var(--roxy-muted,#71717a)}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;margin-top:4px;display:flex}.chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);padding:1px 8px}.chip.good{background:color-mix(in srgb, var(--roxy-success,#16a34a) 14%, transparent);color:var(--roxy-success-fg,#166534)}.chip.bad{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 14%, transparent);color:var(--roxy-danger-fg,#991b1b)}`],g([S({type:String,reflect:!0})],Ue.prototype,"detail",2),Ue=g([b("roxy-panchang-table")],Ue);var Ye=class extends y{constructor(){super(...arguments);this.heading=""}renderData(e){let r=this.toViewModel(e),a=r.cols;return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.heading||r.title}</h2>${r.badges.length?s`<div class="badges" part="details">${r.badges.map(n=>s`<span class="badge"><b>${n.label}</b> ${n.value}</span>`)}</div>`:i}</header>${r.summary&&!this.hideReadings?s`<p class="summary">${r.summary}</p>`:i}<div class="scroll" part="table"><table><caption>${r.title}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Position")}</th>${a.natal?s`<th scope="col">${this.t("Natal")}</th>`:i} ${a.house?s`<th scope="col" class="num">${this.t("House")}</th>`:i} ${a.motion?s`<th scope="col">${this.t("Motion")}</th>`:i} ${a.formula?s`<th scope="col">${this.t("Formula")}</th>`:i}</tr></thead><tbody>${r.rows.map(n=>this.renderRow(n,a))}</tbody></table></div>${this.renderReadings(r.rows)}</div>`}renderRow(e,r){let a=R(e.label);return s`<tr class="${e.isAngle?"angle":""}"><td class="body-cell">${a?s`<span class="glyph">${a}</span>`:i}${e.label}</td><td>${this.signCell(e.sign,e.degree)}</td>${r.natal?s`<td>${e.natalLongitude!=null?this.signFromLongitude(e.natalLongitude):s`—`}</td>`:i} ${r.house?s`<td class="num">${e.house!=null?e.house:s`—`}</td>`:i} ${r.motion?s`<td>${e.speed!=null?s`${v(this.effectiveLang(),e.speed,3)}${this.t("°/day")}${e.isRetrograde?s`<span class="retro">℞</span>`:i}`:s`—`}</td>`:i} ${r.formula?s`<td class="formula">${e.formula??s`—`}</td>`:i}</tr>`}signCell(e,r){let a=z(e);return s`<span class="sign">${a?s`<span class="sg">${a}</span>`:i}${vt(r)} ${e}</span>`}signFromLongitude(e){let r=re(e);return this.signCell(r.sign,r.degree+r.minute/60)}renderReadings(e){let r=e.filter(a=>a.interpretation).map(a=>({label:`${R(a.label)??""} ${a.label}`.trim(),aside:`${a.sign} ${vt(a.degree)}`.trim(),body:a.interpretation??""}));return this.renderInterpretation(r,"positions-readings","Readings")}toViewModel(e){if("asteroids"in e)return{title:this.t("Asteroids"),badges:e.houseSystem?[{label:this.t("Houses"),value:e.houseSystem}]:[],summary:e.summary,cols:{house:!0,motion:!0,formula:!1,natal:!1},rows:e.asteroids.map(a=>({label:a.name,sign:a.sign,degree:a.degree,house:a.house,speed:a.speed,isRetrograde:a.isRetrograde,interpretation:a.interpretation}))};if("lilith"in e)return{title:this.t("Black Moon Lilith"),badges:e.houseSystem?[{label:this.t("Houses"),value:e.houseSystem}]:[],summary:e.summary,cols:{house:!0,motion:!0,formula:!1,natal:!1},rows:e.lilith.map(a=>({label:this.t("{{variant}} apogee",{variant:N(a.variant)}),sign:a.sign,degree:a.degree,house:a.house,speed:a.speed,isRetrograde:a.isRetrograde,interpretation:a.interpretation}))};if("directed"in e)return{title:this.t("Solar arc directions"),badges:[{label:this.t("Arc"),value:`${v(this.effectiveLang(),e.solarArc,2)}°`},{label:this.t("Directed to"),value:A(this.effectiveLang(),e.targetDate)}],summary:e.summary,cols:{house:!1,motion:!1,formula:!1,natal:!0},rows:e.directed.map(a=>({label:a.name,sign:a.sign,degree:a.degree,natalLongitude:a.natalLongitude,interpretation:a.interpretation}))};if("lots"in e)return{title:this.t("Arabic lots"),badges:e.sect?[{label:this.t("Sect"),value:N(e.sect)}]:[],summary:e.summary,cols:{house:!1,motion:!1,formula:!0,natal:!1},rows:e.lots.map(a=>({label:a.name,sign:a.sign,degree:a.degree,formula:a.formula,interpretation:a.interpretation}))};let r=[];return e.ascendant&&r.push({label:this.t("Ascendant"),sign:e.ascendant.sign,degree:e.ascendant.degree,isAngle:!0}),e.midheaven&&r.push({label:this.t("Midheaven"),sign:e.midheaven.sign,degree:e.midheaven.degree,isAngle:!0}),{title:this.t("Secondary progressions"),badges:[{label:this.t("Progressed to"),value:A(this.effectiveLang(),e.targetDate)},{label:this.t("Elapsed"),value:this.t("{{years}} yrs",{years:v(this.effectiveLang(),e.elapsedYears,1)})}],summary:e.summary,cols:{house:!0,motion:!0,formula:!1,natal:!1},rows:[...r,...e.planets.map(a=>({label:a.name,sign:a.sign,degree:a.degree,house:a.house,speed:a.speed,isRetrograde:a.isRetrograde,interpretation:a.interpretation}))]}}};Ye.styles=[x,M,_,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}header{align-items:baseline;gap:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.badges{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 8px}.badge b{color:var(--roxy-accent-ink,#b45309);font-weight:600}.summary{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0}.scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}caption{text-align:left;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);padding-bottom:var(--roxy-space-xs,.25rem)}th,td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap;padding:6px 10px}th{color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.04em;font-weight:600;font-size:var(--roxy-text-xs,.75rem)}td.num{text-align:right;font-variant-numeric:tabular-nums}.body-cell{color:var(--roxy-fg,#0a0a0a);font-weight:500}.body-cell .glyph{color:var(--roxy-accent-ink,#b45309);margin-right:.35rem}tr.angle td{color:var(--roxy-secondary,#475569)}.sign{align-items:baseline;gap:.3rem;display:inline-flex}.sign .sg{color:var(--roxy-secondary,#475569)}.retro{color:var(--roxy-danger,#dc2626);font-weight:600}.formula{color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums;white-space:normal}`],g([S({type:String})],Ye.prototype,"heading",2),Ye=g([b("roxy-positions-table")],Ye);var jt=class extends y{renderData(t){let e=z(t.profectedSign),r=R(t.lordOfYear),a=z(t.lordNatalPosition?.sign);return s`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t("Annual profection")}</h2>${t.targetDate?s`<span class="badge"><b>${this.t("For")}</b> ${A(this.effectiveLang(),t.targetDate)}</span>`:i}</header><div class="focus" part="details"><div class="age"><span class="n">${t.age}</span> <span class="l">${this.t("Age")}</span></div><span class="arrow">${this.t("Activates")}</span><div class="house"><span class="h">${this.t("House")} ${t.profectedHouse}</span> <span class="sign">${e?s`<span class="sg">${e}</span>`:i}${t.profectedSign}</span></div></div><div class="lord" part="details"><span class="label">${this.t("Lord of the year")}</span> <span class="value">${r?s`${r}`:i}${t.lordOfYear}</span> ${t.lordNatalPosition?s`<span class="sub">${this.t("Natal")} ${a?s`<span>${a}</span>`:i}${this.t("{{sign}} · house {{house}}",{sign:t.lordNatalPosition.sign,house:t.lordNatalPosition.house})}</span>`:i}</div>${t.interpretation&&!this.hideReadings?s`<p class="interp">${t.interpretation}</p>`:i}</div>`}};jt.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}header{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 8px}.badge b{color:var(--roxy-accent-ink,#b45309);font-weight:600}.focus{align-items:center;gap:var(--roxy-space-md,1rem);padding:var(--roxy-space-md,1rem);border-radius:var(--roxy-radius-md,8px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 9%, transparent);flex-wrap:wrap;display:flex}.age{justify-items:center;min-width:4.5rem;display:grid}.age .n{color:var(--roxy-accent-ink,#b45309);font-variant-numeric:tabular-nums;font-size:2rem;font-weight:700;line-height:1}.age .l{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.arrow{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.house{gap:2px;display:grid}.house .h{font-size:var(--roxy-text-lg,1.125rem);color:var(--roxy-fg,#0a0a0a);font-weight:600}.house .sign{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-secondary,#475569)}.house .sign .sg{margin-right:.3rem}.lord{font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;align-items:baseline;gap:.4rem .75rem;display:flex}.lord .label{color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-size:var(--roxy-text-xs,.75rem)}.lord .value{color:var(--roxy-fg,#0a0a0a);font-weight:600}.lord .sub{color:var(--roxy-muted,#71717a)}.interp{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);line-height:var(--roxy-leading-normal,1.5);margin:0}`],jt=g([b("roxy-profection-card")],jt);var Do=["name","english","title"],fd=new Set(["description","meaning","characteristics","tagline","definedMeaning","undefinedMeaning","motto"]),xd=new Set(["id","symbol",...Do]),To=48;function bd(o){return O(o).toLowerCase().replace(/\s+/g,"-")}function vd(o){return Object.values(sr(o)).filter(t=>typeof t=="string"||typeof t=="number").map(String).join(" · ")}var Ht=class extends y{renderData(t){let e=sr(t),r=this.deriveTitle(e),a=typeof e.symbol=="string"?e.symbol:void 0,n=Array.isArray(e.keywords)?e.keywords.map(String):[],l=[],d=[],c=[],p=(m,f,C)=>{if(f!=null){if(Array.isArray(f)){let w=f.filter(k=>k!=null).map(k=>typeof k=="object"?vd(k):String(k)).filter(k=>k.length>0);w.length>0&&d.push([m,w,w.some(k=>k.length>To)])}else if(typeof f=="string")fd.has(m)||f.length>To?l.push([m,f]):c.push([m,f]);else if(typeof f=="number"||typeof f=="boolean")c.push([m,String(f)]);else if(typeof f=="object"&&C<2)for(let[w,k]of Object.entries(sr(f)))p(`${m} ${w}`,k,C+1)}};for(let[m,f]of Object.entries(e))xd.has(m)||m==="keywords"&&Array.isArray(f)||p(m,f,0);let h=!this.hideReadings;return s`<article class="card" part="card" aria-label="${r}"><header class="head" part="header">${a?s`<span class="symbol" aria-hidden="true">${a}</span>`:i}<div><p class="label">${this.t("Reference")}</p><h2 class="name">${r}</h2></div></header>${n.length>0&&h?s`<div class="chips">${n.map(m=>s`<span>${m}</span>`)}</div>`:i} ${h?l.map(([m,f])=>s`<p class="prose"><span class="prose-label">${fe(this.effectiveLang(),m)}</span>${f}</p>`):i} ${c.length>0?s`<div class="facts-wrap" part="details"><dl class="facts">${c.map(([m,f])=>s`<div class="fact"><dt>${fe(this.effectiveLang(),m)}</dt><dd>${f}</dd></div>`)}</dl></div>`:i} ${d.map(([m,f,C])=>C&&!h?i:s`<div class="list" part="section ${bd(m)}"><h3>${fe(this.effectiveLang(),m)}</h3><div class="chips">${f.map(w=>s`<span>${w}</span>`)}</div></div>`)}</article>`}deriveTitle(t){for(let a of Do)if(typeof t[a]=="string")return t[a];let e=typeof t.type=="string"?O(t.type):"",r=t.number;return r!=null?`${e} ${r}`.trim():this.t("Reference")}};Ht.styles=[x,u`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:center;gap:var(--roxy-space-md,1rem);display:flex}.symbol{color:var(--roxy-accent-ink,#b45309);flex:none;font-size:2.5rem;line-height:1}.label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.name{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.prose{margin:0;line-height:1.6}.prose .prose-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em;margin-bottom:2px;display:block}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.list h3,.facts-wrap h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.facts{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));margin:0;display:grid}.fact dt{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:capitalize}.fact dd{font-size:var(--roxy-text-sm,.875rem);margin:0}`],Ht=g([b("roxy-reference-card")],Ht);var Eo=o=>R(o)??"",Ft=class extends y{renderData(t){let e=t.changes;return s`<div class="stack" part="stack"><roxy-natal-chart heading="Relocation chart" lang="${oe(this.effectiveLang())}" exportparts="card, header, tablist, tab, panel, chart, table, aspects, aspect-grid, element-modality, legend, details, section, patterns, pattern, readings, reading" ?hide-readings="${this.hideReadings}" .data="${t}"></roxy-natal-chart><section class="changes" part="card changes"><h3 class="title">${this.t("What changes at this location")}</h3><div class="move" part="details">${typeof e?.distanceKm=="number"?s`<span>${Math.round(e.distanceKm)===0?"Same location as birth":`${wn(this.effectiveLang(),e.distanceKm)} km ${e.direction??""} of birthplace`}</span>`:i} ${e?s`<span>${t.ascendant?.sign?e.ascendantSignChanged?this.t("Ascendant moves to {{sign}}",{sign:t.ascendant.sign}):this.t("Ascendant stays in {{sign}}",{sign:t.ascendant.sign}):e.ascendantSignChanged?this.t("Ascendant changes sign"):this.t("Ascendant keeps its sign")}</span>`:i}</div>${t.interpretation?.summary&&!this.hideReadings?s`<p class="summary">${t.interpretation.summary}</p>`:i} ${e?.angularPlanets?.length?s`<div part="section angular-planets"><p class="block-label">${this.t("Angular planets here")}</p><div class="chips">${e.angularPlanets.map(r=>s`<span class="chip">${Eo(r)} ${r}</span>`)}</div></div>`:i}<div part="section house-changes"><p class="block-label">${this.t("Planets that change house")}</p>${e?.planetsChangedHouse?.length?s`<ul class="moves-list">${e.planetsChangedHouse.map(r=>s`<li>${Eo(r.planet)} ${this.t("{{planet}}: house {{from}} to {{to}}",{planet:r.planet,from:r.natalHouse,to:r.relocatedHouse})}</li>`)}</ul>`:s`<p class="empty-note">${this.t("No planet changes house at this location.")}</p>`}</div></section></div>`}};Ft.styles=[x,u`.stack{gap:var(--roxy-space-md,1rem);display:grid}.changes{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);display:grid}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.move{gap:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);flex-wrap:wrap;display:flex}.summary{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);margin:0}.block-label{font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;color:var(--roxy-muted,#71717a);margin:0 0 var(--roxy-space-xs,.25rem);font-weight:600}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 10px}.moves-list{gap:2px;margin:0;padding:0;list-style:none;display:grid}.moves-list li{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.moves-list .arrow{color:var(--roxy-muted,#71717a)}.empty-note{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);margin:0}`],Ft=g([b("roxy-relocation-wheel")],Ft);var As=[{key:"sthanaBala",source:"Sthana",color:"var(--roxy-info, #0284c7)"},{key:"digBala",source:"Dig",color:"var(--roxy-success, #16a34a)"},{key:"kalaBala",source:"Kala",color:"var(--roxy-warning, #ea580c)"},{key:"chestaBala",source:"Chesta",color:"var(--roxy-accent, #f59e0b)"},{key:"naisargikaBala",source:"Naisargika",color:"var(--roxy-secondary, #475569)"},{key:"drikBala",source:"Drik",color:"var(--roxy-danger, #dc2626)"}],Kt=class extends y{renderData(t){if(!t.planets?.length)return this.renderEmpty();let e=[...t.planets].sort((r,a)=>r.relativeRank-a.relativeRank);return s`<div class="wrap" part="card" aria-label="${this.t("Shadbala planetary strength")}"><div class="head" part="header"><h2 class="title">${this.t("Shadbala")}</h2><p class="subtitle">${this.t("{{count}} planets ranked by strength",{count:e.length})}</p>${F(this.effectiveLang(),t.frame,this.translator)}</div><div role="list" part="chart bars" aria-label="${this.t("Planet strength bars")}">${e.map(r=>this.renderPlanetRow(r))}</div><div class="legend" part="legend" aria-label="${this.t("Strength component legend")}">${As.map(r=>s`<div class="legend-row"><span class="legend-swatch" style="background:${r.color}" aria-hidden="true"></span> ${this.t("{{component}} Bala",{component:this.t(r.source)})}</div>`)}</div><p class="footnote" part="legend">${this.t("Ishta Phala is the capacity to give benefic results, Kashta Phala the capacity to give malefic ones. Both are in virupas and are read together, since a planet can be strong and still deliver hardship.")}</p></div>`}renderPlanetRow(t){let e=R(t.planet)??"",r=As.map(p=>Math.max(0,t[p.key])),a=r.reduce((p,h)=>p+h,0),n=typeof t.strengthRatio=="number"&&t.strengthRatio>=1,l=n?"adequacy-badge--adequate":"adequacy-badge--weak",d=n?"adequate":"weak",c=v(this.effectiveLang(),t.totalRupas,2)&&v(this.effectiveLang(),t.minRequired,2)?`${v(this.effectiveLang(),t.totalRupas,2)} / ${v(this.effectiveLang(),t.minRequired,2)} R`:"";return s`<div class="planet-row" role="listitem" aria-label="${this.t("{{planet}} Shadbala",{planet:t.planet})}"><div class="planet-label"><span class="glyph" aria-hidden="true">${e}</span> ${t.planet} <span class="rank-badge" aria-label="${this.t("rank {{n}}",{n:t.relativeRank})}">#${t.relativeRank}</span></div><div class="bar-wrap"><div class="bar" role="img" aria-label="${this.t("Strength components for {{planet}}",{planet:t.planet})}">${a>0?As.map((p,h)=>{let m=r[h];if(m<=0)return i;let f=m/a*100;return s`<div class="bar-segment" style="flex-grow:${f};background:${p.color}" title="${this.t("{{component}} {{value}} virupas",{component:this.t(p.source),value:v(this.effectiveLang(),m,1)})}"></div>`}):i}</div>${this.renderPhala(t)}</div><div class="pills">${c?s`<span class="rupas-label">${c}</span>`:i} <span class="${`adequacy-badge ${l}`}">${d}</span></div></div>`}renderPhala(t){let e=typeof t.ishtaPhala=="number"?t.ishtaPhala:0,r=typeof t.kashtaPhala=="number"?t.kashtaPhala:0;if(e+r<=0)return i;let a=v(this.effectiveLang(),e,1)||"0",n=v(this.effectiveLang(),r,1)||"0";return s`<div class="phala" role="img" aria-label="${this.t("Ishta Phala {{ishta}}, Kashta Phala {{kashta}} virupas",{ishta:a,kashta:n})}"><span class="phala-ishta" style="flex-grow:${e}"></span> <span class="phala-kashta" style="flex-grow:${r}"></span></div><div class="phala-label"><span>${this.t("Ishta {{value}}",{value:a})}</span> <span>${this.t("Kashta {{value}}",{value:n})}</span></div>`}};Kt.styles=[x,I,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.planet-row{align-items:center;gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-sm,.5rem) 0;border-bottom:1px solid var(--roxy-border,#e4e4e7);grid-template-columns:8rem 1fr auto;display:grid}.planet-row:last-of-type{border-bottom:none}.planet-label{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);align-items:center;gap:6px;display:flex}.glyph{font-size:1.2em;line-height:1}.bar-wrap{flex-direction:column;gap:4px;display:flex}.bar{border-radius:var(--roxy-radius-sm,4px);background:var(--roxy-border,#e4e4e7);height:12px;display:flex;overflow:hidden}.bar-segment{height:100%;transition:flex-grow var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1))}.pills{flex-direction:column;align-items:flex-end;gap:4px;display:flex}.rupas-label{font-variant-numeric:tabular-nums;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);white-space:nowrap}.phala{border-radius:var(--roxy-radius-full,9999px);background:var(--roxy-border,#e4e4e7);height:6px;display:flex;overflow:hidden}.phala-ishta{background:var(--roxy-success,#16a34a)}.phala-kashta{background:var(--roxy-danger,#dc2626)}.phala-label{justify-content:space-between;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums;display:flex}.footnote{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0}.adequacy-badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:1px 6px;display:inline-block}.adequacy-badge--adequate{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.adequacy-badge--weak{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.rank-badge{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.legend{gap:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.legend-row{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);align-items:center;gap:6px;display:flex}.legend-swatch{border-radius:var(--roxy-radius-sm,4px);flex-shrink:0;width:10px;height:10px;display:inline-block}@container (width<=480px){.planet-row{grid-template-rows:auto auto;grid-template-columns:6rem 1fr}.pills{flex-direction:row;grid-column:1/-1;justify-content:flex-start;align-items:center}}`],Kt=g([b("roxy-shadbala-table")],Kt);var Ld=12,Es=360,U=Es/2,Ts=170,$d=154,Ds=124,lr=96,Vt=class extends y{renderData(t){let{person1:e,person2:r,compatibilityScore:a,analysis:n}=t,l=t.interAspects??[],d=e?.planets??[],c=r?.planets??[],p=typeof a=="number"?Math.round(a):void 0,h=n?.overall,m=n?.strengths??[],f=n?.challenges??[],C=d.length>0&&c.length>0,w=[...l].sort((B,V)=>(V.strength??0)-(B.strength??0)),k=w.slice(0,Ld);return s`<div class="wrap" part="card" aria-label="${this.t("Synastry compatibility chart")}"><div class="head" part="header"><h2 class="title">${this.t("Synastry")}</h2>${typeof p=="number"?s`<span class="score" aria-label="${this.t("Score {{score}} of 100",{score:p})}">${p} / 100</span>`:i}</div>${this.renderPeople(e,r)} ${C?s`<svg viewBox="0 0 ${Es} ${Es}" part="chart" role="img" aria-label="${this.t("Dual chart wheel comparing two natal charts")}"><title>${this.t("Synastry dual wheel")}</title><circle class="wheel-line" cx="${U}" cy="${U}" r="${Ts}" stroke-width="1.5"/><circle class="wheel-line" cx="${U}" cy="${U}" r="${lr+14}" stroke-width="0.8"/><circle class="wheel-line" cx="${U}" cy="${U}" r="${lr-14}" stroke-width="0.6"/>${this.renderSpokes()} ${this.renderSigns()} ${this.renderInterAspectLines(d,c,l)} ${this.renderRing(d,Ds,"p1",1)} ${this.renderRing(c,lr,"p2",2)} ${this.renderAscendants(t)}</svg><div class="legend-row" part="legend"><span><span class="swatch" style="background:var(--roxy-accent)"></span>${this.t("Person 1")}</span> <span><span class="swatch" style="background:var(--roxy-info)"></span>${this.t("Person 2")}</span> <span><span class="swatch" style="background:var(--roxy-success)"></span>${this.t("Harmonious")}</span> <span><span class="swatch" style="background:var(--roxy-danger)"></span>${this.t("Challenging")}</span> <span class="caveat">${this.t("Sign sectors, not houses")}</span></div>`:s`<div class="missing-planets" role="status">${this.t("Synastry response missing planet positions.")} ${this.t("A current {{endpoint}} response carries {{first}} and {{second}}, and the inter-aspect readings below still work without them.",{endpoint:"/astrology/synastry",first:"person1.planets",second:"person2.planets"})}</div>`} ${this.renderSummaryPills(t.summary)} ${h&&!this.hideReadings?s`<p class="summary">${h}</p>`:i} ${k.length>0?s`<section class="block" part="section inter-aspects"><h3>${this.t("Inter-aspects")}</h3>${k.map((B,V)=>this.renderAspectCard(B,V))}</section>`:i} ${w.length>k.length?this.renderCatalog(w):i} ${!this.hideReadings&&(m.length>0||f.length>0)?s`<div class="lists" part="section strengths-challenges">${m.length?s`<div><h3>${this.t("Strengths")}</h3><ul>${m.map(B=>s`<li>${B}</li>`)}</ul></div>`:i} ${f.length?s`<div><h3>${this.t("Challenges")}</h3><ul>${f.map(B=>s`<li>${B}</li>`)}</ul></div>`:i}</div>`:i}</div>`}renderPeople(t,e){let r=(n,l)=>{if(!n)return i;let d=n.ascendant,p=[["Sun",n.sunSign??"",$(n,"sunSign")],["Moon",n.moonSign??"",$(n,"moonSign")],["ASC",d?.sign??"",d?`${$(d,"sign")} ${v(this.effectiveLang(),d.degree,0)}°`:""]].filter(([,,h])=>h);return p.length===0?i:s`<div class="person"><span class="person-name"><span class="person-dot p${l}" aria-hidden="true"></span> ${n.name||this.t("Person {{n}}",{n:l})}</span><div class="big-three">${p.map(([h,m,f])=>s`<span><span class="lbl">${this.t(h)}</span> <span aria-hidden="true">${z(m)??""}</span> ${f}</span>`)}</div></div>`},a=[r(t,1),r(e,2)].filter(n=>n!==i);return a.length===0?i:s`<div class="people">${a}</div>`}renderSummaryPills(t){if(!t||typeof t!="object")return i;let e=Object.entries(t.byType??{}).sort((r,a)=>a[1]-r[1]);return typeof t.total!="number"&&e.length===0?i:s`<div class="summary-pills" part="details" role="region" aria-label="${this.t("Inter-aspect summary")}">${typeof t.total=="number"?s`<span class="pill">${this.t("Total")}: ${t.total}</span>`:i} <span class="pill pill--success">${this.t("Harmonious")}: ${t.harmonious}</span> <span class="pill pill--danger">${this.t("Challenging")}: ${t.challenging}</span> <span class="pill">${this.t("Neutral")}: ${t.neutral}</span> ${e.map(([r,a])=>s`<span class="pill">${W({type:r})}: ${a}</span>`)}</div>`}renderAspectCard(t,e){let r=R(t.planet1)??"",a=R(t.planet2)??"",n=(t.interpretation??"neutral").toLowerCase(),l=t.meaning,d=s`<span class="interp-lead"><span aria-hidden="true" class="glyph">${r}</span>${$(t,"planet1")} <span class="asp-name ${n}">${$(t,"type",W(t))}</span> <span aria-hidden="true" class="glyph">${a}</span>${$(t,"planet2")}</span>`,c=s`<span class="interp-aside"><small>${this.t("orb {{orb}}° · str {{strength}}",{orb:v(this.effectiveLang(),t.orb,2),strength:v(this.effectiveLang(),t.strength,0)})}</small></span>`;return this.hideReadings||!l?.relationshipContext&&!l?.description?.short?s`<div class="interp-card" part="reading"><div class="static-head">${d}${c}</div></div>`:s`<details class="interp-card" part="reading" name="synastry-aspects" ?open="${e===0}"><summary>${d}${j()}${c}</summary><div class="interp-body">${l.relationshipContext?s`<p><span class="context">${this.t("In this pairing")}</span> ${l.relationshipContext}</p>`:i} ${l.description?.short?s`<p>${l.description.short}</p>`:i} ${st(l.keywords)}</div></details>`}renderCatalog(t){return s`<details class="catalog"><summary>${j()} ${this.t("All {{count}} inter-aspects",{count:t.length})}</summary><div class="scroll" part="table">${this.renderAspects(t)}</div></details>`}toAngle(t){return 180-t}renderSpokes(){return Array.from({length:12},(t,e)=>{let r=this.toAngle(e*30),a=D(U,U,lr-14,r),n=D(U,U,Ts,r);return L`<line class="wheel-line" x1=${a.x} y1=${a.y} x2=${n.x} y2=${n.y} stroke-width="0.6" />`})}renderSigns(){return Z.map((t,e)=>{let r=this.toAngle(e*30+15),a=D(U,U,$d,r);return L`<text class="sign" x=${a.x} y=${a.y} text-anchor="middle" dominant-baseline="central">${z(t)}</text>`})}renderRing(t,e,r,a){return t.map(n=>{if(!Number.isFinite(n.longitude))return i;let l=this.toAngle(n.longitude),d=D(U,U,e,l),p=D(U,U,e+(a===1?-12:-10),l),h=R(n.name)??$(n,"name"),m=re(n.longitude),f=n.isRetrograde===!0,C=`${m.degree}°${String(m.minute).padStart(2,"0")}'`,w=typeof n.house=="number"?` · ${this.t("House {{n}}",{n:n.house})}`:"",k=`${$(n,"name")}${f?` ${this.t("retrograde")}`:""} - ${C} ${$(n,"sign")}${w}`;return L`<g>
|
|
117
117
|
<text class=${r} x=${d.x} y=${d.y} text-anchor="middle" dominant-baseline="central"><title>${k}</title>${h}<tspan class="person-tag" dy="-0.55em" dx="0.15em">${a}</tspan></text>
|
|
118
118
|
<text class="planet-deg" x=${p.x} y=${p.y} text-anchor="middle" dominant-baseline="central">${m.degree}°${f?L`<tspan class="retro"> ℞</tspan>`:i}</text>
|
|
119
|
-
</g>`})}renderAscendants(t){let e=[],r=(a,n)=>{if(!a)return;let l=Z.findIndex(f=>f.toLowerCase()===a.sign.toLowerCase());if(l===-1)return;let d=l*30+a.degree,c=this.toAngle(d),p=n===1?
|
|
119
|
+
</g>`})}renderAscendants(t){let e=[],r=(a,n)=>{if(!a)return;let l=Z.findIndex(f=>f.toLowerCase()===a.sign.toLowerCase());if(l===-1)return;let d=l*30+a.degree,c=this.toAngle(d),p=n===1?Ds+14:lr+14,h=D(U,U,p,c),m=D(U,U,Ts+14,c);e.push(L`<g>
|
|
120
120
|
<line class="asc-tick" x1=${h.x} y1=${h.y} x2=${m.x} y2=${m.y} />
|
|
121
121
|
<text class="asc-label" x=${m.x} y=${m.y} text-anchor="middle" dominant-baseline="central">${this.t("ASC{{n}}",{n})}</text>
|
|
122
|
-
</g>`)};return r(t.person1?.ascendant,1),r(t.person2?.ascendant,2),e}renderInterAspectLines(t,e,r){let a=(n,l)=>{let d=N(l);for(let c of n)if(N(c.name)===d&&typeof c.longitude=="number")return c.longitude};return r.map(n=>{let l=a(t,n.planet1),d=a(e,n.planet2);if(l===void 0||d===void 0)return i;let c=D(U,U,Ts-12,this.toAngle(l)),p=D(U,U,lr+8,this.toAngle(d)),h=ce(n),m=Le[h]??"aspect-other",f=v(this.effectiveLang(),n.orb,1);return L`<line class=${`aspect ${m}`} style=${or(n)} x1=${c.x} y1=${c.y} x2=${p.x} y2=${p.y}><title>${$(n,"planet1")} ${$(n,"type",W(n))} ${$(n,"planet2")}${f?` (${this.t("Orb")} ${f}°)`:""}</title></line>`})}renderAspects(t){return s`<table><caption class="roxy-sr-only">${this.t("Inter-chart aspects: the planet from chart 1, the planet from chart 2, the aspect between them, the orb in degrees and the strength.")}</caption><thead><tr><th scope="col">${this.t("Planet 1")}</th><th scope="col">${this.t("Planet 2")}</th><th scope="col">${this.t("Aspect")}</th><th scope="col">${this.t("Orb")}</th><th scope="col">${this.t("Strength")}</th></tr></thead><tbody>${t.map(e=>s`<tr><td>${$(e,"planet1")}</td><td>${$(e,"planet2")}</td><td>${$(e,"type",W(e))}</td><td class="orb">${v(this.effectiveLang(),e.orb,1)}</td><td>${v(this.effectiveLang(),e.strength,0)}</td></tr>`)}</tbody></table>`}};Kt.styles=[x,nr,M,O,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.score{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-xl,1.5rem)}svg{width:100%;max-width:var(--roxy-chart-max-width,560px);aspect-ratio:1;height:auto;margin:0 auto;display:block}.wheel-line{fill:none;stroke:var(--roxy-border,#e4e4e7)}.sign{fill:var(--roxy-secondary,#475569);font-size:14px}.p1{fill:var(--roxy-accent,#f59e0b);font-size:13px;font-weight:600}.p2{fill:var(--roxy-info,#0284c7);font-size:13px;font-weight:600}.person-tag{opacity:.85;font-size:7px;font-weight:700}.planet-deg{fill:var(--roxy-muted,#71717a);font-size:7px;font-family:var(--roxy-font-sans)}.planet-deg .retro{fill:var(--roxy-danger,#dc2626)}.asc-tick{stroke:var(--roxy-accent-ink,#b45309);stroke-width:1px;opacity:.75}.asc-label{fill:var(--roxy-accent-ink,#b45309);font-size:9px;font-weight:700;font-family:var(--roxy-font-sans);letter-spacing:.04em}.legend-row{gap:var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin-top:calc(var(--roxy-space-xs,.25rem) * -1);flex-wrap:wrap;display:flex}.legend-row .caveat{font-style:italic}.legend-row .swatch{vertical-align:middle;border-radius:50%;width:8px;height:8px;margin-right:4px;display:inline-block}.summary{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);margin:0}.people{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));display:grid}.person{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);gap:.3rem;display:grid}.person-name{font-weight:var(--roxy-weight-bold,600);font-size:var(--roxy-text-sm,.875rem);align-items:center;gap:.4rem;display:flex}.person-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.person-dot.p1{background:var(--roxy-accent,#f59e0b)}.person-dot.p2{background:var(--roxy-info,#0284c7)}.big-three{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);flex-wrap:wrap;gap:.25rem .75rem;display:flex}.big-three span{align-items:baseline;gap:.25rem;display:inline-flex}.big-three .lbl{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.summary-pills{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.pill{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 8px}.pill--success{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.pill--danger{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.glyph{font-size:1.1em;line-height:1}.static-head{align-items:center;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;font-weight:500;display:flex}.asp-name{font-weight:var(--roxy-weight-bold,600);text-transform:capitalize}.asp-name.harmonious{color:var(--roxy-success-fg,#166534)}.asp-name.challenging{color:var(--roxy-danger-fg,#991b1b)}.context{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600)}.catalog>summary{cursor:pointer;font-weight:var(--roxy-weight-bold,600);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);align-items:center;gap:.5rem;display:flex}.scroll{min-width:0;margin-top:var(--roxy-space-sm,.5rem);overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}td.orb{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));display:grid}.lists h3{margin:0 0 var(--roxy-space-xs,.25rem) 0;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.lists ul{padding-left:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);margin:0}.missing-planets{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);line-height:1.5}.missing-planets code{font-family:var(--roxy-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);background:color-mix(in srgb, var(--roxy-fg,#0a0a0a) 6%, transparent);border-radius:4px;padding:0 4px;font-size:.95em}`],Kt=g([b("roxy-synastry-chart")],Kt);var xd=[["love","Love"],["career","Career"],["finances","Finances"],["health","Health"],["spirituality","Spirituality"]],Ze=class extends y{constructor(){super(...arguments);this.orientation="upright"}renderData(e){return"card"in e?this.renderDailyCard(e):this.renderFullCard(e)}renderDailyCard(e){let r=e.card,a=!!r.reversed,n=r.keywords??[],l=[r.arcana?`${r.arcana} arcana`:"",r.suit??""].filter(Boolean).join(" · "),d=!this.hideReadings;return s`<article class="card" part="card" aria-label="${r.name??"Tarot card"}">${this.renderImage(r.imageUrl,r.name,a)}<div part="header"><div class="meta">${l?`${l} · `:""}<span class="drawn">${a?"drawn reversed":"drawn upright"}</span></div><h2 class="title">${r.name??"Tarot card"}</h2>${e.dailyMessage&&d?s`<p class="message">${e.dailyMessage}</p>`:i} ${r.meaning&&d?s`<p class="reading">${r.meaning}</p>`:i} ${n.length>0&&d?s`<div class="chips">${n.map(c=>s`<span>${c}</span>`)}</div>`:i} ${this.renderGuidance(r,"tarot-daily-guidance")}</div></article>`}renderFullCard(e){let r=this.orientation==="reversed",a=r?e.reversed:e.upright,n=(r?e.keywords?.reversed:e.keywords?.upright)??a?.keywords??[],l=!this.hideReadings;return s`<article class="card" part="card" aria-label="${e.name??this.t("Tarot card")}">${this.renderImage(e.imageUrl,e.name,r)}<div part="header"><div class="meta">${[e.arcana?`${e.arcana} arcana`:"",e.suit??"",e.number!==void 0&&e.number!==null?`no. ${e.number}`:""].filter(Boolean).join(" · ")}</div><h2 class="title">${e.name??"Tarot card"}</h2>${se({items:[{id:"upright",label:this.t("Upright")},{id:"reversed",label:this.t("Reversed")}],active:this.orientation,onSelect:d=>{this.orientation=d},label:this.t("Card orientation"),idPrefix:"tarot",controls:!0})}<div id="tarot-panel-${this.orientation}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="tarot-tab-${this.orientation}">${a?.description&&l?s`<p class="reading">${a.description}</p>`:i} ${n.length>0&&l?s`<div class="chips">${n.map(d=>s`<span>${d}</span>`)}</div>`:i} ${this.renderGuidance(a,`tarot-${this.orientation}-guidance`)}</div></div></article>`}renderImage(e,r,a){let n=`image ${a?"reversed":""}`;return e?s`<img class="${n}" part="chart" src="${e}" alt="${r??"Tarot card"}">`:s`<div class="${n}" part="chart" style="aspect-ratio:0.6;display:flex;align-items:center;justify-content:center;color:var(--roxy-muted)">${r??"?"}</div>`}renderGuidance(e,r){if(!e)return i;let a=xd.map(([n,l])=>({label:l,body:e[n]??""}));return this.renderInterpretation(a,r,"Guidance")}};Ze.styles=[x,M,O,ee,u`.card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-lg,1.5rem);grid-template-columns:minmax(0,9rem) 1fr;align-items:start;display:grid}@container (width<=480px){.card{grid-template-columns:1fr}}.image{border-radius:var(--roxy-radius-md,8px);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);width:100%;height:auto;transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.image.reversed{transform:rotate(180deg)}.title{font-size:var(--roxy-text-xl,1.5rem);font-weight:var(--roxy-weight-bold,600);letter-spacing:var(--roxy-tracking-tight);margin:0}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);text-transform:uppercase;letter-spacing:.06em;margin-bottom:var(--roxy-space-sm,.5rem)}.drawn{color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600)}.message{color:var(--roxy-fg,#0a0a0a);margin:var(--roxy-space-sm,.5rem) 0 var(--roxy-space-md,1rem)}.reading{margin:0 0 var(--roxy-space-md,1rem);white-space:pre-line}.roxy-tablist{margin:var(--roxy-space-sm,.5rem) 0}.chips{gap:var(--roxy-space-xs,.25rem);margin-top:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}`],g([G()],Ze.prototype,"orientation",2),Ze=g([b("roxy-tarot-card")],Ze);var We=class extends y{constructor(){super(...arguments);this.heading=""}renderData(e){let r=e.cards??[];if(r.length===0)return this.renderEmpty();let a=this.heading||"Tarot deck",n=typeof e.total=="number"?e.total:r.length;return s`<section class="wrap" part="card" aria-label="${a}"><header class="head" part="header"><h2 class="title">${a}</h2><span class="count">${n} ${n===1?"card":"cards"}</span></header><ul class="grid" part="section cards">${r.map(l=>s`<li class="tile">${l.imageUrl?s`<img class="art" src="${l.imageUrl}" alt="${l.name??"Tarot card"}" loading="lazy">`:s`<div class="art" aria-hidden="true"></div>`}<p class="name">${l.name}</p><p class="meta">${bd(l)}</p></li>`)}</ul></section>`}};We.styles=[x,u`.wrap{gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.count{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.grid{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fill,minmax(7rem,1fr));margin:0;padding:0;list-style:none;display:grid}.tile{gap:var(--roxy-space-xs,.25rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem);box-shadow:var(--roxy-shadow-sm);display:grid}.art{aspect-ratio:2/3;border-radius:var(--roxy-radius-sm,4px);object-fit:cover;background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 35%, transparent);width:100%}.name{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.meta{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0}`],g([S({type:String,reflect:!0})],We.prototype,"heading",2),We=g([b("roxy-tarot-catalog")],We);function bd(o){return o.suit?`${N(o.arcana)} · ${N(o.suit)}`:`${N(o.arcana)} Arcana`}function vd(o){return o&&o.charAt(0).toUpperCase()+o.slice(1)}var Je=class extends y{constructor(){super(...arguments);this.spread="three-card"}renderData(e){let r="answer"in e,a="cards"in e&&!("spread"in e),n=a?[]:"positions"in e?e.positions??[]:[],l=a&&"cards"in e?e.cards:[],d=r?e.answer:void 0,c=r?e.strength:void 0,p=r?e.card:void 0,h=r?"Yes or no":a?"Card draw":vd(("spread"in e?e.spread:"")||this.spread.replace(/-/g," ")),m="question"in e?e.question:void 0,f="summary"in e?e.summary:void 0,C=r?e.interpretation:void 0,w=d?d.toLowerCase().replace(/[^a-z]/g,""):"";return s`<article class="wrap" part="card" aria-label="${this.t("Tarot spread")}"><header class="head" part="header"><h2 class="title">${h}</h2>${m?s`<span class="question">"${m}"</span>`:i}</header>${r?s`<div class="verdict" part="section verdict"><div class="card"><div class="image" part="chart">${p?.imageUrl?s`<img src="${p.imageUrl}" alt="${p.name??"tarot card"}" class="${p.reversed?"reversed":""}">`:s`${p?.name??"?"}`}</div><p class="name">${p?.name??""} ${p?.reversed?s`<small>${this.t("(reversed)")}</small>`:i}</p>${p?.arcana?s`<p class="arcana">${this.t("{{arcana}} arcana",{arcana:p.arcana})}</p>`:i}</div><div class="meta" part="details"><div><span class="${`answer ${w}`}">${d}</span> ${c?s`<small>· ${c}</small>`:i}</div>${p?.keywords&&p.keywords.length>0&&!this.hideReadings?s`<div class="chips">${p.keywords.map(k=>s`<span>${k}</span>`)}</div>`:i}</div></div>`:i} ${n.length>0?s`<div class="grid" part="section positions">${n.map(k=>s`<div class="card"><p class="label">${k.name??""}</p><div class="image" part="chart">${k.card?.imageUrl?s`<img src="${k.card.imageUrl}" alt="${k.card.name??"tarot card"}" class="${k.card.reversed?"reversed":""}">`:s`${k.card?.name??"?"}`}</div><p class="name">${k.card?.name??""} ${k.card?.reversed?s`<small>${this.t("(reversed)")}</small>`:i}</p>${k.interpretation&&!this.hideReadings?s`<p class="interp">${k.interpretation}</p>`:i}</div>`)}</div>`:i} ${l.length>0?s`<div class="grid" part="section cards">${l.map(k=>s`<div class="card"><div class="image" part="chart">${k.imageUrl?s`<img src="${k.imageUrl}" alt="${k.name??"tarot card"}" class="${k.reversed?"reversed":""}">`:s`${k.name??"?"}`}</div><p class="name">${k.name??""} ${k.reversed?s`<small>${this.t("(reversed)")}</small>`:i}</p>${k.meaning&&!this.hideReadings?s`<p class="interp">${k.meaning}</p>`:i}</div>`)}</div>`:i} ${f&&!this.hideReadings?s`<p class="reading">${f}</p>`:i} ${C&&!this.hideReadings?s`<p class="reading">${C}</p>`:i}</article>`}};Je.styles=[x,u`.wrap{gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;align-items:baseline;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;margin:0}.question{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);font-style:italic}.answer{border-radius:var(--roxy-radius-full,9999px);font-weight:var(--roxy-weight-bold,600);font-size:var(--roxy-text-base,1rem);text-transform:uppercase;letter-spacing:.06em;padding:4px 14px;display:inline-block}.answer.yes{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.answer.no{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.answer.maybe{background:color-mix(in srgb, var(--roxy-warning,#ea580c) 16%, transparent);color:var(--roxy-warning-fg,#9a3412)}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.verdict{gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,8rem) 1fr;align-items:start;display:grid}@container (width<=26rem){.verdict{grid-template-columns:1fr}}.verdict .meta{gap:var(--roxy-space-sm,.5rem);justify-items:start;display:grid}.arcana{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.grid{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));display:grid}.card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem);background:var(--roxy-surface,#fff);gap:var(--roxy-space-xs,.25rem);grid-template-columns:minmax(0,1fr);display:grid}.label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.image{aspect-ratio:.6;background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);border-radius:var(--roxy-radius-sm,4px);width:100%;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);justify-content:center;align-items:center;display:flex;overflow:hidden}.image img{object-fit:cover;width:100%;height:100%;transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1))}.image img.reversed{transform:rotate(180deg)}.name{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);margin:0}.interp{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-secondary,#475569);margin:0}.reading{color:var(--roxy-fg,#0a0a0a);margin:0}`],g([S({type:String,reflect:!0})],Je.prototype,"spread",2),Je=g([b("roxy-tarot-spread")],Je);var zs=400,P=zs/2,Ld=184,Ar=170,$d=154,Es=140,wd=124,kd=135,Sd=94,Rd=83,Eo=112,Cd=104,Ms=70,Ad=58,Td=13,Dd=15,Ed=8,Md=4,dr=(o,t)=>R(o)??t,Mo=o=>{let t=re(o);return`${t.degree}°${String(t.minute).padStart(2,"0")}'`},wa=o=>{let t=new Map;for(let e of o)t.set(N(e.name),e);return t},xe=class extends y{constructor(){super(...arguments);this.heading="Transits"}get payload(){return this.data}get effectiveAscendant(){for(let e of[this.ascendant,this.payload?.ascendant?.longitude])if(typeof e=="number"&&Number.isFinite(e))return e}get ascendantGiven(){return this.effectiveAscendant!==void 0}get cuspsFromPage(){return Array.isArray(this.houses)}get cusps(){let e=this.houses??this.payload?.houses;if(!Array.isArray(e)||e.length!==12)return null;let r=e.map((n,l)=>typeof n=="number"?{number:l+1,longitude:n}:{number:Number(n?.number),longitude:Number(n?.longitude)}).sort((n,l)=>n.number-l.number);return r.every((n,l)=>n.number===l+1&&Number.isFinite(n.longitude))?r:null}toAngle(e){return 180+(this.effectiveAscendant??this.cusps?.[0]?.longitude??0)-e}renderData(e){let r=e.natalPlanets??[],a=e.transitPlanets??[],n=e.aspects??[],l=q(this.effectiveLang(),e.transitDate),d=n.length>0?this.t("Aspects to the natal chart: {{count}}",{count:n.length}):"",c=[...r,...a].some(p=>Number.isFinite(p.house));return s`<div class="wrap" part="card" aria-label="${this.t("Natal and transit bi-wheel")}"><div class="head" part="header"><h2 class="title">${this.t(this.heading)}</h2>${l||d?s`<p class="subtitle">${[l,d].filter(Boolean).join(" · ")}</p>`:i}</div>${this.renderWheel(r,a,n)} ${this.renderLegend(r,a,n,c?e.houseSystem:void 0)} ${this.renderSummary(e.summary)} ${this.renderPositions(r,a,c)} ${this.renderReadings(n)}</div>`}get orientationCaption(){return this.ascendantGiven?this.t("Ascendant on the left horizon"):this.cusps?this.t("First house cusp on the left horizon"):this.t("Sign wheel, 0° Aries on the left")}get cuspCaption(){return this.cusps?this.cuspsFromPage?this.t("House cusps supplied by the page"):this.t("House cusps from the response"):this.t("No house cusps")}renderWheel(e,r,a){return s`<svg viewBox="0 0 ${zs} ${zs}" part="chart" role="img" aria-label="${this.t("Bi-wheel with natal bodies on the inner ring and transiting bodies on the outer ring")}"><title>${this.t("Natal and transit bi-wheel")}</title><desc>${this.t("Twelve zodiac sign segments around a circular wheel. Natal bodies sit at their ecliptic longitudes on the inner ring and transiting bodies on the outer ring, and each line joins a transiting body to the natal body it aspects.")} ${this.orientationCaption}. ${this.cuspCaption}.</desc><circle class="wheel-line" cx="${P}" cy="${P}" r="${Ar}" stroke-width="1.5"/><circle class="wheel-line" cx="${P}" cy="${P}" r="${Es}" stroke-width="0.8"/><circle class="wheel-line" cx="${P}" cy="${P}" r="${Eo}" stroke-width="0.6"/><circle class="wheel-line" cx="${P}" cy="${P}" r="${Ms}" stroke-width="0.5"/>${this.renderTicks()} ${this.renderSpokes()} ${this.renderSigns()} ${this.renderHouses()} ${this.renderAspectLines(e,r,a)} ${this.renderRing(e,Sd,Rd,"natal-glyph",this.t("Natal"),1)} ${this.renderRing(r,wd,kd,"transit-glyph",this.t("Transiting"),-1)} ${this.renderAxis()}</svg>`}renderTicks(){let e=[];for(let r=0;r<360;r+=5){let a=this.toAngle(r),n=r%30===0,l=D(P,P,n?Es:Ar-5,a),d=D(P,P,Ar,a);e.push(L`<line class=${n?"tick tick-major":"tick"} x1=${l.x} y1=${l.y} x2=${d.x} y2=${d.y} stroke-width=${n?1:.5} />`)}return e}renderSpokes(){return Z.map((e,r)=>{let a=this.toAngle(r*30),n=D(P,P,Ms,a),l=D(P,P,Ar,a);return L`<line class="wheel-line" x1=${n.x} y1=${n.y} x2=${l.x} y2=${l.y} stroke-width="0.6" />`})}renderHouses(){let e=this.cusps;return e?e.map((r,a)=>{let n=e[(a+1)%12],l=this.toAngle(r.longitude),d=D(P,P,Ms,l),c=D(P,P,Es,l),p=D(P,P,Ad,this.toAngle(oa(r.longitude,n?.longitude??r.longitude+30)));return L`<g>
|
|
122
|
+
</g>`)};return r(t.person1?.ascendant,1),r(t.person2?.ascendant,2),e}renderInterAspectLines(t,e,r){let a=(n,l)=>{let d=N(l);for(let c of n)if(N(c.name)===d&&typeof c.longitude=="number")return c.longitude};return r.map(n=>{let l=a(t,n.planet1),d=a(e,n.planet2);if(l===void 0||d===void 0)return i;let c=D(U,U,Ds-12,this.toAngle(l)),p=D(U,U,lr+8,this.toAngle(d)),h=ce(n),m=Le[h]??"aspect-other",f=v(this.effectiveLang(),n.orb,1);return L`<line class=${`aspect ${m}`} style=${or(n)} x1=${c.x} y1=${c.y} x2=${p.x} y2=${p.y}><title>${$(n,"planet1")} ${$(n,"type",W(n))} ${$(n,"planet2")}${f?` (${this.t("Orb")} ${f}°)`:""}</title></line>`})}renderAspects(t){return s`<table><caption class="roxy-sr-only">${this.t("Inter-chart aspects: the planet from chart 1, the planet from chart 2, the aspect between them, the orb in degrees and the strength.")}</caption><thead><tr><th scope="col">${this.t("Planet 1")}</th><th scope="col">${this.t("Planet 2")}</th><th scope="col">${this.t("Aspect")}</th><th scope="col">${this.t("Orb")}</th><th scope="col">${this.t("Strength")}</th></tr></thead><tbody>${t.map(e=>s`<tr><td>${$(e,"planet1")}</td><td>${$(e,"planet2")}</td><td>${$(e,"type",W(e))}</td><td class="orb">${v(this.effectiveLang(),e.orb,1)}</td><td>${v(this.effectiveLang(),e.strength,0)}</td></tr>`)}</tbody></table>`}};Vt.styles=[x,nr,M,_,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.score{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-xl,1.5rem)}svg{width:100%;max-width:var(--roxy-chart-max-width,560px);aspect-ratio:1;height:auto;margin:0 auto;display:block}.wheel-line{fill:none;stroke:var(--roxy-border,#e4e4e7)}.sign{fill:var(--roxy-secondary,#475569);font-size:14px}.p1{fill:var(--roxy-accent,#f59e0b);font-size:13px;font-weight:600}.p2{fill:var(--roxy-info,#0284c7);font-size:13px;font-weight:600}.person-tag{opacity:.85;font-size:7px;font-weight:700}.planet-deg{fill:var(--roxy-muted,#71717a);font-size:7px;font-family:var(--roxy-font-sans)}.planet-deg .retro{fill:var(--roxy-danger,#dc2626)}.asc-tick{stroke:var(--roxy-accent-ink,#b45309);stroke-width:1px;opacity:.75}.asc-label{fill:var(--roxy-accent-ink,#b45309);font-size:9px;font-weight:700;font-family:var(--roxy-font-sans);letter-spacing:.04em}.legend-row{gap:var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin-top:calc(var(--roxy-space-xs,.25rem) * -1);flex-wrap:wrap;display:flex}.legend-row .caveat{font-style:italic}.legend-row .swatch{vertical-align:middle;border-radius:50%;width:8px;height:8px;margin-right:4px;display:inline-block}.summary{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);margin:0}.people{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));display:grid}.person{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);gap:.3rem;display:grid}.person-name{font-weight:var(--roxy-weight-bold,600);font-size:var(--roxy-text-sm,.875rem);align-items:center;gap:.4rem;display:flex}.person-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.person-dot.p1{background:var(--roxy-accent,#f59e0b)}.person-dot.p2{background:var(--roxy-info,#0284c7)}.big-three{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);flex-wrap:wrap;gap:.25rem .75rem;display:flex}.big-three span{align-items:baseline;gap:.25rem;display:inline-flex}.big-three .lbl{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.summary-pills{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.pill{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 8px}.pill--success{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.pill--danger{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.glyph{font-size:1.1em;line-height:1}.static-head{align-items:center;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;font-weight:500;display:flex}.asp-name{font-weight:var(--roxy-weight-bold,600);text-transform:capitalize}.asp-name.harmonious{color:var(--roxy-success-fg,#166534)}.asp-name.challenging{color:var(--roxy-danger-fg,#991b1b)}.context{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600)}.catalog>summary{cursor:pointer;font-weight:var(--roxy-weight-bold,600);font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a);align-items:center;gap:.5rem;display:flex}.scroll{min-width:0;margin-top:var(--roxy-space-sm,.5rem);overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}td.orb{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));display:grid}.lists h3{margin:0 0 var(--roxy-space-xs,.25rem) 0;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.lists ul{padding-left:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);margin:0}.missing-planets{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);line-height:1.5}.missing-planets code{font-family:var(--roxy-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);background:color-mix(in srgb, var(--roxy-fg,#0a0a0a) 6%, transparent);border-radius:4px;padding:0 4px;font-size:.95em}`],Vt=g([b("roxy-synastry-chart")],Vt);var wd=[["love","Love"],["career","Career"],["finances","Finances"],["health","Health"],["spirituality","Spirituality"]],Ze=class extends y{constructor(){super(...arguments);this.orientation="upright"}renderData(e){return"card"in e?this.renderDailyCard(e):this.renderFullCard(e)}renderDailyCard(e){let r=e.card,a=!!r.reversed,n=r.keywords??[],l=[r.arcana?`${r.arcana} arcana`:"",r.suit??""].filter(Boolean).join(" · "),d=!this.hideReadings;return s`<article class="card" part="card" aria-label="${r.name??"Tarot card"}">${this.renderImage(r.imageUrl,r.name,a)}<div part="header"><div class="meta">${l?`${l} · `:""}<span class="drawn">${a?"drawn reversed":"drawn upright"}</span></div><h2 class="title">${r.name??"Tarot card"}</h2>${e.dailyMessage&&d?s`<p class="message">${e.dailyMessage}</p>`:i} ${r.meaning&&d?s`<p class="reading">${r.meaning}</p>`:i} ${n.length>0&&d?s`<div class="chips">${n.map(c=>s`<span>${c}</span>`)}</div>`:i} ${this.renderGuidance(r,"tarot-daily-guidance")}</div></article>`}renderFullCard(e){let r=this.orientation==="reversed",a=r?e.reversed:e.upright,n=(r?e.keywords?.reversed:e.keywords?.upright)??a?.keywords??[],l=!this.hideReadings;return s`<article class="card" part="card" aria-label="${e.name??this.t("Tarot card")}">${this.renderImage(e.imageUrl,e.name,r)}<div part="header"><div class="meta">${[e.arcana?`${e.arcana} arcana`:"",e.suit??"",e.number!==void 0&&e.number!==null?`no. ${e.number}`:""].filter(Boolean).join(" · ")}</div><h2 class="title">${e.name??"Tarot card"}</h2>${se({items:[{id:"upright",label:this.t("Upright")},{id:"reversed",label:this.t("Reversed")}],active:this.orientation,onSelect:d=>{this.orientation=d},label:this.t("Card orientation"),idPrefix:"tarot",controls:!0})}<div id="tarot-panel-${this.orientation}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="tarot-tab-${this.orientation}">${a?.description&&l?s`<p class="reading">${a.description}</p>`:i} ${n.length>0&&l?s`<div class="chips">${n.map(d=>s`<span>${d}</span>`)}</div>`:i} ${this.renderGuidance(a,`tarot-${this.orientation}-guidance`)}</div></div></article>`}renderImage(e,r,a){let n=`image ${a?"reversed":""}`;return e?s`<img class="${n}" part="chart" src="${e}" alt="${r??"Tarot card"}">`:s`<div class="${n}" part="chart" style="aspect-ratio:0.6;display:flex;align-items:center;justify-content:center;color:var(--roxy-muted)">${r??"?"}</div>`}renderGuidance(e,r){if(!e)return i;let a=wd.map(([n,l])=>({label:l,body:e[n]??""}));return this.renderInterpretation(a,r,"Guidance")}};Ze.styles=[x,M,_,ee,u`.card{background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-lg,1.5rem);grid-template-columns:minmax(0,9rem) 1fr;align-items:start;display:grid}@container (width<=480px){.card{grid-template-columns:1fr}}.image{border-radius:var(--roxy-radius-md,8px);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);width:100%;height:auto;transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.image.reversed{transform:rotate(180deg)}.title{font-size:var(--roxy-text-xl,1.5rem);font-weight:var(--roxy-weight-bold,600);letter-spacing:var(--roxy-tracking-tight);margin:0}.meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);text-transform:uppercase;letter-spacing:.06em;margin-bottom:var(--roxy-space-sm,.5rem)}.drawn{color:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600)}.message{color:var(--roxy-fg,#0a0a0a);margin:var(--roxy-space-sm,.5rem) 0 var(--roxy-space-md,1rem)}.reading{margin:0 0 var(--roxy-space-md,1rem);white-space:pre-line}.roxy-tablist{margin:var(--roxy-space-sm,.5rem) 0}.chips{gap:var(--roxy-space-xs,.25rem);margin-top:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}`],g([G()],Ze.prototype,"orientation",2),Ze=g([b("roxy-tarot-card")],Ze);var We=class extends y{constructor(){super(...arguments);this.heading=""}renderData(e){let r=e.cards??[];if(r.length===0)return this.renderEmpty();let a=this.heading||"Tarot deck",n=typeof e.total=="number"?e.total:r.length;return s`<section class="wrap" part="card" aria-label="${a}"><header class="head" part="header"><h2 class="title">${a}</h2><span class="count">${n} ${n===1?"card":"cards"}</span></header><ul class="grid" part="section cards">${r.map(l=>s`<li class="tile">${l.imageUrl?s`<img class="art" src="${l.imageUrl}" alt="${l.name??"Tarot card"}" loading="lazy">`:s`<div class="art" aria-hidden="true"></div>`}<p class="name">${l.name}</p><p class="meta">${kd(l)}</p></li>`)}</ul></section>`}};We.styles=[x,u`.wrap{gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.count{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem)}.grid{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fill,minmax(7rem,1fr));margin:0;padding:0;list-style:none;display:grid}.tile{gap:var(--roxy-space-xs,.25rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem);box-shadow:var(--roxy-shadow-sm);display:grid}.art{aspect-ratio:2/3;border-radius:var(--roxy-radius-sm,4px);object-fit:cover;background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 35%, transparent);width:100%}.name{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);margin:0}.meta{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0}`],g([S({type:String,reflect:!0})],We.prototype,"heading",2),We=g([b("roxy-tarot-catalog")],We);function kd(o){return o.suit?`${N(o.arcana)} · ${N(o.suit)}`:`${N(o.arcana)} Arcana`}function Sd(o){return o&&o.charAt(0).toUpperCase()+o.slice(1)}var Je=class extends y{constructor(){super(...arguments);this.spread="three-card"}renderData(e){let r="answer"in e,a="cards"in e&&!("spread"in e),n=a?[]:"positions"in e?e.positions??[]:[],l=a&&"cards"in e?e.cards:[],d=r?e.answer:void 0,c=r?e.strength:void 0,p=r?e.card:void 0,h=r?"Yes or no":a?"Card draw":Sd(("spread"in e?e.spread:"")||this.spread.replace(/-/g," ")),m="question"in e?e.question:void 0,f="summary"in e?e.summary:void 0,C=r?e.interpretation:void 0,w=d?d.toLowerCase().replace(/[^a-z]/g,""):"";return s`<article class="wrap" part="card" aria-label="${this.t("Tarot spread")}"><header class="head" part="header"><h2 class="title">${h}</h2>${m?s`<span class="question">"${m}"</span>`:i}</header>${r?s`<div class="verdict" part="section verdict"><div class="card"><div class="image" part="chart">${p?.imageUrl?s`<img src="${p.imageUrl}" alt="${p.name??"tarot card"}" class="${p.reversed?"reversed":""}">`:s`${p?.name??"?"}`}</div><p class="name">${p?.name??""} ${p?.reversed?s`<small>${this.t("(reversed)")}</small>`:i}</p>${p?.arcana?s`<p class="arcana">${this.t("{{arcana}} arcana",{arcana:p.arcana})}</p>`:i}</div><div class="meta" part="details"><div><span class="${`answer ${w}`}">${d}</span> ${c?s`<small>· ${c}</small>`:i}</div>${p?.keywords&&p.keywords.length>0&&!this.hideReadings?s`<div class="chips">${p.keywords.map(k=>s`<span>${k}</span>`)}</div>`:i}</div></div>`:i} ${n.length>0?s`<div class="grid" part="section positions">${n.map(k=>s`<div class="card"><p class="label">${k.name??""}</p><div class="image" part="chart">${k.card?.imageUrl?s`<img src="${k.card.imageUrl}" alt="${k.card.name??"tarot card"}" class="${k.card.reversed?"reversed":""}">`:s`${k.card?.name??"?"}`}</div><p class="name">${k.card?.name??""} ${k.card?.reversed?s`<small>${this.t("(reversed)")}</small>`:i}</p>${k.interpretation&&!this.hideReadings?s`<p class="interp">${k.interpretation}</p>`:i}</div>`)}</div>`:i} ${l.length>0?s`<div class="grid" part="section cards">${l.map(k=>s`<div class="card"><div class="image" part="chart">${k.imageUrl?s`<img src="${k.imageUrl}" alt="${k.name??"tarot card"}" class="${k.reversed?"reversed":""}">`:s`${k.name??"?"}`}</div><p class="name">${k.name??""} ${k.reversed?s`<small>${this.t("(reversed)")}</small>`:i}</p>${k.meaning&&!this.hideReadings?s`<p class="interp">${k.meaning}</p>`:i}</div>`)}</div>`:i} ${f&&!this.hideReadings?s`<p class="reading">${f}</p>`:i} ${C&&!this.hideReadings?s`<p class="reading">${C}</p>`:i}</article>`}};Je.styles=[x,u`.wrap{gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;align-items:baseline;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;margin:0}.question{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);font-style:italic}.answer{border-radius:var(--roxy-radius-full,9999px);font-weight:var(--roxy-weight-bold,600);font-size:var(--roxy-text-base,1rem);text-transform:uppercase;letter-spacing:.06em;padding:4px 14px;display:inline-block}.answer.yes{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.answer.no{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.answer.maybe{background:color-mix(in srgb, var(--roxy-warning,#ea580c) 16%, transparent);color:var(--roxy-warning-fg,#9a3412)}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.chips span{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 8px}.verdict{gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,8rem) 1fr;align-items:start;display:grid}@container (width<=26rem){.verdict{grid-template-columns:1fr}}.verdict .meta{gap:var(--roxy-space-sm,.5rem);justify-items:start;display:grid}.arcana{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.grid{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));display:grid}.card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem);background:var(--roxy-surface,#fff);gap:var(--roxy-space-xs,.25rem);grid-template-columns:minmax(0,1fr);display:grid}.label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.image{aspect-ratio:.6;background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);border-radius:var(--roxy-radius-sm,4px);width:100%;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);justify-content:center;align-items:center;display:flex;overflow:hidden}.image img{object-fit:cover;width:100%;height:100%;transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1))}.image img.reversed{transform:rotate(180deg)}.name{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);margin:0}.interp{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-secondary,#475569);margin:0}.reading{color:var(--roxy-fg,#0a0a0a);margin:0}`],g([S({type:String,reflect:!0})],Je.prototype,"spread",2),Je=g([b("roxy-tarot-spread")],Je);var Ps=400,P=Ps/2,Rd=184,Ar=170,Cd=154,Ms=140,Ad=124,Td=135,Dd=94,Ed=83,Mo=112,Md=104,zs=70,zd=58,Pd=13,Nd=15,Gd=8,_d=4,dr=(o,t)=>R(o)??t,zo=o=>{let t=re(o);return`${t.degree}°${String(t.minute).padStart(2,"0")}'`},wa=o=>{let t=new Map;for(let e of o)t.set(N(e.name),e);return t},xe=class extends y{constructor(){super(...arguments);this.heading="Transits"}get payload(){return this.data}get effectiveAscendant(){for(let e of[this.ascendant,this.payload?.ascendant?.longitude])if(typeof e=="number"&&Number.isFinite(e))return e}get ascendantGiven(){return this.effectiveAscendant!==void 0}get cuspsFromPage(){return Array.isArray(this.houses)}get cusps(){let e=this.houses??this.payload?.houses;if(!Array.isArray(e)||e.length!==12)return null;let r=e.map((n,l)=>typeof n=="number"?{number:l+1,longitude:n}:{number:Number(n?.number),longitude:Number(n?.longitude)}).sort((n,l)=>n.number-l.number);return r.every((n,l)=>n.number===l+1&&Number.isFinite(n.longitude))?r:null}toAngle(e){return 180+(this.effectiveAscendant??this.cusps?.[0]?.longitude??0)-e}renderData(e){let r=e.natalPlanets??[],a=e.transitPlanets??[],n=e.aspects??[],l=q(this.effectiveLang(),e.transitDate),d=n.length>0?this.t("Aspects to the natal chart: {{count}}",{count:n.length}):"",c=[...r,...a].some(p=>Number.isFinite(p.house));return s`<div class="wrap" part="card" aria-label="${this.t("Natal and transit bi-wheel")}"><div class="head" part="header"><h2 class="title">${this.t(this.heading)}</h2>${l||d?s`<p class="subtitle">${[l,d].filter(Boolean).join(" · ")}</p>`:i}</div>${this.renderWheel(r,a,n)} ${this.renderLegend(r,a,n,c?e.houseSystem:void 0)} ${this.renderSummary(e.summary)} ${this.renderPositions(r,a,c)} ${this.renderReadings(n)}</div>`}get orientationCaption(){return this.ascendantGiven?this.t("Ascendant on the left horizon"):this.cusps?this.t("First house cusp on the left horizon"):this.t("Sign wheel, 0° Aries on the left")}get cuspCaption(){return this.cusps?this.cuspsFromPage?this.t("House cusps supplied by the page"):this.t("House cusps from the response"):this.t("No house cusps")}renderWheel(e,r,a){return s`<svg viewBox="0 0 ${Ps} ${Ps}" part="chart" role="img" aria-label="${this.t("Bi-wheel with natal bodies on the inner ring and transiting bodies on the outer ring")}"><title>${this.t("Natal and transit bi-wheel")}</title><desc>${this.t("Twelve zodiac sign segments around a circular wheel. Natal bodies sit at their ecliptic longitudes on the inner ring and transiting bodies on the outer ring, and each line joins a transiting body to the natal body it aspects.")} ${this.orientationCaption}. ${this.cuspCaption}.</desc><circle class="wheel-line" cx="${P}" cy="${P}" r="${Ar}" stroke-width="1.5"/><circle class="wheel-line" cx="${P}" cy="${P}" r="${Ms}" stroke-width="0.8"/><circle class="wheel-line" cx="${P}" cy="${P}" r="${Mo}" stroke-width="0.6"/><circle class="wheel-line" cx="${P}" cy="${P}" r="${zs}" stroke-width="0.5"/>${this.renderTicks()} ${this.renderSpokes()} ${this.renderSigns()} ${this.renderHouses()} ${this.renderAspectLines(e,r,a)} ${this.renderRing(e,Dd,Ed,"natal-glyph",this.t("Natal"),1)} ${this.renderRing(r,Ad,Td,"transit-glyph",this.t("Transiting"),-1)} ${this.renderAxis()}</svg>`}renderTicks(){let e=[];for(let r=0;r<360;r+=5){let a=this.toAngle(r),n=r%30===0,l=D(P,P,n?Ms:Ar-5,a),d=D(P,P,Ar,a);e.push(L`<line class=${n?"tick tick-major":"tick"} x1=${l.x} y1=${l.y} x2=${d.x} y2=${d.y} stroke-width=${n?1:.5} />`)}return e}renderSpokes(){return Z.map((e,r)=>{let a=this.toAngle(r*30),n=D(P,P,zs,a),l=D(P,P,Ar,a);return L`<line class="wheel-line" x1=${n.x} y1=${n.y} x2=${l.x} y2=${l.y} stroke-width="0.6" />`})}renderHouses(){let e=this.cusps;return e?e.map((r,a)=>{let n=e[(a+1)%12],l=this.toAngle(r.longitude),d=D(P,P,zs,l),c=D(P,P,Ms,l),p=D(P,P,zd,this.toAngle(oa(r.longitude,n?.longitude??r.longitude+30)));return L`<g>
|
|
123
123
|
<line class="house-cusp" x1=${d.x} y1=${d.y} x2=${c.x} y2=${c.y} />
|
|
124
124
|
<text class="house-num" x=${p.x} y=${p.y} text-anchor="middle" dominant-baseline="central">${r.number}</text>
|
|
125
|
-
</g>`}):i}renderSigns(){return Z.map((e,r)=>{let a=D(P,P
|
|
126
|
-
${
|
|
125
|
+
</g>`}):i}renderSigns(){return Z.map((e,r)=>{let a=D(P,P,Cd,this.toAngle(r*30+15));return L`<text class="sign-glyph" x=${a.x} y=${a.y} text-anchor="middle" dominant-baseline="central">${z(e)}</text>`})}renderRing(e,r,a,n,l,d){let c=Math.max(Lt(Pd,r),Lt(Nd,a));return Sr(e,p=>p.longitude,c).map(({item:p,longitude:h,displayLongitude:m})=>{let f=this.toAngle(m),C=D(P,P,r,f),w=D(P,P,a,f),k=p.isRetrograde===!0,B=`${re(h).degree}°`,V=$(p,"name"),de=`${l} ${V}${k?` ${this.t("retrograde")}`:""} - ${zo(h)} ${$(p,"sign")}`,Jt=Math.abs(m-h)>.5,Gs=D(P,P,r+d*Gd,this.toAngle(h)),_s=D(P,P,r+d*_d,f);return L`<g>
|
|
126
|
+
${Jt?L`<line class=${`leader ${n}`} x1=${Gs.x} y1=${Gs.y} x2=${_s.x} y2=${_s.y} />`:i}
|
|
127
127
|
<text class=${n} x=${C.x} y=${C.y} text-anchor="middle" dominant-baseline="central"><title>${de}</title>${dr(p.name,V)}</text>
|
|
128
128
|
<text class="planet-deg" x=${w.x} y=${w.y} text-anchor="middle" dominant-baseline="central">${B}${k?L`<tspan class="retro"> ℞</tspan>`:i}</text>
|
|
129
|
-
</g>`})}renderAspectLines(e,r,a){let n=wa(e),l=wa(r);return a.map(d=>{let c=l.get(N(d.planet1)),p=n.get(N(d.planet2));if(!c||!p||!Number.isFinite(c.longitude)||!Number.isFinite(p.longitude))return i;let h=D(P,P,
|
|
129
|
+
</g>`})}renderAspectLines(e,r,a){let n=wa(e),l=wa(r);return a.map(d=>{let c=l.get(N(d.planet1)),p=n.get(N(d.planet2));if(!c||!p||!Number.isFinite(c.longitude)||!Number.isFinite(p.longitude))return i;let h=D(P,P,Mo,this.toAngle(c.longitude)),m=D(P,P,Md,this.toAngle(p.longitude)),f=ce(d),C=v(this.effectiveLang(),d.orb,1);return L`<line class=${`aspect ${Le[f]??"aspect-other"}`} style=${or(d)} x1=${h.x} y1=${h.y} x2=${m.x} y2=${m.y}><title>${this.t("Transiting")} ${$(d,"planet1")} ${$(d,"type",f)} ${this.t("Natal")} ${$(d,"planet2")}${C?` (${this.t("Orb")} ${C}°)`:""}</title></line>`})}renderAxis(){let e=this.effectiveAscendant;if(e===void 0)return i;let r=he(e);return[r,kr(r)].map((a,n)=>{let l=this.toAngle(a),d=D(P,P,Ar,l),c=D(P,P,Rd,l);return L`<g>
|
|
130
130
|
<line class="axis-tick" x1=${d.x} y1=${d.y} x2=${c.x} y2=${c.y} />
|
|
131
131
|
<text class="axis-label" x=${c.x} y=${c.y} text-anchor="middle" dominant-baseline="central">${n===0?this.t("ASC"):this.t("DSC")}</text>
|
|
132
|
-
</g>`})}renderLegend(e,r,a,n){return s`<div class="legend" part="legend"><span><span class="swatch swatch--natal"></span>${this.t("{{count}} natal bodies",{count:e.length})}</span> <span><span class="swatch swatch--transit"></span>${this.t("{{count}} transiting bodies",{count:r.length})}</span> ${a.length>0?s`<span><span class="swatch swatch--harmonious"></span>${this.t("Harmonious")}</span> <span><span class="swatch swatch--challenging"></span>${this.t("Challenging")}</span>`:i} ${n?s`<span>${this.t("{{system}} houses",{system:n})}</span>`:i} <span>${this.orientationCaption}</span> <span>${this.cuspCaption}</span></div>`}renderSummary(e){if(!e)return i;let r=Object.entries(e.byType??{}).sort((a,n)=>n[1]-a[1]);return s`<div part="details"><div class="summary-pills" role="region" aria-label="${this.t("Transit aspect summary")}">${typeof e.total=="number"?s`<span class="pill pill--muted">${this.t("Total")}: ${e.total}</span>`:i} <span class="pill pill--success">${this.t("Harmonious")}: ${e.harmonious}</span> <span class="pill pill--danger">${this.t("Challenging")}: ${e.challenging}</span> <span class="pill pill--muted">${this.t("Neutral")}: ${e.neutral}</span> ${r.map(([a,n])=>s`<span class="pill pill--muted">${W({type:a})}: ${n}</span>`)}</div>${e.strongest?this.renderStrongest(e.strongest):i}</div>`}renderStrongest(e){let r=$(e,"planet1"),a=$(e,"planet2");return s`<div class="strongest" part="details strongest"><span class="label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph">${dr(e.planet1,r)}</span>${this.t("Transiting")} ${r} <span class="nature-badge ${(e.interpretation??"neutral").toLowerCase()}">${$(e,"type",W(e))}</span> <span aria-hidden="true" class="glyph">${dr(e.planet2,a)}</span>${this.t("Natal")} ${a} <span class="meta">${e.isApplying?this.t("Applying"):this.t("Separating")} · ${this.t("Orb")} ${v(this.effectiveLang(),e.orb,2)}° · ${this.t("Strength")} ${v(this.effectiveLang(),e.strength,0)}</span></div>`}renderPositions(e,r,a){if(e.length===0&&r.length===0)return i;let n=wa(e),l=wa(r),d=e.length>0?e:r,c=h=>h?s`${z(h.sign)??""} ${Mo(h.longitude)} ${$(h,"sign")}${h.isRetrograde?s`<span class="retro-badge" aria-label="${this.t("retrograde")}">℞</span>`:i}`:i,p=h=>a?s`<td>${h&&Number.isFinite(h.house)?h.house:i}</td>`:i;return s`<div class="scroll" part="table" tabindex="0" role="region" aria-labelledby="transit-positions"><table><caption id="transit-positions" class="roxy-sr-only">${this.t("Every body with its natal position and its position on the transit date, each as a zodiac sign and a degree.")} ${a?this.t("Both house numbers are read against the natal house cusps."):i}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col"><span class="swatch swatch--natal" aria-hidden="true"></span>${this.t("Natal")}</th>${a?s`<th scope="col">${this.t("Natal house")}</th>`:i}<th scope="col"><span class="swatch swatch--transit" aria-hidden="true"></span>${this.t("Transiting")}</th>${a?s`<th scope="col">${this.t("Transiting house")}</th>`:i}</tr></thead><tbody>${d.map(h=>{let m=N(h.name),f=$(h,"name");return s`<tr><th scope="row"><span aria-hidden="true" class="glyph">${dr(h.name,f)}</span> ${f}</th><td>${c(n.get(m))}</td>${p(n.get(m))}<td>${c(l.get(m))}</td>${p(l.get(m))}</tr>`})}</tbody></table></div>`}renderReadings(e){let r=e.filter(a=>a.transitInterpretation?.summary).map(a=>{let n=a.transitInterpretation,l=$(a,"planet1"),d=$(a,"planet2");return{label:`${dr(a.planet1,l)} ${l} ${$(a,"type",W(a))} ${dr(a.planet2,d)} ${d}`,aside:`${this.t("Orb")} ${v(this.effectiveLang(),a.orb,2)}° · ${this.t("Strength")} ${v(this.effectiveLang(),a.strength,0)}`,body:n.summary,extra:s`${n.impact?s`<p><strong>${this.t("Impact")}:</strong> ${n.impact}</p>`:i} ${n.timing?s`<p><strong>${this.t("Timing")}:</strong> ${n.timing}</p>`:i} ${n.guidance?s`<p><strong>${this.t("Guidance")}:</strong> ${n.guidance}</p>`:i} ${st(n.keywords)}`}});return this.renderInterpretation(r,"transit-aspect-readings","Transit readings")}};xe.styles=[x,nr,M,O,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}svg{width:100%;max-width:var(--roxy-chart-max-width,560px);aspect-ratio:1;height:auto;margin:0 auto;display:block}.wheel-line{fill:none;stroke:var(--roxy-border,#e4e4e7)}.sign-glyph{fill:var(--roxy-secondary,#475569);font-size:14px;font-family:var(--roxy-font-sans)}.natal-glyph{fill:var(--roxy-accent-ink,#b45309);font-size:13px;font-weight:600;font-family:var(--roxy-font-sans)}.transit-glyph{fill:var(--roxy-info,#0284c7);font-size:13px;font-weight:600;font-family:var(--roxy-font-sans)}.leader{stroke:currentColor;stroke-width:.6px;opacity:.6}.leader.natal-glyph{stroke:var(--roxy-accent-ink,#b45309)}.leader.transit-glyph{stroke:var(--roxy-info,#0284c7)}.planet-deg{fill:var(--roxy-muted,#71717a);font-size:7px;font-family:var(--roxy-font-sans)}.planet-deg .retro{fill:var(--roxy-danger,#dc2626)}@container (width<=480px){.sign-glyph,.natal-glyph,.transit-glyph{font-size:18px}.planet-deg{font-size:10px}.house-num{font-size:12px}}.tick{stroke:var(--roxy-border,#e4e4e7)}.tick-major{stroke:var(--roxy-secondary,#475569)}.house-cusp{stroke:var(--roxy-secondary,#475569);stroke-width:1px;stroke-dasharray:3 3}.house-num{fill:var(--roxy-secondary,#475569);font-size:9px;font-family:var(--roxy-font-sans)}.axis-tick{stroke:var(--roxy-accent-ink,#b45309);stroke-width:1.5px}.axis-label{fill:var(--roxy-accent-ink,#b45309);font-size:10px;font-weight:700;font-family:var(--roxy-font-sans);letter-spacing:.04em}.swatch{vertical-align:middle;border-radius:50%;width:8px;height:8px;margin-right:4px;display:inline-block}.swatch--natal{background:var(--roxy-accent-ink,#b45309)}.swatch--transit{background:var(--roxy-info,#0284c7)}.swatch--harmonious{background:var(--roxy-success,#16a34a)}.swatch--challenging{background:var(--roxy-danger,#dc2626)}.legend{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.summary-pills{gap:var(--roxy-space-sm,.5rem);margin-bottom:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.pill{padding:2px var(--roxy-space-sm,.5rem);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);border:1px solid;align-items:center;gap:4px;display:inline-flex}.pill--muted{color:var(--roxy-fg,#0a0a0a);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent)}.pill--success{color:var(--roxy-success-fg,#166534);background:color-mix(in srgb, var(--roxy-success,#16a34a) 10%, transparent)}.pill--danger{color:var(--roxy-danger-fg,#991b1b);background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent)}.strongest{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.strongest .label{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600)}.strongest .meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.glyph{font-size:1.1em;line-height:1}.nature-badge{font-size:var(--roxy-text-xs,.75rem);text-transform:capitalize;border-radius:9999px;padding:1px 8px;font-weight:600;display:inline-block}.nature-badge.harmonious{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.nature-badge.challenging{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.nature-badge.neutral{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a)}.scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left;white-space:nowrap}thead th{color:var(--roxy-muted,#71717a);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}th{font-weight:var(--roxy-weight-bold,600)}td{font-variant-numeric:tabular-nums}.retro-badge{color:var(--roxy-danger-fg,#991b1b);font-weight:var(--roxy-weight-bold,600);margin-left:.25rem}`],g([S({type:String})],xe.prototype,"heading",2),g([S({type:Number})],xe.prototype,"ascendant",2),g([S({type:Array})],xe.prototype,"houses",2),xe=g([b("roxy-transit-wheel")],xe);var Xe=class extends y{constructor(){super(...arguments);this.tab="positions"}renderData(e){if(!e.transitPlanets?.length)return this.renderEmpty();let{transitDate:r,transitTime:a,transitPlanets:n,transitAspects:l,summary:d}=e,c=[A(this.effectiveLang(),r),te(this.effectiveLang(),a)].filter(Boolean).join(" "),p=l?.length??0,h=this.tab;return s`<div class="wrap" part="card" aria-label="${this.t("Transits")}"><div class="head" part="header"><h2 class="title">${this.t("Transits")}</h2>${c?s`<p class="subtitle">${c}</p>`:i}</div>${p>0?s`${se({items:[{id:"positions",label:this.t("Positions")},{id:"aspects",label:this.t("Aspects ({{count}})",{count:p})}],active:h,onSelect:m=>{this.tab=m},label:this.t("Transit views"),idPrefix:"transits",controls:!0})}<div id="transits-panel-${h}" part="panel" role="tabpanel" aria-labelledby="transits-tab-${h}">${h==="positions"?s`<div class="overflow-scroll">${this.renderPlanetsTable(n)}</div>`:s`${d?this.renderSummaryPills(d):i}<div class="overflow-scroll">${this.renderAspectsList(l??[])}</div>`}</div>`:s`<div class="overflow-scroll">${this.renderPlanetsTable(n)}</div>`}</div>`}renderSummaryPills(e){return s`<div class="summary-pills" part="details" role="region" aria-label="${this.t("Aspect summary")}"><span class="pill pill--muted">${this.t("Total")}: ${e.totalAspects} </span><span class="pill pill--success">${this.t("Harmonious")}: ${e.harmonious} </span><span class="pill pill--danger">${this.t("Challenging")}: ${e.challenging} </span><span class="pill pill--muted">${this.t("Neutral")}: ${e.neutral}</span></div>`}renderPlanetsTable(e){return s`<table class="planets-table" part="table"><caption class="roxy-sr-only">${this.t("Transiting planets: each planet with its current sign, degree and daily speed.")}</caption><thead><tr><th scope="col">${this.t("Planet")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Speed")}</th></tr></thead><tbody>${e.map(r=>{let a=R(r.name)??"",n=z(r.sign)??"",l=r.speed>=0?"↑":"↓";return s`<tr><td><div class="planet-cell"><span class="glyph" aria-hidden="true">${a}</span> ${r.name} ${r.isRetrograde?s`<span class="retro-badge" aria-label="${this.t("retrograde")}">R</span>`:i}</div></td><td><div class="planet-cell"><span class="glyph" aria-hidden="true">${n}</span> ${r.sign}</div></td><td class="num">${v(this.effectiveLang(),r.degree,2)}</td><td class="speed"><span class="speed-arrow" aria-hidden="true">${l}</span> ${v(this.effectiveLang(),Math.abs(r.speed),2)}${this.t("°/day")}</td></tr>`})}</tbody></table>`}renderAspectsList(e){return s`<div part="section aspects" role="list" aria-label="${this.t("Transit aspects")}">${e.map((r,a)=>{let n=R(r.transitPlanet)??"",l=R(r.natalPlanet)??"",d=(r.nature??"neutral").toLowerCase(),c=r.interpretation,p=W(r),h=r.isApplying?this.t("Applying"):this.t("Separating");return s`<details class="aspect-card" part="reading" role="listitem" name="transit-aspects" ?open="${a===0}"><summary><span aria-hidden="true">${n}</span> ${r.transitPlanet} <span class="nature-badge ${d}">${p}</span> <span aria-hidden="true">${l}</span> ${r.natalPlanet} <span class="meta">${this.t("{{status}} · orb {{orb}}° · str {{strength}}",{status:h,orb:v(this.effectiveLang(),r.orb,2),strength:v(this.effectiveLang(),r.strength,1)})} </span>${j()}</summary><div class="interp-body">${xr(c,this.translator)}</div></details>`})}</div>`}};Xe.styles=[x,ee,M,Ha,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.summary-pills{gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.pill{padding:2px var(--roxy-space-sm,.5rem);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);border:1px solid;align-items:center;gap:4px;display:inline-flex}.pill--muted{color:var(--roxy-fg,#0a0a0a);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent)}.pill--success{color:var(--roxy-success-fg,#166534);background:color-mix(in srgb, var(--roxy-success,#16a34a) 10%, transparent)}.pill--danger{color:var(--roxy-danger-fg,#991b1b);background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}.section-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-xs,.25rem) 0}.glyph{margin-right:2px;font-size:1.1em;line-height:1}.planet-cell{white-space:nowrap;align-items:center;gap:4px;display:flex}.retro-badge{border-radius:var(--roxy-radius-sm,4px);background:color-mix(in srgb, var(--roxy-warning,#ea580c) 12%, transparent);color:var(--roxy-warning-fg,#9a3412);font-size:.7em;font-weight:var(--roxy-weight-bold,600);vertical-align:middle;margin-left:2px;padding:1px 4px;display:inline-block}.speed{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a);white-space:nowrap}.speed-arrow{font-size:.85em}td.num{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a)}.overflow-scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}.aspect-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem)}.aspect-card summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);flex-wrap:wrap;align-items:center;gap:.5em;font-weight:500;display:flex}.aspect-card summary .meta{color:var(--roxy-muted,#71717a);font-weight:400;font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.aspect-card .interp-body{margin-top:var(--roxy-space-xs,.25rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);line-height:1.45}.aspect-card .interp-body p{margin:0 0 var(--roxy-space-xs,.25rem)}.nature-badge{font-size:var(--roxy-text-xs,.75rem);border-radius:9999px;padding:1px 8px;font-weight:600;display:inline-block}.nature-badge.harmonious{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.nature-badge.challenging{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.nature-badge.neutral{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a)}`],g([G()],Xe.prototype,"tab",2),Xe=g([b("roxy-transits-table")],Xe);var zd=[{key:"timeBased",titleSource:"Time based",noteSource:"From the eightfold division of the day or night, so these depend on the birth time, the place and the weekday."},{key:"sunBased",titleSource:"Sun based",noteSource:"The Dhuma group, derived by fixed arc from the Sun. Dhuma is the Sun plus 133 degrees 20 minutes, and each of the rest follows from the one before it."}],Vt=class extends y{renderData(t){let e=zd.filter(r=>t[r.key]?.length);return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Upagraha positions")}"><header class="head" part="header"><h2 class="title">${this.t("Upagrahas")}</h2>${F(this.effectiveLang(),t.frame,this.translator)}</header>${e.map(r=>this.renderGroup(r,t[r.key]))}</div>`:this.renderEmpty()}renderGroup(t,e){let r=s`<div class="group-head"><h3 class="group-title">${this.t(t.titleSource)}</h3><p class="group-note">${this.t(t.noteSource)}</p></div><div class="scroll" part="table" tabindex="0"><table role="table"><caption class="roxy-sr-only">${this.t("{{group}} upagrahas: each sub-planet with its rashi, degree in sign, sidereal longitude, and nakshatra with pada.",{group:this.t(t.titleSource)})}</caption><thead><tr><th scope="col">${this.t("Upagraha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Longitude")}</th><th scope="col">${this.t("Nakshatra")}</th><th scope="col">${this.t("Pada")}</th></tr></thead><tbody>${e.map(a=>{let n=z(a.rashi)??"";return s`<tr><td class="name">${a.name}</td><td>${n?s`<span class="glyph">${n}</span>`:i}${a.rashi??""}</td><td class="num">${typeof a.longitude=="number"?ie(a.longitude):""}</td><td class="num">${v(this.effectiveLang(),a.longitude,2)}</td><td>${a.nakshatra??""}</td><td class="num">${a.nakshatraPada??""}</td></tr>`})}</tbody></table></div>`;return t.key==="timeBased"?s`<section part="section time-based">${r}</section>`:s`<section part="section sun-based">${r}</section>`}};Vt.styles=[x,I,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7)}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.group-head{padding:var(--roxy-space-md,1rem) var(--roxy-space-md,1rem) 0;gap:var(--roxy-space-xs,.25rem);display:grid}.group-title{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);margin:0}.group-note{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.scroll{min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:520px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}td.name{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.4em}.num{font-variant-numeric:tabular-nums}`],Vt=g([b("roxy-upagraha-table")],Vt);var qt=class extends y{renderData(t){let e=t.aspects??[],r=t.mutualAspects??[],a=t.planets??[];if(e.length===0&&r.length===0)return this.renderEmpty();let n=t.datetime?`${A(this.effectiveLang(),t.datetime)}, ${te(this.effectiveLang(),t.datetime)}`:"";return s`<div class="wrap" part="card" aria-label="${this.t("Vedic aspects")}"><div class="head" part="header"><h2 class="title">${this.t("Vedic aspects")}</h2>${n?s`<p class="subtitle">${this.t("Chart time {{when}}",{when:n})}</p>`:i}</div>${a.length>0?s`<div part="section positions"><p class="section-label">${this.t("Sidereal positions")}</p><div class="mutual">${a.map(l=>s`<span class="position"><strong>${l.name}</strong> ${typeof l.longitude=="number"?ie(l.longitude):l.sign??""}</span>`)}</div></div>`:i} ${r.length>0?s`<div part="section mutual-aspects"><p class="section-label">${this.t("Mutual aspects")}</p><div class="mutual">${r.map(l=>s`<span class="mutual-pill">${l.planet1} ⟷ ${l.planet2} ${l.aspectType?s`<span class="rel">${l.aspectType}</span>`:i}</span>`)}</div></div>`:i} ${e.length>0?s`<div class="overflow-scroll" part="table"><table><caption class="roxy-sr-only">${this.t("Vedic planetary aspects: aspecting planet, aspect type, aspected planet, strength and orb.")}</caption><thead><tr><th scope="col">${this.t("From")}</th><th scope="col">${this.t("Aspect")}</th><th scope="col">${this.t("To")}</th><th scope="col">${this.t("Strength")}</th><th scope="col">${this.t("Orb")}</th></tr></thead><tbody>${e.map(l=>s`<tr><td>${l.aspectingPlanet}</td><td><span class="kind">${l.aspectType}</span></td><td>${l.aspectedPlanet}</td><td>${typeof l.strength=="number"?s`<span class="bar" style="width:${Math.max(4,Math.min(100,l.strength)*.4)}px"></span><span class="num">${v(this.effectiveLang(),l.strength,0)}</span>`:i}</td><td class="num">${typeof l.orb=="number"?`${v(this.effectiveLang(),l.orb,2)}°`:""}</td></tr>`)}</tbody></table></div>`:i}</div>`}};qt.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.section-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-xs,.25rem) 0}.mutual{gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.mutual-pill{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);align-items:center;gap:.35rem;padding:2px 10px;display:inline-flex}.mutual-pill .rel{font-size:var(--roxy-text-xs,.75rem);font-weight:400}.position{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-fg,#0a0a0a);font-variant-numeric:tabular-nums;align-items:baseline;gap:.35rem;padding:2px 10px;display:inline-flex}.position strong{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem)}.overflow-scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}tbody tr:last-child td{border-bottom:none}.kind{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);font-size:var(--roxy-text-xs,.75rem);padding:1px 8px;font-weight:600;display:inline-block}.num{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a)}.bar{background:var(--roxy-accent,#f59e0b);vertical-align:middle;border-radius:3px;height:6px;margin-right:6px;display:inline-block}`],qt=g([b("roxy-vedic-aspects")],qt);var Ps={favourable:"Favourable",underdelivered:"Underdelivered",obstructed:"Obstructed",void:"Void",aggravated:"Aggravated",unfavourable:"Unfavourable"},Pd=Object.keys(Ps),zo=8,Po={"very-strong":"Very strong",strong:"Strong",moderate:"Moderate",weak:"Weak"},No={mahadasha:"Mahadasha",antardasha:"Antardasha",pratyantardasha:"Pratyantardasha"},Ut=class extends y{renderData(t){let e=t.grahas??[];return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Vedic daily reading")}">${this.renderHead(t)} ${this.renderPanchanga(t)} ${this.renderGrahas(e,t.houseThemes)} ${this.renderWindows(t)} ${this.renderFinance(t)} ${this.renderDasha(t)} ${this.renderProvenance(t)}</div>`:this.renderEmpty()}renderHead(t){let e=new Map((t.tally??[]).map(a=>[a.state,a.count])),r=e.get("favourable")??0;return s`<header class="head" part="header"><div class="title-row"><h2 class="title">${this.t("Vedic daily")}</h2><span class="when">${q(this.effectiveLang(),t.dayStart)} — ${q(this.effectiveLang(),t.dayEnd)}</span></div><div class="verdict-row"><span class="verdict ${t.verdict}">${this.t(Po[t.verdict])}</span> <span class="evidence">${this.t("{{supportive}} of {{evaluated}} grahas support this day",{supportive:r,evaluated:t.evaluated})}</span></div>${e.size?s`<div class="tally" part="legend">${Pd.filter(a=>e.get(a)).map(a=>s`<span class="pill">${this.t(Ps[a])} ${e.get(a)}</span>`)}</div>`:i} ${t.subject?s`<p class="note">${this.t("Born with the Moon in {{rashi}}, nakshatra {{nakshatra}}",{rashi:t.subject.janmaRashi,nakshatra:t.subject.janmaNakshatra})}</p>`:i} ${(t.degraded??[]).map(a=>s`<p class="note">${this.t("{{component}} unavailable: {{reason}}",{component:a.component,reason:a.reason})}</p>`)}</header>`}renderPanchanga(t){let e=t.panchanga;if(!e)return i;let r=(a,n)=>n?s`<div class="fact"><dt>${a}</dt><dd>${n.number?`${n.number}. `:""}${n.name} ${n.validTo?s`<span class="until">${this.t("until {{time}}",{time:q(this.effectiveLang(),n.validTo)})}</span>`:i}</dd></div>`:i;return s`<section class="block" part="section panchanga"><h3>${this.t("Panchang")}</h3><dl class="facts" part="details"><div class="fact"><dt>${this.t("Vara")}</dt><dd>${e.vara}</dd></div><div class="fact"><dt>${this.t("Paksha")}</dt><dd>${e.paksha}</dd></div>${r(this.t("Tithi"),e.tithi)} ${r(this.t("Nakshatra"),e.nakshatra)} ${r(this.t("Yoga"),e.yoga)} ${r(this.t("Karana"),e.karana)}</dl></section>`}theme(t,e){return t?.[String(e)]?.join(", ")??""}renderGrahas(t,e){return s`<section class="block" part="section grahas"><h3>${this.t("Grahas today")}</h3><div class="scroll"><table part="table"><caption class="roxy-sr-only">${this.t("Each transiting graha with its sign, the house it occupies from the natal Moon, its bindus, its kaksha and the state the classical rules give it.")}</caption><thead><tr><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Bindus")}</th><th scope="col">${this.t("Kaksha")}</th><th scope="col">${this.t("State")}</th></tr></thead><tbody>${t.map(r=>{let a=R(r.graha)??"",n=this.theme(e,r.houseFromMoon);return s`<tr><td>${a?s`<span class="glyph">${a}</span>`:i}${r.graha}</td><td>${r.sign}</td><td class="num" title="${n}">${r.houseFromMoon}</td><td class="num">${typeof r.binduCount=="number"?r.binduCount:""}</td><td class="num">${this.renderKaksha(r.kaksha)}</td><td><span class="state ${r.state}" title="${r.stateSource??""}">${this.t(Ps[r.state])}</span></td></tr>`})}</tbody></table></div></section>`}renderKaksha(t){if(!t||typeof t.number!="number")return i;let e=t.bindu===!0?"yes":t.bindu===!1?"no":"",r=t.bindu===!0?this.t("this kaksha lord gave bindu"):t.bindu===!1?this.t("this kaksha lord gave no bindu"):"",a=this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}, spanning {{start}}° to {{end}}° of the sign",{n:t.number,total:zo,graha:t.lord,start:v(this.effectiveLang(),t.startDegree,2),end:v(this.effectiveLang(),t.endDegree,2)});return s`<span class="kaksha" title="${r?`${a} · ${r}`:a}">${t.number}/${zo} <span class="dot ${e}" aria-hidden="true"></span></span>`}renderWindows(t){let e=t.tara??[],r=t.chandrabala??[];if(!e.length&&!r.length)return i;let a=(n,l)=>s`<small>${q(this.effectiveLang(),n)} — ${q(this.effectiveLang(),l)}</small>`;return s`<section class="block" part="section windows"><h3>${this.t("Tara and Chandrabala")}</h3>${e.length?s`<div class="chips">${e.map(n=>s`<span class="window"><span>${n.number}. ${n.name}${n.quality?` · ${n.quality}`:""}</span> ${a(n.validFrom,n.validTo)}</span>`)}</div>`:i} ${r.length?s`<div class="chips">${r.map(n=>s`<span class="window ${n.favourable?"yes":"no"}"><span>${this.t("Moon in {{sign}}, house {{n}}",{sign:n.moonSign,n:n.houseFromMoon})} ${n.ashtamaChandra?s`<span class="mark">· ${this.t("Ashtama Chandra")}</span>`:i} </span>${a(n.validFrom,n.validTo)}</span>`)}</div>`:i}</section>`}renderFinance(t){let e=t.areas?.finance;if(!e)return i;let r=t.houseThemes,a=n=>{let l=this.theme(r,n.house);return s`<li>${n.graha} · ${this.t("House {{n}}",{n:n.house})}${l?` (${l})`:""} · ${this.t("level {{level}} {{grade}}",{level:n.level,grade:n.grade})} ${n.dashaLevels?.length?s`<span class="note">${n.dashaLevels.map(d=>this.t(No[d])).join(", ")}</span>`:i}</li>`};return s`<section class="block" part="section finance"><h3>${this.t("Finance")}</h3><div class="verdict-row"><span class="verdict ${e.band??""}">${e.band?this.t(Po[e.band]):""}</span> ${typeof e.positive=="number"&&typeof e.negative=="number"?s`<span class="evidence">${this.t("{{positive}} positive against {{negative}} negative",{positive:e.positive,negative:e.negative})}</span>`:i}</div><div class="lists">${e.drivers?.length?s`<div><h3>${this.t("Drivers")}</h3><ul>${e.drivers.map(a)}</ul></div>`:i} ${e.cautions?.length?s`<div><h3>${this.t("Cautions")}</h3><ul>${e.cautions.map(a)}</ul></div>`:i}</div></section>`}renderDasha(t){let e=t.dasha??[];return e.length?s`<section class="block" part="section dasha"><h3>${this.t("Dasha")}</h3><div class="chips">${e.map(r=>s`<span class="window"><span>${this.t(No[r.level])} · ${r.lord}</span> <small>${q(this.effectiveLang(),r.startDate)} — ${q(this.effectiveLang(),r.endDate)}</small></span>`)}</div></section>`:i}renderProvenance(t){return t.frames?s`<section class="block" part="section frame">${wn(this.effectiveLang(),t.frames,this.translator)}</section>`:i}};Ut.styles=[x,I,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);box-shadow:var(--roxy-shadow-sm);display:grid;overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-sm,.5rem);display:grid}.title-row{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.when{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.verdict-row{align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.verdict{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-muted,#71717a) 14%, transparent);padding:.15rem .6rem}.verdict.very-strong,.verdict.strong{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#14532d)}.verdict.moderate{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-accent-ink,#b45309)}.verdict.weak{background:color-mix(in srgb, var(--roxy-muted,#71717a) 16%, transparent);color:var(--roxy-secondary,#475569)}.evidence{color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-sm,.875rem);font-variant-numeric:tabular-nums}.tally{flex-wrap:wrap;gap:.35rem;display:flex}.pill{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-full,9999px);border:1px solid var(--roxy-border,#e4e4e7);color:var(--roxy-secondary,#475569);font-variant-numeric:tabular-nums;padding:1px 8px}.block{padding:var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-sm,.5rem);display:grid}.block h3{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em;color:var(--roxy-muted,#71717a);margin:0}.facts{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(7.5rem,1fr));margin:0;display:grid}.fact{gap:2px;display:grid}.fact dt{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.05em}.fact dd{font-size:var(--roxy-text-sm,.875rem);margin:0}.fact .until{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}.scroll{-webkit-overflow-scrolling:touch;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap;padding:.35rem .5rem}th{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.05em;font-weight:var(--roxy-weight-bold,600)}td.num{font-variant-numeric:tabular-nums}.glyph{color:var(--roxy-muted,#71717a);margin-right:.35em}.state{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-muted,#71717a) 14%, transparent);cursor:help;padding:1px 8px}.state.favourable{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#14532d)}.state.underdelivered,.state.obstructed,.state.void{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-accent-ink,#b45309)}.state.aggravated,.state.unfavourable{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 14%, transparent);color:var(--roxy-danger-fg,#991b1b)}.kaksha{cursor:help;align-items:center;gap:.35rem;display:inline-flex}.dot{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 90%, transparent);border-radius:50%;width:7px;height:7px}.dot.yes{background:var(--roxy-success,#16a34a)}.dot.no{background:var(--roxy-warning,#f59e0b)}.chips{flex-wrap:wrap;gap:.35rem;display:flex}.window{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);font-size:var(--roxy-text-sm,.875rem);gap:1px;padding:.3rem .6rem;display:grid}.window small{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums}.window.yes{border-color:color-mix(in srgb, var(--roxy-success,#16a34a) 45%, transparent)}.window.no{border-color:color-mix(in srgb, var(--roxy-danger,#dc2626) 35%, transparent)}.mark{color:var(--roxy-danger-fg,#991b1b)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.lists ul{font-size:var(--roxy-text-sm,.875rem);line-height:var(--roxy-leading-normal,1.5);margin:0;padding-left:1.1rem}.note{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}`],Ut=g([b("roxy-vedic-daily")],Ut);var be=class extends y{constructor(){super(...arguments);this.chartStyle="north";this.chartReference="lagna";this.lagnaOverride="";this.setStyle=e=>{this.chartStyle=e}}resolveReference(){if(this.lagnaOverride)return this.lagnaOverride;if(this.chartReference==="moon")return this.data?.meta?.Moon?.rashi}viewModel(){return this.data?.meta?la(this.data.meta,{divisionLabel:"D1 Rashi",lagnaOverride:this.resolveReference(),states:this.data}):null}renderData(e){let r=this.viewModel();if(!r)return this.renderEmpty();let a=this.chartReference==="moon"&&!this.lagnaOverride?this.t("Chandra lagna"):this.t("Vedic kundli");return s`<div class="wrap" part="card"><div class="header" part="header"><div><h2 class="title">${a}</h2>${F(this.effectiveLang(),e.frame,this.translator)} ${da(r,this.translator)}</div>${pa(this.chartStyle,this.setStyle,this.translator)}</div><div id="kundli-panel-${this.chartStyle}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="kundli-tab-${this.chartStyle}"><svg viewBox="0 0 400 400" preserveAspectRatio="xMidYMid meet" part="chart" role="img" aria-label="${this.t("Vedic birth chart with twelve sign houses")}"><title>${this.t("Vedic kundli")}</title>${ca(r,this.chartStyle,this.translator)}</svg></div></div>`}};be.styles=[x,I,ma,ee],g([S({type:String,reflect:!0,attribute:"chart-style"})],be.prototype,"chartStyle",2),g([S({type:String,reflect:!0,attribute:"chart-reference"})],be.prototype,"chartReference",2),g([S({type:String,reflect:!0,attribute:"lagna-override"})],be.prototype,"lagnaOverride",2),be=g([b("roxy-vedic-kundli")],be);var Nd=["Lagna","Sun","Moon","Mars","Mercury","Jupiter","Venus","Saturn","Rahu","Ketu"],Yt=class extends y{orderedRows(){let t=this.data?.meta??{},e=new Set,r=[];for(let a of Nd){let n=t[a];n&&(r.push([a,n]),e.add(a))}for(let[a,n]of Object.entries(t))e.has(a)||r.push([a,n]);return r}renderData(t){if(!t.meta)return this.renderEmpty();let e=this.orderedRows();return s`<div class="wrap" part="card" aria-label="${this.t("Vedic planetary positions")}"><header class="head" part="header"><h2 class="title">${this.t("Planetary positions")}</h2>${F(this.effectiveLang(),t.frame,this.translator)}</header><div class="scroll" part="table" tabindex="0"><table role="table"><caption class="roxy-sr-only">${this.t("Vedic planetary positions: each graha with its rashi, degree, nakshatra, pada, nakshatra lord, house, its state in all three avastha systems, and retrograde state. Jagradadi and Deeptadi are read from sign dignity, which the nodes and the Lagna do not have, so those two cells are blank on the Rahu, Ketu and Lagna rows. Uranus, Neptune and Pluto appear only when asked for and rule no sign, so every avastha and house cell is blank on their rows too.")}</caption><thead><tr><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Nakshatra")}</th><th scope="col">${this.t("Pada")}</th><th scope="col">${this.t("Nak. lord")}</th><th scope="col">${this.t("House")}</th><th scope="col" title="${this.t("Baladi: the five age states, set by degree within the sign")}">${this.t("Baladi")}</th><th scope="col" title="${this.t("Jagradadi: the three waking states, set by sign dignity. The seven classical grahas only")}">${this.t("Jagradadi")}</th><th scope="col" title="${this.t("Deeptadi: the nine dispositional states, set by sign dignity. The seven classical grahas only")}">${this.t("Deeptadi")}</th><th scope="col">${this.t("Retro")}</th></tr></thead><tbody>${e.map(([r,a])=>{let n=(a.graha??r)==="Lagna",l=R(a.graha??r)??"",d=z(a.rashi)??"";return s`<tr class="${n?"lagna":""}"><td class="graha">${l?s`<span class="glyph">${l}</span>`:i}${a.graha??r}</td><td>${d?s`<span class="glyph">${d}</span>`:i}${a.rashi??""}</td><td class="num">${typeof a.longitude=="number"?ie(a.longitude):""}</td><td>${a.nakshatra?.name??""}</td><td class="num">${a.nakshatra?.pada??""}</td><td>${a.nakshatra?.lord??""}</td><td class="num">${typeof a.house=="number"?a.house:""}</td><td>${a.awastha??""}</td><td>${a.jagradadi??""}</td><td>${a.deeptadi??""}</td><td>${a.isRetrograde?s`<span class="retro">R</span>`:i}</td></tr>`})} ${this.renderModernRows()}</tbody></table></div>${this.renderCombustion()} ${this.renderPlanetaryWar()} ${this.renderInterpretations()} ${this.renderYogas()} ${this.renderHouses()}</div>`}renderModernRows(){let t=this.data?.modernPlanets??[];return t.length===0?i:t.map((e,r)=>{let a=z(e.rashi)??"";return s`<tr class="modern ${r===0?"modern-first":""}"><td class="graha">${vr(e.planet,e.sanskritName)}</td><td>${a?s`<span class="glyph">${a}</span>`:i}${e.rashi??""}</td><td class="num">${typeof e.longitude=="number"?ie(e.longitude):""}</td><td>${e.nakshatra?.name??""}</td><td class="num">${e.nakshatra?.pada??""}</td><td>${e.nakshatra?.lord??""}</td><td></td><td></td><td></td><td></td><td>${e.isRetrograde?s`<span class="retro">R</span>`:i}</td></tr>`})}renderCombustion(){let t=this.data?.combustion??[];return t.length===0?i:s`<details class="panel" part="section combustion"><summary>${this.t("Combust grahas")}<span class="summary-count">${t.length}</span>${j()}</summary><div class="panel-body">${t.map(e=>{let r=R(e.planet)??"",a=v(this.effectiveLang(),e.distanceFromSun,2),n=v(this.effectiveLang(),e.orb,1);return s`<div class="condition"><span class="planet">${r?`${r} `:""}${e.planet}</span> <span class="detail">${this.t("{{distance}} deg from Sun, within {{orb}} deg orb",{distance:a,orb:n})}</span></div>`})}</div></details>`}renderPlanetaryWar(){let t=this.data?.planetaryWar??[];return t.length===0?i:s`<details class="panel" part="section planetary-war"><summary>${this.t("Planetary wars")}<span class="summary-count">${t.length}</span>${j()}</summary><div class="panel-body">${t.map(e=>{let r=v(this.effectiveLang(),e.distance,2);return s`<div class="condition"><span class="planet">${this.t("{{first}} vs {{second}}",{first:e.planet1,second:e.planet2})}</span> <span class="detail">${this.t("{{distance}} deg apart",{distance:r})}</span> <span class="winner">${this.t("{{graha}} wins",{graha:e.winner})}</span></div>`})}</div></details>`}renderInterpretations(){if(this.hideReadings)return i;let t=this.data?.interpretations??{},e=this.orderedRows().map(([r,a])=>[a.graha??r,t[a.graha??r]]).filter(([,r])=>r!=null);return e.length===0?i:s`<details class="panel" part="section readings"><summary>${this.t("Interpretations")}<span class="summary-count">${e.length}</span>${j()}</summary><div class="panel-body">${e.map(([r,a])=>{let n=R(r)??"";return s`<div class="interp"><span class="planet">${n?`${n} `:""}${r}</span> ${a.rashi?s`<p><span class="label">${this.t("Rashi.")}</span> ${a.rashi}</p>`:i} ${a.nakshatra?s`<p><span class="label">${this.t("Nakshatra.")}</span> ${a.nakshatra}</p>`:i}</div>`})}</div></details>`}renderHouses(){let t=(this.data?.houses??[]).filter(e=>e.name||e.description);return t.length===0?i:s`<details class="panel" part="section bhava-significations"><summary>${this.t("Bhava significations")}<span class="summary-count">${t.length}</span>${j()}</summary><div class="panel-body">${t.map(e=>s`<div class="bhava"><span class="name">${e.number}. ${e.name??""}</span> ${e.description?s`<p class="desc">${e.description}</p>`:i}</div>`)}</div></details>`}renderYogas(){let t=(this.data?.yogas??[]).filter(e=>e.present);return t.length===0?i:s`<details class="panel" part="section yogas"><summary>${this.t("Yogas")}<span class="summary-count">${t.length}</span>${j()}</summary><div class="panel-body">${t.map(e=>s`<div class="bhava"><span class="name">${e.name} ${e.quality?s`<span class="quality ${e.quality.toLowerCase()}">${e.quality}</span>`:i}</span> ${e.result?s`<p class="desc">${e.result}</p>`:i}</div>`)}</div></details>`}};Yt.styles=[x,I,M,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7)}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.scroll{min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:760px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}tbody tr.lagna{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 10%, transparent)}tbody tr.modern-first{border-top-width:2px}td.graha{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.4em}tbody tr.lagna .glyph{color:var(--roxy-accent-ink,#b45309)}.retro{color:var(--roxy-warning-fg,#9a3412);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600)}.num{font-variant-numeric:tabular-nums}details.panel{border-top:1px solid var(--roxy-border,#e4e4e7)}details.panel>summary{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);cursor:pointer;font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);display:flex}details.panel>summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:-2px}.summary-count{margin-left:auto;margin-right:var(--roxy-space-xs,.25rem);font-weight:var(--roxy-weight-normal,400);color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums}.panel-body{padding:0 var(--roxy-space-md,1rem) var(--roxy-space-md,1rem);gap:var(--roxy-space-sm,.5rem);grid-template-columns:minmax(0,1fr);display:grid}.condition{font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;align-items:baseline;gap:.4em;display:flex}.condition .planet{font-weight:var(--roxy-weight-bold,600)}.condition .detail{color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums}.condition .winner{color:var(--roxy-success-fg,#166534);font-weight:var(--roxy-weight-bold,600)}.interp{gap:.15em;display:grid}.interp .planet{font-weight:var(--roxy-weight-bold,600);font-size:var(--roxy-text-sm,.875rem)}.interp p{font-size:var(--roxy-text-sm,.875rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.interp .label{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600)}.bhava{gap:.15em;display:grid}.bhava .name{font-weight:var(--roxy-weight-bold,600);font-size:var(--roxy-text-sm,.875rem)}.bhava .desc{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);line-height:var(--roxy-leading-normal,1.5);margin:0}.quality{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.04em}.quality.positive{color:var(--roxy-success-fg,#166534)}.quality.negative{color:var(--roxy-danger-fg,#991b1b)}.quality.both{color:var(--roxy-muted,#71717a)}`],Yt=g([b("roxy-vedic-planets-table")],Yt);var Zt=class extends y{rows(){let t=this.data;if(!t)return[];let e=(t.planets??[]).map(a=>({name:a.name,label:$(a,"name"),sign:a.sign,signLabel:$(a,"sign"),longitude:a.longitude,house:a.house,speed:a.speed,isRetrograde:a.isRetrograde,dignity:a.dignity})),r=[["Ascendant",t.ascendant],["Midheaven",t.midheaven],["Part of Fortune",t.partOfFortune],["Vertex",t.vertex]];for(let[a,n]of r)n&&e.push({name:a,label:this.t(a),sign:n.sign,signLabel:$(n,"sign"),longitude:n.longitude,isPoint:!0});return e}renderData(t){if(!t.planets)return this.renderEmpty();let e=this.rows();return s`<div class="wrap" part="card" aria-label="${this.t("Western planetary positions")}" tabindex="0"><header class="head" part="header"><h2 class="title">${this.t("Planetary positions")}</h2></header><table role="table" part="table"><caption class="roxy-sr-only">${this.t("Western planetary positions: each body with its sign, degree, house, essential dignity and motion. The dignity cell is blank for the lunar nodes, Chiron and Lilith, which rule no sign and therefore hold no dignity at all.")}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Dignity")}</th><th scope="col">${this.t("Motion")}</th></tr></thead><tbody>${e.map(r=>{let a=R(r.name)??"",n=z(r.sign)??"",l=typeof r.speed=="number"?v(this.effectiveLang(),r.speed,3):"";return s`<tr class="${r.isPoint?"point":""}"><td class="body">${a?s`<span class="glyph">${a}</span>`:i}${r.label}</td><td>${n?s`<span class="glyph">${n}</span>`:i}${r.signLabel??""}</td><td class="num">${typeof r.longitude=="number"?ie(r.longitude,r.signLabel):""}</td><td class="num">${typeof r.house=="number"?r.house:""}</td><td class="dignity">${r.dignity?N(r.dignity):""}</td><td class="num">${l?s`${l}${this.t("°/day")}`:i} ${r.isRetrograde?s`<span class="retro">℞</span>`:i}</td></tr>`})}</tbody></table></div>`}};Zt.styles=[x,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:auto}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7)}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:460px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}tbody tr.point{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent)}td.body{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.4em}.retro{color:var(--roxy-danger,#dc2626);font-weight:var(--roxy-weight-bold,600)}.num{font-variant-numeric:tabular-nums}`],Zt=g([b("roxy-western-planets-table")],Zt);function Go(o){return o.suppressedBy||void 0}var Oo=["classical","asraya","dala","akriti","sankhya"];function _o(o){let t=Oo.indexOf(o.family);return t===-1?Oo.length:t}var Gd=[{id:"present",source:"Present",open:!0,noteSource:"Every classical condition is satisfied by this chart."},{id:"outranked",source:"Outranked",open:!0,noteSource:"The rule matched, but a stronger family silences it under the classical precedence norms. Each card names the family that took precedence."},{id:"absent",source:"Not present",open:!1,noteSource:"At least one classical condition fails. Read the evidence for which."}],Qe=class extends y{constructor(){super(...arguments);this.filter="";this.handleInput=e=>{this.filter=e.target.value}}verdictOf(e){return e.present?"present":Go(e)?"outranked":"absent"}renderVerdictGroup(e,r){if(!r.length)return i;let a=[...r].sort((n,l)=>_o(n)-_o(l));return s`<details class="group" part="section verdict" ?open="${e.open||!!this.filter}"><summary class="group-summary"><span class="group-label">${this.t(e.source)}</span> <span class="group-count">${r.length}</span></summary><p class="group-note">${this.t(e.noteSource)}</p><div class="detail-grid">${a.map(n=>this.renderDetectCard(n))}</div></details>`}renderQualityChip(e){let r=`quality-chip quality-${e}`;return s`<span class="${r}">${e}</span>`}renderFamilyChip(e){return e.family?s`<span class="family-chip" title="${this.t("Classical family")}">${N(e.family)}</span>`:i}renderDetailCard(e){return s`<div class="detail-card"><p class="detail-name">${e.name} ${e.quality?this.renderQualityChip(e.quality):i} ${this.renderFamilyChip(e)}</p>${e.description&&!this.hideReadings?s`<p class="description">${e.description}</p>`:i} ${this.renderEffects(e.result)}</div>`}renderEffects(e){return!e||this.hideReadings?i:s`<details part="reading"><summary>${this.t("Effects")}</summary><div class="result-body">${e}</div></details>`}renderDetectCard(e){let r=e.present?void 0:Go(e),[a,n]=e.present?["is-present","Present"]:r?["is-outranked",`Outranked by ${N(r)}`]:["is-absent","Not present"];return s`<div class="detail-card ${e.present?"":r?"outranked":"absent"}"><p class="detail-name">${e.name} ${e.quality?this.renderQualityChip(e.quality):i} ${this.renderFamilyChip(e)} <span class="present-badge ${a}">${n}</span></p>${e.description&&!this.hideReadings?s`<p class="description">${e.description}</p>`:i} ${e.present?this.renderEffects(e.result):i} ${e.evidence?s`<p class="evidence">${e.evidence}</p>`:i}</div>`}renderData(e){let r=this.filter.toLowerCase();if("description"in e&&typeof e.description=="string"){let a=e;return s`<div class="wrap" part="card">${this.renderDetailCard(a)}</div>`}if("yogas"in e&&Array.isArray(e.yogas)){let a=e.yogas;if(a.length>0&&"present"in a[0]){let p=a,h=r?p.filter(f=>f.name.toLowerCase().includes(r)):p,m=e.total??p.filter(f=>f.present).length;return s`<div class="wrap" part="card"><div class="head" part="header"><h2 class="title">${this.t("Detected yogas")}</h2><span class="count">${this.t("{{count}} of {{total}} present",{count:m,total:p.length})}</span></div>${F(this.effectiveLang(),e.frame,this.translator)}<div class="search-wrap"><input class="search" type="search" placeholder="${this.t("Filter yogas...")}" aria-label="${this.t("Filter detected yogas by name")}" .value="${this.filter}" @input="${this.handleInput}"></div><div class="group-stack" part="section verdicts" role="region" aria-live="polite" aria-label="${this.t("Detected yogas")}">${h.length>0?Gd.map(f=>this.renderVerdictGroup(f,h.filter(C=>this.verdictOf(C)===f.id))):s`<p class="no-results">${this.t("No yogas match your search.")}</p>`}</div></div>`}if(a.length>0&&"description"in a[0]){let p=a,h=r?p.filter(f=>f.name.toLowerCase().includes(r)):p,m=e.total;return s`<div class="wrap" part="card"><div class="head" part="header"><h2 class="title">${this.t("Yoga catalog")}</h2>${m!==void 0?s`<span class="count">${this.t("{{count}} total",{count:m})}</span>`:i}</div><div class="search-wrap"><input class="search" type="search" placeholder="${this.t("Filter yogas...")}" aria-label="${this.t("Filter yoga list by name")}" .value="${this.filter}" @input="${this.handleInput}"></div><div class="detail-grid" part="section yogas" role="region" aria-live="polite" aria-label="${this.t("Yoga results")}">${h.length>0?h.map(f=>this.renderDetailCard(f)):s`<p class="no-results">${this.t("No yogas match your search.")}</p>`}</div></div>`}let l=a,d=r?l.filter(p=>p.name.toLowerCase().includes(r)):l,c=e.total;return s`<div class="wrap" part="card"><div class="head" part="header"><h2 class="title">${this.t("Yoga catalog")}</h2>${c!==void 0?s`<span class="count">${this.t("{{count}} total",{count:c})}</span>`:i}</div><div class="search-wrap"><input class="search" type="search" placeholder="${this.t("Filter yogas...")}" aria-label="${this.t("Filter yoga list by name")}" .value="${this.filter}" @input="${this.handleInput}"></div><div class="grid" part="section yogas" role="region" aria-live="polite" aria-label="${this.t("Yoga results")}">${d.length>0?d.map(p=>s`<div class="yoga-chip">${p.name}</div>`):s`<p class="no-results">${this.t("No yogas match your search.")}</p>`}</div></div>`}return s`<div class="roxy-empty" role="status">${this.t("No yoga data")}</div>`}};Qe.styles=[x,I,u`.wrap{gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.count{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a)}.search-wrap{align-items:center;gap:var(--roxy-space-sm,.5rem);display:flex}.search{width:100%;max-width:280px;font-size:var(--roxy-text-sm,.875rem);font-family:var(--roxy-font-sans);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);outline:none;padding:.35em .75em}.search::placeholder{color:var(--roxy-fg,#0a0a0a);opacity:.65}.search:focus{border-color:var(--roxy-accent,#f59e0b);box-shadow:0 0 0 2px color-mix(in srgb, var(--roxy-accent,#f59e0b) 30%, transparent)}.grid{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fill,minmax(180px,1fr));display:grid}.yoga-chip{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);font-size:var(--roxy-text-sm,.875rem);background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);word-break:break-word;padding:.4em .8em}.yoga-chip .yoga-id{color:var(--roxy-fg,#0a0a0a);opacity:.75;margin-top:.15em;font-size:.7em;display:block}.detail-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);background:var(--roxy-surface,#fff);gap:var(--roxy-space-sm,.5rem);display:grid}.detail-name{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;margin:0;display:flex}.quality-chip{font-size:var(--roxy-text-xs,.75rem);border-radius:999px;padding:.15em .6em;font-weight:600;display:inline-block}.quality-Positive{background:color-mix(in srgb, var(--roxy-success,#22c55e) 18%, transparent);color:var(--roxy-success-fg,#15803d);border:1px solid color-mix(in srgb, var(--roxy-success,#22c55e) 40%, transparent)}.quality-Negative{background:color-mix(in srgb, var(--roxy-danger,#ef4444) 18%, transparent);color:var(--roxy-danger-fg,#b91c1c);border:1px solid color-mix(in srgb, var(--roxy-danger,#ef4444) 40%, transparent)}.quality-Both{background:color-mix(in srgb, var(--roxy-warning,#f59e0b) 18%, transparent);color:var(--roxy-warning-fg,#b45309);border:1px solid color-mix(in srgb, var(--roxy-warning,#f59e0b) 40%, transparent)}.family-chip{font-size:var(--roxy-text-xs,.75rem);border:1px solid var(--roxy-border,#e4e4e7);color:var(--roxy-fg,#0a0a0a);border-radius:999px;padding:.15em .6em;font-weight:500;display:inline-block}.present-badge{font-size:var(--roxy-text-xs,.75rem);border-radius:999px;padding:.15em .6em;font-weight:600;display:inline-block}.present-badge.is-present{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.present-badge.is-absent{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);color:var(--roxy-fg,#0a0a0a)}.present-badge.is-outranked{background:color-mix(in srgb, var(--roxy-warning,#f59e0b) 16%, transparent);color:var(--roxy-warning-fg,#b45309)}.detail-card.absent{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 22%, var(--roxy-surface,#fff))}.detail-card.outranked{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 10%, var(--roxy-surface,#fff))}.group-stack{gap:var(--roxy-space-md,1rem);display:grid}.group{gap:var(--roxy-space-sm,.5rem);display:grid}.group-summary{align-items:baseline;gap:var(--roxy-space-sm,.5rem);cursor:pointer;color:var(--roxy-muted,#71717a);list-style:none;display:flex}.group-summary:before{content:"+";color:var(--roxy-accent-ink,#b45309);font-size:1.1em;line-height:1}.group[open]>.group-summary:before{content:"-"}.group-label{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em}.group-count{font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums}.group-note,.evidence{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:var(--roxy-leading-normal,1.5);margin:0}.description{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);line-height:var(--roxy-leading-normal,1.5);margin:0}.detail-card details{font-size:var(--roxy-text-sm,.875rem)}.detail-card details>summary{cursor:pointer;color:var(--roxy-accent-ink,#b45309);align-items:center;gap:.4em;padding:.25em 0;font-weight:500;list-style:none;display:flex}.detail-card details>summary:before{content:"+";font-size:1.1em;line-height:1}.detail-card details[open]>summary:before{content:"-"}.detail-card details .result-body{padding-top:var(--roxy-space-xs,.25rem);color:var(--roxy-fg,#0a0a0a);line-height:var(--roxy-leading-normal,1.5)}.no-results{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);padding:var(--roxy-space-md,1rem) 0;text-align:center}.detail-grid{gap:var(--roxy-space-sm,.5rem);display:grid}`],g([G()],Qe.prototype,"filter",2),Qe=g([b("roxy-yoga-list")],Qe);var ka=[{pascal:"RoxyNatalChart",tag:"roxy-natal-chart",slug:"natal-chart",heading:"Natal chart",description:"Western natal chart wheel for /astrology/natal-chart responses",docsLabel:"Western",endpointLabel:"POST /astrology/natal-chart",docsSummary:"Natal chart wheel with planet glyphs and aspect lines",topic:"Astrology"},{pascal:"RoxySynastryChart",tag:"roxy-synastry-chart",slug:"synastry-chart",heading:"Synastry",description:"Dual-wheel synastry chart with inter-aspects table",docsLabel:"Western",endpointLabel:"POST /astrology/synastry",docsSummary:"Dual-wheel synastry with inter-aspects table",topic:"Astrology"},{pascal:"RoxyWesternPlanetsTable",tag:"roxy-western-planets-table",slug:"western-planets-table",heading:"Western planets",description:"Western planetary positions table with sign, degree, house, and motion plus the chart angles",docsLabel:"Western",endpointLabel:"POST /astrology/natal-chart",docsSummary:"Sign, degree, house, motion columns plus ASC, MC, PoF, Vertex",topic:"Astrology"},{pascal:"RoxyTransitsTable",tag:"roxy-transits-table",slug:"transits-table",heading:"Transits",description:"Live planet positions plus aspects to a natal chart",docsLabel:"Western",endpointLabel:"POST /astrology/transits",docsSummary:"Transit planet positions plus optional aspects to a natal chart",topic:"Astrology"},{pascal:"RoxyTransitWheel",tag:"roxy-transit-wheel",slug:"transit-wheel",heading:"Transit bi-wheel",description:"Natal and transit bi-wheel with an aspect line for every transit to the natal chart",docsLabel:"Western",endpointLabel:"POST /astrology/transit-aspects",docsSummary:"Natal chart on the inner ring, transiting bodies on the outer ring, aspect lines between them",topic:"Astrology"},{pascal:"RoxyAspectsTable",tag:"roxy-aspects-table",slug:"aspects-table",heading:"Aspects",description:"Natal and transit aspect grid with chart-pattern detection (grand trines, t-squares, stelliums, yods)",docsLabel:"Western",endpointLabel:"POST /astrology/aspects, /astrology/transit-aspects, /astrology/aspect-patterns",docsSummary:"Aspect rows coloured by nature with orb and strength, plus detected chart patterns",topic:"Astrology"},{pascal:"RoxyMoonPhase",tag:"roxy-moon-phase",slug:"moon-phase",heading:"Moon phase",description:"Moon phase card and calendar",docsLabel:"Western",endpointLabel:"GET /astrology/moon-phase/{current,upcoming,calendar/...}",docsSummary:"Moon phase card and calendar",topic:"Astrology"},{pascal:"RoxyHoroscopeCard",tag:"roxy-horoscope-card",slug:"horoscope-card",heading:"Daily horoscope",description:"Daily, weekly, or monthly horoscope card for /astrology/horoscope/...",docsLabel:"Western",endpointLabel:"GET /astrology/horoscope/{sign}/{daily,weekly,monthly}",docsSummary:"Daily, weekly, or monthly horoscope card",topic:"Astrology"},{pascal:"RoxyAstrocartographyMap",tag:"roxy-astrocartography-map",slug:"astrocartography-map",heading:"Astrocartography",description:"Astrocartography world map plotting each body Midheaven, IC, Ascendant, and Descendant relocation lines",docsLabel:"Western",endpointLabel:"POST /astrology/astrocartography",docsSummary:"World map of planetary MC, IC, Ascendant, and Descendant lines with per-line interpretations",topic:"Astrology"},{pascal:"RoxyLocalSpaceCompass",tag:"roxy-local-space-compass",slug:"local-space-compass",heading:"Local space",description:"Local space compass plotting each body direction from the birthplace by azimuth and altitude",docsLabel:"Western",endpointLabel:"POST /astrology/local-space",docsSummary:"Compass dial of planetary azimuth lines from the birthplace, dimmed below the horizon",topic:"Astrology"},{pascal:"RoxyRelocationWheel",tag:"roxy-relocation-wheel",slug:"relocation-wheel",heading:"Relocation chart",description:"Relocation chart wheel recomputing houses and angles for a new place, with the planets that change house",docsLabel:"Western",endpointLabel:"POST /astrology/relocation-chart",docsSummary:"Relocated chart wheel plus the move geometry, angular planets, and planets that change house",topic:"Astrology"},{pascal:"RoxyPositionsTable",tag:"roxy-positions-table",slug:"positions-table",heading:"Positions table",description:"Editorial positions table for asteroids, Black Moon Lilith, secondary progressions, solar arc directions, and the Arabic lots",docsLabel:"Western",endpointLabel:"POST /astrology/asteroids, /astrology/lilith, /astrology/progressions, /astrology/solar-arc, /astrology/arabic-lots",docsSummary:"Body, sign, degree, and per-shape columns (house, motion, formula, or natal arc) plus each reading",topic:"Astrology"},{pascal:"RoxyEphemerisTable",tag:"roxy-ephemeris-table",slug:"ephemeris-table",heading:"Ephemeris",description:"Monthly ephemeris: every body day by day, with each sign change and retrograde stretch called out",docsLabel:"Cross",endpointLabel:"POST /astrology/planets/monthly, /vedic-astrology/planetary-positions/monthly",docsSummary:"Per-body sign changes and retrograde windows for the month, over the full daily position grid",topic:"Astrology"},{pascal:"RoxyFixedStars",tag:"roxy-fixed-stars",slug:"fixed-stars",heading:"Fixed stars",description:"Fixed star conjunctions to the natal chart, tightest first, with the precessed star catalog",docsLabel:"Western",endpointLabel:"POST /astrology/fixed-stars",docsSummary:"Star to natal point conjunctions with readings, plus a catalog of position, magnitude, nature, and keywords",topic:"Astrology"},{pascal:"RoxyProfectionCard",tag:"roxy-profection-card",slug:"profection-card",heading:"Annual profection",description:"Annual profection card with the profected house and sign, the lord of the year, and its natal placement",docsLabel:"Western",endpointLabel:"POST /astrology/profections",docsSummary:"Profected house and sign for the year, the lord of the year, its natal placement, and the reading",topic:"Astrology"},{pascal:"RoxyCompatibilityCard",tag:"roxy-compatibility-card",slug:"compatibility-card",heading:"Compatibility score",description:"Cross-domain compatibility score card",docsLabel:"Cross",endpointLabel:"POST /astrology/compatibility-score, /numerology/compatibility, /biorhythm/compatibility",docsSummary:"Score card with category breakdown",topic:"Astrology"},{pascal:"RoxyVedicKundli",tag:"roxy-vedic-kundli",slug:"vedic-kundli",heading:"Vedic kundli",description:"South, North, or East Indian Vedic kundli for /vedic-astrology/birth-chart with per-planet degree and nakshatra detail, plus an optional Chandra Lagna (Moon-as-ascendant) reference view",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/birth-chart",docsSummary:"South, North, or East Indian kundli with degree detail and optional Chandra Lagna view",topic:"Vedic"},{pascal:"RoxyDivisionalChart",tag:"roxy-divisional-chart",slug:"divisional-chart",heading:"Divisional chart",description:"D2 to D60 varga chart wheel with Vargottama markers",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/{divisional-chart,navamsa}",docsSummary:"Generic divisional varga wheel from D2 Hora to D60 Shashtiamsa",topic:"Vedic"},{pascal:"RoxyKpChart",tag:"roxy-kp-chart",slug:"kp-chart",heading:"KP chart",description:"Full KP chart with Ascendant, Placidus cusps, and planets and nodes in tabbed stellar-hierarchy tables",docsLabel:"Vedic (KP)",endpointLabel:"POST /vedic-astrology/kp/chart",docsSummary:"Ascendant, cusps, planets and nodes with KP stellar hierarchy and house meanings",topic:"Vedic"},{pascal:"RoxyVedicPlanetsTable",tag:"roxy-vedic-planets-table",slug:"vedic-planets-table",heading:"Vedic planets",description:"Vedic planetary positions table with degree, nakshatra, pada, nakshatra lord, bhava, and all three avastha systems",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/birth-chart",docsSummary:"Degree, nakshatra, pada, lord, bhava, Baladi, Jagradadi and Deeptadi columns",topic:"Vedic"},{pascal:"RoxyKpPlanetsTable",tag:"roxy-kp-planets-table",slug:"kp-planets-table",heading:"KP planets",description:"KP planets table with sub-lord and sub-sub-lord columns",docsLabel:"Vedic (KP)",endpointLabel:"POST /vedic-astrology/kp/planets",docsSummary:"Sub-lord and sub-sub-lord columns",topic:"Vedic"},{pascal:"RoxyKpRulingPlanets",tag:"roxy-kp-ruling-planets",slug:"kp-ruling-planets",heading:"KP ruling planets",description:"KP ruling planets with day lord, Moon and Lagna stellar hierarchies, and house significators",docsLabel:"Vedic (KP)",endpointLabel:"POST /vedic-astrology/kp/ruling-planets",docsSummary:"Day lord, Moon/Lagna hierarchies, ruling planets, significators with house meanings",topic:"Vedic"},{pascal:"RoxyAshtakavargaGrid",tag:"roxy-ashtakavarga-grid",slug:"ashtakavarga-grid",heading:"Ashtakavarga",description:"Sarva and Bhinna ashtakavarga heatmap with bindu scores",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/ashtakavarga",docsSummary:"Sarva, Bhinna, and Shodhya Pinda views in a tabbed heatmap",topic:"Vedic"},{pascal:"RoxyShadbalaTable",tag:"roxy-shadbala-table",slug:"shadbala-table",heading:"Shadbala",description:"Six-fold planetary strength with adequacy badge per planet",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/shadbala",docsSummary:"Six-fold planetary strength bar plus rupas and adequacy badge",topic:"Vedic"},{pascal:"RoxyDashaTimeline",tag:"roxy-dasha-timeline",slug:"dasha-timeline",heading:"Vimshottari dasha",description:"Vimshottari dasha timeline, mahadasha through prana, with the active period highlighted",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/dasha/{current,major,sub/...}",docsSummary:"Vimshottari mahadasha, antardasha, pratyantardasha, sookshma and prana, drill-down at every level",topic:"Vedic"},{pascal:"RoxyGunaMilan",tag:"roxy-guna-milan",slug:"guna-milan",heading:"Guna milan",description:"36-point Ashtakoota matrimonial compatibility breakdown",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/compatibility",docsSummary:"36-point Ashtakoota with eight sub-scores",topic:"Vedic"},{pascal:"RoxyPanchangTable",tag:"roxy-panchang-table",slug:"panchang-table",heading:"Panchang",description:"Panchang muhurta table with auspicious and inauspicious periods",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/panchang/{basic,detailed}",docsSummary:"15+ muhurtas in detailed mode",topic:"Vedic"},{pascal:"RoxyVedicAspects",tag:"roxy-vedic-aspects",slug:"vedic-aspects",heading:"Vedic aspects",description:"Vedic graha drishti table: which planet aspects which, with mutual aspects surfaced first",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/aspects",docsSummary:"Graha drishti rows with aspect type, strength, and orb, plus mutual aspects",topic:"Vedic"},{pascal:"RoxyHoraTable",tag:"roxy-hora-table",slug:"hora-table",heading:"Hora",description:"Vedic Hora (planetary hours) table: 12 day and 12 night horas by ruling planet for electional timing",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/panchang/hora",docsSummary:"Day and night planetary hours with ruling planet and window",topic:"Vedic"},{pascal:"RoxyChoghadiyaGrid",tag:"roxy-choghadiya-grid",slug:"choghadiya-grid",heading:"Choghadiya",description:"Day and night Choghadiya muhurta tiles for activity timing",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/panchang/choghadiya",docsSummary:"Day and night Choghadiya muhurta tiles colored by effect",topic:"Vedic"},{pascal:"RoxyHeliacalTable",tag:"roxy-heliacal-table",slug:"heliacal-table",heading:"Heliacal rising and setting",description:"Whether each graha stands far enough from the Sun to be seen, with the date it next rises or sets",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/heliacal",docsSummary:"Udaya and asta windows for the six visible grahas, the calculation behind Guru Asta and Shukra Asta",topic:"Vedic"},{pascal:"RoxyVedicDaily",tag:"roxy-vedic-daily",slug:"vedic-daily",heading:"Vedic daily",description:"One native, one day: the verdict band, every graha state behind it, the Moon windows and the finance area",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/daily",docsSummary:"Composed Vedic daily reading with the classical rule behind every graha state, the Tara and Chandrabala windows in full, and all three sidereal frames named",topic:"Vedic"},{pascal:"RoxyGocharaTable",tag:"roxy-gochara-table",slug:"gochara-table",heading:"Gochara transits",description:"Where each graha transits now, the natal house it falls in, and the Ashtakavarga-qualified kaksha verdict",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/transit",docsSummary:"Vedic gochara with aspects to the natal chart and the Gochara Kaksha reading drawn as a position within the sign",topic:"Vedic"},{pascal:"RoxyBhavaBalaTable",tag:"roxy-bhava-bala-table",slug:"bhava-bala-table",heading:"Bhava Bala",description:"The twelve houses ranked by strength, with the three classical components that make up each total",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/bhava-bala",docsSummary:"House strength in rupas and virupas, ranked, with Bhavadhipati, Dig and Drishti Bala shown as proportions of the total",topic:"Vedic"},{pascal:"RoxyBhavChalitTable",tag:"roxy-bhav-chalit-table",slug:"bhav-chalit-table",heading:"Bhav Chalit",description:"Which grahas change house once the bhavas are cut at their real cusps instead of at sign boundaries",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/bhav-chalit",docsSummary:"The Chalit chart against the Rashi chart, leading with how many grahas move and which, plus the unequal bhava spans",topic:"Vedic"},{pascal:"RoxyUpagrahaTable",tag:"roxy-upagraha-table",slug:"upagraha-table",heading:"Upagrahas",description:"The eleven upagrahas in their time-based and Sun-based groups, with rashi, degree, and nakshatra",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/upagraha",docsSummary:"Time-based and Sun-based upagrahas with rashi, degree, longitude and nakshatra",topic:"Vedic"},{pascal:"RoxyCharaKarakas",tag:"roxy-chara-karakas",slug:"chara-karakas",heading:"Chara karakas",description:"Jaimini chara karakas ranked Atmakaraka first, with the scheme that produced the ranking",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/chara-karakas",docsSummary:"Karaka offices in rank order with graha, degree, scheme, and what each is read for",topic:"Vedic"},{pascal:"RoxyArudhaPadas",tag:"roxy-arudha-padas",slug:"arudha-padas",heading:"Arudha padas",description:"The twelve Jaimini arudha padas with their derivation, the Arudha Lagna and the Upapada marked",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/arudha",docsSummary:"Twelve padas with bhava, lord, pada rashi, house from Lagna, and the classical exception marked",topic:"Vedic"},{pascal:"RoxyYogaList",tag:"roxy-yoga-list",slug:"yoga-list",heading:"Yoga catalog",description:"Yoga reference cards from the catalog with optional detail mode",docsLabel:"Vedic",endpointLabel:"GET /vedic-astrology/yoga, POST /vedic-astrology/yoga/detect",docsSummary:"Filterable yoga cards from the 300 plus yoga catalog, grouped by verdict in detect mode",topic:"Vedic"},{pascal:"RoxyNakshatraCard",tag:"roxy-nakshatra-card",slug:"nakshatra-card",heading:"Nakshatra",description:"Nakshatra reference card with lord, deity, symbol, characteristics, and remedies",docsLabel:"Vedic",endpointLabel:"GET /vedic-astrology/nakshatras/{id}",docsSummary:"Lord, deity, symbol, characteristics, remedies",topic:"Vedic"},{pascal:"RoxyDoshaCard",tag:"roxy-dosha-card",slug:"dosha-card",heading:"Manglik dosha",description:"Manglik, Kaal Sarp, or Sade Sati presence card",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/dosha/{manglik,kalsarpa,sadhesati}",docsSummary:"Presence, severity, remedies, scoped effects",topic:"Vedic"},{pascal:"RoxyNumerologyCard",tag:"roxy-numerology-card",slug:"numerology-card",heading:"Life path number",description:"Numerology card for life path, expression, soul urge, personality, personal year, or full chart",docsLabel:"Numerology",endpointLabel:"POST /numerology/{life-path,expression,soul-urge,personality,birth-day,maturity,daily,personal-day,personal-month,personal-year,chart}",docsSummary:"Life path, expression, soul urge, personality, personal year, full chart",topic:"Numerology"},{pascal:"RoxyTarotCard",tag:"roxy-tarot-card",slug:"tarot-card",heading:"Daily tarot card",description:"Single tarot card with upright/reversed flip animation",docsLabel:"Tarot",endpointLabel:"GET /tarot/cards/{id}, POST /tarot/daily",docsSummary:"Single card with upright and reversed flip",topic:"Tarot"},{pascal:"RoxyTarotCatalog",tag:"roxy-tarot-catalog",slug:"tarot-catalog",heading:"Tarot deck",description:"Responsive tarot deck gallery with card art, name, and an arcana and suit caption from the tarot catalog response",docsLabel:"Tarot",endpointLabel:"GET /tarot/cards",docsSummary:"Deck gallery tiles with card art, name, and arcana and suit",topic:"Tarot"},{pascal:"RoxyTarotSpread",tag:"roxy-tarot-spread",slug:"tarot-spread",heading:"Three-card spread",description:"Tarot spread renderer for three-card, Celtic Cross, love, or yes/no",docsLabel:"Tarot",endpointLabel:"POST /tarot/spreads/{three-card,celtic-cross,love}, /tarot/yes-no, /tarot/draw",docsSummary:"Spreads with positions and reading",topic:"Tarot"},{pascal:"RoxyBodygraph",tag:"roxy-bodygraph",slug:"bodygraph",heading:"Bodygraph",description:"Human Design bodygraph with nine centers, channels, and activated gates, plus the full reading: type, strategy, authority, profile, definition, incarnation cross, and a gate and line meaning for every activation",docsLabel:"Human Design",endpointLabel:"POST /human-design/bodygraph",docsSummary:"Nine-center chart with defined and open centers, active channels, and gates, plus the type, strategy, authority, profile, and definition readings, the channels by circuit, the centers, and every activation with its gate and line meaning",topic:"Human Design"},{pascal:"RoxyHdTypeCard",tag:"roxy-hd-type-card",slug:"hd-type-card",heading:"HD type",description:"Human Design type reading without the chart: type, strategy, authority, and profile, with the aura mechanic, the signature and not-self themes, and the interpretation behind each label. Also renders the profile response with its two line keynotes",docsLabel:"Human Design",endpointLabel:"POST /human-design/type, /human-design/profile",docsSummary:"Type, strategy, authority, and profile tiles with the aura, signature, and not-self themes, plus the reading behind each label and the profile line keynotes",topic:"Human Design"},{pascal:"RoxyHdConnection",tag:"roxy-hd-connection",slug:"hd-connection",heading:"HD connection",description:"Human Design connection chart: the composite channels two people form, with circuit, dynamic, and which person holds each gate",docsLabel:"Human Design",endpointLabel:"POST /human-design/connection",docsSummary:"Electromagnetic, compromise, and dominance channels between two charts",topic:"Human Design"},{pascal:"RoxyHdPenta",tag:"roxy-hd-penta",slug:"hd-penta",heading:"HD penta",description:"Human Design penta for a 3 to 5 person group: upper and lower triangle channels, defined or open, with core channels and member coverage",docsLabel:"Human Design",endpointLabel:"POST /human-design/penta",docsSummary:"Group penta channels split into upper and lower triangles",topic:"Human Design"},{pascal:"RoxyHdVariables",tag:"roxy-hd-variables",slug:"hd-variables",heading:"HD variables",description:"Human Design variables: the four PHS arrows (determination, environment, perspective, motivation) with left/right direction, color, tone, and base, plus the reading for each arrow and the cognition",docsLabel:"Human Design",endpointLabel:"POST /human-design/variables",docsSummary:"The four transformation arrows with direction, color, tone, and base, plus a reading per arrow grouped by layer and the cognition",topic:"Human Design"},{pascal:"RoxyForecastTimeline",tag:"roxy-forecast-timeline",slug:"forecast-timeline",heading:"Forecast timeline",description:"Cross-domain forecast event strip colored by domain and weighted by significance",docsLabel:"Forecast",endpointLabel:"POST /forecast/{timeline,significant-dates,transits}",docsSummary:"Date-grouped events across Western, Vedic, and biorhythm domains, weighted by significance",topic:"Forecast"},{pascal:"RoxyForecastDigest",tag:"roxy-forecast-digest",slug:"forecast-digest",heading:"Forecast digest",description:"Rolled-up forecast across the next 24 hours, 7, 30, and 90 days with per-domain breakdown and top events",docsLabel:"Forecast",endpointLabel:"POST /forecast/digest",docsSummary:"Per-window event counts, domain breakdown, and the highest-significance events",topic:"Forecast"},{pascal:"RoxyBiorhythmChart",tag:"roxy-biorhythm-chart",slug:"biorhythm-chart",heading:"Daily biorhythm",description:"Daily biorhythm bars or multi-day forecast cycle lines",docsLabel:"Biorhythm",endpointLabel:"POST /biorhythm/{daily,forecast,critical-days}",docsSummary:"Daily bars, forecast cycle lines, critical days",topic:"Biorhythm"},{pascal:"RoxyHexagram",tag:"roxy-hexagram",slug:"hexagram",heading:"I Ching hexagram",description:"I Ching hexagram drawn line by line with trigram glyphs, judgment, image, and a reading for every line: the oracle statement and what it asks of the querent. A cast highlights the moving lines and shows only their readings, plus the hexagram it transforms into",docsLabel:"I Ching",endpointLabel:"GET /iching/hexagrams/{number}, /iching/cast, POST /iching/daily, /iching/daily/cast",docsSummary:"Hexagram figure with trigrams, judgment, image, and a reading per line (statement plus meaning); a cast highlights the moving lines and the resulting hexagram",topic:"I Ching"},{pascal:"RoxyCrystalCard",tag:"roxy-crystal-card",slug:"crystal-card",heading:"Crystal detail",description:"Single-crystal detail card with photo, spiritual, emotional, and physical meaning, metaphysical attributes, affirmation, and pairings",docsLabel:"Crystals",endpointLabel:"GET /crystals/{id}",docsSummary:"Photo, meaning sections, chakra, zodiac, element, hardness, keywords, and pairings",topic:"Crystals"},{pascal:"RoxyCrystalGrid",tag:"roxy-crystal-grid",slug:"crystal-grid",heading:"Crystal grid",description:"Responsive crystal gallery with photo, name, and colour swatches from any crystals list response",docsLabel:"Crystals",endpointLabel:"GET /crystals, /crystals/chakra/{chakra}, /crystals/element/{element}, /crystals/zodiac/{sign}, /crystals/birthstone/{month}, /crystals/search",docsSummary:"Crystal gallery tiles with photo, name, and colour swatches",topic:"Crystals"},{pascal:"RoxyDreamCard",tag:"roxy-dream-card",slug:"dream-card",heading:"Dream symbol",description:"Dream symbol card with the symbol name, full interpretation, and dictionary letter",docsLabel:"Dreams",endpointLabel:"GET /dreams/symbols/{id}",docsSummary:"Symbol name, interpretation body, and letter chip",topic:"Dreams"},{pascal:"RoxyDreamSearch",tag:"roxy-dream-search",slug:"dream-search",heading:"Dream search",description:"Dream-symbol search results as selectable tiles; emits roxy-symbol-select to pair with roxy-dream-card",docsLabel:"Dreams",endpointLabel:"GET /dreams/symbols",docsSummary:"Matched dream symbols as selectable tiles with a letter chip",topic:"Dreams"},{pascal:"RoxyAngelNumberCard",tag:"roxy-angel-number-card",slug:"angel-number-card",heading:"Angel number",description:"Angel number card with title, core message, badges, keywords, life-area interpretations, affirmation, and action steps",docsLabel:"Angel Numbers",endpointLabel:"GET /angel-numbers/numbers/{number}",docsSummary:"Number meaning with spiritual, love, career, money, twin flame, biblical, and shadow sections",topic:"Angel Numbers"},{pascal:"RoxyAngelNumberLookup",tag:"roxy-angel-number-lookup",slug:"angel-number-lookup",heading:"Angel number lookup",description:"Angel number sequence analysis with pattern classification, the known meaning when present, and a digit-root fallback for any number",docsLabel:"Angel Numbers",endpointLabel:"GET /angel-numbers/lookup",docsSummary:"Pattern analysis plus known meaning and digit-root fallback",topic:"Angel Numbers"},{pascal:"RoxyReferenceCard",tag:"roxy-reference-card",slug:"reference-card",heading:"Reference card",description:"Glossary entry for any reference lookup: zodiac sign, planet meaning, rashi, I Ching trigram, Human Design gate or center, numerology number or compound number",docsLabel:"Reference",endpointLabel:"GET /astrology/{signs,planet-meanings}/{id}, /vedic-astrology/rashis/{id}, /iching/trigrams/{id}, /human-design/{gates,centers}/{id}, /numerology/{meanings,compound-number}/{number}",docsSummary:"Symbol, name, description, keyword chips, and an attribute grid for any glossary lookup",topic:"Helpers"},{pascal:"RoxyEndpointForm",tag:"roxy-endpoint-form",slug:"endpoint-form",heading:"Schema-driven form",description:"Schema-driven form that emits roxy-submit with a validated payload",docsLabel:"Helper",endpointLabel:"Any endpoint, from the spec",docsSummary:"Schema-driven form, emits roxy-submit",topic:"Helpers",selfFetching:!0},{pascal:"RoxyLocationSearch",tag:"roxy-location-search",slug:"location-search",heading:"City search",description:"City search input with debounced /location/search calls",docsLabel:"Helper",endpointLabel:"GET /location/search",docsSummary:"Debounced city search input, emits roxy-location-select",topic:"Helpers",selfFetching:!0},{pascal:"RoxyData",tag:"roxy-data",slug:"data",heading:"Generic renderer",description:"Generic fallback renderer for any OpenAPI response shape",docsLabel:"Helper",endpointLabel:"Any response shape",docsSummary:"Generic fallback renderer for unknown shapes",topic:"Helpers",selfFetching:!0}];var Od=ka.map(o=>o.slug);var Bo=`/**
|
|
132
|
+
</g>`})}renderLegend(e,r,a,n){return s`<div class="legend" part="legend"><span><span class="swatch swatch--natal"></span>${this.t("{{count}} natal bodies",{count:e.length})}</span> <span><span class="swatch swatch--transit"></span>${this.t("{{count}} transiting bodies",{count:r.length})}</span> ${a.length>0?s`<span><span class="swatch swatch--harmonious"></span>${this.t("Harmonious")}</span> <span><span class="swatch swatch--challenging"></span>${this.t("Challenging")}</span>`:i} ${n?s`<span>${this.t("{{system}} houses",{system:n})}</span>`:i} <span>${this.orientationCaption}</span> <span>${this.cuspCaption}</span></div>`}renderSummary(e){if(!e)return i;let r=Object.entries(e.byType??{}).sort((a,n)=>n[1]-a[1]);return s`<div part="details"><div class="summary-pills" role="region" aria-label="${this.t("Transit aspect summary")}">${typeof e.total=="number"?s`<span class="pill pill--muted">${this.t("Total")}: ${e.total}</span>`:i} <span class="pill pill--success">${this.t("Harmonious")}: ${e.harmonious}</span> <span class="pill pill--danger">${this.t("Challenging")}: ${e.challenging}</span> <span class="pill pill--muted">${this.t("Neutral")}: ${e.neutral}</span> ${r.map(([a,n])=>s`<span class="pill pill--muted">${W({type:a})}: ${n}</span>`)}</div>${e.strongest?this.renderStrongest(e.strongest):i}</div>`}renderStrongest(e){let r=$(e,"planet1"),a=$(e,"planet2");return s`<div class="strongest" part="details strongest"><span class="label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph">${dr(e.planet1,r)}</span>${this.t("Transiting")} ${r} <span class="nature-badge ${(e.interpretation??"neutral").toLowerCase()}">${$(e,"type",W(e))}</span> <span aria-hidden="true" class="glyph">${dr(e.planet2,a)}</span>${this.t("Natal")} ${a} <span class="meta">${e.isApplying?this.t("Applying"):this.t("Separating")} · ${this.t("Orb")} ${v(this.effectiveLang(),e.orb,2)}° · ${this.t("Strength")} ${v(this.effectiveLang(),e.strength,0)}</span></div>`}renderPositions(e,r,a){if(e.length===0&&r.length===0)return i;let n=wa(e),l=wa(r),d=e.length>0?e:r,c=h=>h?s`${z(h.sign)??""} ${zo(h.longitude)} ${$(h,"sign")}${h.isRetrograde?s`<span class="retro-badge" aria-label="${this.t("retrograde")}">℞</span>`:i}`:i,p=h=>a?s`<td>${h&&Number.isFinite(h.house)?h.house:i}</td>`:i;return s`<div class="scroll" part="table" tabindex="0" role="region" aria-labelledby="transit-positions"><table><caption id="transit-positions" class="roxy-sr-only">${this.t("Every body with its natal position and its position on the transit date, each as a zodiac sign and a degree.")} ${a?this.t("Both house numbers are read against the natal house cusps."):i}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col"><span class="swatch swatch--natal" aria-hidden="true"></span>${this.t("Natal")}</th>${a?s`<th scope="col">${this.t("Natal house")}</th>`:i}<th scope="col"><span class="swatch swatch--transit" aria-hidden="true"></span>${this.t("Transiting")}</th>${a?s`<th scope="col">${this.t("Transiting house")}</th>`:i}</tr></thead><tbody>${d.map(h=>{let m=N(h.name),f=$(h,"name");return s`<tr><th scope="row"><span aria-hidden="true" class="glyph">${dr(h.name,f)}</span> ${f}</th><td>${c(n.get(m))}</td>${p(n.get(m))}<td>${c(l.get(m))}</td>${p(l.get(m))}</tr>`})}</tbody></table></div>`}renderReadings(e){let r=e.filter(a=>a.transitInterpretation?.summary).map(a=>{let n=a.transitInterpretation,l=$(a,"planet1"),d=$(a,"planet2");return{label:`${dr(a.planet1,l)} ${l} ${$(a,"type",W(a))} ${dr(a.planet2,d)} ${d}`,aside:`${this.t("Orb")} ${v(this.effectiveLang(),a.orb,2)}° · ${this.t("Strength")} ${v(this.effectiveLang(),a.strength,0)}`,body:n.summary,extra:s`${n.impact?s`<p><strong>${this.t("Impact")}:</strong> ${n.impact}</p>`:i} ${n.timing?s`<p><strong>${this.t("Timing")}:</strong> ${n.timing}</p>`:i} ${n.guidance?s`<p><strong>${this.t("Guidance")}:</strong> ${n.guidance}</p>`:i} ${st(n.keywords)}`}});return this.renderInterpretation(r,"transit-aspect-readings","Transit readings")}};xe.styles=[x,nr,M,_,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}svg{width:100%;max-width:var(--roxy-chart-max-width,560px);aspect-ratio:1;height:auto;margin:0 auto;display:block}.wheel-line{fill:none;stroke:var(--roxy-border,#e4e4e7)}.sign-glyph{fill:var(--roxy-secondary,#475569);font-size:14px;font-family:var(--roxy-font-sans)}.natal-glyph{fill:var(--roxy-accent-ink,#b45309);font-size:13px;font-weight:600;font-family:var(--roxy-font-sans)}.transit-glyph{fill:var(--roxy-info,#0284c7);font-size:13px;font-weight:600;font-family:var(--roxy-font-sans)}.leader{stroke:currentColor;stroke-width:.6px;opacity:.6}.leader.natal-glyph{stroke:var(--roxy-accent-ink,#b45309)}.leader.transit-glyph{stroke:var(--roxy-info,#0284c7)}.planet-deg{fill:var(--roxy-muted,#71717a);font-size:7px;font-family:var(--roxy-font-sans)}.planet-deg .retro{fill:var(--roxy-danger,#dc2626)}@container (width<=480px){.sign-glyph,.natal-glyph,.transit-glyph{font-size:18px}.planet-deg{font-size:10px}.house-num{font-size:12px}}.tick{stroke:var(--roxy-border,#e4e4e7)}.tick-major{stroke:var(--roxy-secondary,#475569)}.house-cusp{stroke:var(--roxy-secondary,#475569);stroke-width:1px;stroke-dasharray:3 3}.house-num{fill:var(--roxy-secondary,#475569);font-size:9px;font-family:var(--roxy-font-sans)}.axis-tick{stroke:var(--roxy-accent-ink,#b45309);stroke-width:1.5px}.axis-label{fill:var(--roxy-accent-ink,#b45309);font-size:10px;font-weight:700;font-family:var(--roxy-font-sans);letter-spacing:.04em}.swatch{vertical-align:middle;border-radius:50%;width:8px;height:8px;margin-right:4px;display:inline-block}.swatch--natal{background:var(--roxy-accent-ink,#b45309)}.swatch--transit{background:var(--roxy-info,#0284c7)}.swatch--harmonious{background:var(--roxy-success,#16a34a)}.swatch--challenging{background:var(--roxy-danger,#dc2626)}.legend{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.summary-pills{gap:var(--roxy-space-sm,.5rem);margin-bottom:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.pill{padding:2px var(--roxy-space-sm,.5rem);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);border:1px solid;align-items:center;gap:4px;display:inline-flex}.pill--muted{color:var(--roxy-fg,#0a0a0a);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent)}.pill--success{color:var(--roxy-success-fg,#166534);background:color-mix(in srgb, var(--roxy-success,#16a34a) 10%, transparent)}.pill--danger{color:var(--roxy-danger-fg,#991b1b);background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent)}.strongest{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.strongest .label{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600)}.strongest .meta{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.glyph{font-size:1.1em;line-height:1}.nature-badge{font-size:var(--roxy-text-xs,.75rem);text-transform:capitalize;border-radius:9999px;padding:1px 8px;font-weight:600;display:inline-block}.nature-badge.harmonious{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.nature-badge.challenging{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.nature-badge.neutral{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a)}.scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left;white-space:nowrap}thead th{color:var(--roxy-muted,#71717a);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}th{font-weight:var(--roxy-weight-bold,600)}td{font-variant-numeric:tabular-nums}.retro-badge{color:var(--roxy-danger-fg,#991b1b);font-weight:var(--roxy-weight-bold,600);margin-left:.25rem}`],g([S({type:String})],xe.prototype,"heading",2),g([S({type:Number})],xe.prototype,"ascendant",2),g([S({type:Array})],xe.prototype,"houses",2),xe=g([b("roxy-transit-wheel")],xe);var Xe=class extends y{constructor(){super(...arguments);this.tab="positions"}renderData(e){if(!e.transitPlanets?.length)return this.renderEmpty();let{transitDate:r,transitTime:a,transitPlanets:n,transitAspects:l,summary:d}=e,c=[A(this.effectiveLang(),r),te(this.effectiveLang(),a)].filter(Boolean).join(" "),p=l?.length??0,h=this.tab;return s`<div class="wrap" part="card" aria-label="${this.t("Transits")}"><div class="head" part="header"><h2 class="title">${this.t("Transits")}</h2>${c?s`<p class="subtitle">${c}</p>`:i}</div>${p>0?s`${se({items:[{id:"positions",label:this.t("Positions")},{id:"aspects",label:this.t("Aspects ({{count}})",{count:p})}],active:h,onSelect:m=>{this.tab=m},label:this.t("Transit views"),idPrefix:"transits",controls:!0})}<div id="transits-panel-${h}" part="panel" role="tabpanel" aria-labelledby="transits-tab-${h}">${h==="positions"?s`<div class="overflow-scroll">${this.renderPlanetsTable(n)}</div>`:s`${d?this.renderSummaryPills(d):i}<div class="overflow-scroll">${this.renderAspectsList(l??[])}</div>`}</div>`:s`<div class="overflow-scroll">${this.renderPlanetsTable(n)}</div>`}</div>`}renderSummaryPills(e){return s`<div class="summary-pills" part="details" role="region" aria-label="${this.t("Aspect summary")}"><span class="pill pill--muted">${this.t("Total")}: ${e.totalAspects} </span><span class="pill pill--success">${this.t("Harmonious")}: ${e.harmonious} </span><span class="pill pill--danger">${this.t("Challenging")}: ${e.challenging} </span><span class="pill pill--muted">${this.t("Neutral")}: ${e.neutral}</span></div>`}renderPlanetsTable(e){return s`<table class="planets-table" part="table"><caption class="roxy-sr-only">${this.t("Transiting planets: each planet with its current sign, degree and daily speed.")}</caption><thead><tr><th scope="col">${this.t("Planet")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Speed")}</th></tr></thead><tbody>${e.map(r=>{let a=R(r.name)??"",n=z(r.sign)??"",l=r.speed>=0?"↑":"↓";return s`<tr><td><div class="planet-cell"><span class="glyph" aria-hidden="true">${a}</span> ${r.name} ${r.isRetrograde?s`<span class="retro-badge" aria-label="${this.t("retrograde")}">R</span>`:i}</div></td><td><div class="planet-cell"><span class="glyph" aria-hidden="true">${n}</span> ${r.sign}</div></td><td class="num">${v(this.effectiveLang(),r.degree,2)}</td><td class="speed"><span class="speed-arrow" aria-hidden="true">${l}</span> ${v(this.effectiveLang(),Math.abs(r.speed),2)}${this.t("°/day")}</td></tr>`})}</tbody></table>`}renderAspectsList(e){return s`<div part="section aspects" role="list" aria-label="${this.t("Transit aspects")}">${e.map((r,a)=>{let n=R(r.transitPlanet)??"",l=R(r.natalPlanet)??"",d=(r.nature??"neutral").toLowerCase(),c=r.interpretation,p=W(r),h=r.isApplying?this.t("Applying"):this.t("Separating");return s`<details class="aspect-card" part="reading" role="listitem" name="transit-aspects" ?open="${a===0}"><summary><span aria-hidden="true">${n}</span> ${r.transitPlanet} <span class="nature-badge ${d}">${p}</span> <span aria-hidden="true">${l}</span> ${r.natalPlanet} <span class="meta">${this.t("{{status}} · orb {{orb}}° · str {{strength}}",{status:h,orb:v(this.effectiveLang(),r.orb,2),strength:v(this.effectiveLang(),r.strength,1)})} </span>${j()}</summary><div class="interp-body">${xr(c,this.translator)}</div></details>`})}</div>`}};Xe.styles=[x,ee,M,Ha,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.summary-pills{gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.pill{padding:2px var(--roxy-space-sm,.5rem);border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);border:1px solid;align-items:center;gap:4px;display:inline-flex}.pill--muted{color:var(--roxy-fg,#0a0a0a);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent)}.pill--success{color:var(--roxy-success-fg,#166534);background:color-mix(in srgb, var(--roxy-success,#16a34a) 10%, transparent)}.pill--danger{color:var(--roxy-danger-fg,#991b1b);background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent)}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}.section-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-xs,.25rem) 0}.glyph{margin-right:2px;font-size:1.1em;line-height:1}.planet-cell{white-space:nowrap;align-items:center;gap:4px;display:flex}.retro-badge{border-radius:var(--roxy-radius-sm,4px);background:color-mix(in srgb, var(--roxy-warning,#ea580c) 12%, transparent);color:var(--roxy-warning-fg,#9a3412);font-size:.7em;font-weight:var(--roxy-weight-bold,600);vertical-align:middle;margin-left:2px;padding:1px 4px;display:inline-block}.speed{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a);white-space:nowrap}.speed-arrow{font-size:.85em}td.num{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a)}.overflow-scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}.aspect-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem)}.aspect-card summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);flex-wrap:wrap;align-items:center;gap:.5em;font-weight:500;display:flex}.aspect-card summary .meta{color:var(--roxy-muted,#71717a);font-weight:400;font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums;margin-left:auto}.aspect-card .interp-body{margin-top:var(--roxy-space-xs,.25rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);line-height:1.45}.aspect-card .interp-body p{margin:0 0 var(--roxy-space-xs,.25rem)}.nature-badge{font-size:var(--roxy-text-xs,.75rem);border-radius:9999px;padding:1px 8px;font-weight:600;display:inline-block}.nature-badge.harmonious{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.nature-badge.challenging{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.nature-badge.neutral{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a)}`],g([G()],Xe.prototype,"tab",2),Xe=g([b("roxy-transits-table")],Xe);var Od=[{key:"timeBased",titleSource:"Time based",noteSource:"From the eightfold division of the day or night, so these depend on the birth time, the place and the weekday."},{key:"sunBased",titleSource:"Sun based",noteSource:"The Dhuma group, derived by fixed arc from the Sun. Dhuma is the Sun plus 133 degrees 20 minutes, and each of the rest follows from the one before it."}],qt=class extends y{renderData(t){let e=Od.filter(r=>t[r.key]?.length);return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Upagraha positions")}"><header class="head" part="header"><h2 class="title">${this.t("Upagrahas")}</h2>${F(this.effectiveLang(),t.frame,this.translator)}</header>${e.map(r=>this.renderGroup(r,t[r.key]))}</div>`:this.renderEmpty()}renderGroup(t,e){let r=s`<div class="group-head"><h3 class="group-title">${this.t(t.titleSource)}</h3><p class="group-note">${this.t(t.noteSource)}</p></div><div class="scroll" part="table" tabindex="0"><table role="table"><caption class="roxy-sr-only">${this.t("{{group}} upagrahas: each sub-planet with its rashi, degree in sign, sidereal longitude, and nakshatra with pada.",{group:this.t(t.titleSource)})}</caption><thead><tr><th scope="col">${this.t("Upagraha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Longitude")}</th><th scope="col">${this.t("Nakshatra")}</th><th scope="col">${this.t("Pada")}</th></tr></thead><tbody>${e.map(a=>{let n=z(a.rashi)??"";return s`<tr><td class="name">${a.name}</td><td>${n?s`<span class="glyph">${n}</span>`:i}${a.rashi??""}</td><td class="num">${typeof a.longitude=="number"?ie(a.longitude):""}</td><td class="num">${v(this.effectiveLang(),a.longitude,2)}</td><td>${a.nakshatra??""}</td><td class="num">${a.nakshatraPada??""}</td></tr>`})}</tbody></table></div>`;return t.key==="timeBased"?s`<section part="section time-based">${r}</section>`:s`<section part="section sun-based">${r}</section>`}};qt.styles=[x,I,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7)}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.group-head{padding:var(--roxy-space-md,1rem) var(--roxy-space-md,1rem) 0;gap:var(--roxy-space-xs,.25rem);display:grid}.group-title{font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);margin:0}.group-note{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.scroll{min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:520px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}td.name{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.4em}.num{font-variant-numeric:tabular-nums}`],qt=g([b("roxy-upagraha-table")],qt);var Ut=class extends y{renderData(t){let e=t.aspects??[],r=t.mutualAspects??[],a=t.planets??[];if(e.length===0&&r.length===0)return this.renderEmpty();let n=t.datetime?`${A(this.effectiveLang(),t.datetime)}, ${te(this.effectiveLang(),t.datetime)}`:"";return s`<div class="wrap" part="card" aria-label="${this.t("Vedic aspects")}"><div class="head" part="header"><h2 class="title">${this.t("Vedic aspects")}</h2>${n?s`<p class="subtitle">${this.t("Chart time {{when}}",{when:n})}</p>`:i}</div>${a.length>0?s`<div part="section positions"><p class="section-label">${this.t("Sidereal positions")}</p><div class="mutual">${a.map(l=>s`<span class="position"><strong>${l.name}</strong> ${typeof l.longitude=="number"?ie(l.longitude):l.sign??""}</span>`)}</div></div>`:i} ${r.length>0?s`<div part="section mutual-aspects"><p class="section-label">${this.t("Mutual aspects")}</p><div class="mutual">${r.map(l=>s`<span class="mutual-pill">${l.planet1} ⟷ ${l.planet2} ${l.aspectType?s`<span class="rel">${l.aspectType}</span>`:i}</span>`)}</div></div>`:i} ${e.length>0?s`<div class="overflow-scroll" part="table"><table><caption class="roxy-sr-only">${this.t("Vedic planetary aspects: aspecting planet, aspect type, aspected planet, strength and orb.")}</caption><thead><tr><th scope="col">${this.t("From")}</th><th scope="col">${this.t("Aspect")}</th><th scope="col">${this.t("To")}</th><th scope="col">${this.t("Strength")}</th><th scope="col">${this.t("Orb")}</th></tr></thead><tbody>${e.map(l=>s`<tr><td>${l.aspectingPlanet}</td><td><span class="kind">${l.aspectType}</span></td><td>${l.aspectedPlanet}</td><td>${typeof l.strength=="number"?s`<span class="bar" style="width:${Math.max(4,Math.min(100,l.strength)*.4)}px"></span><span class="num">${v(this.effectiveLang(),l.strength,0)}</span>`:i}</td><td class="num">${typeof l.orb=="number"?`${v(this.effectiveLang(),l.orb,2)}°`:""}</td></tr>`)}</tbody></table></div>`:i}</div>`}};Ut.styles=[x,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.subtitle{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);margin:0}.section-label{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600);margin:0 0 var(--roxy-space-xs,.25rem) 0}.mutual{gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.mutual-pill{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);align-items:center;gap:.35rem;padding:2px 10px;display:inline-flex}.mutual-pill .rel{font-size:var(--roxy-text-xs,.75rem);font-weight:400}.position{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-fg,#0a0a0a);font-variant-numeric:tabular-nums;align-items:baseline;gap:.35rem;padding:2px 10px;display:inline-flex}.position strong{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem)}.overflow-scroll{-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}tbody tr:last-child td{border-bottom:none}.kind{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);font-size:var(--roxy-text-xs,.75rem);padding:1px 8px;font-weight:600;display:inline-block}.num{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a)}.bar{background:var(--roxy-accent,#f59e0b);vertical-align:middle;border-radius:3px;height:6px;margin-right:6px;display:inline-block}`],Ut=g([b("roxy-vedic-aspects")],Ut);var Ns={favourable:"Favourable",underdelivered:"Underdelivered",obstructed:"Obstructed",void:"Void",aggravated:"Aggravated",unfavourable:"Unfavourable"},Bd=Object.keys(Ns),Po=8,No={"very-strong":"Very strong",strong:"Strong",moderate:"Moderate",weak:"Weak"},Go={mahadasha:"Mahadasha",antardasha:"Antardasha",pratyantardasha:"Pratyantardasha"},Yt=class extends y{renderData(t){let e=t.grahas??[];return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Vedic daily reading")}">${this.renderHead(t)} ${this.renderPanchanga(t)} ${this.renderGrahas(e,t.houseThemes)} ${this.renderWindows(t)} ${this.renderFinance(t)} ${this.renderDasha(t)} ${this.renderProvenance(t)}</div>`:this.renderEmpty()}renderHead(t){let e=new Map((t.tally??[]).map(a=>[a.state,a.count])),r=e.get("favourable")??0;return s`<header class="head" part="header"><div class="title-row"><h2 class="title">${this.t("Vedic daily")}</h2><span class="when">${q(this.effectiveLang(),t.dayStart)} — ${q(this.effectiveLang(),t.dayEnd)}</span></div><div class="verdict-row"><span class="verdict ${t.verdict}">${this.t(No[t.verdict])}</span> <span class="evidence">${this.t("{{supportive}} of {{evaluated}} grahas support this day",{supportive:r,evaluated:t.evaluated})}</span></div>${e.size?s`<div class="tally" part="legend">${Bd.filter(a=>e.get(a)).map(a=>s`<span class="pill">${this.t(Ns[a])} ${e.get(a)}</span>`)}</div>`:i} ${t.subject?s`<p class="note">${this.t("Born with the Moon in {{rashi}}, nakshatra {{nakshatra}}",{rashi:t.subject.janmaRashi,nakshatra:t.subject.janmaNakshatra})}</p>`:i} ${(t.degraded??[]).map(a=>s`<p class="note">${this.t("{{component}} unavailable: {{reason}}",{component:a.component,reason:a.reason})}</p>`)}</header>`}renderPanchanga(t){let e=t.panchanga;if(!e)return i;let r=(a,n)=>n?s`<div class="fact"><dt>${a}</dt><dd>${n.number?`${n.number}. `:""}${n.name} ${n.validTo?s`<span class="until">${this.t("until {{time}}",{time:q(this.effectiveLang(),n.validTo)})}</span>`:i}</dd></div>`:i;return s`<section class="block" part="section panchanga"><h3>${this.t("Panchang")}</h3><dl class="facts" part="details"><div class="fact"><dt>${this.t("Vara")}</dt><dd>${e.vara}</dd></div><div class="fact"><dt>${this.t("Paksha")}</dt><dd>${e.paksha}</dd></div>${r(this.t("Tithi"),e.tithi)} ${r(this.t("Nakshatra"),e.nakshatra)} ${r(this.t("Yoga"),e.yoga)} ${r(this.t("Karana"),e.karana)}</dl></section>`}theme(t,e){return t?.[String(e)]?.join(", ")??""}renderGrahas(t,e){return s`<section class="block" part="section grahas"><h3>${this.t("Grahas today")}</h3><div class="scroll"><table part="table"><caption class="roxy-sr-only">${this.t("Each transiting graha with its sign, the house it occupies from the natal Moon, its bindus, its kaksha and the state the classical rules give it.")}</caption><thead><tr><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Bindus")}</th><th scope="col">${this.t("Kaksha")}</th><th scope="col">${this.t("State")}</th></tr></thead><tbody>${t.map(r=>{let a=R(r.graha)??"",n=this.theme(e,r.houseFromMoon);return s`<tr><td>${a?s`<span class="glyph">${a}</span>`:i}${r.graha}</td><td>${r.sign}</td><td class="num" title="${n}">${r.houseFromMoon}</td><td class="num">${typeof r.binduCount=="number"?r.binduCount:""}</td><td class="num">${this.renderKaksha(r.kaksha)}</td><td><span class="state ${r.state}" title="${r.stateSource??""}">${this.t(Ns[r.state])}</span></td></tr>`})}</tbody></table></div></section>`}renderKaksha(t){if(!t||typeof t.number!="number")return i;let e=t.bindu===!0?"yes":t.bindu===!1?"no":"",r=t.bindu===!0?this.t("this kaksha lord gave bindu"):t.bindu===!1?this.t("this kaksha lord gave no bindu"):"",a=this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}, spanning {{start}}° to {{end}}° of the sign",{n:t.number,total:Po,graha:t.lord,start:v(this.effectiveLang(),t.startDegree,2),end:v(this.effectiveLang(),t.endDegree,2)});return s`<span class="kaksha" title="${r?`${a} · ${r}`:a}">${t.number}/${Po} <span class="dot ${e}" aria-hidden="true"></span></span>`}renderWindows(t){let e=t.tara??[],r=t.chandrabala??[];if(!e.length&&!r.length)return i;let a=(n,l)=>s`<small>${q(this.effectiveLang(),n)} — ${q(this.effectiveLang(),l)}</small>`;return s`<section class="block" part="section windows"><h3>${this.t("Tara and Chandrabala")}</h3>${e.length?s`<div class="chips">${e.map(n=>s`<span class="window"><span>${n.number}. ${n.name}${n.quality?` · ${n.quality}`:""}</span> ${a(n.validFrom,n.validTo)}</span>`)}</div>`:i} ${r.length?s`<div class="chips">${r.map(n=>s`<span class="window ${n.favourable?"yes":"no"}"><span>${this.t("Moon in {{sign}}, house {{n}}",{sign:n.moonSign,n:n.houseFromMoon})} ${n.ashtamaChandra?s`<span class="mark">· ${this.t("Ashtama Chandra")}</span>`:i} </span>${a(n.validFrom,n.validTo)}</span>`)}</div>`:i}</section>`}renderFinance(t){let e=t.areas?.finance;if(!e)return i;let r=t.houseThemes,a=n=>{let l=this.theme(r,n.house);return s`<li>${n.graha} · ${this.t("House {{n}}",{n:n.house})}${l?` (${l})`:""} · ${this.t("level {{level}} {{grade}}",{level:n.level,grade:n.grade})} ${n.dashaLevels?.length?s`<span class="note">${n.dashaLevels.map(d=>this.t(Go[d])).join(", ")}</span>`:i}</li>`};return s`<section class="block" part="section finance"><h3>${this.t("Finance")}</h3><div class="verdict-row"><span class="verdict ${e.band??""}">${e.band?this.t(No[e.band]):""}</span> ${typeof e.positive=="number"&&typeof e.negative=="number"?s`<span class="evidence">${this.t("{{positive}} positive against {{negative}} negative",{positive:e.positive,negative:e.negative})}</span>`:i}</div><div class="lists">${e.drivers?.length?s`<div><h3>${this.t("Drivers")}</h3><ul>${e.drivers.map(a)}</ul></div>`:i} ${e.cautions?.length?s`<div><h3>${this.t("Cautions")}</h3><ul>${e.cautions.map(a)}</ul></div>`:i}</div></section>`}renderDasha(t){let e=t.dasha??[];return e.length?s`<section class="block" part="section dasha"><h3>${this.t("Dasha")}</h3><div class="chips">${e.map(r=>s`<span class="window"><span>${this.t(Go[r.level])} · ${r.lord}</span> <small>${q(this.effectiveLang(),r.startDate)} — ${q(this.effectiveLang(),r.endDate)}</small></span>`)}</div></section>`:i}renderProvenance(t){return t.frames?s`<section class="block" part="section frame">${kn(this.effectiveLang(),t.frames,this.translator)}</section>`:i}};Yt.styles=[x,I,u`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);box-shadow:var(--roxy-shadow-sm);display:grid;overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-sm,.5rem);display:grid}.title-row{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.when{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.verdict-row{align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.verdict{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-muted,#71717a) 14%, transparent);padding:.15rem .6rem}.verdict.very-strong,.verdict.strong{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#14532d)}.verdict.moderate{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-accent-ink,#b45309)}.verdict.weak{background:color-mix(in srgb, var(--roxy-muted,#71717a) 16%, transparent);color:var(--roxy-secondary,#475569)}.evidence{color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-sm,.875rem);font-variant-numeric:tabular-nums}.tally{flex-wrap:wrap;gap:.35rem;display:flex}.pill{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-full,9999px);border:1px solid var(--roxy-border,#e4e4e7);color:var(--roxy-secondary,#475569);font-variant-numeric:tabular-nums;padding:1px 8px}.block{padding:var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-sm,.5rem);display:grid}.block h3{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em;color:var(--roxy-muted,#71717a);margin:0}.facts{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(7.5rem,1fr));margin:0;display:grid}.fact{gap:2px;display:grid}.fact dt{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.05em}.fact dd{font-size:var(--roxy-text-sm,.875rem);margin:0}.fact .until{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}.scroll{-webkit-overflow-scrolling:touch;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap;padding:.35rem .5rem}th{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.05em;font-weight:var(--roxy-weight-bold,600)}td.num{font-variant-numeric:tabular-nums}.glyph{color:var(--roxy-muted,#71717a);margin-right:.35em}.state{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-muted,#71717a) 14%, transparent);cursor:help;padding:1px 8px}.state.favourable{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#14532d)}.state.underdelivered,.state.obstructed,.state.void{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-accent-ink,#b45309)}.state.aggravated,.state.unfavourable{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 14%, transparent);color:var(--roxy-danger-fg,#991b1b)}.kaksha{cursor:help;align-items:center;gap:.35rem;display:inline-flex}.dot{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 90%, transparent);border-radius:50%;width:7px;height:7px}.dot.yes{background:var(--roxy-success,#16a34a)}.dot.no{background:var(--roxy-warning,#f59e0b)}.chips{flex-wrap:wrap;gap:.35rem;display:flex}.window{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);font-size:var(--roxy-text-sm,.875rem);gap:1px;padding:.3rem .6rem;display:grid}.window small{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums}.window.yes{border-color:color-mix(in srgb, var(--roxy-success,#16a34a) 45%, transparent)}.window.no{border-color:color-mix(in srgb, var(--roxy-danger,#dc2626) 35%, transparent)}.mark{color:var(--roxy-danger-fg,#991b1b)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.lists ul{font-size:var(--roxy-text-sm,.875rem);line-height:var(--roxy-leading-normal,1.5);margin:0;padding-left:1.1rem}.note{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}`],Yt=g([b("roxy-vedic-daily")],Yt);var be=class extends y{constructor(){super(...arguments);this.chartStyle="north";this.chartReference="lagna";this.lagnaOverride="";this.setStyle=e=>{this.chartStyle=e}}resolveReference(){if(this.lagnaOverride)return this.lagnaOverride;if(this.chartReference==="moon")return this.data?.meta?.Moon?.rashi}viewModel(){return this.data?.meta?la(this.data.meta,{divisionLabel:"D1 Rashi",lagnaOverride:this.resolveReference(),states:this.data}):null}renderData(e){let r=this.viewModel();if(!r)return this.renderEmpty();let a=this.chartReference==="moon"&&!this.lagnaOverride?this.t("Chandra lagna"):this.t("Vedic kundli");return s`<div class="wrap" part="card"><div class="header" part="header"><div><h2 class="title">${a}</h2>${F(this.effectiveLang(),e.frame,this.translator)} ${da(r,this.translator)}</div>${pa(this.chartStyle,this.setStyle,this.translator)}</div><div id="kundli-panel-${this.chartStyle}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="kundli-tab-${this.chartStyle}"><svg viewBox="0 0 400 400" preserveAspectRatio="xMidYMid meet" part="chart" role="img" aria-label="${this.t("Vedic birth chart with twelve sign houses")}"><title>${this.t("Vedic kundli")}</title>${ca(r,this.chartStyle,this.translator)}</svg></div></div>`}};be.styles=[x,I,ma,ee],g([S({type:String,reflect:!0,attribute:"chart-style"})],be.prototype,"chartStyle",2),g([S({type:String,reflect:!0,attribute:"chart-reference"})],be.prototype,"chartReference",2),g([S({type:String,reflect:!0,attribute:"lagna-override"})],be.prototype,"lagnaOverride",2),be=g([b("roxy-vedic-kundli")],be);var Id=["Lagna","Sun","Moon","Mars","Mercury","Jupiter","Venus","Saturn","Rahu","Ketu"],Zt=class extends y{orderedRows(){let t=this.data?.meta??{},e=new Set,r=[];for(let a of Id){let n=t[a];n&&(r.push([a,n]),e.add(a))}for(let[a,n]of Object.entries(t))e.has(a)||r.push([a,n]);return r}renderData(t){if(!t.meta)return this.renderEmpty();let e=this.orderedRows();return s`<div class="wrap" part="card" aria-label="${this.t("Vedic planetary positions")}"><header class="head" part="header"><h2 class="title">${this.t("Planetary positions")}</h2>${F(this.effectiveLang(),t.frame,this.translator)}</header><div class="scroll" part="table" tabindex="0"><table role="table"><caption class="roxy-sr-only">${this.t("Vedic planetary positions: each graha with its rashi, degree, nakshatra, pada, nakshatra lord, house, its state in all three avastha systems, and retrograde state. Jagradadi and Deeptadi are read from sign dignity, which the nodes and the Lagna do not have, so those two cells are blank on the Rahu, Ketu and Lagna rows. Uranus, Neptune and Pluto appear only when asked for and rule no sign, so every avastha and house cell is blank on their rows too.")}</caption><thead><tr><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Nakshatra")}</th><th scope="col">${this.t("Pada")}</th><th scope="col">${this.t("Nak. lord")}</th><th scope="col">${this.t("House")}</th><th scope="col" title="${this.t("Baladi: the five age states, set by degree within the sign")}">${this.t("Baladi")}</th><th scope="col" title="${this.t("Jagradadi: the three waking states, set by sign dignity. The seven classical grahas only")}">${this.t("Jagradadi")}</th><th scope="col" title="${this.t("Deeptadi: the nine dispositional states, set by sign dignity. The seven classical grahas only")}">${this.t("Deeptadi")}</th><th scope="col">${this.t("Retro")}</th></tr></thead><tbody>${e.map(([r,a])=>{let n=(a.graha??r)==="Lagna",l=R(a.graha??r)??"",d=z(a.rashi)??"";return s`<tr class="${n?"lagna":""}"><td class="graha">${l?s`<span class="glyph">${l}</span>`:i}${a.graha??r}</td><td>${d?s`<span class="glyph">${d}</span>`:i}${a.rashi??""}</td><td class="num">${typeof a.longitude=="number"?ie(a.longitude):""}</td><td>${a.nakshatra?.name??""}</td><td class="num">${a.nakshatra?.pada??""}</td><td>${a.nakshatra?.lord??""}</td><td class="num">${typeof a.house=="number"?a.house:""}</td><td>${a.awastha??""}</td><td>${a.jagradadi??""}</td><td>${a.deeptadi??""}</td><td>${a.isRetrograde?s`<span class="retro">R</span>`:i}</td></tr>`})} ${this.renderModernRows()}</tbody></table></div>${this.renderCombustion()} ${this.renderPlanetaryWar()} ${this.renderInterpretations()} ${this.renderYogas()} ${this.renderHouses()}</div>`}renderModernRows(){let t=this.data?.modernPlanets??[];return t.length===0?i:t.map((e,r)=>{let a=z(e.rashi)??"";return s`<tr class="modern ${r===0?"modern-first":""}"><td class="graha">${vr(e.planet,e.sanskritName)}</td><td>${a?s`<span class="glyph">${a}</span>`:i}${e.rashi??""}</td><td class="num">${typeof e.longitude=="number"?ie(e.longitude):""}</td><td>${e.nakshatra?.name??""}</td><td class="num">${e.nakshatra?.pada??""}</td><td>${e.nakshatra?.lord??""}</td><td></td><td></td><td></td><td></td><td>${e.isRetrograde?s`<span class="retro">R</span>`:i}</td></tr>`})}renderCombustion(){let t=this.data?.combustion??[];return t.length===0?i:s`<details class="panel" part="section combustion"><summary>${this.t("Combust grahas")}<span class="summary-count">${t.length}</span>${j()}</summary><div class="panel-body">${t.map(e=>{let r=R(e.planet)??"",a=v(this.effectiveLang(),e.distanceFromSun,2),n=v(this.effectiveLang(),e.orb,1);return s`<div class="condition"><span class="planet">${r?`${r} `:""}${e.planet}</span> <span class="detail">${this.t("{{distance}} deg from Sun, within {{orb}} deg orb",{distance:a,orb:n})}</span></div>`})}</div></details>`}renderPlanetaryWar(){let t=this.data?.planetaryWar??[];return t.length===0?i:s`<details class="panel" part="section planetary-war"><summary>${this.t("Planetary wars")}<span class="summary-count">${t.length}</span>${j()}</summary><div class="panel-body">${t.map(e=>{let r=v(this.effectiveLang(),e.distance,2);return s`<div class="condition"><span class="planet">${this.t("{{first}} vs {{second}}",{first:e.planet1,second:e.planet2})}</span> <span class="detail">${this.t("{{distance}} deg apart",{distance:r})}</span> <span class="winner">${this.t("{{graha}} wins",{graha:e.winner})}</span></div>`})}</div></details>`}renderInterpretations(){if(this.hideReadings)return i;let t=this.data?.interpretations??{},e=this.orderedRows().map(([r,a])=>[a.graha??r,t[a.graha??r]]).filter(([,r])=>r!=null);return e.length===0?i:s`<details class="panel" part="section readings"><summary>${this.t("Interpretations")}<span class="summary-count">${e.length}</span>${j()}</summary><div class="panel-body">${e.map(([r,a])=>{let n=R(r)??"";return s`<div class="interp"><span class="planet">${n?`${n} `:""}${r}</span> ${a.rashi?s`<p><span class="label">${this.t("Rashi.")}</span> ${a.rashi}</p>`:i} ${a.nakshatra?s`<p><span class="label">${this.t("Nakshatra.")}</span> ${a.nakshatra}</p>`:i}</div>`})}</div></details>`}renderHouses(){let t=(this.data?.houses??[]).filter(e=>e.name||e.description);return t.length===0?i:s`<details class="panel" part="section bhava-significations"><summary>${this.t("Bhava significations")}<span class="summary-count">${t.length}</span>${j()}</summary><div class="panel-body">${t.map(e=>s`<div class="bhava"><span class="name">${e.number}. ${e.name??""}</span> ${e.description?s`<p class="desc">${e.description}</p>`:i}</div>`)}</div></details>`}renderYogas(){let t=(this.data?.yogas??[]).filter(e=>e.present);return t.length===0?i:s`<details class="panel" part="section yogas"><summary>${this.t("Yogas")}<span class="summary-count">${t.length}</span>${j()}</summary><div class="panel-body">${t.map(e=>s`<div class="bhava"><span class="name">${e.name} ${e.quality?s`<span class="quality ${e.quality.toLowerCase()}">${e.quality}</span>`:i}</span> ${e.result?s`<p class="desc">${e.result}</p>`:i}</div>`)}</div></details>`}};Zt.styles=[x,I,M,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7)}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.scroll{min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:760px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}tbody tr.lagna{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 10%, transparent)}tbody tr.modern-first{border-top-width:2px}td.graha{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.4em}tbody tr.lagna .glyph{color:var(--roxy-accent-ink,#b45309)}.retro{color:var(--roxy-warning-fg,#9a3412);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600)}.num{font-variant-numeric:tabular-nums}details.panel{border-top:1px solid var(--roxy-border,#e4e4e7)}details.panel>summary{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);cursor:pointer;font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a);display:flex}details.panel>summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:-2px}.summary-count{margin-left:auto;margin-right:var(--roxy-space-xs,.25rem);font-weight:var(--roxy-weight-normal,400);color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums}.panel-body{padding:0 var(--roxy-space-md,1rem) var(--roxy-space-md,1rem);gap:var(--roxy-space-sm,.5rem);grid-template-columns:minmax(0,1fr);display:grid}.condition{font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;align-items:baseline;gap:.4em;display:flex}.condition .planet{font-weight:var(--roxy-weight-bold,600)}.condition .detail{color:var(--roxy-muted,#71717a);font-variant-numeric:tabular-nums}.condition .winner{color:var(--roxy-success-fg,#166534);font-weight:var(--roxy-weight-bold,600)}.interp{gap:.15em;display:grid}.interp .planet{font-weight:var(--roxy-weight-bold,600);font-size:var(--roxy-text-sm,.875rem)}.interp p{font-size:var(--roxy-text-sm,.875rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.interp .label{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600)}.bhava{gap:.15em;display:grid}.bhava .name{font-weight:var(--roxy-weight-bold,600);font-size:var(--roxy-text-sm,.875rem)}.bhava .desc{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);line-height:var(--roxy-leading-normal,1.5);margin:0}.quality{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.04em}.quality.positive{color:var(--roxy-success-fg,#166534)}.quality.negative{color:var(--roxy-danger-fg,#991b1b)}.quality.both{color:var(--roxy-muted,#71717a)}`],Zt=g([b("roxy-vedic-planets-table")],Zt);var Wt=class extends y{rows(){let t=this.data;if(!t)return[];let e=(t.planets??[]).map(a=>({name:a.name,label:$(a,"name"),sign:a.sign,signLabel:$(a,"sign"),longitude:a.longitude,house:a.house,speed:a.speed,isRetrograde:a.isRetrograde,dignity:a.dignity})),r=[["Ascendant",t.ascendant],["Midheaven",t.midheaven],["Part of Fortune",t.partOfFortune],["Vertex",t.vertex]];for(let[a,n]of r)n&&e.push({name:a,label:this.t(a),sign:n.sign,signLabel:$(n,"sign"),longitude:n.longitude,isPoint:!0});return e}renderData(t){if(!t.planets)return this.renderEmpty();let e=this.rows();return s`<div class="wrap" part="card" aria-label="${this.t("Western planetary positions")}" tabindex="0"><header class="head" part="header"><h2 class="title">${this.t("Planetary positions")}</h2></header><table role="table" part="table"><caption class="roxy-sr-only">${this.t("Western planetary positions: each body with its sign, degree, house, essential dignity and motion. The dignity cell is blank for the lunar nodes, Chiron and Lilith, which rule no sign and therefore hold no dignity at all.")}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Dignity")}</th><th scope="col">${this.t("Motion")}</th></tr></thead><tbody>${e.map(r=>{let a=R(r.name)??"",n=z(r.sign)??"",l=typeof r.speed=="number"?v(this.effectiveLang(),r.speed,3):"";return s`<tr class="${r.isPoint?"point":""}"><td class="body">${a?s`<span class="glyph">${a}</span>`:i}${r.label}</td><td>${n?s`<span class="glyph">${n}</span>`:i}${r.signLabel??""}</td><td class="num">${typeof r.longitude=="number"?ie(r.longitude,r.signLabel):""}</td><td class="num">${typeof r.house=="number"?r.house:""}</td><td class="dignity">${r.dignity?N(r.dignity):""}</td><td class="num">${l?s`${l}${this.t("°/day")}`:i} ${r.isRetrograde?s`<span class="retro">℞</span>`:i}</td></tr>`})}</tbody></table></div>`}};Wt.styles=[x,u`.wrap{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);box-shadow:var(--roxy-shadow-sm);overflow:auto}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7)}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem);min-width:460px}thead{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}th,td{padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);text-align:left;white-space:nowrap}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.04em}tbody tr{border-top:1px solid var(--roxy-border,#e4e4e7)}tbody tr.point{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent)}td.body{font-weight:var(--roxy-weight-bold,600);color:var(--roxy-fg,#0a0a0a)}.glyph{color:var(--roxy-muted,#71717a);margin-right:.4em}.retro{color:var(--roxy-danger,#dc2626);font-weight:var(--roxy-weight-bold,600)}.num{font-variant-numeric:tabular-nums}`],Wt=g([b("roxy-western-planets-table")],Wt);function _o(o){return o.suppressedBy||void 0}var Oo=["classical","asraya","dala","akriti","sankhya"];function Bo(o){let t=Oo.indexOf(o.family);return t===-1?Oo.length:t}var jd=[{id:"present",source:"Present",open:!0,noteSource:"Every classical condition is satisfied by this chart."},{id:"outranked",source:"Outranked",open:!0,noteSource:"The rule matched, but a stronger family silences it under the classical precedence norms. Each card names the family that took precedence."},{id:"absent",source:"Not present",open:!1,noteSource:"At least one classical condition fails. Read the evidence for which."}],Qe=class extends y{constructor(){super(...arguments);this.filter="";this.handleInput=e=>{this.filter=e.target.value}}verdictOf(e){return e.present?"present":_o(e)?"outranked":"absent"}renderVerdictGroup(e,r){if(!r.length)return i;let a=[...r].sort((n,l)=>Bo(n)-Bo(l));return s`<details class="group" part="section verdict" ?open="${e.open||!!this.filter}"><summary class="group-summary"><span class="group-label">${this.t(e.source)}</span> <span class="group-count">${r.length}</span></summary><p class="group-note">${this.t(e.noteSource)}</p><div class="detail-grid">${a.map(n=>this.renderDetectCard(n))}</div></details>`}renderQualityChip(e){let r=`quality-chip quality-${e}`;return s`<span class="${r}">${e}</span>`}renderFamilyChip(e){return e.family?s`<span class="family-chip" title="${this.t("Classical family")}">${N(e.family)}</span>`:i}renderDetailCard(e){return s`<div class="detail-card"><p class="detail-name">${e.name} ${e.quality?this.renderQualityChip(e.quality):i} ${this.renderFamilyChip(e)}</p>${e.description&&!this.hideReadings?s`<p class="description">${e.description}</p>`:i} ${this.renderEffects(e.result)}</div>`}renderEffects(e){return!e||this.hideReadings?i:s`<details part="reading"><summary>${this.t("Effects")}</summary><div class="result-body">${e}</div></details>`}renderDetectCard(e){let r=e.present?void 0:_o(e),[a,n]=e.present?["is-present","Present"]:r?["is-outranked",`Outranked by ${N(r)}`]:["is-absent","Not present"];return s`<div class="detail-card ${e.present?"":r?"outranked":"absent"}"><p class="detail-name">${e.name} ${e.quality?this.renderQualityChip(e.quality):i} ${this.renderFamilyChip(e)} <span class="present-badge ${a}">${n}</span></p>${e.description&&!this.hideReadings?s`<p class="description">${e.description}</p>`:i} ${e.present?this.renderEffects(e.result):i} ${e.evidence?s`<p class="evidence">${e.evidence}</p>`:i}</div>`}renderData(e){let r=this.filter.toLowerCase();if("description"in e&&typeof e.description=="string"){let a=e;return s`<div class="wrap" part="card">${this.renderDetailCard(a)}</div>`}if("yogas"in e&&Array.isArray(e.yogas)){let a=e.yogas;if(a.length>0&&"present"in a[0]){let p=a,h=r?p.filter(f=>f.name.toLowerCase().includes(r)):p,m=e.total??p.filter(f=>f.present).length;return s`<div class="wrap" part="card"><div class="head" part="header"><h2 class="title">${this.t("Detected yogas")}</h2><span class="count">${this.t("{{count}} of {{total}} present",{count:m,total:p.length})}</span></div>${F(this.effectiveLang(),e.frame,this.translator)}<div class="search-wrap"><input class="search" type="search" placeholder="${this.t("Filter yogas...")}" aria-label="${this.t("Filter detected yogas by name")}" .value="${this.filter}" @input="${this.handleInput}"></div><div class="group-stack" part="section verdicts" role="region" aria-live="polite" aria-label="${this.t("Detected yogas")}">${h.length>0?jd.map(f=>this.renderVerdictGroup(f,h.filter(C=>this.verdictOf(C)===f.id))):s`<p class="no-results">${this.t("No yogas match your search.")}</p>`}</div></div>`}if(a.length>0&&"description"in a[0]){let p=a,h=r?p.filter(f=>f.name.toLowerCase().includes(r)):p,m=e.total;return s`<div class="wrap" part="card"><div class="head" part="header"><h2 class="title">${this.t("Yoga catalog")}</h2>${m!==void 0?s`<span class="count">${this.t("{{count}} total",{count:m})}</span>`:i}</div><div class="search-wrap"><input class="search" type="search" placeholder="${this.t("Filter yogas...")}" aria-label="${this.t("Filter yoga list by name")}" .value="${this.filter}" @input="${this.handleInput}"></div><div class="detail-grid" part="section yogas" role="region" aria-live="polite" aria-label="${this.t("Yoga results")}">${h.length>0?h.map(f=>this.renderDetailCard(f)):s`<p class="no-results">${this.t("No yogas match your search.")}</p>`}</div></div>`}let l=a,d=r?l.filter(p=>p.name.toLowerCase().includes(r)):l,c=e.total;return s`<div class="wrap" part="card"><div class="head" part="header"><h2 class="title">${this.t("Yoga catalog")}</h2>${c!==void 0?s`<span class="count">${this.t("{{count}} total",{count:c})}</span>`:i}</div><div class="search-wrap"><input class="search" type="search" placeholder="${this.t("Filter yogas...")}" aria-label="${this.t("Filter yoga list by name")}" .value="${this.filter}" @input="${this.handleInput}"></div><div class="grid" part="section yogas" role="region" aria-live="polite" aria-label="${this.t("Yoga results")}">${d.length>0?d.map(p=>s`<div class="yoga-chip">${p.name}</div>`):s`<p class="no-results">${this.t("No yogas match your search.")}</p>`}</div></div>`}return s`<div class="roxy-empty" role="status">${this.t("No yoga data")}</div>`}};Qe.styles=[x,I,u`.wrap{gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.count{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a)}.search-wrap{align-items:center;gap:var(--roxy-space-sm,.5rem);display:flex}.search{width:100%;max-width:280px;font-size:var(--roxy-text-sm,.875rem);font-family:var(--roxy-font-sans);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);outline:none;padding:.35em .75em}.search::placeholder{color:var(--roxy-fg,#0a0a0a);opacity:.65}.search:focus{border-color:var(--roxy-accent,#f59e0b);box-shadow:0 0 0 2px color-mix(in srgb, var(--roxy-accent,#f59e0b) 30%, transparent)}.grid{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fill,minmax(180px,1fr));display:grid}.yoga-chip{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);font-size:var(--roxy-text-sm,.875rem);background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);word-break:break-word;padding:.4em .8em}.yoga-chip .yoga-id{color:var(--roxy-fg,#0a0a0a);opacity:.75;margin-top:.15em;font-size:.7em;display:block}.detail-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);background:var(--roxy-surface,#fff);gap:var(--roxy-space-sm,.5rem);display:grid}.detail-name{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;margin:0;display:flex}.quality-chip{font-size:var(--roxy-text-xs,.75rem);border-radius:999px;padding:.15em .6em;font-weight:600;display:inline-block}.quality-Positive{background:color-mix(in srgb, var(--roxy-success,#22c55e) 18%, transparent);color:var(--roxy-success-fg,#15803d);border:1px solid color-mix(in srgb, var(--roxy-success,#22c55e) 40%, transparent)}.quality-Negative{background:color-mix(in srgb, var(--roxy-danger,#ef4444) 18%, transparent);color:var(--roxy-danger-fg,#b91c1c);border:1px solid color-mix(in srgb, var(--roxy-danger,#ef4444) 40%, transparent)}.quality-Both{background:color-mix(in srgb, var(--roxy-warning,#f59e0b) 18%, transparent);color:var(--roxy-warning-fg,#b45309);border:1px solid color-mix(in srgb, var(--roxy-warning,#f59e0b) 40%, transparent)}.family-chip{font-size:var(--roxy-text-xs,.75rem);border:1px solid var(--roxy-border,#e4e4e7);color:var(--roxy-fg,#0a0a0a);border-radius:999px;padding:.15em .6em;font-weight:500;display:inline-block}.present-badge{font-size:var(--roxy-text-xs,.75rem);border-radius:999px;padding:.15em .6em;font-weight:600;display:inline-block}.present-badge.is-present{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.present-badge.is-absent{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 55%, transparent);color:var(--roxy-fg,#0a0a0a)}.present-badge.is-outranked{background:color-mix(in srgb, var(--roxy-warning,#f59e0b) 16%, transparent);color:var(--roxy-warning-fg,#b45309)}.detail-card.absent{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 22%, var(--roxy-surface,#fff))}.detail-card.outranked{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 10%, var(--roxy-surface,#fff))}.group-stack{gap:var(--roxy-space-md,1rem);display:grid}.group{gap:var(--roxy-space-sm,.5rem);display:grid}.group-summary{align-items:baseline;gap:var(--roxy-space-sm,.5rem);cursor:pointer;color:var(--roxy-muted,#71717a);list-style:none;display:flex}.group-summary:before{content:"+";color:var(--roxy-accent-ink,#b45309);font-size:1.1em;line-height:1}.group[open]>.group-summary:before{content:"-"}.group-label{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em}.group-count{font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums}.group-note,.evidence{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:var(--roxy-leading-normal,1.5);margin:0}.description{font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-muted,#71717a);line-height:var(--roxy-leading-normal,1.5);margin:0}.detail-card details{font-size:var(--roxy-text-sm,.875rem)}.detail-card details>summary{cursor:pointer;color:var(--roxy-accent-ink,#b45309);align-items:center;gap:.4em;padding:.25em 0;font-weight:500;list-style:none;display:flex}.detail-card details>summary:before{content:"+";font-size:1.1em;line-height:1}.detail-card details[open]>summary:before{content:"-"}.detail-card details .result-body{padding-top:var(--roxy-space-xs,.25rem);color:var(--roxy-fg,#0a0a0a);line-height:var(--roxy-leading-normal,1.5)}.no-results{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);padding:var(--roxy-space-md,1rem) 0;text-align:center}.detail-grid{gap:var(--roxy-space-sm,.5rem);display:grid}`],g([G()],Qe.prototype,"filter",2),Qe=g([b("roxy-yoga-list")],Qe);var ka=[{pascal:"RoxyNatalChart",tag:"roxy-natal-chart",slug:"natal-chart",heading:"Natal chart",description:"Western natal chart wheel for /astrology/natal-chart responses",docsLabel:"Western",endpointLabel:"POST /astrology/natal-chart",docsSummary:"Natal chart wheel with planet glyphs and aspect lines",topic:"Astrology"},{pascal:"RoxySynastryChart",tag:"roxy-synastry-chart",slug:"synastry-chart",heading:"Synastry",description:"Dual-wheel synastry chart with inter-aspects table",docsLabel:"Western",endpointLabel:"POST /astrology/synastry",docsSummary:"Dual-wheel synastry with inter-aspects table",topic:"Astrology"},{pascal:"RoxyWesternPlanetsTable",tag:"roxy-western-planets-table",slug:"western-planets-table",heading:"Western planets",description:"Western planetary positions table with sign, degree, house, and motion plus the chart angles",docsLabel:"Western",endpointLabel:"POST /astrology/natal-chart",docsSummary:"Sign, degree, house, motion columns plus ASC, MC, PoF, Vertex",topic:"Astrology"},{pascal:"RoxyTransitsTable",tag:"roxy-transits-table",slug:"transits-table",heading:"Transits",description:"Live planet positions plus aspects to a natal chart",docsLabel:"Western",endpointLabel:"POST /astrology/transits",docsSummary:"Transit planet positions plus optional aspects to a natal chart",topic:"Astrology"},{pascal:"RoxyTransitWheel",tag:"roxy-transit-wheel",slug:"transit-wheel",heading:"Transit bi-wheel",description:"Natal and transit bi-wheel with an aspect line for every transit to the natal chart",docsLabel:"Western",endpointLabel:"POST /astrology/transit-aspects",docsSummary:"Natal chart on the inner ring, transiting bodies on the outer ring, aspect lines between them",topic:"Astrology"},{pascal:"RoxyAspectsTable",tag:"roxy-aspects-table",slug:"aspects-table",heading:"Aspects",description:"Natal and transit aspect grid with chart-pattern detection (grand trines, t-squares, stelliums, yods)",docsLabel:"Western",endpointLabel:"POST /astrology/aspects, /astrology/transit-aspects, /astrology/aspect-patterns",docsSummary:"Aspect rows coloured by nature with orb and strength, plus detected chart patterns",topic:"Astrology"},{pascal:"RoxyMoonPhase",tag:"roxy-moon-phase",slug:"moon-phase",heading:"Moon phase",description:"Moon phase card and calendar",docsLabel:"Western",endpointLabel:"GET /astrology/moon-phase/{current,upcoming,calendar/...}",docsSummary:"Moon phase card and calendar",topic:"Astrology"},{pascal:"RoxyHoroscopeCard",tag:"roxy-horoscope-card",slug:"horoscope-card",heading:"Daily horoscope",description:"Daily, weekly, or monthly horoscope card for /astrology/horoscope/...",docsLabel:"Western",endpointLabel:"GET /astrology/horoscope/{sign}/{daily,weekly,monthly}",docsSummary:"Daily, weekly, or monthly horoscope card",topic:"Astrology"},{pascal:"RoxyAstrocartographyMap",tag:"roxy-astrocartography-map",slug:"astrocartography-map",heading:"Astrocartography",description:"Astrocartography world map plotting each body Midheaven, IC, Ascendant, and Descendant relocation lines",docsLabel:"Western",endpointLabel:"POST /astrology/astrocartography",docsSummary:"World map of planetary MC, IC, Ascendant, and Descendant lines with per-line interpretations",topic:"Astrology"},{pascal:"RoxyLocalSpaceCompass",tag:"roxy-local-space-compass",slug:"local-space-compass",heading:"Local space",description:"Local space compass plotting each body direction from the birthplace by azimuth and altitude",docsLabel:"Western",endpointLabel:"POST /astrology/local-space",docsSummary:"Compass dial of planetary azimuth lines from the birthplace, dimmed below the horizon",topic:"Astrology"},{pascal:"RoxyRelocationWheel",tag:"roxy-relocation-wheel",slug:"relocation-wheel",heading:"Relocation chart",description:"Relocation chart wheel recomputing houses and angles for a new place, with the planets that change house",docsLabel:"Western",endpointLabel:"POST /astrology/relocation-chart",docsSummary:"Relocated chart wheel plus the move geometry, angular planets, and planets that change house",topic:"Astrology"},{pascal:"RoxyPositionsTable",tag:"roxy-positions-table",slug:"positions-table",heading:"Positions table",description:"Editorial positions table for asteroids, Black Moon Lilith, secondary progressions, solar arc directions, and the Arabic lots",docsLabel:"Western",endpointLabel:"POST /astrology/asteroids, /astrology/lilith, /astrology/progressions, /astrology/solar-arc, /astrology/arabic-lots",docsSummary:"Body, sign, degree, and per-shape columns (house, motion, formula, or natal arc) plus each reading",topic:"Astrology"},{pascal:"RoxyEphemerisTable",tag:"roxy-ephemeris-table",slug:"ephemeris-table",heading:"Ephemeris",description:"Monthly ephemeris: every body day by day, with each sign change and retrograde stretch called out",docsLabel:"Cross",endpointLabel:"POST /astrology/planets/monthly, /vedic-astrology/planetary-positions/monthly",docsSummary:"Per-body sign changes and retrograde windows for the month, over the full daily position grid",topic:"Astrology"},{pascal:"RoxyFixedStars",tag:"roxy-fixed-stars",slug:"fixed-stars",heading:"Fixed stars",description:"Fixed star conjunctions to the natal chart, tightest first, with the precessed star catalog",docsLabel:"Western",endpointLabel:"POST /astrology/fixed-stars",docsSummary:"Star to natal point conjunctions with readings, plus a catalog of position, magnitude, nature, and keywords",topic:"Astrology"},{pascal:"RoxyProfectionCard",tag:"roxy-profection-card",slug:"profection-card",heading:"Annual profection",description:"Annual profection card with the profected house and sign, the lord of the year, and its natal placement",docsLabel:"Western",endpointLabel:"POST /astrology/profections",docsSummary:"Profected house and sign for the year, the lord of the year, its natal placement, and the reading",topic:"Astrology"},{pascal:"RoxyCompatibilityCard",tag:"roxy-compatibility-card",slug:"compatibility-card",heading:"Compatibility score",description:"Cross-domain compatibility score card",docsLabel:"Cross",endpointLabel:"POST /astrology/compatibility-score, /numerology/compatibility, /biorhythm/compatibility",docsSummary:"Score card with category breakdown",topic:"Astrology"},{pascal:"RoxyVedicKundli",tag:"roxy-vedic-kundli",slug:"vedic-kundli",heading:"Vedic kundli",description:"South, North, or East Indian Vedic kundli for /vedic-astrology/birth-chart with per-planet degree and nakshatra detail, plus an optional Chandra Lagna (Moon-as-ascendant) reference view",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/birth-chart",docsSummary:"South, North, or East Indian kundli with degree detail and optional Chandra Lagna view",topic:"Vedic"},{pascal:"RoxyDivisionalChart",tag:"roxy-divisional-chart",slug:"divisional-chart",heading:"Divisional chart",description:"D2 to D60 varga chart wheel with Vargottama markers",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/{divisional-chart,navamsa}",docsSummary:"Generic divisional varga wheel from D2 Hora to D60 Shashtiamsa",topic:"Vedic"},{pascal:"RoxyKpChart",tag:"roxy-kp-chart",slug:"kp-chart",heading:"KP chart",description:"Full KP chart with Ascendant, Placidus cusps, and planets and nodes in tabbed stellar-hierarchy tables",docsLabel:"Vedic (KP)",endpointLabel:"POST /vedic-astrology/kp/chart",docsSummary:"Ascendant, cusps, planets and nodes with KP stellar hierarchy and house meanings",topic:"Vedic"},{pascal:"RoxyVedicPlanetsTable",tag:"roxy-vedic-planets-table",slug:"vedic-planets-table",heading:"Vedic planets",description:"Vedic planetary positions table with degree, nakshatra, pada, nakshatra lord, bhava, and all three avastha systems",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/birth-chart",docsSummary:"Degree, nakshatra, pada, lord, bhava, Baladi, Jagradadi and Deeptadi columns",topic:"Vedic"},{pascal:"RoxyKpPlanetsTable",tag:"roxy-kp-planets-table",slug:"kp-planets-table",heading:"KP planets",description:"KP planets table with sub-lord and sub-sub-lord columns",docsLabel:"Vedic (KP)",endpointLabel:"POST /vedic-astrology/kp/planets",docsSummary:"Sub-lord and sub-sub-lord columns",topic:"Vedic"},{pascal:"RoxyKpRulingPlanets",tag:"roxy-kp-ruling-planets",slug:"kp-ruling-planets",heading:"KP ruling planets",description:"KP ruling planets with day lord, Moon and Lagna stellar hierarchies, and house significators",docsLabel:"Vedic (KP)",endpointLabel:"POST /vedic-astrology/kp/ruling-planets",docsSummary:"Day lord, Moon/Lagna hierarchies, ruling planets, significators with house meanings",topic:"Vedic"},{pascal:"RoxyAshtakavargaGrid",tag:"roxy-ashtakavarga-grid",slug:"ashtakavarga-grid",heading:"Ashtakavarga",description:"Sarva and Bhinna ashtakavarga heatmap with bindu scores",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/ashtakavarga",docsSummary:"Sarva, Bhinna, and Shodhya Pinda views in a tabbed heatmap",topic:"Vedic"},{pascal:"RoxyShadbalaTable",tag:"roxy-shadbala-table",slug:"shadbala-table",heading:"Shadbala",description:"Six-fold planetary strength with adequacy badge per planet",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/shadbala",docsSummary:"Six-fold planetary strength bar plus rupas and adequacy badge",topic:"Vedic"},{pascal:"RoxyDashaTimeline",tag:"roxy-dasha-timeline",slug:"dasha-timeline",heading:"Vimshottari dasha",description:"Vimshottari dasha timeline, mahadasha through prana, with the active period highlighted",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/dasha/{current,major,sub/...}",docsSummary:"Vimshottari mahadasha, antardasha, pratyantardasha, sookshma and prana, drill-down at every level",topic:"Vedic"},{pascal:"RoxyGunaMilan",tag:"roxy-guna-milan",slug:"guna-milan",heading:"Guna milan",description:"36-point Ashtakoota matrimonial compatibility breakdown",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/compatibility",docsSummary:"36-point Ashtakoota with eight sub-scores",topic:"Vedic"},{pascal:"RoxyPanchangTable",tag:"roxy-panchang-table",slug:"panchang-table",heading:"Panchang",description:"Panchang muhurta table with auspicious and inauspicious periods",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/panchang/{basic,detailed}",docsSummary:"15+ muhurtas in detailed mode",topic:"Vedic"},{pascal:"RoxyVedicAspects",tag:"roxy-vedic-aspects",slug:"vedic-aspects",heading:"Vedic aspects",description:"Vedic graha drishti table: which planet aspects which, with mutual aspects surfaced first",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/aspects",docsSummary:"Graha drishti rows with aspect type, strength, and orb, plus mutual aspects",topic:"Vedic"},{pascal:"RoxyHoraTable",tag:"roxy-hora-table",slug:"hora-table",heading:"Hora",description:"Vedic Hora (planetary hours) table: 12 day and 12 night horas by ruling planet for electional timing",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/panchang/hora",docsSummary:"Day and night planetary hours with ruling planet and window",topic:"Vedic"},{pascal:"RoxyChoghadiyaGrid",tag:"roxy-choghadiya-grid",slug:"choghadiya-grid",heading:"Choghadiya",description:"Day and night Choghadiya muhurta tiles for activity timing",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/panchang/choghadiya",docsSummary:"Day and night Choghadiya muhurta tiles colored by effect",topic:"Vedic"},{pascal:"RoxyHeliacalTable",tag:"roxy-heliacal-table",slug:"heliacal-table",heading:"Heliacal rising and setting",description:"Whether each graha stands far enough from the Sun to be seen, with the date it next rises or sets",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/heliacal",docsSummary:"Udaya and asta windows for the six visible grahas, the calculation behind Guru Asta and Shukra Asta",topic:"Vedic"},{pascal:"RoxyVedicDaily",tag:"roxy-vedic-daily",slug:"vedic-daily",heading:"Vedic daily",description:"One native, one day: the verdict band, every graha state behind it, the Moon windows and the finance area",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/daily",docsSummary:"Composed Vedic daily reading with the classical rule behind every graha state, the Tara and Chandrabala windows in full, and all three sidereal frames named",topic:"Vedic"},{pascal:"RoxyGocharaTable",tag:"roxy-gochara-table",slug:"gochara-table",heading:"Gochara transits",description:"Where each graha transits now, the natal house it falls in, and the Ashtakavarga-qualified kaksha verdict",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/transit",docsSummary:"Vedic gochara with aspects to the natal chart and the Gochara Kaksha reading drawn as a position within the sign",topic:"Vedic"},{pascal:"RoxyBhavaBalaTable",tag:"roxy-bhava-bala-table",slug:"bhava-bala-table",heading:"Bhava Bala",description:"The twelve houses ranked by strength, with the three classical components that make up each total",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/bhava-bala",docsSummary:"House strength in rupas and virupas, ranked, with Bhavadhipati, Dig and Drishti Bala shown as proportions of the total",topic:"Vedic"},{pascal:"RoxyBhavChalitTable",tag:"roxy-bhav-chalit-table",slug:"bhav-chalit-table",heading:"Bhav Chalit",description:"Which grahas change house once the bhavas are cut at their real cusps instead of at sign boundaries",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/bhav-chalit",docsSummary:"The Chalit chart against the Rashi chart, leading with how many grahas move and which, plus the unequal bhava spans",topic:"Vedic"},{pascal:"RoxyUpagrahaTable",tag:"roxy-upagraha-table",slug:"upagraha-table",heading:"Upagrahas",description:"The eleven upagrahas in their time-based and Sun-based groups, with rashi, degree, and nakshatra",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/upagraha",docsSummary:"Time-based and Sun-based upagrahas with rashi, degree, longitude and nakshatra",topic:"Vedic"},{pascal:"RoxyCharaKarakas",tag:"roxy-chara-karakas",slug:"chara-karakas",heading:"Chara karakas",description:"Jaimini chara karakas ranked Atmakaraka first, with the scheme that produced the ranking",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/chara-karakas",docsSummary:"Karaka offices in rank order with graha, degree, scheme, and what each is read for",topic:"Vedic"},{pascal:"RoxyArudhaPadas",tag:"roxy-arudha-padas",slug:"arudha-padas",heading:"Arudha padas",description:"The twelve Jaimini arudha padas with their derivation, the Arudha Lagna and the Upapada marked",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/arudha",docsSummary:"Twelve padas with bhava, lord, pada rashi, house from Lagna, and the classical exception marked",topic:"Vedic"},{pascal:"RoxyYogaList",tag:"roxy-yoga-list",slug:"yoga-list",heading:"Yoga catalog",description:"Yoga reference cards from the catalog with optional detail mode",docsLabel:"Vedic",endpointLabel:"GET /vedic-astrology/yoga, POST /vedic-astrology/yoga/detect",docsSummary:"Filterable yoga cards from the 300 plus yoga catalog, grouped by verdict in detect mode",topic:"Vedic"},{pascal:"RoxyNakshatraCard",tag:"roxy-nakshatra-card",slug:"nakshatra-card",heading:"Nakshatra",description:"Nakshatra reference card with lord, deity, symbol, characteristics, and remedies",docsLabel:"Vedic",endpointLabel:"GET /vedic-astrology/nakshatras/{id}",docsSummary:"Lord, deity, symbol, characteristics, remedies",topic:"Vedic"},{pascal:"RoxyDoshaCard",tag:"roxy-dosha-card",slug:"dosha-card",heading:"Manglik dosha",description:"Manglik, Kaal Sarp, or Sade Sati presence card",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/dosha/{manglik,kalsarpa,sadhesati}",docsSummary:"Presence, severity, remedies, scoped effects",topic:"Vedic"},{pascal:"RoxyNumerologyCard",tag:"roxy-numerology-card",slug:"numerology-card",heading:"Life path number",description:"Numerology card for life path, expression, soul urge, personality, personal year, or full chart",docsLabel:"Numerology",endpointLabel:"POST /numerology/{life-path,expression,soul-urge,personality,birth-day,maturity,daily,personal-day,personal-month,personal-year,chart}",docsSummary:"Life path, expression, soul urge, personality, personal year, full chart",topic:"Numerology"},{pascal:"RoxyTarotCard",tag:"roxy-tarot-card",slug:"tarot-card",heading:"Daily tarot card",description:"Single tarot card with upright/reversed flip animation",docsLabel:"Tarot",endpointLabel:"GET /tarot/cards/{id}, POST /tarot/daily",docsSummary:"Single card with upright and reversed flip",topic:"Tarot"},{pascal:"RoxyTarotCatalog",tag:"roxy-tarot-catalog",slug:"tarot-catalog",heading:"Tarot deck",description:"Responsive tarot deck gallery with card art, name, and an arcana and suit caption from the tarot catalog response",docsLabel:"Tarot",endpointLabel:"GET /tarot/cards",docsSummary:"Deck gallery tiles with card art, name, and arcana and suit",topic:"Tarot"},{pascal:"RoxyTarotSpread",tag:"roxy-tarot-spread",slug:"tarot-spread",heading:"Three-card spread",description:"Tarot spread renderer for three-card, Celtic Cross, love, or yes/no",docsLabel:"Tarot",endpointLabel:"POST /tarot/spreads/{three-card,celtic-cross,love}, /tarot/yes-no, /tarot/draw",docsSummary:"Spreads with positions and reading",topic:"Tarot"},{pascal:"RoxyBodygraph",tag:"roxy-bodygraph",slug:"bodygraph",heading:"Bodygraph",description:"Human Design bodygraph with nine centers, channels, and activated gates, plus the full reading: type, strategy, authority, profile, definition, incarnation cross, and a gate and line meaning for every activation",docsLabel:"Human Design",endpointLabel:"POST /human-design/bodygraph",docsSummary:"Nine-center chart with defined and open centers, active channels, and gates, plus the type, strategy, authority, profile, and definition readings, the channels by circuit, the centers, and every activation with its gate and line meaning",topic:"Human Design"},{pascal:"RoxyHdTypeCard",tag:"roxy-hd-type-card",slug:"hd-type-card",heading:"HD type",description:"Human Design type reading without the chart: type, strategy, authority, and profile, with the aura mechanic, the signature and not-self themes, and the interpretation behind each label. Also renders the profile response with its two line keynotes",docsLabel:"Human Design",endpointLabel:"POST /human-design/type, /human-design/profile",docsSummary:"Type, strategy, authority, and profile tiles with the aura, signature, and not-self themes, plus the reading behind each label and the profile line keynotes",topic:"Human Design"},{pascal:"RoxyHdConnection",tag:"roxy-hd-connection",slug:"hd-connection",heading:"HD connection",description:"Human Design connection chart: the composite channels two people form, with circuit, dynamic, and which person holds each gate",docsLabel:"Human Design",endpointLabel:"POST /human-design/connection",docsSummary:"Electromagnetic, compromise, and dominance channels between two charts",topic:"Human Design"},{pascal:"RoxyHdPenta",tag:"roxy-hd-penta",slug:"hd-penta",heading:"HD penta",description:"Human Design penta for a 3 to 5 person group: upper and lower triangle channels, defined or open, with core channels and member coverage",docsLabel:"Human Design",endpointLabel:"POST /human-design/penta",docsSummary:"Group penta channels split into upper and lower triangles",topic:"Human Design"},{pascal:"RoxyHdVariables",tag:"roxy-hd-variables",slug:"hd-variables",heading:"HD variables",description:"Human Design variables: the four PHS arrows (determination, environment, perspective, motivation) with left/right direction, color, tone, and base, plus the reading for each arrow and the cognition",docsLabel:"Human Design",endpointLabel:"POST /human-design/variables",docsSummary:"The four transformation arrows with direction, color, tone, and base, plus a reading per arrow grouped by layer and the cognition",topic:"Human Design"},{pascal:"RoxyForecastTimeline",tag:"roxy-forecast-timeline",slug:"forecast-timeline",heading:"Forecast timeline",description:"Cross-domain forecast event strip colored by domain and weighted by significance",docsLabel:"Forecast",endpointLabel:"POST /forecast/{timeline,significant-dates,transits}",docsSummary:"Date-grouped events across Western, Vedic, and biorhythm domains, weighted by significance",topic:"Forecast"},{pascal:"RoxyForecastDigest",tag:"roxy-forecast-digest",slug:"forecast-digest",heading:"Forecast digest",description:"Rolled-up forecast across the next 24 hours, 7, 30, and 90 days with per-domain breakdown and top events",docsLabel:"Forecast",endpointLabel:"POST /forecast/digest",docsSummary:"Per-window event counts, domain breakdown, and the highest-significance events",topic:"Forecast"},{pascal:"RoxyBiorhythmChart",tag:"roxy-biorhythm-chart",slug:"biorhythm-chart",heading:"Daily biorhythm",description:"Daily biorhythm bars or multi-day forecast cycle lines",docsLabel:"Biorhythm",endpointLabel:"POST /biorhythm/{daily,forecast,critical-days}",docsSummary:"Daily bars, forecast cycle lines, critical days",topic:"Biorhythm"},{pascal:"RoxyHexagram",tag:"roxy-hexagram",slug:"hexagram",heading:"I Ching hexagram",description:"I Ching hexagram drawn line by line with trigram glyphs, judgment, image, and a reading for every line: the oracle statement and what it asks of the querent. A cast highlights the moving lines and shows only their readings, plus the hexagram it transforms into",docsLabel:"I Ching",endpointLabel:"GET /iching/hexagrams/{number}, /iching/cast, POST /iching/daily, /iching/daily/cast",docsSummary:"Hexagram figure with trigrams, judgment, image, and a reading per line (statement plus meaning); a cast highlights the moving lines and the resulting hexagram",topic:"I Ching"},{pascal:"RoxyCrystalCard",tag:"roxy-crystal-card",slug:"crystal-card",heading:"Crystal detail",description:"Single-crystal detail card with photo, spiritual, emotional, and physical meaning, metaphysical attributes, affirmation, and pairings",docsLabel:"Crystals",endpointLabel:"GET /crystals/{id}",docsSummary:"Photo, meaning sections, chakra, zodiac, element, hardness, keywords, and pairings",topic:"Crystals"},{pascal:"RoxyCrystalGrid",tag:"roxy-crystal-grid",slug:"crystal-grid",heading:"Crystal grid",description:"Responsive crystal gallery with photo, name, and colour swatches from any crystals list response",docsLabel:"Crystals",endpointLabel:"GET /crystals, /crystals/chakra/{chakra}, /crystals/element/{element}, /crystals/zodiac/{sign}, /crystals/birthstone/{month}, /crystals/search",docsSummary:"Crystal gallery tiles with photo, name, and colour swatches",topic:"Crystals"},{pascal:"RoxyDreamCard",tag:"roxy-dream-card",slug:"dream-card",heading:"Dream symbol",description:"Dream symbol card with the symbol name, full interpretation, and dictionary letter",docsLabel:"Dreams",endpointLabel:"GET /dreams/symbols/{id}",docsSummary:"Symbol name, interpretation body, and letter chip",topic:"Dreams"},{pascal:"RoxyDreamSearch",tag:"roxy-dream-search",slug:"dream-search",heading:"Dream search",description:"Dream-symbol search results as selectable tiles; emits roxy-symbol-select to pair with roxy-dream-card",docsLabel:"Dreams",endpointLabel:"GET /dreams/symbols",docsSummary:"Matched dream symbols as selectable tiles with a letter chip",topic:"Dreams"},{pascal:"RoxyAngelNumberCard",tag:"roxy-angel-number-card",slug:"angel-number-card",heading:"Angel number",description:"Angel number card with title, core message, badges, keywords, life-area interpretations, affirmation, and action steps",docsLabel:"Angel Numbers",endpointLabel:"GET /angel-numbers/numbers/{number}",docsSummary:"Number meaning with spiritual, love, career, money, twin flame, biblical, and shadow sections",topic:"Angel Numbers"},{pascal:"RoxyAngelNumberLookup",tag:"roxy-angel-number-lookup",slug:"angel-number-lookup",heading:"Angel number lookup",description:"Angel number sequence analysis with pattern classification, the known meaning when present, and a digit-root fallback for any number",docsLabel:"Angel Numbers",endpointLabel:"GET /angel-numbers/lookup",docsSummary:"Pattern analysis plus known meaning and digit-root fallback",topic:"Angel Numbers"},{pascal:"RoxyReferenceCard",tag:"roxy-reference-card",slug:"reference-card",heading:"Reference card",description:"Glossary entry for any reference lookup: zodiac sign, planet meaning, rashi, I Ching trigram, Human Design gate or center, numerology number or compound number",docsLabel:"Reference",endpointLabel:"GET /astrology/{signs,planet-meanings}/{id}, /vedic-astrology/rashis/{id}, /iching/trigrams/{id}, /human-design/{gates,centers}/{id}, /numerology/{meanings,compound-number}/{number}",docsSummary:"Symbol, name, description, keyword chips, and an attribute grid for any glossary lookup",topic:"Helpers"},{pascal:"RoxyEndpointForm",tag:"roxy-endpoint-form",slug:"endpoint-form",heading:"Schema-driven form",description:"Schema-driven form that emits roxy-submit with a validated payload",docsLabel:"Helper",endpointLabel:"Any endpoint, from the spec",docsSummary:"Schema-driven form, emits roxy-submit",topic:"Helpers",selfFetching:!0},{pascal:"RoxyLocationSearch",tag:"roxy-location-search",slug:"location-search",heading:"City search",description:"City search input with debounced /location/search calls",docsLabel:"Helper",endpointLabel:"GET /location/search",docsSummary:"Debounced city search input, emits roxy-location-select",topic:"Helpers",selfFetching:!0},{pascal:"RoxyData",tag:"roxy-data",slug:"data",heading:"Generic renderer",description:"Generic fallback renderer for any OpenAPI response shape",docsLabel:"Helper",endpointLabel:"Any response shape",docsSummary:"Generic fallback renderer for unknown shapes",topic:"Helpers",selfFetching:!0}];var Hd=ka.map(o=>o.slug);var Io=`/**
|
|
133
133
|
* Roxy UI design tokens. 47 CSS custom properties that every component reads. Light + dark defaults. Host page overrides at :root or per element. No Tailwind, no class-name overrides, no JS theme switcher.
|
|
134
134
|
*
|
|
135
135
|
* Delivery model: this file ships as a global light-DOM stylesheet (linked, or auto-injected by the CDN bundle). Custom properties inherit through the shadow boundary, so tokens set on a light-DOM ancestor reach every component shadow. The explicit theme blocks therefore target light-DOM selectors (:root, .dark, [data-theme="dark"], a wrapper element), NOT :host (a :host rule in a global sheet matches nothing). The :host([data-theme]) selectors are kept only for the case where this CSS is ever adopted directly into a shadow root; they are inert in global delivery.
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
--roxy-motion-duration: 0ms;
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
`;var Sa="roxy-ui-tokens";function Ra(){if(typeof document>"u")return null;let o=document.getElementById(Sa);if(o)return o;let t=document.createElement("style");return t.id=Sa,t.textContent=
|
|
412
|
+
`;var Sa="roxy-ui-tokens";function Ra(){if(typeof document>"u")return null;let o=document.getElementById(Sa);if(o)return o;let t=document.createElement("style");return t.id=Sa,t.textContent=Io,document.head.prepend(t),t}Ra();return Vo(Fd);})();
|
|
413
413
|
/*! Bundled license information:
|
|
414
414
|
|
|
415
415
|
@lit/reactive-element/css-tag.js:
|