@roxyapi/ui 0.25.0 → 0.26.0

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.
Files changed (78) hide show
  1. package/AGENTS.md +3 -1
  2. package/README.md +9 -1
  3. package/components-catalog.json +125 -125
  4. package/dist/cdn/components/endpoint-form.js +1 -1
  5. package/dist/cdn/components/endpoint-form.js.map +1 -1
  6. package/dist/cdn/components/natal-chart.js.map +2 -2
  7. package/dist/cdn/components/relocation-wheel.js.map +2 -2
  8. package/dist/cdn/components/transit-wheel.js +12 -12
  9. package/dist/cdn/components/transit-wheel.js.map +3 -3
  10. package/dist/cdn/locales/de.js +1 -1
  11. package/dist/cdn/locales/de.js.map +2 -2
  12. package/dist/cdn/locales/es.js +1 -1
  13. package/dist/cdn/locales/es.js.map +2 -2
  14. package/dist/cdn/locales/fr.js +1 -1
  15. package/dist/cdn/locales/fr.js.map +2 -2
  16. package/dist/cdn/locales/hi.js +1 -1
  17. package/dist/cdn/locales/hi.js.map +2 -2
  18. package/dist/cdn/locales/pt.js +1 -1
  19. package/dist/cdn/locales/pt.js.map +2 -2
  20. package/dist/cdn/locales/ru.js +1 -1
  21. package/dist/cdn/locales/ru.js.map +2 -2
  22. package/dist/cdn/locales/tr.js +1 -1
  23. package/dist/cdn/locales/tr.js.map +2 -2
  24. package/dist/cdn/roxy-ui.js +17 -17
  25. package/dist/cdn/roxy-ui.js.map +3 -3
  26. package/dist/components/endpoint-form.js +1 -1
  27. package/dist/components/endpoint-form.js.map +1 -1
  28. package/dist/components/natal-chart.d.ts +4 -0
  29. package/dist/components/natal-chart.d.ts.map +1 -1
  30. package/dist/components/natal-chart.js.map +2 -2
  31. package/dist/components/relocation-wheel.js.map +2 -2
  32. package/dist/components/transit-wheel.d.ts +79 -37
  33. package/dist/components/transit-wheel.d.ts.map +1 -1
  34. package/dist/components/transit-wheel.js +11 -11
  35. package/dist/components/transit-wheel.js.map +3 -3
  36. package/dist/i18n/chrome-strings.d.ts +1 -1
  37. package/dist/i18n/chrome-strings.d.ts.map +1 -1
  38. package/dist/index.cjs +5 -5
  39. package/dist/index.cjs.map +3 -3
  40. package/dist/index.js +5 -5
  41. package/dist/index.js.map +3 -3
  42. package/dist/locales/de.d.ts.map +1 -1
  43. package/dist/locales/de.js +1 -1
  44. package/dist/locales/de.js.map +2 -2
  45. package/dist/locales/es.d.ts.map +1 -1
  46. package/dist/locales/es.js +1 -1
  47. package/dist/locales/es.js.map +2 -2
  48. package/dist/locales/fr.d.ts.map +1 -1
  49. package/dist/locales/fr.js +1 -1
  50. package/dist/locales/fr.js.map +2 -2
  51. package/dist/locales/hi.d.ts.map +1 -1
  52. package/dist/locales/hi.js +1 -1
  53. package/dist/locales/hi.js.map +2 -2
  54. package/dist/locales/pt.d.ts.map +1 -1
  55. package/dist/locales/pt.js +1 -1
  56. package/dist/locales/pt.js.map +2 -2
  57. package/dist/locales/ru.d.ts.map +1 -1
  58. package/dist/locales/ru.js +1 -1
  59. package/dist/locales/ru.js.map +2 -2
  60. package/dist/locales/tr.d.ts.map +1 -1
  61. package/dist/locales/tr.js +1 -1
  62. package/dist/locales/tr.js.map +2 -2
  63. package/dist/types/types.gen.d.ts +46 -0
  64. package/dist/types/types.gen.d.ts.map +1 -1
  65. package/dist/version.d.ts +1 -1
  66. package/package.json +1 -1
  67. package/src/components/natal-chart.ts +11 -1
  68. package/src/components/transit-wheel.ts +115 -49
  69. package/src/i18n/chrome-strings.ts +1 -0
  70. package/src/locales/de.ts +1 -0
  71. package/src/locales/es.ts +2 -0
  72. package/src/locales/fr.ts +1 -0
  73. package/src/locales/hi.ts +1 -0
  74. package/src/locales/pt.ts +1 -0
  75. package/src/locales/ru.ts +1 -0
  76. package/src/locales/tr.ts +1 -0
  77. package/src/types/types.gen.ts +46 -0
  78. package/src/version.ts +1 -1
