@roxyapi/ui 1.7.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/components-catalog.json +1 -1
  2. package/dist/cdn/components/almanac-day.js +2 -2
  3. package/dist/cdn/components/angel-number-card.js +3 -3
  4. package/dist/cdn/components/angel-number-lookup.js +2 -2
  5. package/dist/cdn/components/arudha-padas.js +1 -1
  6. package/dist/cdn/components/ashtakavarga-grid.js +2 -2
  7. package/dist/cdn/components/aspects-table.js +2 -2
  8. package/dist/cdn/components/astrocartography-map.js +3 -3
  9. package/dist/cdn/components/bazi-chart.js +2 -2
  10. package/dist/cdn/components/bhav-chalit-table.js +2 -2
  11. package/dist/cdn/components/bhava-bala-table.js +1 -1
  12. package/dist/cdn/components/biorhythm-chart.js +2 -2
  13. package/dist/cdn/components/bodygraph.js +3 -3
  14. package/dist/cdn/components/chara-karakas.js +1 -1
  15. package/dist/cdn/components/choghadiya-grid.js +1 -1
  16. package/dist/cdn/components/compatibility-card.js +1 -1
  17. package/dist/cdn/components/compound-number.js +1 -1
  18. package/dist/cdn/components/crystal-card.js +1 -1
  19. package/dist/cdn/components/crystal-grid.js +1 -1
  20. package/dist/cdn/components/dasha-timeline.js +2 -2
  21. package/dist/cdn/components/data.js +1 -1
  22. package/dist/cdn/components/divisional-chart.js +1 -1
  23. package/dist/cdn/components/dosha-card.js +1 -1
  24. package/dist/cdn/components/dosha-constitution.js +1 -1
  25. package/dist/cdn/components/dream-card.js +1 -1
  26. package/dist/cdn/components/dream-search.js +1 -1
  27. package/dist/cdn/components/endpoint-form.js +1 -1
  28. package/dist/cdn/components/ephemeris-table.js +1 -1
  29. package/dist/cdn/components/fixed-stars.js +1 -1
  30. package/dist/cdn/components/flying-star-chart.js +1 -1
  31. package/dist/cdn/components/forecast-digest.js +1 -1
  32. package/dist/cdn/components/forecast-timeline.js +2 -2
  33. package/dist/cdn/components/gematria.js +1 -1
  34. package/dist/cdn/components/gochara-table.js +1 -1
  35. package/dist/cdn/components/guna-milan.js +1 -1
  36. package/dist/cdn/components/hd-connection.js +1 -1
  37. package/dist/cdn/components/hd-penta.js +1 -1
  38. package/dist/cdn/components/hd-type-card.js +1 -1
  39. package/dist/cdn/components/hd-variables.js +1 -1
  40. package/dist/cdn/components/heliacal-table.js +2 -2
  41. package/dist/cdn/components/hexagram.js +1 -1
  42. package/dist/cdn/components/hora-table.js +1 -1
  43. package/dist/cdn/components/horoscope-card.js +2 -2
  44. package/dist/cdn/components/kp-chart.js +1 -1
  45. package/dist/cdn/components/kp-finance-card.js +2 -2
  46. package/dist/cdn/components/kp-planets-table.js +3 -3
  47. package/dist/cdn/components/kp-ruling-planets.js +1 -1
  48. package/dist/cdn/components/kua-card.js +1 -1
  49. package/dist/cdn/components/local-space-compass.js +1 -1
  50. package/dist/cdn/components/location-search.js +1 -1
  51. package/dist/cdn/components/luck-pillars.js +1 -1
  52. package/dist/cdn/components/mayan-day-sign.js +1 -1
  53. package/dist/cdn/components/moon-phase.js +1 -1
  54. package/dist/cdn/components/nakshatra-card.js +1 -1
  55. package/dist/cdn/components/natal-chart.js +18 -18
  56. package/dist/cdn/components/numerology-card.js +1 -1
  57. package/dist/cdn/components/panchang-table.js +1 -1
  58. package/dist/cdn/components/positions-table.js +1 -1
  59. package/dist/cdn/components/profection-card.js +2 -2
  60. package/dist/cdn/components/reference-card.js +1 -1
  61. package/dist/cdn/components/relocation-wheel.js +17 -17
  62. package/dist/cdn/components/report.js +1 -1
  63. package/dist/cdn/components/shadbala-table.js +1 -1
  64. package/dist/cdn/components/synastry-chart.js +1 -1
  65. package/dist/cdn/components/tarot-card.js +2 -2
  66. package/dist/cdn/components/tarot-catalog.js +2 -2
  67. package/dist/cdn/components/tarot-spread.js +1 -1
  68. package/dist/cdn/components/transit-wheel.js +1 -1
  69. package/dist/cdn/components/transits-table.js +1 -1
  70. package/dist/cdn/components/upagraha-table.js +1 -1
  71. package/dist/cdn/components/vastu-mandala.js +1 -1
  72. package/dist/cdn/components/vedic-aspects.js +1 -1
  73. package/dist/cdn/components/vedic-daily.js +1 -1
  74. package/dist/cdn/components/vedic-kundli.js +1 -1
  75. package/dist/cdn/components/vedic-planets-table.js +2 -2
  76. package/dist/cdn/components/western-planets-table.js +1 -1
  77. package/dist/cdn/components/yoga-list.js +2 -2
  78. package/dist/cdn/components/zodiac-card.js +1 -1
  79. package/dist/cdn/locales/de.js +1 -1
  80. package/dist/cdn/locales/es.js +1 -1
  81. package/dist/cdn/locales/fr.js +1 -1
  82. package/dist/cdn/locales/hi.js +1 -1
  83. package/dist/cdn/locales/pt.js +1 -1
  84. package/dist/cdn/locales/ru.js +1 -1
  85. package/dist/cdn/locales/tr.js +1 -1
  86. package/dist/cdn/roxy-ui.js +82 -82
  87. package/dist/components/almanac-day.js +1 -1
  88. package/dist/components/angel-number-card.js +1 -1
  89. package/dist/components/angel-number-lookup.js +1 -1
  90. package/dist/components/arudha-padas.js +1 -1
  91. package/dist/components/ashtakavarga-grid.js +1 -1
  92. package/dist/components/aspects-table.js +1 -1
  93. package/dist/components/astrocartography-map.js +1 -1
  94. package/dist/components/bazi-chart.js +1 -1
  95. package/dist/components/bhav-chalit-table.js +1 -1
  96. package/dist/components/bhava-bala-table.js +1 -1
  97. package/dist/components/biorhythm-chart.js +1 -1
  98. package/dist/components/bodygraph.js +1 -1
  99. package/dist/components/chara-karakas.js +1 -1
  100. package/dist/components/choghadiya-grid.js +1 -1
  101. package/dist/components/compatibility-card.js +1 -1
  102. package/dist/components/compound-number.js +1 -1
  103. package/dist/components/crystal-card.js +1 -1
  104. package/dist/components/crystal-grid.js +1 -1
  105. package/dist/components/dasha-timeline.js +1 -1
  106. package/dist/components/data.js +1 -1
  107. package/dist/components/divisional-chart.js +1 -1
  108. package/dist/components/dosha-card.js +1 -1
  109. package/dist/components/dosha-constitution.js +1 -1
  110. package/dist/components/dream-card.js +1 -1
  111. package/dist/components/dream-search.js +1 -1
  112. package/dist/components/endpoint-form.js +1 -1
  113. package/dist/components/ephemeris-table.js +1 -1
  114. package/dist/components/fixed-stars.js +1 -1
  115. package/dist/components/flying-star-chart.js +1 -1
  116. package/dist/components/forecast-digest.js +1 -1
  117. package/dist/components/forecast-timeline.js +1 -1
  118. package/dist/components/gematria.js +1 -1
  119. package/dist/components/gochara-table.js +1 -1
  120. package/dist/components/guna-milan.js +1 -1
  121. package/dist/components/hd-connection.js +1 -1
  122. package/dist/components/hd-penta.js +1 -1
  123. package/dist/components/hd-type-card.js +1 -1
  124. package/dist/components/hd-variables.js +1 -1
  125. package/dist/components/heliacal-table.js +1 -1
  126. package/dist/components/hexagram.js +1 -1
  127. package/dist/components/hora-table.js +1 -1
  128. package/dist/components/horoscope-card.js +1 -1
  129. package/dist/components/kp-chart.js +1 -1
  130. package/dist/components/kp-finance-card.js +1 -1
  131. package/dist/components/kp-planets-table.js +1 -1
  132. package/dist/components/kp-ruling-planets.js +1 -1
  133. package/dist/components/kua-card.js +1 -1
  134. package/dist/components/local-space-compass.js +1 -1
  135. package/dist/components/location-search.js +1 -1
  136. package/dist/components/luck-pillars.js +1 -1
  137. package/dist/components/mayan-day-sign.js +1 -1
  138. package/dist/components/moon-phase.js +1 -1
  139. package/dist/components/nakshatra-card.js +1 -1
  140. package/dist/components/natal-chart.d.ts +5 -0
  141. package/dist/components/natal-chart.js +14 -14
  142. package/dist/components/numerology-card.js +1 -1
  143. package/dist/components/panchang-table.js +1 -1
  144. package/dist/components/positions-table.js +1 -1
  145. package/dist/components/profection-card.js +1 -1
  146. package/dist/components/reference-card.js +1 -1
  147. package/dist/components/relocation-wheel.js +15 -15
  148. package/dist/components/report.js +1 -1
  149. package/dist/components/shadbala-table.js +1 -1
  150. package/dist/components/synastry-chart.js +1 -1
  151. package/dist/components/tarot-card.js +1 -1
  152. package/dist/components/tarot-catalog.js +1 -1
  153. package/dist/components/tarot-spread.js +1 -1
  154. package/dist/components/transit-wheel.js +1 -1
  155. package/dist/components/transits-table.js +1 -1
  156. package/dist/components/upagraha-table.js +1 -1
  157. package/dist/components/vastu-mandala.js +1 -1
  158. package/dist/components/vedic-aspects.js +1 -1
  159. package/dist/components/vedic-daily.js +1 -1
  160. package/dist/components/vedic-kundli.d.ts +2 -0
  161. package/dist/components/vedic-kundli.js +1 -1
  162. package/dist/components/vedic-planets-table.d.ts +9 -7
  163. package/dist/components/vedic-planets-table.js +1 -1
  164. package/dist/components/western-planets-table.d.ts +1 -0
  165. package/dist/components/western-planets-table.js +1 -1
  166. package/dist/components/yoga-list.js +1 -1
  167. package/dist/components/zodiac-card.js +1 -1
  168. package/dist/forms.json +1 -1
  169. package/dist/i18n/chrome-strings.d.ts +1 -1
  170. package/dist/index.cjs +83 -83
  171. package/dist/index.js +84 -84
  172. package/dist/locales/de.js +1 -1
  173. package/dist/locales/es.js +1 -1
  174. package/dist/locales/fr.js +1 -1
  175. package/dist/locales/hi.js +1 -1
  176. package/dist/locales/pt.js +1 -1
  177. package/dist/locales/ru.js +1 -1
  178. package/dist/locales/tr.js +1 -1
  179. package/dist/schemas/post--astrology-aspect-patterns.json +1 -1
  180. package/dist/types/types.gen.d.ts +86 -22
  181. package/dist/utils/string.d.ts +2 -0
  182. package/dist/utils/summary-prose.d.ts +6 -0
  183. package/dist/version.d.ts +1 -1
  184. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  var RoxyUI_divisional_chart=(()=>{var J=Object.defineProperty;var Qe=Object.getOwnPropertyDescriptor;var Pr=Object.getOwnPropertyNames;var Or=Object.prototype.hasOwnProperty;var Fr=(r,e)=>{for(var t in e)J(r,t,{get:e[t],enumerable:true})},Lr=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Pr(e))!Or.call(r,o)&&o!==t&&J(r,o,{get:()=>e[o],enumerable:!(n=Qe(e,o))||n.enumerable});return r};var Mr=r=>Lr(J({},"__esModule",{value:true}),r),y=(r,e,t,n)=>{for(var o=n>1?void 0:n?Qe(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(o=(n?s(e,t,o):s(o))||o);return n&&o&&J(e,t,o),o};var Wn={};Fr(Wn,{ROXY_UI_TOKENS_STYLE_ID:()=>de,RoxyDivisionalChart:()=>O,injectRoxyTokens:()=>ce});var X=globalThis,Q=X.ShadowRoot&&(X.ShadyCSS===void 0||X.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Te=Symbol(),et=new WeakMap,H=class{constructor(e,t,n){if(this._$cssResult$=true,n!==Te)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Q&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=et.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&et.set(t,e))}return e}toString(){return this.cssText}},tt=r=>new H(typeof r=="string"?r:r+"",void 0,Te),f=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((n,o,i)=>n+(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)+r[i+1],r[0]);return new H(t,r,Te)},rt=(r,e)=>{if(Q)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),o=X.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=t.cssText,r.appendChild(n)}},Ee=Q?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return tt(t)})(r):r;var{is:Ur,defineProperty:Nr,getOwnPropertyDescriptor:Dr,getOwnPropertyNames:Ir,getOwnPropertySymbols:Gr,getPrototypeOf:Hr}=Object,ee=globalThis,nt=ee.trustedTypes,Kr=nt?nt.emptyScript:"",jr=ee.reactiveElementPolyfillSupport,K=(r,e)=>r,j={toAttribute(r,e){switch(e){case Boolean:r=r?Kr:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},te=(r,e)=>!Ur(r,e),ot={attribute:true,type:String,converter:j,reflect:false,useDefault:false,hasChanged:te};Symbol.metadata??=Symbol("metadata"),ee.litPropertyMetadata??=new WeakMap;var A=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ot){if(t.state&&(t.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=true),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(e,n,t);o!==void 0&&Nr(this.prototype,e,o)}}static getPropertyDescriptor(e,t,n){let{get:o,set:i}=Dr(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:o,set(s){let l=o?.call(this);i?.call(this,s),this.requestUpdate(e,l,n)},configurable:true,enumerable:true}}static getPropertyOptions(e){return this.elementProperties.get(e)??ot}static _$Ei(){if(this.hasOwnProperty(K("elementProperties")))return;let e=Hr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(K("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(K("properties"))){let t=this.properties,n=[...Ir(t),...Gr(t)];for(let o of n)this.createProperty(o,t[o])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[n,o]of t)this.elementProperties.set(n,o)}this._$Eh=new Map;for(let[t,n]of this.elementProperties){let o=this._$Eu(t,n);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let o of n)t.unshift(Ee(o))}else e!==void 0&&t.push(Ee(e));return t}static _$Eu(e,t){let n=t.attribute;return n===false?void 0:typeof n=="string"?n:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return rt(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(o!==void 0&&n.reflect===true){let i=(n.converter?.toAttribute!==void 0?n.converter:j).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,o=n._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let i=n.getPropertyOptions(o),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:j;this._$Em=o;let l=s.fromAttribute(t,i.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(e,t,n,o=false,i){if(e!==void 0){let s=this.constructor;if(o===false&&(i=this[e]),n??=s.getPropertyOptions(e),!((n.hasChanged??te)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,n))))return;this.C(e,t,n)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:o,wrapped:i},s){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),i!==true||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),o===true&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=true;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[o,i]of n){let{wrapped:s}=i,l=this[o];s!==true||this._$AL.has(o)||l===void 0||this.C(o,void 0,i,l)}}let e=false,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(t)):this._$EM()}catch(n){throw e=false,this._$EM(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=false}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return true}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[K("elementProperties")]=new Map,A[K("finalized")]=new Map,jr?.({ReactiveElement:A}),(ee.reactiveElementVersions??=[]).push("2.1.2");var Fe=globalThis,it=r=>r,re=Fe.trustedTypes,st=re?re.createPolicy("lit-html",{createHTML:r=>r}):void 0,pt="$lit$",C=`lit$${Math.random().toFixed(9).slice(2)}$`,ut="?"+C,zr=`<${ut}>`,M=document,B=()=>M.createComment(""),q=r=>r===null||typeof r!="object"&&typeof r!="function",Le=Array.isArray,Br=r=>Le(r)||typeof r?.[Symbol.iterator]=="function",Ae=`[
2
2
  \f\r]`,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,at=/-->/g,lt=/>/g,F=RegExp(`>|${Ae}(?:([^\\s"'>=/]+)(${Ae}*=${Ae}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),dt=/'/g,ct=/"/g,yt=/^(?:script|style|textarea|title)$/i,Me=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),h=Me(1),to=Me(2),ro=Me(3),_=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ht=new WeakMap,L=M.createTreeWalker(M,129);function mt(r,e){if(!Le(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return st!==void 0?st.createHTML(e):e}var qr=(r,e)=>{let t=r.length-1,n=[],o,i=e===2?"<svg>":e===3?"<math>":"",s=z;for(let l=0;l<t;l++){let a=r[l],p,u,c=-1,x=0;for(;x<a.length&&(s.lastIndex=x,u=s.exec(a),u!==null);)x=s.lastIndex,s===z?u[1]==="!--"?s=at:u[1]!==void 0?s=lt:u[2]!==void 0?(yt.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=F):u[3]!==void 0&&(s=F):s===F?u[0]===">"?(s=o??z,c=-1):u[1]===void 0?c=-2:(c=s.lastIndex-u[2].length,p=u[1],s=u[3]===void 0?F:u[3]==='"'?ct:dt):s===ct||s===dt?s=F:s===at||s===lt?s=z:(s=F,o=void 0);let $=s===F&&r[l+1].startsWith("/>")?" ":"";i+=s===z?a+zr:c>=0?(n.push(p),a.slice(0,c)+pt+a.slice(c)+C+$):a+C+(c===-2?l:$)}return[mt(r,i+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},V=class r{constructor({strings:e,_$litType$:t},n){let o;this.parts=[];let i=0,s=0,l=e.length-1,a=this.parts,[p,u]=qr(e,t);if(this.el=r.createElement(p,n),L.currentNode=this.el.content,t===2||t===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=L.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let c of o.getAttributeNames())if(c.endsWith(pt)){let x=u[s++],$=o.getAttribute(c).split(C),E=/([.?@])?(.*)/.exec(x);a.push({type:1,index:i,name:E[2],strings:$,ctor:E[1]==="."?Re:E[1]==="?"?Ce:E[1]==="@"?Pe:I}),o.removeAttribute(c)}else c.startsWith(C)&&(a.push({type:6,index:i}),o.removeAttribute(c));if(yt.test(o.tagName)){let c=o.textContent.split(C),x=c.length-1;if(x>0){o.textContent=re?re.emptyScript:"";for(let $=0;$<x;$++)o.append(c[$],B()),L.nextNode(),a.push({type:2,index:++i});o.append(c[x],B())}}}else if(o.nodeType===8)if(o.data===ut)a.push({type:2,index:i});else{let c=-1;for(;(c=o.data.indexOf(C,c+1))!==-1;)a.push({type:7,index:i}),c+=C.length-1}i++}}static createElement(e,t){let n=M.createElement("template");return n.innerHTML=e,n}};function D(r,e,t=r,n){if(e===_)return e;let o=n!==void 0?t._$Co?.[n]:t._$Cl,i=q(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(false),i===void 0?o=void 0:(o=new i(r),o._$AT(r,t,n)),n!==void 0?(t._$Co??=[])[n]=o:t._$Cl=o),o!==void 0&&(e=D(r,o._$AS(r,e.values),o,n)),e}var _e=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,o=(e?.creationScope??M).importNode(t,true);L.currentNode=o;let i=L.nextNode(),s=0,l=0,a=n[0];for(;a!==void 0;){if(s===a.index){let p;a.type===2?p=new Y(i,i.nextSibling,this,e):a.type===1?p=new a.ctor(i,a.name,a.strings,this,e):a.type===6&&(p=new Oe(i,this,e)),this._$AV.push(p),a=n[++l]}s!==a?.index&&(i=L.nextNode(),s++)}return L.currentNode=M,o}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},Y=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??true}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=D(this,e,t),q(e)?e===d||e==null||e===""?(this._$AH!==d&&this._$AR(),this._$AH=d):e!==this._$AH&&e!==_&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Br(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==d&&q(this._$AH)?this._$AA.nextSibling.data=e:this.T(M.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=V.createElement(mt(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(t);else{let i=new _e(o,this),s=i.u(this.options);i.p(t),this.T(s),this._$AH=i}}_$AC(e){let t=ht.get(e.strings);return t===void 0&&ht.set(e.strings,t=new V(e)),t}k(e){Le(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,o=0;for(let i of e)o===t.length?t.push(n=new r(this.O(B()),this.O(B()),this,this.options)):n=t[o],n._$AI(i),o++;o<t.length&&(this._$AR(n&&n._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(false,true,t);e!==this._$AB;){let n=it(e).nextSibling;it(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,o,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=d}_$AI(e,t=this,n,o){let i=this.strings,s=false;if(i===void 0)e=D(this,e,t,0),s=!q(e)||e!==this._$AH&&e!==_,s&&(this._$AH=e);else{let l=e,a,p;for(e=i[0],a=0;a<i.length-1;a++)p=D(this,l[n+a],t,a),p===_&&(p=this._$AH[a]),s||=!q(p)||p!==this._$AH[a],p===d?e=d:e!==d&&(e+=(p??"")+i[a+1]),this._$AH[a]=p}s&&!o&&this.j(e)}j(e){e===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Re=class extends I{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===d?void 0:e}},Ce=class extends I{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==d)}},Pe=class extends I{constructor(e,t,n,o,i){super(e,t,n,o,i),this.type=5}_$AI(e,t=this){if((e=D(this,e,t,0)??d)===_)return;let n=this._$AH,o=e===d&&n!==d||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==d&&(n===d||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Oe=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){D(this,e)}};var Vr=Fe.litHtmlPolyfillSupport;Vr?.(V,Y),(Fe.litHtmlVersions??=[]).push("3.3.3");var gt=(r,e,t)=>{let n=t?.renderBefore??e,o=n._$litPart$;if(o===void 0){let i=t?.renderBefore??null;n._$litPart$=o=new Y(e.insertBefore(B(),i),i,void 0,t??{})}return o._$AI(r),o};var Ue=globalThis,P=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=gt(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};P._$litElement$=true,P.finalized=true,Ue.litElementHydrateSupport?.({LitElement:P});var Yr=Ue.litElementPolyfillSupport;Yr?.({LitElement:P});(Ue.litElementVersions??=[]).push("4.2.2");var Wr={attribute:true,type:String,converter:j,reflect:false,hasChanged:te},Zr=(r=Wr,e,t)=>{let{kind:n,metadata:o}=t,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),n==="setter"&&((r=Object.create(r)).wrapped=true),i.set(t.name,r),n==="accessor"){let{name:s}=t;return{set(l){let a=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,a,r,true,l)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(n==="setter"){let{name:s}=t;return function(l){let a=this[s];e.call(this,l),this.requestUpdate(s,a,r,true,l)}}throw Error("Unsupported decorator location: "+n)};function b(r){return(e,t)=>typeof t=="object"?Zr(r,e,t):((n,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,n),s?Object.getOwnPropertyDescriptor(o,i):void 0})(r,e,t)}function T(r){return b({...r,state:true,attribute:false})}var ft={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},xt=r=>(...e)=>({_$litDirective$:r,values:e}),oe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var W=class extends oe{constructor(e){if(super(e),this.it=d,e.type!==ft.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===d||e==null)return this._t=void 0,this.it=e;if(e===_)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};W.directiveName="unsafeHTML",W.resultType=1;var bt=xt(W);var vt=[{endpoint:"vedic-astrology/divisional-chart",method:"POST"},{endpoint:"vedic-astrology/navamsa",method:"POST"}];function ie(r){return r.toLowerCase().replace(/[\s_-]+/g," ").trim()}function Ne(r){return r?r.charAt(0).toUpperCase()+r.slice(1).toLowerCase():""}function wt(r){return r.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,e=>e.toUpperCase())}var Jr=new RegExp("(?![\\d#*])\\p{Emoji}","gu"),Xr=r=>r.replace(Jr,"$&\uFE0E"),se=r=>Object.fromEntries(Object.entries(r).map(([e,t])=>[e,Xr(t)])),De=(r,e)=>e?r[ie(e)]:void 0,Qr=se({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"}),$t=r=>De(Qr,r),en={sun:"Su",moon:"Mo",mercury:"Me",venus:"Ve",mars:"Ma",jupiter:"Ju",saturn:"Sa",uranus:"Ur",neptune:"Ne",pluto:"Pl",rahu:"Ra",ketu:"Ke",ascendant:"Asc",lagna:"La"},St=r=>De(en,r),Xo=se({aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"});var tn={aries:"Ar",taurus:"Ta",gemini:"Ge",cancer:"Cn",leo:"Le",virgo:"Vi",libra:"Li",scorpio:"Sc",sagittarius:"Sg",capricorn:"Cp",aquarius:"Aq",pisces:"Pi"},ae=r=>De(tn,r),R=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],Qo=se({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 ei=se({heaven:"\u2630",lake:"\u2631",fire:"\u2632",thunder:"\u2633",wind:"\u2634",water:"\u2635",mountain:"\u2636",earth:"\u2637"});var U=r=>r??d;var kt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Ge(r){if(r.lang)return r.lang;if(typeof document>"u")return;let e=r.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}var rn={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Ie(r,e){let t=r.toLowerCase();return e.find(n=>n.toLowerCase()===t)}function Tt(r,e=kt){let t=Ge(r);if(!t)return;let n=Ie(t,e);if(n)return n;let o=t.toLowerCase().split("-"),i=o[0];if(i==="zh"){let s=o.find(l=>l==="hans"||l==="hant")??rn[o[1]??""];return s?Ie(`zh-${s}`,e):void 0}return Ie(i,e)}var _t="symbols";var nn={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},He='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Et='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',At='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',le={"fraunces-jost":{name:"Fraunces with Jost",sans:He,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:He,display:He},geist:{name:"Geist",sans:Et,display:Et},system:{name:"System",sans:At,display:At}};function Rt(r){let{sans:e,display:t}=le[r];return Object.keys(nn).filter(n=>`${e} ${t}`.includes(`"${n}"`))}var Ct="1.7.0";var on=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,sn=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Pt(r,e){if(!e)return;let t=new URL(e);if(t.protocol!=="https:"&&t.protocol!=="http:")return;let n=(on.exec(t.pathname)??sn.exec(t.pathname))?.[1];if(n!==void 0)return t.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${r}/dist`:`${t.origin}${n}`}var cn={},an="color-mix(in oklab, var(--roxy-accent) 70%, black)",ln="var(--roxy-accent)",dn="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Ot=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Ft(r){return r!==void 0&&Object.hasOwn(le,r)}function Lt(r){let e=[];return r.brandColor&&Ot.test(r.brandColor)&&e.push(`--roxy-primary:${r.brandColor}`),r.brandAccent&&Ot.test(r.brandAccent)&&e.push(`--roxy-accent:${r.brandAccent}`,`--roxy-accent-ink:light-dark(${an},${ln})`,`--roxy-ring:${dn}`),e.join(";")}function Mt(r,e){if(Ft(e))return e;let t=r.getRootNode();if(("host"in t?t.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=r.shadowRoot?.firstElementChild,i=o?.localName==="style"?o:null;i?.sheet&&(i.sheet.disabled=true);let s,l,a;try{let p=globalThis.getComputedStyle(r),u=c=>p.getPropertyValue(c).trim();s=u("--roxy-font-sans"),l=u("--roxy-font-display"),a=u("--roxy-font")}finally{i?.sheet&&(i.sheet.disabled=false)}if(!(s||l))return Ft(a)?a:void 0}function Ut(r){let{sans:e,display:t}=le[r];return`--roxy-font:${r};--roxy-font-sans:${e};--roxy-font-display:${t}`}var Nt=Pt(Ct,globalThis.document?.currentScript?.src||cn.url);function Dt(r,e){if(typeof document>"u"||e===void 0)return;let t=`roxy-ui-font-${r}`;if(document.getElementById(t))return;let n=document.createElement("link");n.id=t,n.rel="stylesheet",n.href=`${e}/styles/fonts/${r}.css`,document.head.append(n)}function It(r,e=Nt){Rt(r).length>0&&Dt(r,e)}function Gt(r=Nt){Dt(_t,r)}var Ht='@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 de="roxy-ui-tokens";function ce(){if(typeof document>"u")return null;let r=document.getElementById(de);if(r)return r;let e=document.createElement("style");return e.id=de,e.textContent=Ht,document.head.prepend(e),e}var Kt="__ROXY_UI_I18N__";function jt(){let r=globalThis,e=r[Kt];if(e)return e;let t={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return r[Kt]=t,t}function hn(r,e){return e?r.replace(/\{\{(\w+)\}\}/g,(t,n)=>n in e?String(e[n]??""):t):r}function he(r,e,t){return hn(pn(r,e)??e,t)}function pn(r,e){if(!r)return;let{catalogs:t}=jt(),n=r.toLowerCase();return(t[n]??t[n.split("-")[0]])?.[ie(e)]}function zt(r){let{listeners:e}=jt();return e.add(r),()=>{e.delete(r)}}var pe=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=zt(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var ue=class extends P{constructor(){super();this.translator=(t,n)=>this.t(t,n);new pe(this)}connectedCallback(){super.connectedCallback(),ce()}updated(t){super.updated(t),this.renderRoot.querySelector(".roxy-glyph")&&Gt()}fontDeclarations(t){let n=Mt(this,t);return n?(It(n),Ut(n)):""}renderFontStyle(){let t=this.fontDeclarations();return t?h`<style>:host{${t}}</style>`:d}t(t,n){return he(this.effectiveLang(),t,n)}effectiveLang(){return Ge(this)}};var Bt=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function ye(r){return r?h`<span class="roxy-glyph" aria-hidden="true">${r}</span>`:d}var qt=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 un=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}`,me=[un,qt,Bt];var yn="__cols",mn="__rows";function gn(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function ge(r){if(Array.isArray(r)){let i=false,s=r.map(l=>{let a=ge(l);return a!==l&&(i=true),a});return i?s:r}if(!gn(r))return r;let e=r[yn],t=r[mn];if(Array.isArray(e)&&Array.isArray(t)&&Object.keys(r).length===2)return t.map(i=>{let s={};return e.forEach((l,a)=>{s[l]=ge(i[a])}),s});let n=false,o={};for(let[i,s]of Object.entries(r)){let l=ge(s);l!==s&&(n=true),o[i]=l}return n?o:r}function Vt(r){return ge(r)}function Yt(r,e){return r.find(t=>t.attrs&&Object.entries(t.attrs).every(([n,o])=>e[n]===o))??r[0]}var fn="pk_live_YOUR_KEY",Wt={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 Zt(r){if(r)return r===fn?Wt.sample:r.startsWith("pk_")?void 0:Wt.secret}function Jt(r,e,t={}){t.warn&&console.warn(e.message),r.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:e.reason,message:e.message},bubbles:true,composed:true}))}var Xt="https://roxyapi.com/api/v2";async function xn(r){try{let e=await r.json();if(e?.error){let t=e.code==="validation_error"&&Array.isArray(e.issues)?e.issues.filter(n=>typeof n.path=="string"&&typeof n.message=="string").map(n=>({path:n.path,message:n.message})):null;return{message:e.error,issues:t?.length?t:null,worded:true,...e.code?{code:e.code}:{}}}}catch{}return{message:`Request failed (${r.status})`,issues:null,worded:false}}var Qt={fromAttribute:r=>{if(r!=null){try{let e=JSON.parse(r);if(e&&typeof e=="object"&&!Array.isArray(e))return e}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},G=class extends Error{constructor(t,n=null,o=true,i,s){super(t);this.issues=n;this.worded=o;this.status=i;this.code=s}};function er(r){return r.submitUrl?void 0:Zt(r.publishableKey)}async function Ke(r,e,t){let n=er(r);if(n)throw new G(n.message);let o=r.submitUrl?await fetch(r.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:bn(e,r.submitContext),signal:t}):await vn(r,e,t);if(!o.ok){let i=await xn(o);throw new G(i.message,i.issues,i.worded,o.status,i.code)}return await o.json()}function bn(r,e){return JSON.stringify(e?{...r,context:e}:r)}function vn(r,e,t){let n=new URL(`${r.baseUrl??Xt}${e.path}`,document.baseURI);for(let[i,s]of Object.entries(e.query??{}))s!=null&&n.searchParams.set(i,String(s));let o={Accept:"application/json"};return r.publishableKey&&(o["X-API-Key"]=r.publishableKey),e.body!=null&&(o["Content-Type"]="application/json"),fetch(n,{method:e.method??"GET",headers:o,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}var fe=class{constructor(e){this.baseUrl=Xt;this.worded=true;this.failure={};this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){this.worded=true,this.failure={};let t=er(this);if(t){this.host.error=t.message,Jt(this.host,t);return}this.abort?.abort();let n=new AbortController;this.abort=n,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let o=await Ke(this,e,n.signal);if(n.signal.aborted)return;this.host.data=o}catch(o){if(n.signal.aborted||o?.name==="AbortError")return;o instanceof G&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof G&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===n&&(this.abort=void 0),n.signal.aborted||(this.host.loading=false)}}};function tr(r,e,t,n=[]){let o={...t},i=`/${r.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,u)=>{let c=o[u];return delete o[u],encodeURIComponent(String(c??""))}),s=new Set(n),l={},a={};for(let[p,u]of Object.entries(o))u===void 0||u===""||(e==="GET"||s.has(p)?l[p]=u:a[p]=u);return{path:i,method:e,query:l,body:e==="POST"?a:void 0}}function xe(){return h`<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 rr=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 Yi=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 nr(r,e,t,n=false){let o=r.filter(i=>!!i.body);return o.length===0?d:h`<section class="block" part="section readings"><h3>${t}</h3>${o.map((i,s)=>h`<details class="interp-card" part="reading" name="${e}" ?open="${s===0&&!n}"><summary><span class="interp-lead">${ye(i.glyph)} ${i.label}</span> ${xe()} ${i.aside?h`<span class="interp-aside"><small>${i.aside}</small></span>`:d}</summary><div class="interp-body"><p>${i.body}</p>${i.extra??d}</div></details>`)}</section>`}var wn="roxy-data";function $n(r){return r.nodeName==="SCRIPT"&&r.getAttribute("type")==="application/json"}var be=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){if(this.host.data!=null)return;let e=this.read();e!==void 0&&(this.host.data=e,this.host.requestUpdate())}read(){let e=this.findInlineScript();return e?this.parse(e.textContent):void 0}findInlineScript(){for(let e of Array.from(this.host.children))if($n(e)&&e.classList.contains(wn))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var m=class extends ue{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 t=this.lastRequest,n=this.listKey,o=this.listRows();if(!(!t||!n||!o)){this.moreLoading=true,this.moreError=null;try{let i=await Ke(this.fetcher,{...t,query:{...t.query,offset:o.length}});if(this.lastRequest!==t)return;let s=i[n];this.data={...this.data,...i,[n]:[...o,...Array.isArray(s)?s:[]]}}catch(i){this.lastRequest===t&&(this.moreError=i instanceof Error?i.message:String(i))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=t=>{let n=this.selfFetch();if(!n)return;let o=t.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(tr(n.endpoint,n.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new be(this),this.fetcher=new fe(this)}static{this.styles=[me]}static{this.endpoints=[]}willUpdate(t){if(t.has("data")&&this.data!=null){let n=Vt(this.data);n!==this.data&&(this.data=n)}(t.has("publishableKey")||t.has("baseUrl")||t.has("submitUrl")||t.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let t=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:Yt(this.constructor.endpoints,this);return t&&{endpoint:t.endpoint,method:this.method??t.method}}render(){return h`${this.hostStyle()}${this.renderState()}`}drawn(t){try{return this.renderData(t)}catch(n){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,n),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:n},bubbles:true,composed:true})),customElements.get("roxy-data")?h`<roxy-data .data="${t}" lang="${U(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let t=this.hideSections.split(",").map(i=>i.trim().toLowerCase()).filter(i=>/^[a-z][a-z0-9-]*$/.test(i)),n=[Lt(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(t.length===0&&!n)return d;let o=(n?`:host{${n}}`:"")+t.map(i=>`[part~="${i}"],roxy-endpoint-form::part(${i}){display:none!important}`).join("");return h`<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()?h`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(t,n,o,i=false){return this.hideReadings?d:nr(t,n,this.t(o??"Reading"),i)}renderResult(t){let n=h`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(t)}`;return this.showAttribution()?h`${n}${this.renderAttribution()}`:n}renderWithForm(t){return h`${this.renderForm()}${t}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?d:this.renderErrorBanner(this.error):this.data==null?d:this.showAttribution()?h`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let t=this.listRows(),n=this.data?.total;return!this.lastRequest||!t||typeof n!="number"?d:t.length>=n?d:h`<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?h`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:d}</div>`}listRows(){let t=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(t)?t:void 0}fetchFresh(t){return this.lastRequest=t,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(t)}load(t){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(t)}pickRow(t){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:t,bubbles:true,composed:true})),this.openRow(t.id)}openRow(t){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let n=this.openedRow??document.createElement(this.rowDetail.tag);n.publishableKey=this.publishableKey,n.baseUrl=this.baseUrl,n.submitUrl=this.submitUrl,n.submitContext=this.submitContext,n.hideReadings=this.hideReadings,n.hideSections=this.hideSections;let o=this.effectiveLang();o&&n.setAttribute("lang",o),this.openedRow=n,this.openedRowId=t,n.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(t))}`,method:"GET",query:{lang:Tt(this)}}).then(()=>n.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return h`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(d):this.renderEmpty()}renderForm(){let t=this.selfFetch();return h`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${t?.endpoint??""}" method="${t?.method??"POST"}" spec-url="${U(this.specUrl)}" publishable-key="${U(this.publishableKey)}" location-url="${U(this.locationUrl)}" submit-label="${U(this.submitLabel)}" lang="${U(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let t=sessionStorage.getItem(this.rememberKey());return t?JSON.parse(t):void 0}catch{return}}writeRemembered(t){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(t))}catch{}}renderEmpty(){return h`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return h`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let n=!!this.selfFetch();if(n&&this.issues)return this.renderForm();let o=this.renderErrorBanner(t);return n?h`${o}${this.renderForm()}`:o}renderErrorBanner(t){return h`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(t)}</div>`}};y([b({attribute:false})],m.prototype,"data",2),y([b({type:String,attribute:"data-endpoint"})],m.prototype,"endpoint",2),y([b({type:String})],m.prototype,"method",2),y([b({type:String,attribute:"publishable-key"})],m.prototype,"publishableKey",2),y([b({type:String,attribute:"base-url"})],m.prototype,"baseUrl",2),y([b({type:String,attribute:"spec-url"})],m.prototype,"specUrl",2),y([b({type:String,attribute:"submit-url"})],m.prototype,"submitUrl",2),y([b({attribute:"submit-context",converter:Qt})],m.prototype,"submitContext",2),y([b({type:String,attribute:"location-url"})],m.prototype,"locationUrl",2),y([b({type:Boolean})],m.prototype,"remember",2),y([b({type:Boolean,attribute:"hide-readings",reflect:true})],m.prototype,"hideReadings",2),y([b({type:String,attribute:"hide-sections",reflect:true})],m.prototype,"hideSections",2),y([b({type:String,attribute:"brand-color"})],m.prototype,"brandColor",2),y([b({type:String,attribute:"brand-accent"})],m.prototype,"brandAccent",2),y([b({type:String})],m.prototype,"font",2),y([b({type:String})],m.prototype,"hemisphere",2),y([b({type:String,attribute:"submit-label"})],m.prototype,"submitLabel",2),y([b({type:String,attribute:"error-message"})],m.prototype,"errorMessage",2),y([b({type:String})],m.prototype,"attribution",2),y([T()],m.prototype,"loading",2),y([T()],m.prototype,"error",2),y([T()],m.prototype,"issues",2),y([T()],m.prototype,"selfFetched",2),y([T()],m.prototype,"editing",2),y([T()],m.prototype,"sticky",2),y([T()],m.prototype,"openedRow",2),y([T()],m.prototype,"openedRowId",2),y([T()],m.prototype,"moreLoading",2),y([T()],m.prototype,"moreError",2);var ps=f`:where(.natal-wheel) .wheel-line,:where(.natal-wheel) .tick{fill:none;stroke:var(--roxy-border)}:where(.natal-wheel) .tick-major{stroke:var(--roxy-secondary)}:where(.natal-wheel) .sign-glyph{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}:where(.natal-wheel) .planet-glyph{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .875);font-weight:var(--roxy-weight-bold)}:where(.natal-wheel) .planet-deg{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .4375)}:where(.natal-wheel) .planet-deg .retro{fill:var(--roxy-danger-fg)}:where(.natal-wheel) .planet-leader{stroke:var(--roxy-accent);stroke-width:.5px;opacity:.55}:where(.natal-wheel) .house-num{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .5625)}:where(.natal-wheel) .cusp-deg{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .375)}:where(.natal-wheel) .angle-marker{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold)}:where(.natal-wheel) .angle-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}@container (width<=480px){:where(.natal-wheel) .sign-glyph,:where(.natal-wheel) .planet-glyph{font-size:calc(var(--roxy-text-base) * 1.5)}:where(.natal-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .8125)}:where(.natal-wheel) .house-num{font-size:calc(var(--roxy-text-base) * .75)}}`,us=f`:where(.synastry-wheel) .wheel-line{fill:none;stroke:var(--roxy-border)}:where(.synastry-wheel) .p1{--_person:var(--roxy-accent-ink)}:where(.synastry-wheel) .p2{--_person:var(--roxy-fg)}:where(.synastry-wheel) .sign{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}:where(.synastry-wheel) text.p1,:where(.synastry-wheel) text.p2{fill:var(--_person);font-size:calc(var(--roxy-text-base) * 1.125);font-weight:var(--roxy-weight-bold)}:where(.synastry-wheel) .person-tag,:where(.synastry-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .625)}:where(.synastry-wheel) .planet-deg{fill:var(--roxy-muted)}:where(.synastry-wheel) .planet-deg .retro{fill:var(--roxy-danger-fg)}:where(.synastry-wheel) .leader{stroke:var(--_person);stroke-width:.5px;opacity:.7}@container (width<=480px){:where(.synastry-wheel) .sign,:where(.synastry-wheel) text.p1,:where(.synastry-wheel) text.p2{font-size:calc(var(--roxy-text-base) * 1.75)}:where(.synastry-wheel) .person-tag,:where(.synastry-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .9375)}}:where(.synastry-wheel) .asc-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}:where(.synastry-wheel) .asc-label{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .5625);font-weight:var(--roxy-weight-bold)}`,or=f`:where(.kundli) .line{fill:#0000;stroke:var(--roxy-border)}:where(.kundli) .sign-text{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans);text-transform:uppercase}:where(.kundli) .rashi-num{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .75);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans)}:where(.kundli) .house-num{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .planet-text{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .centre-label{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .lagna-marker{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans);text-transform:uppercase}:where(.kundli) .lagna-bg{fill:color-mix(in srgb, var(--roxy-accent) 14%, transparent)}:where(.kundli) .lagna-slash{stroke:var(--roxy-accent);stroke-linecap:round;opacity:.7}`,ys=f`:where(.bodygraph) .bg-body{fill:color-mix(in srgb, var(--roxy-secondary) 8%, transparent);stroke:var(--roxy-border);stroke-width:1px}:where(.bodygraph) .bg-channel{stroke:var(--roxy-border);stroke-width:5px;stroke-linecap:round}:where(.bodygraph) .bg-half{stroke-width:5px;stroke-linecap:round}:where(.bodygraph) .bg-half.stripe{stroke-linecap:butt;stroke-dasharray:7 7}:where(.bodygraph) .bg-center{fill:var(--_mask,var(--roxy-bg));stroke:var(--roxy-secondary);stroke-width:1.8px}:where(.bodygraph) .bg-center.defined{stroke:color-mix(in srgb, var(--roxy-fg) 45%, transparent)}:where(.bodygraph){--_gold:color-mix(in oklch, var(--roxy-warning) 60%, var(--roxy-success));--_gold-ink:color-mix(in oklch, var(--roxy-warning-fg) 60%, var(--roxy-success-fg));--_center-gold:light-dark(color-mix(in oklab, var(--_gold) 40%, var(--roxy-bg)),color-mix(in oklab, var(--_gold) 50%, var(--_gold-ink)));--_center-green:light-dark(color-mix(in oklab, var(--roxy-success) 40%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-success) 50%, var(--roxy-success-fg)));--_center-red:light-dark(color-mix(in oklab, var(--roxy-danger) 40%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-danger) 50%, var(--roxy-danger-fg)));--_center-brown:light-dark(color-mix(in oklab, color-mix(in oklab, var(--roxy-warning-fg) 75%, var(--roxy-fg)) 45%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-warning-fg) 50%, var(--roxy-secondary)))}:where(.bodygraph) .bg-center.bg-gold.defined,:where(.bodygraph) .legend .swatch.bg-gold{fill:var(--_center-gold);background:var(--_center-gold)}:where(.bodygraph) .bg-center.bg-green.defined,:where(.bodygraph) .legend .swatch.bg-green{fill:var(--_center-green);background:var(--_center-green)}:where(.bodygraph) .bg-center.bg-red.defined,:where(.bodygraph) .legend .swatch.bg-red{fill:var(--_center-red);background:var(--_center-red)}:where(.bodygraph) .bg-center.bg-brown.defined,:where(.bodygraph) .legend .swatch.bg-brown{fill:var(--_center-brown);background:var(--_center-brown)}:where(.bodygraph) .bg-gate-dot{fill:var(--_mask,var(--roxy-bg));stroke:var(--roxy-border);stroke-width:1px}:where(.bodygraph) .bg-gate-dot.on{stroke:var(--_mask,var(--roxy-bg))}:where(.bodygraph) .bg-center-name{color:var(--roxy-muted);fill:currentColor;font-weight:var(--roxy-weight-bold);text-transform:uppercase;pointer-events:none}:where(.bodygraph) .bg-center-name.defined{color:light-dark(var(--roxy-fg),var(--roxy-bg))}:where(.bodygraph) .bg-gate{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .50625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.bodygraph) .bg-gate.on{fill:var(--src-ink,var(--_mask,var(--roxy-bg)))}:where(.bodygraph) .bg-half.src-left{stroke:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .bg-half.src-right{stroke:var(--src-right,var(--roxy-fg))}:where(.bodygraph) .bg-gate-dot.on.src-left{fill:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .bg-gate-dot.on.src-right{fill:var(--src-right,var(--roxy-fg))}:where(.bodygraph) .legend .swatch.src-left{background:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .legend .swatch.src-right{background:var(--src-right,var(--roxy-fg))}`,ms=f`:where(.roxy-moon) .moon-shade{fill:var(--roxy-moon-shade)}:where(.roxy-moon) .moon-earthshine{fill:var(--roxy-moon-lit);opacity:.05}:where(.roxy-moon) .moon-soft{fill:var(--roxy-moon-lit)}:where(.roxy-moon) .moon-soft-1{opacity:.18}:where(.roxy-moon) .moon-soft-2{opacity:.34}:where(.roxy-moon) .moon-lit{fill:var(--roxy-moon-lit)}:where(.roxy-moon) .moon-limb{fill:none;stroke:var(--roxy-moon-mare)}:where(.roxy-moon) .moon-limb-1{stroke-width:.1px;opacity:.18}:where(.roxy-moon) .moon-limb-2{stroke-width:.03px;opacity:.3}:where(.roxy-moon) .moon-halo{fill:var(--roxy-moon-mare);opacity:.22}:where(.roxy-moon) .moon-mare{fill:var(--roxy-moon-mare);opacity:.38}:where(.roxy-moon) .moon-crater{fill:none;stroke:var(--roxy-moon-mare);stroke-width:.012px}:where(.roxy-moon) .moon-copper{fill:var(--roxy-moon-eclipse)}:where(.roxy-moon) .moon-copper-limb .moon-limb{stroke:var(--roxy-moon-shade)}:where(.roxy-moon) .moon-copper-mare{fill:var(--roxy-moon-shade);opacity:.3}:where(.roxy-moon) .moon-corona{fill:none;stroke:var(--roxy-moon-corona);stroke-width:.05px}:where(.roxy-moon) .moon-corona-outer{stroke-width:.02px;opacity:.45}:where(.roxy-moon) .moon-rim{fill:none;stroke:var(--roxy-moon-rim);stroke-width:.012px}:where(.roxy-moon) .moon-rim-small{stroke-width:.04px}`;var ve=class{constructor(e){this.host=e;this.state="closed";this.zoom=1;this.pressedBy="";this.press=e2=>{this.pressedBy=e2.pointerType};this.openOnMouse=e2=>{let t=this.pressedBy==="mouse";this.pressedBy="",t&&(e2.target?.closest?.("a, button, summary, input, select, textarea")||getSelection()?.toString()||this.open())};e.addController(this)}hostUpdated(){let e=this.host.renderRoot.querySelector(".roxy-chart-dialog");if(!e)this.reset();else if(e.isConnected&&this.state!=="closed"){this.state==="opening"&&(this.state="open",e.open||e.showModal());let t=e.querySelector(".roxy-chart-scroll");e.open&&t&&this.position&&(t.scrollLeft=t.scrollWidth*this.position.x-t.clientWidth/2,t.scrollTop=t.scrollHeight*this.position.y-t.clientHeight/2,this.position=void 0)}}hostDisconnected(){this.reset(),this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}open(){this.state="opening",this.position={x:.5,y:0},this.host.requestUpdate()}reset(){this.state="closed",this.zoom=1,this.position=void 0}resize(e){let t=this.host.renderRoot.querySelector(".roxy-chart-scroll");this.position=e===0?{x:.5,y:0}:t?{x:(t.scrollLeft+t.clientWidth/2)/t.scrollWidth,y:(t.scrollTop+t.clientHeight/2)/t.scrollHeight}:void 0,this.zoom=e===0?1:Math.min(3,Math.max(1,this.zoom+e)),this.host.requestUpdate()}renderChartViewport(e,t,n){return h`<div class="roxy-chart-view"><div class="roxy-chart-hit" @pointerdown="${this.press}" @click="${this.openOnMouse}">${e}</div><div class="roxy-chart-tools" part="chart-controls"><button type="button" @click="${()=>this.open()}">${n("Enlarge chart")}</button></div><dialog class="roxy-chart-dialog" part="chart-dialog" aria-label="${t}" @close="${()=>{this.reset(),this.host.requestUpdate()}}">${this.state!=="closed"?h`<div class="roxy-chart-bar"><strong>${t}</strong><div class="roxy-chart-tools"><button type="button" aria-label="${n("Zoom out")}" ?disabled="${this.zoom===1}" @click="${()=>this.resize(-.5)}">−</button> <button type="button" @click="${()=>this.resize(0)}">${n("Reset zoom")}</button> <button type="button" aria-label="${n("Zoom in")}" ?disabled="${this.zoom===3}" @click="${()=>this.resize(.5)}">+</button> <button type="button" @click="${()=>this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}">${n("Close")}</button></div></div><div class="roxy-chart-scroll" role="region" tabindex="0" aria-label="${t}"><div class="roxy-chart-expanded" style="${`--chart-zoom:${this.zoom}`}">${e}</div></div>`:d}</dialog></div>`}},ir=f`.roxy-chart-view{min-width:0}@media (hover:hover) and (pointer:fine){.roxy-chart-hit{cursor:zoom-in}}.roxy-chart-tools{gap:var(--roxy-space-sm);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}.roxy-chart-tools button{font-size:var(--roxy-text-sm);color:var(--roxy-secondary);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);min-width:2lh;min-height:2lh;padding:var(--roxy-space-xs) var(--roxy-space-sm);cursor:pointer;background:0 0}.roxy-chart-tools button:hover:not(:disabled){border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-chart-tools button:disabled{color:var(--roxy-muted);cursor:default}.roxy-chart-dialog{--roxy-surface:var(--roxy-bg);width:calc(100% - 2 * var(--roxy-space-md));max-width:calc(var(--roxy-chart-expanded-width,60rem) * 1.2);max-height:calc(100% - 2 * var(--roxy-space-md));padding:var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);color:var(--roxy-fg);background:var(--roxy-bg);box-shadow:var(--roxy-shadow-lg);margin:auto}.roxy-chart-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.roxy-chart-dialog::backdrop{background:color-mix(in oklab, var(--roxy-bg) 85%, transparent)}.roxy-chart-bar{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);margin-bottom:var(--roxy-space-md);flex-wrap:wrap;flex-shrink:0;display:flex}.roxy-chart-bar>strong{overflow-wrap:anywhere;min-width:0}.roxy-chart-scroll{overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}.roxy-chart-expanded{width:max(100%, calc(var(--roxy-chart-expanded-width,60rem) * var(--chart-zoom)));padding:var(--roxy-space-sm)}.roxy-chart-expanded>svg{width:100%;max-width:none;height:auto;margin:0}`;var sr=r=>e=>{customElements.get(r)||customElements.define(r,e)};var ar=new Map;function Sn(r){if(!r)return["en"];let e=ar.get(r);if(e)return[e,"en"];let t="en";try{t=Intl.getCanonicalLocales(r)[0]??"en"}catch{t="en"}return ar.set(r,t),[t,"en"]}function Z(r,e,t=1){return typeof e!="number"||!Number.isFinite(e)?"":e.toLocaleString(Sn(r),{maximumFractionDigits:t})}var kn={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function lr(r,e,t){let n=typeof e=="string"?kn[e]??wt(e):"",o=typeof t=="number"?`${Z(r,t,2)}\xB0`:"";return n&&o?`${n} (${o})`:n||o}function dr(r,e){if(!(typeof e!="string"||!e))return e===r?void 0:e}var cr=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 hr(r,e,t){if(!e?.ayanamsa)return d;let n=lr(r,e.ayanamsa);if(!n)return d;let o=typeof e.ayanamsaDegrees=="number"?Z(r,e.ayanamsaDegrees,4):void 0;return h`<p class="roxy-frame">${o===void 0?t("Sidereal frame: {{frame}}",{frame:n}):t("Sidereal frame: {{frame}}, {{degrees}}\xB0 subtracted",{frame:n,degrees:o})}</p>`}function Tn(r){let e=r%360;return e<0?e+360:e}function we(r){let e=Tn(r),t=Math.floor(e/30)%12,n=e%30,o=Math.floor(n),i=(n-o)*60,s=Math.floor(i),l=Math.round((i-s)*60);return{sign:R[t]??"Aries",signIndex:t,degree:o,minute:s,second:l}}function pr(r,e){let{sign:t,degree:n,minute:o}=we(r);return`${n}\xB0 ${e||t} ${String(o).padStart(2,"0")}'`}var ur="http://www.w3.org/2000/svg",$e=class{constructor(e){this.markup=e}};function En(r){return String(r).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function je(r){return r==null?"":r instanceof $e?r.markup:typeof r=="string"||typeof r=="number"?En(r):r.map(je).join("")}function v(r,...e){let t=r[0]??"";return e.forEach((n,o)=>{t+=t.endsWith("=")?`"${je(n)}"`:je(n),t+=r[o+1]??""}),new $e(t)}function yr(r){return(e,t)=>he(r,e,t)}var k=400,g=20,S=k-2*g,w=k/2,mr=Object.fromEntries(R.map(r=>[r.toLowerCase(),r])),Be="\u02B3",qe="\u1D9C",Ve="\u02B7";function ze(r){return R.indexOf(r)}function An(r){let e=St(r.graha)??r.graha,t=`${r.isRetrograde?Be:""}${r.combust?qe:""}${r.war?Ve:""}`;if(typeof r.longitude!="number"||!Number.isFinite(r.longitude)||r.natalReference)return`${e}${t}`;let{degree:n}=we(r.longitude);return`${e} ${n}\xB0${t}`}function _n(r,e,t){let n=[Ne(r.graha)],o=r.natalReference===true;if(o&&n.push(t("in {{sign}}",{sign:e})),typeof r.longitude=="number"&&Number.isFinite(r.longitude)){let i=we(r.longitude),s=String(i.minute).padStart(2,"0");n.push(o?`D1: ${i.degree}\xB0${s}' ${i.sign}`:`${i.degree}\xB0${s}' ${i.sign}`)}if(r.nakshatra?.name){let i=r.nakshatra.pada?` ${t("pada {{n}}",{n:r.nakshatra.pada})}`:"";n.push(`${o?"D1: ":""}${r.nakshatra.name}${i}`)}return r.nakshatra?.lord&&n.push(t("nakshatra lord {{graha}}",{graha:r.nakshatra.lord})),r.awastha&&n.push(r.awastha),r.deeptadi&&n.push(r.deeptadi),r.combust&&n.push(t("combust")),r.war&&n.push(r.war.winner?t("planetary war with {{graha}}, won by {{winner}}",{graha:r.war.opponent,winner:r.war.winner}):t("planetary war with {{graha}}",{graha:r.war.opponent})),r.isRetrograde&&n.push(t("retrograde")),n.join(" \xB7 ")}function Ye(r,e,t,n,o,i){let s=n-(r.length-1)*o/2;return r.map((l,a)=>{let p=s+a*o;return v`<text class="planet-text" x=${t} y=${p} text-anchor="middle" dominant-baseline="central">${An(l)}<title>${_n(l,e,i)}</title></text>`})}function xr(r,e={}){let{divisionLabel:t,lagnaOverride:n,states:o,natalReference:i}=e,s=new Set((o?.combustion??[]).map(c=>(c.planet??"").toLowerCase())),l=new Map;for(let c of o?.planetaryWar??[])!c.planet1||!c.planet2||(l.set(c.planet1.toLowerCase(),{opponent:c.planet2,winner:c.winner}),l.set(c.planet2.toLowerCase(),{opponent:c.planet1,winner:c.winner}));let a={};for(let c of R)a[c.toLowerCase()]=[];let p=n?mr[n.toLowerCase()]??"":"",u=p;for(let[c,x]of Object.entries(r??{})){let $=(x?.rashi??"").toLowerCase();if(c==="Lagna"||x?.graha==="Lagna"){p||(u=mr[$]??"");continue}if(!$||!($ in a))continue;let E=x.graha??c,ke=E.toLowerCase();a[$]?.push({graha:E,natalReference:i,longitude:x.longitude,nakshatra:x.nakshatra,isRetrograde:x.isRetrograde,awastha:x.awastha,deeptadi:x.deeptadi,combust:s.has(ke)||void 0,war:l.get(ke)})}return{lagnaSign:u,placements:a,divisionLabel:t}}var N=S/4,Rn={Pisces:{col:0,row:0},Aries:{col:1,row:0},Taurus:{col:2,row:0},Gemini:{col:3,row:0},Cancer:{col:3,row:1},Leo:{col:3,row:2},Virgo:{col:3,row:3},Libra:{col:2,row:3},Scorpio:{col:1,row:3},Sagittarius:{col:0,row:3},Capricorn:{col:0,row:2},Aquarius:{col:0,row:1}};function Cn(r){let e=Rn[r]??{col:0,row:0};return{x:g+e.col*N,y:g+e.row*N,w:N,h:N}}function Pn(r){let e=g,t=g+N,n=g+2*N,o=g+3*N,i=k-g;return v`
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),dt=/'/g,ct=/"/g,yt=/^(?:script|style|textarea|title)$/i,Me=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),h=Me(1),to=Me(2),ro=Me(3),_=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ht=new WeakMap,L=M.createTreeWalker(M,129);function mt(r,e){if(!Le(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return st!==void 0?st.createHTML(e):e}var qr=(r,e)=>{let t=r.length-1,n=[],o,i=e===2?"<svg>":e===3?"<math>":"",s=z;for(let l=0;l<t;l++){let a=r[l],p,u,c=-1,x=0;for(;x<a.length&&(s.lastIndex=x,u=s.exec(a),u!==null);)x=s.lastIndex,s===z?u[1]==="!--"?s=at:u[1]!==void 0?s=lt:u[2]!==void 0?(yt.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=F):u[3]!==void 0&&(s=F):s===F?u[0]===">"?(s=o??z,c=-1):u[1]===void 0?c=-2:(c=s.lastIndex-u[2].length,p=u[1],s=u[3]===void 0?F:u[3]==='"'?ct:dt):s===ct||s===dt?s=F:s===at||s===lt?s=z:(s=F,o=void 0);let $=s===F&&r[l+1].startsWith("/>")?" ":"";i+=s===z?a+zr:c>=0?(n.push(p),a.slice(0,c)+pt+a.slice(c)+C+$):a+C+(c===-2?l:$)}return[mt(r,i+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},V=class r{constructor({strings:e,_$litType$:t},n){let o;this.parts=[];let i=0,s=0,l=e.length-1,a=this.parts,[p,u]=qr(e,t);if(this.el=r.createElement(p,n),L.currentNode=this.el.content,t===2||t===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=L.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let c of o.getAttributeNames())if(c.endsWith(pt)){let x=u[s++],$=o.getAttribute(c).split(C),E=/([.?@])?(.*)/.exec(x);a.push({type:1,index:i,name:E[2],strings:$,ctor:E[1]==="."?Re:E[1]==="?"?Ce:E[1]==="@"?Pe:I}),o.removeAttribute(c)}else c.startsWith(C)&&(a.push({type:6,index:i}),o.removeAttribute(c));if(yt.test(o.tagName)){let c=o.textContent.split(C),x=c.length-1;if(x>0){o.textContent=re?re.emptyScript:"";for(let $=0;$<x;$++)o.append(c[$],B()),L.nextNode(),a.push({type:2,index:++i});o.append(c[x],B())}}}else if(o.nodeType===8)if(o.data===ut)a.push({type:2,index:i});else{let c=-1;for(;(c=o.data.indexOf(C,c+1))!==-1;)a.push({type:7,index:i}),c+=C.length-1}i++}}static createElement(e,t){let n=M.createElement("template");return n.innerHTML=e,n}};function D(r,e,t=r,n){if(e===_)return e;let o=n!==void 0?t._$Co?.[n]:t._$Cl,i=q(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(false),i===void 0?o=void 0:(o=new i(r),o._$AT(r,t,n)),n!==void 0?(t._$Co??=[])[n]=o:t._$Cl=o),o!==void 0&&(e=D(r,o._$AS(r,e.values),o,n)),e}var _e=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,o=(e?.creationScope??M).importNode(t,true);L.currentNode=o;let i=L.nextNode(),s=0,l=0,a=n[0];for(;a!==void 0;){if(s===a.index){let p;a.type===2?p=new Y(i,i.nextSibling,this,e):a.type===1?p=new a.ctor(i,a.name,a.strings,this,e):a.type===6&&(p=new Oe(i,this,e)),this._$AV.push(p),a=n[++l]}s!==a?.index&&(i=L.nextNode(),s++)}return L.currentNode=M,o}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},Y=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??true}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=D(this,e,t),q(e)?e===d||e==null||e===""?(this._$AH!==d&&this._$AR(),this._$AH=d):e!==this._$AH&&e!==_&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Br(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==d&&q(this._$AH)?this._$AA.nextSibling.data=e:this.T(M.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=V.createElement(mt(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(t);else{let i=new _e(o,this),s=i.u(this.options);i.p(t),this.T(s),this._$AH=i}}_$AC(e){let t=ht.get(e.strings);return t===void 0&&ht.set(e.strings,t=new V(e)),t}k(e){Le(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,o=0;for(let i of e)o===t.length?t.push(n=new r(this.O(B()),this.O(B()),this,this.options)):n=t[o],n._$AI(i),o++;o<t.length&&(this._$AR(n&&n._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(false,true,t);e!==this._$AB;){let n=it(e).nextSibling;it(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,o,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=d}_$AI(e,t=this,n,o){let i=this.strings,s=false;if(i===void 0)e=D(this,e,t,0),s=!q(e)||e!==this._$AH&&e!==_,s&&(this._$AH=e);else{let l=e,a,p;for(e=i[0],a=0;a<i.length-1;a++)p=D(this,l[n+a],t,a),p===_&&(p=this._$AH[a]),s||=!q(p)||p!==this._$AH[a],p===d?e=d:e!==d&&(e+=(p??"")+i[a+1]),this._$AH[a]=p}s&&!o&&this.j(e)}j(e){e===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Re=class extends I{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===d?void 0:e}},Ce=class extends I{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==d)}},Pe=class extends I{constructor(e,t,n,o,i){super(e,t,n,o,i),this.type=5}_$AI(e,t=this){if((e=D(this,e,t,0)??d)===_)return;let n=this._$AH,o=e===d&&n!==d||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==d&&(n===d||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Oe=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){D(this,e)}};var Vr=Fe.litHtmlPolyfillSupport;Vr?.(V,Y),(Fe.litHtmlVersions??=[]).push("3.3.3");var gt=(r,e,t)=>{let n=t?.renderBefore??e,o=n._$litPart$;if(o===void 0){let i=t?.renderBefore??null;n._$litPart$=o=new Y(e.insertBefore(B(),i),i,void 0,t??{})}return o._$AI(r),o};var Ue=globalThis,P=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=gt(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};P._$litElement$=true,P.finalized=true,Ue.litElementHydrateSupport?.({LitElement:P});var Yr=Ue.litElementPolyfillSupport;Yr?.({LitElement:P});(Ue.litElementVersions??=[]).push("4.2.2");var Wr={attribute:true,type:String,converter:j,reflect:false,hasChanged:te},Zr=(r=Wr,e,t)=>{let{kind:n,metadata:o}=t,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),n==="setter"&&((r=Object.create(r)).wrapped=true),i.set(t.name,r),n==="accessor"){let{name:s}=t;return{set(l){let a=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,a,r,true,l)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(n==="setter"){let{name:s}=t;return function(l){let a=this[s];e.call(this,l),this.requestUpdate(s,a,r,true,l)}}throw Error("Unsupported decorator location: "+n)};function b(r){return(e,t)=>typeof t=="object"?Zr(r,e,t):((n,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,n),s?Object.getOwnPropertyDescriptor(o,i):void 0})(r,e,t)}function T(r){return b({...r,state:true,attribute:false})}var ft={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},xt=r=>(...e)=>({_$litDirective$:r,values:e}),oe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var W=class extends oe{constructor(e){if(super(e),this.it=d,e.type!==ft.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===d||e==null)return this._t=void 0,this.it=e;if(e===_)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};W.directiveName="unsafeHTML",W.resultType=1;var bt=xt(W);var vt=[{endpoint:"vedic-astrology/divisional-chart",method:"POST"},{endpoint:"vedic-astrology/navamsa",method:"POST"}];function ie(r){return r.toLowerCase().replace(/[\s_-]+/g," ").trim()}function Ne(r){return r?r.charAt(0).toUpperCase()+r.slice(1).toLowerCase():""}function wt(r){return r.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,e=>e.toUpperCase())}var Jr=new RegExp("(?![\\d#*])\\p{Emoji}","gu"),Xr=r=>r.replace(Jr,"$&\uFE0E"),se=r=>Object.fromEntries(Object.entries(r).map(([e,t])=>[e,Xr(t)])),De=(r,e)=>e?r[ie(e)]:void 0,Qr=se({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"}),$t=r=>De(Qr,r),en={sun:"Su",moon:"Mo",mercury:"Me",venus:"Ve",mars:"Ma",jupiter:"Ju",saturn:"Sa",uranus:"Ur",neptune:"Ne",pluto:"Pl",rahu:"Ra",ketu:"Ke",ascendant:"Asc",lagna:"La"},St=r=>De(en,r),Xo=se({aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"});var tn={aries:"Ar",taurus:"Ta",gemini:"Ge",cancer:"Cn",leo:"Le",virgo:"Vi",libra:"Li",scorpio:"Sc",sagittarius:"Sg",capricorn:"Cp",aquarius:"Aq",pisces:"Pi"},ae=r=>De(tn,r),R=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],Qo=se({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 ei=se({heaven:"\u2630",lake:"\u2631",fire:"\u2632",thunder:"\u2633",wind:"\u2634",water:"\u2635",mountain:"\u2636",earth:"\u2637"});var U=r=>r??d;var kt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Ge(r){if(r.lang)return r.lang;if(typeof document>"u")return;let e=r.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}var rn={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Ie(r,e){let t=r.toLowerCase();return e.find(n=>n.toLowerCase()===t)}function Tt(r,e=kt){let t=Ge(r);if(!t)return;let n=Ie(t,e);if(n)return n;let o=t.toLowerCase().split("-"),i=o[0];if(i==="zh"){let s=o.find(l=>l==="hans"||l==="hant")??rn[o[1]??""];return s?Ie(`zh-${s}`,e):void 0}return Ie(i,e)}var _t="symbols";var nn={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},He='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Et='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',At='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',le={"fraunces-jost":{name:"Fraunces with Jost",sans:He,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:He,display:He},geist:{name:"Geist",sans:Et,display:Et},system:{name:"System",sans:At,display:At}};function Rt(r){let{sans:e,display:t}=le[r];return Object.keys(nn).filter(n=>`${e} ${t}`.includes(`"${n}"`))}var Ct="1.9.0";var on=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,sn=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Pt(r,e){if(!e)return;let t=new URL(e);if(t.protocol!=="https:"&&t.protocol!=="http:")return;let n=(on.exec(t.pathname)??sn.exec(t.pathname))?.[1];if(n!==void 0)return t.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${r}/dist`:`${t.origin}${n}`}var cn={},an="color-mix(in oklab, var(--roxy-accent) 70%, black)",ln="var(--roxy-accent)",dn="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Ot=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Ft(r){return r!==void 0&&Object.hasOwn(le,r)}function Lt(r){let e=[];return r.brandColor&&Ot.test(r.brandColor)&&e.push(`--roxy-primary:${r.brandColor}`),r.brandAccent&&Ot.test(r.brandAccent)&&e.push(`--roxy-accent:${r.brandAccent}`,`--roxy-accent-ink:light-dark(${an},${ln})`,`--roxy-ring:${dn}`),e.join(";")}function Mt(r,e){if(Ft(e))return e;let t=r.getRootNode();if(("host"in t?t.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=r.shadowRoot?.firstElementChild,i=o?.localName==="style"?o:null;i?.sheet&&(i.sheet.disabled=true);let s,l,a;try{let p=globalThis.getComputedStyle(r),u=c=>p.getPropertyValue(c).trim();s=u("--roxy-font-sans"),l=u("--roxy-font-display"),a=u("--roxy-font")}finally{i?.sheet&&(i.sheet.disabled=false)}if(!(s||l))return Ft(a)?a:void 0}function Ut(r){let{sans:e,display:t}=le[r];return`--roxy-font:${r};--roxy-font-sans:${e};--roxy-font-display:${t}`}var Nt=Pt(Ct,globalThis.document?.currentScript?.src||cn.url);function Dt(r,e){if(typeof document>"u"||e===void 0)return;let t=`roxy-ui-font-${r}`;if(document.getElementById(t))return;let n=document.createElement("link");n.id=t,n.rel="stylesheet",n.href=`${e}/styles/fonts/${r}.css`,document.head.append(n)}function It(r,e=Nt){Rt(r).length>0&&Dt(r,e)}function Gt(r=Nt){Dt(_t,r)}var Ht='@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 de="roxy-ui-tokens";function ce(){if(typeof document>"u")return null;let r=document.getElementById(de);if(r)return r;let e=document.createElement("style");return e.id=de,e.textContent=Ht,document.head.prepend(e),e}var Kt="__ROXY_UI_I18N__";function jt(){let r=globalThis,e=r[Kt];if(e)return e;let t={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return r[Kt]=t,t}function hn(r,e){return e?r.replace(/\{\{(\w+)\}\}/g,(t,n)=>n in e?String(e[n]??""):t):r}function he(r,e,t){return hn(pn(r,e)??e,t)}function pn(r,e){if(!r)return;let{catalogs:t}=jt(),n=r.toLowerCase();return(t[n]??t[n.split("-")[0]])?.[ie(e)]}function zt(r){let{listeners:e}=jt();return e.add(r),()=>{e.delete(r)}}var pe=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=zt(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var ue=class extends P{constructor(){super();this.translator=(t,n)=>this.t(t,n);new pe(this)}connectedCallback(){super.connectedCallback(),ce()}updated(t){super.updated(t),this.renderRoot.querySelector(".roxy-glyph")&&Gt()}fontDeclarations(t){let n=Mt(this,t);return n?(It(n),Ut(n)):""}renderFontStyle(){let t=this.fontDeclarations();return t?h`<style>:host{${t}}</style>`:d}t(t,n){return he(this.effectiveLang(),t,n)}effectiveLang(){return Ge(this)}};var Bt=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function ye(r){return r?h`<span class="roxy-glyph" aria-hidden="true">${r}</span>`:d}var qt=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 un=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}`,me=[un,qt,Bt];var yn="__cols",mn="__rows";function gn(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function ge(r){if(Array.isArray(r)){let i=false,s=r.map(l=>{let a=ge(l);return a!==l&&(i=true),a});return i?s:r}if(!gn(r))return r;let e=r[yn],t=r[mn];if(Array.isArray(e)&&Array.isArray(t)&&Object.keys(r).length===2)return t.map(i=>{let s={};return e.forEach((l,a)=>{s[l]=ge(i[a])}),s});let n=false,o={};for(let[i,s]of Object.entries(r)){let l=ge(s);l!==s&&(n=true),o[i]=l}return n?o:r}function Vt(r){return ge(r)}function Yt(r,e){return r.find(t=>t.attrs&&Object.entries(t.attrs).every(([n,o])=>e[n]===o))??r[0]}var fn="pk_live_YOUR_KEY",Wt={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 Zt(r){if(r)return r===fn?Wt.sample:r.startsWith("pk_")?void 0:Wt.secret}function Jt(r,e,t={}){t.warn&&console.warn(e.message),r.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:e.reason,message:e.message},bubbles:true,composed:true}))}var Xt="https://roxyapi.com/api/v2";async function xn(r){try{let e=await r.json();if(e?.error){let t=e.code==="validation_error"&&Array.isArray(e.issues)?e.issues.filter(n=>typeof n.path=="string"&&typeof n.message=="string").map(n=>({path:n.path,message:n.message})):null;return{message:e.error,issues:t?.length?t:null,worded:true,...e.code?{code:e.code}:{}}}}catch{}return{message:`Request failed (${r.status})`,issues:null,worded:false}}var Qt={fromAttribute:r=>{if(r!=null){try{let e=JSON.parse(r);if(e&&typeof e=="object"&&!Array.isArray(e))return e}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},G=class extends Error{constructor(t,n=null,o=true,i,s){super(t);this.issues=n;this.worded=o;this.status=i;this.code=s}};function er(r){return r.submitUrl?void 0:Zt(r.publishableKey)}async function Ke(r,e,t){let n=er(r);if(n)throw new G(n.message);let o=r.submitUrl?await fetch(r.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:bn(e,r.submitContext),signal:t}):await vn(r,e,t);if(!o.ok){let i=await xn(o);throw new G(i.message,i.issues,i.worded,o.status,i.code)}return await o.json()}function bn(r,e){return JSON.stringify(e?{...r,context:e}:r)}function vn(r,e,t){let n=new URL(`${r.baseUrl??Xt}${e.path}`,document.baseURI);for(let[i,s]of Object.entries(e.query??{}))s!=null&&n.searchParams.set(i,String(s));let o={Accept:"application/json"};return r.publishableKey&&(o["X-API-Key"]=r.publishableKey),e.body!=null&&(o["Content-Type"]="application/json"),fetch(n,{method:e.method??"GET",headers:o,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}var fe=class{constructor(e){this.baseUrl=Xt;this.worded=true;this.failure={};this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){this.worded=true,this.failure={};let t=er(this);if(t){this.host.error=t.message,Jt(this.host,t);return}this.abort?.abort();let n=new AbortController;this.abort=n,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let o=await Ke(this,e,n.signal);if(n.signal.aborted)return;this.host.data=o}catch(o){if(n.signal.aborted||o?.name==="AbortError")return;o instanceof G&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof G&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===n&&(this.abort=void 0),n.signal.aborted||(this.host.loading=false)}}};function tr(r,e,t,n=[]){let o={...t},i=`/${r.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,u)=>{let c=o[u];return delete o[u],encodeURIComponent(String(c??""))}),s=new Set(n),l={},a={};for(let[p,u]of Object.entries(o))u===void 0||u===""||(e==="GET"||s.has(p)?l[p]=u:a[p]=u);return{path:i,method:e,query:l,body:e==="POST"?a:void 0}}function xe(){return h`<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 rr=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 Yi=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 nr(r,e,t,n=false){let o=r.filter(i=>!!i.body);return o.length===0?d:h`<section class="block" part="section readings"><h3>${t}</h3>${o.map((i,s)=>h`<details class="interp-card" part="reading" name="${e}" ?open="${s===0&&!n}"><summary><span class="interp-lead">${ye(i.glyph)} ${i.label}</span> ${xe()} ${i.aside?h`<span class="interp-aside"><small>${i.aside}</small></span>`:d}</summary><div class="interp-body"><p>${i.body}</p>${i.extra??d}</div></details>`)}</section>`}var wn="roxy-data";function $n(r){return r.nodeName==="SCRIPT"&&r.getAttribute("type")==="application/json"}var be=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){if(this.host.data!=null)return;let e=this.read();e!==void 0&&(this.host.data=e,this.host.requestUpdate())}read(){let e=this.findInlineScript();return e?this.parse(e.textContent):void 0}findInlineScript(){for(let e of Array.from(this.host.children))if($n(e)&&e.classList.contains(wn))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var m=class extends ue{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 t=this.lastRequest,n=this.listKey,o=this.listRows();if(!(!t||!n||!o)){this.moreLoading=true,this.moreError=null;try{let i=await Ke(this.fetcher,{...t,query:{...t.query,offset:o.length}});if(this.lastRequest!==t)return;let s=i[n];this.data={...this.data,...i,[n]:[...o,...Array.isArray(s)?s:[]]}}catch(i){this.lastRequest===t&&(this.moreError=i instanceof Error?i.message:String(i))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=t=>{let n=this.selfFetch();if(!n)return;let o=t.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(tr(n.endpoint,n.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new be(this),this.fetcher=new fe(this)}static{this.styles=[me]}static{this.endpoints=[]}willUpdate(t){if(t.has("data")&&this.data!=null){let n=Vt(this.data);n!==this.data&&(this.data=n)}(t.has("publishableKey")||t.has("baseUrl")||t.has("submitUrl")||t.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let t=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:Yt(this.constructor.endpoints,this);return t&&{endpoint:t.endpoint,method:this.method??t.method}}render(){return h`${this.hostStyle()}${this.renderState()}`}drawn(t){try{return this.renderData(t)}catch(n){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,n),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:n},bubbles:true,composed:true})),customElements.get("roxy-data")?h`<roxy-data .data="${t}" lang="${U(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let t=this.hideSections.split(",").map(i=>i.trim().toLowerCase()).filter(i=>/^[a-z][a-z0-9-]*$/.test(i)),n=[Lt(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(t.length===0&&!n)return d;let o=(n?`:host{${n}}`:"")+t.map(i=>`[part~="${i}"],roxy-endpoint-form::part(${i}){display:none!important}`).join("");return h`<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()?h`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(t,n,o,i=false){return this.hideReadings?d:nr(t,n,this.t(o??"Reading"),i)}renderResult(t){let n=h`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(t)}`;return this.showAttribution()?h`${n}${this.renderAttribution()}`:n}renderWithForm(t){return h`${this.renderForm()}${t}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?d:this.renderErrorBanner(this.error):this.data==null?d:this.showAttribution()?h`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let t=this.listRows(),n=this.data?.total;return!this.lastRequest||!t||typeof n!="number"?d:t.length>=n?d:h`<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?h`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:d}</div>`}listRows(){let t=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(t)?t:void 0}fetchFresh(t){return this.lastRequest=t,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(t)}load(t){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(t)}pickRow(t){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:t,bubbles:true,composed:true})),this.openRow(t.id)}openRow(t){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let n=this.openedRow??document.createElement(this.rowDetail.tag);n.publishableKey=this.publishableKey,n.baseUrl=this.baseUrl,n.submitUrl=this.submitUrl,n.submitContext=this.submitContext,n.hideReadings=this.hideReadings,n.hideSections=this.hideSections;let o=this.effectiveLang();o&&n.setAttribute("lang",o),this.openedRow=n,this.openedRowId=t,n.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(t))}`,method:"GET",query:{lang:Tt(this)}}).then(()=>n.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return h`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(d):this.renderEmpty()}renderForm(){let t=this.selfFetch();return h`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${t?.endpoint??""}" method="${t?.method??"POST"}" spec-url="${U(this.specUrl)}" publishable-key="${U(this.publishableKey)}" location-url="${U(this.locationUrl)}" submit-label="${U(this.submitLabel)}" lang="${U(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let t=sessionStorage.getItem(this.rememberKey());return t?JSON.parse(t):void 0}catch{return}}writeRemembered(t){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(t))}catch{}}renderEmpty(){return h`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return h`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let n=!!this.selfFetch();if(n&&this.issues)return this.renderForm();let o=this.renderErrorBanner(t);return n?h`${o}${this.renderForm()}`:o}renderErrorBanner(t){return h`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(t)}</div>`}};y([b({attribute:false})],m.prototype,"data",2),y([b({type:String,attribute:"data-endpoint"})],m.prototype,"endpoint",2),y([b({type:String})],m.prototype,"method",2),y([b({type:String,attribute:"publishable-key"})],m.prototype,"publishableKey",2),y([b({type:String,attribute:"base-url"})],m.prototype,"baseUrl",2),y([b({type:String,attribute:"spec-url"})],m.prototype,"specUrl",2),y([b({type:String,attribute:"submit-url"})],m.prototype,"submitUrl",2),y([b({attribute:"submit-context",converter:Qt})],m.prototype,"submitContext",2),y([b({type:String,attribute:"location-url"})],m.prototype,"locationUrl",2),y([b({type:Boolean})],m.prototype,"remember",2),y([b({type:Boolean,attribute:"hide-readings",reflect:true})],m.prototype,"hideReadings",2),y([b({type:String,attribute:"hide-sections",reflect:true})],m.prototype,"hideSections",2),y([b({type:String,attribute:"brand-color"})],m.prototype,"brandColor",2),y([b({type:String,attribute:"brand-accent"})],m.prototype,"brandAccent",2),y([b({type:String})],m.prototype,"font",2),y([b({type:String})],m.prototype,"hemisphere",2),y([b({type:String,attribute:"submit-label"})],m.prototype,"submitLabel",2),y([b({type:String,attribute:"error-message"})],m.prototype,"errorMessage",2),y([b({type:String})],m.prototype,"attribution",2),y([T()],m.prototype,"loading",2),y([T()],m.prototype,"error",2),y([T()],m.prototype,"issues",2),y([T()],m.prototype,"selfFetched",2),y([T()],m.prototype,"editing",2),y([T()],m.prototype,"sticky",2),y([T()],m.prototype,"openedRow",2),y([T()],m.prototype,"openedRowId",2),y([T()],m.prototype,"moreLoading",2),y([T()],m.prototype,"moreError",2);var ps=f`:where(.natal-wheel) .wheel-line,:where(.natal-wheel) .tick{fill:none;stroke:var(--roxy-border)}:where(.natal-wheel) .tick-major{stroke:var(--roxy-secondary)}:where(.natal-wheel) .sign-glyph{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}:where(.natal-wheel) .planet-glyph{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .875);font-weight:var(--roxy-weight-bold)}:where(.natal-wheel) .planet-deg{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .4375)}:where(.natal-wheel) .planet-deg .retro{fill:var(--roxy-danger-fg)}:where(.natal-wheel) .planet-leader{stroke:var(--roxy-accent);stroke-width:.5px;opacity:.55}:where(.natal-wheel) .house-num{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .5625)}:where(.natal-wheel) .cusp-deg{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .375)}:where(.natal-wheel) .angle-marker{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold)}:where(.natal-wheel) .angle-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}@container (width<=480px){:where(.natal-wheel) .sign-glyph,:where(.natal-wheel) .planet-glyph{font-size:calc(var(--roxy-text-base) * 1.5)}:where(.natal-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .8125)}:where(.natal-wheel) .house-num{font-size:calc(var(--roxy-text-base) * .75)}}`,us=f`:where(.synastry-wheel) .wheel-line{fill:none;stroke:var(--roxy-border)}:where(.synastry-wheel) .p1{--_person:var(--roxy-accent-ink)}:where(.synastry-wheel) .p2{--_person:var(--roxy-fg)}:where(.synastry-wheel) .sign{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}:where(.synastry-wheel) text.p1,:where(.synastry-wheel) text.p2{fill:var(--_person);font-size:calc(var(--roxy-text-base) * 1.125);font-weight:var(--roxy-weight-bold)}:where(.synastry-wheel) .person-tag,:where(.synastry-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .625)}:where(.synastry-wheel) .planet-deg{fill:var(--roxy-muted)}:where(.synastry-wheel) .planet-deg .retro{fill:var(--roxy-danger-fg)}:where(.synastry-wheel) .leader{stroke:var(--_person);stroke-width:.5px;opacity:.7}@container (width<=480px){:where(.synastry-wheel) .sign,:where(.synastry-wheel) text.p1,:where(.synastry-wheel) text.p2{font-size:calc(var(--roxy-text-base) * 1.75)}:where(.synastry-wheel) .person-tag,:where(.synastry-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .9375)}}:where(.synastry-wheel) .asc-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}:where(.synastry-wheel) .asc-label{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .5625);font-weight:var(--roxy-weight-bold)}`,or=f`:where(.kundli) .line{fill:#0000;stroke:var(--roxy-border)}:where(.kundli) .sign-text{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans);text-transform:uppercase}:where(.kundli) .rashi-num{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .75);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans)}:where(.kundli) .house-num{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .planet-text{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .centre-label{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .lagna-marker{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans);text-transform:uppercase}:where(.kundli) .lagna-bg{fill:color-mix(in srgb, var(--roxy-accent) 14%, transparent)}:where(.kundli) .lagna-slash{stroke:var(--roxy-accent);stroke-linecap:round;opacity:.7}`,ys=f`:where(.bodygraph) .bg-body{fill:color-mix(in srgb, var(--roxy-secondary) 8%, transparent);stroke:var(--roxy-border);stroke-width:1px}:where(.bodygraph) .bg-channel{stroke:var(--roxy-border);stroke-width:5px;stroke-linecap:round}:where(.bodygraph) .bg-half{stroke-width:5px;stroke-linecap:round}:where(.bodygraph) .bg-half.stripe{stroke-linecap:butt;stroke-dasharray:7 7}:where(.bodygraph) .bg-center{fill:var(--_mask,var(--roxy-bg));stroke:var(--roxy-secondary);stroke-width:1.8px}:where(.bodygraph) .bg-center.defined{stroke:color-mix(in srgb, var(--roxy-fg) 45%, transparent)}:where(.bodygraph){--_gold:color-mix(in oklch, var(--roxy-warning) 60%, var(--roxy-success));--_gold-ink:color-mix(in oklch, var(--roxy-warning-fg) 60%, var(--roxy-success-fg));--_center-gold:light-dark(color-mix(in oklab, var(--_gold) 40%, var(--roxy-bg)),color-mix(in oklab, var(--_gold) 50%, var(--_gold-ink)));--_center-green:light-dark(color-mix(in oklab, var(--roxy-success) 40%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-success) 50%, var(--roxy-success-fg)));--_center-red:light-dark(color-mix(in oklab, var(--roxy-danger) 40%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-danger) 50%, var(--roxy-danger-fg)));--_center-brown:light-dark(color-mix(in oklab, color-mix(in oklab, var(--roxy-warning-fg) 75%, var(--roxy-fg)) 45%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-warning-fg) 50%, var(--roxy-secondary)))}:where(.bodygraph) .bg-center.bg-gold.defined,:where(.bodygraph) .legend .swatch.bg-gold{fill:var(--_center-gold);background:var(--_center-gold)}:where(.bodygraph) .bg-center.bg-green.defined,:where(.bodygraph) .legend .swatch.bg-green{fill:var(--_center-green);background:var(--_center-green)}:where(.bodygraph) .bg-center.bg-red.defined,:where(.bodygraph) .legend .swatch.bg-red{fill:var(--_center-red);background:var(--_center-red)}:where(.bodygraph) .bg-center.bg-brown.defined,:where(.bodygraph) .legend .swatch.bg-brown{fill:var(--_center-brown);background:var(--_center-brown)}:where(.bodygraph) .bg-gate-dot{fill:var(--_mask,var(--roxy-bg));stroke:var(--roxy-border);stroke-width:1px}:where(.bodygraph) .bg-gate-dot.on{stroke:var(--_mask,var(--roxy-bg))}:where(.bodygraph) .bg-center-name{color:var(--roxy-muted);fill:currentColor;font-weight:var(--roxy-weight-bold);text-transform:uppercase;pointer-events:none}:where(.bodygraph) .bg-center-name.defined{color:light-dark(var(--roxy-fg),var(--roxy-bg))}:where(.bodygraph) .bg-gate{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .50625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.bodygraph) .bg-gate.on{fill:var(--src-ink,var(--_mask,var(--roxy-bg)))}:where(.bodygraph) .bg-half.src-left{stroke:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .bg-half.src-right{stroke:var(--src-right,var(--roxy-fg))}:where(.bodygraph) .bg-gate-dot.on.src-left{fill:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .bg-gate-dot.on.src-right{fill:var(--src-right,var(--roxy-fg))}:where(.bodygraph) .legend .swatch.src-left{background:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .legend .swatch.src-right{background:var(--src-right,var(--roxy-fg))}`,ms=f`:where(.roxy-moon) .moon-shade{fill:var(--roxy-moon-shade)}:where(.roxy-moon) .moon-earthshine{fill:var(--roxy-moon-lit);opacity:.05}:where(.roxy-moon) .moon-soft{fill:var(--roxy-moon-lit)}:where(.roxy-moon) .moon-soft-1{opacity:.18}:where(.roxy-moon) .moon-soft-2{opacity:.34}:where(.roxy-moon) .moon-lit{fill:var(--roxy-moon-lit)}:where(.roxy-moon) .moon-limb{fill:none;stroke:var(--roxy-moon-mare)}:where(.roxy-moon) .moon-limb-1{stroke-width:.1px;opacity:.18}:where(.roxy-moon) .moon-limb-2{stroke-width:.03px;opacity:.3}:where(.roxy-moon) .moon-halo{fill:var(--roxy-moon-mare);opacity:.22}:where(.roxy-moon) .moon-mare{fill:var(--roxy-moon-mare);opacity:.38}:where(.roxy-moon) .moon-crater{fill:none;stroke:var(--roxy-moon-mare);stroke-width:.012px}:where(.roxy-moon) .moon-copper{fill:var(--roxy-moon-eclipse)}:where(.roxy-moon) .moon-copper-limb .moon-limb{stroke:var(--roxy-moon-shade)}:where(.roxy-moon) .moon-copper-mare{fill:var(--roxy-moon-shade);opacity:.3}:where(.roxy-moon) .moon-corona{fill:none;stroke:var(--roxy-moon-corona);stroke-width:.05px}:where(.roxy-moon) .moon-corona-outer{stroke-width:.02px;opacity:.45}:where(.roxy-moon) .moon-rim{fill:none;stroke:var(--roxy-moon-rim);stroke-width:.012px}:where(.roxy-moon) .moon-rim-small{stroke-width:.04px}`;var ve=class{constructor(e){this.host=e;this.state="closed";this.zoom=1;this.pressedBy="";this.press=e2=>{this.pressedBy=e2.pointerType};this.openOnMouse=e2=>{let t=this.pressedBy==="mouse";this.pressedBy="",t&&(e2.target?.closest?.("a, button, summary, input, select, textarea")||getSelection()?.toString()||this.open())};e.addController(this)}hostUpdated(){let e=this.host.renderRoot.querySelector(".roxy-chart-dialog");if(!e)this.reset();else if(e.isConnected&&this.state!=="closed"){this.state==="opening"&&(this.state="open",e.open||e.showModal());let t=e.querySelector(".roxy-chart-scroll");e.open&&t&&this.position&&(t.scrollLeft=t.scrollWidth*this.position.x-t.clientWidth/2,t.scrollTop=t.scrollHeight*this.position.y-t.clientHeight/2,this.position=void 0)}}hostDisconnected(){this.reset(),this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}open(){this.state="opening",this.position={x:.5,y:0},this.host.requestUpdate()}reset(){this.state="closed",this.zoom=1,this.position=void 0}resize(e){let t=this.host.renderRoot.querySelector(".roxy-chart-scroll");this.position=e===0?{x:.5,y:0}:t?{x:(t.scrollLeft+t.clientWidth/2)/t.scrollWidth,y:(t.scrollTop+t.clientHeight/2)/t.scrollHeight}:void 0,this.zoom=e===0?1:Math.min(3,Math.max(1,this.zoom+e)),this.host.requestUpdate()}renderChartViewport(e,t,n){return h`<div class="roxy-chart-view"><div class="roxy-chart-hit" @pointerdown="${this.press}" @click="${this.openOnMouse}">${e}</div><div class="roxy-chart-tools" part="chart-controls"><button type="button" @click="${()=>this.open()}">${n("Enlarge chart")}</button></div><dialog class="roxy-chart-dialog" part="chart-dialog" aria-label="${t}" @close="${()=>{this.reset(),this.host.requestUpdate()}}">${this.state!=="closed"?h`<div class="roxy-chart-bar"><strong>${t}</strong><div class="roxy-chart-tools"><button type="button" aria-label="${n("Zoom out")}" ?disabled="${this.zoom===1}" @click="${()=>this.resize(-.5)}">−</button> <button type="button" @click="${()=>this.resize(0)}">${n("Reset zoom")}</button> <button type="button" aria-label="${n("Zoom in")}" ?disabled="${this.zoom===3}" @click="${()=>this.resize(.5)}">+</button> <button type="button" @click="${()=>this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}">${n("Close")}</button></div></div><div class="roxy-chart-scroll" role="region" tabindex="0" aria-label="${t}"><div class="roxy-chart-expanded" style="${`--chart-zoom:${this.zoom}`}">${e}</div></div>`:d}</dialog></div>`}},ir=f`.roxy-chart-view{min-width:0}@media (hover:hover) and (pointer:fine){.roxy-chart-hit{cursor:zoom-in}}.roxy-chart-tools{gap:var(--roxy-space-sm);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}.roxy-chart-tools button{font-size:var(--roxy-text-sm);color:var(--roxy-secondary);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);min-width:2lh;min-height:2lh;padding:var(--roxy-space-xs) var(--roxy-space-sm);cursor:pointer;background:0 0}.roxy-chart-tools button:hover:not(:disabled){border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-chart-tools button:disabled{color:var(--roxy-muted);cursor:default}.roxy-chart-dialog{--roxy-surface:var(--roxy-bg);width:calc(100% - 2 * var(--roxy-space-md));max-width:calc(var(--roxy-chart-expanded-width,60rem) * 1.2);max-height:calc(100% - 2 * var(--roxy-space-md));padding:var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);color:var(--roxy-fg);background:var(--roxy-bg);box-shadow:var(--roxy-shadow-lg);margin:auto}.roxy-chart-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.roxy-chart-dialog::backdrop{background:color-mix(in oklab, var(--roxy-bg) 85%, transparent)}.roxy-chart-bar{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);margin-bottom:var(--roxy-space-md);flex-wrap:wrap;flex-shrink:0;display:flex}.roxy-chart-bar>strong{overflow-wrap:anywhere;min-width:0}.roxy-chart-scroll{overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}.roxy-chart-expanded{width:max(100%, calc(var(--roxy-chart-expanded-width,60rem) * var(--chart-zoom)));padding:var(--roxy-space-sm)}.roxy-chart-expanded>svg{width:100%;max-width:none;height:auto;margin:0}`;var sr=r=>e=>{customElements.get(r)||customElements.define(r,e)};var ar=new Map;function Sn(r){if(!r)return["en"];let e=ar.get(r);if(e)return[e,"en"];let t="en";try{t=Intl.getCanonicalLocales(r)[0]??"en"}catch{t="en"}return ar.set(r,t),[t,"en"]}function Z(r,e,t=1){return typeof e!="number"||!Number.isFinite(e)?"":e.toLocaleString(Sn(r),{maximumFractionDigits:t})}var kn={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function lr(r,e,t){let n=typeof e=="string"?kn[e]??wt(e):"",o=typeof t=="number"?`${Z(r,t,2)}\xB0`:"";return n&&o?`${n} (${o})`:n||o}function dr(r,e){if(!(typeof e!="string"||!e))return e===r?void 0:e}var cr=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 hr(r,e,t){if(!e?.ayanamsa)return d;let n=lr(r,e.ayanamsa);if(!n)return d;let o=typeof e.ayanamsaDegrees=="number"?Z(r,e.ayanamsaDegrees,4):void 0;return h`<p class="roxy-frame">${o===void 0?t("Sidereal frame: {{frame}}",{frame:n}):t("Sidereal frame: {{frame}}, {{degrees}}\xB0 subtracted",{frame:n,degrees:o})}</p>`}function Tn(r){let e=r%360;return e<0?e+360:e}function we(r){let e=Tn(r),t=Math.floor(e/30)%12,n=e%30,o=Math.floor(n),i=(n-o)*60,s=Math.floor(i),l=Math.round((i-s)*60);return{sign:R[t]??"Aries",signIndex:t,degree:o,minute:s,second:l}}function pr(r,e){let{sign:t,degree:n,minute:o}=we(r);return`${n}\xB0 ${e||t} ${String(o).padStart(2,"0")}'`}var ur="http://www.w3.org/2000/svg",$e=class{constructor(e){this.markup=e}};function En(r){return String(r).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function je(r){return r==null?"":r instanceof $e?r.markup:typeof r=="string"||typeof r=="number"?En(r):r.map(je).join("")}function v(r,...e){let t=r[0]??"";return e.forEach((n,o)=>{t+=t.endsWith("=")?`"${je(n)}"`:je(n),t+=r[o+1]??""}),new $e(t)}function yr(r){return(e,t)=>he(r,e,t)}var k=400,g=20,S=k-2*g,w=k/2,mr=Object.fromEntries(R.map(r=>[r.toLowerCase(),r])),Be="\u02B3",qe="\u1D9C",Ve="\u02B7";function ze(r){return R.indexOf(r)}function An(r){let e=St(r.graha)??r.graha,t=`${r.isRetrograde?Be:""}${r.combust?qe:""}${r.war?Ve:""}`;if(typeof r.longitude!="number"||!Number.isFinite(r.longitude)||r.natalReference)return`${e}${t}`;let{degree:n}=we(r.longitude);return`${e} ${n}\xB0${t}`}function _n(r,e,t){let n=[Ne(r.graha)],o=r.natalReference===true;if(o&&n.push(t("in {{sign}}",{sign:e})),typeof r.longitude=="number"&&Number.isFinite(r.longitude)){let i=we(r.longitude),s=String(i.minute).padStart(2,"0");n.push(o?`D1: ${i.degree}\xB0${s}' ${i.sign}`:`${i.degree}\xB0${s}' ${i.sign}`)}if(r.nakshatra?.name){let i=r.nakshatra.pada?` ${t("pada {{n}}",{n:r.nakshatra.pada})}`:"";n.push(`${o?"D1: ":""}${r.nakshatra.name}${i}`)}return r.nakshatra?.lord&&n.push(t("nakshatra lord {{graha}}",{graha:r.nakshatra.lord})),r.awastha&&n.push(r.awastha),r.deeptadi&&n.push(r.deeptadi),r.combust&&n.push(t("combust")),r.war&&n.push(r.war.winner?t("planetary war with {{graha}}, won by {{winner}}",{graha:r.war.opponent,winner:r.war.winner}):t("planetary war with {{graha}}",{graha:r.war.opponent})),r.isRetrograde&&n.push(t("retrograde")),n.join(" \xB7 ")}function Ye(r,e,t,n,o,i){let s=n-(r.length-1)*o/2;return r.map((l,a)=>{let p=s+a*o;return v`<text class="planet-text" x=${t} y=${p} text-anchor="middle" dominant-baseline="central">${An(l)}<title>${_n(l,e,i)}</title></text>`})}function xr(r,e={}){let{divisionLabel:t,lagnaOverride:n,states:o,natalReference:i}=e,s=new Set((o?.combustion??[]).map(c=>(c.planet??"").toLowerCase())),l=new Map;for(let c of o?.planetaryWar??[])!c.planet1||!c.planet2||(l.set(c.planet1.toLowerCase(),{opponent:c.planet2,winner:c.winner}),l.set(c.planet2.toLowerCase(),{opponent:c.planet1,winner:c.winner}));let a={};for(let c of R)a[c.toLowerCase()]=[];let p=n?mr[n.toLowerCase()]??"":"",u=p;for(let[c,x]of Object.entries(r??{})){let $=(x?.rashi??"").toLowerCase();if(c==="Lagna"||x?.graha==="Lagna"){p||(u=mr[$]??"");continue}if(!$||!($ in a))continue;let E=x.graha??c,ke=E.toLowerCase();a[$]?.push({graha:E,natalReference:i,longitude:x.longitude,nakshatra:x.nakshatra,isRetrograde:x.isRetrograde,awastha:x.awastha,deeptadi:x.deeptadi,combust:s.has(ke)||void 0,war:l.get(ke)})}return{lagnaSign:u,placements:a,divisionLabel:t}}var N=S/4,Rn={Pisces:{col:0,row:0},Aries:{col:1,row:0},Taurus:{col:2,row:0},Gemini:{col:3,row:0},Cancer:{col:3,row:1},Leo:{col:3,row:2},Virgo:{col:3,row:3},Libra:{col:2,row:3},Scorpio:{col:1,row:3},Sagittarius:{col:0,row:3},Capricorn:{col:0,row:2},Aquarius:{col:0,row:1}};function Cn(r){let e=Rn[r]??{col:0,row:0};return{x:g+e.col*N,y:g+e.row*N,w:N,h:N}}function Pn(r){let e=g,t=g+N,n=g+2*N,o=g+3*N,i=k-g;return v`
4
4
  <rect class="line" x=${e} y=${e} width=${S} height=${S} stroke-width="1.5" fill="none" />
5
5
  <line class="line" x1=${e} y1=${t} x2=${i} y2=${t} stroke-width="1" />
6
6
  <line class="line" x1=${e} y1=${o} x2=${i} y2=${o} stroke-width="1" />
@@ -1,3 +1,3 @@
1
1
  var RoxyUI_dosha_card=(()=>{var H=Object.defineProperty;var St=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Re=Object.prototype.hasOwnProperty;var Oe=(n,t)=>{for(var e in t)H(n,e,{get:t[e],enumerable:true})},Fe=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ce(t))!Re.call(n,o)&&o!==e&&H(n,o,{get:()=>t[o],enumerable:!(r=St(t,o))||r.enumerable});return n};var Pe=n=>Fe(H({},"__esModule",{value:true}),n),p=(n,t,e,r)=>{for(var o=r>1?void 0:r?St(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&&H(t,e,o),o};var xr={};Oe(xr,{ROXY_UI_TOKENS_STYLE_ID:()=>W,RoxyDoshaCard:()=>$,injectRoxyTokens:()=>J});var K=globalThis,B=K.ShadowRoot&&(K.ShadyCSS===void 0||K.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ot=Symbol(),wt=new WeakMap,P=class{constructor(t,e,r){if(this._$cssResult$=true,r!==ot)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(B&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=wt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&wt.set(e,t))}return t}toString(){return this.cssText}},Et=n=>new P(typeof n=="string"?n:n+"",void 0,ot),g=(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 P(e,n,ot)},$t=(n,t)=>{if(B)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=K.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,n.appendChild(r)}},it=B?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Et(e)})(n):n;var{is:Ue,defineProperty:Le,getOwnPropertyDescriptor:Ne,getOwnPropertyNames:De,getOwnPropertySymbols:Ie,getPrototypeOf:Me}=Object,z=globalThis,Tt=z.trustedTypes,je=Tt?Tt.emptyScript:"",Ge=z.reactiveElementPolyfillSupport,U=(n,t)=>n,L={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}},q=(n,t)=>!Ue(n,t),kt={attribute:true,type:String,converter:L,reflect:false,useDefault:false,hasChanged:q};Symbol.metadata??=Symbol("metadata"),z.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=kt){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&&Le(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){let{get:o,set:i}=Ne(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:o,set(s){let d=o?.call(this);i?.call(this,s),this.requestUpdate(t,d,r)},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??kt}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;let t=Me(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(U("properties"))){let e=this.properties,r=[...De(e),...Ie(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(it(o))}else t!==void 0&&e.push(it(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 $t(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:L).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:L;this._$Em=o;let d=s.fromAttribute(e,i.type);this[o]=d??this._$Ej?.get(o)??d,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??q)(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,d=this[o];s!==true||this._$AL.has(o)||d===void 0||this.C(o,void 0,i,d)}}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[U("elementProperties")]=new Map,v[U("finalized")]=new Map,Ge?.({ReactiveElement:v}),(z.reactiveElementVersions??=[]).push("2.1.2");var ht=globalThis,At=n=>n,Y=ht.trustedTypes,_t=Y?Y.createPolicy("lit-html",{createHTML:n=>n}):void 0,Ut="$lit$",w=`lit$${Math.random().toFixed(9).slice(2)}$`,Lt="?"+w,He=`<${Lt}>`,A=document,D=()=>A.createComment(""),I=n=>n===null||typeof n!="object"&&typeof n!="function",ut=Array.isArray,Ke=n=>ut(n)||typeof n?.[Symbol.iterator]=="function",st=`[
2
2
  \f\r]`,N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ct=/-->/g,Rt=/>/g,T=RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ot=/'/g,Ft=/"/g,Nt=/^(?:script|style|textarea|title)$/i,mt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),c=mt(1),$r=mt(2),Tr=mt(3),_=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),Pt=new WeakMap,k=A.createTreeWalker(A,129);function Dt(n,t){if(!ut(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return _t!==void 0?_t.createHTML(t):t}var Be=(n,t)=>{let e=n.length-1,r=[],o,i=t===2?"<svg>":t===3?"<math>":"",s=N;for(let d=0;d<e;d++){let a=n[d],y,u,m=-1,b=0;for(;b<a.length&&(s.lastIndex=b,u=s.exec(a),u!==null);)b=s.lastIndex,s===N?u[1]==="!--"?s=Ct:u[1]!==void 0?s=Rt:u[2]!==void 0?(Nt.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=T):u[3]!==void 0&&(s=T):s===T?u[0]===">"?(s=o??N,m=-1):u[1]===void 0?m=-2:(m=s.lastIndex-u[2].length,y=u[1],s=u[3]===void 0?T:u[3]==='"'?Ft:Ot):s===Ft||s===Ot?s=T:s===Ct||s===Rt?s=N:(s=T,o=void 0);let S=s===T&&n[d+1].startsWith("/>")?" ":"";i+=s===N?a+He:m>=0?(r.push(y),a.slice(0,m)+Ut+a.slice(m)+w+S):a+w+(m===-2?d:S)}return[Dt(n,i+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},M=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let i=0,s=0,d=t.length-1,a=this.parts,[y,u]=Be(t,e);if(this.el=n.createElement(y,r),k.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=k.nextNode())!==null&&a.length<d;){if(o.nodeType===1){if(o.hasAttributes())for(let m of o.getAttributeNames())if(m.endsWith(Ut)){let b=u[s++],S=o.getAttribute(m).split(w),G=/([.?@])?(.*)/.exec(b);a.push({type:1,index:i,name:G[2],strings:S,ctor:G[1]==="."?dt:G[1]==="?"?lt:G[1]==="@"?ct:O}),o.removeAttribute(m)}else m.startsWith(w)&&(a.push({type:6,index:i}),o.removeAttribute(m));if(Nt.test(o.tagName)){let m=o.textContent.split(w),b=m.length-1;if(b>0){o.textContent=Y?Y.emptyScript:"";for(let S=0;S<b;S++)o.append(m[S],D()),k.nextNode(),a.push({type:2,index:++i});o.append(m[b],D())}}}else if(o.nodeType===8)if(o.data===Lt)a.push({type:2,index:i});else{let m=-1;for(;(m=o.data.indexOf(w,m+1))!==-1;)a.push({type:7,index:i}),m+=w.length-1}i++}}static createElement(t,e){let r=A.createElement("template");return r.innerHTML=t,r}};function R(n,t,e=n,r){if(t===_)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,i=I(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=R(n,o._$AS(n,t.values),o,r)),t}var at=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 i=k.nextNode(),s=0,d=0,a=r[0];for(;a!==void 0;){if(s===a.index){let y;a.type===2?y=new j(i,i.nextSibling,this,t):a.type===1?y=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(y=new pt(i,this,t)),this._$AV.push(y),a=r[++d]}s!==a?.index&&(i=k.nextNode(),s++)}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++}},j=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=R(this,t,e),I(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ke(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&&I(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=M.createElement(Dt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new at(o,this),s=i.u(this.options);i.p(e),this.T(s),this._$AH=i}}_$AC(t){let e=Pt.get(t.strings);return e===void 0&&Pt.set(t.strings,e=new M(t)),e}k(t){ut(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=At(t).nextSibling;At(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=R(this,t,e,0),s=!I(t)||t!==this._$AH&&t!==_,s&&(this._$AH=t);else{let d=t,a,y;for(t=i[0],a=0;a<i.length-1;a++)y=R(this,d[r+a],e,a),y===_&&(y=this._$AH[a]),s||=!I(y)||y!==this._$AH[a],y===l?t=l:t!==l&&(t+=(y??"")+i[a+1]),this._$AH[a]=y}s&&!o&&this.j(t)}j(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===l?void 0:t}},lt=class extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}},ct=class extends O{constructor(t,e,r,o,i){super(t,e,r,o,i),this.type=5}_$AI(t,e=this){if((t=R(this,t,e,0)??l)===_)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)}},pt=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){R(this,t)}};var ze=ht.litHtmlPolyfillSupport;ze?.(M,j),(ht.litHtmlVersions??=[]).push("3.3.3");var It=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let i=e?.renderBefore??null;r._$litPart$=o=new j(t.insertBefore(D(),i),i,void 0,e??{})}return o._$AI(n),o};var yt=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=It(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};E._$litElement$=true,E.finalized=true,yt.litElementHydrateSupport?.({LitElement:E});var qe=yt.litElementPolyfillSupport;qe?.({LitElement:E});(yt.litElementVersions??=[]).push("4.2.2");var Ye={attribute:true,type:String,converter:L,reflect:false,hasChanged:q},Ve=(n=Ye,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(d){let a=t.get.call(this);t.set.call(this,d),this.requestUpdate(s,a,n,true,d)},init(d){return d!==void 0&&this.C(s,void 0,n,d),d}}}if(r==="setter"){let{name:s}=e;return function(d){let a=this[s];t.call(this,d),this.requestUpdate(s,a,n,true,d)}}throw Error("Unsupported decorator location: "+r)};function f(n){return(t,e)=>typeof e=="object"?Ve(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 f({...n,state:true,attribute:false})}var Mt=[{endpoint:"vedic-astrology/dosha/manglik",method:"POST",attrs:{type:"manglik"}},{endpoint:"vedic-astrology/dosha/kalsarpa",method:"POST",attrs:{type:"kalsarpa"}},{endpoint:"vedic-astrology/dosha/sadhesati",method:"POST",attrs:{type:"sadhesati"}}];var C=n=>n??l;var jt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function gt(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 Ze={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function ft(n,t){let e=n.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function Gt(n,t=jt){let e=gt(n);if(!e)return;let r=ft(e,t);if(r)return r;let o=e.toLowerCase().split("-"),i=o[0];if(i==="zh"){let s=o.find(d=>d==="hans"||d==="hant")??Ze[o[1]??""];return s?ft(`zh-${s}`,t):void 0}return ft(i,t)}var Bt="symbols";var We={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},xt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Ht='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Kt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',Z={"fraunces-jost":{name:"Fraunces with Jost",sans:xt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:xt,display:xt},geist:{name:"Geist",sans:Ht,display:Ht},system:{name:"System",sans:Kt,display:Kt}};function zt(n){let{sans:t,display:e}=Z[n];return Object.keys(We).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var qt="1.7.0";var Je=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,Xe=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Yt(n,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(Je.exec(e.pathname)??Xe.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 rr={},Qe="color-mix(in oklab, var(--roxy-accent) 70%, black)",tr="var(--roxy-accent)",er="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Vt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Zt(n){return n!==void 0&&Object.hasOwn(Z,n)}function Wt(n){let t=[];return n.brandColor&&Vt.test(n.brandColor)&&t.push(`--roxy-primary:${n.brandColor}`),n.brandAccent&&Vt.test(n.brandAccent)&&t.push(`--roxy-accent:${n.brandAccent}`,`--roxy-accent-ink:light-dark(${Qe},${tr})`,`--roxy-ring:${er}`),t.join(";")}function Jt(n,t){if(Zt(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,d,a;try{let y=globalThis.getComputedStyle(n),u=m=>y.getPropertyValue(m).trim();s=u("--roxy-font-sans"),d=u("--roxy-font-display"),a=u("--roxy-font")}finally{i?.sheet&&(i.sheet.disabled=false)}if(!(s||d))return Zt(a)?a:void 0}function Xt(n){let{sans:t,display:e}=Z[n];return`--roxy-font:${n};--roxy-font-sans:${t};--roxy-font-display:${e}`}var Qt=Yt(qt,globalThis.document?.currentScript?.src||rr.url);function te(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 ee(n,t=Qt){zt(n).length>0&&te(n,t)}function re(n=Qt){te(Bt,n)}var ne='@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 W="roxy-ui-tokens";function J(){if(typeof document>"u")return null;let n=document.getElementById(W);if(n)return n;let t=document.createElement("style");return t.id=W,t.textContent=ne,document.head.prepend(t),t}function oe(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function ie(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 se="__ROXY_UI_I18N__";function ae(){let n=globalThis,t=n[se];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[se]=e,e}function nr(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function de(n,t,e){return nr(or(n,t)??t,e)}function or(n,t){if(!n)return;let{catalogs:e}=ae(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[oe(t)]}function le(n){let{listeners:t}=ae();return t.add(n),()=>{t.delete(n)}}var X=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=le(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var Q=class extends E{constructor(){super();this.translator=(e,r)=>this.t(e,r);new X(this)}connectedCallback(){super.connectedCallback(),J()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&re()}fontDeclarations(e){let r=Jt(this,e);return r?(ee(r),Xt(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?c`<style>:host{${e}}</style>`:l}t(e,r){return de(this.effectiveLang(),e,r)}effectiveLang(){return gt(this)}};var ce=g`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function pe(n){return n?c`<span class="roxy-glyph" aria-hidden="true">${n}</span>`:l}var he=g`: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 ir=g`: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}`,tt=[ir,he,ce];var sr="__cols",ar="__rows";function dr(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function et(n){if(Array.isArray(n)){let i=false,s=n.map(d=>{let a=et(d);return a!==d&&(i=true),a});return i?s:n}if(!dr(n))return n;let t=n[sr],e=n[ar];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(i=>{let s={};return t.forEach((d,a)=>{s[d]=et(i[a])}),s});let r=false,o={};for(let[i,s]of Object.entries(n)){let d=et(s);d!==s&&(r=true),o[i]=d}return r?o:n}function ue(n){return et(n)}function me(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var lr="pk_live_YOUR_KEY",ye={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 fe(n){if(n)return n===lr?ye.sample:n.startsWith("pk_")?void 0:ye.secret}function ge(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 xe="https://roxyapi.com/api/v2";async function cr(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 be={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 ve(n){return n.submitUrl?void 0:fe(n.publishableKey)}async function bt(n,t,e){let r=ve(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:pr(t,n.submitContext),signal:e}):await hr(n,t,e);if(!o.ok){let i=await cr(o);throw new F(i.message,i.issues,i.worded,o.status,i.code)}return await o.json()}function pr(n,t){return JSON.stringify(t?{...n,context:t}:n)}function hr(n,t,e){let r=new URL(`${n.baseUrl??xe}${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 rt=class{constructor(t){this.baseUrl=xe;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=ve(this);if(e){this.host.error=e.message,ge(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 bt(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 Se(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),d={},a={};for(let[y,u]of Object.entries(o))u===void 0||u===""||(t==="GET"||s.has(y)?d[y]=u:a[y]=u);return{path:i,method:t,query:d,body:t==="POST"?a:void 0}}function we(){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 ro=g`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=g`.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 Ee(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">${pe(i.glyph)} ${i.label}</span> ${we()} ${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 ur="roxy-data";function mr(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var nt=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(mr(t)&&t.classList.contains(ur))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var h=class extends Q{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 bt(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(Se(r.endpoint,r.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new nt(this),this.fetcher=new rt(this)}static{this.styles=[tt]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=ue(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:me(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="${C(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=[Wt(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:Ee(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:Gt(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="${C(this.specUrl)}" publishable-key="${C(this.publishableKey)}" location-url="${C(this.locationUrl)}" submit-label="${C(this.submitLabel)}" lang="${C(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>`}};p([f({attribute:false})],h.prototype,"data",2),p([f({type:String,attribute:"data-endpoint"})],h.prototype,"endpoint",2),p([f({type:String})],h.prototype,"method",2),p([f({type:String,attribute:"publishable-key"})],h.prototype,"publishableKey",2),p([f({type:String,attribute:"base-url"})],h.prototype,"baseUrl",2),p([f({type:String,attribute:"spec-url"})],h.prototype,"specUrl",2),p([f({type:String,attribute:"submit-url"})],h.prototype,"submitUrl",2),p([f({attribute:"submit-context",converter:be})],h.prototype,"submitContext",2),p([f({type:String,attribute:"location-url"})],h.prototype,"locationUrl",2),p([f({type:Boolean})],h.prototype,"remember",2),p([f({type:Boolean,attribute:"hide-readings",reflect:true})],h.prototype,"hideReadings",2),p([f({type:String,attribute:"hide-sections",reflect:true})],h.prototype,"hideSections",2),p([f({type:String,attribute:"brand-color"})],h.prototype,"brandColor",2),p([f({type:String,attribute:"brand-accent"})],h.prototype,"brandAccent",2),p([f({type:String})],h.prototype,"font",2),p([f({type:String})],h.prototype,"hemisphere",2),p([f({type:String,attribute:"submit-label"})],h.prototype,"submitLabel",2),p([f({type:String,attribute:"error-message"})],h.prototype,"errorMessage",2),p([f({type:String})],h.prototype,"attribution",2),p([x()],h.prototype,"loading",2),p([x()],h.prototype,"error",2),p([x()],h.prototype,"issues",2),p([x()],h.prototype,"selfFetched",2),p([x()],h.prototype,"editing",2),p([x()],h.prototype,"sticky",2),p([x()],h.prototype,"openedRow",2),p([x()],h.prototype,"openedRowId",2),p([x()],h.prototype,"moreLoading",2),p([x()],h.prototype,"moreError",2);var $e=n=>t=>{customElements.get(n)||customElements.define(n,t)};var Te=new Map;function yr(n){if(!n)return["en"];let t=Te.get(n);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return Te.set(n,e),[e,"en"]}function vt(n,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(yr(n),{maximumFractionDigits:e})}var fr={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function ke(n,t,e){let r=typeof t=="string"?fr[t]??ie(t):"",o=typeof e=="number"?`${vt(n,e,2)}\xB0`:"";return r&&o?`${r} (${o})`:r||o}var Ae=g`.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 _e(n,t,e){if(!t?.ayanamsa)return l;let r=ke(n,t.ayanamsa);if(!r)return l;let o=typeof t.ayanamsaDegrees=="number"?vt(n,t.ayanamsaDegrees,4):void 0;return c`<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 gr={manglik:"Mangal Dosha",kalsarpa:"Kaal Sarp Dosha",sadhesati:"Sade Sati"},$=class extends h{constructor(){super(...arguments);this.type="manglik"}renderData(e){let r=!!e.present,o=gr[this.type]??this.type,i=(e.severity??"").toLowerCase(),s=i==="severe"?3:i==="moderate"?2:i==="mild"?1:0,d=s*33;return c`<article class="card" part="card" aria-label="${o}"><header class="head" part="header"><h2>${o}</h2><span class="${`badge roxy-chip ${r?"present":"absent"}`}" data-tone="${r?"danger":"success"}">${r?this.t("Present"):this.t("Absent")} </span>${_e(this.effectiveLang(),e.frame,this.translator)}</header>${"type"in e&&e.type?c`<p class="subtype"><span class="subtype-label roxy-label">${this.type==="sadhesati"?this.t("Current phase"):this.t("Type")}</span>${e.type}</p>`:l} ${e.severity?c`<div class="severity-bar" part="details" role="meter" aria-valuemin="0" aria-valuemax="3" aria-valuenow="${s}" aria-label="${this.t("Severity")} ${e.severity}"><span class="severity-fill" data-tier="${s}" style="width:${d}%"></span></div>`:l} ${e.description&&!this.hideReadings?c`<p class="description">${e.description}</p>`:l} ${this.renderEffects(e)} ${e.remedies&&e.remedies.length>0&&!this.hideReadings?c`<div part="section remedies"><h3>${this.t("Remedies")}</h3><ul>${e.remedies.map(a=>c`<li>${a}</li>`)}</ul></div>`:l} ${"exceptions"in e&&e.exceptions&&e.exceptions.length>0&&!this.hideReadings?c`<div part="section exceptions"><h3>${this.t("Exceptions")}</h3><ul>${e.exceptions.map(a=>c`<li>${a}</li>`)}</ul></div>`:l}</article>`}renderEffects(e){if(!e.effects||this.hideReadings)return l;let r=[];for(let[o,i]of Object.entries(e.effects))if(typeof i=="string"&&i.length>0)r.push(c`<div><h3>${o}</h3><p>${i}</p></div>`);else if(i&&typeof i=="object")for(let[s,d]of Object.entries(i))typeof d=="string"&&d.length>0&&r.push(c`<div><h3>${s}</h3><p>${d}</p></div>`);return r.length===0?l:c`<div class="effects" part="section effects">${r}</div>`}};$.endpoints=Mt,$.styles=[tt,Ae,g`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}h2,h3,p{margin:0}h2{text-transform:capitalize}.subtype{font-size:var(--roxy-text-sm)}.subtype-label{margin-inline-end:var(--roxy-space-sm)}.badge{font-weight:var(--roxy-weight-bold)}.severity-bar{border-radius:var(--roxy-radius-full);background:var(--roxy-border);block-size:.35lh;inline-size:100%;overflow:hidden}.severity-fill{background:var(--roxy-warning);block-size:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.severity-fill[data-tier="3"]{background:var(--roxy-danger)}@media (prefers-reduced-motion:reduce){.severity-fill{transition:none}}h3{margin-block-end:var(--roxy-space-xs)}ul{font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md)}.effects{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,24ch),1fr));display:grid}.effects p{font-size:var(--roxy-text-sm)}`],p([f({type:String,reflect:true})],$.prototype,"type",2),$=p([$e("roxy-dosha-card")],$);return Pe(xr)})();
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ot=/'/g,Ft=/"/g,Nt=/^(?:script|style|textarea|title)$/i,mt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),c=mt(1),$r=mt(2),Tr=mt(3),_=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),Pt=new WeakMap,k=A.createTreeWalker(A,129);function Dt(n,t){if(!ut(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return _t!==void 0?_t.createHTML(t):t}var Be=(n,t)=>{let e=n.length-1,r=[],o,i=t===2?"<svg>":t===3?"<math>":"",s=N;for(let d=0;d<e;d++){let a=n[d],y,u,m=-1,b=0;for(;b<a.length&&(s.lastIndex=b,u=s.exec(a),u!==null);)b=s.lastIndex,s===N?u[1]==="!--"?s=Ct:u[1]!==void 0?s=Rt:u[2]!==void 0?(Nt.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=T):u[3]!==void 0&&(s=T):s===T?u[0]===">"?(s=o??N,m=-1):u[1]===void 0?m=-2:(m=s.lastIndex-u[2].length,y=u[1],s=u[3]===void 0?T:u[3]==='"'?Ft:Ot):s===Ft||s===Ot?s=T:s===Ct||s===Rt?s=N:(s=T,o=void 0);let S=s===T&&n[d+1].startsWith("/>")?" ":"";i+=s===N?a+He:m>=0?(r.push(y),a.slice(0,m)+Ut+a.slice(m)+w+S):a+w+(m===-2?d:S)}return[Dt(n,i+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},M=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let i=0,s=0,d=t.length-1,a=this.parts,[y,u]=Be(t,e);if(this.el=n.createElement(y,r),k.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=k.nextNode())!==null&&a.length<d;){if(o.nodeType===1){if(o.hasAttributes())for(let m of o.getAttributeNames())if(m.endsWith(Ut)){let b=u[s++],S=o.getAttribute(m).split(w),G=/([.?@])?(.*)/.exec(b);a.push({type:1,index:i,name:G[2],strings:S,ctor:G[1]==="."?dt:G[1]==="?"?lt:G[1]==="@"?ct:O}),o.removeAttribute(m)}else m.startsWith(w)&&(a.push({type:6,index:i}),o.removeAttribute(m));if(Nt.test(o.tagName)){let m=o.textContent.split(w),b=m.length-1;if(b>0){o.textContent=Y?Y.emptyScript:"";for(let S=0;S<b;S++)o.append(m[S],D()),k.nextNode(),a.push({type:2,index:++i});o.append(m[b],D())}}}else if(o.nodeType===8)if(o.data===Lt)a.push({type:2,index:i});else{let m=-1;for(;(m=o.data.indexOf(w,m+1))!==-1;)a.push({type:7,index:i}),m+=w.length-1}i++}}static createElement(t,e){let r=A.createElement("template");return r.innerHTML=t,r}};function R(n,t,e=n,r){if(t===_)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,i=I(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=R(n,o._$AS(n,t.values),o,r)),t}var at=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 i=k.nextNode(),s=0,d=0,a=r[0];for(;a!==void 0;){if(s===a.index){let y;a.type===2?y=new j(i,i.nextSibling,this,t):a.type===1?y=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(y=new pt(i,this,t)),this._$AV.push(y),a=r[++d]}s!==a?.index&&(i=k.nextNode(),s++)}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++}},j=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=R(this,t,e),I(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ke(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&&I(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=M.createElement(Dt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new at(o,this),s=i.u(this.options);i.p(e),this.T(s),this._$AH=i}}_$AC(t){let e=Pt.get(t.strings);return e===void 0&&Pt.set(t.strings,e=new M(t)),e}k(t){ut(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=At(t).nextSibling;At(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=R(this,t,e,0),s=!I(t)||t!==this._$AH&&t!==_,s&&(this._$AH=t);else{let d=t,a,y;for(t=i[0],a=0;a<i.length-1;a++)y=R(this,d[r+a],e,a),y===_&&(y=this._$AH[a]),s||=!I(y)||y!==this._$AH[a],y===l?t=l:t!==l&&(t+=(y??"")+i[a+1]),this._$AH[a]=y}s&&!o&&this.j(t)}j(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===l?void 0:t}},lt=class extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}},ct=class extends O{constructor(t,e,r,o,i){super(t,e,r,o,i),this.type=5}_$AI(t,e=this){if((t=R(this,t,e,0)??l)===_)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)}},pt=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){R(this,t)}};var ze=ht.litHtmlPolyfillSupport;ze?.(M,j),(ht.litHtmlVersions??=[]).push("3.3.3");var It=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let i=e?.renderBefore??null;r._$litPart$=o=new j(t.insertBefore(D(),i),i,void 0,e??{})}return o._$AI(n),o};var yt=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=It(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};E._$litElement$=true,E.finalized=true,yt.litElementHydrateSupport?.({LitElement:E});var qe=yt.litElementPolyfillSupport;qe?.({LitElement:E});(yt.litElementVersions??=[]).push("4.2.2");var Ye={attribute:true,type:String,converter:L,reflect:false,hasChanged:q},Ve=(n=Ye,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(d){let a=t.get.call(this);t.set.call(this,d),this.requestUpdate(s,a,n,true,d)},init(d){return d!==void 0&&this.C(s,void 0,n,d),d}}}if(r==="setter"){let{name:s}=e;return function(d){let a=this[s];t.call(this,d),this.requestUpdate(s,a,n,true,d)}}throw Error("Unsupported decorator location: "+r)};function f(n){return(t,e)=>typeof e=="object"?Ve(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 f({...n,state:true,attribute:false})}var Mt=[{endpoint:"vedic-astrology/dosha/manglik",method:"POST",attrs:{type:"manglik"}},{endpoint:"vedic-astrology/dosha/kalsarpa",method:"POST",attrs:{type:"kalsarpa"}},{endpoint:"vedic-astrology/dosha/sadhesati",method:"POST",attrs:{type:"sadhesati"}}];var C=n=>n??l;var jt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function gt(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 Ze={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function ft(n,t){let e=n.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function Gt(n,t=jt){let e=gt(n);if(!e)return;let r=ft(e,t);if(r)return r;let o=e.toLowerCase().split("-"),i=o[0];if(i==="zh"){let s=o.find(d=>d==="hans"||d==="hant")??Ze[o[1]??""];return s?ft(`zh-${s}`,t):void 0}return ft(i,t)}var Bt="symbols";var We={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},xt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Ht='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Kt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',Z={"fraunces-jost":{name:"Fraunces with Jost",sans:xt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:xt,display:xt},geist:{name:"Geist",sans:Ht,display:Ht},system:{name:"System",sans:Kt,display:Kt}};function zt(n){let{sans:t,display:e}=Z[n];return Object.keys(We).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var qt="1.9.0";var Je=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,Xe=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Yt(n,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(Je.exec(e.pathname)??Xe.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 rr={},Qe="color-mix(in oklab, var(--roxy-accent) 70%, black)",tr="var(--roxy-accent)",er="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Vt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Zt(n){return n!==void 0&&Object.hasOwn(Z,n)}function Wt(n){let t=[];return n.brandColor&&Vt.test(n.brandColor)&&t.push(`--roxy-primary:${n.brandColor}`),n.brandAccent&&Vt.test(n.brandAccent)&&t.push(`--roxy-accent:${n.brandAccent}`,`--roxy-accent-ink:light-dark(${Qe},${tr})`,`--roxy-ring:${er}`),t.join(";")}function Jt(n,t){if(Zt(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,d,a;try{let y=globalThis.getComputedStyle(n),u=m=>y.getPropertyValue(m).trim();s=u("--roxy-font-sans"),d=u("--roxy-font-display"),a=u("--roxy-font")}finally{i?.sheet&&(i.sheet.disabled=false)}if(!(s||d))return Zt(a)?a:void 0}function Xt(n){let{sans:t,display:e}=Z[n];return`--roxy-font:${n};--roxy-font-sans:${t};--roxy-font-display:${e}`}var Qt=Yt(qt,globalThis.document?.currentScript?.src||rr.url);function te(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 ee(n,t=Qt){zt(n).length>0&&te(n,t)}function re(n=Qt){te(Bt,n)}var ne='@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 W="roxy-ui-tokens";function J(){if(typeof document>"u")return null;let n=document.getElementById(W);if(n)return n;let t=document.createElement("style");return t.id=W,t.textContent=ne,document.head.prepend(t),t}function oe(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function ie(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 se="__ROXY_UI_I18N__";function ae(){let n=globalThis,t=n[se];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[se]=e,e}function nr(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function de(n,t,e){return nr(or(n,t)??t,e)}function or(n,t){if(!n)return;let{catalogs:e}=ae(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[oe(t)]}function le(n){let{listeners:t}=ae();return t.add(n),()=>{t.delete(n)}}var X=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=le(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var Q=class extends E{constructor(){super();this.translator=(e,r)=>this.t(e,r);new X(this)}connectedCallback(){super.connectedCallback(),J()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&re()}fontDeclarations(e){let r=Jt(this,e);return r?(ee(r),Xt(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?c`<style>:host{${e}}</style>`:l}t(e,r){return de(this.effectiveLang(),e,r)}effectiveLang(){return gt(this)}};var ce=g`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function pe(n){return n?c`<span class="roxy-glyph" aria-hidden="true">${n}</span>`:l}var he=g`: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 ir=g`: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}`,tt=[ir,he,ce];var sr="__cols",ar="__rows";function dr(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function et(n){if(Array.isArray(n)){let i=false,s=n.map(d=>{let a=et(d);return a!==d&&(i=true),a});return i?s:n}if(!dr(n))return n;let t=n[sr],e=n[ar];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(i=>{let s={};return t.forEach((d,a)=>{s[d]=et(i[a])}),s});let r=false,o={};for(let[i,s]of Object.entries(n)){let d=et(s);d!==s&&(r=true),o[i]=d}return r?o:n}function ue(n){return et(n)}function me(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var lr="pk_live_YOUR_KEY",ye={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 fe(n){if(n)return n===lr?ye.sample:n.startsWith("pk_")?void 0:ye.secret}function ge(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 xe="https://roxyapi.com/api/v2";async function cr(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 be={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 ve(n){return n.submitUrl?void 0:fe(n.publishableKey)}async function bt(n,t,e){let r=ve(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:pr(t,n.submitContext),signal:e}):await hr(n,t,e);if(!o.ok){let i=await cr(o);throw new F(i.message,i.issues,i.worded,o.status,i.code)}return await o.json()}function pr(n,t){return JSON.stringify(t?{...n,context:t}:n)}function hr(n,t,e){let r=new URL(`${n.baseUrl??xe}${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 rt=class{constructor(t){this.baseUrl=xe;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=ve(this);if(e){this.host.error=e.message,ge(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 bt(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 Se(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),d={},a={};for(let[y,u]of Object.entries(o))u===void 0||u===""||(t==="GET"||s.has(y)?d[y]=u:a[y]=u);return{path:i,method:t,query:d,body:t==="POST"?a:void 0}}function we(){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 ro=g`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=g`.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 Ee(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">${pe(i.glyph)} ${i.label}</span> ${we()} ${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 ur="roxy-data";function mr(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var nt=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(mr(t)&&t.classList.contains(ur))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var h=class extends Q{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 bt(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(Se(r.endpoint,r.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new nt(this),this.fetcher=new rt(this)}static{this.styles=[tt]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=ue(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:me(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="${C(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=[Wt(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:Ee(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:Gt(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="${C(this.specUrl)}" publishable-key="${C(this.publishableKey)}" location-url="${C(this.locationUrl)}" submit-label="${C(this.submitLabel)}" lang="${C(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>`}};p([f({attribute:false})],h.prototype,"data",2),p([f({type:String,attribute:"data-endpoint"})],h.prototype,"endpoint",2),p([f({type:String})],h.prototype,"method",2),p([f({type:String,attribute:"publishable-key"})],h.prototype,"publishableKey",2),p([f({type:String,attribute:"base-url"})],h.prototype,"baseUrl",2),p([f({type:String,attribute:"spec-url"})],h.prototype,"specUrl",2),p([f({type:String,attribute:"submit-url"})],h.prototype,"submitUrl",2),p([f({attribute:"submit-context",converter:be})],h.prototype,"submitContext",2),p([f({type:String,attribute:"location-url"})],h.prototype,"locationUrl",2),p([f({type:Boolean})],h.prototype,"remember",2),p([f({type:Boolean,attribute:"hide-readings",reflect:true})],h.prototype,"hideReadings",2),p([f({type:String,attribute:"hide-sections",reflect:true})],h.prototype,"hideSections",2),p([f({type:String,attribute:"brand-color"})],h.prototype,"brandColor",2),p([f({type:String,attribute:"brand-accent"})],h.prototype,"brandAccent",2),p([f({type:String})],h.prototype,"font",2),p([f({type:String})],h.prototype,"hemisphere",2),p([f({type:String,attribute:"submit-label"})],h.prototype,"submitLabel",2),p([f({type:String,attribute:"error-message"})],h.prototype,"errorMessage",2),p([f({type:String})],h.prototype,"attribution",2),p([x()],h.prototype,"loading",2),p([x()],h.prototype,"error",2),p([x()],h.prototype,"issues",2),p([x()],h.prototype,"selfFetched",2),p([x()],h.prototype,"editing",2),p([x()],h.prototype,"sticky",2),p([x()],h.prototype,"openedRow",2),p([x()],h.prototype,"openedRowId",2),p([x()],h.prototype,"moreLoading",2),p([x()],h.prototype,"moreError",2);var $e=n=>t=>{customElements.get(n)||customElements.define(n,t)};var Te=new Map;function yr(n){if(!n)return["en"];let t=Te.get(n);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return Te.set(n,e),[e,"en"]}function vt(n,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(yr(n),{maximumFractionDigits:e})}var fr={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function ke(n,t,e){let r=typeof t=="string"?fr[t]??ie(t):"",o=typeof e=="number"?`${vt(n,e,2)}\xB0`:"";return r&&o?`${r} (${o})`:r||o}var Ae=g`.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 _e(n,t,e){if(!t?.ayanamsa)return l;let r=ke(n,t.ayanamsa);if(!r)return l;let o=typeof t.ayanamsaDegrees=="number"?vt(n,t.ayanamsaDegrees,4):void 0;return c`<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 gr={manglik:"Mangal Dosha",kalsarpa:"Kaal Sarp Dosha",sadhesati:"Sade Sati"},$=class extends h{constructor(){super(...arguments);this.type="manglik"}renderData(e){let r=!!e.present,o=gr[this.type]??this.type,i=(e.severity??"").toLowerCase(),s=i==="severe"?3:i==="moderate"?2:i==="mild"?1:0,d=s*33;return c`<article class="card" part="card" aria-label="${o}"><header class="head" part="header"><h2>${o}</h2><span class="${`badge roxy-chip ${r?"present":"absent"}`}" data-tone="${r?"danger":"success"}">${r?this.t("Present"):this.t("Absent")} </span>${_e(this.effectiveLang(),e.frame,this.translator)}</header>${"type"in e&&e.type?c`<p class="subtype"><span class="subtype-label roxy-label">${this.type==="sadhesati"?this.t("Current phase"):this.t("Type")}</span>${e.type}</p>`:l} ${e.severity?c`<div class="severity-bar" part="details" role="meter" aria-valuemin="0" aria-valuemax="3" aria-valuenow="${s}" aria-label="${this.t("Severity")} ${e.severity}"><span class="severity-fill" data-tier="${s}" style="width:${d}%"></span></div>`:l} ${e.description&&!this.hideReadings?c`<p class="description">${e.description}</p>`:l} ${this.renderEffects(e)} ${e.remedies&&e.remedies.length>0&&!this.hideReadings?c`<div part="section remedies"><h3>${this.t("Remedies")}</h3><ul>${e.remedies.map(a=>c`<li>${a}</li>`)}</ul></div>`:l} ${"exceptions"in e&&e.exceptions&&e.exceptions.length>0&&!this.hideReadings?c`<div part="section exceptions"><h3>${this.t("Exceptions")}</h3><ul>${e.exceptions.map(a=>c`<li>${a}</li>`)}</ul></div>`:l}</article>`}renderEffects(e){if(!e.effects||this.hideReadings)return l;let r=[];for(let[o,i]of Object.entries(e.effects))if(typeof i=="string"&&i.length>0)r.push(c`<div><h3>${o}</h3><p>${i}</p></div>`);else if(i&&typeof i=="object")for(let[s,d]of Object.entries(i))typeof d=="string"&&d.length>0&&r.push(c`<div><h3>${s}</h3><p>${d}</p></div>`);return r.length===0?l:c`<div class="effects" part="section effects">${r}</div>`}};$.endpoints=Mt,$.styles=[tt,Ae,g`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}h2,h3,p{margin:0}h2{text-transform:capitalize}.subtype{font-size:var(--roxy-text-sm)}.subtype-label{margin-inline-end:var(--roxy-space-sm)}.badge{font-weight:var(--roxy-weight-bold)}.severity-bar{border-radius:var(--roxy-radius-full);background:var(--roxy-border);block-size:.35lh;inline-size:100%;overflow:hidden}.severity-fill{background:var(--roxy-warning);block-size:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.severity-fill[data-tier="3"]{background:var(--roxy-danger)}@media (prefers-reduced-motion:reduce){.severity-fill{transition:none}}h3{margin-block-end:var(--roxy-space-xs)}ul{font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md)}.effects{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,24ch),1fr));display:grid}.effects p{font-size:var(--roxy-text-sm)}`],p([f({type:String,reflect:true})],$.prototype,"type",2),$=p([$e("roxy-dosha-card")],$);return Pe(xr)})();