Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polymarket/embeds

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polymarket/embeds - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

6

CHANGELOG.md
# @polymarket/embeds
## 1.0.5
### Patch Changes
- 6876450: copy, hovers
## 1.0.4

@@ -4,0 +10,0 @@

9

custom-elements.json

@@ -26,3 +26,3 @@ {

"name": "k",
"default": "class extends(wt=V,xt=[H({type:String,attribute:\"theme\",reflect:!0})],$t=[H({type:String,attribute:\"width\"})],vt=[H({type:String,attribute:\"market\"})],_t=[H({type:String,attribute:\"creator\"})],bt=[H({type:Boolean,attribute:\"volume\",converter:(o,i)=>i===String?o===\"true\":i===Boolean?o:!1})],yt=[H({type:Boolean,attribute:\"chart\",converter:(o,i)=>i===String?o===\"true\":i===Boolean?o:!1})],gt=[ee()],mt=[ee()],ft=[ee()],dt=[ee()],wt){constructor(){super();M(this,we,$(g,8,this,\"light\")),$(g,11,this);M(this,ke,$(g,12,this,400)),$(g,15,this);M(this,Ce,$(g,16,this)),$(g,19,this);M(this,Ae,$(g,20,this)),$(g,23,this);M(this,Se,$(g,24,this,!1)),$(g,27,this);M(this,Ee,$(g,28,this,!1)),$(g,31,this);M(this,Me,$(g,32,this)),$(g,35,this);M(this,Pe,$(g,36,this)),$(g,39,this);M(this,Ne,$(g,40,this)),$(g,43,this);M(this,Te,$(g,44,this)),$(g,47,this);Le();}static get styles(){return pe` :host { --polymarket-color-white: #ffffff; --polymarket-color-black: #000000; --polymarket-color-gray-1: #333333; --polymarket-color-gray-2: #4f4f4f; --polymarket-color-gray-3: #828282; --polymarket-color-gray-4: #bdbdbd; --polymarket-color-gray-5: #e0e0e0; --polymarket-color-gray-6: #f2f2f2; --polymarket-radii-sm: 4px; --polymarket-radii-md: 8px; --polymarket-radii-lg: 12px; --polymarket-radii-full: 50%; --polymarket-space-1: 4px; --polymarket-space-2: 8px; --polymarket-space-3: 12px; --polymarket-space-4: 16px; --polymarket-font-size-sm: 11px; --polymarket-font-size-md: 13px; --polymarket-font-size-lg: 15px; --polymarket-font-size-xl: 18px; --polymarket-line-height-sm: 13px; --polymarket-line-height-md: 17px; --polymarket-line-height-lg: 19px; --polymarket-line-height-xl: 21px; --polymarket-font-weight-normal: 400; --polymarket-font-weight-medium: 500; --polymarket-font-weight-semi: 600; --polymarket-font-weight-bold: 700; display: block; width: 100%; height: 100%; font-family: \"Open Sauce Sans\", sans-serif; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } :host([theme=\"dark\"]) { --polymarket-color-white: #1d2b39; --polymarket-color-black: #ffffff; --polymarket-color-gray-1: #f2f2f2; --polymarket-color-gray-2: #858d92; --polymarket-color-gray-3: #858d92; --polymarket-color-gray-4: #425464; --polymarket-color-gray-5: #344452; --polymarket-color-gray-6: #2c3f4f; } :host * { box-sizing: border-box; } .container { display: flex; flex-direction: column; width: 100%; max-width: calc(100vw - 4px); height: fit-content; justify-content: center; align-items: center; padding: 2px; } .card-container { display: flex; flex-direction: column; width: 400px; max-width: calc(100vw - 8px); height: fit-content; padding: 20px; background-color: var(--polymarket-color-white); border-radius: var(--polymarket-radii-md); border: 1px solid var(--polymarket-color-gray-6); gap: 32px; } .top-row-container { display: flex; flex-direction: row; justify-content: space-between; align-items: center; height: 60px; width: 100%; gap: var(--polymarket-space-3); } .bottom-row-container { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; height: 32px; gap: var(--polymarket-space-3); } .top-row-left-container { display: flex; flex-direction: row; align-items: center; width: 100%; flex: 1; gap: var(--polymarket-space-3); img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--polymarket-radii-sm); } p { flex: 1; text-decoration: none; color: var(--polymarket-color-black); font-size: var(--polymarket-font-size-lg); line-height: var(--polymarket-line-height-lg); font-weight: var(--polymarket-font-weight-semi); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; transition: text-decoration-color 100ms ease; display: -webkit-box; cursor: pointer; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; &:hover { text-decoration-color: var(--polymarket-color-black); } } } .top-row-right-container { position: relative; align-items: center; width: 75px; height: 60px; overflow: visible; } .bottom-row-left-container { align-items: center; height: 24px; width: 114px; } .bottom-row-right-container { display: flex; flex-direction: row; align-items: center; width: auto; gap: var(--polymarket-space-3); } .typography-primary { color: var(--polymarket-color-gray-3); font-size: var(--polymarket-font-size-md); line-height: var(--polymarket-line-height-md); font-weight: var(--polymarket-font-weight-medium); } .typography-secondary { color: var(--polymarket-color-gray-3); font-size: var(--polymarket-font-size-sm); line-height: var(--polymarket-line-height-sm); font-weight: var(--polymarket-font-weight-medium); } .typography-number { text-transform: uppercase; } .button-primary { display: flex; justify-content: center; align-items: center; padding: 0px var(--polymarket-space-3); height: 32px; background-color: var(--polymarket-color-gray-6); border-radius: var(--polymarket-radii-md); color: var(--polymarket-color-black); font-size: var(--polymarket-font-size-md); line-height: var(--polymarket-line-height-md); font-weight: var(--polymarket-font-weight-semi); cursor: pointer; border: none; transition: background-color 100ms ease-in-out; gap: var(--polymarket-space-1); text-decoration: none; &:hover { background-color: var(--polymarket-color-gray-5); } } .gauge-text-container { position: absolute; background-color: transparent; border-radius: 100% / 100% 100% 0 0; left: 50%; top: calc(50% + 2px); transform: translate(-50%, -50%); width: calc(120px * 0.85); height: calc(60px * 0.85); display: flex; align-items: center; justify-content: flex-end; z-index: 3; } .gauge-subtext-container { position: absolute; left: 0; bottom: 0; width: 120px; height: 60px; transform: scale(1.1); background-color: transparent; display: flex; align-items: center; justify-content: flex-start; padding-top: 6px; z-index: 4; } .gauge-text { position: absolute; background-color: transparent; border-radius: 100% / 100% 100% 0 0; left: 50%; top: calc(50% + 2px); transform: translate(-50%, -50%); z-index: 3; margin: 0; color: var(--polymarket-color-black); font-size: var(--polymarket-font-size-lg); line-height: var(--polymarket-line-height-lg); font-weight: var(--polymarket-font-weight-bold); } .gauge-subtext { position: absolute; left: 50%; top: calc(50% + 18px); transform: translate(-50%, -50%); background-color: transparent; z-index: 4; margin: 0; color: var(--polymarket-color-gray-3); font-size: var(--polymarket-font-size-sm); line-height: var(--polymarket-line-height-sm); font-weight: var(--polymarket-font-weight-medium); } .gauge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-50% - 10px)) scaleX(1.1); } .gauge-track { position: absolute; top: 0; z-index: 1; stroke: var(--polymarket-color-gray-5); } :host([theme=\"dark\"]) { .gauge-track { stroke: var(--polymarket-color-gray-4); } } .gauge-fill { position: absolute; top: 0; z-index: 1; } .arrow-icon { transform: rotate(180deg); fill: var(--polymarket-color-black); path { fill: var(--polymarket-color-black); } } .polymarket-logo { path { fill: var(--polymarket-color-gray-4); } } :host([theme=\"dark\"]) { .polymarket-logo { path { fill: var(--polymarket-color-gray-3); } } } `}connectedCallback(){super.connectedCallback(),Le(),this.fetchMarketData();}firstUpdated(o){super.firstUpdated(o),this.initTheme();}initTheme(){document.querySelector(\"html\")?.setAttribute(\"theme\",this.theme);}getUtmParams(){let o=\"utm_medium=embed\",i=\"&utm_campaign=market\",u=`&utm_source=${window.location!=window.parent.location&&document.referrer?document.referrer:`${document.location.host}${document.location.pathname}`}`,p=this.creator?`&utm_content=${this.creator}`:\"\";return `${o}${i}${u}${p}`}async fetchMarketData(){if(this.marketSlug){let o=await xe({slug:this.marketSlug});this._market=o;let i=this.getUtmParams();this._href=o.events?.length&&o.events[0]?.slug?`https://polymarket.com/event/${o.events[0].slug}/${o.slug}?${i}`:`https://polymarket.com/market/${o.slug}?${i}`;let n=o.outcomePrices[0]?parseFloat(o.outcomePrices[0]):0,u=Math.min(Math.max(n*100,0),100),m=[0,10,20,30,40,50,60,70,80,90,100].sort((r,s)=>Math.abs(r-u)-Math.abs(s-u))[0];this._probability=u,this._fillPathD=Xt[m.toFixed(0)];}}onClick(){window.parent.window.open(this._href);}render(){return this._market?$e` <div class=\"container\"> <div class=\"card-container\"> <div class=\"top-row-container\"> <div class=\"top-row-left-container\"> <img src=\"${this._market.imageOptimized?.imageUrlSource??this._market.image}\" alt=\"icon\" /> <p @click=\"${this.onClick}\">${this._market.question}</p> </div> <div class=\"top-row-right-container\"> <svg width=\"75px\" height=\"35px\" viewBox=\"0 0 110 60\" class=\"gauge\" > <path id=\"gauge-track\" d=\"M5,55 A50,50 0 0 1 105,55\" class=\"gauge-track\" fill=\"none\" stroke-width=\"8\" /> <path id=\"gauge-fill\" d=${this._fillPathD} class=\"gauge-fill\" fill=\"none\" stroke=\"${(this._probability??0)<50?\"#E64800\":\"#00B955\"}\" stroke-width=\"8.5\" /> </svg> <p class=\"gauge-text\"> ${(0, He.default)(this._probability).format(\"0\")}% </p> <p class=\"gauge-subtext\">chance</p> </div> </div> <div class=\"bottom-row-container\"> <div class=\"bottom-row-left-container\"> <svg width=\"114\" height=\"24\" viewBox=\"0 0 168 38\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"polymarket-logo\" > <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M78.6391 27.3227V9.54077H75.7148V27.3227H78.6391ZM49.9319 21.095V27.3233H46.8903V10.4676H53.455C54.7469 10.4676 55.8645 10.6972 56.8079 11.1564C57.7513 11.6156 58.4697 12.2523 58.9629 13.0666C59.4561 13.8808 59.7027 14.8089 59.7027 15.8508C59.7027 16.939 59.4581 17.8767 58.9688 18.6639C58.4794 19.4511 57.767 20.0531 56.8314 20.4699C55.8958 20.8867 54.7704 21.095 53.455 21.095H49.9319ZM49.9318 18.6871H53.455C54.5432 18.6871 55.3477 18.4362 55.8683 17.9346C56.389 17.4329 56.6493 16.746 56.6493 15.8739C56.6493 15.3337 56.5358 14.8378 56.3087 14.3863C56.0817 13.9348 55.7294 13.5721 55.2518 13.2981C54.7742 13.0241 54.1753 12.8871 53.455 12.8871H49.9318V18.6871ZM67.2507 27.5554C68.4643 27.5554 69.5173 27.2815 70.4098 26.7335C71.3024 26.1855 71.9855 25.4292 72.4591 24.4644C72.9328 23.4997 73.1696 22.4076 73.1696 21.1882V20.9451C73.1696 19.7257 72.9328 18.6336 72.4591 17.6689C71.9855 16.7042 71.3004 15.9459 70.404 15.394C69.5075 14.8422 68.4486 14.5663 67.2273 14.5663C66.0216 14.5663 64.9724 14.8422 64.0799 15.394C63.1874 15.9459 62.5043 16.7042 62.0306 17.6689C61.557 18.6336 61.3201 19.7257 61.3201 20.9451V21.1882C61.3201 22.4076 61.557 23.4997 62.0306 24.4644C62.5043 25.4292 63.1893 26.1855 64.0858 26.7335C64.9822 27.2815 66.0372 27.5554 67.2507 27.5554ZM64.9959 24.1058C65.497 24.8622 66.2486 25.2404 67.2508 25.2404C67.9162 25.2404 68.4741 25.0609 68.9242 24.702C69.3744 24.3432 69.7072 23.8589 69.9225 23.2492C70.1378 22.6394 70.2454 21.9526 70.2454 21.1885V20.9454C70.2454 20.189 70.1378 19.5041 69.9225 18.8905C69.7072 18.2769 69.3725 17.7888 68.9184 17.426C68.4643 17.0633 67.9006 16.8819 67.2273 16.8819C66.5618 16.8819 66.0059 17.0633 65.5596 17.426C65.1134 17.7888 64.7826 18.2769 64.5673 18.8905C64.352 19.5041 64.2443 20.189 64.2443 20.9454V21.1885C64.2443 22.377 64.4949 23.3495 64.9959 24.1058ZM85.4179 31.4486C84.8189 32.0699 83.9636 32.3806 82.8518 32.3806C82.4682 32.3806 82.0024 32.3111 81.4543 32.1722V29.961L81.9945 29.9842C82.6913 29.9842 83.2218 29.8626 83.5858 29.6195C83.9499 29.3764 84.2376 28.95 84.449 28.3403L84.8483 27.2752L80.3856 14.7955H83.5447L86.1871 23.2002L88.7472 14.7955H91.8593L86.7978 29.2201C86.4768 30.0845 86.0168 30.8273 85.4179 31.4486ZM96.3776 27.3239V18.2709C96.8473 17.3679 97.642 16.9164 98.7616 16.9164C99.4975 16.9164 100.055 17.0939 100.435 17.4489C100.815 17.8039 101.005 18.4021 101.005 19.2433V27.3239H103.929V18.9771L103.917 18.7108C104.089 18.1628 104.381 17.7268 104.792 17.4026C105.203 17.0785 105.714 16.9164 106.325 16.9164C107.068 16.9164 107.626 17.0843 107.998 17.42C108.37 17.7557 108.556 18.3519 108.556 19.2086V27.3239H111.48V19.2202C111.48 17.6071 111.124 16.4282 110.411 15.6835C109.699 14.9387 108.669 14.5663 107.323 14.5663C106.469 14.5663 105.714 14.7342 105.056 15.0699C104.399 15.4056 103.854 15.8745 103.424 16.4765C103.103 15.8282 102.645 15.3477 102.05 15.0352C101.455 14.7226 100.758 14.5663 99.9594 14.5663C99.1765 14.5663 98.4778 14.6994 97.8632 14.9657C97.2486 15.232 96.726 15.6159 96.2954 16.1176L96.2014 14.7978H93.4534V27.3239H96.3776ZM120.167 27.1734C119.611 27.4281 118.981 27.5554 118.276 27.5554C117.446 27.5554 116.703 27.3934 116.045 27.0692C115.387 26.7451 114.874 26.2974 114.507 25.7263C114.139 25.1552 113.955 24.5146 113.955 23.8046C113.955 22.4694 114.458 21.4468 115.464 20.7367C116.47 20.0267 117.897 19.6717 119.744 19.6717H121.506V18.8613C121.506 18.1976 121.322 17.6785 120.954 17.3042C120.586 16.9299 120.042 16.7427 119.321 16.7427C118.891 16.7427 118.511 16.8161 118.182 16.9627C117.853 17.1093 117.599 17.31 117.419 17.5647C117.239 17.8194 117.149 18.1049 117.149 18.4214H114.225C114.225 17.7499 114.442 17.119 114.876 16.5286C115.311 15.9382 115.929 15.4635 116.732 15.1046C117.534 14.7457 118.452 14.5663 119.486 14.5663C120.457 14.5663 121.314 14.7284 122.058 15.0525C122.802 15.3767 123.383 15.8629 123.802 16.5112C124.221 17.1595 124.43 17.9506 124.43 18.8844V24.4066C124.43 25.5488 124.591 26.4556 124.912 27.1271V27.3239H121.929C121.803 27.0538 121.694 26.664 121.6 26.1547C121.2 26.5791 120.723 26.9187 120.167 27.1734ZM118.84 25.251C118.222 25.251 117.74 25.0908 117.396 24.7706C117.051 24.4503 116.879 24.0354 116.879 23.526C116.879 22.87 117.141 22.3607 117.666 21.9979C118.19 21.6352 118.962 21.4538 119.979 21.4538H121.506V23.7923C121.287 24.1936 120.94 24.5371 120.467 24.8226C119.993 25.1082 119.451 25.251 118.84 25.251ZM130.287 18.7918V27.3239H127.363V14.7978H130.146L130.228 16.2102C130.549 15.6854 130.949 15.2802 131.426 14.9946C131.904 14.7091 132.456 14.5663 133.082 14.5663C133.247 14.5663 133.432 14.5817 133.64 14.6126C133.847 14.6435 134.002 14.6782 134.104 14.7168L134.08 17.4373C133.689 17.3756 133.301 17.3447 132.918 17.3447C131.61 17.3447 130.733 17.8271 130.287 18.7918ZM138.786 27.3227V23.2592L140.067 21.9742L143.766 27.3227H147.148L141.946 20.0062L146.655 14.7966H143.132L139.656 18.6748L138.786 19.7399V9.54077H135.874V27.3227H138.786ZM157.057 26.884C156.235 27.3316 155.24 27.5554 154.074 27.5554C152.837 27.5554 151.756 27.2911 150.832 26.7624C149.909 26.2338 149.2 25.5102 148.707 24.5918C148.214 23.6734 147.967 22.643 147.967 21.5008V21.0261C147.967 19.7373 148.217 18.6047 148.719 17.6284C149.22 16.6521 149.909 15.8976 150.785 15.3651C151.662 14.8326 152.649 14.5663 153.745 14.5663C154.943 14.5663 155.949 14.8249 156.763 15.342C157.577 15.859 158.186 16.5826 158.589 17.5126C158.992 18.4426 159.194 19.5212 159.194 20.7483V21.9639H150.915C150.969 22.6044 151.138 23.1717 151.42 23.6656C151.701 24.1596 152.083 24.5455 152.565 24.8233C153.046 25.1012 153.608 25.2401 154.25 25.2401C155.565 25.2401 156.622 24.7307 157.421 23.712L158.983 25.2054C158.521 25.8768 157.879 26.4364 157.057 26.884ZM156.305 19.8803H150.973C151.106 18.931 151.408 18.194 151.878 17.6692C152.347 17.1443 152.966 16.8819 153.733 16.8819C154.594 16.8819 155.229 17.1424 155.636 17.6634C156.043 18.1843 156.266 18.85 156.305 19.6604V19.8803ZM167.317 27.2774C166.754 27.4626 166.12 27.5552 165.415 27.5552C164.381 27.5552 163.567 27.2735 162.972 26.7101C162.377 26.1467 162.08 25.2476 162.08 24.0127V16.9277H160.013V14.7976H162.08V11.7414H165.004V14.7976H167.235V16.9277H165.004V23.8159C165.004 24.3407 165.113 24.6977 165.333 24.8868C165.552 25.0759 165.881 25.1704 166.319 25.1704C166.632 25.1704 166.965 25.1318 167.317 25.0546V27.2774Z\" /> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M30.6525 17.4069V0L0 8.6333V8.77358V29.2266V29.3668L30.6525 38.0001V20.5933V17.4069ZM27.6857 16.5713V3.8835L5.16277 10.2277L27.6857 16.5713ZM25.4849 19.0001L2.96678 12.6572V25.3429L25.4849 19.0001ZM5.16283 27.7724L27.6857 34.1166V21.4289L5.16283 27.7724Z\" /> </svg> </div> <div class=\"bottom-row-right-container\"> <p class=\"typography-secondary typography-number\"> ${this.showVolume?`${(0, He.default)(this._market.volumeNum).format(\"0.[0]a\")}`:\"\"} <span style=\"text-transform: capitalize;\" >${this.showVolume?\"Bet\":\"\"}</span > </p> <div @click=\"${this.onClick}\" class=\"button-primary\"> More details <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"13\" height=\"10\" viewBox=\"0 0 19 16\" class=\"arrow-icon\" > <path d=\"M19 6.99997H4.414L9.707 1.70697L8.293 0.292969L0.585999 7.99997L8.293 15.707L9.707 14.293L4.414 8.99997H19V6.99997Z\" /> </svg> </div> </div> </div> </div> </div>`:$e` <span>${\" \"}</span> `}}"
"default": "class extends(wt=V,xt=[T({type:String,attribute:\"theme\",reflect:!0})],$t=[T({type:String,attribute:\"width\"})],vt=[T({type:String,attribute:\"market\"})],_t=[T({type:String,attribute:\"creator\"})],bt=[T({type:Boolean,attribute:\"volume\",converter:(o,i)=>i===String?o===\"true\":i===Boolean?o:!1})],yt=[T({type:Boolean,attribute:\"chart\",converter:(o,i)=>i===String?o===\"true\":i===Boolean?o:!1})],gt=[ee()],mt=[ee()],ft=[ee()],dt=[ee()],wt){constructor(){super();M(this,we,$(g,8,this,\"light\")),$(g,11,this);M(this,ke,$(g,12,this,400)),$(g,15,this);M(this,Ce,$(g,16,this)),$(g,19,this);M(this,Ae,$(g,20,this)),$(g,23,this);M(this,Se,$(g,24,this,!1)),$(g,27,this);M(this,Ee,$(g,28,this,!1)),$(g,31,this);M(this,Me,$(g,32,this)),$(g,35,this);M(this,Pe,$(g,36,this)),$(g,39,this);M(this,Ne,$(g,40,this)),$(g,43,this);M(this,Le,$(g,44,this)),$(g,47,this);He();}static get styles(){return pe` :host { --polymarket-color-white: #ffffff; --polymarket-color-black: #000000; --polymarket-color-gray-1: #333333; --polymarket-color-gray-2: #4f4f4f; --polymarket-color-gray-3: #828282; --polymarket-color-gray-4: #bdbdbd; --polymarket-color-gray-5: #e0e0e0; --polymarket-color-gray-6: #f2f2f2; --polymarket-radii-sm: 4px; --polymarket-radii-md: 8px; --polymarket-radii-lg: 12px; --polymarket-radii-full: 50%; --polymarket-space-1: 4px; --polymarket-space-2: 8px; --polymarket-space-3: 12px; --polymarket-space-4: 16px; --polymarket-font-size-sm: 11px; --polymarket-font-size-md: 13px; --polymarket-font-size-lg: 15px; --polymarket-font-size-xl: 18px; --polymarket-line-height-sm: 13px; --polymarket-line-height-md: 17px; --polymarket-line-height-lg: 19px; --polymarket-line-height-xl: 21px; --polymarket-font-weight-normal: 400; --polymarket-font-weight-medium: 500; --polymarket-font-weight-semi: 600; --polymarket-font-weight-bold: 700; display: block; width: 100%; height: 100%; font-family: \"Open Sauce Sans\", sans-serif; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } :host([theme=\"dark\"]) { --polymarket-color-white: #1d2b39; --polymarket-color-black: #ffffff; --polymarket-color-gray-1: #f2f2f2; --polymarket-color-gray-2: #858d92; --polymarket-color-gray-3: #858d92; --polymarket-color-gray-4: #425464; --polymarket-color-gray-5: #344452; --polymarket-color-gray-6: #2c3f4f; } :host * { box-sizing: border-box; } .container { display: flex; flex-direction: column; width: 100%; max-width: calc(100vw - 4px); height: fit-content; justify-content: center; align-items: center; padding: 2px; } .card-container { display: flex; flex-direction: column; width: 400px; max-width: calc(100vw - 8px); height: fit-content; padding: 20px; background-color: var(--polymarket-color-white); border-radius: var(--polymarket-radii-md); border: 1px solid var(--polymarket-color-gray-6); gap: 32px; } .top-row-container { display: flex; flex-direction: row; justify-content: space-between; align-items: center; height: 60px; width: 100%; gap: var(--polymarket-space-3); } .bottom-row-container { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; height: 32px; gap: var(--polymarket-space-3); } .top-row-left-container { display: flex; flex-direction: row; align-items: center; width: 100%; flex: 1; gap: var(--polymarket-space-3); img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--polymarket-radii-sm); } p { flex: 1; text-decoration: none; color: var(--polymarket-color-black); font-size: var(--polymarket-font-size-lg); line-height: var(--polymarket-line-height-lg); font-weight: var(--polymarket-font-weight-semi); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; transition: text-decoration-color 100ms ease; display: -webkit-box; cursor: pointer; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; &:hover { text-decoration-color: var(--polymarket-color-black); } } } .top-row-right-container { position: relative; align-items: center; width: 75px; height: 60px; overflow: visible; } .bottom-row-left-container { align-items: center; height: 24px; width: 114px; cursor: pointer; transition: opacity 100ms ease-in-out; opacity: 1; &:hover { opacity: 0.8; } } .bottom-row-right-container { display: flex; flex-direction: row; align-items: center; width: auto; gap: var(--polymarket-space-3); } .typography-primary { color: var(--polymarket-color-gray-3); font-size: var(--polymarket-font-size-md); line-height: var(--polymarket-line-height-md); font-weight: var(--polymarket-font-weight-medium); } .typography-secondary { color: var(--polymarket-color-gray-3); font-size: var(--polymarket-font-size-sm); line-height: var(--polymarket-line-height-sm); font-weight: var(--polymarket-font-weight-medium); } .typography-number { text-transform: uppercase; } .button-primary { display: flex; justify-content: center; align-items: center; padding: 0px var(--polymarket-space-3); height: 32px; background-color: var(--polymarket-color-gray-6); border-radius: var(--polymarket-radii-md); color: var(--polymarket-color-black); font-size: var(--polymarket-font-size-md); line-height: var(--polymarket-line-height-md); font-weight: var(--polymarket-font-weight-semi); cursor: pointer; border: none; transition: background-color 100ms ease-in-out; gap: var(--polymarket-space-1); text-decoration: none; &:hover { background-color: var(--polymarket-color-gray-5); } } .gauge-text-container { position: absolute; background-color: transparent; border-radius: 100% / 100% 100% 0 0; left: 50%; top: calc(50% + 2px); transform: translate(-50%, -50%); width: calc(120px * 0.85); height: calc(60px * 0.85); display: flex; align-items: center; justify-content: flex-end; z-index: 3; } .gauge-subtext-container { position: absolute; left: 0; bottom: 0; width: 120px; height: 60px; transform: scale(1.1); background-color: transparent; display: flex; align-items: center; justify-content: flex-start; padding-top: 6px; z-index: 4; } .gauge-text { position: absolute; background-color: transparent; border-radius: 100% / 100% 100% 0 0; left: 50%; top: calc(50% + 2px); transform: translate(-50%, -50%); z-index: 3; margin: 0; color: var(--polymarket-color-black); font-size: var(--polymarket-font-size-lg); line-height: var(--polymarket-line-height-lg); font-weight: var(--polymarket-font-weight-bold); } .gauge-subtext { position: absolute; left: 50%; top: calc(50% + 18px); transform: translate(-50%, -50%); background-color: transparent; z-index: 4; margin: 0; color: var(--polymarket-color-gray-3); font-size: var(--polymarket-font-size-sm); line-height: var(--polymarket-line-height-sm); font-weight: var(--polymarket-font-weight-medium); } .gauge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-50% - 10px)) scaleX(1.1); } .gauge-track { position: absolute; top: 0; z-index: 1; stroke: var(--polymarket-color-gray-5); } :host([theme=\"dark\"]) { .gauge-track { stroke: var(--polymarket-color-gray-4); } } .gauge-fill { position: absolute; top: 0; z-index: 1; } .arrow-icon { transform: rotate(180deg); fill: var(--polymarket-color-black); path { fill: var(--polymarket-color-black); } } .polymarket-logo { path { fill: var(--polymarket-color-gray-4); } } :host([theme=\"dark\"]) { .polymarket-logo { path { fill: var(--polymarket-color-gray-3); } } } `}connectedCallback(){super.connectedCallback(),He(),this.fetchMarketData();}firstUpdated(o){super.firstUpdated(o),this.initTheme();}initTheme(){document.querySelector(\"html\")?.setAttribute(\"theme\",this.theme);}getUtmParams(){let o=\"utm_medium=embed\",i=\"&utm_campaign=market\",u=`&utm_source=${window.location!=window.parent.location&&document.referrer?document.referrer:`${document.location.host}${document.location.pathname}`}`,p=this.creator?`&utm_content=${this.creator}`:\"\";return `${o}${i}${u}${p}`}async fetchMarketData(){if(this.marketSlug){let o=await xe({slug:this.marketSlug});this._market=o;let i=this.getUtmParams();this._href=o.events?.length&&o.events[0]?.slug?`https://polymarket.com/event/${o.events[0].slug}/${o.slug}?${i}`:`https://polymarket.com/market/${o.slug}?${i}`;let n=o.outcomePrices[0]?parseFloat(o.outcomePrices[0]):0,u=Math.min(Math.max(n*100,0),100),m=[0,10,20,30,40,50,60,70,80,90,100].sort((r,s)=>Math.abs(r-u)-Math.abs(s-u))[0];this._probability=u,this._fillPathD=Xt[m.toFixed(0)];}}onClick(){window.parent.window.open(this._href);}onLogoClick(){window.parent.window.open(\"https://polymarket.com\");}render(){return this._market?$e` <div class=\"container\"> <div class=\"card-container\"> <div class=\"top-row-container\"> <div class=\"top-row-left-container\"> <img src=\"${this._market.imageOptimized?.imageUrlSource??this._market.image}\" alt=\"icon\" /> <p @click=\"${this.onClick}\">${this._market.question}</p> </div> <div class=\"top-row-right-container\"> <svg width=\"75px\" height=\"35px\" viewBox=\"0 0 110 60\" class=\"gauge\" > <path id=\"gauge-track\" d=\"M5,55 A50,50 0 0 1 105,55\" class=\"gauge-track\" fill=\"none\" stroke-width=\"8\" /> <path id=\"gauge-fill\" d=${this._fillPathD} class=\"gauge-fill\" fill=\"none\" stroke=\"${(this._probability??0)<50?\"#E64800\":\"#00B955\"}\" stroke-width=\"8.5\" /> </svg> <p class=\"gauge-text\"> ${(0, Te.default)(this._probability).format(\"0\")}% </p> <p class=\"gauge-subtext\">chance</p> </div> </div> <div class=\"bottom-row-container\"> <div class=\"bottom-row-left-container\" @click=\"${this.onLogoClick}\" > <svg width=\"114\" height=\"24\" viewBox=\"0 0 168 38\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"polymarket-logo\" > <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M78.6391 27.3227V9.54077H75.7148V27.3227H78.6391ZM49.9319 21.095V27.3233H46.8903V10.4676H53.455C54.7469 10.4676 55.8645 10.6972 56.8079 11.1564C57.7513 11.6156 58.4697 12.2523 58.9629 13.0666C59.4561 13.8808 59.7027 14.8089 59.7027 15.8508C59.7027 16.939 59.4581 17.8767 58.9688 18.6639C58.4794 19.4511 57.767 20.0531 56.8314 20.4699C55.8958 20.8867 54.7704 21.095 53.455 21.095H49.9319ZM49.9318 18.6871H53.455C54.5432 18.6871 55.3477 18.4362 55.8683 17.9346C56.389 17.4329 56.6493 16.746 56.6493 15.8739C56.6493 15.3337 56.5358 14.8378 56.3087 14.3863C56.0817 13.9348 55.7294 13.5721 55.2518 13.2981C54.7742 13.0241 54.1753 12.8871 53.455 12.8871H49.9318V18.6871ZM67.2507 27.5554C68.4643 27.5554 69.5173 27.2815 70.4098 26.7335C71.3024 26.1855 71.9855 25.4292 72.4591 24.4644C72.9328 23.4997 73.1696 22.4076 73.1696 21.1882V20.9451C73.1696 19.7257 72.9328 18.6336 72.4591 17.6689C71.9855 16.7042 71.3004 15.9459 70.404 15.394C69.5075 14.8422 68.4486 14.5663 67.2273 14.5663C66.0216 14.5663 64.9724 14.8422 64.0799 15.394C63.1874 15.9459 62.5043 16.7042 62.0306 17.6689C61.557 18.6336 61.3201 19.7257 61.3201 20.9451V21.1882C61.3201 22.4076 61.557 23.4997 62.0306 24.4644C62.5043 25.4292 63.1893 26.1855 64.0858 26.7335C64.9822 27.2815 66.0372 27.5554 67.2507 27.5554ZM64.9959 24.1058C65.497 24.8622 66.2486 25.2404 67.2508 25.2404C67.9162 25.2404 68.4741 25.0609 68.9242 24.702C69.3744 24.3432 69.7072 23.8589 69.9225 23.2492C70.1378 22.6394 70.2454 21.9526 70.2454 21.1885V20.9454C70.2454 20.189 70.1378 19.5041 69.9225 18.8905C69.7072 18.2769 69.3725 17.7888 68.9184 17.426C68.4643 17.0633 67.9006 16.8819 67.2273 16.8819C66.5618 16.8819 66.0059 17.0633 65.5596 17.426C65.1134 17.7888 64.7826 18.2769 64.5673 18.8905C64.352 19.5041 64.2443 20.189 64.2443 20.9454V21.1885C64.2443 22.377 64.4949 23.3495 64.9959 24.1058ZM85.4179 31.4486C84.8189 32.0699 83.9636 32.3806 82.8518 32.3806C82.4682 32.3806 82.0024 32.3111 81.4543 32.1722V29.961L81.9945 29.9842C82.6913 29.9842 83.2218 29.8626 83.5858 29.6195C83.9499 29.3764 84.2376 28.95 84.449 28.3403L84.8483 27.2752L80.3856 14.7955H83.5447L86.1871 23.2002L88.7472 14.7955H91.8593L86.7978 29.2201C86.4768 30.0845 86.0168 30.8273 85.4179 31.4486ZM96.3776 27.3239V18.2709C96.8473 17.3679 97.642 16.9164 98.7616 16.9164C99.4975 16.9164 100.055 17.0939 100.435 17.4489C100.815 17.8039 101.005 18.4021 101.005 19.2433V27.3239H103.929V18.9771L103.917 18.7108C104.089 18.1628 104.381 17.7268 104.792 17.4026C105.203 17.0785 105.714 16.9164 106.325 16.9164C107.068 16.9164 107.626 17.0843 107.998 17.42C108.37 17.7557 108.556 18.3519 108.556 19.2086V27.3239H111.48V19.2202C111.48 17.6071 111.124 16.4282 110.411 15.6835C109.699 14.9387 108.669 14.5663 107.323 14.5663C106.469 14.5663 105.714 14.7342 105.056 15.0699C104.399 15.4056 103.854 15.8745 103.424 16.4765C103.103 15.8282 102.645 15.3477 102.05 15.0352C101.455 14.7226 100.758 14.5663 99.9594 14.5663C99.1765 14.5663 98.4778 14.6994 97.8632 14.9657C97.2486 15.232 96.726 15.6159 96.2954 16.1176L96.2014 14.7978H93.4534V27.3239H96.3776ZM120.167 27.1734C119.611 27.4281 118.981 27.5554 118.276 27.5554C117.446 27.5554 116.703 27.3934 116.045 27.0692C115.387 26.7451 114.874 26.2974 114.507 25.7263C114.139 25.1552 113.955 24.5146 113.955 23.8046C113.955 22.4694 114.458 21.4468 115.464 20.7367C116.47 20.0267 117.897 19.6717 119.744 19.6717H121.506V18.8613C121.506 18.1976 121.322 17.6785 120.954 17.3042C120.586 16.9299 120.042 16.7427 119.321 16.7427C118.891 16.7427 118.511 16.8161 118.182 16.9627C117.853 17.1093 117.599 17.31 117.419 17.5647C117.239 17.8194 117.149 18.1049 117.149 18.4214H114.225C114.225 17.7499 114.442 17.119 114.876 16.5286C115.311 15.9382 115.929 15.4635 116.732 15.1046C117.534 14.7457 118.452 14.5663 119.486 14.5663C120.457 14.5663 121.314 14.7284 122.058 15.0525C122.802 15.3767 123.383 15.8629 123.802 16.5112C124.221 17.1595 124.43 17.9506 124.43 18.8844V24.4066C124.43 25.5488 124.591 26.4556 124.912 27.1271V27.3239H121.929C121.803 27.0538 121.694 26.664 121.6 26.1547C121.2 26.5791 120.723 26.9187 120.167 27.1734ZM118.84 25.251C118.222 25.251 117.74 25.0908 117.396 24.7706C117.051 24.4503 116.879 24.0354 116.879 23.526C116.879 22.87 117.141 22.3607 117.666 21.9979C118.19 21.6352 118.962 21.4538 119.979 21.4538H121.506V23.7923C121.287 24.1936 120.94 24.5371 120.467 24.8226C119.993 25.1082 119.451 25.251 118.84 25.251ZM130.287 18.7918V27.3239H127.363V14.7978H130.146L130.228 16.2102C130.549 15.6854 130.949 15.2802 131.426 14.9946C131.904 14.7091 132.456 14.5663 133.082 14.5663C133.247 14.5663 133.432 14.5817 133.64 14.6126C133.847 14.6435 134.002 14.6782 134.104 14.7168L134.08 17.4373C133.689 17.3756 133.301 17.3447 132.918 17.3447C131.61 17.3447 130.733 17.8271 130.287 18.7918ZM138.786 27.3227V23.2592L140.067 21.9742L143.766 27.3227H147.148L141.946 20.0062L146.655 14.7966H143.132L139.656 18.6748L138.786 19.7399V9.54077H135.874V27.3227H138.786ZM157.057 26.884C156.235 27.3316 155.24 27.5554 154.074 27.5554C152.837 27.5554 151.756 27.2911 150.832 26.7624C149.909 26.2338 149.2 25.5102 148.707 24.5918C148.214 23.6734 147.967 22.643 147.967 21.5008V21.0261C147.967 19.7373 148.217 18.6047 148.719 17.6284C149.22 16.6521 149.909 15.8976 150.785 15.3651C151.662 14.8326 152.649 14.5663 153.745 14.5663C154.943 14.5663 155.949 14.8249 156.763 15.342C157.577 15.859 158.186 16.5826 158.589 17.5126C158.992 18.4426 159.194 19.5212 159.194 20.7483V21.9639H150.915C150.969 22.6044 151.138 23.1717 151.42 23.6656C151.701 24.1596 152.083 24.5455 152.565 24.8233C153.046 25.1012 153.608 25.2401 154.25 25.2401C155.565 25.2401 156.622 24.7307 157.421 23.712L158.983 25.2054C158.521 25.8768 157.879 26.4364 157.057 26.884ZM156.305 19.8803H150.973C151.106 18.931 151.408 18.194 151.878 17.6692C152.347 17.1443 152.966 16.8819 153.733 16.8819C154.594 16.8819 155.229 17.1424 155.636 17.6634C156.043 18.1843 156.266 18.85 156.305 19.6604V19.8803ZM167.317 27.2774C166.754 27.4626 166.12 27.5552 165.415 27.5552C164.381 27.5552 163.567 27.2735 162.972 26.7101C162.377 26.1467 162.08 25.2476 162.08 24.0127V16.9277H160.013V14.7976H162.08V11.7414H165.004V14.7976H167.235V16.9277H165.004V23.8159C165.004 24.3407 165.113 24.6977 165.333 24.8868C165.552 25.0759 165.881 25.1704 166.319 25.1704C166.632 25.1704 166.965 25.1318 167.317 25.0546V27.2774Z\" /> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M30.6525 17.4069V0L0 8.6333V8.77358V29.2266V29.3668L30.6525 38.0001V20.5933V17.4069ZM27.6857 16.5713V3.8835L5.16277 10.2277L27.6857 16.5713ZM25.4849 19.0001L2.96678 12.6572V25.3429L25.4849 19.0001ZM5.16283 27.7724L27.6857 34.1166V21.4289L5.16283 27.7724Z\" /> </svg> </div> <div class=\"bottom-row-right-container\"> <p class=\"typography-secondary typography-number\"> ${this.showVolume?`${(0, Te.default)(this._market.volumeNum).format(\"0.[0]a\")}`:\"\"} <span style=\"text-transform: capitalize;\" >${this.showVolume?\"Vol.\":\"\"}</span > </p> <div @click=\"${this.onClick}\" class=\"button-primary\"> View market <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"13\" height=\"10\" viewBox=\"0 0 19 16\" class=\"arrow-icon\" > <path d=\"M19 6.99997H4.414L9.707 1.70697L8.293 0.292969L0.585999 7.99997L8.293 15.707L9.707 14.293L4.414 8.99997H19V6.99997Z\" /> </svg> </div> </div> </div> </div> </div>`:$e` <span>${\" \"}</span> `}}"
}

