@roxyapi/ui 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/components-catalog.json +1 -1
  2. package/dist/cdn/THIRD-PARTY-NOTICES.txt +123 -0
  3. package/dist/cdn/components/almanac-day.js +1 -50
  4. package/dist/cdn/components/angel-number-card.js +3 -50
  5. package/dist/cdn/components/angel-number-lookup.js +1 -48
  6. package/dist/cdn/components/arudha-padas.js +1 -48
  7. package/dist/cdn/components/ashtakavarga-grid.js +1 -48
  8. package/dist/cdn/components/aspects-table.js +3 -50
  9. package/dist/cdn/components/astrocartography-map.js +2 -49
  10. package/dist/cdn/components/bazi-chart.js +1 -48
  11. package/dist/cdn/components/bhav-chalit-table.js +1 -48
  12. package/dist/cdn/components/bhava-bala-table.js +2 -49
  13. package/dist/cdn/components/biorhythm-chart.js +1 -48
  14. package/dist/cdn/components/bodygraph.js +2 -51
  15. package/dist/cdn/components/chara-karakas.js +1 -48
  16. package/dist/cdn/components/choghadiya-grid.js +1 -48
  17. package/dist/cdn/components/compatibility-card.js +1 -48
  18. package/dist/cdn/components/compound-number.js +1 -48
  19. package/dist/cdn/components/crystal-card.js +1 -48
  20. package/dist/cdn/components/crystal-grid.js +1 -48
  21. package/dist/cdn/components/dasha-timeline.js +1 -48
  22. package/dist/cdn/components/data.js +1 -48
  23. package/dist/cdn/components/divisional-chart.js +2 -51
  24. package/dist/cdn/components/dosha-card.js +1 -48
  25. package/dist/cdn/components/dosha-constitution.js +1 -48
  26. package/dist/cdn/components/dream-card.js +1 -48
  27. package/dist/cdn/components/dream-search.js +2 -49
  28. package/dist/cdn/components/endpoint-form.js +2 -58
  29. package/dist/cdn/components/ephemeris-table.js +1 -48
  30. package/dist/cdn/components/fixed-stars.js +2 -49
  31. package/dist/cdn/components/flying-star-chart.js +1 -48
  32. package/dist/cdn/components/forecast-digest.js +1 -48
  33. package/dist/cdn/components/forecast-timeline.js +3 -52
  34. package/dist/cdn/components/gematria.js +1 -48
  35. package/dist/cdn/components/gochara-table.js +1 -48
  36. package/dist/cdn/components/guna-milan.js +1 -48
  37. package/dist/cdn/components/hd-connection.js +3 -52
  38. package/dist/cdn/components/hd-penta.js +2 -49
  39. package/dist/cdn/components/hd-type-card.js +2 -49
  40. package/dist/cdn/components/hd-variables.js +1 -48
  41. package/dist/cdn/components/heliacal-table.js +1 -48
  42. package/dist/cdn/components/hexagram.js +1 -48
  43. package/dist/cdn/components/hora-table.js +1 -48
  44. package/dist/cdn/components/horoscope-card.js +1 -48
  45. package/dist/cdn/components/kp-chart.js +1 -48
  46. package/dist/cdn/components/kp-finance-card.js +1 -48
  47. package/dist/cdn/components/kp-planets-table.js +1 -48
  48. package/dist/cdn/components/kp-ruling-planets.js +3 -50
  49. package/dist/cdn/components/kua-card.js +1 -48
  50. package/dist/cdn/components/local-space-compass.js +2 -49
  51. package/dist/cdn/components/location-search.js +1 -41
  52. package/dist/cdn/components/luck-pillars.js +1 -48
  53. package/dist/cdn/components/mayan-day-sign.js +1 -48
  54. package/dist/cdn/components/moon-phase.js +1 -50
  55. package/dist/cdn/components/nakshatra-card.js +2 -49
  56. package/dist/cdn/components/natal-chart.js +2 -51
  57. package/dist/cdn/components/numerology-card.js +1 -48
  58. package/dist/cdn/components/panchang-table.js +1 -50
  59. package/dist/cdn/components/positions-table.js +1 -48
  60. package/dist/cdn/components/profection-card.js +1 -48
  61. package/dist/cdn/components/reference-card.js +1 -48
  62. package/dist/cdn/components/relocation-wheel.js +2 -51
  63. package/dist/cdn/components/report.js +1 -48
  64. package/dist/cdn/components/shadbala-table.js +1 -48
  65. package/dist/cdn/components/synastry-chart.js +4 -53
  66. package/dist/cdn/components/tarot-card.js +2 -49
  67. package/dist/cdn/components/tarot-catalog.js +2 -49
  68. package/dist/cdn/components/tarot-spread.js +2 -49
  69. package/dist/cdn/components/transit-wheel.js +2 -49
  70. package/dist/cdn/components/transits-table.js +1 -48
  71. package/dist/cdn/components/upagraha-table.js +1 -48
  72. package/dist/cdn/components/vastu-mandala.js +3 -50
  73. package/dist/cdn/components/vedic-aspects.js +1 -48
  74. package/dist/cdn/components/vedic-daily.js +1 -48
  75. package/dist/cdn/components/vedic-kundli.js +2 -51
  76. package/dist/cdn/components/vedic-planets-table.js +1 -48
  77. package/dist/cdn/components/western-planets-table.js +1 -48
  78. package/dist/cdn/components/yoga-list.js +1 -48
  79. package/dist/cdn/components/zodiac-card.js +1 -48
  80. package/dist/cdn/roxy-ui.js +78 -135
  81. package/dist/charts.cjs +13 -16
  82. package/dist/charts.js +10 -13
  83. package/dist/components/almanac-day.js +1 -1
  84. package/dist/components/angel-number-card.js +1 -1
  85. package/dist/components/angel-number-lookup.js +1 -1
  86. package/dist/components/arudha-padas.js +1 -1
  87. package/dist/components/ashtakavarga-grid.js +1 -1
  88. package/dist/components/aspects-table.js +1 -1
  89. package/dist/components/astrocartography-map.js +1 -1
  90. package/dist/components/bazi-chart.js +1 -1
  91. package/dist/components/bhav-chalit-table.js +1 -1
  92. package/dist/components/bhava-bala-table.js +1 -1
  93. package/dist/components/biorhythm-chart.js +1 -1
  94. package/dist/components/bodygraph.js +1 -1
  95. package/dist/components/chara-karakas.js +1 -1
  96. package/dist/components/choghadiya-grid.js +1 -1
  97. package/dist/components/compatibility-card.js +1 -1
  98. package/dist/components/compound-number.js +1 -1
  99. package/dist/components/crystal-card.js +1 -1
  100. package/dist/components/crystal-grid.js +1 -1
  101. package/dist/components/dasha-timeline.js +1 -1
  102. package/dist/components/data.js +1 -1
  103. package/dist/components/divisional-chart.js +1 -1
  104. package/dist/components/dosha-card.js +1 -1
  105. package/dist/components/dosha-constitution.js +1 -1
  106. package/dist/components/dream-card.js +1 -1
  107. package/dist/components/dream-search.js +1 -1
  108. package/dist/components/endpoint-form.js +1 -1
  109. package/dist/components/ephemeris-table.js +1 -1
  110. package/dist/components/fixed-stars.js +1 -1
  111. package/dist/components/flying-star-chart.js +1 -1
  112. package/dist/components/forecast-digest.js +1 -1
  113. package/dist/components/forecast-timeline.js +1 -1
  114. package/dist/components/gematria.js +1 -1
  115. package/dist/components/gochara-table.js +1 -1
  116. package/dist/components/guna-milan.js +1 -1
  117. package/dist/components/hd-connection.js +1 -1
  118. package/dist/components/hd-penta.js +1 -1
  119. package/dist/components/hd-type-card.js +1 -1
  120. package/dist/components/hd-variables.js +1 -1
  121. package/dist/components/heliacal-table.js +1 -1
  122. package/dist/components/hexagram.js +1 -1
  123. package/dist/components/hora-table.js +1 -1
  124. package/dist/components/horoscope-card.js +1 -1
  125. package/dist/components/kp-chart.js +1 -1
  126. package/dist/components/kp-finance-card.js +1 -1
  127. package/dist/components/kp-planets-table.js +1 -1
  128. package/dist/components/kp-ruling-planets.js +1 -1
  129. package/dist/components/kua-card.js +1 -1
  130. package/dist/components/local-space-compass.js +2 -2
  131. package/dist/components/location-search.js +1 -1
  132. package/dist/components/luck-pillars.js +1 -1
  133. package/dist/components/mayan-day-sign.js +1 -1
  134. package/dist/components/moon-phase.js +1 -1
  135. package/dist/components/nakshatra-card.js +1 -1
  136. package/dist/components/natal-chart.js +1 -1
  137. package/dist/components/numerology-card.js +1 -1
  138. package/dist/components/panchang-table.js +1 -1
  139. package/dist/components/positions-table.js +1 -1
  140. package/dist/components/profection-card.js +1 -1
  141. package/dist/components/reference-card.js +1 -1
  142. package/dist/components/relocation-wheel.js +1 -1
  143. package/dist/components/report.js +1 -1
  144. package/dist/components/shadbala-table.js +1 -1
  145. package/dist/components/synastry-chart.js +1 -1
  146. package/dist/components/tarot-card.js +1 -1
  147. package/dist/components/tarot-catalog.js +1 -1
  148. package/dist/components/tarot-spread.js +1 -1
  149. package/dist/components/transit-wheel.js +8 -8
  150. package/dist/components/transits-table.js +1 -1
  151. package/dist/components/upagraha-table.js +1 -1
  152. package/dist/components/vastu-mandala.js +1 -1
  153. package/dist/components/vedic-aspects.js +1 -1
  154. package/dist/components/vedic-daily.js +1 -1
  155. package/dist/components/vedic-kundli.js +1 -1
  156. package/dist/components/vedic-planets-table.js +1 -1
  157. package/dist/components/western-planets-table.js +1 -1
  158. package/dist/components/yoga-list.js +1 -1
  159. package/dist/components/zodiac-card.js +1 -1
  160. package/dist/index.cjs +77 -77
  161. package/dist/index.js +78 -78
  162. package/dist/styles/fonts.d.ts +1 -1
  163. package/dist/types/types.gen.d.ts +270 -270
  164. package/dist/utils/tarot.d.ts +2 -0
  165. package/dist/version.d.ts +1 -1
  166. package/package.json +1 -1