@@ -1,4 +1,4 @@
1
- var RoxyUI_transit_wheel=(()=>{var J=Object.defineProperty;var zt=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var Me=(s,t)=>{for(var e in t)J(s,e,{get:t[e],enumerable:!0})},Ie=(s,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Oe(t))!Ue.call(s,n)&&n!==e&&J(s,n,{get:()=>t[n],enumerable:!(r=zt(t,n))||r.enumerable});return s};var ze=s=>Ie(J({},"__esModule",{value:!0}),s),m=(s,t,e,r)=>{for(var n=r>1?void 0:r?zt(t,e):t,o=s.length-1,i;o>=0;o--)(i=s[o])&&(n=(r?i(t,e,n):i(n))||n);return r&&n&&J(t,e,n),n};var $r={};Me($r,{ROXY_UI_TOKENS_STYLE_ID:()=>Z,RoxyTransitWheel:()=>k,injectRoxyTokens:()=>X});var Dt=`/**
1
+ var RoxyUI_transit_wheel=(()=>{var J=Object.defineProperty;var ze=Object.getOwnPropertyDescriptor;var Ot=Object.getOwnPropertyNames;var Ut=Object.prototype.hasOwnProperty;var Mt=(s,e)=>{for(var t in e)J(s,t,{get:e[t],enumerable:!0})},It=(s,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ot(e))!Ut.call(s,n)&&n!==t&&J(s,n,{get:()=>e[n],enumerable:!(r=ze(e,n))||r.enumerable});return s};var zt=s=>It(J({},"__esModule",{value:!0}),s),m=(s,e,t,r)=>{for(var n=r>1?void 0:r?ze(e,t):e,o=s.length-1,i;o>=0;o--)(i=s[o])&&(n=(r?i(e,t,n):i(n))||n);return r&&n&&J(e,t,n),n};var $r={};Mt($r,{ROXY_UI_TOKENS_STYLE_ID:()=>Z,RoxyTransitWheel:()=>k,injectRoxyTokens:()=>X});var De=`/**
2
2
  * 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.
3
3
  *
4
4
  * 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.
@@ -259,19 +259,19 @@ var RoxyUI_transit_wheel=(()=>{var J=Object.defineProperty;var zt=Object.getOwnP
259
259
  --roxy-motion-duration: 0ms;
260
260
  }
261
261
  }
262
- `;var Z="roxy-ui-tokens";function X(){if(typeof document>"u")return null;let s=document.getElementById(Z);if(s)return s;let t=document.createElement("style");return t.id=Z,t.textContent=Dt,document.head.prepend(t),t}var Q=globalThis,tt=Q.ShadowRoot&&(Q.ShadyCSS===void 0||Q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gt=Symbol(),Ht=new WeakMap,D=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==gt)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(tt&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Ht.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Ht.set(e,t))}return t}toString(){return this.cssText}},Bt=s=>new D(typeof s=="string"?s:s+"",void 0,gt),A=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((r,n,o)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+s[o+1],s[0]);return new D(e,s,gt)},jt=(s,t)=>{if(tt)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),n=Q.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,s.appendChild(r)}},mt=tt?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Bt(e)})(s):s;var{is:De,defineProperty:He,getOwnPropertyDescriptor:Be,getOwnPropertyNames:je,getOwnPropertySymbols:Ke,getPrototypeOf:qe}=Object,et=globalThis,Kt=et.trustedTypes,Ge=Kt?Kt.emptyScript:"",Fe=et.reactiveElementPolyfillSupport,H=(s,t)=>s,B={toAttribute(s,t){switch(t){case Boolean:s=s?Ge:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},rt=(s,t)=>!De(s,t),qt={attribute:!0,type:String,converter:B,reflect:!1,useDefault:!1,hasChanged:rt};Symbol.metadata??=Symbol("metadata"),et.litPropertyMetadata??=new WeakMap;var S=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=qt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(t,r,e);n!==void 0&&He(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){let{get:n,set:o}=Be(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let a=n?.call(this);o?.call(this,i),this.requestUpdate(t,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??qt}static _$Ei(){if(this.hasOwnProperty(H("elementProperties")))return;let t=qe(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(H("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(H("properties"))){let e=this.properties,r=[...je(e),...Ke(e)];for(let n of r)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let n of r)e.unshift(mt(n))}else t!==void 0&&e.push(mt(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 jt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){let r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(n!==void 0&&r.reflect===!0){let o=(r.converter?.toAttribute!==void 0?r.converter:B).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){let r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let o=r.getPropertyOptions(n),i=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:B;this._$Em=n;let a=i.fromAttribute(e,o.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(t,e,r,n=!1,o){if(t!==void 0){let i=this.constructor;if(n===!1&&(o=this[t]),r??=i.getPropertyOptions(t),!((r.hasChanged??rt)(o,e)||r.useDefault&&r.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:n,wrapped:o},i){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),o!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,o]of r){let{wrapped:i}=o,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,o,a)}}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){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[H("elementProperties")]=new Map,S[H("finalized")]=new Map,Fe?.({ReactiveElement:S}),(et.reactiveElementVersions??=[]).push("2.1.2");var wt=globalThis,Gt=s=>s,nt=wt.trustedTypes,Ft=nt?nt.createPolicy("lit-html",{createHTML:s=>s}):void 0,Xt="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,Qt="?"+_,Ve=`<${Qt}>`,N=document,K=()=>N.createComment(""),q=s=>s===null||typeof s!="object"&&typeof s!="function",At=Array.isArray,Ye=s=>At(s)||typeof s?.[Symbol.iterator]=="function",ft=`[
263
- \f\r]`,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vt=/-->/g,Yt=/>/g,C=RegExp(`>|${ft}(?:([^\\s"'>=/]+)(${ft}*=${ft}*(?:[^
264
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Wt=/'/g,Jt=/"/g,te=/^(?:script|style|textarea|title)$/i,St=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),u=St(1),w=St(2),Cr=St(3),P=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),Zt=new WeakMap,L=N.createTreeWalker(N,129);function ee(s,t){if(!At(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ft!==void 0?Ft.createHTML(t):t}var We=(s,t)=>{let e=s.length-1,r=[],n,o=t===2?"<svg>":t===3?"<math>":"",i=j;for(let a=0;a<e;a++){let l=s[a],p,d,g=-1,y=0;for(;y<l.length&&(i.lastIndex=y,d=i.exec(l),d!==null);)y=i.lastIndex,i===j?d[1]==="!--"?i=Vt:d[1]!==void 0?i=Yt:d[2]!==void 0?(te.test(d[2])&&(n=RegExp("</"+d[2],"g")),i=C):d[3]!==void 0&&(i=C):i===C?d[0]===">"?(i=n??j,g=-1):d[1]===void 0?g=-2:(g=i.lastIndex-d[2].length,p=d[1],i=d[3]===void 0?C:d[3]==='"'?Jt:Wt):i===Jt||i===Wt?i=C:i===Vt||i===Yt?i=j:(i=C,n=void 0);let v=i===C&&s[a+1].startsWith("/>")?" ":"";o+=i===j?l+Ve:g>=0?(r.push(p),l.slice(0,g)+Xt+l.slice(g)+_+v):l+_+(g===-2?a:v)}return[ee(s,o+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},G=class s{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let o=0,i=0,a=t.length-1,l=this.parts,[p,d]=We(t,e);if(this.el=s.createElement(p,r),L.currentNode=this.el.content,e===2||e===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=L.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(Xt)){let y=d[i++],v=n.getAttribute(g).split(_),R=/([.?@])?(.*)/.exec(y);l.push({type:1,index:o,name:R[2],strings:v,ctor:R[1]==="."?xt:R[1]==="?"?bt:R[1]==="@"?vt:M}),n.removeAttribute(g)}else g.startsWith(_)&&(l.push({type:6,index:o}),n.removeAttribute(g));if(te.test(n.tagName)){let g=n.textContent.split(_),y=g.length-1;if(y>0){n.textContent=nt?nt.emptyScript:"";for(let v=0;v<y;v++)n.append(g[v],K()),L.nextNode(),l.push({type:2,index:++o});n.append(g[y],K())}}}else if(n.nodeType===8)if(n.data===Qt)l.push({type:2,index:o});else{let g=-1;for(;(g=n.data.indexOf(_,g+1))!==-1;)l.push({type:7,index:o}),g+=_.length-1}o++}}static createElement(t,e){let r=N.createElement("template");return r.innerHTML=t,r}};function U(s,t,e=s,r){if(t===P)return t;let n=r!==void 0?e._$Co?.[r]:e._$Cl,o=q(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(s),n._$AT(s,e,r)),r!==void 0?(e._$Co??=[])[r]=n:e._$Cl=n),n!==void 0&&(t=U(s,n._$AS(s,t.values),n,r)),t}var yt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,n=(t?.creationScope??N).importNode(e,!0);L.currentNode=n;let o=L.nextNode(),i=0,a=0,l=r[0];for(;l!==void 0;){if(i===l.index){let p;l.type===2?p=new F(o,o.nextSibling,this,t):l.type===1?p=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(p=new $t(o,this,t)),this._$AV.push(p),l=r[++a]}i!==l?.index&&(o=L.nextNode(),i++)}return L.currentNode=N,n}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},F=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),q(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ye(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!==c&&q(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,n=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=G.createElement(ee(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{let o=new yt(n,this),i=o.u(this.options);o.p(e),this.T(i),this._$AH=o}}_$AC(t){let e=Zt.get(t.strings);return e===void 0&&Zt.set(t.strings,e=new G(t)),e}k(t){At(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,n=0;for(let o of t)n===e.length?e.push(r=new s(this.O(K()),this.O(K()),this,this.options)):r=e[n],r._$AI(o),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=Gt(t).nextSibling;Gt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},M=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,o){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=c}_$AI(t,e=this,r,n){let o=this.strings,i=!1;if(o===void 0)t=U(this,t,e,0),i=!q(t)||t!==this._$AH&&t!==P,i&&(this._$AH=t);else{let a=t,l,p;for(t=o[0],l=0;l<o.length-1;l++)p=U(this,a[r+l],e,l),p===P&&(p=this._$AH[l]),i||=!q(p)||p!==this._$AH[l],p===c?t=c:t!==c&&(t+=(p??"")+o[l+1]),this._$AH[l]=p}i&&!n&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},xt=class extends M{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},bt=class extends M{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},vt=class extends M{constructor(t,e,r,n,o){super(t,e,r,n,o),this.type=5}_$AI(t,e=this){if((t=U(this,t,e,0)??c)===P)return;let r=this._$AH,n=t===c&&r!==c||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==c&&(r===c||n);n&&this.element.removeEventListener(this.name,this,r),o&&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)}},$t=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){U(this,t)}};var Je=wt.litHtmlPolyfillSupport;Je?.(G,F),(wt.litHtmlVersions??=[]).push("3.3.3");var re=(s,t,e)=>{let r=e?.renderBefore??t,n=r._$litPart$;if(n===void 0){let o=e?.renderBefore??null;r._$litPart$=n=new F(t.insertBefore(K(),o),o,void 0,e??{})}return n._$AI(s),n};var kt=globalThis,T=class extends S{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=re(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return P}};T._$litElement$=!0,T.finalized=!0,kt.litElementHydrateSupport?.({LitElement:T});var Ze=kt.litElementPolyfillSupport;Ze?.({LitElement:T});(kt.litElementVersions??=[]).push("4.2.2");var ne=s=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)};var Xe={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:rt},Qe=(s=Xe,t,e)=>{let{kind:r,metadata:n}=e,o=globalThis.litPropertyMetadata.get(n);if(o===void 0&&globalThis.litPropertyMetadata.set(n,o=new Map),r==="setter"&&((s=Object.create(s)).wrapped=!0),o.set(e.name,s),r==="accessor"){let{name:i}=e;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(i,l,s,!0,a)},init(a){return a!==void 0&&this.C(i,void 0,s,a),a}}}if(r==="setter"){let{name:i}=e;return function(a){let l=this[i];t.call(this,a),this.requestUpdate(i,l,s,!0,a)}}throw Error("Unsupported decorator location: "+r)};function x(s){return(t,e)=>typeof e=="object"?Qe(s,t,e):((r,n,o)=>{let i=n.hasOwnProperty(o);return n.constructor.createProperty(o,r),i?Object.getOwnPropertyDescriptor(n,o):void 0})(s,t,e)}function I(s){return x({...s,state:!0,attribute:!1})}function ot(s){return s.toLowerCase().replace(/[\s_-]+/g," ").trim()}function O(s){return s?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():""}var se=(s,t)=>t?s[ot(t)]:void 0,tr={sun:"\u2609",moon:"\u263D",mercury:"\u263F",venus:"\u2640",earth:"\u2641",mars:"\u2642",jupiter:"\u2643",saturn:"\u2644",uranus:"\u2645",neptune:"\u2646",pluto:"\u2647",rahu:"\u260A",ketu:"\u260B",ascendant:"Asc",lagna:"La","north node":"\u260A","south node":"\u260B",chiron:"\u26B7",lilith:"\u26B8","black moon lilith":"\u26B8"},oe=s=>se(tr,s);var er={aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"},_t=s=>se(er,s);var V=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"];var Y=s=>s??c;function ie(s){if(s.lang)return s.lang;if(typeof document>"u")return;let t=s.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var ae="__ROXY_UI_I18N__";function ce(){let s=globalThis,t=s[ae];if(t)return t;let e={catalogs:{},listeners:new Set};return s[ae]=e,e}function le(s,t){return t?s.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):s}function de(s,t,e){if(!s)return le(t,e);let{catalogs:r}=ce(),n=s.toLowerCase(),o=r[n]??r[n.split("-")[0]];return le(o?.[ot(t)]??t,e)}function pe(s){let{listeners:t}=ce();return t.add(s),()=>{t.delete(s)}}var it=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=pe(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var at=A`: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 lt="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function ue(s){return!!s&&!s.startsWith("pk_")}function he(s,t={}){t.warn&&console.warn(lt),s.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:lt},bubbles:!0,composed:!0}))}var rr="https://roxyapi.com/api/v2",ct=class{constructor(t){this.baseUrl=rr;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 this.readError(r));let n=await r.json();if(e.signal.aborted)return;this.host.data=n}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[o,i]of Object.entries(t.query??{}))i!=null&&r.searchParams.set(o,String(i));let n={Accept:"application/json"};return this.publishableKey&&(n["X-API-Key"]=this.publishableKey),t.body!=null&&(n["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:n,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}secretKeyRefused(){return ue(this.publishableKey)?(this.host.error=lt,he(this.host),!0):!1}async readError(t){try{let e=await t.json();if(e?.error)return e.error}catch{}return`Request failed (${t.status})`}};function ge(s,t,e,r=[]){let n={...e},o=`/${s.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,d)=>{let g=n[d];return delete n[d],encodeURIComponent(String(g??""))}),i=new Set(r),a={},l={};for(let[p,d]of Object.entries(n))d===void 0||d===""||(t==="GET"||i.has(p)?a[p]=d:l[p]=d);return{path:o,method:t,query:a,body:t==="POST"?l:void 0}}function me(){return u`<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 fe=A`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 ye=A`.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}`;function xe(s,t,e="Reading"){let r=s.filter(n=>!!n.body);return r.length===0?c:u`<section class="block" part="section readings"><h3>${e}</h3>${r.map((n,o)=>u`<details class="interp-card" part="reading" name="${t}" ?open="${o===0}"><summary><span class="interp-lead">${n.label}</span> ${me()} ${n.aside?u`<span class="interp-aside"><small>${n.aside}</small></span>`:c}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??c}</div></details>`)}</section>`}var nr="roxy-data";function sr(s){return s.nodeName==="SCRIPT"&&s.getAttribute("type")==="application/json"}var dt=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(sr(t)&&t.classList.contains(nr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var f=class extends T{constructor(){super();this.data=null;this.endpoint="";this.method="POST";this.remember=!1;this.hideReadings=!1;this.loading=!1;this.error=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.translator=(e,r)=>this.t(e,r);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(ge(this.endpoint,this.method,r.values,r.queryKeys??[]))};new dt(this),new it(this),this.fetcher=new ct(this)}static{this.styles=[at]}t(e,r){return de(this.effectiveLang(),e,r)}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 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()?u`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderInterpretation(e,r,n){return this.hideReadings?c:xe(e,r,n??this.t("Reading"))}renderResult(e){let r=this.sticky?u`${this.renderForm()}${this.renderData(e)}`:u`<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()?u`${r}${this.renderAttribution()}`:r}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return u`<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 u`<roxy-endpoint-form part="form" data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${Y(this.specUrl)}" publishable-key="${Y(this.publishableKey)}" submit-label="${Y(this.submitLabel)}" lang="${Y(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}effectiveLang(){return ie(this)}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 u`<div class="roxy-empty" role="status">${this.t("No data")}</div>`}renderLoading(){return u`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=u`<div class="roxy-error" role="alert" part="error">${e}</div>`;return this.endpoint?u`${r}${this.renderForm()}`:r}};m([x({attribute:!1})],f.prototype,"data",2),m([x({type:String,attribute:"data-endpoint"})],f.prototype,"endpoint",2),m([x({type:String})],f.prototype,"method",2),m([x({type:String,attribute:"publishable-key"})],f.prototype,"publishableKey",2),m([x({type:String,attribute:"base-url"})],f.prototype,"baseUrl",2),m([x({type:String,attribute:"spec-url"})],f.prototype,"specUrl",2),m([x({type:String,attribute:"submit-url"})],f.prototype,"submitUrl",2),m([x({type:Boolean})],f.prototype,"remember",2),m([x({type:Boolean,attribute:"hide-readings",reflect:!0})],f.prototype,"hideReadings",2),m([x({type:String,attribute:"submit-label"})],f.prototype,"submitLabel",2),m([x({type:String})],f.prototype,"attribution",2),m([I()],f.prototype,"loading",2),m([I()],f.prototype,"error",2),m([I()],f.prototype,"selfFetched",2),m([I()],f.prototype,"editing",2),m([I()],f.prototype,"sticky",2);function E(s){let t=s%360;return t<0?t+360:t}function Tt(s){let t=E(s),e=Math.floor(t/30)%12,r=t%30,n=Math.floor(r),o=(r-n)*60,i=Math.floor(o),a=Math.round((o-i)*60);return{sign:V[e]??"Aries",signIndex:e,degree:n,minute:i,second:a}}function be(s){return E(s+180)}function ve(s,t){let e=E(s),r=E(t)-e;return r<0&&(r+=360),E(e+r/2)}function $e(s,t,e){let r=s.filter(o=>Number.isFinite(t(o))).map(o=>{let i=E(t(o));return{item:o,longitude:i,displayLongitude:i}}).sort((o,i)=>o.longitude-i.longitude);for(let o=1;o<r.length;o++){let i=r[o-1],a=r[o];if(!i||!a)continue;let l=i.displayLongitude+e;a.displayLongitude<l&&(a.displayLongitude=l)}let n=r[r.length-1];if(n&&n.displayLongitude>360){let o=n.displayLongitude-360;for(let i of r)i.displayLongitude-=o}return r}function Et(s,t){return t>0?s/t*(180/Math.PI):0}function b(s,t,e,r){let n=r*Math.PI/180;return{x:s+e*Math.cos(n),y:t+e*Math.sin(n)}}var Rt=/^\d{4}-\d{2}-\d{2}$/,Ae=/^\d{2}:\d{2}(:\d{2})?$/,or=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,we=new Map;function Se(s){if(!s)return["en"];let t=we.get(s);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(s)[0]??"en"}catch{e="en"}return we.set(s,e),[e,"en"]}function ke(s){let t=Ae.test(s)?`1970-01-01T${s}`:or.test(s)?s:null;return t?{d:new Date(`${t}Z`),timeZone:"UTC"}:{d:new Date(s)}}function ir(s,t){if(typeof t!="string"||t.length===0||Rt.test(t))return"";let{d:e,timeZone:r}=ke(t);return Number.isNaN(e.getTime())?t:e.toLocaleTimeString(Se(s),{hour:"numeric",minute:"2-digit",timeZone:r})}function ar(s,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:r}=ke(Rt.test(t)?`${t}T00:00:00`:t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(Se(s),{month:"short",day:"numeric",year:"numeric",timeZone:r})}function pt(s,t=1){if(typeof s!="number"||!Number.isFinite(s))return"";let e=s.toFixed(t);return e.includes(".")?e.replace(/\.?0+$/,""):e}var _e={conjunction:"aspect-conjunction",sextile:"aspect-sextile",square:"aspect-square",trine:"aspect-trine",opposition:"aspect-opposition"};function Ct(s){return(s.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}function ut(s){return O(Ct(s))}function Te(s,t,e){let r=typeof t=="string"&&Rt.test(t)&&typeof e=="string"&&Ae.test(e)?`${t}T${e}`:t,n=ar(s,r),o=ir(s,r);return n&&o?`${n}, ${o}`:n||o}var lr="Localized";function $(s,t,e){let r=s,n=r?.[`${t}${lr}`];if(typeof n=="string"&&n!=="")return n;if(e!==void 0)return e;let o=r?.[t];return typeof o=="string"?o:""}var Pt=400,h=Pt/2,cr=184,W=170,dr=154,Lt=140,pr=124,ur=135,hr=94,gr=83,Ee=112,mr=104,Nt=70,fr=58,yr=13,xr=15,br=8,vr=4,z=(s,t)=>oe(s)??t,Re=s=>{let t=Tt(s);return`${t.degree}\xB0${String(t.minute).padStart(2,"0")}'`},Ce=s=>typeof s=="number"&&Number.isFinite(s)?String(Math.round(s)):"",ht=s=>{let t=new Map;for(let e of s)t.set(O(e.name),e);return t},k=class extends f{constructor(){super(...arguments);this.heading="Transits"}get ascendantGiven(){return typeof this.ascendant=="number"&&Number.isFinite(this.ascendant)}get cusps(){let e=this.houses;if(!Array.isArray(e)||e.length!==12)return null;let r=e.map((o,i)=>typeof o=="number"?{number:i+1,longitude:o}:{number:Number(o?.number),longitude:Number(o?.longitude)}).sort((o,i)=>o.number-i.number);return r.every((o,i)=>o.number===i+1&&Number.isFinite(o.longitude))?r:null}toAngle(e){return 180+(this.ascendantGiven?this.ascendant:this.cusps?.[0]?.longitude??0)-e}renderEmpty(){return u`<div class="roxy-empty" role="status">${this.t("No transit data")}</div>`}renderData(e){let r=e.natalPlanets??[],n=e.transitPlanets??[],o=e.aspects??[],i=Te(this.effectiveLang(),e.transitDate),a=o.length>0?this.t("Aspects to the natal chart: {{count}}",{count:o.length}):"",l=[...r,...n].some(p=>Number.isFinite(p.house));return u`<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>${i||a?u`<p class="subtitle">${[i,a].filter(Boolean).join(" \xB7 ")}</p>`:c}</div>${this.renderWheel(r,n,o)} ${this.renderLegend(r,n,o,l?e.houseSystem:void 0)} ${this.renderSummary(e.summary)} ${this.renderPositions(r,n,l)} ${this.renderReadings(o)}</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\xB0 Aries on the left")}get cuspCaption(){return this.cusps?this.t("House cusps supplied by the page"):this.t("No house cusps")}renderWheel(e,r,n){return u`<svg viewBox="0 0 ${Pt} ${Pt}" 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="${h}" cy="${h}" r="${W}" stroke-width="1.5"/><circle class="wheel-line" cx="${h}" cy="${h}" r="${Lt}" stroke-width="0.8"/><circle class="wheel-line" cx="${h}" cy="${h}" r="${Ee}" stroke-width="0.6"/><circle class="wheel-line" cx="${h}" cy="${h}" r="${Nt}" stroke-width="0.5"/>${this.renderTicks()} ${this.renderSpokes()} ${this.renderSigns()} ${this.renderHouses()} ${this.renderAspectLines(e,r,n)} ${this.renderRing(e,hr,gr,"natal-glyph",this.t("Natal"),1)} ${this.renderRing(r,pr,ur,"transit-glyph",this.t("Transiting"),-1)} ${this.renderAxis()}</svg>`}renderTicks(){let e=[];for(let r=0;r<360;r+=5){let n=this.toAngle(r),o=r%30===0,i=b(h,h,o?Lt:W-5,n),a=b(h,h,W,n);e.push(w`<line class=${o?"tick tick-major":"tick"} x1=${i.x} y1=${i.y} x2=${a.x} y2=${a.y} stroke-width=${o?1:.5} />`)}return e}renderSpokes(){return V.map((e,r)=>{let n=this.toAngle(r*30),o=b(h,h,Nt,n),i=b(h,h,W,n);return w`<line class="wheel-line" x1=${o.x} y1=${o.y} x2=${i.x} y2=${i.y} stroke-width="0.6" />`})}renderHouses(){let e=this.cusps;return e?e.map((r,n)=>{let o=e[(n+1)%12],i=this.toAngle(r.longitude),a=b(h,h,Nt,i),l=b(h,h,Lt,i),p=b(h,h,fr,this.toAngle(ve(r.longitude,o?.longitude??r.longitude+30)));return w`<g>
262
+ `;var Z="roxy-ui-tokens";function X(){if(typeof document>"u")return null;let s=document.getElementById(Z);if(s)return s;let e=document.createElement("style");return e.id=Z,e.textContent=De,document.head.prepend(e),e}var Q=globalThis,ee=Q.ShadowRoot&&(Q.ShadyCSS===void 0||Q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ge=Symbol(),He=new WeakMap,D=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==ge)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(ee&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=He.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&He.set(t,e))}return e}toString(){return this.cssText}},Be=s=>new D(typeof s=="string"?s:s+"",void 0,ge),A=(s,...e)=>{let t=s.length===1?s[0]:e.reduce((r,n,o)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+s[o+1],s[0]);return new D(t,s,ge)},je=(s,e)=>{if(ee)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),n=Q.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,s.appendChild(r)}},me=ee?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return Be(t)})(s):s;var{is:Dt,defineProperty:Ht,getOwnPropertyDescriptor:Bt,getOwnPropertyNames:jt,getOwnPropertySymbols:Kt,getPrototypeOf:Ft}=Object,te=globalThis,Ke=te.trustedTypes,qt=Ke?Ke.emptyScript:"",Gt=te.reactiveElementPolyfillSupport,H=(s,e)=>s,B={toAttribute(s,e){switch(e){case Boolean:s=s?qt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},re=(s,e)=>!Dt(s,e),Fe={attribute:!0,type:String,converter:B,reflect:!1,useDefault:!1,hasChanged:re};Symbol.metadata??=Symbol("metadata"),te.litPropertyMetadata??=new WeakMap;var S=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Fe){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(e,r,t);n!==void 0&&Ht(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){let{get:n,set:o}=Bt(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get:n,set(i){let a=n?.call(this);o?.call(this,i),this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Fe}static _$Ei(){if(this.hasOwnProperty(H("elementProperties")))return;let e=Ft(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(H("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(H("properties"))){let t=this.properties,r=[...jt(t),...Kt(t)];for(let n of r)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let n of r)t.unshift(me(n))}else e!==void 0&&t.push(me(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return je(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(n!==void 0&&r.reflect===!0){let o=(r.converter?.toAttribute!==void 0?r.converter:B).toAttribute(t,r.type);this._$Em=e,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(e,t){let r=this.constructor,n=r._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let o=r.getPropertyOptions(n),i=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:B;this._$Em=n;let a=i.fromAttribute(t,o.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(e,t,r,n=!1,o){if(e!==void 0){let i=this.constructor;if(n===!1&&(o=this[e]),r??=i.getPropertyOptions(e),!((r.hasChanged??re)(o,t)||r.useDefault&&r.reflect&&o===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:n,wrapped:o},i){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),o!==!0||i!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,o]of r){let{wrapped:i}=o,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,o,a)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[H("elementProperties")]=new Map,S[H("finalized")]=new Map,Gt?.({ReactiveElement:S}),(te.reactiveElementVersions??=[]).push("2.1.2");var we=globalThis,qe=s=>s,ne=we.trustedTypes,Ge=ne?ne.createPolicy("lit-html",{createHTML:s=>s}):void 0,Xe="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,Qe="?"+_,Vt=`<${Qe}>`,N=document,K=()=>N.createComment(""),F=s=>s===null||typeof s!="object"&&typeof s!="function",Ae=Array.isArray,Yt=s=>Ae(s)||typeof s?.[Symbol.iterator]=="function",fe=`[
263
+ \f\r]`,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ve=/-->/g,Ye=/>/g,C=RegExp(`>|${fe}(?:([^\\s"'>=/]+)(${fe}*=${fe}*(?:[^
264
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),We=/'/g,Je=/"/g,et=/^(?:script|style|textarea|title)$/i,Se=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),u=Se(1),w=Se(2),Cr=Se(3),P=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),Ze=new WeakMap,L=N.createTreeWalker(N,129);function tt(s,e){if(!Ae(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ge!==void 0?Ge.createHTML(e):e}var Wt=(s,e)=>{let t=s.length-1,r=[],n,o=e===2?"<svg>":e===3?"<math>":"",i=j;for(let a=0;a<t;a++){let l=s[a],p,d,g=-1,y=0;for(;y<l.length&&(i.lastIndex=y,d=i.exec(l),d!==null);)y=i.lastIndex,i===j?d[1]==="!--"?i=Ve:d[1]!==void 0?i=Ye:d[2]!==void 0?(et.test(d[2])&&(n=RegExp("</"+d[2],"g")),i=C):d[3]!==void 0&&(i=C):i===C?d[0]===">"?(i=n??j,g=-1):d[1]===void 0?g=-2:(g=i.lastIndex-d[2].length,p=d[1],i=d[3]===void 0?C:d[3]==='"'?Je:We):i===Je||i===We?i=C:i===Ve||i===Ye?i=j:(i=C,n=void 0);let v=i===C&&s[a+1].startsWith("/>")?" ":"";o+=i===j?l+Vt:g>=0?(r.push(p),l.slice(0,g)+Xe+l.slice(g)+_+v):l+_+(g===-2?a:v)}return[tt(s,o+(s[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},q=class s{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let o=0,i=0,a=e.length-1,l=this.parts,[p,d]=Wt(e,t);if(this.el=s.createElement(p,r),L.currentNode=this.el.content,t===2||t===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=L.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(Xe)){let y=d[i++],v=n.getAttribute(g).split(_),R=/([.?@])?(.*)/.exec(y);l.push({type:1,index:o,name:R[2],strings:v,ctor:R[1]==="."?xe:R[1]==="?"?be:R[1]==="@"?ve:M}),n.removeAttribute(g)}else g.startsWith(_)&&(l.push({type:6,index:o}),n.removeAttribute(g));if(et.test(n.tagName)){let g=n.textContent.split(_),y=g.length-1;if(y>0){n.textContent=ne?ne.emptyScript:"";for(let v=0;v<y;v++)n.append(g[v],K()),L.nextNode(),l.push({type:2,index:++o});n.append(g[y],K())}}}else if(n.nodeType===8)if(n.data===Qe)l.push({type:2,index:o});else{let g=-1;for(;(g=n.data.indexOf(_,g+1))!==-1;)l.push({type:7,index:o}),g+=_.length-1}o++}}static createElement(e,t){let r=N.createElement("template");return r.innerHTML=e,r}};function U(s,e,t=s,r){if(e===P)return e;let n=r!==void 0?t._$Co?.[r]:t._$Cl,o=F(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(s),n._$AT(s,t,r)),r!==void 0?(t._$Co??=[])[r]=n:t._$Cl=n),n!==void 0&&(e=U(s,n._$AS(s,e.values),n,r)),e}var ye=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??N).importNode(t,!0);L.currentNode=n;let o=L.nextNode(),i=0,a=0,l=r[0];for(;l!==void 0;){if(i===l.index){let p;l.type===2?p=new G(o,o.nextSibling,this,e):l.type===1?p=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(p=new $e(o,this,e)),this._$AV.push(p),l=r[++a]}i!==l?.index&&(o=L.nextNode(),i++)}return L.currentNode=N,n}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},G=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=U(this,e,t),F(e)?e===c||e==null||e===""?(this._$AH!==c&&this._$AR(),this._$AH=c):e!==this._$AH&&e!==P&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Yt(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==c&&F(this._$AH)?this._$AA.nextSibling.data=e:this.T(N.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=q.createElement(tt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let o=new ye(n,this),i=o.u(this.options);o.p(t),this.T(i),this._$AH=o}}_$AC(e){let t=Ze.get(e.strings);return t===void 0&&Ze.set(e.strings,t=new q(e)),t}k(e){Ae(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let o of e)n===t.length?t.push(r=new s(this.O(K()),this.O(K()),this,this.options)):r=t[n],r._$AI(o),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=qe(e).nextSibling;qe(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},M=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,o){this.type=1,this._$AH=c,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=c}_$AI(e,t=this,r,n){let o=this.strings,i=!1;if(o===void 0)e=U(this,e,t,0),i=!F(e)||e!==this._$AH&&e!==P,i&&(this._$AH=e);else{let a=e,l,p;for(e=o[0],l=0;l<o.length-1;l++)p=U(this,a[r+l],t,l),p===P&&(p=this._$AH[l]),i||=!F(p)||p!==this._$AH[l],p===c?e=c:e!==c&&(e+=(p??"")+o[l+1]),this._$AH[l]=p}i&&!n&&this.j(e)}j(e){e===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},xe=class extends M{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===c?void 0:e}},be=class extends M{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==c)}},ve=class extends M{constructor(e,t,r,n,o){super(e,t,r,n,o),this.type=5}_$AI(e,t=this){if((e=U(this,e,t,0)??c)===P)return;let r=this._$AH,n=e===c&&r!==c||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==c&&(r===c||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},$e=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){U(this,e)}};var Jt=we.litHtmlPolyfillSupport;Jt?.(q,G),(we.litHtmlVersions??=[]).push("3.3.3");var rt=(s,e,t)=>{let r=t?.renderBefore??e,n=r._$litPart$;if(n===void 0){let o=t?.renderBefore??null;r._$litPart$=n=new G(e.insertBefore(K(),o),o,void 0,t??{})}return n._$AI(s),n};var ke=globalThis,T=class extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=rt(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return P}};T._$litElement$=!0,T.finalized=!0,ke.litElementHydrateSupport?.({LitElement:T});var Zt=ke.litElementPolyfillSupport;Zt?.({LitElement:T});(ke.litElementVersions??=[]).push("4.2.2");var nt=s=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(s,e)}):customElements.define(s,e)};var Xt={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:re},Qt=(s=Xt,e,t)=>{let{kind:r,metadata:n}=t,o=globalThis.litPropertyMetadata.get(n);if(o===void 0&&globalThis.litPropertyMetadata.set(n,o=new Map),r==="setter"&&((s=Object.create(s)).wrapped=!0),o.set(t.name,s),r==="accessor"){let{name:i}=t;return{set(a){let l=e.get.call(this);e.set.call(this,a),this.requestUpdate(i,l,s,!0,a)},init(a){return a!==void 0&&this.C(i,void 0,s,a),a}}}if(r==="setter"){let{name:i}=t;return function(a){let l=this[i];e.call(this,a),this.requestUpdate(i,l,s,!0,a)}}throw Error("Unsupported decorator location: "+r)};function x(s){return(e,t)=>typeof t=="object"?Qt(s,e,t):((r,n,o)=>{let i=n.hasOwnProperty(o);return n.constructor.createProperty(o,r),i?Object.getOwnPropertyDescriptor(n,o):void 0})(s,e,t)}function I(s){return x({...s,state:!0,attribute:!1})}function oe(s){return s.toLowerCase().replace(/[\s_-]+/g," ").trim()}function O(s){return s?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():""}var st=(s,e)=>e?s[oe(e)]:void 0,er={sun:"\u2609",moon:"\u263D",mercury:"\u263F",venus:"\u2640",earth:"\u2641",mars:"\u2642",jupiter:"\u2643",saturn:"\u2644",uranus:"\u2645",neptune:"\u2646",pluto:"\u2647",rahu:"\u260A",ketu:"\u260B",ascendant:"Asc",lagna:"La","north node":"\u260A","south node":"\u260B",chiron:"\u26B7",lilith:"\u26B8","black moon lilith":"\u26B8"},ot=s=>st(er,s);var tr={aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"},_e=s=>st(tr,s);var V=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"];var Y=s=>s??c;function it(s){if(s.lang)return s.lang;if(typeof document>"u")return;let e=s.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}var at="__ROXY_UI_I18N__";function ct(){let s=globalThis,e=s[at];if(e)return e;let t={catalogs:{},listeners:new Set};return s[at]=t,t}function lt(s,e){return e?s.replace(/\{\{(\w+)\}\}/g,(t,r)=>r in e?String(e[r]??""):t):s}function dt(s,e,t){if(!s)return lt(e,t);let{catalogs:r}=ct(),n=s.toLowerCase(),o=r[n]??r[n.split("-")[0]];return lt(o?.[oe(e)]??e,t)}function pt(s){let{listeners:e}=ct();return e.add(s),()=>{e.delete(s)}}var ie=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=pt(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var ae=A`: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 le="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function ut(s){return!!s&&!s.startsWith("pk_")}function ht(s,e={}){e.warn&&console.warn(le),s.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:le},bubbles:!0,composed:!0}))}var rr="https://roxyapi.com/api/v2",ce=class{constructor(e){this.baseUrl=rr;this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){if(!this.submitUrl&&this.secretKeyRefused())return;this.abort?.abort();let t=new AbortController;this.abort=t,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(e),signal:t.signal}):await this.callApi(e,t.signal);if(!r.ok)throw new Error(await this.readError(r));let n=await r.json();if(t.signal.aborted)return;this.host.data=n}catch(r){if(r?.name==="AbortError")return;this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===t&&(this.abort=void 0),t.signal.aborted||(this.host.loading=!1)}}callApi(e,t){let r=new URL(`${this.baseUrl}${e.path}`);for(let[o,i]of Object.entries(e.query??{}))i!=null&&r.searchParams.set(o,String(i));let n={Accept:"application/json"};return this.publishableKey&&(n["X-API-Key"]=this.publishableKey),e.body!=null&&(n["Content-Type"]="application/json"),fetch(r,{method:e.method??"GET",headers:n,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}secretKeyRefused(){return ut(this.publishableKey)?(this.host.error=le,ht(this.host),!0):!1}async readError(e){try{let t=await e.json();if(t?.error)return t.error}catch{}return`Request failed (${e.status})`}};function gt(s,e,t,r=[]){let n={...t},o=`/${s.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,d)=>{let g=n[d];return delete n[d],encodeURIComponent(String(g??""))}),i=new Set(r),a={},l={};for(let[p,d]of Object.entries(n))d===void 0||d===""||(e==="GET"||i.has(p)?a[p]=d:l[p]=d);return{path:o,method:e,query:a,body:e==="POST"?l:void 0}}function mt(){return u`<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 ft=A`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 yt=A`.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}`;function xt(s,e,t="Reading"){let r=s.filter(n=>!!n.body);return r.length===0?c:u`<section class="block" part="section readings"><h3>${t}</h3>${r.map((n,o)=>u`<details class="interp-card" part="reading" name="${e}" ?open="${o===0}"><summary><span class="interp-lead">${n.label}</span> ${mt()} ${n.aside?u`<span class="interp-aside"><small>${n.aside}</small></span>`:c}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??c}</div></details>`)}</section>`}var nr="roxy-data";function sr(s){return s.nodeName==="SCRIPT"&&s.getAttribute("type")==="application/json"}var de=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){if(this.host.data!=null)return;let e=this.read();e!==void 0&&(this.host.data=e,this.host.requestUpdate())}read(){let e=this.findInlineScript();return e?this.parse(e.textContent):void 0}findInlineScript(){for(let e of Array.from(this.host.children))if(sr(e)&&e.classList.contains(nr))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var f=class extends T{constructor(){super();this.data=null;this.endpoint="";this.method="POST";this.remember=!1;this.hideReadings=!1;this.loading=!1;this.error=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.translator=(t,r)=>this.t(t,r);this.onEdit=()=>{this.editing=!0};this.onFormSubmit=t=>{let r=t.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetcher.run(gt(this.endpoint,this.method,r.values,r.queryKeys??[]))};new de(this),new ie(this),this.fetcher=new ce(this)}static{this.styles=[ae]}t(t,r){return dt(this.effectiveLang(),t,r)}willUpdate(t){t.has("publishableKey")&&(this.fetcher.publishableKey=this.publishableKey),t.has("baseUrl")&&this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),t.has("submitUrl")&&(this.fetcher.submitUrl=this.submitUrl)}render(){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()?u`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderInterpretation(t,r,n){return this.hideReadings?c:xt(t,r,n??this.t("Reading"))}renderResult(t){let r=this.sticky?u`${this.renderForm()}${this.renderData(t)}`:u`<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(t)}`;return this.showAttribution()?u`${r}${this.renderAttribution()}`:r}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return u`<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 u`<roxy-endpoint-form part="form" data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${Y(this.specUrl)}" publishable-key="${Y(this.publishableKey)}" submit-label="${Y(this.submitLabel)}" lang="${Y(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}effectiveLang(){return it(this)}rememberKey(){return`roxy-ui:form:${this.endpoint}`}readRemembered(){try{let t=sessionStorage.getItem(this.rememberKey());return t?JSON.parse(t):void 0}catch{return}}writeRemembered(t){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(t))}catch{}}renderEmpty(){return u`<div class="roxy-empty" role="status">${this.t("No data")}</div>`}renderLoading(){return u`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let r=u`<div class="roxy-error" role="alert" part="error">${t}</div>`;return this.endpoint?u`${r}${this.renderForm()}`:r}};m([x({attribute:!1})],f.prototype,"data",2),m([x({type:String,attribute:"data-endpoint"})],f.prototype,"endpoint",2),m([x({type:String})],f.prototype,"method",2),m([x({type:String,attribute:"publishable-key"})],f.prototype,"publishableKey",2),m([x({type:String,attribute:"base-url"})],f.prototype,"baseUrl",2),m([x({type:String,attribute:"spec-url"})],f.prototype,"specUrl",2),m([x({type:String,attribute:"submit-url"})],f.prototype,"submitUrl",2),m([x({type:Boolean})],f.prototype,"remember",2),m([x({type:Boolean,attribute:"hide-readings",reflect:!0})],f.prototype,"hideReadings",2),m([x({type:String,attribute:"submit-label"})],f.prototype,"submitLabel",2),m([x({type:String})],f.prototype,"attribution",2),m([I()],f.prototype,"loading",2),m([I()],f.prototype,"error",2),m([I()],f.prototype,"selfFetched",2),m([I()],f.prototype,"editing",2),m([I()],f.prototype,"sticky",2);function E(s){let e=s%360;return e<0?e+360:e}function Te(s){let e=E(s),t=Math.floor(e/30)%12,r=e%30,n=Math.floor(r),o=(r-n)*60,i=Math.floor(o),a=Math.round((o-i)*60);return{sign:V[t]??"Aries",signIndex:t,degree:n,minute:i,second:a}}function bt(s){return E(s+180)}function vt(s,e){let t=E(s),r=E(e)-t;return r<0&&(r+=360),E(t+r/2)}function $t(s,e,t){let r=s.filter(o=>Number.isFinite(e(o))).map(o=>{let i=E(e(o));return{item:o,longitude:i,displayLongitude:i}}).sort((o,i)=>o.longitude-i.longitude);for(let o=1;o<r.length;o++){let i=r[o-1],a=r[o];if(!i||!a)continue;let l=i.displayLongitude+t;a.displayLongitude<l&&(a.displayLongitude=l)}let n=r[r.length-1];if(n&&n.displayLongitude>360){let o=n.displayLongitude-360;for(let i of r)i.displayLongitude-=o}return r}function Ee(s,e){return e>0?s/e*(180/Math.PI):0}function b(s,e,t,r){let n=r*Math.PI/180;return{x:s+t*Math.cos(n),y:e+t*Math.sin(n)}}var Re=/^\d{4}-\d{2}-\d{2}$/,At=/^\d{2}:\d{2}(:\d{2})?$/,or=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,wt=new Map;function St(s){if(!s)return["en"];let e=wt.get(s);if(e)return[e,"en"];let t="en";try{t=Intl.getCanonicalLocales(s)[0]??"en"}catch{t="en"}return wt.set(s,t),[t,"en"]}function kt(s){let e=At.test(s)?`1970-01-01T${s}`:or.test(s)?s:null;return e?{d:new Date(`${e}Z`),timeZone:"UTC"}:{d:new Date(s)}}function ir(s,e){if(typeof e!="string"||e.length===0||Re.test(e))return"";let{d:t,timeZone:r}=kt(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString(St(s),{hour:"numeric",minute:"2-digit",timeZone:r})}function ar(s,e){if(typeof e!="string"||e.length===0)return"";let{d:t,timeZone:r}=kt(Re.test(e)?`${e}T00:00:00`:e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(St(s),{month:"short",day:"numeric",year:"numeric",timeZone:r})}function pe(s,e=1){if(typeof s!="number"||!Number.isFinite(s))return"";let t=s.toFixed(e);return t.includes(".")?t.replace(/\.?0+$/,""):t}var _t={conjunction:"aspect-conjunction",sextile:"aspect-sextile",square:"aspect-square",trine:"aspect-trine",opposition:"aspect-opposition"};function Ce(s){return(s.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}function ue(s){return O(Ce(s))}function Tt(s,e,t){let r=typeof e=="string"&&Re.test(e)&&typeof t=="string"&&At.test(t)?`${e}T${t}`:e,n=ar(s,r),o=ir(s,r);return n&&o?`${n}, ${o}`:n||o}var lr="Localized";function $(s,e,t){let r=s,n=r?.[`${e}${lr}`];if(typeof n=="string"&&n!=="")return n;if(t!==void 0)return t;let o=r?.[e];return typeof o=="string"?o:""}var Pe=400,h=Pe/2,cr=184,W=170,dr=154,Le=140,pr=124,ur=135,hr=94,gr=83,Et=112,mr=104,Ne=70,fr=58,yr=13,xr=15,br=8,vr=4,z=(s,e)=>ot(s)??e,Rt=s=>{let e=Te(s);return`${e.degree}\xB0${String(e.minute).padStart(2,"0")}'`},Ct=s=>typeof s=="number"&&Number.isFinite(s)?String(Math.round(s)):"",he=s=>{let e=new Map;for(let t of s)e.set(O(t.name),t);return e},k=class extends f{constructor(){super(...arguments);this.heading="Transits"}get payload(){return this.data}get effectiveAscendant(){for(let t of[this.ascendant,this.payload?.ascendant?.longitude])if(typeof t=="number"&&Number.isFinite(t))return t}get ascendantGiven(){return this.effectiveAscendant!==void 0}get cuspsFromPage(){return Array.isArray(this.houses)}get cusps(){let t=this.houses??this.payload?.houses;if(!Array.isArray(t)||t.length!==12)return null;let r=t.map((o,i)=>typeof o=="number"?{number:i+1,longitude:o}:{number:Number(o?.number),longitude:Number(o?.longitude)}).sort((o,i)=>o.number-i.number);return r.every((o,i)=>o.number===i+1&&Number.isFinite(o.longitude))?r:null}toAngle(t){return 180+(this.effectiveAscendant??this.cusps?.[0]?.longitude??0)-t}renderEmpty(){return u`<div class="roxy-empty" role="status">${this.t("No transit data")}</div>`}renderData(t){let r=t.natalPlanets??[],n=t.transitPlanets??[],o=t.aspects??[],i=Tt(this.effectiveLang(),t.transitDate),a=o.length>0?this.t("Aspects to the natal chart: {{count}}",{count:o.length}):"",l=[...r,...n].some(p=>Number.isFinite(p.house));return u`<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>${i||a?u`<p class="subtitle">${[i,a].filter(Boolean).join(" \xB7 ")}</p>`:c}</div>${this.renderWheel(r,n,o)} ${this.renderLegend(r,n,o,l?t.houseSystem:void 0)} ${this.renderSummary(t.summary)} ${this.renderPositions(r,n,l)} ${this.renderReadings(o)}</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\xB0 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(t,r,n){return u`<svg viewBox="0 0 ${Pe} ${Pe}" 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="${h}" cy="${h}" r="${W}" stroke-width="1.5"/><circle class="wheel-line" cx="${h}" cy="${h}" r="${Le}" stroke-width="0.8"/><circle class="wheel-line" cx="${h}" cy="${h}" r="${Et}" stroke-width="0.6"/><circle class="wheel-line" cx="${h}" cy="${h}" r="${Ne}" stroke-width="0.5"/>${this.renderTicks()} ${this.renderSpokes()} ${this.renderSigns()} ${this.renderHouses()} ${this.renderAspectLines(t,r,n)} ${this.renderRing(t,hr,gr,"natal-glyph",this.t("Natal"),1)} ${this.renderRing(r,pr,ur,"transit-glyph",this.t("Transiting"),-1)} ${this.renderAxis()}</svg>`}renderTicks(){let t=[];for(let r=0;r<360;r+=5){let n=this.toAngle(r),o=r%30===0,i=b(h,h,o?Le:W-5,n),a=b(h,h,W,n);t.push(w`<line class=${o?"tick tick-major":"tick"} x1=${i.x} y1=${i.y} x2=${a.x} y2=${a.y} stroke-width=${o?1:.5} />`)}return t}renderSpokes(){return V.map((t,r)=>{let n=this.toAngle(r*30),o=b(h,h,Ne,n),i=b(h,h,W,n);return w`<line class="wheel-line" x1=${o.x} y1=${o.y} x2=${i.x} y2=${i.y} stroke-width="0.6" />`})}renderHouses(){let t=this.cusps;return t?t.map((r,n)=>{let o=t[(n+1)%12],i=this.toAngle(r.longitude),a=b(h,h,Ne,i),l=b(h,h,Le,i),p=b(h,h,fr,this.toAngle(vt(r.longitude,o?.longitude??r.longitude+30)));return w`<g>
265
265
  <line class="house-cusp" x1=${a.x} y1=${a.y} x2=${l.x} y2=${l.y} />
266
266
  <text class="house-num" x=${p.x} y=${p.y} text-anchor="middle" dominant-baseline="central">${r.number}</text>
267
- </g>`}):c}renderSigns(){return V.map((e,r)=>{let n=b(h,h,dr,this.toAngle(r*30+15));return w`<text class="sign-glyph" x=${n.x} y=${n.y} text-anchor="middle" dominant-baseline="central">${_t(e)}</text>`})}renderRing(e,r,n,o,i,a){let l=Math.max(Et(yr,r),Et(xr,n));return $e(e,p=>p.longitude,l).map(({item:p,longitude:d,displayLongitude:g})=>{let y=this.toAngle(g),v=b(h,h,r,y),R=b(h,h,n,y),Ot=p.isRetrograde===!0,Le=`${Tt(d).degree}\xB0`,Ut=$(p,"name"),Ne=`${i} ${Ut}${Ot?` ${this.t("retrograde")}`:""} - ${Re(d)} ${$(p,"sign")}`,Pe=Math.abs(g-d)>.5,Mt=b(h,h,r+a*br,this.toAngle(d)),It=b(h,h,r+a*vr,y);return w`<g>
268
- ${Pe?w`<line class=${`leader ${o}`} x1=${Mt.x} y1=${Mt.y} x2=${It.x} y2=${It.y} />`:c}
269
- <text class=${o} x=${v.x} y=${v.y} text-anchor="middle" dominant-baseline="central"><title>${Ne}</title>${z(p.name,Ut)}</text>
270
- <text class="planet-deg" x=${R.x} y=${R.y} text-anchor="middle" dominant-baseline="central">${Le}${Ot?w`<tspan class="retro"> ℞</tspan>`:c}</text>
271
- </g>`})}renderAspectLines(e,r,n){let o=ht(e),i=ht(r);return n.map(a=>{let l=i.get(O(a.planet1)),p=o.get(O(a.planet2));if(!l||!p||!Number.isFinite(l.longitude)||!Number.isFinite(p.longitude))return c;let d=b(h,h,Ee,this.toAngle(l.longitude)),g=b(h,h,mr,this.toAngle(p.longitude)),y=Ct(a),v=pt(a.orb,1);return w`<line class=${`aspect ${_e[y]??"aspect-other"}`} x1=${d.x} y1=${d.y} x2=${g.x} y2=${g.y}><title>${this.t("Transiting")} ${$(a,"planet1")} ${$(a,"type",y)} ${this.t("Natal")} ${$(a,"planet2")}${v?` (${this.t("orb")} ${v}\xB0)`:""}</title></line>`})}renderAxis(){if(!this.ascendantGiven)return c;let e=E(this.ascendant);return[e,be(e)].map((r,n)=>{let o=this.toAngle(r),i=b(h,h,W,o),a=b(h,h,cr,o);return w`<g>
272
- <line class="axis-tick" x1=${i.x} y1=${i.y} x2=${a.x} y2=${a.y} />
273
- <text class="axis-label" x=${a.x} y=${a.y} text-anchor="middle" dominant-baseline="central">${n===0?"ASC":"DSC"}</text>
274
- </g>`})}renderLegend(e,r,n,o){return u`<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> ${n.length>0?u`<span><span class="swatch swatch--harmonious"></span>${this.t("Harmonious")}</span> <span><span class="swatch swatch--challenging"></span>${this.t("Challenging")}</span>`:c} ${o?u`<span>${this.t("{{system}} houses",{system:o})}</span>`:c} <span>${this.orientationCaption}</span> <span>${this.cuspCaption}</span></div>`}renderSummary(e){if(!e)return c;let r=Object.entries(e.byType??{}).sort((n,o)=>o[1]-n[1]);return u`<div part="details"><div class="summary-pills" role="region" aria-label="${this.t("Transit aspect summary")}">${typeof e.total=="number"?u`<span class="pill pill--muted">${this.t("Total")}: ${e.total}</span>`:c} <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(([n,o])=>u`<span class="pill pill--muted">${ut({type:n})}: ${o}</span>`)}</div>${e.strongest?this.renderStrongest(e.strongest):c}</div>`}renderStrongest(e){let r=$(e,"planet1"),n=$(e,"planet2");return u`<div class="strongest" part="details strongest"><span class="label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph">${z(e.planet1,r)}</span>${this.t("Transiting")} ${r} <span class="nature-badge ${(e.interpretation??"neutral").toLowerCase()}">${$(e,"type",ut(e))}</span> <span aria-hidden="true" class="glyph">${z(e.planet2,n)}</span>${this.t("Natal")} ${n} <span class="meta">${e.isApplying?this.t("Applying"):this.t("Separating")} · ${this.t("orb")} ${pt(e.orb,2)}° · ${this.t("strength")} ${Ce(e.strength)}</span></div>`}renderPositions(e,r,n){if(e.length===0&&r.length===0)return c;let o=ht(e),i=ht(r),a=e.length>0?e:r,l=d=>d?u`${_t(d.sign)??""} ${Re(d.longitude)} ${$(d,"sign")}${d.isRetrograde?u`<span class="retro-badge" aria-label="${this.t("retrograde")}">℞</span>`:c}`:c,p=d=>n?u`<td>${d&&Number.isFinite(d.house)?d.house:c}</td>`:c;return u`<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.")} ${n?this.t("Both house numbers are read against the natal house cusps."):c}</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>${n?u`<th scope="col">${this.t("Natal house")}</th>`:c}<th scope="col"><span class="swatch swatch--transit" aria-hidden="true"></span>${this.t("Transiting")}</th>${n?u`<th scope="col">${this.t("Transiting house")}</th>`:c}</tr></thead><tbody>${a.map(d=>{let g=O(d.name),y=$(d,"name");return u`<tr><th scope="row"><span aria-hidden="true" class="glyph">${z(d.name,y)}</span> ${y}</th><td>${l(o.get(g))}</td>${p(o.get(g))}<td>${l(i.get(g))}</td>${p(i.get(g))}</tr>`})}</tbody></table></div>`}renderReadings(e){let r=e.filter(n=>n.transitInterpretation?.summary).map(n=>{let o=n.transitInterpretation,i=$(n,"planet1"),a=$(n,"planet2");return{label:`${z(n.planet1,i)} ${i} ${$(n,"type",ut(n))} ${z(n.planet2,a)} ${a}`,aside:`${this.t("orb")} ${pt(n.orb,2)}\xB0 \xB7 ${this.t("strength")} ${Ce(n.strength)}`,body:o.summary,extra:u`${o.impact?u`<p><strong>${this.t("Impact")}:</strong> ${o.impact}</p>`:c} ${o.timing?u`<p><strong>${this.t("Timing")}:</strong> ${o.timing}</p>`:c} ${o.guidance?u`<p><strong>${this.t("Guidance")}:</strong> ${o.guidance}</p>`:c} ${o.keywords?.length?u`<div class="interp-keywords">${o.keywords.map(l=>u`<span class="kw">${l}</span>`)}</div>`:c}`}});return this.renderInterpretation(r,"transit-aspect-readings",this.t("Transit readings"))}};k.styles=[at,fe,ye,A`.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}.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);opacity:.4}.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}.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}`],m([x({type:String})],k.prototype,"heading",2),m([x({type:Number})],k.prototype,"ascendant",2),m([x({type:Array})],k.prototype,"houses",2),k=m([ne("roxy-transit-wheel")],k);X();return ze($r);})();
267
+ </g>`}):c}renderSigns(){return V.map((t,r)=>{let n=b(h,h,dr,this.toAngle(r*30+15));return w`<text class="sign-glyph" x=${n.x} y=${n.y} text-anchor="middle" dominant-baseline="central">${_e(t)}</text>`})}renderRing(t,r,n,o,i,a){let l=Math.max(Ee(yr,r),Ee(xr,n));return $t(t,p=>p.longitude,l).map(({item:p,longitude:d,displayLongitude:g})=>{let y=this.toAngle(g),v=b(h,h,r,y),R=b(h,h,n,y),Oe=p.isRetrograde===!0,Lt=`${Te(d).degree}\xB0`,Ue=$(p,"name"),Nt=`${i} ${Ue}${Oe?` ${this.t("retrograde")}`:""} - ${Rt(d)} ${$(p,"sign")}`,Pt=Math.abs(g-d)>.5,Me=b(h,h,r+a*br,this.toAngle(d)),Ie=b(h,h,r+a*vr,y);return w`<g>
268
+ ${Pt?w`<line class=${`leader ${o}`} x1=${Me.x} y1=${Me.y} x2=${Ie.x} y2=${Ie.y} />`:c}
269
+ <text class=${o} x=${v.x} y=${v.y} text-anchor="middle" dominant-baseline="central"><title>${Nt}</title>${z(p.name,Ue)}</text>
270
+ <text class="planet-deg" x=${R.x} y=${R.y} text-anchor="middle" dominant-baseline="central">${Lt}${Oe?w`<tspan class="retro"> ℞</tspan>`:c}</text>
271
+ </g>`})}renderAspectLines(t,r,n){let o=he(t),i=he(r);return n.map(a=>{let l=i.get(O(a.planet1)),p=o.get(O(a.planet2));if(!l||!p||!Number.isFinite(l.longitude)||!Number.isFinite(p.longitude))return c;let d=b(h,h,Et,this.toAngle(l.longitude)),g=b(h,h,mr,this.toAngle(p.longitude)),y=Ce(a),v=pe(a.orb,1);return w`<line class=${`aspect ${_t[y]??"aspect-other"}`} x1=${d.x} y1=${d.y} x2=${g.x} y2=${g.y}><title>${this.t("Transiting")} ${$(a,"planet1")} ${$(a,"type",y)} ${this.t("Natal")} ${$(a,"planet2")}${v?` (${this.t("orb")} ${v}\xB0)`:""}</title></line>`})}renderAxis(){let t=this.effectiveAscendant;if(t===void 0)return c;let r=E(t);return[r,bt(r)].map((n,o)=>{let i=this.toAngle(n),a=b(h,h,W,i),l=b(h,h,cr,i);return w`<g>
272
+ <line class="axis-tick" x1=${a.x} y1=${a.y} x2=${l.x} y2=${l.y} />
273
+ <text class="axis-label" x=${l.x} y=${l.y} text-anchor="middle" dominant-baseline="central">${o===0?"ASC":"DSC"}</text>
274
+ </g>`})}renderLegend(t,r,n,o){return u`<div class="legend" part="legend"><span><span class="swatch swatch--natal"></span>${this.t("{{count}} natal bodies",{count:t.length})}</span> <span><span class="swatch swatch--transit"></span>${this.t("{{count}} transiting bodies",{count:r.length})}</span> ${n.length>0?u`<span><span class="swatch swatch--harmonious"></span>${this.t("Harmonious")}</span> <span><span class="swatch swatch--challenging"></span>${this.t("Challenging")}</span>`:c} ${o?u`<span>${this.t("{{system}} houses",{system:o})}</span>`:c} <span>${this.orientationCaption}</span> <span>${this.cuspCaption}</span></div>`}renderSummary(t){if(!t)return c;let r=Object.entries(t.byType??{}).sort((n,o)=>o[1]-n[1]);return u`<div part="details"><div class="summary-pills" role="region" aria-label="${this.t("Transit aspect summary")}">${typeof t.total=="number"?u`<span class="pill pill--muted">${this.t("Total")}: ${t.total}</span>`:c} <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(([n,o])=>u`<span class="pill pill--muted">${ue({type:n})}: ${o}</span>`)}</div>${t.strongest?this.renderStrongest(t.strongest):c}</div>`}renderStrongest(t){let r=$(t,"planet1"),n=$(t,"planet2");return u`<div class="strongest" part="details strongest"><span class="label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph">${z(t.planet1,r)}</span>${this.t("Transiting")} ${r} <span class="nature-badge ${(t.interpretation??"neutral").toLowerCase()}">${$(t,"type",ue(t))}</span> <span aria-hidden="true" class="glyph">${z(t.planet2,n)}</span>${this.t("Natal")} ${n} <span class="meta">${t.isApplying?this.t("Applying"):this.t("Separating")} · ${this.t("orb")} ${pe(t.orb,2)}° · ${this.t("strength")} ${Ct(t.strength)}</span></div>`}renderPositions(t,r,n){if(t.length===0&&r.length===0)return c;let o=he(t),i=he(r),a=t.length>0?t:r,l=d=>d?u`${_e(d.sign)??""} ${Rt(d.longitude)} ${$(d,"sign")}${d.isRetrograde?u`<span class="retro-badge" aria-label="${this.t("retrograde")}">℞</span>`:c}`:c,p=d=>n?u`<td>${d&&Number.isFinite(d.house)?d.house:c}</td>`:c;return u`<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.")} ${n?this.t("Both house numbers are read against the natal house cusps."):c}</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>${n?u`<th scope="col">${this.t("Natal house")}</th>`:c}<th scope="col"><span class="swatch swatch--transit" aria-hidden="true"></span>${this.t("Transiting")}</th>${n?u`<th scope="col">${this.t("Transiting house")}</th>`:c}</tr></thead><tbody>${a.map(d=>{let g=O(d.name),y=$(d,"name");return u`<tr><th scope="row"><span aria-hidden="true" class="glyph">${z(d.name,y)}</span> ${y}</th><td>${l(o.get(g))}</td>${p(o.get(g))}<td>${l(i.get(g))}</td>${p(i.get(g))}</tr>`})}</tbody></table></div>`}renderReadings(t){let r=t.filter(n=>n.transitInterpretation?.summary).map(n=>{let o=n.transitInterpretation,i=$(n,"planet1"),a=$(n,"planet2");return{label:`${z(n.planet1,i)} ${i} ${$(n,"type",ue(n))} ${z(n.planet2,a)} ${a}`,aside:`${this.t("orb")} ${pe(n.orb,2)}\xB0 \xB7 ${this.t("strength")} ${Ct(n.strength)}`,body:o.summary,extra:u`${o.impact?u`<p><strong>${this.t("Impact")}:</strong> ${o.impact}</p>`:c} ${o.timing?u`<p><strong>${this.t("Timing")}:</strong> ${o.timing}</p>`:c} ${o.guidance?u`<p><strong>${this.t("Guidance")}:</strong> ${o.guidance}</p>`:c} ${o.keywords?.length?u`<div class="interp-keywords">${o.keywords.map(l=>u`<span class="kw">${l}</span>`)}</div>`:c}`}});return this.renderInterpretation(r,"transit-aspect-readings",this.t("Transit readings"))}};k.styles=[ae,ft,yt,A`.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}.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);opacity:.4}.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}.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}`],m([x({type:String})],k.prototype,"heading",2),m([x({type:Number})],k.prototype,"ascendant",2),m([x({type:Array})],k.prototype,"houses",2),k=m([nt("roxy-transit-wheel")],k);X();return zt($r);})();
275
275
  /*! Bundled license information:
276
276
 
277
277
  @lit/reactive-element/css-tag.js: