@roxyapi/ui 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components-catalog.json +1 -1
- package/dist/cdn/components/almanac-day.js +2 -2
- package/dist/cdn/components/angel-number-card.js +1 -1
- package/dist/cdn/components/angel-number-lookup.js +1 -1
- package/dist/cdn/components/arudha-padas.js +1 -1
- package/dist/cdn/components/ashtakavarga-grid.js +1 -1
- package/dist/cdn/components/aspects-table.js +1 -1
- package/dist/cdn/components/astrocartography-map.js +1 -1
- package/dist/cdn/components/bazi-chart.js +1 -1
- package/dist/cdn/components/bhav-chalit-table.js +1 -1
- package/dist/cdn/components/bhava-bala-table.js +1 -1
- package/dist/cdn/components/biorhythm-chart.js +1 -1
- package/dist/cdn/components/bodygraph.js +1 -1
- package/dist/cdn/components/chara-karakas.js +1 -1
- package/dist/cdn/components/choghadiya-grid.js +1 -1
- package/dist/cdn/components/compatibility-card.js +1 -1
- package/dist/cdn/components/compound-number.js +2 -2
- package/dist/cdn/components/crystal-card.js +1 -1
- package/dist/cdn/components/crystal-grid.js +1 -1
- package/dist/cdn/components/dasha-timeline.js +1 -1
- package/dist/cdn/components/data.js +1 -1
- package/dist/cdn/components/divisional-chart.js +1 -1
- package/dist/cdn/components/dosha-card.js +1 -1
- package/dist/cdn/components/dosha-constitution.js +1 -1
- package/dist/cdn/components/dream-card.js +1 -1
- package/dist/cdn/components/dream-search.js +2 -2
- package/dist/cdn/components/endpoint-form.js +1 -1
- package/dist/cdn/components/ephemeris-table.js +1 -1
- package/dist/cdn/components/fixed-stars.js +1 -1
- package/dist/cdn/components/flying-star-chart.js +1 -1
- package/dist/cdn/components/forecast-digest.js +1 -1
- package/dist/cdn/components/forecast-timeline.js +1 -1
- package/dist/cdn/components/gematria.js +1 -1
- package/dist/cdn/components/gochara-table.js +1 -1
- package/dist/cdn/components/guna-milan.js +1 -1
- package/dist/cdn/components/hd-connection.js +1 -1
- package/dist/cdn/components/hd-penta.js +1 -1
- package/dist/cdn/components/hd-type-card.js +1 -1
- package/dist/cdn/components/hd-variables.js +1 -1
- package/dist/cdn/components/heliacal-table.js +1 -1
- package/dist/cdn/components/hexagram.js +1 -1
- package/dist/cdn/components/hora-table.js +1 -1
- package/dist/cdn/components/horoscope-card.js +1 -1
- package/dist/cdn/components/kp-chart.js +1 -1
- package/dist/cdn/components/kp-finance-card.js +2 -2
- package/dist/cdn/components/kp-planets-table.js +1 -1
- package/dist/cdn/components/kp-ruling-planets.js +1 -1
- package/dist/cdn/components/kua-card.js +1 -1
- package/dist/cdn/components/local-space-compass.js +1 -1
- package/dist/cdn/components/location-search.js +1 -1
- package/dist/cdn/components/luck-pillars.js +1 -1
- package/dist/cdn/components/mayan-day-sign.js +1 -1
- package/dist/cdn/components/moon-phase.js +1 -1
- package/dist/cdn/components/nakshatra-card.js +1 -1
- package/dist/cdn/components/natal-chart.js +1 -1
- package/dist/cdn/components/numerology-card.js +1 -1
- package/dist/cdn/components/panchang-table.js +1 -1
- package/dist/cdn/components/positions-table.js +1 -1
- package/dist/cdn/components/profection-card.js +1 -1
- package/dist/cdn/components/reference-card.js +1 -1
- package/dist/cdn/components/relocation-wheel.js +1 -1
- package/dist/cdn/components/report.js +1 -1
- package/dist/cdn/components/shadbala-table.js +1 -1
- package/dist/cdn/components/synastry-chart.js +1 -1
- package/dist/cdn/components/tarot-card.js +2 -2
- package/dist/cdn/components/tarot-catalog.js +1 -1
- package/dist/cdn/components/tarot-spread.js +1 -1
- package/dist/cdn/components/transit-wheel.js +1 -1
- package/dist/cdn/components/transits-table.js +1 -1
- package/dist/cdn/components/upagraha-table.js +1 -1
- package/dist/cdn/components/vastu-mandala.js +1 -1
- package/dist/cdn/components/vedic-aspects.js +1 -1
- package/dist/cdn/components/vedic-daily.js +1 -1
- package/dist/cdn/components/vedic-kundli.js +1 -1
- package/dist/cdn/components/vedic-planets-table.js +1 -1
- package/dist/cdn/components/western-planets-table.js +1 -1
- package/dist/cdn/components/yoga-list.js +1 -1
- package/dist/cdn/components/zodiac-card.js +1 -1
- package/dist/cdn/roxy-ui.js +1 -1
- package/dist/components/almanac-day.js +1 -1
- package/dist/components/angel-number-card.js +1 -1
- package/dist/components/angel-number-lookup.js +1 -1
- package/dist/components/arudha-padas.js +1 -1
- package/dist/components/ashtakavarga-grid.js +1 -1
- package/dist/components/aspects-table.js +1 -1
- package/dist/components/astrocartography-map.js +1 -1
- package/dist/components/bazi-chart.js +1 -1
- package/dist/components/bhav-chalit-table.js +1 -1
- package/dist/components/bhava-bala-table.js +1 -1
- package/dist/components/biorhythm-chart.js +1 -1
- package/dist/components/bodygraph.js +1 -1
- package/dist/components/chara-karakas.js +1 -1
- package/dist/components/choghadiya-grid.js +1 -1
- package/dist/components/compatibility-card.js +1 -1
- package/dist/components/compound-number.js +1 -1
- package/dist/components/crystal-card.js +1 -1
- package/dist/components/crystal-grid.js +1 -1
- package/dist/components/dasha-timeline.js +1 -1
- package/dist/components/data.js +1 -1
- package/dist/components/divisional-chart.js +1 -1
- package/dist/components/dosha-card.js +1 -1
- package/dist/components/dosha-constitution.js +1 -1
- package/dist/components/dream-card.js +1 -1
- package/dist/components/dream-search.js +1 -1
- package/dist/components/endpoint-form.js +1 -1
- package/dist/components/ephemeris-table.js +1 -1
- package/dist/components/fixed-stars.js +1 -1
- package/dist/components/flying-star-chart.js +1 -1
- package/dist/components/forecast-digest.js +1 -1
- package/dist/components/forecast-timeline.js +1 -1
- package/dist/components/gematria.js +1 -1
- package/dist/components/gochara-table.js +1 -1
- package/dist/components/guna-milan.js +1 -1
- package/dist/components/hd-connection.js +1 -1
- package/dist/components/hd-penta.js +1 -1
- package/dist/components/hd-type-card.js +1 -1
- package/dist/components/hd-variables.js +1 -1
- package/dist/components/heliacal-table.js +1 -1
- package/dist/components/hexagram.js +1 -1
- package/dist/components/hora-table.js +1 -1
- package/dist/components/horoscope-card.js +1 -1
- package/dist/components/kp-chart.js +1 -1
- package/dist/components/kp-finance-card.js +1 -1
- package/dist/components/kp-planets-table.js +1 -1
- package/dist/components/kp-ruling-planets.js +1 -1
- package/dist/components/kua-card.js +1 -1
- package/dist/components/local-space-compass.js +1 -1
- package/dist/components/location-search.js +1 -1
- package/dist/components/luck-pillars.js +1 -1
- package/dist/components/mayan-day-sign.js +1 -1
- package/dist/components/moon-phase.js +1 -1
- package/dist/components/nakshatra-card.js +1 -1
- package/dist/components/natal-chart.js +1 -1
- package/dist/components/numerology-card.js +1 -1
- package/dist/components/panchang-table.js +1 -1
- package/dist/components/positions-table.js +1 -1
- package/dist/components/profection-card.js +1 -1
- package/dist/components/reference-card.js +1 -1
- package/dist/components/relocation-wheel.js +1 -1
- package/dist/components/report.js +1 -1
- package/dist/components/shadbala-table.js +1 -1
- package/dist/components/synastry-chart.js +1 -1
- package/dist/components/tarot-card.js +1 -1
- package/dist/components/tarot-catalog.js +1 -1
- package/dist/components/tarot-spread.js +1 -1
- package/dist/components/transit-wheel.js +1 -1
- package/dist/components/transits-table.js +1 -1
- package/dist/components/upagraha-table.js +1 -1
- package/dist/components/vastu-mandala.js +2 -2
- package/dist/components/vedic-aspects.js +1 -1
- package/dist/components/vedic-daily.js +1 -1
- package/dist/components/vedic-kundli.js +1 -1
- package/dist/components/vedic-planets-table.js +1 -1
- package/dist/components/western-planets-table.js +1 -1
- package/dist/components/yoga-list.js +1 -1
- package/dist/components/zodiac-card.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var RoxyUI_gematria=(()=>{var H=Object.defineProperty;var wt=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var Le=Object.prototype.hasOwnProperty;var Ue=(n,t)=>{for(var e in t)H(n,e,{get:t[e],enumerable:true})},Ne=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Re(t))!Le.call(n,o)&&o!==e&&H(n,o,{get:()=>t[o],enumerable:!(r=wt(t,o))||r.enumerable});return n};var Ie=n=>Ne(H({},"__esModule",{value:true}),n),h=(n,t,e,r)=>{for(var o=r>1?void 0:r?wt(t,e):t,i=n.length-1,s;i>=0;i--)(s=n[i])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&H(t,e,o),o};var vr={};Ue(vr,{ROXY_UI_TOKENS_STYLE_ID:()=>X,RoxyGematria:()=>O,injectRoxyTokens:()=>Q});var B=globalThis,q=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,st=Symbol(),Et=new WeakMap,U=class{constructor(t,e,r){if(this._$cssResult$=true,r!==st)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(q&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Et.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Et.set(e,t))}return t}toString(){return this.cssText}},Tt=n=>new U(typeof n=="string"?n:n+"",void 0,st),g=(n,...t)=>{let e=n.length===1?n[0]:t.reduce((r,o,i)=>r+(s=>{if(s._$cssResult$===true)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[i+1],n[0]);return new U(e,n,st)},kt=(n,t)=>{if(q)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=B.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,n.appendChild(r)}},at=q?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Tt(e)})(n):n;var{is:Me,defineProperty:ze,getOwnPropertyDescriptor:Ge,getOwnPropertyNames:De,getOwnPropertySymbols:je,getPrototypeOf:Ke}=Object,V=globalThis,At=V.trustedTypes,He=At?At.emptyScript:"",Be=V.reactiveElementPolyfillSupport,N=(n,t)=>n,I={toAttribute(n,t){switch(t){case Boolean:n=n?He: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}},Y=(n,t)=>!Me(n,t),_t={attribute:true,type:String,converter:I,reflect:false,useDefault:false,hasChanged:Y};Symbol.metadata??=Symbol("metadata"),V.litPropertyMetadata??=new WeakMap;var S=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=_t){if(e.state&&(e.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=true),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&ze(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){let{get:o,set:i}=Ge(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:o,set(s){let c=o?.call(this);i?.call(this,s),this.requestUpdate(t,c,r)},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??_t}static _$Ei(){if(this.hasOwnProperty(N("elementProperties")))return;let t=Ke(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(N("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(N("properties"))){let e=this.properties,r=[...De(e),...je(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(at(o))}else t!==void 0&&e.push(at(t));return e}static _$Eu(t,e){let r=e.attribute;return r===false?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return kt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===true){let i=(r.converter?.toAttribute!==void 0?r.converter:I).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:I;this._$Em=o;let c=s.fromAttribute(e,i.type);this[o]=c??this._$Ej?.get(o)??c,this._$Em=null}}requestUpdate(t,e,r,o=false,i){if(t!==void 0){let s=this.constructor;if(o===false&&(i=this[t]),r??=s.getPropertyOptions(t),!((r.hasChanged??Y)(i,e)||r.useDefault&&r.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:o,wrapped:i},s){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),i!==true||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),o===true&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=true;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,i]of r){let{wrapped:s}=i,c=this[o];s!==true||this._$AL.has(o)||c===void 0||this.C(o,void 0,i,c)}}let t=false,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(e)):this._$EM()}catch(r){throw t=false,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=false}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[N("elementProperties")]=new Map,S[N("finalized")]=new Map,Be?.({ReactiveElement:S}),(V.reactiveElementVersions??=[]).push("2.1.2");var mt=globalThis,Ct=n=>n,W=mt.trustedTypes,Ft=W?W.createPolicy("lit-html",{createHTML:n=>n}):void 0,Nt="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,It="?"+E,qe=`<${It}>`,C=document,z=()=>C.createComment(""),G=n=>n===null||typeof n!="object"&&typeof n!="function",yt=Array.isArray,Ve=n=>yt(n)||typeof n?.[Symbol.iterator]=="function",dt=`[
|
|
2
2
|
\f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ot=/-->/g,Pt=/>/g,A=RegExp(`>|${dt}(?:([^\\s"'>=/]+)(${dt}*=${dt}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Rt=/'/g,Lt=/"/g,Mt=/^(?:script|style|textarea|title)$/i,ft=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),d=ft(1),kr=ft(2),Ar=ft(3),F=Symbol.for("lit-noChange"),a=Symbol.for("lit-nothing"),Ut=new WeakMap,_=C.createTreeWalker(C,129);function zt(n,t){if(!yt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ft!==void 0?Ft.createHTML(t):t}var Ye=(n,t)=>{let e=n.length-1,r=[],o,i=t===2?"<svg>":t===3?"<math>":"",s=M;for(let c=0;c<e;c++){let l=n[c],y,u,m=-1,v=0;for(;v<l.length&&(s.lastIndex=v,u=s.exec(l),u!==null);)v=s.lastIndex,s===M?u[1]==="!--"?s=Ot:u[1]!==void 0?s=Pt:u[2]!==void 0?(Mt.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=A):u[3]!==void 0&&(s=A):s===A?u[0]===">"?(s=o??M,m=-1):u[1]===void 0?m=-2:(m=s.lastIndex-u[2].length,y=u[1],s=u[3]===void 0?A:u[3]==='"'?Lt:Rt):s===Lt||s===Rt?s=A:s===Ot||s===Pt?s=M:(s=A,o=void 0);let w=s===A&&n[c+1].startsWith("/>")?" ":"";i+=s===M?l+qe:m>=0?(r.push(y),l.slice(0,m)+Nt+l.slice(m)+E+w):l+E+(m===-2?c:w)}return[zt(n,i+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},D=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let i=0,s=0,c=t.length-1,l=this.parts,[y,u]=Ye(t,e);if(this.el=n.createElement(y,r),_.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=_.nextNode())!==null&&l.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let m of o.getAttributeNames())if(m.endsWith(Nt)){let v=u[s++],w=o.getAttribute(m).split(E),K=/([.?@])?(.*)/.exec(v);l.push({type:1,index:i,name:K[2],strings:w,ctor:K[1]==="."?ct:K[1]==="?"?pt:K[1]==="@"?ht:R}),o.removeAttribute(m)}else m.startsWith(E)&&(l.push({type:6,index:i}),o.removeAttribute(m));if(Mt.test(o.tagName)){let m=o.textContent.split(E),v=m.length-1;if(v>0){o.textContent=W?W.emptyScript:"";for(let w=0;w<v;w++)o.append(m[w],z()),_.nextNode(),l.push({type:2,index:++i});o.append(m[v],z())}}}else if(o.nodeType===8)if(o.data===It)l.push({type:2,index:i});else{let m=-1;for(;(m=o.data.indexOf(E,m+1))!==-1;)l.push({type:7,index:i}),m+=E.length-1}i++}}static createElement(t,e){let r=C.createElement("template");return r.innerHTML=t,r}};function P(n,t,e=n,r){if(t===F)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,i=G(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(false),i===void 0?o=void 0:(o=new i(n),o._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=P(n,o._$AS(n,t.values),o,r)),t}var lt=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??C).importNode(e,true);_.currentNode=o;let i=_.nextNode(),s=0,c=0,l=r[0];for(;l!==void 0;){if(s===l.index){let y;l.type===2?y=new j(i,i.nextSibling,this,t):l.type===1?y=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(y=new ut(i,this,t)),this._$AV.push(y),l=r[++c]}s!==l?.index&&(i=_.nextNode(),s++)}return _.currentNode=C,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},j=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=a,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??true}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=P(this,t,e),G(t)?t===a||t==null||t===""?(this._$AH!==a&&this._$AR(),this._$AH=a):t!==this._$AH&&t!==F&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ve(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==a&&G(this._$AH)?this._$AA.nextSibling.data=t:this.T(C.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=D.createElement(zt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new lt(o,this),s=i.u(this.options);i.p(e),this.T(s),this._$AH=i}}_$AC(t){let e=Ut.get(t.strings);return e===void 0&&Ut.set(t.strings,e=new D(t)),e}k(t){yt(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(z()),this.O(z()),this,this.options)):r=e[o],r._$AI(i),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let r=Ct(t).nextSibling;Ct(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},R=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,i){this.type=1,this._$AH=a,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=a}_$AI(t,e=this,r,o){let i=this.strings,s=false;if(i===void 0)t=P(this,t,e,0),s=!G(t)||t!==this._$AH&&t!==F,s&&(this._$AH=t);else{let c=t,l,y;for(t=i[0],l=0;l<i.length-1;l++)y=P(this,c[r+l],e,l),y===F&&(y=this._$AH[l]),s||=!G(y)||y!==this._$AH[l],y===a?t=a:t!==a&&(t+=(y??"")+i[l+1]),this._$AH[l]=y}s&&!o&&this.j(t)}j(t){t===a?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===a?void 0:t}},pt=class extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==a)}},ht=class extends R{constructor(t,e,r,o,i){super(t,e,r,o,i),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??a)===F)return;let r=this._$AH,o=t===a&&r!==a||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==a&&(r===a||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)}},ut=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){P(this,t)}};var We=mt.litHtmlPolyfillSupport;We?.(D,j),(mt.litHtmlVersions??=[]).push("3.3.3");var Gt=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let i=e?.renderBefore??null;r._$litPart$=o=new j(t.insertBefore(z(),i),i,void 0,e??{})}return o._$AI(n),o};var gt=globalThis,T=class extends S{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=Gt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return F}};T._$litElement$=true,T.finalized=true,gt.litElementHydrateSupport?.({LitElement:T});var Ze=gt.litElementPolyfillSupport;Ze?.({LitElement:T});(gt.litElementVersions??=[]).push("4.2.2");var $=n=>n??a;var Dt=[{endpoint:"kabbalah/gematria",method:"POST"}];var Je={attribute:true,type:String,converter:I,reflect:false,hasChanged:Y},Xe=(n=Je,t,e)=>{let{kind:r,metadata:o}=e,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),r==="setter"&&((n=Object.create(n)).wrapped=true),i.set(e.name,n),r==="accessor"){let{name:s}=e;return{set(c){let l=t.get.call(this);t.set.call(this,c),this.requestUpdate(s,l,n,true,c)},init(c){return c!==void 0&&this.C(s,void 0,n,c),c}}}if(r==="setter"){let{name:s}=e;return function(c){let l=this[s];t.call(this,c),this.requestUpdate(s,l,n,true,c)}}throw Error("Unsupported decorator location: "+r)};function f(n){return(t,e)=>typeof e=="object"?Xe(n,t,e):((r,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,r),s?Object.getOwnPropertyDescriptor(o,i):void 0})(n,t,e)}function x(n){return f({...n,state:true,attribute:false})}var jt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function bt(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 Qe={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function xt(n,t){let e=n.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function Kt(n,t=jt){let e=bt(n);if(!e)return;let r=xt(e,t);if(r)return r;let o=e.toLowerCase().split("-"),i=o[0];if(i==="zh"){let s=o.find(c=>c==="hans"||c==="hant")??Qe[o[1]??""];return s?xt(`zh-${s}`,t):void 0}return xt(i,t)}var qt="symbols";var tr={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},vt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Ht='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Bt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',J={"fraunces-jost":{name:"Fraunces with Jost",sans:vt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:vt,display:vt},geist:{name:"Geist",sans:Ht,display:Ht},system:{name:"System",sans:Bt,display:Bt}};function Vt(n){let{sans:t,display:e}=J[n];return Object.keys(tr).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var Yt="1.6.0";var er=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,rr=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Wt(n,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(er.exec(e.pathname)??rr.exec(e.pathname))?.[1];if(r!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${n}/dist`:`${e.origin}${r}`}var sr={},nr="color-mix(in oklab, var(--roxy-accent) 70%, black)",or="var(--roxy-accent)",ir="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Zt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Jt(n){return n!==void 0&&Object.hasOwn(J,n)}function Xt(n){let t=[];return n.brandColor&&Zt.test(n.brandColor)&&t.push(`--roxy-primary:${n.brandColor}`),n.brandAccent&&Zt.test(n.brandAccent)&&t.push(`--roxy-accent:${n.brandAccent}`,`--roxy-accent-ink:light-dark(${nr},${or})`,`--roxy-ring:${ir}`),t.join(";")}function Qt(n,t){if(Jt(t))return t;let e=n.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=n.shadowRoot?.firstElementChild,i=o?.localName==="style"?o:null;i?.sheet&&(i.sheet.disabled=true);let s,c,l;try{let y=globalThis.getComputedStyle(n),u=m=>y.getPropertyValue(m).trim();s=u("--roxy-font-sans"),c=u("--roxy-font-display"),l=u("--roxy-font")}finally{i?.sheet&&(i.sheet.disabled=false)}if(!(s||c))return Jt(l)?l:void 0}function te(n){let{sans:t,display:e}=J[n];return`--roxy-font:${n};--roxy-font-sans:${t};--roxy-font-display:${e}`}var ee=Wt(Yt,globalThis.document?.currentScript?.src||sr.url);function re(n,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${n}`;if(document.getElementById(e))return;let r=document.createElement("link");r.id=e,r.rel="stylesheet",r.href=`${t}/styles/fonts/${n}.css`,document.head.append(r)}function ne(n,t=ee){Vt(n).length>0&&re(n,t)}function oe(n=ee){re(qt,n)}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-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var X="roxy-ui-tokens";function Q(){if(typeof document>"u")return null;let n=document.getElementById(X);if(n)return n;let t=document.createElement("style");return t.id=X,t.textContent=ie,document.head.prepend(t),t}function se(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function b(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())}function ae(n){return typeof n=="string"&&/^https?:\/\//.test(n)}var de="__ROXY_UI_I18N__";function St(){let n=globalThis,t=n[de];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[de]=e,e}function ar(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function le(n,t,e){return ar(dr(n,t)??t,e)}function dr(n,t){if(!n)return;let{catalogs:e}=St(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[se(t)]}function ce(n){if(!n)return;let{fieldLabels:t}=St(),e=n.toLowerCase();return t[e]??t[e.split("-")[0]]}function pe(n,t){return ce(n)?.fields[t]}function he(n,t,e){return ce(n)?.enums[`${t}.${e}`]}function ue(n){let{listeners:t}=St();return t.add(n),()=>{t.delete(n)}}var tt=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=ue(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var et=class extends T{constructor(){super();this.translator=(e,r)=>this.t(e,r);new tt(this)}connectedCallback(){super.connectedCallback(),Q()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&oe()}fontDeclarations(e){let r=Qt(this,e);return r?(ne(r),te(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?d`<style>:host{${e}}</style>`:a}t(e,r){return le(this.effectiveLang(),e,r)}effectiveLang(){return bt(this)}};var me=g`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function ye(n){return n?d`<span class="roxy-glyph" aria-hidden="true">${n}</span>`:a}var fe=g`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var lr=g`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);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}`,rt=[lr,fe,me];var cr="__cols",pr="__rows";function hr(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function nt(n){if(Array.isArray(n)){let i=false,s=n.map(c=>{let l=nt(c);return l!==c&&(i=true),l});return i?s:n}if(!hr(n))return n;let t=n[cr],e=n[pr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(i=>{let s={};return t.forEach((c,l)=>{s[c]=nt(i[l])}),s});let r=false,o={};for(let[i,s]of Object.entries(n)){let c=nt(s);c!==s&&(r=true),o[i]=c}return r?o:n}function ge(n){return nt(n)}function xe(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var ur="pk_live_YOUR_KEY",be={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 ve(n){if(n)return n===ur?be.sample:n.startsWith("pk_")?void 0:be.secret}function Se(n,t,e={}){e.warn&&console.warn(t.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:true,composed:true}))}var $e="https://roxyapi.com/api/v2";async function mr(n){try{let t=await n.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:true,...t.code?{code:t.code}:{}}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:false}}var we={fromAttribute:n=>{if(n!=null){try{let t=JSON.parse(n);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},L=class extends Error{constructor(e,r=null,o=true,i,s){super(e);this.issues=r;this.worded=o;this.status=i;this.code=s}};function Ee(n){return n.submitUrl?void 0:ve(n.publishableKey)}async function $t(n,t,e){let r=Ee(n);if(r)throw new L(r.message);let o=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:yr(t,n.submitContext),signal:e}):await fr(n,t,e);if(!o.ok){let i=await mr(o);throw new L(i.message,i.issues,i.worded,o.status,i.code)}return await o.json()}function yr(n,t){return JSON.stringify(t?{...n,context:t}:n)}function fr(n,t,e){let r=new URL(`${n.baseUrl??$e}${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 ot=class{constructor(t){this.baseUrl=$e;this.worded=true;this.failure={};this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=true,this.failure={};let e=Ee(this);if(e){this.host.error=e.message,Se(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let o=await $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 L&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof L&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=false)}}};function Te(n,t,e,r=[]){let o={...e},i=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(y,u)=>{let m=o[u];return delete o[u],encodeURIComponent(String(m??""))}),s=new Set(r),c={},l={};for(let[y,u]of Object.entries(o))u===void 0||u===""||(t==="GET"||s.has(y)?c[y]=u:l[y]=u);return{path:i,method:t,query:c,body:t==="POST"?l:void 0}}function ke(){return d`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var oo=g`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var co=g`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function Ae(n,t,e){let r=n.filter(o=>!!o.body);return r.length===0?a:d`<section class="block" part="section readings"><h3>${e}</h3>${r.map((o,i)=>d`<details class="interp-card" part="reading" name="${t}" ?open="${i===0}"><summary><span class="interp-lead">${ye(o.glyph)} ${o.label}</span> ${ke()} ${o.aside?d`<span class="interp-aside"><small>${o.aside}</small></span>`:a}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??a}</div></details>`)}</section>`}var gr="roxy-data";function xr(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var it=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(xr(t)&&t.classList.contains(gr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends et{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,o=this.listRows();if(!(!e||!r||!o)){this.moreLoading=true,this.moreError=null;try{let i=await $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=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(Te(r.endpoint,r.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new it(this),this.fetcher=new ot(this)}static{this.styles=[rt]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=ge(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:xe(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return d`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:true,composed:true})),customElements.get("roxy-data")?d`<roxy-data .data="${e}" lang="${$(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(i=>i.trim().toLowerCase()).filter(i=>/^[a-z][a-z0-9-]*$/.test(i)),r=[Xt(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return a;let o=(r?`:host{${r}}`:"")+e.map(i=>`[part~="${i}"],roxy-endpoint-form::part(${i}){display:none!important}`).join("");return d`<style>${o}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?d`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,o){return this.hideReadings?a:Ae(e,r,this.t(o??"Reading"))}renderResult(e){let r=d`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?d`${r}${this.renderAttribution()}`:r}renderWithForm(e){return d`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?a:this.renderErrorBanner(this.error):this.data==null?a:this.showAttribution()?d`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?a:e.length>=r?a:d`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?d`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:a}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let o=this.effectiveLang();o&&r.setAttribute("lang",o),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:Kt(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return d`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(a):this.renderEmpty()}renderForm(){let e=this.selfFetch();return d`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${$(this.specUrl)}" publishable-key="${$(this.publishableKey)}" location-url="${$(this.locationUrl)}" submit-label="${$(this.submitLabel)}" lang="${$(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return d`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return d`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return r?d`${o}${this.renderForm()}`:o}renderErrorBanner(e){return d`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};h([f({attribute:false})],p.prototype,"data",2),h([f({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([f({type:String})],p.prototype,"method",2),h([f({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([f({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([f({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([f({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([f({attribute:"submit-context",converter:we})],p.prototype,"submitContext",2),h([f({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([f({type:Boolean})],p.prototype,"remember",2),h([f({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([f({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([f({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([f({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([f({type:String})],p.prototype,"font",2),h([f({type:String})],p.prototype,"hemisphere",2),h([f({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([f({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([f({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var _e=n=>t=>{customElements.get(n)||customElements.define(n,t)};var Ce=new Map;function br(n){if(!n)return["en"];let t=Ce.get(n);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return Ce.set(n,e),[e,"en"]}function k(n,t){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(br(n),{maximumFractionDigits:0})}function Fe(n,t,e){return pe(n,t)??e??b(t)}function Oe(n,t,e,r){return he(n,t,e)??r??b(e)}var Pe=g`@container (width<=30rem){table.stacked,table.stacked caption,table.stacked tbody,table.stacked tr,table.stacked td{width:100%;min-width:0;display:block}table.stacked thead{display:none}table.stacked tr{border-bottom:1px solid var(--roxy-border);padding-block:var(--roxy-space-sm)}table.stacked tr:last-child{border-bottom:0}table.stacked td{padding:calc(var(--roxy-space-unit) / 2) 0;white-space:normal;border:0}table.stacked td:empty{display:none}table.stacked td[data-inline]{width:auto;margin-inline-end:var(--roxy-space-md);display:inline-block}table.stacked td[data-label]:before{content:attr(data-label) " ";color:var(--roxy-muted)}}`;var O=class extends p{renderData(t){let e=this.effectiveLang(),r=t.chosen,o=t.input?.text??t.input?.textHebrew??"";return d`<article class="card" part="card" aria-labelledby="gematria-title"><header class="head" part="header"><h2 id="gematria-title">${o?`${this.t("Gematria")} \xB7 ${o}`:this.t("Gematria")}</h2>${r?.hebrew?d`<span class="hebrew" lang="he" dir="rtl">${r.hebrew}</span>`:a} ${this.chosenForm(t)?.romanization?d`<span class="roman">${this.chosenForm(t)?.romanization}</span>`:a} ${r?.rule?d`<p class="rule">${r.rule}</p>`:a}</header>${this.renderLetters(e,this.chosenForm(t)?.letters)} ${this.renderValues(e,t.values,this.t("Cipher values"))} ${this.renderForms(e,t)} ${this.renderTransformations(e,t.transformations)} ${this.renderLatin(e,t.latinValues)} ${this.renderMatches(e,t.matches)} ${this.renderConventions(t.conventions)}</article>`}chosenForm(t){let e=t.hebrewForms??[];return e.find(r=>r.hebrew===t.chosen?.hebrew)??e[0]}renderLetters(t,e){let r=e??[];return r.length===0?a:d`<section part="section letters"><h3>${this.t("Letters")}</h3><div class="letters" part="chart" dir="rtl">${r.map(o=>d`<div class="${`letter${o.isFinal?" is-final":""}`}" dir="ltr" title="${$(o.isFinal?this.t("Final form"):void 0)}"><span class="glyph" lang="he">${o.glyph??""}</span> <span class="name">${o.name??""}</span> <span class="num">${k(t,o.value)}</span></div>`)}</div>${r.some(o=>o.isFinal)?d`<p class="legend" part="legend"><span class="swatch"></span>${this.t("Final form")}</p>`:a}</section>`}renderValues(t,e,r){let o=(e??[]).filter(s=>typeof s.value=="number");if(o.length===0)return a;let i=o.some(s=>(s.alternateValues??[]).length>0);return d`<section part="section values"><h3>${r}</h3><div class="scroll" tabindex="0" role="region" aria-label="${r}"><table><thead><tr><th>${this.t("Cipher")}</th><th>${this.t("Value")}</th>${i?d`<th>${this.t("Also published")}</th>`:a}</tr></thead><tbody>${o.map(s=>d`<tr><td>${b(s.id??"")}</td><td class="num">${k(t,s.value)}</td>${i?d`<td class="num">${(s.alternateValues??[]).map(c=>k(t,c)).join(", ")}</td>`:a}</tr>`)}</tbody></table></div>${this.renderProvenance(o)}</section>`}renderProvenance(t){let e=new Map;for(let r of t)r.tradition&&!e.has(r.tradition)&&e.set(r.tradition,r.source);return e.size===0?a:d`<p class="provenance"><span class="roxy-label">${this.t("Tradition")}</span> ${[...e].map(([r,o],i)=>d`${i>0?" \xB7 ":""}${b(r)}${ae(o)?d`<a class="src" href="${o}" target="_blank" rel="noopener noreferrer">${this.t("Source")}</a>`:a}`)}</p>`}renderForms(t,e){let r=e.hebrewForms??[];return r.length<2?a:d`<section part="section spellings"><h3>${this.t("Spellings")}</h3><ul class="forms">${r.map(o=>d`<li class="form"><div><span class="hebrew" lang="he" dir="rtl">${o.hebrew??""}</span> ${o.hebrew===e.chosen?.hebrew?d`<span class="chosen roxy-chip" data-tone="success">${this.t("Chosen")}</span>`:a}</div><span class="roman">${o.romanization??""}</span> ${o.rule?d`<p class="rule">${o.rule}</p>`:a} ${this.renderFormTotals(t,o)}</li>`)}</ul></section>`}renderFormTotals(t,e){let r=(e.values??[]).find(o=>typeof o.value=="number");return r?d`<p class="rule"><span class="roxy-label">${b(r.id??"")}</span> ${k(t,r.value)}</p>`:a}renderTransformations(t,e){let r=e??[];return r.length===0?a:d`<section part="section substitutions"><h3>${this.t("Substitutions")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Substitutions")}"><table><thead><tr><th>${this.t("Cipher")}</th><th>${this.t("Output")}</th><th>${this.t("Value")}</th></tr></thead><tbody>${r.map(o=>d`<tr><td>${b(o.id??"")}</td><td>${o.output?d`<span lang="he" dir="rtl">${o.output}</span>`:a} ${o.outputRomanization?d`<span class="roman">${o.outputRomanization}</span>`:a}</td><td class="num">${k(t,o.value)}</td></tr>`)}</tbody></table></div></section>`}renderLatin(t,e){let r=e??[];return r.length===0?a:d`<section part="section latin-ciphers"><h3>${this.t("Latin ciphers")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Latin ciphers")}"><table class="stacked"><thead><tr><th>${this.t("Cipher")}</th><th>${this.t("Value")}</th><th>${this.t("Tradition")}</th></tr></thead><tbody>${r.map(o=>d`<tr><td data-label="${this.t("Cipher")}">${b(o.id??"")} ${o.lineage?d`<p class="lineage">${o.lineage}</p>`:a}</td><td class="num" data-label="${this.t("Value")}">${k(t,o.value)}</td><td data-label="${this.t("Tradition")}">${b(o.tradition??"")}</td></tr>`)}</tbody></table></div></section>`}renderMatches(t,e){let r=e??[];return r.length===0?a:d`<section part="section matches"><h3>${this.t("Equal values")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Equal values")}"><table class="stacked"><thead><tr><th>${this.t("Word")}</th><th>${this.t("Meaning")}</th><th>${this.t("Value")}</th></tr></thead><tbody>${r.map(o=>d`<tr><td data-label="${this.t("Word")}"><span lang="he" dir="rtl">${o.hebrew??""}</span> <span class="roman">${o.romanization??""}</span></td><td data-label="${this.t("Meaning")}">${o.meaning??""} ${o.note&&!this.hideReadings?d`<p class="match-note" part="reading">${o.note}</p>`:a}</td><td class="num" data-label="${this.t("Value")}">${k(t,o.value)}</td></tr>`)}</tbody></table></div></section>`}renderConventions(t){let e=this.effectiveLang(),r=[];for(let o of["transliteration","misparGadol"]){let i=t?.[o];i&&r.push([Fe(e,o),Oe(e,o,i)])}return r.length===0?a:d`<p class="provenance">${r.map(([o,i],s)=>d`${s>0?" \xB7 ":""}<span class="roxy-label">${o}</span>${i}`)}</p>`}};O.endpoints=Dt,O.styles=[rt,Pe,g`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}section>h3{margin-block-end:var(--roxy-space-sm)}.head{justify-items:start;gap:calc(var(--roxy-space-unit) / 2);min-width:0;display:grid}.hebrew{font-size:calc(var(--roxy-text-xl) * 1.3);font-weight:var(--roxy-weight-bold);line-height:1.4}.roman{color:var(--roxy-secondary);font-size:var(--roxy-text-sm)}.rule{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.provenance .roxy-label,.rule .roxy-label{font-size:inherit;margin-inline-end:var(--roxy-space-xs)}.src{margin-inline-start:var(--roxy-space-xs)}.letters{gap:var(--roxy-space-xs);flex-wrap:wrap;display:flex}.letter{justify-items:center;gap:calc(var(--roxy-space-unit) / 2);min-inline-size:5ch;padding:var(--roxy-space-xs) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);display:grid}.letter .glyph{font-size:var(--roxy-text-lg);line-height:1.3}.letter .name{color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.letter .num{font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.letter.is-final{border-color:var(--roxy-accent)}.legend{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:var(--roxy-space-sm)}.legend .swatch{block-size:.6lh;inline-size:.6lh;border:1px solid var(--roxy-accent);border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td.num{white-space:nowrap}.provenance{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:var(--roxy-space-sm)}.lineage,.match-note{color:var(--roxy-secondary);font-size:var(--roxy-text-xs);white-space:normal;margin-block-start:calc(var(--roxy-space-unit) / 2)}a{color:var(--roxy-accent-ink)}.forms{gap:var(--roxy-space-md);margin:0;padding:0;list-style:none;display:grid}.form{gap:var(--roxy-space-xs);min-width:0;border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm);display:grid}.form:first-child{border-block-start:0;padding-block-start:0}`],O=h([_e("roxy-gematria")],O);return Ie(vr)})();/*! Bundled license information:
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Rt=/'/g,Lt=/"/g,Mt=/^(?:script|style|textarea|title)$/i,ft=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),d=ft(1),kr=ft(2),Ar=ft(3),F=Symbol.for("lit-noChange"),a=Symbol.for("lit-nothing"),Ut=new WeakMap,_=C.createTreeWalker(C,129);function zt(n,t){if(!yt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ft!==void 0?Ft.createHTML(t):t}var Ye=(n,t)=>{let e=n.length-1,r=[],o,i=t===2?"<svg>":t===3?"<math>":"",s=M;for(let c=0;c<e;c++){let l=n[c],y,u,m=-1,v=0;for(;v<l.length&&(s.lastIndex=v,u=s.exec(l),u!==null);)v=s.lastIndex,s===M?u[1]==="!--"?s=Ot:u[1]!==void 0?s=Pt:u[2]!==void 0?(Mt.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=A):u[3]!==void 0&&(s=A):s===A?u[0]===">"?(s=o??M,m=-1):u[1]===void 0?m=-2:(m=s.lastIndex-u[2].length,y=u[1],s=u[3]===void 0?A:u[3]==='"'?Lt:Rt):s===Lt||s===Rt?s=A:s===Ot||s===Pt?s=M:(s=A,o=void 0);let w=s===A&&n[c+1].startsWith("/>")?" ":"";i+=s===M?l+qe:m>=0?(r.push(y),l.slice(0,m)+Nt+l.slice(m)+E+w):l+E+(m===-2?c:w)}return[zt(n,i+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},D=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let i=0,s=0,c=t.length-1,l=this.parts,[y,u]=Ye(t,e);if(this.el=n.createElement(y,r),_.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=_.nextNode())!==null&&l.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let m of o.getAttributeNames())if(m.endsWith(Nt)){let v=u[s++],w=o.getAttribute(m).split(E),K=/([.?@])?(.*)/.exec(v);l.push({type:1,index:i,name:K[2],strings:w,ctor:K[1]==="."?ct:K[1]==="?"?pt:K[1]==="@"?ht:R}),o.removeAttribute(m)}else m.startsWith(E)&&(l.push({type:6,index:i}),o.removeAttribute(m));if(Mt.test(o.tagName)){let m=o.textContent.split(E),v=m.length-1;if(v>0){o.textContent=W?W.emptyScript:"";for(let w=0;w<v;w++)o.append(m[w],z()),_.nextNode(),l.push({type:2,index:++i});o.append(m[v],z())}}}else if(o.nodeType===8)if(o.data===It)l.push({type:2,index:i});else{let m=-1;for(;(m=o.data.indexOf(E,m+1))!==-1;)l.push({type:7,index:i}),m+=E.length-1}i++}}static createElement(t,e){let r=C.createElement("template");return r.innerHTML=t,r}};function P(n,t,e=n,r){if(t===F)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,i=G(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(false),i===void 0?o=void 0:(o=new i(n),o._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=P(n,o._$AS(n,t.values),o,r)),t}var lt=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??C).importNode(e,true);_.currentNode=o;let i=_.nextNode(),s=0,c=0,l=r[0];for(;l!==void 0;){if(s===l.index){let y;l.type===2?y=new j(i,i.nextSibling,this,t):l.type===1?y=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(y=new ut(i,this,t)),this._$AV.push(y),l=r[++c]}s!==l?.index&&(i=_.nextNode(),s++)}return _.currentNode=C,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},j=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=a,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??true}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=P(this,t,e),G(t)?t===a||t==null||t===""?(this._$AH!==a&&this._$AR(),this._$AH=a):t!==this._$AH&&t!==F&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ve(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==a&&G(this._$AH)?this._$AA.nextSibling.data=t:this.T(C.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=D.createElement(zt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new lt(o,this),s=i.u(this.options);i.p(e),this.T(s),this._$AH=i}}_$AC(t){let e=Ut.get(t.strings);return e===void 0&&Ut.set(t.strings,e=new D(t)),e}k(t){yt(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(z()),this.O(z()),this,this.options)):r=e[o],r._$AI(i),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let r=Ct(t).nextSibling;Ct(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},R=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,i){this.type=1,this._$AH=a,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=a}_$AI(t,e=this,r,o){let i=this.strings,s=false;if(i===void 0)t=P(this,t,e,0),s=!G(t)||t!==this._$AH&&t!==F,s&&(this._$AH=t);else{let c=t,l,y;for(t=i[0],l=0;l<i.length-1;l++)y=P(this,c[r+l],e,l),y===F&&(y=this._$AH[l]),s||=!G(y)||y!==this._$AH[l],y===a?t=a:t!==a&&(t+=(y??"")+i[l+1]),this._$AH[l]=y}s&&!o&&this.j(t)}j(t){t===a?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===a?void 0:t}},pt=class extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==a)}},ht=class extends R{constructor(t,e,r,o,i){super(t,e,r,o,i),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??a)===F)return;let r=this._$AH,o=t===a&&r!==a||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==a&&(r===a||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)}},ut=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){P(this,t)}};var We=mt.litHtmlPolyfillSupport;We?.(D,j),(mt.litHtmlVersions??=[]).push("3.3.3");var Gt=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let i=e?.renderBefore??null;r._$litPart$=o=new j(t.insertBefore(z(),i),i,void 0,e??{})}return o._$AI(n),o};var gt=globalThis,T=class extends S{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=Gt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return F}};T._$litElement$=true,T.finalized=true,gt.litElementHydrateSupport?.({LitElement:T});var Ze=gt.litElementPolyfillSupport;Ze?.({LitElement:T});(gt.litElementVersions??=[]).push("4.2.2");var $=n=>n??a;var Dt=[{endpoint:"kabbalah/gematria",method:"POST"}];var Je={attribute:true,type:String,converter:I,reflect:false,hasChanged:Y},Xe=(n=Je,t,e)=>{let{kind:r,metadata:o}=e,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),r==="setter"&&((n=Object.create(n)).wrapped=true),i.set(e.name,n),r==="accessor"){let{name:s}=e;return{set(c){let l=t.get.call(this);t.set.call(this,c),this.requestUpdate(s,l,n,true,c)},init(c){return c!==void 0&&this.C(s,void 0,n,c),c}}}if(r==="setter"){let{name:s}=e;return function(c){let l=this[s];t.call(this,c),this.requestUpdate(s,l,n,true,c)}}throw Error("Unsupported decorator location: "+r)};function f(n){return(t,e)=>typeof e=="object"?Xe(n,t,e):((r,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,r),s?Object.getOwnPropertyDescriptor(o,i):void 0})(n,t,e)}function x(n){return f({...n,state:true,attribute:false})}var jt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function bt(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 Qe={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function xt(n,t){let e=n.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function Kt(n,t=jt){let e=bt(n);if(!e)return;let r=xt(e,t);if(r)return r;let o=e.toLowerCase().split("-"),i=o[0];if(i==="zh"){let s=o.find(c=>c==="hans"||c==="hant")??Qe[o[1]??""];return s?xt(`zh-${s}`,t):void 0}return xt(i,t)}var qt="symbols";var tr={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},vt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Ht='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Bt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',J={"fraunces-jost":{name:"Fraunces with Jost",sans:vt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:vt,display:vt},geist:{name:"Geist",sans:Ht,display:Ht},system:{name:"System",sans:Bt,display:Bt}};function Vt(n){let{sans:t,display:e}=J[n];return Object.keys(tr).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var Yt="1.6.1";var er=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,rr=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Wt(n,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(er.exec(e.pathname)??rr.exec(e.pathname))?.[1];if(r!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${n}/dist`:`${e.origin}${r}`}var sr={},nr="color-mix(in oklab, var(--roxy-accent) 70%, black)",or="var(--roxy-accent)",ir="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Zt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Jt(n){return n!==void 0&&Object.hasOwn(J,n)}function Xt(n){let t=[];return n.brandColor&&Zt.test(n.brandColor)&&t.push(`--roxy-primary:${n.brandColor}`),n.brandAccent&&Zt.test(n.brandAccent)&&t.push(`--roxy-accent:${n.brandAccent}`,`--roxy-accent-ink:light-dark(${nr},${or})`,`--roxy-ring:${ir}`),t.join(";")}function Qt(n,t){if(Jt(t))return t;let e=n.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=n.shadowRoot?.firstElementChild,i=o?.localName==="style"?o:null;i?.sheet&&(i.sheet.disabled=true);let s,c,l;try{let y=globalThis.getComputedStyle(n),u=m=>y.getPropertyValue(m).trim();s=u("--roxy-font-sans"),c=u("--roxy-font-display"),l=u("--roxy-font")}finally{i?.sheet&&(i.sheet.disabled=false)}if(!(s||c))return Jt(l)?l:void 0}function te(n){let{sans:t,display:e}=J[n];return`--roxy-font:${n};--roxy-font-sans:${t};--roxy-font-display:${e}`}var ee=Wt(Yt,globalThis.document?.currentScript?.src||sr.url);function re(n,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${n}`;if(document.getElementById(e))return;let r=document.createElement("link");r.id=e,r.rel="stylesheet",r.href=`${t}/styles/fonts/${n}.css`,document.head.append(r)}function ne(n,t=ee){Vt(n).length>0&&re(n,t)}function oe(n=ee){re(qt,n)}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-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var X="roxy-ui-tokens";function Q(){if(typeof document>"u")return null;let n=document.getElementById(X);if(n)return n;let t=document.createElement("style");return t.id=X,t.textContent=ie,document.head.prepend(t),t}function se(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function b(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())}function ae(n){return typeof n=="string"&&/^https?:\/\//.test(n)}var de="__ROXY_UI_I18N__";function St(){let n=globalThis,t=n[de];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[de]=e,e}function ar(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function le(n,t,e){return ar(dr(n,t)??t,e)}function dr(n,t){if(!n)return;let{catalogs:e}=St(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[se(t)]}function ce(n){if(!n)return;let{fieldLabels:t}=St(),e=n.toLowerCase();return t[e]??t[e.split("-")[0]]}function pe(n,t){return ce(n)?.fields[t]}function he(n,t,e){return ce(n)?.enums[`${t}.${e}`]}function ue(n){let{listeners:t}=St();return t.add(n),()=>{t.delete(n)}}var tt=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=ue(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var et=class extends T{constructor(){super();this.translator=(e,r)=>this.t(e,r);new tt(this)}connectedCallback(){super.connectedCallback(),Q()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&oe()}fontDeclarations(e){let r=Qt(this,e);return r?(ne(r),te(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?d`<style>:host{${e}}</style>`:a}t(e,r){return le(this.effectiveLang(),e,r)}effectiveLang(){return bt(this)}};var me=g`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function ye(n){return n?d`<span class="roxy-glyph" aria-hidden="true">${n}</span>`:a}var fe=g`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var lr=g`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,rt=[lr,fe,me];var cr="__cols",pr="__rows";function hr(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function nt(n){if(Array.isArray(n)){let i=false,s=n.map(c=>{let l=nt(c);return l!==c&&(i=true),l});return i?s:n}if(!hr(n))return n;let t=n[cr],e=n[pr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(i=>{let s={};return t.forEach((c,l)=>{s[c]=nt(i[l])}),s});let r=false,o={};for(let[i,s]of Object.entries(n)){let c=nt(s);c!==s&&(r=true),o[i]=c}return r?o:n}function ge(n){return nt(n)}function xe(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var ur="pk_live_YOUR_KEY",be={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 ve(n){if(n)return n===ur?be.sample:n.startsWith("pk_")?void 0:be.secret}function Se(n,t,e={}){e.warn&&console.warn(t.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:true,composed:true}))}var $e="https://roxyapi.com/api/v2";async function mr(n){try{let t=await n.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:true,...t.code?{code:t.code}:{}}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:false}}var we={fromAttribute:n=>{if(n!=null){try{let t=JSON.parse(n);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},L=class extends Error{constructor(e,r=null,o=true,i,s){super(e);this.issues=r;this.worded=o;this.status=i;this.code=s}};function Ee(n){return n.submitUrl?void 0:ve(n.publishableKey)}async function $t(n,t,e){let r=Ee(n);if(r)throw new L(r.message);let o=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:yr(t,n.submitContext),signal:e}):await fr(n,t,e);if(!o.ok){let i=await mr(o);throw new L(i.message,i.issues,i.worded,o.status,i.code)}return await o.json()}function yr(n,t){return JSON.stringify(t?{...n,context:t}:n)}function fr(n,t,e){let r=new URL(`${n.baseUrl??$e}${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 ot=class{constructor(t){this.baseUrl=$e;this.worded=true;this.failure={};this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=true,this.failure={};let e=Ee(this);if(e){this.host.error=e.message,Se(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let o=await $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 L&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof L&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=false)}}};function Te(n,t,e,r=[]){let o={...e},i=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(y,u)=>{let m=o[u];return delete o[u],encodeURIComponent(String(m??""))}),s=new Set(r),c={},l={};for(let[y,u]of Object.entries(o))u===void 0||u===""||(t==="GET"||s.has(y)?c[y]=u:l[y]=u);return{path:i,method:t,query:c,body:t==="POST"?l:void 0}}function ke(){return d`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var oo=g`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var co=g`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function Ae(n,t,e){let r=n.filter(o=>!!o.body);return r.length===0?a:d`<section class="block" part="section readings"><h3>${e}</h3>${r.map((o,i)=>d`<details class="interp-card" part="reading" name="${t}" ?open="${i===0}"><summary><span class="interp-lead">${ye(o.glyph)} ${o.label}</span> ${ke()} ${o.aside?d`<span class="interp-aside"><small>${o.aside}</small></span>`:a}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??a}</div></details>`)}</section>`}var gr="roxy-data";function xr(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var it=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(xr(t)&&t.classList.contains(gr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends et{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,o=this.listRows();if(!(!e||!r||!o)){this.moreLoading=true,this.moreError=null;try{let i=await $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=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(Te(r.endpoint,r.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new it(this),this.fetcher=new ot(this)}static{this.styles=[rt]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=ge(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:xe(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return d`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:true,composed:true})),customElements.get("roxy-data")?d`<roxy-data .data="${e}" lang="${$(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(i=>i.trim().toLowerCase()).filter(i=>/^[a-z][a-z0-9-]*$/.test(i)),r=[Xt(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return a;let o=(r?`:host{${r}}`:"")+e.map(i=>`[part~="${i}"],roxy-endpoint-form::part(${i}){display:none!important}`).join("");return d`<style>${o}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?d`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,o){return this.hideReadings?a:Ae(e,r,this.t(o??"Reading"))}renderResult(e){let r=d`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?d`${r}${this.renderAttribution()}`:r}renderWithForm(e){return d`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?a:this.renderErrorBanner(this.error):this.data==null?a:this.showAttribution()?d`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?a:e.length>=r?a:d`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?d`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:a}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let o=this.effectiveLang();o&&r.setAttribute("lang",o),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:Kt(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return d`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(a):this.renderEmpty()}renderForm(){let e=this.selfFetch();return d`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${$(this.specUrl)}" publishable-key="${$(this.publishableKey)}" location-url="${$(this.locationUrl)}" submit-label="${$(this.submitLabel)}" lang="${$(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return d`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return d`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return r?d`${o}${this.renderForm()}`:o}renderErrorBanner(e){return d`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};h([f({attribute:false})],p.prototype,"data",2),h([f({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([f({type:String})],p.prototype,"method",2),h([f({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([f({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([f({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([f({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([f({attribute:"submit-context",converter:we})],p.prototype,"submitContext",2),h([f({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([f({type:Boolean})],p.prototype,"remember",2),h([f({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([f({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([f({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([f({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([f({type:String})],p.prototype,"font",2),h([f({type:String})],p.prototype,"hemisphere",2),h([f({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([f({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([f({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var _e=n=>t=>{customElements.get(n)||customElements.define(n,t)};var Ce=new Map;function br(n){if(!n)return["en"];let t=Ce.get(n);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return Ce.set(n,e),[e,"en"]}function k(n,t){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(br(n),{maximumFractionDigits:0})}function Fe(n,t,e){return pe(n,t)??e??b(t)}function Oe(n,t,e,r){return he(n,t,e)??r??b(e)}var Pe=g`@container (width<=30rem){table.stacked,table.stacked caption,table.stacked tbody,table.stacked tr,table.stacked td{width:100%;min-width:0;display:block}table.stacked thead{display:none}table.stacked tr{border-bottom:1px solid var(--roxy-border);padding-block:var(--roxy-space-sm)}table.stacked tr:last-child{border-bottom:0}table.stacked td{padding:calc(var(--roxy-space-unit) / 2) 0;white-space:normal;border:0}table.stacked td:empty{display:none}table.stacked td[data-inline]{width:auto;margin-inline-end:var(--roxy-space-md);display:inline-block}table.stacked td[data-label]:before{content:attr(data-label) " ";color:var(--roxy-muted)}}`;var O=class extends p{renderData(t){let e=this.effectiveLang(),r=t.chosen,o=t.input?.text??t.input?.textHebrew??"";return d`<article class="card" part="card" aria-labelledby="gematria-title"><header class="head" part="header"><h2 id="gematria-title">${o?`${this.t("Gematria")} \xB7 ${o}`:this.t("Gematria")}</h2>${r?.hebrew?d`<span class="hebrew" lang="he" dir="rtl">${r.hebrew}</span>`:a} ${this.chosenForm(t)?.romanization?d`<span class="roman">${this.chosenForm(t)?.romanization}</span>`:a} ${r?.rule?d`<p class="rule">${r.rule}</p>`:a}</header>${this.renderLetters(e,this.chosenForm(t)?.letters)} ${this.renderValues(e,t.values,this.t("Cipher values"))} ${this.renderForms(e,t)} ${this.renderTransformations(e,t.transformations)} ${this.renderLatin(e,t.latinValues)} ${this.renderMatches(e,t.matches)} ${this.renderConventions(t.conventions)}</article>`}chosenForm(t){let e=t.hebrewForms??[];return e.find(r=>r.hebrew===t.chosen?.hebrew)??e[0]}renderLetters(t,e){let r=e??[];return r.length===0?a:d`<section part="section letters"><h3>${this.t("Letters")}</h3><div class="letters" part="chart" dir="rtl">${r.map(o=>d`<div class="${`letter${o.isFinal?" is-final":""}`}" dir="ltr" title="${$(o.isFinal?this.t("Final form"):void 0)}"><span class="glyph" lang="he">${o.glyph??""}</span> <span class="name">${o.name??""}</span> <span class="num">${k(t,o.value)}</span></div>`)}</div>${r.some(o=>o.isFinal)?d`<p class="legend" part="legend"><span class="swatch"></span>${this.t("Final form")}</p>`:a}</section>`}renderValues(t,e,r){let o=(e??[]).filter(s=>typeof s.value=="number");if(o.length===0)return a;let i=o.some(s=>(s.alternateValues??[]).length>0);return d`<section part="section values"><h3>${r}</h3><div class="scroll" tabindex="0" role="region" aria-label="${r}"><table><thead><tr><th>${this.t("Cipher")}</th><th>${this.t("Value")}</th>${i?d`<th>${this.t("Also published")}</th>`:a}</tr></thead><tbody>${o.map(s=>d`<tr><td>${b(s.id??"")}</td><td class="num">${k(t,s.value)}</td>${i?d`<td class="num">${(s.alternateValues??[]).map(c=>k(t,c)).join(", ")}</td>`:a}</tr>`)}</tbody></table></div>${this.renderProvenance(o)}</section>`}renderProvenance(t){let e=new Map;for(let r of t)r.tradition&&!e.has(r.tradition)&&e.set(r.tradition,r.source);return e.size===0?a:d`<p class="provenance"><span class="roxy-label">${this.t("Tradition")}</span> ${[...e].map(([r,o],i)=>d`${i>0?" \xB7 ":""}${b(r)}${ae(o)?d`<a class="src" href="${o}" target="_blank" rel="noopener noreferrer">${this.t("Source")}</a>`:a}`)}</p>`}renderForms(t,e){let r=e.hebrewForms??[];return r.length<2?a:d`<section part="section spellings"><h3>${this.t("Spellings")}</h3><ul class="forms">${r.map(o=>d`<li class="form"><div><span class="hebrew" lang="he" dir="rtl">${o.hebrew??""}</span> ${o.hebrew===e.chosen?.hebrew?d`<span class="chosen roxy-chip" data-tone="success">${this.t("Chosen")}</span>`:a}</div><span class="roman">${o.romanization??""}</span> ${o.rule?d`<p class="rule">${o.rule}</p>`:a} ${this.renderFormTotals(t,o)}</li>`)}</ul></section>`}renderFormTotals(t,e){let r=(e.values??[]).find(o=>typeof o.value=="number");return r?d`<p class="rule"><span class="roxy-label">${b(r.id??"")}</span> ${k(t,r.value)}</p>`:a}renderTransformations(t,e){let r=e??[];return r.length===0?a:d`<section part="section substitutions"><h3>${this.t("Substitutions")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Substitutions")}"><table><thead><tr><th>${this.t("Cipher")}</th><th>${this.t("Output")}</th><th>${this.t("Value")}</th></tr></thead><tbody>${r.map(o=>d`<tr><td>${b(o.id??"")}</td><td>${o.output?d`<span lang="he" dir="rtl">${o.output}</span>`:a} ${o.outputRomanization?d`<span class="roman">${o.outputRomanization}</span>`:a}</td><td class="num">${k(t,o.value)}</td></tr>`)}</tbody></table></div></section>`}renderLatin(t,e){let r=e??[];return r.length===0?a:d`<section part="section latin-ciphers"><h3>${this.t("Latin ciphers")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Latin ciphers")}"><table class="stacked"><thead><tr><th>${this.t("Cipher")}</th><th>${this.t("Value")}</th><th>${this.t("Tradition")}</th></tr></thead><tbody>${r.map(o=>d`<tr><td data-label="${this.t("Cipher")}">${b(o.id??"")} ${o.lineage?d`<p class="lineage">${o.lineage}</p>`:a}</td><td class="num" data-label="${this.t("Value")}">${k(t,o.value)}</td><td data-label="${this.t("Tradition")}">${b(o.tradition??"")}</td></tr>`)}</tbody></table></div></section>`}renderMatches(t,e){let r=e??[];return r.length===0?a:d`<section part="section matches"><h3>${this.t("Equal values")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Equal values")}"><table class="stacked"><thead><tr><th>${this.t("Word")}</th><th>${this.t("Meaning")}</th><th>${this.t("Value")}</th></tr></thead><tbody>${r.map(o=>d`<tr><td data-label="${this.t("Word")}"><span lang="he" dir="rtl">${o.hebrew??""}</span> <span class="roman">${o.romanization??""}</span></td><td data-label="${this.t("Meaning")}">${o.meaning??""} ${o.note&&!this.hideReadings?d`<p class="match-note" part="reading">${o.note}</p>`:a}</td><td class="num" data-label="${this.t("Value")}">${k(t,o.value)}</td></tr>`)}</tbody></table></div></section>`}renderConventions(t){let e=this.effectiveLang(),r=[];for(let o of["transliteration","misparGadol"]){let i=t?.[o];i&&r.push([Fe(e,o),Oe(e,o,i)])}return r.length===0?a:d`<p class="provenance">${r.map(([o,i],s)=>d`${s>0?" \xB7 ":""}<span class="roxy-label">${o}</span>${i}`)}</p>`}};O.endpoints=Dt,O.styles=[rt,Pe,g`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}section>h3{margin-block-end:var(--roxy-space-sm)}.head{justify-items:start;gap:calc(var(--roxy-space-unit) / 2);min-width:0;display:grid}.hebrew{font-size:calc(var(--roxy-text-xl) * 1.3);font-weight:var(--roxy-weight-bold);line-height:1.4}.roman{color:var(--roxy-secondary);font-size:var(--roxy-text-sm)}.rule{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.provenance .roxy-label,.rule .roxy-label{font-size:inherit;margin-inline-end:var(--roxy-space-xs)}.src{margin-inline-start:var(--roxy-space-xs)}.letters{gap:var(--roxy-space-xs);flex-wrap:wrap;display:flex}.letter{justify-items:center;gap:calc(var(--roxy-space-unit) / 2);min-inline-size:5ch;padding:var(--roxy-space-xs) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);display:grid}.letter .glyph{font-size:var(--roxy-text-lg);line-height:1.3}.letter .name{color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.letter .num{font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.letter.is-final{border-color:var(--roxy-accent)}.legend{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:var(--roxy-space-sm)}.legend .swatch{block-size:.6lh;inline-size:.6lh;border:1px solid var(--roxy-accent);border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td.num{white-space:nowrap}.provenance{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:var(--roxy-space-sm)}.lineage,.match-note{color:var(--roxy-secondary);font-size:var(--roxy-text-xs);white-space:normal;margin-block-start:calc(var(--roxy-space-unit) / 2)}a{color:var(--roxy-accent-ink)}.forms{gap:var(--roxy-space-md);margin:0;padding:0;list-style:none;display:grid}.form{gap:var(--roxy-space-xs);min-width:0;border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm);display:grid}.form:first-child{border-block-start:0;padding-block-start:0}`],O=h([_e("roxy-gematria")],O);return Ie(vr)})();/*! Bundled license information:
|
|
4
4
|
|
|
5
5
|
@lit/reactive-element/css-tag.js:
|
|
6
6
|
(**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var RoxyUI_gochara_table=(()=>{var H=Object.defineProperty;var At=Object.getOwnPropertyDescriptor;var je=Object.getOwnPropertyNames;var Ke=Object.prototype.hasOwnProperty;var He=(r,t)=>{for(var e in t)H(r,e,{get:t[e],enumerable:true})},Be=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of je(t))!Ke.call(r,o)&&o!==e&&H(r,o,{get:()=>t[o],enumerable:!(n=At(t,o))||n.enumerable});return r};var ze=r=>Be(H({},"__esModule",{value:true}),r),h=(r,t,e,n)=>{for(var o=n>1?void 0:n?At(t,e):t,s=r.length-1,i;s>=0;s--)(i=r[s])&&(o=(n?i(t,e,o):i(o))||o);return n&&o&&H(t,e,o),o};var Gr={};He(Gr,{ROXY_UI_TOKENS_STYLE_ID:()=>Q,RoxyGocharaTable:()=>P,injectRoxyTokens:()=>tt});var B=globalThis,z=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,dt=Symbol(),_t=new WeakMap,L=class{constructor(t,e,n){if(this._$cssResult$=true,n!==dt)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(z&&t===void 0){let n=e!==void 0&&e.length===1;n&&(t=_t.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&_t.set(e,t))}return t}toString(){return this.cssText}},Ct=r=>new L(typeof r=="string"?r:r+"",void 0,dt),f=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((n,o,s)=>n+(i=>{if(i._$cssResult$===true)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[s+1],r[0]);return new L(e,r,dt)},Pt=(r,t)=>{if(z)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let n=document.createElement("style"),o=B.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=e.cssText,r.appendChild(n)}},lt=z?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let n of t.cssRules)e+=n.cssText;return Ct(e)})(r):r;var{is:qe,defineProperty:Ye,getOwnPropertyDescriptor:Ve,getOwnPropertyNames:We,getOwnPropertySymbols:Je,getPrototypeOf:Ze}=Object,q=globalThis,Rt=q.trustedTypes,Xe=Rt?Rt.emptyScript:"",Qe=q.reactiveElementPolyfillSupport,U=(r,t)=>r,M={toAttribute(r,t){switch(t){case Boolean:r=r?Xe:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Y=(r,t)=>!qe(r,t),Ft={attribute:true,type:String,converter:M,reflect:false,useDefault:false,hasChanged:Y};Symbol.metadata??=Symbol("metadata"),q.litPropertyMetadata??=new WeakMap;var v=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ft){if(e.state&&(e.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=true),this.elementProperties.set(t,e),!e.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(t,n,e);o!==void 0&&Ye(this.prototype,t,o)}}static getPropertyDescriptor(t,e,n){let{get:o,set:s}=Ve(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:o,set(i){let l=o?.call(this);s?.call(this,i),this.requestUpdate(t,l,n)},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ft}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;let t=Ze(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(U("properties"))){let e=this.properties,n=[...We(e),...Je(e)];for(let o of n)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[n,o]of e)this.elementProperties.set(n,o)}this._$Eh=new Map;for(let[e,n]of this.elementProperties){let o=this._$Eu(e,n);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)e.unshift(lt(o))}else t!==void 0&&e.push(lt(t));return e}static _$Eu(t,e){let n=e.attribute;return n===false?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Pt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){let n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===true){let s=(n.converter?.toAttribute!==void 0?n.converter:M).toAttribute(e,n.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){let n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=n.getPropertyOptions(o),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:M;this._$Em=o;let l=i.fromAttribute(e,s.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(t,e,n,o=false,s){if(t!==void 0){let i=this.constructor;if(o===false&&(s=this[t]),n??=i.getPropertyOptions(t),!((n.hasChanged??Y)(s,e)||n.useDefault&&n.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,n))))return;this.C(t,e,n)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:o,wrapped:s},i){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),s!==true||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),o===true&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=true;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[o,s]of n){let{wrapped:i}=s,l=this[o];i!==true||this._$AL.has(o)||l===void 0||this.C(o,void 0,s,l)}}let t=false,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(e)):this._$EM()}catch(n){throw t=false,this._$EM(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=false}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[U("elementProperties")]=new Map,v[U("finalized")]=new Map,Qe?.({ReactiveElement:v}),(q.reactiveElementVersions??=[]).push("2.1.2");var gt=globalThis,Ot=r=>r,V=gt.trustedTypes,Lt=V?V.createPolicy("lit-html",{createHTML:r=>r}):void 0,Gt="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,jt="?"+E,tr=`<${jt}>`,A=document,I=()=>A.createComment(""),D=r=>r===null||typeof r!="object"&&typeof r!="function",ft=Array.isArray,er=r=>ft(r)||typeof r?.[Symbol.iterator]=="function",ct=`[
|
|
2
2
|
\f\r]`,N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ut=/-->/g,Mt=/>/g,$=RegExp(`>|${ct}(?:([^\\s"'>=/]+)(${ct}*=${ct}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Nt=/'/g,It=/"/g,Kt=/^(?:script|style|textarea|title)$/i,xt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),c=xt(1),qr=xt(2),Yr=xt(3),_=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Dt=new WeakMap,k=A.createTreeWalker(A,129);function Ht(r,t){if(!ft(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Lt!==void 0?Lt.createHTML(t):t}var rr=(r,t)=>{let e=r.length-1,n=[],o,s=t===2?"<svg>":t===3?"<math>":"",i=N;for(let l=0;l<e;l++){let a=r[l],y,u,m=-1,b=0;for(;b<a.length&&(i.lastIndex=b,u=i.exec(a),u!==null);)b=i.lastIndex,i===N?u[1]==="!--"?i=Ut:u[1]!==void 0?i=Mt:u[2]!==void 0?(Kt.test(u[2])&&(o=RegExp("</"+u[2],"g")),i=$):u[3]!==void 0&&(i=$):i===$?u[0]===">"?(i=o??N,m=-1):u[1]===void 0?m=-2:(m=i.lastIndex-u[2].length,y=u[1],i=u[3]===void 0?$:u[3]==='"'?It:Nt):i===It||i===Nt?i=$:i===Ut||i===Mt?i=N:(i=$,o=void 0);let w=i===$&&r[l+1].startsWith("/>")?" ":"";s+=i===N?a+tr:m>=0?(n.push(y),a.slice(0,m)+Gt+a.slice(m)+E+w):a+E+(m===-2?l:w)}return[Ht(r,s+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},G=class r{constructor({strings:t,_$litType$:e},n){let o;this.parts=[];let s=0,i=0,l=t.length-1,a=this.parts,[y,u]=rr(t,e);if(this.el=r.createElement(y,n),k.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=k.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let m of o.getAttributeNames())if(m.endsWith(Gt)){let b=u[i++],w=o.getAttribute(m).split(E),K=/([.?@])?(.*)/.exec(b);a.push({type:1,index:s,name:K[2],strings:w,ctor:K[1]==="."?ht:K[1]==="?"?ut:K[1]==="@"?mt:F}),o.removeAttribute(m)}else m.startsWith(E)&&(a.push({type:6,index:s}),o.removeAttribute(m));if(Kt.test(o.tagName)){let m=o.textContent.split(E),b=m.length-1;if(b>0){o.textContent=V?V.emptyScript:"";for(let w=0;w<b;w++)o.append(m[w],I()),k.nextNode(),a.push({type:2,index:++s});o.append(m[b],I())}}}else if(o.nodeType===8)if(o.data===jt)a.push({type:2,index:s});else{let m=-1;for(;(m=o.data.indexOf(E,m+1))!==-1;)a.push({type:7,index:s}),m+=E.length-1}s++}}static createElement(t,e){let n=A.createElement("template");return n.innerHTML=t,n}};function R(r,t,e=r,n){if(t===_)return t;let o=n!==void 0?e._$Co?.[n]:e._$Cl,s=D(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(false),s===void 0?o=void 0:(o=new s(r),o._$AT(r,e,n)),n!==void 0?(e._$Co??=[])[n]=o:e._$Cl=o),o!==void 0&&(t=R(r,o._$AS(r,t.values),o,n)),t}var pt=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:n}=this._$AD,o=(t?.creationScope??A).importNode(e,true);k.currentNode=o;let s=k.nextNode(),i=0,l=0,a=n[0];for(;a!==void 0;){if(i===a.index){let y;a.type===2?y=new j(s,s.nextSibling,this,t):a.type===1?y=new a.ctor(s,a.name,a.strings,this,t):a.type===6&&(y=new yt(s,this,t)),this._$AV.push(y),a=n[++l]}i!==a?.index&&(s=k.nextNode(),i++)}return k.currentNode=A,o}p(t){let e=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}},j=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??true}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=R(this,t,e),D(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):er(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!==d&&D(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=G.createElement(Ht(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(e);else{let s=new pt(o,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=Dt.get(t.strings);return e===void 0&&Dt.set(t.strings,e=new G(t)),e}k(t){ft(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,n,o=0;for(let s of t)o===e.length?e.push(n=new r(this.O(I()),this.O(I()),this,this.options)):n=e[o],n._$AI(s),o++;o<e.length&&(this._$AR(n&&n._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let n=Ot(t).nextSibling;Ot(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},F=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,o,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=d}_$AI(t,e=this,n,o){let s=this.strings,i=false;if(s===void 0)t=R(this,t,e,0),i=!D(t)||t!==this._$AH&&t!==_,i&&(this._$AH=t);else{let l=t,a,y;for(t=s[0],a=0;a<s.length-1;a++)y=R(this,l[n+a],e,a),y===_&&(y=this._$AH[a]),i||=!D(y)||y!==this._$AH[a],y===d?t=d:t!==d&&(t+=(y??"")+s[a+1]),this._$AH[a]=y}i&&!o&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ht=class extends F{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},ut=class extends F{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},mt=class extends F{constructor(t,e,n,o,s){super(t,e,n,o,s),this.type=5}_$AI(t,e=this){if((t=R(this,t,e,0)??d)===_)return;let n=this._$AH,o=t===d&&n!==d||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==d&&(n===d||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},yt=class{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){R(this,t)}};var nr=gt.litHtmlPolyfillSupport;nr?.(G,j),(gt.litHtmlVersions??=[]).push("3.3.3");var Bt=(r,t,e)=>{let n=e?.renderBefore??t,o=n._$litPart$;if(o===void 0){let s=e?.renderBefore??null;n._$litPart$=o=new j(t.insertBefore(I(),s),s,void 0,e??{})}return o._$AI(r),o};var bt=globalThis,T=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Bt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};T._$litElement$=true,T.finalized=true,bt.litElementHydrateSupport?.({LitElement:T});var or=bt.litElementPolyfillSupport;or?.({LitElement:T});(bt.litElementVersions??=[]).push("4.2.2");var zt=[{endpoint:"vedic-astrology/transit",method:"POST"}];function W(r){return r.toLowerCase().replace(/[\s_-]+/g," ").trim()}function qt(r){return r?r.charAt(0).toUpperCase()+r.slice(1).toLowerCase():""}function Yt(r){return r.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var sr=new RegExp("(?![\\d#*])\\p{Emoji}","gu"),ir=r=>r.replace(sr,"$&\uFE0E"),J=r=>Object.fromEntries(Object.entries(r).map(([t,e])=>[t,ir(e)])),ar=(r,t)=>t?r[W(t)]:void 0,dr=J({sun:"\u2609",moon:"\u263D",mercury:"\u263F",venus:"\u2640",earth:"\u2641",mars:"\u2642",jupiter:"\u2643",saturn:"\u2644",uranus:"\u2645",neptune:"\u2646",pluto:"\u2BD3",rahu:"\u260A",ketu:"\u260B",ascendant:"Asc",midheaven:"MC","part of fortune":"\u2297",vertex:"Vx",lagna:"La","north node":"\u260A","south node":"\u260B",chiron:"\u26B7",lilith:"\u26B8","black moon lilith":"\u26B8"}),Vt=r=>ar(dr,r);var cn=J({aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"});var pn=J({conjunction:"\u260C",semisextile:"\u26BA","semi sextile":"\u26BA",semisquare:"\u2220","semi square":"\u2220",sextile:"\u26B9",square:"\u25A1",trine:"\u25B3",sesquiquadrate:"\u26BC",quincunx:"\u26BB",opposition:"\u260D"});var hn=J({heaven:"\u2630",lake:"\u2631",fire:"\u2632",thunder:"\u2633",wind:"\u2634",water:"\u2635",mountain:"\u2636",earth:"\u2637"});var lr={attribute:true,type:String,converter:M,reflect:false,hasChanged:Y},cr=(r=lr,t,e)=>{let{kind:n,metadata:o}=e,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),n==="setter"&&((r=Object.create(r)).wrapped=true),s.set(e.name,r),n==="accessor"){let{name:i}=e;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(i,a,r,true,l)},init(l){return l!==void 0&&this.C(i,void 0,r,l),l}}}if(n==="setter"){let{name:i}=e;return function(l){let a=this[i];t.call(this,l),this.requestUpdate(i,a,r,true,l)}}throw Error("Unsupported decorator location: "+n)};function g(r){return(t,e)=>typeof e=="object"?cr(r,t,e):((n,o,s)=>{let i=o.hasOwnProperty(s);return o.constructor.createProperty(s,n),i?Object.getOwnPropertyDescriptor(o,s):void 0})(r,t,e)}function x(r){return g({...r,state:true,attribute:false})}var C=r=>r??d;var Wt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function St(r){if(r.lang)return r.lang;if(typeof document>"u")return;let t=r.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var pr={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function vt(r,t){let e=r.toLowerCase();return t.find(n=>n.toLowerCase()===e)}function Jt(r,t=Wt){let e=St(r);if(!e)return;let n=vt(e,t);if(n)return n;let o=e.toLowerCase().split("-"),s=o[0];if(s==="zh"){let i=o.find(l=>l==="hans"||l==="hant")??pr[o[1]??""];return i?vt(`zh-${i}`,t):void 0}return vt(s,t)}var Qt="symbols";var hr={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},wt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Zt='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Xt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',X={"fraunces-jost":{name:"Fraunces with Jost",sans:wt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:wt,display:wt},geist:{name:"Geist",sans:Zt,display:Zt},system:{name:"System",sans:Xt,display:Xt}};function te(r){let{sans:t,display:e}=X[r];return Object.keys(hr).filter(n=>`${t} ${e}`.includes(`"${n}"`))}var ee="1.6.0";var ur=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,mr=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function re(r,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let n=(ur.exec(e.pathname)??mr.exec(e.pathname))?.[1];if(n!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${r}/dist`:`${e.origin}${n}`}var xr={},yr="color-mix(in oklab, var(--roxy-accent) 70%, black)",gr="var(--roxy-accent)",fr="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",ne=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function oe(r){return r!==void 0&&Object.hasOwn(X,r)}function se(r){let t=[];return r.brandColor&&ne.test(r.brandColor)&&t.push(`--roxy-primary:${r.brandColor}`),r.brandAccent&&ne.test(r.brandAccent)&&t.push(`--roxy-accent:${r.brandAccent}`,`--roxy-accent-ink:light-dark(${yr},${gr})`,`--roxy-ring:${fr}`),t.join(";")}function ie(r,t){if(oe(t))return t;let e=r.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=r.shadowRoot?.firstElementChild,s=o?.localName==="style"?o:null;s?.sheet&&(s.sheet.disabled=true);let i,l,a;try{let y=globalThis.getComputedStyle(r),u=m=>y.getPropertyValue(m).trim();i=u("--roxy-font-sans"),l=u("--roxy-font-display"),a=u("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||l))return oe(a)?a:void 0}function ae(r){let{sans:t,display:e}=X[r];return`--roxy-font:${r};--roxy-font-sans:${t};--roxy-font-display:${e}`}var de=re(ee,globalThis.document?.currentScript?.src||xr.url);function le(r,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${r}`;if(document.getElementById(e))return;let n=document.createElement("link");n.id=e,n.rel="stylesheet",n.href=`${t}/styles/fonts/${r}.css`,document.head.append(n)}function ce(r,t=de){te(r).length>0&&le(r,t)}function pe(r=de){le(Qt,r)}var he='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var Q="roxy-ui-tokens";function tt(){if(typeof document>"u")return null;let r=document.getElementById(Q);if(r)return r;let t=document.createElement("style");return t.id=Q,t.textContent=he,document.head.prepend(t),t}var ue="__ROXY_UI_I18N__";function me(){let r=globalThis,t=r[ue];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return r[ue]=e,e}function br(r,t){return t?r.replace(/\{\{(\w+)\}\}/g,(e,n)=>n in t?String(t[n]??""):e):r}function ye(r,t,e){return br(vr(r,t)??t,e)}function vr(r,t){if(!r)return;let{catalogs:e}=me(),n=r.toLowerCase();return(e[n]??e[n.split("-")[0]])?.[W(t)]}function ge(r){let{listeners:t}=me();return t.add(r),()=>{t.delete(r)}}var et=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=ge(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var rt=class extends T{constructor(){super();this.translator=(e,n)=>this.t(e,n);new et(this)}connectedCallback(){super.connectedCallback(),tt()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&pe()}fontDeclarations(e){let n=ie(this,e);return n?(ce(n),ae(n)):""}renderFontStyle(){let e=this.fontDeclarations();return e?c`<style>:host{${e}}</style>`:d}t(e,n){return ye(this.effectiveLang(),e,n)}effectiveLang(){return St(this)}};var fe=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function xe(r){return r?c`<span class="roxy-glyph" aria-hidden="true">${r}</span>`:d}var be=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var Sr=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);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}`,nt=[Sr,be,fe];var wr="__cols",Er="__rows";function Tr(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function ot(r){if(Array.isArray(r)){let s=false,i=r.map(l=>{let a=ot(l);return a!==l&&(s=true),a});return s?i:r}if(!Tr(r))return r;let t=r[wr],e=r[Er];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(r).length===2)return e.map(s=>{let i={};return t.forEach((l,a)=>{i[l]=ot(s[a])}),i});let n=false,o={};for(let[s,i]of Object.entries(r)){let l=ot(i);l!==i&&(n=true),o[s]=l}return n?o:r}function ve(r){return ot(r)}function Se(r,t){return r.find(e=>e.attrs&&Object.entries(e.attrs).every(([n,o])=>t[n]===o))??r[0]}var $r="pk_live_YOUR_KEY",we={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function Ee(r){if(r)return r===$r?we.sample:r.startsWith("pk_")?void 0:we.secret}function Te(r,t,e={}){e.warn&&console.warn(t.message),r.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:true,composed:true}))}var $e="https://roxyapi.com/api/v2";async function kr(r){try{let t=await r.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(n=>typeof n.path=="string"&&typeof n.message=="string").map(n=>({path:n.path,message:n.message})):null;return{message:t.error,issues:e?.length?e:null,worded:true,...t.code?{code:t.code}:{}}}}catch{}return{message:`Request failed (${r.status})`,issues:null,worded:false}}var ke={fromAttribute:r=>{if(r!=null){try{let t=JSON.parse(r);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.")}}},O=class extends Error{constructor(e,n=null,o=true,s,i){super(e);this.issues=n;this.worded=o;this.status=s;this.code=i}};function Ae(r){return r.submitUrl?void 0:Ee(r.publishableKey)}async function Et(r,t,e){let n=Ae(r);if(n)throw new O(n.message);let o=r.submitUrl?await fetch(r.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:Ar(t,r.submitContext),signal:e}):await _r(r,t,e);if(!o.ok){let s=await kr(o);throw new O(s.message,s.issues,s.worded,o.status,s.code)}return await o.json()}function Ar(r,t){return JSON.stringify(t?{...r,context:t}:r)}function _r(r,t,e){let n=new URL(`${r.baseUrl??$e}${t.path}`,document.baseURI);for(let[s,i]of Object.entries(t.query??{}))i!=null&&n.searchParams.set(s,String(i));let o={Accept:"application/json"};return r.publishableKey&&(o["X-API-Key"]=r.publishableKey),t.body!=null&&(o["Content-Type"]="application/json"),fetch(n,{method:t.method??"GET",headers:o,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var st=class{constructor(t){this.baseUrl=$e;this.worded=true;this.failure={};this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=true,this.failure={};let e=Ae(this);if(e){this.host.error=e.message,Te(this.host,e);return}this.abort?.abort();let n=new AbortController;this.abort=n,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let o=await Et(this,t,n.signal);if(n.signal.aborted)return;this.host.data=o}catch(o){if(n.signal.aborted||o?.name==="AbortError")return;o instanceof O&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof O&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===n&&(this.abort=void 0),n.signal.aborted||(this.host.loading=false)}}};function _e(r,t,e,n=[]){let o={...e},s=`/${r.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(y,u)=>{let m=o[u];return delete o[u],encodeURIComponent(String(m??""))}),i=new Set(n),l={},a={};for(let[y,u]of Object.entries(o))u===void 0||u===""||(t==="GET"||i.has(y)?l[y]=u:a[y]=u);return{path:s,method:t,query:l,body:t==="POST"?a:void 0}}function Ce(){return c`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var Po=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Uo=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function Pe(r,t,e){let n=r.filter(o=>!!o.body);return n.length===0?d:c`<section class="block" part="section readings"><h3>${e}</h3>${n.map((o,s)=>c`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${xe(o.glyph)} ${o.label}</span> ${Ce()} ${o.aside?c`<span class="interp-aside"><small>${o.aside}</small></span>`:d}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??d}</div></details>`)}</section>`}var Cr="roxy-data";function Pr(r){return r.nodeName==="SCRIPT"&&r.getAttribute("type")==="application/json"}var it=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(Pr(t)&&t.classList.contains(Cr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends rt{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,n=this.listKey,o=this.listRows();if(!(!e||!n||!o)){this.moreLoading=true,this.moreError=null;try{let s=await Et(this.fetcher,{...e,query:{...e.query,offset:o.length}});if(this.lastRequest!==e)return;let i=s[n];this.data={...this.data,...s,[n]:[...o,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===e&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let n=this.selfFetch();if(!n)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(_e(n.endpoint,n.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new it(this),this.fetcher=new st(this)}static{this.styles=[nt]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let n=ve(this.data);n!==this.data&&(this.data=n)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:Se(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return c`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(n){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,n),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:n},bubbles:true,composed:true})),customElements.get("roxy-data")?c`<roxy-data .data="${e}" lang="${C(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(s=>s.trim().toLowerCase()).filter(s=>/^[a-z][a-z0-9-]*$/.test(s)),n=[se(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!n)return d;let o=(n?`:host{${n}}`:"")+e.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){display:none!important}`).join("");return c`<style>${o}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,n,o){return this.hideReadings?d:Pe(e,n,this.t(o??"Reading"))}renderResult(e){let n=c`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?c`${n}${this.renderAttribution()}`:n}renderWithForm(e){return c`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?d:this.renderErrorBanner(this.error):this.data==null?d:this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),n=this.data?.total;return!this.lastRequest||!e||typeof n!="number"?d:e.length>=n?d:c`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?c`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:d}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let n=this.openedRow??document.createElement(this.rowDetail.tag);n.publishableKey=this.publishableKey,n.baseUrl=this.baseUrl,n.submitUrl=this.submitUrl,n.submitContext=this.submitContext,n.hideReadings=this.hideReadings,n.hideSections=this.hideSections;let o=this.effectiveLang();o&&n.setAttribute("lang",o),this.openedRow=n,this.openedRowId=e,n.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:Jt(this)}}).then(()=>n.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return c`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(d):this.renderEmpty()}renderForm(){let e=this.selfFetch();return c`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${C(this.specUrl)}" publishable-key="${C(this.publishableKey)}" location-url="${C(this.locationUrl)}" submit-label="${C(this.submitLabel)}" lang="${C(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return c`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return c`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let n=!!this.selfFetch();if(n&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return n?c`${o}${this.renderForm()}`:o}renderErrorBanner(e){return c`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};h([g({attribute:false})],p.prototype,"data",2),h([g({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([g({type:String})],p.prototype,"method",2),h([g({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([g({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([g({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([g({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([g({attribute:"submit-context",converter:ke})],p.prototype,"submitContext",2),h([g({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([g({type:Boolean})],p.prototype,"remember",2),h([g({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([g({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([g({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([g({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([g({type:String})],p.prototype,"font",2),h([g({type:String})],p.prototype,"hemisphere",2),h([g({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([g({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([g({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var Re=r=>t=>{customElements.get(r)||customElements.define(r,t)};function Rr(r){let t=r%360;return t<0?t+360:t}function Fe(r){return Or(Rr(r)%30)}function Fr(r){let t=Math.floor(r);return{degree:t,minute:Math.floor((r-t)*60)}}function Or(r){let{degree:t,minute:e}=Fr(r);return`${t}\xB0${String(e).padStart(2,"0")}'`}var Tt=/^\d{4}-\d{2}-\d{2}$/,Lr=/^\d{4}-\d{2}$/,Ue=/^\d{2}:\d{2}(:\d{2})?$/,Ur=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,Oe=new Map;function at(r){if(!r)return["en"];let t=Oe.get(r);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(r)[0]??"en"}catch{e="en"}return Oe.set(r,e),[e,"en"]}var Le=new Map;function Mr(r){let t=r??"",e=Le.get(t);if(e)return e;let o={hour:new Intl.DateTimeFormat(at(r),{timeStyle:"short",timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2e3,0,1,1))).find(s=>s.type==="hour")?.value?.length===2?"2-digit":"numeric",minute:"2-digit"};return Le.set(t,o),o}function Me(r){let t=Ue.test(r)?`1970-01-01T${r}`:Tt.test(r)?`${r}T00:00:00`:Lr.test(r)?`${r}-01T00:00:00`:Ur.test(r)?r.replace(" ","T"):null;return t?{d:new Date(`${t}Z`),timeZone:"UTC"}:{d:new Date(r)}}function Nr(r,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:n}=Me(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(at(r),{month:"short",day:"numeric",year:"numeric",timeZone:n})}function S(r,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(at(r),{maximumFractionDigits:e})}function Ir(r){return(r.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}function $t(r){return qt(Ir(r))}var Dr={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function Ne(r,t,e){let n=typeof t=="string"?Dr[t]??Yt(t):"",o=typeof e=="number"?`${S(r,e,2)}\xB0`:"";return n&&o?`${n} (${o})`:n||o}function kt(r,t,e,n=false){let o=typeof t=="string"&&Tt.test(t)&&typeof e=="string"&&Ue.test(e)?`${t}T${e}`:t;if(typeof o!="string"||o.length===0)return"";if(Tt.test(o))return Nr(r,o);let{d:s,timeZone:i}=Me(o);return Number.isNaN(s.getTime())?o:s.toLocaleString(at(r),{month:"short",day:"numeric",year:"numeric",...Mr(r),...n?{second:"2-digit"}:{},timeZone:i})}var Ie=f`.roxy-frame{color:var(--roxy-muted);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-normal);margin:0}.roxy-frame .roxy-frame-deg{font-variant-numeric:tabular-nums}`;function De(r,t,e){if(!t?.ayanamsa)return d;let n=Ne(r,t.ayanamsa);if(!n)return d;let o=typeof t.ayanamsaDegrees=="number"?S(r,t.ayanamsaDegrees,4):void 0;return c`<p class="roxy-frame">${o===void 0?e("Sidereal frame: {{frame}}",{frame:n}):e("Sidereal frame: {{frame}}, {{degrees}}\xB0 subtracted",{frame:n,degrees:o})}</p>`}var Ge=8,P=class extends p{renderData(t){let e=t.transitingPlanets??[];if(!e.length)return this.renderEmpty();let n=t.keyTransits??[],o=t.natalPlanets?.find(s=>s.name==="Moon")?.sign;return c`<div class="wrap" part="card" aria-label="${this.t("Gochara transits")}"><header class="head" part="header"><h2>${this.t("Gochara")}</h2><p class="sub">${this.t("Where each graha transits at {{when}}, read against the natal chart of {{birth}}.",{when:kt(this.effectiveLang(),t.transitDatetime),birth:kt(this.effectiveLang(),t.birthDatetime)})}</p>${o?c`<p class="sub">${this.t("Gochara houses are counted from the natal Moon in {{sign}}.",{sign:o})}</p>`:d} ${De(this.effectiveLang(),t.frame,this.translator)}</header><div part="table">${e.map(s=>this.renderPlanet(s))}</div>${n.length&&!this.hideReadings?c`<section class="key" part="section key-transits"><h3>${this.t("Key transits")}</h3>${n.map(s=>c`<p class="key-item">${s.description}</p>`)}</section>`:d}</div>`}renderPlanet(t){let e=Vt(t.name)??"",n=typeof t.longitude=="number"?Fe(t.longitude):void 0;return c`<article class="row"><div class="row-top"><span class="graha">${e?c`<span class="glyph roxy-glyph">${e}</span>`:d}${t.name} </span><span class="pos">${n?`${t.sign} ${n}`:t.sign} </span>${typeof t.houseFromMoon=="number"?c`<span class="house moon roxy-chip">${this.t("house {{n}} from the Moon",{n:t.houseFromMoon})}</span>`:d} ${typeof t.natalHouse=="number"?c`<span class="house lagna roxy-chip">${this.t("house {{n}} from the Lagna",{n:t.natalHouse})}</span>`:d}</div>${this.renderKaksha(t.kaksha)} ${this.renderContacts(this.t("Drishti"),t.drishtiToNatal)} ${this.renderContacts(this.t("Aspects"),t.aspectsToNatal)}</article>`}renderContacts(t,e){return e?.length?c`<p class="aspects"><span class="contact-label">${t}</span> ${e.map(n=>typeof n.orb=="number"?this.t("{{aspect}} natal {{planet}} ({{orb}}\xB0)",{aspect:$t({type:n.aspectType}),planet:n.natalPlanet,orb:S(this.effectiveLang(),n.orb,1)}):this.t("{{aspect}} natal {{planet}}",{aspect:$t({type:n.aspectType}),planet:n.natalPlanet})).join(" \xB7 ")}</p>`:d}renderKaksha(t){if(!t||typeof t.number!="number")return d;let e=t.number,n=t.bindu===true?"yes":t.bindu===false?"no":"",o=Ge,s=t.lord&&typeof t.startDegree=="number"&&typeof t.endDegree=="number"?this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}, spanning {{start}}\xB0 to {{end}}\xB0 of the sign",{n:e,total:o,graha:t.lord,start:S(this.effectiveLang(),t.startDegree,2),end:S(this.effectiveLang(),t.endDegree,2)}):t.lord?this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}",{n:e,total:o,graha:t.lord}):typeof t.startDegree=="number"&&typeof t.endDegree=="number"?this.t("Kaksha {{n}} of {{total}}, spanning {{start}}\xB0 to {{end}}\xB0 of the sign",{n:e,total:o,start:S(this.effectiveLang(),t.startDegree,2),end:S(this.effectiveLang(),t.endDegree,2)}):this.t("Kaksha {{n}} of {{total}}",{n:e,total:o}),i=t.bindu===null||t.bindu===void 0?"":typeof t.binduCount=="number"?t.bindu?this.t("this kaksha lord gave bindu, {{count}} of {{total}} in this sign",{count:t.binduCount,total:o}):this.t("this kaksha lord gave no bindu, {{count}} of {{total}} in this sign",{count:t.binduCount,total:o}):t.bindu?this.t("this kaksha lord gave bindu"):this.t("this kaksha lord gave no bindu");return c`<div class="kaksha-bar" part="chart" role="img" aria-label="${this.t("Kaksha {{n}} of {{total}} within the current sign",{n:e,total:o})}">${Array.from({length:Ge},(l,a)=>c`<span class="seg ${a+1===e?`here ${n}`:""}"></span>`)}</div><p class="meta">${i?`${s} \xB7 ${i}`:s}</p>`}};P.endpoints=zt,P.styles=[nt,Ie,f`.wrap{grid-template-columns:minmax(0,1fr);display:grid;overflow:hidden}.head{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);display:grid}h2,h3,p{margin:0}.sub,.meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.row{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);grid-template-columns:minmax(0,1fr);display:grid}.row-top{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.pos{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.house.moon{border-color:var(--roxy-accent);color:var(--roxy-fg)}.contact-label{font-weight:var(--roxy-weight-bold);margin-inline-end:var(--roxy-space-xs)}.kaksha-bar{block-size:.4lh;margin-block:var(--roxy-space-xs);grid-template-columns:repeat(8,minmax(0,1fr));gap:1px;display:grid}.seg{background:var(--roxy-border);border-radius:var(--roxy-radius-sm)}.seg.here{background:var(--roxy-muted)}.seg.here.yes{background:var(--roxy-success)}.seg.here.no{background:var(--roxy-warning)}.aspects{color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.key{gap:var(--roxy-space-sm);padding:var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);display:grid}.key-item{font-size:var(--roxy-text-sm)}`],P=h([Re("roxy-gochara-table")],P);return ze(Gr)})();/*! Bundled license information:
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Nt=/'/g,It=/"/g,Kt=/^(?:script|style|textarea|title)$/i,xt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),c=xt(1),qr=xt(2),Yr=xt(3),_=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Dt=new WeakMap,k=A.createTreeWalker(A,129);function Ht(r,t){if(!ft(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Lt!==void 0?Lt.createHTML(t):t}var rr=(r,t)=>{let e=r.length-1,n=[],o,s=t===2?"<svg>":t===3?"<math>":"",i=N;for(let l=0;l<e;l++){let a=r[l],y,u,m=-1,b=0;for(;b<a.length&&(i.lastIndex=b,u=i.exec(a),u!==null);)b=i.lastIndex,i===N?u[1]==="!--"?i=Ut:u[1]!==void 0?i=Mt:u[2]!==void 0?(Kt.test(u[2])&&(o=RegExp("</"+u[2],"g")),i=$):u[3]!==void 0&&(i=$):i===$?u[0]===">"?(i=o??N,m=-1):u[1]===void 0?m=-2:(m=i.lastIndex-u[2].length,y=u[1],i=u[3]===void 0?$:u[3]==='"'?It:Nt):i===It||i===Nt?i=$:i===Ut||i===Mt?i=N:(i=$,o=void 0);let w=i===$&&r[l+1].startsWith("/>")?" ":"";s+=i===N?a+tr:m>=0?(n.push(y),a.slice(0,m)+Gt+a.slice(m)+E+w):a+E+(m===-2?l:w)}return[Ht(r,s+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},G=class r{constructor({strings:t,_$litType$:e},n){let o;this.parts=[];let s=0,i=0,l=t.length-1,a=this.parts,[y,u]=rr(t,e);if(this.el=r.createElement(y,n),k.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=k.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let m of o.getAttributeNames())if(m.endsWith(Gt)){let b=u[i++],w=o.getAttribute(m).split(E),K=/([.?@])?(.*)/.exec(b);a.push({type:1,index:s,name:K[2],strings:w,ctor:K[1]==="."?ht:K[1]==="?"?ut:K[1]==="@"?mt:F}),o.removeAttribute(m)}else m.startsWith(E)&&(a.push({type:6,index:s}),o.removeAttribute(m));if(Kt.test(o.tagName)){let m=o.textContent.split(E),b=m.length-1;if(b>0){o.textContent=V?V.emptyScript:"";for(let w=0;w<b;w++)o.append(m[w],I()),k.nextNode(),a.push({type:2,index:++s});o.append(m[b],I())}}}else if(o.nodeType===8)if(o.data===jt)a.push({type:2,index:s});else{let m=-1;for(;(m=o.data.indexOf(E,m+1))!==-1;)a.push({type:7,index:s}),m+=E.length-1}s++}}static createElement(t,e){let n=A.createElement("template");return n.innerHTML=t,n}};function R(r,t,e=r,n){if(t===_)return t;let o=n!==void 0?e._$Co?.[n]:e._$Cl,s=D(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(false),s===void 0?o=void 0:(o=new s(r),o._$AT(r,e,n)),n!==void 0?(e._$Co??=[])[n]=o:e._$Cl=o),o!==void 0&&(t=R(r,o._$AS(r,t.values),o,n)),t}var pt=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:n}=this._$AD,o=(t?.creationScope??A).importNode(e,true);k.currentNode=o;let s=k.nextNode(),i=0,l=0,a=n[0];for(;a!==void 0;){if(i===a.index){let y;a.type===2?y=new j(s,s.nextSibling,this,t):a.type===1?y=new a.ctor(s,a.name,a.strings,this,t):a.type===6&&(y=new yt(s,this,t)),this._$AV.push(y),a=n[++l]}i!==a?.index&&(s=k.nextNode(),i++)}return k.currentNode=A,o}p(t){let e=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}},j=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??true}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=R(this,t,e),D(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):er(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!==d&&D(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=G.createElement(Ht(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(e);else{let s=new pt(o,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=Dt.get(t.strings);return e===void 0&&Dt.set(t.strings,e=new G(t)),e}k(t){ft(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,n,o=0;for(let s of t)o===e.length?e.push(n=new r(this.O(I()),this.O(I()),this,this.options)):n=e[o],n._$AI(s),o++;o<e.length&&(this._$AR(n&&n._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let n=Ot(t).nextSibling;Ot(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},F=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,o,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=d}_$AI(t,e=this,n,o){let s=this.strings,i=false;if(s===void 0)t=R(this,t,e,0),i=!D(t)||t!==this._$AH&&t!==_,i&&(this._$AH=t);else{let l=t,a,y;for(t=s[0],a=0;a<s.length-1;a++)y=R(this,l[n+a],e,a),y===_&&(y=this._$AH[a]),i||=!D(y)||y!==this._$AH[a],y===d?t=d:t!==d&&(t+=(y??"")+s[a+1]),this._$AH[a]=y}i&&!o&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ht=class extends F{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},ut=class extends F{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},mt=class extends F{constructor(t,e,n,o,s){super(t,e,n,o,s),this.type=5}_$AI(t,e=this){if((t=R(this,t,e,0)??d)===_)return;let n=this._$AH,o=t===d&&n!==d||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==d&&(n===d||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},yt=class{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){R(this,t)}};var nr=gt.litHtmlPolyfillSupport;nr?.(G,j),(gt.litHtmlVersions??=[]).push("3.3.3");var Bt=(r,t,e)=>{let n=e?.renderBefore??t,o=n._$litPart$;if(o===void 0){let s=e?.renderBefore??null;n._$litPart$=o=new j(t.insertBefore(I(),s),s,void 0,e??{})}return o._$AI(r),o};var bt=globalThis,T=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Bt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};T._$litElement$=true,T.finalized=true,bt.litElementHydrateSupport?.({LitElement:T});var or=bt.litElementPolyfillSupport;or?.({LitElement:T});(bt.litElementVersions??=[]).push("4.2.2");var zt=[{endpoint:"vedic-astrology/transit",method:"POST"}];function W(r){return r.toLowerCase().replace(/[\s_-]+/g," ").trim()}function qt(r){return r?r.charAt(0).toUpperCase()+r.slice(1).toLowerCase():""}function Yt(r){return r.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var sr=new RegExp("(?![\\d#*])\\p{Emoji}","gu"),ir=r=>r.replace(sr,"$&\uFE0E"),J=r=>Object.fromEntries(Object.entries(r).map(([t,e])=>[t,ir(e)])),ar=(r,t)=>t?r[W(t)]:void 0,dr=J({sun:"\u2609",moon:"\u263D",mercury:"\u263F",venus:"\u2640",earth:"\u2641",mars:"\u2642",jupiter:"\u2643",saturn:"\u2644",uranus:"\u2645",neptune:"\u2646",pluto:"\u2BD3",rahu:"\u260A",ketu:"\u260B",ascendant:"Asc",midheaven:"MC","part of fortune":"\u2297",vertex:"Vx",lagna:"La","north node":"\u260A","south node":"\u260B",chiron:"\u26B7",lilith:"\u26B8","black moon lilith":"\u26B8"}),Vt=r=>ar(dr,r);var cn=J({aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"});var pn=J({conjunction:"\u260C",semisextile:"\u26BA","semi sextile":"\u26BA",semisquare:"\u2220","semi square":"\u2220",sextile:"\u26B9",square:"\u25A1",trine:"\u25B3",sesquiquadrate:"\u26BC",quincunx:"\u26BB",opposition:"\u260D"});var hn=J({heaven:"\u2630",lake:"\u2631",fire:"\u2632",thunder:"\u2633",wind:"\u2634",water:"\u2635",mountain:"\u2636",earth:"\u2637"});var lr={attribute:true,type:String,converter:M,reflect:false,hasChanged:Y},cr=(r=lr,t,e)=>{let{kind:n,metadata:o}=e,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),n==="setter"&&((r=Object.create(r)).wrapped=true),s.set(e.name,r),n==="accessor"){let{name:i}=e;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(i,a,r,true,l)},init(l){return l!==void 0&&this.C(i,void 0,r,l),l}}}if(n==="setter"){let{name:i}=e;return function(l){let a=this[i];t.call(this,l),this.requestUpdate(i,a,r,true,l)}}throw Error("Unsupported decorator location: "+n)};function g(r){return(t,e)=>typeof e=="object"?cr(r,t,e):((n,o,s)=>{let i=o.hasOwnProperty(s);return o.constructor.createProperty(s,n),i?Object.getOwnPropertyDescriptor(o,s):void 0})(r,t,e)}function x(r){return g({...r,state:true,attribute:false})}var C=r=>r??d;var Wt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function St(r){if(r.lang)return r.lang;if(typeof document>"u")return;let t=r.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var pr={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function vt(r,t){let e=r.toLowerCase();return t.find(n=>n.toLowerCase()===e)}function Jt(r,t=Wt){let e=St(r);if(!e)return;let n=vt(e,t);if(n)return n;let o=e.toLowerCase().split("-"),s=o[0];if(s==="zh"){let i=o.find(l=>l==="hans"||l==="hant")??pr[o[1]??""];return i?vt(`zh-${i}`,t):void 0}return vt(s,t)}var Qt="symbols";var hr={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},wt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Zt='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Xt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',X={"fraunces-jost":{name:"Fraunces with Jost",sans:wt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:wt,display:wt},geist:{name:"Geist",sans:Zt,display:Zt},system:{name:"System",sans:Xt,display:Xt}};function te(r){let{sans:t,display:e}=X[r];return Object.keys(hr).filter(n=>`${t} ${e}`.includes(`"${n}"`))}var ee="1.6.1";var ur=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,mr=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function re(r,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let n=(ur.exec(e.pathname)??mr.exec(e.pathname))?.[1];if(n!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${r}/dist`:`${e.origin}${n}`}var xr={},yr="color-mix(in oklab, var(--roxy-accent) 70%, black)",gr="var(--roxy-accent)",fr="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",ne=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function oe(r){return r!==void 0&&Object.hasOwn(X,r)}function se(r){let t=[];return r.brandColor&&ne.test(r.brandColor)&&t.push(`--roxy-primary:${r.brandColor}`),r.brandAccent&&ne.test(r.brandAccent)&&t.push(`--roxy-accent:${r.brandAccent}`,`--roxy-accent-ink:light-dark(${yr},${gr})`,`--roxy-ring:${fr}`),t.join(";")}function ie(r,t){if(oe(t))return t;let e=r.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=r.shadowRoot?.firstElementChild,s=o?.localName==="style"?o:null;s?.sheet&&(s.sheet.disabled=true);let i,l,a;try{let y=globalThis.getComputedStyle(r),u=m=>y.getPropertyValue(m).trim();i=u("--roxy-font-sans"),l=u("--roxy-font-display"),a=u("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||l))return oe(a)?a:void 0}function ae(r){let{sans:t,display:e}=X[r];return`--roxy-font:${r};--roxy-font-sans:${t};--roxy-font-display:${e}`}var de=re(ee,globalThis.document?.currentScript?.src||xr.url);function le(r,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${r}`;if(document.getElementById(e))return;let n=document.createElement("link");n.id=e,n.rel="stylesheet",n.href=`${t}/styles/fonts/${r}.css`,document.head.append(n)}function ce(r,t=de){te(r).length>0&&le(r,t)}function pe(r=de){le(Qt,r)}var he='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var Q="roxy-ui-tokens";function tt(){if(typeof document>"u")return null;let r=document.getElementById(Q);if(r)return r;let t=document.createElement("style");return t.id=Q,t.textContent=he,document.head.prepend(t),t}var ue="__ROXY_UI_I18N__";function me(){let r=globalThis,t=r[ue];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return r[ue]=e,e}function br(r,t){return t?r.replace(/\{\{(\w+)\}\}/g,(e,n)=>n in t?String(t[n]??""):e):r}function ye(r,t,e){return br(vr(r,t)??t,e)}function vr(r,t){if(!r)return;let{catalogs:e}=me(),n=r.toLowerCase();return(e[n]??e[n.split("-")[0]])?.[W(t)]}function ge(r){let{listeners:t}=me();return t.add(r),()=>{t.delete(r)}}var et=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=ge(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var rt=class extends T{constructor(){super();this.translator=(e,n)=>this.t(e,n);new et(this)}connectedCallback(){super.connectedCallback(),tt()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&pe()}fontDeclarations(e){let n=ie(this,e);return n?(ce(n),ae(n)):""}renderFontStyle(){let e=this.fontDeclarations();return e?c`<style>:host{${e}}</style>`:d}t(e,n){return ye(this.effectiveLang(),e,n)}effectiveLang(){return St(this)}};var fe=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function xe(r){return r?c`<span class="roxy-glyph" aria-hidden="true">${r}</span>`:d}var be=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var Sr=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,nt=[Sr,be,fe];var wr="__cols",Er="__rows";function Tr(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function ot(r){if(Array.isArray(r)){let s=false,i=r.map(l=>{let a=ot(l);return a!==l&&(s=true),a});return s?i:r}if(!Tr(r))return r;let t=r[wr],e=r[Er];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(r).length===2)return e.map(s=>{let i={};return t.forEach((l,a)=>{i[l]=ot(s[a])}),i});let n=false,o={};for(let[s,i]of Object.entries(r)){let l=ot(i);l!==i&&(n=true),o[s]=l}return n?o:r}function ve(r){return ot(r)}function Se(r,t){return r.find(e=>e.attrs&&Object.entries(e.attrs).every(([n,o])=>t[n]===o))??r[0]}var $r="pk_live_YOUR_KEY",we={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function Ee(r){if(r)return r===$r?we.sample:r.startsWith("pk_")?void 0:we.secret}function Te(r,t,e={}){e.warn&&console.warn(t.message),r.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:true,composed:true}))}var $e="https://roxyapi.com/api/v2";async function kr(r){try{let t=await r.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(n=>typeof n.path=="string"&&typeof n.message=="string").map(n=>({path:n.path,message:n.message})):null;return{message:t.error,issues:e?.length?e:null,worded:true,...t.code?{code:t.code}:{}}}}catch{}return{message:`Request failed (${r.status})`,issues:null,worded:false}}var ke={fromAttribute:r=>{if(r!=null){try{let t=JSON.parse(r);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.")}}},O=class extends Error{constructor(e,n=null,o=true,s,i){super(e);this.issues=n;this.worded=o;this.status=s;this.code=i}};function Ae(r){return r.submitUrl?void 0:Ee(r.publishableKey)}async function Et(r,t,e){let n=Ae(r);if(n)throw new O(n.message);let o=r.submitUrl?await fetch(r.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:Ar(t,r.submitContext),signal:e}):await _r(r,t,e);if(!o.ok){let s=await kr(o);throw new O(s.message,s.issues,s.worded,o.status,s.code)}return await o.json()}function Ar(r,t){return JSON.stringify(t?{...r,context:t}:r)}function _r(r,t,e){let n=new URL(`${r.baseUrl??$e}${t.path}`,document.baseURI);for(let[s,i]of Object.entries(t.query??{}))i!=null&&n.searchParams.set(s,String(i));let o={Accept:"application/json"};return r.publishableKey&&(o["X-API-Key"]=r.publishableKey),t.body!=null&&(o["Content-Type"]="application/json"),fetch(n,{method:t.method??"GET",headers:o,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var st=class{constructor(t){this.baseUrl=$e;this.worded=true;this.failure={};this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=true,this.failure={};let e=Ae(this);if(e){this.host.error=e.message,Te(this.host,e);return}this.abort?.abort();let n=new AbortController;this.abort=n,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let o=await Et(this,t,n.signal);if(n.signal.aborted)return;this.host.data=o}catch(o){if(n.signal.aborted||o?.name==="AbortError")return;o instanceof O&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof O&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===n&&(this.abort=void 0),n.signal.aborted||(this.host.loading=false)}}};function _e(r,t,e,n=[]){let o={...e},s=`/${r.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(y,u)=>{let m=o[u];return delete o[u],encodeURIComponent(String(m??""))}),i=new Set(n),l={},a={};for(let[y,u]of Object.entries(o))u===void 0||u===""||(t==="GET"||i.has(y)?l[y]=u:a[y]=u);return{path:s,method:t,query:l,body:t==="POST"?a:void 0}}function Ce(){return c`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var Po=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Uo=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function Pe(r,t,e){let n=r.filter(o=>!!o.body);return n.length===0?d:c`<section class="block" part="section readings"><h3>${e}</h3>${n.map((o,s)=>c`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${xe(o.glyph)} ${o.label}</span> ${Ce()} ${o.aside?c`<span class="interp-aside"><small>${o.aside}</small></span>`:d}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??d}</div></details>`)}</section>`}var Cr="roxy-data";function Pr(r){return r.nodeName==="SCRIPT"&&r.getAttribute("type")==="application/json"}var it=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(Pr(t)&&t.classList.contains(Cr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends rt{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,n=this.listKey,o=this.listRows();if(!(!e||!n||!o)){this.moreLoading=true,this.moreError=null;try{let s=await Et(this.fetcher,{...e,query:{...e.query,offset:o.length}});if(this.lastRequest!==e)return;let i=s[n];this.data={...this.data,...s,[n]:[...o,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===e&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let n=this.selfFetch();if(!n)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(_e(n.endpoint,n.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new it(this),this.fetcher=new st(this)}static{this.styles=[nt]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let n=ve(this.data);n!==this.data&&(this.data=n)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:Se(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return c`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(n){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,n),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:n},bubbles:true,composed:true})),customElements.get("roxy-data")?c`<roxy-data .data="${e}" lang="${C(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(s=>s.trim().toLowerCase()).filter(s=>/^[a-z][a-z0-9-]*$/.test(s)),n=[se(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!n)return d;let o=(n?`:host{${n}}`:"")+e.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){display:none!important}`).join("");return c`<style>${o}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,n,o){return this.hideReadings?d:Pe(e,n,this.t(o??"Reading"))}renderResult(e){let n=c`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?c`${n}${this.renderAttribution()}`:n}renderWithForm(e){return c`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?d:this.renderErrorBanner(this.error):this.data==null?d:this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),n=this.data?.total;return!this.lastRequest||!e||typeof n!="number"?d:e.length>=n?d:c`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?c`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:d}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let n=this.openedRow??document.createElement(this.rowDetail.tag);n.publishableKey=this.publishableKey,n.baseUrl=this.baseUrl,n.submitUrl=this.submitUrl,n.submitContext=this.submitContext,n.hideReadings=this.hideReadings,n.hideSections=this.hideSections;let o=this.effectiveLang();o&&n.setAttribute("lang",o),this.openedRow=n,this.openedRowId=e,n.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:Jt(this)}}).then(()=>n.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return c`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(d):this.renderEmpty()}renderForm(){let e=this.selfFetch();return c`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${C(this.specUrl)}" publishable-key="${C(this.publishableKey)}" location-url="${C(this.locationUrl)}" submit-label="${C(this.submitLabel)}" lang="${C(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return c`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return c`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let n=!!this.selfFetch();if(n&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return n?c`${o}${this.renderForm()}`:o}renderErrorBanner(e){return c`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};h([g({attribute:false})],p.prototype,"data",2),h([g({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([g({type:String})],p.prototype,"method",2),h([g({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([g({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([g({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([g({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([g({attribute:"submit-context",converter:ke})],p.prototype,"submitContext",2),h([g({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([g({type:Boolean})],p.prototype,"remember",2),h([g({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([g({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([g({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([g({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([g({type:String})],p.prototype,"font",2),h([g({type:String})],p.prototype,"hemisphere",2),h([g({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([g({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([g({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var Re=r=>t=>{customElements.get(r)||customElements.define(r,t)};function Rr(r){let t=r%360;return t<0?t+360:t}function Fe(r){return Or(Rr(r)%30)}function Fr(r){let t=Math.floor(r);return{degree:t,minute:Math.floor((r-t)*60)}}function Or(r){let{degree:t,minute:e}=Fr(r);return`${t}\xB0${String(e).padStart(2,"0")}'`}var Tt=/^\d{4}-\d{2}-\d{2}$/,Lr=/^\d{4}-\d{2}$/,Ue=/^\d{2}:\d{2}(:\d{2})?$/,Ur=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,Oe=new Map;function at(r){if(!r)return["en"];let t=Oe.get(r);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(r)[0]??"en"}catch{e="en"}return Oe.set(r,e),[e,"en"]}var Le=new Map;function Mr(r){let t=r??"",e=Le.get(t);if(e)return e;let o={hour:new Intl.DateTimeFormat(at(r),{timeStyle:"short",timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2e3,0,1,1))).find(s=>s.type==="hour")?.value?.length===2?"2-digit":"numeric",minute:"2-digit"};return Le.set(t,o),o}function Me(r){let t=Ue.test(r)?`1970-01-01T${r}`:Tt.test(r)?`${r}T00:00:00`:Lr.test(r)?`${r}-01T00:00:00`:Ur.test(r)?r.replace(" ","T"):null;return t?{d:new Date(`${t}Z`),timeZone:"UTC"}:{d:new Date(r)}}function Nr(r,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:n}=Me(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(at(r),{month:"short",day:"numeric",year:"numeric",timeZone:n})}function S(r,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(at(r),{maximumFractionDigits:e})}function Ir(r){return(r.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}function $t(r){return qt(Ir(r))}var Dr={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function Ne(r,t,e){let n=typeof t=="string"?Dr[t]??Yt(t):"",o=typeof e=="number"?`${S(r,e,2)}\xB0`:"";return n&&o?`${n} (${o})`:n||o}function kt(r,t,e,n=false){let o=typeof t=="string"&&Tt.test(t)&&typeof e=="string"&&Ue.test(e)?`${t}T${e}`:t;if(typeof o!="string"||o.length===0)return"";if(Tt.test(o))return Nr(r,o);let{d:s,timeZone:i}=Me(o);return Number.isNaN(s.getTime())?o:s.toLocaleString(at(r),{month:"short",day:"numeric",year:"numeric",...Mr(r),...n?{second:"2-digit"}:{},timeZone:i})}var Ie=f`.roxy-frame{color:var(--roxy-muted);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-normal);margin:0}.roxy-frame .roxy-frame-deg{font-variant-numeric:tabular-nums}`;function De(r,t,e){if(!t?.ayanamsa)return d;let n=Ne(r,t.ayanamsa);if(!n)return d;let o=typeof t.ayanamsaDegrees=="number"?S(r,t.ayanamsaDegrees,4):void 0;return c`<p class="roxy-frame">${o===void 0?e("Sidereal frame: {{frame}}",{frame:n}):e("Sidereal frame: {{frame}}, {{degrees}}\xB0 subtracted",{frame:n,degrees:o})}</p>`}var Ge=8,P=class extends p{renderData(t){let e=t.transitingPlanets??[];if(!e.length)return this.renderEmpty();let n=t.keyTransits??[],o=t.natalPlanets?.find(s=>s.name==="Moon")?.sign;return c`<div class="wrap" part="card" aria-label="${this.t("Gochara transits")}"><header class="head" part="header"><h2>${this.t("Gochara")}</h2><p class="sub">${this.t("Where each graha transits at {{when}}, read against the natal chart of {{birth}}.",{when:kt(this.effectiveLang(),t.transitDatetime),birth:kt(this.effectiveLang(),t.birthDatetime)})}</p>${o?c`<p class="sub">${this.t("Gochara houses are counted from the natal Moon in {{sign}}.",{sign:o})}</p>`:d} ${De(this.effectiveLang(),t.frame,this.translator)}</header><div part="table">${e.map(s=>this.renderPlanet(s))}</div>${n.length&&!this.hideReadings?c`<section class="key" part="section key-transits"><h3>${this.t("Key transits")}</h3>${n.map(s=>c`<p class="key-item">${s.description}</p>`)}</section>`:d}</div>`}renderPlanet(t){let e=Vt(t.name)??"",n=typeof t.longitude=="number"?Fe(t.longitude):void 0;return c`<article class="row"><div class="row-top"><span class="graha">${e?c`<span class="glyph roxy-glyph">${e}</span>`:d}${t.name} </span><span class="pos">${n?`${t.sign} ${n}`:t.sign} </span>${typeof t.houseFromMoon=="number"?c`<span class="house moon roxy-chip">${this.t("house {{n}} from the Moon",{n:t.houseFromMoon})}</span>`:d} ${typeof t.natalHouse=="number"?c`<span class="house lagna roxy-chip">${this.t("house {{n}} from the Lagna",{n:t.natalHouse})}</span>`:d}</div>${this.renderKaksha(t.kaksha)} ${this.renderContacts(this.t("Drishti"),t.drishtiToNatal)} ${this.renderContacts(this.t("Aspects"),t.aspectsToNatal)}</article>`}renderContacts(t,e){return e?.length?c`<p class="aspects"><span class="contact-label">${t}</span> ${e.map(n=>typeof n.orb=="number"?this.t("{{aspect}} natal {{planet}} ({{orb}}\xB0)",{aspect:$t({type:n.aspectType}),planet:n.natalPlanet,orb:S(this.effectiveLang(),n.orb,1)}):this.t("{{aspect}} natal {{planet}}",{aspect:$t({type:n.aspectType}),planet:n.natalPlanet})).join(" \xB7 ")}</p>`:d}renderKaksha(t){if(!t||typeof t.number!="number")return d;let e=t.number,n=t.bindu===true?"yes":t.bindu===false?"no":"",o=Ge,s=t.lord&&typeof t.startDegree=="number"&&typeof t.endDegree=="number"?this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}, spanning {{start}}\xB0 to {{end}}\xB0 of the sign",{n:e,total:o,graha:t.lord,start:S(this.effectiveLang(),t.startDegree,2),end:S(this.effectiveLang(),t.endDegree,2)}):t.lord?this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}",{n:e,total:o,graha:t.lord}):typeof t.startDegree=="number"&&typeof t.endDegree=="number"?this.t("Kaksha {{n}} of {{total}}, spanning {{start}}\xB0 to {{end}}\xB0 of the sign",{n:e,total:o,start:S(this.effectiveLang(),t.startDegree,2),end:S(this.effectiveLang(),t.endDegree,2)}):this.t("Kaksha {{n}} of {{total}}",{n:e,total:o}),i=t.bindu===null||t.bindu===void 0?"":typeof t.binduCount=="number"?t.bindu?this.t("this kaksha lord gave bindu, {{count}} of {{total}} in this sign",{count:t.binduCount,total:o}):this.t("this kaksha lord gave no bindu, {{count}} of {{total}} in this sign",{count:t.binduCount,total:o}):t.bindu?this.t("this kaksha lord gave bindu"):this.t("this kaksha lord gave no bindu");return c`<div class="kaksha-bar" part="chart" role="img" aria-label="${this.t("Kaksha {{n}} of {{total}} within the current sign",{n:e,total:o})}">${Array.from({length:Ge},(l,a)=>c`<span class="seg ${a+1===e?`here ${n}`:""}"></span>`)}</div><p class="meta">${i?`${s} \xB7 ${i}`:s}</p>`}};P.endpoints=zt,P.styles=[nt,Ie,f`.wrap{grid-template-columns:minmax(0,1fr);display:grid;overflow:hidden}.head{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);display:grid}h2,h3,p{margin:0}.sub,.meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.row{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);grid-template-columns:minmax(0,1fr);display:grid}.row-top{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.pos{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.house.moon{border-color:var(--roxy-accent);color:var(--roxy-fg)}.contact-label{font-weight:var(--roxy-weight-bold);margin-inline-end:var(--roxy-space-xs)}.kaksha-bar{block-size:.4lh;margin-block:var(--roxy-space-xs);grid-template-columns:repeat(8,minmax(0,1fr));gap:1px;display:grid}.seg{background:var(--roxy-border);border-radius:var(--roxy-radius-sm)}.seg.here{background:var(--roxy-muted)}.seg.here.yes{background:var(--roxy-success)}.seg.here.no{background:var(--roxy-warning)}.aspects{color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.key{gap:var(--roxy-space-sm);padding:var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);display:grid}.key-item{font-size:var(--roxy-text-sm)}`],P=h([Re("roxy-gochara-table")],P);return ze(Gr)})();/*! Bundled license information:
|
|
4
4
|
|
|
5
5
|
@lit/reactive-element/css-tag.js:
|
|
6
6
|
(**
|