@@ -1,50 +1,3 @@
1
- var RoxyUI_angel_number_card=(()=>{var K=Object.defineProperty;var vt=Object.getOwnPropertyDescriptor;var Te=Object.getOwnPropertyNames;var ke=Object.prototype.hasOwnProperty;var _e=(o,t)=>{for(var e in t)K(o,e,{get:t[e],enumerable:true})},Ae=(o,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Te(t))!ke.call(o,n)&&n!==e&&K(o,n,{get:()=>t[n],enumerable:!(r=vt(t,n))||r.enumerable});return o};var Re=o=>Ae(K({},"__esModule",{value:true}),o),h=(o,t,e,r)=>{for(var n=r>1?void 0:r?vt(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&&K(t,e,n),n};var ur={};_e(ur,{ROXY_UI_TOKENS_STYLE_ID:()=>W,RoxyAngelNumberCard:()=>R,injectRoxyTokens:()=>X});var z=globalThis,B=z.ShadowRoot&&(z.ShadyCSS===void 0||z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nt=Symbol(),St=new WeakMap,F=class{constructor(t,e,r){if(this._$cssResult$=true,r!==nt)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(B&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=St.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&St.set(e,t))}return t}toString(){return this.cssText}},Et=o=>new F(typeof o=="string"?o:o+"",void 0,nt),f=(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 F(e,o,nt)},wt=(o,t)=>{if(B)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)}},st=B?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Et(e)})(o):o;var{is:Pe,defineProperty:Ce,getOwnPropertyDescriptor:Oe,getOwnPropertyNames:Fe,getOwnPropertySymbols:Ue,getPrototypeOf:Le}=Object,q=globalThis,$t=q.trustedTypes,Ne=$t?$t.emptyScript:"",Me=q.reactiveElementPolyfillSupport,U=(o,t)=>o,L={toAttribute(o,t){switch(t){case Boolean:o=o?Ne: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}},D=(o,t)=>!Pe(o,t),Tt={attribute:true,type:String,converter:L,reflect:false,useDefault:false,hasChanged:D};Symbol.metadata??=Symbol("metadata"),q.litPropertyMetadata??=new WeakMap;var v=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Tt){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&&Ce(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){let{get:n,set:s}=Oe(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)??Tt}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;let t=Le(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(U("properties"))){let e=this.properties,r=[...Fe(e),...Ue(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(st(n))}else t!==void 0&&e.push(st(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 wt(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:L).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:L;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??D)(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){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[U("elementProperties")]=new Map,v[U("finalized")]=new Map,Me?.({ReactiveElement:v}),(q.reactiveElementVersions??=[]).push("2.1.2");var ht=globalThis,kt=o=>o,Y=ht.trustedTypes,_t=Y?Y.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ft="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,Ut="?"+E,je=`<${Ut}>`,k=document,M=()=>k.createComment(""),j=o=>o===null||typeof o!="object"&&typeof o!="function",ut=Array.isArray,Ie=o=>ut(o)||typeof o?.[Symbol.iterator]=="function",it=`[
2
- \f\r]`,N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,At=/-->/g,Rt=/>/g,$=RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Pt=/'/g,Ct=/"/g,Lt=/^(?:script|style|textarea|title)$/i,yt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),c=yt(1),br=yt(2),vr=yt(3),_=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Ot=new WeakMap,T=k.createTreeWalker(k,129);function Nt(o,t){if(!ut(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return _t!==void 0?_t.createHTML(t):t}var Ge=(o,t)=>{let e=o.length-1,r=[],n,s=t===2?"<svg>":t===3?"<math>":"",i=N;for(let l=0;l<e;l++){let a=o[l],m,u,y=-1,b=0;for(;b<a.length&&(i.lastIndex=b,u=i.exec(a),u!==null);)b=i.lastIndex,i===N?u[1]==="!--"?i=At:u[1]!==void 0?i=Rt:u[2]!==void 0?(Lt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=$):u[3]!==void 0&&(i=$):i===$?u[0]===">"?(i=n??N,y=-1):u[1]===void 0?y=-2:(y=i.lastIndex-u[2].length,m=u[1],i=u[3]===void 0?$:u[3]==='"'?Ct:Pt):i===Ct||i===Pt?i=$:i===At||i===Rt?i=N:(i=$,n=void 0);let S=i===$&&o[l+1].startsWith("/>")?" ":"";s+=i===N?a+je:y>=0?(r.push(m),a.slice(0,y)+Ft+a.slice(y)+E+S):a+E+(y===-2?l:S)}return[Nt(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},I=class o{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,i=0,l=t.length-1,a=this.parts,[m,u]=Ge(t,e);if(this.el=o.createElement(m,r),T.currentNode=this.el.content,e===2||e===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=T.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(Ft)){let b=u[i++],S=n.getAttribute(y).split(E),H=/([.?@])?(.*)/.exec(b);a.push({type:1,index:s,name:H[2],strings:S,ctor:H[1]==="."?dt:H[1]==="?"?lt:H[1]==="@"?ct:C}),n.removeAttribute(y)}else y.startsWith(E)&&(a.push({type:6,index:s}),n.removeAttribute(y));if(Lt.test(n.tagName)){let y=n.textContent.split(E),b=y.length-1;if(b>0){n.textContent=Y?Y.emptyScript:"";for(let S=0;S<b;S++)n.append(y[S],M()),T.nextNode(),a.push({type:2,index:++s});n.append(y[b],M())}}}else if(n.nodeType===8)if(n.data===Ut)a.push({type:2,index:s});else{let y=-1;for(;(y=n.data.indexOf(E,y+1))!==-1;)a.push({type:7,index:s}),y+=E.length-1}s++}}static createElement(t,e){let r=k.createElement("template");return r.innerHTML=t,r}};function P(o,t,e=o,r){if(t===_)return t;let n=r!==void 0?e._$Co?.[r]:e._$Cl,s=j(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=P(o,n._$AS(o,t.values),n,r)),t}var at=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??k).importNode(e,true);T.currentNode=n;let s=T.nextNode(),i=0,l=0,a=r[0];for(;a!==void 0;){if(i===a.index){let m;a.type===2?m=new G(s,s.nextSibling,this,t):a.type===1?m=new a.ctor(s,a.name,a.strings,this,t):a.type===6&&(m=new pt(s,this,t)),this._$AV.push(m),a=r[++l]}i!==a?.index&&(s=T.nextNode(),i++)}return T.currentNode=k,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++}},G=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=P(this,t,e),j(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ie(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&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.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=I.createElement(Nt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{let s=new at(n,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=Ot.get(t.strings);return e===void 0&&Ot.set(t.strings,e=new I(t)),e}k(t){ut(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(M()),this.O(M()),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=kt(t).nextSibling;kt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},C=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=P(this,t,e,0),i=!j(t)||t!==this._$AH&&t!==_,i&&(this._$AH=t);else{let l=t,a,m;for(t=s[0],a=0;a<s.length-1;a++)m=P(this,l[r+a],e,a),m===_&&(m=this._$AH[a]),i||=!j(m)||m!==this._$AH[a],m===d?t=d:t!==d&&(t+=(m??"")+s[a+1]),this._$AH[a]=m}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends C{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},lt=class extends C{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},ct=class extends C{constructor(t,e,r,n,s){super(t,e,r,n,s),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??d)===_)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)}},pt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}};var He=ht.litHtmlPolyfillSupport;He?.(I,G),(ht.litHtmlVersions??=[]).push("3.3.3");var Mt=(o,t,e)=>{let r=e?.renderBefore??t,n=r._$litPart$;if(n===void 0){let s=e?.renderBefore??null;r._$litPart$=n=new G(t.insertBefore(M(),s),s,void 0,e??{})}return n._$AI(o),n};var mt=globalThis,w=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Mt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};w._$litElement$=true,w.finalized=true,mt.litElementHydrateSupport?.({LitElement:w});var Ke=mt.litElementPolyfillSupport;Ke?.({LitElement:w});(mt.litElementVersions??=[]).push("4.2.2");var jt=[{endpoint:"angel-numbers/numbers/{number}",method:"GET"},{endpoint:"angel-numbers/daily",method:"POST"}];var ze=[{key:"spiritual",source:"Spiritual"},{key:"love",source:"Love"},{key:"career",source:"Career"},{key:"money",source:"Money"},{key:"twinFlame",source:"Twin flame"}];function It(o,t,e,r){let n=[];if(t)for(let s of ze){let i=t[s.key];i&&n.push({label:o(s.source),body:i})}return e&&n.push({label:o("Biblical"),body:e}),r&&n.push({label:o("Shadow"),body:r}),n}var Be={attribute:true,type:String,converter:L,reflect:false,hasChanged:D},qe=(o=Be,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 g(o){return(t,e)=>typeof e=="object"?qe(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 x(o){return g({...o,state:true,attribute:false})}var A=o=>o??d;var Gt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function ft(o){if(o.lang)return o.lang;if(typeof document>"u")return;let t=o.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var De={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function gt(o,t){let e=o.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function Ht(o,t=Gt){let e=ft(o);if(!e)return;let r=gt(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")??De[n[1]??""];return i?gt(`zh-${i}`,t):void 0}return gt(s,t)}var Bt="symbols";var Ye={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},xt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Kt='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',zt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',J={"fraunces-jost":{name:"Fraunces with Jost",sans:xt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:xt,display:xt},geist:{name:"Geist",sans:Kt,display:Kt},system:{name:"System",sans:zt,display:zt}};function qt(o){let{sans:t,display:e}=J[o];return Object.keys(Ye).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var Dt="1.6.1";var Ve=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,Je=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Yt(o,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(Ve.exec(e.pathname)??Je.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 Qe={},We="color-mix(in oklab, var(--roxy-accent) 70%, black)",Xe="var(--roxy-accent)",Ze="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Vt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Jt(o){return o!==void 0&&Object.hasOwn(J,o)}function Wt(o){let t=[];return o.brandColor&&Vt.test(o.brandColor)&&t.push(`--roxy-primary:${o.brandColor}`),o.brandAccent&&Vt.test(o.brandAccent)&&t.push(`--roxy-accent:${o.brandAccent}`,`--roxy-accent-ink:light-dark(${We},${Xe})`,`--roxy-ring:${Ze}`),t.join(";")}function Xt(o,t){if(Jt(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 m=globalThis.getComputedStyle(o),u=y=>m.getPropertyValue(y).trim();i=u("--roxy-font-sans"),l=u("--roxy-font-display"),a=u("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||l))return Jt(a)?a:void 0}function Zt(o){let{sans:t,display:e}=J[o];return`--roxy-font:${o};--roxy-font-sans:${t};--roxy-font-display:${e}`}var Qt=Yt(Dt,globalThis.document?.currentScript?.src||Qe.url);function te(o,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${o}`;if(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)}function ee(o,t=Qt){qt(o).length>0&&te(o,t)}function re(o=Qt){te(Bt,o)}var oe='@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 W="roxy-ui-tokens";function X(){if(typeof document>"u")return null;let o=document.getElementById(W);if(o)return o;let t=document.createElement("style");return t.id=W,t.textContent=oe,document.head.prepend(t),t}function ne(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}var se="__ROXY_UI_I18N__";function ie(){let o=globalThis,t=o[se];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[se]=e,e}function tr(o,t){return t?o.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):o}function ae(o,t,e){return tr(er(o,t)??t,e)}function er(o,t){if(!o)return;let{catalogs:e}=ie(),r=o.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[ne(t)]}function de(o){let{listeners:t}=ie();return t.add(o),()=>{t.delete(o)}}var Z=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=de(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var Q=class extends w{constructor(){super();this.translator=(e,r)=>this.t(e,r);new Z(this)}connectedCallback(){super.connectedCallback(),X()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&re()}fontDeclarations(e){let r=Xt(this,e);return r?(ee(r),Zt(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?c`<style>:host{${e}}</style>`:d}t(e,r){return ae(this.effectiveLang(),e,r)}effectiveLang(){return ft(this)}};var le=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function ce(o){return o?c`<span class="roxy-glyph" aria-hidden="true">${o}</span>`:d}var pe=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var rr=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,tt=[rr,pe,le];var or="__cols",nr="__rows";function sr(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function et(o){if(Array.isArray(o)){let s=false,i=o.map(l=>{let a=et(l);return a!==l&&(s=true),a});return s?i:o}if(!sr(o))return o;let t=o[or],e=o[nr];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]=et(s[a])}),i});let r=false,n={};for(let[s,i]of Object.entries(o)){let l=et(i);l!==i&&(r=true),n[s]=l}return r?n:o}function he(o){return et(o)}function ue(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",ye={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 me(o){if(o)return o===ir?ye.sample:o.startsWith("pk_")?void 0:ye.secret}function ge(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 ar(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 xe={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.")}}},O=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 be(o){return o.submitUrl?void 0:me(o.publishableKey)}async function bt(o,t,e){let r=be(o);if(r)throw new O(r.message);let n=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:dr(t,o.submitContext),signal:e}):await lr(o,t,e);if(!n.ok){let s=await ar(n);throw new O(s.message,s.issues,s.worded,n.status,s.code)}return await n.json()}function dr(o,t){return JSON.stringify(t?{...o,context:t}:o)}function lr(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 rt=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=be(this);if(e){this.host.error=e.message,ge(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let n=await bt(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 O&&(this.host.issues=n.issues,this.failure={status:n.status,code:n.code}),this.worded=n instanceof O&&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 ve(o,t,e,r=[]){let n={...e},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(m,u)=>{let y=n[u];return delete n[u],encodeURIComponent(String(y??""))}),i=new Set(r),l={},a={};for(let[m,u]of Object.entries(n))u===void 0||u===""||(t==="GET"||i.has(m)?l[m]=u:a[m]=u);return{path:s,method:t,query:l,body:t==="POST"?a:void 0}}function Se(){return c`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var Zo=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Ee=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function we(o,t,e){let r=o.filter(n=>!!n.body);return r.length===0?d:c`<section class="block" part="section readings"><h3>${e}</h3>${r.map((n,s)=>c`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${ce(n.glyph)} ${n.label}</span> ${Se()} ${n.aside?c`<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 cr="roxy-data";function pr(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var ot=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){if(this.host.data!=null)return;let t=this.read();t!==void 0&&(this.host.data=t,this.host.requestUpdate())}read(){let t=this.findInlineScript();return t?this.parse(t.textContent):void 0}findInlineScript(){for(let t of Array.from(this.host.children))if(pr(t)&&t.classList.contains(cr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends Q{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 bt(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(ve(r.endpoint,r.method,{...n.values,...this.ownRequest()},n.queryKeys??[]))};new ot(this),this.fetcher=new rt(this)}static{this.styles=[tt]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=he(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:ue(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return c`${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")?c`<roxy-data .data="${e}" lang="${A(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=[Wt(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 c`<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()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,n){return this.hideReadings?d:we(e,r,this.t(n??"Reading"))}renderResult(e){let r=c`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?c`${r}${this.renderAttribution()}`:r}renderWithForm(e){return c`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?d:this.renderErrorBanner(this.error):this.data==null?d:this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?d:e.length>=r?d:c`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?c`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:d}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let 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:Ht(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return c`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(d):this.renderEmpty()}renderForm(){let e=this.selfFetch();return c`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${A(this.specUrl)}" publishable-key="${A(this.publishableKey)}" location-url="${A(this.locationUrl)}" submit-label="${A(this.submitLabel)}" lang="${A(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return c`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return c`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let n=this.renderErrorBanner(e);return r?c`${n}${this.renderForm()}`:n}renderErrorBanner(e){return c`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};h([g({attribute:false})],p.prototype,"data",2),h([g({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([g({type:String})],p.prototype,"method",2),h([g({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([g({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([g({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([g({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([g({attribute:"submit-context",converter:xe})],p.prototype,"submitContext",2),h([g({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([g({type:Boolean})],p.prototype,"remember",2),h([g({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([g({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([g({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([g({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([g({type:String})],p.prototype,"font",2),h([g({type:String})],p.prototype,"hemisphere",2),h([g({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([g({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([g({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var $e=o=>t=>{customElements.get(o)||customElements.define(o,t)};var hr={positive:"success",cautionary:"danger",neutral:"info"},R=class extends p{renderData(t){let e=(t.energy??"").toLowerCase(),r=t.keywords??[],n=t.actionSteps??[];return c`<article class="card" part="card" aria-label="${`${this.t("Angel number")} ${t.number??""}`}"><div class="hero" part="header">${t.number?c`<div class="numeral">${t.number}</div>`:d}<div><p class="roxy-label">${this.t("Angel number")}</p>${t.title?c`<h2>${t.title}</h2>`:d}</div></div>${t.coreMessage&&!this.hideReadings?c`<p>${t.coreMessage}</p>`:d}<ul class="badges roxy-chips" part="details">${t.type?c`<li>${t.type}</li>`:d} ${typeof t.digitRoot=="number"?c`<li>${this.t("Digit root")} ${t.digitRoot}</li>`:d} ${t.energy?c`<li class="roxy-chip" data-tone="${hr[e]??d}">${t.energy}</li>`:d}</ul>${r.length>0&&!this.hideReadings?c`<ul class="roxy-chips">${r.map(s=>c`<li>${s}</li>`)}</ul>`:d} ${this.renderSections(t)} ${t.affirmation&&!this.hideReadings?c`<p class="affirmation">${t.affirmation}</p>`:d} ${n.length>0&&!this.hideReadings?c`<div class="steps" part="section action-steps"><h3>${this.t("Action steps")}</h3><ul>${n.map(s=>c`<li>${s}</li>`)}</ul></div>`:d}</article>`}renderSections(t){return this.renderInterpretation(It(this.translator,t.meaning,t.biblical,t.shadow),"angel-meaning","Reading")}};R.endpoints=jt,R.styles=[tt,Ee,f`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.numeral{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;flex-shrink:0;line-height:1}.hero>div:not(.numeral){min-width:0}@container (width<=24rem){.hero{justify-items:start;gap:var(--roxy-space-sm);grid-template-columns:minmax(0,1fr);display:grid}}.badges>li{text-transform:capitalize}.affirmation{border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);padding-inline-start:var(--roxy-space-md);font-style:italic}.steps h3{margin-block-end:var(--roxy-space-xs)}.steps ul{gap:calc(var(--roxy-space-unit) / 2);font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}`],R=h([$e("roxy-angel-number-card")],R);return Re(ur)})();/*! Bundled license information:
4
-
5
- @lit/reactive-element/css-tag.js:
6
- (**
7
- * @license
8
- * Copyright 2019 Google LLC
9
- * SPDX-License-Identifier: BSD-3-Clause
10
- *)
11
-
12
- @lit/reactive-element/reactive-element.js:
13
- lit-html/lit-html.js:
14
- lit-element/lit-element.js:
15
- @lit/reactive-element/decorators/custom-element.js:
16
- @lit/reactive-element/decorators/property.js:
17
- @lit/reactive-element/decorators/state.js:
18
- @lit/reactive-element/decorators/event-options.js:
19
- @lit/reactive-element/decorators/base.js:
20
- @lit/reactive-element/decorators/query.js:
21
- @lit/reactive-element/decorators/query-all.js:
22
- @lit/reactive-element/decorators/query-async.js:
23
- @lit/reactive-element/decorators/query-assigned-nodes.js:
24
- (**
25
- * @license
26
- * Copyright 2017 Google LLC
27
- * SPDX-License-Identifier: BSD-3-Clause
28
- *)
29
-
30
- lit-html/is-server.js:
31
- (**
32
- * @license
33
- * Copyright 2022 Google LLC
34
- * SPDX-License-Identifier: BSD-3-Clause
35
- *)
36
-
37
- @lit/reactive-element/decorators/query-assigned-elements.js:
38
- (**
39
- * @license
40
- * Copyright 2021 Google LLC
41
- * SPDX-License-Identifier: BSD-3-Clause
42
- *)
43
-
44
- lit-html/directives/if-defined.js:
45
- (**
46
- * @license
47
- * Copyright 2018 Google LLC
48
- * SPDX-License-Identifier: BSD-3-Clause
49
- *)
50
- */
1
+ var RoxyUI_angel_number_card=(()=>{var K=Object.defineProperty;var vt=Object.getOwnPropertyDescriptor;var Te=Object.getOwnPropertyNames;var ke=Object.prototype.hasOwnProperty;var Ae=(o,t)=>{for(var e in t)K(o,e,{get:t[e],enumerable:true})},_e=(o,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Te(t))!ke.call(o,n)&&n!==e&&K(o,n,{get:()=>t[n],enumerable:!(r=vt(t,n))||r.enumerable});return o};var Re=o=>_e(K({},"__esModule",{value:true}),o),h=(o,t,e,r)=>{for(var n=r>1?void 0:r?vt(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&&K(t,e,n),n};var ur={};Ae(ur,{ROXY_UI_TOKENS_STYLE_ID:()=>W,RoxyAngelNumberCard:()=>R,injectRoxyTokens:()=>X});var z=globalThis,B=z.ShadowRoot&&(z.ShadyCSS===void 0||z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nt=Symbol(),St=new WeakMap,F=class{constructor(t,e,r){if(this._$cssResult$=true,r!==nt)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(B&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=St.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&St.set(e,t))}return t}toString(){return this.cssText}},Et=o=>new F(typeof o=="string"?o:o+"",void 0,nt),f=(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 F(e,o,nt)},wt=(o,t)=>{if(B)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)}},st=B?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Et(e)})(o):o;var{is:Pe,defineProperty:Ce,getOwnPropertyDescriptor:Oe,getOwnPropertyNames:Fe,getOwnPropertySymbols:Ue,getPrototypeOf:Le}=Object,q=globalThis,$t=q.trustedTypes,Ne=$t?$t.emptyScript:"",Me=q.reactiveElementPolyfillSupport,U=(o,t)=>o,L={toAttribute(o,t){switch(t){case Boolean:o=o?Ne: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}},D=(o,t)=>!Pe(o,t),Tt={attribute:true,type:String,converter:L,reflect:false,useDefault:false,hasChanged:D};Symbol.metadata??=Symbol("metadata"),q.litPropertyMetadata??=new WeakMap;var v=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Tt){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&&Ce(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){let{get:n,set:s}=Oe(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)??Tt}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;let t=Le(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(U("properties"))){let e=this.properties,r=[...Fe(e),...Ue(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(st(n))}else t!==void 0&&e.push(st(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 wt(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:L).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:L;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??D)(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){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[U("elementProperties")]=new Map,v[U("finalized")]=new Map,Me?.({ReactiveElement:v}),(q.reactiveElementVersions??=[]).push("2.1.2");var ht=globalThis,kt=o=>o,Y=ht.trustedTypes,At=Y?Y.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ft="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,Ut="?"+E,Ie=`<${Ut}>`,k=document,M=()=>k.createComment(""),I=o=>o===null||typeof o!="object"&&typeof o!="function",ut=Array.isArray,je=o=>ut(o)||typeof o?.[Symbol.iterator]=="function",it=`[
2
+ \f\r]`,N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_t=/-->/g,Rt=/>/g,$=RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Pt=/'/g,Ct=/"/g,Lt=/^(?:script|style|textarea|title)$/i,yt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),c=yt(1),br=yt(2),vr=yt(3),A=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Ot=new WeakMap,T=k.createTreeWalker(k,129);function Nt(o,t){if(!ut(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return At!==void 0?At.createHTML(t):t}var Ge=(o,t)=>{let e=o.length-1,r=[],n,s=t===2?"<svg>":t===3?"<math>":"",i=N;for(let l=0;l<e;l++){let a=o[l],m,u,y=-1,b=0;for(;b<a.length&&(i.lastIndex=b,u=i.exec(a),u!==null);)b=i.lastIndex,i===N?u[1]==="!--"?i=_t:u[1]!==void 0?i=Rt:u[2]!==void 0?(Lt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=$):u[3]!==void 0&&(i=$):i===$?u[0]===">"?(i=n??N,y=-1):u[1]===void 0?y=-2:(y=i.lastIndex-u[2].length,m=u[1],i=u[3]===void 0?$:u[3]==='"'?Ct:Pt):i===Ct||i===Pt?i=$:i===_t||i===Rt?i=N:(i=$,n=void 0);let S=i===$&&o[l+1].startsWith("/>")?" ":"";s+=i===N?a+Ie:y>=0?(r.push(m),a.slice(0,y)+Ft+a.slice(y)+E+S):a+E+(y===-2?l:S)}return[Nt(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},j=class o{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,i=0,l=t.length-1,a=this.parts,[m,u]=Ge(t,e);if(this.el=o.createElement(m,r),T.currentNode=this.el.content,e===2||e===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=T.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(Ft)){let b=u[i++],S=n.getAttribute(y).split(E),H=/([.?@])?(.*)/.exec(b);a.push({type:1,index:s,name:H[2],strings:S,ctor:H[1]==="."?dt:H[1]==="?"?lt:H[1]==="@"?ct:C}),n.removeAttribute(y)}else y.startsWith(E)&&(a.push({type:6,index:s}),n.removeAttribute(y));if(Lt.test(n.tagName)){let y=n.textContent.split(E),b=y.length-1;if(b>0){n.textContent=Y?Y.emptyScript:"";for(let S=0;S<b;S++)n.append(y[S],M()),T.nextNode(),a.push({type:2,index:++s});n.append(y[b],M())}}}else if(n.nodeType===8)if(n.data===Ut)a.push({type:2,index:s});else{let y=-1;for(;(y=n.data.indexOf(E,y+1))!==-1;)a.push({type:7,index:s}),y+=E.length-1}s++}}static createElement(t,e){let r=k.createElement("template");return r.innerHTML=t,r}};function P(o,t,e=o,r){if(t===A)return t;let n=r!==void 0?e._$Co?.[r]:e._$Cl,s=I(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=P(o,n._$AS(o,t.values),n,r)),t}var at=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??k).importNode(e,true);T.currentNode=n;let s=T.nextNode(),i=0,l=0,a=r[0];for(;a!==void 0;){if(i===a.index){let m;a.type===2?m=new G(s,s.nextSibling,this,t):a.type===1?m=new a.ctor(s,a.name,a.strings,this,t):a.type===6&&(m=new pt(s,this,t)),this._$AV.push(m),a=r[++l]}i!==a?.index&&(s=T.nextNode(),i++)}return T.currentNode=k,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++}},G=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=P(this,t,e),I(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==A&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):je(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&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.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=j.createElement(Nt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{let s=new at(n,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=Ot.get(t.strings);return e===void 0&&Ot.set(t.strings,e=new j(t)),e}k(t){ut(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(M()),this.O(M()),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=kt(t).nextSibling;kt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},C=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=P(this,t,e,0),i=!I(t)||t!==this._$AH&&t!==A,i&&(this._$AH=t);else{let l=t,a,m;for(t=s[0],a=0;a<s.length-1;a++)m=P(this,l[r+a],e,a),m===A&&(m=this._$AH[a]),i||=!I(m)||m!==this._$AH[a],m===d?t=d:t!==d&&(t+=(m??"")+s[a+1]),this._$AH[a]=m}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends C{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},lt=class extends C{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},ct=class extends C{constructor(t,e,r,n,s){super(t,e,r,n,s),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??d)===A)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)}},pt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}};var He=ht.litHtmlPolyfillSupport;He?.(j,G),(ht.litHtmlVersions??=[]).push("3.3.3");var Mt=(o,t,e)=>{let r=e?.renderBefore??t,n=r._$litPart$;if(n===void 0){let s=e?.renderBefore??null;r._$litPart$=n=new G(t.insertBefore(M(),s),s,void 0,e??{})}return n._$AI(o),n};var mt=globalThis,w=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Mt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return A}};w._$litElement$=true,w.finalized=true,mt.litElementHydrateSupport?.({LitElement:w});var Ke=mt.litElementPolyfillSupport;Ke?.({LitElement:w});(mt.litElementVersions??=[]).push("4.2.2");var It=[{endpoint:"angel-numbers/numbers/{number}",method:"GET"},{endpoint:"angel-numbers/daily",method:"POST"}];var ze=[{key:"spiritual",source:"Spiritual"},{key:"love",source:"Love"},{key:"career",source:"Career"},{key:"money",source:"Money"},{key:"twinFlame",source:"Twin flame"}];function jt(o,t,e,r){let n=[];if(t)for(let s of ze){let i=t[s.key];i&&n.push({label:o(s.source),body:i})}return e&&n.push({label:o("Biblical"),body:e}),r&&n.push({label:o("Shadow"),body:r}),n}var Be={attribute:true,type:String,converter:L,reflect:false,hasChanged:D},qe=(o=Be,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 g(o){return(t,e)=>typeof e=="object"?qe(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 x(o){return g({...o,state:true,attribute:false})}var _=o=>o??d;var Gt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function ft(o){if(o.lang)return o.lang;if(typeof document>"u")return;let t=o.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var De={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function gt(o,t){let e=o.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function Ht(o,t=Gt){let e=ft(o);if(!e)return;let r=gt(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")??De[n[1]??""];return i?gt(`zh-${i}`,t):void 0}return gt(s,t)}var Bt="symbols";var Ye={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},xt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Kt='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',zt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',J={"fraunces-jost":{name:"Fraunces with Jost",sans:xt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:xt,display:xt},geist:{name:"Geist",sans:Kt,display:Kt},system:{name:"System",sans:zt,display:zt}};function qt(o){let{sans:t,display:e}=J[o];return Object.keys(Ye).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var Dt="1.6.2";var Ve=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,Je=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Yt(o,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(Ve.exec(e.pathname)??Je.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 Qe={},We="color-mix(in oklab, var(--roxy-accent) 70%, black)",Xe="var(--roxy-accent)",Ze="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Vt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Jt(o){return o!==void 0&&Object.hasOwn(J,o)}function Wt(o){let t=[];return o.brandColor&&Vt.test(o.brandColor)&&t.push(`--roxy-primary:${o.brandColor}`),o.brandAccent&&Vt.test(o.brandAccent)&&t.push(`--roxy-accent:${o.brandAccent}`,`--roxy-accent-ink:light-dark(${We},${Xe})`,`--roxy-ring:${Ze}`),t.join(";")}function Xt(o,t){if(Jt(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 m=globalThis.getComputedStyle(o),u=y=>m.getPropertyValue(y).trim();i=u("--roxy-font-sans"),l=u("--roxy-font-display"),a=u("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||l))return Jt(a)?a:void 0}function Zt(o){let{sans:t,display:e}=J[o];return`--roxy-font:${o};--roxy-font-sans:${t};--roxy-font-display:${e}`}var Qt=Yt(Dt,globalThis.document?.currentScript?.src||Qe.url);function te(o,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${o}`;if(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)}function ee(o,t=Qt){qt(o).length>0&&te(o,t)}function re(o=Qt){te(Bt,o)}var oe='@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 W="roxy-ui-tokens";function X(){if(typeof document>"u")return null;let o=document.getElementById(W);if(o)return o;let t=document.createElement("style");return t.id=W,t.textContent=oe,document.head.prepend(t),t}function ne(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}var se="__ROXY_UI_I18N__";function ie(){let o=globalThis,t=o[se];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[se]=e,e}function tr(o,t){return t?o.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):o}function ae(o,t,e){return tr(er(o,t)??t,e)}function er(o,t){if(!o)return;let{catalogs:e}=ie(),r=o.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[ne(t)]}function de(o){let{listeners:t}=ie();return t.add(o),()=>{t.delete(o)}}var Z=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=de(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var Q=class extends w{constructor(){super();this.translator=(e,r)=>this.t(e,r);new Z(this)}connectedCallback(){super.connectedCallback(),X()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&re()}fontDeclarations(e){let r=Xt(this,e);return r?(ee(r),Zt(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?c`<style>:host{${e}}</style>`:d}t(e,r){return ae(this.effectiveLang(),e,r)}effectiveLang(){return ft(this)}};var le=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function ce(o){return o?c`<span class="roxy-glyph" aria-hidden="true">${o}</span>`:d}var pe=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var rr=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,tt=[rr,pe,le];var or="__cols",nr="__rows";function sr(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function et(o){if(Array.isArray(o)){let s=false,i=o.map(l=>{let a=et(l);return a!==l&&(s=true),a});return s?i:o}if(!sr(o))return o;let t=o[or],e=o[nr];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]=et(s[a])}),i});let r=false,n={};for(let[s,i]of Object.entries(o)){let l=et(i);l!==i&&(r=true),n[s]=l}return r?n:o}function he(o){return et(o)}function ue(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",ye={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 me(o){if(o)return o===ir?ye.sample:o.startsWith("pk_")?void 0:ye.secret}function ge(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 ar(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 xe={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.")}}},O=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 be(o){return o.submitUrl?void 0:me(o.publishableKey)}async function bt(o,t,e){let r=be(o);if(r)throw new O(r.message);let n=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:dr(t,o.submitContext),signal:e}):await lr(o,t,e);if(!n.ok){let s=await ar(n);throw new O(s.message,s.issues,s.worded,n.status,s.code)}return await n.json()}function dr(o,t){return JSON.stringify(t?{...o,context:t}:o)}function lr(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 rt=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=be(this);if(e){this.host.error=e.message,ge(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let n=await bt(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 O&&(this.host.issues=n.issues,this.failure={status:n.status,code:n.code}),this.worded=n instanceof O&&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 ve(o,t,e,r=[]){let n={...e},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(m,u)=>{let y=n[u];return delete n[u],encodeURIComponent(String(y??""))}),i=new Set(r),l={},a={};for(let[m,u]of Object.entries(n))u===void 0||u===""||(t==="GET"||i.has(m)?l[m]=u:a[m]=u);return{path:s,method:t,query:l,body:t==="POST"?a:void 0}}function Se(){return c`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var Zo=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Ee=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function we(o,t,e){let r=o.filter(n=>!!n.body);return r.length===0?d:c`<section class="block" part="section readings"><h3>${e}</h3>${r.map((n,s)=>c`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${ce(n.glyph)} ${n.label}</span> ${Se()} ${n.aside?c`<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 cr="roxy-data";function pr(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var ot=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){if(this.host.data!=null)return;let t=this.read();t!==void 0&&(this.host.data=t,this.host.requestUpdate())}read(){let t=this.findInlineScript();return t?this.parse(t.textContent):void 0}findInlineScript(){for(let t of Array.from(this.host.children))if(pr(t)&&t.classList.contains(cr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends Q{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 bt(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(ve(r.endpoint,r.method,{...n.values,...this.ownRequest()},n.queryKeys??[]))};new ot(this),this.fetcher=new rt(this)}static{this.styles=[tt]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=he(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:ue(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return c`${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")?c`<roxy-data .data="${e}" lang="${_(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=[Wt(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 c`<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()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,n){return this.hideReadings?d:we(e,r,this.t(n??"Reading"))}renderResult(e){let r=c`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?c`${r}${this.renderAttribution()}`:r}renderWithForm(e){return c`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?d:this.renderErrorBanner(this.error):this.data==null?d:this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?d:e.length>=r?d:c`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?c`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:d}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let 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:Ht(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return c`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(d):this.renderEmpty()}renderForm(){let e=this.selfFetch();return c`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${_(this.specUrl)}" publishable-key="${_(this.publishableKey)}" location-url="${_(this.locationUrl)}" submit-label="${_(this.submitLabel)}" lang="${_(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return c`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return c`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let n=this.renderErrorBanner(e);return r?c`${n}${this.renderForm()}`:n}renderErrorBanner(e){return c`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};h([g({attribute:false})],p.prototype,"data",2),h([g({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([g({type:String})],p.prototype,"method",2),h([g({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([g({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([g({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([g({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([g({attribute:"submit-context",converter:xe})],p.prototype,"submitContext",2),h([g({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([g({type:Boolean})],p.prototype,"remember",2),h([g({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([g({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([g({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([g({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([g({type:String})],p.prototype,"font",2),h([g({type:String})],p.prototype,"hemisphere",2),h([g({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([g({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([g({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var $e=o=>t=>{customElements.get(o)||customElements.define(o,t)};var hr={positive:"success",cautionary:"danger",neutral:"info"},R=class extends p{renderData(t){let e=(t.energy??"").toLowerCase(),r=t.keywords??[],n=t.actionSteps??[];return c`<article class="card" part="card" aria-label="${`${this.t("Angel number")} ${t.number??""}`}"><div class="hero" part="header">${t.number?c`<div class="numeral">${t.number}</div>`:d}<div><p class="roxy-label">${this.t("Angel number")}</p>${t.title?c`<h2>${t.title}</h2>`:d}</div></div>${t.coreMessage&&!this.hideReadings?c`<p>${t.coreMessage}</p>`:d}<ul class="badges roxy-chips" part="details">${t.type?c`<li>${t.type}</li>`:d} ${typeof t.digitRoot=="number"?c`<li>${this.t("Digit root")} ${t.digitRoot}</li>`:d} ${t.energy?c`<li class="roxy-chip" data-tone="${hr[e]??d}">${t.energy}</li>`:d}</ul>${r.length>0&&!this.hideReadings?c`<ul class="roxy-chips">${r.map(s=>c`<li>${s}</li>`)}</ul>`:d} ${this.renderSections(t)} ${t.affirmation&&!this.hideReadings?c`<p class="affirmation">${t.affirmation}</p>`:d} ${n.length>0&&!this.hideReadings?c`<div class="steps" part="section action-steps"><h3>${this.t("Action steps")}</h3><ul>${n.map(s=>c`<li>${s}</li>`)}</ul></div>`:d}</article>`}renderSections(t){return this.renderInterpretation(jt(this.translator,t.meaning,t.biblical,t.shadow),"angel-meaning","Reading")}};R.endpoints=It,R.styles=[tt,Ee,f`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.numeral{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;flex-shrink:0;line-height:1}.hero>div:not(.numeral){min-width:0}@container (width<=24rem){.hero{justify-items:start;gap:var(--roxy-space-sm);grid-template-columns:minmax(0,1fr);display:grid}}.badges>li{text-transform:capitalize}.affirmation{border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);padding-inline-start:var(--roxy-space-md);font-style:italic}.steps h3{margin-block-end:var(--roxy-space-xs)}.steps ul{gap:calc(var(--roxy-space-unit) / 2);font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}`],R=h([$e("roxy-angel-number-card")],R);return Re(ur)})();
@@ -1,50 +1,3 @@
1
1
  var RoxyUI_angel_number_lookup=(()=>{var K=Object.defineProperty;var vt=Object.getOwnPropertyDescriptor;var ke=Object.getOwnPropertyNames;var _e=Object.prototype.hasOwnProperty;var Ae=(o,t)=>{for(var e in t)K(o,e,{get:t[e],enumerable:true})},Re=(o,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ke(t))!_e.call(o,n)&&n!==e&&K(o,n,{get:()=>t[n],enumerable:!(r=vt(t,n))||r.enumerable});return o};var Pe=o=>Re(K({},"__esModule",{value:true}),o),h=(o,t,e,r)=>{for(var n=r>1?void 0:r?vt(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&&K(t,e,n),n};var mr={};Ae(mr,{ROXY_UI_TOKENS_STYLE_ID:()=>J,RoxyAngelNumberLookup:()=>R,injectRoxyTokens:()=>X});var z=globalThis,q=z.ShadowRoot&&(z.ShadyCSS===void 0||z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nt=Symbol(),St=new WeakMap,F=class{constructor(t,e,r){if(this._$cssResult$=true,r!==nt)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=St.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&St.set(e,t))}return t}toString(){return this.cssText}},Et=o=>new F(typeof o=="string"?o:o+"",void 0,nt),f=(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 F(e,o,nt)},wt=(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)}},st=q?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Et(e)})(o):o;var{is:Ce,defineProperty:Oe,getOwnPropertyDescriptor:Fe,getOwnPropertyNames:Ue,getOwnPropertySymbols:Le,getPrototypeOf:Ne}=Object,B=globalThis,$t=B.trustedTypes,Me=$t?$t.emptyScript:"",je=B.reactiveElementPolyfillSupport,U=(o,t)=>o,L={toAttribute(o,t){switch(t){case Boolean:o=o?Me: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}},D=(o,t)=>!Ce(o,t),Tt={attribute:true,type:String,converter:L,reflect:false,useDefault:false,hasChanged:D};Symbol.metadata??=Symbol("metadata"),B.litPropertyMetadata??=new WeakMap;var v=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Tt){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&&Oe(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){let{get:n,set:s}=Fe(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let c=n?.call(this);s?.call(this,i),this.requestUpdate(t,c,r)},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??Tt}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;let t=Ne(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(U("properties"))){let e=this.properties,r=[...Ue(e),...Le(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(st(n))}else t!==void 0&&e.push(st(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 wt(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:L).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:L;this._$Em=n;let c=i.fromAttribute(e,s.type);this[n]=c??this._$Ej?.get(n)??c,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??D)(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,c=this[n];i!==true||this._$AL.has(n)||c===void 0||this.C(n,void 0,s,c)}}let t=false,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(e)):this._$EM()}catch(r){throw t=false,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=false}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[U("elementProperties")]=new Map,v[U("finalized")]=new Map,je?.({ReactiveElement:v}),(B.reactiveElementVersions??=[]).push("2.1.2");var ht=globalThis,kt=o=>o,Y=ht.trustedTypes,_t=Y?Y.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ft="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,Ut="?"+E,Ie=`<${Ut}>`,k=document,M=()=>k.createComment(""),j=o=>o===null||typeof o!="object"&&typeof o!="function",ut=Array.isArray,He=o=>ut(o)||typeof o?.[Symbol.iterator]=="function",it=`[
2
2
  \f\r]`,N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,At=/-->/g,Rt=/>/g,$=RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Pt=/'/g,Ct=/"/g,Lt=/^(?:script|style|textarea|title)$/i,yt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),d=yt(1),Sr=yt(2),Er=yt(3),_=Symbol.for("lit-noChange"),a=Symbol.for("lit-nothing"),Ot=new WeakMap,T=k.createTreeWalker(k,129);function Nt(o,t){if(!ut(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return _t!==void 0?_t.createHTML(t):t}var Ge=(o,t)=>{let e=o.length-1,r=[],n,s=t===2?"<svg>":t===3?"<math>":"",i=N;for(let c=0;c<e;c++){let l=o[c],m,u,y=-1,b=0;for(;b<l.length&&(i.lastIndex=b,u=i.exec(l),u!==null);)b=i.lastIndex,i===N?u[1]==="!--"?i=At:u[1]!==void 0?i=Rt:u[2]!==void 0?(Lt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=$):u[3]!==void 0&&(i=$):i===$?u[0]===">"?(i=n??N,y=-1):u[1]===void 0?y=-2:(y=i.lastIndex-u[2].length,m=u[1],i=u[3]===void 0?$:u[3]==='"'?Ct:Pt):i===Ct||i===Pt?i=$:i===At||i===Rt?i=N:(i=$,n=void 0);let S=i===$&&o[c+1].startsWith("/>")?" ":"";s+=i===N?l+Ie:y>=0?(r.push(m),l.slice(0,y)+Ft+l.slice(y)+E+S):l+E+(y===-2?c:S)}return[Nt(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},I=class o{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,i=0,c=t.length-1,l=this.parts,[m,u]=Ge(t,e);if(this.el=o.createElement(m,r),T.currentNode=this.el.content,e===2||e===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=T.nextNode())!==null&&l.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(Ft)){let b=u[i++],S=n.getAttribute(y).split(E),G=/([.?@])?(.*)/.exec(b);l.push({type:1,index:s,name:G[2],strings:S,ctor:G[1]==="."?dt:G[1]==="?"?lt:G[1]==="@"?ct:C}),n.removeAttribute(y)}else y.startsWith(E)&&(l.push({type:6,index:s}),n.removeAttribute(y));if(Lt.test(n.tagName)){let y=n.textContent.split(E),b=y.length-1;if(b>0){n.textContent=Y?Y.emptyScript:"";for(let S=0;S<b;S++)n.append(y[S],M()),T.nextNode(),l.push({type:2,index:++s});n.append(y[b],M())}}}else if(n.nodeType===8)if(n.data===Ut)l.push({type:2,index:s});else{let y=-1;for(;(y=n.data.indexOf(E,y+1))!==-1;)l.push({type:7,index:s}),y+=E.length-1}s++}}static createElement(t,e){let r=k.createElement("template");return r.innerHTML=t,r}};function P(o,t,e=o,r){if(t===_)return t;let n=r!==void 0?e._$Co?.[r]:e._$Cl,s=j(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=P(o,n._$AS(o,t.values),n,r)),t}var at=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??k).importNode(e,true);T.currentNode=n;let s=T.nextNode(),i=0,c=0,l=r[0];for(;l!==void 0;){if(i===l.index){let m;l.type===2?m=new H(s,s.nextSibling,this,t):l.type===1?m=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(m=new pt(s,this,t)),this._$AV.push(m),l=r[++c]}i!==l?.index&&(s=T.nextNode(),i++)}return T.currentNode=k,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++}},H=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=a,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=P(this,t,e),j(t)?t===a||t==null||t===""?(this._$AH!==a&&this._$AR(),this._$AH=a):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):He(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==a&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.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=I.createElement(Nt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{let s=new at(n,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=Ot.get(t.strings);return e===void 0&&Ot.set(t.strings,e=new I(t)),e}k(t){ut(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(M()),this.O(M()),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=kt(t).nextSibling;kt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},C=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,s){this.type=1,this._$AH=a,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=a}_$AI(t,e=this,r,n){let s=this.strings,i=false;if(s===void 0)t=P(this,t,e,0),i=!j(t)||t!==this._$AH&&t!==_,i&&(this._$AH=t);else{let c=t,l,m;for(t=s[0],l=0;l<s.length-1;l++)m=P(this,c[r+l],e,l),m===_&&(m=this._$AH[l]),i||=!j(m)||m!==this._$AH[l],m===a?t=a:t!==a&&(t+=(m??"")+s[l+1]),this._$AH[l]=m}i&&!n&&this.j(t)}j(t){t===a?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends C{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===a?void 0:t}},lt=class extends C{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==a)}},ct=class extends C{constructor(t,e,r,n,s){super(t,e,r,n,s),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??a)===_)return;let r=this._$AH,n=t===a&&r!==a||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==a&&(r===a||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)}},pt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}};var Ke=ht.litHtmlPolyfillSupport;Ke?.(I,H),(ht.litHtmlVersions??=[]).push("3.3.3");var Mt=(o,t,e)=>{let r=e?.renderBefore??t,n=r._$litPart$;if(n===void 0){let s=e?.renderBefore??null;r._$litPart$=n=new H(t.insertBefore(M(),s),s,void 0,e??{})}return n._$AI(o),n};var mt=globalThis,w=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Mt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};w._$litElement$=true,w.finalized=true,mt.litElementHydrateSupport?.({LitElement:w});var ze=mt.litElementPolyfillSupport;ze?.({LitElement:w});(mt.litElementVersions??=[]).push("4.2.2");var jt=[{endpoint:"angel-numbers/lookup",method:"GET"}];var qe=[{key:"spiritual",source:"Spiritual"},{key:"love",source:"Love"},{key:"career",source:"Career"},{key:"money",source:"Money"},{key:"twinFlame",source:"Twin flame"}];function It(o,t,e,r){let n=[];if(t)for(let s of qe){let i=t[s.key];i&&n.push({label:o(s.source),body:i})}return e&&n.push({label:o("Biblical"),body:e}),r&&n.push({label:o("Shadow"),body:r}),n}var Be={attribute:true,type:String,converter:L,reflect:false,hasChanged:D},De=(o=Be,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(c){let l=t.get.call(this);t.set.call(this,c),this.requestUpdate(i,l,o,true,c)},init(c){return c!==void 0&&this.C(i,void 0,o,c),c}}}if(r==="setter"){let{name:i}=e;return function(c){let l=this[i];t.call(this,c),this.requestUpdate(i,l,o,true,c)}}throw Error("Unsupported decorator location: "+r)};function g(o){return(t,e)=>typeof e=="object"?De(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 x(o){return g({...o,state:true,attribute:false})}var A=o=>o??a;var Ht=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function ft(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 Ye={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function gt(o,t){let e=o.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function Gt(o,t=Ht){let e=ft(o);if(!e)return;let r=gt(e,t);if(r)return r;let n=e.toLowerCase().split("-"),s=n[0];if(s==="zh"){let i=n.find(c=>c==="hans"||c==="hant")??Ye[n[1]??""];return i?gt(`zh-${i}`,t):void 0}return gt(s,t)}var qt="symbols";var Ve={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},xt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Kt='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',zt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',W={"fraunces-jost":{name:"Fraunces with Jost",sans:xt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:xt,display:xt},geist:{name:"Geist",sans:Kt,display:Kt},system:{name:"System",sans:zt,display:zt}};function Bt(o){let{sans:t,display:e}=W[o];return Object.keys(Ve).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var Dt="1.6.1";var We=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,Je=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Yt(o,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(We.exec(e.pathname)??Je.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 tr={},Xe="color-mix(in oklab, var(--roxy-accent) 70%, black)",Ze="var(--roxy-accent)",Qe="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Vt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Wt(o){return o!==void 0&&Object.hasOwn(W,o)}function Jt(o){let t=[];return o.brandColor&&Vt.test(o.brandColor)&&t.push(`--roxy-primary:${o.brandColor}`),o.brandAccent&&Vt.test(o.brandAccent)&&t.push(`--roxy-accent:${o.brandAccent}`,`--roxy-accent-ink:light-dark(${Xe},${Ze})`,`--roxy-ring:${Qe}`),t.join(";")}function Xt(o,t){if(Wt(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,c,l;try{let m=globalThis.getComputedStyle(o),u=y=>m.getPropertyValue(y).trim();i=u("--roxy-font-sans"),c=u("--roxy-font-display"),l=u("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||c))return Wt(l)?l:void 0}function Zt(o){let{sans:t,display:e}=W[o];return`--roxy-font:${o};--roxy-font-sans:${t};--roxy-font-display:${e}`}var Qt=Yt(Dt,globalThis.document?.currentScript?.src||tr.url);function te(o,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${o}`;if(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)}function ee(o,t=Qt){Bt(o).length>0&&te(o,t)}function re(o=Qt){te(qt,o)}var oe='@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 J="roxy-ui-tokens";function X(){if(typeof document>"u")return null;let o=document.getElementById(J);if(o)return o;let t=document.createElement("style");return t.id=J,t.textContent=oe,document.head.prepend(t),t}function ne(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}var se="__ROXY_UI_I18N__";function ie(){let o=globalThis,t=o[se];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[se]=e,e}function er(o,t){return t?o.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):o}function ae(o,t,e){return er(rr(o,t)??t,e)}function rr(o,t){if(!o)return;let{catalogs:e}=ie(),r=o.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[ne(t)]}function de(o){let{listeners:t}=ie();return t.add(o),()=>{t.delete(o)}}var Z=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=de(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var Q=class extends w{constructor(){super();this.translator=(e,r)=>this.t(e,r);new Z(this)}connectedCallback(){super.connectedCallback(),X()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&re()}fontDeclarations(e){let r=Xt(this,e);return r?(ee(r),Zt(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?d`<style>:host{${e}}</style>`:a}t(e,r){return ae(this.effectiveLang(),e,r)}effectiveLang(){return ft(this)}};var le=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function ce(o){return o?d`<span class="roxy-glyph" aria-hidden="true">${o}</span>`:a}var pe=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var or=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,tt=[or,pe,le];var nr="__cols",sr="__rows";function ir(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function et(o){if(Array.isArray(o)){let s=false,i=o.map(c=>{let l=et(c);return l!==c&&(s=true),l});return s?i:o}if(!ir(o))return o;let t=o[nr],e=o[sr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(o).length===2)return e.map(s=>{let i={};return t.forEach((c,l)=>{i[c]=et(s[l])}),i});let r=false,n={};for(let[s,i]of Object.entries(o)){let c=et(i);c!==i&&(r=true),n[s]=c}return r?n:o}function he(o){return et(o)}function ue(o,t){return o.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,n])=>t[r]===n))??o[0]}var ar="pk_live_YOUR_KEY",ye={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 me(o){if(o)return o===ar?ye.sample:o.startsWith("pk_")?void 0:ye.secret}function ge(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 dr(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 xe={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.")}}},O=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 be(o){return o.submitUrl?void 0:me(o.publishableKey)}async function bt(o,t,e){let r=be(o);if(r)throw new O(r.message);let n=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:lr(t,o.submitContext),signal:e}):await cr(o,t,e);if(!n.ok){let s=await dr(n);throw new O(s.message,s.issues,s.worded,n.status,s.code)}return await n.json()}function lr(o,t){return JSON.stringify(t?{...o,context:t}:o)}function cr(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 rt=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=be(this);if(e){this.host.error=e.message,ge(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let n=await bt(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 O&&(this.host.issues=n.issues,this.failure={status:n.status,code:n.code}),this.worded=n instanceof O&&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 ve(o,t,e,r=[]){let n={...e},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(m,u)=>{let y=n[u];return delete n[u],encodeURIComponent(String(y??""))}),i=new Set(r),c={},l={};for(let[m,u]of Object.entries(n))u===void 0||u===""||(t==="GET"||i.has(m)?c[m]=u:l[m]=u);return{path:s,method:t,query:c,body:t==="POST"?l:void 0}}function Se(){return d`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var Ee=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var we=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function $e(o,t,e){let r=o.filter(n=>!!n.body);return r.length===0?a:d`<section class="block" part="section readings"><h3>${e}</h3>${r.map((n,s)=>d`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${ce(n.glyph)} ${n.label}</span> ${Se()} ${n.aside?d`<span class="interp-aside"><small>${n.aside}</small></span>`:a}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??a}</div></details>`)}</section>`}var pr="roxy-data";function hr(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var ot=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){if(this.host.data!=null)return;let t=this.read();t!==void 0&&(this.host.data=t,this.host.requestUpdate())}read(){let t=this.findInlineScript();return t?this.parse(t.textContent):void 0}findInlineScript(){for(let t of Array.from(this.host.children))if(hr(t)&&t.classList.contains(pr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends Q{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 bt(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(ve(r.endpoint,r.method,{...n.values,...this.ownRequest()},n.queryKeys??[]))};new ot(this),this.fetcher=new rt(this)}static{this.styles=[tt]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=he(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:ue(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return d`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:true,composed:true})),customElements.get("roxy-data")?d`<roxy-data .data="${e}" lang="${A(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=[Jt(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return a;let n=(r?`:host{${r}}`:"")+e.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){display:none!important}`).join("");return d`<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()?d`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,n){return this.hideReadings?a:$e(e,r,this.t(n??"Reading"))}renderResult(e){let r=d`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?d`${r}${this.renderAttribution()}`:r}renderWithForm(e){return d`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?a:this.renderErrorBanner(this.error):this.data==null?a:this.showAttribution()?d`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?a:e.length>=r?a:d`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?d`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:a}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let 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:Gt(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return d`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(a):this.renderEmpty()}renderForm(){let e=this.selfFetch();return d`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${A(this.specUrl)}" publishable-key="${A(this.publishableKey)}" location-url="${A(this.locationUrl)}" submit-label="${A(this.submitLabel)}" lang="${A(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return d`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return d`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let n=this.renderErrorBanner(e);return r?d`${n}${this.renderForm()}`:n}renderErrorBanner(e){return d`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};h([g({attribute:false})],p.prototype,"data",2),h([g({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([g({type:String})],p.prototype,"method",2),h([g({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([g({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([g({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([g({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([g({attribute:"submit-context",converter:xe})],p.prototype,"submitContext",2),h([g({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([g({type:Boolean})],p.prototype,"remember",2),h([g({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([g({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([g({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([g({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([g({type:String})],p.prototype,"font",2),h([g({type:String})],p.prototype,"hemisphere",2),h([g({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([g({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([g({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var Te=o=>t=>{customElements.get(o)||customElements.define(o,t)};var ur={positive:"Positive energy",neutral:"Neutral energy",cautionary:"Cautionary energy"},yr={positive:"success",cautionary:"warning"},R=class extends p{renderData(t){let e=t.knownMeaning,r=t.digitRootMeaning,n=e?.title??this.t("Number analysis"),s=e?.actionSteps??[];return d`<article class="card" part="card" aria-label="${this.t("Angel number {{number}}",{number:t.number??""})}"><div class="hero" part="header">${t.number?d`<div class="numeral">${t.number}</div>`:a}<div>${e?.title?d`<p class="roxy-label">${this.t("Number analysis")}</p>`:a}<h2>${n}</h2></div></div><ul class="badges roxy-chips" part="details">${t.type?d`<li>${t.type}</li>`:a} ${typeof t.digits=="number"?d`<li>${this.t("{{count}} digits",{count:t.digits})}</li>`:a} ${typeof t.uniqueDigits=="number"?d`<li>${this.t("{{count}} unique",{count:t.uniqueDigits})}</li>`:a} ${typeof t.digitRoot=="number"?d`<li>${this.t("Digit root {{n}}",{n:t.digitRoot})}</li>`:a} ${t.isPalindrome?d`<li class="roxy-chip" data-tone="info">${this.t("Palindrome")}</li>`:a} ${t.isRepeating?d`<li class="roxy-chip" data-tone="info">${this.t("Repeating")}</li>`:a} ${e?.energy?d`<li class="roxy-chip" data-tone="${yr[e.energy]??a}">${this.t(ur[e.energy]??"Neutral energy")}</li>`:a}</ul>${t.contextNote?d`<div class="context" part="section context"><p class="roxy-label">${this.t("Where you saw it")}</p><p>${t.contextNote}</p></div>`:a} ${e&&!this.hideReadings?d`<div class="section" part="section known-meaning"><p class="roxy-label">${this.t("Known angel number")}</p>${e.coreMessage?d`<p>${e.coreMessage}</p>`:a} ${e.keywords&&e.keywords.length>0?d`<ul class="roxy-chips">${e.keywords.map(i=>d`<li>${i}</li>`)}</ul>`:a} ${this.renderMeaning(e.meaning,"lookup-known",e.biblical,e.shadow)} ${e.affirmation?d`<p><em>${e.affirmation}</em></p>`:a} ${s.length>0?d`<p class="roxy-label">${this.t("What to do next")}</p><ol class="steps">${s.map(i=>d`<li>${i}</li>`)}</ol>`:a}</div>`:a} ${r&&!this.hideReadings?d`<div class="section" part="section digit-root"><p class="roxy-label">${r.number?this.t("Foundational digit root ({{n}})",{n:r.number}):this.t("Foundational digit root")}</p>${r.title?d`<h3>${r.title}</h3>`:a} ${r.coreMessage?d`<p>${r.coreMessage}</p>`:a} ${e?a:this.renderRootMeaning(r)}</div>`:a}</article>`}renderMeaning(t,e,r,n){return this.renderInterpretation(It(this.translator,t,r,n),e,"Reading")}renderRootMeaning(t){return d`${t.keywords&&t.keywords.length>0?d`<ul class="roxy-chips">${t.keywords.map(e=>d`<li>${e}</li>`)}</ul>`:a}${this.renderMeaning(t.meaning,"lookup-root")}${t.affirmation?d`<p><em>${t.affirmation}</em></p>`:a}`}};R.endpoints=jt,R.styles=[tt,Ee,we,f`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.numeral{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;flex-shrink:0;line-height:1}.hero>div:not(.numeral){min-width:0}@container (width<=24rem){.hero{justify-items:start;gap:var(--roxy-space-sm);grid-template-columns:minmax(0,1fr);display:grid}}.badges>li{text-transform:capitalize}.context{gap:var(--roxy-space-xs);border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);padding-inline-start:var(--roxy-space-md);display:grid}.steps{gap:var(--roxy-space-xs);font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}.section{gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md);display:grid}.section p{font-size:var(--roxy-text-sm)}`],R=h([Te("roxy-angel-number-lookup")],R);return Pe(mr)})();/*! Bundled license information:
4
-
5
- @lit/reactive-element/css-tag.js:
6
- (**
7
- * @license
8
- * Copyright 2019 Google LLC
9
- * SPDX-License-Identifier: BSD-3-Clause
10
- *)
11
-
12
- @lit/reactive-element/reactive-element.js:
13
- lit-html/lit-html.js:
14
- lit-element/lit-element.js:
15
- @lit/reactive-element/decorators/custom-element.js:
16
- @lit/reactive-element/decorators/property.js:
17
- @lit/reactive-element/decorators/state.js:
18
- @lit/reactive-element/decorators/event-options.js:
19
- @lit/reactive-element/decorators/base.js:
20
- @lit/reactive-element/decorators/query.js:
21
- @lit/reactive-element/decorators/query-all.js:
22
- @lit/reactive-element/decorators/query-async.js:
23
- @lit/reactive-element/decorators/query-assigned-nodes.js:
24
- (**
25
- * @license
26
- * Copyright 2017 Google LLC
27
- * SPDX-License-Identifier: BSD-3-Clause
28
- *)
29
-
30
- lit-html/is-server.js:
31
- (**
32
- * @license
33
- * Copyright 2022 Google LLC
34
- * SPDX-License-Identifier: BSD-3-Clause
35
- *)
36
-
37
- @lit/reactive-element/decorators/query-assigned-elements.js:
38
- (**
39
- * @license
40
- * Copyright 2021 Google LLC
41
- * SPDX-License-Identifier: BSD-3-Clause
42
- *)
43
-
44
- lit-html/directives/if-defined.js:
45
- (**
46
- * @license
47
- * Copyright 2018 Google LLC
48
- * SPDX-License-Identifier: BSD-3-Clause
49
- *)
50
- */
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Pt=/'/g,Ct=/"/g,Lt=/^(?:script|style|textarea|title)$/i,yt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),d=yt(1),Sr=yt(2),Er=yt(3),_=Symbol.for("lit-noChange"),a=Symbol.for("lit-nothing"),Ot=new WeakMap,T=k.createTreeWalker(k,129);function Nt(o,t){if(!ut(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return _t!==void 0?_t.createHTML(t):t}var Ge=(o,t)=>{let e=o.length-1,r=[],n,s=t===2?"<svg>":t===3?"<math>":"",i=N;for(let c=0;c<e;c++){let l=o[c],m,u,y=-1,b=0;for(;b<l.length&&(i.lastIndex=b,u=i.exec(l),u!==null);)b=i.lastIndex,i===N?u[1]==="!--"?i=At:u[1]!==void 0?i=Rt:u[2]!==void 0?(Lt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=$):u[3]!==void 0&&(i=$):i===$?u[0]===">"?(i=n??N,y=-1):u[1]===void 0?y=-2:(y=i.lastIndex-u[2].length,m=u[1],i=u[3]===void 0?$:u[3]==='"'?Ct:Pt):i===Ct||i===Pt?i=$:i===At||i===Rt?i=N:(i=$,n=void 0);let S=i===$&&o[c+1].startsWith("/>")?" ":"";s+=i===N?l+Ie:y>=0?(r.push(m),l.slice(0,y)+Ft+l.slice(y)+E+S):l+E+(y===-2?c:S)}return[Nt(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},I=class o{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,i=0,c=t.length-1,l=this.parts,[m,u]=Ge(t,e);if(this.el=o.createElement(m,r),T.currentNode=this.el.content,e===2||e===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=T.nextNode())!==null&&l.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(Ft)){let b=u[i++],S=n.getAttribute(y).split(E),G=/([.?@])?(.*)/.exec(b);l.push({type:1,index:s,name:G[2],strings:S,ctor:G[1]==="."?dt:G[1]==="?"?lt:G[1]==="@"?ct:C}),n.removeAttribute(y)}else y.startsWith(E)&&(l.push({type:6,index:s}),n.removeAttribute(y));if(Lt.test(n.tagName)){let y=n.textContent.split(E),b=y.length-1;if(b>0){n.textContent=Y?Y.emptyScript:"";for(let S=0;S<b;S++)n.append(y[S],M()),T.nextNode(),l.push({type:2,index:++s});n.append(y[b],M())}}}else if(n.nodeType===8)if(n.data===Ut)l.push({type:2,index:s});else{let y=-1;for(;(y=n.data.indexOf(E,y+1))!==-1;)l.push({type:7,index:s}),y+=E.length-1}s++}}static createElement(t,e){let r=k.createElement("template");return r.innerHTML=t,r}};function P(o,t,e=o,r){if(t===_)return t;let n=r!==void 0?e._$Co?.[r]:e._$Cl,s=j(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=P(o,n._$AS(o,t.values),n,r)),t}var at=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??k).importNode(e,true);T.currentNode=n;let s=T.nextNode(),i=0,c=0,l=r[0];for(;l!==void 0;){if(i===l.index){let m;l.type===2?m=new H(s,s.nextSibling,this,t):l.type===1?m=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(m=new pt(s,this,t)),this._$AV.push(m),l=r[++c]}i!==l?.index&&(s=T.nextNode(),i++)}return T.currentNode=k,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++}},H=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=a,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=P(this,t,e),j(t)?t===a||t==null||t===""?(this._$AH!==a&&this._$AR(),this._$AH=a):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):He(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==a&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.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=I.createElement(Nt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{let s=new at(n,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=Ot.get(t.strings);return e===void 0&&Ot.set(t.strings,e=new I(t)),e}k(t){ut(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(M()),this.O(M()),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=kt(t).nextSibling;kt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},C=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,s){this.type=1,this._$AH=a,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=a}_$AI(t,e=this,r,n){let s=this.strings,i=false;if(s===void 0)t=P(this,t,e,0),i=!j(t)||t!==this._$AH&&t!==_,i&&(this._$AH=t);else{let c=t,l,m;for(t=s[0],l=0;l<s.length-1;l++)m=P(this,c[r+l],e,l),m===_&&(m=this._$AH[l]),i||=!j(m)||m!==this._$AH[l],m===a?t=a:t!==a&&(t+=(m??"")+s[l+1]),this._$AH[l]=m}i&&!n&&this.j(t)}j(t){t===a?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends C{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===a?void 0:t}},lt=class extends C{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==a)}},ct=class extends C{constructor(t,e,r,n,s){super(t,e,r,n,s),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??a)===_)return;let r=this._$AH,n=t===a&&r!==a||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==a&&(r===a||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)}},pt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}};var Ke=ht.litHtmlPolyfillSupport;Ke?.(I,H),(ht.litHtmlVersions??=[]).push("3.3.3");var Mt=(o,t,e)=>{let r=e?.renderBefore??t,n=r._$litPart$;if(n===void 0){let s=e?.renderBefore??null;r._$litPart$=n=new H(t.insertBefore(M(),s),s,void 0,e??{})}return n._$AI(o),n};var mt=globalThis,w=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Mt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};w._$litElement$=true,w.finalized=true,mt.litElementHydrateSupport?.({LitElement:w});var ze=mt.litElementPolyfillSupport;ze?.({LitElement:w});(mt.litElementVersions??=[]).push("4.2.2");var jt=[{endpoint:"angel-numbers/lookup",method:"GET"}];var qe=[{key:"spiritual",source:"Spiritual"},{key:"love",source:"Love"},{key:"career",source:"Career"},{key:"money",source:"Money"},{key:"twinFlame",source:"Twin flame"}];function It(o,t,e,r){let n=[];if(t)for(let s of qe){let i=t[s.key];i&&n.push({label:o(s.source),body:i})}return e&&n.push({label:o("Biblical"),body:e}),r&&n.push({label:o("Shadow"),body:r}),n}var Be={attribute:true,type:String,converter:L,reflect:false,hasChanged:D},De=(o=Be,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(c){let l=t.get.call(this);t.set.call(this,c),this.requestUpdate(i,l,o,true,c)},init(c){return c!==void 0&&this.C(i,void 0,o,c),c}}}if(r==="setter"){let{name:i}=e;return function(c){let l=this[i];t.call(this,c),this.requestUpdate(i,l,o,true,c)}}throw Error("Unsupported decorator location: "+r)};function g(o){return(t,e)=>typeof e=="object"?De(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 x(o){return g({...o,state:true,attribute:false})}var A=o=>o??a;var Ht=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function ft(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 Ye={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function gt(o,t){let e=o.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function Gt(o,t=Ht){let e=ft(o);if(!e)return;let r=gt(e,t);if(r)return r;let n=e.toLowerCase().split("-"),s=n[0];if(s==="zh"){let i=n.find(c=>c==="hans"||c==="hant")??Ye[n[1]??""];return i?gt(`zh-${i}`,t):void 0}return gt(s,t)}var qt="symbols";var Ve={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},xt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Kt='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',zt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',W={"fraunces-jost":{name:"Fraunces with Jost",sans:xt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:xt,display:xt},geist:{name:"Geist",sans:Kt,display:Kt},system:{name:"System",sans:zt,display:zt}};function Bt(o){let{sans:t,display:e}=W[o];return Object.keys(Ve).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var Dt="1.6.2";var We=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,Je=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Yt(o,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(We.exec(e.pathname)??Je.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 tr={},Xe="color-mix(in oklab, var(--roxy-accent) 70%, black)",Ze="var(--roxy-accent)",Qe="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Vt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Wt(o){return o!==void 0&&Object.hasOwn(W,o)}function Jt(o){let t=[];return o.brandColor&&Vt.test(o.brandColor)&&t.push(`--roxy-primary:${o.brandColor}`),o.brandAccent&&Vt.test(o.brandAccent)&&t.push(`--roxy-accent:${o.brandAccent}`,`--roxy-accent-ink:light-dark(${Xe},${Ze})`,`--roxy-ring:${Qe}`),t.join(";")}function Xt(o,t){if(Wt(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,c,l;try{let m=globalThis.getComputedStyle(o),u=y=>m.getPropertyValue(y).trim();i=u("--roxy-font-sans"),c=u("--roxy-font-display"),l=u("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||c))return Wt(l)?l:void 0}function Zt(o){let{sans:t,display:e}=W[o];return`--roxy-font:${o};--roxy-font-sans:${t};--roxy-font-display:${e}`}var Qt=Yt(Dt,globalThis.document?.currentScript?.src||tr.url);function te(o,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${o}`;if(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)}function ee(o,t=Qt){Bt(o).length>0&&te(o,t)}function re(o=Qt){te(qt,o)}var oe='@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 J="roxy-ui-tokens";function X(){if(typeof document>"u")return null;let o=document.getElementById(J);if(o)return o;let t=document.createElement("style");return t.id=J,t.textContent=oe,document.head.prepend(t),t}function ne(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}var se="__ROXY_UI_I18N__";function ie(){let o=globalThis,t=o[se];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[se]=e,e}function er(o,t){return t?o.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):o}function ae(o,t,e){return er(rr(o,t)??t,e)}function rr(o,t){if(!o)return;let{catalogs:e}=ie(),r=o.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[ne(t)]}function de(o){let{listeners:t}=ie();return t.add(o),()=>{t.delete(o)}}var Z=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=de(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var Q=class extends w{constructor(){super();this.translator=(e,r)=>this.t(e,r);new Z(this)}connectedCallback(){super.connectedCallback(),X()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&re()}fontDeclarations(e){let r=Xt(this,e);return r?(ee(r),Zt(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?d`<style>:host{${e}}</style>`:a}t(e,r){return ae(this.effectiveLang(),e,r)}effectiveLang(){return ft(this)}};var le=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function ce(o){return o?d`<span class="roxy-glyph" aria-hidden="true">${o}</span>`:a}var pe=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var or=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,tt=[or,pe,le];var nr="__cols",sr="__rows";function ir(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function et(o){if(Array.isArray(o)){let s=false,i=o.map(c=>{let l=et(c);return l!==c&&(s=true),l});return s?i:o}if(!ir(o))return o;let t=o[nr],e=o[sr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(o).length===2)return e.map(s=>{let i={};return t.forEach((c,l)=>{i[c]=et(s[l])}),i});let r=false,n={};for(let[s,i]of Object.entries(o)){let c=et(i);c!==i&&(r=true),n[s]=c}return r?n:o}function he(o){return et(o)}function ue(o,t){return o.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,n])=>t[r]===n))??o[0]}var ar="pk_live_YOUR_KEY",ye={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 me(o){if(o)return o===ar?ye.sample:o.startsWith("pk_")?void 0:ye.secret}function ge(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 dr(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 xe={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.")}}},O=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 be(o){return o.submitUrl?void 0:me(o.publishableKey)}async function bt(o,t,e){let r=be(o);if(r)throw new O(r.message);let n=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:lr(t,o.submitContext),signal:e}):await cr(o,t,e);if(!n.ok){let s=await dr(n);throw new O(s.message,s.issues,s.worded,n.status,s.code)}return await n.json()}function lr(o,t){return JSON.stringify(t?{...o,context:t}:o)}function cr(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 rt=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=be(this);if(e){this.host.error=e.message,ge(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let n=await bt(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 O&&(this.host.issues=n.issues,this.failure={status:n.status,code:n.code}),this.worded=n instanceof O&&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 ve(o,t,e,r=[]){let n={...e},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(m,u)=>{let y=n[u];return delete n[u],encodeURIComponent(String(y??""))}),i=new Set(r),c={},l={};for(let[m,u]of Object.entries(n))u===void 0||u===""||(t==="GET"||i.has(m)?c[m]=u:l[m]=u);return{path:s,method:t,query:c,body:t==="POST"?l:void 0}}function Se(){return d`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var Ee=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var we=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function $e(o,t,e){let r=o.filter(n=>!!n.body);return r.length===0?a:d`<section class="block" part="section readings"><h3>${e}</h3>${r.map((n,s)=>d`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${ce(n.glyph)} ${n.label}</span> ${Se()} ${n.aside?d`<span class="interp-aside"><small>${n.aside}</small></span>`:a}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??a}</div></details>`)}</section>`}var pr="roxy-data";function hr(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var ot=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){if(this.host.data!=null)return;let t=this.read();t!==void 0&&(this.host.data=t,this.host.requestUpdate())}read(){let t=this.findInlineScript();return t?this.parse(t.textContent):void 0}findInlineScript(){for(let t of Array.from(this.host.children))if(hr(t)&&t.classList.contains(pr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends Q{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 bt(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(ve(r.endpoint,r.method,{...n.values,...this.ownRequest()},n.queryKeys??[]))};new ot(this),this.fetcher=new rt(this)}static{this.styles=[tt]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=he(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:ue(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return d`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:true,composed:true})),customElements.get("roxy-data")?d`<roxy-data .data="${e}" lang="${A(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=[Jt(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return a;let n=(r?`:host{${r}}`:"")+e.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){display:none!important}`).join("");return d`<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()?d`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,n){return this.hideReadings?a:$e(e,r,this.t(n??"Reading"))}renderResult(e){let r=d`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?d`${r}${this.renderAttribution()}`:r}renderWithForm(e){return d`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?a:this.renderErrorBanner(this.error):this.data==null?a:this.showAttribution()?d`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?a:e.length>=r?a:d`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?d`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:a}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let 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:Gt(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return d`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(a):this.renderEmpty()}renderForm(){let e=this.selfFetch();return d`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${A(this.specUrl)}" publishable-key="${A(this.publishableKey)}" location-url="${A(this.locationUrl)}" submit-label="${A(this.submitLabel)}" lang="${A(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return d`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return d`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let n=this.renderErrorBanner(e);return r?d`${n}${this.renderForm()}`:n}renderErrorBanner(e){return d`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};h([g({attribute:false})],p.prototype,"data",2),h([g({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([g({type:String})],p.prototype,"method",2),h([g({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([g({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([g({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([g({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([g({attribute:"submit-context",converter:xe})],p.prototype,"submitContext",2),h([g({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([g({type:Boolean})],p.prototype,"remember",2),h([g({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([g({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([g({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([g({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([g({type:String})],p.prototype,"font",2),h([g({type:String})],p.prototype,"hemisphere",2),h([g({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([g({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([g({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var Te=o=>t=>{customElements.get(o)||customElements.define(o,t)};var ur={positive:"Positive energy",neutral:"Neutral energy",cautionary:"Cautionary energy"},yr={positive:"success",cautionary:"warning"},R=class extends p{renderData(t){let e=t.knownMeaning,r=t.digitRootMeaning,n=e?.title??this.t("Number analysis"),s=e?.actionSteps??[];return d`<article class="card" part="card" aria-label="${this.t("Angel number {{number}}",{number:t.number??""})}"><div class="hero" part="header">${t.number?d`<div class="numeral">${t.number}</div>`:a}<div>${e?.title?d`<p class="roxy-label">${this.t("Number analysis")}</p>`:a}<h2>${n}</h2></div></div><ul class="badges roxy-chips" part="details">${t.type?d`<li>${t.type}</li>`:a} ${typeof t.digits=="number"?d`<li>${this.t("{{count}} digits",{count:t.digits})}</li>`:a} ${typeof t.uniqueDigits=="number"?d`<li>${this.t("{{count}} unique",{count:t.uniqueDigits})}</li>`:a} ${typeof t.digitRoot=="number"?d`<li>${this.t("Digit root {{n}}",{n:t.digitRoot})}</li>`:a} ${t.isPalindrome?d`<li class="roxy-chip" data-tone="info">${this.t("Palindrome")}</li>`:a} ${t.isRepeating?d`<li class="roxy-chip" data-tone="info">${this.t("Repeating")}</li>`:a} ${e?.energy?d`<li class="roxy-chip" data-tone="${yr[e.energy]??a}">${this.t(ur[e.energy]??"Neutral energy")}</li>`:a}</ul>${t.contextNote?d`<div class="context" part="section context"><p class="roxy-label">${this.t("Where you saw it")}</p><p>${t.contextNote}</p></div>`:a} ${e&&!this.hideReadings?d`<div class="section" part="section known-meaning"><p class="roxy-label">${this.t("Known angel number")}</p>${e.coreMessage?d`<p>${e.coreMessage}</p>`:a} ${e.keywords&&e.keywords.length>0?d`<ul class="roxy-chips">${e.keywords.map(i=>d`<li>${i}</li>`)}</ul>`:a} ${this.renderMeaning(e.meaning,"lookup-known",e.biblical,e.shadow)} ${e.affirmation?d`<p><em>${e.affirmation}</em></p>`:a} ${s.length>0?d`<p class="roxy-label">${this.t("What to do next")}</p><ol class="steps">${s.map(i=>d`<li>${i}</li>`)}</ol>`:a}</div>`:a} ${r&&!this.hideReadings?d`<div class="section" part="section digit-root"><p class="roxy-label">${r.number?this.t("Foundational digit root ({{n}})",{n:r.number}):this.t("Foundational digit root")}</p>${r.title?d`<h3>${r.title}</h3>`:a} ${r.coreMessage?d`<p>${r.coreMessage}</p>`:a} ${e?a:this.renderRootMeaning(r)}</div>`:a}</article>`}renderMeaning(t,e,r,n){return this.renderInterpretation(It(this.translator,t,r,n),e,"Reading")}renderRootMeaning(t){return d`${t.keywords&&t.keywords.length>0?d`<ul class="roxy-chips">${t.keywords.map(e=>d`<li>${e}</li>`)}</ul>`:a}${this.renderMeaning(t.meaning,"lookup-root")}${t.affirmation?d`<p><em>${t.affirmation}</em></p>`:a}`}};R.endpoints=jt,R.styles=[tt,Ee,we,f`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.numeral{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;flex-shrink:0;line-height:1}.hero>div:not(.numeral){min-width:0}@container (width<=24rem){.hero{justify-items:start;gap:var(--roxy-space-sm);grid-template-columns:minmax(0,1fr);display:grid}}.badges>li{text-transform:capitalize}.context{gap:var(--roxy-space-xs);border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);padding-inline-start:var(--roxy-space-md);display:grid}.steps{gap:var(--roxy-space-xs);font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}.section{gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md);display:grid}.section p{font-size:var(--roxy-text-sm)}`],R=h([Te("roxy-angel-number-lookup")],R);return Pe(mr)})();