@roxyapi/ui 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/AGENTS.md +3 -1
  2. package/README.md +6 -0
  3. package/THEMING.md +30 -23
  4. package/components-catalog.json +1 -1
  5. package/dist/cdn/components/almanac-day.js +5 -3
  6. package/dist/cdn/components/angel-number-card.js +3 -3
  7. package/dist/cdn/components/angel-number-lookup.js +3 -3
  8. package/dist/cdn/components/arudha-padas.js +3 -3
  9. package/dist/cdn/components/ashtakavarga-grid.js +3 -3
  10. package/dist/cdn/components/aspects-table.js +3 -3
  11. package/dist/cdn/components/astrocartography-map.js +9 -9
  12. package/dist/cdn/components/bazi-chart.js +2 -2
  13. package/dist/cdn/components/bhav-chalit-table.js +3 -3
  14. package/dist/cdn/components/bhava-bala-table.js +2 -2
  15. package/dist/cdn/components/biorhythm-chart.js +3 -3
  16. package/dist/cdn/components/bodygraph.js +11 -11
  17. package/dist/cdn/components/chara-karakas.js +3 -3
  18. package/dist/cdn/components/choghadiya-grid.js +3 -3
  19. package/dist/cdn/components/compatibility-card.js +3 -3
  20. package/dist/cdn/components/compound-number.js +3 -3
  21. package/dist/cdn/components/crystal-card.js +2 -2
  22. package/dist/cdn/components/crystal-grid.js +2 -2
  23. package/dist/cdn/components/dasha-timeline.js +2 -2
  24. package/dist/cdn/components/data.js +2 -2
  25. package/dist/cdn/components/divisional-chart.js +54 -54
  26. package/dist/cdn/components/dosha-card.js +3 -3
  27. package/dist/cdn/components/dosha-constitution.js +2 -2
  28. package/dist/cdn/components/dream-card.js +2 -2
  29. package/dist/cdn/components/dream-search.js +3 -3
  30. package/dist/cdn/components/endpoint-form.js +3 -3
  31. package/dist/cdn/components/ephemeris-table.js +3 -3
  32. package/dist/cdn/components/fixed-stars.js +3 -3
  33. package/dist/cdn/components/flying-star-chart.js +3 -3
  34. package/dist/cdn/components/forecast-digest.js +3 -3
  35. package/dist/cdn/components/forecast-timeline.js +5 -3
  36. package/dist/cdn/components/gematria.js +3 -3
  37. package/dist/cdn/components/gochara-table.js +3 -3
  38. package/dist/cdn/components/guna-milan.js +2 -2
  39. package/dist/cdn/components/hd-connection.js +10 -10
  40. package/dist/cdn/components/hd-penta.js +18 -18
  41. package/dist/cdn/components/hd-type-card.js +3 -3
  42. package/dist/cdn/components/hd-variables.js +2 -2
  43. package/dist/cdn/components/heliacal-table.js +3 -3
  44. package/dist/cdn/components/hexagram.js +3 -3
  45. package/dist/cdn/components/hora-table.js +3 -3
  46. package/dist/cdn/components/horoscope-card.js +3 -3
  47. package/dist/cdn/components/kp-chart.js +3 -3
  48. package/dist/cdn/components/kp-finance-card.js +3 -3
  49. package/dist/cdn/components/kp-planets-table.js +3 -3
  50. package/dist/cdn/components/kp-ruling-planets.js +3 -3
  51. package/dist/cdn/components/kua-card.js +3 -3
  52. package/dist/cdn/components/local-space-compass.js +8 -8
  53. package/dist/cdn/components/location-search.js +3 -3
  54. package/dist/cdn/components/luck-pillars.js +2 -2
  55. package/dist/cdn/components/mayan-day-sign.js +3 -3
  56. package/dist/cdn/components/moon-phase.js +5 -3
  57. package/dist/cdn/components/nakshatra-card.js +2 -2
  58. package/dist/cdn/components/natal-chart.js +17 -17
  59. package/dist/cdn/components/numerology-card.js +3 -3
  60. package/dist/cdn/components/panchang-table.js +5 -3
  61. package/dist/cdn/components/positions-table.js +3 -3
  62. package/dist/cdn/components/profection-card.js +3 -3
  63. package/dist/cdn/components/reference-card.js +3 -3
  64. package/dist/cdn/components/relocation-wheel.js +18 -18
  65. package/dist/cdn/components/report.js +3 -3
  66. package/dist/cdn/components/shadbala-table.js +3 -3
  67. package/dist/cdn/components/synastry-chart.js +17 -17
  68. package/dist/cdn/components/tarot-card.js +2 -2
  69. package/dist/cdn/components/tarot-catalog.js +3 -3
  70. package/dist/cdn/components/tarot-spread.js +3 -3
  71. package/dist/cdn/components/transit-wheel.js +10 -10
  72. package/dist/cdn/components/transits-table.js +3 -3
  73. package/dist/cdn/components/upagraha-table.js +3 -3
  74. package/dist/cdn/components/vastu-mandala.js +8 -8
  75. package/dist/cdn/components/vedic-aspects.js +3 -3
  76. package/dist/cdn/components/vedic-daily.js +3 -3
  77. package/dist/cdn/components/vedic-kundli.js +55 -55
  78. package/dist/cdn/components/vedic-planets-table.js +3 -3
  79. package/dist/cdn/components/western-planets-table.js +3 -3
  80. package/dist/cdn/components/yoga-list.js +2 -2
  81. package/dist/cdn/components/zodiac-card.js +3 -3
  82. package/dist/cdn/locales/de.js +1 -1
  83. package/dist/cdn/locales/es.js +1 -1
  84. package/dist/cdn/locales/fr.js +1 -1
  85. package/dist/cdn/locales/hi.js +1 -1
  86. package/dist/cdn/locales/pt.js +1 -1
  87. package/dist/cdn/locales/ru.js +1 -1
  88. package/dist/cdn/locales/tr.js +1 -1
  89. package/dist/cdn/roxy-ui.js +115 -115
  90. package/dist/cdn/widgets.js +1 -1
  91. package/dist/charts.cjs +70 -67
  92. package/dist/charts.d.ts +4 -2
  93. package/dist/charts.js +70 -67
  94. package/dist/components/almanac-day.js +1 -1
  95. package/dist/components/angel-number-card.js +1 -1
  96. package/dist/components/angel-number-lookup.js +1 -1
  97. package/dist/components/arudha-padas.js +1 -1
  98. package/dist/components/ashtakavarga-grid.js +1 -1
  99. package/dist/components/aspects-table.js +1 -1
  100. package/dist/components/astrocartography-map.d.ts +2 -1
  101. package/dist/components/astrocartography-map.js +7 -7
  102. package/dist/components/bazi-chart.js +1 -1
  103. package/dist/components/bhav-chalit-table.js +1 -1
  104. package/dist/components/bhava-bala-table.js +1 -1
  105. package/dist/components/biorhythm-chart.js +1 -1
  106. package/dist/components/bodygraph.js +8 -8
  107. package/dist/components/chara-karakas.js +1 -1
  108. package/dist/components/choghadiya-grid.js +1 -1
  109. package/dist/components/compatibility-card.js +1 -1
  110. package/dist/components/compound-number.js +1 -1
  111. package/dist/components/crystal-card.js +1 -1
  112. package/dist/components/crystal-grid.js +1 -1
  113. package/dist/components/dasha-timeline.js +1 -1
  114. package/dist/components/data.js +1 -1
  115. package/dist/components/divisional-chart.js +44 -44
  116. package/dist/components/dosha-card.js +1 -1
  117. package/dist/components/dosha-constitution.js +1 -1
  118. package/dist/components/dream-card.js +1 -1
  119. package/dist/components/dream-search.js +1 -1
  120. package/dist/components/endpoint-form.js +1 -1
  121. package/dist/components/ephemeris-table.js +1 -1
  122. package/dist/components/fixed-stars.js +1 -1
  123. package/dist/components/flying-star-chart.js +1 -1
  124. package/dist/components/forecast-digest.js +1 -1
  125. package/dist/components/forecast-timeline.d.ts +2 -0
  126. package/dist/components/forecast-timeline.js +1 -1
  127. package/dist/components/gematria.js +1 -1
  128. package/dist/components/gochara-table.js +1 -1
  129. package/dist/components/guna-milan.js +1 -1
  130. package/dist/components/hd-connection.js +9 -9
  131. package/dist/components/hd-penta.js +13 -13
  132. package/dist/components/hd-type-card.js +1 -1
  133. package/dist/components/hd-variables.js +1 -1
  134. package/dist/components/heliacal-table.js +1 -1
  135. package/dist/components/hexagram.js +1 -1
  136. package/dist/components/hora-table.js +1 -1
  137. package/dist/components/horoscope-card.js +1 -1
  138. package/dist/components/kp-chart.js +1 -1
  139. package/dist/components/kp-finance-card.js +1 -1
  140. package/dist/components/kp-planets-table.js +1 -1
  141. package/dist/components/kp-ruling-planets.js +1 -1
  142. package/dist/components/kua-card.js +1 -1
  143. package/dist/components/local-space-compass.js +5 -5
  144. package/dist/components/location-search.js +1 -1
  145. package/dist/components/luck-pillars.js +1 -1
  146. package/dist/components/mayan-day-sign.js +1 -1
  147. package/dist/components/moon-phase.d.ts +3 -1
  148. package/dist/components/moon-phase.js +1 -1
  149. package/dist/components/nakshatra-card.js +1 -1
  150. package/dist/components/natal-chart.js +16 -16
  151. package/dist/components/numerology-card.js +1 -1
  152. package/dist/components/panchang-table.js +1 -1
  153. package/dist/components/positions-table.js +1 -1
  154. package/dist/components/profection-card.js +1 -1
  155. package/dist/components/reference-card.js +1 -1
  156. package/dist/components/relocation-wheel.js +15 -15
  157. package/dist/components/report.js +1 -1
  158. package/dist/components/shadbala-table.js +1 -1
  159. package/dist/components/synastry-chart.js +15 -15
  160. package/dist/components/tarot-card.js +1 -1
  161. package/dist/components/tarot-catalog.js +1 -1
  162. package/dist/components/tarot-spread.js +1 -1
  163. package/dist/components/transit-wheel.js +7 -7
  164. package/dist/components/transits-table.js +1 -1
  165. package/dist/components/upagraha-table.js +1 -1
  166. package/dist/components/vastu-mandala.js +4 -4
  167. package/dist/components/vedic-aspects.js +1 -1
  168. package/dist/components/vedic-daily.js +1 -1
  169. package/dist/components/vedic-kundli.js +42 -42
  170. package/dist/components/vedic-planets-table.js +1 -1
  171. package/dist/components/western-planets-table.js +1 -1
  172. package/dist/components/yoga-list.js +1 -1
  173. package/dist/components/zodiac-card.js +1 -1
  174. package/dist/generated/symbol-font.d.ts +14 -0
  175. package/dist/i18n/chrome-strings.d.ts +1 -1
  176. package/dist/i18n/localized-element.d.ts +3 -1
  177. package/dist/index.cjs +121 -121
  178. package/dist/index.js +107 -107
  179. package/dist/locales/de.js +1 -1
  180. package/dist/locales/es.js +1 -1
  181. package/dist/locales/fr.js +1 -1
  182. package/dist/locales/hi.js +1 -1
  183. package/dist/locales/pt.js +1 -1
  184. package/dist/locales/ru.js +1 -1
  185. package/dist/locales/tr.js +1 -1
  186. package/dist/styles/charts/moon.css +1 -0
  187. package/dist/styles/charts/natal-wheel.css +1 -1
  188. package/dist/styles/charts/synastry-wheel.css +1 -1
  189. package/dist/styles/fonts/symbols/OFL.txt +94 -0
  190. package/dist/styles/fonts/symbols/noto-sans-math.woff2 +0 -0
  191. package/dist/styles/fonts/symbols/noto-sans-symbols-2.woff2 +0 -0
  192. package/dist/styles/fonts/symbols/noto-sans-symbols.woff2 +0 -0
  193. package/dist/styles/fonts/symbols/noto-sans.woff2 +0 -0
  194. package/dist/styles/fonts/symbols.css +1 -0
  195. package/dist/styles/fonts.d.ts +11 -2
  196. package/dist/styles/tokens-css.d.ts +1 -1
  197. package/dist/styles/tokens.css +1 -1
  198. package/dist/tokens/index.d.ts +10 -7
  199. package/dist/types/types.gen.d.ts +4 -0
  200. package/dist/utils/base-element.d.ts +3 -0
  201. package/dist/utils/base-styles.d.ts +1 -1
  202. package/dist/utils/brand.d.ts +3 -1
  203. package/dist/utils/chart-styles.d.ts +2 -0
  204. package/dist/utils/glyph.d.ts +5 -0
  205. package/dist/utils/interp-accordion.d.ts +2 -0
  206. package/dist/utils/moon-mark.d.ts +7 -0
  207. package/dist/utils/moon.d.ts +37 -0
  208. package/dist/version.d.ts +1 -1
  209. package/package.json +1 -1
