@roxyapi/ui 0.40.1 → 0.41.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 (82) hide show
  1. package/components-catalog.json +149 -149
  2. package/dist/cdn/components/choghadiya-grid.js +1 -1
  3. package/dist/cdn/components/choghadiya-grid.js.map +2 -2
  4. package/dist/cdn/components/endpoint-form.js +1 -1
  5. package/dist/cdn/components/endpoint-form.js.map +1 -1
  6. package/dist/cdn/components/hora-table.js +1 -1
  7. package/dist/cdn/components/hora-table.js.map +2 -2
  8. package/dist/cdn/components/vedic-daily.js +4 -4
  9. package/dist/cdn/components/vedic-daily.js.map +3 -3
  10. package/dist/cdn/locales/de.js +1 -1
  11. package/dist/cdn/locales/de.js.map +2 -2
  12. package/dist/cdn/locales/es.js +1 -1
  13. package/dist/cdn/locales/es.js.map +2 -2
  14. package/dist/cdn/locales/fr.js +1 -1
  15. package/dist/cdn/locales/fr.js.map +2 -2
  16. package/dist/cdn/locales/hi.js +1 -1
  17. package/dist/cdn/locales/hi.js.map +2 -2
  18. package/dist/cdn/locales/pt.js +1 -1
  19. package/dist/cdn/locales/pt.js.map +2 -2
  20. package/dist/cdn/locales/ru.js +1 -1
  21. package/dist/cdn/locales/ru.js.map +2 -2
  22. package/dist/cdn/locales/tr.js +1 -1
  23. package/dist/cdn/locales/tr.js.map +2 -2
  24. package/dist/cdn/roxy-ui.js +38 -38
  25. package/dist/cdn/roxy-ui.js.map +3 -3
  26. package/dist/components/choghadiya-grid.js +1 -1
  27. package/dist/components/choghadiya-grid.js.map +2 -2
  28. package/dist/components/endpoint-form.js +1 -1
  29. package/dist/components/endpoint-form.js.map +1 -1
  30. package/dist/components/hora-table.js +1 -1
  31. package/dist/components/hora-table.js.map +2 -2
  32. package/dist/components/vedic-daily.d.ts +7 -0
  33. package/dist/components/vedic-daily.d.ts.map +1 -1
  34. package/dist/components/vedic-daily.js +1 -1
  35. package/dist/components/vedic-daily.js.map +3 -3
  36. package/dist/i18n/chrome-strings.d.ts +1 -1
  37. package/dist/i18n/chrome-strings.d.ts.map +1 -1
  38. package/dist/index.cjs +37 -37
  39. package/dist/index.cjs.map +3 -3
  40. package/dist/index.js +38 -38
  41. package/dist/index.js.map +3 -3
  42. package/dist/locales/de.d.ts.map +1 -1
  43. package/dist/locales/de.js +1 -1
  44. package/dist/locales/de.js.map +2 -2
  45. package/dist/locales/es.d.ts.map +1 -1
  46. package/dist/locales/es.js +1 -1
  47. package/dist/locales/es.js.map +2 -2
  48. package/dist/locales/fr.d.ts.map +1 -1
  49. package/dist/locales/fr.js +1 -1
  50. package/dist/locales/fr.js.map +2 -2
  51. package/dist/locales/hi.d.ts.map +1 -1
  52. package/dist/locales/hi.js +1 -1
  53. package/dist/locales/hi.js.map +2 -2
  54. package/dist/locales/pt.d.ts.map +1 -1
  55. package/dist/locales/pt.js +1 -1
  56. package/dist/locales/pt.js.map +2 -2
  57. package/dist/locales/ru.d.ts.map +1 -1
  58. package/dist/locales/ru.js +1 -1
  59. package/dist/locales/ru.js.map +2 -2
  60. package/dist/locales/tr.d.ts.map +1 -1
  61. package/dist/locales/tr.js +1 -1
  62. package/dist/locales/tr.js.map +2 -2
  63. package/dist/schemas/post--vedic-astrology-dasha-current.json +1 -1
  64. package/dist/styles/themes/practitioner.css +5 -5
  65. package/dist/types/types.gen.d.ts +44 -10
  66. package/dist/types/types.gen.d.ts.map +1 -1
  67. package/dist/version.d.ts +1 -1
  68. package/package.json +1 -1
  69. package/src/components/choghadiya-grid.ts +1 -1
  70. package/src/components/hora-table.ts +1 -1
  71. package/src/components/vedic-daily.ts +65 -0
  72. package/src/i18n/chrome-strings.ts +18 -1
  73. package/src/locales/de.ts +6 -1
  74. package/src/locales/es.ts +7 -1
  75. package/src/locales/fr.ts +6 -1
  76. package/src/locales/hi.ts +7 -1
  77. package/src/locales/pt.ts +7 -1
  78. package/src/locales/ru.ts +6 -1
  79. package/src/locales/tr.ts +8 -1
  80. package/src/styles/themes/practitioner.css +5 -5
  81. package/src/types/types.gen.ts +44 -10
  82. package/src/version.ts +1 -1
