@roxyapi/ui 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +5 -5
- package/README.md +3 -3
- package/THEMING.md +3 -3
- package/components-catalog.json +258 -158
- package/dist/cdn/components/almanac-day.js +3 -205
- package/dist/cdn/components/angel-number-card.js +3 -205
- package/dist/cdn/components/angel-number-lookup.js +3 -205
- package/dist/cdn/components/arudha-padas.js +3 -205
- package/dist/cdn/components/ashtakavarga-grid.js +3 -205
- package/dist/cdn/components/aspects-table.js +3 -205
- package/dist/cdn/components/astrocartography-map.js +3 -205
- package/dist/cdn/components/bazi-chart.js +3 -205
- package/dist/cdn/components/bhav-chalit-table.js +2 -204
- package/dist/cdn/components/bhava-bala-table.js +3 -205
- package/dist/cdn/components/biorhythm-chart.js +3 -205
- package/dist/cdn/components/bodygraph.js +7 -209
- package/dist/cdn/components/chara-karakas.js +3 -205
- package/dist/cdn/components/choghadiya-grid.js +3 -205
- package/dist/cdn/components/compatibility-card.js +2 -204
- package/dist/cdn/components/compound-number.js +3 -205
- package/dist/cdn/components/crystal-card.js +3 -205
- package/dist/cdn/components/crystal-grid.js +3 -205
- package/dist/cdn/components/dasha-timeline.js +3 -205
- package/dist/cdn/components/data.js +3 -205
- package/dist/cdn/components/divisional-chart.js +13 -215
- package/dist/cdn/components/dosha-card.js +3 -205
- package/dist/cdn/components/dosha-constitution.js +3 -205
- package/dist/cdn/components/dream-card.js +3 -205
- package/dist/cdn/components/dream-search.js +3 -205
- package/dist/cdn/components/endpoint-form.js +3 -205
- package/dist/cdn/components/ephemeris-table.js +2 -204
- package/dist/cdn/components/fixed-stars.js +2 -204
- package/dist/cdn/components/flying-star-chart.js +2 -204
- package/dist/cdn/components/forecast-digest.js +3 -205
- package/dist/cdn/components/forecast-timeline.js +3 -205
- package/dist/cdn/components/gematria.js +3 -205
- package/dist/cdn/components/gochara-table.js +3 -205
- package/dist/cdn/components/guna-milan.js +3 -205
- package/dist/cdn/components/hd-connection.js +5 -207
- package/dist/cdn/components/hd-penta.js +5 -207
- package/dist/cdn/components/hd-type-card.js +3 -205
- package/dist/cdn/components/hd-variables.js +3 -205
- package/dist/cdn/components/heliacal-table.js +3 -205
- package/dist/cdn/components/hexagram.js +3 -205
- package/dist/cdn/components/hora-table.js +3 -205
- package/dist/cdn/components/horoscope-card.js +3 -205
- package/dist/cdn/components/kp-chart.js +3 -205
- package/dist/cdn/components/kp-finance-card.js +3 -205
- package/dist/cdn/components/kp-planets-table.js +3 -205
- package/dist/cdn/components/kp-ruling-planets.js +3 -205
- package/dist/cdn/components/kua-card.js +3 -205
- package/dist/cdn/components/local-space-compass.js +8 -210
- package/dist/cdn/components/location-search.js +3 -205
- package/dist/cdn/components/luck-pillars.js +3 -205
- package/dist/cdn/components/mayan-day-sign.js +3 -205
- package/dist/cdn/components/moon-phase.js +3 -205
- package/dist/cdn/components/nakshatra-card.js +3 -205
- package/dist/cdn/components/natal-chart.js +6 -208
- package/dist/cdn/components/numerology-card.js +3 -205
- package/dist/cdn/components/panchang-table.js +3 -205
- package/dist/cdn/components/positions-table.js +3 -205
- package/dist/cdn/components/profection-card.js +3 -205
- package/dist/cdn/components/reference-card.js +3 -205
- package/dist/cdn/components/relocation-wheel.js +6 -208
- package/dist/cdn/components/shadbala-table.js +3 -205
- package/dist/cdn/components/synastry-chart.js +7 -209
- package/dist/cdn/components/tarot-card.js +3 -205
- package/dist/cdn/components/tarot-catalog.js +3 -205
- package/dist/cdn/components/tarot-spread.js +3 -205
- package/dist/cdn/components/transit-wheel.js +8 -210
- package/dist/cdn/components/transits-table.js +3 -205
- package/dist/cdn/components/upagraha-table.js +2 -204
- package/dist/cdn/components/vastu-mandala.js +4 -206
- package/dist/cdn/components/vedic-aspects.js +2 -204
- package/dist/cdn/components/vedic-daily.js +3 -205
- package/dist/cdn/components/vedic-kundli.js +10 -212
- package/dist/cdn/components/vedic-planets-table.js +3 -205
- package/dist/cdn/components/western-planets-table.js +2 -204
- package/dist/cdn/components/yoga-list.js +3 -205
- package/dist/cdn/components/zodiac-card.js +2 -204
- package/dist/cdn/locales/de.js +1 -1
- package/dist/cdn/roxy-ui.js +49 -251
- package/dist/components/almanac-day.js +1 -203
- package/dist/components/angel-number-card.js +1 -203
- package/dist/components/angel-number-lookup.js +1 -203
- package/dist/components/arudha-padas.js +1 -203
- package/dist/components/ashtakavarga-grid.js +1 -203
- package/dist/components/aspects-table.js +1 -203
- package/dist/components/astrocartography-map.js +6 -208
- package/dist/components/bazi-chart.js +1 -203
- package/dist/components/bhav-chalit-table.js +1 -203
- package/dist/components/bhava-bala-table.js +1 -203
- package/dist/components/biorhythm-chart.js +1 -203
- package/dist/components/bodygraph.js +3 -205
- package/dist/components/chara-karakas.js +1 -203
- package/dist/components/choghadiya-grid.js +1 -203
- package/dist/components/compatibility-card.js +1 -203
- package/dist/components/compound-number.js +1 -203
- package/dist/components/crystal-card.js +1 -203
- package/dist/components/crystal-grid.js +1 -203
- package/dist/components/dasha-timeline.js +1 -203
- package/dist/components/data.js +1 -203
- package/dist/components/divisional-chart.js +45 -247
- package/dist/components/dosha-card.js +1 -203
- package/dist/components/dosha-constitution.js +1 -203
- package/dist/components/dream-card.js +1 -203
- package/dist/components/dream-search.js +1 -203
- package/dist/components/endpoint-form.js +1 -203
- package/dist/components/ephemeris-table.js +1 -203
- package/dist/components/fixed-stars.js +1 -203
- package/dist/components/flying-star-chart.js +1 -203
- package/dist/components/forecast-digest.js +1 -203
- package/dist/components/forecast-timeline.js +1 -203
- package/dist/components/gematria.js +1 -203
- package/dist/components/gochara-table.js +1 -203
- package/dist/components/guna-milan.js +1 -203
- package/dist/components/hd-connection.js +3 -205
- package/dist/components/hd-penta.js +5 -207
- package/dist/components/hd-type-card.js +1 -203
- package/dist/components/hd-variables.js +1 -203
- package/dist/components/heliacal-table.js +1 -203
- package/dist/components/hexagram.d.ts +1 -1
- package/dist/components/hexagram.js +1 -203
- package/dist/components/hora-table.js +1 -203
- package/dist/components/horoscope-card.js +1 -203
- package/dist/components/kp-chart.js +1 -203
- package/dist/components/kp-finance-card.js +1 -203
- package/dist/components/kp-planets-table.js +1 -203
- package/dist/components/kp-ruling-planets.js +1 -203
- package/dist/components/kua-card.js +1 -203
- package/dist/components/local-space-compass.js +4 -206
- package/dist/components/location-search.js +1 -203
- package/dist/components/luck-pillars.js +1 -203
- package/dist/components/mayan-day-sign.js +1 -203
- package/dist/components/moon-phase.js +1 -203
- package/dist/components/nakshatra-card.js +1 -203
- package/dist/components/natal-chart.d.ts +1 -1
- package/dist/components/natal-chart.js +5 -207
- package/dist/components/numerology-card.js +1 -203
- package/dist/components/panchang-table.js +1 -203
- package/dist/components/positions-table.js +1 -203
- package/dist/components/profection-card.js +1 -203
- package/dist/components/reference-card.js +1 -203
- package/dist/components/relocation-wheel.js +3 -205
- package/dist/components/shadbala-table.js +1 -203
- package/dist/components/synastry-chart.js +6 -208
- package/dist/components/tarot-card.js +1 -203
- package/dist/components/tarot-catalog.js +1 -203
- package/dist/components/tarot-spread.js +1 -203
- package/dist/components/transit-wheel.js +8 -210
- package/dist/components/transits-table.js +1 -203
- package/dist/components/upagraha-table.js +1 -203
- package/dist/components/vastu-mandala.js +6 -208
- package/dist/components/vedic-aspects.js +1 -203
- package/dist/components/vedic-daily.js +1 -203
- package/dist/components/vedic-kundli.js +15 -217
- package/dist/components/vedic-planets-table.js +1 -203
- package/dist/components/western-planets-table.js +1 -203
- package/dist/components/yoga-list.js +1 -203
- package/dist/components/zodiac-card.js +1 -203
- package/dist/forms.json +1 -1
- package/dist/index.cjs +49 -251
- package/dist/index.js +50 -252
- package/dist/locales/de.js +1 -1
- package/dist/schemas/post--astrology-lilith.json +1 -1
- package/dist/schemas/post--astrology-progressions.json +1 -1
- package/dist/schemas/post--kabbalah-birth-profile.json +1 -1
- package/dist/schemas/post--numerology-chart.json +1 -1
- package/dist/schemas/post--vedic-astrology-daily.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-current.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-major.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha-antardasha-pratyantardasha-sookshma.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha-antardasha-pratyantardasha.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha-antardasha.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-chart.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-cusps.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-daily-finance.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-horary.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-planets.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-ruling-planets-interval.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-ruling-planets.json +1 -1
- package/dist/schemas/post--vedic-astrology-transit.json +1 -1
- package/dist/styles/palettes.d.ts +4 -0
- package/dist/styles/themes/celeste.css +1 -115
- package/dist/styles/themes/eucalyptus.css +1 -121
- package/dist/styles/themes/kiln.css +1 -121
- package/dist/styles/themes/moonlit.css +1 -121
- package/dist/styles/themes/practitioner.css +1 -170
- package/dist/styles/tokens-css.d.ts +1 -1
- package/dist/styles/tokens.css +1 -202
- package/dist/types/types.gen.d.ts +48 -36
- package/dist/utils/string.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,208 +1,6 @@
|
|
|
1
|
-
var RoxyUI_positions_table=(()=>{var
|
|
2
|
-
\f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Me=/'/g,Ne=/"/g,Ge=/^(?:script|style|textarea|title)$/i,ye=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),l=ye(1),ur=ye(2),mr=ye(3),R=Symbol.for("lit-noChange"),a=Symbol.for("lit-nothing"),Ue=new WeakMap,A=_.createTreeWalker(_,129);function ze(o,e){if(!ge(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Oe!==void 0?Oe.createHTML(e):e}var Lt=(o,e)=>{let t=o.length-1,n=[],r,i=e===2?"<svg>":e===3?"<math>":"",s=U;for(let c=0;c<t;c++){let d=o[c],g,m,u=-1,v=0;for(;v<d.length&&(s.lastIndex=v,m=s.exec(d),m!==null);)v=s.lastIndex,s===U?m[1]==="!--"?s=Le:m[1]!==void 0?s=Fe:m[2]!==void 0?(Ge.test(m[2])&&(r=RegExp("</"+m[2],"g")),s=k):m[3]!==void 0&&(s=k):s===k?m[0]===">"?(s=r??U,u=-1):m[1]===void 0?u=-2:(u=s.lastIndex-m[2].length,g=m[1],s=m[3]===void 0?k:m[3]==='"'?Ne:Me):s===Ne||s===Me?s=k:s===Le||s===Fe?s=U:(s=k,r=void 0);let w=s===k&&o[c+1].startsWith("/>")?" ":"";i+=s===U?d+Ct:u>=0?(n.push(g),d.slice(0,u)+Ie+d.slice(u)+E+w):d+E+(u===-2?c:w)}return[ze(o,i+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},G=class o{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let i=0,s=0,c=e.length-1,d=this.parts,[g,m]=Lt(e,t);if(this.el=o.createElement(g,n),A.currentNode=this.el.content,t===2||t===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(r=A.nextNode())!==null&&d.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(let u of r.getAttributeNames())if(u.endsWith(Ie)){let v=m[s++],w=r.getAttribute(u).split(E),j=/([.?@])?(.*)/.exec(v);d.push({type:1,index:i,name:j[2],strings:w,ctor:j[1]==="."?ce:j[1]==="?"?pe:j[1]==="@"?he:O}),r.removeAttribute(u)}else u.startsWith(E)&&(d.push({type:6,index:i}),r.removeAttribute(u));if(Ge.test(r.tagName)){let u=r.textContent.split(E),v=u.length-1;if(v>0){r.textContent=Y?Y.emptyScript:"";for(let w=0;w<v;w++)r.append(u[w],I()),A.nextNode(),d.push({type:2,index:++i});r.append(u[v],I())}}}else if(r.nodeType===8)if(r.data===De)d.push({type:2,index:i});else{let u=-1;for(;(u=r.data.indexOf(E,u+1))!==-1;)d.push({type:7,index:i}),u+=E.length-1}i++}}static createElement(e,t){let n=_.createElement("template");return n.innerHTML=e,n}};function C(o,e,t=o,n){if(e===R)return e;let r=n!==void 0?t._$Co?.[n]:t._$Cl,i=D(e)?void 0:e._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(o),r._$AT(o,t,n)),n!==void 0?(t._$Co??=[])[n]=r:t._$Cl=r),r!==void 0&&(e=C(o,r._$AS(o,e.values),r,n)),e}var le=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??_).importNode(t,!0);A.currentNode=r;let i=A.nextNode(),s=0,c=0,d=n[0];for(;d!==void 0;){if(s===d.index){let g;d.type===2?g=new z(i,i.nextSibling,this,e):d.type===1?g=new d.ctor(i,d.name,d.strings,this,e):d.type===6&&(g=new ue(i,this,e)),this._$AV.push(g),d=n[++c]}s!==d?.index&&(i=A.nextNode(),s++)}return A.currentNode=_,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},z=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=a,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=C(this,e,t),D(e)?e===a||e==null||e===""?(this._$AH!==a&&this._$AR(),this._$AH=a):e!==this._$AH&&e!==R&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ot(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==a&&D(this._$AH)?this._$AA.nextSibling.data=e:this.T(_.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=G.createElement(ze(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let i=new le(r,this),s=i.u(this.options);i.p(t),this.T(s),this._$AH=i}}_$AC(e){let t=Ue.get(e.strings);return t===void 0&&Ue.set(e.strings,t=new G(e)),t}k(e){ge(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,r=0;for(let i of e)r===t.length?t.push(n=new o(this.O(I()),this.O(I()),this,this.options)):n=t[r],n._$AI(i),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let n=Ce(e).nextSibling;Ce(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},O=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=a,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=a}_$AI(e,t=this,n,r){let i=this.strings,s=!1;if(i===void 0)e=C(this,e,t,0),s=!D(e)||e!==this._$AH&&e!==R,s&&(this._$AH=e);else{let c=e,d,g;for(e=i[0],d=0;d<i.length-1;d++)g=C(this,c[n+d],t,d),g===R&&(g=this._$AH[d]),s||=!D(g)||g!==this._$AH[d],g===a?e=a:e!==a&&(e+=(g??"")+i[d+1]),this._$AH[d]=g}s&&!r&&this.j(e)}j(e){e===a?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ce=class extends O{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===a?void 0:e}},pe=class extends O{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==a)}},he=class extends O{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=C(this,e,t,0)??a)===R)return;let n=this._$AH,r=e===a&&n!==a||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==a&&(n===a||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ue=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){C(this,e)}};var Ft=me.litHtmlPolyfillSupport;Ft?.(G,z),(me.litHtmlVersions??=[]).push("3.3.3");var je=(o,e,t)=>{let n=t?.renderBefore??e,r=n._$litPart$;if(r===void 0){let i=t?.renderBefore??null;n._$litPart$=r=new z(e.insertBefore(I(),i),i,void 0,t??{})}return r._$AI(o),r};var fe=globalThis,$=class extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=je(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return R}};$._$litElement$=!0,$.finalized=!0,fe.litElementHydrateSupport?.({LitElement:$});var Mt=fe.litElementPolyfillSupport;Mt?.({LitElement:$});(fe.litElementVersions??=[]).push("4.2.2");var Nt={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:V},Ut=(o=Nt,e,t)=>{let{kind:n,metadata:r}=t,i=globalThis.litPropertyMetadata.get(r);if(i===void 0&&globalThis.litPropertyMetadata.set(r,i=new Map),n==="setter"&&((o=Object.create(o)).wrapped=!0),i.set(t.name,o),n==="accessor"){let{name:s}=t;return{set(c){let d=e.get.call(this);e.set.call(this,c),this.requestUpdate(s,d,o,!0,c)},init(c){return c!==void 0&&this.C(s,void 0,o,c),c}}}if(n==="setter"){let{name:s}=t;return function(c){let d=this[s];e.call(this,c),this.requestUpdate(s,d,o,!0,c)}}throw Error("Unsupported decorator location: "+n)};function y(o){return(e,t)=>typeof t=="object"?Ut(o,e,t):((n,r,i)=>{let s=r.hasOwnProperty(i);return r.constructor.createProperty(i,n),s?Object.getOwnPropertyDescriptor(r,i):void 0})(o,e,t)}function b(o){return y({...o,state:!0,attribute:!1})}var Ke=[{endpoint:"astrology/asteroids",method:"POST"},{endpoint:"astrology/lilith",method:"POST"},{endpoint:"astrology/progressions",method:"POST"},{endpoint:"astrology/solar-arc",method:"POST"},{endpoint:"astrology/arabic-lots",method:"POST"}];function W(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}function xe(o){return o?o.charAt(0).toUpperCase()+o.slice(1).toLowerCase():""}var He=(o,e)=>e?o[W(e)]:void 0,It={sun:"☉",moon:"☽",mercury:"☿",venus:"♀",earth:"♁",mars:"♂",jupiter:"♃",saturn:"♄",uranus:"♅",neptune:"♆",pluto:"♇",rahu:"☊",ketu:"☋",ascendant:"Asc",midheaven:"MC","part of fortune":"⊗",vertex:"Vx",lagna:"La","north node":"☊","south node":"☋",chiron:"⚷",lilith:"⚸","black moon lilith":"⚸"},be=o=>He(It,o);var Dt={aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpio:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓"},qe=o=>He(Dt,o);var Be=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"];var P=o=>o??a;var Ve=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Se(o){if(o.lang)return o.lang;if(typeof document>"u")return;let e=o.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}var Gt={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function ve(o){let e=o.toLowerCase();return Ve.find(t=>t.toLowerCase()===e)}function Ye(o){let e=Se(o);if(!e)return;let t=ve(e);if(t)return t;let n=e.toLowerCase().split("-"),r=n[0];if(r==="zh"){let i=n.find(s=>s==="hans"||s==="hant")??Gt[n[1]??""];return i?ve(`zh-${i}`):void 0}return ve(r)}var Ze=`/**
|
|
4
|
-
* Roxy UI design tokens: every colour, size, space, radius, font and duration a component reads.
|
|
5
|
-
*
|
|
6
|
-
* Two tiers. BASES are the few values a host tunes: fonts, base text size and its scale ratio, the
|
|
7
|
-
* space unit, the base radius, motion, and the colour bases (bg, fg, accent and the four status
|
|
8
|
-
* colours). Every other token DERIVES from them with calc() or color-mix(), so dark mode reassigns
|
|
9
|
-
* the colour bases only and one font token restyles every heading. A host may still set any
|
|
10
|
-
* derived token directly, and its value wins.
|
|
11
|
-
*
|
|
12
|
-
* Delivery: a global light-DOM stylesheet (linked, or injected by the CDN bundle). Custom properties
|
|
13
|
-
* inherit through the shadow boundary, so a token set on any light-DOM ancestor reaches every
|
|
14
|
-
* component. The :host selectors apply only if this sheet is adopted into a shadow root.
|
|
15
|
-
*
|
|
16
|
-
* Light is the default. Dark applies under prefers-color-scheme: dark, or [data-theme="dark"] or
|
|
17
|
-
* .dark on the element or any ancestor; [data-theme="light"] or .light opts back into light. An
|
|
18
|
-
* explicit choice wins over the OS because those blocks come later in source order.
|
|
19
|
-
*
|
|
20
|
-
* A derivation is computed where it is declared, so the derived block also matches every theme
|
|
21
|
-
* trigger: a base reassigned on :root or on an element carrying data-theme, .light or .dark
|
|
22
|
-
* re-derives everything below it.
|
|
23
|
-
*
|
|
24
|
-
* Font: --roxy-font-sans is unset by default, so every component inherits the host page font; any
|
|
25
|
-
* value set by the host or a preset replaces it, and --roxy-font-display follows it until set.
|
|
26
|
-
*
|
|
27
|
-
* Motion: --roxy-motion-duration defaults to 200ms and prefers-reduced-motion forces 0ms.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* Two mechanisms keep the host page in charge of every token, and both are load bearing.
|
|
32
|
-
*
|
|
33
|
-
* Every rule sits in the roxy.tokens cascade layer, and an unlayered declaration beats a layered
|
|
34
|
-
* one at ANY specificity, so a plain \`:root { --roxy-accent: #8b5cf6 }\` on the host page wins, and
|
|
35
|
-
* so does the same line inside a layer of its own, because this statement registers ours first
|
|
36
|
-
* and the CDN bundle injects this sheet at the top of <head>. A host that links this file after its
|
|
37
|
-
* own CSS orders the layers itself: \`@layer roxy, base, components, utilities;\` before either sheet.
|
|
38
|
-
*
|
|
39
|
-
* Every selector is ALSO wrapped in :where(), which has ZERO specificity, so a host declaration
|
|
40
|
-
* still wins wherever a layer cannot decide it, under every dark signal alike.
|
|
41
|
-
*
|
|
42
|
-
* The theme presets in styles/themes/*.css write into roxy.theme; both files declare this order,
|
|
43
|
-
* so either one loading alone still ranks a preset above these defaults.
|
|
44
|
-
*/
|
|
45
|
-
@layer roxy.tokens, roxy.theme;
|
|
46
|
-
|
|
47
|
-
@layer roxy.tokens {
|
|
48
|
-
/* Bases, light. Also the mode-specific derivations: accent ink and status inks mix toward black. */
|
|
49
|
-
:where(:root, :host) {
|
|
50
|
-
/* A real inherited property: native controls, popups and scrollbars follow it. */
|
|
51
|
-
color-scheme: light;
|
|
52
|
-
|
|
53
|
-
--roxy-bg: #ffffff;
|
|
54
|
-
--roxy-fg: #0a0a0a;
|
|
55
|
-
--roxy-accent: #4a6297;
|
|
56
|
-
--roxy-success: #16a34a;
|
|
57
|
-
--roxy-warning: #ea580c;
|
|
58
|
-
--roxy-danger: #dc2626;
|
|
59
|
-
--roxy-info: #0284c7;
|
|
60
|
-
|
|
61
|
-
/* Accent and status inks: 70 percent toward black reads at AA on the card and on a tint of the base. */
|
|
62
|
-
--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);
|
|
63
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);
|
|
64
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);
|
|
65
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);
|
|
66
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);
|
|
67
|
-
|
|
68
|
-
/* Unset on purpose: a component inherits the host page font until a host or preset sets one. */
|
|
69
|
-
--roxy-font-sans: initial;
|
|
70
|
-
--roxy-font-mono:
|
|
71
|
-
ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas,
|
|
72
|
-
"Liberation Mono", monospace;
|
|
73
|
-
|
|
74
|
-
--roxy-text-base: 1rem;
|
|
75
|
-
--roxy-text-scale: 1.15;
|
|
76
|
-
--roxy-weight-normal: 400;
|
|
77
|
-
--roxy-weight-bold: 600;
|
|
78
|
-
--roxy-leading-tight: 1.25;
|
|
79
|
-
--roxy-leading-normal: 1.5;
|
|
80
|
-
--roxy-tracking-tight: -0.01em;
|
|
81
|
-
--roxy-tracking-normal: 0em;
|
|
82
|
-
|
|
83
|
-
--roxy-space-unit: 0.25rem;
|
|
84
|
-
--roxy-radius: 6px;
|
|
85
|
-
|
|
86
|
-
--roxy-motion-duration: 200ms;
|
|
87
|
-
--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* Derived roles, identical in every mode, restated on every theme trigger so they follow its bases. */
|
|
91
|
-
:where(:root, :host, [data-theme], .light, .dark) {
|
|
92
|
-
/* Flat: the card is the page colour, separated by a hairline. */
|
|
93
|
-
--roxy-surface: var(--roxy-bg);
|
|
94
|
-
--roxy-primary: var(--roxy-fg);
|
|
95
|
-
--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));
|
|
96
|
-
--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));
|
|
97
|
-
--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));
|
|
98
|
-
--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);
|
|
99
|
-
--roxy-heat: var(--roxy-danger);
|
|
100
|
-
|
|
101
|
-
--roxy-font-display: var(--roxy-font-sans);
|
|
102
|
-
|
|
103
|
-
--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));
|
|
104
|
-
--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));
|
|
105
|
-
--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));
|
|
106
|
-
--roxy-text-xl: calc(
|
|
107
|
-
var(--roxy-text-lg) *
|
|
108
|
-
var(--roxy-text-scale) *
|
|
109
|
-
var(--roxy-text-scale)
|
|
110
|
-
);
|
|
111
|
-
|
|
112
|
-
--roxy-space-xs: var(--roxy-space-unit);
|
|
113
|
-
--roxy-space-sm: calc(var(--roxy-space-unit) * 2);
|
|
114
|
-
--roxy-space-md: calc(var(--roxy-space-unit) * 4);
|
|
115
|
-
--roxy-space-lg: calc(var(--roxy-space-unit) * 6);
|
|
116
|
-
--roxy-space-xl: calc(var(--roxy-space-unit) * 10);
|
|
117
|
-
--roxy-line-thick: calc(var(--roxy-space-unit) / 2);
|
|
118
|
-
--roxy-touch: calc(var(--roxy-space-unit) * 11);
|
|
119
|
-
|
|
120
|
-
--roxy-radius-sm: calc(var(--roxy-radius) / 2);
|
|
121
|
-
--roxy-radius-md: var(--roxy-radius);
|
|
122
|
-
--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);
|
|
123
|
-
--roxy-radius-full: 9999px;
|
|
124
|
-
|
|
125
|
-
/* Flat surfaces cast nothing; only a floating layer (a popup, an enlarged chart) lifts. */
|
|
126
|
-
--roxy-shadow-sm: none;
|
|
127
|
-
--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);
|
|
128
|
-
--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* Bases, dark, by system preference. Inks mix toward white so they read on a dark card. */
|
|
132
|
-
@media (prefers-color-scheme: dark) {
|
|
133
|
-
:where(:root, :host) {
|
|
134
|
-
color-scheme: dark;
|
|
135
|
-
--roxy-bg: #0a0a0a;
|
|
136
|
-
--roxy-fg: #fafafa;
|
|
137
|
-
--roxy-accent: #92aade;
|
|
138
|
-
--roxy-success: #22c55e;
|
|
139
|
-
--roxy-warning: #fb923c;
|
|
140
|
-
--roxy-danger: #ef4444;
|
|
141
|
-
--roxy-info: #38bdf8;
|
|
142
|
-
|
|
143
|
-
--roxy-accent-ink: var(--roxy-accent);
|
|
144
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);
|
|
145
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);
|
|
146
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);
|
|
147
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/* Explicit light: beats the OS dark block when the host chooses light. */
|
|
152
|
-
:where(
|
|
153
|
-
:root[data-theme="light"],
|
|
154
|
-
[data-theme="light"],
|
|
155
|
-
:root.light,
|
|
156
|
-
.light,
|
|
157
|
-
:host([data-theme="light"])
|
|
158
|
-
) {
|
|
159
|
-
color-scheme: light;
|
|
160
|
-
--roxy-bg: #ffffff;
|
|
161
|
-
--roxy-fg: #0a0a0a;
|
|
162
|
-
--roxy-accent: #4a6297;
|
|
163
|
-
--roxy-success: #16a34a;
|
|
164
|
-
--roxy-warning: #ea580c;
|
|
165
|
-
--roxy-danger: #dc2626;
|
|
166
|
-
--roxy-info: #0284c7;
|
|
167
|
-
|
|
168
|
-
--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);
|
|
169
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);
|
|
170
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);
|
|
171
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);
|
|
172
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/* Explicit dark: a .dark class or data-theme="dark" on any ancestor themes every component below it. */
|
|
176
|
-
:where(
|
|
177
|
-
:root[data-theme="dark"],
|
|
178
|
-
[data-theme="dark"],
|
|
179
|
-
:root.dark,
|
|
180
|
-
.dark,
|
|
181
|
-
:host([data-theme="dark"])
|
|
182
|
-
) {
|
|
183
|
-
color-scheme: dark;
|
|
184
|
-
--roxy-bg: #0a0a0a;
|
|
185
|
-
--roxy-fg: #fafafa;
|
|
186
|
-
--roxy-accent: #92aade;
|
|
187
|
-
--roxy-success: #22c55e;
|
|
188
|
-
--roxy-warning: #fb923c;
|
|
189
|
-
--roxy-danger: #ef4444;
|
|
190
|
-
--roxy-info: #38bdf8;
|
|
191
|
-
|
|
192
|
-
--roxy-accent-ink: var(--roxy-accent);
|
|
193
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);
|
|
194
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);
|
|
195
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);
|
|
196
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
@media (prefers-reduced-motion: reduce) {
|
|
200
|
-
:where(:root, :host) {
|
|
201
|
-
--roxy-motion-duration: 0ms;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
`;var J="roxy-ui-tokens";function X(){if(typeof document>"u")return null;let o=document.getElementById(J);if(o)return o;let e=document.createElement("style");return e.id=J,e.textContent=Ze,document.head.prepend(e),e}var We="__ROXY_UI_I18N__";function Je(){let o=globalThis,e=o[We];if(e)return e;let t={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[We]=t,t}function zt(o,e){return e?o.replace(/\{\{(\w+)\}\}/g,(t,n)=>n in e?String(e[n]??""):t):o}function Xe(o,e,t){return zt(jt(o,e)??e,t)}function jt(o,e){if(!o)return;let{catalogs:t}=Je(),n=o.toLowerCase();return(t[n]??t[n.split("-")[0]])?.[W(e)]}function Qe(o){let{listeners:e}=Je();return e.add(o),()=>{e.delete(o)}}var Q=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=Qe(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var ee=class extends ${constructor(){super();this.translator=(t,n)=>this.t(t,n);new Q(this)}connectedCallback(){super.connectedCallback(),X()}t(t,n){return Xe(this.effectiveLang(),t,n)}effectiveLang(){return Se(this)}};var et=x`: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 Kt=x`: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}`,te=[Kt,et];var Ht="__cols",qt="__rows";function Bt(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function re(o){if(Array.isArray(o)){let i=!1,s=o.map(c=>{let d=re(c);return d!==c&&(i=!0),d});return i?s:o}if(!Bt(o))return o;let e=o[Ht],t=o[qt];if(Array.isArray(e)&&Array.isArray(t)&&Object.keys(o).length===2)return t.map(i=>{let s={};return e.forEach((c,d)=>{s[c]=re(i[d])}),s});let n=!1,r={};for(let[i,s]of Object.entries(o)){let c=re(s);c!==s&&(n=!0),r[i]=c}return n?r:o}function tt(o){return re(o)}function rt(o,e){return o.find(t=>t.attrs&&Object.entries(t.attrs).every(([n,r])=>e[n]===r))??o[0]}var Vt="pk_live_YOUR_KEY",nt={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 ot(o){if(o)return o===Vt?nt.sample:o.startsWith("pk_")?void 0:nt.secret}function it(o,e,t={}){t.warn&&console.warn(e.message),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:e.reason,message:e.message},bubbles:!0,composed:!0}))}var st="https://roxyapi.com/api/v2";async function Yt(o){try{let e=await o.json();if(e?.error){let t=e.code==="validation_error"&&Array.isArray(e.issues)?e.issues.filter(n=>typeof n.path=="string"&&typeof n.message=="string").map(n=>({path:n.path,message:n.message})):null;return{message:e.error,issues:t?.length?t:null,worded:!0}}}catch{}return{message:`Request failed (${o.status})`,issues:null,worded:!1}}var at={fromAttribute:o=>{if(o!=null){try{let e=JSON.parse(o);if(e&&typeof e=="object"&&!Array.isArray(e))return e}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},L=class extends Error{constructor(t,n=null,r=!0){super(t);this.issues=n;this.worded=r}};function dt(o){return o.submitUrl?void 0:ot(o.publishableKey)}async function we(o,e,t){let n=dt(o);if(n)throw new L(n.message);let r=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:Zt(e,o.submitContext),signal:t}):await Wt(o,e,t);if(!r.ok){let i=await Yt(r);throw new L(i.message,i.issues,i.worded)}return await r.json()}function Zt(o,e){return JSON.stringify(e?{...o,context:e}:o)}function Wt(o,e,t){let n=new URL(`${o.baseUrl??st}${e.path}`,document.baseURI);for(let[i,s]of Object.entries(e.query??{}))s!=null&&n.searchParams.set(i,String(s));let r={Accept:"application/json"};return o.publishableKey&&(r["X-API-Key"]=o.publishableKey),e.body!=null&&(r["Content-Type"]="application/json"),fetch(n,{method:e.method??"GET",headers:r,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}var ne=class{constructor(e){this.baseUrl=st;this.worded=!0;this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){this.worded=!0;let t=dt(this);if(t){this.host.error=t.message,it(this.host,t);return}this.abort?.abort();let n=new AbortController;this.abort=n,this.host.loading=!0,this.host.error=null,this.host.issues=null;try{let r=await we(this,e,n.signal);if(n.signal.aborted)return;this.host.data=r}catch(r){if(n.signal.aborted||r?.name==="AbortError")return;r instanceof L&&(this.host.issues=r.issues),this.worded=r instanceof L&&r.worded,this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===n&&(this.abort=void 0),n.signal.aborted||(this.host.loading=!1)}}};function lt(o,e,t,n=[]){let r={...t},i=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(g,m)=>{let u=r[m];return delete r[m],encodeURIComponent(String(u??""))}),s=new Set(n),c={},d={};for(let[g,m]of Object.entries(r))m===void 0||m===""||(e==="GET"||s.has(g)?c[g]=m:d[g]=m);return{path:i,method:e,query:c,body:e==="POST"?d:void 0}}function ct(){return l`<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 pt=x`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 ht=x`.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 ut(o,e,t){let n=o.filter(r=>!!r.body);return n.length===0?a:l`<section class="block" part="section readings"><h3>${t}</h3>${n.map((r,i)=>l`<details class="interp-card" part="reading" name="${e}" ?open="${i===0}"><summary><span class="interp-lead">${r.label}</span> ${ct()} ${r.aside?l`<span class="interp-aside"><small>${r.aside}</small></span>`:a}</summary><div class="interp-body"><p>${r.body}</p>${r.extra??a}</div></details>`)}</section>`}var Jt="roxy-data";function Xt(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var oe=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){if(this.host.data!=null)return;let e=this.read();e!==void 0&&(this.host.data=e,this.host.requestUpdate())}read(){let e=this.findInlineScript();return e?this.parse(e.textContent):void 0}findInlineScript(){for(let e of Array.from(this.host.children))if(Xt(e)&&e.classList.contains(Jt))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var h=class extends ee{constructor(){super();this.data=null;this.endpoint="";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.issues=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.hostLoaded=!1;this.moreLoading=!1;this.moreError=null;this.onMore=async()=>{let t=this.lastRequest,n=this.listKey,r=this.listRows();if(!(!t||!n||!r)){this.moreLoading=!0,this.moreError=null;try{let i=await we(this.fetcher,{...t,query:{...t.query,offset:r.length}});if(this.lastRequest!==t)return;let s=i[n];this.data={...this.data,...i,[n]:[...r,...Array.isArray(s)?s:[]]}}catch(i){this.lastRequest===t&&(this.moreError=i instanceof Error?i.message:String(i))}finally{this.moreLoading=!1}}};this.onEdit=()=>{this.editing=!0};this.onFormSubmit=t=>{let n=this.selfFetch();if(!n)return;let r=t.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetchFresh(lt(n.endpoint,n.method,r.values,r.queryKeys??[]))};new oe(this),this.fetcher=new ne(this)}static{this.styles=[te]}static{this.endpoints=[]}willUpdate(t){if(t.has("data")&&this.data!=null){let n=tt(this.data);n!==this.data&&(this.data=n)}(t.has("publishableKey")||t.has("baseUrl")||t.has("submitUrl")||t.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let t=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:rt(this.constructor.endpoints,this);return t&&{endpoint:t.endpoint,method:this.method??t.method}}render(){return l`${this.hiddenSectionsStyle()}${this.renderState()}`}drawn(t){try{return this.renderData(t)}catch(n){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,n),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:n},bubbles:!0,composed:!0})),customElements.get("roxy-data")?l`<roxy-data .data="${t}" lang="${P(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hiddenSectionsStyle(){let t=this.hideSections.split(",").map(r=>r.trim().toLowerCase()).filter(r=>/^[a-z][a-z0-9-]*$/.test(r));if(t.length===0)return a;let n=t.map(r=>`[part~="${r}"],roxy-endpoint-form::part(${r}){display:none!important}`).join("");return l`<style>${n}</style>`}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?l`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(t,n,r){return this.hideReadings?a:ut(t,n,this.t(r??"Reading"))}renderResult(t){let n=l`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(t)}`;return this.showAttribution()?l`${n}${this.renderAttribution()}`:n}renderWithForm(t){return l`${this.renderForm()}${t}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?a:this.renderErrorBanner(this.error):this.data==null?a:this.showAttribution()?l`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let t=this.listRows(),n=this.data?.total;return!this.lastRequest||!t||typeof n!="number"?a:t.length>=n?a:l`<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?l`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:a}</div>`}listRows(){let t=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(t)?t:void 0}fetchFresh(t){return this.lastRequest=t,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(t)}load(t){return this.hostLoaded=!0,this.syncFetcher(),this.fetchFresh(t)}pickRow(t){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:t,bubbles:!0,composed:!0})),this.openRow(t.id)}openRow(t){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let n=this.openedRow??document.createElement(this.rowDetail.tag);n.publishableKey=this.publishableKey,n.baseUrl=this.baseUrl,n.submitUrl=this.submitUrl,n.submitContext=this.submitContext,n.hideReadings=this.hideReadings,n.hideSections=this.hideSections;let r=this.effectiveLang();r&&n.setAttribute("lang",r),this.openedRow=n,this.openedRowId=t,n.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(t))}`,method:"GET",query:{lang:Ye(this)}}).then(()=>n.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return l`<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 t=this.selfFetch();return l`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${t?.endpoint??""}" method="${t?.method??"POST"}" spec-url="${P(this.specUrl)}" publishable-key="${P(this.publishableKey)}" location-url="${P(this.locationUrl)}" submit-label="${P(this.submitLabel)}" lang="${P(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let t=sessionStorage.getItem(this.rememberKey());return t?JSON.parse(t):void 0}catch{return}}writeRemembered(t){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(t))}catch{}}renderEmpty(){return l`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return l`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let n=!!this.selfFetch();if(n&&this.issues)return this.renderForm();let r=this.renderErrorBanner(t);return n?l`${r}${this.renderForm()}`:r}renderErrorBanner(t){return l`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(t)}</div>`}};p([y({attribute:!1})],h.prototype,"data",2),p([y({type:String,attribute:"data-endpoint"})],h.prototype,"endpoint",2),p([y({type:String})],h.prototype,"method",2),p([y({type:String,attribute:"publishable-key"})],h.prototype,"publishableKey",2),p([y({type:String,attribute:"base-url"})],h.prototype,"baseUrl",2),p([y({type:String,attribute:"spec-url"})],h.prototype,"specUrl",2),p([y({type:String,attribute:"submit-url"})],h.prototype,"submitUrl",2),p([y({attribute:"submit-context",converter:at})],h.prototype,"submitContext",2),p([y({type:String,attribute:"location-url"})],h.prototype,"locationUrl",2),p([y({type:Boolean})],h.prototype,"remember",2),p([y({type:Boolean,attribute:"hide-readings",reflect:!0})],h.prototype,"hideReadings",2),p([y({type:String,attribute:"hide-sections",reflect:!0})],h.prototype,"hideSections",2),p([y({type:String,attribute:"submit-label"})],h.prototype,"submitLabel",2),p([y({type:String,attribute:"error-message"})],h.prototype,"errorMessage",2),p([y({type:String})],h.prototype,"attribution",2),p([b()],h.prototype,"loading",2),p([b()],h.prototype,"error",2),p([b()],h.prototype,"issues",2),p([b()],h.prototype,"selfFetched",2),p([b()],h.prototype,"editing",2),p([b()],h.prototype,"sticky",2),p([b()],h.prototype,"openedRow",2),p([b()],h.prototype,"openedRowId",2),p([b()],h.prototype,"moreLoading",2),p([b()],h.prototype,"moreError",2);var mt=o=>e=>{customElements.get(o)||customElements.define(o,e)};function Qt(o){let e=o%360;return e<0?e+360:e}function gt(o){let e=Qt(o),t=Math.floor(e/30)%12,n=e%30,r=Math.floor(n),i=(n-r)*60,s=Math.floor(i),c=Math.round((i-s)*60);return{sign:Be[t]??"Aries",signIndex:t,degree:r,minute:s,second:c}}function er(o){let e=Math.floor(o);return{degree:e,minute:Math.floor((o-e)*60)}}function Ee(o){let{degree:e,minute:t}=er(o);return`${e}°${String(t).padStart(2,"0")}'`}var tr=/^\d{4}-\d{2}-\d{2}$/,rr=/^\d{4}-\d{2}$/,nr=/^\d{2}:\d{2}(:\d{2})?$/,or=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,yt=new Map;function ft(o){if(!o)return["en"];let e=yt.get(o);if(e)return[e,"en"];let t="en";try{t=Intl.getCanonicalLocales(o)[0]??"en"}catch{t="en"}return yt.set(o,t),[t,"en"]}function ir(o){let e=nr.test(o)?`1970-01-01T${o}`:tr.test(o)?`${o}T00:00:00`:rr.test(o)?`${o}-01T00:00:00`:or.test(o)?o.replace(" ","T"):null;return e?{d:new Date(`${e}Z`),timeZone:"UTC"}:{d:new Date(o)}}function $e(o,e){if(typeof e!="string"||e.length===0)return"";let{d:t,timeZone:n}=ir(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(ft(o),{month:"short",day:"numeric",year:"numeric",timeZone:n})}function ie(o,e,t=1){return typeof e!="number"||!Number.isFinite(e)?"":e.toLocaleString(ft(o),{maximumFractionDigits:t})}var sr="Localized";function f(o,e,t){let n=o,r=n?.[`${e}${sr}`];if(typeof r=="string"&&r!=="")return r;if(t!==void 0)return t;let i=n?.[e];return typeof i=="string"?i:""}var T=class extends h{constructor(){super(...arguments);this.heading=""}renderData(t){let n=this.toViewModel(t),r=n.cols;return l`<div class="wrap" part="card"><header part="header"><h2>${this.heading||n.title}</h2>${n.badges.length?l`<ul class="roxy-chips" part="details">${n.badges.map(i=>l`<li>${i.label}: ${i.value}</li>`)}</ul>`:a}</header>${n.summary&&!this.hideReadings?l`<p class="summary">${n.summary}</p>`:a}<div class="scroll" part="table" tabindex="0" role="region" aria-label="${n.title}"><table><caption class="roxy-label">${n.title}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Position")}</th>${r.natal?l`<th scope="col">${this.t("Natal")}</th>`:a} ${r.house?l`<th scope="col" class="num">${this.t("House")}</th>`:a} ${r.motion?l`<th scope="col">${this.t("Motion")}</th>`:a} ${r.formula?l`<th scope="col">${this.t("Formula")}</th>`:a}</tr></thead><tbody>${n.rows.map(i=>this.renderRow(i,r))}</tbody></table></div>${this.renderReadings(n.rows)}</div>`}renderRow(t,n){let r=be(t.body??t.label);return l`<tr class="${t.isAngle?"angle":""}"><td class="body-cell">${r?l`<span class="glyph">${r}</span>`:a}${t.label}</td><td>${this.signCell(t.sign,t.degree,t.signLabel)}</td>${n.natal?l`<td>${t.natalLongitude!=null?this.signFromLongitude(t.natalLongitude):l`—`}</td>`:a} ${n.house?l`<td class="num">${t.house!=null?t.house:l`—`}</td>`:a} ${n.motion?l`<td>${t.speed!=null?l`${ie(this.effectiveLang(),t.speed,3)}${this.t("°/day")}${t.isRetrograde?l`<span class="retro">℞</span>`:a}`:l`—`}</td>`:a} ${n.formula?l`<td class="formula">${t.formula??l`—`}</td>`:a}</tr>`}signCell(t,n,r=t){let i=qe(t);return l`<span class="sign">${i?l`<span class="sg">${i}</span>`:a}${Ee(n)} ${r}</span>`}signFromLongitude(t){let n=gt(t);return this.signCell(n.sign,n.degree+n.minute/60)}renderReadings(t){let n=t.filter(r=>r.interpretation).map(r=>({label:`${be(r.body??r.label)??""} ${r.label}`.trim(),aside:`${r.signLabel??r.sign} ${Ee(r.degree)}`.trim(),body:r.interpretation??""}));return this.renderInterpretation(n,"positions-readings","Readings")}toViewModel(t){if("asteroids"in t)return{title:this.t("Asteroids"),badges:t.houseSystem?[{label:this.t("Houses"),value:t.houseSystem}]:[],summary:t.summary,cols:{house:!0,motion:!0,formula:!1,natal:!1},rows:t.asteroids.map(r=>({body:r.name,label:f(r,"name"),sign:r.sign,signLabel:f(r,"sign"),degree:r.degree,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,interpretation:r.interpretation}))};if("lilith"in t)return{title:this.t("Black Moon Lilith"),badges:t.houseSystem?[{label:this.t("Houses"),value:t.houseSystem}]:[],summary:t.summary,cols:{house:!0,motion:!0,formula:!1,natal:!1},rows:t.lilith.map(r=>({label:this.t("{{variant}} apogee",{variant:f(r,"variant",xe(r.variant))}),sign:r.sign,signLabel:f(r,"sign"),degree:r.degree,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,interpretation:r.interpretation}))};if("directed"in t)return{title:this.t("Solar arc directions"),badges:[{label:this.t("Arc"),value:`${ie(this.effectiveLang(),t.solarArc,2)}°`},{label:this.t("Directed to"),value:$e(this.effectiveLang(),t.targetDate)}],summary:t.summary,cols:{house:!1,motion:!1,formula:!1,natal:!0},rows:t.directed.map(r=>({body:r.name,label:f(r,"name"),sign:r.sign,signLabel:f(r,"sign"),degree:r.degree,natalLongitude:r.natalLongitude,interpretation:r.interpretation}))};if("lots"in t)return{title:this.t("Arabic lots"),badges:t.sect?[{label:this.t("Sect"),value:xe(t.sect)}]:[],summary:t.summary,cols:{house:!1,motion:!1,formula:!0,natal:!1},rows:t.lots.map(r=>({body:r.name,label:f(r,"name"),sign:r.sign,signLabel:f(r,"sign"),degree:r.degree,formula:r.formula,interpretation:r.interpretation}))};let n=[];return t.ascendant&&n.push({label:this.t("Ascendant"),sign:t.ascendant.sign,signLabel:f(t.ascendant,"sign"),degree:t.ascendant.degree,isAngle:!0}),t.midheaven&&n.push({label:this.t("Midheaven"),sign:t.midheaven.sign,signLabel:f(t.midheaven,"sign"),degree:t.midheaven.degree,isAngle:!0}),{title:this.t("Secondary progressions"),badges:[{label:this.t("Progressed to"),value:$e(this.effectiveLang(),t.targetDate)},{label:this.t("Elapsed"),value:this.t("{{years}} yrs",{years:ie(this.effectiveLang(),t.elapsedYears,1)})}],summary:t.summary,cols:{house:!0,motion:!0,formula:!1,natal:!1},rows:[...n,...t.planets.map(r=>({body:r.name,label:f(r,"name"),sign:r.sign,signLabel:f(r,"sign"),degree:r.degree,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,interpretation:r.interpretation}))]}}};T.endpoints=Ke,T.styles=[te,pt,ht,x`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}header{gap:var(--roxy-space-sm);display:grid}.summary{font-size:var(--roxy-text-sm)}.scroll{min-width:0;overflow-x:auto}table{width:100%}caption{caption-side:top;text-align:start;padding-block-end:var(--roxy-space-xs)}:is(th,td){white-space:nowrap}:is(th,td).num{text-align:end}.body-cell{font-weight:var(--roxy-weight-bold)}.body-cell .glyph{color:var(--roxy-accent-ink);margin-inline-end:var(--roxy-space-xs)}tr.angle td{color:var(--roxy-secondary)}.sign{align-items:baseline;gap:var(--roxy-space-xs);display:inline-flex}.sign .sg{color:var(--roxy-secondary)}.retro{color:var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold);margin-inline-start:var(--roxy-space-xs)}.formula{color:var(--roxy-muted);white-space:normal}`],p([y({type:String})],T.prototype,"heading",2),T=p([mt("roxy-positions-table")],T);return wt(ar);})();
|
|
1
|
+
var RoxyUI_positions_table=(()=>{var H=Object.defineProperty;var Tt=Object.getOwnPropertyDescriptor;var xe=Object.getOwnPropertyNames;var be=Object.prototype.hasOwnProperty;var ve=(o,t)=>{for(var e in t)H(o,e,{get:t[e],enumerable:!0})},Se=(o,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xe(t))!be.call(o,r)&&r!==e&&H(o,r,{get:()=>t[r],enumerable:!(n=Tt(t,r))||n.enumerable});return o};var we=o=>Se(H({},"__esModule",{value:!0}),o),p=(o,t,e,n)=>{for(var r=n>1?void 0:n?Tt(t,e):t,i=o.length-1,s;i>=0;i--)(s=o[i])&&(r=(n?s(t,e,r):s(r))||r);return n&&r&&H(t,e,r),r};var ar={};ve(ar,{ROXY_UI_TOKENS_STYLE_ID:()=>J,RoxyPositionsTable:()=>T,injectRoxyTokens:()=>X});var j=globalThis,q=j.ShadowRoot&&(j.ShadyCSS===void 0||j.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,st=Symbol(),kt=new WeakMap,F=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==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 n=e!==void 0&&e.length===1;n&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&kt.set(e,t))}return t}toString(){return this.cssText}},At=o=>new F(typeof o=="string"?o:o+"",void 0,st),x=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((n,r,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[i+1],o[0]);return new F(e,o,st)},_t=(o,t)=>{if(q)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let n=document.createElement("style"),r=j.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=e.cssText,o.appendChild(n)}},at=q?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let n of t.cssRules)e+=n.cssText;return At(e)})(o):o;var{is:Ee,defineProperty:$e,getOwnPropertyDescriptor:Te,getOwnPropertyNames:ke,getOwnPropertySymbols:Ae,getPrototypeOf:_e}=Object,B=globalThis,Rt=B.trustedTypes,Re=Rt?Rt.emptyScript:"",Pe=B.reactiveElementPolyfillSupport,M=(o,t)=>o,N={toAttribute(o,t){switch(t){case Boolean:o=o?Re:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},V=(o,t)=>!Ee(o,t),Pt={attribute:!0,type:String,converter:N,reflect:!1,useDefault:!1,hasChanged:V};Symbol.metadata??=Symbol("metadata"),B.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=Pt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(t,n,e);r!==void 0&&$e(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){let{get:r,set:i}=Te(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:r,set(s){let c=r?.call(this);i?.call(this,s),this.requestUpdate(t,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Pt}static _$Ei(){if(this.hasOwnProperty(M("elementProperties")))return;let t=_e(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(M("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(M("properties"))){let e=this.properties,n=[...ke(e),...Ae(e)];for(let r of n)this.createProperty(r,e[r])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[n,r]of e)this.elementProperties.set(n,r)}this._$Eh=new Map;for(let[e,n]of this.elementProperties){let r=this._$Eu(e,n);r!==void 0&&this._$Eh.set(r,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 r of n)e.unshift(at(r))}else t!==void 0&&e.push(at(t));return e}static _$Eu(t,e){let n=e.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let 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 _t(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){let n=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,n);if(r!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:N).toAttribute(e,n.type);this._$Em=t,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){let n=this.constructor,r=n._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let i=n.getPropertyOptions(r),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:N;this._$Em=r;let c=s.fromAttribute(e,i.type);this[r]=c??this._$Ej?.get(r)??c,this._$Em=null}}requestUpdate(t,e,n,r=!1,i){if(t!==void 0){let s=this.constructor;if(r===!1&&(i=this[t]),n??=s.getPropertyOptions(t),!((n.hasChanged??V)(i,e)||n.useDefault&&n.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,n))))return;this.C(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:r,wrapped:i},s){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),i!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[r,i]of n){let{wrapped:s}=i,c=this[r];s!==!0||this._$AL.has(r)||c===void 0||this.C(r,void 0,i,c)}}let t=!1,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=!1,this._$EM(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[M("elementProperties")]=new Map,S[M("finalized")]=new Map,Pe?.({ReactiveElement:S}),(B.reactiveElementVersions??=[]).push("2.1.2");var mt=globalThis,Ct=o=>o,Y=mt.trustedTypes,Ot=Y?Y.createPolicy("lit-html",{createHTML:o=>o}):void 0,It="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,Gt="?"+E,Ce=`<${Gt}>`,_=document,I=()=>_.createComment(""),G=o=>o===null||typeof o!="object"&&typeof o!="function",gt=Array.isArray,Oe=o=>gt(o)||typeof o?.[Symbol.iterator]=="function",dt=`[
|
|
2
|
+
\f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Lt=/-->/g,Ft=/>/g,k=RegExp(`>|${dt}(?:([^\\s"'>=/]+)(${dt}*=${dt}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Mt=/'/g,Nt=/"/g,Dt=/^(?:script|style|textarea|title)$/i,yt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=yt(1),ur=yt(2),mr=yt(3),R=Symbol.for("lit-noChange"),a=Symbol.for("lit-nothing"),Ut=new WeakMap,A=_.createTreeWalker(_,129);function zt(o,t){if(!gt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ot!==void 0?Ot.createHTML(t):t}var Le=(o,t)=>{let e=o.length-1,n=[],r,i=t===2?"<svg>":t===3?"<math>":"",s=U;for(let c=0;c<e;c++){let d=o[c],g,m,u=-1,v=0;for(;v<d.length&&(s.lastIndex=v,m=s.exec(d),m!==null);)v=s.lastIndex,s===U?m[1]==="!--"?s=Lt:m[1]!==void 0?s=Ft:m[2]!==void 0?(Dt.test(m[2])&&(r=RegExp("</"+m[2],"g")),s=k):m[3]!==void 0&&(s=k):s===k?m[0]===">"?(s=r??U,u=-1):m[1]===void 0?u=-2:(u=s.lastIndex-m[2].length,g=m[1],s=m[3]===void 0?k:m[3]==='"'?Nt:Mt):s===Nt||s===Mt?s=k:s===Lt||s===Ft?s=U:(s=k,r=void 0);let w=s===k&&o[c+1].startsWith("/>")?" ":"";i+=s===U?d+Ce:u>=0?(n.push(g),d.slice(0,u)+It+d.slice(u)+E+w):d+E+(u===-2?c:w)}return[zt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},D=class o{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let i=0,s=0,c=t.length-1,d=this.parts,[g,m]=Le(t,e);if(this.el=o.createElement(g,n),A.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(r=A.nextNode())!==null&&d.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(let u of r.getAttributeNames())if(u.endsWith(It)){let v=m[s++],w=r.getAttribute(u).split(E),K=/([.?@])?(.*)/.exec(v);d.push({type:1,index:i,name:K[2],strings:w,ctor:K[1]==="."?ct:K[1]==="?"?pt:K[1]==="@"?ht:O}),r.removeAttribute(u)}else u.startsWith(E)&&(d.push({type:6,index:i}),r.removeAttribute(u));if(Dt.test(r.tagName)){let u=r.textContent.split(E),v=u.length-1;if(v>0){r.textContent=Y?Y.emptyScript:"";for(let w=0;w<v;w++)r.append(u[w],I()),A.nextNode(),d.push({type:2,index:++i});r.append(u[v],I())}}}else if(r.nodeType===8)if(r.data===Gt)d.push({type:2,index:i});else{let u=-1;for(;(u=r.data.indexOf(E,u+1))!==-1;)d.push({type:7,index:i}),u+=E.length-1}i++}}static createElement(t,e){let n=_.createElement("template");return n.innerHTML=t,n}};function C(o,t,e=o,n){if(t===R)return t;let r=n!==void 0?e._$Co?.[n]:e._$Cl,i=G(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(o),r._$AT(o,e,n)),n!==void 0?(e._$Co??=[])[n]=r:e._$Cl=r),r!==void 0&&(t=C(o,r._$AS(o,t.values),r,n)),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:n}=this._$AD,r=(t?.creationScope??_).importNode(e,!0);A.currentNode=r;let i=A.nextNode(),s=0,c=0,d=n[0];for(;d!==void 0;){if(s===d.index){let g;d.type===2?g=new z(i,i.nextSibling,this,t):d.type===1?g=new d.ctor(i,d.name,d.strings,this,t):d.type===6&&(g=new ut(i,this,t)),this._$AV.push(g),d=n[++c]}s!==d?.index&&(i=A.nextNode(),s++)}return A.currentNode=_,r}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++}},z=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,r){this.type=2,this._$AH=a,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=C(this,t,e),G(t)?t===a||t==null||t===""?(this._$AH!==a&&this._$AR(),this._$AH=a):t!==this._$AH&&t!==R&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Oe(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(_.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:n}=t,r=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=D.createElement(zt(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new lt(r,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){gt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,n,r=0;for(let i of t)r===e.length?e.push(n=new o(this.O(I()),this.O(I()),this,this.options)):n=e[r],n._$AI(i),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let n=Ct(t).nextSibling;Ct(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},O=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,r,i){this.type=1,this._$AH=a,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=a}_$AI(t,e=this,n,r){let i=this.strings,s=!1;if(i===void 0)t=C(this,t,e,0),s=!G(t)||t!==this._$AH&&t!==R,s&&(this._$AH=t);else{let c=t,d,g;for(t=i[0],d=0;d<i.length-1;d++)g=C(this,c[n+d],e,d),g===R&&(g=this._$AH[d]),s||=!G(g)||g!==this._$AH[d],g===a?t=a:t!==a&&(t+=(g??"")+i[d+1]),this._$AH[d]=g}s&&!r&&this.j(t)}j(t){t===a?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===a?void 0:t}},pt=class extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==a)}},ht=class extends O{constructor(t,e,n,r,i){super(t,e,n,r,i),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??a)===R)return;let n=this._$AH,r=t===a&&n!==a||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==a&&(n===a||r);r&&this.element.removeEventListener(this.name,this,n),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,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){C(this,t)}};var Fe=mt.litHtmlPolyfillSupport;Fe?.(D,z),(mt.litHtmlVersions??=[]).push("3.3.3");var Kt=(o,t,e)=>{let n=e?.renderBefore??t,r=n._$litPart$;if(r===void 0){let i=e?.renderBefore??null;n._$litPart$=r=new z(t.insertBefore(I(),i),i,void 0,e??{})}return r._$AI(o),r};var ft=globalThis,$=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=Kt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return R}};$._$litElement$=!0,$.finalized=!0,ft.litElementHydrateSupport?.({LitElement:$});var Me=ft.litElementPolyfillSupport;Me?.({LitElement:$});(ft.litElementVersions??=[]).push("4.2.2");var Ne={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:V},Ue=(o=Ne,t,e)=>{let{kind:n,metadata:r}=e,i=globalThis.litPropertyMetadata.get(r);if(i===void 0&&globalThis.litPropertyMetadata.set(r,i=new Map),n==="setter"&&((o=Object.create(o)).wrapped=!0),i.set(e.name,o),n==="accessor"){let{name:s}=e;return{set(c){let d=t.get.call(this);t.set.call(this,c),this.requestUpdate(s,d,o,!0,c)},init(c){return c!==void 0&&this.C(s,void 0,o,c),c}}}if(n==="setter"){let{name:s}=e;return function(c){let d=this[s];t.call(this,c),this.requestUpdate(s,d,o,!0,c)}}throw Error("Unsupported decorator location: "+n)};function y(o){return(t,e)=>typeof e=="object"?Ue(o,t,e):((n,r,i)=>{let s=r.hasOwnProperty(i);return r.constructor.createProperty(i,n),s?Object.getOwnPropertyDescriptor(r,i):void 0})(o,t,e)}function b(o){return y({...o,state:!0,attribute:!1})}var Ht=[{endpoint:"astrology/asteroids",method:"POST"},{endpoint:"astrology/lilith",method:"POST"},{endpoint:"astrology/progressions",method:"POST"},{endpoint:"astrology/solar-arc",method:"POST"},{endpoint:"astrology/arabic-lots",method:"POST"}];function Z(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}function xt(o){return o?o.charAt(0).toUpperCase()+o.slice(1).toLowerCase():""}var jt=(o,t)=>t?o[Z(t)]:void 0,Ie={sun:"☉",moon:"☽",mercury:"☿",venus:"♀",earth:"♁",mars:"♂",jupiter:"♃",saturn:"♄",uranus:"♅",neptune:"♆",pluto:"♇",rahu:"☊",ketu:"☋",ascendant:"Asc",midheaven:"MC","part of fortune":"⊗",vertex:"Vx",lagna:"La","north node":"☊","south node":"☋",chiron:"⚷",lilith:"⚸","black moon lilith":"⚸"},bt=o=>jt(Ie,o);var Ge={aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpio:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓"},qt=o=>jt(Ge,o);var Bt=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"];var P=o=>o??a;var Vt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function St(o){if(o.lang)return o.lang;if(typeof document>"u")return;let t=o.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var De={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function vt(o){let t=o.toLowerCase();return Vt.find(e=>e.toLowerCase()===t)}function Yt(o){let t=St(o);if(!t)return;let e=vt(t);if(e)return e;let n=t.toLowerCase().split("-"),r=n[0];if(r==="zh"){let i=n.find(s=>s==="hans"||s==="hant")??De[n[1]??""];return i?vt(`zh-${i}`):void 0}return vt(r)}var Wt='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black)}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var J="roxy-ui-tokens";function X(){if(typeof document>"u")return null;let o=document.getElementById(J);if(o)return o;let t=document.createElement("style");return t.id=J,t.textContent=Wt,document.head.prepend(t),t}var Zt="__ROXY_UI_I18N__";function Jt(){let o=globalThis,t=o[Zt];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[Zt]=e,e}function ze(o,t){return t?o.replace(/\{\{(\w+)\}\}/g,(e,n)=>n in t?String(t[n]??""):e):o}function Xt(o,t,e){return ze(Ke(o,t)??t,e)}function Ke(o,t){if(!o)return;let{catalogs:e}=Jt(),n=o.toLowerCase();return(e[n]??e[n.split("-")[0]])?.[Z(t)]}function Qt(o){let{listeners:t}=Jt();return t.add(o),()=>{t.delete(o)}}var Q=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=Qt(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var tt=class extends ${constructor(){super();this.translator=(e,n)=>this.t(e,n);new Q(this)}connectedCallback(){super.connectedCallback(),X()}t(e,n){return Xt(this.effectiveLang(),e,n)}effectiveLang(){return St(this)}};var te=x`: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 He=x`: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}`,et=[He,te];var je="__cols",qe="__rows";function Be(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function rt(o){if(Array.isArray(o)){let i=!1,s=o.map(c=>{let d=rt(c);return d!==c&&(i=!0),d});return i?s:o}if(!Be(o))return o;let t=o[je],e=o[qe];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(o).length===2)return e.map(i=>{let s={};return t.forEach((c,d)=>{s[c]=rt(i[d])}),s});let n=!1,r={};for(let[i,s]of Object.entries(o)){let c=rt(s);c!==s&&(n=!0),r[i]=c}return n?r:o}function ee(o){return rt(o)}function re(o,t){return o.find(e=>e.attrs&&Object.entries(e.attrs).every(([n,r])=>t[n]===r))??o[0]}var Ve="pk_live_YOUR_KEY",ne={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 oe(o){if(o)return o===Ve?ne.sample:o.startsWith("pk_")?void 0:ne.secret}function ie(o,t,e={}){e.warn&&console.warn(t.message),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:!0,composed:!0}))}var se="https://roxyapi.com/api/v2";async function Ye(o){try{let t=await o.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:!0}}}catch{}return{message:`Request failed (${o.status})`,issues:null,worded:!1}}var ae={fromAttribute:o=>{if(o!=null){try{let t=JSON.parse(o);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,n=null,r=!0){super(e);this.issues=n;this.worded=r}};function de(o){return o.submitUrl?void 0:oe(o.publishableKey)}async function wt(o,t,e){let n=de(o);if(n)throw new L(n.message);let r=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:We(t,o.submitContext),signal:e}):await Ze(o,t,e);if(!r.ok){let i=await Ye(r);throw new L(i.message,i.issues,i.worded)}return await r.json()}function We(o,t){return JSON.stringify(t?{...o,context:t}:o)}function Ze(o,t,e){let n=new URL(`${o.baseUrl??se}${t.path}`,document.baseURI);for(let[i,s]of Object.entries(t.query??{}))s!=null&&n.searchParams.set(i,String(s));let r={Accept:"application/json"};return o.publishableKey&&(r["X-API-Key"]=o.publishableKey),t.body!=null&&(r["Content-Type"]="application/json"),fetch(n,{method:t.method??"GET",headers:r,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var nt=class{constructor(t){this.baseUrl=se;this.worded=!0;this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=!0;let e=de(this);if(e){this.host.error=e.message,ie(this.host,e);return}this.abort?.abort();let n=new AbortController;this.abort=n,this.host.loading=!0,this.host.error=null,this.host.issues=null;try{let r=await wt(this,t,n.signal);if(n.signal.aborted)return;this.host.data=r}catch(r){if(n.signal.aborted||r?.name==="AbortError")return;r instanceof L&&(this.host.issues=r.issues),this.worded=r instanceof L&&r.worded,this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===n&&(this.abort=void 0),n.signal.aborted||(this.host.loading=!1)}}};function le(o,t,e,n=[]){let r={...e},i=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(g,m)=>{let u=r[m];return delete r[m],encodeURIComponent(String(u??""))}),s=new Set(n),c={},d={};for(let[g,m]of Object.entries(r))m===void 0||m===""||(t==="GET"||s.has(g)?c[g]=m:d[g]=m);return{path:i,method:t,query:c,body:t==="POST"?d:void 0}}function ce(){return l`<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 pe=x`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 he=x`.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 ue(o,t,e){let n=o.filter(r=>!!r.body);return n.length===0?a:l`<section class="block" part="section readings"><h3>${e}</h3>${n.map((r,i)=>l`<details class="interp-card" part="reading" name="${t}" ?open="${i===0}"><summary><span class="interp-lead">${r.label}</span> ${ce()} ${r.aside?l`<span class="interp-aside"><small>${r.aside}</small></span>`:a}</summary><div class="interp-body"><p>${r.body}</p>${r.extra??a}</div></details>`)}</section>`}var Je="roxy-data";function Xe(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var ot=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(Xe(t)&&t.classList.contains(Je))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var h=class extends tt{constructor(){super();this.data=null;this.endpoint="";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.issues=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.hostLoaded=!1;this.moreLoading=!1;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,n=this.listKey,r=this.listRows();if(!(!e||!n||!r)){this.moreLoading=!0,this.moreError=null;try{let i=await wt(this.fetcher,{...e,query:{...e.query,offset:r.length}});if(this.lastRequest!==e)return;let s=i[n];this.data={...this.data,...i,[n]:[...r,...Array.isArray(s)?s:[]]}}catch(i){this.lastRequest===e&&(this.moreError=i instanceof Error?i.message:String(i))}finally{this.moreLoading=!1}}};this.onEdit=()=>{this.editing=!0};this.onFormSubmit=e=>{let n=this.selfFetch();if(!n)return;let r=e.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetchFresh(le(n.endpoint,n.method,r.values,r.queryKeys??[]))};new ot(this),this.fetcher=new nt(this)}static{this.styles=[et]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let n=ee(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:re(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return l`${this.hiddenSectionsStyle()}${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:!0,composed:!0})),customElements.get("roxy-data")?l`<roxy-data .data="${e}" lang="${P(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hiddenSectionsStyle(){let e=this.hideSections.split(",").map(r=>r.trim().toLowerCase()).filter(r=>/^[a-z][a-z0-9-]*$/.test(r));if(e.length===0)return a;let n=e.map(r=>`[part~="${r}"],roxy-endpoint-form::part(${r}){display:none!important}`).join("");return l`<style>${n}</style>`}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?l`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,n,r){return this.hideReadings?a:ue(e,n,this.t(r??"Reading"))}renderResult(e){let n=l`<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()?l`${n}${this.renderAttribution()}`:n}renderWithForm(e){return l`${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()?l`${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"?a:e.length>=n?a:l`<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?l`<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=!0,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:!0,composed:!0})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let 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 r=this.effectiveLang();r&&n.setAttribute("lang",r),this.openedRow=n,this.openedRowId=e,n.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:Yt(this)}}).then(()=>n.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return l`<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 l`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${P(this.specUrl)}" publishable-key="${P(this.publishableKey)}" location-url="${P(this.locationUrl)}" submit-label="${P(this.submitLabel)}" lang="${P(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 l`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return l`<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 r=this.renderErrorBanner(e);return n?l`${r}${this.renderForm()}`:r}renderErrorBanner(e){return l`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};p([y({attribute:!1})],h.prototype,"data",2),p([y({type:String,attribute:"data-endpoint"})],h.prototype,"endpoint",2),p([y({type:String})],h.prototype,"method",2),p([y({type:String,attribute:"publishable-key"})],h.prototype,"publishableKey",2),p([y({type:String,attribute:"base-url"})],h.prototype,"baseUrl",2),p([y({type:String,attribute:"spec-url"})],h.prototype,"specUrl",2),p([y({type:String,attribute:"submit-url"})],h.prototype,"submitUrl",2),p([y({attribute:"submit-context",converter:ae})],h.prototype,"submitContext",2),p([y({type:String,attribute:"location-url"})],h.prototype,"locationUrl",2),p([y({type:Boolean})],h.prototype,"remember",2),p([y({type:Boolean,attribute:"hide-readings",reflect:!0})],h.prototype,"hideReadings",2),p([y({type:String,attribute:"hide-sections",reflect:!0})],h.prototype,"hideSections",2),p([y({type:String,attribute:"submit-label"})],h.prototype,"submitLabel",2),p([y({type:String,attribute:"error-message"})],h.prototype,"errorMessage",2),p([y({type:String})],h.prototype,"attribution",2),p([b()],h.prototype,"loading",2),p([b()],h.prototype,"error",2),p([b()],h.prototype,"issues",2),p([b()],h.prototype,"selfFetched",2),p([b()],h.prototype,"editing",2),p([b()],h.prototype,"sticky",2),p([b()],h.prototype,"openedRow",2),p([b()],h.prototype,"openedRowId",2),p([b()],h.prototype,"moreLoading",2),p([b()],h.prototype,"moreError",2);var me=o=>t=>{customElements.get(o)||customElements.define(o,t)};function Qe(o){let t=o%360;return t<0?t+360:t}function ge(o){let t=Qe(o),e=Math.floor(t/30)%12,n=t%30,r=Math.floor(n),i=(n-r)*60,s=Math.floor(i),c=Math.round((i-s)*60);return{sign:Bt[e]??"Aries",signIndex:e,degree:r,minute:s,second:c}}function tr(o){let t=Math.floor(o);return{degree:t,minute:Math.floor((o-t)*60)}}function Et(o){let{degree:t,minute:e}=tr(o);return`${t}°${String(e).padStart(2,"0")}'`}var er=/^\d{4}-\d{2}-\d{2}$/,rr=/^\d{4}-\d{2}$/,nr=/^\d{2}:\d{2}(:\d{2})?$/,or=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,ye=new Map;function fe(o){if(!o)return["en"];let t=ye.get(o);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(o)[0]??"en"}catch{e="en"}return ye.set(o,e),[e,"en"]}function ir(o){let t=nr.test(o)?`1970-01-01T${o}`:er.test(o)?`${o}T00:00:00`:rr.test(o)?`${o}-01T00:00:00`:or.test(o)?o.replace(" ","T"):null;return t?{d:new Date(`${t}Z`),timeZone:"UTC"}:{d:new Date(o)}}function $t(o,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:n}=ir(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(fe(o),{month:"short",day:"numeric",year:"numeric",timeZone:n})}function it(o,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(fe(o),{maximumFractionDigits:e})}var sr="Localized";function f(o,t,e){let n=o,r=n?.[`${t}${sr}`];if(typeof r=="string"&&r!=="")return r;if(e!==void 0)return e;let i=n?.[t];return typeof i=="string"?i:""}var T=class extends h{constructor(){super(...arguments);this.heading=""}renderData(e){let n=this.toViewModel(e),r=n.cols;return l`<div class="wrap" part="card"><header part="header"><h2>${this.heading||n.title}</h2>${n.badges.length?l`<ul class="roxy-chips" part="details">${n.badges.map(i=>l`<li>${i.label}: ${i.value}</li>`)}</ul>`:a}</header>${n.summary&&!this.hideReadings?l`<p class="summary">${n.summary}</p>`:a}<div class="scroll" part="table" tabindex="0" role="region" aria-label="${n.title}"><table><caption class="roxy-label">${n.title}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Position")}</th>${r.natal?l`<th scope="col">${this.t("Natal")}</th>`:a} ${r.house?l`<th scope="col" class="num">${this.t("House")}</th>`:a} ${r.motion?l`<th scope="col">${this.t("Motion")}</th>`:a} ${r.formula?l`<th scope="col">${this.t("Formula")}</th>`:a}</tr></thead><tbody>${n.rows.map(i=>this.renderRow(i,r))}</tbody></table></div>${this.renderReadings(n.rows)}</div>`}renderRow(e,n){let r=bt(e.body??e.label);return l`<tr class="${e.isAngle?"angle":""}"><td class="body-cell">${r?l`<span class="glyph">${r}</span>`:a}${e.label}</td><td>${this.signCell(e.sign,e.degree,e.signLabel)}</td>${n.natal?l`<td>${e.natalLongitude!=null?this.signFromLongitude(e.natalLongitude):l`—`}</td>`:a} ${n.house?l`<td class="num">${e.house!=null?e.house:l`—`}</td>`:a} ${n.motion?l`<td>${e.speed!=null?l`${it(this.effectiveLang(),e.speed,3)}${this.t("°/day")}${e.isRetrograde?l`<span class="retro">℞</span>`:a}`:l`—`}</td>`:a} ${n.formula?l`<td class="formula">${e.formula??l`—`}</td>`:a}</tr>`}signCell(e,n,r=e){let i=qt(e);return l`<span class="sign">${i?l`<span class="sg">${i}</span>`:a}${Et(n)} ${r}</span>`}signFromLongitude(e){let n=ge(e);return this.signCell(n.sign,n.degree+n.minute/60)}renderReadings(e){let n=e.filter(r=>r.interpretation).map(r=>({label:`${bt(r.body??r.label)??""} ${r.label}`.trim(),aside:`${r.signLabel??r.sign} ${Et(r.degree)}`.trim(),body:r.interpretation??""}));return this.renderInterpretation(n,"positions-readings","Readings")}toViewModel(e){if("asteroids"in e)return{title:this.t("Asteroids"),badges:e.houseSystem?[{label:this.t("Houses"),value:e.houseSystem}]:[],summary:e.summary,cols:{house:!0,motion:!0,formula:!1,natal:!1},rows:e.asteroids.map(r=>({body:r.name,label:f(r,"name"),sign:r.sign,signLabel:f(r,"sign"),degree:r.degree,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,interpretation:r.interpretation}))};if("lilith"in e)return{title:this.t("Black Moon Lilith"),badges:e.houseSystem?[{label:this.t("Houses"),value:e.houseSystem}]:[],summary:e.summary,cols:{house:!0,motion:!0,formula:!1,natal:!1},rows:e.lilith.map(r=>({label:this.t("{{variant}} apogee",{variant:f(r,"variant",xt(r.variant))}),sign:r.sign,signLabel:f(r,"sign"),degree:r.degree,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,interpretation:r.interpretation}))};if("directed"in e)return{title:this.t("Solar arc directions"),badges:[{label:this.t("Arc"),value:`${it(this.effectiveLang(),e.solarArc,2)}°`},{label:this.t("Directed to"),value:$t(this.effectiveLang(),e.targetDate)}],summary:e.summary,cols:{house:!1,motion:!1,formula:!1,natal:!0},rows:e.directed.map(r=>({body:r.name,label:f(r,"name"),sign:r.sign,signLabel:f(r,"sign"),degree:r.degree,natalLongitude:r.natalLongitude,interpretation:r.interpretation}))};if("lots"in e)return{title:this.t("Arabic lots"),badges:e.sect?[{label:this.t("Sect"),value:xt(e.sect)}]:[],summary:e.summary,cols:{house:!1,motion:!1,formula:!0,natal:!1},rows:e.lots.map(r=>({body:r.name,label:f(r,"name"),sign:r.sign,signLabel:f(r,"sign"),degree:r.degree,formula:r.formula,interpretation:r.interpretation}))};let n=[];return e.ascendant&&n.push({label:this.t("Ascendant"),sign:e.ascendant.sign,signLabel:f(e.ascendant,"sign"),degree:e.ascendant.degree,isAngle:!0}),e.midheaven&&n.push({label:this.t("Midheaven"),sign:e.midheaven.sign,signLabel:f(e.midheaven,"sign"),degree:e.midheaven.degree,isAngle:!0}),{title:this.t("Secondary progressions"),badges:[{label:this.t("Progressed to"),value:$t(this.effectiveLang(),e.targetDate)},{label:this.t("Elapsed"),value:this.t("{{years}} yrs",{years:it(this.effectiveLang(),e.elapsedYears,1)})}],summary:e.summary,cols:{house:!0,motion:!0,formula:!1,natal:!1},rows:[...n,...e.planets.map(r=>({body:r.name,label:f(r,"name"),sign:r.sign,signLabel:f(r,"sign"),degree:r.degree,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,interpretation:r.interpretation}))]}}};T.endpoints=Ht,T.styles=[et,pe,he,x`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}header{gap:var(--roxy-space-sm);display:grid}.summary{font-size:var(--roxy-text-sm)}.scroll{min-width:0;overflow-x:auto}table{width:100%}caption{caption-side:top;text-align:start;padding-block-end:var(--roxy-space-xs)}:is(th,td){white-space:nowrap}:is(th,td).num{text-align:end}.body-cell{font-weight:var(--roxy-weight-bold)}.body-cell .glyph{color:var(--roxy-accent-ink);margin-inline-end:var(--roxy-space-xs)}tr.angle td{color:var(--roxy-secondary)}.sign{align-items:baseline;gap:var(--roxy-space-xs);display:inline-flex}.sign .sg{color:var(--roxy-secondary)}.retro{color:var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold);margin-inline-start:var(--roxy-space-xs)}.formula{color:var(--roxy-muted);white-space:normal}`],p([y({type:String})],T.prototype,"heading",2),T=p([me("roxy-positions-table")],T);return we(ar);})();
|
|
206
4
|
/*! Bundled license information:
|
|
207
5
|
|
|
208
6
|
@lit/reactive-element/css-tag.js:
|