@@ -326,3 +326,3 @@ ],

"name": "k",
"default": "class extends(wt=V,xt=[H({type:String,attribute:\"theme\",reflect:!0})],$t=[H({type:String,attribute:\"width\"})],vt=[H({type:String,attribute:\"market\"})],_t=[H({type:String,attribute:\"creator\"})],bt=[H({type:Boolean,attribute:\"volume\",converter:(o,i)=>i===String?o===\"true\":i===Boolean?o:!1})],yt=[H({type:Boolean,attribute:\"chart\",converter:(o,i)=>i===String?o===\"true\":i===Boolean?o:!1})],gt=[ee()],mt=[ee()],ft=[ee()],dt=[ee()],wt){constructor(){super();M(this,we,$(g,8,this,\"light\")),$(g,11,this);M(this,ke,$(g,12,this,400)),$(g,15,this);M(this,Ce,$(g,16,this)),$(g,19,this);M(this,Ae,$(g,20,this)),$(g,23,this);M(this,Se,$(g,24,this,!1)),$(g,27,this);M(this,Ee,$(g,28,this,!1)),$(g,31,this);M(this,Me,$(g,32,this)),$(g,35,this);M(this,Pe,$(g,36,this)),$(g,39,this);M(this,Ne,$(g,40,this)),$(g,43,this);M(this,Te,$(g,44,this)),$(g,47,this);Le();}static get styles(){return pe` :host { --polymarket-color-white: #ffffff; --polymarket-color-black: #000000; --polymarket-color-gray-1: #333333; --polymarket-color-gray-2: #4f4f4f; --polymarket-color-gray-3: #828282; --polymarket-color-gray-4: #bdbdbd; --polymarket-color-gray-5: #e0e0e0; --polymarket-color-gray-6: #f2f2f2; --polymarket-radii-sm: 4px; --polymarket-radii-md: 8px; --polymarket-radii-lg: 12px; --polymarket-radii-full: 50%; --polymarket-space-1: 4px; --polymarket-space-2: 8px; --polymarket-space-3: 12px; --polymarket-space-4: 16px; --polymarket-font-size-sm: 11px; --polymarket-font-size-md: 13px; --polymarket-font-size-lg: 15px; --polymarket-font-size-xl: 18px; --polymarket-line-height-sm: 13px; --polymarket-line-height-md: 17px; --polymarket-line-height-lg: 19px; --polymarket-line-height-xl: 21px; --polymarket-font-weight-normal: 400; --polymarket-font-weight-medium: 500; --polymarket-font-weight-semi: 600; --polymarket-font-weight-bold: 700; display: block; width: 100%; height: 100%; font-family: \"Open Sauce Sans\", sans-serif; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } :host([theme=\"dark\"]) { --polymarket-color-white: #1d2b39; --polymarket-color-black: #ffffff; --polymarket-color-gray-1: #f2f2f2; --polymarket-color-gray-2: #858d92; --polymarket-color-gray-3: #858d92; --polymarket-color-gray-4: #425464; --polymarket-color-gray-5: #344452; --polymarket-color-gray-6: #2c3f4f; } :host * { box-sizing: border-box; } .container { display: flex; flex-direction: column; width: 100%; max-width: calc(100vw - 4px); height: fit-content; justify-content: center; align-items: center; padding: 2px; } .card-container { display: flex; flex-direction: column; width: 400px; max-width: calc(100vw - 8px); height: fit-content; padding: 20px; background-color: var(--polymarket-color-white); border-radius: var(--polymarket-radii-md); border: 1px solid var(--polymarket-color-gray-6); gap: 32px; } .top-row-container { display: flex; flex-direction: row; justify-content: space-between; align-items: center; height: 60px; width: 100%; gap: var(--polymarket-space-3); } .bottom-row-container { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; height: 32px; gap: var(--polymarket-space-3); } .top-row-left-container { display: flex; flex-direction: row; align-items: center; width: 100%; flex: 1; gap: var(--polymarket-space-3); img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--polymarket-radii-sm); } p { flex: 1; text-decoration: none; color: var(--polymarket-color-black); font-size: var(--polymarket-font-size-lg); line-height: var(--polymarket-line-height-lg); font-weight: var(--polymarket-font-weight-semi); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; transition: text-decoration-color 100ms ease; display: -webkit-box; cursor: pointer; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; &:hover { text-decoration-color: var(--polymarket-color-black); } } } .top-row-right-container { position: relative; align-items: center; width: 75px; height: 60px; overflow: visible; } .bottom-row-left-container { align-items: center; height: 24px; width: 114px; } .bottom-row-right-container { display: flex; flex-direction: row; align-items: center; width: auto; gap: var(--polymarket-space-3); } .typography-primary { color: var(--polymarket-color-gray-3); font-size: var(--polymarket-font-size-md); line-height: var(--polymarket-line-height-md); font-weight: var(--polymarket-font-weight-medium); } .typography-secondary { color: var(--polymarket-color-gray-3); font-size: var(--polymarket-font-size-sm); line-height: var(--polymarket-line-height-sm); font-weight: var(--polymarket-font-weight-medium); } .typography-number { text-transform: uppercase; } .button-primary { display: flex; justify-content: center; align-items: center; padding: 0px var(--polymarket-space-3); height: 32px; background-color: var(--polymarket-color-gray-6); border-radius: var(--polymarket-radii-md); color: var(--polymarket-color-black); font-size: var(--polymarket-font-size-md); line-height: var(--polymarket-line-height-md); font-weight: var(--polymarket-font-weight-semi); cursor: pointer; border: none; transition: background-color 100ms ease-in-out; gap: var(--polymarket-space-1); text-decoration: none; &:hover { background-color: var(--polymarket-color-gray-5); } } .gauge-text-container { position: absolute; background-color: transparent; border-radius: 100% / 100% 100% 0 0; left: 50%; top: calc(50% + 2px); transform: translate(-50%, -50%); width: calc(120px * 0.85); height: calc(60px * 0.85); display: flex; align-items: center; justify-content: flex-end; z-index: 3; } .gauge-subtext-container { position: absolute; left: 0; bottom: 0; width: 120px; height: 60px; transform: scale(1.1); background-color: transparent; display: flex; align-items: center; justify-content: flex-start; padding-top: 6px; z-index: 4; } .gauge-text { position: absolute; background-color: transparent; border-radius: 100% / 100% 100% 0 0; left: 50%; top: calc(50% + 2px); transform: translate(-50%, -50%); z-index: 3; margin: 0; color: var(--polymarket-color-black); font-size: var(--polymarket-font-size-lg); line-height: var(--polymarket-line-height-lg); font-weight: var(--polymarket-font-weight-bold); } .gauge-subtext { position: absolute; left: 50%; top: calc(50% + 18px); transform: translate(-50%, -50%); background-color: transparent; z-index: 4; margin: 0; color: var(--polymarket-color-gray-3); font-size: var(--polymarket-font-size-sm); line-height: var(--polymarket-line-height-sm); font-weight: var(--polymarket-font-weight-medium); } .gauge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-50% - 10px)) scaleX(1.1); } .gauge-track { position: absolute; top: 0; z-index: 1; stroke: var(--polymarket-color-gray-5); } :host([theme=\"dark\"]) { .gauge-track { stroke: var(--polymarket-color-gray-4); } } .gauge-fill { position: absolute; top: 0; z-index: 1; } .arrow-icon { transform: rotate(180deg); fill: var(--polymarket-color-black); path { fill: var(--polymarket-color-black); } } .polymarket-logo { path { fill: var(--polymarket-color-gray-4); } } :host([theme=\"dark\"]) { .polymarket-logo { path { fill: var(--polymarket-color-gray-3); } } } `}connectedCallback(){super.connectedCallback(),Le(),this.fetchMarketData();}firstUpdated(o){super.firstUpdated(o),this.initTheme();}initTheme(){document.querySelector(\"html\")?.setAttribute(\"theme\",this.theme);}getUtmParams(){let o=\"utm_medium=embed\",i=\"&utm_campaign=market\",u=`&utm_source=${window.location!=window.parent.location&&document.referrer?document.referrer:`${document.location.host}${document.location.pathname}`}`,p=this.creator?`&utm_content=${this.creator}`:\"\";return `${o}${i}${u}${p}`}async fetchMarketData(){if(this.marketSlug){let o=await xe({slug:this.marketSlug});this._market=o;let i=this.getUtmParams();this._href=o.events?.length&&o.events[0]?.slug?`https://polymarket.com/event/${o.events[0].slug}/${o.slug}?${i}`:`https://polymarket.com/market/${o.slug}?${i}`;let n=o.outcomePrices[0]?parseFloat(o.outcomePrices[0]):0,u=Math.min(Math.max(n*100,0),100),m=[0,10,20,30,40,50,60,70,80,90,100].sort((r,s)=>Math.abs(r-u)-Math.abs(s-u))[0];this._probability=u,this._fillPathD=Xt[m.toFixed(0)];}}onClick(){window.parent.window.open(this._href);}render(){return this._market?$e` <div class=\"container\"> <div class=\"card-container\"> <div class=\"top-row-container\"> <div class=\"top-row-left-container\"> <img src=\"${this._market.imageOptimized?.imageUrlSource??this._market.image}\" alt=\"icon\" /> <p @click=\"${this.onClick}\">${this._market.question}</p> </div> <div class=\"top-row-right-container\"> <svg width=\"75px\" height=\"35px\" viewBox=\"0 0 110 60\" class=\"gauge\" > <path id=\"gauge-track\" d=\"M5,55 A50,50 0 0 1 105,55\" class=\"gauge-track\" fill=\"none\" stroke-width=\"8\" /> <path id=\"gauge-fill\" d=${this._fillPathD} class=\"gauge-fill\" fill=\"none\" stroke=\"${(this._probability??0)<50?\"#E64800\":\"#00B955\"}\" stroke-width=\"8.5\" /> </svg> <p class=\"gauge-text\"> ${(0, He.default)(this._probability).format(\"0\")}% </p> <p class=\"gauge-subtext\">chance</p> </div> </div> <div class=\"bottom-row-container\"> <div class=\"bottom-row-left-container\"> <svg width=\"114\" height=\"24\" viewBox=\"0 0 168 38\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"polymarket-logo\" > <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M78.6391 27.3227V9.54077H75.7148V27.3227H78.6391ZM49.9319 21.095V27.3233H46.8903V10.4676H53.455C54.7469 10.4676 55.8645 10.6972 56.8079 11.1564C57.7513 11.6156 58.4697 12.2523 58.9629 13.0666C59.4561 13.8808 59.7027 14.8089 59.7027 15.8508C59.7027 16.939 59.4581 17.8767 58.9688 18.6639C58.4794 19.4511 57.767 20.0531 56.8314 20.4699C55.8958 20.8867 54.7704 21.095 53.455 21.095H49.9319ZM49.9318 18.6871H53.455C54.5432 18.6871 55.3477 18.4362 55.8683 17.9346C56.389 17.4329 56.6493 16.746 56.6493 15.8739C56.6493 15.3337 56.5358 14.8378 56.3087 14.3863C56.0817 13.9348 55.7294 13.5721 55.2518 13.2981C54.7742 13.0241 54.1753 12.8871 53.455 12.8871H49.9318V18.6871ZM67.2507 27.5554C68.4643 27.5554 69.5173 27.2815 70.4098 26.7335C71.3024 26.1855 71.9855 25.4292 72.4591 24.4644C72.9328 23.4997 73.1696 22.4076 73.1696 21.1882V20.9451C73.1696 19.7257 72.9328 18.6336 72.4591 17.6689C71.9855 16.7042 71.3004 15.9459 70.404 15.394C69.5075 14.8422 68.4486 14.5663 67.2273 14.5663C66.0216 14.5663 64.9724 14.8422 64.0799 15.394C63.1874 15.9459 62.5043 16.7042 62.0306 17.6689C61.557 18.6336 61.3201 19.7257 61.3201 20.9451V21.1882C61.3201 22.4076 61.557 23.4997 62.0306 24.4644C62.5043 25.4292 63.1893 26.1855 64.0858 26.7335C64.9822 27.2815 66.0372 27.5554 67.2507 27.5554ZM64.9959 24.1058C65.497 24.8622 66.2486 25.2404 67.2508 25.2404C67.9162 25.2404 68.4741 25.0609 68.9242 24.702C69.3744 24.3432 69.7072 23.8589 69.9225 23.2492C70.1378 22.6394 70.2454 21.9526 70.2454 21.1885V20.9454C70.2454 20.189 70.1378 19.5041 69.9225 18.8905C69.7072 18.2769 69.3725 17.7888 68.9184 17.426C68.4643 17.0633 67.9006 16.8819 67.2273 16.8819C66.5618 16.8819 66.0059 17.0633 65.5596 17.426C65.1134 17.7888 64.7826 18.2769 64.5673 18.8905C64.352 19.5041 64.2443 20.189 64.2443 20.9454V21.1885C64.2443 22.377 64.4949 23.3495 64.9959 24.1058ZM85.4179 31.4486C84.8189 32.0699 83.9636 32.3806 82.8518 32.3806C82.4682 32.3806 82.0024 32.3111 81.4543 32.1722V29.961L81.9945 29.9842C82.6913 29.9842 83.2218 29.8626 83.5858 29.6195C83.9499 29.3764 84.2376 28.95 84.449 28.3403L84.8483 27.2752L80.3856 14.7955H83.5447L86.1871 23.2002L88.7472 14.7955H91.8593L86.7978 29.2201C86.4768 30.0845 86.0168 30.8273 85.4179 31.4486ZM96.3776 27.3239V18.2709C96.8473 17.3679 97.642 16.9164 98.7616 16.9164C99.4975 16.9164 100.055 17.0939 100.435 17.4489C100.815 17.8039 101.005 18.4021 101.005 19.2433V27.3239H103.929V18.9771L103.917 18.7108C104.089 18.1628 104.381 17.7268 104.792 17.4026C105.203 17.0785 105.714 16.9164 106.325 16.9164C107.068 16.9164 107.626 17.0843 107.998 17.42C108.37 17.7557 108.556 18.3519 108.556 19.2086V27.3239H111.48V19.2202C111.48 17.6071 111.124 16.4282 110.411 15.6835C109.699 14.9387 108.669 14.5663 107.323 14.5663C106.469 14.5663 105.714 14.7342 105.056 15.0699C104.399 15.4056 103.854 15.8745 103.424 16.4765C103.103 15.8282 102.645 15.3477 102.05 15.0352C101.455 14.7226 100.758 14.5663 99.9594 14.5663C99.1765 14.5663 98.4778 14.6994 97.8632 14.9657C97.2486 15.232 96.726 15.6159 96.2954 16.1176L96.2014 14.7978H93.4534V27.3239H96.3776ZM120.167 27.1734C119.611 27.4281 118.981 27.5554 118.276 27.5554C117.446 27.5554 116.703 27.3934 116.045 27.0692C115.387 26.7451 114.874 26.2974 114.507 25.7263C114.139 25.1552 113.955 24.5146 113.955 23.8046C113.955 22.4694 114.458 21.4468 115.464 20.7367C116.47 20.0267 117.897 19.6717 119.744 19.6717H121.506V18.8613C121.506 18.1976 121.322 17.6785 120.954 17.3042C120.586 16.9299 120.042 16.7427 119.321 16.7427C118.891 16.7427 118.511 16.8161 118.182 16.9627C117.853 17.1093 117.599 17.31 117.419 17.5647C117.239 17.8194 117.149 18.1049 117.149 18.4214H114.225C114.225 17.7499 114.442 17.119 114.876 16.5286C115.311 15.9382 115.929 15.4635 116.732 15.1046C117.534 14.7457 118.452 14.5663 119.486 14.5663C120.457 14.5663 121.314 14.7284 122.058 15.0525C122.802 15.3767 123.383 15.8629 123.802 16.5112C124.221 17.1595 124.43 17.9506 124.43 18.8844V24.4066C124.43 25.5488 124.591 26.4556 124.912 27.1271V27.3239H121.929C121.803 27.0538 121.694 26.664 121.6 26.1547C121.2 26.5791 120.723 26.9187 120.167 27.1734ZM118.84 25.251C118.222 25.251 117.74 25.0908 117.396 24.7706C117.051 24.4503 116.879 24.0354 116.879 23.526C116.879 22.87 117.141 22.3607 117.666 21.9979C118.19 21.6352 118.962 21.4538 119.979 21.4538H121.506V23.7923C121.287 24.1936 120.94 24.5371 120.467 24.8226C119.993 25.1082 119.451 25.251 118.84 25.251ZM130.287 18.7918V27.3239H127.363V14.7978H130.146L130.228 16.2102C130.549 15.6854 130.949 15.2802 131.426 14.9946C131.904 14.7091 132.456 14.5663 133.082 14.5663C133.247 14.5663 133.432 14.5817 133.64 14.6126C133.847 14.6435 134.002 14.6782 134.104 14.7168L134.08 17.4373C133.689 17.3756 133.301 17.3447 132.918 17.3447C131.61 17.3447 130.733 17.8271 130.287 18.7918ZM138.786 27.3227V23.2592L140.067 21.9742L143.766 27.3227H147.148L141.946 20.0062L146.655 14.7966H143.132L139.656 18.6748L138.786 19.7399V9.54077H135.874V27.3227H138.786ZM157.057 26.884C156.235 27.3316 155.24 27.5554 154.074 27.5554C152.837 27.5554 151.756 27.2911 150.832 26.7624C149.909 26.2338 149.2 25.5102 148.707 24.5918C148.214 23.6734 147.967 22.643 147.967 21.5008V21.0261C147.967 19.7373 148.217 18.6047 148.719 17.6284C149.22 16.6521 149.909 15.8976 150.785 15.3651C151.662 14.8326 152.649 14.5663 153.745 14.5663C154.943 14.5663 155.949 14.8249 156.763 15.342C157.577 15.859 158.186 16.5826 158.589 17.5126C158.992 18.4426 159.194 19.5212 159.194 20.7483V21.9639H150.915C150.969 22.6044 151.138 23.1717 151.42 23.6656C151.701 24.1596 152.083 24.5455 152.565 24.8233C153.046 25.1012 153.608 25.2401 154.25 25.2401C155.565 25.2401 156.622 24.7307 157.421 23.712L158.983 25.2054C158.521 25.8768 157.879 26.4364 157.057 26.884ZM156.305 19.8803H150.973C151.106 18.931 151.408 18.194 151.878 17.6692C152.347 17.1443 152.966 16.8819 153.733 16.8819C154.594 16.8819 155.229 17.1424 155.636 17.6634C156.043 18.1843 156.266 18.85 156.305 19.6604V19.8803ZM167.317 27.2774C166.754 27.4626 166.12 27.5552 165.415 27.5552C164.381 27.5552 163.567 27.2735 162.972 26.7101C162.377 26.1467 162.08 25.2476 162.08 24.0127V16.9277H160.013V14.7976H162.08V11.7414H165.004V14.7976H167.235V16.9277H165.004V23.8159C165.004 24.3407 165.113 24.6977 165.333 24.8868C165.552 25.0759 165.881 25.1704 166.319 25.1704C166.632 25.1704 166.965 25.1318 167.317 25.0546V27.2774Z\" /> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M30.6525 17.4069V0L0 8.6333V8.77358V29.2266V29.3668L30.6525 38.0001V20.5933V17.4069ZM27.6857 16.5713V3.8835L5.16277 10.2277L27.6857 16.5713ZM25.4849 19.0001L2.96678 12.6572V25.3429L25.4849 19.0001ZM5.16283 27.7724L27.6857 34.1166V21.4289L5.16283 27.7724Z\" /> </svg> </div> <div class=\"bottom-row-right-container\"> <p class=\"typography-secondary typography-number\"> ${this.showVolume?`${(0, He.default)(this._market.volumeNum).format(\"0.[0]a\")}`:\"\"} <span style=\"text-transform: capitalize;\" >${this.showVolume?\"Bet\":\"\"}</span > </p> <div @click=\"${this.onClick}\" class=\"button-primary\"> More details <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"13\" height=\"10\" viewBox=\"0 0 19 16\" class=\"arrow-icon\" > <path d=\"M19 6.99997H4.414L9.707 1.70697L8.293 0.292969L0.585999 7.99997L8.293 15.707L9.707 14.293L4.414 8.99997H19V6.99997Z\" /> </svg> </div> </div> </div> </div> </div>`:$e` <span>${\" \"}</span> `}}"
"default": "class extends(wt=V,xt=[T({type:String,attribute:\"theme\",reflect:!0})],$t=[T({type:String,attribute:\"width\"})],vt=[T({type:String,attribute:\"market\"})],_t=[T({type:String,attribute:\"creator\"})],bt=[T({type:Boolean,attribute:\"volume\",converter:(o,i)=>i===String?o===\"true\":i===Boolean?o:!1})],yt=[T({type:Boolean,attribute:\"chart\",converter:(o,i)=>i===String?o===\"true\":i===Boolean?o:!1})],gt=[ee()],mt=[ee()],ft=[ee()],dt=[ee()],wt){constructor(){super();M(this,we,$(g,8,this,\"light\")),$(g,11,this);M(this,ke,$(g,12,this,400)),$(g,15,this);M(this,Ce,$(g,16,this)),$(g,19,this);M(this,Ae,$(g,20,this)),$(g,23,this);M(this,Se,$(g,24,this,!1)),$(g,27,this);M(this,Ee,$(g,28,this,!1)),$(g,31,this);M(this,Me,$(g,32,this)),$(g,35,this);M(this,Pe,$(g,36,this)),$(g,39,this);M(this,Ne,$(g,40,this)),$(g,43,this);M(this,Le,$(g,44,this)),$(g,47,this);He();}static get styles(){return pe` :host { --polymarket-color-white: #ffffff; --polymarket-color-black: #000000; --polymarket-color-gray-1: #333333; --polymarket-color-gray-2: #4f4f4f; --polymarket-color-gray-3: #828282; --polymarket-color-gray-4: #bdbdbd; --polymarket-color-gray-5: #e0e0e0; --polymarket-color-gray-6: #f2f2f2; --polymarket-radii-sm: 4px; --polymarket-radii-md: 8px; --polymarket-radii-lg: 12px; --polymarket-radii-full: 50%; --polymarket-space-1: 4px; --polymarket-space-2: 8px; --polymarket-space-3: 12px; --polymarket-space-4: 16px; --polymarket-font-size-sm: 11px; --polymarket-font-size-md: 13px; --polymarket-font-size-lg: 15px; --polymarket-font-size-xl: 18px; --polymarket-line-height-sm: 13px; --polymarket-line-height-md: 17px; --polymarket-line-height-lg: 19px; --polymarket-line-height-xl: 21px; --polymarket-font-weight-normal: 400; --polymarket-font-weight-medium: 500; --polymarket-font-weight-semi: 600; --polymarket-font-weight-bold: 700; display: block; width: 100%; height: 100%; font-family: \"Open Sauce Sans\", sans-serif; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } :host([theme=\"dark\"]) { --polymarket-color-white: #1d2b39; --polymarket-color-black: #ffffff; --polymarket-color-gray-1: #f2f2f2; --polymarket-color-gray-2: #858d92; --polymarket-color-gray-3: #858d92; --polymarket-color-gray-4: #425464; --polymarket-color-gray-5: #344452; --polymarket-color-gray-6: #2c3f4f; } :host * { box-sizing: border-box; } .container { display: flex; flex-direction: column; width: 100%; max-width: calc(100vw - 4px); height: fit-content; justify-content: center; align-items: center; padding: 2px; } .card-container { display: flex; flex-direction: column; width: 400px; max-width: calc(100vw - 8px); height: fit-content; padding: 20px; background-color: var(--polymarket-color-white); border-radius: var(--polymarket-radii-md); border: 1px solid var(--polymarket-color-gray-6); gap: 32px; } .top-row-container { display: flex; flex-direction: row; justify-content: space-between; align-items: center; height: 60px; width: 100%; gap: var(--polymarket-space-3); } .bottom-row-container { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; height: 32px; gap: var(--polymarket-space-3); } .top-row-left-container { display: flex; flex-direction: row; align-items: center; width: 100%; flex: 1; gap: var(--polymarket-space-3); img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--polymarket-radii-sm); } p { flex: 1; text-decoration: none; color: var(--polymarket-color-black); font-size: var(--polymarket-font-size-lg); line-height: var(--polymarket-line-height-lg); font-weight: var(--polymarket-font-weight-semi); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; transition: text-decoration-color 100ms ease; display: -webkit-box; cursor: pointer; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; &:hover { text-decoration-color: var(--polymarket-color-black); } } } .top-row-right-container { position: relative; align-items: center; width: 75px; height: 60px; overflow: visible; } .bottom-row-left-container { align-items: center; height: 24px; width: 114px; cursor: pointer; transition: opacity 100ms ease-in-out; opacity: 1; &:hover { opacity: 0.8; } } .bottom-row-right-container { display: flex; flex-direction: row; align-items: center; width: auto; gap: var(--polymarket-space-3); } .typography-primary { color: var(--polymarket-color-gray-3); font-size: var(--polymarket-font-size-md); line-height: var(--polymarket-line-height-md); font-weight: var(--polymarket-font-weight-medium); } .typography-secondary { color: var(--polymarket-color-gray-3); font-size: var(--polymarket-font-size-sm); line-height: var(--polymarket-line-height-sm); font-weight: var(--polymarket-font-weight-medium); } .typography-number { text-transform: uppercase; } .button-primary { display: flex; justify-content: center; align-items: center; padding: 0px var(--polymarket-space-3); height: 32px; background-color: var(--polymarket-color-gray-6); border-radius: var(--polymarket-radii-md); color: var(--polymarket-color-black); font-size: var(--polymarket-font-size-md); line-height: var(--polymarket-line-height-md); font-weight: var(--polymarket-font-weight-semi); cursor: pointer; border: none; transition: background-color 100ms ease-in-out; gap: var(--polymarket-space-1); text-decoration: none; &:hover { background-color: var(--polymarket-color-gray-5); } } .gauge-text-container { position: absolute; background-color: transparent; border-radius: 100% / 100% 100% 0 0; left: 50%; top: calc(50% + 2px); transform: translate(-50%, -50%); width: calc(120px * 0.85); height: calc(60px * 0.85); display: flex; align-items: center; justify-content: flex-end; z-index: 3; } .gauge-subtext-container { position: absolute; left: 0; bottom: 0; width: 120px; height: 60px; transform: scale(1.1); background-color: transparent; display: flex; align-items: center; justify-content: flex-start; padding-top: 6px; z-index: 4; } .gauge-text { position: absolute; background-color: transparent; border-radius: 100% / 100% 100% 0 0; left: 50%; top: calc(50% + 2px); transform: translate(-50%, -50%); z-index: 3; margin: 0; color: var(--polymarket-color-black); font-size: var(--polymarket-font-size-lg); line-height: var(--polymarket-line-height-lg); font-weight: var(--polymarket-font-weight-bold); } .gauge-subtext { position: absolute; left: 50%; top: calc(50% + 18px); transform: translate(-50%, -50%); background-color: transparent; z-index: 4; margin: 0; color: var(--polymarket-color-gray-3); font-size: var(--polymarket-font-size-sm); line-height: var(--polymarket-line-height-sm); font-weight: var(--polymarket-font-weight-medium); } .gauge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-50% - 10px)) scaleX(1.1); } .gauge-track { position: absolute; top: 0; z-index: 1; stroke: var(--polymarket-color-gray-5); } :host([theme=\"dark\"]) { .gauge-track { stroke: var(--polymarket-color-gray-4); } } .gauge-fill { position: absolute; top: 0; z-index: 1; } .arrow-icon { transform: rotate(180deg); fill: var(--polymarket-color-black); path { fill: var(--polymarket-color-black); } } .polymarket-logo { path { fill: var(--polymarket-color-gray-4); } } :host([theme=\"dark\"]) { .polymarket-logo { path { fill: var(--polymarket-color-gray-3); } } } `}connectedCallback(){super.connectedCallback(),He(),this.fetchMarketData();}firstUpdated(o){super.firstUpdated(o),this.initTheme();}initTheme(){document.querySelector(\"html\")?.setAttribute(\"theme\",this.theme);}getUtmParams(){let o=\"utm_medium=embed\",i=\"&utm_campaign=market\",u=`&utm_source=${window.location!=window.parent.location&&document.referrer?document.referrer:`${document.location.host}${document.location.pathname}`}`,p=this.creator?`&utm_content=${this.creator}`:\"\";return `${o}${i}${u}${p}`}async fetchMarketData(){if(this.marketSlug){let o=await xe({slug:this.marketSlug});this._market=o;let i=this.getUtmParams();this._href=o.events?.length&&o.events[0]?.slug?`https://polymarket.com/event/${o.events[0].slug}/${o.slug}?${i}`:`https://polymarket.com/market/${o.slug}?${i}`;let n=o.outcomePrices[0]?parseFloat(o.outcomePrices[0]):0,u=Math.min(Math.max(n*100,0),100),m=[0,10,20,30,40,50,60,70,80,90,100].sort((r,s)=>Math.abs(r-u)-Math.abs(s-u))[0];this._probability=u,this._fillPathD=Xt[m.toFixed(0)];}}onClick(){window.parent.window.open(this._href);}onLogoClick(){window.parent.window.open(\"https://polymarket.com\");}render(){return this._market?$e` <div class=\"container\"> <div class=\"card-container\"> <div class=\"top-row-container\"> <div class=\"top-row-left-container\"> <img src=\"${this._market.imageOptimized?.imageUrlSource??this._market.image}\" alt=\"icon\" /> <p @click=\"${this.onClick}\">${this._market.question}</p> </div> <div class=\"top-row-right-container\"> <svg width=\"75px\" height=\"35px\" viewBox=\"0 0 110 60\" class=\"gauge\" > <path id=\"gauge-track\" d=\"M5,55 A50,50 0 0 1 105,55\" class=\"gauge-track\" fill=\"none\" stroke-width=\"8\" /> <path id=\"gauge-fill\" d=${this._fillPathD} class=\"gauge-fill\" fill=\"none\" stroke=\"${(this._probability??0)<50?\"#E64800\":\"#00B955\"}\" stroke-width=\"8.5\" /> </svg> <p class=\"gauge-text\"> ${(0, Te.default)(this._probability).format(\"0\")}% </p> <p class=\"gauge-subtext\">chance</p> </div> </div> <div class=\"bottom-row-container\"> <div class=\"bottom-row-left-container\" @click=\"${this.onLogoClick}\" > <svg width=\"114\" height=\"24\" viewBox=\"0 0 168 38\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"polymarket-logo\" > <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M78.6391 27.3227V9.54077H75.7148V27.3227H78.6391ZM49.9319 21.095V27.3233H46.8903V10.4676H53.455C54.7469 10.4676 55.8645 10.6972 56.8079 11.1564C57.7513 11.6156 58.4697 12.2523 58.9629 13.0666C59.4561 13.8808 59.7027 14.8089 59.7027 15.8508C59.7027 16.939 59.4581 17.8767 58.9688 18.6639C58.4794 19.4511 57.767 20.0531 56.8314 20.4699C55.8958 20.8867 54.7704 21.095 53.455 21.095H49.9319ZM49.9318 18.6871H53.455C54.5432 18.6871 55.3477 18.4362 55.8683 17.9346C56.389 17.4329 56.6493 16.746 56.6493 15.8739C56.6493 15.3337 56.5358 14.8378 56.3087 14.3863C56.0817 13.9348 55.7294 13.5721 55.2518 13.2981C54.7742 13.0241 54.1753 12.8871 53.455 12.8871H49.9318V18.6871ZM67.2507 27.5554C68.4643 27.5554 69.5173 27.2815 70.4098 26.7335C71.3024 26.1855 71.9855 25.4292 72.4591 24.4644C72.9328 23.4997 73.1696 22.4076 73.1696 21.1882V20.9451C73.1696 19.7257 72.9328 18.6336 72.4591 17.6689C71.9855 16.7042 71.3004 15.9459 70.404 15.394C69.5075 14.8422 68.4486 14.5663 67.2273 14.5663C66.0216 14.5663 64.9724 14.8422 64.0799 15.394C63.1874 15.9459 62.5043 16.7042 62.0306 17.6689C61.557 18.6336 61.3201 19.7257 61.3201 20.9451V21.1882C61.3201 22.4076 61.557 23.4997 62.0306 24.4644C62.5043 25.4292 63.1893 26.1855 64.0858 26.7335C64.9822 27.2815 66.0372 27.5554 67.2507 27.5554ZM64.9959 24.1058C65.497 24.8622 66.2486 25.2404 67.2508 25.2404C67.9162 25.2404 68.4741 25.0609 68.9242 24.702C69.3744 24.3432 69.7072 23.8589 69.9225 23.2492C70.1378 22.6394 70.2454 21.9526 70.2454 21.1885V20.9454C70.2454 20.189 70.1378 19.5041 69.9225 18.8905C69.7072 18.2769 69.3725 17.7888 68.9184 17.426C68.4643 17.0633 67.9006 16.8819 67.2273 16.8819C66.5618 16.8819 66.0059 17.0633 65.5596 17.426C65.1134 17.7888 64.7826 18.2769 64.5673 18.8905C64.352 19.5041 64.2443 20.189 64.2443 20.9454V21.1885C64.2443 22.377 64.4949 23.3495 64.9959 24.1058ZM85.4179 31.4486C84.8189 32.0699 83.9636 32.3806 82.8518 32.3806C82.4682 32.3806 82.0024 32.3111 81.4543 32.1722V29.961L81.9945 29.9842C82.6913 29.9842 83.2218 29.8626 83.5858 29.6195C83.9499 29.3764 84.2376 28.95 84.449 28.3403L84.8483 27.2752L80.3856 14.7955H83.5447L86.1871 23.2002L88.7472 14.7955H91.8593L86.7978 29.2201C86.4768 30.0845 86.0168 30.8273 85.4179 31.4486ZM96.3776 27.3239V18.2709C96.8473 17.3679 97.642 16.9164 98.7616 16.9164C99.4975 16.9164 100.055 17.0939 100.435 17.4489C100.815 17.8039 101.005 18.4021 101.005 19.2433V27.3239H103.929V18.9771L103.917 18.7108C104.089 18.1628 104.381 17.7268 104.792 17.4026C105.203 17.0785 105.714 16.9164 106.325 16.9164C107.068 16.9164 107.626 17.0843 107.998 17.42C108.37 17.7557 108.556 18.3519 108.556 19.2086V27.3239H111.48V19.2202C111.48 17.6071 111.124 16.4282 110.411 15.6835C109.699 14.9387 108.669 14.5663 107.323 14.5663C106.469 14.5663 105.714 14.7342 105.056 15.0699C104.399 15.4056 103.854 15.8745 103.424 16.4765C103.103 15.8282 102.645 15.3477 102.05 15.0352C101.455 14.7226 100.758 14.5663 99.9594 14.5663C99.1765 14.5663 98.4778 14.6994 97.8632 14.9657C97.2486 15.232 96.726 15.6159 96.2954 16.1176L96.2014 14.7978H93.4534V27.3239H96.3776ZM120.167 27.1734C119.611 27.4281 118.981 27.5554 118.276 27.5554C117.446 27.5554 116.703 27.3934 116.045 27.0692C115.387 26.7451 114.874 26.2974 114.507 25.7263C114.139 25.1552 113.955 24.5146 113.955 23.8046C113.955 22.4694 114.458 21.4468 115.464 20.7367C116.47 20.0267 117.897 19.6717 119.744 19.6717H121.506V18.8613C121.506 18.1976 121.322 17.6785 120.954 17.3042C120.586 16.9299 120.042 16.7427 119.321 16.7427C118.891 16.7427 118.511 16.8161 118.182 16.9627C117.853 17.1093 117.599 17.31 117.419 17.5647C117.239 17.8194 117.149 18.1049 117.149 18.4214H114.225C114.225 17.7499 114.442 17.119 114.876 16.5286C115.311 15.9382 115.929 15.4635 116.732 15.1046C117.534 14.7457 118.452 14.5663 119.486 14.5663C120.457 14.5663 121.314 14.7284 122.058 15.0525C122.802 15.3767 123.383 15.8629 123.802 16.5112C124.221 17.1595 124.43 17.9506 124.43 18.8844V24.4066C124.43 25.5488 124.591 26.4556 124.912 27.1271V27.3239H121.929C121.803 27.0538 121.694 26.664 121.6 26.1547C121.2 26.5791 120.723 26.9187 120.167 27.1734ZM118.84 25.251C118.222 25.251 117.74 25.0908 117.396 24.7706C117.051 24.4503 116.879 24.0354 116.879 23.526C116.879 22.87 117.141 22.3607 117.666 21.9979C118.19 21.6352 118.962 21.4538 119.979 21.4538H121.506V23.7923C121.287 24.1936 120.94 24.5371 120.467 24.8226C119.993 25.1082 119.451 25.251 118.84 25.251ZM130.287 18.7918V27.3239H127.363V14.7978H130.146L130.228 16.2102C130.549 15.6854 130.949 15.2802 131.426 14.9946C131.904 14.7091 132.456 14.5663 133.082 14.5663C133.247 14.5663 133.432 14.5817 133.64 14.6126C133.847 14.6435 134.002 14.6782 134.104 14.7168L134.08 17.4373C133.689 17.3756 133.301 17.3447 132.918 17.3447C131.61 17.3447 130.733 17.8271 130.287 18.7918ZM138.786 27.3227V23.2592L140.067 21.9742L143.766 27.3227H147.148L141.946 20.0062L146.655 14.7966H143.132L139.656 18.6748L138.786 19.7399V9.54077H135.874V27.3227H138.786ZM157.057 26.884C156.235 27.3316 155.24 27.5554 154.074 27.5554C152.837 27.5554 151.756 27.2911 150.832 26.7624C149.909 26.2338 149.2 25.5102 148.707 24.5918C148.214 23.6734 147.967 22.643 147.967 21.5008V21.0261C147.967 19.7373 148.217 18.6047 148.719 17.6284C149.22 16.6521 149.909 15.8976 150.785 15.3651C151.662 14.8326 152.649 14.5663 153.745 14.5663C154.943 14.5663 155.949 14.8249 156.763 15.342C157.577 15.859 158.186 16.5826 158.589 17.5126C158.992 18.4426 159.194 19.5212 159.194 20.7483V21.9639H150.915C150.969 22.6044 151.138 23.1717 151.42 23.6656C151.701 24.1596 152.083 24.5455 152.565 24.8233C153.046 25.1012 153.608 25.2401 154.25 25.2401C155.565 25.2401 156.622 24.7307 157.421 23.712L158.983 25.2054C158.521 25.8768 157.879 26.4364 157.057 26.884ZM156.305 19.8803H150.973C151.106 18.931 151.408 18.194 151.878 17.6692C152.347 17.1443 152.966 16.8819 153.733 16.8819C154.594 16.8819 155.229 17.1424 155.636 17.6634C156.043 18.1843 156.266 18.85 156.305 19.6604V19.8803ZM167.317 27.2774C166.754 27.4626 166.12 27.5552 165.415 27.5552C164.381 27.5552 163.567 27.2735 162.972 26.7101C162.377 26.1467 162.08 25.2476 162.08 24.0127V16.9277H160.013V14.7976H162.08V11.7414H165.004V14.7976H167.235V16.9277H165.004V23.8159C165.004 24.3407 165.113 24.6977 165.333 24.8868C165.552 25.0759 165.881 25.1704 166.319 25.1704C166.632 25.1704 166.965 25.1318 167.317 25.0546V27.2774Z\" /> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M30.6525 17.4069V0L0 8.6333V8.77358V29.2266V29.3668L30.6525 38.0001V20.5933V17.4069ZM27.6857 16.5713V3.8835L5.16277 10.2277L27.6857 16.5713ZM25.4849 19.0001L2.96678 12.6572V25.3429L25.4849 19.0001ZM5.16283 27.7724L27.6857 34.1166V21.4289L5.16283 27.7724Z\" /> </svg> </div> <div class=\"bottom-row-right-container\"> <p class=\"typography-secondary typography-number\"> ${this.showVolume?`${(0, Te.default)(this._market.volumeNum).format(\"0.[0]a\")}`:\"\"} <span style=\"text-transform: capitalize;\" >${this.showVolume?\"Vol.\":\"\"}</span > </p> <div @click=\"${this.onClick}\" class=\"button-primary\"> View market <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"13\" height=\"10\" viewBox=\"0 0 19 16\" class=\"arrow-icon\" > <path d=\"M19 6.99997H4.414L9.707 1.70697L8.293 0.292969L0.585999 7.99997L8.293 15.707L9.707 14.293L4.414 8.99997H19V6.99997Z\" /> </svg> </div> </div> </div> </div> </div>`:$e` <span>${\" \"}</span> `}}"
}