@@ -1,4 +1,4 @@
1
- var RoxyUI_vedic_daily=(()=>{var B=Object.defineProperty;var $e=Object.getOwnPropertyDescriptor;var ct=Object.getOwnPropertyNames;var ht=Object.prototype.hasOwnProperty;var ut=(n,e)=>{for(var t in e)B(n,t,{get:e[t],enumerable:!0})},pt=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ct(e))!ht.call(n,o)&&o!==t&&B(n,o,{get:()=>e[o],enumerable:!(r=$e(e,o))||r.enumerable});return n};var mt=n=>pt(B({},"__esModule",{value:!0}),n),f=(n,e,t,r)=>{for(var o=r>1?void 0:r?$e(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&B(e,t,o),o};var Vt={};ut(Vt,{ROXY_UI_TOKENS_STYLE_ID:()=>q,RoxyVedicDaily:()=>O,injectRoxyTokens:()=>G});var we=`/**
1
+ var RoxyUI_vedic_daily=(()=>{var B=Object.defineProperty;var we=Object.getOwnPropertyDescriptor;var ct=Object.getOwnPropertyNames;var ht=Object.prototype.hasOwnProperty;var ut=(n,e)=>{for(var t in e)B(n,t,{get:e[t],enumerable:!0})},pt=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ct(e))!ht.call(n,o)&&o!==t&&B(n,o,{get:()=>e[o],enumerable:!(r=we(e,o))||r.enumerable});return n};var mt=n=>pt(B({},"__esModule",{value:!0}),n),f=(n,e,t,r)=>{for(var o=r>1?void 0:r?we(e,t):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&B(e,t,o),o};var Yt={};ut(Yt,{ROXY_UI_TOKENS_STYLE_ID:()=>q,RoxyVedicDaily:()=>D,injectRoxyTokens:()=>G});var ke=`/**
2
2
  * Roxy UI design tokens. 47 CSS custom properties that every component reads. Light + dark defaults. Host page overrides at :root or per element. No Tailwind, no class-name overrides, no JS theme switcher.
3
3
  *
4
4
  * Delivery model: this file ships as a global light-DOM stylesheet (linked, or auto-injected by the CDN bundle). Why every rule sits in a cascade layer is the note above the layer statement below. Custom properties inherit through the shadow boundary, so tokens set on a light-DOM ancestor reach every component shadow. The explicit theme blocks therefore target light-DOM selectors (:root, .dark, [data-theme="dark"], a wrapper element), NOT :host (a :host rule in a global sheet matches nothing). The :host([data-theme]) selectors are kept only for the case where this CSS is ever adopted directly into a shadow root; they are inert in global delivery.
@@ -296,9 +296,9 @@ var RoxyUI_vedic_daily=(()=>{var B=Object.defineProperty;var $e=Object.getOwnPro
296
296
  }
297
297
  }
298
298
  }
299
- `;var q="roxy-ui-tokens";function G(){if(typeof document>"u")return null;let n=document.getElementById(q);if(n)return n;let e=document.createElement("style");return e.id=q,e.textContent=we,document.head.prepend(e),e}var K=globalThis,V=K.ShadowRoot&&(K.ShadyCSS===void 0||K.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ie=Symbol(),ke=new WeakMap,D=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==ie)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(V&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=ke.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&ke.set(t,e))}return e}toString(){return this.cssText}},Se=n=>new D(typeof n=="string"?n:n+"",void 0,ie),y=(n,...e)=>{let t=n.length===1?n[0]:e.reduce((r,o,s)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[s+1],n[0]);return new D(t,n,ie)},Ae=(n,e)=>{if(V)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),o=K.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,n.appendChild(r)}},ae=V?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return Se(t)})(n):n;var{is:ft,defineProperty:gt,getOwnPropertyDescriptor:yt,getOwnPropertyNames:xt,getOwnPropertySymbols:bt,getPrototypeOf:vt}=Object,Y=globalThis,_e=Y.trustedTypes,$t=_e?_e.emptyScript:"",wt=Y.reactiveElementPolyfillSupport,P=(n,e)=>n,U={toAttribute(n,e){switch(e){case Boolean:n=n?$t:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},W=(n,e)=>!ft(n,e),Ce={attribute:!0,type:String,converter:U,reflect:!1,useDefault:!1,hasChanged:W};Symbol.metadata??=Symbol("metadata"),Y.litPropertyMetadata??=new WeakMap;var b=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=Ce){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&gt(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){let{get:o,set:s}=yt(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get:o,set(i){let c=o?.call(this);s?.call(this,i),this.requestUpdate(e,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ce}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;let e=vt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(P("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P("properties"))){let t=this.properties,r=[...xt(t),...bt(t)];for(let o of r)this.createProperty(o,t[o])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)t.unshift(ae(o))}else e!==void 0&&t.push(ae(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ae(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){let s=(r.converter?.toAttribute!==void 0?r.converter:U).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,t){let r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:U;this._$Em=o;let c=i.fromAttribute(t,s.type);this[o]=c??this._$Ej?.get(o)??c,this._$Em=null}}requestUpdate(e,t,r,o=!1,s){if(e!==void 0){let i=this.constructor;if(o===!1&&(s=this[e]),r??=i.getPropertyOptions(e),!((r.hasChanged??W)(s,t)||r.useDefault&&r.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:s},i){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),s!==!0||i!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,s]of r){let{wrapped:i}=s,c=this[o];i!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,s,c)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[P("elementProperties")]=new Map,b[P("finalized")]=new Map,wt?.({ReactiveElement:b}),(Y.reactiveElementVersions??=[]).push("2.1.2");var me=globalThis,Te=n=>n,J=me.trustedTypes,Ee=J?J.createPolicy("lit-html",{createHTML:n=>n}):void 0,Pe="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,Ue="?"+$,kt=`<${Ue}>`,_=document,j=()=>_.createComment(""),H=n=>n===null||typeof n!="object"&&typeof n!="function",fe=Array.isArray,St=n=>fe(n)||typeof n?.[Symbol.iterator]=="function",de=`[
300
- \f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Re=/-->/g,Le=/>/g,S=RegExp(`>|${de}(?:([^\\s"'>=/]+)(${de}*=${de}*(?:[^
301
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ne=/'/g,Oe=/"/g,Me=/^(?:script|style|textarea|title)$/i,ge=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),a=ge(1),rr=ge(2),nr=ge(3),C=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),De=new WeakMap,A=_.createTreeWalker(_,129);function je(n,e){if(!fe(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ee!==void 0?Ee.createHTML(e):e}var At=(n,e)=>{let t=n.length-1,r=[],o,s=e===2?"<svg>":e===3?"<math>":"",i=M;for(let c=0;c<t;c++){let l=n[c],p,u,h=-1,x=0;for(;x<l.length&&(i.lastIndex=x,u=i.exec(l),u!==null);)x=i.lastIndex,i===M?u[1]==="!--"?i=Re:u[1]!==void 0?i=Le:u[2]!==void 0?(Me.test(u[2])&&(o=RegExp("</"+u[2],"g")),i=S):u[3]!==void 0&&(i=S):i===S?u[0]===">"?(i=o??M,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,p=u[1],i=u[3]===void 0?S:u[3]==='"'?Oe:Ne):i===Oe||i===Ne?i=S:i===Re||i===Le?i=M:(i=S,o=void 0);let v=i===S&&n[c+1].startsWith("/>")?" ":"";s+=i===M?l+kt:h>=0?(r.push(p),l.slice(0,h)+Pe+l.slice(h)+$+v):l+$+(h===-2?c:v)}return[je(n,s+(n[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},I=class n{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let s=0,i=0,c=e.length-1,l=this.parts,[p,u]=At(e,t);if(this.el=n.createElement(p,r),A.currentNode=this.el.content,t===2||t===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=A.nextNode())!==null&&l.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let h of o.getAttributeNames())if(h.endsWith(Pe)){let x=u[i++],v=o.getAttribute(h).split($),z=/([.?@])?(.*)/.exec(x);l.push({type:1,index:s,name:z[2],strings:v,ctor:z[1]==="."?ce:z[1]==="?"?he:z[1]==="@"?ue:E}),o.removeAttribute(h)}else h.startsWith($)&&(l.push({type:6,index:s}),o.removeAttribute(h));if(Me.test(o.tagName)){let h=o.textContent.split($),x=h.length-1;if(x>0){o.textContent=J?J.emptyScript:"";for(let v=0;v<x;v++)o.append(h[v],j()),A.nextNode(),l.push({type:2,index:++s});o.append(h[x],j())}}}else if(o.nodeType===8)if(o.data===Ue)l.push({type:2,index:s});else{let h=-1;for(;(h=o.data.indexOf($,h+1))!==-1;)l.push({type:7,index:s}),h+=$.length-1}s++}}static createElement(e,t){let r=_.createElement("template");return r.innerHTML=e,r}};function T(n,e,t=n,r){if(e===C)return e;let o=r!==void 0?t._$Co?.[r]:t._$Cl,s=H(e)?void 0:e._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(n),o._$AT(n,t,r)),r!==void 0?(t._$Co??=[])[r]=o:t._$Cl=o),o!==void 0&&(e=T(n,o._$AS(n,e.values),o,r)),e}var le=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,o=(e?.creationScope??_).importNode(t,!0);A.currentNode=o;let s=A.nextNode(),i=0,c=0,l=r[0];for(;l!==void 0;){if(i===l.index){let p;l.type===2?p=new F(s,s.nextSibling,this,e):l.type===1?p=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(p=new pe(s,this,e)),this._$AV.push(p),l=r[++c]}i!==l?.index&&(s=A.nextNode(),i++)}return A.currentNode=_,o}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},F=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=T(this,e,t),H(e)?e===d||e==null||e===""?(this._$AH!==d&&this._$AR(),this._$AH=d):e!==this._$AH&&e!==C&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):St(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&&H(this._$AH)?this._$AA.nextSibling.data=e:this.T(_.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=I.createElement(je(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{let s=new le(o,this),i=s.u(this.options);s.p(t),this.T(i),this._$AH=s}}_$AC(e){let t=De.get(e.strings);return t===void 0&&De.set(e.strings,t=new I(e)),t}k(e){fe(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,o=0;for(let s of e)o===t.length?t.push(r=new n(this.O(j()),this.O(j()),this,this.options)):r=t[o],r._$AI(s),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=Te(e).nextSibling;Te(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},E=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(e,t=this,r,o){let s=this.strings,i=!1;if(s===void 0)e=T(this,e,t,0),i=!H(e)||e!==this._$AH&&e!==C,i&&(this._$AH=e);else{let c=e,l,p;for(e=s[0],l=0;l<s.length-1;l++)p=T(this,c[r+l],t,l),p===C&&(p=this._$AH[l]),i||=!H(p)||p!==this._$AH[l],p===d?e=d:e!==d&&(e+=(p??"")+s[l+1]),this._$AH[l]=p}i&&!o&&this.j(e)}j(e){e===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ce=class extends E{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===d?void 0:e}},he=class extends E{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==d)}},ue=class extends E{constructor(e,t,r,o,s){super(e,t,r,o,s),this.type=5}_$AI(e,t=this){if((e=T(this,e,t,0)??d)===C)return;let r=this._$AH,o=e===d&&r!==d||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==d&&(r===d||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},pe=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){T(this,e)}};var _t=me.litHtmlPolyfillSupport;_t?.(I,F),(me.litHtmlVersions??=[]).push("3.3.3");var He=(n,e,t)=>{let r=t?.renderBefore??e,o=r._$litPart$;if(o===void 0){let s=t?.renderBefore??null;r._$litPart$=o=new F(e.insertBefore(j(),s),s,void 0,t??{})}return o._$AI(n),o};var ye=globalThis,w=class extends b{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=He(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return C}};w._$litElement$=!0,w.finalized=!0,ye.litElementHydrateSupport?.({LitElement:w});var Ct=ye.litElementPolyfillSupport;Ct?.({LitElement:w});(ye.litElementVersions??=[]).push("4.2.2");var Ie=n=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(n,e)}):customElements.define(n,e)};var Tt={attribute:!0,type:String,converter:U,reflect:!1,hasChanged:W},Et=(n=Tt,e,t)=>{let{kind:r,metadata:o}=t,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),s.set(t.name,n),r==="accessor"){let{name:i}=t;return{set(c){let l=e.get.call(this);e.set.call(this,c),this.requestUpdate(i,l,n,!0,c)},init(c){return c!==void 0&&this.C(i,void 0,n,c),c}}}if(r==="setter"){let{name:i}=t;return function(c){let l=this[i];e.call(this,c),this.requestUpdate(i,l,n,!0,c)}}throw Error("Unsupported decorator location: "+r)};function g(n){return(e,t)=>typeof t=="object"?Et(n,e,t):((r,o,s)=>{let i=o.hasOwnProperty(s);return o.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(o,s):void 0})(n,e,t)}function R(n){return g({...n,state:!0,attribute:!1})}function X(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function Fe(n){return n.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,e=>e.toUpperCase())}var Rt=(n,e)=>e?n[X(e)]:void 0,Lt={sun:"☉",moon:"☽",mercury:"☿",venus:"♀",earth:"♁",mars:"♂",jupiter:"♃",saturn:"♄",uranus:"♅",neptune:"♆",pluto:"♇",rahu:"☊",ketu:"☋",ascendant:"Asc",lagna:"La","north node":"☊","south node":"☋",chiron:"⚷",lilith:"⚸","black moon lilith":"⚸"},ze=n=>Rt(Lt,n);var L=n=>n??d;function Be(n){if(n.lang)return n.lang;if(typeof document>"u")return;let e=n.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}var qe="__ROXY_UI_I18N__";function Ke(){let n=globalThis,e=n[qe];if(e)return e;let t={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[qe]=t,t}function Ge(n,e){return e?n.replace(/\{\{(\w+)\}\}/g,(t,r)=>r in e?String(e[r]??""):t):n}function Ve(n,e,t){if(!n)return Ge(e,t);let{catalogs:r}=Ke(),o=n.toLowerCase(),s=r[o]??r[o.split("-")[0]];return Ge(s?.[X(e)]??e,t)}function Ye(n){let{listeners:e}=Ke();return e.add(n),()=>{e.delete(n)}}var Q=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=Ye(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var ee=class extends w{constructor(){super();this.translator=(t,r)=>this.t(t,r);new Q(this)}t(t,r){return Ve(this.effectiveLang(),t,r)}effectiveLang(){return Be(this)}};var te=y`:host{--roxy-label-col:minmax(0, 25%);font-family:var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);line-height:var(--roxy-leading-normal,1.5);animation:roxy-fade-in var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1)) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display,var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif))}@keyframes roxy-fade-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border,#e4e4e7) 0%, color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent) 50%, var(--roxy-border,#e4e4e7) 100%);border-radius:var(--roxy-radius-md,8px);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg,1.5rem);color:var(--roxy-muted,#71717a);text-align:center;font-size:var(--roxy-text-sm,.875rem)}.roxy-error{gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-lg,1.5rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-attribution{margin-top:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink,#b45309);text-decoration:underline}.roxy-attribution a:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm,.5rem);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-fg,#0a0a0a);font-family:inherit;font-size:var(--roxy-text-sm,.875rem);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent,#f59e0b);color:var(--roxy-accent-ink,#b45309)}.roxy-edit:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}:host{font-variant-emoji:text}`;var Nt="__cols",Ot="__rows";function Dt(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function re(n){if(Array.isArray(n)){let s=!1,i=n.map(c=>{let l=re(c);return l!==c&&(s=!0),l});return s?i:n}if(!Dt(n))return n;let e=n[Nt],t=n[Ot];if(Array.isArray(e)&&Array.isArray(t)&&Object.keys(n).length===2)return t.map(s=>{let i={};return e.forEach((c,l)=>{i[c]=re(s[l])}),i});let r=!1,o={};for(let[s,i]of Object.entries(n)){let c=re(i);c!==i&&(r=!0),o[s]=c}return r?o:n}function We(n){return re(n)}var ne="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function Je(n){return!!n&&!n.startsWith("pk_")}function Ze(n,e={}){e.warn&&console.warn(ne),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:ne},bubbles:!0,composed:!0}))}var Pt="https://roxyapi.com/api/v2";async function Ut(n){try{let e=await n.json();if(e?.error)return e.error}catch{}return`Request failed (${n.status})`}var oe=class{constructor(e){this.baseUrl=Pt;this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){if(!this.submitUrl&&this.secretKeyRefused())return;this.abort?.abort();let t=new AbortController;this.abort=t,this.host.loading=!0,this.host.error=null;try{let r=this.submitUrl?await fetch(this.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:this.proxyBody(e),signal:t.signal}):await this.callApi(e,t.signal);if(!r.ok)throw new Error(await Ut(r));let o=await r.json();if(t.signal.aborted)return;this.host.data=o}catch(r){if(r?.name==="AbortError")return;this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===t&&(this.abort=void 0),t.signal.aborted||(this.host.loading=!1)}}proxyBody(e){return JSON.stringify(this.submitContext?{...e,context:this.submitContext}:e)}callApi(e,t){let r=new URL(`${this.baseUrl}${e.path}`,document.baseURI);for(let[s,i]of Object.entries(e.query??{}))i!=null&&r.searchParams.set(s,String(i));let o={Accept:"application/json"};return this.publishableKey&&(o["X-API-Key"]=this.publishableKey),e.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:e.method??"GET",headers:o,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}secretKeyRefused(){return Je(this.publishableKey)?(this.host.error=ne,Ze(this.host),!0):!1}};function Xe(n,e,t,r=[]){let o={...t},s=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,u)=>{let h=o[u];return delete o[u],encodeURIComponent(String(h??""))}),i=new Set(r),c={},l={};for(let[p,u]of Object.entries(o))u===void 0||u===""||(e==="GET"||i.has(p)?c[p]=u:l[p]=u);return{path:s,method:e,query:c,body:e==="POST"?l:void 0}}function Qe(){return a`<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 mn=y`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:14px;height:14px;color:var(--roxy-muted,#71717a);transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Mt=y`.interp-keywords{flex-wrap:wrap;gap:.25rem;display:flex}.interp-keywords .kw{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem);padding:1px 8px}`,xn=y`.block{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.block h3{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.interp-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem)}.interp-card summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);align-items:center;gap:var(--roxy-space-sm,.5rem);font-weight:500;font-size:var(--roxy-text-sm,.875rem);display:flex}.interp-card summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-radius:var(--roxy-radius-sm,4px)}.interp-lead{flex-wrap:wrap;flex:auto;order:1;align-items:baseline;gap:.4rem;min-width:0;display:inline-flex}.interp-aside{flex-shrink:0;order:2;align-items:center;gap:.5rem;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted,#71717a);white-space:nowrap;font-weight:400}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm,.5rem);gap:var(--roxy-space-sm,.5rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);overflow-wrap:anywhere;line-height:1.6;display:grid}.interp-body p{margin:0}${Mt}`;function et(n,e,t){let r=n.filter(o=>!!o.body);return r.length===0?d:a`<section class="block" part="section readings"><h3>${t}</h3>${r.map((o,s)=>a`<details class="interp-card" part="reading" name="${e}" ?open="${s===0}"><summary><span class="interp-lead">${o.label}</span> ${Qe()} ${o.aside?a`<span class="interp-aside"><small>${o.aside}</small></span>`:d}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??d}</div></details>`)}</section>`}var jt="roxy-data";function Ht(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var se=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(Ht(e)&&e.classList.contains(jt))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var It={fromAttribute:n=>{if(n!=null){try{let e=JSON.parse(n);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.")}}},m=class extends ee{constructor(){super();this.data=null;this.endpoint="";this.method="POST";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.onEdit=()=>{this.editing=!0};this.onFormSubmit=t=>{let r=t.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetcher.run(Xe(this.endpoint,this.method,r.values,r.queryKeys??[]))};new se(this),this.fetcher=new oe(this)}static{this.styles=[te]}willUpdate(t){if(t.has("data")&&this.data!=null){let r=We(this.data);r!==this.data&&(this.data=r)}t.has("publishableKey")&&(this.fetcher.publishableKey=this.publishableKey),t.has("baseUrl")&&this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),t.has("submitUrl")&&(this.fetcher.submitUrl=this.submitUrl),t.has("submitContext")&&(this.fetcher.submitContext=this.submitContext)}render(){return a`${this.hiddenSectionsStyle()}${this.renderState()}`}hiddenSectionsStyle(){let t=this.hideSections.split(",").map(o=>o.trim().toLowerCase()).filter(o=>/^[a-z][a-z0-9-]*$/.test(o));if(t.length===0)return d;let r=t.map(o=>`[part~="${o}"]{display:none!important}`).join("");return a`<style>${r}</style>`}renderState(){return this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?a`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderInterpretation(t,r,o){return this.hideReadings?d:et(t,r,this.t(o??"Reading"))}renderResult(t){let r=this.sticky?a`${this.renderForm()}${this.renderData(t)}`:a`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.renderData(t)}`;return this.showAttribution()?a`${r}${this.renderAttribution()}`:r}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return a`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.endpoint?this.renderForm():this.renderEmpty()}renderForm(){return a`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${L(this.specUrl)}" publishable-key="${L(this.publishableKey)}" location-url="${L(this.locationUrl)}" submit-label="${L(this.submitLabel)}" lang="${L(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.endpoint}`}readRemembered(){try{let 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 a`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return a`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let r=a`<div class="roxy-error" role="alert" part="error">${this.t(t)}</div>`;return this.endpoint?a`${r}${this.renderForm()}`:r}};f([g({attribute:!1})],m.prototype,"data",2),f([g({type:String,attribute:"data-endpoint"})],m.prototype,"endpoint",2),f([g({type:String})],m.prototype,"method",2),f([g({type:String,attribute:"publishable-key"})],m.prototype,"publishableKey",2),f([g({type:String,attribute:"base-url"})],m.prototype,"baseUrl",2),f([g({type:String,attribute:"spec-url"})],m.prototype,"specUrl",2),f([g({type:String,attribute:"submit-url"})],m.prototype,"submitUrl",2),f([g({attribute:"submit-context",converter:It})],m.prototype,"submitContext",2),f([g({type:String,attribute:"location-url"})],m.prototype,"locationUrl",2),f([g({type:Boolean})],m.prototype,"remember",2),f([g({type:Boolean,attribute:"hide-readings",reflect:!0})],m.prototype,"hideReadings",2),f([g({type:String,attribute:"hide-sections",reflect:!0})],m.prototype,"hideSections",2),f([g({type:String,attribute:"submit-label"})],m.prototype,"submitLabel",2),f([g({type:String})],m.prototype,"attribution",2),f([R()],m.prototype,"loading",2),f([R()],m.prototype,"error",2),f([R()],m.prototype,"selfFetched",2),f([R()],m.prototype,"editing",2),f([R()],m.prototype,"sticky",2);var xe=/^\d{4}-\d{2}-\d{2}$/,Ft=/^\d{4}-\d{2}$/,rt=/^\d{2}:\d{2}(:\d{2})?$/,zt=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,tt=new Map;function be(n){if(!n)return["en"];let e=tt.get(n);if(e)return[e,"en"];let t="en";try{t=Intl.getCanonicalLocales(n)[0]??"en"}catch{t="en"}return tt.set(n,t),[t,"en"]}function nt(n){let e=rt.test(n)?`1970-01-01T${n}`:xe.test(n)?`${n}T00:00:00`:Ft.test(n)?`${n}-01T00:00:00`:zt.test(n)?n:null;return e?{d:new Date(`${e}Z`),timeZone:"UTC"}:{d:new Date(n)}}function Bt(n,e){if(typeof e!="string"||e.length===0||xe.test(e))return"";let{d:t,timeZone:r}=nt(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString(be(n),{hour:"numeric",minute:"2-digit",timeZone:r})}function qt(n,e){if(typeof e!="string"||e.length===0)return"";let{d:t,timeZone:r}=nt(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(be(n),{month:"short",day:"numeric",year:"numeric",timeZone:r})}function N(n,e,t=1){return typeof e!="number"||!Number.isFinite(e)?"":e.toLocaleString(be(n),{maximumFractionDigits:t})}var Gt={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function ot(n,e,t){let r=typeof e=="string"?Gt[e]??Fe(e):"",o=typeof t=="number"?`${N(n,t,2)}°`:"";return r&&o?`${r} (${o})`:r||o}function k(n,e,t){let r=typeof e=="string"&&xe.test(e)&&typeof t=="string"&&rt.test(t)?`${e}T${t}`:e,o=qt(n,r),s=Bt(n,r);return o&&s?`${o}, ${s}`:o||s}var st=y`.roxy-frame{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.roxy-frame .roxy-frame-deg{font-variant-numeric:tabular-nums}`;function it(n,e,t){let r=Object.values(e??{}).filter(o=>!!o?.ayanamsa);return r.length===0?d:a`<div class="roxy-frame">${r.map(o=>{let s=ot(n,o.ayanamsa),i=typeof o.ayanamsaDegrees=="number"?N(n,o.ayanamsaDegrees,4):void 0,c=o.governs?.length?o.governs.join(", "):"";return a`<p class="roxy-frame">${i===void 0?t("Sidereal frame: {{frame}}",{frame:s}):t("Sidereal frame: {{frame}}, {{degrees}}° subtracted",{frame:s,degrees:i})}${c?t(", governs {{sections}}",{sections:c}):""}</p>`})}</div>`}var ve={favourable:"Favourable",underdelivered:"Underdelivered",obstructed:"Obstructed",void:"Void",aggravated:"Aggravated",unfavourable:"Unfavourable"},Kt=Object.keys(ve),at=8,dt={"very-strong":"Very strong",strong:"Strong",moderate:"Moderate",weak:"Weak"},lt={mahadasha:"Mahadasha",antardasha:"Antardasha",pratyantardasha:"Pratyantardasha"},O=class extends m{renderData(e){let t=e.grahas??[];return t.length?a`<div class="wrap" part="card" aria-label="${this.t("Vedic daily reading")}">${this.renderHead(e)} ${this.renderPanchanga(e)} ${this.renderGrahas(t,e.houseThemes)} ${this.renderWindows(e)} ${this.renderFinance(e)} ${this.renderDasha(e)} ${this.renderProvenance(e)}</div>`:this.renderEmpty()}renderHead(e){let t=new Map((e.tally??[]).map(o=>[o.state,o.count])),r=t.get("favourable")??0;return a`<header class="head" part="header"><div class="title-row"><h2 class="title">${this.t("Vedic daily")}</h2><span class="when">${k(this.effectiveLang(),e.dayStart)} — ${k(this.effectiveLang(),e.dayEnd)}</span></div><div class="verdict-row"><span class="verdict ${e.verdict}">${this.t(dt[e.verdict])}</span> <span class="evidence">${this.t("{{supportive}} of {{evaluated}} grahas support this day",{supportive:r,evaluated:e.evaluated})}</span></div>${t.size?a`<div class="tally" part="legend">${Kt.filter(o=>t.get(o)).map(o=>a`<span class="pill">${this.t(ve[o])} ${t.get(o)}</span>`)}</div>`:d} ${e.subject?a`<p class="note">${this.t("Born with the Moon in {{rashi}}, nakshatra {{nakshatra}}",{rashi:e.subject.janmaRashi,nakshatra:e.subject.janmaNakshatra})}</p>`:d} ${(e.degraded??[]).map(o=>a`<p class="note">${this.t("{{component}} unavailable: {{reason}}",{component:o.component,reason:o.reason})}</p>`)}</header>`}renderPanchanga(e){let t=e.panchanga;if(!t)return d;let r=(o,s)=>s?a`<div class="fact"><dt>${o}</dt><dd>${s.number?`${s.number}. `:""}${s.name} ${s.validTo?a`<span class="until">${this.t("until {{time}}",{time:k(this.effectiveLang(),s.validTo)})}</span>`:d}</dd></div>`:d;return a`<section class="block" part="section panchanga"><h3>${this.t("Panchang")}</h3><dl class="facts" part="details"><div class="fact"><dt>${this.t("Vara")}</dt><dd>${t.vara}</dd></div><div class="fact"><dt>${this.t("Paksha")}</dt><dd>${t.paksha}</dd></div>${r(this.t("Tithi"),t.tithi)} ${r(this.t("Nakshatra"),t.nakshatra)} ${r(this.t("Yoga"),t.yoga)} ${r(this.t("Karana"),t.karana)}</dl></section>`}theme(e,t){return e?.[String(t)]?.join(", ")??""}renderGrahas(e,t){return a`<section class="block" part="section grahas"><h3>${this.t("Grahas today")}</h3><div class="scroll"><table part="table"><caption class="roxy-sr-only">${this.t("Each transiting graha with its sign, the house it occupies from the natal Moon, its bindus, its kaksha and the state the classical rules give it.")}</caption><thead><tr><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Bindus")}</th><th scope="col">${this.t("Kaksha")}</th><th scope="col">${this.t("State")}</th></tr></thead><tbody>${e.map(r=>{let o=ze(r.graha)??"",s=this.theme(t,r.houseFromMoon);return a`<tr><td>${o?a`<span class="glyph">${o}</span>`:d}${r.graha}</td><td>${r.sign}</td><td class="num" title="${s}">${r.houseFromMoon}</td><td class="num">${typeof r.binduCount=="number"?r.binduCount:""}</td><td class="num">${this.renderKaksha(r.kaksha)}</td><td><span class="state ${r.state}" title="${r.stateSource??""}">${this.t(ve[r.state])}</span></td></tr>`})}</tbody></table></div></section>`}renderKaksha(e){if(!e||typeof e.number!="number")return d;let t=e.bindu===!0?"yes":e.bindu===!1?"no":"",r=e.bindu===!0?this.t("this kaksha lord gave bindu"):e.bindu===!1?this.t("this kaksha lord gave no bindu"):"",o=this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}, spanning {{start}}° to {{end}}° of the sign",{n:e.number,total:at,graha:e.lord,start:N(this.effectiveLang(),e.startDegree,2),end:N(this.effectiveLang(),e.endDegree,2)});return a`<span class="kaksha" title="${r?`${o} · ${r}`:o}">${e.number}/${at} <span class="dot ${t}" aria-hidden="true"></span></span>`}renderWindows(e){let t=e.tara??[],r=e.chandrabala??[];if(!t.length&&!r.length)return d;let o=(s,i)=>a`<small>${k(this.effectiveLang(),s)} — ${k(this.effectiveLang(),i)}</small>`;return a`<section class="block" part="section windows"><h3>${this.t("Tara and Chandrabala")}</h3>${t.length?a`<div class="chips">${t.map(s=>a`<span class="window"><span>${s.number}. ${s.name}${s.quality?` · ${s.quality}`:""}</span> ${o(s.validFrom,s.validTo)}</span>`)}</div>`:d} ${r.length?a`<div class="chips">${r.map(s=>a`<span class="window ${s.favourable?"yes":"no"}"><span>${this.t("Moon in {{sign}}, house {{n}}",{sign:s.moonSign,n:s.houseFromMoon})} ${s.ashtamaChandra?a`<span class="mark">· ${this.t("Ashtama Chandra")}</span>`:d} </span>${o(s.validFrom,s.validTo)}</span>`)}</div>`:d}</section>`}renderFinance(e){let t=e.areas?.finance;if(!t)return d;let r=e.houseThemes,o=s=>{let i=this.theme(r,s.house);return a`<li>${s.graha} · ${this.t("House {{n}}",{n:s.house})}${i?` (${i})`:""} · ${this.t("level {{level}} {{grade}}",{level:s.level,grade:s.grade})} ${s.dashaLevels?.length?a`<span class="note">${s.dashaLevels.map(c=>this.t(lt[c])).join(", ")}</span>`:d}</li>`};return a`<section class="block" part="section finance"><h3>${this.t("Finance")}</h3><div class="verdict-row"><span class="verdict ${t.band??""}">${t.band?this.t(dt[t.band]):""}</span> ${typeof t.positive=="number"&&typeof t.negative=="number"?a`<span class="evidence">${this.t("{{positive}} positive against {{negative}} negative",{positive:t.positive,negative:t.negative})}</span>`:d}</div><div class="lists">${t.drivers?.length?a`<div><h3>${this.t("Drivers")}</h3><ul>${t.drivers.map(o)}</ul></div>`:d} ${t.cautions?.length?a`<div><h3>${this.t("Cautions")}</h3><ul>${t.cautions.map(o)}</ul></div>`:d}</div></section>`}renderDasha(e){let t=e.dasha??[];return t.length?a`<section class="block" part="section dasha"><h3>${this.t("Dasha")}</h3><div class="chips">${t.map(r=>a`<span class="window"><span>${this.t(lt[r.level])} · ${r.lord}</span> <small>${k(this.effectiveLang(),r.startDate)} — ${k(this.effectiveLang(),r.endDate)}</small></span>`)}</div></section>`:d}renderProvenance(e){return e.frames?a`<section class="block" part="section frame">${it(this.effectiveLang(),e.frames,this.translator)}</section>`:d}};O.styles=[te,st,y`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);box-shadow:var(--roxy-shadow-sm);display:grid;overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-sm,.5rem);display:grid}.title-row{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.when{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.verdict-row{align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.verdict{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-muted,#71717a) 14%, transparent);padding:.15rem .6rem}.verdict.very-strong,.verdict.strong{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#14532d)}.verdict.moderate{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-accent-ink,#b45309)}.verdict.weak{background:color-mix(in srgb, var(--roxy-muted,#71717a) 16%, transparent);color:var(--roxy-secondary,#475569)}.evidence{color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-sm,.875rem);font-variant-numeric:tabular-nums}.tally{flex-wrap:wrap;gap:.35rem;display:flex}.pill{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-full,9999px);border:1px solid var(--roxy-border,#e4e4e7);color:var(--roxy-secondary,#475569);font-variant-numeric:tabular-nums;padding:1px 8px}.block{padding:var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-sm,.5rem);display:grid}.block h3{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em;color:var(--roxy-muted,#71717a);margin:0}.facts{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(7.5rem,1fr));margin:0;display:grid}.fact{gap:2px;display:grid}.fact dt{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.05em}.fact dd{font-size:var(--roxy-text-sm,.875rem);margin:0}.fact .until{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}.scroll{-webkit-overflow-scrolling:touch;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap;padding:.35rem .5rem}th{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.05em;font-weight:var(--roxy-weight-bold,600)}td.num{font-variant-numeric:tabular-nums}.glyph{color:var(--roxy-muted,#71717a);margin-right:.35em}.state{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-muted,#71717a) 14%, transparent);cursor:help;padding:1px 8px}.state.favourable{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#14532d)}.state.underdelivered,.state.obstructed,.state.void{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-accent-ink,#b45309)}.state.aggravated,.state.unfavourable{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 14%, transparent);color:var(--roxy-danger-fg,#991b1b)}.kaksha{cursor:help;align-items:center;gap:.35rem;display:inline-flex}.dot{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 90%, transparent);border-radius:50%;width:7px;height:7px}.dot.yes{background:var(--roxy-success,#16a34a)}.dot.no{background:var(--roxy-warning,#f59e0b)}.chips{flex-wrap:wrap;gap:.35rem;display:flex}.window{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);font-size:var(--roxy-text-sm,.875rem);gap:1px;padding:.3rem .6rem;display:grid}.window small{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums}.window.yes{border-color:color-mix(in srgb, var(--roxy-success,#16a34a) 45%, transparent)}.window.no{border-color:color-mix(in srgb, var(--roxy-danger,#dc2626) 35%, transparent)}.mark{color:var(--roxy-danger-fg,#991b1b)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.lists ul{font-size:var(--roxy-text-sm,.875rem);line-height:var(--roxy-leading-normal,1.5);margin:0;padding-left:1.1rem}.note{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}`],O=f([Ie("roxy-vedic-daily")],O);G();return mt(Vt);})();
299
+ `;var q="roxy-ui-tokens";function G(){if(typeof document>"u")return null;let n=document.getElementById(q);if(n)return n;let e=document.createElement("style");return e.id=q,e.textContent=ke,document.head.prepend(e),e}var K=globalThis,V=K.ShadowRoot&&(K.ShadyCSS===void 0||K.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ae=Symbol(),Se=new WeakMap,O=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==ae)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(V&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=Se.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Se.set(t,e))}return e}toString(){return this.cssText}},Ae=n=>new O(typeof n=="string"?n:n+"",void 0,ae),y=(n,...e)=>{let t=n.length===1?n[0]:e.reduce((r,o,s)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[s+1],n[0]);return new O(t,n,ae)},_e=(n,e)=>{if(V)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),o=K.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,n.appendChild(r)}},de=V?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return Ae(t)})(n):n;var{is:ft,defineProperty:gt,getOwnPropertyDescriptor:yt,getOwnPropertyNames:xt,getOwnPropertySymbols:bt,getPrototypeOf:vt}=Object,Y=globalThis,Ce=Y.trustedTypes,$t=Ce?Ce.emptyScript:"",wt=Y.reactiveElementPolyfillSupport,P=(n,e)=>n,U={toAttribute(n,e){switch(e){case Boolean:n=n?$t:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},W=(n,e)=>!ft(n,e),Te={attribute:!0,type:String,converter:U,reflect:!1,useDefault:!1,hasChanged:W};Symbol.metadata??=Symbol("metadata"),Y.litPropertyMetadata??=new WeakMap;var b=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Te){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&gt(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){let{get:o,set:s}=yt(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get:o,set(i){let c=o?.call(this);s?.call(this,i),this.requestUpdate(e,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Te}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;let e=vt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(P("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P("properties"))){let t=this.properties,r=[...xt(t),...bt(t)];for(let o of r)this.createProperty(o,t[o])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)t.unshift(de(o))}else e!==void 0&&t.push(de(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return _e(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){let s=(r.converter?.toAttribute!==void 0?r.converter:U).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,t){let r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:U;this._$Em=o;let c=i.fromAttribute(t,s.type);this[o]=c??this._$Ej?.get(o)??c,this._$Em=null}}requestUpdate(e,t,r,o=!1,s){if(e!==void 0){let i=this.constructor;if(o===!1&&(s=this[e]),r??=i.getPropertyOptions(e),!((r.hasChanged??W)(s,t)||r.useDefault&&r.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:s},i){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),s!==!0||i!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,s]of r){let{wrapped:i}=s,c=this[o];i!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,s,c)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[P("elementProperties")]=new Map,b[P("finalized")]=new Map,wt?.({ReactiveElement:b}),(Y.reactiveElementVersions??=[]).push("2.1.2");var fe=globalThis,Ee=n=>n,J=fe.trustedTypes,Re=J?J.createPolicy("lit-html",{createHTML:n=>n}):void 0,Ue="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,Me="?"+$,kt=`<${Me}>`,_=document,j=()=>_.createComment(""),H=n=>n===null||typeof n!="object"&&typeof n!="function",ge=Array.isArray,St=n=>ge(n)||typeof n?.[Symbol.iterator]=="function",le=`[
300
+ \f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Le=/-->/g,Ne=/>/g,S=RegExp(`>|${le}(?:([^\\s"'>=/]+)(${le}*=${le}*(?:[^
301
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),De=/'/g,Oe=/"/g,je=/^(?:script|style|textarea|title)$/i,ye=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),a=ye(1),nr=ye(2),or=ye(3),C=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Pe=new WeakMap,A=_.createTreeWalker(_,129);function He(n,e){if(!ge(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Re!==void 0?Re.createHTML(e):e}var At=(n,e)=>{let t=n.length-1,r=[],o,s=e===2?"<svg>":e===3?"<math>":"",i=M;for(let c=0;c<t;c++){let l=n[c],p,u,h=-1,x=0;for(;x<l.length&&(i.lastIndex=x,u=i.exec(l),u!==null);)x=i.lastIndex,i===M?u[1]==="!--"?i=Le:u[1]!==void 0?i=Ne:u[2]!==void 0?(je.test(u[2])&&(o=RegExp("</"+u[2],"g")),i=S):u[3]!==void 0&&(i=S):i===S?u[0]===">"?(i=o??M,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,p=u[1],i=u[3]===void 0?S:u[3]==='"'?Oe:De):i===Oe||i===De?i=S:i===Le||i===Ne?i=M:(i=S,o=void 0);let v=i===S&&n[c+1].startsWith("/>")?" ":"";s+=i===M?l+kt:h>=0?(r.push(p),l.slice(0,h)+Ue+l.slice(h)+$+v):l+$+(h===-2?c:v)}return[He(n,s+(n[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},I=class n{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let s=0,i=0,c=e.length-1,l=this.parts,[p,u]=At(e,t);if(this.el=n.createElement(p,r),A.currentNode=this.el.content,t===2||t===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=A.nextNode())!==null&&l.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let h of o.getAttributeNames())if(h.endsWith(Ue)){let x=u[i++],v=o.getAttribute(h).split($),z=/([.?@])?(.*)/.exec(x);l.push({type:1,index:s,name:z[2],strings:v,ctor:z[1]==="."?he:z[1]==="?"?ue:z[1]==="@"?pe:E}),o.removeAttribute(h)}else h.startsWith($)&&(l.push({type:6,index:s}),o.removeAttribute(h));if(je.test(o.tagName)){let h=o.textContent.split($),x=h.length-1;if(x>0){o.textContent=J?J.emptyScript:"";for(let v=0;v<x;v++)o.append(h[v],j()),A.nextNode(),l.push({type:2,index:++s});o.append(h[x],j())}}}else if(o.nodeType===8)if(o.data===Me)l.push({type:2,index:s});else{let h=-1;for(;(h=o.data.indexOf($,h+1))!==-1;)l.push({type:7,index:s}),h+=$.length-1}s++}}static createElement(e,t){let r=_.createElement("template");return r.innerHTML=e,r}};function T(n,e,t=n,r){if(e===C)return e;let o=r!==void 0?t._$Co?.[r]:t._$Cl,s=H(e)?void 0:e._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(n),o._$AT(n,t,r)),r!==void 0?(t._$Co??=[])[r]=o:t._$Cl=o),o!==void 0&&(e=T(n,o._$AS(n,e.values),o,r)),e}var ce=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,o=(e?.creationScope??_).importNode(t,!0);A.currentNode=o;let s=A.nextNode(),i=0,c=0,l=r[0];for(;l!==void 0;){if(i===l.index){let p;l.type===2?p=new F(s,s.nextSibling,this,e):l.type===1?p=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(p=new me(s,this,e)),this._$AV.push(p),l=r[++c]}i!==l?.index&&(s=A.nextNode(),i++)}return A.currentNode=_,o}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},F=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=T(this,e,t),H(e)?e===d||e==null||e===""?(this._$AH!==d&&this._$AR(),this._$AH=d):e!==this._$AH&&e!==C&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):St(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&&H(this._$AH)?this._$AA.nextSibling.data=e:this.T(_.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=I.createElement(He(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{let s=new ce(o,this),i=s.u(this.options);s.p(t),this.T(i),this._$AH=s}}_$AC(e){let t=Pe.get(e.strings);return t===void 0&&Pe.set(e.strings,t=new I(e)),t}k(e){ge(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,o=0;for(let s of e)o===t.length?t.push(r=new n(this.O(j()),this.O(j()),this,this.options)):r=t[o],r._$AI(s),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=Ee(e).nextSibling;Ee(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},E=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(e,t=this,r,o){let s=this.strings,i=!1;if(s===void 0)e=T(this,e,t,0),i=!H(e)||e!==this._$AH&&e!==C,i&&(this._$AH=e);else{let c=e,l,p;for(e=s[0],l=0;l<s.length-1;l++)p=T(this,c[r+l],t,l),p===C&&(p=this._$AH[l]),i||=!H(p)||p!==this._$AH[l],p===d?e=d:e!==d&&(e+=(p??"")+s[l+1]),this._$AH[l]=p}i&&!o&&this.j(e)}j(e){e===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},he=class extends E{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===d?void 0:e}},ue=class extends E{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==d)}},pe=class extends E{constructor(e,t,r,o,s){super(e,t,r,o,s),this.type=5}_$AI(e,t=this){if((e=T(this,e,t,0)??d)===C)return;let r=this._$AH,o=e===d&&r!==d||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==d&&(r===d||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},me=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){T(this,e)}};var _t=fe.litHtmlPolyfillSupport;_t?.(I,F),(fe.litHtmlVersions??=[]).push("3.3.3");var Ie=(n,e,t)=>{let r=t?.renderBefore??e,o=r._$litPart$;if(o===void 0){let s=t?.renderBefore??null;r._$litPart$=o=new F(e.insertBefore(j(),s),s,void 0,t??{})}return o._$AI(n),o};var xe=globalThis,w=class extends b{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=Ie(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return C}};w._$litElement$=!0,w.finalized=!0,xe.litElementHydrateSupport?.({LitElement:w});var Ct=xe.litElementPolyfillSupport;Ct?.({LitElement:w});(xe.litElementVersions??=[]).push("4.2.2");var Fe=n=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(n,e)}):customElements.define(n,e)};var Tt={attribute:!0,type:String,converter:U,reflect:!1,hasChanged:W},Et=(n=Tt,e,t)=>{let{kind:r,metadata:o}=t,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),s.set(t.name,n),r==="accessor"){let{name:i}=t;return{set(c){let l=e.get.call(this);e.set.call(this,c),this.requestUpdate(i,l,n,!0,c)},init(c){return c!==void 0&&this.C(i,void 0,n,c),c}}}if(r==="setter"){let{name:i}=t;return function(c){let l=this[i];e.call(this,c),this.requestUpdate(i,l,n,!0,c)}}throw Error("Unsupported decorator location: "+r)};function g(n){return(e,t)=>typeof t=="object"?Et(n,e,t):((r,o,s)=>{let i=o.hasOwnProperty(s);return o.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(o,s):void 0})(n,e,t)}function R(n){return g({...n,state:!0,attribute:!1})}function X(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function ze(n){return n.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,e=>e.toUpperCase())}var Rt=(n,e)=>e?n[X(e)]:void 0,Lt={sun:"☉",moon:"☽",mercury:"☿",venus:"♀",earth:"♁",mars:"♂",jupiter:"♃",saturn:"♄",uranus:"♅",neptune:"♆",pluto:"♇",rahu:"☊",ketu:"☋",ascendant:"Asc",lagna:"La","north node":"☊","south node":"☋",chiron:"⚷",lilith:"⚸","black moon lilith":"⚸"},Be=n=>Rt(Lt,n);var L=n=>n??d;function qe(n){if(n.lang)return n.lang;if(typeof document>"u")return;let e=n.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}var Ge="__ROXY_UI_I18N__";function Ve(){let n=globalThis,e=n[Ge];if(e)return e;let t={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[Ge]=t,t}function Ke(n,e){return e?n.replace(/\{\{(\w+)\}\}/g,(t,r)=>r in e?String(e[r]??""):t):n}function Ye(n,e,t){if(!n)return Ke(e,t);let{catalogs:r}=Ve(),o=n.toLowerCase(),s=r[o]??r[o.split("-")[0]];return Ke(s?.[X(e)]??e,t)}function We(n){let{listeners:e}=Ve();return e.add(n),()=>{e.delete(n)}}var Q=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=We(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var ee=class extends w{constructor(){super();this.translator=(t,r)=>this.t(t,r);new Q(this)}t(t,r){return Ye(this.effectiveLang(),t,r)}effectiveLang(){return qe(this)}};var te=y`:host{--roxy-label-col:minmax(0, 25%);font-family:var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);line-height:var(--roxy-leading-normal,1.5);animation:roxy-fade-in var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1)) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display,var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif))}@keyframes roxy-fade-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border,#e4e4e7) 0%, color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent) 50%, var(--roxy-border,#e4e4e7) 100%);border-radius:var(--roxy-radius-md,8px);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg,1.5rem);color:var(--roxy-muted,#71717a);text-align:center;font-size:var(--roxy-text-sm,.875rem)}.roxy-error{gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-lg,1.5rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-attribution{margin-top:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink,#b45309);text-decoration:underline}.roxy-attribution a:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm,.5rem);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-fg,#0a0a0a);font-family:inherit;font-size:var(--roxy-text-sm,.875rem);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent,#f59e0b);color:var(--roxy-accent-ink,#b45309)}.roxy-edit:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}:host{font-variant-emoji:text}`;var Nt="__cols",Dt="__rows";function Ot(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function re(n){if(Array.isArray(n)){let s=!1,i=n.map(c=>{let l=re(c);return l!==c&&(s=!0),l});return s?i:n}if(!Ot(n))return n;let e=n[Nt],t=n[Dt];if(Array.isArray(e)&&Array.isArray(t)&&Object.keys(n).length===2)return t.map(s=>{let i={};return e.forEach((c,l)=>{i[c]=re(s[l])}),i});let r=!1,o={};for(let[s,i]of Object.entries(n)){let c=re(i);c!==i&&(r=!0),o[s]=c}return r?o:n}function Je(n){return re(n)}var ne="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function Ze(n){return!!n&&!n.startsWith("pk_")}function Xe(n,e={}){e.warn&&console.warn(ne),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:ne},bubbles:!0,composed:!0}))}var Pt="https://roxyapi.com/api/v2";async function Ut(n){try{let e=await n.json();if(e?.error)return e.error}catch{}return`Request failed (${n.status})`}var oe=class{constructor(e){this.baseUrl=Pt;this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){if(!this.submitUrl&&this.secretKeyRefused())return;this.abort?.abort();let t=new AbortController;this.abort=t,this.host.loading=!0,this.host.error=null;try{let r=this.submitUrl?await fetch(this.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:this.proxyBody(e),signal:t.signal}):await this.callApi(e,t.signal);if(!r.ok)throw new Error(await Ut(r));let o=await r.json();if(t.signal.aborted)return;this.host.data=o}catch(r){if(r?.name==="AbortError")return;this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===t&&(this.abort=void 0),t.signal.aborted||(this.host.loading=!1)}}proxyBody(e){return JSON.stringify(this.submitContext?{...e,context:this.submitContext}:e)}callApi(e,t){let r=new URL(`${this.baseUrl}${e.path}`,document.baseURI);for(let[s,i]of Object.entries(e.query??{}))i!=null&&r.searchParams.set(s,String(i));let o={Accept:"application/json"};return this.publishableKey&&(o["X-API-Key"]=this.publishableKey),e.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:e.method??"GET",headers:o,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}secretKeyRefused(){return Ze(this.publishableKey)?(this.host.error=ne,Xe(this.host),!0):!1}};function Qe(n,e,t,r=[]){let o={...t},s=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,u)=>{let h=o[u];return delete o[u],encodeURIComponent(String(h??""))}),i=new Set(r),c={},l={};for(let[p,u]of Object.entries(o))u===void 0||u===""||(e==="GET"||i.has(p)?c[p]=u:l[p]=u);return{path:s,method:e,query:c,body:e==="POST"?l:void 0}}function et(){return a`<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 fn=y`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:14px;height:14px;color:var(--roxy-muted,#71717a);transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Mt=y`.interp-keywords{flex-wrap:wrap;gap:.25rem;display:flex}.interp-keywords .kw{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem);padding:1px 8px}`,bn=y`.block{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.block h3{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.interp-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem)}.interp-card summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);align-items:center;gap:var(--roxy-space-sm,.5rem);font-weight:500;font-size:var(--roxy-text-sm,.875rem);display:flex}.interp-card summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-radius:var(--roxy-radius-sm,4px)}.interp-lead{flex-wrap:wrap;flex:auto;order:1;align-items:baseline;gap:.4rem;min-width:0;display:inline-flex}.interp-aside{flex-shrink:0;order:2;align-items:center;gap:.5rem;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted,#71717a);white-space:nowrap;font-weight:400}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm,.5rem);gap:var(--roxy-space-sm,.5rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);overflow-wrap:anywhere;line-height:1.6;display:grid}.interp-body p{margin:0}${Mt}`;function tt(n,e,t){let r=n.filter(o=>!!o.body);return r.length===0?d:a`<section class="block" part="section readings"><h3>${t}</h3>${r.map((o,s)=>a`<details class="interp-card" part="reading" name="${e}" ?open="${s===0}"><summary><span class="interp-lead">${o.label}</span> ${et()} ${o.aside?a`<span class="interp-aside"><small>${o.aside}</small></span>`:d}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??d}</div></details>`)}</section>`}var jt="roxy-data";function Ht(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var se=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(Ht(e)&&e.classList.contains(jt))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var It={fromAttribute:n=>{if(n!=null){try{let e=JSON.parse(n);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.")}}},m=class extends ee{constructor(){super();this.data=null;this.endpoint="";this.method="POST";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.onEdit=()=>{this.editing=!0};this.onFormSubmit=t=>{let r=t.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetcher.run(Qe(this.endpoint,this.method,r.values,r.queryKeys??[]))};new se(this),this.fetcher=new oe(this)}static{this.styles=[te]}willUpdate(t){if(t.has("data")&&this.data!=null){let r=Je(this.data);r!==this.data&&(this.data=r)}t.has("publishableKey")&&(this.fetcher.publishableKey=this.publishableKey),t.has("baseUrl")&&this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),t.has("submitUrl")&&(this.fetcher.submitUrl=this.submitUrl),t.has("submitContext")&&(this.fetcher.submitContext=this.submitContext)}render(){return a`${this.hiddenSectionsStyle()}${this.renderState()}`}hiddenSectionsStyle(){let t=this.hideSections.split(",").map(o=>o.trim().toLowerCase()).filter(o=>/^[a-z][a-z0-9-]*$/.test(o));if(t.length===0)return d;let r=t.map(o=>`[part~="${o}"]{display:none!important}`).join("");return a`<style>${r}</style>`}renderState(){return this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?a`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderInterpretation(t,r,o){return this.hideReadings?d:tt(t,r,this.t(o??"Reading"))}renderResult(t){let r=this.sticky?a`${this.renderForm()}${this.renderData(t)}`:a`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.renderData(t)}`;return this.showAttribution()?a`${r}${this.renderAttribution()}`:r}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return a`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.endpoint?this.renderForm():this.renderEmpty()}renderForm(){return a`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${L(this.specUrl)}" publishable-key="${L(this.publishableKey)}" location-url="${L(this.locationUrl)}" submit-label="${L(this.submitLabel)}" lang="${L(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.endpoint}`}readRemembered(){try{let 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 a`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return a`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let r=a`<div class="roxy-error" role="alert" part="error">${this.t(t)}</div>`;return this.endpoint?a`${r}${this.renderForm()}`:r}};f([g({attribute:!1})],m.prototype,"data",2),f([g({type:String,attribute:"data-endpoint"})],m.prototype,"endpoint",2),f([g({type:String})],m.prototype,"method",2),f([g({type:String,attribute:"publishable-key"})],m.prototype,"publishableKey",2),f([g({type:String,attribute:"base-url"})],m.prototype,"baseUrl",2),f([g({type:String,attribute:"spec-url"})],m.prototype,"specUrl",2),f([g({type:String,attribute:"submit-url"})],m.prototype,"submitUrl",2),f([g({attribute:"submit-context",converter:It})],m.prototype,"submitContext",2),f([g({type:String,attribute:"location-url"})],m.prototype,"locationUrl",2),f([g({type:Boolean})],m.prototype,"remember",2),f([g({type:Boolean,attribute:"hide-readings",reflect:!0})],m.prototype,"hideReadings",2),f([g({type:String,attribute:"hide-sections",reflect:!0})],m.prototype,"hideSections",2),f([g({type:String,attribute:"submit-label"})],m.prototype,"submitLabel",2),f([g({type:String})],m.prototype,"attribution",2),f([R()],m.prototype,"loading",2),f([R()],m.prototype,"error",2),f([R()],m.prototype,"selfFetched",2),f([R()],m.prototype,"editing",2),f([R()],m.prototype,"sticky",2);var be=/^\d{4}-\d{2}-\d{2}$/,Ft=/^\d{4}-\d{2}$/,nt=/^\d{2}:\d{2}(:\d{2})?$/,zt=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,rt=new Map;function ve(n){if(!n)return["en"];let e=rt.get(n);if(e)return[e,"en"];let t="en";try{t=Intl.getCanonicalLocales(n)[0]??"en"}catch{t="en"}return rt.set(n,t),[t,"en"]}function ot(n){let e=nt.test(n)?`1970-01-01T${n}`:be.test(n)?`${n}T00:00:00`:Ft.test(n)?`${n}-01T00:00:00`:zt.test(n)?n:null;return e?{d:new Date(`${e}Z`),timeZone:"UTC"}:{d:new Date(n)}}function Bt(n,e){if(typeof e!="string"||e.length===0||be.test(e))return"";let{d:t,timeZone:r}=ot(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString(ve(n),{hour:"numeric",minute:"2-digit",timeZone:r})}function qt(n,e){if(typeof e!="string"||e.length===0)return"";let{d:t,timeZone:r}=ot(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(ve(n),{month:"short",day:"numeric",year:"numeric",timeZone:r})}function N(n,e,t=1){return typeof e!="number"||!Number.isFinite(e)?"":e.toLocaleString(ve(n),{maximumFractionDigits:t})}var Gt={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function st(n,e,t){let r=typeof e=="string"?Gt[e]??ze(e):"",o=typeof t=="number"?`${N(n,t,2)}°`:"";return r&&o?`${r} (${o})`:r||o}function k(n,e,t){let r=typeof e=="string"&&be.test(e)&&typeof t=="string"&&nt.test(t)?`${e}T${t}`:e,o=qt(n,r),s=Bt(n,r);return o&&s?`${o}, ${s}`:o||s}var it=y`.roxy-frame{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.roxy-frame .roxy-frame-deg{font-variant-numeric:tabular-nums}`;function at(n,e,t){let r=Object.values(e??{}).filter(o=>!!o?.ayanamsa);return r.length===0?d:a`<div class="roxy-frame">${r.map(o=>{let s=st(n,o.ayanamsa),i=typeof o.ayanamsaDegrees=="number"?N(n,o.ayanamsaDegrees,4):void 0,c=o.governs?.length?o.governs.join(", "):"";return a`<p class="roxy-frame">${i===void 0?t("Sidereal frame: {{frame}}",{frame:s}):t("Sidereal frame: {{frame}}, {{degrees}}° subtracted",{frame:s,degrees:i})}${c?t(", governs {{sections}}",{sections:c}):""}</p>`})}</div>`}var $e={favourable:"Favourable",underdelivered:"Underdelivered",obstructed:"Obstructed",void:"Void",aggravated:"Aggravated",unfavourable:"Unfavourable"},Kt=Object.keys($e),dt=8,ie={"very-strong":"Very strong",strong:"Strong",moderate:"Moderate",weak:"Weak"},Vt={day:"Day",finance:"Finance",natal:"Natal"},lt={mahadasha:"Mahadasha",antardasha:"Antardasha",pratyantardasha:"Pratyantardasha"},D=class extends m{renderData(e){let t=e.grahas??[];return t.length?a`<div class="wrap" part="card" aria-label="${this.t("Vedic daily reading")}">${this.renderHead(e)} ${this.renderPanchanga(e)} ${this.renderGrahas(t,e.houseThemes)} ${this.renderWindows(e)} ${this.renderFinance(e)} ${this.renderDasha(e)} ${this.renderProvenance(e)}</div>`:this.renderEmpty()}renderHead(e){let t=new Map((e.tally??[]).map(o=>[o.state,o.count])),r=t.get("favourable")??0;return a`<header class="head" part="header"><div class="title-row"><h2 class="title">${this.t("Vedic daily")}</h2><span class="when">${k(this.effectiveLang(),e.dayStart)} — ${k(this.effectiveLang(),e.dayEnd)}</span></div><div class="verdict-row"><span class="verdict ${e.verdict}">${this.t(ie[e.verdict])}</span> <span class="evidence">${this.t("{{supportive}} of {{evaluated}} grahas support this day",{supportive:r,evaluated:e.evaluated})}</span></div>${t.size?a`<div class="tally" part="legend">${Kt.filter(o=>t.get(o)).map(o=>a`<span class="pill">${this.t($e[o])} ${t.get(o)}</span>`)}</div>`:d} ${e.subject?a`<p class="note">${this.t("Born with the Moon in {{rashi}}, nakshatra {{nakshatra}}",{rashi:e.subject.janmaRashi,nakshatra:e.subject.janmaNakshatra})}</p>`:d} ${(e.degraded??[]).map(o=>a`<p class="note">${this.t("{{component}} unavailable: {{reason}}",{component:o.component,reason:o.reason})}</p>`)}</header>`}renderPanchanga(e){let t=e.panchanga;if(!t)return d;let r=(o,s)=>s?a`<div class="fact"><dt>${o}</dt><dd>${s.number?`${s.number}. `:""}${s.name} ${s.validTo?a`<span class="until">${this.t("until {{time}}",{time:k(this.effectiveLang(),s.validTo)})}</span>`:d}</dd></div>`:d;return a`<section class="block" part="section panchanga"><h3>${this.t("Panchang")}</h3><dl class="facts" part="details"><div class="fact"><dt>${this.t("Vara")}</dt><dd>${t.vara}</dd></div><div class="fact"><dt>${this.t("Paksha")}</dt><dd>${t.paksha}</dd></div>${r(this.t("Tithi"),t.tithi)} ${r(this.t("Nakshatra"),t.nakshatra)} ${r(this.t("Yoga"),t.yoga)} ${r(this.t("Karana"),t.karana)}</dl></section>`}theme(e,t){return e?.[String(t)]?.join(", ")??""}renderGrahas(e,t){return a`<section class="block" part="section grahas"><h3>${this.t("Grahas today")}</h3><div class="scroll"><table part="table"><caption class="roxy-sr-only">${this.t("Each transiting graha with its sign, the house it occupies from the natal Moon, its bindus, its kaksha and the state the classical rules give it.")}</caption><thead><tr><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Bindus")}</th><th scope="col">${this.t("Kaksha")}</th><th scope="col">${this.t("State")}</th></tr></thead><tbody>${e.map(r=>{let o=Be(r.graha)??"",s=this.theme(t,r.houseFromMoon);return a`<tr><td>${o?a`<span class="glyph">${o}</span>`:d}${r.graha}</td><td>${r.sign}</td><td class="num" title="${s}">${r.houseFromMoon}</td><td class="num">${typeof r.binduCount=="number"?r.binduCount:""}</td><td class="num">${this.renderKaksha(r.kaksha)}</td><td><span class="state ${r.state}" title="${r.stateSource??""}">${this.t($e[r.state])}</span></td></tr>`})}</tbody></table></div></section>`}renderKaksha(e){if(!e||typeof e.number!="number")return d;let t=e.bindu===!0?"yes":e.bindu===!1?"no":"",r=e.bindu===!0?this.t("this kaksha lord gave bindu"):e.bindu===!1?this.t("this kaksha lord gave no bindu"):"",o=this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}, spanning {{start}}° to {{end}}° of the sign",{n:e.number,total:dt,graha:e.lord,start:N(this.effectiveLang(),e.startDegree,2),end:N(this.effectiveLang(),e.endDegree,2)});return a`<span class="kaksha" title="${r?`${o} · ${r}`:o}">${e.number}/${dt} <span class="dot ${t}" aria-hidden="true"></span></span>`}renderWindows(e){let t=e.tara??[],r=e.chandrabala??[];if(!t.length&&!r.length)return d;let o=(s,i)=>a`<small>${k(this.effectiveLang(),s)} — ${k(this.effectiveLang(),i)}</small>`;return a`<section class="block" part="section windows"><h3>${this.t("Tara and Chandrabala")}</h3>${t.length?a`<div class="chips">${t.map(s=>a`<span class="window"><span>${s.number}. ${s.name}${s.quality?` · ${s.quality}`:""}</span> ${o(s.validFrom,s.validTo)}</span>`)}</div>`:d} ${r.length?a`<div class="chips">${r.map(s=>a`<span class="window ${s.favourable?"yes":"no"}"><span>${this.t("Moon in {{sign}}, house {{n}}",{sign:s.moonSign,n:s.houseFromMoon})} ${s.ashtamaChandra?a`<span class="mark">· ${this.t("Ashtama Chandra")}</span>`:d} </span>${o(s.validFrom,s.validTo)}</span>`)}</div>`:d}</section>`}renderFinance(e){let t=e.areas?.finance;if(!t)return d;let r=e.houseThemes,o=s=>{let i=this.theme(r,s.house);return a`<li>${s.graha} · ${this.t("House {{n}}",{n:s.house})}${i?` (${i})`:""} · ${this.t("level {{level}} {{grade}}",{level:s.level,grade:s.grade})} ${s.dashaLevels?.length?a`<span class="note">${s.dashaLevels.map(c=>this.t(lt[c])).join(", ")}</span>`:d}</li>`};return a`<section class="block" part="section finance"><h3>${this.t("Finance")}</h3><div class="verdict-row"><span class="verdict ${t.band??""}">${t.band?this.t(ie[t.band]):""}</span> ${typeof t.positive=="number"&&typeof t.negative=="number"?a`<span class="evidence">${this.t("{{positive}} positive against {{negative}} negative",{positive:t.positive,negative:t.negative})}</span>`:d}</div><div class="lists">${t.drivers?.length?a`<div><h3>${this.t("Drivers")}</h3><ul>${t.drivers.map(o)}</ul></div>`:d} ${t.cautions?.length?a`<div><h3>${this.t("Cautions")}</h3><ul>${t.cautions.map(o)}</ul></div>`:d}</div>${this.renderComposite(t.composite)}</section>`}renderComposite(e){return e?a`<div class="composite"><h3>${this.t("Combined score")}</h3><div class="verdict-row"><span class="verdict ${e.band}">${this.t(ie[e.band])}</span> <span class="evidence">${e.score}</span></div><ul class="layers">${e.layers.map(t=>a`<li><span>${this.t(Vt[t.layer])}</span> <span class="evidence">${t.score}</span> <span class="band">${this.t(ie[t.band])}</span></li>`)}</ul></div>`:d}renderDasha(e){let t=e.dasha??[];return t.length?a`<section class="block" part="section dasha"><h3>${this.t("Dasha")}</h3><div class="chips">${t.map(r=>a`<span class="window"><span>${this.t(lt[r.level])} · ${r.lord}</span> <small>${k(this.effectiveLang(),r.startDate)} — ${k(this.effectiveLang(),r.endDate)}</small></span>`)}</div></section>`:d}renderProvenance(e){return e.frames?a`<section class="block" part="section frame">${at(this.effectiveLang(),e.frames,this.translator)}</section>`:d}};D.styles=[te,it,y`.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);box-shadow:var(--roxy-shadow-sm);display:grid;overflow:hidden}.head{padding:var(--roxy-space-md,1rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-sm,.5rem);display:grid}.title-row{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.when{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.verdict-row{align-items:center;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.verdict{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-muted,#71717a) 14%, transparent);padding:.15rem .6rem}.verdict.very-strong,.verdict.strong{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#14532d)}.verdict.moderate{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-accent-ink,#b45309)}.verdict.weak{background:color-mix(in srgb, var(--roxy-muted,#71717a) 16%, transparent);color:var(--roxy-secondary,#475569)}.evidence{color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-sm,.875rem);font-variant-numeric:tabular-nums}.tally{flex-wrap:wrap;gap:.35rem;display:flex}.pill{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-full,9999px);border:1px solid var(--roxy-border,#e4e4e7);color:var(--roxy-secondary,#475569);font-variant-numeric:tabular-nums;padding:1px 8px}.block{padding:var(--roxy-space-md,1rem);border-top:1px solid var(--roxy-border,#e4e4e7);gap:var(--roxy-space-sm,.5rem);display:grid}.block h3{font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;letter-spacing:.06em;color:var(--roxy-muted,#71717a);margin:0}.facts{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(7.5rem,1fr));margin:0;display:grid}.fact{gap:2px;display:grid}.fact dt{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.05em}.fact dd{font-size:var(--roxy-text-sm,.875rem);margin:0}.fact .until{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}.scroll{-webkit-overflow-scrolling:touch;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{text-align:left;border-bottom:1px solid var(--roxy-border,#e4e4e7);white-space:nowrap;padding:.35rem .5rem}th{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.05em;font-weight:var(--roxy-weight-bold,600)}td.num{font-variant-numeric:tabular-nums}.glyph{color:var(--roxy-muted,#71717a);margin-right:.35em}.state{font-size:var(--roxy-text-xs,.75rem);border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-muted,#71717a) 14%, transparent);cursor:help;padding:1px 8px}.state.favourable{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#14532d)}.state.underdelivered,.state.obstructed,.state.void{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 16%, transparent);color:var(--roxy-accent-ink,#b45309)}.state.aggravated,.state.unfavourable{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 14%, transparent);color:var(--roxy-danger-fg,#991b1b)}.kaksha{cursor:help;align-items:center;gap:.35rem;display:inline-flex}.dot{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 90%, transparent);border-radius:50%;width:7px;height:7px}.dot.yes{background:var(--roxy-success,#16a34a)}.dot.no{background:var(--roxy-warning,#f59e0b)}.chips{flex-wrap:wrap;gap:.35rem;display:flex}.window{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);font-size:var(--roxy-text-sm,.875rem);gap:1px;padding:.3rem .6rem;display:grid}.window small{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);font-variant-numeric:tabular-nums}.window.yes{border-color:color-mix(in srgb, var(--roxy-success,#16a34a) 45%, transparent)}.window.no{border-color:color-mix(in srgb, var(--roxy-danger,#dc2626) 35%, transparent)}.mark{color:var(--roxy-danger-fg,#991b1b)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.lists ul{font-size:var(--roxy-text-sm,.875rem);line-height:var(--roxy-leading-normal,1.5);margin:0;padding-left:1.1rem}.note{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);line-height:var(--roxy-leading-normal,1.5);margin:0}.composite{gap:var(--roxy-space-sm,.5rem);display:grid}.layers{font-size:var(--roxy-text-sm,.875rem);gap:.2rem;margin:0;padding:0;list-style:none;display:grid}.layers li{align-items:baseline;gap:.2rem var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.layers .band{color:var(--roxy-secondary,#475569)}`],D=f([Fe("roxy-vedic-daily")],D);G();return mt(Yt);})();
302
302
  /*! Bundled license information:
303
303
 
304
304
  @lit/reactive-element/css-tag.js: