@roxyapi/ui 1.6.2 → 1.8.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.
- package/components-catalog.json +1 -1
- package/dist/cdn/components/almanac-day.js +2 -2
- package/dist/cdn/components/angel-number-card.js +3 -3
- package/dist/cdn/components/angel-number-lookup.js +2 -2
- package/dist/cdn/components/arudha-padas.js +2 -2
- package/dist/cdn/components/ashtakavarga-grid.js +1 -1
- package/dist/cdn/components/aspects-table.js +2 -2
- package/dist/cdn/components/astrocartography-map.js +1 -1
- package/dist/cdn/components/bazi-chart.js +2 -2
- package/dist/cdn/components/bhav-chalit-table.js +2 -2
- package/dist/cdn/components/bhava-bala-table.js +3 -3
- package/dist/cdn/components/biorhythm-chart.js +2 -2
- package/dist/cdn/components/bodygraph.js +3 -3
- package/dist/cdn/components/chara-karakas.js +2 -2
- package/dist/cdn/components/choghadiya-grid.js +1 -1
- package/dist/cdn/components/compatibility-card.js +2 -2
- package/dist/cdn/components/compound-number.js +2 -2
- package/dist/cdn/components/crystal-card.js +1 -1
- package/dist/cdn/components/crystal-grid.js +1 -1
- package/dist/cdn/components/dasha-timeline.js +2 -2
- package/dist/cdn/components/data.js +1 -1
- package/dist/cdn/components/divisional-chart.js +1 -1
- package/dist/cdn/components/dosha-card.js +2 -2
- package/dist/cdn/components/dosha-constitution.js +2 -2
- package/dist/cdn/components/dream-card.js +1 -1
- package/dist/cdn/components/dream-search.js +2 -2
- package/dist/cdn/components/endpoint-form.js +2 -2
- package/dist/cdn/components/ephemeris-table.js +1 -1
- package/dist/cdn/components/fixed-stars.js +1 -1
- package/dist/cdn/components/flying-star-chart.js +2 -2
- package/dist/cdn/components/forecast-digest.js +1 -1
- package/dist/cdn/components/forecast-timeline.js +1 -1
- package/dist/cdn/components/gematria.js +1 -1
- package/dist/cdn/components/gochara-table.js +2 -2
- package/dist/cdn/components/guna-milan.js +3 -3
- package/dist/cdn/components/hd-connection.js +1 -1
- package/dist/cdn/components/hd-penta.js +15 -15
- package/dist/cdn/components/hd-type-card.js +1 -1
- package/dist/cdn/components/hd-variables.js +1 -1
- package/dist/cdn/components/heliacal-table.js +2 -2
- package/dist/cdn/components/hexagram.js +1 -1
- package/dist/cdn/components/hora-table.js +1 -1
- package/dist/cdn/components/horoscope-card.js +3 -3
- package/dist/cdn/components/kp-chart.js +3 -3
- package/dist/cdn/components/kp-finance-card.js +2 -2
- package/dist/cdn/components/kp-planets-table.js +3 -3
- package/dist/cdn/components/kp-ruling-planets.js +1 -1
- package/dist/cdn/components/kua-card.js +3 -3
- package/dist/cdn/components/local-space-compass.js +1 -1
- package/dist/cdn/components/location-search.js +1 -1
- package/dist/cdn/components/luck-pillars.js +3 -3
- package/dist/cdn/components/mayan-day-sign.js +1 -1
- package/dist/cdn/components/moon-phase.js +2 -2
- package/dist/cdn/components/nakshatra-card.js +1 -1
- package/dist/cdn/components/natal-chart.js +17 -17
- package/dist/cdn/components/numerology-card.js +2 -2
- package/dist/cdn/components/panchang-table.js +2 -2
- package/dist/cdn/components/positions-table.js +1 -1
- package/dist/cdn/components/profection-card.js +2 -2
- package/dist/cdn/components/reference-card.js +1 -1
- package/dist/cdn/components/relocation-wheel.js +17 -17
- package/dist/cdn/components/report.js +1 -1
- package/dist/cdn/components/shadbala-table.js +1 -1
- package/dist/cdn/components/synastry-chart.js +1 -1
- package/dist/cdn/components/tarot-card.js +2 -2
- package/dist/cdn/components/tarot-catalog.js +2 -2
- package/dist/cdn/components/tarot-spread.js +3 -3
- package/dist/cdn/components/transit-wheel.js +1 -1
- package/dist/cdn/components/transits-table.js +2 -2
- package/dist/cdn/components/upagraha-table.js +3 -3
- package/dist/cdn/components/vastu-mandala.js +2 -2
- package/dist/cdn/components/vedic-aspects.js +2 -2
- package/dist/cdn/components/vedic-daily.js +2 -2
- package/dist/cdn/components/vedic-kundli.js +1 -1
- package/dist/cdn/components/vedic-planets-table.js +1 -1
- package/dist/cdn/components/western-planets-table.js +1 -1
- package/dist/cdn/components/yoga-list.js +2 -2
- package/dist/cdn/components/zodiac-card.js +2 -2
- package/dist/cdn/locales/de.js +1 -1
- package/dist/cdn/locales/es.js +1 -1
- package/dist/cdn/locales/fr.js +1 -1
- package/dist/cdn/locales/hi.js +1 -1
- package/dist/cdn/locales/pt.js +1 -1
- package/dist/cdn/locales/ru.js +1 -1
- package/dist/cdn/locales/tr.js +1 -1
- package/dist/cdn/roxy-ui.js +85 -85
- package/dist/charts.cjs +13 -13
- package/dist/charts.js +10 -10
- package/dist/components/almanac-day.js +1 -1
- package/dist/components/angel-number-card.js +1 -1
- package/dist/components/angel-number-lookup.js +1 -1
- package/dist/components/arudha-padas.js +1 -1
- package/dist/components/ashtakavarga-grid.js +1 -1
- package/dist/components/aspects-table.js +1 -1
- package/dist/components/astrocartography-map.js +2 -2
- package/dist/components/bazi-chart.js +1 -1
- package/dist/components/bhav-chalit-table.js +1 -1
- package/dist/components/bhava-bala-table.js +1 -1
- package/dist/components/biorhythm-chart.js +1 -1
- package/dist/components/bodygraph.js +1 -1
- package/dist/components/chara-karakas.js +1 -1
- package/dist/components/choghadiya-grid.js +1 -1
- package/dist/components/compatibility-card.js +1 -1
- package/dist/components/compound-number.js +1 -1
- package/dist/components/crystal-card.js +1 -1
- package/dist/components/crystal-grid.js +1 -1
- package/dist/components/dasha-timeline.js +1 -1
- package/dist/components/data.js +1 -1
- package/dist/components/divisional-chart.js +1 -1
- package/dist/components/dosha-card.js +1 -1
- package/dist/components/dosha-constitution.js +1 -1
- package/dist/components/dream-card.js +1 -1
- package/dist/components/dream-search.js +1 -1
- package/dist/components/endpoint-form.js +1 -1
- package/dist/components/ephemeris-table.js +1 -1
- package/dist/components/fixed-stars.js +1 -1
- package/dist/components/flying-star-chart.js +1 -1
- package/dist/components/forecast-digest.js +1 -1
- package/dist/components/forecast-timeline.js +1 -1
- package/dist/components/gematria.js +1 -1
- package/dist/components/gochara-table.js +1 -1
- package/dist/components/guna-milan.js +1 -1
- package/dist/components/hd-connection.js +1 -1
- package/dist/components/hd-penta.js +1 -1
- package/dist/components/hd-type-card.js +1 -1
- package/dist/components/hd-variables.js +1 -1
- package/dist/components/heliacal-table.js +1 -1
- package/dist/components/hexagram.js +1 -1
- package/dist/components/hora-table.js +1 -1
- package/dist/components/horoscope-card.d.ts +24 -8
- package/dist/components/horoscope-card.js +1 -1
- package/dist/components/kp-chart.js +1 -1
- package/dist/components/kp-finance-card.js +1 -1
- package/dist/components/kp-planets-table.js +1 -1
- package/dist/components/kp-ruling-planets.js +1 -1
- package/dist/components/kua-card.js +1 -1
- package/dist/components/local-space-compass.js +2 -2
- package/dist/components/location-search.js +1 -1
- package/dist/components/luck-pillars.js +1 -1
- package/dist/components/mayan-day-sign.js +1 -1
- package/dist/components/moon-phase.js +1 -1
- package/dist/components/nakshatra-card.js +1 -1
- package/dist/components/natal-chart.d.ts +5 -0
- package/dist/components/natal-chart.js +14 -14
- package/dist/components/numerology-card.js +1 -1
- package/dist/components/panchang-table.js +1 -1
- package/dist/components/positions-table.js +1 -1
- package/dist/components/profection-card.js +1 -1
- package/dist/components/reference-card.js +1 -1
- package/dist/components/relocation-wheel.js +15 -15
- package/dist/components/report.js +1 -1
- package/dist/components/shadbala-table.js +1 -1
- package/dist/components/synastry-chart.js +1 -1
- package/dist/components/tarot-card.js +1 -1
- package/dist/components/tarot-catalog.js +1 -1
- package/dist/components/tarot-spread.d.ts +2 -0
- package/dist/components/tarot-spread.js +1 -1
- package/dist/components/transit-wheel.js +8 -8
- package/dist/components/transits-table.js +1 -1
- package/dist/components/upagraha-table.js +1 -1
- package/dist/components/vastu-mandala.js +2 -2
- package/dist/components/vedic-aspects.js +1 -1
- package/dist/components/vedic-daily.js +1 -1
- package/dist/components/vedic-kundli.js +2 -2
- package/dist/components/vedic-planets-table.js +1 -1
- package/dist/components/western-planets-table.d.ts +1 -0
- package/dist/components/western-planets-table.js +1 -1
- package/dist/components/yoga-list.js +1 -1
- package/dist/components/zodiac-card.js +1 -1
- package/dist/forms.json +1 -1
- package/dist/i18n/chrome-strings.d.ts +1 -1
- package/dist/index.cjs +111 -111
- package/dist/index.js +95 -95
- package/dist/locales/de.js +1 -1
- package/dist/locales/es.js +1 -1
- package/dist/locales/fr.js +1 -1
- package/dist/locales/hi.js +1 -1
- package/dist/locales/pt.js +1 -1
- package/dist/locales/ru.js +1 -1
- package/dist/locales/tr.js +1 -1
- package/dist/manifest.json +1 -1
- package/dist/schemas/get--astrology-horoscope-sign-daily.json +1 -1
- package/dist/schemas/get--astrology-horoscope-sign-monthly.json +1 -1
- package/dist/schemas/get--astrology-horoscope-sign-weekly.json +1 -1
- package/dist/schemas/post--astrology-aspect-patterns.json +1 -1
- package/dist/types/types.gen.d.ts +407 -63
- package/dist/utils/base-element.d.ts +2 -1
- package/dist/utils/format.d.ts +2 -0
- package/dist/utils/interp-accordion.d.ts +2 -2
- package/dist/utils/string.d.ts +2 -0
- package/dist/utils/tarot.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
var RoxyUI_vedic_planets_table=(()=>{var z=Object.defineProperty;var _t=Object.getOwnPropertyDescriptor;var Ie=Object.getOwnPropertyNames;var De=Object.prototype.hasOwnProperty;var Ge=(n,t)=>{for(var e in t)z(n,e,{get:t[e],enumerable:true})},je=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ie(t))!De.call(n,o)&&o!==e&&z(n,o,{get:()=>t[o],enumerable:!(r=_t(t,o))||r.enumerable});return n};var Be=n=>je(z({},"__esModule",{value:true}),n),h=(n,t,e,r)=>{for(var o=r>1?void 0:r?_t(t,e):t,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(t,e,o):i(o))||o);return r&&o&&z(t,e,o),o};var Lr={};Ge(Lr,{ROXY_UI_TOKENS_STYLE_ID:()=>rt,RoxyVedicPlanetsTable:()=>P,injectRoxyTokens:()=>nt});var q=globalThis,Y=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ct=Symbol(),Rt=new WeakMap,U=class{constructor(t,e,r){if(this._$cssResult$=true,r!==ct)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Y&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Rt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Rt.set(e,t))}return t}toString(){return this.cssText}},Ct=n=>new U(typeof n=="string"?n:n+"",void 0,ct),f=(n,...t)=>{let e=n.length===1?n[0]:t.reduce((r,o,s)=>r+(i=>{if(i._$cssResult$===true)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.")})(o)+n[s+1],n[0]);return new U(e,n,ct)},Pt=(n,t)=>{if(Y)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=q.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,n.appendChild(r)}},pt=Y?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Ct(e)})(n):n;var{is:He,defineProperty:Ke,getOwnPropertyDescriptor:ze,getOwnPropertyNames:qe,getOwnPropertySymbols:Ye,getPrototypeOf:Ve}=Object,V=globalThis,Ft=V.trustedTypes,Je=Ft?Ft.emptyScript:"",We=V.reactiveElementPolyfillSupport,M=(n,t)=>n,N={toAttribute(n,t){switch(t){case Boolean:n=n?Je:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},J=(n,t)=>!He(n,t),Ot={attribute:true,type:String,converter:N,reflect:false,useDefault:false,hasChanged:J};Symbol.metadata??=Symbol("metadata"),V.litPropertyMetadata??=new WeakMap;var v=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=Ot){if(e.state&&(e.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=true),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&Ke(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){let{get:o,set:s}=ze(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:o,set(i){let c=o?.call(this);s?.call(this,i),this.requestUpdate(t,c,r)},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ot}static _$Ei(){if(this.hasOwnProperty(M("elementProperties")))return;let t=Ve(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(M("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(M("properties"))){let e=this.properties,r=[...qe(e),...Ye(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,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 o of r)e.unshift(pt(o))}else t!==void 0&&e.push(pt(t));return e}static _$Eu(t,e){let r=e.attribute;return r===false?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,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 Pt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),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),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===true){let s=(r.converter?.toAttribute!==void 0?r.converter:N).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:N;this._$Em=o;let c=i.fromAttribute(e,s.type);this[o]=c??this._$Ej?.get(o)??c,this._$Em=null}}requestUpdate(t,e,r,o=false,s){if(t!==void 0){let i=this.constructor;if(o===false&&(s=this[t]),r??=i.getPropertyOptions(t),!((r.hasChanged??J)(s,e)||r.useDefault&&r.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:o,wrapped:s},i){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),s!==true||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),o===true&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=true;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[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,s]of r){let{wrapped:i}=s,c=this[o];i!==true||this._$AL.has(o)||c===void 0||this.C(o,void 0,s,c)}}let t=false,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=false,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=false}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[M("elementProperties")]=new Map,v[M("finalized")]=new Map,We?.({ReactiveElement:v}),(V.reactiveElementVersions??=[]).push("2.1.2");var xt=globalThis,Lt=n=>n,W=xt.trustedTypes,Ut=W?W.createPolicy("lit-html",{createHTML:n=>n}):void 0,jt="$lit$",w=`lit$${Math.random().toFixed(9).slice(2)}$`,Bt="?"+w,Ze=`<${Bt}>`,A=document,D=()=>A.createComment(""),G=n=>n===null||typeof n!="object"&&typeof n!="function",bt=Array.isArray,Xe=n=>bt(n)||typeof n?.[Symbol.iterator]=="function",ht=`[
|
|
2
2
|
\f\r]`,I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mt=/-->/g,Nt=/>/g,T=RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),It=/'/g,Dt=/"/g,Ht=/^(?:script|style|textarea|title)$/i,vt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),d=vt(1),Gr=vt(2),jr=vt(3),_=Symbol.for("lit-noChange"),a=Symbol.for("lit-nothing"),Gt=new WeakMap,k=A.createTreeWalker(A,129);function Kt(n,t){if(!bt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ut!==void 0?Ut.createHTML(t):t}var Qe=(n,t)=>{let e=n.length-1,r=[],o,s=t===2?"<svg>":t===3?"<math>":"",i=I;for(let c=0;c<e;c++){let l=n[c],u,m,y=-1,b=0;for(;b<l.length&&(i.lastIndex=b,m=i.exec(l),m!==null);)b=i.lastIndex,i===I?m[1]==="!--"?i=Mt:m[1]!==void 0?i=Nt:m[2]!==void 0?(Ht.test(m[2])&&(o=RegExp("</"+m[2],"g")),i=T):m[3]!==void 0&&(i=T):i===T?m[0]===">"?(i=o??I,y=-1):m[1]===void 0?y=-2:(y=i.lastIndex-m[2].length,u=m[1],i=m[3]===void 0?T:m[3]==='"'?Dt:It):i===Dt||i===It?i=T:i===Mt||i===Nt?i=I:(i=T,o=void 0);let S=i===T&&n[c+1].startsWith("/>")?" ":"";s+=i===I?l+Ze:y>=0?(r.push(u),l.slice(0,y)+jt+l.slice(y)+w+S):l+w+(y===-2?c:S)}return[Kt(n,s+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},j=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let s=0,i=0,c=t.length-1,l=this.parts,[u,m]=Qe(t,e);if(this.el=n.createElement(u,r),k.currentNode=this.el.content,e===2||e===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(o=k.nextNode())!==null&&l.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let y of o.getAttributeNames())if(y.endsWith(jt)){let b=m[i++],S=o.getAttribute(y).split(w),K=/([.?@])?(.*)/.exec(b);l.push({type:1,index:s,name:K[2],strings:S,ctor:K[1]==="."?mt:K[1]==="?"?yt:K[1]==="@"?gt:O}),o.removeAttribute(y)}else y.startsWith(w)&&(l.push({type:6,index:s}),o.removeAttribute(y));if(Ht.test(o.tagName)){let y=o.textContent.split(w),b=y.length-1;if(b>0){o.textContent=W?W.emptyScript:"";for(let S=0;S<b;S++)o.append(y[S],D()),k.nextNode(),l.push({type:2,index:++s});o.append(y[b],D())}}}else if(o.nodeType===8)if(o.data===Bt)l.push({type:2,index:s});else{let y=-1;for(;(y=o.data.indexOf(w,y+1))!==-1;)l.push({type:7,index:s}),y+=w.length-1}s++}}static createElement(t,e){let r=A.createElement("template");return r.innerHTML=t,r}};function F(n,t,e=n,r){if(t===_)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,s=G(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(false),s===void 0?o=void 0:(o=new s(n),o._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=F(n,o._$AS(n,t.values),o,r)),t}var ut=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,o=(t?.creationScope??A).importNode(e,true);k.currentNode=o;let s=k.nextNode(),i=0,c=0,l=r[0];for(;l!==void 0;){if(i===l.index){let u;l.type===2?u=new B(s,s.nextSibling,this,t):l.type===1?u=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(u=new ft(s,this,t)),this._$AV.push(u),l=r[++c]}i!==l?.index&&(s=k.nextNode(),i++)}return k.currentNode=A,o}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++}},B=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=a,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??true}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=F(this,t,e),G(t)?t===a||t==null||t===""?(this._$AH!==a&&this._$AR(),this._$AH=a):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Xe(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!==a&&G(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=j.createElement(Kt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let s=new ut(o,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=Gt.get(t.strings);return e===void 0&&Gt.set(t.strings,e=new j(t)),e}k(t){bt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let s of t)o===e.length?e.push(r=new n(this.O(D()),this.O(D()),this,this.options)):r=e[o],r._$AI(s),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let r=Lt(t).nextSibling;Lt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},O=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,s){this.type=1,this._$AH=a,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=a}_$AI(t,e=this,r,o){let s=this.strings,i=false;if(s===void 0)t=F(this,t,e,0),i=!G(t)||t!==this._$AH&&t!==_,i&&(this._$AH=t);else{let c=t,l,u;for(t=s[0],l=0;l<s.length-1;l++)u=F(this,c[r+l],e,l),u===_&&(u=this._$AH[l]),i||=!G(u)||u!==this._$AH[l],u===a?t=a:t!==a&&(t+=(u??"")+s[l+1]),this._$AH[l]=u}i&&!o&&this.j(t)}j(t){t===a?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},mt=class extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===a?void 0:t}},yt=class extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==a)}},gt=class extends O{constructor(t,e,r,o,s){super(t,e,r,o,s),this.type=5}_$AI(t,e=this){if((t=F(this,t,e,0)??a)===_)return;let r=this._$AH,o=t===a&&r!==a||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==a&&(r===a||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ft=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){F(this,t)}};var tr=xt.litHtmlPolyfillSupport;tr?.(j,B),(xt.litHtmlVersions??=[]).push("3.3.3");var zt=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let s=e?.renderBefore??null;r._$litPart$=o=new B(t.insertBefore(D(),s),s,void 0,e??{})}return o._$AI(n),o};var St=globalThis,$=class extends v{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=zt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};$._$litElement$=true,$.finalized=true,St.litElementHydrateSupport?.({LitElement:$});var er=St.litElementPolyfillSupport;er?.({LitElement:$});(St.litElementVersions??=[]).push("4.2.2");var qt=[{endpoint:"vedic-astrology/birth-chart",method:"POST"}];function Z(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function Yt(n){return n.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var rr=new RegExp("(?![\\d#*])\\p{Emoji}","gu"),nr=n=>n.replace(rr,"$&\uFE0E"),X=n=>Object.fromEntries(Object.entries(n).map(([t,e])=>[t,nr(e)])),Vt=(n,t)=>t?n[Z(t)]:void 0,or=X({sun:"\u2609",moon:"\u263D",mercury:"\u263F",venus:"\u2640",earth:"\u2641",mars:"\u2642",jupiter:"\u2643",saturn:"\u2644",uranus:"\u2645",neptune:"\u2646",pluto:"\u2BD3",rahu:"\u260A",ketu:"\u260B",ascendant:"Asc",midheaven:"MC","part of fortune":"\u2297",vertex:"Vx",lagna:"La","north node":"\u260A","south node":"\u260B",chiron:"\u26B7",lilith:"\u26B8","black moon lilith":"\u26B8"}),Q=n=>Vt(or,n);var sr=X({aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"}),wt=n=>Vt(sr,n);var Jt=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],nn=X({conjunction:"\u260C",semisextile:"\u26BA","semi sextile":"\u26BA",semisquare:"\u2220","semi square":"\u2220",sextile:"\u26B9",square:"\u25A1",trine:"\u25B3",sesquiquadrate:"\u26BC",quincunx:"\u26BB",opposition:"\u260D"});var on=X({heaven:"\u2630",lake:"\u2631",fire:"\u2632",thunder:"\u2633",wind:"\u2634",water:"\u2635",mountain:"\u2636",earth:"\u2637"});var ir={attribute:true,type:String,converter:N,reflect:false,hasChanged:J},ar=(n=ir,t,e)=>{let{kind:r,metadata:o}=e,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),r==="setter"&&((n=Object.create(n)).wrapped=true),s.set(e.name,n),r==="accessor"){let{name:i}=e;return{set(c){let l=t.get.call(this);t.set.call(this,c),this.requestUpdate(i,l,n,true,c)},init(c){return c!==void 0&&this.C(i,void 0,n,c),c}}}if(r==="setter"){let{name:i}=e;return function(c){let l=this[i];t.call(this,c),this.requestUpdate(i,l,n,true,c)}}throw Error("Unsupported decorator location: "+r)};function g(n){return(t,e)=>typeof e=="object"?ar(n,t,e):((r,o,s)=>{let i=o.hasOwnProperty(s);return o.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(o,s):void 0})(n,t,e)}function x(n){return g({...n,state:true,attribute:false})}var R=n=>n??a;var Wt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Et(n){if(n.lang)return n.lang;if(typeof document>"u")return;let t=n.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var dr={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function $t(n,t){let e=n.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function Zt(n,t=Wt){let e=Et(n);if(!e)return;let r=$t(e,t);if(r)return r;let o=e.toLowerCase().split("-"),s=o[0];if(s==="zh"){let i=o.find(c=>c==="hans"||c==="hant")??dr[o[1]??""];return i?$t(`zh-${i}`,t):void 0}return $t(s,t)}var te="symbols";var lr={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},Tt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Xt='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Qt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',et={"fraunces-jost":{name:"Fraunces with Jost",sans:Tt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:Tt,display:Tt},geist:{name:"Geist",sans:Xt,display:Xt},system:{name:"System",sans:Qt,display:Qt}};function ee(n){let{sans:t,display:e}=et[n];return Object.keys(lr).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var re="1.6.2";var cr=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,pr=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function ne(n,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(cr.exec(e.pathname)??pr.exec(e.pathname))?.[1];if(r!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${n}/dist`:`${e.origin}${r}`}var yr={},hr="color-mix(in oklab, var(--roxy-accent) 70%, black)",ur="var(--roxy-accent)",mr="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",oe=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function se(n){return n!==void 0&&Object.hasOwn(et,n)}function ie(n){let t=[];return n.brandColor&&oe.test(n.brandColor)&&t.push(`--roxy-primary:${n.brandColor}`),n.brandAccent&&oe.test(n.brandAccent)&&t.push(`--roxy-accent:${n.brandAccent}`,`--roxy-accent-ink:light-dark(${hr},${ur})`,`--roxy-ring:${mr}`),t.join(";")}function ae(n,t){if(se(t))return t;let e=n.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=n.shadowRoot?.firstElementChild,s=o?.localName==="style"?o:null;s?.sheet&&(s.sheet.disabled=true);let i,c,l;try{let u=globalThis.getComputedStyle(n),m=y=>u.getPropertyValue(y).trim();i=m("--roxy-font-sans"),c=m("--roxy-font-display"),l=m("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||c))return se(l)?l:void 0}function de(n){let{sans:t,display:e}=et[n];return`--roxy-font:${n};--roxy-font-sans:${t};--roxy-font-display:${e}`}var le=ne(re,globalThis.document?.currentScript?.src||yr.url);function ce(n,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${n}`;if(document.getElementById(e))return;let r=document.createElement("link");r.id=e,r.rel="stylesheet",r.href=`${t}/styles/fonts/${n}.css`,document.head.append(r)}function pe(n,t=le){ee(n).length>0&&ce(n,t)}function he(n=le){ce(te,n)}var ue='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var rt="roxy-ui-tokens";function nt(){if(typeof document>"u")return null;let n=document.getElementById(rt);if(n)return n;let t=document.createElement("style");return t.id=rt,t.textContent=ue,document.head.prepend(t),t}var me="__ROXY_UI_I18N__";function ye(){let n=globalThis,t=n[me];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[me]=e,e}function gr(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function ge(n,t,e){return gr(fr(n,t)??t,e)}function fr(n,t){if(!n)return;let{catalogs:e}=ye(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[Z(t)]}function fe(n){let{listeners:t}=ye();return t.add(n),()=>{t.delete(n)}}var ot=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=fe(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var st=class extends ${constructor(){super();this.translator=(e,r)=>this.t(e,r);new ot(this)}connectedCallback(){super.connectedCallback(),nt()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&he()}fontDeclarations(e){let r=ae(this,e);return r?(pe(r),de(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?d`<style>:host{${e}}</style>`:a}t(e,r){return ge(this.effectiveLang(),e,r)}effectiveLang(){return Et(this)}};var xe=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function H(n){return n?d`<span class="roxy-glyph" aria-hidden="true">${n}</span>`:a}var be=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var xr=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,it=[xr,be,xe];var br="__cols",vr="__rows";function Sr(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function at(n){if(Array.isArray(n)){let s=false,i=n.map(c=>{let l=at(c);return l!==c&&(s=true),l});return s?i:n}if(!Sr(n))return n;let t=n[br],e=n[vr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(s=>{let i={};return t.forEach((c,l)=>{i[c]=at(s[l])}),i});let r=false,o={};for(let[s,i]of Object.entries(n)){let c=at(i);c!==i&&(r=true),o[s]=c}return r?o:n}function ve(n){return at(n)}function Se(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var wr="pk_live_YOUR_KEY",we={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function $e(n){if(n)return n===wr?we.sample:n.startsWith("pk_")?void 0:we.secret}function Ee(n,t,e={}){e.warn&&console.warn(t.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:true,composed:true}))}var Te="https://roxyapi.com/api/v2";async function $r(n){try{let t=await n.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:true,...t.code?{code:t.code}:{}}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:false}}var ke={fromAttribute:n=>{if(n!=null){try{let t=JSON.parse(n);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},L=class extends Error{constructor(e,r=null,o=true,s,i){super(e);this.issues=r;this.worded=o;this.status=s;this.code=i}};function Ae(n){return n.submitUrl?void 0:$e(n.publishableKey)}async function kt(n,t,e){let r=Ae(n);if(r)throw new L(r.message);let o=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:Er(t,n.submitContext),signal:e}):await Tr(n,t,e);if(!o.ok){let s=await $r(o);throw new L(s.message,s.issues,s.worded,o.status,s.code)}return await o.json()}function Er(n,t){return JSON.stringify(t?{...n,context:t}:n)}function Tr(n,t,e){let r=new URL(`${n.baseUrl??Te}${t.path}`,document.baseURI);for(let[s,i]of Object.entries(t.query??{}))i!=null&&r.searchParams.set(s,String(i));let o={Accept:"application/json"};return n.publishableKey&&(o["X-API-Key"]=n.publishableKey),t.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:o,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var dt=class{constructor(t){this.baseUrl=Te;this.worded=true;this.failure={};this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=true,this.failure={};let e=Ae(this);if(e){this.host.error=e.message,Ee(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let o=await kt(this,t,r.signal);if(r.signal.aborted)return;this.host.data=o}catch(o){if(r.signal.aborted||o?.name==="AbortError")return;o instanceof L&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof L&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=false)}}};function _e(n,t,e,r=[]){let o={...e},s=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(u,m)=>{let y=o[m];return delete o[m],encodeURIComponent(String(y??""))}),i=new Set(r),c={},l={};for(let[u,m]of Object.entries(o))m===void 0||m===""||(t==="GET"||i.has(u)?c[u]=m:l[u]=m);return{path:s,method:t,query:c,body:t==="POST"?l:void 0}}function E(){return d`<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 Re=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Ao=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function Ce(n,t,e){let r=n.filter(o=>!!o.body);return r.length===0?a:d`<section class="block" part="section readings"><h3>${e}</h3>${r.map((o,s)=>d`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${H(o.glyph)} ${o.label}</span> ${E()} ${o.aside?d`<span class="interp-aside"><small>${o.aside}</small></span>`:a}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??a}</div></details>`)}</section>`}var kr="roxy-data";function Ar(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var lt=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){if(this.host.data!=null)return;let t=this.read();t!==void 0&&(this.host.data=t,this.host.requestUpdate())}read(){let t=this.findInlineScript();return t?this.parse(t.textContent):void 0}findInlineScript(){for(let t of Array.from(this.host.children))if(Ar(t)&&t.classList.contains(kr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends st{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,o=this.listRows();if(!(!e||!r||!o)){this.moreLoading=true,this.moreError=null;try{let s=await kt(this.fetcher,{...e,query:{...e.query,offset:o.length}});if(this.lastRequest!==e)return;let i=s[r];this.data={...this.data,...s,[r]:[...o,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===e&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(_e(r.endpoint,r.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new lt(this),this.fetcher=new dt(this)}static{this.styles=[it]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=ve(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:Se(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return d`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:true,composed:true})),customElements.get("roxy-data")?d`<roxy-data .data="${e}" lang="${R(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(s=>s.trim().toLowerCase()).filter(s=>/^[a-z][a-z0-9-]*$/.test(s)),r=[ie(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return a;let o=(r?`:host{${r}}`:"")+e.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){display:none!important}`).join("");return d`<style>${o}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?d`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,o){return this.hideReadings?a:Ce(e,r,this.t(o??"Reading"))}renderResult(e){let r=d`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?d`${r}${this.renderAttribution()}`:r}renderWithForm(e){return d`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?a:this.renderErrorBanner(this.error):this.data==null?a:this.showAttribution()?d`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?a:e.length>=r?a:d`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?d`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:a}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let o=this.effectiveLang();o&&r.setAttribute("lang",o),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:Zt(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return d`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(a):this.renderEmpty()}renderForm(){let e=this.selfFetch();return d`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${R(this.specUrl)}" publishable-key="${R(this.publishableKey)}" location-url="${R(this.locationUrl)}" submit-label="${R(this.submitLabel)}" lang="${R(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return d`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return d`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return r?d`${o}${this.renderForm()}`:o}renderErrorBanner(e){return d`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};h([g({attribute:false})],p.prototype,"data",2),h([g({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([g({type:String})],p.prototype,"method",2),h([g({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([g({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([g({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([g({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([g({attribute:"submit-context",converter:ke})],p.prototype,"submitContext",2),h([g({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([g({type:Boolean})],p.prototype,"remember",2),h([g({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([g({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([g({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([g({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([g({type:String})],p.prototype,"font",2),h([g({type:String})],p.prototype,"hemisphere",2),h([g({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([g({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([g({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var Pe=n=>t=>{customElements.get(n)||customElements.define(n,t)};function _r(n){let t=n%360;return t<0?t+360:t}function Rr(n){let t=_r(n),e=Math.floor(t/30)%12,r=t%30,o=Math.floor(r),s=(r-o)*60,i=Math.floor(s),c=Math.round((s-i)*60);return{sign:Jt[e]??"Aries",signIndex:e,degree:o,minute:i,second:c}}function At(n,t){let{sign:e,degree:r,minute:o}=Rr(n);return`${r}\xB0 ${t||e} ${String(o).padStart(2,"0")}'`}var Fe=new Map;function Cr(n){if(!n)return["en"];let t=Fe.get(n);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return Fe.set(n,e),[e,"en"]}function C(n,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(Cr(n),{maximumFractionDigits:e})}var Pr={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function Oe(n,t,e){let r=typeof t=="string"?Pr[t]??Yt(t):"",o=typeof e=="number"?`${C(n,e,2)}\xB0`:"";return r&&o?`${r} (${o})`:r||o}function Fr(n,t){if(!(typeof t!="string"||!t))return t===n?void 0:t}function Le(n,t){let e=typeof n=="string"?n:"",r=Fr(e,t);return e?r?`${e} (${r})`:e:r??""}var Ue=f`.roxy-frame{color:var(--roxy-muted);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-normal);margin:0}.roxy-frame .roxy-frame-deg{font-variant-numeric:tabular-nums}`;function Me(n,t,e){if(!t?.ayanamsa)return a;let r=Oe(n,t.ayanamsa);if(!r)return a;let o=typeof t.ayanamsaDegrees=="number"?C(n,t.ayanamsaDegrees,4):void 0;return d`<p class="roxy-frame">${o===void 0?e("Sidereal frame: {{frame}}",{frame:r}):e("Sidereal frame: {{frame}}, {{degrees}}\xB0 subtracted",{frame:r,degrees:o})}</p>`}var Or=["Lagna","Sun","Moon","Mars","Mercury","Jupiter","Venus","Saturn","Rahu","Ketu"],Ne=[["awastha","Baladi."],["jagradadi","Jagradadi."],["deeptadi","Deeptadi."]],P=class extends p{orderedRows(){let t=this.data?.meta??{},e=new Set,r=[];for(let o of Or){let s=t[o];s&&(r.push([o,s]),e.add(o))}for(let[o,s]of Object.entries(t))e.has(o)||r.push([o,s]);return r}renderData(t){if(!t.meta)return this.renderEmpty();let e=this.orderedRows(),r=e.some(([,o])=>o.avasthaInfo);return d`<div class="wrap" part="card" aria-label="${this.t("Vedic planetary positions")}"><header class="head" part="header"><h2>${this.t("Planetary positions")}</h2>${Me(this.effectiveLang(),t.frame,this.translator)}</header><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Planetary positions")}"><table role="table"><caption class="roxy-sr-only">${this.t("Vedic planetary positions: each graha with its rashi, degree, nakshatra, pada, nakshatra lord, house, its state in all three avastha systems, and retrograde state. Jagradadi and Deeptadi are read from sign dignity, which the nodes and the Lagna do not have, so those two cells are blank on the Rahu, Ketu and Lagna rows. Uranus, Neptune and Pluto appear only when asked for and rule no sign, so every avastha and house cell is blank on their rows too.")} ${r?this.t("Each avastha state is followed by its meaning."):a}</caption><thead><tr><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Nakshatra")}</th><th scope="col">${this.t("Pada")}</th><th scope="col">${this.t("Nak. lord")}</th><th scope="col">${this.t("House")}</th><th scope="col" title="${this.t("Baladi: the five age states, set by degree within the sign")}">${this.t("Baladi")}</th><th scope="col" title="${this.t("Jagradadi: the three waking states, set by sign dignity. The seven classical grahas only")}">${this.t("Jagradadi")}</th><th scope="col" title="${this.t("Deeptadi: the nine dispositional states, set by sign dignity. The seven classical grahas only")}">${this.t("Deeptadi")}</th><th scope="col">${this.t("Retro")}</th></tr></thead><tbody>${e.map(([o,s])=>{let i=(s.graha??o)==="Lagna",c=Q(s.graha??o)??"",l=wt(s.rashi)??"";return d`<tr class="${i?"lagna":""}"><td class="graha">${c?d`<span class="glyph roxy-glyph">${c}</span>`:a}${s.graha??o}</td><td>${l?d`<span class="glyph roxy-glyph">${l}</span>`:a}${s.rashi??""}</td><td>${typeof s.longitude=="number"?At(s.longitude):""}</td><td>${s.nakshatra?.name??""}</td><td>${s.nakshatra?.pada??""}</td><td>${s.nakshatra?.lord??""}</td><td>${typeof s.house=="number"?s.house:""}</td>${Ne.map(([u])=>d`<td>${s[u]??""}${s.avasthaInfo?.[u]?.meaning?d`<span class="gloss">${s.avasthaInfo[u].meaning}</span>`:a}</td>`)}<td>${s.isRetrograde?d`<span class="retro">R</span>`:a}</td></tr>`})} ${this.renderModernRows()}</tbody></table></div>${this.renderCombustion()} ${this.renderPlanetaryWar()} ${this.renderInterpretations()} ${this.renderYogas()} ${this.renderHouses()}</div>`}renderModernRows(){let t=this.data?.modernPlanets??[];return t.length===0?a:t.map((e,r)=>{let o=wt(e.rashi)??"";return d`<tr class="modern ${r===0?"modern-first":""}"><td class="graha">${Le(e.planet,e.sanskritName)}</td><td>${o?d`<span class="glyph roxy-glyph">${o}</span>`:a}${e.rashi??""}</td><td>${typeof e.longitude=="number"?At(e.longitude):""}</td><td>${e.nakshatra?.name??""}</td><td>${e.nakshatra?.pada??""}</td><td>${e.nakshatra?.lord??""}</td><td></td><td></td><td></td><td></td><td>${e.isRetrograde?d`<span class="retro">R</span>`:a}</td></tr>`})}renderCombustion(){let t=this.data?.combustion??[];return t.length===0?a:d`<details class="panel" part="section combustion"><summary>${this.t("Combust grahas")}<span class="summary-count">${t.length}</span>${E()}</summary><div class="panel-body">${t.map(e=>{let r=Q(e.planet)??"",o=C(this.effectiveLang(),e.distanceFromSun,2),s=C(this.effectiveLang(),e.orb,1);return d`<div class="condition"><span class="planet">${H(r)} ${e.planet}</span> <span class="detail">${this.t("{{distance}} deg from Sun, within {{orb}} deg orb",{distance:o,orb:s})}</span></div>`})}</div></details>`}renderPlanetaryWar(){let t=this.data?.planetaryWar??[];return t.length===0?a:d`<details class="panel" part="section planetary-war"><summary>${this.t("Planetary wars")}<span class="summary-count">${t.length}</span>${E()}</summary><div class="panel-body">${t.map(e=>{let r=C(this.effectiveLang(),e.distance,2);return d`<div class="condition"><span class="planet">${this.t("{{first}} vs {{second}}",{first:e.planet1,second:e.planet2})}</span> <span class="detail">${this.t("{{distance}} deg apart",{distance:r})}</span> <span class="winner">${this.t("{{graha}} wins",{graha:e.winner})}</span></div>`})}</div></details>`}renderInterpretations(){if(this.hideReadings)return a;let t=this.data?.interpretations??{},e=this.orderedRows().map(([r,o])=>[o.graha??r,t[o.graha??r],o.avasthaInfo]).filter(([,r,o])=>r!=null||o!=null);return e.length===0?a:d`<details class="panel" part="section readings"><summary>${this.t("Interpretations")}<span class="summary-count">${e.length}</span>${E()}</summary><div class="panel-body">${e.map(([r,o,s])=>{let i=Q(r)??"";return d`<div class="interp"><span class="planet">${H(i)} ${r}</span> ${o?.rashi?d`<p><span class="label">${this.t("Rashi.")}</span> ${o.rashi}</p>`:a} ${o?.nakshatra?d`<p><span class="label">${this.t("Nakshatra.")}</span> ${o.nakshatra}</p>`:a} ${Ne.map(([c,l])=>s?.[c]?.interpretation?d`<p><span class="label">${this.t(l)}</span> ${s[c].interpretation}</p>`:a)}</div>`})}</div></details>`}renderHouses(){let t=(this.data?.houses??[]).filter(e=>e.name||e.description);return t.length===0?a:d`<details class="panel" part="section bhava-significations"><summary>${this.t("Bhava significations")}<span class="summary-count">${t.length}</span>${E()}</summary><div class="panel-body">${t.map(e=>d`<div class="bhava"><span class="name">${e.number}. ${e.name??""}</span> ${e.description?d`<p class="desc">${e.description}</p>`:a}</div>`)}</div></details>`}renderYogas(){let t=(this.data?.yogas??[]).filter(e=>e.present);return t.length===0?a:d`<details class="panel" part="section yogas"><summary>${this.t("Yogas")}<span class="summary-count">${t.length}</span>${E()}</summary><div class="panel-body">${t.map(e=>d`<div class="bhava"><span class="name">${e.name} ${e.quality?d`<span class="quality ${e.quality.toLowerCase()}">${e.quality}</span>`:a}</span> ${e.result?d`<p class="desc">${e.result}</p>`:a}</div>`)}</div></details>`}};P.endpoints=qt,P.styles=[it,Ue,Re,f`.wrap{overflow:hidden}.head{padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border)}h2,p{margin:0}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}:is(th,td):first-child{padding-inline-start:var(--roxy-space-md)}:is(th,td):last-child{padding-inline-end:var(--roxy-space-md)}tbody tr.lagna td:first-child{box-shadow:inset var(--roxy-line-thick) 0 0 var(--roxy-accent)}tbody tr.lagna .glyph{color:var(--roxy-accent-ink)}tbody tr.modern-first td{border-block-start:var(--roxy-line-thick) solid var(--roxy-border)}td.graha{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.gloss{color:var(--roxy-secondary);font-size:var(--roxy-text-xs);display:block}.retro{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}details.panel{border-block-start:1px solid var(--roxy-border)}details.panel>summary{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);padding:var(--roxy-space-sm) var(--roxy-space-md);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);display:flex}.summary-count{margin-inline:auto var(--roxy-space-xs);color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);font-variant-numeric:tabular-nums}.panel-body{gap:var(--roxy-space-sm);padding:0 var(--roxy-space-md) var(--roxy-space-md);font-size:var(--roxy-text-sm);grid-template-columns:minmax(0,1fr);display:grid}.condition{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}:is(.condition,.interp) .planet,.bhava .name{font-weight:var(--roxy-weight-bold)}.condition .detail{color:var(--roxy-muted);font-variant-numeric:tabular-nums}.condition .winner{color:var(--roxy-success-fg);font-weight:var(--roxy-weight-bold)}.interp,.bhava{gap:calc(var(--roxy-space-unit) / 2);display:grid}.interp .label{color:var(--roxy-muted);font-weight:var(--roxy-weight-bold)}.bhava .desc{color:var(--roxy-muted)}.quality{font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}.quality.positive{color:var(--roxy-success-fg)}.quality.negative{color:var(--roxy-danger-fg)}.quality.both{color:var(--roxy-muted)}`],P=h([Pe("roxy-vedic-planets-table")],P);return Be(Lr)})();
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),It=/'/g,Dt=/"/g,Ht=/^(?:script|style|textarea|title)$/i,vt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),d=vt(1),Gr=vt(2),jr=vt(3),_=Symbol.for("lit-noChange"),a=Symbol.for("lit-nothing"),Gt=new WeakMap,k=A.createTreeWalker(A,129);function Kt(n,t){if(!bt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ut!==void 0?Ut.createHTML(t):t}var Qe=(n,t)=>{let e=n.length-1,r=[],o,s=t===2?"<svg>":t===3?"<math>":"",i=I;for(let c=0;c<e;c++){let l=n[c],u,m,y=-1,b=0;for(;b<l.length&&(i.lastIndex=b,m=i.exec(l),m!==null);)b=i.lastIndex,i===I?m[1]==="!--"?i=Mt:m[1]!==void 0?i=Nt:m[2]!==void 0?(Ht.test(m[2])&&(o=RegExp("</"+m[2],"g")),i=T):m[3]!==void 0&&(i=T):i===T?m[0]===">"?(i=o??I,y=-1):m[1]===void 0?y=-2:(y=i.lastIndex-m[2].length,u=m[1],i=m[3]===void 0?T:m[3]==='"'?Dt:It):i===Dt||i===It?i=T:i===Mt||i===Nt?i=I:(i=T,o=void 0);let S=i===T&&n[c+1].startsWith("/>")?" ":"";s+=i===I?l+Ze:y>=0?(r.push(u),l.slice(0,y)+jt+l.slice(y)+w+S):l+w+(y===-2?c:S)}return[Kt(n,s+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},j=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let s=0,i=0,c=t.length-1,l=this.parts,[u,m]=Qe(t,e);if(this.el=n.createElement(u,r),k.currentNode=this.el.content,e===2||e===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(o=k.nextNode())!==null&&l.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let y of o.getAttributeNames())if(y.endsWith(jt)){let b=m[i++],S=o.getAttribute(y).split(w),K=/([.?@])?(.*)/.exec(b);l.push({type:1,index:s,name:K[2],strings:S,ctor:K[1]==="."?mt:K[1]==="?"?yt:K[1]==="@"?gt:O}),o.removeAttribute(y)}else y.startsWith(w)&&(l.push({type:6,index:s}),o.removeAttribute(y));if(Ht.test(o.tagName)){let y=o.textContent.split(w),b=y.length-1;if(b>0){o.textContent=W?W.emptyScript:"";for(let S=0;S<b;S++)o.append(y[S],D()),k.nextNode(),l.push({type:2,index:++s});o.append(y[b],D())}}}else if(o.nodeType===8)if(o.data===Bt)l.push({type:2,index:s});else{let y=-1;for(;(y=o.data.indexOf(w,y+1))!==-1;)l.push({type:7,index:s}),y+=w.length-1}s++}}static createElement(t,e){let r=A.createElement("template");return r.innerHTML=t,r}};function F(n,t,e=n,r){if(t===_)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,s=G(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(false),s===void 0?o=void 0:(o=new s(n),o._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=F(n,o._$AS(n,t.values),o,r)),t}var ut=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,o=(t?.creationScope??A).importNode(e,true);k.currentNode=o;let s=k.nextNode(),i=0,c=0,l=r[0];for(;l!==void 0;){if(i===l.index){let u;l.type===2?u=new B(s,s.nextSibling,this,t):l.type===1?u=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(u=new ft(s,this,t)),this._$AV.push(u),l=r[++c]}i!==l?.index&&(s=k.nextNode(),i++)}return k.currentNode=A,o}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++}},B=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=a,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??true}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=F(this,t,e),G(t)?t===a||t==null||t===""?(this._$AH!==a&&this._$AR(),this._$AH=a):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Xe(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!==a&&G(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=j.createElement(Kt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let s=new ut(o,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=Gt.get(t.strings);return e===void 0&&Gt.set(t.strings,e=new j(t)),e}k(t){bt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let s of t)o===e.length?e.push(r=new n(this.O(D()),this.O(D()),this,this.options)):r=e[o],r._$AI(s),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let r=Lt(t).nextSibling;Lt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},O=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,s){this.type=1,this._$AH=a,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=a}_$AI(t,e=this,r,o){let s=this.strings,i=false;if(s===void 0)t=F(this,t,e,0),i=!G(t)||t!==this._$AH&&t!==_,i&&(this._$AH=t);else{let c=t,l,u;for(t=s[0],l=0;l<s.length-1;l++)u=F(this,c[r+l],e,l),u===_&&(u=this._$AH[l]),i||=!G(u)||u!==this._$AH[l],u===a?t=a:t!==a&&(t+=(u??"")+s[l+1]),this._$AH[l]=u}i&&!o&&this.j(t)}j(t){t===a?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},mt=class extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===a?void 0:t}},yt=class extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==a)}},gt=class extends O{constructor(t,e,r,o,s){super(t,e,r,o,s),this.type=5}_$AI(t,e=this){if((t=F(this,t,e,0)??a)===_)return;let r=this._$AH,o=t===a&&r!==a||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==a&&(r===a||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ft=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){F(this,t)}};var tr=xt.litHtmlPolyfillSupport;tr?.(j,B),(xt.litHtmlVersions??=[]).push("3.3.3");var zt=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let s=e?.renderBefore??null;r._$litPart$=o=new B(t.insertBefore(D(),s),s,void 0,e??{})}return o._$AI(n),o};var St=globalThis,$=class extends v{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=zt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};$._$litElement$=true,$.finalized=true,St.litElementHydrateSupport?.({LitElement:$});var er=St.litElementPolyfillSupport;er?.({LitElement:$});(St.litElementVersions??=[]).push("4.2.2");var qt=[{endpoint:"vedic-astrology/birth-chart",method:"POST"}];function Z(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function Yt(n){return n.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var rr=new RegExp("(?![\\d#*])\\p{Emoji}","gu"),nr=n=>n.replace(rr,"$&\uFE0E"),X=n=>Object.fromEntries(Object.entries(n).map(([t,e])=>[t,nr(e)])),Vt=(n,t)=>t?n[Z(t)]:void 0,or=X({sun:"\u2609",moon:"\u263D",mercury:"\u263F",venus:"\u2640",earth:"\u2641",mars:"\u2642",jupiter:"\u2643",saturn:"\u2644",uranus:"\u2645",neptune:"\u2646",pluto:"\u2BD3",rahu:"\u260A",ketu:"\u260B",ascendant:"Asc",midheaven:"MC","part of fortune":"\u2297",vertex:"Vx",lagna:"La","north node":"\u260A","south node":"\u260B",chiron:"\u26B7",lilith:"\u26B8","black moon lilith":"\u26B8"}),Q=n=>Vt(or,n);var sr=X({aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"}),wt=n=>Vt(sr,n);var Jt=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],nn=X({conjunction:"\u260C",semisextile:"\u26BA","semi sextile":"\u26BA",semisquare:"\u2220","semi square":"\u2220",sextile:"\u26B9",square:"\u25A1",trine:"\u25B3",sesquiquadrate:"\u26BC",quincunx:"\u26BB",opposition:"\u260D"});var on=X({heaven:"\u2630",lake:"\u2631",fire:"\u2632",thunder:"\u2633",wind:"\u2634",water:"\u2635",mountain:"\u2636",earth:"\u2637"});var ir={attribute:true,type:String,converter:N,reflect:false,hasChanged:J},ar=(n=ir,t,e)=>{let{kind:r,metadata:o}=e,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),r==="setter"&&((n=Object.create(n)).wrapped=true),s.set(e.name,n),r==="accessor"){let{name:i}=e;return{set(c){let l=t.get.call(this);t.set.call(this,c),this.requestUpdate(i,l,n,true,c)},init(c){return c!==void 0&&this.C(i,void 0,n,c),c}}}if(r==="setter"){let{name:i}=e;return function(c){let l=this[i];t.call(this,c),this.requestUpdate(i,l,n,true,c)}}throw Error("Unsupported decorator location: "+r)};function g(n){return(t,e)=>typeof e=="object"?ar(n,t,e):((r,o,s)=>{let i=o.hasOwnProperty(s);return o.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(o,s):void 0})(n,t,e)}function x(n){return g({...n,state:true,attribute:false})}var R=n=>n??a;var Wt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Et(n){if(n.lang)return n.lang;if(typeof document>"u")return;let t=n.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var dr={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function $t(n,t){let e=n.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function Zt(n,t=Wt){let e=Et(n);if(!e)return;let r=$t(e,t);if(r)return r;let o=e.toLowerCase().split("-"),s=o[0];if(s==="zh"){let i=o.find(c=>c==="hans"||c==="hant")??dr[o[1]??""];return i?$t(`zh-${i}`,t):void 0}return $t(s,t)}var te="symbols";var lr={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},Tt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Xt='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Qt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',et={"fraunces-jost":{name:"Fraunces with Jost",sans:Tt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:Tt,display:Tt},geist:{name:"Geist",sans:Xt,display:Xt},system:{name:"System",sans:Qt,display:Qt}};function ee(n){let{sans:t,display:e}=et[n];return Object.keys(lr).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var re="1.8.0";var cr=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,pr=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function ne(n,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(cr.exec(e.pathname)??pr.exec(e.pathname))?.[1];if(r!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${n}/dist`:`${e.origin}${r}`}var yr={},hr="color-mix(in oklab, var(--roxy-accent) 70%, black)",ur="var(--roxy-accent)",mr="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",oe=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function se(n){return n!==void 0&&Object.hasOwn(et,n)}function ie(n){let t=[];return n.brandColor&&oe.test(n.brandColor)&&t.push(`--roxy-primary:${n.brandColor}`),n.brandAccent&&oe.test(n.brandAccent)&&t.push(`--roxy-accent:${n.brandAccent}`,`--roxy-accent-ink:light-dark(${hr},${ur})`,`--roxy-ring:${mr}`),t.join(";")}function ae(n,t){if(se(t))return t;let e=n.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=n.shadowRoot?.firstElementChild,s=o?.localName==="style"?o:null;s?.sheet&&(s.sheet.disabled=true);let i,c,l;try{let u=globalThis.getComputedStyle(n),m=y=>u.getPropertyValue(y).trim();i=m("--roxy-font-sans"),c=m("--roxy-font-display"),l=m("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||c))return se(l)?l:void 0}function de(n){let{sans:t,display:e}=et[n];return`--roxy-font:${n};--roxy-font-sans:${t};--roxy-font-display:${e}`}var le=ne(re,globalThis.document?.currentScript?.src||yr.url);function ce(n,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${n}`;if(document.getElementById(e))return;let r=document.createElement("link");r.id=e,r.rel="stylesheet",r.href=`${t}/styles/fonts/${n}.css`,document.head.append(r)}function pe(n,t=le){ee(n).length>0&&ce(n,t)}function he(n=le){ce(te,n)}var ue='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var rt="roxy-ui-tokens";function nt(){if(typeof document>"u")return null;let n=document.getElementById(rt);if(n)return n;let t=document.createElement("style");return t.id=rt,t.textContent=ue,document.head.prepend(t),t}var me="__ROXY_UI_I18N__";function ye(){let n=globalThis,t=n[me];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[me]=e,e}function gr(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function ge(n,t,e){return gr(fr(n,t)??t,e)}function fr(n,t){if(!n)return;let{catalogs:e}=ye(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[Z(t)]}function fe(n){let{listeners:t}=ye();return t.add(n),()=>{t.delete(n)}}var ot=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=fe(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var st=class extends ${constructor(){super();this.translator=(e,r)=>this.t(e,r);new ot(this)}connectedCallback(){super.connectedCallback(),nt()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&he()}fontDeclarations(e){let r=ae(this,e);return r?(pe(r),de(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?d`<style>:host{${e}}</style>`:a}t(e,r){return ge(this.effectiveLang(),e,r)}effectiveLang(){return Et(this)}};var xe=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function H(n){return n?d`<span class="roxy-glyph" aria-hidden="true">${n}</span>`:a}var be=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var xr=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,it=[xr,be,xe];var br="__cols",vr="__rows";function Sr(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function at(n){if(Array.isArray(n)){let s=false,i=n.map(c=>{let l=at(c);return l!==c&&(s=true),l});return s?i:n}if(!Sr(n))return n;let t=n[br],e=n[vr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(s=>{let i={};return t.forEach((c,l)=>{i[c]=at(s[l])}),i});let r=false,o={};for(let[s,i]of Object.entries(n)){let c=at(i);c!==i&&(r=true),o[s]=c}return r?o:n}function ve(n){return at(n)}function Se(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var wr="pk_live_YOUR_KEY",we={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function $e(n){if(n)return n===wr?we.sample:n.startsWith("pk_")?void 0:we.secret}function Ee(n,t,e={}){e.warn&&console.warn(t.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:true,composed:true}))}var Te="https://roxyapi.com/api/v2";async function $r(n){try{let t=await n.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:true,...t.code?{code:t.code}:{}}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:false}}var ke={fromAttribute:n=>{if(n!=null){try{let t=JSON.parse(n);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},L=class extends Error{constructor(e,r=null,o=true,s,i){super(e);this.issues=r;this.worded=o;this.status=s;this.code=i}};function Ae(n){return n.submitUrl?void 0:$e(n.publishableKey)}async function kt(n,t,e){let r=Ae(n);if(r)throw new L(r.message);let o=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:Er(t,n.submitContext),signal:e}):await Tr(n,t,e);if(!o.ok){let s=await $r(o);throw new L(s.message,s.issues,s.worded,o.status,s.code)}return await o.json()}function Er(n,t){return JSON.stringify(t?{...n,context:t}:n)}function Tr(n,t,e){let r=new URL(`${n.baseUrl??Te}${t.path}`,document.baseURI);for(let[s,i]of Object.entries(t.query??{}))i!=null&&r.searchParams.set(s,String(i));let o={Accept:"application/json"};return n.publishableKey&&(o["X-API-Key"]=n.publishableKey),t.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:o,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var dt=class{constructor(t){this.baseUrl=Te;this.worded=true;this.failure={};this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=true,this.failure={};let e=Ae(this);if(e){this.host.error=e.message,Ee(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let o=await kt(this,t,r.signal);if(r.signal.aborted)return;this.host.data=o}catch(o){if(r.signal.aborted||o?.name==="AbortError")return;o instanceof L&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof L&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=false)}}};function _e(n,t,e,r=[]){let o={...e},s=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(u,m)=>{let y=o[m];return delete o[m],encodeURIComponent(String(y??""))}),i=new Set(r),c={},l={};for(let[u,m]of Object.entries(o))m===void 0||m===""||(t==="GET"||i.has(u)?c[u]=m:l[u]=m);return{path:s,method:t,query:c,body:t==="POST"?l:void 0}}function E(){return d`<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 Re=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Ao=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function Ce(n,t,e,r=false){let o=n.filter(s=>!!s.body);return o.length===0?a:d`<section class="block" part="section readings"><h3>${e}</h3>${o.map((s,i)=>d`<details class="interp-card" part="reading" name="${t}" ?open="${i===0&&!r}"><summary><span class="interp-lead">${H(s.glyph)} ${s.label}</span> ${E()} ${s.aside?d`<span class="interp-aside"><small>${s.aside}</small></span>`:a}</summary><div class="interp-body"><p>${s.body}</p>${s.extra??a}</div></details>`)}</section>`}var kr="roxy-data";function Ar(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var lt=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){if(this.host.data!=null)return;let t=this.read();t!==void 0&&(this.host.data=t,this.host.requestUpdate())}read(){let t=this.findInlineScript();return t?this.parse(t.textContent):void 0}findInlineScript(){for(let t of Array.from(this.host.children))if(Ar(t)&&t.classList.contains(kr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends st{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,o=this.listRows();if(!(!e||!r||!o)){this.moreLoading=true,this.moreError=null;try{let s=await kt(this.fetcher,{...e,query:{...e.query,offset:o.length}});if(this.lastRequest!==e)return;let i=s[r];this.data={...this.data,...s,[r]:[...o,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===e&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(_e(r.endpoint,r.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new lt(this),this.fetcher=new dt(this)}static{this.styles=[it]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=ve(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:Se(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return d`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:true,composed:true})),customElements.get("roxy-data")?d`<roxy-data .data="${e}" lang="${R(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(s=>s.trim().toLowerCase()).filter(s=>/^[a-z][a-z0-9-]*$/.test(s)),r=[ie(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return a;let o=(r?`:host{${r}}`:"")+e.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){display:none!important}`).join("");return d`<style>${o}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?d`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,o,s=false){return this.hideReadings?a:Ce(e,r,this.t(o??"Reading"),s)}renderResult(e){let r=d`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?d`${r}${this.renderAttribution()}`:r}renderWithForm(e){return d`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?a:this.renderErrorBanner(this.error):this.data==null?a:this.showAttribution()?d`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?a:e.length>=r?a:d`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?d`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:a}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let o=this.effectiveLang();o&&r.setAttribute("lang",o),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:Zt(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return d`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(a):this.renderEmpty()}renderForm(){let e=this.selfFetch();return d`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${R(this.specUrl)}" publishable-key="${R(this.publishableKey)}" location-url="${R(this.locationUrl)}" submit-label="${R(this.submitLabel)}" lang="${R(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return d`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return d`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return r?d`${o}${this.renderForm()}`:o}renderErrorBanner(e){return d`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};h([g({attribute:false})],p.prototype,"data",2),h([g({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([g({type:String})],p.prototype,"method",2),h([g({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([g({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([g({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([g({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([g({attribute:"submit-context",converter:ke})],p.prototype,"submitContext",2),h([g({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([g({type:Boolean})],p.prototype,"remember",2),h([g({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([g({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([g({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([g({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([g({type:String})],p.prototype,"font",2),h([g({type:String})],p.prototype,"hemisphere",2),h([g({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([g({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([g({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var Pe=n=>t=>{customElements.get(n)||customElements.define(n,t)};function _r(n){let t=n%360;return t<0?t+360:t}function Rr(n){let t=_r(n),e=Math.floor(t/30)%12,r=t%30,o=Math.floor(r),s=(r-o)*60,i=Math.floor(s),c=Math.round((s-i)*60);return{sign:Jt[e]??"Aries",signIndex:e,degree:o,minute:i,second:c}}function At(n,t){let{sign:e,degree:r,minute:o}=Rr(n);return`${r}\xB0 ${t||e} ${String(o).padStart(2,"0")}'`}var Fe=new Map;function Cr(n){if(!n)return["en"];let t=Fe.get(n);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return Fe.set(n,e),[e,"en"]}function C(n,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(Cr(n),{maximumFractionDigits:e})}var Pr={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function Oe(n,t,e){let r=typeof t=="string"?Pr[t]??Yt(t):"",o=typeof e=="number"?`${C(n,e,2)}\xB0`:"";return r&&o?`${r} (${o})`:r||o}function Fr(n,t){if(!(typeof t!="string"||!t))return t===n?void 0:t}function Le(n,t){let e=typeof n=="string"?n:"",r=Fr(e,t);return e?r?`${e} (${r})`:e:r??""}var Ue=f`.roxy-frame{color:var(--roxy-muted);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-normal);margin:0}.roxy-frame .roxy-frame-deg{font-variant-numeric:tabular-nums}`;function Me(n,t,e){if(!t?.ayanamsa)return a;let r=Oe(n,t.ayanamsa);if(!r)return a;let o=typeof t.ayanamsaDegrees=="number"?C(n,t.ayanamsaDegrees,4):void 0;return d`<p class="roxy-frame">${o===void 0?e("Sidereal frame: {{frame}}",{frame:r}):e("Sidereal frame: {{frame}}, {{degrees}}\xB0 subtracted",{frame:r,degrees:o})}</p>`}var Or=["Lagna","Sun","Moon","Mars","Mercury","Jupiter","Venus","Saturn","Rahu","Ketu"],Ne=[["awastha","Baladi."],["jagradadi","Jagradadi."],["deeptadi","Deeptadi."]],P=class extends p{orderedRows(){let t=this.data?.meta??{},e=new Set,r=[];for(let o of Or){let s=t[o];s&&(r.push([o,s]),e.add(o))}for(let[o,s]of Object.entries(t))e.has(o)||r.push([o,s]);return r}renderData(t){if(!t.meta)return this.renderEmpty();let e=this.orderedRows(),r=e.some(([,o])=>o.avasthaInfo);return d`<div class="wrap" part="card" aria-label="${this.t("Vedic planetary positions")}"><header class="head" part="header"><h2>${this.t("Planetary positions")}</h2>${Me(this.effectiveLang(),t.frame,this.translator)}</header><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Planetary positions")}"><table role="table"><caption class="roxy-sr-only">${this.t("Vedic planetary positions: each graha with its rashi, degree, nakshatra, pada, nakshatra lord, house, its state in all three avastha systems, and retrograde state. Jagradadi and Deeptadi are read from sign dignity, which the nodes and the Lagna do not have, so those two cells are blank on the Rahu, Ketu and Lagna rows. Uranus, Neptune and Pluto appear only when asked for and rule no sign, so every avastha and house cell is blank on their rows too.")} ${r?this.t("Each avastha state is followed by its meaning."):a}</caption><thead><tr><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Nakshatra")}</th><th scope="col">${this.t("Pada")}</th><th scope="col">${this.t("Nak. lord")}</th><th scope="col">${this.t("House")}</th><th scope="col" title="${this.t("Baladi: the five age states, set by degree within the sign")}">${this.t("Baladi")}</th><th scope="col" title="${this.t("Jagradadi: the three waking states, set by sign dignity. The seven classical grahas only")}">${this.t("Jagradadi")}</th><th scope="col" title="${this.t("Deeptadi: the nine dispositional states, set by sign dignity. The seven classical grahas only")}">${this.t("Deeptadi")}</th><th scope="col">${this.t("Retro")}</th></tr></thead><tbody>${e.map(([o,s])=>{let i=(s.graha??o)==="Lagna",c=Q(s.graha??o)??"",l=wt(s.rashi)??"";return d`<tr class="${i?"lagna":""}"><td class="graha">${c?d`<span class="glyph roxy-glyph">${c}</span>`:a}${s.graha??o}</td><td>${l?d`<span class="glyph roxy-glyph">${l}</span>`:a}${s.rashi??""}</td><td>${typeof s.longitude=="number"?At(s.longitude):""}</td><td>${s.nakshatra?.name??""}</td><td>${s.nakshatra?.pada??""}</td><td>${s.nakshatra?.lord??""}</td><td>${typeof s.house=="number"?s.house:""}</td>${Ne.map(([u])=>d`<td>${s[u]??""}${s.avasthaInfo?.[u]?.meaning?d`<span class="gloss">${s.avasthaInfo[u].meaning}</span>`:a}</td>`)}<td>${s.isRetrograde?d`<span class="retro">R</span>`:a}</td></tr>`})} ${this.renderModernRows()}</tbody></table></div>${this.renderCombustion()} ${this.renderPlanetaryWar()} ${this.renderInterpretations()} ${this.renderYogas()} ${this.renderHouses()}</div>`}renderModernRows(){let t=this.data?.modernPlanets??[];return t.length===0?a:t.map((e,r)=>{let o=wt(e.rashi)??"";return d`<tr class="modern ${r===0?"modern-first":""}"><td class="graha">${Le(e.planet,e.sanskritName)}</td><td>${o?d`<span class="glyph roxy-glyph">${o}</span>`:a}${e.rashi??""}</td><td>${typeof e.longitude=="number"?At(e.longitude):""}</td><td>${e.nakshatra?.name??""}</td><td>${e.nakshatra?.pada??""}</td><td>${e.nakshatra?.lord??""}</td><td></td><td></td><td></td><td></td><td>${e.isRetrograde?d`<span class="retro">R</span>`:a}</td></tr>`})}renderCombustion(){let t=this.data?.combustion??[];return t.length===0?a:d`<details class="panel" part="section combustion"><summary>${this.t("Combust grahas")}<span class="summary-count">${t.length}</span>${E()}</summary><div class="panel-body">${t.map(e=>{let r=Q(e.planet)??"",o=C(this.effectiveLang(),e.distanceFromSun,2),s=C(this.effectiveLang(),e.orb,1);return d`<div class="condition"><span class="planet">${H(r)} ${e.planet}</span> <span class="detail">${this.t("{{distance}} deg from Sun, within {{orb}} deg orb",{distance:o,orb:s})}</span></div>`})}</div></details>`}renderPlanetaryWar(){let t=this.data?.planetaryWar??[];return t.length===0?a:d`<details class="panel" part="section planetary-war"><summary>${this.t("Planetary wars")}<span class="summary-count">${t.length}</span>${E()}</summary><div class="panel-body">${t.map(e=>{let r=C(this.effectiveLang(),e.distance,2);return d`<div class="condition"><span class="planet">${this.t("{{first}} vs {{second}}",{first:e.planet1,second:e.planet2})}</span> <span class="detail">${this.t("{{distance}} deg apart",{distance:r})}</span> <span class="winner">${this.t("{{graha}} wins",{graha:e.winner})}</span></div>`})}</div></details>`}renderInterpretations(){if(this.hideReadings)return a;let t=this.data?.interpretations??{},e=this.orderedRows().map(([r,o])=>[o.graha??r,t[o.graha??r],o.avasthaInfo]).filter(([,r,o])=>r!=null||o!=null);return e.length===0?a:d`<details class="panel" part="section readings"><summary>${this.t("Interpretations")}<span class="summary-count">${e.length}</span>${E()}</summary><div class="panel-body">${e.map(([r,o,s])=>{let i=Q(r)??"";return d`<div class="interp"><span class="planet">${H(i)} ${r}</span> ${o?.rashi?d`<p><span class="label">${this.t("Rashi.")}</span> ${o.rashi}</p>`:a} ${o?.nakshatra?d`<p><span class="label">${this.t("Nakshatra.")}</span> ${o.nakshatra}</p>`:a} ${Ne.map(([c,l])=>s?.[c]?.interpretation?d`<p><span class="label">${this.t(l)}</span> ${s[c].interpretation}</p>`:a)}</div>`})}</div></details>`}renderHouses(){let t=(this.data?.houses??[]).filter(e=>e.name||e.description);return t.length===0?a:d`<details class="panel" part="section bhava-significations"><summary>${this.t("Bhava significations")}<span class="summary-count">${t.length}</span>${E()}</summary><div class="panel-body">${t.map(e=>d`<div class="bhava"><span class="name">${e.number}. ${e.name??""}</span> ${e.description?d`<p class="desc">${e.description}</p>`:a}</div>`)}</div></details>`}renderYogas(){let t=(this.data?.yogas??[]).filter(e=>e.present);return t.length===0?a:d`<details class="panel" part="section yogas"><summary>${this.t("Yogas")}<span class="summary-count">${t.length}</span>${E()}</summary><div class="panel-body">${t.map(e=>d`<div class="bhava"><span class="name">${e.name} ${e.quality?d`<span class="quality ${e.quality.toLowerCase()}">${e.quality}</span>`:a}</span> ${e.result?d`<p class="desc">${e.result}</p>`:a}</div>`)}</div></details>`}};P.endpoints=qt,P.styles=[it,Ue,Re,f`.wrap{overflow:hidden}.head{padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border)}h2,p{margin:0}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}:is(th,td):first-child{padding-inline-start:var(--roxy-space-md)}:is(th,td):last-child{padding-inline-end:var(--roxy-space-md)}tbody tr.lagna td:first-child{box-shadow:inset var(--roxy-line-thick) 0 0 var(--roxy-accent)}tbody tr.lagna .glyph{color:var(--roxy-accent-ink)}tbody tr.modern-first td{border-block-start:var(--roxy-line-thick) solid var(--roxy-border)}td.graha{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.gloss{color:var(--roxy-secondary);font-size:var(--roxy-text-xs);display:block}.retro{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}details.panel{border-block-start:1px solid var(--roxy-border)}details.panel>summary{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);padding:var(--roxy-space-sm) var(--roxy-space-md);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);display:flex}.summary-count{margin-inline:auto var(--roxy-space-xs);color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);font-variant-numeric:tabular-nums}.panel-body{gap:var(--roxy-space-sm);padding:0 var(--roxy-space-md) var(--roxy-space-md);font-size:var(--roxy-text-sm);grid-template-columns:minmax(0,1fr);display:grid}.condition{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}:is(.condition,.interp) .planet,.bhava .name{font-weight:var(--roxy-weight-bold)}.condition .detail{color:var(--roxy-muted);font-variant-numeric:tabular-nums}.condition .winner{color:var(--roxy-success-fg);font-weight:var(--roxy-weight-bold)}.interp,.bhava{gap:calc(var(--roxy-space-unit) / 2);display:grid}.interp .label{color:var(--roxy-muted);font-weight:var(--roxy-weight-bold)}.bhava .desc{color:var(--roxy-muted)}.quality{font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}.quality.positive{color:var(--roxy-success-fg)}.quality.negative{color:var(--roxy-danger-fg)}.quality.both{color:var(--roxy-muted)}`],P=h([Pe("roxy-vedic-planets-table")],P);return Be(Lr)})();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
var RoxyUI_western_planets_table=(()=>{var z=Object.defineProperty;var Pt=Object.getOwnPropertyDescriptor;var ze=Object.getOwnPropertyNames;var Be=Object.prototype.hasOwnProperty;var qe=(n,t)=>{for(var e in t)z(n,e,{get:t[e],enumerable:true})},Ye=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ze(t))!Be.call(n,o)&&o!==e&&z(n,o,{get:()=>t[o],enumerable:!(r=Pt(t,o))||r.enumerable});return n};var Ve=n=>Ye(z({},"__esModule",{value:true}),n),h=(n,t,e,r)=>{for(var o=r>1?void 0:r?Pt(t,e):t,i=n.length-1,s;i>=0;i--)(s=n[i])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&z(t,e,o),o};var Hn={};qe(Hn,{ROXY_UI_TOKENS_STYLE_ID:()=>tt,RoxyWesternPlanetsTable:()=>R,injectRoxyTokens:()=>et});var B=globalThis,q=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lt=Symbol(),Rt=new WeakMap,U=class{constructor(t,e,r){if(this._$cssResult$=true,r!==lt)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(q&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Rt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Rt.set(e,t))}return t}toString(){return this.cssText}},Ct=n=>new U(typeof n=="string"?n:n+"",void 0,lt),f=(n,...t)=>{let e=n.length===1?n[0]:t.reduce((r,o,i)=>r+(s=>{if(s._$cssResult$===true)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[i+1],n[0]);return new U(e,n,lt)},Ot=(n,t)=>{if(q)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=B.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,n.appendChild(r)}},ct=q?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Ct(e)})(n):n;var{is:We,defineProperty:Ze,getOwnPropertyDescriptor:Je,getOwnPropertyNames:Xe,getOwnPropertySymbols:Qe,getPrototypeOf:tn}=Object,Y=globalThis,Ft=Y.trustedTypes,en=Ft?Ft.emptyScript:"",nn=Y.reactiveElementPolyfillSupport,N=(n,t)=>n,M={toAttribute(n,t){switch(t){case Boolean:n=n?en:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},V=(n,t)=>!We(n,t),Lt={attribute:true,type:String,converter:M,reflect:false,useDefault:false,hasChanged:V};Symbol.metadata??=Symbol("metadata"),Y.litPropertyMetadata??=new WeakMap;var v=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Lt){if(e.state&&(e.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=true),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&Ze(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){let{get:o,set:i}=Je(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:o,set(s){let a=o?.call(this);i?.call(this,s),this.requestUpdate(t,a,r)},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??Lt}static _$Ei(){if(this.hasOwnProperty(N("elementProperties")))return;let t=tn(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(N("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(N("properties"))){let e=this.properties,r=[...Xe(e),...Qe(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,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 o of r)e.unshift(ct(o))}else t!==void 0&&e.push(ct(t));return e}static _$Eu(t,e){let r=e.attribute;return r===false?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,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 Ot(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),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),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===true){let i=(r.converter?.toAttribute!==void 0?r.converter:M).toAttribute(e,r.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=r.getPropertyOptions(o),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:M;this._$Em=o;let a=s.fromAttribute(e,i.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,e,r,o=false,i){if(t!==void 0){let s=this.constructor;if(o===false&&(i=this[t]),r??=s.getPropertyOptions(t),!((r.hasChanged??V)(i,e)||r.useDefault&&r.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:o,wrapped:i},s){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),i!==true||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),o===true&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=true;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[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,i]of r){let{wrapped:s}=i,a=this[o];s!==true||this._$AL.has(o)||a===void 0||this.C(o,void 0,i,a)}}let t=false,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=false,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=false}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[N("elementProperties")]=new Map,v[N("finalized")]=new Map,nn?.({ReactiveElement:v}),(Y.reactiveElementVersions??=[]).push("2.1.2");var ft=globalThis,Ut=n=>n,W=ft.trustedTypes,Nt=W?W.createPolicy("lit-html",{createHTML:n=>n}):void 0,Kt="$lit$",w=`lit$${Math.random().toFixed(9).slice(2)}$`,Ht="?"+w,rn=`<${Ht}>`,k=document,D=()=>k.createComment(""),G=n=>n===null||typeof n!="object"&&typeof n!="function",xt=Array.isArray,on=n=>xt(n)||typeof n?.[Symbol.iterator]=="function",pt=`[
|
|
2
2
|
\f\r]`,I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mt=/-->/g,It=/>/g,$=RegExp(`>|${pt}(?:([^\\s"'>=/]+)(${pt}*=${pt}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Dt=/'/g,Gt=/"/g,zt=/^(?:script|style|textarea|title)$/i,bt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),c=bt(1),Wn=bt(2),Zn=bt(3),A=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),jt=new WeakMap,T=k.createTreeWalker(k,129);function Bt(n,t){if(!xt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nt!==void 0?Nt.createHTML(t):t}var sn=(n,t)=>{let e=n.length-1,r=[],o,i=t===2?"<svg>":t===3?"<math>":"",s=I;for(let a=0;a<e;a++){let d=n[a],y,u,m=-1,b=0;for(;b<d.length&&(s.lastIndex=b,u=s.exec(d),u!==null);)b=s.lastIndex,s===I?u[1]==="!--"?s=Mt:u[1]!==void 0?s=It:u[2]!==void 0?(zt.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=$):u[3]!==void 0&&(s=$):s===$?u[0]===">"?(s=o??I,m=-1):u[1]===void 0?m=-2:(m=s.lastIndex-u[2].length,y=u[1],s=u[3]===void 0?$:u[3]==='"'?Gt:Dt):s===Gt||s===Dt?s=$:s===Mt||s===It?s=I:(s=$,o=void 0);let S=s===$&&n[a+1].startsWith("/>")?" ":"";i+=s===I?d+rn:m>=0?(r.push(y),d.slice(0,m)+Kt+d.slice(m)+w+S):d+w+(m===-2?a:S)}return[Bt(n,i+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},j=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let i=0,s=0,a=t.length-1,d=this.parts,[y,u]=sn(t,e);if(this.el=n.createElement(y,r),T.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=T.nextNode())!==null&&d.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let m of o.getAttributeNames())if(m.endsWith(Kt)){let b=u[s++],S=o.getAttribute(m).split(w),H=/([.?@])?(.*)/.exec(b);d.push({type:1,index:i,name:H[2],strings:S,ctor:H[1]==="."?ut:H[1]==="?"?mt:H[1]==="@"?yt:O}),o.removeAttribute(m)}else m.startsWith(w)&&(d.push({type:6,index:i}),o.removeAttribute(m));if(zt.test(o.tagName)){let m=o.textContent.split(w),b=m.length-1;if(b>0){o.textContent=W?W.emptyScript:"";for(let S=0;S<b;S++)o.append(m[S],D()),T.nextNode(),d.push({type:2,index:++i});o.append(m[b],D())}}}else if(o.nodeType===8)if(o.data===Ht)d.push({type:2,index:i});else{let m=-1;for(;(m=o.data.indexOf(w,m+1))!==-1;)d.push({type:7,index:i}),m+=w.length-1}i++}}static createElement(t,e){let r=k.createElement("template");return r.innerHTML=t,r}};function C(n,t,e=n,r){if(t===A)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,i=G(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(false),i===void 0?o=void 0:(o=new i(n),o._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=C(n,o._$AS(n,t.values),o,r)),t}var ht=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,o=(t?.creationScope??k).importNode(e,true);T.currentNode=o;let i=T.nextNode(),s=0,a=0,d=r[0];for(;d!==void 0;){if(s===d.index){let y;d.type===2?y=new K(i,i.nextSibling,this,t):d.type===1?y=new d.ctor(i,d.name,d.strings,this,t):d.type===6&&(y=new gt(i,this,t)),this._$AV.push(y),d=r[++a]}s!==d?.index&&(i=T.nextNode(),s++)}return T.currentNode=k,o}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++}},K=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??true}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=C(this,t,e),G(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==A&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):on(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!==l&&G(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=j.createElement(Bt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new ht(o,this),s=i.u(this.options);i.p(e),this.T(s),this._$AH=i}}_$AC(t){let e=jt.get(t.strings);return e===void 0&&jt.set(t.strings,e=new j(t)),e}k(t){xt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let i of t)o===e.length?e.push(r=new n(this.O(D()),this.O(D()),this,this.options)):r=e[o],r._$AI(i),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let r=Ut(t).nextSibling;Ut(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},O=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,i){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(t,e=this,r,o){let i=this.strings,s=false;if(i===void 0)t=C(this,t,e,0),s=!G(t)||t!==this._$AH&&t!==A,s&&(this._$AH=t);else{let a=t,d,y;for(t=i[0],d=0;d<i.length-1;d++)y=C(this,a[r+d],e,d),y===A&&(y=this._$AH[d]),s||=!G(y)||y!==this._$AH[d],y===l?t=l:t!==l&&(t+=(y??"")+i[d+1]),this._$AH[d]=y}s&&!o&&this.j(t)}j(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ut=class extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===l?void 0:t}},mt=class extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}},yt=class extends O{constructor(t,e,r,o,i){super(t,e,r,o,i),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??l)===A)return;let r=this._$AH,o=t===l&&r!==l||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==l&&(r===l||o);o&&this.element.removeEventListener(this.name,this,r),i&&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)}},gt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){C(this,t)}};var an=ft.litHtmlPolyfillSupport;an?.(j,K),(ft.litHtmlVersions??=[]).push("3.3.3");var qt=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let i=e?.renderBefore??null;r._$litPart$=o=new K(t.insertBefore(D(),i),i,void 0,e??{})}return o._$AI(n),o};var vt=globalThis,E=class extends v{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=qt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return A}};E._$litElement$=true,E.finalized=true,vt.litElementHydrateSupport?.({LitElement:E});var dn=vt.litElementPolyfillSupport;dn?.({LitElement:E});(vt.litElementVersions??=[]).push("4.2.2");var Yt=[{endpoint:"astrology/natal-chart",method:"POST"}];function Z(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function Vt(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}function Wt(n){return n.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var ln=new RegExp("(?![\\d#*])\\p{Emoji}","gu"),cn=n=>n.replace(ln,"$&\uFE0E"),J=n=>Object.fromEntries(Object.entries(n).map(([t,e])=>[t,cn(e)])),Zt=(n,t)=>t?n[Z(t)]:void 0,pn=J({sun:"\u2609",moon:"\u263D",mercury:"\u263F",venus:"\u2640",earth:"\u2641",mars:"\u2642",jupiter:"\u2643",saturn:"\u2644",uranus:"\u2645",neptune:"\u2646",pluto:"\u2BD3",rahu:"\u260A",ketu:"\u260B",ascendant:"Asc",midheaven:"MC","part of fortune":"\u2297",vertex:"Vx",lagna:"La","north node":"\u260A","south node":"\u260B",chiron:"\u26B7",lilith:"\u26B8","black moon lilith":"\u26B8"}),Jt=n=>Zt(pn,n);var hn=J({aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"}),Xt=n=>Zt(hn,n);var Qt=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],hr=J({conjunction:"\u260C",semisextile:"\u26BA","semi sextile":"\u26BA",semisquare:"\u2220","semi square":"\u2220",sextile:"\u26B9",square:"\u25A1",trine:"\u25B3",sesquiquadrate:"\u26BC",quincunx:"\u26BB",opposition:"\u260D"});var ur=J({heaven:"\u2630",lake:"\u2631",fire:"\u2632",thunder:"\u2633",wind:"\u2634",water:"\u2635",mountain:"\u2636",earth:"\u2637"});var te="\u211E";var un={attribute:true,type:String,converter:M,reflect:false,hasChanged:V},mn=(n=un,t,e)=>{let{kind:r,metadata:o}=e,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),r==="setter"&&((n=Object.create(n)).wrapped=true),i.set(e.name,n),r==="accessor"){let{name:s}=e;return{set(a){let d=t.get.call(this);t.set.call(this,a),this.requestUpdate(s,d,n,true,a)},init(a){return a!==void 0&&this.C(s,void 0,n,a),a}}}if(r==="setter"){let{name:s}=e;return function(a){let d=this[s];t.call(this,a),this.requestUpdate(s,d,n,true,a)}}throw Error("Unsupported decorator location: "+r)};function g(n){return(t,e)=>typeof e=="object"?mn(n,t,e):((r,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,r),s?Object.getOwnPropertyDescriptor(o,i):void 0})(n,t,e)}function x(n){return g({...n,state:true,attribute:false})}var _=n=>n??l;var ee=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function wt(n){if(n.lang)return n.lang;if(typeof document>"u")return;let t=n.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var yn={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function St(n,t){let e=n.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function ne(n,t=ee){let e=wt(n);if(!e)return;let r=St(e,t);if(r)return r;let o=e.toLowerCase().split("-"),i=o[0];if(i==="zh"){let s=o.find(a=>a==="hans"||a==="hant")??yn[o[1]??""];return s?St(`zh-${s}`,t):void 0}return St(i,t)}var ie="symbols";var gn={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},Et='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',re='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',oe='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',Q={"fraunces-jost":{name:"Fraunces with Jost",sans:Et,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:Et,display:Et},geist:{name:"Geist",sans:re,display:re},system:{name:"System",sans:oe,display:oe}};function se(n){let{sans:t,display:e}=Q[n];return Object.keys(gn).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var ae="1.6.2";var fn=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,xn=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function de(n,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(fn.exec(e.pathname)??xn.exec(e.pathname))?.[1];if(r!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${n}/dist`:`${e.origin}${r}`}var wn={},bn="color-mix(in oklab, var(--roxy-accent) 70%, black)",vn="var(--roxy-accent)",Sn="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",le=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function ce(n){return n!==void 0&&Object.hasOwn(Q,n)}function pe(n){let t=[];return n.brandColor&&le.test(n.brandColor)&&t.push(`--roxy-primary:${n.brandColor}`),n.brandAccent&&le.test(n.brandAccent)&&t.push(`--roxy-accent:${n.brandAccent}`,`--roxy-accent-ink:light-dark(${bn},${vn})`,`--roxy-ring:${Sn}`),t.join(";")}function he(n,t){if(ce(t))return t;let e=n.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=n.shadowRoot?.firstElementChild,i=o?.localName==="style"?o:null;i?.sheet&&(i.sheet.disabled=true);let s,a,d;try{let y=globalThis.getComputedStyle(n),u=m=>y.getPropertyValue(m).trim();s=u("--roxy-font-sans"),a=u("--roxy-font-display"),d=u("--roxy-font")}finally{i?.sheet&&(i.sheet.disabled=false)}if(!(s||a))return ce(d)?d:void 0}function ue(n){let{sans:t,display:e}=Q[n];return`--roxy-font:${n};--roxy-font-sans:${t};--roxy-font-display:${e}`}var me=de(ae,globalThis.document?.currentScript?.src||wn.url);function ye(n,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${n}`;if(document.getElementById(e))return;let r=document.createElement("link");r.id=e,r.rel="stylesheet",r.href=`${t}/styles/fonts/${n}.css`,document.head.append(r)}function ge(n,t=me){se(n).length>0&&ye(n,t)}function fe(n=me){ye(ie,n)}var xe='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var tt="roxy-ui-tokens";function et(){if(typeof document>"u")return null;let n=document.getElementById(tt);if(n)return n;let t=document.createElement("style");return t.id=tt,t.textContent=xe,document.head.prepend(t),t}var be="__ROXY_UI_I18N__";function $t(){let n=globalThis,t=n[be];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[be]=e,e}function En(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function ve(n,t,e){return En($n(n,t)??t,e)}function $n(n,t){if(!n)return;let{catalogs:e}=$t(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[Z(t)]}function Tn(n){if(!n)return;let{fieldLabels:t}=$t(),e=n.toLowerCase();return t[e]??t[e.split("-")[0]]}function Se(n,t){return Tn(n)?.fields[t]}function we(n){let{listeners:t}=$t();return t.add(n),()=>{t.delete(n)}}var nt=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=we(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var rt=class extends E{constructor(){super();this.translator=(e,r)=>this.t(e,r);new nt(this)}connectedCallback(){super.connectedCallback(),et()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&fe()}fontDeclarations(e){let r=he(this,e);return r?(ge(r),ue(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?c`<style>:host{${e}}</style>`:l}t(e,r){return ve(this.effectiveLang(),e,r)}effectiveLang(){return wt(this)}};var Ee=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function $e(n){return n?c`<span class="roxy-glyph" aria-hidden="true">${n}</span>`:l}var Te=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var kn=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,ot=[kn,Te,Ee];var An="__cols",_n="__rows";function Pn(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function it(n){if(Array.isArray(n)){let i=false,s=n.map(a=>{let d=it(a);return d!==a&&(i=true),d});return i?s:n}if(!Pn(n))return n;let t=n[An],e=n[_n];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(i=>{let s={};return t.forEach((a,d)=>{s[a]=it(i[d])}),s});let r=false,o={};for(let[i,s]of Object.entries(n)){let a=it(s);a!==s&&(r=true),o[i]=a}return r?o:n}function ke(n){return it(n)}function Ae(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var Rn="pk_live_YOUR_KEY",_e={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function Pe(n){if(n)return n===Rn?_e.sample:n.startsWith("pk_")?void 0:_e.secret}function Re(n,t,e={}){e.warn&&console.warn(t.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:true,composed:true}))}var Ce="https://roxyapi.com/api/v2";async function Cn(n){try{let t=await n.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:true,...t.code?{code:t.code}:{}}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:false}}var Oe={fromAttribute:n=>{if(n!=null){try{let t=JSON.parse(n);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},F=class extends Error{constructor(e,r=null,o=true,i,s){super(e);this.issues=r;this.worded=o;this.status=i;this.code=s}};function Fe(n){return n.submitUrl?void 0:Pe(n.publishableKey)}async function Tt(n,t,e){let r=Fe(n);if(r)throw new F(r.message);let o=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:On(t,n.submitContext),signal:e}):await Fn(n,t,e);if(!o.ok){let i=await Cn(o);throw new F(i.message,i.issues,i.worded,o.status,i.code)}return await o.json()}function On(n,t){return JSON.stringify(t?{...n,context:t}:n)}function Fn(n,t,e){let r=new URL(`${n.baseUrl??Ce}${t.path}`,document.baseURI);for(let[i,s]of Object.entries(t.query??{}))s!=null&&r.searchParams.set(i,String(s));let o={Accept:"application/json"};return n.publishableKey&&(o["X-API-Key"]=n.publishableKey),t.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:o,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var st=class{constructor(t){this.baseUrl=Ce;this.worded=true;this.failure={};this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=true,this.failure={};let e=Fe(this);if(e){this.host.error=e.message,Re(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let o=await Tt(this,t,r.signal);if(r.signal.aborted)return;this.host.data=o}catch(o){if(r.signal.aborted||o?.name==="AbortError")return;o instanceof F&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof F&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=false)}}};function Le(n,t,e,r=[]){let o={...e},i=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(y,u)=>{let m=o[u];return delete o[u],encodeURIComponent(String(m??""))}),s=new Set(r),a={},d={};for(let[y,u]of Object.entries(o))u===void 0||u===""||(t==="GET"||s.has(y)?a[y]=u:d[y]=u);return{path:i,method:t,query:a,body:t==="POST"?d:void 0}}function Ue(){return c`<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 Co=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var No=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function Ne(n,t,e){let r=n.filter(o=>!!o.body);return r.length===0?l:c`<section class="block" part="section readings"><h3>${e}</h3>${r.map((o,i)=>c`<details class="interp-card" part="reading" name="${t}" ?open="${i===0}"><summary><span class="interp-lead">${$e(o.glyph)} ${o.label}</span> ${Ue()} ${o.aside?c`<span class="interp-aside"><small>${o.aside}</small></span>`:l}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??l}</div></details>`)}</section>`}var Ln="roxy-data";function Un(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var at=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){if(this.host.data!=null)return;let t=this.read();t!==void 0&&(this.host.data=t,this.host.requestUpdate())}read(){let t=this.findInlineScript();return t?this.parse(t.textContent):void 0}findInlineScript(){for(let t of Array.from(this.host.children))if(Un(t)&&t.classList.contains(Ln))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends rt{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,o=this.listRows();if(!(!e||!r||!o)){this.moreLoading=true,this.moreError=null;try{let i=await Tt(this.fetcher,{...e,query:{...e.query,offset:o.length}});if(this.lastRequest!==e)return;let s=i[r];this.data={...this.data,...i,[r]:[...o,...Array.isArray(s)?s:[]]}}catch(i){this.lastRequest===e&&(this.moreError=i instanceof Error?i.message:String(i))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(Le(r.endpoint,r.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new at(this),this.fetcher=new st(this)}static{this.styles=[ot]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=ke(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:Ae(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return c`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:true,composed:true})),customElements.get("roxy-data")?c`<roxy-data .data="${e}" lang="${_(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(i=>i.trim().toLowerCase()).filter(i=>/^[a-z][a-z0-9-]*$/.test(i)),r=[pe(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return l;let o=(r?`:host{${r}}`:"")+e.map(i=>`[part~="${i}"],roxy-endpoint-form::part(${i}){display:none!important}`).join("");return c`<style>${o}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,o){return this.hideReadings?l:Ne(e,r,this.t(o??"Reading"))}renderResult(e){let r=c`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?c`${r}${this.renderAttribution()}`:r}renderWithForm(e){return c`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?l:this.renderErrorBanner(this.error):this.data==null?l:this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?l:e.length>=r?l:c`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?c`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:l}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let o=this.effectiveLang();o&&r.setAttribute("lang",o),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:ne(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return c`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(l):this.renderEmpty()}renderForm(){let e=this.selfFetch();return c`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${_(this.specUrl)}" publishable-key="${_(this.publishableKey)}" location-url="${_(this.locationUrl)}" submit-label="${_(this.submitLabel)}" lang="${_(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return c`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return c`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return r?c`${o}${this.renderForm()}`:o}renderErrorBanner(e){return c`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};h([g({attribute:false})],p.prototype,"data",2),h([g({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([g({type:String})],p.prototype,"method",2),h([g({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([g({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([g({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([g({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([g({attribute:"submit-context",converter:Oe})],p.prototype,"submitContext",2),h([g({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([g({type:Boolean})],p.prototype,"remember",2),h([g({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([g({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([g({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([g({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([g({type:String})],p.prototype,"font",2),h([g({type:String})],p.prototype,"hemisphere",2),h([g({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([g({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([g({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var Me=n=>t=>{customElements.get(n)||customElements.define(n,t)};function Nn(n){let t=n%360;return t<0?t+360:t}function Mn(n){let t=Nn(n),e=Math.floor(t/30)%12,r=t%30,o=Math.floor(r),i=(r-o)*60,s=Math.floor(i),a=Math.round((i-s)*60);return{sign:Qt[e]??"Aries",signIndex:e,degree:o,minute:s,second:a}}function kt(n,t){let{sign:e,degree:r,minute:o}=Mn(n);return`${r}\xB0 ${t||e} ${String(o).padStart(2,"0")}'`}var Ie=f`.roxy-facts{gap:var(--roxy-space-sm) var(--roxy-space-lg);margin:var(--roxy-space-sm) 0 0;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;flex-wrap:wrap;display:flex}.roxy-facts>div{min-width:0}.roxy-facts dd{overflow-wrap:anywhere;margin:0}`;var At=/^\d{4}-\d{2}-\d{2}$/,In=/^\d{4}-\d{2}$/,je=/^\d{2}:\d{2}(:\d{2})?$/,Dn=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,De=new Map;function dt(n){if(!n)return["en"];let t=De.get(n);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return De.set(n,e),[e,"en"]}var Ge=new Map;function Gn(n){let t=n??"",e=Ge.get(t);if(e)return e;let o={hour:new Intl.DateTimeFormat(dt(n),{timeStyle:"short",timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2e3,0,1,1))).find(i=>i.type==="hour")?.value?.length===2?"2-digit":"numeric",minute:"2-digit"};return Ge.set(t,o),o}function Ke(n){let t=je.test(n)?`1970-01-01T${n}`:At.test(n)?`${n}T00:00:00`:In.test(n)?`${n}-01T00:00:00`:Dn.test(n)?n.replace(" ","T"):null;return t?{d:new Date(`${t}Z`),timeZone:"UTC"}:{d:new Date(n)}}function jn(n,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:r}=Ke(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(dt(n),{month:"short",day:"numeric",year:"numeric",timeZone:r})}function P(n,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(dt(n),{maximumFractionDigits:e})}function He(n,t,e,r=false){let o=typeof t=="string"&&At.test(t)&&typeof e=="string"&&je.test(e)?`${t}T${e}`:t;if(typeof o!="string"||o.length===0)return"";if(At.test(o))return jn(n,o);let{d:i,timeZone:s}=Ke(o);return Number.isNaN(i.getTime())?o:i.toLocaleString(dt(n),{month:"short",day:"numeric",year:"numeric",...Gn(n),...r?{second:"2-digit"}:{},timeZone:s})}function _t(n,t,e){return Se(n,t)??e??Wt(t)}var Kn="Localized";function L(n,t,e){let r=n,o=r?.[`${t}${Kn}`];if(typeof o=="string"&&o!=="")return o;if(e!==void 0)return e;let i=r?.[t];return typeof i=="string"?i:""}var R=class extends p{rows(){let t=this.data;if(!t)return[];let e=(t.planets??[]).map(o=>({name:o.name,label:L(o,"name"),sign:o.sign,signLabel:L(o,"sign"),longitude:o.longitude,latitude:o.latitude,house:o.house,speed:o.speed,isRetrograde:o.isRetrograde,dignity:o.dignity})),r=[["Ascendant",t.ascendant],["Midheaven",t.midheaven],["Part of Fortune",t.partOfFortune],["Vertex",t.vertex]];for(let[o,i]of r)i&&e.push({name:o,label:this.t(o),sign:i.sign,signLabel:L(i,"sign"),longitude:i.longitude,house:"house"in i?i.house:void 0,sect:"sect"in i?i.sect:void 0,isPoint:true});return e}renderData(t){if(!t.planets)return this.renderEmpty();let e=this.rows(),r=t.birthDetails,o=e.some(a=>Number.isFinite(a.latitude)),i=e.some(a=>a.sect),s=["latitude","longitude","timezone"];return c`<div class="wrap" part="card"><header part="header"><h2>${this.t("Planetary positions")}</h2>${r?c`<div part="details"><p class="roxy-label">${He(this.effectiveLang(),r.date,r.time,true)}</p><dl class="roxy-facts">${s.map(a=>c`<div><dt>${_t(this.effectiveLang(),a)}</dt><dd>${P(this.effectiveLang(),r[a],5)}</dd></div>`)}</dl></div>`:l}</header><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Western planetary positions")}"><table part="table"><caption class="roxy-sr-only">${this.t("Western planetary positions: each body with its sign, degree, house, essential dignity and motion. The dignity cell is blank for the lunar nodes, Chiron and Lilith, which rule no sign and therefore hold no dignity at all.")}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Longitude")}</th>${o?c`<th scope="col">${_t(this.effectiveLang(),"latitude")}</th>`:l}<th scope="col">${this.t("House")}</th><th scope="col">${this.t("Dignity")}</th><th scope="col">${this.t("Motion")}</th>${i?c`<th scope="col">${this.t("Sect")}</th>`:l}</tr></thead><tbody>${e.map(a=>{let d=Jt(a.name)??"",y=a.sect==="day"?this.t("Daytime"):a.sect==="night"?this.t("Night"):"",u=Xt(a.sign)??"",m=typeof a.speed=="number"?P(this.effectiveLang(),a.speed,6):"";return c`<tr class="${a.isPoint?"point":""}"><td class="body">${d?c`<span class="glyph roxy-glyph">${d}</span>`:l}${a.label}</td><td>${u?c`<span class="glyph roxy-glyph">${u}</span>`:l}${a.signLabel??""}</td><td>${typeof a.longitude=="number"?kt(a.longitude,a.signLabel):""}</td><td>${typeof a.longitude=="number"?`${P(this.effectiveLang(),a.longitude,5)}\xB0`:l}</td>${o?c`<td>${typeof a.latitude=="number"?`${P(this.effectiveLang(),a.latitude,5)}\xB0`:l}</td>`:l}<td>${typeof a.house=="number"?a.house:""}</td><td class="dignity">${a.dignity?Vt(a.dignity):""}</td><td>${m?c`${m}${this.t("\xB0/day")}`:l} ${a.isRetrograde?c`<span class="retro roxy-glyph">${te}</span>`:l}</td>${i?c`<td>${y}</td>`:l}</tr>`})}</tbody></table></div>${t.houses?.length?c`<details part="section houses"><summary>${this.t("Houses")}</summary><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Houses")}"><table part="table"><thead><tr><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Longitude")}</th></tr></thead><tbody>${t.houses.map(a=>c`<tr><th scope="row">${P(this.effectiveLang(),a.number,0)}</th><td>${L(a,"sign")}</td><td>${kt(a.longitude,L(a,"sign"))}</td><td>${P(this.effectiveLang(),a.longitude,5)}°</td></tr>`)}</tbody></table></div></details>`:l}</div>`}};R.endpoints=Yt,R.styles=[ot,Ie,f`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}h2{overflow-wrap:anywhere}.scroll{min-width:0;overflow-x:auto}table{width:100%}:is(th,td){white-space:nowrap}tr:not(.point)+tr.point>*{border-block-start:1px solid var(--roxy-secondary)}td.body{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.retro{color:var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold)}details>summary{font-weight:var(--roxy-weight-bold)}details>.scroll{margin-block-start:var(--roxy-space-sm)}`],R=h([Me("roxy-western-planets-table")],R);return Ve(Hn)})();
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Dt=/'/g,Gt=/"/g,zt=/^(?:script|style|textarea|title)$/i,bt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),c=bt(1),Wn=bt(2),Zn=bt(3),A=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),jt=new WeakMap,T=k.createTreeWalker(k,129);function Bt(n,t){if(!xt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nt!==void 0?Nt.createHTML(t):t}var sn=(n,t)=>{let e=n.length-1,r=[],o,i=t===2?"<svg>":t===3?"<math>":"",s=I;for(let a=0;a<e;a++){let d=n[a],y,u,m=-1,b=0;for(;b<d.length&&(s.lastIndex=b,u=s.exec(d),u!==null);)b=s.lastIndex,s===I?u[1]==="!--"?s=Mt:u[1]!==void 0?s=It:u[2]!==void 0?(zt.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=$):u[3]!==void 0&&(s=$):s===$?u[0]===">"?(s=o??I,m=-1):u[1]===void 0?m=-2:(m=s.lastIndex-u[2].length,y=u[1],s=u[3]===void 0?$:u[3]==='"'?Gt:Dt):s===Gt||s===Dt?s=$:s===Mt||s===It?s=I:(s=$,o=void 0);let S=s===$&&n[a+1].startsWith("/>")?" ":"";i+=s===I?d+rn:m>=0?(r.push(y),d.slice(0,m)+Kt+d.slice(m)+w+S):d+w+(m===-2?a:S)}return[Bt(n,i+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},j=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let i=0,s=0,a=t.length-1,d=this.parts,[y,u]=sn(t,e);if(this.el=n.createElement(y,r),T.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=T.nextNode())!==null&&d.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let m of o.getAttributeNames())if(m.endsWith(Kt)){let b=u[s++],S=o.getAttribute(m).split(w),H=/([.?@])?(.*)/.exec(b);d.push({type:1,index:i,name:H[2],strings:S,ctor:H[1]==="."?ut:H[1]==="?"?mt:H[1]==="@"?yt:O}),o.removeAttribute(m)}else m.startsWith(w)&&(d.push({type:6,index:i}),o.removeAttribute(m));if(zt.test(o.tagName)){let m=o.textContent.split(w),b=m.length-1;if(b>0){o.textContent=W?W.emptyScript:"";for(let S=0;S<b;S++)o.append(m[S],D()),T.nextNode(),d.push({type:2,index:++i});o.append(m[b],D())}}}else if(o.nodeType===8)if(o.data===Ht)d.push({type:2,index:i});else{let m=-1;for(;(m=o.data.indexOf(w,m+1))!==-1;)d.push({type:7,index:i}),m+=w.length-1}i++}}static createElement(t,e){let r=k.createElement("template");return r.innerHTML=t,r}};function C(n,t,e=n,r){if(t===A)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,i=G(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(false),i===void 0?o=void 0:(o=new i(n),o._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=C(n,o._$AS(n,t.values),o,r)),t}var ht=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,o=(t?.creationScope??k).importNode(e,true);T.currentNode=o;let i=T.nextNode(),s=0,a=0,d=r[0];for(;d!==void 0;){if(s===d.index){let y;d.type===2?y=new K(i,i.nextSibling,this,t):d.type===1?y=new d.ctor(i,d.name,d.strings,this,t):d.type===6&&(y=new gt(i,this,t)),this._$AV.push(y),d=r[++a]}s!==d?.index&&(i=T.nextNode(),s++)}return T.currentNode=k,o}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++}},K=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??true}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=C(this,t,e),G(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==A&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):on(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!==l&&G(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=j.createElement(Bt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new ht(o,this),s=i.u(this.options);i.p(e),this.T(s),this._$AH=i}}_$AC(t){let e=jt.get(t.strings);return e===void 0&&jt.set(t.strings,e=new j(t)),e}k(t){xt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let i of t)o===e.length?e.push(r=new n(this.O(D()),this.O(D()),this,this.options)):r=e[o],r._$AI(i),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let r=Ut(t).nextSibling;Ut(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},O=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,i){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(t,e=this,r,o){let i=this.strings,s=false;if(i===void 0)t=C(this,t,e,0),s=!G(t)||t!==this._$AH&&t!==A,s&&(this._$AH=t);else{let a=t,d,y;for(t=i[0],d=0;d<i.length-1;d++)y=C(this,a[r+d],e,d),y===A&&(y=this._$AH[d]),s||=!G(y)||y!==this._$AH[d],y===l?t=l:t!==l&&(t+=(y??"")+i[d+1]),this._$AH[d]=y}s&&!o&&this.j(t)}j(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ut=class extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===l?void 0:t}},mt=class extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}},yt=class extends O{constructor(t,e,r,o,i){super(t,e,r,o,i),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??l)===A)return;let r=this._$AH,o=t===l&&r!==l||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==l&&(r===l||o);o&&this.element.removeEventListener(this.name,this,r),i&&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)}},gt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){C(this,t)}};var an=ft.litHtmlPolyfillSupport;an?.(j,K),(ft.litHtmlVersions??=[]).push("3.3.3");var qt=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let i=e?.renderBefore??null;r._$litPart$=o=new K(t.insertBefore(D(),i),i,void 0,e??{})}return o._$AI(n),o};var vt=globalThis,E=class extends v{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=qt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return A}};E._$litElement$=true,E.finalized=true,vt.litElementHydrateSupport?.({LitElement:E});var dn=vt.litElementPolyfillSupport;dn?.({LitElement:E});(vt.litElementVersions??=[]).push("4.2.2");var Yt=[{endpoint:"astrology/natal-chart",method:"POST"}];function Z(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function Vt(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}function Wt(n){return n.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var ln=new RegExp("(?![\\d#*])\\p{Emoji}","gu"),cn=n=>n.replace(ln,"$&\uFE0E"),J=n=>Object.fromEntries(Object.entries(n).map(([t,e])=>[t,cn(e)])),Zt=(n,t)=>t?n[Z(t)]:void 0,pn=J({sun:"\u2609",moon:"\u263D",mercury:"\u263F",venus:"\u2640",earth:"\u2641",mars:"\u2642",jupiter:"\u2643",saturn:"\u2644",uranus:"\u2645",neptune:"\u2646",pluto:"\u2BD3",rahu:"\u260A",ketu:"\u260B",ascendant:"Asc",midheaven:"MC","part of fortune":"\u2297",vertex:"Vx",lagna:"La","north node":"\u260A","south node":"\u260B",chiron:"\u26B7",lilith:"\u26B8","black moon lilith":"\u26B8"}),Jt=n=>Zt(pn,n);var hn=J({aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"}),Xt=n=>Zt(hn,n);var Qt=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],hr=J({conjunction:"\u260C",semisextile:"\u26BA","semi sextile":"\u26BA",semisquare:"\u2220","semi square":"\u2220",sextile:"\u26B9",square:"\u25A1",trine:"\u25B3",sesquiquadrate:"\u26BC",quincunx:"\u26BB",opposition:"\u260D"});var ur=J({heaven:"\u2630",lake:"\u2631",fire:"\u2632",thunder:"\u2633",wind:"\u2634",water:"\u2635",mountain:"\u2636",earth:"\u2637"});var te="\u211E";var un={attribute:true,type:String,converter:M,reflect:false,hasChanged:V},mn=(n=un,t,e)=>{let{kind:r,metadata:o}=e,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),r==="setter"&&((n=Object.create(n)).wrapped=true),i.set(e.name,n),r==="accessor"){let{name:s}=e;return{set(a){let d=t.get.call(this);t.set.call(this,a),this.requestUpdate(s,d,n,true,a)},init(a){return a!==void 0&&this.C(s,void 0,n,a),a}}}if(r==="setter"){let{name:s}=e;return function(a){let d=this[s];t.call(this,a),this.requestUpdate(s,d,n,true,a)}}throw Error("Unsupported decorator location: "+r)};function g(n){return(t,e)=>typeof e=="object"?mn(n,t,e):((r,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,r),s?Object.getOwnPropertyDescriptor(o,i):void 0})(n,t,e)}function x(n){return g({...n,state:true,attribute:false})}var _=n=>n??l;var ee=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function wt(n){if(n.lang)return n.lang;if(typeof document>"u")return;let t=n.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var yn={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function St(n,t){let e=n.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function ne(n,t=ee){let e=wt(n);if(!e)return;let r=St(e,t);if(r)return r;let o=e.toLowerCase().split("-"),i=o[0];if(i==="zh"){let s=o.find(a=>a==="hans"||a==="hant")??yn[o[1]??""];return s?St(`zh-${s}`,t):void 0}return St(i,t)}var ie="symbols";var gn={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},Et='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',re='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',oe='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',Q={"fraunces-jost":{name:"Fraunces with Jost",sans:Et,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:Et,display:Et},geist:{name:"Geist",sans:re,display:re},system:{name:"System",sans:oe,display:oe}};function se(n){let{sans:t,display:e}=Q[n];return Object.keys(gn).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var ae="1.8.0";var fn=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,xn=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function de(n,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(fn.exec(e.pathname)??xn.exec(e.pathname))?.[1];if(r!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${n}/dist`:`${e.origin}${r}`}var wn={},bn="color-mix(in oklab, var(--roxy-accent) 70%, black)",vn="var(--roxy-accent)",Sn="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",le=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function ce(n){return n!==void 0&&Object.hasOwn(Q,n)}function pe(n){let t=[];return n.brandColor&&le.test(n.brandColor)&&t.push(`--roxy-primary:${n.brandColor}`),n.brandAccent&&le.test(n.brandAccent)&&t.push(`--roxy-accent:${n.brandAccent}`,`--roxy-accent-ink:light-dark(${bn},${vn})`,`--roxy-ring:${Sn}`),t.join(";")}function he(n,t){if(ce(t))return t;let e=n.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=n.shadowRoot?.firstElementChild,i=o?.localName==="style"?o:null;i?.sheet&&(i.sheet.disabled=true);let s,a,d;try{let y=globalThis.getComputedStyle(n),u=m=>y.getPropertyValue(m).trim();s=u("--roxy-font-sans"),a=u("--roxy-font-display"),d=u("--roxy-font")}finally{i?.sheet&&(i.sheet.disabled=false)}if(!(s||a))return ce(d)?d:void 0}function ue(n){let{sans:t,display:e}=Q[n];return`--roxy-font:${n};--roxy-font-sans:${t};--roxy-font-display:${e}`}var me=de(ae,globalThis.document?.currentScript?.src||wn.url);function ye(n,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${n}`;if(document.getElementById(e))return;let r=document.createElement("link");r.id=e,r.rel="stylesheet",r.href=`${t}/styles/fonts/${n}.css`,document.head.append(r)}function ge(n,t=me){se(n).length>0&&ye(n,t)}function fe(n=me){ye(ie,n)}var xe='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var tt="roxy-ui-tokens";function et(){if(typeof document>"u")return null;let n=document.getElementById(tt);if(n)return n;let t=document.createElement("style");return t.id=tt,t.textContent=xe,document.head.prepend(t),t}var be="__ROXY_UI_I18N__";function $t(){let n=globalThis,t=n[be];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[be]=e,e}function En(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function ve(n,t,e){return En($n(n,t)??t,e)}function $n(n,t){if(!n)return;let{catalogs:e}=$t(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[Z(t)]}function Tn(n){if(!n)return;let{fieldLabels:t}=$t(),e=n.toLowerCase();return t[e]??t[e.split("-")[0]]}function Se(n,t){return Tn(n)?.fields[t]}function we(n){let{listeners:t}=$t();return t.add(n),()=>{t.delete(n)}}var nt=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=we(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var rt=class extends E{constructor(){super();this.translator=(e,r)=>this.t(e,r);new nt(this)}connectedCallback(){super.connectedCallback(),et()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&fe()}fontDeclarations(e){let r=he(this,e);return r?(ge(r),ue(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?c`<style>:host{${e}}</style>`:l}t(e,r){return ve(this.effectiveLang(),e,r)}effectiveLang(){return wt(this)}};var Ee=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function $e(n){return n?c`<span class="roxy-glyph" aria-hidden="true">${n}</span>`:l}var Te=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var kn=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,ot=[kn,Te,Ee];var An="__cols",_n="__rows";function Pn(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function it(n){if(Array.isArray(n)){let i=false,s=n.map(a=>{let d=it(a);return d!==a&&(i=true),d});return i?s:n}if(!Pn(n))return n;let t=n[An],e=n[_n];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(i=>{let s={};return t.forEach((a,d)=>{s[a]=it(i[d])}),s});let r=false,o={};for(let[i,s]of Object.entries(n)){let a=it(s);a!==s&&(r=true),o[i]=a}return r?o:n}function ke(n){return it(n)}function Ae(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var Rn="pk_live_YOUR_KEY",_e={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function Pe(n){if(n)return n===Rn?_e.sample:n.startsWith("pk_")?void 0:_e.secret}function Re(n,t,e={}){e.warn&&console.warn(t.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:true,composed:true}))}var Ce="https://roxyapi.com/api/v2";async function Cn(n){try{let t=await n.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:true,...t.code?{code:t.code}:{}}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:false}}var Oe={fromAttribute:n=>{if(n!=null){try{let t=JSON.parse(n);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},F=class extends Error{constructor(e,r=null,o=true,i,s){super(e);this.issues=r;this.worded=o;this.status=i;this.code=s}};function Fe(n){return n.submitUrl?void 0:Pe(n.publishableKey)}async function Tt(n,t,e){let r=Fe(n);if(r)throw new F(r.message);let o=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:On(t,n.submitContext),signal:e}):await Fn(n,t,e);if(!o.ok){let i=await Cn(o);throw new F(i.message,i.issues,i.worded,o.status,i.code)}return await o.json()}function On(n,t){return JSON.stringify(t?{...n,context:t}:n)}function Fn(n,t,e){let r=new URL(`${n.baseUrl??Ce}${t.path}`,document.baseURI);for(let[i,s]of Object.entries(t.query??{}))s!=null&&r.searchParams.set(i,String(s));let o={Accept:"application/json"};return n.publishableKey&&(o["X-API-Key"]=n.publishableKey),t.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:o,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var st=class{constructor(t){this.baseUrl=Ce;this.worded=true;this.failure={};this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=true,this.failure={};let e=Fe(this);if(e){this.host.error=e.message,Re(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let o=await Tt(this,t,r.signal);if(r.signal.aborted)return;this.host.data=o}catch(o){if(r.signal.aborted||o?.name==="AbortError")return;o instanceof F&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof F&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=false)}}};function Le(n,t,e,r=[]){let o={...e},i=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(y,u)=>{let m=o[u];return delete o[u],encodeURIComponent(String(m??""))}),s=new Set(r),a={},d={};for(let[y,u]of Object.entries(o))u===void 0||u===""||(t==="GET"||s.has(y)?a[y]=u:d[y]=u);return{path:i,method:t,query:a,body:t==="POST"?d:void 0}}function Ue(){return c`<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 Co=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var No=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function Ne(n,t,e,r=false){let o=n.filter(i=>!!i.body);return o.length===0?l:c`<section class="block" part="section readings"><h3>${e}</h3>${o.map((i,s)=>c`<details class="interp-card" part="reading" name="${t}" ?open="${s===0&&!r}"><summary><span class="interp-lead">${$e(i.glyph)} ${i.label}</span> ${Ue()} ${i.aside?c`<span class="interp-aside"><small>${i.aside}</small></span>`:l}</summary><div class="interp-body"><p>${i.body}</p>${i.extra??l}</div></details>`)}</section>`}var Ln="roxy-data";function Un(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var at=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){if(this.host.data!=null)return;let t=this.read();t!==void 0&&(this.host.data=t,this.host.requestUpdate())}read(){let t=this.findInlineScript();return t?this.parse(t.textContent):void 0}findInlineScript(){for(let t of Array.from(this.host.children))if(Un(t)&&t.classList.contains(Ln))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends rt{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,o=this.listRows();if(!(!e||!r||!o)){this.moreLoading=true,this.moreError=null;try{let i=await Tt(this.fetcher,{...e,query:{...e.query,offset:o.length}});if(this.lastRequest!==e)return;let s=i[r];this.data={...this.data,...i,[r]:[...o,...Array.isArray(s)?s:[]]}}catch(i){this.lastRequest===e&&(this.moreError=i instanceof Error?i.message:String(i))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(Le(r.endpoint,r.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new at(this),this.fetcher=new st(this)}static{this.styles=[ot]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=ke(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:Ae(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return c`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:true,composed:true})),customElements.get("roxy-data")?c`<roxy-data .data="${e}" lang="${_(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(i=>i.trim().toLowerCase()).filter(i=>/^[a-z][a-z0-9-]*$/.test(i)),r=[pe(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return l;let o=(r?`:host{${r}}`:"")+e.map(i=>`[part~="${i}"],roxy-endpoint-form::part(${i}){display:none!important}`).join("");return c`<style>${o}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,o,i=false){return this.hideReadings?l:Ne(e,r,this.t(o??"Reading"),i)}renderResult(e){let r=c`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?c`${r}${this.renderAttribution()}`:r}renderWithForm(e){return c`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?l:this.renderErrorBanner(this.error):this.data==null?l:this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?l:e.length>=r?l:c`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?c`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:l}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let o=this.effectiveLang();o&&r.setAttribute("lang",o),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:ne(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return c`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(l):this.renderEmpty()}renderForm(){let e=this.selfFetch();return c`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${_(this.specUrl)}" publishable-key="${_(this.publishableKey)}" location-url="${_(this.locationUrl)}" submit-label="${_(this.submitLabel)}" lang="${_(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return c`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return c`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return r?c`${o}${this.renderForm()}`:o}renderErrorBanner(e){return c`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};h([g({attribute:false})],p.prototype,"data",2),h([g({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([g({type:String})],p.prototype,"method",2),h([g({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([g({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([g({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([g({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([g({attribute:"submit-context",converter:Oe})],p.prototype,"submitContext",2),h([g({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([g({type:Boolean})],p.prototype,"remember",2),h([g({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([g({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([g({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([g({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([g({type:String})],p.prototype,"font",2),h([g({type:String})],p.prototype,"hemisphere",2),h([g({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([g({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([g({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var Me=n=>t=>{customElements.get(n)||customElements.define(n,t)};function Nn(n){let t=n%360;return t<0?t+360:t}function Mn(n){let t=Nn(n),e=Math.floor(t/30)%12,r=t%30,o=Math.floor(r),i=(r-o)*60,s=Math.floor(i),a=Math.round((i-s)*60);return{sign:Qt[e]??"Aries",signIndex:e,degree:o,minute:s,second:a}}function kt(n,t){let{sign:e,degree:r,minute:o}=Mn(n);return`${r}\xB0 ${t||e} ${String(o).padStart(2,"0")}'`}var Ie=f`.roxy-facts{gap:var(--roxy-space-sm) var(--roxy-space-lg);margin:var(--roxy-space-sm) 0 0;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;flex-wrap:wrap;display:flex}.roxy-facts>div{min-width:0}.roxy-facts dd{overflow-wrap:anywhere;margin:0}`;var At=/^\d{4}-\d{2}-\d{2}$/,In=/^\d{4}-\d{2}$/,je=/^\d{2}:\d{2}(:\d{2})?$/,Dn=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,De=new Map;function dt(n){if(!n)return["en"];let t=De.get(n);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return De.set(n,e),[e,"en"]}var Ge=new Map;function Gn(n){let t=n??"",e=Ge.get(t);if(e)return e;let o={hour:new Intl.DateTimeFormat(dt(n),{timeStyle:"short",timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2e3,0,1,1))).find(i=>i.type==="hour")?.value?.length===2?"2-digit":"numeric",minute:"2-digit"};return Ge.set(t,o),o}function Ke(n){let t=je.test(n)?`1970-01-01T${n}`:At.test(n)?`${n}T00:00:00`:In.test(n)?`${n}-01T00:00:00`:Dn.test(n)?n.replace(" ","T"):null;return t?{d:new Date(`${t}Z`),timeZone:"UTC"}:{d:new Date(n)}}function jn(n,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:r}=Ke(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(dt(n),{month:"short",day:"numeric",year:"numeric",timeZone:r})}function P(n,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(dt(n),{maximumFractionDigits:e})}function He(n,t,e,r=false){let o=typeof t=="string"&&At.test(t)&&typeof e=="string"&&je.test(e)?`${t}T${e}`:t;if(typeof o!="string"||o.length===0)return"";if(At.test(o))return jn(n,o);let{d:i,timeZone:s}=Ke(o);return Number.isNaN(i.getTime())?o:i.toLocaleString(dt(n),{month:"short",day:"numeric",year:"numeric",...Gn(n),...r?{second:"2-digit"}:{},timeZone:s})}function _t(n,t,e){return Se(n,t)??e??Wt(t)}var Kn="Localized";function L(n,t,e){let r=n,o=r?.[`${t}${Kn}`];if(typeof o=="string"&&o!=="")return o;if(e!==void 0)return e;let i=r?.[t];return typeof i=="string"?i:""}var R=class extends p{rows(){let t=this.data;if(!t)return[];let e=(t.planets??[]).map(o=>({name:o.name,label:L(o,"name"),sign:o.sign,signLabel:L(o,"sign"),longitude:o.longitude,latitude:o.latitude,house:o.house,speed:o.speed,isRetrograde:o.isRetrograde,dignity:o.dignity})),r=[["Ascendant",t.ascendant],["Midheaven",t.midheaven],["Part of Fortune",t.partOfFortune],["Vertex",t.vertex]];for(let[o,i]of r)i&&e.push({name:o,label:this.t(o),sign:i.sign,signLabel:L(i,"sign"),longitude:i.longitude,house:"house"in i?i.house:void 0,sect:"sect"in i?i.sect:void 0,isPoint:true});return e}renderData(t){if(!t.planets)return this.renderEmpty();let e=this.rows(),r=t.birthDetails,o=e.some(a=>Number.isFinite(a.latitude)),i=e.some(a=>a.sect),s=["latitude","longitude","timezone"];return c`<div class="wrap" part="card"><header part="header"><h2>${this.t("Planetary positions")}</h2>${r?c`<div part="details"><p class="roxy-label">${He(this.effectiveLang(),r.date,r.time,true)}</p><dl class="roxy-facts">${s.map(a=>c`<div><dt>${_t(this.effectiveLang(),a)}</dt><dd>${P(this.effectiveLang(),r[a],5)}</dd></div>`)}</dl></div>`:l}</header><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Western planetary positions")}"><table part="table"><caption class="roxy-sr-only">${this.t("Western planetary positions: each body with its sign, degree, house, essential dignity and motion. The dignity cell is blank for the lunar nodes, Chiron and Lilith, which rule no sign and therefore hold no dignity at all.")}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Longitude")}</th>${o?c`<th scope="col">${_t(this.effectiveLang(),"latitude")}</th>`:l}<th scope="col">${this.t("House")}</th><th scope="col">${this.t("Dignity")}</th><th scope="col">${this.t("Motion")}</th>${i?c`<th scope="col">${this.t("Sect")}</th>`:l}</tr></thead><tbody>${e.map(a=>{let d=Jt(a.name)??"",y=a.sect==="day"?this.t("Daytime"):a.sect==="night"?this.t("Night"):"",u=Xt(a.sign)??"",m=typeof a.speed=="number"?P(this.effectiveLang(),a.speed,6):"";return c`<tr class="${a.isPoint?"point":""}"><td class="body">${d?c`<span class="glyph roxy-glyph">${d}</span>`:l}${a.label}</td><td>${u?c`<span class="glyph roxy-glyph">${u}</span>`:l}${a.signLabel??""}</td><td>${typeof a.longitude=="number"?kt(a.longitude,a.signLabel):""}</td><td>${typeof a.longitude=="number"?`${P(this.effectiveLang(),a.longitude,5)}\xB0`:l}</td>${o?c`<td>${typeof a.latitude=="number"?`${P(this.effectiveLang(),a.latitude,5)}\xB0`:l}</td>`:l}<td>${typeof a.house=="number"?a.house:""}</td><td class="dignity">${a.dignity?Vt(a.dignity):""}</td><td>${m?c`${m}${this.t("\xB0/day")}`:l} ${a.isRetrograde?c`<span class="retro roxy-glyph">${te}</span>`:l}</td>${i?c`<td>${y}</td>`:l}</tr>`})}</tbody></table></div>${t.houses?.length?c`<details part="section houses"><summary>${this.t("Houses")}</summary><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Houses")}"><table part="table"><thead><tr><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Longitude")}</th></tr></thead><tbody>${t.houses.map(a=>c`<tr><th scope="row">${P(this.effectiveLang(),a.number,0)}</th><td>${L(a,"sign")}</td><td>${kt(a.longitude,L(a,"sign"))}</td><td>${P(this.effectiveLang(),a.longitude,5)}°</td></tr>`)}</tbody></table></div></details>`:l}</div>`}};R.endpoints=Yt,R.styles=[ot,Ie,f`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}h2{overflow-wrap:anywhere}.scroll{min-width:0;overflow-x:auto}table{width:100%}:is(th,td){white-space:nowrap}tr:not(.point)+tr.point>*{border-block-start:1px solid var(--roxy-secondary)}td.body{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.retro{color:var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold)}details>summary{font-weight:var(--roxy-weight-bold)}details>.scroll{margin-block-start:var(--roxy-space-sm)}`],R=h([Me("roxy-western-planets-table")],R);return Ve(Hn)})();
|