@@ -1,22 +1,22 @@
1
- var RoxyUI_hd_penta=(()=>{var J=Object.defineProperty;var zt=Object.getOwnPropertyDescriptor;var or=Object.getOwnPropertyNames;var nr=Object.prototype.hasOwnProperty;var sr=(o,t)=>{for(var e in t)J(o,e,{get:t[e],enumerable:true})},ir=(o,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of or(t))!nr.call(o,n)&&n!==e&&J(o,n,{get:()=>t[n],enumerable:!(r=zt(t,n))||r.enumerable});return o};var ar=o=>ir(J({},"__esModule",{value:true}),o),m=(o,t,e,r)=>{for(var n=r>1?void 0:r?zt(t,e):t,s=o.length-1,i;s>=0;s--)(i=o[s])&&(n=(r?i(t,e,n):i(n))||n);return r&&n&&J(t,e,n),n};var no={};sr(no,{ROXY_UI_TOKENS_STYLE_ID:()=>st,RoxyHdPenta:()=>M,injectRoxyTokens:()=>it});var Z=globalThis,Q=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bt=Symbol(),Dt=new WeakMap,H=class{constructor(t,e,r){if(this._$cssResult$=true,r!==bt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Q&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Dt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Dt.set(e,t))}return t}toString(){return this.cssText}},Kt=o=>new H(typeof o=="string"?o:o+"",void 0,bt),b=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,n,s)=>r+(i=>{if(i._$cssResult$===true)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[s+1],o[0]);return new H(e,o,bt)},qt=(o,t)=>{if(Q)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),n=Z.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,o.appendChild(r)}},vt=Q?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Kt(e)})(o):o;var{is:dr,defineProperty:lr,getOwnPropertyDescriptor:cr,getOwnPropertyNames:pr,getOwnPropertySymbols:hr,getPrototypeOf:ur}=Object,tt=globalThis,Vt=tt.trustedTypes,yr=Vt?Vt.emptyScript:"",mr=tt.reactiveElementPolyfillSupport,j=(o,t)=>o,z={toAttribute(o,t){switch(t){case Boolean:o=o?yr: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}},et=(o,t)=>!dr(o,t),Wt={attribute:true,type:String,converter:z,reflect:false,useDefault:false,hasChanged:et};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var E=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=Wt){if(e.state&&(e.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=true),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(t,r,e);n!==void 0&&lr(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){let{get:n,set:s}=cr(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let l=n?.call(this);s?.call(this,i),this.requestUpdate(t,l,r)},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??Wt}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;let t=ur(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(j("properties"))){let e=this.properties,r=[...pr(e),...hr(e)];for(let n of r)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let n of r)e.unshift(vt(n))}else t!==void 0&&e.push(vt(t));return e}static _$Eu(t,e){let r=e.attribute;return r===false?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return qt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){let r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(n!==void 0&&r.reflect===true){let s=(r.converter?.toAttribute!==void 0?r.converter:z).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(t,e){let r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let s=r.getPropertyOptions(n),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:z;this._$Em=n;let l=i.fromAttribute(e,s.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(t,e,r,n=false,s){if(t!==void 0){let i=this.constructor;if(n===false&&(s=this[t]),r??=i.getPropertyOptions(t),!((r.hasChanged??et)(s,e)||r.useDefault&&r.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:n,wrapped:s},i){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),s!==true||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),n===true&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=true;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,s]of r){let{wrapped:i}=s,l=this[n];i!==true||this._$AL.has(n)||l===void 0||this.C(n,void 0,s,l)}}let t=false,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(e)):this._$EM()}catch(r){throw t=false,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=false}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[j("elementProperties")]=new Map,E[j("finalized")]=new Map,mr?.({ReactiveElement:E}),(tt.reactiveElementVersions??=[]).push("2.1.2");var At=globalThis,Yt=o=>o,rt=At.trustedTypes,Xt=rt?rt.createPolicy("lit-html",{createHTML:o=>o}):void 0,re="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,oe="?"+T,gr=`<${oe}>`,P=document,K=()=>P.createComment(""),q=o=>o===null||typeof o!="object"&&typeof o!="function",Ct=Array.isArray,fr=o=>Ct(o)||typeof o?.[Symbol.iterator]=="function",St=`[
2
- \f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Jt=/-->/g,Zt=/>/g,_=RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Qt=/'/g,te=/"/g,ne=/^(?:script|style|textarea|title)$/i,_t=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),p=_t(1),N=_t(2),po=_t(3),O=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ee=new WeakMap,R=P.createTreeWalker(P,129);function se(o,t){if(!Ct(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xt!==void 0?Xt.createHTML(t):t}var xr=(o,t)=>{let e=o.length-1,r=[],n,s=t===2?"<svg>":t===3?"<math>":"",i=D;for(let l=0;l<e;l++){let a=o[l],h,g,u=-1,S=0;for(;S<a.length&&(i.lastIndex=S,g=i.exec(a),g!==null);)S=i.lastIndex,i===D?g[1]==="!--"?i=Jt:g[1]!==void 0?i=Zt:g[2]!==void 0?(ne.test(g[2])&&(n=RegExp("</"+g[2],"g")),i=_):g[3]!==void 0&&(i=_):i===_?g[0]===">"?(i=n??D,u=-1):g[1]===void 0?u=-2:(u=i.lastIndex-g[2].length,h=g[1],i=g[3]===void 0?_:g[3]==='"'?te:Qt):i===te||i===Qt?i=_:i===Jt||i===Zt?i=D:(i=_,n=void 0);let $=i===_&&o[l+1].startsWith("/>")?" ":"";s+=i===D?a+gr:u>=0?(r.push(h),a.slice(0,u)+re+a.slice(u)+T+$):a+T+(u===-2?l:$)}return[se(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},V=class o{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,i=0,l=t.length-1,a=this.parts,[h,g]=xr(t,e);if(this.el=o.createElement(h,r),R.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=R.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(re)){let S=g[i++],$=n.getAttribute(u).split(T),C=/([.?@])?(.*)/.exec(S);a.push({type:1,index:s,name:C[2],strings:$,ctor:C[1]==="."?wt:C[1]==="?"?Et:C[1]==="@"?Tt:I}),n.removeAttribute(u)}else u.startsWith(T)&&(a.push({type:6,index:s}),n.removeAttribute(u));if(ne.test(n.tagName)){let u=n.textContent.split(T),S=u.length-1;if(S>0){n.textContent=rt?rt.emptyScript:"";for(let $=0;$<S;$++)n.append(u[$],K()),R.nextNode(),a.push({type:2,index:++s});n.append(u[S],K())}}}else if(n.nodeType===8)if(n.data===oe)a.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(T,u+1))!==-1;)a.push({type:7,index:s}),u+=T.length-1}s++}}static createElement(t,e){let r=P.createElement("template");return r.innerHTML=t,r}};function G(o,t,e=o,r){if(t===O)return t;let n=r!==void 0?e._$Co?.[r]:e._$Cl,s=q(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(false),s===void 0?n=void 0:(n=new s(o),n._$AT(o,e,r)),r!==void 0?(e._$Co??=[])[r]=n:e._$Cl=n),n!==void 0&&(t=G(o,n._$AS(o,t.values),n,r)),t}var $t=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,n=(t?.creationScope??P).importNode(e,true);R.currentNode=n;let s=R.nextNode(),i=0,l=0,a=r[0];for(;a!==void 0;){if(i===a.index){let h;a.type===2?h=new W(s,s.nextSibling,this,t):a.type===1?h=new a.ctor(s,a.name,a.strings,this,t):a.type===6&&(h=new kt(s,this,t)),this._$AV.push(h),a=r[++l]}i!==a?.index&&(s=R.nextNode(),i++)}return R.currentNode=P,n}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},W=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??true}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),q(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==O&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):fr(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&q(this._$AH)?this._$AA.nextSibling.data=t:this.T(P.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,n=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=V.createElement(se(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{let s=new $t(n,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=ee.get(t.strings);return e===void 0&&ee.set(t.strings,e=new V(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,n=0;for(let s of t)n===e.length?e.push(r=new o(this.O(K()),this.O(K()),this,this.options)):r=e[n],r._$AI(s),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let r=Yt(t).nextSibling;Yt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(t,e=this,r,n){let s=this.strings,i=false;if(s===void 0)t=G(this,t,e,0),i=!q(t)||t!==this._$AH&&t!==O,i&&(this._$AH=t);else{let l=t,a,h;for(t=s[0],a=0;a<s.length-1;a++)h=G(this,l[r+a],e,a),h===O&&(h=this._$AH[a]),i||=!q(h)||h!==this._$AH[a],h===d?t=d:t!==d&&(t+=(h??"")+s[a+1]),this._$AH[a]=h}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},wt=class extends I{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},Et=class extends I{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},Tt=class extends I{constructor(t,e,r,n,s){super(t,e,r,n,s),this.type=5}_$AI(t,e=this){if((t=G(this,t,e,0)??d)===O)return;let r=this._$AH,n=t===d&&r!==d||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==d&&(r===d||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},kt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}};var br=At.litHtmlPolyfillSupport;br?.(V,W),(At.litHtmlVersions??=[]).push("3.3.3");var ie=(o,t,e)=>{let r=e?.renderBefore??t,n=r._$litPart$;if(n===void 0){let s=e?.renderBefore??null;r._$litPart$=n=new W(t.insertBefore(K(),s),s,void 0,e??{})}return n._$AI(o),n};var Rt=globalThis,k=class extends E{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=ie(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return O}};k._$litElement$=true,k.finalized=true,Rt.litElementHydrateSupport?.({LitElement:k});var vr=Rt.litElementPolyfillSupport;vr?.({LitElement:k});(Rt.litElementVersions??=[]).push("4.2.2");var ae=[{endpoint:"human-design/penta",method:"POST"}];var Sr={attribute:true,type:String,converter:z,reflect:false,hasChanged:et},$r=(o=Sr,t,e)=>{let{kind:r,metadata:n}=e,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((o=Object.create(o)).wrapped=true),s.set(e.name,o),r==="accessor"){let{name:i}=e;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(i,a,o,true,l)},init(l){return l!==void 0&&this.C(i,void 0,o,l),l}}}if(r==="setter"){let{name:i}=e;return function(l){let a=this[i];t.call(this,l),this.requestUpdate(i,a,o,true,l)}}throw Error("Unsupported decorator location: "+r)};function f(o){return(t,e)=>typeof e=="object"?$r(o,t,e):((r,n,s)=>{let i=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(n,s):void 0})(o,t,e)}function w(o){return f({...o,state:true,attribute:false})}var F=o=>o??d;var de=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Ot(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 wr={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Pt(o,t){let e=o.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function le(o,t=de){let e=Ot(o);if(!e)return;let r=Pt(e,t);if(r)return r;let n=e.toLowerCase().split("-"),s=n[0];if(s==="zh"){let i=n.find(l=>l==="hans"||l==="hant")??wr[n[1]??""];return i?Pt(`zh-${i}`,t):void 0}return Pt(s,t)}var Er={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},Ft='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',ce='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',pe='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',nt={"fraunces-jost":{name:"Fraunces with Jost",sans:Ft,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:Ft,display:Ft},geist:{name:"Geist",sans:ce,display:ce},system:{name:"System",sans:pe,display:pe}};function he(o){let{sans:t,display:e}=nt[o];return Object.keys(Er).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var ue="1.3.0";var Tr=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,kr=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function ye(o,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(Tr.exec(e.pathname)??kr.exec(e.pathname))?.[1];if(r!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${o}/dist`:`${e.origin}${r}`}var Pr={},Ar="color-mix(in oklab, var(--roxy-accent) 70%, black)",Cr="var(--roxy-accent)",_r="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",me=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function ge(o){return o!==void 0&&Object.hasOwn(nt,o)}function fe(o){let t=[];return o.brandColor&&me.test(o.brandColor)&&t.push(`--roxy-primary:${o.brandColor}`),o.brandAccent&&me.test(o.brandAccent)&&t.push(`--roxy-accent:${o.brandAccent}`,`--roxy-accent-ink:light-dark(${Ar},${Cr})`,`--roxy-ring:${_r}`),t.join(";")}function xe(o,t){if(ge(t))return t;let e=o.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let n=o.shadowRoot?.firstElementChild,s=n?.localName==="style"?n:null;s?.sheet&&(s.sheet.disabled=true);let i,l,a;try{let h=globalThis.getComputedStyle(o),g=u=>h.getPropertyValue(u).trim();i=g("--roxy-font-sans"),l=g("--roxy-font-display"),a=g("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||l))return ge(a)?a:void 0}function be(o){let{sans:t,display:e}=nt[o];return`--roxy-font:${o};--roxy-font-sans:${t};--roxy-font-display:${e}`}var Rr=ye(ue,globalThis.document?.currentScript?.src||Pr.url);function ve(o,t=Rr){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${o}`;if(he(o).length===0||document.getElementById(e))return;let r=document.createElement("link");r.id=e,r.rel="stylesheet",r.href=`${t}/styles/fonts/${o}.css`,document.head.append(r)}var Se='@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: initial;--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 st="roxy-ui-tokens";function it(){if(typeof document>"u")return null;let o=document.getElementById(st);if(o)return o;let t=document.createElement("style");return t.id=st,t.textContent=Se,document.head.prepend(t),t}function $e(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}var we="__ROXY_UI_I18N__";function Ee(){let o=globalThis,t=o[we];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[we]=e,e}function Or(o,t){return t?o.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):o}function Te(o,t,e){return Or(Fr(o,t)??t,e)}function Fr(o,t){if(!o)return;let{catalogs:e}=Ee(),r=o.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[$e(t)]}function ke(o){let{listeners:t}=Ee();return t.add(o),()=>{t.delete(o)}}var at=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=ke(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var dt=class extends k{constructor(){super();this.translator=(e,r)=>this.t(e,r);new at(this)}connectedCallback(){super.connectedCallback(),it()}fontDeclarations(e){let r=xe(this,e);return r?(ve(r),be(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?p`<style>:host{${e}}</style>`:d}t(e,r){return Te(this.effectiveLang(),e,r)}effectiveLang(){return Ot(this)}};var Ae=b`: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 Ur=b`: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}`,lt=[Ur,Ae];var Lr="__cols",Mr="__rows";function Gr(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function ct(o){if(Array.isArray(o)){let s=false,i=o.map(l=>{let a=ct(l);return a!==l&&(s=true),a});return s?i:o}if(!Gr(o))return o;let t=o[Lr],e=o[Mr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(o).length===2)return e.map(s=>{let i={};return t.forEach((l,a)=>{i[l]=ct(s[a])}),i});let r=false,n={};for(let[s,i]of Object.entries(o)){let l=ct(i);l!==i&&(r=true),n[s]=l}return r?n:o}function Ce(o){return ct(o)}function _e(o,t){return o.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,n])=>t[r]===n))??o[0]}var Ir="pk_live_YOUR_KEY",Re={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 Pe(o){if(o)return o===Ir?Re.sample:o.startsWith("pk_")?void 0:Re.secret}function Oe(o,t,e={}){e.warn&&console.warn(t.message),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:true,composed:true}))}var Fe="https://roxyapi.com/api/v2";async function Nr(o){try{let t=await o.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:true,...t.code?{code:t.code}:{}}}}catch{}return{message:`Request failed (${o.status})`,issues:null,worded:false}}var Ue={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.")}}},B=class extends Error{constructor(e,r=null,n=true,s,i){super(e);this.issues=r;this.worded=n;this.status=s;this.code=i}};function Le(o){return o.submitUrl?void 0:Pe(o.publishableKey)}async function Ut(o,t,e){let r=Le(o);if(r)throw new B(r.message);let n=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:Br(t,o.submitContext),signal:e}):await Hr(o,t,e);if(!n.ok){let s=await Nr(n);throw new B(s.message,s.issues,s.worded,n.status,s.code)}return await n.json()}function Br(o,t){return JSON.stringify(t?{...o,context:t}:o)}function Hr(o,t,e){let r=new URL(`${o.baseUrl??Fe}${t.path}`,document.baseURI);for(let[s,i]of Object.entries(t.query??{}))i!=null&&r.searchParams.set(s,String(i));let n={Accept:"application/json"};return o.publishableKey&&(n["X-API-Key"]=o.publishableKey),t.body!=null&&(n["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:n,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var pt=class{constructor(t){this.baseUrl=Fe;this.worded=true;this.failure={};this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=true,this.failure={};let e=Le(this);if(e){this.host.error=e.message,Oe(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let n=await Ut(this,t,r.signal);if(r.signal.aborted)return;this.host.data=n}catch(n){if(r.signal.aborted||n?.name==="AbortError")return;n instanceof B&&(this.host.issues=n.issues,this.failure={status:n.status,code:n.code}),this.worded=n instanceof B&&n.worded,this.host.error=n instanceof Error?n.message:String(n)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=false)}}};function Me(o,t,e,r=[]){let n={...e},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(h,g)=>{let u=n[g];return delete n[g],encodeURIComponent(String(u??""))}),i=new Set(r),l={},a={};for(let[h,g]of Object.entries(n))g===void 0||g===""||(t==="GET"||i.has(h)?l[h]=g:a[h]=g);return{path:s,method:t,query:l,body:t==="POST"?a:void 0}}function Ge(){return p`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var Nn=b`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 zn=b`.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 Ie(o,t,e){let r=o.filter(n=>!!n.body);return r.length===0?d:p`<section class="block" part="section readings"><h3>${e}</h3>${r.map((n,s)=>p`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${n.label}</span> ${Ge()} ${n.aside?p`<span class="interp-aside"><small>${n.aside}</small></span>`:d}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??d}</div></details>`)}</section>`}var jr="roxy-data";function zr(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var ht=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(zr(t)&&t.classList.contains(jr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var y=class extends dt{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,n=this.listRows();if(!(!e||!r||!n)){this.moreLoading=true,this.moreError=null;try{let s=await Ut(this.fetcher,{...e,query:{...e.query,offset:n.length}});if(this.lastRequest!==e)return;let i=s[r];this.data={...this.data,...s,[r]:[...n,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===e&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let n=e.detail;this.lastValues=n.values,this.sticky=!!n.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(n.values),this.fetchFresh(Me(r.endpoint,r.method,{...n.values,...this.ownRequest()},n.queryKeys??[]))};new ht(this),this.fetcher=new pt(this)}static{this.styles=[lt]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=Ce(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:_e(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return p`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:true,composed:true})),customElements.get("roxy-data")?p`<roxy-data .data="${e}" lang="${F(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(s=>s.trim().toLowerCase()).filter(s=>/^[a-z][a-z0-9-]*$/.test(s)),r=[fe(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return d;let n=(r?`:host{${r}}`:"")+e.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){display:none!important}`).join("");return p`<style>${n}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?p`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,n){return this.hideReadings?d:Ie(e,r,this.t(n??"Reading"))}renderResult(e){let r=p`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?p`${r}${this.renderAttribution()}`:r}renderWithForm(e){return p`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?d:this.renderErrorBanner(this.error):this.data==null?d:this.showAttribution()?p`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?d:e.length>=r?d:p`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?p`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:d}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let n=this.effectiveLang();n&&r.setAttribute("lang",n),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:le(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return p`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(d):this.renderEmpty()}renderForm(){let e=this.selfFetch();return p`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${F(this.specUrl)}" publishable-key="${F(this.publishableKey)}" location-url="${F(this.locationUrl)}" submit-label="${F(this.submitLabel)}" lang="${F(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return p`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return p`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let n=this.renderErrorBanner(e);return r?p`${n}${this.renderForm()}`:n}renderErrorBanner(e){return p`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};m([f({attribute:false})],y.prototype,"data",2),m([f({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),m([f({type:String})],y.prototype,"method",2),m([f({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),m([f({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),m([f({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),m([f({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),m([f({attribute:"submit-context",converter:Ue})],y.prototype,"submitContext",2),m([f({type:String,attribute:"location-url"})],y.prototype,"locationUrl",2),m([f({type:Boolean})],y.prototype,"remember",2),m([f({type:Boolean,attribute:"hide-readings",reflect:true})],y.prototype,"hideReadings",2),m([f({type:String,attribute:"hide-sections",reflect:true})],y.prototype,"hideSections",2),m([f({type:String,attribute:"brand-color"})],y.prototype,"brandColor",2),m([f({type:String,attribute:"brand-accent"})],y.prototype,"brandAccent",2),m([f({type:String})],y.prototype,"font",2),m([f({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),m([f({type:String,attribute:"error-message"})],y.prototype,"errorMessage",2),m([f({type:String})],y.prototype,"attribution",2),m([w()],y.prototype,"loading",2),m([w()],y.prototype,"error",2),m([w()],y.prototype,"issues",2),m([w()],y.prototype,"selfFetched",2),m([w()],y.prototype,"editing",2),m([w()],y.prototype,"sticky",2),m([w()],y.prototype,"openedRow",2),m([w()],y.prototype,"openedRowId",2),m([w()],y.prototype,"moreLoading",2),m([w()],y.prototype,"moreError",2);var ut=class{constructor(t){this.host=t;this.state="closed";this.zoom=1;this.pressedBy="";this.press=t2=>{this.pressedBy=t2.pointerType};this.openOnMouse=t2=>{let e=this.pressedBy==="mouse";this.pressedBy="",e&&(t2.target?.closest?.("a, button, summary, input, select, textarea")||getSelection()?.toString()||this.open())};t.addController(this)}hostUpdated(){let t=this.host.renderRoot.querySelector(".roxy-chart-dialog");if(!t)this.reset();else if(t.isConnected&&this.state!=="closed"){this.state==="opening"&&(this.state="open",t.open||t.showModal());let e=t.querySelector(".roxy-chart-scroll");t.open&&e&&this.position&&(e.scrollLeft=e.scrollWidth*this.position.x-e.clientWidth/2,e.scrollTop=e.scrollHeight*this.position.y-e.clientHeight/2,this.position=void 0)}}hostDisconnected(){this.reset(),this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}open(){this.state="opening",this.position={x:.5,y:0},this.host.requestUpdate()}reset(){this.state="closed",this.zoom=1,this.position=void 0}resize(t){let e=this.host.renderRoot.querySelector(".roxy-chart-scroll");this.position=t===0?{x:.5,y:0}:e?{x:(e.scrollLeft+e.clientWidth/2)/e.scrollWidth,y:(e.scrollTop+e.clientHeight/2)/e.scrollHeight}:void 0,this.zoom=t===0?1:Math.min(3,Math.max(1,this.zoom+t)),this.host.requestUpdate()}renderChartViewport(t,e,r){return p`<div class="roxy-chart-view"><div class="roxy-chart-hit" @pointerdown="${this.press}" @click="${this.openOnMouse}">${t}</div><div class="roxy-chart-tools" part="chart-controls"><button type="button" @click="${()=>this.open()}">${r("Enlarge chart")}</button></div><dialog class="roxy-chart-dialog" part="chart-dialog" aria-label="${e}" @close="${()=>{this.reset(),this.host.requestUpdate()}}">${this.state!=="closed"?p`<div class="roxy-chart-bar"><strong>${e}</strong><div class="roxy-chart-tools"><button type="button" aria-label="${r("Zoom out")}" ?disabled="${this.zoom===1}" @click="${()=>this.resize(-.5)}">−</button> <button type="button" @click="${()=>this.resize(0)}">${r("Reset zoom")}</button> <button type="button" aria-label="${r("Zoom in")}" ?disabled="${this.zoom===3}" @click="${()=>this.resize(.5)}">+</button> <button type="button" @click="${()=>this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}">${r("Close")}</button></div></div><div class="roxy-chart-scroll" role="region" tabindex="0" aria-label="${e}"><div class="roxy-chart-expanded" style="${`--chart-zoom:${this.zoom}`}">${t}</div></div>`:d}</dialog></div>`}},Ne=b`.roxy-chart-view{min-width:0}@media (hover:hover) and (pointer:fine){.roxy-chart-hit{cursor:zoom-in}}.roxy-chart-tools{gap:var(--roxy-space-sm);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}.roxy-chart-tools button{font-size:var(--roxy-text-sm);color:var(--roxy-secondary);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);min-width:2lh;min-height:2lh;padding:var(--roxy-space-xs) var(--roxy-space-sm);cursor:pointer;background:0 0}.roxy-chart-tools button:hover:not(:disabled){border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-chart-tools button:disabled{color:var(--roxy-muted);cursor:default}.roxy-chart-dialog{--roxy-surface:var(--roxy-bg);width:calc(100% - 2 * var(--roxy-space-md));max-width:calc(var(--roxy-chart-expanded-width,60rem) * 1.2);max-height:calc(100% - 2 * var(--roxy-space-md));padding:var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);color:var(--roxy-fg);background:var(--roxy-bg);box-shadow:var(--roxy-shadow-lg);margin:auto}.roxy-chart-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.roxy-chart-dialog::backdrop{background:color-mix(in oklab, var(--roxy-bg) 85%, transparent)}.roxy-chart-bar{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);margin-bottom:var(--roxy-space-md);flex-wrap:wrap;flex-shrink:0;display:flex}.roxy-chart-bar>strong{overflow-wrap:anywhere;min-width:0}.roxy-chart-scroll{overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}.roxy-chart-expanded{width:max(100%, calc(var(--roxy-chart-expanded-width,60rem) * var(--chart-zoom)));padding:var(--roxy-space-sm)}.roxy-chart-expanded>svg{width:100%;max-width:none;height:auto;margin:0}`;var Be=o=>t=>{customElements.get(o)||customElements.define(o,t)};var He=b`.roxy-facts{gap:var(--roxy-space-sm) var(--roxy-space-lg);margin:var(--roxy-space-sm) 0 0;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;flex-wrap:wrap;display:flex}.roxy-facts>div{min-width:0}.roxy-facts dd{overflow-wrap:anywhere;margin:0}`;var je=[He,b`.roxy-facts{margin:0}.lead{font-size:var(--roxy-text-sm);margin:0}.keynotes{gap:var(--roxy-space-xs);margin:0;display:grid}.keynotes dd{margin:0}`];function ze(o){let t=o.filter(e=>!!e.value);return t.length===0?d:p`<dl class="roxy-facts" part="facts">${t.map(e=>p`<div part="fact"><dt>${e.label}</dt><dd>${e.value}</dd></div>`)}</dl>`}var Ve=14,Dr=86,We=0,Kr=102,A=6,Ye=(Dr-Ve)*A,qr=(Kr-We)*A;function L(o,t){return{x:(o-Ve)*A,y:(t-We)*A}}var c=50,gt=o=>2*c-o,ys=1.02*A,ms=1.15*A,x=2.87,v=4.4,De=5.65,Lt={head:{64:[c-x,11.2],61:[c,11.2],63:[c+x,11.2]},ajna:{47:[c-x,18],24:[c,18],4:[c+x,18],17:[c-x,20.6],11:[c+x,20.6],43:[c,25.3]},throat:{62:[c-x,32.4],23:[c,32.4],56:[c+x,32.4],16:[c-v,34.7],35:[c+v,34.7],20:[c-v,37.3],12:[c+v,37.3],45:[c+v,39.6],31:[c-x,41.9],8:[c,41.9],33:[c+x,41.9]},g:{1:[c,47.7],7:[c-x,50.3],13:[c+x,50.3],10:[c-De,53.4],25:[c+De,53.4],15:[c-x,56.8],46:[c+x,56.8],2:[c,59.2]},heart:{21:[63.9,59.5],51:[62.1,61.3],26:[60.1,63.3],40:[66.6,63.3]},spleen:{48:[20,70.8],57:[22.5,72.4],44:[25,73.8],50:[27.7,75.3],32:[25,76.6],28:[22.5,78],18:[20,79.5]},sacral:{5:[c-x,72.7],14:[c,72.7],29:[c+x,72.7],34:[c-v,75.4],27:[c-v,79],59:[c+v,79],42:[c-x,81.7],3:[c,81.7],9:[c+x,81.7]},"solar-plexus":{},root:{53:[c-x,90.2],60:[c,90.2],52:[c+x,90.2],54:[c-v,92.6],19:[c+v,92.6],38:[c-v,95.3],39:[c+v,95.3],58:[c-v,98.1],41:[c+v,98.1]}},Vr={48:36,57:22,44:37,50:6,32:49,28:55,18:30};function Wr(){let o={},t={};for(let[e,[r,n]]of Object.entries(Lt.spleen))Lt["solar-plexus"][Vr[Number(e)]]=[gt(r),n];for(let[e,r]of Object.entries(Lt))for(let[n,[s,i]]of Object.entries(r))o[Number(n)]=L(s,i),t[Number(n)]=e;return{points:o,centerOf:t}}var{points:gs,centerOf:Y}=Wr(),fs=Ye/2;function U(o){return o.map(([t,e])=>L(t,e))}function Mt(o,t,e){return U([[c-o,t],[c+o,t],[c+o,e],[c-o,e]])}var Gt=5.9,Ke=[[18.3,68.3],[18.3,82],[30.3,75.15]],It=[20,84.4],qe=12*A,Yr=[63.2,67.9],Xr=13.1*A,xs=[{id:"head",label:"Head",color:"gold",points:U([[43.55,12.5],[56.45,12.5],[50,1.7]])},{id:"ajna",label:"Ajna",color:"green",points:U([[43.55,16.5],[56.45,16.5],[50,27.7]])},{id:"throat",label:"Throat",color:"brown",points:Mt(Gt,31,43.3)},{id:"g",label:"G",color:"gold",points:U([[50,45.8],[57.7,53.6],[50,61.4],[42.3,53.6]])},{id:"heart",label:"Heart",color:"red",points:U([[56.65,65.23],[64.2,56.74],[69.75,65.23]]),caption:{at:L(...Yr),room:Xr}},{id:"spleen",label:"Spleen",color:"brown",points:U(Ke),caption:{at:L(...It),room:qe}},{id:"sacral",label:"Sacral",color:"red",points:Mt(Gt,71.3,83.1)},{id:"solar-plexus",label:"Solar Plexus",color:"brown",points:U(Ke.map(([o,t])=>[gt(o),t])),caption:{at:L(gt(It[0]),It[1]),room:qe}},{id:"root",label:"Root",color:"brown",points:Mt(Gt,88.5,99.8)}];var bs=Jr();function Jr(){let o=gt,t=[[50,3],[58,3],[60,10],[57,17.5],[56.5,20.5],[53.5,23.5],[51.5,27],[54,28],[64,30],[79,35],[83,42],[84,58],[83,74],[83,86],[76,93],[68,97],[64,99],[62,100.5],[60,100.5]],e=[`M ${yt(t[0])}`];for(let r=1;r+2<t.length;r+=3)e.push(`C ${yt(t[r])} ${yt(t[r+1])} ${yt(t[r+2])}`);e.push(`L ${mt(t[t.length-1],o)}`);for(let r=t.length-3;r>=1;r-=3)e.push(`C ${mt(t[r+1],o)} ${mt(t[r],o)} ${mt(t[r-1],o)}`);return e.push("Z"),e.join(" ")}function yt([o,t]){let e=L(o,t);return`${e.x} ${e.y}`}function mt([o,t],e){let r=L(e(o),t);return`${r.x} ${r.y}`}var vs=`0 0 ${Ye} ${qr}`;var Bt=360,Zr=470,Ht=8,Ze=Bt-Ht*2,xt=48,X=15,Nt=7,Xe=16,ft=[{id:"throat",label:"Throat",y:0},{id:"g",label:"G",y:211},{id:"sacral",label:"Sacral",y:422}],Qe=`0 0 ${Bt} ${Zr}`;function Qr(o,t){return Ht+Ze*(o*2+1)/(t*2)}function tr(o){return Y[o.gateA]==="throat"||Y[o.gateB]==="throat"}function to(o){return(tr(o)?Y[o.gateA]==="throat":Y[o.gateA]==="g")?o.gateA:o.gateB}function eo(){return ft.map(o=>N`<g>
4
- <rect class="pn-bar" x=${Ht} y=${o.y} width=${Ze} height=${xt} rx="10" />
5
- <text class="pn-bar-label" x=${Bt/2} y=${o.y+xt/2} text-anchor="middle" dominant-baseline="central">${o.label}</text>
6
- </g>`)}function ro(o,t,e,r){return e.map((n,s)=>N`<g>
7
- <circle class="pn-badge" cx=${o+(s-(e.length-1)/2)*Xe} cy=${t} r=${Nt} />
8
- <text class="pn-badge-text" x=${o+(s-(e.length-1)/2)*Xe} y=${t} text-anchor="middle" dominant-baseline="central">${r(n)}</text>
9
- </g>`)}function Je(o,t,e,r,n,s){let i=r.length>0;return N`<g>
10
- <circle class="pn-gate-dot ${i?"on":""}" cx=${o} cy=${t} r=${X} />
11
- <text class="pn-gate ${i?"on":""}" x=${o} y=${t} text-anchor="middle" dominant-baseline="central">${e}</text>
12
- ${ro(o,t+s,r,n)}
13
- </g>`}function er(o){let t=[];for(let e of[true,false]){let r=o.rungs.filter(h=>tr(h)===e),n=e?xt:ft[1].y+xt,s=e?ft[1].y:ft[2].y,i=n+26,l=s-26,a=(i+l)/2;r.forEach((h,g)=>{let u=Qr(g,r.length),S=to(h),$=S===h.gateA?h.gateB:h.gateA,C=`pn-rung ${h.defined?"on":""} ${h.isCore?"core":""}`;t.push(N`<g>
14
- <line class=${C} x1=${u} y1=${i+X} x2=${u} y2=${a-13} />
15
- <line class=${C} x1=${u} y1=${a+13} x2=${u} y2=${l-X} />
1
+ var RoxyUI_hd_penta=(()=>{var J=Object.defineProperty;var ze=Object.getOwnPropertyDescriptor;var lr=Object.getOwnPropertyNames;var cr=Object.prototype.hasOwnProperty;var pr=(o,e)=>{for(var t in e)J(o,t,{get:e[t],enumerable:true})},hr=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of lr(e))!cr.call(o,n)&&n!==t&&J(o,n,{get:()=>e[n],enumerable:!(r=ze(e,n))||r.enumerable});return o};var ur=o=>hr(J({},"__esModule",{value:true}),o),m=(o,e,t,r)=>{for(var n=r>1?void 0:r?ze(e,t):e,s=o.length-1,i;s>=0;s--)(i=o[s])&&(n=(r?i(e,t,n):i(n))||n);return r&&n&&J(e,t,n),n};var co={};pr(co,{ROXY_UI_TOKENS_STYLE_ID:()=>se,RoxyHdPenta:()=>M,injectRoxyTokens:()=>ie});var Z=globalThis,Q=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,be=Symbol(),De=new WeakMap,H=class{constructor(e,t,r){if(this._$cssResult$=true,r!==be)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Q&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=De.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&De.set(t,e))}return e}toString(){return this.cssText}},Ke=o=>new H(typeof o=="string"?o:o+"",void 0,be),b=(o,...e)=>{let t=o.length===1?o[0]:e.reduce((r,n,s)=>r+(i=>{if(i._$cssResult$===true)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[s+1],o[0]);return new H(t,o,be)},qe=(o,e)=>{if(Q)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),n=Z.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,o.appendChild(r)}},ve=Q?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return Ke(t)})(o):o;var{is:yr,defineProperty:mr,getOwnPropertyDescriptor:gr,getOwnPropertyNames:fr,getOwnPropertySymbols:xr,getPrototypeOf:br}=Object,ee=globalThis,Ye=ee.trustedTypes,vr=Ye?Ye.emptyScript:"",Sr=ee.reactiveElementPolyfillSupport,j=(o,e)=>o,z={toAttribute(o,e){switch(e){case Boolean:o=o?vr:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},te=(o,e)=>!yr(o,e),Ve={attribute:true,type:String,converter:z,reflect:false,useDefault:false,hasChanged:te};Symbol.metadata??=Symbol("metadata"),ee.litPropertyMetadata??=new WeakMap;var E=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ve){if(t.state&&(t.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=true),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(e,r,t);n!==void 0&&mr(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){let{get:n,set:s}=gr(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get:n,set(i){let l=n?.call(this);s?.call(this,i),this.requestUpdate(e,l,r)},configurable:true,enumerable:true}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ve}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;let e=br(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(j("properties"))){let t=this.properties,r=[...fr(t),...xr(t)];for(let n of r)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let n of r)t.unshift(ve(n))}else e!==void 0&&t.push(ve(e));return t}static _$Eu(e,t){let r=t.attribute;return r===false?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return qe(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(n!==void 0&&r.reflect===true){let s=(r.converter?.toAttribute!==void 0?r.converter:z).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,t){let r=this.constructor,n=r._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let s=r.getPropertyOptions(n),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:z;this._$Em=n;let l=i.fromAttribute(t,s.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,t,r,n=false,s){if(e!==void 0){let i=this.constructor;if(n===false&&(s=this[e]),r??=i.getPropertyOptions(e),!((r.hasChanged??te)(s,t)||r.useDefault&&r.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:n,wrapped:s},i){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),s!==true||i!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),n===true&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=true;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,s]of r){let{wrapped:i}=s,l=this[n];i!==true||this._$AL.has(n)||l===void 0||this.C(n,void 0,s,l)}}let e=false,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=false,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=false}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return true}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[j("elementProperties")]=new Map,E[j("finalized")]=new Map,Sr?.({ReactiveElement:E}),(ee.reactiveElementVersions??=[]).push("2.1.2");var Ae=globalThis,We=o=>o,re=Ae.trustedTypes,Xe=re?re.createPolicy("lit-html",{createHTML:o=>o}):void 0,rt="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,ot="?"+T,$r=`<${ot}>`,P=document,K=()=>P.createComment(""),q=o=>o===null||typeof o!="object"&&typeof o!="function",_e=Array.isArray,wr=o=>_e(o)||typeof o?.[Symbol.iterator]=="function",Se=`[
2
+ \f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Je=/-->/g,Ze=/>/g,C=RegExp(`>|${Se}(?:([^\\s"'>=/]+)(${Se}*=${Se}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Qe=/'/g,et=/"/g,nt=/^(?:script|style|textarea|title)$/i,Ce=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),p=Ce(1),B=Ce(2),go=Ce(3),O=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),tt=new WeakMap,R=P.createTreeWalker(P,129);function st(o,e){if(!_e(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xe!==void 0?Xe.createHTML(e):e}var Er=(o,e)=>{let t=o.length-1,r=[],n,s=e===2?"<svg>":e===3?"<math>":"",i=D;for(let l=0;l<t;l++){let a=o[l],h,g,u=-1,S=0;for(;S<a.length&&(i.lastIndex=S,g=i.exec(a),g!==null);)S=i.lastIndex,i===D?g[1]==="!--"?i=Je:g[1]!==void 0?i=Ze:g[2]!==void 0?(nt.test(g[2])&&(n=RegExp("</"+g[2],"g")),i=C):g[3]!==void 0&&(i=C):i===C?g[0]===">"?(i=n??D,u=-1):g[1]===void 0?u=-2:(u=i.lastIndex-g[2].length,h=g[1],i=g[3]===void 0?C:g[3]==='"'?et:Qe):i===et||i===Qe?i=C:i===Je||i===Ze?i=D:(i=C,n=void 0);let $=i===C&&o[l+1].startsWith("/>")?" ":"";s+=i===D?a+$r:u>=0?(r.push(h),a.slice(0,u)+rt+a.slice(u)+T+$):a+T+(u===-2?l:$)}return[st(o,s+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},Y=class o{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,i=0,l=e.length-1,a=this.parts,[h,g]=Er(e,t);if(this.el=o.createElement(h,r),R.currentNode=this.el.content,t===2||t===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=R.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(rt)){let S=g[i++],$=n.getAttribute(u).split(T),_=/([.?@])?(.*)/.exec(S);a.push({type:1,index:s,name:_[2],strings:$,ctor:_[1]==="."?we:_[1]==="?"?Ee:_[1]==="@"?Te:I}),n.removeAttribute(u)}else u.startsWith(T)&&(a.push({type:6,index:s}),n.removeAttribute(u));if(nt.test(n.tagName)){let u=n.textContent.split(T),S=u.length-1;if(S>0){n.textContent=re?re.emptyScript:"";for(let $=0;$<S;$++)n.append(u[$],K()),R.nextNode(),a.push({type:2,index:++s});n.append(u[S],K())}}}else if(n.nodeType===8)if(n.data===ot)a.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(T,u+1))!==-1;)a.push({type:7,index:s}),u+=T.length-1}s++}}static createElement(e,t){let r=P.createElement("template");return r.innerHTML=e,r}};function G(o,e,t=o,r){if(e===O)return e;let n=r!==void 0?t._$Co?.[r]:t._$Cl,s=q(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(false),s===void 0?n=void 0:(n=new s(o),n._$AT(o,t,r)),r!==void 0?(t._$Co??=[])[r]=n:t._$Cl=n),n!==void 0&&(e=G(o,n._$AS(o,e.values),n,r)),e}var $e=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??P).importNode(t,true);R.currentNode=n;let s=R.nextNode(),i=0,l=0,a=r[0];for(;a!==void 0;){if(i===a.index){let h;a.type===2?h=new V(s,s.nextSibling,this,e):a.type===1?h=new a.ctor(s,a.name,a.strings,this,e):a.type===6&&(h=new ke(s,this,e)),this._$AV.push(h),a=r[++l]}i!==a?.index&&(s=R.nextNode(),i++)}return R.currentNode=P,n}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},V=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??true}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=G(this,e,t),q(e)?e===d||e==null||e===""?(this._$AH!==d&&this._$AR(),this._$AH=d):e!==this._$AH&&e!==O&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wr(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==d&&q(this._$AH)?this._$AA.nextSibling.data=e:this.T(P.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Y.createElement(st(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let s=new $e(n,this),i=s.u(this.options);s.p(t),this.T(i),this._$AH=s}}_$AC(e){let t=tt.get(e.strings);return t===void 0&&tt.set(e.strings,t=new Y(e)),t}k(e){_e(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let s of e)n===t.length?t.push(r=new o(this.O(K()),this.O(K()),this,this.options)):r=t[n],r._$AI(s),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(false,true,t);e!==this._$AB;){let r=We(e).nextSibling;We(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(e,t=this,r,n){let s=this.strings,i=false;if(s===void 0)e=G(this,e,t,0),i=!q(e)||e!==this._$AH&&e!==O,i&&(this._$AH=e);else{let l=e,a,h;for(e=s[0],a=0;a<s.length-1;a++)h=G(this,l[r+a],t,a),h===O&&(h=this._$AH[a]),i||=!q(h)||h!==this._$AH[a],h===d?e=d:e!==d&&(e+=(h??"")+s[a+1]),this._$AH[a]=h}i&&!n&&this.j(e)}j(e){e===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},we=class extends I{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===d?void 0:e}},Ee=class extends I{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==d)}},Te=class extends I{constructor(e,t,r,n,s){super(e,t,r,n,s),this.type=5}_$AI(e,t=this){if((e=G(this,e,t,0)??d)===O)return;let r=this._$AH,n=e===d&&r!==d||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==d&&(r===d||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ke=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){G(this,e)}};var Tr=Ae.litHtmlPolyfillSupport;Tr?.(Y,V),(Ae.litHtmlVersions??=[]).push("3.3.3");var it=(o,e,t)=>{let r=t?.renderBefore??e,n=r._$litPart$;if(n===void 0){let s=t?.renderBefore??null;r._$litPart$=n=new V(e.insertBefore(K(),s),s,void 0,t??{})}return n._$AI(o),n};var Re=globalThis,k=class extends E{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=it(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return O}};k._$litElement$=true,k.finalized=true,Re.litElementHydrateSupport?.({LitElement:k});var kr=Re.litElementPolyfillSupport;kr?.({LitElement:k});(Re.litElementVersions??=[]).push("4.2.2");var at=[{endpoint:"human-design/penta",method:"POST"}];var Ar={attribute:true,type:String,converter:z,reflect:false,hasChanged:te},_r=(o=Ar,e,t)=>{let{kind:r,metadata:n}=t,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((o=Object.create(o)).wrapped=true),s.set(t.name,o),r==="accessor"){let{name:i}=t;return{set(l){let a=e.get.call(this);e.set.call(this,l),this.requestUpdate(i,a,o,true,l)},init(l){return l!==void 0&&this.C(i,void 0,o,l),l}}}if(r==="setter"){let{name:i}=t;return function(l){let a=this[i];e.call(this,l),this.requestUpdate(i,a,o,true,l)}}throw Error("Unsupported decorator location: "+r)};function f(o){return(e,t)=>typeof t=="object"?_r(o,e,t):((r,n,s)=>{let i=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(n,s):void 0})(o,e,t)}function w(o){return f({...o,state:true,attribute:false})}var F=o=>o??d;var dt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Oe(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 Cr={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Pe(o,e){let t=o.toLowerCase();return e.find(r=>r.toLowerCase()===t)}function lt(o,e=dt){let t=Oe(o);if(!t)return;let r=Pe(t,e);if(r)return r;let n=t.toLowerCase().split("-"),s=n[0];if(s==="zh"){let i=n.find(l=>l==="hans"||l==="hant")??Cr[n[1]??""];return i?Pe(`zh-${i}`,e):void 0}return Pe(s,e)}var ht="symbols";var Rr={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},Fe='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',ct='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',pt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',ne={"fraunces-jost":{name:"Fraunces with Jost",sans:Fe,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:Fe,display:Fe},geist:{name:"Geist",sans:ct,display:ct},system:{name:"System",sans:pt,display:pt}};function ut(o){let{sans:e,display:t}=ne[o];return Object.keys(Rr).filter(r=>`${e} ${t}`.includes(`"${r}"`))}var yt="1.5.0";var Pr=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,Or=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function mt(o,e){if(!e)return;let t=new URL(e);if(t.protocol!=="https:"&&t.protocol!=="http:")return;let r=(Pr.exec(t.pathname)??Or.exec(t.pathname))?.[1];if(r!==void 0)return t.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${o}/dist`:`${t.origin}${r}`}var Mr={},Fr="color-mix(in oklab, var(--roxy-accent) 70%, black)",Ur="var(--roxy-accent)",Lr="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",gt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function ft(o){return o!==void 0&&Object.hasOwn(ne,o)}function xt(o){let e=[];return o.brandColor&&gt.test(o.brandColor)&&e.push(`--roxy-primary:${o.brandColor}`),o.brandAccent&&gt.test(o.brandAccent)&&e.push(`--roxy-accent:${o.brandAccent}`,`--roxy-accent-ink:light-dark(${Fr},${Ur})`,`--roxy-ring:${Lr}`),e.join(";")}function bt(o,e){if(ft(e))return e;let t=o.getRootNode();if(("host"in t?t.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let n=o.shadowRoot?.firstElementChild,s=n?.localName==="style"?n:null;s?.sheet&&(s.sheet.disabled=true);let i,l,a;try{let h=globalThis.getComputedStyle(o),g=u=>h.getPropertyValue(u).trim();i=g("--roxy-font-sans"),l=g("--roxy-font-display"),a=g("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||l))return ft(a)?a:void 0}function vt(o){let{sans:e,display:t}=ne[o];return`--roxy-font:${o};--roxy-font-sans:${e};--roxy-font-display:${t}`}var St=mt(yt,globalThis.document?.currentScript?.src||Mr.url);function $t(o,e){if(typeof document>"u"||e===void 0)return;let t=`roxy-ui-font-${o}`;if(document.getElementById(t))return;let r=document.createElement("link");r.id=t,r.rel="stylesheet",r.href=`${e}/styles/fonts/${o}.css`,document.head.append(r)}function wt(o,e=St){ut(o).length>0&&$t(o,e)}function Et(o=St){$t(ht,o)}var Tt='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var se="roxy-ui-tokens";function ie(){if(typeof document>"u")return null;let o=document.getElementById(se);if(o)return o;let e=document.createElement("style");return e.id=se,e.textContent=Tt,document.head.prepend(e),e}function kt(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}var At="__ROXY_UI_I18N__";function _t(){let o=globalThis,e=o[At];if(e)return e;let t={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[At]=t,t}function Gr(o,e){return e?o.replace(/\{\{(\w+)\}\}/g,(t,r)=>r in e?String(e[r]??""):t):o}function Ct(o,e,t){return Gr(Ir(o,e)??e,t)}function Ir(o,e){if(!o)return;let{catalogs:t}=_t(),r=o.toLowerCase();return(t[r]??t[r.split("-")[0]])?.[kt(e)]}function Rt(o){let{listeners:e}=_t();return e.add(o),()=>{e.delete(o)}}var ae=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=Rt(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var de=class extends k{constructor(){super();this.translator=(t,r)=>this.t(t,r);new ae(this)}connectedCallback(){super.connectedCallback(),ie()}updated(t){super.updated(t),this.renderRoot.querySelector(".roxy-glyph")&&Et()}fontDeclarations(t){let r=bt(this,t);return r?(wt(r),vt(r)):""}renderFontStyle(){let t=this.fontDeclarations();return t?p`<style>:host{${t}}</style>`:d}t(t,r){return Ct(this.effectiveLang(),t,r)}effectiveLang(){return Oe(this)}};var Pt=b`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function Ot(o){return o?p`<span class="roxy-glyph" aria-hidden="true">${o}</span>`:d}var Ft=b`: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 Br=b`: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}`,le=[Br,Ft,Pt];var Nr="__cols",Hr="__rows";function jr(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function ce(o){if(Array.isArray(o)){let s=false,i=o.map(l=>{let a=ce(l);return a!==l&&(s=true),a});return s?i:o}if(!jr(o))return o;let e=o[Nr],t=o[Hr];if(Array.isArray(e)&&Array.isArray(t)&&Object.keys(o).length===2)return t.map(s=>{let i={};return e.forEach((l,a)=>{i[l]=ce(s[a])}),i});let r=false,n={};for(let[s,i]of Object.entries(o)){let l=ce(i);l!==i&&(r=true),n[s]=l}return r?n:o}function Ut(o){return ce(o)}function Lt(o,e){return o.find(t=>t.attrs&&Object.entries(t.attrs).every(([r,n])=>e[r]===n))??o[0]}var zr="pk_live_YOUR_KEY",Mt={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 Gt(o){if(o)return o===zr?Mt.sample:o.startsWith("pk_")?void 0:Mt.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:true,composed:true}))}var Bt="https://roxyapi.com/api/v2";async function Dr(o){try{let e=await o.json();if(e?.error){let t=e.code==="validation_error"&&Array.isArray(e.issues)?e.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:e.error,issues:t?.length?t:null,worded:true,...e.code?{code:e.code}:{}}}}catch{}return{message:`Request failed (${o.status})`,issues:null,worded:false}}var Nt={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.")}}},N=class extends Error{constructor(t,r=null,n=true,s,i){super(t);this.issues=r;this.worded=n;this.status=s;this.code=i}};function Ht(o){return o.submitUrl?void 0:Gt(o.publishableKey)}async function Ue(o,e,t){let r=Ht(o);if(r)throw new N(r.message);let n=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:Kr(e,o.submitContext),signal:t}):await qr(o,e,t);if(!n.ok){let s=await Dr(n);throw new N(s.message,s.issues,s.worded,n.status,s.code)}return await n.json()}function Kr(o,e){return JSON.stringify(e?{...o,context:e}:o)}function qr(o,e,t){let r=new URL(`${o.baseUrl??Bt}${e.path}`,document.baseURI);for(let[s,i]of Object.entries(e.query??{}))i!=null&&r.searchParams.set(s,String(i));let n={Accept:"application/json"};return o.publishableKey&&(n["X-API-Key"]=o.publishableKey),e.body!=null&&(n["Content-Type"]="application/json"),fetch(r,{method:e.method??"GET",headers:n,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}var pe=class{constructor(e){this.baseUrl=Bt;this.worded=true;this.failure={};this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){this.worded=true,this.failure={};let t=Ht(this);if(t){this.host.error=t.message,It(this.host,t);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let n=await Ue(this,e,r.signal);if(r.signal.aborted)return;this.host.data=n}catch(n){if(r.signal.aborted||n?.name==="AbortError")return;n instanceof N&&(this.host.issues=n.issues,this.failure={status:n.status,code:n.code}),this.worded=n instanceof N&&n.worded,this.host.error=n instanceof Error?n.message:String(n)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=false)}}};function jt(o,e,t,r=[]){let n={...t},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(h,g)=>{let u=n[g];return delete n[g],encodeURIComponent(String(u??""))}),i=new Set(r),l={},a={};for(let[h,g]of Object.entries(n))g===void 0||g===""||(e==="GET"||i.has(h)?l[h]=g:a[h]=g);return{path:s,method:e,query:l,body:e==="POST"?a:void 0}}function zt(){return p`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var Yn=b`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 Zn=b`.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 Dt(o,e,t){let r=o.filter(n=>!!n.body);return r.length===0?d:p`<section class="block" part="section readings"><h3>${t}</h3>${r.map((n,s)=>p`<details class="interp-card" part="reading" name="${e}" ?open="${s===0}"><summary><span class="interp-lead">${Ot(n.glyph)} ${n.label}</span> ${zt()} ${n.aside?p`<span class="interp-aside"><small>${n.aside}</small></span>`:d}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??d}</div></details>`)}</section>`}var Yr="roxy-data";function Vr(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var he=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(Vr(e)&&e.classList.contains(Yr))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var y=class extends de{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let t=this.lastRequest,r=this.listKey,n=this.listRows();if(!(!t||!r||!n)){this.moreLoading=true,this.moreError=null;try{let s=await Ue(this.fetcher,{...t,query:{...t.query,offset:n.length}});if(this.lastRequest!==t)return;let i=s[r];this.data={...this.data,...s,[r]:[...n,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===t&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=t=>{let r=this.selfFetch();if(!r)return;let n=t.detail;this.lastValues=n.values,this.sticky=!!n.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(n.values),this.fetchFresh(jt(r.endpoint,r.method,{...n.values,...this.ownRequest()},n.queryKeys??[]))};new he(this),this.fetcher=new pe(this)}static{this.styles=[le]}static{this.endpoints=[]}willUpdate(t){if(t.has("data")&&this.data!=null){let r=Ut(this.data);r!==this.data&&(this.data=r)}(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:Lt(this.constructor.endpoints,this);return t&&{endpoint:t.endpoint,method:this.method??t.method}}render(){return p`${this.hostStyle()}${this.renderState()}`}drawn(t){try{return this.renderData(t)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:true,composed:true})),customElements.get("roxy-data")?p`<roxy-data .data="${t}" lang="${F(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let t=this.hideSections.split(",").map(s=>s.trim().toLowerCase()).filter(s=>/^[a-z][a-z0-9-]*$/.test(s)),r=[xt(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(t.length===0&&!r)return d;let n=(r?`:host{${r}}`:"")+t.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){display:none!important}`).join("");return p`<style>${n}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?p`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(t,r,n){return this.hideReadings?d:Dt(t,r,this.t(n??"Reading"))}renderResult(t){let r=p`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(t)}`;return this.showAttribution()?p`${r}${this.renderAttribution()}`:r}renderWithForm(t){return p`${this.renderForm()}${t}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?d:this.renderErrorBanner(this.error):this.data==null?d:this.showAttribution()?p`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let t=this.listRows(),r=this.data?.total;return!this.lastRequest||!t||typeof r!="number"?d:t.length>=r?d:p`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?p`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:d}</div>`}listRows(){let t=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(t)?t:void 0}fetchFresh(t){return this.lastRequest=t,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(t)}load(t){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(t)}pickRow(t){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:t,bubbles:true,composed:true})),this.openRow(t.id)}openRow(t){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let n=this.effectiveLang();n&&r.setAttribute("lang",n),this.openedRow=r,this.openedRowId=t,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(t))}`,method:"GET",query:{lang:lt(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return p`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(d):this.renderEmpty()}renderForm(){let t=this.selfFetch();return p`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${t?.endpoint??""}" method="${t?.method??"POST"}" spec-url="${F(this.specUrl)}" publishable-key="${F(this.publishableKey)}" location-url="${F(this.locationUrl)}" submit-label="${F(this.submitLabel)}" lang="${F(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 p`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return p`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let n=this.renderErrorBanner(t);return r?p`${n}${this.renderForm()}`:n}renderErrorBanner(t){return p`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(t)}</div>`}};m([f({attribute:false})],y.prototype,"data",2),m([f({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),m([f({type:String})],y.prototype,"method",2),m([f({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),m([f({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),m([f({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),m([f({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),m([f({attribute:"submit-context",converter:Nt})],y.prototype,"submitContext",2),m([f({type:String,attribute:"location-url"})],y.prototype,"locationUrl",2),m([f({type:Boolean})],y.prototype,"remember",2),m([f({type:Boolean,attribute:"hide-readings",reflect:true})],y.prototype,"hideReadings",2),m([f({type:String,attribute:"hide-sections",reflect:true})],y.prototype,"hideSections",2),m([f({type:String,attribute:"brand-color"})],y.prototype,"brandColor",2),m([f({type:String,attribute:"brand-accent"})],y.prototype,"brandAccent",2),m([f({type:String})],y.prototype,"font",2),m([f({type:String})],y.prototype,"hemisphere",2),m([f({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),m([f({type:String,attribute:"error-message"})],y.prototype,"errorMessage",2),m([f({type:String})],y.prototype,"attribution",2),m([w()],y.prototype,"loading",2),m([w()],y.prototype,"error",2),m([w()],y.prototype,"issues",2),m([w()],y.prototype,"selfFetched",2),m([w()],y.prototype,"editing",2),m([w()],y.prototype,"sticky",2),m([w()],y.prototype,"openedRow",2),m([w()],y.prototype,"openedRowId",2),m([w()],y.prototype,"moreLoading",2),m([w()],y.prototype,"moreError",2);var ue=class{constructor(e){this.host=e;this.state="closed";this.zoom=1;this.pressedBy="";this.press=e2=>{this.pressedBy=e2.pointerType};this.openOnMouse=e2=>{let t=this.pressedBy==="mouse";this.pressedBy="",t&&(e2.target?.closest?.("a, button, summary, input, select, textarea")||getSelection()?.toString()||this.open())};e.addController(this)}hostUpdated(){let e=this.host.renderRoot.querySelector(".roxy-chart-dialog");if(!e)this.reset();else if(e.isConnected&&this.state!=="closed"){this.state==="opening"&&(this.state="open",e.open||e.showModal());let t=e.querySelector(".roxy-chart-scroll");e.open&&t&&this.position&&(t.scrollLeft=t.scrollWidth*this.position.x-t.clientWidth/2,t.scrollTop=t.scrollHeight*this.position.y-t.clientHeight/2,this.position=void 0)}}hostDisconnected(){this.reset(),this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}open(){this.state="opening",this.position={x:.5,y:0},this.host.requestUpdate()}reset(){this.state="closed",this.zoom=1,this.position=void 0}resize(e){let t=this.host.renderRoot.querySelector(".roxy-chart-scroll");this.position=e===0?{x:.5,y:0}:t?{x:(t.scrollLeft+t.clientWidth/2)/t.scrollWidth,y:(t.scrollTop+t.clientHeight/2)/t.scrollHeight}:void 0,this.zoom=e===0?1:Math.min(3,Math.max(1,this.zoom+e)),this.host.requestUpdate()}renderChartViewport(e,t,r){return p`<div class="roxy-chart-view"><div class="roxy-chart-hit" @pointerdown="${this.press}" @click="${this.openOnMouse}">${e}</div><div class="roxy-chart-tools" part="chart-controls"><button type="button" @click="${()=>this.open()}">${r("Enlarge chart")}</button></div><dialog class="roxy-chart-dialog" part="chart-dialog" aria-label="${t}" @close="${()=>{this.reset(),this.host.requestUpdate()}}">${this.state!=="closed"?p`<div class="roxy-chart-bar"><strong>${t}</strong><div class="roxy-chart-tools"><button type="button" aria-label="${r("Zoom out")}" ?disabled="${this.zoom===1}" @click="${()=>this.resize(-.5)}">−</button> <button type="button" @click="${()=>this.resize(0)}">${r("Reset zoom")}</button> <button type="button" aria-label="${r("Zoom in")}" ?disabled="${this.zoom===3}" @click="${()=>this.resize(.5)}">+</button> <button type="button" @click="${()=>this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}">${r("Close")}</button></div></div><div class="roxy-chart-scroll" role="region" tabindex="0" aria-label="${t}"><div class="roxy-chart-expanded" style="${`--chart-zoom:${this.zoom}`}">${e}</div></div>`:d}</dialog></div>`}},Kt=b`.roxy-chart-view{min-width:0}@media (hover:hover) and (pointer:fine){.roxy-chart-hit{cursor:zoom-in}}.roxy-chart-tools{gap:var(--roxy-space-sm);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}.roxy-chart-tools button{font-size:var(--roxy-text-sm);color:var(--roxy-secondary);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);min-width:2lh;min-height:2lh;padding:var(--roxy-space-xs) var(--roxy-space-sm);cursor:pointer;background:0 0}.roxy-chart-tools button:hover:not(:disabled){border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-chart-tools button:disabled{color:var(--roxy-muted);cursor:default}.roxy-chart-dialog{--roxy-surface:var(--roxy-bg);width:calc(100% - 2 * var(--roxy-space-md));max-width:calc(var(--roxy-chart-expanded-width,60rem) * 1.2);max-height:calc(100% - 2 * var(--roxy-space-md));padding:var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);color:var(--roxy-fg);background:var(--roxy-bg);box-shadow:var(--roxy-shadow-lg);margin:auto}.roxy-chart-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.roxy-chart-dialog::backdrop{background:color-mix(in oklab, var(--roxy-bg) 85%, transparent)}.roxy-chart-bar{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);margin-bottom:var(--roxy-space-md);flex-wrap:wrap;flex-shrink:0;display:flex}.roxy-chart-bar>strong{overflow-wrap:anywhere;min-width:0}.roxy-chart-scroll{overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}.roxy-chart-expanded{width:max(100%, calc(var(--roxy-chart-expanded-width,60rem) * var(--chart-zoom)));padding:var(--roxy-space-sm)}.roxy-chart-expanded>svg{width:100%;max-width:none;height:auto;margin:0}`;var qt=o=>e=>{customElements.get(o)||customElements.define(o,e)};var Yt=b`.roxy-facts{gap:var(--roxy-space-sm) var(--roxy-space-lg);margin:var(--roxy-space-sm) 0 0;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;flex-wrap:wrap;display:flex}.roxy-facts>div{min-width:0}.roxy-facts dd{overflow-wrap:anywhere;margin:0}`;var Vt=[Yt,b`.roxy-facts{margin:0}.lead{font-size:var(--roxy-text-sm);margin:0}.keynotes{gap:var(--roxy-space-xs);margin:0;display:grid}.keynotes dd{margin:0}`];function Wt(o){let e=o.filter(t=>!!t.value);return e.length===0?d:p`<dl class="roxy-facts" part="facts">${e.map(t=>p`<div part="fact"><dt>${t.label}</dt><dd>${t.value}</dd></div>`)}</dl>`}var Qt=14,Wr=86,er=0,Xr=102,A=6,tr=(Wr-Qt)*A,Jr=(Xr-er)*A;function L(o,e){return{x:(o-Qt)*A,y:(e-er)*A}}var c=50,ge=o=>2*c-o,ws=1.02*A,Es=1.15*A,x=2.87,v=4.4,Xt=5.65,Le={head:{64:[c-x,11.2],61:[c,11.2],63:[c+x,11.2]},ajna:{47:[c-x,18],24:[c,18],4:[c+x,18],17:[c-x,20.6],11:[c+x,20.6],43:[c,25.3]},throat:{62:[c-x,32.4],23:[c,32.4],56:[c+x,32.4],16:[c-v,34.7],35:[c+v,34.7],20:[c-v,37.3],12:[c+v,37.3],45:[c+v,39.6],31:[c-x,41.9],8:[c,41.9],33:[c+x,41.9]},g:{1:[c,47.7],7:[c-x,50.3],13:[c+x,50.3],10:[c-Xt,53.4],25:[c+Xt,53.4],15:[c-x,56.8],46:[c+x,56.8],2:[c,59.2]},heart:{21:[63.9,59.5],51:[62.1,61.3],26:[60.1,63.3],40:[66.6,63.3]},spleen:{48:[20,70.8],57:[22.5,72.4],44:[25,73.8],50:[27.7,75.3],32:[25,76.6],28:[22.5,78],18:[20,79.5]},sacral:{5:[c-x,72.7],14:[c,72.7],29:[c+x,72.7],34:[c-v,75.4],27:[c-v,79],59:[c+v,79],42:[c-x,81.7],3:[c,81.7],9:[c+x,81.7]},"solar-plexus":{},root:{53:[c-x,90.2],60:[c,90.2],52:[c+x,90.2],54:[c-v,92.6],19:[c+v,92.6],38:[c-v,95.3],39:[c+v,95.3],58:[c-v,98.1],41:[c+v,98.1]}},Zr={48:36,57:22,44:37,50:6,32:49,28:55,18:30};function Qr(){let o={},e={};for(let[t,[r,n]]of Object.entries(Le.spleen))Le["solar-plexus"][Zr[Number(t)]]=[ge(r),n];for(let[t,r]of Object.entries(Le))for(let[n,[s,i]]of Object.entries(r))o[Number(n)]=L(s,i),e[Number(n)]=t;return{points:o,centerOf:e}}var{points:Ts,centerOf:W}=Qr(),ks=tr/2;function U(o){return o.map(([e,t])=>L(e,t))}function Me(o,e,t){return U([[c-o,e],[c+o,e],[c+o,t],[c-o,t]])}var Ge=5.9,Jt=[[18.3,68.3],[18.3,82],[30.3,75.15]],Ie=[20,84.4],Zt=12*A,eo=[63.2,67.9],to=13.1*A,As=[{id:"head",label:"Head",color:"gold",points:U([[43.55,12.5],[56.45,12.5],[50,1.7]])},{id:"ajna",label:"Ajna",color:"green",points:U([[43.55,16.5],[56.45,16.5],[50,27.7]])},{id:"throat",label:"Throat",color:"brown",points:Me(Ge,31,43.3)},{id:"g",label:"G",color:"gold",points:U([[50,45.8],[57.7,53.6],[50,61.4],[42.3,53.6]])},{id:"heart",label:"Heart",color:"red",points:U([[56.65,65.23],[64.2,56.74],[69.75,65.23]]),caption:{at:L(...eo),room:to}},{id:"spleen",label:"Spleen",color:"brown",points:U(Jt),caption:{at:L(...Ie),room:Zt}},{id:"sacral",label:"Sacral",color:"red",points:Me(Ge,71.3,83.1)},{id:"solar-plexus",label:"Solar Plexus",color:"brown",points:U(Jt.map(([o,e])=>[ge(o),e])),caption:{at:L(ge(Ie[0]),Ie[1]),room:Zt}},{id:"root",label:"Root",color:"brown",points:Me(Ge,88.5,99.8)}];var _s=ro();function ro(){let o=ge,e=[[50,3],[58,3],[60,10],[57,17.5],[56.5,20.5],[53.5,23.5],[51.5,27],[54,28],[64,30],[79,35],[83,42],[84,58],[83,74],[83,86],[76,93],[68,97],[64,99],[62,100.5],[60,100.5]],t=[`M ${ye(e[0])}`];for(let r=1;r+2<e.length;r+=3)t.push(`C ${ye(e[r])} ${ye(e[r+1])} ${ye(e[r+2])}`);t.push(`L ${me(e[e.length-1],o)}`);for(let r=e.length-3;r>=1;r-=3)t.push(`C ${me(e[r+1],o)} ${me(e[r],o)} ${me(e[r-1],o)}`);return t.push("Z"),t.join(" ")}function ye([o,e]){let t=L(o,e);return`${t.x} ${t.y}`}function me([o,e],t){let r=L(t(o),e);return`${r.x} ${r.y}`}var Cs=`0 0 ${tr} ${Jr}`;var Ne=360,oo=470,He=8,nr=Ne-He*2,xe=48,X=15,Be=7,rr=16,fe=[{id:"throat",label:"Throat",y:0},{id:"g",label:"G",y:211},{id:"sacral",label:"Sacral",y:422}],sr=`0 0 ${Ne} ${oo}`;function no(o,e){return He+nr*(o*2+1)/(e*2)}function ir(o){return W[o.gateA]==="throat"||W[o.gateB]==="throat"}function so(o){return(ir(o)?W[o.gateA]==="throat":W[o.gateA]==="g")?o.gateA:o.gateB}function io(){return fe.map(o=>B`<g>
4
+ <rect class="pn-bar" x=${He} y=${o.y} width=${nr} height=${xe} rx="10" />
5
+ <text class="pn-bar-label" x=${Ne/2} y=${o.y+xe/2} text-anchor="middle" dominant-baseline="central">${o.label}</text>
6
+ </g>`)}function ao(o,e,t,r){return t.map((n,s)=>B`<g>
7
+ <circle class="pn-badge" cx=${o+(s-(t.length-1)/2)*rr} cy=${e} r=${Be} />
8
+ <text class="pn-badge-text" x=${o+(s-(t.length-1)/2)*rr} y=${e} text-anchor="middle" dominant-baseline="central">${r(n)}</text>
9
+ </g>`)}function or(o,e,t,r,n,s){let i=r.length>0;return B`<g>
10
+ <circle class="pn-gate-dot ${i?"on":""}" cx=${o} cy=${e} r=${X} />
11
+ <text class="pn-gate ${i?"on":""}" x=${o} y=${e} text-anchor="middle" dominant-baseline="central">${t}</text>
12
+ ${ao(o,e+s,r,n)}
13
+ </g>`}function ar(o){let e=[];for(let t of[true,false]){let r=o.rungs.filter(h=>ir(h)===t),n=t?xe:fe[1].y+xe,s=t?fe[1].y:fe[2].y,i=n+26,l=s-26,a=(i+l)/2;r.forEach((h,g)=>{let u=no(g,r.length),S=so(h),$=S===h.gateA?h.gateB:h.gateA,_=`pn-rung ${h.defined?"on":""} ${h.isCore?"core":""}`;e.push(B`<g>
14
+ <line class=${_} x1=${u} y1=${i+X} x2=${u} y2=${a-13} />
15
+ <line class=${_} x1=${u} y1=${a+13} x2=${u} y2=${l-X} />
16
16
  <text class="pn-name ${h.defined?"on":""}" x=${u} y=${a} text-anchor="middle" dominant-baseline="central">${h.name}</text>
17
- ${Je(u,i,S,o.holders.get(S)??[],o.letterFor,X+Nt+7)}
18
- ${Je(u,l,$,o.holders.get($)??[],o.letterFor,-(X+Nt+7))}
19
- </g>`)})}return N`${eo()}${t.length>0?t:d}`}var M=class extends y{constructor(){super(...arguments);this.chartViewport=new ut(this)}renderChart(e){let r=(e.channels??[]).filter(s=>s.gateA!=null&&s.gateB!=null).map(s=>({gateA:s.gateA,gateB:s.gateB,name:s.name??"",defined:s.defined===true,isCore:s.isCore===true}));if(r.length===0)return d;let n=new Map((e.gates??[]).filter(s=>s.gate!=null).map(s=>[s.gate,s.heldBy??[]]));return p`<svg class="chart" part="chart" viewBox="${Qe}" preserveAspectRatio="xMidYMid meet" role="img" aria-label="Penta ladder: the Throat, G and Sacral with the six penta channels between them, each marked defined or open and lettered with the members holding its gates"><title>Penta</title>${er({rungs:r,holders:n,letterFor:rr})}</svg>`}renderData(e){let r=e.channels??[],n=e.gates??[],s=e.summary,i=s?.gapGates??[],l=r.some(a=>a.isCore);return p`<div class="wrap" part="card" aria-label="Human Design penta"><header class="head" part="header"><h2>Penta</h2>${typeof e.memberCount=="number"?p`<span class="count">${e.memberCount} members</span>`:d}</header>${this.chartViewport.renderChartViewport(this.renderChart(e),"Penta",this.translator)} ${ze([{label:"Members",value:e.memberCount?.toString()},{label:"Defined channels",value:typeof s?.definedChannels=="number"&&r.length>0?`${s.definedChannels} of ${r.length}`:void 0},{label:"Filled gates",value:typeof s?.filledGates=="number"&&n.length>0?`${s.filledGates} of ${n.length}`:void 0},{label:"Core",value:typeof s?.coreDefined=="boolean"?s.coreDefined?"Defined":"Open":void 0},{label:"Gap gates",value:i.length>0?i.join(", "):void 0}])} ${this.hideReadings?d:p`<p class="lead">A penta is the field three to five people form when they work as a group. It is read from the twelve penta gates the members bring between them: a channel with both of its gates held somewhere in the group is a defined Strength, and a gate no member holds is a gap the group has to compensate for.</p>`} ${this.renderGroup("Upper (direction)",r.filter(a=>a.position==="upper"),"Upper channels run from the G Center to the Throat. They carry the leadership of the group and how it presents itself.")} ${this.renderGroup("Lower (execution)",r.filter(a=>a.position==="lower"),"Lower channels run from the G Center to the Sacral. They carry the managed, generative, resource work.")} ${this.renderGroup("Channels",r.filter(a=>a.position!=="upper"&&a.position!=="lower"))} ${l&&!this.hideReadings?p`<p class="footnote">Core is the 2/14 Channel of the Beat, the material core of the penta: gate 2 sets the direction for resources, gate 14 is the resources themselves.</p>`:d} ${this.renderGates(n)} ${r.length>0||n.length>0?p`<p class="footnote" part="legend">Members are lettered in the order they were sent, so A is the first member of the group.</p>`:d}</div>`}renderGroup(e,r,n){return r.length===0?d:p`<div class="section" part="section channels"><h3>${e}</h3>${n&&!this.hideReadings?p`<p class="note">${n}</p>`:d} ${r.map(s=>p`<div class="row"><span class="gates">${s.gateA}-${s.gateB}</span> <span class="cname">${s.name??""} ${s.circuit?p`<span class="circuit">${s.circuit} circuit</span>`:d} </span><span class="roxy-chip" data-tone="${s.defined?"success":d}">${s.defined?"Defined":"Open"}</span> ${s.isCore?p`<span class="roxy-chip core">Core</span>`:d} <span class="held">Gate ${s.gateA} held by ${jt(s.gateAHeldBy)}. Gate ${s.gateB} held by ${jt(s.gateBHeldBy)}.</span></div>`)}</div>`}renderGates(e){if(e.length===0)return d;let r=e.filter(n=>n.filled).length;return p`<div class="section" part="section gates"><h3>Gates (${r} of ${e.length} filled)</h3>${this.hideReadings?d:p`<p class="note">The role each gate brings to the group, and who carries it. A gap is a role no member holds, so the group compensates for it.</p>`} ${e.map(n=>p`<div class="row"><span class="gate-id">${n.gate}</span> <span class="cname">${n.gateName??""}</span> ${n.filled?p`<span class="who">Held by ${jt(n.heldBy)}</span>`:p`<span class="roxy-chip" data-tone="danger">Gap</span>`}</div>`)}</div>`}};M.endpoints=ae,M.styles=[lt,Ne,je,b`.chart{width:100%;max-width:var(--roxy-chart-max-width,22rem);height:auto;margin:0 auto;display:block}.pn-bar{fill:color-mix(in srgb, var(--roxy-accent) 12%, transparent);stroke:var(--roxy-accent-ink);stroke-width:1.5px}.pn-bar-label{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .9375);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.pn-rung{stroke:var(--roxy-border);stroke-width:6px;stroke-dasharray:6 6}.pn-rung.on{stroke:var(--roxy-accent-ink);stroke-dasharray:none}.pn-rung.on.core{stroke-width:9px}.pn-name{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .75);font-family:var(--roxy-font-sans)}.pn-name.on{fill:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.pn-gate-dot{fill:var(--_mask);stroke:var(--roxy-border);stroke-width:1.5px;stroke-dasharray:4 4}.pn-gate-dot.on{stroke:var(--roxy-accent-ink);stroke-dasharray:none}.pn-gate{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.pn-gate.on{fill:var(--roxy-fg)}.pn-badge{fill:var(--roxy-accent-ink)}.pn-badge-text{fill:var(--roxy-bg);font-size:calc(var(--roxy-text-base) * .5625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.count{color:var(--roxy-accent-ink);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.section{border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md)}.note{margin-block-start:var(--roxy-space-xs)}.note,.held,.who,.footnote{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.row{align-items:center;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.row:last-child{border-block-end:0}.gates,.gate-id{font-variant-numeric:tabular-nums;min-width:5ch;font-weight:var(--roxy-weight-bold);color:var(--roxy-accent-ink)}.cname{flex:1;min-width:16ch}.circuit{color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:block}.held{flex-basis:100%}.roxy-chip.core{color:var(--roxy-accent-ink);border-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}`],M=m([Be("roxy-hd-penta")],M);var oo="ABCDE",rr=o=>oo[o]??String(o+1);function jt(o){let t=(o??[]).map(rr);return t.length>0?t.join(", "):"nobody"}return ar(no)})();/*! Bundled license information:
17
+ ${or(u,i,S,o.holders.get(S)??[],o.letterFor,X+Be+7)}
18
+ ${or(u,l,$,o.holders.get($)??[],o.letterFor,-(X+Be+7))}
19
+ </g>`)})}return B`${io()}${e.length>0?e:d}`}var M=class extends y{constructor(){super(...arguments);this.chartViewport=new ue(this)}renderChart(t){let r=(t.channels??[]).filter(s=>s.gateA!=null&&s.gateB!=null).map(s=>({gateA:s.gateA,gateB:s.gateB,name:s.name??"",defined:s.defined===true,isCore:s.isCore===true}));if(r.length===0)return d;let n=new Map((t.gates??[]).filter(s=>s.gate!=null).map(s=>[s.gate,s.heldBy??[]]));return p`<svg class="chart" part="chart" viewBox="${sr}" preserveAspectRatio="xMidYMid meet" role="img" aria-label="Penta ladder: the Throat, G and Sacral with the six penta channels between them, each marked defined or open and lettered with the members holding its gates"><title>Penta</title>${ar({rungs:r,holders:n,letterFor:dr})}</svg>`}renderData(t){let r=t.channels??[],n=t.gates??[],s=t.summary,i=s?.gapGates??[],l=r.some(a=>a.isCore);return p`<div class="wrap" part="card" aria-label="Human Design penta"><header class="head" part="header"><h2>Penta</h2>${typeof t.memberCount=="number"?p`<span class="count">${t.memberCount} members</span>`:d}</header>${this.chartViewport.renderChartViewport(this.renderChart(t),"Penta",this.translator)} ${Wt([{label:"Members",value:t.memberCount?.toString()},{label:"Defined channels",value:typeof s?.definedChannels=="number"&&r.length>0?`${s.definedChannels} of ${r.length}`:void 0},{label:"Filled gates",value:typeof s?.filledGates=="number"&&n.length>0?`${s.filledGates} of ${n.length}`:void 0},{label:"Core",value:typeof s?.coreDefined=="boolean"?s.coreDefined?"Defined":"Open":void 0},{label:"Gap gates",value:i.length>0?i.join(", "):void 0}])} ${this.hideReadings?d:p`<p class="lead">A penta is the field three to five people form when they work as a group. It is read from the twelve penta gates the members bring between them: a channel with both of its gates held somewhere in the group is a defined Strength, and a gate no member holds is a gap the group has to compensate for.</p>`} ${this.renderGroup("Upper (direction)",r.filter(a=>a.position==="upper"),"Upper channels run from the G Center to the Throat. They carry the leadership of the group and how it presents itself.")} ${this.renderGroup("Lower (execution)",r.filter(a=>a.position==="lower"),"Lower channels run from the G Center to the Sacral. They carry the managed, generative, resource work.")} ${this.renderGroup("Channels",r.filter(a=>a.position!=="upper"&&a.position!=="lower"))} ${l&&!this.hideReadings?p`<p class="footnote">Core is the 2/14 Channel of the Beat, the material core of the penta: gate 2 sets the direction for resources, gate 14 is the resources themselves.</p>`:d} ${this.renderGates(n)} ${r.length>0||n.length>0?p`<p class="footnote" part="legend">Members are lettered in the order they were sent, so A is the first member of the group.</p>`:d}</div>`}renderGroup(t,r,n){return r.length===0?d:p`<div class="section" part="section channels"><h3>${t}</h3>${n&&!this.hideReadings?p`<p class="note">${n}</p>`:d} ${r.map(s=>p`<div class="row"><span class="gates">${s.gateA}-${s.gateB}</span> <span class="cname">${s.name??""} ${s.circuit?p`<span class="circuit">${s.circuit} circuit</span>`:d} </span><span class="roxy-chip" data-tone="${s.defined?"success":d}">${s.defined?"Defined":"Open"}</span> ${s.isCore?p`<span class="roxy-chip core">Core</span>`:d} <span class="held">Gate ${s.gateA} held by ${je(s.gateAHeldBy)}. Gate ${s.gateB} held by ${je(s.gateBHeldBy)}.</span></div>`)}</div>`}renderGates(t){if(t.length===0)return d;let r=t.filter(n=>n.filled).length;return p`<div class="section" part="section gates"><h3>Gates (${r} of ${t.length} filled)</h3>${this.hideReadings?d:p`<p class="note">The role each gate brings to the group, and who carries it. A gap is a role no member holds, so the group compensates for it.</p>`} ${t.map(n=>p`<div class="row"><span class="gate-id">${n.gate}</span> <span class="cname">${n.gateName??""}</span> ${n.filled?p`<span class="who">Held by ${je(n.heldBy)}</span>`:p`<span class="roxy-chip" data-tone="danger">Gap</span>`}</div>`)}</div>`}};M.endpoints=at,M.styles=[le,Kt,Vt,b`.chart{width:100%;max-width:var(--roxy-chart-max-width,22rem);height:auto;margin:0 auto;display:block}.pn-bar{fill:color-mix(in srgb, var(--roxy-accent) 12%, transparent);stroke:var(--roxy-accent-ink);stroke-width:1.5px}.pn-bar-label{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .9375);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.pn-rung{stroke:var(--roxy-border);stroke-width:6px;stroke-dasharray:6 6}.pn-rung.on{stroke:var(--roxy-accent-ink);stroke-dasharray:none}.pn-rung.on.core{stroke-width:9px}.pn-name{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .75);font-family:var(--roxy-font-sans)}.pn-name.on{fill:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.pn-gate-dot{fill:var(--_mask);stroke:var(--roxy-border);stroke-width:1.5px;stroke-dasharray:4 4}.pn-gate-dot.on{stroke:var(--roxy-accent-ink);stroke-dasharray:none}.pn-gate{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.pn-gate.on{fill:var(--roxy-fg)}.pn-badge{fill:var(--roxy-accent-ink)}.pn-badge-text{fill:var(--roxy-bg);font-size:calc(var(--roxy-text-base) * .5625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.count{color:var(--roxy-accent-ink);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.section{border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md)}.note{margin-block-start:var(--roxy-space-xs)}.note,.held,.who,.footnote{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.row{align-items:center;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.row:last-child{border-block-end:0}.gates,.gate-id{font-variant-numeric:tabular-nums;min-width:5ch;font-weight:var(--roxy-weight-bold);color:var(--roxy-accent-ink)}.cname{flex:1;min-width:16ch}.circuit{color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:block}.held{flex-basis:100%}.roxy-chip.core{color:var(--roxy-accent-ink);border-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}`],M=m([qt("roxy-hd-penta")],M);var lo="ABCDE",dr=o=>lo[o]??String(o+1);function je(o){let e=(o??[]).map(dr);return e.length>0?e.join(", "):"nobody"}return ur(co)})();/*! Bundled license information:
20
20
 
21
21
  @lit/reactive-element/css-tag.js:
22
22
  (**