@@ -509,2 +509,7 @@ ],

"kind": "method",
"name": "onLogoClick",
"privacy": "private"
},
{
"kind": "method",
"name": "render"

@@ -511,0 +516,0 @@ }

@@ -23,2 +23,3 @@ import * as lit_html from 'lit-html';

private onClick;
private onLogoClick;
render(): lit_html.TemplateResult<1>;

@@ -25,0 +26,0 @@ }

@@ -1,4 +0,4 @@

var ze=Object.create;var D=Object.defineProperty;var Be=Object.getOwnPropertyDescriptor;var Ct=Object.getOwnPropertyNames;var At=Object.getPrototypeOf,St=Object.prototype.hasOwnProperty;var je=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),B=t=>{throw TypeError(t)};var Et=(t,e,o)=>e in t?D(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var Fe=(t,e)=>D(t,"name",{value:e,configurable:!0});var Mt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Pt=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ct(e))!St.call(t,n)&&n!==o&&D(t,n,{get:()=>e[n],enumerable:!(i=Be(e,n))||i.enumerable});return t};var Nt=(t,e,o)=>(o=t!=null?ze(At(t)):{},Pt(D(o,"default",{value:t,enumerable:!0}),t));var Ie=t=>[,,,ze(t?.[je("metadata")]??null)],Ze=["class","method","getter","setter","accessor","field","value","get","set"],Z=t=>t!==void 0&&typeof t!="function"?B("Function expected"):t,Tt=(t,e,o,i,n)=>({kind:Ze[t],name:e,metadata:i,addInitializer:u=>o._?B("Already initialized"):n.push(Z(u||null))}),Ht=(t,e)=>Et(e,je("metadata"),t[3]),$=(t,e,o,i)=>{for(var n=0,u=t[e>>1],p=u&&u.length;n<p;n++)e&1?u[n].call(o):i=u[n].call(o,i);return i},A=(t,e,o,i,n,u)=>{var p,m,r,s,h,a=e&7,l=!!(e&8),c=!!(e&16),d=a>3?t.length+1:a?l?1:2:0,f=Ze[a+5],v=a>3&&(t[d-1]=[]),y=t[d]||(t[d]=[]),_=a&&(!c&&!l&&(n=n.prototype),a<5&&(a>3||!c)&&Be(a<4?n:{get[o](){return Ue(this,u)},set[o](b){return Re(this,u,b)}},o));a?c&&a<4&&Fe(u,(a>2?"set ":a>1?"get ":"")+o):Fe(n,o);for(var S=i.length-1;S>=0;S--)s=Tt(a,o,r={},t[3],y),a&&(s.static=l,s.private=c,h=s.access={has:c?b=>Lt(n,b):b=>o in b},a^3&&(h.get=c?b=>(a^1?Ue:Ot)(b,n,a^4?u:_.get):b=>b[o]),a>2&&(h.set=c?(b,P)=>Re(b,n,P,a^4?u:_.set):(b,P)=>b[o]=P)),m=(0, i[S])(a?a<4?c?u:_[f]:a>4?void 0:{get:_.get,set:_.set}:n,s),r._=1,a^4||m===void 0?Z(m)&&(a>4?v.unshift(m):a?c?u=m:_[f]=m:n=m):typeof m!="object"||m===null?B("Object expected"):(Z(p=m.get)&&(_.get=p),Z(p=m.set)&&(_.set=p),Z(p=m.init)&&v.unshift(p));return a||Ht(t,n),_&&D(n,o,_),c?a^4?u:_:n};var ue=(t,e,o)=>e.has(t)||B("Cannot "+o),Lt=(t,e)=>Object(e)!==e?B('Cannot use the "in" operator on this value'):t.has(e),Ue=(t,e,o)=>(ue(t,e,"read from private field"),o?o.call(t):e.get(t)),M=(t,e,o)=>e.has(t)?B("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),Re=(t,e,o,i)=>(ue(t,e,"write to private field"),i?i.call(t,o):e.set(t,o),o),Ot=(t,e,o)=>(ue(t,e,"access private method"),o);var ht=Mt((ut,le)=>{(function(t,e){typeof define=="function"&&define.amd?define(e):typeof le=="object"&&le.exports?le.exports=e():t.numeral=e();})(ut,function(){var t,e,o="2.0.6",i={},n={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},p={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function m(r,s){this._input=r,this._value=s;}return t=function(r){var s,h,a,l;if(t.isNumeral(r))s=r.value();else if(r===0||typeof r>"u")s=0;else if(r===null||e.isNaN(r))s=null;else if(typeof r=="string")if(p.zeroFormat&&r===p.zeroFormat)s=0;else if(p.nullFormat&&r===p.nullFormat||!r.replace(/[^0-9]+/g,"").length)s=null;else {for(h in i)if(l=typeof i[h].regexps.unformat=="function"?i[h].regexps.unformat():i[h].regexps.unformat,l&&r.match(l)){a=i[h].unformat;break}a=a||t._.stringToNumber,s=a(r);}else s=Number(r)||null;return new m(r,s)},t.version=o,t.isNumeral=function(r){return r instanceof m},t._=e={numberToFormat:function(r,s,h){var a=n[t.options.currentLocale],l=!1,c=!1,d=0,f="",v=1e12,y=1e9,_=1e6,S=1e3,b="",P=!1,C,L,w,E,ce,Oe,N;if(r=r||0,L=Math.abs(r),t._.includes(s,"(")?(l=!0,s=s.replace(/[\(|\)]/g,"")):(t._.includes(s,"+")||t._.includes(s,"-"))&&(ce=t._.includes(s,"+")?s.indexOf("+"):r<0?s.indexOf("-"):-1,s=s.replace(/[\+|\-]/g,"")),t._.includes(s,"a")&&(C=s.match(/a(k|m|b|t)?/),C=C?C[1]:!1,t._.includes(s," a")&&(f=" "),s=s.replace(new RegExp(f+"a[kmbt]?"),""),L>=v&&!C||C==="t"?(f+=a.abbreviations.trillion,r=r/v):L<v&&L>=y&&!C||C==="b"?(f+=a.abbreviations.billion,r=r/y):L<y&&L>=_&&!C||C==="m"?(f+=a.abbreviations.million,r=r/_):(L<_&&L>=S&&!C||C==="k")&&(f+=a.abbreviations.thousand,r=r/S)),t._.includes(s,"[.]")&&(c=!0,s=s.replace("[.]",".")),w=r.toString().split(".")[0],E=s.split(".")[1],Oe=s.indexOf(","),d=(s.split(".")[0].split(",")[0].match(/0/g)||[]).length,E?(t._.includes(E,"[")?(E=E.replace("]",""),E=E.split("["),b=t._.toFixed(r,E[0].length+E[1].length,h,E[1].length)):b=t._.toFixed(r,E.length,h),w=b.split(".")[0],t._.includes(b,".")?b=a.delimiters.decimal+b.split(".")[1]:b="",c&&Number(b.slice(1))===0&&(b="")):w=t._.toFixed(r,0,h),f&&!C&&Number(w)>=1e3&&f!==a.abbreviations.trillion)switch(w=String(Number(w)/1e3),f){case a.abbreviations.thousand:f=a.abbreviations.million;break;case a.abbreviations.million:f=a.abbreviations.billion;break;case a.abbreviations.billion:f=a.abbreviations.trillion;break}if(t._.includes(w,"-")&&(w=w.slice(1),P=!0),w.length<d)for(var Ve=d-w.length;Ve>0;Ve--)w="0"+w;return Oe>-1&&(w=w.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+a.delimiters.thousands)),s.indexOf(".")===0&&(w=""),N=w+b+(f||""),l?N=(l&&P?"(":"")+N+(l&&P?")":""):ce>=0?N=ce===0?(P?"-":"+")+N:N+(P?"-":"+"):P&&(N="-"+N),N},stringToNumber:function(r){var s=n[p.currentLocale],h=r,a={thousand:3,million:6,billion:9,trillion:12},l,c,f;if(p.zeroFormat&&r===p.zeroFormat)c=0;else if(p.nullFormat&&r===p.nullFormat||!r.replace(/[^0-9]+/g,"").length)c=null;else {c=1,s.delimiters.decimal!=="."&&(r=r.replace(/\./g,"").replace(s.delimiters.decimal,"."));for(l in a)if(f=new RegExp("[^a-zA-Z]"+s.abbreviations[l]+"(?:\\)|(\\"+s.currency.symbol+")?(?:\\))?)?$"),h.match(f)){c*=Math.pow(10,a[l]);break}c*=(r.split("-").length+Math.min(r.split("(").length-1,r.split(")").length-1))%2?1:-1,r=r.replace(/[^0-9\.]+/g,""),c*=Number(r);}return c},isNaN:function(r){return typeof r=="number"&&isNaN(r)},includes:function(r,s){return r.indexOf(s)!==-1},insert:function(r,s,h){return r.slice(0,h)+s+r.slice(h)},reduce:function(r,s){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof s!="function")throw new TypeError(s+" is not a function");var h=Object(r),a=h.length>>>0,l=0,c;if(arguments.length===3)c=arguments[2];else {for(;l<a&&!(l in h);)l++;if(l>=a)throw new TypeError("Reduce of empty array with no initial value");c=h[l++];}for(;l<a;l++)l in h&&(c=s(c,h[l],l,h));return c},multiplier:function(r){var s=r.toString().split(".");return s.length<2?1:Math.pow(10,s[1].length)},correctionFactor:function(){var r=Array.prototype.slice.call(arguments);return r.reduce(function(s,h){var a=e.multiplier(h);return s>a?s:a},1)},toFixed:function(r,s,h,a){var l=r.toString().split("."),c=s-(a||0),d,f,v,y;return l.length===2?d=Math.min(Math.max(l[1].length,c),s):d=c,v=Math.pow(10,d),y=(h(r+"e+"+d)/v).toFixed(d),a>s-d&&(f=new RegExp("\\.?0{1,"+(a-(s-d))+"}$"),y=y.replace(f,"")),y}},t.options=p,t.formats=i,t.locales=n,t.locale=function(r){return r&&(p.currentLocale=r.toLowerCase()),p.currentLocale},t.localeData=function(r){if(!r)return n[p.currentLocale];if(r=r.toLowerCase(),!n[r])throw new Error("Unknown locale : "+r);return n[r]},t.reset=function(){for(var r in u)p[r]=u[r];},t.zeroFormat=function(r){p.zeroFormat=typeof r=="string"?r:null;},t.nullFormat=function(r){p.nullFormat=typeof r=="string"?r:null;},t.defaultFormat=function(r){p.defaultFormat=typeof r=="string"?r:"0.0";},t.register=function(r,s,h){if(s=s.toLowerCase(),this[r+"s"][s])throw new TypeError(s+" "+r+" already registered.");return this[r+"s"][s]=h,h},t.validate=function(r,s){var h,a,l,c,d,f,v,y;if(typeof r!="string"&&(r+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",r)),r=r.trim(),r.match(/^\d+$/))return !0;if(r==="")return !1;try{v=t.localeData(s);}catch{v=t.localeData(t.locale());}return l=v.currency.symbol,d=v.abbreviations,h=v.delimiters.decimal,v.delimiters.thousands==="."?a="\\.":a=v.delimiters.thousands,y=r.match(/^[^\d]+/),y!==null&&(r=r.substr(1),y[0]!==l)||(y=r.match(/[^\d]+$/),y!==null&&(r=r.slice(0,-1),y[0]!==d.thousand&&y[0]!==d.million&&y[0]!==d.billion&&y[0]!==d.trillion))?!1:(f=new RegExp(a+"{2}"),r.match(/[^\d.,]/g)?!1:(c=r.split(h),c.length>2?!1:c.length<2?!!c[0].match(/^\d+.*\d$/)&&!c[0].match(f):c[0].length===1?!!c[0].match(/^\d+$/)&&!c[0].match(f)&&!!c[1].match(/^\d+$/):!!c[0].match(/^\d+.*\d$/)&&!c[0].match(f)&&!!c[1].match(/^\d+$/)))},t.fn=m.prototype={clone:function(){return t(this)},format:function(r,s){var h=this._value,a=r||p.defaultFormat,l,c,d;if(s=s||Math.round,h===0&&p.zeroFormat!==null)c=p.zeroFormat;else if(h===null&&p.nullFormat!==null)c=p.nullFormat;else {for(l in i)if(a.match(i[l].regexps.format)){d=i[l].format;break}d=d||t._.numberToFormat,c=d(h,a,s);}return c},value:function(){return this._value},input:function(){return this._input},set:function(r){return this._value=Number(r),this},add:function(r){var s=e.correctionFactor.call(null,this._value,r);function h(a,l,c,d){return a+Math.round(s*l)}return this._value=e.reduce([this._value,r],h,0)/s,this},subtract:function(r){var s=e.correctionFactor.call(null,this._value,r);function h(a,l,c,d){return a-Math.round(s*l)}return this._value=e.reduce([r],h,Math.round(this._value*s))/s,this},multiply:function(r){function s(h,a,l,c){var d=e.correctionFactor(h,a);return Math.round(h*d)*Math.round(a*d)/Math.round(d*d)}return this._value=e.reduce([this._value,r],s,1),this},divide:function(r){function s(h,a,l,c){var d=e.correctionFactor(h,a);return Math.round(h*d)/Math.round(a*d)}return this._value=e.reduce([this._value,r],s),this},difference:function(r){return Math.abs(t(this._value).subtract(r).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(r){var s=r%10;return ~~(r%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(r,s,h){var a=t._.includes(s," BPS")?" ":"",l;return r=r*1e4,s=s.replace(/\s?BPS/,""),l=t._.numberToFormat(r,s,h),t._.includes(l,")")?(l=l.split(""),l.splice(-1,0,a+"BPS"),l=l.join("")):l=l+a+"BPS",l},unformat:function(r){return +(t._.stringToNumber(r)*1e-4).toFixed(15)}});}(),function(){var r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},s={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=r.suffixes.concat(s.suffixes.filter(function(l){return r.suffixes.indexOf(l)<0})),a=h.join("|");a="("+a.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(a)},format:function(l,c,d){var f,v=t._.includes(c,"ib")?s:r,y=t._.includes(c," b")||t._.includes(c," ib")?" ":"",_,S,b;for(c=c.replace(/\s?i?b/,""),_=0;_<=v.suffixes.length;_++)if(S=Math.pow(v.base,_),b=Math.pow(v.base,_+1),l===null||l===0||l>=S&&l<b){y+=v.suffixes[_],S>0&&(l=l/S);break}return f=t._.numberToFormat(l,c,d),f+y},unformat:function(l){var c=t._.stringToNumber(l),d,f;if(c){for(d=r.suffixes.length-1;d>=0;d--){if(t._.includes(l,r.suffixes[d])){f=Math.pow(r.base,d);break}if(t._.includes(l,s.suffixes[d])){f=Math.pow(s.base,d);break}}c*=f||1;}return c}});}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(r,s,h){var a=t.locales[t.options.currentLocale],l={before:s.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:s.match(/([\+|\-|\)|\s|\$]*)$/)[0]},c,d,f;for(s=s.replace(/\s?\$\s?/,""),c=t._.numberToFormat(r,s,h),r>=0?(l.before=l.before.replace(/[\-\(]/,""),l.after=l.after.replace(/[\-\)]/,"")):r<0&&!t._.includes(l.before,"-")&&!t._.includes(l.before,"(")&&(l.before="-"+l.before),f=0;f<l.before.length;f++)switch(d=l.before[f],d){case"$":c=t._.insert(c,a.currency.symbol,f);break;case" ":c=t._.insert(c," ",f+a.currency.symbol.length-1);break}for(f=l.after.length-1;f>=0;f--)switch(d=l.after[f],d){case"$":c=f===l.after.length-1?c+a.currency.symbol:t._.insert(c,a.currency.symbol,-(l.after.length-(1+f)));break;case" ":c=f===l.after.length-1?c+" ":t._.insert(c," ",-(l.after.length-(1+f)+a.currency.symbol.length-1));break}return c}});}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(r,s,h){var a,l=typeof r=="number"&&!t._.isNaN(r)?r.toExponential():"0e+0",c=l.split("e");return s=s.replace(/e[\+|\-]{1}0/,""),a=t._.numberToFormat(Number(c[0]),s,h),a+"e"+c[1]},unformat:function(r){var s=t._.includes(r,"e+")?r.split("e+"):r.split("e-"),h=Number(s[0]),a=Number(s[1]);a=t._.includes(r,"e-")?a*=-1:a;function l(c,d,f,v){var y=t._.correctionFactor(c,d),_=c*y*(d*y)/(y*y);return _}return t._.reduce([h,Math.pow(10,a)],l,1)}});}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(r,s,h){var a=t.locales[t.options.currentLocale],l,c=t._.includes(s," o")?" ":"";return s=s.replace(/\s?o/,""),c+=a.ordinal(r),l=t._.numberToFormat(r,s,h),l+c}});}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(r,s,h){var a=t._.includes(s," %")?" ":"",l;return t.options.scalePercentBy100&&(r=r*100),s=s.replace(/\s?\%/,""),l=t._.numberToFormat(r,s,h),t._.includes(l,")")?(l=l.split(""),l.splice(-1,0,a+"%"),l=l.join("")):l=l+a+"%",l},unformat:function(r){var s=t._.stringToNumber(r);return t.options.scalePercentBy100?s*.01:s}});}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(r,s,h){var a=Math.floor(r/60/60),l=Math.floor((r-a*60*60)/60),c=Math.round(r-a*60*60-l*60);return a+":"+(l<10?"0"+l:l)+":"+(c<10?"0"+c:c)},unformat:function(r){var s=r.split(":"),h=0;return s.length===3?(h=h+Number(s[0])*60*60,h=h+Number(s[1])*60,h=h+Number(s[2])):s.length===2&&(h=h+Number(s[0])*60,h=h+Number(s[1])),Number(h)}});}(),t});});var te=globalThis,re=te.ShadowRoot&&(te.ShadyCSS===void 0||te.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,he=Symbol(),De=new WeakMap,q=class{constructor(e,o,i){if(this._$cssResult$=!0,i!==he)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=o;}get styleSheet(){let e=this.o,o=this.t;if(re&&e===void 0){let i=o!==void 0&&o.length===1;i&&(e=De.get(o)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&De.set(o,e));}return e}toString(){return this.cssText}},qe=t=>new q(typeof t=="string"?t:t+"",void 0,he),pe=(t,...e)=>{let o=t.length===1?t[0]:e.reduce((i,n,u)=>i+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[u+1],t[0]);return new q(o,t,he)},de=(t,e)=>{if(re)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let i=document.createElement("style"),n=te.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i);}},oe=re?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let o="";for(let i of e.cssRules)o+=i.cssText;return qe(o)})(t):t;var{is:Vt,defineProperty:Ft,getOwnPropertyDescriptor:Ut,getOwnPropertyNames:Rt,getOwnPropertySymbols:zt,getPrototypeOf:Bt}=Object,ie=globalThis,Je=ie.trustedTypes,jt=Je?Je.emptyScript:"",It=ie.reactiveElementPolyfillSupport,J=(t,e)=>t,W={toAttribute(t,e){switch(e){case Boolean:t=t?jt:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t);}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t);}catch{o=null;}}return o}},se=(t,e)=>!Vt(t,e),We={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:se};Symbol.metadata??=Symbol("metadata"),ie.litPropertyMetadata??=new WeakMap;var T=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,o=We){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(e,o),!o.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,o);n!==void 0&&Ft(this.prototype,e,n);}}static getPropertyDescriptor(e,o,i){let{get:n,set:u}=Ut(this.prototype,e)??{get(){return this[o]},set(p){this[o]=p;}};return {get(){return n?.call(this)},set(p){let m=n?.call(this);u.call(this,p),this.requestUpdate(e,m,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??We}static _$Ei(){if(this.hasOwnProperty(J("elementProperties")))return;let e=Bt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties);}static finalize(){if(this.hasOwnProperty(J("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(J("properties"))){let o=this.properties,i=[...Rt(o),...zt(o)];for(let n of i)this.createProperty(n,o[n]);}let e=this[Symbol.metadata];if(e!==null){let o=litPropertyMetadata.get(e);if(o!==void 0)for(let[i,n]of o)this.elementProperties.set(i,n);}this._$Eh=new Map;for(let[o,i]of this.elementProperties){let n=this._$Eu(o,i);n!==void 0&&this._$Eh.set(n,o);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(e){let o=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)o.unshift(oe(n));}else e!==void 0&&o.push(oe(e));return o}static _$Eu(e,o){let i=o.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this));}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.();}removeController(e){this._$EO?.delete(e);}_$E_(){let e=new Map,o=this.constructor.elementProperties;for(let i of o.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e);}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return de(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.());}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.());}attributeChangedCallback(e,o,i){this._$AK(e,i);}_$EC(e,o){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let u=(i.converter?.toAttribute!==void 0?i.converter:W).toAttribute(o,i.type);this._$Em=e,u==null?this.removeAttribute(n):this.setAttribute(n,u),this._$Em=null;}}_$AK(e,o){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let u=i.getPropertyOptions(n),p=typeof u.converter=="function"?{fromAttribute:u.converter}:u.converter?.fromAttribute!==void 0?u.converter:W;this._$Em=n,this[n]=p.fromAttribute(o,u.type),this._$Em=null;}}requestUpdate(e,o,i){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??se)(this[e],o))return;this.P(e,o,i);}this.isUpdatePending===!1&&(this._$ES=this._$ET());}P(e,o,i){this._$AL.has(e)||this._$AL.set(e,o),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e);}async _$ET(){this.isUpdatePending=!0;try{await this._$ES;}catch(o){Promise.reject(o);}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,u]of this._$Ep)this[n]=u;this._$Ep=void 0;}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,u]of i)u.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],u);}let e=!1,o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(o)):this._$EU();}catch(i){throw e=!1,this._$EU(),i}e&&this._$AE(o);}willUpdate(e){}_$AE(e){this._$EO?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return !0}update(e){this._$Ej&&=this._$Ej.forEach(o=>this._$EC(o,this[o])),this._$EU();}updated(e){}firstUpdated(e){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[J("elementProperties")]=new Map,T[J("finalized")]=new Map,It?.({ReactiveElement:T}),(ie.reactiveElementVersions??=[]).push("2.0.4");var ve=globalThis,ne=ve.trustedTypes,Ke=ne?ne.createPolicy("lit-html",{createHTML:t=>t}):void 0,tt="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,rt="?"+O,Zt=`<${rt}>`,R=document,G=()=>R.createComment(""),X=t=>t===null||typeof t!="object"&&typeof t!="function",ot=Array.isArray,Dt=t=>ot(t)||typeof t?.[Symbol.iterator]=="function",fe=`[
var ze=Object.create;var D=Object.defineProperty;var Be=Object.getOwnPropertyDescriptor;var Ct=Object.getOwnPropertyNames;var At=Object.getPrototypeOf,St=Object.prototype.hasOwnProperty;var je=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),B=t=>{throw TypeError(t)};var Et=(t,e,o)=>e in t?D(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var Fe=(t,e)=>D(t,"name",{value:e,configurable:!0});var Mt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Pt=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ct(e))!St.call(t,n)&&n!==o&&D(t,n,{get:()=>e[n],enumerable:!(i=Be(e,n))||i.enumerable});return t};var Nt=(t,e,o)=>(o=t!=null?ze(At(t)):{},Pt(D(o,"default",{value:t,enumerable:!0}),t));var Ie=t=>[,,,ze(t?.[je("metadata")]??null)],Ze=["class","method","getter","setter","accessor","field","value","get","set"],Z=t=>t!==void 0&&typeof t!="function"?B("Function expected"):t,Lt=(t,e,o,i,n)=>({kind:Ze[t],name:e,metadata:i,addInitializer:u=>o._?B("Already initialized"):n.push(Z(u||null))}),Tt=(t,e)=>Et(e,je("metadata"),t[3]),$=(t,e,o,i)=>{for(var n=0,u=t[e>>1],p=u&&u.length;n<p;n++)e&1?u[n].call(o):i=u[n].call(o,i);return i},A=(t,e,o,i,n,u)=>{var p,m,r,s,h,a=e&7,l=!!(e&8),c=!!(e&16),d=a>3?t.length+1:a?l?1:2:0,f=Ze[a+5],v=a>3&&(t[d-1]=[]),y=t[d]||(t[d]=[]),_=a&&(!c&&!l&&(n=n.prototype),a<5&&(a>3||!c)&&Be(a<4?n:{get[o](){return Ue(this,u)},set[o](b){return Re(this,u,b)}},o));a?c&&a<4&&Fe(u,(a>2?"set ":a>1?"get ":"")+o):Fe(n,o);for(var S=i.length-1;S>=0;S--)s=Lt(a,o,r={},t[3],y),a&&(s.static=l,s.private=c,h=s.access={has:c?b=>Ht(n,b):b=>o in b},a^3&&(h.get=c?b=>(a^1?Ue:Ot)(b,n,a^4?u:_.get):b=>b[o]),a>2&&(h.set=c?(b,P)=>Re(b,n,P,a^4?u:_.set):(b,P)=>b[o]=P)),m=(0, i[S])(a?a<4?c?u:_[f]:a>4?void 0:{get:_.get,set:_.set}:n,s),r._=1,a^4||m===void 0?Z(m)&&(a>4?v.unshift(m):a?c?u=m:_[f]=m:n=m):typeof m!="object"||m===null?B("Object expected"):(Z(p=m.get)&&(_.get=p),Z(p=m.set)&&(_.set=p),Z(p=m.init)&&v.unshift(p));return a||Tt(t,n),_&&D(n,o,_),c?a^4?u:_:n};var ue=(t,e,o)=>e.has(t)||B("Cannot "+o),Ht=(t,e)=>Object(e)!==e?B('Cannot use the "in" operator on this value'):t.has(e),Ue=(t,e,o)=>(ue(t,e,"read from private field"),o?o.call(t):e.get(t)),M=(t,e,o)=>e.has(t)?B("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),Re=(t,e,o,i)=>(ue(t,e,"write to private field"),i?i.call(t,o):e.set(t,o),o),Ot=(t,e,o)=>(ue(t,e,"access private method"),o);var ht=Mt((ut,le)=>{(function(t,e){typeof define=="function"&&define.amd?define(e):typeof le=="object"&&le.exports?le.exports=e():t.numeral=e();})(ut,function(){var t,e,o="2.0.6",i={},n={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},p={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function m(r,s){this._input=r,this._value=s;}return t=function(r){var s,h,a,l;if(t.isNumeral(r))s=r.value();else if(r===0||typeof r>"u")s=0;else if(r===null||e.isNaN(r))s=null;else if(typeof r=="string")if(p.zeroFormat&&r===p.zeroFormat)s=0;else if(p.nullFormat&&r===p.nullFormat||!r.replace(/[^0-9]+/g,"").length)s=null;else {for(h in i)if(l=typeof i[h].regexps.unformat=="function"?i[h].regexps.unformat():i[h].regexps.unformat,l&&r.match(l)){a=i[h].unformat;break}a=a||t._.stringToNumber,s=a(r);}else s=Number(r)||null;return new m(r,s)},t.version=o,t.isNumeral=function(r){return r instanceof m},t._=e={numberToFormat:function(r,s,h){var a=n[t.options.currentLocale],l=!1,c=!1,d=0,f="",v=1e12,y=1e9,_=1e6,S=1e3,b="",P=!1,C,H,w,E,ce,Oe,N;if(r=r||0,H=Math.abs(r),t._.includes(s,"(")?(l=!0,s=s.replace(/[\(|\)]/g,"")):(t._.includes(s,"+")||t._.includes(s,"-"))&&(ce=t._.includes(s,"+")?s.indexOf("+"):r<0?s.indexOf("-"):-1,s=s.replace(/[\+|\-]/g,"")),t._.includes(s,"a")&&(C=s.match(/a(k|m|b|t)?/),C=C?C[1]:!1,t._.includes(s," a")&&(f=" "),s=s.replace(new RegExp(f+"a[kmbt]?"),""),H>=v&&!C||C==="t"?(f+=a.abbreviations.trillion,r=r/v):H<v&&H>=y&&!C||C==="b"?(f+=a.abbreviations.billion,r=r/y):H<y&&H>=_&&!C||C==="m"?(f+=a.abbreviations.million,r=r/_):(H<_&&H>=S&&!C||C==="k")&&(f+=a.abbreviations.thousand,r=r/S)),t._.includes(s,"[.]")&&(c=!0,s=s.replace("[.]",".")),w=r.toString().split(".")[0],E=s.split(".")[1],Oe=s.indexOf(","),d=(s.split(".")[0].split(",")[0].match(/0/g)||[]).length,E?(t._.includes(E,"[")?(E=E.replace("]",""),E=E.split("["),b=t._.toFixed(r,E[0].length+E[1].length,h,E[1].length)):b=t._.toFixed(r,E.length,h),w=b.split(".")[0],t._.includes(b,".")?b=a.delimiters.decimal+b.split(".")[1]:b="",c&&Number(b.slice(1))===0&&(b="")):w=t._.toFixed(r,0,h),f&&!C&&Number(w)>=1e3&&f!==a.abbreviations.trillion)switch(w=String(Number(w)/1e3),f){case a.abbreviations.thousand:f=a.abbreviations.million;break;case a.abbreviations.million:f=a.abbreviations.billion;break;case a.abbreviations.billion:f=a.abbreviations.trillion;break}if(t._.includes(w,"-")&&(w=w.slice(1),P=!0),w.length<d)for(var Ve=d-w.length;Ve>0;Ve--)w="0"+w;return Oe>-1&&(w=w.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+a.delimiters.thousands)),s.indexOf(".")===0&&(w=""),N=w+b+(f||""),l?N=(l&&P?"(":"")+N+(l&&P?")":""):ce>=0?N=ce===0?(P?"-":"+")+N:N+(P?"-":"+"):P&&(N="-"+N),N},stringToNumber:function(r){var s=n[p.currentLocale],h=r,a={thousand:3,million:6,billion:9,trillion:12},l,c,f;if(p.zeroFormat&&r===p.zeroFormat)c=0;else if(p.nullFormat&&r===p.nullFormat||!r.replace(/[^0-9]+/g,"").length)c=null;else {c=1,s.delimiters.decimal!=="."&&(r=r.replace(/\./g,"").replace(s.delimiters.decimal,"."));for(l in a)if(f=new RegExp("[^a-zA-Z]"+s.abbreviations[l]+"(?:\\)|(\\"+s.currency.symbol+")?(?:\\))?)?$"),h.match(f)){c*=Math.pow(10,a[l]);break}c*=(r.split("-").length+Math.min(r.split("(").length-1,r.split(")").length-1))%2?1:-1,r=r.replace(/[^0-9\.]+/g,""),c*=Number(r);}return c},isNaN:function(r){return typeof r=="number"&&isNaN(r)},includes:function(r,s){return r.indexOf(s)!==-1},insert:function(r,s,h){return r.slice(0,h)+s+r.slice(h)},reduce:function(r,s){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof s!="function")throw new TypeError(s+" is not a function");var h=Object(r),a=h.length>>>0,l=0,c;if(arguments.length===3)c=arguments[2];else {for(;l<a&&!(l in h);)l++;if(l>=a)throw new TypeError("Reduce of empty array with no initial value");c=h[l++];}for(;l<a;l++)l in h&&(c=s(c,h[l],l,h));return c},multiplier:function(r){var s=r.toString().split(".");return s.length<2?1:Math.pow(10,s[1].length)},correctionFactor:function(){var r=Array.prototype.slice.call(arguments);return r.reduce(function(s,h){var a=e.multiplier(h);return s>a?s:a},1)},toFixed:function(r,s,h,a){var l=r.toString().split("."),c=s-(a||0),d,f,v,y;return l.length===2?d=Math.min(Math.max(l[1].length,c),s):d=c,v=Math.pow(10,d),y=(h(r+"e+"+d)/v).toFixed(d),a>s-d&&(f=new RegExp("\\.?0{1,"+(a-(s-d))+"}$"),y=y.replace(f,"")),y}},t.options=p,t.formats=i,t.locales=n,t.locale=function(r){return r&&(p.currentLocale=r.toLowerCase()),p.currentLocale},t.localeData=function(r){if(!r)return n[p.currentLocale];if(r=r.toLowerCase(),!n[r])throw new Error("Unknown locale : "+r);return n[r]},t.reset=function(){for(var r in u)p[r]=u[r];},t.zeroFormat=function(r){p.zeroFormat=typeof r=="string"?r:null;},t.nullFormat=function(r){p.nullFormat=typeof r=="string"?r:null;},t.defaultFormat=function(r){p.defaultFormat=typeof r=="string"?r:"0.0";},t.register=function(r,s,h){if(s=s.toLowerCase(),this[r+"s"][s])throw new TypeError(s+" "+r+" already registered.");return this[r+"s"][s]=h,h},t.validate=function(r,s){var h,a,l,c,d,f,v,y;if(typeof r!="string"&&(r+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",r)),r=r.trim(),r.match(/^\d+$/))return !0;if(r==="")return !1;try{v=t.localeData(s);}catch{v=t.localeData(t.locale());}return l=v.currency.symbol,d=v.abbreviations,h=v.delimiters.decimal,v.delimiters.thousands==="."?a="\\.":a=v.delimiters.thousands,y=r.match(/^[^\d]+/),y!==null&&(r=r.substr(1),y[0]!==l)||(y=r.match(/[^\d]+$/),y!==null&&(r=r.slice(0,-1),y[0]!==d.thousand&&y[0]!==d.million&&y[0]!==d.billion&&y[0]!==d.trillion))?!1:(f=new RegExp(a+"{2}"),r.match(/[^\d.,]/g)?!1:(c=r.split(h),c.length>2?!1:c.length<2?!!c[0].match(/^\d+.*\d$/)&&!c[0].match(f):c[0].length===1?!!c[0].match(/^\d+$/)&&!c[0].match(f)&&!!c[1].match(/^\d+$/):!!c[0].match(/^\d+.*\d$/)&&!c[0].match(f)&&!!c[1].match(/^\d+$/)))},t.fn=m.prototype={clone:function(){return t(this)},format:function(r,s){var h=this._value,a=r||p.defaultFormat,l,c,d;if(s=s||Math.round,h===0&&p.zeroFormat!==null)c=p.zeroFormat;else if(h===null&&p.nullFormat!==null)c=p.nullFormat;else {for(l in i)if(a.match(i[l].regexps.format)){d=i[l].format;break}d=d||t._.numberToFormat,c=d(h,a,s);}return c},value:function(){return this._value},input:function(){return this._input},set:function(r){return this._value=Number(r),this},add:function(r){var s=e.correctionFactor.call(null,this._value,r);function h(a,l,c,d){return a+Math.round(s*l)}return this._value=e.reduce([this._value,r],h,0)/s,this},subtract:function(r){var s=e.correctionFactor.call(null,this._value,r);function h(a,l,c,d){return a-Math.round(s*l)}return this._value=e.reduce([r],h,Math.round(this._value*s))/s,this},multiply:function(r){function s(h,a,l,c){var d=e.correctionFactor(h,a);return Math.round(h*d)*Math.round(a*d)/Math.round(d*d)}return this._value=e.reduce([this._value,r],s,1),this},divide:function(r){function s(h,a,l,c){var d=e.correctionFactor(h,a);return Math.round(h*d)/Math.round(a*d)}return this._value=e.reduce([this._value,r],s),this},difference:function(r){return Math.abs(t(this._value).subtract(r).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(r){var s=r%10;return ~~(r%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(r,s,h){var a=t._.includes(s," BPS")?" ":"",l;return r=r*1e4,s=s.replace(/\s?BPS/,""),l=t._.numberToFormat(r,s,h),t._.includes(l,")")?(l=l.split(""),l.splice(-1,0,a+"BPS"),l=l.join("")):l=l+a+"BPS",l},unformat:function(r){return +(t._.stringToNumber(r)*1e-4).toFixed(15)}});}(),function(){var r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},s={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=r.suffixes.concat(s.suffixes.filter(function(l){return r.suffixes.indexOf(l)<0})),a=h.join("|");a="("+a.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(a)},format:function(l,c,d){var f,v=t._.includes(c,"ib")?s:r,y=t._.includes(c," b")||t._.includes(c," ib")?" ":"",_,S,b;for(c=c.replace(/\s?i?b/,""),_=0;_<=v.suffixes.length;_++)if(S=Math.pow(v.base,_),b=Math.pow(v.base,_+1),l===null||l===0||l>=S&&l<b){y+=v.suffixes[_],S>0&&(l=l/S);break}return f=t._.numberToFormat(l,c,d),f+y},unformat:function(l){var c=t._.stringToNumber(l),d,f;if(c){for(d=r.suffixes.length-1;d>=0;d--){if(t._.includes(l,r.suffixes[d])){f=Math.pow(r.base,d);break}if(t._.includes(l,s.suffixes[d])){f=Math.pow(s.base,d);break}}c*=f||1;}return c}});}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(r,s,h){var a=t.locales[t.options.currentLocale],l={before:s.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:s.match(/([\+|\-|\)|\s|\$]*)$/)[0]},c,d,f;for(s=s.replace(/\s?\$\s?/,""),c=t._.numberToFormat(r,s,h),r>=0?(l.before=l.before.replace(/[\-\(]/,""),l.after=l.after.replace(/[\-\)]/,"")):r<0&&!t._.includes(l.before,"-")&&!t._.includes(l.before,"(")&&(l.before="-"+l.before),f=0;f<l.before.length;f++)switch(d=l.before[f],d){case"$":c=t._.insert(c,a.currency.symbol,f);break;case" ":c=t._.insert(c," ",f+a.currency.symbol.length-1);break}for(f=l.after.length-1;f>=0;f--)switch(d=l.after[f],d){case"$":c=f===l.after.length-1?c+a.currency.symbol:t._.insert(c,a.currency.symbol,-(l.after.length-(1+f)));break;case" ":c=f===l.after.length-1?c+" ":t._.insert(c," ",-(l.after.length-(1+f)+a.currency.symbol.length-1));break}return c}});}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(r,s,h){var a,l=typeof r=="number"&&!t._.isNaN(r)?r.toExponential():"0e+0",c=l.split("e");return s=s.replace(/e[\+|\-]{1}0/,""),a=t._.numberToFormat(Number(c[0]),s,h),a+"e"+c[1]},unformat:function(r){var s=t._.includes(r,"e+")?r.split("e+"):r.split("e-"),h=Number(s[0]),a=Number(s[1]);a=t._.includes(r,"e-")?a*=-1:a;function l(c,d,f,v){var y=t._.correctionFactor(c,d),_=c*y*(d*y)/(y*y);return _}return t._.reduce([h,Math.pow(10,a)],l,1)}});}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(r,s,h){var a=t.locales[t.options.currentLocale],l,c=t._.includes(s," o")?" ":"";return s=s.replace(/\s?o/,""),c+=a.ordinal(r),l=t._.numberToFormat(r,s,h),l+c}});}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(r,s,h){var a=t._.includes(s," %")?" ":"",l;return t.options.scalePercentBy100&&(r=r*100),s=s.replace(/\s?\%/,""),l=t._.numberToFormat(r,s,h),t._.includes(l,")")?(l=l.split(""),l.splice(-1,0,a+"%"),l=l.join("")):l=l+a+"%",l},unformat:function(r){var s=t._.stringToNumber(r);return t.options.scalePercentBy100?s*.01:s}});}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(r,s,h){var a=Math.floor(r/60/60),l=Math.floor((r-a*60*60)/60),c=Math.round(r-a*60*60-l*60);return a+":"+(l<10?"0"+l:l)+":"+(c<10?"0"+c:c)},unformat:function(r){var s=r.split(":"),h=0;return s.length===3?(h=h+Number(s[0])*60*60,h=h+Number(s[1])*60,h=h+Number(s[2])):s.length===2&&(h=h+Number(s[0])*60,h=h+Number(s[1])),Number(h)}});}(),t});});var te=globalThis,re=te.ShadowRoot&&(te.ShadyCSS===void 0||te.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,he=Symbol(),De=new WeakMap,q=class{constructor(e,o,i){if(this._$cssResult$=!0,i!==he)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=o;}get styleSheet(){let e=this.o,o=this.t;if(re&&e===void 0){let i=o!==void 0&&o.length===1;i&&(e=De.get(o)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&De.set(o,e));}return e}toString(){return this.cssText}},qe=t=>new q(typeof t=="string"?t:t+"",void 0,he),pe=(t,...e)=>{let o=t.length===1?t[0]:e.reduce((i,n,u)=>i+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[u+1],t[0]);return new q(o,t,he)},de=(t,e)=>{if(re)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let i=document.createElement("style"),n=te.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i);}},oe=re?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let o="";for(let i of e.cssRules)o+=i.cssText;return qe(o)})(t):t;var{is:Vt,defineProperty:Ft,getOwnPropertyDescriptor:Ut,getOwnPropertyNames:Rt,getOwnPropertySymbols:zt,getPrototypeOf:Bt}=Object,ie=globalThis,Je=ie.trustedTypes,jt=Je?Je.emptyScript:"",It=ie.reactiveElementPolyfillSupport,J=(t,e)=>t,W={toAttribute(t,e){switch(e){case Boolean:t=t?jt:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t);}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t);}catch{o=null;}}return o}},se=(t,e)=>!Vt(t,e),We={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:se};Symbol.metadata??=Symbol("metadata"),ie.litPropertyMetadata??=new WeakMap;var L=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,o=We){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(e,o),!o.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,o);n!==void 0&&Ft(this.prototype,e,n);}}static getPropertyDescriptor(e,o,i){let{get:n,set:u}=Ut(this.prototype,e)??{get(){return this[o]},set(p){this[o]=p;}};return {get(){return n?.call(this)},set(p){let m=n?.call(this);u.call(this,p),this.requestUpdate(e,m,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??We}static _$Ei(){if(this.hasOwnProperty(J("elementProperties")))return;let e=Bt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties);}static finalize(){if(this.hasOwnProperty(J("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(J("properties"))){let o=this.properties,i=[...Rt(o),...zt(o)];for(let n of i)this.createProperty(n,o[n]);}let e=this[Symbol.metadata];if(e!==null){let o=litPropertyMetadata.get(e);if(o!==void 0)for(let[i,n]of o)this.elementProperties.set(i,n);}this._$Eh=new Map;for(let[o,i]of this.elementProperties){let n=this._$Eu(o,i);n!==void 0&&this._$Eh.set(n,o);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(e){let o=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)o.unshift(oe(n));}else e!==void 0&&o.push(oe(e));return o}static _$Eu(e,o){let i=o.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this));}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.();}removeController(e){this._$EO?.delete(e);}_$E_(){let e=new Map,o=this.constructor.elementProperties;for(let i of o.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e);}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return de(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.());}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.());}attributeChangedCallback(e,o,i){this._$AK(e,i);}_$EC(e,o){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let u=(i.converter?.toAttribute!==void 0?i.converter:W).toAttribute(o,i.type);this._$Em=e,u==null?this.removeAttribute(n):this.setAttribute(n,u),this._$Em=null;}}_$AK(e,o){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let u=i.getPropertyOptions(n),p=typeof u.converter=="function"?{fromAttribute:u.converter}:u.converter?.fromAttribute!==void 0?u.converter:W;this._$Em=n,this[n]=p.fromAttribute(o,u.type),this._$Em=null;}}requestUpdate(e,o,i){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??se)(this[e],o))return;this.P(e,o,i);}this.isUpdatePending===!1&&(this._$ES=this._$ET());}P(e,o,i){this._$AL.has(e)||this._$AL.set(e,o),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e);}async _$ET(){this.isUpdatePending=!0;try{await this._$ES;}catch(o){Promise.reject(o);}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,u]of this._$Ep)this[n]=u;this._$Ep=void 0;}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,u]of i)u.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],u);}let e=!1,o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(o)):this._$EU();}catch(i){throw e=!1,this._$EU(),i}e&&this._$AE(o);}willUpdate(e){}_$AE(e){this._$EO?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return !0}update(e){this._$Ej&&=this._$Ej.forEach(o=>this._$EC(o,this[o])),this._$EU();}updated(e){}firstUpdated(e){}};L.elementStyles=[],L.shadowRootOptions={mode:"open"},L[J("elementProperties")]=new Map,L[J("finalized")]=new Map,It?.({ReactiveElement:L}),(ie.reactiveElementVersions??=[]).push("2.0.4");var ve=globalThis,ne=ve.trustedTypes,Ke=ne?ne.createPolicy("lit-html",{createHTML:t=>t}):void 0,tt="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,rt="?"+O,Zt=`<${rt}>`,R=document,G=()=>R.createComment(""),X=t=>t===null||typeof t!="object"&&typeof t!="function",ot=Array.isArray,Dt=t=>ot(t)||typeof t?.[Symbol.iterator]=="function",fe=`[
\f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ge=/-->/g,Xe=/>/g,F=RegExp(`>|${fe}(?:([^\\s"'>=/]+)(${fe}*=${fe}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ye=/'/g,Qe=/"/g,it=/^(?:script|style|textarea|title)$/i,st=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),$e=st(1),z=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),et=new WeakMap,U=R.createTreeWalker(R,129);function nt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ke!==void 0?Ke.createHTML(e):e}var qt=(t,e)=>{let o=t.length-1,i=[],n,u=e===2?"<svg>":"",p=K;for(let m=0;m<o;m++){let r=t[m],s,h,a=-1,l=0;for(;l<r.length&&(p.lastIndex=l,h=p.exec(r),h!==null);)l=p.lastIndex,p===K?h[1]==="!--"?p=Ge:h[1]!==void 0?p=Xe:h[2]!==void 0?(it.test(h[2])&&(n=RegExp("</"+h[2],"g")),p=F):h[3]!==void 0&&(p=F):p===F?h[0]===">"?(p=n??K,a=-1):h[1]===void 0?a=-2:(a=p.lastIndex-h[2].length,s=h[1],p=h[3]===void 0?F:h[3]==='"'?Qe:Ye):p===Qe||p===Ye?p=F:p===Ge||p===Xe?p=K:(p=F,n=void 0);let c=p===F&&t[m+1].startsWith("/>")?" ":"";u+=p===K?r+Zt:a>=0?(i.push(s),r.slice(0,a)+tt+r.slice(a)+O+c):r+O+(a===-2?m:c);}return [nt(t,u+(t[o]||"<?>")+(e===2?"</svg>":"")),i]},Y=class t{constructor({strings:e,_$litType$:o},i){let n;this.parts=[];let u=0,p=0,m=e.length-1,r=this.parts,[s,h]=qt(e,o);if(this.el=t.createElement(s,i),U.currentNode=this.el.content,o===2){let a=this.el.content.firstChild;a.replaceWith(...a.childNodes);}for(;(n=U.nextNode())!==null&&r.length<m;){if(n.nodeType===1){if(n.hasAttributes())for(let a of n.getAttributeNames())if(a.endsWith(tt)){let l=h[p++],c=n.getAttribute(a).split(O),d=/([.?@])?(.*)/.exec(l);r.push({type:1,index:u,name:d[2],strings:c,ctor:d[1]==="."?ge:d[1]==="?"?ye:d[1]==="@"?be:I}),n.removeAttribute(a);}else a.startsWith(O)&&(r.push({type:6,index:u}),n.removeAttribute(a));if(it.test(n.tagName)){let a=n.textContent.split(O),l=a.length-1;if(l>0){n.textContent=ne?ne.emptyScript:"";for(let c=0;c<l;c++)n.append(a[c],G()),U.nextNode(),r.push({type:2,index:++u});n.append(a[l],G());}}}else if(n.nodeType===8)if(n.data===rt)r.push({type:2,index:u});else {let a=-1;for(;(a=n.data.indexOf(O,a+1))!==-1;)r.push({type:7,index:u}),a+=O.length-1;}u++;}}static createElement(e,o){let i=R.createElement("template");return i.innerHTML=e,i}};function j(t,e,o=t,i){if(e===z)return e;let n=i!==void 0?o._$Co?.[i]:o._$Cl,u=X(e)?void 0:e._$litDirective$;return n?.constructor!==u&&(n?._$AO?.(!1),u===void 0?n=void 0:(n=new u(t),n._$AT(t,o,i)),i!==void 0?(o._$Co??=[])[i]=n:o._$Cl=n),n!==void 0&&(e=j(t,n._$AS(t,e.values),n,i)),e}var me=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:i}=this._$AD,n=(e?.creationScope??R).importNode(o,!0);U.currentNode=n;let u=U.nextNode(),p=0,m=0,r=i[0];for(;r!==void 0;){if(p===r.index){let s;r.type===2?s=new Q(u,u.nextSibling,this,e):r.type===1?s=new r.ctor(u,r.name,r.strings,this,e):r.type===6&&(s=new _e(u,this,e)),this._$AV.push(s),r=i[++m];}p!==r?.index&&(u=U.nextNode(),p++);}return U.currentNode=R,n}p(e){let o=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,o),o+=i.strings.length-2):i._$AI(e[o])),o++;}},Q=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,i,n){this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0;}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=j(this,e,o),X(e)?e===x||e==null||e===""?(this._$AH!==x&&this._$AR(),this._$AH=x):e!==this._$AH&&e!==z&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Dt(e)?this.k(e):this._(e);}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e));}_(e){this._$AH!==x&&X(this._$AH)?this._$AA.nextSibling.data=e:this.T(R.createTextNode(e)),this._$AH=e;}$(e){let{values:o,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Y.createElement(nt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else {let u=new me(n,this),p=u.u(this.options);u.p(o),this.T(p),this._$AH=u;}}_$AC(e){let o=et.get(e.strings);return o===void 0&&et.set(e.strings,o=new Y(e)),o}k(e){ot(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,i,n=0;for(let u of e)n===o.length?o.push(i=new t(this.S(G()),this.S(G()),this,this.options)):i=o[n],i._$AI(u),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n);}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i;}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e));}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,i,n,u){this.type=1,this._$AH=x,this._$AN=void 0,this.element=e,this.name=o,this._$AM=n,this.options=u,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=x;}_$AI(e,o=this,i,n){let u=this.strings,p=!1;if(u===void 0)e=j(this,e,o,0),p=!X(e)||e!==this._$AH&&e!==z,p&&(this._$AH=e);else {let m=e,r,s;for(e=u[0],r=0;r<u.length-1;r++)s=j(this,m[i+r],o,r),s===z&&(s=this._$AH[r]),p||=!X(s)||s!==this._$AH[r],s===x?e=x:e!==x&&(e+=(s??"")+u[r+1]),this._$AH[r]=s;}p&&!n&&this.j(e);}j(e){e===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"");}},ge=class extends I{constructor(){super(...arguments),this.type=3;}j(e){this.element[this.name]=e===x?void 0:e;}},ye=class extends I{constructor(){super(...arguments),this.type=4;}j(e){this.element.toggleAttribute(this.name,!!e&&e!==x);}},be=class extends I{constructor(e,o,i,n,u){super(e,o,i,n,u),this.type=5;}_$AI(e,o=this){if((e=j(this,e,o,0)??x)===z)return;let i=this._$AH,n=e===x&&i!==x||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,u=e!==x&&(i===x||n);n&&this.element.removeEventListener(this.name,this,i),u&&this.element.addEventListener(this.name,this,e),this._$AH=e;}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e);}},_e=class{constructor(e,o,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i;}get _$AU(){return this._$AM._$AU}_$AI(e){j(this,e);}};var Jt=ve.litHtmlPolyfillSupport;Jt?.(Y,Q),(ve.litHtmlVersions??=[]).push("3.1.4");var at=(t,e,o)=>{let i=o?.renderBefore??e,n=i._$litPart$;if(n===void 0){let u=o?.renderBefore??null;i._$litPart$=n=new Q(e.insertBefore(G(),u),u,void 0,o??{});}return n._$AI(t),n};var V=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=at(o,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return z}};V._$litElement$=!0,V.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:V});var Wt=globalThis.litElementPolyfillSupport;Wt?.({LitElement:V});(globalThis.litElementVersions??=[]).push("4.0.6");var lt=t=>(e,o)=>{o!==void 0?o.addInitializer(()=>{customElements.define(t,e);}):customElements.define(t,e);};var Kt={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:se},Gt=(t=Kt,e,o)=>{let{kind:i,metadata:n}=o,u=globalThis.litPropertyMetadata.get(n);if(u===void 0&&globalThis.litPropertyMetadata.set(n,u=new Map),u.set(o.name,t),i==="accessor"){let{name:p}=o;return {set(m){let r=e.get.call(this);e.set.call(this,m),this.requestUpdate(p,r,t);},init(m){return m!==void 0&&this.P(p,void 0,t),m}}}if(i==="setter"){let{name:p}=o;return function(m){let r=this[p];e.call(this,m),this.requestUpdate(p,r,t);}}throw Error("Unsupported decorator location: "+i)};function H(t){return (e,o)=>typeof o=="object"?Gt(t,e,o):((i,n,u)=>{let p=n.hasOwnProperty(u);return n.constructor.createProperty(u,p?{...i,wrapped:!0}:i),p?Object.getOwnPropertyDescriptor(n,u):void 0})(t,e,o)}function ee(t){return H({...t,state:!0,attribute:!1})}var ct="https://gamma-api.polymarket.com";var xe=async t=>{let e=t.slug?`markets/slug/${t.slug}`:`markets/${t.id}`,i=await(await fetch(`${ct}/${e}`)).json();return {...i,outcomes:JSON.parse(i.outcomes),outcomePrices:JSON.parse(i.outcomePrices),clobTokenIds:i.clobTokenIds?JSON.parse(i.clobTokenIds):null}};var He=Nt(ht());var Xt={0:"M5,55 A50,50 0 0 1 5,55",10:"M5,55 A50,50 0 0 1 6,45",20:"M5,55 A50,50 0 0 1 10,33.4",30:"M5,55 A50,50 0 0 1 24,16",40:"M5,55 A50,50 0 0 1 34,9.8",50:"M5,55 A50,50 0 0 1 55,5",60:"M5,55 A50,50 0 0 1 76,9.8",70:"M5,55 A50,50 0 0 1 86,16",80:"M5,55 A50,50 0 0 1 100,33.4",90:"M5,55 A50,50 0 0 1 104,45",100:"M5,55 A50,50 0 0 1 105,55"},pt=!1,Le=()=>{if(pt)return;pt=!0;let t=new CSSStyleSheet;t.replaceSync(`
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ye=/'/g,Qe=/"/g,it=/^(?:script|style|textarea|title)$/i,st=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),$e=st(1),z=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),et=new WeakMap,U=R.createTreeWalker(R,129);function nt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ke!==void 0?Ke.createHTML(e):e}var qt=(t,e)=>{let o=t.length-1,i=[],n,u=e===2?"<svg>":"",p=K;for(let m=0;m<o;m++){let r=t[m],s,h,a=-1,l=0;for(;l<r.length&&(p.lastIndex=l,h=p.exec(r),h!==null);)l=p.lastIndex,p===K?h[1]==="!--"?p=Ge:h[1]!==void 0?p=Xe:h[2]!==void 0?(it.test(h[2])&&(n=RegExp("</"+h[2],"g")),p=F):h[3]!==void 0&&(p=F):p===F?h[0]===">"?(p=n??K,a=-1):h[1]===void 0?a=-2:(a=p.lastIndex-h[2].length,s=h[1],p=h[3]===void 0?F:h[3]==='"'?Qe:Ye):p===Qe||p===Ye?p=F:p===Ge||p===Xe?p=K:(p=F,n=void 0);let c=p===F&&t[m+1].startsWith("/>")?" ":"";u+=p===K?r+Zt:a>=0?(i.push(s),r.slice(0,a)+tt+r.slice(a)+O+c):r+O+(a===-2?m:c);}return [nt(t,u+(t[o]||"<?>")+(e===2?"</svg>":"")),i]},Y=class t{constructor({strings:e,_$litType$:o},i){let n;this.parts=[];let u=0,p=0,m=e.length-1,r=this.parts,[s,h]=qt(e,o);if(this.el=t.createElement(s,i),U.currentNode=this.el.content,o===2){let a=this.el.content.firstChild;a.replaceWith(...a.childNodes);}for(;(n=U.nextNode())!==null&&r.length<m;){if(n.nodeType===1){if(n.hasAttributes())for(let a of n.getAttributeNames())if(a.endsWith(tt)){let l=h[p++],c=n.getAttribute(a).split(O),d=/([.?@])?(.*)/.exec(l);r.push({type:1,index:u,name:d[2],strings:c,ctor:d[1]==="."?ge:d[1]==="?"?ye:d[1]==="@"?be:I}),n.removeAttribute(a);}else a.startsWith(O)&&(r.push({type:6,index:u}),n.removeAttribute(a));if(it.test(n.tagName)){let a=n.textContent.split(O),l=a.length-1;if(l>0){n.textContent=ne?ne.emptyScript:"";for(let c=0;c<l;c++)n.append(a[c],G()),U.nextNode(),r.push({type:2,index:++u});n.append(a[l],G());}}}else if(n.nodeType===8)if(n.data===rt)r.push({type:2,index:u});else {let a=-1;for(;(a=n.data.indexOf(O,a+1))!==-1;)r.push({type:7,index:u}),a+=O.length-1;}u++;}}static createElement(e,o){let i=R.createElement("template");return i.innerHTML=e,i}};function j(t,e,o=t,i){if(e===z)return e;let n=i!==void 0?o._$Co?.[i]:o._$Cl,u=X(e)?void 0:e._$litDirective$;return n?.constructor!==u&&(n?._$AO?.(!1),u===void 0?n=void 0:(n=new u(t),n._$AT(t,o,i)),i!==void 0?(o._$Co??=[])[i]=n:o._$Cl=n),n!==void 0&&(e=j(t,n._$AS(t,e.values),n,i)),e}var me=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:i}=this._$AD,n=(e?.creationScope??R).importNode(o,!0);U.currentNode=n;let u=U.nextNode(),p=0,m=0,r=i[0];for(;r!==void 0;){if(p===r.index){let s;r.type===2?s=new Q(u,u.nextSibling,this,e):r.type===1?s=new r.ctor(u,r.name,r.strings,this,e):r.type===6&&(s=new _e(u,this,e)),this._$AV.push(s),r=i[++m];}p!==r?.index&&(u=U.nextNode(),p++);}return U.currentNode=R,n}p(e){let o=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,o),o+=i.strings.length-2):i._$AI(e[o])),o++;}},Q=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,i,n){this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0;}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=j(this,e,o),X(e)?e===x||e==null||e===""?(this._$AH!==x&&this._$AR(),this._$AH=x):e!==this._$AH&&e!==z&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Dt(e)?this.k(e):this._(e);}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e));}_(e){this._$AH!==x&&X(this._$AH)?this._$AA.nextSibling.data=e:this.T(R.createTextNode(e)),this._$AH=e;}$(e){let{values:o,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Y.createElement(nt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else {let u=new me(n,this),p=u.u(this.options);u.p(o),this.T(p),this._$AH=u;}}_$AC(e){let o=et.get(e.strings);return o===void 0&&et.set(e.strings,o=new Y(e)),o}k(e){ot(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,i,n=0;for(let u of e)n===o.length?o.push(i=new t(this.S(G()),this.S(G()),this,this.options)):i=o[n],i._$AI(u),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n);}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i;}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e));}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,i,n,u){this.type=1,this._$AH=x,this._$AN=void 0,this.element=e,this.name=o,this._$AM=n,this.options=u,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=x;}_$AI(e,o=this,i,n){let u=this.strings,p=!1;if(u===void 0)e=j(this,e,o,0),p=!X(e)||e!==this._$AH&&e!==z,p&&(this._$AH=e);else {let m=e,r,s;for(e=u[0],r=0;r<u.length-1;r++)s=j(this,m[i+r],o,r),s===z&&(s=this._$AH[r]),p||=!X(s)||s!==this._$AH[r],s===x?e=x:e!==x&&(e+=(s??"")+u[r+1]),this._$AH[r]=s;}p&&!n&&this.j(e);}j(e){e===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"");}},ge=class extends I{constructor(){super(...arguments),this.type=3;}j(e){this.element[this.name]=e===x?void 0:e;}},ye=class extends I{constructor(){super(...arguments),this.type=4;}j(e){this.element.toggleAttribute(this.name,!!e&&e!==x);}},be=class extends I{constructor(e,o,i,n,u){super(e,o,i,n,u),this.type=5;}_$AI(e,o=this){if((e=j(this,e,o,0)??x)===z)return;let i=this._$AH,n=e===x&&i!==x||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,u=e!==x&&(i===x||n);n&&this.element.removeEventListener(this.name,this,i),u&&this.element.addEventListener(this.name,this,e),this._$AH=e;}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e);}},_e=class{constructor(e,o,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i;}get _$AU(){return this._$AM._$AU}_$AI(e){j(this,e);}};var Jt=ve.litHtmlPolyfillSupport;Jt?.(Y,Q),(ve.litHtmlVersions??=[]).push("3.1.4");var at=(t,e,o)=>{let i=o?.renderBefore??e,n=i._$litPart$;if(n===void 0){let u=o?.renderBefore??null;i._$litPart$=n=new Q(e.insertBefore(G(),u),u,void 0,o??{});}return n._$AI(t),n};var V=class extends L{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=at(o,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return z}};V._$litElement$=!0,V.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:V});var Wt=globalThis.litElementPolyfillSupport;Wt?.({LitElement:V});(globalThis.litElementVersions??=[]).push("4.0.6");var lt=t=>(e,o)=>{o!==void 0?o.addInitializer(()=>{customElements.define(t,e);}):customElements.define(t,e);};var Kt={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:se},Gt=(t=Kt,e,o)=>{let{kind:i,metadata:n}=o,u=globalThis.litPropertyMetadata.get(n);if(u===void 0&&globalThis.litPropertyMetadata.set(n,u=new Map),u.set(o.name,t),i==="accessor"){let{name:p}=o;return {set(m){let r=e.get.call(this);e.set.call(this,m),this.requestUpdate(p,r,t);},init(m){return m!==void 0&&this.P(p,void 0,t),m}}}if(i==="setter"){let{name:p}=o;return function(m){let r=this[p];e.call(this,m),this.requestUpdate(p,r,t);}}throw Error("Unsupported decorator location: "+i)};function T(t){return (e,o)=>typeof o=="object"?Gt(t,e,o):((i,n,u)=>{let p=n.hasOwnProperty(u);return n.constructor.createProperty(u,p?{...i,wrapped:!0}:i),p?Object.getOwnPropertyDescriptor(n,u):void 0})(t,e,o)}function ee(t){return T({...t,state:!0,attribute:!1})}var ct="https://gamma-api.polymarket.com";var xe=async t=>{let e=t.slug?`markets/slug/${t.slug}`:`markets/${t.id}`,i=await(await fetch(`${ct}/${e}`)).json();return {...i,outcomes:JSON.parse(i.outcomes),outcomePrices:JSON.parse(i.outcomePrices),clobTokenIds:i.clobTokenIds?JSON.parse(i.clobTokenIds):null}};var Te=Nt(ht());var Xt={0:"M5,55 A50,50 0 0 1 5,55",10:"M5,55 A50,50 0 0 1 6,45",20:"M5,55 A50,50 0 0 1 10,33.4",30:"M5,55 A50,50 0 0 1 24,16",40:"M5,55 A50,50 0 0 1 34,9.8",50:"M5,55 A50,50 0 0 1 55,5",60:"M5,55 A50,50 0 0 1 76,9.8",70:"M5,55 A50,50 0 0 1 86,16",80:"M5,55 A50,50 0 0 1 100,33.4",90:"M5,55 A50,50 0 0 1 104,45",100:"M5,55 A50,50 0 0 1 105,55"},pt=!1,He=()=>{if(pt)return;pt=!0;let t=new CSSStyleSheet;t.replaceSync(`
@font-face {

@@ -28,3 +28,3 @@ font-family: "Open Sauce Sans";

font-style: normal;
}`),document.adoptedStyleSheets.push(t);};Le();var dt,ft,mt,gt,yt,bt,_t,vt,$t,xt,wt,kt,g,we,ke,Ce,Ae,Se,Ee,Me,Pe,Ne,Te;kt=[lt("polymarket-market-embed")];var k=class extends(wt=V,xt=[H({type:String,attribute:"theme",reflect:!0})],$t=[H({type:String,attribute:"width"})],vt=[H({type:String,attribute:"market"})],_t=[H({type:String,attribute:"creator"})],bt=[H({type:Boolean,attribute:"volume",converter:(o,i)=>i===String?o==="true":i===Boolean?o:!1})],yt=[H({type:Boolean,attribute:"chart",converter:(o,i)=>i===String?o==="true":i===Boolean?o:!1})],gt=[ee()],mt=[ee()],ft=[ee()],dt=[ee()],wt){constructor(){super();M(this,we,$(g,8,this,"light")),$(g,11,this);M(this,ke,$(g,12,this,400)),$(g,15,this);M(this,Ce,$(g,16,this)),$(g,19,this);M(this,Ae,$(g,20,this)),$(g,23,this);M(this,Se,$(g,24,this,!1)),$(g,27,this);M(this,Ee,$(g,28,this,!1)),$(g,31,this);M(this,Me,$(g,32,this)),$(g,35,this);M(this,Pe,$(g,36,this)),$(g,39,this);M(this,Ne,$(g,40,this)),$(g,43,this);M(this,Te,$(g,44,this)),$(g,47,this);Le();}static get styles(){return pe`
}`),document.adoptedStyleSheets.push(t);};He();var dt,ft,mt,gt,yt,bt,_t,vt,$t,xt,wt,kt,g,we,ke,Ce,Ae,Se,Ee,Me,Pe,Ne,Le;kt=[lt("polymarket-market-embed")];var k=class extends(wt=V,xt=[T({type:String,attribute:"theme",reflect:!0})],$t=[T({type:String,attribute:"width"})],vt=[T({type:String,attribute:"market"})],_t=[T({type:String,attribute:"creator"})],bt=[T({type:Boolean,attribute:"volume",converter:(o,i)=>i===String?o==="true":i===Boolean?o:!1})],yt=[T({type:Boolean,attribute:"chart",converter:(o,i)=>i===String?o==="true":i===Boolean?o:!1})],gt=[ee()],mt=[ee()],ft=[ee()],dt=[ee()],wt){constructor(){super();M(this,we,$(g,8,this,"light")),$(g,11,this);M(this,ke,$(g,12,this,400)),$(g,15,this);M(this,Ce,$(g,16,this)),$(g,19,this);M(this,Ae,$(g,20,this)),$(g,23,this);M(this,Se,$(g,24,this,!1)),$(g,27,this);M(this,Ee,$(g,28,this,!1)),$(g,31,this);M(this,Me,$(g,32,this)),$(g,35,this);M(this,Pe,$(g,36,this)),$(g,39,this);M(this,Ne,$(g,40,this)),$(g,43,this);M(this,Le,$(g,44,this)),$(g,47,this);He();}static get styles(){return pe`
:host {

@@ -183,2 +183,8 @@ --polymarket-color-white: #ffffff;

width: 114px;
cursor: pointer;
transition: opacity 100ms ease-in-out;
opacity: 1;
&:hover {
opacity: 0.8;
}
}

@@ -340,3 +346,3 @@

}
`}connectedCallback(){super.connectedCallback(),Le(),this.fetchMarketData();}firstUpdated(o){super.firstUpdated(o),this.initTheme();}initTheme(){document.querySelector("html")?.setAttribute("theme",this.theme);}getUtmParams(){let o="utm_medium=embed",i="&utm_campaign=market",u=`&utm_source=${window.location!=window.parent.location&&document.referrer?document.referrer:`${document.location.host}${document.location.pathname}`}`,p=this.creator?`&utm_content=${this.creator}`:"";return `${o}${i}${u}${p}`}async fetchMarketData(){if(this.marketSlug){let o=await xe({slug:this.marketSlug});this._market=o;let i=this.getUtmParams();this._href=o.events?.length&&o.events[0]?.slug?`https://polymarket.com/event/${o.events[0].slug}/${o.slug}?${i}`:`https://polymarket.com/market/${o.slug}?${i}`;let n=o.outcomePrices[0]?parseFloat(o.outcomePrices[0]):0,u=Math.min(Math.max(n*100,0),100),m=[0,10,20,30,40,50,60,70,80,90,100].sort((r,s)=>Math.abs(r-u)-Math.abs(s-u))[0];this._probability=u,this._fillPathD=Xt[m.toFixed(0)];}}onClick(){window.parent.window.open(this._href);}render(){return this._market?$e` <div class="container">
`}connectedCallback(){super.connectedCallback(),He(),this.fetchMarketData();}firstUpdated(o){super.firstUpdated(o),this.initTheme();}initTheme(){document.querySelector("html")?.setAttribute("theme",this.theme);}getUtmParams(){let o="utm_medium=embed",i="&utm_campaign=market",u=`&utm_source=${window.location!=window.parent.location&&document.referrer?document.referrer:`${document.location.host}${document.location.pathname}`}`,p=this.creator?`&utm_content=${this.creator}`:"";return `${o}${i}${u}${p}`}async fetchMarketData(){if(this.marketSlug){let o=await xe({slug:this.marketSlug});this._market=o;let i=this.getUtmParams();this._href=o.events?.length&&o.events[0]?.slug?`https://polymarket.com/event/${o.events[0].slug}/${o.slug}?${i}`:`https://polymarket.com/market/${o.slug}?${i}`;let n=o.outcomePrices[0]?parseFloat(o.outcomePrices[0]):0,u=Math.min(Math.max(n*100,0),100),m=[0,10,20,30,40,50,60,70,80,90,100].sort((r,s)=>Math.abs(r-u)-Math.abs(s-u))[0];this._probability=u,this._fillPathD=Xt[m.toFixed(0)];}}onClick(){window.parent.window.open(this._href);}onLogoClick(){window.parent.window.open("https://polymarket.com");}render(){return this._market?$e` <div class="container">
<div class="card-container">

@@ -378,3 +384,3 @@ <div class="top-row-container">

<p class="gauge-text">
${(0, He.default)(this._probability).format("0")}%
${(0, Te.default)(this._probability).format("0")}%
</p>

@@ -386,3 +392,6 @@ <p class="gauge-subtext">chance</p>

<div class="bottom-row-container">
<div class="bottom-row-left-container">
<div
class="bottom-row-left-container"
@click="${this.onLogoClick}"
>
<svg

@@ -411,9 +420,9 @@ width="114"

<p class="typography-secondary typography-number">
${this.showVolume?`${(0, He.default)(this._market.volumeNum).format("0.[0]a")}`:""}
${this.showVolume?`${(0, Te.default)(this._market.volumeNum).format("0.[0]a")}`:""}
<span style="text-transform: capitalize;"
>${this.showVolume?"Bet":""}</span
>${this.showVolume?"Vol.":""}</span
>
</p>
<div @click="${this.onClick}" class="button-primary">
More details
View market
<svg

@@ -434,3 +443,3 @@ xmlns="http://www.w3.org/2000/svg"

</div>
</div>`:$e` <span>${" "}</span> `}};g=Ie(wt),we=new WeakMap,ke=new WeakMap,Ce=new WeakMap,Ae=new WeakMap,Se=new WeakMap,Ee=new WeakMap,Me=new WeakMap,Pe=new WeakMap,Ne=new WeakMap,Te=new WeakMap,A(g,4,"theme",xt,k,we),A(g,4,"width",$t,k,ke),A(g,4,"marketSlug",vt,k,Ce),A(g,4,"creator",_t,k,Ae),A(g,4,"showVolume",bt,k,Se),A(g,4,"showChart",yt,k,Ee),A(g,4,"_market",gt,k,Me),A(g,4,"_href",mt,k,Pe),A(g,4,"_probability",ft,k,Ne),A(g,4,"_fillPathD",dt,k,Te),k=A(g,0,"MarketEmbed",kt,k),$(g,1,k);customElements.get("polymarket-market-embed")||customElements.define("polymarket-market-embed",k);/*! Bundled license information:
</div>`:$e` <span>${" "}</span> `}};g=Ie(wt),we=new WeakMap,ke=new WeakMap,Ce=new WeakMap,Ae=new WeakMap,Se=new WeakMap,Ee=new WeakMap,Me=new WeakMap,Pe=new WeakMap,Ne=new WeakMap,Le=new WeakMap,A(g,4,"theme",xt,k,we),A(g,4,"width",$t,k,ke),A(g,4,"marketSlug",vt,k,Ce),A(g,4,"creator",_t,k,Ae),A(g,4,"showVolume",bt,k,Se),A(g,4,"showChart",yt,k,Ee),A(g,4,"_market",gt,k,Me),A(g,4,"_href",mt,k,Pe),A(g,4,"_probability",ft,k,Ne),A(g,4,"_fillPathD",dt,k,Le),k=A(g,0,"MarketEmbed",kt,k),$(g,1,k);customElements.get("polymarket-market-embed")||customElements.define("polymarket-market-embed",k);/*! Bundled license information:

@@ -437,0 +446,0 @@ numeral/numeral.js:

@@ -1,4 +0,4 @@

var ze=Object.create;var D=Object.defineProperty;var Be=Object.getOwnPropertyDescriptor;var Ct=Object.getOwnPropertyNames;var At=Object.getPrototypeOf,St=Object.prototype.hasOwnProperty;var je=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),B=t=>{throw TypeError(t)};var Et=(t,e,o)=>e in t?D(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var Fe=(t,e)=>D(t,"name",{value:e,configurable:!0});var Mt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Pt=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ct(e))!St.call(t,n)&&n!==o&&D(t,n,{get:()=>e[n],enumerable:!(i=Be(e,n))||i.enumerable});return t};var Nt=(t,e,o)=>(o=t!=null?ze(At(t)):{},Pt(D(o,"default",{value:t,enumerable:!0}),t));var Ie=t=>[,,,ze(t?.[je("metadata")]??null)],Ze=["class","method","getter","setter","accessor","field","value","get","set"],Z=t=>t!==void 0&&typeof t!="function"?B("Function expected"):t,Tt=(t,e,o,i,n)=>({kind:Ze[t],name:e,metadata:i,addInitializer:u=>o._?B("Already initialized"):n.push(Z(u||null))}),Ht=(t,e)=>Et(e,je("metadata"),t[3]),$=(t,e,o,i)=>{for(var n=0,u=t[e>>1],p=u&&u.length;n<p;n++)e&1?u[n].call(o):i=u[n].call(o,i);return i},A=(t,e,o,i,n,u)=>{var p,m,r,s,h,a=e&7,l=!!(e&8),c=!!(e&16),d=a>3?t.length+1:a?l?1:2:0,f=Ze[a+5],v=a>3&&(t[d-1]=[]),y=t[d]||(t[d]=[]),_=a&&(!c&&!l&&(n=n.prototype),a<5&&(a>3||!c)&&Be(a<4?n:{get[o](){return Ue(this,u)},set[o](b){return Re(this,u,b)}},o));a?c&&a<4&&Fe(u,(a>2?"set ":a>1?"get ":"")+o):Fe(n,o);for(var S=i.length-1;S>=0;S--)s=Tt(a,o,r={},t[3],y),a&&(s.static=l,s.private=c,h=s.access={has:c?b=>Lt(n,b):b=>o in b},a^3&&(h.get=c?b=>(a^1?Ue:Ot)(b,n,a^4?u:_.get):b=>b[o]),a>2&&(h.set=c?(b,P)=>Re(b,n,P,a^4?u:_.set):(b,P)=>b[o]=P)),m=(0, i[S])(a?a<4?c?u:_[f]:a>4?void 0:{get:_.get,set:_.set}:n,s),r._=1,a^4||m===void 0?Z(m)&&(a>4?v.unshift(m):a?c?u=m:_[f]=m:n=m):typeof m!="object"||m===null?B("Object expected"):(Z(p=m.get)&&(_.get=p),Z(p=m.set)&&(_.set=p),Z(p=m.init)&&v.unshift(p));return a||Ht(t,n),_&&D(n,o,_),c?a^4?u:_:n};var ue=(t,e,o)=>e.has(t)||B("Cannot "+o),Lt=(t,e)=>Object(e)!==e?B('Cannot use the "in" operator on this value'):t.has(e),Ue=(t,e,o)=>(ue(t,e,"read from private field"),o?o.call(t):e.get(t)),M=(t,e,o)=>e.has(t)?B("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),Re=(t,e,o,i)=>(ue(t,e,"write to private field"),i?i.call(t,o):e.set(t,o),o),Ot=(t,e,o)=>(ue(t,e,"access private method"),o);var ht=Mt((ut,le)=>{(function(t,e){typeof define=="function"&&define.amd?define(e):typeof le=="object"&&le.exports?le.exports=e():t.numeral=e();})(ut,function(){var t,e,o="2.0.6",i={},n={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},p={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function m(r,s){this._input=r,this._value=s;}return t=function(r){var s,h,a,l;if(t.isNumeral(r))s=r.value();else if(r===0||typeof r>"u")s=0;else if(r===null||e.isNaN(r))s=null;else if(typeof r=="string")if(p.zeroFormat&&r===p.zeroFormat)s=0;else if(p.nullFormat&&r===p.nullFormat||!r.replace(/[^0-9]+/g,"").length)s=null;else {for(h in i)if(l=typeof i[h].regexps.unformat=="function"?i[h].regexps.unformat():i[h].regexps.unformat,l&&r.match(l)){a=i[h].unformat;break}a=a||t._.stringToNumber,s=a(r);}else s=Number(r)||null;return new m(r,s)},t.version=o,t.isNumeral=function(r){return r instanceof m},t._=e={numberToFormat:function(r,s,h){var a=n[t.options.currentLocale],l=!1,c=!1,d=0,f="",v=1e12,y=1e9,_=1e6,S=1e3,b="",P=!1,C,L,w,E,ce,Oe,N;if(r=r||0,L=Math.abs(r),t._.includes(s,"(")?(l=!0,s=s.replace(/[\(|\)]/g,"")):(t._.includes(s,"+")||t._.includes(s,"-"))&&(ce=t._.includes(s,"+")?s.indexOf("+"):r<0?s.indexOf("-"):-1,s=s.replace(/[\+|\-]/g,"")),t._.includes(s,"a")&&(C=s.match(/a(k|m|b|t)?/),C=C?C[1]:!1,t._.includes(s," a")&&(f=" "),s=s.replace(new RegExp(f+"a[kmbt]?"),""),L>=v&&!C||C==="t"?(f+=a.abbreviations.trillion,r=r/v):L<v&&L>=y&&!C||C==="b"?(f+=a.abbreviations.billion,r=r/y):L<y&&L>=_&&!C||C==="m"?(f+=a.abbreviations.million,r=r/_):(L<_&&L>=S&&!C||C==="k")&&(f+=a.abbreviations.thousand,r=r/S)),t._.includes(s,"[.]")&&(c=!0,s=s.replace("[.]",".")),w=r.toString().split(".")[0],E=s.split(".")[1],Oe=s.indexOf(","),d=(s.split(".")[0].split(",")[0].match(/0/g)||[]).length,E?(t._.includes(E,"[")?(E=E.replace("]",""),E=E.split("["),b=t._.toFixed(r,E[0].length+E[1].length,h,E[1].length)):b=t._.toFixed(r,E.length,h),w=b.split(".")[0],t._.includes(b,".")?b=a.delimiters.decimal+b.split(".")[1]:b="",c&&Number(b.slice(1))===0&&(b="")):w=t._.toFixed(r,0,h),f&&!C&&Number(w)>=1e3&&f!==a.abbreviations.trillion)switch(w=String(Number(w)/1e3),f){case a.abbreviations.thousand:f=a.abbreviations.million;break;case a.abbreviations.million:f=a.abbreviations.billion;break;case a.abbreviations.billion:f=a.abbreviations.trillion;break}if(t._.includes(w,"-")&&(w=w.slice(1),P=!0),w.length<d)for(var Ve=d-w.length;Ve>0;Ve--)w="0"+w;return Oe>-1&&(w=w.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+a.delimiters.thousands)),s.indexOf(".")===0&&(w=""),N=w+b+(f||""),l?N=(l&&P?"(":"")+N+(l&&P?")":""):ce>=0?N=ce===0?(P?"-":"+")+N:N+(P?"-":"+"):P&&(N="-"+N),N},stringToNumber:function(r){var s=n[p.currentLocale],h=r,a={thousand:3,million:6,billion:9,trillion:12},l,c,f;if(p.zeroFormat&&r===p.zeroFormat)c=0;else if(p.nullFormat&&r===p.nullFormat||!r.replace(/[^0-9]+/g,"").length)c=null;else {c=1,s.delimiters.decimal!=="."&&(r=r.replace(/\./g,"").replace(s.delimiters.decimal,"."));for(l in a)if(f=new RegExp("[^a-zA-Z]"+s.abbreviations[l]+"(?:\\)|(\\"+s.currency.symbol+")?(?:\\))?)?$"),h.match(f)){c*=Math.pow(10,a[l]);break}c*=(r.split("-").length+Math.min(r.split("(").length-1,r.split(")").length-1))%2?1:-1,r=r.replace(/[^0-9\.]+/g,""),c*=Number(r);}return c},isNaN:function(r){return typeof r=="number"&&isNaN(r)},includes:function(r,s){return r.indexOf(s)!==-1},insert:function(r,s,h){return r.slice(0,h)+s+r.slice(h)},reduce:function(r,s){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof s!="function")throw new TypeError(s+" is not a function");var h=Object(r),a=h.length>>>0,l=0,c;if(arguments.length===3)c=arguments[2];else {for(;l<a&&!(l in h);)l++;if(l>=a)throw new TypeError("Reduce of empty array with no initial value");c=h[l++];}for(;l<a;l++)l in h&&(c=s(c,h[l],l,h));return c},multiplier:function(r){var s=r.toString().split(".");return s.length<2?1:Math.pow(10,s[1].length)},correctionFactor:function(){var r=Array.prototype.slice.call(arguments);return r.reduce(function(s,h){var a=e.multiplier(h);return s>a?s:a},1)},toFixed:function(r,s,h,a){var l=r.toString().split("."),c=s-(a||0),d,f,v,y;return l.length===2?d=Math.min(Math.max(l[1].length,c),s):d=c,v=Math.pow(10,d),y=(h(r+"e+"+d)/v).toFixed(d),a>s-d&&(f=new RegExp("\\.?0{1,"+(a-(s-d))+"}$"),y=y.replace(f,"")),y}},t.options=p,t.formats=i,t.locales=n,t.locale=function(r){return r&&(p.currentLocale=r.toLowerCase()),p.currentLocale},t.localeData=function(r){if(!r)return n[p.currentLocale];if(r=r.toLowerCase(),!n[r])throw new Error("Unknown locale : "+r);return n[r]},t.reset=function(){for(var r in u)p[r]=u[r];},t.zeroFormat=function(r){p.zeroFormat=typeof r=="string"?r:null;},t.nullFormat=function(r){p.nullFormat=typeof r=="string"?r:null;},t.defaultFormat=function(r){p.defaultFormat=typeof r=="string"?r:"0.0";},t.register=function(r,s,h){if(s=s.toLowerCase(),this[r+"s"][s])throw new TypeError(s+" "+r+" already registered.");return this[r+"s"][s]=h,h},t.validate=function(r,s){var h,a,l,c,d,f,v,y;if(typeof r!="string"&&(r+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",r)),r=r.trim(),r.match(/^\d+$/))return !0;if(r==="")return !1;try{v=t.localeData(s);}catch{v=t.localeData(t.locale());}return l=v.currency.symbol,d=v.abbreviations,h=v.delimiters.decimal,v.delimiters.thousands==="."?a="\\.":a=v.delimiters.thousands,y=r.match(/^[^\d]+/),y!==null&&(r=r.substr(1),y[0]!==l)||(y=r.match(/[^\d]+$/),y!==null&&(r=r.slice(0,-1),y[0]!==d.thousand&&y[0]!==d.million&&y[0]!==d.billion&&y[0]!==d.trillion))?!1:(f=new RegExp(a+"{2}"),r.match(/[^\d.,]/g)?!1:(c=r.split(h),c.length>2?!1:c.length<2?!!c[0].match(/^\d+.*\d$/)&&!c[0].match(f):c[0].length===1?!!c[0].match(/^\d+$/)&&!c[0].match(f)&&!!c[1].match(/^\d+$/):!!c[0].match(/^\d+.*\d$/)&&!c[0].match(f)&&!!c[1].match(/^\d+$/)))},t.fn=m.prototype={clone:function(){return t(this)},format:function(r,s){var h=this._value,a=r||p.defaultFormat,l,c,d;if(s=s||Math.round,h===0&&p.zeroFormat!==null)c=p.zeroFormat;else if(h===null&&p.nullFormat!==null)c=p.nullFormat;else {for(l in i)if(a.match(i[l].regexps.format)){d=i[l].format;break}d=d||t._.numberToFormat,c=d(h,a,s);}return c},value:function(){return this._value},input:function(){return this._input},set:function(r){return this._value=Number(r),this},add:function(r){var s=e.correctionFactor.call(null,this._value,r);function h(a,l,c,d){return a+Math.round(s*l)}return this._value=e.reduce([this._value,r],h,0)/s,this},subtract:function(r){var s=e.correctionFactor.call(null,this._value,r);function h(a,l,c,d){return a-Math.round(s*l)}return this._value=e.reduce([r],h,Math.round(this._value*s))/s,this},multiply:function(r){function s(h,a,l,c){var d=e.correctionFactor(h,a);return Math.round(h*d)*Math.round(a*d)/Math.round(d*d)}return this._value=e.reduce([this._value,r],s,1),this},divide:function(r){function s(h,a,l,c){var d=e.correctionFactor(h,a);return Math.round(h*d)/Math.round(a*d)}return this._value=e.reduce([this._value,r],s),this},difference:function(r){return Math.abs(t(this._value).subtract(r).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(r){var s=r%10;return ~~(r%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(r,s,h){var a=t._.includes(s," BPS")?" ":"",l;return r=r*1e4,s=s.replace(/\s?BPS/,""),l=t._.numberToFormat(r,s,h),t._.includes(l,")")?(l=l.split(""),l.splice(-1,0,a+"BPS"),l=l.join("")):l=l+a+"BPS",l},unformat:function(r){return +(t._.stringToNumber(r)*1e-4).toFixed(15)}});}(),function(){var r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},s={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=r.suffixes.concat(s.suffixes.filter(function(l){return r.suffixes.indexOf(l)<0})),a=h.join("|");a="("+a.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(a)},format:function(l,c,d){var f,v=t._.includes(c,"ib")?s:r,y=t._.includes(c," b")||t._.includes(c," ib")?" ":"",_,S,b;for(c=c.replace(/\s?i?b/,""),_=0;_<=v.suffixes.length;_++)if(S=Math.pow(v.base,_),b=Math.pow(v.base,_+1),l===null||l===0||l>=S&&l<b){y+=v.suffixes[_],S>0&&(l=l/S);break}return f=t._.numberToFormat(l,c,d),f+y},unformat:function(l){var c=t._.stringToNumber(l),d,f;if(c){for(d=r.suffixes.length-1;d>=0;d--){if(t._.includes(l,r.suffixes[d])){f=Math.pow(r.base,d);break}if(t._.includes(l,s.suffixes[d])){f=Math.pow(s.base,d);break}}c*=f||1;}return c}});}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(r,s,h){var a=t.locales[t.options.currentLocale],l={before:s.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:s.match(/([\+|\-|\)|\s|\$]*)$/)[0]},c,d,f;for(s=s.replace(/\s?\$\s?/,""),c=t._.numberToFormat(r,s,h),r>=0?(l.before=l.before.replace(/[\-\(]/,""),l.after=l.after.replace(/[\-\)]/,"")):r<0&&!t._.includes(l.before,"-")&&!t._.includes(l.before,"(")&&(l.before="-"+l.before),f=0;f<l.before.length;f++)switch(d=l.before[f],d){case"$":c=t._.insert(c,a.currency.symbol,f);break;case" ":c=t._.insert(c," ",f+a.currency.symbol.length-1);break}for(f=l.after.length-1;f>=0;f--)switch(d=l.after[f],d){case"$":c=f===l.after.length-1?c+a.currency.symbol:t._.insert(c,a.currency.symbol,-(l.after.length-(1+f)));break;case" ":c=f===l.after.length-1?c+" ":t._.insert(c," ",-(l.after.length-(1+f)+a.currency.symbol.length-1));break}return c}});}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(r,s,h){var a,l=typeof r=="number"&&!t._.isNaN(r)?r.toExponential():"0e+0",c=l.split("e");return s=s.replace(/e[\+|\-]{1}0/,""),a=t._.numberToFormat(Number(c[0]),s,h),a+"e"+c[1]},unformat:function(r){var s=t._.includes(r,"e+")?r.split("e+"):r.split("e-"),h=Number(s[0]),a=Number(s[1]);a=t._.includes(r,"e-")?a*=-1:a;function l(c,d,f,v){var y=t._.correctionFactor(c,d),_=c*y*(d*y)/(y*y);return _}return t._.reduce([h,Math.pow(10,a)],l,1)}});}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(r,s,h){var a=t.locales[t.options.currentLocale],l,c=t._.includes(s," o")?" ":"";return s=s.replace(/\s?o/,""),c+=a.ordinal(r),l=t._.numberToFormat(r,s,h),l+c}});}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(r,s,h){var a=t._.includes(s," %")?" ":"",l;return t.options.scalePercentBy100&&(r=r*100),s=s.replace(/\s?\%/,""),l=t._.numberToFormat(r,s,h),t._.includes(l,")")?(l=l.split(""),l.splice(-1,0,a+"%"),l=l.join("")):l=l+a+"%",l},unformat:function(r){var s=t._.stringToNumber(r);return t.options.scalePercentBy100?s*.01:s}});}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(r,s,h){var a=Math.floor(r/60/60),l=Math.floor((r-a*60*60)/60),c=Math.round(r-a*60*60-l*60);return a+":"+(l<10?"0"+l:l)+":"+(c<10?"0"+c:c)},unformat:function(r){var s=r.split(":"),h=0;return s.length===3?(h=h+Number(s[0])*60*60,h=h+Number(s[1])*60,h=h+Number(s[2])):s.length===2&&(h=h+Number(s[0])*60,h=h+Number(s[1])),Number(h)}});}(),t});});var te=globalThis,re=te.ShadowRoot&&(te.ShadyCSS===void 0||te.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,he=Symbol(),De=new WeakMap,q=class{constructor(e,o,i){if(this._$cssResult$=!0,i!==he)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=o;}get styleSheet(){let e=this.o,o=this.t;if(re&&e===void 0){let i=o!==void 0&&o.length===1;i&&(e=De.get(o)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&De.set(o,e));}return e}toString(){return this.cssText}},qe=t=>new q(typeof t=="string"?t:t+"",void 0,he),pe=(t,...e)=>{let o=t.length===1?t[0]:e.reduce((i,n,u)=>i+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[u+1],t[0]);return new q(o,t,he)},de=(t,e)=>{if(re)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let i=document.createElement("style"),n=te.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i);}},oe=re?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let o="";for(let i of e.cssRules)o+=i.cssText;return qe(o)})(t):t;var{is:Vt,defineProperty:Ft,getOwnPropertyDescriptor:Ut,getOwnPropertyNames:Rt,getOwnPropertySymbols:zt,getPrototypeOf:Bt}=Object,ie=globalThis,Je=ie.trustedTypes,jt=Je?Je.emptyScript:"",It=ie.reactiveElementPolyfillSupport,J=(t,e)=>t,W={toAttribute(t,e){switch(e){case Boolean:t=t?jt:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t);}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t);}catch{o=null;}}return o}},se=(t,e)=>!Vt(t,e),We={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:se};Symbol.metadata??=Symbol("metadata"),ie.litPropertyMetadata??=new WeakMap;var T=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,o=We){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(e,o),!o.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,o);n!==void 0&&Ft(this.prototype,e,n);}}static getPropertyDescriptor(e,o,i){let{get:n,set:u}=Ut(this.prototype,e)??{get(){return this[o]},set(p){this[o]=p;}};return {get(){return n?.call(this)},set(p){let m=n?.call(this);u.call(this,p),this.requestUpdate(e,m,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??We}static _$Ei(){if(this.hasOwnProperty(J("elementProperties")))return;let e=Bt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties);}static finalize(){if(this.hasOwnProperty(J("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(J("properties"))){let o=this.properties,i=[...Rt(o),...zt(o)];for(let n of i)this.createProperty(n,o[n]);}let e=this[Symbol.metadata];if(e!==null){let o=litPropertyMetadata.get(e);if(o!==void 0)for(let[i,n]of o)this.elementProperties.set(i,n);}this._$Eh=new Map;for(let[o,i]of this.elementProperties){let n=this._$Eu(o,i);n!==void 0&&this._$Eh.set(n,o);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(e){let o=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)o.unshift(oe(n));}else e!==void 0&&o.push(oe(e));return o}static _$Eu(e,o){let i=o.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this));}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.();}removeController(e){this._$EO?.delete(e);}_$E_(){let e=new Map,o=this.constructor.elementProperties;for(let i of o.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e);}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return de(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.());}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.());}attributeChangedCallback(e,o,i){this._$AK(e,i);}_$EC(e,o){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let u=(i.converter?.toAttribute!==void 0?i.converter:W).toAttribute(o,i.type);this._$Em=e,u==null?this.removeAttribute(n):this.setAttribute(n,u),this._$Em=null;}}_$AK(e,o){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let u=i.getPropertyOptions(n),p=typeof u.converter=="function"?{fromAttribute:u.converter}:u.converter?.fromAttribute!==void 0?u.converter:W;this._$Em=n,this[n]=p.fromAttribute(o,u.type),this._$Em=null;}}requestUpdate(e,o,i){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??se)(this[e],o))return;this.P(e,o,i);}this.isUpdatePending===!1&&(this._$ES=this._$ET());}P(e,o,i){this._$AL.has(e)||this._$AL.set(e,o),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e);}async _$ET(){this.isUpdatePending=!0;try{await this._$ES;}catch(o){Promise.reject(o);}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,u]of this._$Ep)this[n]=u;this._$Ep=void 0;}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,u]of i)u.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],u);}let e=!1,o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(o)):this._$EU();}catch(i){throw e=!1,this._$EU(),i}e&&this._$AE(o);}willUpdate(e){}_$AE(e){this._$EO?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return !0}update(e){this._$Ej&&=this._$Ej.forEach(o=>this._$EC(o,this[o])),this._$EU();}updated(e){}firstUpdated(e){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[J("elementProperties")]=new Map,T[J("finalized")]=new Map,It?.({ReactiveElement:T}),(ie.reactiveElementVersions??=[]).push("2.0.4");var ve=globalThis,ne=ve.trustedTypes,Ke=ne?ne.createPolicy("lit-html",{createHTML:t=>t}):void 0,tt="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,rt="?"+O,Zt=`<${rt}>`,R=document,G=()=>R.createComment(""),X=t=>t===null||typeof t!="object"&&typeof t!="function",ot=Array.isArray,Dt=t=>ot(t)||typeof t?.[Symbol.iterator]=="function",fe=`[
var ze=Object.create;var D=Object.defineProperty;var Be=Object.getOwnPropertyDescriptor;var Ct=Object.getOwnPropertyNames;var At=Object.getPrototypeOf,St=Object.prototype.hasOwnProperty;var je=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),B=t=>{throw TypeError(t)};var Et=(t,e,o)=>e in t?D(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var Fe=(t,e)=>D(t,"name",{value:e,configurable:!0});var Mt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Pt=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ct(e))!St.call(t,n)&&n!==o&&D(t,n,{get:()=>e[n],enumerable:!(i=Be(e,n))||i.enumerable});return t};var Nt=(t,e,o)=>(o=t!=null?ze(At(t)):{},Pt(D(o,"default",{value:t,enumerable:!0}),t));var Ie=t=>[,,,ze(t?.[je("metadata")]??null)],Ze=["class","method","getter","setter","accessor","field","value","get","set"],Z=t=>t!==void 0&&typeof t!="function"?B("Function expected"):t,Lt=(t,e,o,i,n)=>({kind:Ze[t],name:e,metadata:i,addInitializer:u=>o._?B("Already initialized"):n.push(Z(u||null))}),Tt=(t,e)=>Et(e,je("metadata"),t[3]),$=(t,e,o,i)=>{for(var n=0,u=t[e>>1],p=u&&u.length;n<p;n++)e&1?u[n].call(o):i=u[n].call(o,i);return i},A=(t,e,o,i,n,u)=>{var p,m,r,s,h,a=e&7,l=!!(e&8),c=!!(e&16),d=a>3?t.length+1:a?l?1:2:0,f=Ze[a+5],v=a>3&&(t[d-1]=[]),y=t[d]||(t[d]=[]),_=a&&(!c&&!l&&(n=n.prototype),a<5&&(a>3||!c)&&Be(a<4?n:{get[o](){return Ue(this,u)},set[o](b){return Re(this,u,b)}},o));a?c&&a<4&&Fe(u,(a>2?"set ":a>1?"get ":"")+o):Fe(n,o);for(var S=i.length-1;S>=0;S--)s=Lt(a,o,r={},t[3],y),a&&(s.static=l,s.private=c,h=s.access={has:c?b=>Ht(n,b):b=>o in b},a^3&&(h.get=c?b=>(a^1?Ue:Ot)(b,n,a^4?u:_.get):b=>b[o]),a>2&&(h.set=c?(b,P)=>Re(b,n,P,a^4?u:_.set):(b,P)=>b[o]=P)),m=(0, i[S])(a?a<4?c?u:_[f]:a>4?void 0:{get:_.get,set:_.set}:n,s),r._=1,a^4||m===void 0?Z(m)&&(a>4?v.unshift(m):a?c?u=m:_[f]=m:n=m):typeof m!="object"||m===null?B("Object expected"):(Z(p=m.get)&&(_.get=p),Z(p=m.set)&&(_.set=p),Z(p=m.init)&&v.unshift(p));return a||Tt(t,n),_&&D(n,o,_),c?a^4?u:_:n};var ue=(t,e,o)=>e.has(t)||B("Cannot "+o),Ht=(t,e)=>Object(e)!==e?B('Cannot use the "in" operator on this value'):t.has(e),Ue=(t,e,o)=>(ue(t,e,"read from private field"),o?o.call(t):e.get(t)),M=(t,e,o)=>e.has(t)?B("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),Re=(t,e,o,i)=>(ue(t,e,"write to private field"),i?i.call(t,o):e.set(t,o),o),Ot=(t,e,o)=>(ue(t,e,"access private method"),o);var ht=Mt((ut,le)=>{(function(t,e){typeof define=="function"&&define.amd?define(e):typeof le=="object"&&le.exports?le.exports=e():t.numeral=e();})(ut,function(){var t,e,o="2.0.6",i={},n={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},p={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function m(r,s){this._input=r,this._value=s;}return t=function(r){var s,h,a,l;if(t.isNumeral(r))s=r.value();else if(r===0||typeof r>"u")s=0;else if(r===null||e.isNaN(r))s=null;else if(typeof r=="string")if(p.zeroFormat&&r===p.zeroFormat)s=0;else if(p.nullFormat&&r===p.nullFormat||!r.replace(/[^0-9]+/g,"").length)s=null;else {for(h in i)if(l=typeof i[h].regexps.unformat=="function"?i[h].regexps.unformat():i[h].regexps.unformat,l&&r.match(l)){a=i[h].unformat;break}a=a||t._.stringToNumber,s=a(r);}else s=Number(r)||null;return new m(r,s)},t.version=o,t.isNumeral=function(r){return r instanceof m},t._=e={numberToFormat:function(r,s,h){var a=n[t.options.currentLocale],l=!1,c=!1,d=0,f="",v=1e12,y=1e9,_=1e6,S=1e3,b="",P=!1,C,H,w,E,ce,Oe,N;if(r=r||0,H=Math.abs(r),t._.includes(s,"(")?(l=!0,s=s.replace(/[\(|\)]/g,"")):(t._.includes(s,"+")||t._.includes(s,"-"))&&(ce=t._.includes(s,"+")?s.indexOf("+"):r<0?s.indexOf("-"):-1,s=s.replace(/[\+|\-]/g,"")),t._.includes(s,"a")&&(C=s.match(/a(k|m|b|t)?/),C=C?C[1]:!1,t._.includes(s," a")&&(f=" "),s=s.replace(new RegExp(f+"a[kmbt]?"),""),H>=v&&!C||C==="t"?(f+=a.abbreviations.trillion,r=r/v):H<v&&H>=y&&!C||C==="b"?(f+=a.abbreviations.billion,r=r/y):H<y&&H>=_&&!C||C==="m"?(f+=a.abbreviations.million,r=r/_):(H<_&&H>=S&&!C||C==="k")&&(f+=a.abbreviations.thousand,r=r/S)),t._.includes(s,"[.]")&&(c=!0,s=s.replace("[.]",".")),w=r.toString().split(".")[0],E=s.split(".")[1],Oe=s.indexOf(","),d=(s.split(".")[0].split(",")[0].match(/0/g)||[]).length,E?(t._.includes(E,"[")?(E=E.replace("]",""),E=E.split("["),b=t._.toFixed(r,E[0].length+E[1].length,h,E[1].length)):b=t._.toFixed(r,E.length,h),w=b.split(".")[0],t._.includes(b,".")?b=a.delimiters.decimal+b.split(".")[1]:b="",c&&Number(b.slice(1))===0&&(b="")):w=t._.toFixed(r,0,h),f&&!C&&Number(w)>=1e3&&f!==a.abbreviations.trillion)switch(w=String(Number(w)/1e3),f){case a.abbreviations.thousand:f=a.abbreviations.million;break;case a.abbreviations.million:f=a.abbreviations.billion;break;case a.abbreviations.billion:f=a.abbreviations.trillion;break}if(t._.includes(w,"-")&&(w=w.slice(1),P=!0),w.length<d)for(var Ve=d-w.length;Ve>0;Ve--)w="0"+w;return Oe>-1&&(w=w.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+a.delimiters.thousands)),s.indexOf(".")===0&&(w=""),N=w+b+(f||""),l?N=(l&&P?"(":"")+N+(l&&P?")":""):ce>=0?N=ce===0?(P?"-":"+")+N:N+(P?"-":"+"):P&&(N="-"+N),N},stringToNumber:function(r){var s=n[p.currentLocale],h=r,a={thousand:3,million:6,billion:9,trillion:12},l,c,f;if(p.zeroFormat&&r===p.zeroFormat)c=0;else if(p.nullFormat&&r===p.nullFormat||!r.replace(/[^0-9]+/g,"").length)c=null;else {c=1,s.delimiters.decimal!=="."&&(r=r.replace(/\./g,"").replace(s.delimiters.decimal,"."));for(l in a)if(f=new RegExp("[^a-zA-Z]"+s.abbreviations[l]+"(?:\\)|(\\"+s.currency.symbol+")?(?:\\))?)?$"),h.match(f)){c*=Math.pow(10,a[l]);break}c*=(r.split("-").length+Math.min(r.split("(").length-1,r.split(")").length-1))%2?1:-1,r=r.replace(/[^0-9\.]+/g,""),c*=Number(r);}return c},isNaN:function(r){return typeof r=="number"&&isNaN(r)},includes:function(r,s){return r.indexOf(s)!==-1},insert:function(r,s,h){return r.slice(0,h)+s+r.slice(h)},reduce:function(r,s){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof s!="function")throw new TypeError(s+" is not a function");var h=Object(r),a=h.length>>>0,l=0,c;if(arguments.length===3)c=arguments[2];else {for(;l<a&&!(l in h);)l++;if(l>=a)throw new TypeError("Reduce of empty array with no initial value");c=h[l++];}for(;l<a;l++)l in h&&(c=s(c,h[l],l,h));return c},multiplier:function(r){var s=r.toString().split(".");return s.length<2?1:Math.pow(10,s[1].length)},correctionFactor:function(){var r=Array.prototype.slice.call(arguments);return r.reduce(function(s,h){var a=e.multiplier(h);return s>a?s:a},1)},toFixed:function(r,s,h,a){var l=r.toString().split("."),c=s-(a||0),d,f,v,y;return l.length===2?d=Math.min(Math.max(l[1].length,c),s):d=c,v=Math.pow(10,d),y=(h(r+"e+"+d)/v).toFixed(d),a>s-d&&(f=new RegExp("\\.?0{1,"+(a-(s-d))+"}$"),y=y.replace(f,"")),y}},t.options=p,t.formats=i,t.locales=n,t.locale=function(r){return r&&(p.currentLocale=r.toLowerCase()),p.currentLocale},t.localeData=function(r){if(!r)return n[p.currentLocale];if(r=r.toLowerCase(),!n[r])throw new Error("Unknown locale : "+r);return n[r]},t.reset=function(){for(var r in u)p[r]=u[r];},t.zeroFormat=function(r){p.zeroFormat=typeof r=="string"?r:null;},t.nullFormat=function(r){p.nullFormat=typeof r=="string"?r:null;},t.defaultFormat=function(r){p.defaultFormat=typeof r=="string"?r:"0.0";},t.register=function(r,s,h){if(s=s.toLowerCase(),this[r+"s"][s])throw new TypeError(s+" "+r+" already registered.");return this[r+"s"][s]=h,h},t.validate=function(r,s){var h,a,l,c,d,f,v,y;if(typeof r!="string"&&(r+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",r)),r=r.trim(),r.match(/^\d+$/))return !0;if(r==="")return !1;try{v=t.localeData(s);}catch{v=t.localeData(t.locale());}return l=v.currency.symbol,d=v.abbreviations,h=v.delimiters.decimal,v.delimiters.thousands==="."?a="\\.":a=v.delimiters.thousands,y=r.match(/^[^\d]+/),y!==null&&(r=r.substr(1),y[0]!==l)||(y=r.match(/[^\d]+$/),y!==null&&(r=r.slice(0,-1),y[0]!==d.thousand&&y[0]!==d.million&&y[0]!==d.billion&&y[0]!==d.trillion))?!1:(f=new RegExp(a+"{2}"),r.match(/[^\d.,]/g)?!1:(c=r.split(h),c.length>2?!1:c.length<2?!!c[0].match(/^\d+.*\d$/)&&!c[0].match(f):c[0].length===1?!!c[0].match(/^\d+$/)&&!c[0].match(f)&&!!c[1].match(/^\d+$/):!!c[0].match(/^\d+.*\d$/)&&!c[0].match(f)&&!!c[1].match(/^\d+$/)))},t.fn=m.prototype={clone:function(){return t(this)},format:function(r,s){var h=this._value,a=r||p.defaultFormat,l,c,d;if(s=s||Math.round,h===0&&p.zeroFormat!==null)c=p.zeroFormat;else if(h===null&&p.nullFormat!==null)c=p.nullFormat;else {for(l in i)if(a.match(i[l].regexps.format)){d=i[l].format;break}d=d||t._.numberToFormat,c=d(h,a,s);}return c},value:function(){return this._value},input:function(){return this._input},set:function(r){return this._value=Number(r),this},add:function(r){var s=e.correctionFactor.call(null,this._value,r);function h(a,l,c,d){return a+Math.round(s*l)}return this._value=e.reduce([this._value,r],h,0)/s,this},subtract:function(r){var s=e.correctionFactor.call(null,this._value,r);function h(a,l,c,d){return a-Math.round(s*l)}return this._value=e.reduce([r],h,Math.round(this._value*s))/s,this},multiply:function(r){function s(h,a,l,c){var d=e.correctionFactor(h,a);return Math.round(h*d)*Math.round(a*d)/Math.round(d*d)}return this._value=e.reduce([this._value,r],s,1),this},divide:function(r){function s(h,a,l,c){var d=e.correctionFactor(h,a);return Math.round(h*d)/Math.round(a*d)}return this._value=e.reduce([this._value,r],s),this},difference:function(r){return Math.abs(t(this._value).subtract(r).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(r){var s=r%10;return ~~(r%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(r,s,h){var a=t._.includes(s," BPS")?" ":"",l;return r=r*1e4,s=s.replace(/\s?BPS/,""),l=t._.numberToFormat(r,s,h),t._.includes(l,")")?(l=l.split(""),l.splice(-1,0,a+"BPS"),l=l.join("")):l=l+a+"BPS",l},unformat:function(r){return +(t._.stringToNumber(r)*1e-4).toFixed(15)}});}(),function(){var r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},s={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=r.suffixes.concat(s.suffixes.filter(function(l){return r.suffixes.indexOf(l)<0})),a=h.join("|");a="("+a.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(a)},format:function(l,c,d){var f,v=t._.includes(c,"ib")?s:r,y=t._.includes(c," b")||t._.includes(c," ib")?" ":"",_,S,b;for(c=c.replace(/\s?i?b/,""),_=0;_<=v.suffixes.length;_++)if(S=Math.pow(v.base,_),b=Math.pow(v.base,_+1),l===null||l===0||l>=S&&l<b){y+=v.suffixes[_],S>0&&(l=l/S);break}return f=t._.numberToFormat(l,c,d),f+y},unformat:function(l){var c=t._.stringToNumber(l),d,f;if(c){for(d=r.suffixes.length-1;d>=0;d--){if(t._.includes(l,r.suffixes[d])){f=Math.pow(r.base,d);break}if(t._.includes(l,s.suffixes[d])){f=Math.pow(s.base,d);break}}c*=f||1;}return c}});}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(r,s,h){var a=t.locales[t.options.currentLocale],l={before:s.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:s.match(/([\+|\-|\)|\s|\$]*)$/)[0]},c,d,f;for(s=s.replace(/\s?\$\s?/,""),c=t._.numberToFormat(r,s,h),r>=0?(l.before=l.before.replace(/[\-\(]/,""),l.after=l.after.replace(/[\-\)]/,"")):r<0&&!t._.includes(l.before,"-")&&!t._.includes(l.before,"(")&&(l.before="-"+l.before),f=0;f<l.before.length;f++)switch(d=l.before[f],d){case"$":c=t._.insert(c,a.currency.symbol,f);break;case" ":c=t._.insert(c," ",f+a.currency.symbol.length-1);break}for(f=l.after.length-1;f>=0;f--)switch(d=l.after[f],d){case"$":c=f===l.after.length-1?c+a.currency.symbol:t._.insert(c,a.currency.symbol,-(l.after.length-(1+f)));break;case" ":c=f===l.after.length-1?c+" ":t._.insert(c," ",-(l.after.length-(1+f)+a.currency.symbol.length-1));break}return c}});}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(r,s,h){var a,l=typeof r=="number"&&!t._.isNaN(r)?r.toExponential():"0e+0",c=l.split("e");return s=s.replace(/e[\+|\-]{1}0/,""),a=t._.numberToFormat(Number(c[0]),s,h),a+"e"+c[1]},unformat:function(r){var s=t._.includes(r,"e+")?r.split("e+"):r.split("e-"),h=Number(s[0]),a=Number(s[1]);a=t._.includes(r,"e-")?a*=-1:a;function l(c,d,f,v){var y=t._.correctionFactor(c,d),_=c*y*(d*y)/(y*y);return _}return t._.reduce([h,Math.pow(10,a)],l,1)}});}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(r,s,h){var a=t.locales[t.options.currentLocale],l,c=t._.includes(s," o")?" ":"";return s=s.replace(/\s?o/,""),c+=a.ordinal(r),l=t._.numberToFormat(r,s,h),l+c}});}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(r,s,h){var a=t._.includes(s," %")?" ":"",l;return t.options.scalePercentBy100&&(r=r*100),s=s.replace(/\s?\%/,""),l=t._.numberToFormat(r,s,h),t._.includes(l,")")?(l=l.split(""),l.splice(-1,0,a+"%"),l=l.join("")):l=l+a+"%",l},unformat:function(r){var s=t._.stringToNumber(r);return t.options.scalePercentBy100?s*.01:s}});}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(r,s,h){var a=Math.floor(r/60/60),l=Math.floor((r-a*60*60)/60),c=Math.round(r-a*60*60-l*60);return a+":"+(l<10?"0"+l:l)+":"+(c<10?"0"+c:c)},unformat:function(r){var s=r.split(":"),h=0;return s.length===3?(h=h+Number(s[0])*60*60,h=h+Number(s[1])*60,h=h+Number(s[2])):s.length===2&&(h=h+Number(s[0])*60,h=h+Number(s[1])),Number(h)}});}(),t});});var te=globalThis,re=te.ShadowRoot&&(te.ShadyCSS===void 0||te.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,he=Symbol(),De=new WeakMap,q=class{constructor(e,o,i){if(this._$cssResult$=!0,i!==he)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=o;}get styleSheet(){let e=this.o,o=this.t;if(re&&e===void 0){let i=o!==void 0&&o.length===1;i&&(e=De.get(o)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&De.set(o,e));}return e}toString(){return this.cssText}},qe=t=>new q(typeof t=="string"?t:t+"",void 0,he),pe=(t,...e)=>{let o=t.length===1?t[0]:e.reduce((i,n,u)=>i+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[u+1],t[0]);return new q(o,t,he)},de=(t,e)=>{if(re)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let i=document.createElement("style"),n=te.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i);}},oe=re?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let o="";for(let i of e.cssRules)o+=i.cssText;return qe(o)})(t):t;var{is:Vt,defineProperty:Ft,getOwnPropertyDescriptor:Ut,getOwnPropertyNames:Rt,getOwnPropertySymbols:zt,getPrototypeOf:Bt}=Object,ie=globalThis,Je=ie.trustedTypes,jt=Je?Je.emptyScript:"",It=ie.reactiveElementPolyfillSupport,J=(t,e)=>t,W={toAttribute(t,e){switch(e){case Boolean:t=t?jt:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t);}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t);}catch{o=null;}}return o}},se=(t,e)=>!Vt(t,e),We={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:se};Symbol.metadata??=Symbol("metadata"),ie.litPropertyMetadata??=new WeakMap;var L=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,o=We){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(e,o),!o.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,o);n!==void 0&&Ft(this.prototype,e,n);}}static getPropertyDescriptor(e,o,i){let{get:n,set:u}=Ut(this.prototype,e)??{get(){return this[o]},set(p){this[o]=p;}};return {get(){return n?.call(this)},set(p){let m=n?.call(this);u.call(this,p),this.requestUpdate(e,m,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??We}static _$Ei(){if(this.hasOwnProperty(J("elementProperties")))return;let e=Bt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties);}static finalize(){if(this.hasOwnProperty(J("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(J("properties"))){let o=this.properties,i=[...Rt(o),...zt(o)];for(let n of i)this.createProperty(n,o[n]);}let e=this[Symbol.metadata];if(e!==null){let o=litPropertyMetadata.get(e);if(o!==void 0)for(let[i,n]of o)this.elementProperties.set(i,n);}this._$Eh=new Map;for(let[o,i]of this.elementProperties){let n=this._$Eu(o,i);n!==void 0&&this._$Eh.set(n,o);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(e){let o=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)o.unshift(oe(n));}else e!==void 0&&o.push(oe(e));return o}static _$Eu(e,o){let i=o.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this));}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.();}removeController(e){this._$EO?.delete(e);}_$E_(){let e=new Map,o=this.constructor.elementProperties;for(let i of o.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e);}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return de(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.());}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.());}attributeChangedCallback(e,o,i){this._$AK(e,i);}_$EC(e,o){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let u=(i.converter?.toAttribute!==void 0?i.converter:W).toAttribute(o,i.type);this._$Em=e,u==null?this.removeAttribute(n):this.setAttribute(n,u),this._$Em=null;}}_$AK(e,o){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let u=i.getPropertyOptions(n),p=typeof u.converter=="function"?{fromAttribute:u.converter}:u.converter?.fromAttribute!==void 0?u.converter:W;this._$Em=n,this[n]=p.fromAttribute(o,u.type),this._$Em=null;}}requestUpdate(e,o,i){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??se)(this[e],o))return;this.P(e,o,i);}this.isUpdatePending===!1&&(this._$ES=this._$ET());}P(e,o,i){this._$AL.has(e)||this._$AL.set(e,o),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e);}async _$ET(){this.isUpdatePending=!0;try{await this._$ES;}catch(o){Promise.reject(o);}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,u]of this._$Ep)this[n]=u;this._$Ep=void 0;}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,u]of i)u.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],u);}let e=!1,o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(o)):this._$EU();}catch(i){throw e=!1,this._$EU(),i}e&&this._$AE(o);}willUpdate(e){}_$AE(e){this._$EO?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return !0}update(e){this._$Ej&&=this._$Ej.forEach(o=>this._$EC(o,this[o])),this._$EU();}updated(e){}firstUpdated(e){}};L.elementStyles=[],L.shadowRootOptions={mode:"open"},L[J("elementProperties")]=new Map,L[J("finalized")]=new Map,It?.({ReactiveElement:L}),(ie.reactiveElementVersions??=[]).push("2.0.4");var ve=globalThis,ne=ve.trustedTypes,Ke=ne?ne.createPolicy("lit-html",{createHTML:t=>t}):void 0,tt="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,rt="?"+O,Zt=`<${rt}>`,R=document,G=()=>R.createComment(""),X=t=>t===null||typeof t!="object"&&typeof t!="function",ot=Array.isArray,Dt=t=>ot(t)||typeof t?.[Symbol.iterator]=="function",fe=`[
\f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ge=/-->/g,Xe=/>/g,F=RegExp(`>|${fe}(?:([^\\s"'>=/]+)(${fe}*=${fe}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ye=/'/g,Qe=/"/g,it=/^(?:script|style|textarea|title)$/i,st=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),$e=st(1),z=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),et=new WeakMap,U=R.createTreeWalker(R,129);function nt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ke!==void 0?Ke.createHTML(e):e}var qt=(t,e)=>{let o=t.length-1,i=[],n,u=e===2?"<svg>":"",p=K;for(let m=0;m<o;m++){let r=t[m],s,h,a=-1,l=0;for(;l<r.length&&(p.lastIndex=l,h=p.exec(r),h!==null);)l=p.lastIndex,p===K?h[1]==="!--"?p=Ge:h[1]!==void 0?p=Xe:h[2]!==void 0?(it.test(h[2])&&(n=RegExp("</"+h[2],"g")),p=F):h[3]!==void 0&&(p=F):p===F?h[0]===">"?(p=n??K,a=-1):h[1]===void 0?a=-2:(a=p.lastIndex-h[2].length,s=h[1],p=h[3]===void 0?F:h[3]==='"'?Qe:Ye):p===Qe||p===Ye?p=F:p===Ge||p===Xe?p=K:(p=F,n=void 0);let c=p===F&&t[m+1].startsWith("/>")?" ":"";u+=p===K?r+Zt:a>=0?(i.push(s),r.slice(0,a)+tt+r.slice(a)+O+c):r+O+(a===-2?m:c);}return [nt(t,u+(t[o]||"<?>")+(e===2?"</svg>":"")),i]},Y=class t{constructor({strings:e,_$litType$:o},i){let n;this.parts=[];let u=0,p=0,m=e.length-1,r=this.parts,[s,h]=qt(e,o);if(this.el=t.createElement(s,i),U.currentNode=this.el.content,o===2){let a=this.el.content.firstChild;a.replaceWith(...a.childNodes);}for(;(n=U.nextNode())!==null&&r.length<m;){if(n.nodeType===1){if(n.hasAttributes())for(let a of n.getAttributeNames())if(a.endsWith(tt)){let l=h[p++],c=n.getAttribute(a).split(O),d=/([.?@])?(.*)/.exec(l);r.push({type:1,index:u,name:d[2],strings:c,ctor:d[1]==="."?ge:d[1]==="?"?ye:d[1]==="@"?be:I}),n.removeAttribute(a);}else a.startsWith(O)&&(r.push({type:6,index:u}),n.removeAttribute(a));if(it.test(n.tagName)){let a=n.textContent.split(O),l=a.length-1;if(l>0){n.textContent=ne?ne.emptyScript:"";for(let c=0;c<l;c++)n.append(a[c],G()),U.nextNode(),r.push({type:2,index:++u});n.append(a[l],G());}}}else if(n.nodeType===8)if(n.data===rt)r.push({type:2,index:u});else {let a=-1;for(;(a=n.data.indexOf(O,a+1))!==-1;)r.push({type:7,index:u}),a+=O.length-1;}u++;}}static createElement(e,o){let i=R.createElement("template");return i.innerHTML=e,i}};function j(t,e,o=t,i){if(e===z)return e;let n=i!==void 0?o._$Co?.[i]:o._$Cl,u=X(e)?void 0:e._$litDirective$;return n?.constructor!==u&&(n?._$AO?.(!1),u===void 0?n=void 0:(n=new u(t),n._$AT(t,o,i)),i!==void 0?(o._$Co??=[])[i]=n:o._$Cl=n),n!==void 0&&(e=j(t,n._$AS(t,e.values),n,i)),e}var me=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:i}=this._$AD,n=(e?.creationScope??R).importNode(o,!0);U.currentNode=n;let u=U.nextNode(),p=0,m=0,r=i[0];for(;r!==void 0;){if(p===r.index){let s;r.type===2?s=new Q(u,u.nextSibling,this,e):r.type===1?s=new r.ctor(u,r.name,r.strings,this,e):r.type===6&&(s=new _e(u,this,e)),this._$AV.push(s),r=i[++m];}p!==r?.index&&(u=U.nextNode(),p++);}return U.currentNode=R,n}p(e){let o=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,o),o+=i.strings.length-2):i._$AI(e[o])),o++;}},Q=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,i,n){this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0;}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=j(this,e,o),X(e)?e===x||e==null||e===""?(this._$AH!==x&&this._$AR(),this._$AH=x):e!==this._$AH&&e!==z&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Dt(e)?this.k(e):this._(e);}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e));}_(e){this._$AH!==x&&X(this._$AH)?this._$AA.nextSibling.data=e:this.T(R.createTextNode(e)),this._$AH=e;}$(e){let{values:o,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Y.createElement(nt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else {let u=new me(n,this),p=u.u(this.options);u.p(o),this.T(p),this._$AH=u;}}_$AC(e){let o=et.get(e.strings);return o===void 0&&et.set(e.strings,o=new Y(e)),o}k(e){ot(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,i,n=0;for(let u of e)n===o.length?o.push(i=new t(this.S(G()),this.S(G()),this,this.options)):i=o[n],i._$AI(u),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n);}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i;}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e));}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,i,n,u){this.type=1,this._$AH=x,this._$AN=void 0,this.element=e,this.name=o,this._$AM=n,this.options=u,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=x;}_$AI(e,o=this,i,n){let u=this.strings,p=!1;if(u===void 0)e=j(this,e,o,0),p=!X(e)||e!==this._$AH&&e!==z,p&&(this._$AH=e);else {let m=e,r,s;for(e=u[0],r=0;r<u.length-1;r++)s=j(this,m[i+r],o,r),s===z&&(s=this._$AH[r]),p||=!X(s)||s!==this._$AH[r],s===x?e=x:e!==x&&(e+=(s??"")+u[r+1]),this._$AH[r]=s;}p&&!n&&this.j(e);}j(e){e===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"");}},ge=class extends I{constructor(){super(...arguments),this.type=3;}j(e){this.element[this.name]=e===x?void 0:e;}},ye=class extends I{constructor(){super(...arguments),this.type=4;}j(e){this.element.toggleAttribute(this.name,!!e&&e!==x);}},be=class extends I{constructor(e,o,i,n,u){super(e,o,i,n,u),this.type=5;}_$AI(e,o=this){if((e=j(this,e,o,0)??x)===z)return;let i=this._$AH,n=e===x&&i!==x||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,u=e!==x&&(i===x||n);n&&this.element.removeEventListener(this.name,this,i),u&&this.element.addEventListener(this.name,this,e),this._$AH=e;}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e);}},_e=class{constructor(e,o,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i;}get _$AU(){return this._$AM._$AU}_$AI(e){j(this,e);}};var Jt=ve.litHtmlPolyfillSupport;Jt?.(Y,Q),(ve.litHtmlVersions??=[]).push("3.1.4");var at=(t,e,o)=>{let i=o?.renderBefore??e,n=i._$litPart$;if(n===void 0){let u=o?.renderBefore??null;i._$litPart$=n=new Q(e.insertBefore(G(),u),u,void 0,o??{});}return n._$AI(t),n};var V=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=at(o,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return z}};V._$litElement$=!0,V.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:V});var Wt=globalThis.litElementPolyfillSupport;Wt?.({LitElement:V});(globalThis.litElementVersions??=[]).push("4.0.6");var lt=t=>(e,o)=>{o!==void 0?o.addInitializer(()=>{customElements.define(t,e);}):customElements.define(t,e);};var Kt={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:se},Gt=(t=Kt,e,o)=>{let{kind:i,metadata:n}=o,u=globalThis.litPropertyMetadata.get(n);if(u===void 0&&globalThis.litPropertyMetadata.set(n,u=new Map),u.set(o.name,t),i==="accessor"){let{name:p}=o;return {set(m){let r=e.get.call(this);e.set.call(this,m),this.requestUpdate(p,r,t);},init(m){return m!==void 0&&this.P(p,void 0,t),m}}}if(i==="setter"){let{name:p}=o;return function(m){let r=this[p];e.call(this,m),this.requestUpdate(p,r,t);}}throw Error("Unsupported decorator location: "+i)};function H(t){return (e,o)=>typeof o=="object"?Gt(t,e,o):((i,n,u)=>{let p=n.hasOwnProperty(u);return n.constructor.createProperty(u,p?{...i,wrapped:!0}:i),p?Object.getOwnPropertyDescriptor(n,u):void 0})(t,e,o)}function ee(t){return H({...t,state:!0,attribute:!1})}var ct="https://gamma-api.polymarket.com";var xe=async t=>{let e=t.slug?`markets/slug/${t.slug}`:`markets/${t.id}`,i=await(await fetch(`${ct}/${e}`)).json();return {...i,outcomes:JSON.parse(i.outcomes),outcomePrices:JSON.parse(i.outcomePrices),clobTokenIds:i.clobTokenIds?JSON.parse(i.clobTokenIds):null}};var He=Nt(ht());var Xt={0:"M5,55 A50,50 0 0 1 5,55",10:"M5,55 A50,50 0 0 1 6,45",20:"M5,55 A50,50 0 0 1 10,33.4",30:"M5,55 A50,50 0 0 1 24,16",40:"M5,55 A50,50 0 0 1 34,9.8",50:"M5,55 A50,50 0 0 1 55,5",60:"M5,55 A50,50 0 0 1 76,9.8",70:"M5,55 A50,50 0 0 1 86,16",80:"M5,55 A50,50 0 0 1 100,33.4",90:"M5,55 A50,50 0 0 1 104,45",100:"M5,55 A50,50 0 0 1 105,55"},pt=!1,Le=()=>{if(pt)return;pt=!0;let t=new CSSStyleSheet;t.replaceSync(`
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ye=/'/g,Qe=/"/g,it=/^(?:script|style|textarea|title)$/i,st=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),$e=st(1),z=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),et=new WeakMap,U=R.createTreeWalker(R,129);function nt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ke!==void 0?Ke.createHTML(e):e}var qt=(t,e)=>{let o=t.length-1,i=[],n,u=e===2?"<svg>":"",p=K;for(let m=0;m<o;m++){let r=t[m],s,h,a=-1,l=0;for(;l<r.length&&(p.lastIndex=l,h=p.exec(r),h!==null);)l=p.lastIndex,p===K?h[1]==="!--"?p=Ge:h[1]!==void 0?p=Xe:h[2]!==void 0?(it.test(h[2])&&(n=RegExp("</"+h[2],"g")),p=F):h[3]!==void 0&&(p=F):p===F?h[0]===">"?(p=n??K,a=-1):h[1]===void 0?a=-2:(a=p.lastIndex-h[2].length,s=h[1],p=h[3]===void 0?F:h[3]==='"'?Qe:Ye):p===Qe||p===Ye?p=F:p===Ge||p===Xe?p=K:(p=F,n=void 0);let c=p===F&&t[m+1].startsWith("/>")?" ":"";u+=p===K?r+Zt:a>=0?(i.push(s),r.slice(0,a)+tt+r.slice(a)+O+c):r+O+(a===-2?m:c);}return [nt(t,u+(t[o]||"<?>")+(e===2?"</svg>":"")),i]},Y=class t{constructor({strings:e,_$litType$:o},i){let n;this.parts=[];let u=0,p=0,m=e.length-1,r=this.parts,[s,h]=qt(e,o);if(this.el=t.createElement(s,i),U.currentNode=this.el.content,o===2){let a=this.el.content.firstChild;a.replaceWith(...a.childNodes);}for(;(n=U.nextNode())!==null&&r.length<m;){if(n.nodeType===1){if(n.hasAttributes())for(let a of n.getAttributeNames())if(a.endsWith(tt)){let l=h[p++],c=n.getAttribute(a).split(O),d=/([.?@])?(.*)/.exec(l);r.push({type:1,index:u,name:d[2],strings:c,ctor:d[1]==="."?ge:d[1]==="?"?ye:d[1]==="@"?be:I}),n.removeAttribute(a);}else a.startsWith(O)&&(r.push({type:6,index:u}),n.removeAttribute(a));if(it.test(n.tagName)){let a=n.textContent.split(O),l=a.length-1;if(l>0){n.textContent=ne?ne.emptyScript:"";for(let c=0;c<l;c++)n.append(a[c],G()),U.nextNode(),r.push({type:2,index:++u});n.append(a[l],G());}}}else if(n.nodeType===8)if(n.data===rt)r.push({type:2,index:u});else {let a=-1;for(;(a=n.data.indexOf(O,a+1))!==-1;)r.push({type:7,index:u}),a+=O.length-1;}u++;}}static createElement(e,o){let i=R.createElement("template");return i.innerHTML=e,i}};function j(t,e,o=t,i){if(e===z)return e;let n=i!==void 0?o._$Co?.[i]:o._$Cl,u=X(e)?void 0:e._$litDirective$;return n?.constructor!==u&&(n?._$AO?.(!1),u===void 0?n=void 0:(n=new u(t),n._$AT(t,o,i)),i!==void 0?(o._$Co??=[])[i]=n:o._$Cl=n),n!==void 0&&(e=j(t,n._$AS(t,e.values),n,i)),e}var me=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:i}=this._$AD,n=(e?.creationScope??R).importNode(o,!0);U.currentNode=n;let u=U.nextNode(),p=0,m=0,r=i[0];for(;r!==void 0;){if(p===r.index){let s;r.type===2?s=new Q(u,u.nextSibling,this,e):r.type===1?s=new r.ctor(u,r.name,r.strings,this,e):r.type===6&&(s=new _e(u,this,e)),this._$AV.push(s),r=i[++m];}p!==r?.index&&(u=U.nextNode(),p++);}return U.currentNode=R,n}p(e){let o=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,o),o+=i.strings.length-2):i._$AI(e[o])),o++;}},Q=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,i,n){this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0;}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=j(this,e,o),X(e)?e===x||e==null||e===""?(this._$AH!==x&&this._$AR(),this._$AH=x):e!==this._$AH&&e!==z&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Dt(e)?this.k(e):this._(e);}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e));}_(e){this._$AH!==x&&X(this._$AH)?this._$AA.nextSibling.data=e:this.T(R.createTextNode(e)),this._$AH=e;}$(e){let{values:o,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Y.createElement(nt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else {let u=new me(n,this),p=u.u(this.options);u.p(o),this.T(p),this._$AH=u;}}_$AC(e){let o=et.get(e.strings);return o===void 0&&et.set(e.strings,o=new Y(e)),o}k(e){ot(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,i,n=0;for(let u of e)n===o.length?o.push(i=new t(this.S(G()),this.S(G()),this,this.options)):i=o[n],i._$AI(u),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n);}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i;}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e));}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,i,n,u){this.type=1,this._$AH=x,this._$AN=void 0,this.element=e,this.name=o,this._$AM=n,this.options=u,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=x;}_$AI(e,o=this,i,n){let u=this.strings,p=!1;if(u===void 0)e=j(this,e,o,0),p=!X(e)||e!==this._$AH&&e!==z,p&&(this._$AH=e);else {let m=e,r,s;for(e=u[0],r=0;r<u.length-1;r++)s=j(this,m[i+r],o,r),s===z&&(s=this._$AH[r]),p||=!X(s)||s!==this._$AH[r],s===x?e=x:e!==x&&(e+=(s??"")+u[r+1]),this._$AH[r]=s;}p&&!n&&this.j(e);}j(e){e===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"");}},ge=class extends I{constructor(){super(...arguments),this.type=3;}j(e){this.element[this.name]=e===x?void 0:e;}},ye=class extends I{constructor(){super(...arguments),this.type=4;}j(e){this.element.toggleAttribute(this.name,!!e&&e!==x);}},be=class extends I{constructor(e,o,i,n,u){super(e,o,i,n,u),this.type=5;}_$AI(e,o=this){if((e=j(this,e,o,0)??x)===z)return;let i=this._$AH,n=e===x&&i!==x||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,u=e!==x&&(i===x||n);n&&this.element.removeEventListener(this.name,this,i),u&&this.element.addEventListener(this.name,this,e),this._$AH=e;}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e);}},_e=class{constructor(e,o,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i;}get _$AU(){return this._$AM._$AU}_$AI(e){j(this,e);}};var Jt=ve.litHtmlPolyfillSupport;Jt?.(Y,Q),(ve.litHtmlVersions??=[]).push("3.1.4");var at=(t,e,o)=>{let i=o?.renderBefore??e,n=i._$litPart$;if(n===void 0){let u=o?.renderBefore??null;i._$litPart$=n=new Q(e.insertBefore(G(),u),u,void 0,o??{});}return n._$AI(t),n};var V=class extends L{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=at(o,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return z}};V._$litElement$=!0,V.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:V});var Wt=globalThis.litElementPolyfillSupport;Wt?.({LitElement:V});(globalThis.litElementVersions??=[]).push("4.0.6");var lt=t=>(e,o)=>{o!==void 0?o.addInitializer(()=>{customElements.define(t,e);}):customElements.define(t,e);};var Kt={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:se},Gt=(t=Kt,e,o)=>{let{kind:i,metadata:n}=o,u=globalThis.litPropertyMetadata.get(n);if(u===void 0&&globalThis.litPropertyMetadata.set(n,u=new Map),u.set(o.name,t),i==="accessor"){let{name:p}=o;return {set(m){let r=e.get.call(this);e.set.call(this,m),this.requestUpdate(p,r,t);},init(m){return m!==void 0&&this.P(p,void 0,t),m}}}if(i==="setter"){let{name:p}=o;return function(m){let r=this[p];e.call(this,m),this.requestUpdate(p,r,t);}}throw Error("Unsupported decorator location: "+i)};function T(t){return (e,o)=>typeof o=="object"?Gt(t,e,o):((i,n,u)=>{let p=n.hasOwnProperty(u);return n.constructor.createProperty(u,p?{...i,wrapped:!0}:i),p?Object.getOwnPropertyDescriptor(n,u):void 0})(t,e,o)}function ee(t){return T({...t,state:!0,attribute:!1})}var ct="https://gamma-api.polymarket.com";var xe=async t=>{let e=t.slug?`markets/slug/${t.slug}`:`markets/${t.id}`,i=await(await fetch(`${ct}/${e}`)).json();return {...i,outcomes:JSON.parse(i.outcomes),outcomePrices:JSON.parse(i.outcomePrices),clobTokenIds:i.clobTokenIds?JSON.parse(i.clobTokenIds):null}};var Te=Nt(ht());var Xt={0:"M5,55 A50,50 0 0 1 5,55",10:"M5,55 A50,50 0 0 1 6,45",20:"M5,55 A50,50 0 0 1 10,33.4",30:"M5,55 A50,50 0 0 1 24,16",40:"M5,55 A50,50 0 0 1 34,9.8",50:"M5,55 A50,50 0 0 1 55,5",60:"M5,55 A50,50 0 0 1 76,9.8",70:"M5,55 A50,50 0 0 1 86,16",80:"M5,55 A50,50 0 0 1 100,33.4",90:"M5,55 A50,50 0 0 1 104,45",100:"M5,55 A50,50 0 0 1 105,55"},pt=!1,He=()=>{if(pt)return;pt=!0;let t=new CSSStyleSheet;t.replaceSync(`
@font-face {

@@ -28,3 +28,3 @@ font-family: "Open Sauce Sans";

font-style: normal;
}`),document.adoptedStyleSheets.push(t);};Le();var dt,ft,mt,gt,yt,bt,_t,vt,$t,xt,wt,kt,g,we,ke,Ce,Ae,Se,Ee,Me,Pe,Ne,Te;kt=[lt("polymarket-market-embed")];var k=class extends(wt=V,xt=[H({type:String,attribute:"theme",reflect:!0})],$t=[H({type:String,attribute:"width"})],vt=[H({type:String,attribute:"market"})],_t=[H({type:String,attribute:"creator"})],bt=[H({type:Boolean,attribute:"volume",converter:(o,i)=>i===String?o==="true":i===Boolean?o:!1})],yt=[H({type:Boolean,attribute:"chart",converter:(o,i)=>i===String?o==="true":i===Boolean?o:!1})],gt=[ee()],mt=[ee()],ft=[ee()],dt=[ee()],wt){constructor(){super();M(this,we,$(g,8,this,"light")),$(g,11,this);M(this,ke,$(g,12,this,400)),$(g,15,this);M(this,Ce,$(g,16,this)),$(g,19,this);M(this,Ae,$(g,20,this)),$(g,23,this);M(this,Se,$(g,24,this,!1)),$(g,27,this);M(this,Ee,$(g,28,this,!1)),$(g,31,this);M(this,Me,$(g,32,this)),$(g,35,this);M(this,Pe,$(g,36,this)),$(g,39,this);M(this,Ne,$(g,40,this)),$(g,43,this);M(this,Te,$(g,44,this)),$(g,47,this);Le();}static get styles(){return pe`
}`),document.adoptedStyleSheets.push(t);};He();var dt,ft,mt,gt,yt,bt,_t,vt,$t,xt,wt,kt,g,we,ke,Ce,Ae,Se,Ee,Me,Pe,Ne,Le;kt=[lt("polymarket-market-embed")];var k=class extends(wt=V,xt=[T({type:String,attribute:"theme",reflect:!0})],$t=[T({type:String,attribute:"width"})],vt=[T({type:String,attribute:"market"})],_t=[T({type:String,attribute:"creator"})],bt=[T({type:Boolean,attribute:"volume",converter:(o,i)=>i===String?o==="true":i===Boolean?o:!1})],yt=[T({type:Boolean,attribute:"chart",converter:(o,i)=>i===String?o==="true":i===Boolean?o:!1})],gt=[ee()],mt=[ee()],ft=[ee()],dt=[ee()],wt){constructor(){super();M(this,we,$(g,8,this,"light")),$(g,11,this);M(this,ke,$(g,12,this,400)),$(g,15,this);M(this,Ce,$(g,16,this)),$(g,19,this);M(this,Ae,$(g,20,this)),$(g,23,this);M(this,Se,$(g,24,this,!1)),$(g,27,this);M(this,Ee,$(g,28,this,!1)),$(g,31,this);M(this,Me,$(g,32,this)),$(g,35,this);M(this,Pe,$(g,36,this)),$(g,39,this);M(this,Ne,$(g,40,this)),$(g,43,this);M(this,Le,$(g,44,this)),$(g,47,this);He();}static get styles(){return pe`
:host {

@@ -183,2 +183,8 @@ --polymarket-color-white: #ffffff;

width: 114px;
cursor: pointer;
transition: opacity 100ms ease-in-out;
opacity: 1;
&:hover {
opacity: 0.8;
}
}

@@ -340,3 +346,3 @@

}
`}connectedCallback(){super.connectedCallback(),Le(),this.fetchMarketData();}firstUpdated(o){super.firstUpdated(o),this.initTheme();}initTheme(){document.querySelector("html")?.setAttribute("theme",this.theme);}getUtmParams(){let o="utm_medium=embed",i="&utm_campaign=market",u=`&utm_source=${window.location!=window.parent.location&&document.referrer?document.referrer:`${document.location.host}${document.location.pathname}`}`,p=this.creator?`&utm_content=${this.creator}`:"";return `${o}${i}${u}${p}`}async fetchMarketData(){if(this.marketSlug){let o=await xe({slug:this.marketSlug});this._market=o;let i=this.getUtmParams();this._href=o.events?.length&&o.events[0]?.slug?`https://polymarket.com/event/${o.events[0].slug}/${o.slug}?${i}`:`https://polymarket.com/market/${o.slug}?${i}`;let n=o.outcomePrices[0]?parseFloat(o.outcomePrices[0]):0,u=Math.min(Math.max(n*100,0),100),m=[0,10,20,30,40,50,60,70,80,90,100].sort((r,s)=>Math.abs(r-u)-Math.abs(s-u))[0];this._probability=u,this._fillPathD=Xt[m.toFixed(0)];}}onClick(){window.parent.window.open(this._href);}render(){return this._market?$e` <div class="container">
`}connectedCallback(){super.connectedCallback(),He(),this.fetchMarketData();}firstUpdated(o){super.firstUpdated(o),this.initTheme();}initTheme(){document.querySelector("html")?.setAttribute("theme",this.theme);}getUtmParams(){let o="utm_medium=embed",i="&utm_campaign=market",u=`&utm_source=${window.location!=window.parent.location&&document.referrer?document.referrer:`${document.location.host}${document.location.pathname}`}`,p=this.creator?`&utm_content=${this.creator}`:"";return `${o}${i}${u}${p}`}async fetchMarketData(){if(this.marketSlug){let o=await xe({slug:this.marketSlug});this._market=o;let i=this.getUtmParams();this._href=o.events?.length&&o.events[0]?.slug?`https://polymarket.com/event/${o.events[0].slug}/${o.slug}?${i}`:`https://polymarket.com/market/${o.slug}?${i}`;let n=o.outcomePrices[0]?parseFloat(o.outcomePrices[0]):0,u=Math.min(Math.max(n*100,0),100),m=[0,10,20,30,40,50,60,70,80,90,100].sort((r,s)=>Math.abs(r-u)-Math.abs(s-u))[0];this._probability=u,this._fillPathD=Xt[m.toFixed(0)];}}onClick(){window.parent.window.open(this._href);}onLogoClick(){window.parent.window.open("https://polymarket.com");}render(){return this._market?$e` <div class="container">
<div class="card-container">

@@ -378,3 +384,3 @@ <div class="top-row-container">

<p class="gauge-text">
${(0, He.default)(this._probability).format("0")}%
${(0, Te.default)(this._probability).format("0")}%
</p>

@@ -386,3 +392,6 @@ <p class="gauge-subtext">chance</p>

<div class="bottom-row-container">
<div class="bottom-row-left-container">
<div
class="bottom-row-left-container"
@click="${this.onLogoClick}"
>
<svg

@@ -411,9 +420,9 @@ width="114"

<p class="typography-secondary typography-number">
${this.showVolume?`${(0, He.default)(this._market.volumeNum).format("0.[0]a")}`:""}
${this.showVolume?`${(0, Te.default)(this._market.volumeNum).format("0.[0]a")}`:""}
<span style="text-transform: capitalize;"
>${this.showVolume?"Bet":""}</span
>${this.showVolume?"Vol.":""}</span
>
</p>
<div @click="${this.onClick}" class="button-primary">
More details
View market
<svg

@@ -434,3 +443,3 @@ xmlns="http://www.w3.org/2000/svg"

</div>
</div>`:$e` <span>${" "}</span> `}};g=Ie(wt),we=new WeakMap,ke=new WeakMap,Ce=new WeakMap,Ae=new WeakMap,Se=new WeakMap,Ee=new WeakMap,Me=new WeakMap,Pe=new WeakMap,Ne=new WeakMap,Te=new WeakMap,A(g,4,"theme",xt,k,we),A(g,4,"width",$t,k,ke),A(g,4,"marketSlug",vt,k,Ce),A(g,4,"creator",_t,k,Ae),A(g,4,"showVolume",bt,k,Se),A(g,4,"showChart",yt,k,Ee),A(g,4,"_market",gt,k,Me),A(g,4,"_href",mt,k,Pe),A(g,4,"_probability",ft,k,Ne),A(g,4,"_fillPathD",dt,k,Te),k=A(g,0,"MarketEmbed",kt,k),$(g,1,k);customElements.get("polymarket-market-embed")||customElements.define("polymarket-market-embed",k);/*! Bundled license information:
</div>`:$e` <span>${" "}</span> `}};g=Ie(wt),we=new WeakMap,ke=new WeakMap,Ce=new WeakMap,Ae=new WeakMap,Se=new WeakMap,Ee=new WeakMap,Me=new WeakMap,Pe=new WeakMap,Ne=new WeakMap,Le=new WeakMap,A(g,4,"theme",xt,k,we),A(g,4,"width",$t,k,ke),A(g,4,"marketSlug",vt,k,Ce),A(g,4,"creator",_t,k,Ae),A(g,4,"showVolume",bt,k,Se),A(g,4,"showChart",yt,k,Ee),A(g,4,"_market",gt,k,Me),A(g,4,"_href",mt,k,Pe),A(g,4,"_probability",ft,k,Ne),A(g,4,"_fillPathD",dt,k,Le),k=A(g,0,"MarketEmbed",kt,k),$(g,1,k);customElements.get("polymarket-market-embed")||customElements.define("polymarket-market-embed",k);/*! Bundled license information:

@@ -437,0 +446,0 @@ numeral/numeral.js:

{
"name": "@polymarket/embeds",
"version": "1.0.4",
"version": "1.0.5",
"description": "Web Components for Polymarket",

@@ -5,0 +5,0 @@ "type": "module",

@@ -220,2 +220,8 @@ import { css, LitElement, html, CSSResult, PropertyValues } from "lit";

width: 114px;
cursor: pointer;
transition: opacity 100ms ease-in-out;
opacity: 1;
&:hover {
opacity: 0.8;
}
}

@@ -502,2 +508,6 @@

private onLogoClick() {
window.parent.window.open("https://polymarket.com");
}
override render() {

@@ -554,3 +564,6 @@ if (!this._market) {

<div class="bottom-row-container">
<div class="bottom-row-left-container">
<div
class="bottom-row-left-container"
@click="${this.onLogoClick}"
>
<svg

@@ -585,7 +598,7 @@ width="114"

<span style="text-transform: capitalize;"
>${this.showVolume ? "Bet" : ""}</span
>${this.showVolume ? "Vol." : ""}</span
>
</p>
<div @click="${this.onClick}" class="button-primary">
More details
View market
<svg

@@ -592,0 +605,0 @@ xmlns="http://www.w3.org/2000/svg"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc