@roxyapi/ui 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +5 -5
- package/README.md +3 -3
- package/THEMING.md +3 -3
- package/components-catalog.json +258 -158
- package/dist/cdn/components/almanac-day.js +3 -205
- package/dist/cdn/components/angel-number-card.js +3 -205
- package/dist/cdn/components/angel-number-lookup.js +3 -205
- package/dist/cdn/components/arudha-padas.js +3 -205
- package/dist/cdn/components/ashtakavarga-grid.js +3 -205
- package/dist/cdn/components/aspects-table.js +3 -205
- package/dist/cdn/components/astrocartography-map.js +3 -205
- package/dist/cdn/components/bazi-chart.js +3 -205
- package/dist/cdn/components/bhav-chalit-table.js +2 -204
- package/dist/cdn/components/bhava-bala-table.js +3 -205
- package/dist/cdn/components/biorhythm-chart.js +3 -205
- package/dist/cdn/components/bodygraph.js +7 -209
- package/dist/cdn/components/chara-karakas.js +3 -205
- package/dist/cdn/components/choghadiya-grid.js +3 -205
- package/dist/cdn/components/compatibility-card.js +2 -204
- package/dist/cdn/components/compound-number.js +3 -205
- package/dist/cdn/components/crystal-card.js +3 -205
- package/dist/cdn/components/crystal-grid.js +3 -205
- package/dist/cdn/components/dasha-timeline.js +3 -205
- package/dist/cdn/components/data.js +3 -205
- package/dist/cdn/components/divisional-chart.js +13 -215
- package/dist/cdn/components/dosha-card.js +3 -205
- package/dist/cdn/components/dosha-constitution.js +3 -205
- package/dist/cdn/components/dream-card.js +3 -205
- package/dist/cdn/components/dream-search.js +3 -205
- package/dist/cdn/components/endpoint-form.js +3 -205
- package/dist/cdn/components/ephemeris-table.js +2 -204
- package/dist/cdn/components/fixed-stars.js +2 -204
- package/dist/cdn/components/flying-star-chart.js +2 -204
- package/dist/cdn/components/forecast-digest.js +3 -205
- package/dist/cdn/components/forecast-timeline.js +3 -205
- package/dist/cdn/components/gematria.js +3 -205
- package/dist/cdn/components/gochara-table.js +3 -205
- package/dist/cdn/components/guna-milan.js +3 -205
- package/dist/cdn/components/hd-connection.js +5 -207
- package/dist/cdn/components/hd-penta.js +5 -207
- package/dist/cdn/components/hd-type-card.js +3 -205
- package/dist/cdn/components/hd-variables.js +3 -205
- package/dist/cdn/components/heliacal-table.js +3 -205
- package/dist/cdn/components/hexagram.js +3 -205
- package/dist/cdn/components/hora-table.js +3 -205
- package/dist/cdn/components/horoscope-card.js +3 -205
- package/dist/cdn/components/kp-chart.js +3 -205
- package/dist/cdn/components/kp-finance-card.js +3 -205
- package/dist/cdn/components/kp-planets-table.js +3 -205
- package/dist/cdn/components/kp-ruling-planets.js +3 -205
- package/dist/cdn/components/kua-card.js +3 -205
- package/dist/cdn/components/local-space-compass.js +8 -210
- package/dist/cdn/components/location-search.js +3 -205
- package/dist/cdn/components/luck-pillars.js +3 -205
- package/dist/cdn/components/mayan-day-sign.js +3 -205
- package/dist/cdn/components/moon-phase.js +3 -205
- package/dist/cdn/components/nakshatra-card.js +3 -205
- package/dist/cdn/components/natal-chart.js +6 -208
- package/dist/cdn/components/numerology-card.js +3 -205
- package/dist/cdn/components/panchang-table.js +3 -205
- package/dist/cdn/components/positions-table.js +3 -205
- package/dist/cdn/components/profection-card.js +3 -205
- package/dist/cdn/components/reference-card.js +3 -205
- package/dist/cdn/components/relocation-wheel.js +6 -208
- package/dist/cdn/components/shadbala-table.js +3 -205
- package/dist/cdn/components/synastry-chart.js +7 -209
- package/dist/cdn/components/tarot-card.js +3 -205
- package/dist/cdn/components/tarot-catalog.js +3 -205
- package/dist/cdn/components/tarot-spread.js +3 -205
- package/dist/cdn/components/transit-wheel.js +8 -210
- package/dist/cdn/components/transits-table.js +3 -205
- package/dist/cdn/components/upagraha-table.js +2 -204
- package/dist/cdn/components/vastu-mandala.js +4 -206
- package/dist/cdn/components/vedic-aspects.js +2 -204
- package/dist/cdn/components/vedic-daily.js +3 -205
- package/dist/cdn/components/vedic-kundli.js +10 -212
- package/dist/cdn/components/vedic-planets-table.js +3 -205
- package/dist/cdn/components/western-planets-table.js +2 -204
- package/dist/cdn/components/yoga-list.js +3 -205
- package/dist/cdn/components/zodiac-card.js +2 -204
- package/dist/cdn/locales/de.js +1 -1
- package/dist/cdn/roxy-ui.js +49 -251
- package/dist/components/almanac-day.js +1 -203
- package/dist/components/angel-number-card.js +1 -203
- package/dist/components/angel-number-lookup.js +1 -203
- package/dist/components/arudha-padas.js +1 -203
- package/dist/components/ashtakavarga-grid.js +1 -203
- package/dist/components/aspects-table.js +1 -203
- package/dist/components/astrocartography-map.js +6 -208
- package/dist/components/bazi-chart.js +1 -203
- package/dist/components/bhav-chalit-table.js +1 -203
- package/dist/components/bhava-bala-table.js +1 -203
- package/dist/components/biorhythm-chart.js +1 -203
- package/dist/components/bodygraph.js +3 -205
- package/dist/components/chara-karakas.js +1 -203
- package/dist/components/choghadiya-grid.js +1 -203
- package/dist/components/compatibility-card.js +1 -203
- package/dist/components/compound-number.js +1 -203
- package/dist/components/crystal-card.js +1 -203
- package/dist/components/crystal-grid.js +1 -203
- package/dist/components/dasha-timeline.js +1 -203
- package/dist/components/data.js +1 -203
- package/dist/components/divisional-chart.js +45 -247
- package/dist/components/dosha-card.js +1 -203
- package/dist/components/dosha-constitution.js +1 -203
- package/dist/components/dream-card.js +1 -203
- package/dist/components/dream-search.js +1 -203
- package/dist/components/endpoint-form.js +1 -203
- package/dist/components/ephemeris-table.js +1 -203
- package/dist/components/fixed-stars.js +1 -203
- package/dist/components/flying-star-chart.js +1 -203
- package/dist/components/forecast-digest.js +1 -203
- package/dist/components/forecast-timeline.js +1 -203
- package/dist/components/gematria.js +1 -203
- package/dist/components/gochara-table.js +1 -203
- package/dist/components/guna-milan.js +1 -203
- package/dist/components/hd-connection.js +3 -205
- package/dist/components/hd-penta.js +5 -207
- package/dist/components/hd-type-card.js +1 -203
- package/dist/components/hd-variables.js +1 -203
- package/dist/components/heliacal-table.js +1 -203
- package/dist/components/hexagram.d.ts +1 -1
- package/dist/components/hexagram.js +1 -203
- package/dist/components/hora-table.js +1 -203
- package/dist/components/horoscope-card.js +1 -203
- package/dist/components/kp-chart.js +1 -203
- package/dist/components/kp-finance-card.js +1 -203
- package/dist/components/kp-planets-table.js +1 -203
- package/dist/components/kp-ruling-planets.js +1 -203
- package/dist/components/kua-card.js +1 -203
- package/dist/components/local-space-compass.js +4 -206
- package/dist/components/location-search.js +1 -203
- package/dist/components/luck-pillars.js +1 -203
- package/dist/components/mayan-day-sign.js +1 -203
- package/dist/components/moon-phase.js +1 -203
- package/dist/components/nakshatra-card.js +1 -203
- package/dist/components/natal-chart.d.ts +1 -1
- package/dist/components/natal-chart.js +5 -207
- package/dist/components/numerology-card.js +1 -203
- package/dist/components/panchang-table.js +1 -203
- package/dist/components/positions-table.js +1 -203
- package/dist/components/profection-card.js +1 -203
- package/dist/components/reference-card.js +1 -203
- package/dist/components/relocation-wheel.js +3 -205
- package/dist/components/shadbala-table.js +1 -203
- package/dist/components/synastry-chart.js +6 -208
- package/dist/components/tarot-card.js +1 -203
- package/dist/components/tarot-catalog.js +1 -203
- package/dist/components/tarot-spread.js +1 -203
- package/dist/components/transit-wheel.js +8 -210
- package/dist/components/transits-table.js +1 -203
- package/dist/components/upagraha-table.js +1 -203
- package/dist/components/vastu-mandala.js +6 -208
- package/dist/components/vedic-aspects.js +1 -203
- package/dist/components/vedic-daily.js +1 -203
- package/dist/components/vedic-kundli.js +15 -217
- package/dist/components/vedic-planets-table.js +1 -203
- package/dist/components/western-planets-table.js +1 -203
- package/dist/components/yoga-list.js +1 -203
- package/dist/components/zodiac-card.js +1 -203
- package/dist/forms.json +1 -1
- package/dist/index.cjs +49 -251
- package/dist/index.js +50 -252
- package/dist/locales/de.js +1 -1
- package/dist/schemas/post--astrology-lilith.json +1 -1
- package/dist/schemas/post--astrology-progressions.json +1 -1
- package/dist/schemas/post--kabbalah-birth-profile.json +1 -1
- package/dist/schemas/post--numerology-chart.json +1 -1
- package/dist/schemas/post--vedic-astrology-daily.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-current.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-major.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha-antardasha-pratyantardasha-sookshma.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha-antardasha-pratyantardasha.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha-antardasha.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-chart.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-cusps.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-daily-finance.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-horary.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-planets.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-ruling-planets-interval.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-ruling-planets.json +1 -1
- package/dist/schemas/post--vedic-astrology-transit.json +1 -1
- package/dist/styles/palettes.d.ts +4 -0
- package/dist/styles/themes/celeste.css +1 -115
- package/dist/styles/themes/eucalyptus.css +1 -121
- package/dist/styles/themes/kiln.css +1 -121
- package/dist/styles/themes/moonlit.css +1 -121
- package/dist/styles/themes/practitioner.css +1 -170
- package/dist/styles/tokens-css.d.ts +1 -1
- package/dist/styles/tokens.css +1 -202
- package/dist/types/types.gen.d.ts +48 -36
- package/dist/utils/string.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,208 +1,6 @@
|
|
|
1
|
-
var RoxyUI_vedic_kundli=(()=>{var W=Object.defineProperty;var It=Object.getOwnPropertyDescriptor;var We=Object.getOwnPropertyNames;var Ze=Object.prototype.hasOwnProperty;var Je=(n,t)=>{for(var e in t)W(n,e,{get:t[e],enumerable:!0})},Xe=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of We(t))!Ze.call(n,o)&&o!==e&&W(n,o,{get:()=>t[o],enumerable:!(r=It(t,o))||r.enumerable});return n};var Qe=n=>Xe(W({},"__esModule",{value:!0}),n),m=(n,t,e,r)=>{for(var o=r>1?void 0:r?It(t,e):t,i=n.length-1,s;i>=0;i--)(s=n[i])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&W(t,e,o),o};var Qr={};Je(Qr,{ROXY_UI_TOKENS_STYLE_ID:()=>rt,RoxyVedicKundli:()=>R,injectRoxyTokens:()=>nt});var Z=globalThis,J=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yt=Symbol(),
|
|
1
|
+
var RoxyUI_vedic_kundli=(()=>{var W=Object.defineProperty;var It=Object.getOwnPropertyDescriptor;var We=Object.getOwnPropertyNames;var Ze=Object.prototype.hasOwnProperty;var Je=(n,t)=>{for(var e in t)W(n,e,{get:t[e],enumerable:!0})},Xe=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of We(t))!Ze.call(n,o)&&o!==e&&W(n,o,{get:()=>t[o],enumerable:!(r=It(t,o))||r.enumerable});return n};var Qe=n=>Xe(W({},"__esModule",{value:!0}),n),m=(n,t,e,r)=>{for(var o=r>1?void 0:r?It(t,e):t,i=n.length-1,s;i>=0;i--)(s=n[i])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&W(t,e,o),o};var Qr={};Je(Qr,{ROXY_UI_TOKENS_STYLE_ID:()=>rt,RoxyVedicKundli:()=>R,injectRoxyTokens:()=>nt});var Z=globalThis,J=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yt=Symbol(),Gt=new WeakMap,H=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==yt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(J&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Gt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Gt.set(e,t))}return t}toString(){return this.cssText}},Dt=n=>new H(typeof n=="string"?n:n+"",void 0,yt),w=(n,...t)=>{let e=n.length===1?n[0]:t.reduce((r,o,i)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[i+1],n[0]);return new H(e,n,yt)},Ht=(n,t)=>{if(J)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=Z.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,n.appendChild(r)}},gt=J?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Dt(e)})(n):n;var{is:tr,defineProperty:er,getOwnPropertyDescriptor:rr,getOwnPropertyNames:nr,getOwnPropertySymbols:or,getPrototypeOf:ir}=Object,X=globalThis,zt=X.trustedTypes,sr=zt?zt.emptyScript:"",ar=X.reactiveElementPolyfillSupport,z=(n,t)=>n,j={toAttribute(n,t){switch(t){case Boolean:n=n?sr:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},Q=(n,t)=>!tr(n,t),jt={attribute:!0,type:String,converter:j,reflect:!1,useDefault:!1,hasChanged:Q};Symbol.metadata??=Symbol("metadata"),X.litPropertyMetadata??=new WeakMap;var A=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=jt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&er(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){let{get:o,set:i}=rr(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:o,set(s){let d=o?.call(this);i?.call(this,s),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??jt}static _$Ei(){if(this.hasOwnProperty(z("elementProperties")))return;let t=ir(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(z("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(z("properties"))){let e=this.properties,r=[...nr(e),...or(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(gt(o))}else t!==void 0&&e.push(gt(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ht(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let i=(r.converter?.toAttribute!==void 0?r.converter:j).toAttribute(e,r.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=r.getPropertyOptions(o),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:j;this._$Em=o;let d=s.fromAttribute(e,i.type);this[o]=d??this._$Ej?.get(o)??d,this._$Em=null}}requestUpdate(t,e,r,o=!1,i){if(t!==void 0){let s=this.constructor;if(o===!1&&(i=this[t]),r??=s.getPropertyOptions(t),!((r.hasChanged??Q)(i,e)||r.useDefault&&r.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:o,wrapped:i},s){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),i!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,i]of r){let{wrapped:s}=i,d=this[o];s!==!0||this._$AL.has(o)||d===void 0||this.C(o,void 0,i,d)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[z("elementProperties")]=new Map,A[z("finalized")]=new Map,ar?.({ReactiveElement:A}),(X.reactiveElementVersions??=[]).push("2.1.2");var St=globalThis,Kt=n=>n,tt=St.trustedTypes,qt=tt?tt.createPolicy("lit-html",{createHTML:n=>n}):void 0,Jt="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,Xt="?"+_,dr=`<${Xt}>`,M=document,q=()=>M.createComment(""),B=n=>n===null||typeof n!="object"&&typeof n!="function",Tt=Array.isArray,lr=n=>Tt(n)||typeof n?.[Symbol.iterator]=="function",ft=`[
|
|
2
2
|
\f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,Vt=/>/g,O=RegExp(`>|${ft}(?:([^\\s"'>=/]+)(${ft}*=${ft}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Yt=/'/g,Wt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,Tt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),p=Tt(1),x=Tt(2),sn=Tt(3),F=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),Zt=new WeakMap,L=M.createTreeWalker(M,129);function te(n,t){if(!kt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return qt!==void 0?qt.createHTML(t):t}var cr=(n,t)=>{let e=n.length-1,r=[],o,i=t===2?"<svg>":t===3?"<math>":"",s=K;for(let d=0;d<e;d++){let a=n[d],h,u,c=-1,f=0;for(;f<a.length&&(s.lastIndex=f,u=s.exec(a),u!==null);)f=s.lastIndex,s===K?u[1]==="!--"?s=Bt:u[1]!==void 0?s=Vt:u[2]!==void 0?(Qt.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=O):u[3]!==void 0&&(s=O):s===O?u[0]===">"?(s=o??K,c=-1):u[1]===void 0?c=-2:(c=s.lastIndex-u[2].length,h=u[1],s=u[3]===void 0?O:u[3]==='"'?Wt:Yt):s===Wt||s===Yt?s=O:s===Bt||s===Vt?s=K:(s=O,o=void 0);let w=s===O&&n[d+1].startsWith("/>")?" ":"";i+=s===K?a+dr:c>=0?(r.push(h),a.slice(0,c)+Jt+a.slice(c)+_+w):a+_+(c===-2?d:w)}return[te(n,i+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},V=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let i=0,s=0,d=t.length-1,a=this.parts,[h,u]=cr(t,e);if(this.el=n.createElement(h,r),L.currentNode=this.el.content,e===2||e===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=L.nextNode())!==null&&a.length<d;){if(o.nodeType===1){if(o.hasAttributes())for(let c of o.getAttributeNames())if(c.endsWith(Jt)){let f=u[s++],w=o.getAttribute(c).split(_),E=/([.?@])?(.*)/.exec(f);a.push({type:1,index:i,name:E[2],strings:w,ctor:E[1]==="."?bt:E[1]==="?"?vt:E[1]==="@"?wt:D}),o.removeAttribute(c)}else c.startsWith(_)&&(a.push({type:6,index:i}),o.removeAttribute(c));if(Qt.test(o.tagName)){let c=o.textContent.split(_),f=c.length-1;if(f>0){o.textContent=tt?tt.emptyScript:"";for(let w=0;w<f;w++)o.append(c[w],q()),L.nextNode(),a.push({type:2,index:++i});o.append(c[f],q())}}}else if(o.nodeType===8)if(o.data===Xt)a.push({type:2,index:i});else{let c=-1;for(;(c=o.data.indexOf(_,c+1))!==-1;)a.push({type:7,index:i}),c+=_.length-1}i++}}static createElement(t,e){let r=M.createElement("template");return r.innerHTML=t,r}};function I(n,t,e=n,r){if(t===F)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,i=B(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(n),o._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=I(n,o._$AS(n,t.values),o,r)),t}var xt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??M).importNode(e,!0);L.currentNode=o;let i=L.nextNode(),s=0,d=0,a=r[0];for(;a!==void 0;){if(s===a.index){let h;a.type===2?h=new Y(i,i.nextSibling,this,t):a.type===1?h=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(h=new $t(i,this,t)),this._$AV.push(h),a=r[++d]}s!==a?.index&&(i=L.nextNode(),s++)}return L.currentNode=M,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},Y=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=I(this,t,e),B(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==F&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):lr(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==l&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=V.createElement(te(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new xt(o,this),s=i.u(this.options);i.p(e),this.T(s),this._$AH=i}}_$AC(t){let e=Zt.get(t.strings);return e===void 0&&Zt.set(t.strings,e=new V(t)),e}k(t){kt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let i of t)o===e.length?e.push(r=new n(this.O(q()),this.O(q()),this,this.options)):r=e[o],r._$AI(i),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=Kt(t).nextSibling;Kt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},D=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,i){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(t,e=this,r,o){let i=this.strings,s=!1;if(i===void 0)t=I(this,t,e,0),s=!B(t)||t!==this._$AH&&t!==F,s&&(this._$AH=t);else{let d=t,a,h;for(t=i[0],a=0;a<i.length-1;a++)h=I(this,d[r+a],e,a),h===F&&(h=this._$AH[a]),s||=!B(h)||h!==this._$AH[a],h===l?t=l:t!==l&&(t+=(h??"")+i[a+1]),this._$AH[a]=h}s&&!o&&this.j(t)}j(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},bt=class extends D{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===l?void 0:t}},vt=class extends D{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}},wt=class extends D{constructor(t,e,r,o,i){super(t,e,r,o,i),this.type=5}_$AI(t,e=this){if((t=I(this,t,e,0)??l)===F)return;let r=this._$AH,o=t===l&&r!==l||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==l&&(r===l||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},$t=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}};var hr=St.litHtmlPolyfillSupport;hr?.(V,Y),(St.litHtmlVersions??=[]).push("3.3.3");var ee=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let i=e?.renderBefore??null;r._$litPart$=o=new Y(t.insertBefore(q(),i),i,void 0,e??{})}return o._$AI(n),o};var Et=globalThis,P=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ee(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return F}};P._$litElement$=!0,P.finalized=!0,Et.litElementHydrateSupport?.({LitElement:P});var pr=Et.litElementPolyfillSupport;pr?.({LitElement:P});(Et.litElementVersions??=[]).push("4.2.2");var ur={attribute:!0,type:String,converter:j,reflect:!1,hasChanged:Q},mr=(n=ur,t,e)=>{let{kind:r,metadata:o}=e,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),i.set(e.name,n),r==="accessor"){let{name:s}=e;return{set(d){let a=t.get.call(this);t.set.call(this,d),this.requestUpdate(s,a,n,!0,d)},init(d){return d!==void 0&&this.C(s,void 0,n,d),d}}}if(r==="setter"){let{name:s}=e;return function(d){let a=this[s];t.call(this,d),this.requestUpdate(s,a,n,!0,d)}}throw Error("Unsupported decorator location: "+r)};function b(n){return(t,e)=>typeof e=="object"?mr(n,t,e):((r,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,r),s?Object.getOwnPropertyDescriptor(o,i):void 0})(n,t,e)}function k(n){return b({...n,state:!0,attribute:!1})}var re=[{endpoint:"vedic-astrology/birth-chart",method:"POST"}];var N=n=>n??l;var ne=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function At(n){if(n.lang)return n.lang;if(typeof document>"u")return;let t=n.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var yr={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Rt(n){let t=n.toLowerCase();return ne.find(e=>e.toLowerCase()===t)}function oe(n){let t=At(n);if(!t)return;let e=Rt(t);if(e)return e;let r=t.toLowerCase().split("-"),o=r[0];if(o==="zh"){let i=r.find(s=>s==="hans"||s==="hant")??yr[r[1]??""];return i?Rt(`zh-${i}`):void 0}return Rt(o)}var ie=`/**
|
|
4
|
-
* Roxy UI design tokens: every colour, size, space, radius, font and duration a component reads.
|
|
5
|
-
*
|
|
6
|
-
* Two tiers. BASES are the few values a host tunes: fonts, base text size and its scale ratio, the
|
|
7
|
-
* space unit, the base radius, motion, and the colour bases (bg, fg, accent and the four status
|
|
8
|
-
* colours). Every other token DERIVES from them with calc() or color-mix(), so dark mode reassigns
|
|
9
|
-
* the colour bases only and one font token restyles every heading. A host may still set any
|
|
10
|
-
* derived token directly, and its value wins.
|
|
11
|
-
*
|
|
12
|
-
* Delivery: a global light-DOM stylesheet (linked, or injected by the CDN bundle). Custom properties
|
|
13
|
-
* inherit through the shadow boundary, so a token set on any light-DOM ancestor reaches every
|
|
14
|
-
* component. The :host selectors apply only if this sheet is adopted into a shadow root.
|
|
15
|
-
*
|
|
16
|
-
* Light is the default. Dark applies under prefers-color-scheme: dark, or [data-theme="dark"] or
|
|
17
|
-
* .dark on the element or any ancestor; [data-theme="light"] or .light opts back into light. An
|
|
18
|
-
* explicit choice wins over the OS because those blocks come later in source order.
|
|
19
|
-
*
|
|
20
|
-
* A derivation is computed where it is declared, so the derived block also matches every theme
|
|
21
|
-
* trigger: a base reassigned on :root or on an element carrying data-theme, .light or .dark
|
|
22
|
-
* re-derives everything below it.
|
|
23
|
-
*
|
|
24
|
-
* Font: --roxy-font-sans is unset by default, so every component inherits the host page font; any
|
|
25
|
-
* value set by the host or a preset replaces it, and --roxy-font-display follows it until set.
|
|
26
|
-
*
|
|
27
|
-
* Motion: --roxy-motion-duration defaults to 200ms and prefers-reduced-motion forces 0ms.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* Two mechanisms keep the host page in charge of every token, and both are load bearing.
|
|
32
|
-
*
|
|
33
|
-
* Every rule sits in the roxy.tokens cascade layer, and an unlayered declaration beats a layered
|
|
34
|
-
* one at ANY specificity, so a plain \`:root { --roxy-accent: #8b5cf6 }\` on the host page wins, and
|
|
35
|
-
* so does the same line inside a layer of its own, because this statement registers ours first
|
|
36
|
-
* and the CDN bundle injects this sheet at the top of <head>. A host that links this file after its
|
|
37
|
-
* own CSS orders the layers itself: \`@layer roxy, base, components, utilities;\` before either sheet.
|
|
38
|
-
*
|
|
39
|
-
* Every selector is ALSO wrapped in :where(), which has ZERO specificity, so a host declaration
|
|
40
|
-
* still wins wherever a layer cannot decide it, under every dark signal alike.
|
|
41
|
-
*
|
|
42
|
-
* The theme presets in styles/themes/*.css write into roxy.theme; both files declare this order,
|
|
43
|
-
* so either one loading alone still ranks a preset above these defaults.
|
|
44
|
-
*/
|
|
45
|
-
@layer roxy.tokens, roxy.theme;
|
|
46
|
-
|
|
47
|
-
@layer roxy.tokens {
|
|
48
|
-
/* Bases, light. Also the mode-specific derivations: accent ink and status inks mix toward black. */
|
|
49
|
-
:where(:root, :host) {
|
|
50
|
-
/* A real inherited property: native controls, popups and scrollbars follow it. */
|
|
51
|
-
color-scheme: light;
|
|
52
|
-
|
|
53
|
-
--roxy-bg: #ffffff;
|
|
54
|
-
--roxy-fg: #0a0a0a;
|
|
55
|
-
--roxy-accent: #4a6297;
|
|
56
|
-
--roxy-success: #16a34a;
|
|
57
|
-
--roxy-warning: #ea580c;
|
|
58
|
-
--roxy-danger: #dc2626;
|
|
59
|
-
--roxy-info: #0284c7;
|
|
60
|
-
|
|
61
|
-
/* Accent and status inks: 70 percent toward black reads at AA on the card and on a tint of the base. */
|
|
62
|
-
--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);
|
|
63
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);
|
|
64
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);
|
|
65
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);
|
|
66
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);
|
|
67
|
-
|
|
68
|
-
/* Unset on purpose: a component inherits the host page font until a host or preset sets one. */
|
|
69
|
-
--roxy-font-sans: initial;
|
|
70
|
-
--roxy-font-mono:
|
|
71
|
-
ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas,
|
|
72
|
-
"Liberation Mono", monospace;
|
|
73
|
-
|
|
74
|
-
--roxy-text-base: 1rem;
|
|
75
|
-
--roxy-text-scale: 1.15;
|
|
76
|
-
--roxy-weight-normal: 400;
|
|
77
|
-
--roxy-weight-bold: 600;
|
|
78
|
-
--roxy-leading-tight: 1.25;
|
|
79
|
-
--roxy-leading-normal: 1.5;
|
|
80
|
-
--roxy-tracking-tight: -0.01em;
|
|
81
|
-
--roxy-tracking-normal: 0em;
|
|
82
|
-
|
|
83
|
-
--roxy-space-unit: 0.25rem;
|
|
84
|
-
--roxy-radius: 6px;
|
|
85
|
-
|
|
86
|
-
--roxy-motion-duration: 200ms;
|
|
87
|
-
--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* Derived roles, identical in every mode, restated on every theme trigger so they follow its bases. */
|
|
91
|
-
:where(:root, :host, [data-theme], .light, .dark) {
|
|
92
|
-
/* Flat: the card is the page colour, separated by a hairline. */
|
|
93
|
-
--roxy-surface: var(--roxy-bg);
|
|
94
|
-
--roxy-primary: var(--roxy-fg);
|
|
95
|
-
--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));
|
|
96
|
-
--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));
|
|
97
|
-
--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));
|
|
98
|
-
--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);
|
|
99
|
-
--roxy-heat: var(--roxy-danger);
|
|
100
|
-
|
|
101
|
-
--roxy-font-display: var(--roxy-font-sans);
|
|
102
|
-
|
|
103
|
-
--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));
|
|
104
|
-
--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));
|
|
105
|
-
--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));
|
|
106
|
-
--roxy-text-xl: calc(
|
|
107
|
-
var(--roxy-text-lg) *
|
|
108
|
-
var(--roxy-text-scale) *
|
|
109
|
-
var(--roxy-text-scale)
|
|
110
|
-
);
|
|
111
|
-
|
|
112
|
-
--roxy-space-xs: var(--roxy-space-unit);
|
|
113
|
-
--roxy-space-sm: calc(var(--roxy-space-unit) * 2);
|
|
114
|
-
--roxy-space-md: calc(var(--roxy-space-unit) * 4);
|
|
115
|
-
--roxy-space-lg: calc(var(--roxy-space-unit) * 6);
|
|
116
|
-
--roxy-space-xl: calc(var(--roxy-space-unit) * 10);
|
|
117
|
-
--roxy-line-thick: calc(var(--roxy-space-unit) / 2);
|
|
118
|
-
--roxy-touch: calc(var(--roxy-space-unit) * 11);
|
|
119
|
-
|
|
120
|
-
--roxy-radius-sm: calc(var(--roxy-radius) / 2);
|
|
121
|
-
--roxy-radius-md: var(--roxy-radius);
|
|
122
|
-
--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);
|
|
123
|
-
--roxy-radius-full: 9999px;
|
|
124
|
-
|
|
125
|
-
/* Flat surfaces cast nothing; only a floating layer (a popup, an enlarged chart) lifts. */
|
|
126
|
-
--roxy-shadow-sm: none;
|
|
127
|
-
--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);
|
|
128
|
-
--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* Bases, dark, by system preference. Inks mix toward white so they read on a dark card. */
|
|
132
|
-
@media (prefers-color-scheme: dark) {
|
|
133
|
-
:where(:root, :host) {
|
|
134
|
-
color-scheme: dark;
|
|
135
|
-
--roxy-bg: #0a0a0a;
|
|
136
|
-
--roxy-fg: #fafafa;
|
|
137
|
-
--roxy-accent: #92aade;
|
|
138
|
-
--roxy-success: #22c55e;
|
|
139
|
-
--roxy-warning: #fb923c;
|
|
140
|
-
--roxy-danger: #ef4444;
|
|
141
|
-
--roxy-info: #38bdf8;
|
|
142
|
-
|
|
143
|
-
--roxy-accent-ink: var(--roxy-accent);
|
|
144
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);
|
|
145
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);
|
|
146
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);
|
|
147
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/* Explicit light: beats the OS dark block when the host chooses light. */
|
|
152
|
-
:where(
|
|
153
|
-
:root[data-theme="light"],
|
|
154
|
-
[data-theme="light"],
|
|
155
|
-
:root.light,
|
|
156
|
-
.light,
|
|
157
|
-
:host([data-theme="light"])
|
|
158
|
-
) {
|
|
159
|
-
color-scheme: light;
|
|
160
|
-
--roxy-bg: #ffffff;
|
|
161
|
-
--roxy-fg: #0a0a0a;
|
|
162
|
-
--roxy-accent: #4a6297;
|
|
163
|
-
--roxy-success: #16a34a;
|
|
164
|
-
--roxy-warning: #ea580c;
|
|
165
|
-
--roxy-danger: #dc2626;
|
|
166
|
-
--roxy-info: #0284c7;
|
|
167
|
-
|
|
168
|
-
--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);
|
|
169
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);
|
|
170
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);
|
|
171
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);
|
|
172
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/* Explicit dark: a .dark class or data-theme="dark" on any ancestor themes every component below it. */
|
|
176
|
-
:where(
|
|
177
|
-
:root[data-theme="dark"],
|
|
178
|
-
[data-theme="dark"],
|
|
179
|
-
:root.dark,
|
|
180
|
-
.dark,
|
|
181
|
-
:host([data-theme="dark"])
|
|
182
|
-
) {
|
|
183
|
-
color-scheme: dark;
|
|
184
|
-
--roxy-bg: #0a0a0a;
|
|
185
|
-
--roxy-fg: #fafafa;
|
|
186
|
-
--roxy-accent: #92aade;
|
|
187
|
-
--roxy-success: #22c55e;
|
|
188
|
-
--roxy-warning: #fb923c;
|
|
189
|
-
--roxy-danger: #ef4444;
|
|
190
|
-
--roxy-info: #38bdf8;
|
|
191
|
-
|
|
192
|
-
--roxy-accent-ink: var(--roxy-accent);
|
|
193
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);
|
|
194
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);
|
|
195
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);
|
|
196
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
@media (prefers-reduced-motion: reduce) {
|
|
200
|
-
:where(:root, :host) {
|
|
201
|
-
--roxy-motion-duration: 0ms;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
`;var rt="roxy-ui-tokens";function nt(){if(typeof document>"u")return null;let n=document.getElementById(rt);if(n)return n;let t=document.createElement("style");return t.id=rt,t.textContent=ie,document.head.prepend(t),t}function ot(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function Ct(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}function se(n){return n.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var ae="__ROXY_UI_I18N__";function de(){let n=globalThis,t=n[ae];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[ae]=e,e}function gr(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function le(n,t,e){return gr(fr(n,t)??t,e)}function fr(n,t){if(!n)return;let{catalogs:e}=de(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[ot(t)]}function ce(n){let{listeners:t}=de();return t.add(n),()=>{t.delete(n)}}var it=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=ce(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var st=class extends P{constructor(){super();this.translator=(e,r)=>this.t(e,r);new it(this)}connectedCallback(){super.connectedCallback(),nt()}t(e,r){return le(this.effectiveLang(),e,r)}effectiveLang(){return At(this)}};var he=$`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var xr=$`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,at=[xr,he];var br="__cols",vr="__rows";function wr(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function dt(n){if(Array.isArray(n)){let i=!1,s=n.map(d=>{let a=dt(d);return a!==d&&(i=!0),a});return i?s:n}if(!wr(n))return n;let t=n[br],e=n[vr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(i=>{let s={};return t.forEach((d,a)=>{s[d]=dt(i[a])}),s});let r=!1,o={};for(let[i,s]of Object.entries(n)){let d=dt(s);d!==s&&(r=!0),o[i]=d}return r?o:n}function pe(n){return dt(n)}function ue(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var $r="pk_live_YOUR_KEY",me={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function ye(n){if(n)return n===$r?me.sample:n.startsWith("pk_")?void 0:me.secret}function ge(n,t,e={}){e.warn&&console.warn(t.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:!0,composed:!0}))}var fe="https://roxyapi.com/api/v2";async function Sr(n){try{let t=await n.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:!0}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:!1}}var xe={fromAttribute:n=>{if(n!=null){try{let t=JSON.parse(n);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},G=class extends Error{constructor(e,r=null,o=!0){super(e);this.issues=r;this.worded=o}};function be(n){return n.submitUrl?void 0:ye(n.publishableKey)}async function _t(n,t,e){let r=be(n);if(r)throw new G(r.message);let o=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:kr(t,n.submitContext),signal:e}):await Tr(n,t,e);if(!o.ok){let i=await Sr(o);throw new G(i.message,i.issues,i.worded)}return await o.json()}function kr(n,t){return JSON.stringify(t?{...n,context:t}:n)}function Tr(n,t,e){let r=new URL(`${n.baseUrl??fe}${t.path}`,document.baseURI);for(let[i,s]of Object.entries(t.query??{}))s!=null&&r.searchParams.set(i,String(s));let o={Accept:"application/json"};return n.publishableKey&&(o["X-API-Key"]=n.publishableKey),t.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:o,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var lt=class{constructor(t){this.baseUrl=fe;this.worded=!0;this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=!0;let e=be(this);if(e){this.host.error=e.message,ge(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=!0,this.host.error=null,this.host.issues=null;try{let o=await _t(this,t,r.signal);if(r.signal.aborted)return;this.host.data=o}catch(o){if(r.signal.aborted||o?.name==="AbortError")return;o instanceof G&&(this.host.issues=o.issues),this.worded=o instanceof G&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=!1)}}};function ve(n,t,e,r=[]){let o={...e},i=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(h,u)=>{let c=o[u];return delete o[u],encodeURIComponent(String(c??""))}),s=new Set(r),d={},a={};for(let[h,u]of Object.entries(o))u===void 0||u===""||(t==="GET"||s.has(h)?d[h]=u:a[h]=u);return{path:i,method:t,query:d,body:t==="POST"?a:void 0}}function we(){return p`<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 Eo=$`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var _o=$`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function $e(n,t,e){let r=n.filter(o=>!!o.body);return r.length===0?l:p`<section class="block" part="section readings"><h3>${e}</h3>${r.map((o,i)=>p`<details class="interp-card" part="reading" name="${t}" ?open="${i===0}"><summary><span class="interp-lead">${o.label}</span> ${we()} ${o.aside?p`<span class="interp-aside"><small>${o.aside}</small></span>`:l}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??l}</div></details>`)}</section>`}var Er="roxy-data";function Rr(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var ct=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){if(this.host.data!=null)return;let t=this.read();t!==void 0&&(this.host.data=t,this.host.requestUpdate())}read(){let t=this.findInlineScript();return t?this.parse(t.textContent):void 0}findInlineScript(){for(let t of Array.from(this.host.children))if(Rr(t)&&t.classList.contains(Er))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var y=class extends st{constructor(){super();this.data=null;this.endpoint="";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.issues=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.hostLoaded=!1;this.moreLoading=!1;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,o=this.listRows();if(!(!e||!r||!o)){this.moreLoading=!0,this.moreError=null;try{let i=await _t(this.fetcher,{...e,query:{...e.query,offset:o.length}});if(this.lastRequest!==e)return;let s=i[r];this.data={...this.data,...i,[r]:[...o,...Array.isArray(s)?s:[]]}}catch(i){this.lastRequest===e&&(this.moreError=i instanceof Error?i.message:String(i))}finally{this.moreLoading=!1}}};this.onEdit=()=>{this.editing=!0};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(o.values),this.fetchFresh(ve(r.endpoint,r.method,o.values,o.queryKeys??[]))};new ct(this),this.fetcher=new lt(this)}static{this.styles=[at]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=pe(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:ue(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return p`${this.hiddenSectionsStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:!0,composed:!0})),customElements.get("roxy-data")?p`<roxy-data .data="${e}" lang="${N(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hiddenSectionsStyle(){let e=this.hideSections.split(",").map(o=>o.trim().toLowerCase()).filter(o=>/^[a-z][a-z0-9-]*$/.test(o));if(e.length===0)return l;let r=e.map(o=>`[part~="${o}"],roxy-endpoint-form::part(${o}){display:none!important}`).join("");return p`<style>${r}</style>`}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?p`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,o){return this.hideReadings?l:$e(e,r,this.t(o??"Reading"))}renderResult(e){let r=p`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?p`${r}${this.renderAttribution()}`:r}renderWithForm(e){return p`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?l:this.renderErrorBanner(this.error):this.data==null?l:this.showAttribution()?p`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?l:e.length>=r?l:p`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?p`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:l}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=!0,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:!0,composed:!0})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let o=this.effectiveLang();o&&r.setAttribute("lang",o),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:oe(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return p`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(l):this.renderEmpty()}renderForm(){let e=this.selfFetch();return p`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${N(this.specUrl)}" publishable-key="${N(this.publishableKey)}" location-url="${N(this.locationUrl)}" submit-label="${N(this.submitLabel)}" lang="${N(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return p`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return p`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return r?p`${o}${this.renderForm()}`:o}renderErrorBanner(e){return p`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};m([b({attribute:!1})],y.prototype,"data",2),m([b({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),m([b({type:String})],y.prototype,"method",2),m([b({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),m([b({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),m([b({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),m([b({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),m([b({attribute:"submit-context",converter:xe})],y.prototype,"submitContext",2),m([b({type:String,attribute:"location-url"})],y.prototype,"locationUrl",2),m([b({type:Boolean})],y.prototype,"remember",2),m([b({type:Boolean,attribute:"hide-readings",reflect:!0})],y.prototype,"hideReadings",2),m([b({type:String,attribute:"hide-sections",reflect:!0})],y.prototype,"hideSections",2),m([b({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),m([b({type:String,attribute:"error-message"})],y.prototype,"errorMessage",2),m([b({type:String})],y.prototype,"attribution",2),m([k()],y.prototype,"loading",2),m([k()],y.prototype,"error",2),m([k()],y.prototype,"issues",2),m([k()],y.prototype,"selfFetched",2),m([k()],y.prototype,"editing",2),m([k()],y.prototype,"sticky",2),m([k()],y.prototype,"openedRow",2),m([k()],y.prototype,"openedRowId",2),m([k()],y.prototype,"moreLoading",2),m([k()],y.prototype,"moreError",2);var ht=class{constructor(t){this.host=t;this.state="closed";this.zoom=1;this.pressedBy="";this.press=t=>{this.pressedBy=t.pointerType};this.openOnMouse=t=>{let e=this.pressedBy==="mouse";this.pressedBy="",e&&(t.target?.closest?.("a, button, summary, input, select, textarea")||getSelection()?.toString()||this.open())};t.addController(this)}hostUpdated(){let t=this.host.renderRoot.querySelector(".roxy-chart-dialog");if(!t)this.reset();else if(t.isConnected&&this.state!=="closed"){this.state==="opening"&&(this.state="open",t.open||t.showModal());let e=t.querySelector(".roxy-chart-scroll");t.open&&e&&this.position&&(e.scrollLeft=e.scrollWidth*this.position.x-e.clientWidth/2,e.scrollTop=e.scrollHeight*this.position.y-e.clientHeight/2,this.position=void 0)}}hostDisconnected(){this.reset(),this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}open(){this.state="opening",this.position={x:.5,y:0},this.host.requestUpdate()}reset(){this.state="closed",this.zoom=1,this.position=void 0}resize(t){let e=this.host.renderRoot.querySelector(".roxy-chart-scroll");this.position=t===0?{x:.5,y:0}:e?{x:(e.scrollLeft+e.clientWidth/2)/e.scrollWidth,y:(e.scrollTop+e.clientHeight/2)/e.scrollHeight}:void 0,this.zoom=t===0?1:Math.min(3,Math.max(1,this.zoom+t)),this.host.requestUpdate()}renderChartViewport(t,e,r){return p`<div class="roxy-chart-view"><div class="roxy-chart-hit" @pointerdown="${this.press}" @click="${this.openOnMouse}">${t}</div><div class="roxy-chart-tools" part="chart-controls"><button type="button" @click="${()=>this.open()}">${r("Enlarge chart")}</button></div><dialog class="roxy-chart-dialog" part="chart-dialog" aria-label="${e}" @close="${()=>{this.reset(),this.host.requestUpdate()}}">${this.state!=="closed"?p`<div class="roxy-chart-bar"><strong>${e}</strong><div class="roxy-chart-tools"><button type="button" aria-label="${r("Zoom out")}" ?disabled="${this.zoom===1}" @click="${()=>this.resize(-.5)}">−</button> <button type="button" @click="${()=>this.resize(0)}">${r("Reset zoom")}</button> <button type="button" aria-label="${r("Zoom in")}" ?disabled="${this.zoom===3}" @click="${()=>this.resize(.5)}">+</button> <button type="button" @click="${()=>this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}">${r("Close")}</button></div></div><div class="roxy-chart-scroll" role="region" tabindex="0" aria-label="${e}"><div class="roxy-chart-expanded" style="${`--chart-zoom:${this.zoom}`}">${t}</div></div>`:l}</dialog></div>`}},Se=$`.roxy-chart-view{min-width:0}@media (hover:hover) and (pointer:fine){.roxy-chart-hit{cursor:zoom-in}}.roxy-chart-tools{gap:var(--roxy-space-sm);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}.roxy-chart-tools button{font-size:var(--roxy-text-sm);color:var(--roxy-secondary);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);min-width:2lh;min-height:2lh;padding:var(--roxy-space-xs) var(--roxy-space-sm);cursor:pointer;background:0 0}.roxy-chart-tools button:hover:not(:disabled){border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-chart-tools button:disabled{color:var(--roxy-muted);cursor:default}.roxy-chart-dialog{--roxy-surface:var(--roxy-bg);width:calc(100% - 2 * var(--roxy-space-md));max-width:calc(var(--roxy-chart-expanded-width,60rem) * 1.2);max-height:calc(100% - 2 * var(--roxy-space-md));padding:var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);color:var(--roxy-fg);background:var(--roxy-bg);box-shadow:var(--roxy-shadow-lg);margin:auto}.roxy-chart-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.roxy-chart-dialog::backdrop{background:color-mix(in oklab, var(--roxy-bg) 85%, transparent)}.roxy-chart-bar{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);margin-bottom:var(--roxy-space-md);flex-wrap:wrap;flex-shrink:0;display:flex}.roxy-chart-bar>strong{overflow-wrap:anywhere;min-width:0}.roxy-chart-scroll{overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}.roxy-chart-expanded{width:max(100%, calc(var(--roxy-chart-expanded-width,60rem) * var(--chart-zoom)));padding:var(--roxy-space-sm)}.roxy-chart-expanded>svg{width:100%;max-width:none;height:auto;margin:0}`;var ke=n=>t=>{customElements.get(n)||customElements.define(n,t)};var Te=new Map;function Ar(n){if(!n)return["en"];let t=Te.get(n);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return Te.set(n,e),[e,"en"]}function Pt(n,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(Ar(n),{maximumFractionDigits:e})}var Cr={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function Ee(n,t,e){let r=typeof t=="string"?Cr[t]??se(t):"",o=typeof e=="number"?`${Pt(n,e,2)}°`:"";return r&&o?`${r} (${o})`:r||o}var Re=$`.roxy-frame{color:var(--roxy-muted);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-normal);margin:0}.roxy-frame .roxy-frame-deg{font-variant-numeric:tabular-nums}`;function Ae(n,t,e){if(!t?.ayanamsa)return l;let r=Ee(n,t.ayanamsa);if(!r)return l;let o=typeof t.ayanamsaDegrees=="number"?Pt(n,t.ayanamsaDegrees,4):void 0;return p`<p class="roxy-frame">${o===void 0?e("Sidereal frame: {{frame}}",{frame:r}):e("Sidereal frame: {{frame}}, {{degrees}}° subtracted",{frame:r,degrees:o})}</p>`}var Ce=(n,t)=>t?n[ot(t)]:void 0;var _r={sun:"Su",moon:"Mo",mercury:"Me",venus:"Ve",mars:"Ma",jupiter:"Ju",saturn:"Sa",uranus:"Ur",neptune:"Ne",pluto:"Pl",rahu:"Ra",ketu:"Ke",ascendant:"Asc",lagna:"La"},_e=n=>Ce(_r,n);var Pr={aries:"Ar",taurus:"Ta",gemini:"Ge",cancer:"Cn",leo:"Le",virgo:"Vi",libra:"Li",scorpio:"Sc",sagittarius:"Sg",capricorn:"Cp",aquarius:"Aq",pisces:"Pi"},pt=n=>Ce(Pr,n),C=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"];function Or(n){let t=n%360;return t<0?t+360:t}function Ot(n){let t=Or(n),e=Math.floor(t/30)%12,r=t%30,o=Math.floor(r),i=(r-o)*60,s=Math.floor(i),d=Math.round((i-s)*60);return{sign:C[e]??"Aries",signIndex:e,degree:o,minute:s,second:d}}var Pe=$`.roxy-tablist{gap:var(--roxy-space-xs);box-shadow:inset 0 calc(var(--roxy-line-thick) * -1) 0 var(--roxy-border);scrollbar-width:thin;min-width:0;display:flex;overflow-x:auto}.roxy-tab{padding:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);border:none;border-bottom:var(--roxy-line-thick) solid transparent;cursor:pointer;color:var(--roxy-muted);transition:color var(--roxy-motion-duration) var(--roxy-motion-easing);background:0 0;flex-shrink:0}.roxy-tab[aria-selected=true]{color:var(--roxy-accent-ink);border-bottom-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}.roxy-tab:hover:not([aria-selected=true]){color:var(--roxy-fg)}.roxy-tab:focus-visible{outline-offset:calc(var(--roxy-line-thick) * -1);border-radius:var(--roxy-radius-sm)}`;function Oe(n){let{items:t,active:e,onSelect:r,label:o,idPrefix:i,controls:s=!1}=n;return p`<div class="roxy-tablist" part="tablist" role="tablist" aria-label="${o}" @keydown="${a=>{if(a.key!=="ArrowRight"&&a.key!=="ArrowLeft")return;a.preventDefault();let h=t.findIndex(w=>w.id===e);if(h===-1)return;let u=a.key==="ArrowRight"?1:-1,c=t[(h+u+t.length)%t.length];if(!c)return;r(c.id);let f=a.currentTarget.getRootNode();requestAnimationFrame(()=>{f.querySelector(`#${i}-tab-${c.id}`)?.focus()})}}">${t.map(a=>p`<button type="button" class="roxy-tab" part="tab" role="tab" id="${i}-tab-${a.id}" aria-selected="${e===a.id?"true":"false"}" aria-controls="${s?`${i}-panel-${a.id}`:l}" tabindex="${e===a.id?"0":"-1"}" @click="${()=>r(a.id)}">${a.label}</button>`)}</div>${s?t.filter(a=>a.id!==e).map(a=>p`<div role="tabpanel" id="${i}-panel-${a.id}" aria-labelledby="${i}-tab-${a.id}" hidden></div>`):l}`}var T=400,g=20,S=T-2*g,v=T/2,Le=Object.fromEntries(C.map(n=>[n.toLowerCase(),n])),Lr=[{id:"north",source:"North"},{id:"south",source:"South"},{id:"east",source:"East"}],Ne="ʳ",Ue="ᶜ",Ie="ʷ";function Lt(n){return C.indexOf(n)}function Mr(n){let t=_e(n.graha)??n.graha,e=`${n.isRetrograde?Ne:""}${n.combust?Ue:""}${n.war?Ie:""}`;if(typeof n.longitude!="number"||!Number.isFinite(n.longitude)||n.natalReference)return`${t}${e}`;let{degree:r}=Ot(n.longitude);return`${t} ${r}°${e}`}function Fr(n,t,e){let r=[Ct(n.graha)],o=n.natalReference===!0;if(o&&r.push(e("in {{sign}}",{sign:t})),typeof n.longitude=="number"&&Number.isFinite(n.longitude)){let i=Ot(n.longitude),s=String(i.minute).padStart(2,"0");r.push(o?`D1: ${i.degree}°${s}' ${i.sign}`:`${i.degree}°${s}' ${i.sign}`)}if(n.nakshatra?.name){let i=n.nakshatra.pada?` ${e("pada {{n}}",{n:n.nakshatra.pada})}`:"";r.push(`${o?"D1: ":""}${n.nakshatra.name}${i}`)}return n.nakshatra?.lord&&r.push(e("nakshatra lord {{graha}}",{graha:n.nakshatra.lord})),n.awastha&&r.push(n.awastha),n.deeptadi&&r.push(n.deeptadi),n.combust&&r.push(e("combust")),n.war&&r.push(n.war.winner?e("planetary war with {{graha}}, won by {{winner}}",{graha:n.war.opponent,winner:n.war.winner}):e("planetary war with {{graha}}",{graha:n.war.opponent})),n.isRetrograde&&r.push(e("retrograde")),r.join(" · ")}function Mt(n,t,e,r,o,i){let s=r-(n.length-1)*o/2;return n.map((d,a)=>{let h=s+a*o;return x`<text class="planet-text" x=${e} y=${h} text-anchor="middle" dominant-baseline="central">${Mr(d)}<title>${Fr(d,t,i)}</title></text>`})}function De(n,t={}){let{divisionLabel:e,lagnaOverride:r,states:o,natalReference:i}=t,s=new Set((o?.combustion??[]).map(c=>(c.planet??"").toLowerCase())),d=new Map;for(let c of o?.planetaryWar??[])!c.planet1||!c.planet2||(d.set(c.planet1.toLowerCase(),{opponent:c.planet2,winner:c.winner}),d.set(c.planet2.toLowerCase(),{opponent:c.planet1,winner:c.winner}));let a={};for(let c of C)a[c.toLowerCase()]=[];let h=r?Le[r.toLowerCase()]??"":"",u=h;for(let[c,f]of Object.entries(n??{})){let w=(f?.rashi??"").toLowerCase();if(c==="Lagna"||f?.graha==="Lagna"){h||(u=Le[w]??"");continue}if(!w||!(w in a))continue;let E=f.graha??c,mt=E.toLowerCase();a[w]?.push({graha:E,natalReference:i,longitude:f.longitude,nakshatra:f.nakshatra,isRetrograde:f.isRetrograde,awastha:f.awastha,deeptadi:f.deeptadi,combust:s.has(mt)||void 0,war:d.get(mt)})}return{lagnaSign:u,placements:a,divisionLabel:e}}var U=S/4,Nr={Pisces:{col:0,row:0},Aries:{col:1,row:0},Taurus:{col:2,row:0},Gemini:{col:3,row:0},Cancer:{col:3,row:1},Leo:{col:3,row:2},Virgo:{col:3,row:3},Libra:{col:2,row:3},Scorpio:{col:1,row:3},Sagittarius:{col:0,row:3},Capricorn:{col:0,row:2},Aquarius:{col:0,row:1}};function Ur(n){let t=Nr[n]??{col:0,row:0};return{x:g+t.col*U,y:g+t.row*U,w:U,h:U}}function Ir(n){let t=g,e=g+U,r=g+2*U,o=g+3*U,i=T-g;return x`
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Yt=/'/g,Wt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,Et=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),p=Et(1),x=Et(2),sn=Et(3),F=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),Zt=new WeakMap,L=M.createTreeWalker(M,129);function te(n,t){if(!Tt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return qt!==void 0?qt.createHTML(t):t}var cr=(n,t)=>{let e=n.length-1,r=[],o,i=t===2?"<svg>":t===3?"<math>":"",s=K;for(let d=0;d<e;d++){let a=n[d],h,u,c=-1,f=0;for(;f<a.length&&(s.lastIndex=f,u=s.exec(a),u!==null);)f=s.lastIndex,s===K?u[1]==="!--"?s=Bt:u[1]!==void 0?s=Vt:u[2]!==void 0?(Qt.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=O):u[3]!==void 0&&(s=O):s===O?u[0]===">"?(s=o??K,c=-1):u[1]===void 0?c=-2:(c=s.lastIndex-u[2].length,h=u[1],s=u[3]===void 0?O:u[3]==='"'?Wt:Yt):s===Wt||s===Yt?s=O:s===Bt||s===Vt?s=K:(s=O,o=void 0);let $=s===O&&n[d+1].startsWith("/>")?" ":"";i+=s===K?a+dr:c>=0?(r.push(h),a.slice(0,c)+Jt+a.slice(c)+_+$):a+_+(c===-2?d:$)}return[te(n,i+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},V=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let i=0,s=0,d=t.length-1,a=this.parts,[h,u]=cr(t,e);if(this.el=n.createElement(h,r),L.currentNode=this.el.content,e===2||e===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=L.nextNode())!==null&&a.length<d;){if(o.nodeType===1){if(o.hasAttributes())for(let c of o.getAttributeNames())if(c.endsWith(Jt)){let f=u[s++],$=o.getAttribute(c).split(_),k=/([.?@])?(.*)/.exec(f);a.push({type:1,index:i,name:k[2],strings:$,ctor:k[1]==="."?bt:k[1]==="?"?vt:k[1]==="@"?$t:G}),o.removeAttribute(c)}else c.startsWith(_)&&(a.push({type:6,index:i}),o.removeAttribute(c));if(Qt.test(o.tagName)){let c=o.textContent.split(_),f=c.length-1;if(f>0){o.textContent=tt?tt.emptyScript:"";for(let $=0;$<f;$++)o.append(c[$],q()),L.nextNode(),a.push({type:2,index:++i});o.append(c[f],q())}}}else if(o.nodeType===8)if(o.data===Xt)a.push({type:2,index:i});else{let c=-1;for(;(c=o.data.indexOf(_,c+1))!==-1;)a.push({type:7,index:i}),c+=_.length-1}i++}}static createElement(t,e){let r=M.createElement("template");return r.innerHTML=t,r}};function I(n,t,e=n,r){if(t===F)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,i=B(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(n),o._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=I(n,o._$AS(n,t.values),o,r)),t}var xt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??M).importNode(e,!0);L.currentNode=o;let i=L.nextNode(),s=0,d=0,a=r[0];for(;a!==void 0;){if(s===a.index){let h;a.type===2?h=new Y(i,i.nextSibling,this,t):a.type===1?h=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(h=new wt(i,this,t)),this._$AV.push(h),a=r[++d]}s!==a?.index&&(i=L.nextNode(),s++)}return L.currentNode=M,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},Y=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=I(this,t,e),B(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==F&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):lr(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==l&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=V.createElement(te(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new xt(o,this),s=i.u(this.options);i.p(e),this.T(s),this._$AH=i}}_$AC(t){let e=Zt.get(t.strings);return e===void 0&&Zt.set(t.strings,e=new V(t)),e}k(t){Tt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let i of t)o===e.length?e.push(r=new n(this.O(q()),this.O(q()),this,this.options)):r=e[o],r._$AI(i),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=Kt(t).nextSibling;Kt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},G=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,i){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(t,e=this,r,o){let i=this.strings,s=!1;if(i===void 0)t=I(this,t,e,0),s=!B(t)||t!==this._$AH&&t!==F,s&&(this._$AH=t);else{let d=t,a,h;for(t=i[0],a=0;a<i.length-1;a++)h=I(this,d[r+a],e,a),h===F&&(h=this._$AH[a]),s||=!B(h)||h!==this._$AH[a],h===l?t=l:t!==l&&(t+=(h??"")+i[a+1]),this._$AH[a]=h}s&&!o&&this.j(t)}j(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},bt=class extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===l?void 0:t}},vt=class extends G{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}},$t=class extends G{constructor(t,e,r,o,i){super(t,e,r,o,i),this.type=5}_$AI(t,e=this){if((t=I(this,t,e,0)??l)===F)return;let r=this._$AH,o=t===l&&r!==l||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==l&&(r===l||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},wt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}};var hr=St.litHtmlPolyfillSupport;hr?.(V,Y),(St.litHtmlVersions??=[]).push("3.3.3");var ee=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let i=e?.renderBefore??null;r._$litPart$=o=new Y(t.insertBefore(q(),i),i,void 0,e??{})}return o._$AI(n),o};var kt=globalThis,P=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ee(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return F}};P._$litElement$=!0,P.finalized=!0,kt.litElementHydrateSupport?.({LitElement:P});var pr=kt.litElementPolyfillSupport;pr?.({LitElement:P});(kt.litElementVersions??=[]).push("4.2.2");var ur={attribute:!0,type:String,converter:j,reflect:!1,hasChanged:Q},mr=(n=ur,t,e)=>{let{kind:r,metadata:o}=e,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),i.set(e.name,n),r==="accessor"){let{name:s}=e;return{set(d){let a=t.get.call(this);t.set.call(this,d),this.requestUpdate(s,a,n,!0,d)},init(d){return d!==void 0&&this.C(s,void 0,n,d),d}}}if(r==="setter"){let{name:s}=e;return function(d){let a=this[s];t.call(this,d),this.requestUpdate(s,a,n,!0,d)}}throw Error("Unsupported decorator location: "+r)};function b(n){return(t,e)=>typeof e=="object"?mr(n,t,e):((r,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,r),s?Object.getOwnPropertyDescriptor(o,i):void 0})(n,t,e)}function T(n){return b({...n,state:!0,attribute:!1})}var re=[{endpoint:"vedic-astrology/birth-chart",method:"POST"}];var N=n=>n??l;var ne=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function At(n){if(n.lang)return n.lang;if(typeof document>"u")return;let t=n.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var yr={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Rt(n){let t=n.toLowerCase();return ne.find(e=>e.toLowerCase()===t)}function oe(n){let t=At(n);if(!t)return;let e=Rt(t);if(e)return e;let r=t.toLowerCase().split("-"),o=r[0];if(o==="zh"){let i=r.find(s=>s==="hans"||s==="hant")??yr[r[1]??""];return i?Rt(`zh-${i}`):void 0}return Rt(o)}var ie='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black)}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var rt="roxy-ui-tokens";function nt(){if(typeof document>"u")return null;let n=document.getElementById(rt);if(n)return n;let t=document.createElement("style");return t.id=rt,t.textContent=ie,document.head.prepend(t),t}function ot(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function Ct(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}function se(n){return n.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var ae="__ROXY_UI_I18N__";function de(){let n=globalThis,t=n[ae];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[ae]=e,e}function gr(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function le(n,t,e){return gr(fr(n,t)??t,e)}function fr(n,t){if(!n)return;let{catalogs:e}=de(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[ot(t)]}function ce(n){let{listeners:t}=de();return t.add(n),()=>{t.delete(n)}}var it=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=ce(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var st=class extends P{constructor(){super();this.translator=(e,r)=>this.t(e,r);new it(this)}connectedCallback(){super.connectedCallback(),nt()}t(e,r){return le(this.effectiveLang(),e,r)}effectiveLang(){return At(this)}};var he=w`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var xr=w`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,at=[xr,he];var br="__cols",vr="__rows";function $r(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function dt(n){if(Array.isArray(n)){let i=!1,s=n.map(d=>{let a=dt(d);return a!==d&&(i=!0),a});return i?s:n}if(!$r(n))return n;let t=n[br],e=n[vr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(i=>{let s={};return t.forEach((d,a)=>{s[d]=dt(i[a])}),s});let r=!1,o={};for(let[i,s]of Object.entries(n)){let d=dt(s);d!==s&&(r=!0),o[i]=d}return r?o:n}function pe(n){return dt(n)}function ue(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var wr="pk_live_YOUR_KEY",me={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function ye(n){if(n)return n===wr?me.sample:n.startsWith("pk_")?void 0:me.secret}function ge(n,t,e={}){e.warn&&console.warn(t.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:!0,composed:!0}))}var fe="https://roxyapi.com/api/v2";async function Sr(n){try{let t=await n.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:!0}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:!1}}var xe={fromAttribute:n=>{if(n!=null){try{let t=JSON.parse(n);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},D=class extends Error{constructor(e,r=null,o=!0){super(e);this.issues=r;this.worded=o}};function be(n){return n.submitUrl?void 0:ye(n.publishableKey)}async function _t(n,t,e){let r=be(n);if(r)throw new D(r.message);let o=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:Tr(t,n.submitContext),signal:e}):await Er(n,t,e);if(!o.ok){let i=await Sr(o);throw new D(i.message,i.issues,i.worded)}return await o.json()}function Tr(n,t){return JSON.stringify(t?{...n,context:t}:n)}function Er(n,t,e){let r=new URL(`${n.baseUrl??fe}${t.path}`,document.baseURI);for(let[i,s]of Object.entries(t.query??{}))s!=null&&r.searchParams.set(i,String(s));let o={Accept:"application/json"};return n.publishableKey&&(o["X-API-Key"]=n.publishableKey),t.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:o,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var lt=class{constructor(t){this.baseUrl=fe;this.worded=!0;this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=!0;let e=be(this);if(e){this.host.error=e.message,ge(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=!0,this.host.error=null,this.host.issues=null;try{let o=await _t(this,t,r.signal);if(r.signal.aborted)return;this.host.data=o}catch(o){if(r.signal.aborted||o?.name==="AbortError")return;o instanceof D&&(this.host.issues=o.issues),this.worded=o instanceof D&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=!1)}}};function ve(n,t,e,r=[]){let o={...e},i=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(h,u)=>{let c=o[u];return delete o[u],encodeURIComponent(String(c??""))}),s=new Set(r),d={},a={};for(let[h,u]of Object.entries(o))u===void 0||u===""||(t==="GET"||s.has(h)?d[h]=u:a[h]=u);return{path:i,method:t,query:d,body:t==="POST"?a:void 0}}function $e(){return p`<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 ko=w`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var _o=w`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function we(n,t,e){let r=n.filter(o=>!!o.body);return r.length===0?l:p`<section class="block" part="section readings"><h3>${e}</h3>${r.map((o,i)=>p`<details class="interp-card" part="reading" name="${t}" ?open="${i===0}"><summary><span class="interp-lead">${o.label}</span> ${$e()} ${o.aside?p`<span class="interp-aside"><small>${o.aside}</small></span>`:l}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??l}</div></details>`)}</section>`}var kr="roxy-data";function Rr(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var ct=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){if(this.host.data!=null)return;let t=this.read();t!==void 0&&(this.host.data=t,this.host.requestUpdate())}read(){let t=this.findInlineScript();return t?this.parse(t.textContent):void 0}findInlineScript(){for(let t of Array.from(this.host.children))if(Rr(t)&&t.classList.contains(kr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var y=class extends st{constructor(){super();this.data=null;this.endpoint="";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.issues=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.hostLoaded=!1;this.moreLoading=!1;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,o=this.listRows();if(!(!e||!r||!o)){this.moreLoading=!0,this.moreError=null;try{let i=await _t(this.fetcher,{...e,query:{...e.query,offset:o.length}});if(this.lastRequest!==e)return;let s=i[r];this.data={...this.data,...i,[r]:[...o,...Array.isArray(s)?s:[]]}}catch(i){this.lastRequest===e&&(this.moreError=i instanceof Error?i.message:String(i))}finally{this.moreLoading=!1}}};this.onEdit=()=>{this.editing=!0};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(o.values),this.fetchFresh(ve(r.endpoint,r.method,o.values,o.queryKeys??[]))};new ct(this),this.fetcher=new lt(this)}static{this.styles=[at]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=pe(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:ue(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return p`${this.hiddenSectionsStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:!0,composed:!0})),customElements.get("roxy-data")?p`<roxy-data .data="${e}" lang="${N(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hiddenSectionsStyle(){let e=this.hideSections.split(",").map(o=>o.trim().toLowerCase()).filter(o=>/^[a-z][a-z0-9-]*$/.test(o));if(e.length===0)return l;let r=e.map(o=>`[part~="${o}"],roxy-endpoint-form::part(${o}){display:none!important}`).join("");return p`<style>${r}</style>`}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?p`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,o){return this.hideReadings?l:we(e,r,this.t(o??"Reading"))}renderResult(e){let r=p`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?p`${r}${this.renderAttribution()}`:r}renderWithForm(e){return p`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?l:this.renderErrorBanner(this.error):this.data==null?l:this.showAttribution()?p`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?l:e.length>=r?l:p`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?p`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:l}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=!0,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:!0,composed:!0})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let o=this.effectiveLang();o&&r.setAttribute("lang",o),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:oe(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return p`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(l):this.renderEmpty()}renderForm(){let e=this.selfFetch();return p`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${N(this.specUrl)}" publishable-key="${N(this.publishableKey)}" location-url="${N(this.locationUrl)}" submit-label="${N(this.submitLabel)}" lang="${N(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return p`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return p`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return r?p`${o}${this.renderForm()}`:o}renderErrorBanner(e){return p`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};m([b({attribute:!1})],y.prototype,"data",2),m([b({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),m([b({type:String})],y.prototype,"method",2),m([b({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),m([b({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),m([b({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),m([b({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),m([b({attribute:"submit-context",converter:xe})],y.prototype,"submitContext",2),m([b({type:String,attribute:"location-url"})],y.prototype,"locationUrl",2),m([b({type:Boolean})],y.prototype,"remember",2),m([b({type:Boolean,attribute:"hide-readings",reflect:!0})],y.prototype,"hideReadings",2),m([b({type:String,attribute:"hide-sections",reflect:!0})],y.prototype,"hideSections",2),m([b({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),m([b({type:String,attribute:"error-message"})],y.prototype,"errorMessage",2),m([b({type:String})],y.prototype,"attribution",2),m([T()],y.prototype,"loading",2),m([T()],y.prototype,"error",2),m([T()],y.prototype,"issues",2),m([T()],y.prototype,"selfFetched",2),m([T()],y.prototype,"editing",2),m([T()],y.prototype,"sticky",2),m([T()],y.prototype,"openedRow",2),m([T()],y.prototype,"openedRowId",2),m([T()],y.prototype,"moreLoading",2),m([T()],y.prototype,"moreError",2);var ht=class{constructor(t){this.host=t;this.state="closed";this.zoom=1;this.pressedBy="";this.press=t=>{this.pressedBy=t.pointerType};this.openOnMouse=t=>{let e=this.pressedBy==="mouse";this.pressedBy="",e&&(t.target?.closest?.("a, button, summary, input, select, textarea")||getSelection()?.toString()||this.open())};t.addController(this)}hostUpdated(){let t=this.host.renderRoot.querySelector(".roxy-chart-dialog");if(!t)this.reset();else if(t.isConnected&&this.state!=="closed"){this.state==="opening"&&(this.state="open",t.open||t.showModal());let e=t.querySelector(".roxy-chart-scroll");t.open&&e&&this.position&&(e.scrollLeft=e.scrollWidth*this.position.x-e.clientWidth/2,e.scrollTop=e.scrollHeight*this.position.y-e.clientHeight/2,this.position=void 0)}}hostDisconnected(){this.reset(),this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}open(){this.state="opening",this.position={x:.5,y:0},this.host.requestUpdate()}reset(){this.state="closed",this.zoom=1,this.position=void 0}resize(t){let e=this.host.renderRoot.querySelector(".roxy-chart-scroll");this.position=t===0?{x:.5,y:0}:e?{x:(e.scrollLeft+e.clientWidth/2)/e.scrollWidth,y:(e.scrollTop+e.clientHeight/2)/e.scrollHeight}:void 0,this.zoom=t===0?1:Math.min(3,Math.max(1,this.zoom+t)),this.host.requestUpdate()}renderChartViewport(t,e,r){return p`<div class="roxy-chart-view"><div class="roxy-chart-hit" @pointerdown="${this.press}" @click="${this.openOnMouse}">${t}</div><div class="roxy-chart-tools" part="chart-controls"><button type="button" @click="${()=>this.open()}">${r("Enlarge chart")}</button></div><dialog class="roxy-chart-dialog" part="chart-dialog" aria-label="${e}" @close="${()=>{this.reset(),this.host.requestUpdate()}}">${this.state!=="closed"?p`<div class="roxy-chart-bar"><strong>${e}</strong><div class="roxy-chart-tools"><button type="button" aria-label="${r("Zoom out")}" ?disabled="${this.zoom===1}" @click="${()=>this.resize(-.5)}">−</button> <button type="button" @click="${()=>this.resize(0)}">${r("Reset zoom")}</button> <button type="button" aria-label="${r("Zoom in")}" ?disabled="${this.zoom===3}" @click="${()=>this.resize(.5)}">+</button> <button type="button" @click="${()=>this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}">${r("Close")}</button></div></div><div class="roxy-chart-scroll" role="region" tabindex="0" aria-label="${e}"><div class="roxy-chart-expanded" style="${`--chart-zoom:${this.zoom}`}">${t}</div></div>`:l}</dialog></div>`}},Se=w`.roxy-chart-view{min-width:0}@media (hover:hover) and (pointer:fine){.roxy-chart-hit{cursor:zoom-in}}.roxy-chart-tools{gap:var(--roxy-space-sm);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}.roxy-chart-tools button{font-size:var(--roxy-text-sm);color:var(--roxy-secondary);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);min-width:2lh;min-height:2lh;padding:var(--roxy-space-xs) var(--roxy-space-sm);cursor:pointer;background:0 0}.roxy-chart-tools button:hover:not(:disabled){border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-chart-tools button:disabled{color:var(--roxy-muted);cursor:default}.roxy-chart-dialog{--roxy-surface:var(--roxy-bg);width:calc(100% - 2 * var(--roxy-space-md));max-width:calc(var(--roxy-chart-expanded-width,60rem) * 1.2);max-height:calc(100% - 2 * var(--roxy-space-md));padding:var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);color:var(--roxy-fg);background:var(--roxy-bg);box-shadow:var(--roxy-shadow-lg);margin:auto}.roxy-chart-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.roxy-chart-dialog::backdrop{background:color-mix(in oklab, var(--roxy-bg) 85%, transparent)}.roxy-chart-bar{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);margin-bottom:var(--roxy-space-md);flex-wrap:wrap;flex-shrink:0;display:flex}.roxy-chart-bar>strong{overflow-wrap:anywhere;min-width:0}.roxy-chart-scroll{overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}.roxy-chart-expanded{width:max(100%, calc(var(--roxy-chart-expanded-width,60rem) * var(--chart-zoom)));padding:var(--roxy-space-sm)}.roxy-chart-expanded>svg{width:100%;max-width:none;height:auto;margin:0}`;var Te=n=>t=>{customElements.get(n)||customElements.define(n,t)};var Ee=new Map;function Ar(n){if(!n)return["en"];let t=Ee.get(n);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return Ee.set(n,e),[e,"en"]}function Pt(n,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(Ar(n),{maximumFractionDigits:e})}var Cr={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function ke(n,t,e){let r=typeof t=="string"?Cr[t]??se(t):"",o=typeof e=="number"?`${Pt(n,e,2)}°`:"";return r&&o?`${r} (${o})`:r||o}var Re=w`.roxy-frame{color:var(--roxy-muted);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-normal);margin:0}.roxy-frame .roxy-frame-deg{font-variant-numeric:tabular-nums}`;function Ae(n,t,e){if(!t?.ayanamsa)return l;let r=ke(n,t.ayanamsa);if(!r)return l;let o=typeof t.ayanamsaDegrees=="number"?Pt(n,t.ayanamsaDegrees,4):void 0;return p`<p class="roxy-frame">${o===void 0?e("Sidereal frame: {{frame}}",{frame:r}):e("Sidereal frame: {{frame}}, {{degrees}}° subtracted",{frame:r,degrees:o})}</p>`}var Ce=(n,t)=>t?n[ot(t)]:void 0;var _r={sun:"Su",moon:"Mo",mercury:"Me",venus:"Ve",mars:"Ma",jupiter:"Ju",saturn:"Sa",uranus:"Ur",neptune:"Ne",pluto:"Pl",rahu:"Ra",ketu:"Ke",ascendant:"Asc",lagna:"La"},_e=n=>Ce(_r,n);var Pr={aries:"Ar",taurus:"Ta",gemini:"Ge",cancer:"Cn",leo:"Le",virgo:"Vi",libra:"Li",scorpio:"Sc",sagittarius:"Sg",capricorn:"Cp",aquarius:"Aq",pisces:"Pi"},pt=n=>Ce(Pr,n),C=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"];function Or(n){let t=n%360;return t<0?t+360:t}function Ot(n){let t=Or(n),e=Math.floor(t/30)%12,r=t%30,o=Math.floor(r),i=(r-o)*60,s=Math.floor(i),d=Math.round((i-s)*60);return{sign:C[e]??"Aries",signIndex:e,degree:o,minute:s,second:d}}var Pe=w`.roxy-tablist{gap:var(--roxy-space-xs);box-shadow:inset 0 calc(var(--roxy-line-thick) * -1) 0 var(--roxy-border);scrollbar-width:thin;min-width:0;display:flex;overflow-x:auto}.roxy-tab{padding:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);border:none;border-bottom:var(--roxy-line-thick) solid transparent;cursor:pointer;color:var(--roxy-muted);transition:color var(--roxy-motion-duration) var(--roxy-motion-easing);background:0 0;flex-shrink:0}.roxy-tab[aria-selected=true]{color:var(--roxy-accent-ink);border-bottom-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}.roxy-tab:hover:not([aria-selected=true]){color:var(--roxy-fg)}.roxy-tab:focus-visible{outline-offset:calc(var(--roxy-line-thick) * -1);border-radius:var(--roxy-radius-sm)}`;function Oe(n){let{items:t,active:e,onSelect:r,label:o,idPrefix:i,controls:s=!1}=n;return p`<div class="roxy-tablist" part="tablist" role="tablist" aria-label="${o}" @keydown="${a=>{if(a.key!=="ArrowRight"&&a.key!=="ArrowLeft")return;a.preventDefault();let h=t.findIndex($=>$.id===e);if(h===-1)return;let u=a.key==="ArrowRight"?1:-1,c=t[(h+u+t.length)%t.length];if(!c)return;r(c.id);let f=a.currentTarget.getRootNode();requestAnimationFrame(()=>{f.querySelector(`#${i}-tab-${c.id}`)?.focus()})}}">${t.map(a=>p`<button type="button" class="roxy-tab" part="tab" role="tab" id="${i}-tab-${a.id}" aria-selected="${e===a.id?"true":"false"}" aria-controls="${s?`${i}-panel-${a.id}`:l}" tabindex="${e===a.id?"0":"-1"}" @click="${()=>r(a.id)}">${a.label}</button>`)}</div>${s?t.filter(a=>a.id!==e).map(a=>p`<div role="tabpanel" id="${i}-panel-${a.id}" aria-labelledby="${i}-tab-${a.id}" hidden></div>`):l}`}var E=400,g=20,S=E-2*g,v=E/2,Le=Object.fromEntries(C.map(n=>[n.toLowerCase(),n])),Lr=[{id:"north",source:"North"},{id:"south",source:"South"},{id:"east",source:"East"}],Ne="ʳ",Ue="ᶜ",Ie="ʷ";function Lt(n){return C.indexOf(n)}function Mr(n){let t=_e(n.graha)??n.graha,e=`${n.isRetrograde?Ne:""}${n.combust?Ue:""}${n.war?Ie:""}`;if(typeof n.longitude!="number"||!Number.isFinite(n.longitude)||n.natalReference)return`${t}${e}`;let{degree:r}=Ot(n.longitude);return`${t} ${r}°${e}`}function Fr(n,t,e){let r=[Ct(n.graha)],o=n.natalReference===!0;if(o&&r.push(e("in {{sign}}",{sign:t})),typeof n.longitude=="number"&&Number.isFinite(n.longitude)){let i=Ot(n.longitude),s=String(i.minute).padStart(2,"0");r.push(o?`D1: ${i.degree}°${s}' ${i.sign}`:`${i.degree}°${s}' ${i.sign}`)}if(n.nakshatra?.name){let i=n.nakshatra.pada?` ${e("pada {{n}}",{n:n.nakshatra.pada})}`:"";r.push(`${o?"D1: ":""}${n.nakshatra.name}${i}`)}return n.nakshatra?.lord&&r.push(e("nakshatra lord {{graha}}",{graha:n.nakshatra.lord})),n.awastha&&r.push(n.awastha),n.deeptadi&&r.push(n.deeptadi),n.combust&&r.push(e("combust")),n.war&&r.push(n.war.winner?e("planetary war with {{graha}}, won by {{winner}}",{graha:n.war.opponent,winner:n.war.winner}):e("planetary war with {{graha}}",{graha:n.war.opponent})),n.isRetrograde&&r.push(e("retrograde")),r.join(" · ")}function Mt(n,t,e,r,o,i){let s=r-(n.length-1)*o/2;return n.map((d,a)=>{let h=s+a*o;return x`<text class="planet-text" x=${e} y=${h} text-anchor="middle" dominant-baseline="central">${Mr(d)}<title>${Fr(d,t,i)}</title></text>`})}function Ge(n,t={}){let{divisionLabel:e,lagnaOverride:r,states:o,natalReference:i}=t,s=new Set((o?.combustion??[]).map(c=>(c.planet??"").toLowerCase())),d=new Map;for(let c of o?.planetaryWar??[])!c.planet1||!c.planet2||(d.set(c.planet1.toLowerCase(),{opponent:c.planet2,winner:c.winner}),d.set(c.planet2.toLowerCase(),{opponent:c.planet1,winner:c.winner}));let a={};for(let c of C)a[c.toLowerCase()]=[];let h=r?Le[r.toLowerCase()]??"":"",u=h;for(let[c,f]of Object.entries(n??{})){let $=(f?.rashi??"").toLowerCase();if(c==="Lagna"||f?.graha==="Lagna"){h||(u=Le[$]??"");continue}if(!$||!($ in a))continue;let k=f.graha??c,mt=k.toLowerCase();a[$]?.push({graha:k,natalReference:i,longitude:f.longitude,nakshatra:f.nakshatra,isRetrograde:f.isRetrograde,awastha:f.awastha,deeptadi:f.deeptadi,combust:s.has(mt)||void 0,war:d.get(mt)})}return{lagnaSign:u,placements:a,divisionLabel:e}}var U=S/4,Nr={Pisces:{col:0,row:0},Aries:{col:1,row:0},Taurus:{col:2,row:0},Gemini:{col:3,row:0},Cancer:{col:3,row:1},Leo:{col:3,row:2},Virgo:{col:3,row:3},Libra:{col:2,row:3},Scorpio:{col:1,row:3},Sagittarius:{col:0,row:3},Capricorn:{col:0,row:2},Aquarius:{col:0,row:1}};function Ur(n){let t=Nr[n]??{col:0,row:0};return{x:g+t.col*U,y:g+t.row*U,w:U,h:U}}function Ir(n){let t=g,e=g+U,r=g+2*U,o=g+3*U,i=E-g;return x`
|
|
206
4
|
<rect class="line" x=${t} y=${t} width=${S} height=${S} stroke-width="1.5" fill="none" />
|
|
207
5
|
<line class="line" x1=${t} y1=${e} x2=${i} y2=${e} stroke-width="1" />
|
|
208
6
|
<line class="line" x1=${t} y1=${o} x2=${i} y2=${o} stroke-width="1" />
|
|
@@ -213,7 +11,7 @@ var RoxyUI_vedic_kundli=(()=>{var W=Object.defineProperty;var It=Object.getOwnPr
|
|
|
213
11
|
<line class="line" x1=${r} y1=${t} x2=${r} y2=${e} stroke-width="1" />
|
|
214
12
|
<line class="line" x1=${r} y1=${o} x2=${r} y2=${i} stroke-width="1" />
|
|
215
13
|
${n?x`<text class="centre-label" x=${v} y=${v} text-anchor="middle" dominant-baseline="central">${n}</text>`:l}
|
|
216
|
-
`}function Ft(n,t){let e=Lt(t),r=Lt(n);return e===-1||r===-1?0:(r-e+12)%12+1}function
|
|
14
|
+
`}function Ft(n,t){let e=Lt(t),r=Lt(n);return e===-1||r===-1?0:(r-e+12)%12+1}function Gr(n,t,e,r,o){let i=Ur(n),s=i.x+i.w/2,d=i.y+i.h/2,a=pt(n)??n,h=14;return x`
|
|
217
15
|
<g class=${e?"cell lagna":"cell"}>
|
|
218
16
|
${e?x`
|
|
219
17
|
<rect class="lagna-bg" x=${i.x} y=${i.y} width=${i.w} height=${i.h} />
|
|
@@ -226,23 +24,23 @@ var RoxyUI_vedic_kundli=(()=>{var W=Object.defineProperty;var It=Object.getOwnPr
|
|
|
226
24
|
</g>
|
|
227
25
|
`}function Me(n,t){let e=n.lagnaSign.toLowerCase();return x`
|
|
228
26
|
${Ir(n.divisionLabel)}
|
|
229
|
-
${C.map(r=>
|
|
230
|
-
`}var
|
|
27
|
+
${C.map(r=>Gr(r,n.placements[r.toLowerCase()]??[],r.toLowerCase()===e,Ft(r,n.lagnaSign),t))}
|
|
28
|
+
`}var De={tl:{x:g,y:g},tr:{x:E-g,y:g},br:{x:E-g,y:E-g},bl:{x:g,y:E-g},top:{x:v,y:g},right:{x:E-g,y:v},bottom:{x:v,y:E-g},left:{x:g,y:v},tlMid:{x:v-S/4,y:v-S/4},trMid:{x:v+S/4,y:v-S/4},brMid:{x:v+S/4,y:v+S/4},blMid:{x:v-S/4,y:v+S/4}};function He(n){let t=n.reduce((r,o)=>r+o.x,0)/n.length,e=n.reduce((r,o)=>r+o.y,0)/n.length;return{x:t,y:e}}var Dr=Object.fromEntries(Object.entries({1:["top","trMid","centre","tlMid"],2:["tl","top","tlMid"],3:["tl","left","tlMid"],4:["left","tlMid","centre","blMid"],5:["bl","left","blMid"],6:["bl","bottom","blMid"],7:["bottom","blMid","centre","brMid"],8:["br","bottom","brMid"],9:["br","right","brMid"],10:["right","brMid","centre","trMid"],11:["tr","right","trMid"],12:["tr","top","trMid"]}).map(([n,t])=>{let e=t.map(r=>r==="centre"?{x:v,y:v}:De[r]);return[n,{centre:He(e),floor:Math.max(...e.map(r=>r.y))}]})),Fe=12,Hr=16,zr=8;function jr(n){let{tl:t,tr:e,br:r,bl:o,top:i,right:s,bottom:d,left:a}=De;return x`
|
|
231
29
|
<rect class="line" x=${t.x} y=${t.y} width=${S} height=${S} stroke-width="1.5" fill="none" />
|
|
232
30
|
<polygon class="line" points="${i.x},${i.y} ${s.x},${s.y} ${d.x},${d.y} ${a.x},${a.y}" stroke-width="1" fill="none" />
|
|
233
31
|
<line class="line" x1=${t.x} y1=${t.y} x2=${r.x} y2=${r.y} stroke-width="1" />
|
|
234
32
|
<line class="line" x1=${e.x} y1=${e.y} x2=${o.x} y2=${o.y} stroke-width="1" />
|
|
235
33
|
${n?x`<text class="centre-label" x=${v} y=${v} text-anchor="middle" dominant-baseline="central">${n}</text>`:l}
|
|
236
|
-
`}function Kr(n,t,e,r,o,i){let s=
|
|
34
|
+
`}function Kr(n,t,e,r,o,i){let s=Dr[n];if(!s)return x``;let d=s.centre,a=Math.min(14,Math.abs(d.y-v)*.45+6),h=(r.length-1)*Fe,u=Math.max(d.y+8-h/2,d.y-a+Hr),c=Math.max(0,u+h-(s.floor-zr)),f=d.y-a-c,$=u-c+h/2,k=o?`${t} · ${pt(e)??e}`:`${t}`;return x`
|
|
237
35
|
<g class=${o?"cell lagna":"cell"}>
|
|
238
|
-
<text class="rashi-num" x=${d.x} y=${f} text-anchor="middle" dominant-baseline="central">${
|
|
36
|
+
<text class="rashi-num" x=${d.x} y=${f} text-anchor="middle" dominant-baseline="central">${k}</text>
|
|
239
37
|
${o?x`<text class="lagna-marker" x=${d.x} y=${f-12} text-anchor="middle" dominant-baseline="central">${i("ASC")}</text>`:l}
|
|
240
|
-
${r.length?Mt(r,e,d.x
|
|
38
|
+
${r.length?Mt(r,e,d.x,$,Fe,i):l}
|
|
241
39
|
</g>
|
|
242
40
|
`}function qr(n,t){return x`
|
|
243
41
|
${jr(n.divisionLabel)}
|
|
244
42
|
${C.map((e,r)=>{let o=Ft(e,n.lagnaSign);return Kr(o,r+1,e,n.placements[e.toLowerCase()]??[],o===1,t)})}
|
|
245
|
-
`}var ut=S/3;function Br(){let n=g,t=g+ut,e=g+2*ut,r=
|
|
43
|
+
`}var ut=S/3;function Br(){let n=g,t=g+ut,e=g+2*ut,r=E-g,Ve={Aries:[{x:t,y:n},{x:e,y:n},{x:e,y:t},{x:t,y:t}],Taurus:[{x:n,y:n},{x:t,y:n},{x:t,y:t}],Gemini:[{x:n,y:n},{x:t,y:t},{x:n,y:t}],Cancer:[{x:n,y:t},{x:t,y:t},{x:t,y:e},{x:n,y:e}],Leo:[{x:n,y:e},{x:t,y:e},{x:n,y:r}],Virgo:[{x:t,y:e},{x:t,y:r},{x:n,y:r}],Libra:[{x:t,y:e},{x:e,y:e},{x:e,y:r},{x:t,y:r}],Scorpio:[{x:e,y:e},{x:e,y:r},{x:r,y:r}],Sagittarius:[{x:e,y:e},{x:r,y:r},{x:r,y:e}],Capricorn:[{x:e,y:t},{x:r,y:t},{x:r,y:e},{x:e,y:e}],Aquarius:[{x:r,y:n},{x:r,y:t},{x:e,y:t}],Pisces:[{x:e,y:n},{x:r,y:n},{x:e,y:t}]},Nt={};for(let[Ye,Ut]of Object.entries(Ve))Nt[Ye]={points:[...Ut],centroid:He(Ut)};return Nt}var Vr=Br();function Yr(n){let t=g,e=g+ut,r=g+2*ut,o=E-g;return x`
|
|
246
44
|
<rect class="line" x=${t} y=${t} width=${S} height=${S} stroke-width="1.5" fill="none" />
|
|
247
45
|
<line class="line" x1=${t} y1=${e} x2=${e} y2=${e} stroke-width="1" />
|
|
248
46
|
<line class="line" x1=${r} y1=${e} x2=${o} y2=${e} stroke-width="1" />
|
|
@@ -268,7 +66,7 @@ var RoxyUI_vedic_kundli=(()=>{var W=Object.defineProperty;var It=Object.getOwnPr
|
|
|
268
66
|
`}function Zr(n,t){let e=n.lagnaSign.toLowerCase();return x`
|
|
269
67
|
${Yr(n.divisionLabel)}
|
|
270
68
|
${C.map(r=>Wr(r,n.placements[r.toLowerCase()]??[],r.toLowerCase()===e,Ft(r,n.lagnaSign),t))}
|
|
271
|
-
`}function ze(n){return Lt(n.lagnaSign)!==-1}function Jr(n,t){let e=Object.values(n.placements).flat(),r=[];return e.some(o=>o.isRetrograde)&&r.push(`${Ne} ${t("retrograde")}`),e.some(o=>o.combust)&&r.push(`${Ue} ${t("combust")}`),e.some(o=>o.war)&&r.push(`${Ie} ${t("planetary war")}`),r.length===0?l:p`<p class="roxy-frame">${r.join(" · ")}</p>`}function Xr(n){return p`<p class="roxy-frame">${n("No ascendant in this chart, so the houses are not numbered.")}</p>`}function je(n,t){let e=[];ze(n)||e.push(Xr(t));let r=Jr(n,t);return r!==l&&e.push(r),e}function Ke(n,t,e){if(t==="north"&&!ze(n))return Me(n,e);switch(t){case"north":return qr(n,e);case"east":return Zr(n,e);default:return Me(n,e)}}function qe(n,t,e){return Oe({items:Lr.map(({id:r,source:o})=>({id:r,label:e(o)})),active:n,onSelect:t,label:e("Kundli style"),idPrefix:"kundli",controls:!0})}var Be
|
|
69
|
+
`}function ze(n){return Lt(n.lagnaSign)!==-1}function Jr(n,t){let e=Object.values(n.placements).flat(),r=[];return e.some(o=>o.isRetrograde)&&r.push(`${Ne} ${t("retrograde")}`),e.some(o=>o.combust)&&r.push(`${Ue} ${t("combust")}`),e.some(o=>o.war)&&r.push(`${Ie} ${t("planetary war")}`),r.length===0?l:p`<p class="roxy-frame">${r.join(" · ")}</p>`}function Xr(n){return p`<p class="roxy-frame">${n("No ascendant in this chart, so the houses are not numbered.")}</p>`}function je(n,t){let e=[];ze(n)||e.push(Xr(t));let r=Jr(n,t);return r!==l&&e.push(r),e}function Ke(n,t,e){if(t==="north"&&!ze(n))return Me(n,e);switch(t){case"north":return qr(n,e);case"east":return Zr(n,e);default:return Me(n,e)}}function qe(n,t,e){return Oe({items:Lr.map(({id:r,source:o})=>({id:r,label:e(o)})),active:n,onSelect:t,label:e("Kundli style"),idPrefix:"kundli",controls:!0})}var Be=w`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.kundli-reference{min-width:0}.kundli-reference>summary{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);display:flex}.kundli-reference-scroll{min-width:0;margin-top:var(--roxy-space-sm);overflow-x:auto}.kundli-reference-table{width:100%}.kundli-reference-table :is(th,td){white-space:nowrap}.kundli-reference-table small{color:var(--roxy-secondary);display:block}.header{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.title{margin:0}svg:where([part~=chart]){width:100%;max-width:var(--roxy-chart-max-width,35rem);aspect-ratio:1;height:auto;margin:0 auto;display:block}.line{fill:#0000;stroke:var(--roxy-border)}.sign-text{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans);text-transform:uppercase}.rashi-num{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .75);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans)}.house-num{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.planet-text{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.centre-label{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.lagna-marker{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans);text-transform:uppercase}.lagna-bg{fill:color-mix(in srgb, var(--roxy-accent) 14%, transparent)}.lagna-slash{stroke:var(--roxy-accent);stroke-linecap:round;opacity:.7}`;var R=class extends y{constructor(){super(...arguments);this.chartViewport=new ht(this);this.chartStyle="north";this.chartReference="lagna";this.lagnaOverride="";this.setStyle=e=>{this.chartStyle=e}}resolveReference(){if(this.lagnaOverride)return this.lagnaOverride;if(this.chartReference==="moon")return this.data?.meta?.Moon?.rashi}viewModel(){return this.data?.meta?Ge(this.data.meta,{divisionLabel:"D1 Rashi",lagnaOverride:this.resolveReference(),states:this.data}):null}renderData(e){let r=this.viewModel();if(!r)return this.renderEmpty();let o=this.chartReference==="moon"&&!this.lagnaOverride?this.t("Chandra lagna"):this.t("Vedic kundli");return p`<div class="wrap" part="card"><div class="header" part="header"><div><h2 class="title">${o}</h2>${Ae(this.effectiveLang(),e.frame,this.translator)} ${je(r,this.translator)}</div>${qe(this.chartStyle,this.setStyle,this.translator)}</div><div id="kundli-panel-${this.chartStyle}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="kundli-tab-${this.chartStyle}">${this.chartViewport.renderChartViewport(p`<svg viewBox="0 0 400 400" preserveAspectRatio="xMidYMid meet" part="chart" role="img" aria-label="${this.t("Vedic birth chart with twelve sign houses")}"><title>${this.t("Vedic kundli")}</title>${Ke(r,this.chartStyle,this.translator)}</svg>`,o,this.translator)}</div></div>`}};R.endpoints=re,R.styles=[at,Se,Re,Be,Pe],m([b({type:String,reflect:!0,attribute:"chart-style"})],R.prototype,"chartStyle",2),m([b({type:String,reflect:!0,attribute:"chart-reference"})],R.prototype,"chartReference",2),m([b({type:String,reflect:!0,attribute:"lagna-override"})],R.prototype,"lagnaOverride",2),R=m([Te("roxy-vedic-kundli")],R);return Qe(Qr);})();
|
|
272
70
|
/*! Bundled license information:
|
|
273
71
|
|
|
274
72
|
@lit/reactive-element/css-tag.js:
|