@roxyapi/ui 0.27.0 → 0.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -261,7 +261,7 @@ var RoxyUI_ephemeris_table=(()=>{var G=Object.defineProperty;var Se=Object.getOw
261
261
  }
262
262
  `;var B="roxy-ui-tokens";function F(){if(typeof document>"u")return null;let o=document.getElementById(B);if(o)return o;let e=document.createElement("style");return e.id=B,e.textContent=Ae,document.head.prepend(e),e}var V=globalThis,Y=V.ShadowRoot&&(V.ShadyCSS===void 0||V.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ae=Symbol(),_e=new WeakMap,N=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==ae)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(Y&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=_e.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&_e.set(t,e))}return e}toString(){return this.cssText}},ke=o=>new N(typeof o=="string"?o:o+"",void 0,ae),v=(o,...e)=>{let t=o.length===1?o[0]:e.reduce((r,n,s)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[s+1],o[0]);return new N(t,o,ae)},Re=(o,e)=>{if(Y)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),n=V.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,o.appendChild(r)}},de=Y?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return ke(t)})(o):o;var{is:ut,defineProperty:ht,getOwnPropertyDescriptor:ft,getOwnPropertyNames:gt,getOwnPropertySymbols:mt,getPrototypeOf:yt}=Object,W=globalThis,Ee=W.trustedTypes,xt=Ee?Ee.emptyScript:"",bt=W.reactiveElementPolyfillSupport,U=(o,e)=>o,O={toAttribute(o,e){switch(e){case Boolean:o=o?xt:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},Z=(o,e)=>!ut(o,e),Te={attribute:!0,type:String,converter:O,reflect:!1,useDefault:!1,hasChanged:Z};Symbol.metadata??=Symbol("metadata"),W.litPropertyMetadata??=new WeakMap;var w=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=Te){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:s}=ft(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get:n,set(i){let d=n?.call(this);s?.call(this,i),this.requestUpdate(e,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Te}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;let e=yt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(U("properties"))){let t=this.properties,r=[...gt(t),...mt(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(de(n))}else e!==void 0&&t.push(de(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 Re(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 s=(r.converter?.toAttribute!==void 0?r.converter:O).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,t){let r=this.constructor,n=r._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let s=r.getPropertyOptions(n),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:O;this._$Em=n;let d=i.fromAttribute(t,s.type);this[n]=d??this._$Ej?.get(n)??d,this._$Em=null}}requestUpdate(e,t,r,n=!1,s){if(e!==void 0){let i=this.constructor;if(n===!1&&(s=this[e]),r??=i.getPropertyOptions(e),!((r.hasChanged??Z)(s,t)||r.useDefault&&r.reflect&&s===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:s},i){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),s!==!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,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,s]of r){let{wrapped:i}=s,d=this[n];i!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,s,d)}}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){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[U("elementProperties")]=new Map,w[U("finalized")]=new Map,bt?.({ReactiveElement:w}),(W.reactiveElementVersions??=[]).push("2.1.2");var ge=globalThis,Ce=o=>o,J=ge.trustedTypes,Le=J?J.createPolicy("lit-html",{createHTML:o=>o}):void 0,De="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,Ie="?"+$,vt=`<${Ie}>`,R=document,I=()=>R.createComment(""),H=o=>o===null||typeof o!="object"&&typeof o!="function",me=Array.isArray,wt=o=>me(o)||typeof o?.[Symbol.iterator]=="function",ce=`[
263
263
  \f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pe=/-->/g,Me=/>/g,_=RegExp(`>|${ce}(?:([^\\s"'>=/]+)(${ce}*=${ce}*(?:[^
264
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ne=/'/g,Ue=/"/g,He=/^(?:script|style|textarea|title)$/i,ye=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),l=ye(1),Bt=ye(2),Ft=ye(3),E=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),Oe=new WeakMap,k=R.createTreeWalker(R,129);function ze(o,e){if(!me(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Le!==void 0?Le.createHTML(e):e}var $t=(o,e)=>{let t=o.length-1,r=[],n,s=e===2?"<svg>":e===3?"<math>":"",i=D;for(let d=0;d<t;d++){let a=o[d],c,h,u=-1,y=0;for(;y<a.length&&(i.lastIndex=y,h=i.exec(a),h!==null);)y=i.lastIndex,i===D?h[1]==="!--"?i=Pe:h[1]!==void 0?i=Me:h[2]!==void 0?(He.test(h[2])&&(n=RegExp("</"+h[2],"g")),i=_):h[3]!==void 0&&(i=_):i===_?h[0]===">"?(i=n??D,u=-1):h[1]===void 0?u=-2:(u=i.lastIndex-h[2].length,c=h[1],i=h[3]===void 0?_:h[3]==='"'?Ue:Ne):i===Ue||i===Ne?i=_:i===Pe||i===Me?i=D:(i=_,n=void 0);let b=i===_&&o[d+1].startsWith("/>")?" ":"";s+=i===D?a+vt:u>=0?(r.push(c),a.slice(0,u)+De+a.slice(u)+$+b):a+$+(u===-2?d:b)}return[ze(o,s+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},z=class o{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,i=0,d=e.length-1,a=this.parts,[c,h]=$t(e,t);if(this.el=o.createElement(c,r),k.currentNode=this.el.content,t===2||t===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=k.nextNode())!==null&&a.length<d;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(De)){let y=h[i++],b=n.getAttribute(u).split($),A=/([.?@])?(.*)/.exec(y);a.push({type:1,index:s,name:A[2],strings:b,ctor:A[1]==="."?pe:A[1]==="?"?ue:A[1]==="@"?he:L}),n.removeAttribute(u)}else u.startsWith($)&&(a.push({type:6,index:s}),n.removeAttribute(u));if(He.test(n.tagName)){let u=n.textContent.split($),y=u.length-1;if(y>0){n.textContent=J?J.emptyScript:"";for(let b=0;b<y;b++)n.append(u[b],I()),k.nextNode(),a.push({type:2,index:++s});n.append(u[y],I())}}}else if(n.nodeType===8)if(n.data===Ie)a.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf($,u+1))!==-1;)a.push({type:7,index:s}),u+=$.length-1}s++}}static createElement(e,t){let r=R.createElement("template");return r.innerHTML=e,r}};function C(o,e,t=o,r){if(e===E)return e;let n=r!==void 0?t._$Co?.[r]:t._$Cl,s=H(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(o),n._$AT(o,t,r)),r!==void 0?(t._$Co??=[])[r]=n:t._$Cl=n),n!==void 0&&(e=C(o,n._$AS(o,e.values),n,r)),e}var le=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??R).importNode(t,!0);k.currentNode=n;let s=k.nextNode(),i=0,d=0,a=r[0];for(;a!==void 0;){if(i===a.index){let c;a.type===2?c=new j(s,s.nextSibling,this,e):a.type===1?c=new a.ctor(s,a.name,a.strings,this,e):a.type===6&&(c=new fe(s,this,e)),this._$AV.push(c),a=r[++d]}i!==a?.index&&(s=k.nextNode(),i++)}return k.currentNode=R,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++}},j=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=C(this,e,t),H(e)?e===p||e==null||e===""?(this._$AH!==p&&this._$AR(),this._$AH=p):e!==this._$AH&&e!==E&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wt(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!==p&&H(this._$AH)?this._$AA.nextSibling.data=e:this.T(R.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=z.createElement(ze(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let s=new le(n,this),i=s.u(this.options);s.p(t),this.T(i),this._$AH=s}}_$AC(e){let t=Oe.get(e.strings);return t===void 0&&Oe.set(e.strings,t=new z(e)),t}k(e){me(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let s of e)n===t.length?t.push(r=new o(this.O(I()),this.O(I()),this,this.options)):r=t[n],r._$AI(s),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=Ce(e).nextSibling;Ce(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},L=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(e,t=this,r,n){let s=this.strings,i=!1;if(s===void 0)e=C(this,e,t,0),i=!H(e)||e!==this._$AH&&e!==E,i&&(this._$AH=e);else{let d=e,a,c;for(e=s[0],a=0;a<s.length-1;a++)c=C(this,d[r+a],t,a),c===E&&(c=this._$AH[a]),i||=!H(c)||c!==this._$AH[a],c===p?e=p:e!==p&&(e+=(c??"")+s[a+1]),this._$AH[a]=c}i&&!n&&this.j(e)}j(e){e===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},pe=class extends L{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===p?void 0:e}},ue=class extends L{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==p)}},he=class extends L{constructor(e,t,r,n,s){super(e,t,r,n,s),this.type=5}_$AI(e,t=this){if((e=C(this,e,t,0)??p)===E)return;let r=this._$AH,n=e===p&&r!==p||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==p&&(r===p||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},fe=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){C(this,e)}};var St=ge.litHtmlPolyfillSupport;St?.(z,j),(ge.litHtmlVersions??=[]).push("3.3.3");var je=(o,e,t)=>{let r=t?.renderBefore??e,n=r._$litPart$;if(n===void 0){let s=t?.renderBefore??null;r._$litPart$=n=new j(e.insertBefore(I(),s),s,void 0,t??{})}return n._$AI(o),n};var xe=globalThis,S=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=je(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return E}};S._$litElement$=!0,S.finalized=!0,xe.litElementHydrateSupport?.({LitElement:S});var At=xe.litElementPolyfillSupport;At?.({LitElement:S});(xe.litElementVersions??=[]).push("4.2.2");var Ke=o=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,e)}):customElements.define(o,e)};var _t={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:Z},kt=(o=_t,e,t)=>{let{kind:r,metadata:n}=t,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),s.set(t.name,o),r==="accessor"){let{name:i}=t;return{set(d){let a=e.get.call(this);e.set.call(this,d),this.requestUpdate(i,a,o,!0,d)},init(d){return d!==void 0&&this.C(i,void 0,o,d),d}}}if(r==="setter"){let{name:i}=t;return function(d){let a=this[i];e.call(this,d),this.requestUpdate(i,a,o,!0,d)}}throw Error("Unsupported decorator location: "+r)};function m(o){return(e,t)=>typeof t=="object"?kt(o,e,t):((r,n,s)=>{let i=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(n,s):void 0})(o,e,t)}function P(o){return m({...o,state:!0,attribute:!1})}function Q(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}var qe=(o,e)=>e?o[Q(e)]:void 0,Rt={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"},be=o=>qe(Rt,o);var Et={aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"},ve=o=>qe(Et,o);var K=o=>o??p;function Ge(o){if(o.lang)return o.lang;if(typeof document>"u")return;let e=o.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}var Be="__ROXY_UI_I18N__";function Ve(){let o=globalThis,e=o[Be];if(e)return e;let t={catalogs:{},listeners:new Set};return o[Be]=t,t}function Fe(o,e){return e?o.replace(/\{\{(\w+)\}\}/g,(t,r)=>r in e?String(e[r]??""):t):o}function Ye(o,e,t){if(!o)return Fe(e,t);let{catalogs:r}=Ve(),n=o.toLowerCase(),s=r[n]??r[n.split("-")[0]];return Fe(s?.[Q(e)]??e,t)}function We(o){let{listeners:e}=Ve();return e.add(o),()=>{e.delete(o)}}var ee=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=We(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var te=v`: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 re="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function Ze(o){return!!o&&!o.startsWith("pk_")}function Je(o,e={}){e.warn&&console.warn(re),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:re},bubbles:!0,composed:!0}))}var Tt="https://roxyapi.com/api/v2",ne=class{constructor(e){this.baseUrl=Tt;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[s,i]of Object.entries(e.query??{}))i!=null&&r.searchParams.set(s,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 Ze(this.publishableKey)?(this.host.error=re,Je(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 Xe(o,e,t,r=[]){let n={...t},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(c,h)=>{let u=n[h];return delete n[h],encodeURIComponent(String(u??""))}),i=new Set(r),d={},a={};for(let[c,h]of Object.entries(n))h===void 0||h===""||(e==="GET"||i.has(c)?d[c]=h:a[c]=h);return{path:s,method:e,query:d,body:e==="POST"?a:void 0}}function Qe(){return l`<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 Zr=v`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 en=v`.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 et(o,e,t="Reading"){let r=o.filter(n=>!!n.body);return r.length===0?p:l`<section class="block" part="section readings"><h3>${t}</h3>${r.map((n,s)=>l`<details class="interp-card" part="reading" name="${e}" ?open="${s===0}"><summary><span class="interp-lead">${n.label}</span> ${Qe()} ${n.aside?l`<span class="interp-aside"><small>${n.aside}</small></span>`:p}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??p}</div></details>`)}</section>`}var Ct="roxy-data";function Lt(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var oe=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(Lt(e)&&e.classList.contains(Ct))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var g=class extends S{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(Xe(this.endpoint,this.method,r.values,r.queryKeys??[]))};new oe(this),new ee(this),this.fetcher=new ne(this)}static{this.styles=[te]}t(t,r){return Ye(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()?l`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderInterpretation(t,r,n){return this.hideReadings?p:et(t,r,n??this.t("Reading"))}renderResult(t){let r=this.sticky?l`${this.renderForm()}${this.renderData(t)}`:l`<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()?l`${r}${this.renderAttribution()}`:r}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return l`<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 l`<roxy-endpoint-form part="form" data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${K(this.specUrl)}" publishable-key="${K(this.publishableKey)}" submit-label="${K(this.submitLabel)}" lang="${K(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}effectiveLang(){return Ge(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 l`<div class="roxy-empty" role="status">${this.t("No data")}</div>`}renderLoading(){return l`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let r=l`<div class="roxy-error" role="alert" part="error">${t}</div>`;return this.endpoint?l`${r}${this.renderForm()}`:r}};f([m({attribute:!1})],g.prototype,"data",2),f([m({type:String,attribute:"data-endpoint"})],g.prototype,"endpoint",2),f([m({type:String})],g.prototype,"method",2),f([m({type:String,attribute:"publishable-key"})],g.prototype,"publishableKey",2),f([m({type:String,attribute:"base-url"})],g.prototype,"baseUrl",2),f([m({type:String,attribute:"spec-url"})],g.prototype,"specUrl",2),f([m({type:String,attribute:"submit-url"})],g.prototype,"submitUrl",2),f([m({type:Boolean})],g.prototype,"remember",2),f([m({type:Boolean,attribute:"hide-readings",reflect:!0})],g.prototype,"hideReadings",2),f([m({type:String,attribute:"submit-label"})],g.prototype,"submitLabel",2),f([m({type:String})],g.prototype,"attribution",2),f([P()],g.prototype,"loading",2),f([P()],g.prototype,"error",2),f([P()],g.prototype,"selfFetched",2),f([P()],g.prototype,"editing",2),f([P()],g.prototype,"sticky",2);function tt(o){let e=Math.floor(o),t=Math.round((o-e)*60);return t===60&&(t=0,e+=1),{degree:e,minute:t}}var nt=/^\d{4}-\d{2}-\d{2}$/,Pt=/^\d{2}:\d{2}(:\d{2})?$/,Mt=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,rt=new Map;function we(o){if(!o)return["en"];let e=rt.get(o);if(e)return[e,"en"];let t="en";try{t=Intl.getCanonicalLocales(o)[0]??"en"}catch{t="en"}return rt.set(o,t),[t,"en"]}function ot(o){let e=Pt.test(o)?`1970-01-01T${o}`:Mt.test(o)?o:null;return e?{d:new Date(`${e}Z`),timeZone:"UTC"}:{d:new Date(o)}}function se(o,e){if(typeof e!="string"||e.length===0)return"";let{d:t,timeZone:r}=ot(nt.test(e)?`${e}T00:00:00`:e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(we(o),{month:"short",day:"numeric",timeZone:r})}function st(o,e){if(typeof e!="string"||e.length===0)return"";let{d:t,timeZone:r}=ot(nt.test(e)?`${e}T00:00:00`:e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(we(o),{weekday:"short",day:"numeric",timeZone:r})}function it(o,e,t){return typeof e!="number"||!Number.isFinite(e)||typeof t!="number"||!Number.isInteger(t)||t<1||t>12?"":new Date(Date.UTC(e,t-1,1,12)).toLocaleDateString(we(o),{month:"long",year:"numeric",timeZone:"UTC"})}var Nt="Localized";function ie(o,e,t){let r=o,n=r?.[`${e}${Nt}`];if(typeof n=="string"&&n!=="")return n;if(t!==void 0)return t;let s=r?.[e];return typeof s=="string"?s:""}var Ut="12:00 UTC",T=class extends g{constructor(){super(...arguments);this.heading="Ephemeris"}renderEmpty(){return l`<div class="roxy-empty" role="status">${this.t("No ephemeris data")}</div>`}renderData(t){if(!t.days?.length)return this.renderEmpty();let r=this.toViewModel(t),n=this.effectiveLang();return l`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t(this.heading)}</h2><p class="month"><span>${it(n,r.year,r.month)}</span><span class="basis">${Ut}</span></p></header><section part="section changes"><h3>${this.t("Sign changes and retrograde periods")}</h3><div class="tracks" role="list">${r.bodies.map(s=>this.renderTrack(s))}</div></section><section part="section daily"><h3>${this.t("Daily positions")}</h3><div class="scroll" part="table" aria-label="${this.t("Daily positions")}" tabindex="0">${this.renderGrid(r)}</div></section></div>`}renderTrack(t){let r=be(t.name);return l`<div class="track" role="listitem"><span class="body-name">${r?l`<span class="glyph" aria-hidden="true">${r}</span>`:p}${t.label} </span><span class="span">${this.renderPosition(t.first)}<span class="arrow" aria-hidden="true">→</span>${this.renderPosition(t.last)} </span>${t.ingresses.length||t.retrogrades.length?l`<span class="chips">${t.ingresses.map(n=>this.renderIngressChip(n))} ${t.retrogrades.map(n=>this.renderRetrogradeChip(n))}</span>`:p}</div>`}renderPosition(t){let{degree:r,minute:n}=tt(t.degreeInSign),s=ve(t.sign),i=ie(t,"sign");return l`<span class="pos" title="${i}">${r}${s?l`<span class="sg" aria-hidden="true">${s}</span>`:l`<span class="sg">${i}</span>`}${String(n).padStart(2,"0")}</span>`}renderIngressChip(t){let r=ve(t.sign),n=se(this.effectiveLang(),t.date);return l`<span class="chip chip--ingress" aria-label="${this.t("Enters {{sign}} on {{date}}",{sign:t.signLabel,date:n})}"><span aria-hidden="true">→</span>${r?l`<span aria-hidden="true">${r}</span>`:p}${t.signLabel} <span class="chip-date">${n}</span></span>`}renderRetrogradeChip(t){let r=this.effectiveLang(),n=se(r,t.start),s=se(r,t.end),i=n===s?n:`${n} - ${s}`;return l`<span class="chip chip--retro"><span aria-hidden="true">℞</span>${this.t("Retrograde {{range}}",{range:i})}</span>`}renderGrid(t){let r=this.effectiveLang();return l`<table><caption class="roxy-sr-only">${this.t("Every body with its position on each day of the month, as a zodiac sign and a degree.")}</caption><thead><tr><th scope="col" class="day">${this.t("Date")}</th>${t.bodies.map(n=>{let s=be(n.name);return l`<th scope="col" title="${n.label}">${s?l`<span class="glyph" aria-hidden="true">${s}</span><span class="roxy-sr-only">${n.label}</span>`:n.label}</th>`})}</tr></thead><tbody>${t.rows.map(n=>l`<tr><th scope="row" class="day">${st(r,n.date)}</th>${n.cells.map((s,i)=>this.renderCell(s,t.bodies[i],n.date))}</tr>`)}</tbody></table>`}renderCell(t,r,n){if(!t)return l`<td>—</td>`;let s=[t.isRetrograde?"retro":"",r?.ingressDates.has(n)?"ingress":"",r?.stationDates.has(n)?"station":""].filter(Boolean).join(" ");return l`<td class="${s}">${this.renderPosition(t)}${t.isRetrograde?l`<span class="retro-mark" aria-label="${this.t("retrograde")}">℞</span>`:p}</td>`}toViewModel(t){let r=[],n=new Map;for(let d of t.days)for(let a of d.positions){let c=n.get(a.planet);c||(c=[],n.set(a.planet,c),r.push(a.planet)),c.push({date:d.date,p:a})}let s=[];for(let d of r){let a=n.get(d),c=a?.[0],h=a?.[a.length-1];if(!a||!c||!h)continue;let u=[],y=[],b=new Set,A=new Set;for(let q=0;q<a.length;q++){let x=a[q],M=a[q-1];if(!x||(M&&x.p.sign!==M.p.sign&&(u.push({date:x.date,sign:x.p.sign,signLabel:ie(x.p,"sign")}),b.add(x.date)),M&&x.p.isRetrograde!==M.p.isRetrograde&&A.add(x.date),!x.p.isRetrograde))continue;let $e=y[y.length-1];$e&&M?.p.isRetrograde?$e.end=x.date:y.push({start:x.date,end:x.date})}s.push({name:d,label:ie(h.p,"planet"),first:c.p,last:h.p,ingresses:u,retrogrades:y,ingressDates:b,stationDates:A})}let i=t.days.map(d=>{let a=new Map(d.positions.map(c=>[c.planet,c]));return{date:d.date,cells:s.map(c=>a.get(c.name))}});return{year:t.year,month:t.month,bodies:s,rows:i}}};T.styles=[te,v`.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}header{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.month{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);gap:var(--roxy-space-xs,.25rem) var(--roxy-space-sm,.5rem);flex-wrap:wrap;margin:0;display:flex}.basis{font-variant-numeric:tabular-nums}.wrap>*{min-width:0}h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em;color:var(--roxy-muted,#71717a)}.tracks{background:var(--roxy-border,#e4e4e7);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);grid-template-columns:minmax(0,1fr);gap:1px;display:grid;overflow:hidden}.track{align-items:center;gap:var(--roxy-space-xs,.25rem) var(--roxy-space-sm,.5rem);padding:6px var(--roxy-space-sm,.5rem);background:var(--roxy-surface,#fff);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;display:flex}.body-name{align-items:baseline;gap:.35rem;min-width:8.5rem;font-weight:500;display:inline-flex}.body-name .glyph{color:var(--roxy-accent-ink,#b45309);font-size:1.1em}.span{color:var(--roxy-secondary,#475569);font-variant-numeric:tabular-nums;white-space:nowrap;align-items:baseline;gap:.3rem;display:inline-flex}.arrow{color:var(--roxy-muted,#71717a)}.chip-date{color:var(--roxy-secondary,#475569)}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;margin-left:auto;display:flex}.chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);white-space:nowrap;align-items:baseline;gap:.25rem;padding:1px 8px;display:inline-flex}.chip--ingress{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a)}.chip--retro{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent);color:var(--roxy-danger-fg,#991b1b);font-weight:var(--roxy-weight-bold,600)}.scroll:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b);outline-offset:2px}.scroll{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table{border-collapse:collapse;font-size:var(--roxy-text-xs,.75rem)}th,td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap;padding:4px 8px}thead th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}thead th .glyph{color:var(--roxy-fg,#0a0a0a);font-size:1.15em}th.day{z-index:1;background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);font-variant-numeric:tabular-nums;border-right:1px solid var(--roxy-border,#e4e4e7);font-weight:500;position:sticky;left:0}thead th.day{z-index:2;background:var(--roxy-surface,#fff)}td{font-variant-numeric:tabular-nums}.sg{color:var(--roxy-secondary,#475569);font-variant-numeric:normal;margin:0 .15em}.retro-mark{font-weight:var(--roxy-weight-bold,600);margin-left:.25em}td.retro{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent);color:var(--roxy-danger-fg,#991b1b)}td.retro .sg{color:inherit}td.ingress{box-shadow:inset 3px 0 var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}td.station{border-top:2px solid var(--roxy-danger-fg,#991b1b);font-weight:var(--roxy-weight-bold,600)}`],f([m({type:String})],T.prototype,"heading",2),T=f([Ke("roxy-ephemeris-table")],T);F();return pt(Ot);})();
264
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ne=/'/g,Ue=/"/g,He=/^(?:script|style|textarea|title)$/i,ye=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),l=ye(1),Bt=ye(2),Ft=ye(3),E=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),Oe=new WeakMap,k=R.createTreeWalker(R,129);function ze(o,e){if(!me(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Le!==void 0?Le.createHTML(e):e}var $t=(o,e)=>{let t=o.length-1,r=[],n,s=e===2?"<svg>":e===3?"<math>":"",i=D;for(let d=0;d<t;d++){let a=o[d],c,h,u=-1,y=0;for(;y<a.length&&(i.lastIndex=y,h=i.exec(a),h!==null);)y=i.lastIndex,i===D?h[1]==="!--"?i=Pe:h[1]!==void 0?i=Me:h[2]!==void 0?(He.test(h[2])&&(n=RegExp("</"+h[2],"g")),i=_):h[3]!==void 0&&(i=_):i===_?h[0]===">"?(i=n??D,u=-1):h[1]===void 0?u=-2:(u=i.lastIndex-h[2].length,c=h[1],i=h[3]===void 0?_:h[3]==='"'?Ue:Ne):i===Ue||i===Ne?i=_:i===Pe||i===Me?i=D:(i=_,n=void 0);let b=i===_&&o[d+1].startsWith("/>")?" ":"";s+=i===D?a+vt:u>=0?(r.push(c),a.slice(0,u)+De+a.slice(u)+$+b):a+$+(u===-2?d:b)}return[ze(o,s+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},z=class o{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,i=0,d=e.length-1,a=this.parts,[c,h]=$t(e,t);if(this.el=o.createElement(c,r),k.currentNode=this.el.content,t===2||t===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=k.nextNode())!==null&&a.length<d;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(De)){let y=h[i++],b=n.getAttribute(u).split($),A=/([.?@])?(.*)/.exec(y);a.push({type:1,index:s,name:A[2],strings:b,ctor:A[1]==="."?pe:A[1]==="?"?ue:A[1]==="@"?he:L}),n.removeAttribute(u)}else u.startsWith($)&&(a.push({type:6,index:s}),n.removeAttribute(u));if(He.test(n.tagName)){let u=n.textContent.split($),y=u.length-1;if(y>0){n.textContent=J?J.emptyScript:"";for(let b=0;b<y;b++)n.append(u[b],I()),k.nextNode(),a.push({type:2,index:++s});n.append(u[y],I())}}}else if(n.nodeType===8)if(n.data===Ie)a.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf($,u+1))!==-1;)a.push({type:7,index:s}),u+=$.length-1}s++}}static createElement(e,t){let r=R.createElement("template");return r.innerHTML=e,r}};function C(o,e,t=o,r){if(e===E)return e;let n=r!==void 0?t._$Co?.[r]:t._$Cl,s=H(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(o),n._$AT(o,t,r)),r!==void 0?(t._$Co??=[])[r]=n:t._$Cl=n),n!==void 0&&(e=C(o,n._$AS(o,e.values),n,r)),e}var le=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??R).importNode(t,!0);k.currentNode=n;let s=k.nextNode(),i=0,d=0,a=r[0];for(;a!==void 0;){if(i===a.index){let c;a.type===2?c=new j(s,s.nextSibling,this,e):a.type===1?c=new a.ctor(s,a.name,a.strings,this,e):a.type===6&&(c=new fe(s,this,e)),this._$AV.push(c),a=r[++d]}i!==a?.index&&(s=k.nextNode(),i++)}return k.currentNode=R,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++}},j=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=C(this,e,t),H(e)?e===p||e==null||e===""?(this._$AH!==p&&this._$AR(),this._$AH=p):e!==this._$AH&&e!==E&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wt(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!==p&&H(this._$AH)?this._$AA.nextSibling.data=e:this.T(R.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=z.createElement(ze(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let s=new le(n,this),i=s.u(this.options);s.p(t),this.T(i),this._$AH=s}}_$AC(e){let t=Oe.get(e.strings);return t===void 0&&Oe.set(e.strings,t=new z(e)),t}k(e){me(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let s of e)n===t.length?t.push(r=new o(this.O(I()),this.O(I()),this,this.options)):r=t[n],r._$AI(s),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=Ce(e).nextSibling;Ce(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},L=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(e,t=this,r,n){let s=this.strings,i=!1;if(s===void 0)e=C(this,e,t,0),i=!H(e)||e!==this._$AH&&e!==E,i&&(this._$AH=e);else{let d=e,a,c;for(e=s[0],a=0;a<s.length-1;a++)c=C(this,d[r+a],t,a),c===E&&(c=this._$AH[a]),i||=!H(c)||c!==this._$AH[a],c===p?e=p:e!==p&&(e+=(c??"")+s[a+1]),this._$AH[a]=c}i&&!n&&this.j(e)}j(e){e===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},pe=class extends L{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===p?void 0:e}},ue=class extends L{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==p)}},he=class extends L{constructor(e,t,r,n,s){super(e,t,r,n,s),this.type=5}_$AI(e,t=this){if((e=C(this,e,t,0)??p)===E)return;let r=this._$AH,n=e===p&&r!==p||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==p&&(r===p||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},fe=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){C(this,e)}};var St=ge.litHtmlPolyfillSupport;St?.(z,j),(ge.litHtmlVersions??=[]).push("3.3.3");var je=(o,e,t)=>{let r=t?.renderBefore??e,n=r._$litPart$;if(n===void 0){let s=t?.renderBefore??null;r._$litPart$=n=new j(e.insertBefore(I(),s),s,void 0,t??{})}return n._$AI(o),n};var xe=globalThis,S=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=je(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return E}};S._$litElement$=!0,S.finalized=!0,xe.litElementHydrateSupport?.({LitElement:S});var At=xe.litElementPolyfillSupport;At?.({LitElement:S});(xe.litElementVersions??=[]).push("4.2.2");var Ke=o=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,e)}):customElements.define(o,e)};var _t={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:Z},kt=(o=_t,e,t)=>{let{kind:r,metadata:n}=t,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),s.set(t.name,o),r==="accessor"){let{name:i}=t;return{set(d){let a=e.get.call(this);e.set.call(this,d),this.requestUpdate(i,a,o,!0,d)},init(d){return d!==void 0&&this.C(i,void 0,o,d),d}}}if(r==="setter"){let{name:i}=t;return function(d){let a=this[i];e.call(this,d),this.requestUpdate(i,a,o,!0,d)}}throw Error("Unsupported decorator location: "+r)};function m(o){return(e,t)=>typeof t=="object"?kt(o,e,t):((r,n,s)=>{let i=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(n,s):void 0})(o,e,t)}function P(o){return m({...o,state:!0,attribute:!1})}function Q(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}var qe=(o,e)=>e?o[Q(e)]:void 0,Rt={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"},be=o=>qe(Rt,o);var Et={aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"},ve=o=>qe(Et,o);var K=o=>o??p;function Ge(o){if(o.lang)return o.lang;if(typeof document>"u")return;let e=o.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}var Be="__ROXY_UI_I18N__";function Ve(){let o=globalThis,e=o[Be];if(e)return e;let t={catalogs:{},listeners:new Set};return o[Be]=t,t}function Fe(o,e){return e?o.replace(/\{\{(\w+)\}\}/g,(t,r)=>r in e?String(e[r]??""):t):o}function Ye(o,e,t){if(!o)return Fe(e,t);let{catalogs:r}=Ve(),n=o.toLowerCase(),s=r[n]??r[n.split("-")[0]];return Fe(s?.[Q(e)]??e,t)}function We(o){let{listeners:e}=Ve();return e.add(o),()=>{e.delete(o)}}var ee=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=We(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var te=v`: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 re="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function Ze(o){return!!o&&!o.startsWith("pk_")}function Je(o,e={}){e.warn&&console.warn(re),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:re},bubbles:!0,composed:!0}))}var Tt="https://roxyapi.com/api/v2",ne=class{constructor(e){this.baseUrl=Tt;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[s,i]of Object.entries(e.query??{}))i!=null&&r.searchParams.set(s,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 Ze(this.publishableKey)?(this.host.error=re,Je(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 Xe(o,e,t,r=[]){let n={...t},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(c,h)=>{let u=n[h];return delete n[h],encodeURIComponent(String(u??""))}),i=new Set(r),d={},a={};for(let[c,h]of Object.entries(n))h===void 0||h===""||(e==="GET"||i.has(c)?d[c]=h:a[c]=h);return{path:s,method:e,query:d,body:e==="POST"?a:void 0}}function Qe(){return l`<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 Zr=v`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 en=v`.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 et(o,e,t="Reading"){let r=o.filter(n=>!!n.body);return r.length===0?p:l`<section class="block" part="section readings"><h3>${t}</h3>${r.map((n,s)=>l`<details class="interp-card" part="reading" name="${e}" ?open="${s===0}"><summary><span class="interp-lead">${n.label}</span> ${Qe()} ${n.aside?l`<span class="interp-aside"><small>${n.aside}</small></span>`:p}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??p}</div></details>`)}</section>`}var Ct="roxy-data";function Lt(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var oe=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(Lt(e)&&e.classList.contains(Ct))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var g=class extends S{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(Xe(this.endpoint,this.method,r.values,r.queryKeys??[]))};new oe(this),new ee(this),this.fetcher=new ne(this)}static{this.styles=[te]}t(t,r){return Ye(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()?l`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderInterpretation(t,r,n){return this.hideReadings?p:et(t,r,n??this.t("Reading"))}renderResult(t){let r=this.sticky?l`${this.renderForm()}${this.renderData(t)}`:l`<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()?l`${r}${this.renderAttribution()}`:r}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return l`<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 l`<roxy-endpoint-form part="form" data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${K(this.specUrl)}" publishable-key="${K(this.publishableKey)}" submit-label="${K(this.submitLabel)}" lang="${K(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}effectiveLang(){return Ge(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 l`<div class="roxy-empty" role="status">${this.t("No data")}</div>`}renderLoading(){return l`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let r=l`<div class="roxy-error" role="alert" part="error">${t}</div>`;return this.endpoint?l`${r}${this.renderForm()}`:r}};f([m({attribute:!1})],g.prototype,"data",2),f([m({type:String,attribute:"data-endpoint"})],g.prototype,"endpoint",2),f([m({type:String})],g.prototype,"method",2),f([m({type:String,attribute:"publishable-key"})],g.prototype,"publishableKey",2),f([m({type:String,attribute:"base-url"})],g.prototype,"baseUrl",2),f([m({type:String,attribute:"spec-url"})],g.prototype,"specUrl",2),f([m({type:String,attribute:"submit-url"})],g.prototype,"submitUrl",2),f([m({type:Boolean})],g.prototype,"remember",2),f([m({type:Boolean,attribute:"hide-readings",reflect:!0})],g.prototype,"hideReadings",2),f([m({type:String,attribute:"submit-label"})],g.prototype,"submitLabel",2),f([m({type:String})],g.prototype,"attribution",2),f([P()],g.prototype,"loading",2),f([P()],g.prototype,"error",2),f([P()],g.prototype,"selfFetched",2),f([P()],g.prototype,"editing",2),f([P()],g.prototype,"sticky",2);function tt(o){let e=Math.floor(o),t=Math.round((o-e)*60);return t===60&&(t=0,e+=1),{degree:e,minute:t}}var nt=/^\d{4}-\d{2}-\d{2}$/,Pt=/^\d{2}:\d{2}(:\d{2})?$/,Mt=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,rt=new Map;function we(o){if(!o)return["en"];let e=rt.get(o);if(e)return[e,"en"];let t="en";try{t=Intl.getCanonicalLocales(o)[0]??"en"}catch{t="en"}return rt.set(o,t),[t,"en"]}function ot(o){let e=Pt.test(o)?`1970-01-01T${o}`:Mt.test(o)?o:null;return e?{d:new Date(`${e}Z`),timeZone:"UTC"}:{d:new Date(o)}}function se(o,e){if(typeof e!="string"||e.length===0)return"";let{d:t,timeZone:r}=ot(nt.test(e)?`${e}T00:00:00`:e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(we(o),{month:"short",day:"numeric",timeZone:r})}function st(o,e){if(typeof e!="string"||e.length===0)return"";let{d:t,timeZone:r}=ot(nt.test(e)?`${e}T00:00:00`:e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(we(o),{weekday:"short",day:"numeric",timeZone:r})}function it(o,e,t){return typeof e!="number"||!Number.isFinite(e)||typeof t!="number"||!Number.isInteger(t)||t<1||t>12?"":new Date(Date.UTC(e,t-1,1,12)).toLocaleDateString(we(o),{month:"long",year:"numeric",timeZone:"UTC"})}var Nt="Localized";function ie(o,e,t){let r=o,n=r?.[`${e}${Nt}`];if(typeof n=="string"&&n!=="")return n;if(t!==void 0)return t;let s=r?.[e];return typeof s=="string"?s:""}var Ut="12:00 UTC",T=class extends g{constructor(){super(...arguments);this.heading="Ephemeris"}renderEmpty(){return l`<div class="roxy-empty" role="status">${this.t("No ephemeris data")}</div>`}renderData(t){if(!t.days?.length)return this.renderEmpty();let r=this.toViewModel(t),n=this.effectiveLang();return l`<div class="wrap" part="card"><header part="header"><h2 class="title">${this.t(this.heading)}</h2><p class="month"><span>${it(n,r.year,r.month)}</span><span class="basis">${Ut}</span></p></header><section part="section changes"><h3>${this.t("Sign changes and retrograde periods")}</h3><div class="tracks" role="list">${r.bodies.map(s=>this.renderTrack(s))}</div></section><section part="section daily"><h3>${this.t("Daily positions")}</h3><div class="scroll" part="table" aria-label="${this.t("Daily positions")}" tabindex="0">${this.renderGrid(r)}</div></section></div>`}renderTrack(t){let r=be(t.name);return l`<div class="track" role="listitem"><span class="body-name">${r?l`<span class="glyph" aria-hidden="true">${r}</span>`:p}${t.label} </span><span class="span">${this.renderPosition(t.first)}<span class="arrow" aria-hidden="true">→</span>${this.renderPosition(t.last)} </span>${t.ingresses.length||t.retrogrades.length?l`<span class="chips">${t.ingresses.map(n=>this.renderIngressChip(n))} ${t.retrogrades.map(n=>this.renderRetrogradeChip(n))}</span>`:p}</div>`}renderPosition(t){let{degree:r,minute:n}=tt(t.degreeInSign),s=ve(t.sign),i=ie(t,"sign");return l`<span class="pos" title="${i}">${r}${s?l`<span class="sg" aria-hidden="true">${s}</span>`:l`<span class="sg">${i}</span>`}${String(n).padStart(2,"0")}</span>`}renderIngressChip(t){let r=ve(t.sign),n=se(this.effectiveLang(),t.date);return l`<span class="chip chip--ingress" aria-label="${this.t("Enters {{sign}} on {{date}}",{sign:t.signLabel,date:n})}"><span aria-hidden="true">→</span>${r?l`<span aria-hidden="true">${r}</span>`:p}${t.signLabel} <span class="chip-date">${n}</span></span>`}renderRetrogradeChip(t){let r=this.effectiveLang(),n=se(r,t.start),s=se(r,t.end),i=n===s?n:`${n} - ${s}`;return l`<span class="chip chip--retro"><span aria-hidden="true">℞</span>${this.t("Retrograde {{range}}",{range:i})}</span>`}renderGrid(t){let r=this.effectiveLang();return l`<table><caption class="roxy-sr-only">${this.t("Every body with its position on each day of the month, as a zodiac sign and a degree.")}</caption><thead><tr><th scope="col" class="day">${this.t("Date")}</th>${t.bodies.map(n=>{let s=be(n.name);return l`<th scope="col" title="${n.label}">${s?l`<span class="glyph" aria-hidden="true">${s}</span><span class="roxy-sr-only">${n.label}</span>`:n.label}</th>`})}</tr></thead><tbody>${t.rows.map(n=>l`<tr><th scope="row" class="day">${st(r,n.date)}</th>${n.cells.map((s,i)=>this.renderCell(s,t.bodies[i],n.date))}</tr>`)}</tbody></table>`}renderCell(t,r,n){if(!t)return l`<td>—</td>`;let s=[t.isRetrograde?"retro":"",r?.ingressDates.has(n)?"ingress":"",r?.stationDates.has(n)?"station":""].filter(Boolean).join(" ");return l`<td class="${s}">${this.renderPosition(t)}${t.isRetrograde?l`<span class="retro-mark" aria-label="${this.t("retrograde")}">℞</span>`:p}</td>`}toViewModel(t){let r=[],n=new Map;for(let d of t.days)for(let a of d.positions){let c=n.get(a.planet);c||(c=[],n.set(a.planet,c),r.push(a.planet)),c.push({date:d.date,p:a})}let s=[];for(let d of r){let a=n.get(d),c=a?.[0],h=a?.[a.length-1];if(!a||!c||!h)continue;let u=[],y=[],b=new Set,A=new Set;for(let q=0;q<a.length;q++){let x=a[q],M=a[q-1];if(!x||(M&&x.p.sign!==M.p.sign&&(u.push({date:x.date,sign:x.p.sign,signLabel:ie(x.p,"sign")}),b.add(x.date)),M&&x.p.isRetrograde!==M.p.isRetrograde&&A.add(x.date),!x.p.isRetrograde))continue;let $e=y[y.length-1];$e&&M?.p.isRetrograde?$e.end=x.date:y.push({start:x.date,end:x.date})}s.push({name:d,label:ie(h.p,"planet"),first:c.p,last:h.p,ingresses:u,retrogrades:y,ingressDates:b,stationDates:A})}let i=t.days.map(d=>{let a=new Map(d.positions.map(c=>[c.planet,c]));return{date:d.date,cells:s.map(c=>a.get(c.name))}});return{year:t.year,month:t.month,bodies:s,rows:i}}};T.styles=[te,v`:host{overflow-x:clip}.wrap{background:var(--roxy-surface,#fff);width:100%;color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}header{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-primary,#0f172a);margin:0}.month{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-sm,.875rem);gap:var(--roxy-space-xs,.25rem) var(--roxy-space-sm,.5rem);flex-wrap:wrap;margin:0;display:flex}.basis{font-variant-numeric:tabular-nums}.wrap>*{min-width:0}h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em;color:var(--roxy-muted,#71717a)}.tracks{background:var(--roxy-border,#e4e4e7);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);grid-template-columns:minmax(0,1fr);gap:1px;display:grid;overflow:hidden}.track{align-items:center;gap:var(--roxy-space-xs,.25rem) var(--roxy-space-sm,.5rem);padding:6px var(--roxy-space-sm,.5rem);background:var(--roxy-surface,#fff);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;display:flex}.body-name{align-items:baseline;gap:.35rem;min-width:8.5rem;font-weight:500;display:inline-flex}.body-name .glyph{color:var(--roxy-accent-ink,#b45309);font-size:1.1em}.span{color:var(--roxy-secondary,#475569);font-variant-numeric:tabular-nums;white-space:nowrap;align-items:baseline;gap:.3rem;display:inline-flex}.arrow{color:var(--roxy-muted,#71717a)}.chip-date{color:var(--roxy-secondary,#475569)}.chips{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;margin-left:auto;display:flex}.chip{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);white-space:nowrap;align-items:baseline;gap:.25rem;padding:1px 8px;display:inline-flex}.chip--ingress{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a)}.chip--retro{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent);color:var(--roxy-danger-fg,#991b1b);font-weight:var(--roxy-weight-bold,600)}.scroll:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b);outline-offset:2px}.scroll{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);-webkit-overflow-scrolling:touch;min-width:0;overflow-x:auto}table{border-collapse:collapse;font-size:var(--roxy-text-xs,.75rem)}th,td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap;padding:4px 8px}thead th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 20%, transparent)}thead th .glyph{color:var(--roxy-fg,#0a0a0a);font-size:1.15em}th.day{z-index:1;background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);font-variant-numeric:tabular-nums;border-right:1px solid var(--roxy-border,#e4e4e7);font-weight:500;position:sticky;left:0}thead th.day{z-index:2;background:var(--roxy-surface,#fff)}td{font-variant-numeric:tabular-nums}.sg{color:var(--roxy-secondary,#475569);font-variant-numeric:normal;margin:0 .15em}.retro-mark{font-weight:var(--roxy-weight-bold,600);margin-left:.25em}td.retro{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 10%, transparent);color:var(--roxy-danger-fg,#991b1b)}td.retro .sg{color:inherit}td.ingress{box-shadow:inset 3px 0 var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}td.station{border-top:2px solid var(--roxy-danger-fg,#991b1b);font-weight:var(--roxy-weight-bold,600)}`],f([m({type:String})],T.prototype,"heading",2),T=f([Ke("roxy-ephemeris-table")],T);F();return pt(Ot);})();
265
265
  /*! Bundled license information:
266
266
 
267
267
  @lit/reactive-element/css-tag.js: