@everymatrix/prize-engine-suite 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/components/{PrizeEngineChest-GXdgeyZ5.cjs → PrizeEngineChest-BybqC-Ws.cjs} +1 -1
  2. package/components/{PrizeEngineChest-AVo42VZz.js → PrizeEngineChest-D20kYcZH.js} +1 -1
  3. package/components/{PrizeEngineChest-B5BmBCIt.js → PrizeEngineChest-DKa6fL7q.js} +1 -1
  4. package/components/{PrizeEngineCoin-aqYmcKcL.js → PrizeEngineCoin-CSaqP476.js} +1 -1
  5. package/components/{PrizeEngineCoin-Q4ufN4we.cjs → PrizeEngineCoin-CzoBvtUZ.cjs} +1 -1
  6. package/components/{PrizeEngineCoin-DJXsY_er.js → PrizeEngineCoin-DB2SNbBm.js} +1 -1
  7. package/components/{PrizeEngineDetails-B_KZnLHK.cjs → PrizeEngineDetails-BiMOwXoS.cjs} +1 -1
  8. package/components/{PrizeEngineDetails-D0KPqHgs.js → PrizeEngineDetails-CG0d2Hah.js} +472 -462
  9. package/components/{PrizeEngineDetails-CC4NGImx.js → PrizeEngineDetails-VmCA-ii3.js} +497 -486
  10. package/components/{PrizeEngineHistory-CP_AxFGK.js → PrizeEngineHistory-BOCXY1d8.js} +1 -1
  11. package/components/{PrizeEngineHistory-DRIoEqxH.cjs → PrizeEngineHistory-CpqBVhuK.cjs} +1 -1
  12. package/components/{PrizeEngineHistory-SMuPePKk.js → PrizeEngineHistory-DiG9cF-i.js} +1 -1
  13. package/components/{PrizeEngineList-D56vN71m.js → PrizeEngineList-Bj7B5I06.js} +126 -126
  14. package/components/{PrizeEngineList-Bh3zg5Q4.js → PrizeEngineList-CEPBy1pL.js} +98 -98
  15. package/components/PrizeEngineList-PbPXVBKB.cjs +1 -0
  16. package/components/{PrizeEngineLuckywheel-CEhXCzdp.js → PrizeEngineLuckywheel-0WYMdzvz.js} +2 -2
  17. package/components/{PrizeEngineLuckywheel-B1pFc4g5.cjs → PrizeEngineLuckywheel-BfxXt7Qu.cjs} +1 -1
  18. package/components/{PrizeEngineLuckywheel-DyImGdI2.js → PrizeEngineLuckywheel-Cb5REWSh.js} +2 -2
  19. package/components/{PrizeEngineSuite-D-WdGZeC.js → PrizeEngineSuite-3vlUEft1.js} +1125 -1117
  20. package/components/PrizeEngineSuite-Bqyhzjny.cjs +23 -0
  21. package/components/{PrizeEngineSuite-S74tK2VQ.js → PrizeEngineSuite-DJUx6dHj.js} +1153 -1145
  22. package/components/{WheelSVG-DCdlR6xu.js → WheelSVG-5WuLAqeO.js} +1 -1
  23. package/components/{WheelSVG-BH9dZIAq.cjs → WheelSVG-Bld5t5mO.cjs} +1 -1
  24. package/components/{WheelSVG-BjPdsjM7.js → WheelSVG-IokoeQGs.js} +1 -1
  25. package/es2015/prize-engine-suite.cjs +1 -1
  26. package/es2015/prize-engine-suite.js +1 -1
  27. package/esnext/prize-engine-suite.js +1 -1
  28. package/package.json +1 -1
  29. package/components/PrizeEngineList-DP7PMvr5.cjs +0 -1
  30. package/components/PrizeEngineSuite-qBeOx87h.cjs +0 -23
@@ -1,4 +1,4 @@
1
- import { $ as u0, a as e2, b as t2, S as o2, i as i2, s as r2, f as _, d as s2, n as c0, e as J, y as W0, o as s, t as R, k as U, l as u, m as L, z as N0, A as V0, p as a2, Y as n2, q as l2, v as Z, w as $, I as c2, Q as f0, L as p0, Z as B, u as C0, T as r0, _ as s0, x as B0, a0 as f2, c as d2, D as g2 } from "./PrizeEngineSuite-D-WdGZeC.js";
1
+ import { $ as u0, a as e2, b as t2, S as o2, i as i2, s as r2, f as _, d as s2, n as c0, e as J, y as W0, o as s, t as R, k as U, l as u, m as L, z as N0, A as V0, p as a2, Y as n2, q as l2, v as Z, w as $, I as c2, W as f0, L as p0, Z as B, u as C0, R as r0, _ as s0, x as B0, a0 as f2, c as d2, D as g2 } from "./PrizeEngineSuite-3vlUEft1.js";
2
2
  const w0 = {
3
3
  en: {
4
4
  RemainingTimes: "Remaining Times",
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...i){try{return e.apply(this,i)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PrizeEngineSuite-qBeOx87h.cjs")).then(e=>e.PrizeEngineSuite_ce).then(({default:e})=>{!customElements.get("prize-engine-suite")&&customElements.define("prize-engine-suite",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...i){try{return e.apply(this,i)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PrizeEngineSuite-Bqyhzjny.cjs")).then(e=>e.PrizeEngineSuite_ce).then(({default:e})=>{!customElements.get("prize-engine-suite")&&customElements.define("prize-engine-suite",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PrizeEngineSuite-S74tK2VQ.js").then((e) => e.a4).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/PrizeEngineSuite-DJUx6dHj.js").then((e) => e.a4).then(({ default: e }) => {
14
14
  !customElements.get("prize-engine-suite") && customElements.define("prize-engine-suite", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { a4 as s } from "../components/PrizeEngineSuite-D-WdGZeC.js";
1
+ import { a4 as s } from "../components/PrizeEngineSuite-3vlUEft1.js";
2
2
  function i(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/prize-engine-suite",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "main": "esnext/prize-engine-suite.js",
6
6
  "module": "esnext/prize-engine-suite.js",
@@ -1 +0,0 @@
1
- "use strict";var H=Object.defineProperty;var B=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var T=(r,t,l)=>t in r?H(r,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[t]=l,z=(r,t)=>{for(var l in t||(t={}))P.call(t,l)&&T(r,l,t[l]);if(B)for(var l of B(t))V.call(t,l)&&T(r,l,t[l]);return r};var M=(r,t,l)=>new Promise((n,i)=>{var o=d=>{try{c(l.next(d))}catch(f){i(f)}},s=d=>{try{c(l.throw(d))}catch(f){i(f)}},c=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,s);c((l=l.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PrizeEngineSuite-qBeOx87h.cjs");require("../stencil/ui-skeleton-BreIU6e5.cjs");const W={en:{Title:"Prize Games",RemainingTimes:"Remaining Times",NoContent:"No games available at the moment",Loading:"Loading games...",Error:"Failed to load games",WheelOfFortune:"Lucky Wheel",MysteryChest:"Mystery Chest",FlipCoin:"Flip Coin",Dice:"Dices"}};function G({withLocale:r,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(r))})}function U(r,t){e.addMessages(r,t)}function Y(r){e.$locale.set(r)}const R=()=>{G({withLocale:"en",translations:{}}),Object.keys(W).forEach(r=>{U(r,W[r])})},Z=n=>M(exports,[n],function*({endpoint:r,session:t,types:l}){const i=new URL(`${r}/v1/wof/lotteries`);l&&l.length>0&&l.forEach(s=>i.searchParams.append("filter",`Types[]=${s}`));const o=yield fetch(i.toString(),{method:"GET",headers:z({"Content-Type":"application/json",Accept:"text/plain"},t?{"x-SessionId":t}:{})});if(!o.ok)throw new Error(`Failed to fetch lotteries: ${o.statusText}`);return o.json()}),Q={lotteries:(r,t,l)=>M(exports,null,function*(){const n=yield Z({endpoint:r,session:t,types:l});return(n==null?void 0:n.items)||[]})},K="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAABCcAAAQnAEmzTo0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMVSURBVHgBbVTNThNRGD3fnSmYYNLizhVl4ZriC9AhcUFcWDYmbsQuiCsT0aioJJRogrJhacJC0MSwMsALMIUHsDQxYSeDCVspiWA7befz3Jm2AnGSm7k/3+85517Bf75F9fMOoikXjTzHkIO6OAgrnFcdNLaK8mjzso+cX5S0kk2h9ZHGeUNnOtY4MlzDRVjjP801DBpBG83xorwMur6mO3ml33MCqSg0r4h2Beo9kduDCtDYHDyUKc5lPAI+03z4CvTbFy3lLgSa1f2sC9dngWk6HjbQLjyTW+VOyb2qp2W6LGg95rRGu0EX2F7X2WwvkEG/z0oyHCesJNuHlF9SP2PPNA6hcbBVXeWeTQh7FgiiwRS344Sv9ehOhMami+aag7MZ/n3iMGLQrKZw4hloxUFTB3B2k7j4BD5HvPZa+O0NoL1BEsYitMdNC1qQOLP5VJLRWgunHtdVZssp+ivEbYhVDocwv2hGTEzQguMVpVSL+WExKeh9kxxK7a3ciDEpicdgraLGTant3zoEBHm30+NQF7O78mbHQI6ZKC/P9UjdmN7mgYM/pDxU0svew7QgXHgqEwvW6YOuUhoh2w6HDMJD6+PEo06iQvp3ACXl5p+4RJN9rXaDGBjLKiuUAIh6NCQfhcGKWEkzvSjZa93t97pbYFYC2ThwUd/heYGZM8wcOEiNFqVY69p+1RfHBDww7K9saZzT/XxH3ZkIMt+xGya4U8yYkViYFrNTf1WXY2ms6xx9lNqTPWPgrHFCEJ15G4RZfbY2wsL3BIaB9CfPgz7oKH33OEZctBmsxKsjUzxjDnfLLMp1Iq87QDtPx4plMSI2Z6R4RiaCJAlg23HQ5zFwlUlyV5D6Qck8YNJgUpY2Y4BTkCI3KHvN8n8c4qpnZYCeqhPwE2xangWccA/y7JgBvN4VKclwYBKD+A7143R5SbfHOhxq94qs6Ar33A3ECVFjB+OT8i5ImD73LfIZiXgNqKMsWeo+HZlEJ3XOwzTX9nkpU3fFe+eekQuBLtFfsHeOziNO/DaRYkqB/zU+bOXLPn8BG6xnv5+RMCQAAAAASUVORK5CYII=",X="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",q="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1978%2013.2348C12.1978%209.60751%2015.1383%206.66699%2018.7656%206.66699C22.3929%206.66699%2025.3334%209.60751%2025.3334%2013.2348C25.3334%2016.8621%2022.3929%2019.8026%2018.7656%2019.8026C18.467%2019.8026%2018.1725%2019.7826%2017.8835%2019.7438C17.6825%2019.7168%2017.557%2019.7001%2017.4658%2019.6909C17.4218%2019.7326%2017.3626%2019.7916%2017.2673%2019.8869L12.5565%2024.5977C12.5457%2024.6085%2012.5344%2024.6198%2012.5229%2024.6315C12.4009%2024.7542%2012.2356%2024.9205%2012.0329%2025.0448C11.8576%2025.1522%2011.6665%2025.2313%2011.4666%2025.2793C11.2354%2025.3348%2011.001%2025.3341%2010.8279%2025.3335C10.8115%2025.3335%2010.7956%2025.3334%2010.7803%2025.3334L9.14719%2025.3334C8.91663%2025.3335%208.68571%2025.3335%208.48899%2025.3174C8.27114%2025.2996%208.00565%2025.2571%207.7365%2025.1199C7.36793%2024.9321%207.06826%2024.6325%206.88046%2024.2639C6.74332%2023.9948%206.70076%2023.7293%206.68297%2023.5114C6.66689%2023.3147%206.66693%2023.0838%206.66696%2022.8532L6.66696%2021.2201C6.66696%2021.2049%206.66691%2021.189%206.66686%2021.1725C6.66631%2020.9994%206.66557%2020.765%206.72109%2020.5338C6.76907%2020.3339%206.84822%2020.1428%206.95562%2019.9676C7.07986%2019.7648%207.24617%2019.5995%207.36894%2019.4776C7.3806%2019.466%207.39188%2019.4548%207.40268%2019.4439L12.1135%2014.7331C12.2088%2014.6378%2012.2678%2014.5786%2012.3095%2014.5346C12.3003%2014.4434%2012.2836%2014.3179%2012.2566%2014.1169C12.2178%2013.8279%2012.1978%2013.5334%2012.1978%2013.2348ZM18.7656%208.74104C16.2837%208.74104%2014.2718%2010.753%2014.2718%2013.2348C14.2718%2013.4408%2014.2856%2013.6429%2014.3122%2013.8406L14.3146%2013.8585C14.3394%2014.0432%2014.3618%2014.2097%2014.3749%2014.3451C14.3874%2014.4747%2014.4011%2014.6598%2014.3736%2014.8525C14.3367%2015.1105%2014.2715%2015.3033%2014.1443%2015.5308C14.0078%2015.7751%2013.7931%2015.9881%2013.629%2016.151C13.6121%2016.1678%2013.5958%2016.184%2013.5801%2016.1997L8.86926%2020.9105C8.82845%2020.9513%208.79718%2020.9826%208.77036%2021.0099C8.75929%2021.0212%208.74992%2021.0308%208.74194%2021.0392C8.7417%2021.0507%208.74151%2021.0641%208.74137%2021.0799C8.74102%2021.1182%208.74101%2021.1624%208.74101%2021.2201V22.8215C8.74101%2023.0268%208.74146%2023.1591%208.74514%2023.2553C8.84132%2023.2589%208.97362%2023.2594%209.17887%2023.2594H10.7803C10.838%2023.2594%2010.8822%2023.2594%2010.9205%2023.259C10.9363%2023.2589%2010.9497%2023.2587%2010.9613%2023.2585C10.9696%2023.2505%2010.9792%2023.2411%2010.9905%2023.2301C11.0178%2023.2032%2011.0491%2023.172%2011.0899%2023.1312L15.8007%2018.4203C15.8164%2018.4046%2015.8327%2018.3883%2015.8494%2018.3714C16.0123%2018.2073%2016.2253%2017.9926%2016.4696%2017.8561C16.6971%2017.7289%2016.8899%2017.6638%2017.1479%2017.6268C17.3406%2017.5993%2017.5257%2017.613%2017.6553%2017.6255C17.7907%2017.6386%2017.9572%2017.661%2018.1419%2017.6858L18.1598%2017.6882C18.3575%2017.7148%2018.5597%2017.7286%2018.7656%2017.7286C21.2474%2017.7286%2023.2594%2015.7167%2023.2594%2013.2348C23.2594%2010.753%2021.2474%208.74104%2018.7656%208.74104ZM17.7286%2013.2348C17.7286%2012.6621%2018.1929%2012.1978%2018.7656%2012.1978H18.7748C19.3475%2012.1978%2019.8118%2012.6621%2019.8118%2013.2348C19.8118%2013.8076%2019.3475%2014.2718%2018.7748%2014.2718H18.7656C18.1929%2014.2718%2017.7286%2013.8076%2017.7286%2013.2348Z'%20fill='url(%23paint0_linear_714_605)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_714_605'%20x1='6.66675'%20y1='16.0003'%20x2='25.3334'%20y2='16.0003'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function J(r){e.append_styles(r,"svelte-ljc7r7",`:host{display:block;height:100%;flex-grow:1}.PrizeListContent.svelte-ljc7r7.svelte-ljc7r7{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7{flex-grow:1;overflow-y:auto}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar{width:4px}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.LuckyWheelList.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;gap:24px;padding:0;margin:0;list-style:none}.LuckyWheelListItem.svelte-ljc7r7.svelte-ljc7r7{width:100%}.ItemButton.svelte-ljc7r7.svelte-ljc7r7{padding:16px;border-radius:16px;border:1px solid var(--emw--color-teal-10, rgba(117, 255, 233, 0.1019607843));color:var(--emw--color-primary, #d3ffed);width:100%;height:110px;display:flex;flex-direction:column;justify-content:center;gap:8px;box-sizing:border-box;cursor:pointer;text-align:left;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);background:var(--emw--color-teal-05, rgba(117, 255, 233, 0.0509803922));position:relative}.ItemButton.svelte-ljc7r7.svelte-ljc7r7:hover,.ItemButton.svelte-ljc7r7.svelte-ljc7r7:active{background:var(--emw--color-teal-08, rgba(117, 255, 233, 0.0784313725));border:1px solid transparent;background-image:linear-gradient(var(--emw--color-background, #213841), var(--emw--color-background, #213841)), linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);background-origin:border-box;background-clip:padding-box, border-box}.ItemButton.svelte-ljc7r7:hover .IconButton.Chevron.svelte-ljc7r7,.ItemButton.svelte-ljc7r7:active .IconButton.Chevron.svelte-ljc7r7{background-color:var(--emw--color-green, #b2ff6d);background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9 18L15 12L9 6" stroke="%230C1A1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');border-radius:50%}.ItemTitleRow.svelte-ljc7r7.svelte-ljc7r7{display:flex;justify-content:space-between;align-items:center;width:100%}.ItemTitle.svelte-ljc7r7.svelte-ljc7r7{font-weight:700;font-size:var(--emw--font-size-medium-plus, 18px);background:linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ItemDetails.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:12px;align-items:center}.ItemKeys.svelte-ljc7r7.svelte-ljc7r7,.ItemValidity.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:4px;align-items:center;font-size:14px;font-weight:400;color:var(--emw--color-secondary-variant, #729787)}.ItemKeys.svelte-ljc7r7 span.svelte-ljc7r7:last-child,.ItemValidity.svelte-ljc7r7 span.svelte-ljc7r7:last-child{color:var(--emw--color-primary, #d3ffed)}.SmallIcon.svelte-ljc7r7.svelte-ljc7r7{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--emw--color-secondary-variant, #729787);flex-shrink:0}.SmallIcon.Wheel.svelte-ljc7r7.svelte-ljc7r7{background-position:center;background-repeat:no-repeat;background-size:16px 16px;width:16px;height:16px}.IconButton.Chevron.svelte-ljc7r7.svelte-ljc7r7{width:30px;height:30px;border:0;cursor:pointer;background-color:transparent;background:center/18px 18px url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9 18L15 12L9 6" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.LoaderWrap.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;width:100%}.LoaderWrap.svelte-ljc7r7 .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999)}.LoaderWrap.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:var(--emw--border-radius-large, 28px);display:flex;padding:45px 48px;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);justify-content:space-between;line-height:35px;overflow:hidden;margin-bottom:24px}.LoaderWrap.Mobile.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:16px;padding:25px 20px;line-height:15px}.LoaderWrap.Mobile.svelte-ljc7r7 .Skeleton.SkeletonText{width:135px}.EmptyState.svelte-ljc7r7.svelte-ljc7r7{width:100%;display:flex;flex-direction:column;color:var(--emw--color-secondary-variant, #a9ccbe);font-size:var(--emw--font-size-medium, 16px);align-items:center;justify-content:center;height:200px}.Mobile.svelte-ljc7r7 .ItemButton.svelte-ljc7r7{height:72px;padding:16px 20px;border-radius:16px}.Mobile.svelte-ljc7r7 .ItemButton .ItemTitle.svelte-ljc7r7{font-size:var(--emw--font-size-medium, 16px)}.Mobile.svelte-ljc7r7 .ItemButton .ItemDetails.svelte-ljc7r7{font-size:var(--emw--font-size-x-small, 12px)}.Mobile.svelte-ljc7r7 .IconButton.Chevron.svelte-ljc7r7{width:24px;height:24px;background-size:14px 14px}.Mobile.svelte-ljc7r7 .SmallIcon.Wheel.svelte-ljc7r7{background-size:14px 14px;width:14px;height:14px}`)}function E(r,t,l){const n=r.slice();return n[23]=t[l],n}function $(r,t,l){const n=r.slice();return n[20]=t[l],n}function ee(r){let t,l,n=r[5]("NoContent")+"",i;return{c(){t=e.element("div"),l=e.element("p"),i=e.text(n),e.attr(t,"class","EmptyState svelte-ljc7r7")},m(o,s){e.insert(o,t,s),e.append(t,l),e.append(l,i)},p(o,s){s&32&&n!==(n=o[5]("NoContent")+"")&&e.set_data(i,n)},d(o){o&&e.detach(t)}}}function te(r){let t,l=e.ensure_array_like(r[3]),n=[];for(let i=0;i<l.length;i+=1)n[i]=F(E(r,l,i));return{c(){t=e.element("ul");for(let i=0;i<n.length;i+=1)n[i].c();e.attr(t,"class","LuckyWheelList svelte-ljc7r7")},m(i,o){e.insert(i,t,o);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(t,null)},p(i,o){if(o&409){l=e.ensure_array_like(i[3]);let s;for(s=0;s<l.length;s+=1){const c=E(i,l,s);n[s]?n[s].p(c,o):(n[s]=F(c),n[s].c(),n[s].m(t,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=l.length}},d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function le(r){let t,l=e.ensure_array_like([1,2,3,4,5]),n=[];for(let i=0;i<5;i+=1)n[i]=re($(r,l,i));return{c(){t=e.element("div");for(let i=0;i<5;i+=1)n[i].c();e.attr(t,"class","LoaderWrap svelte-ljc7r7"),e.toggle_class(t,"Mobile",r[6])},m(i,o){e.insert(i,t,o);for(let s=0;s<5;s+=1)n[s]&&n[s].m(t,null)},p:e.noop,d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function D(r){let t,l,n,i,o=r[7](r[23].current.expiryTime)+"",s;return{c(){t=e.element("div"),l=e.element("span"),l.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="14" r="7" stroke="currentColor" stroke-width="1.5"></circle><path d="M12 11V14L14 16" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 4V7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 4H15" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 7L18 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 7L6 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',n=e.space(),i=e.element("span"),s=e.text(o),e.attr(l,"class","SmallIcon Timer svelte-ljc7r7"),e.attr(i,"class","svelte-ljc7r7"),e.attr(t,"class","ItemValidity svelte-ljc7r7")},m(c,d){e.insert(c,t,d),e.append(t,l),e.append(t,n),e.append(t,i),e.append(i,s)},p(c,d){d&8&&o!==(o=c[7](c[23].current.expiryTime)+"")&&e.set_data(s,o)},d(c){c&&e.detach(t)}}}function F(r){var a,w;let t,l,n,i,o=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"",s,c,d,f,g,v,m,h,y,C=(((a=r[23].current)==null?void 0:a.remainingTimes)||0)+"",k,_,L,x,j,u=((w=r[23].current)==null?void 0:w.expiryTime)&&D(r);function S(){return r[16](r[23])}return{c(){t=e.element("li"),l=e.element("button"),n=e.element("div"),i=e.element("span"),s=e.text(o),c=e.space(),d=e.element("span"),f=e.space(),g=e.element("div"),v=e.element("div"),m=e.element("span"),h=e.space(),y=e.element("span"),k=e.text(C),_=e.space(),u&&u.c(),L=e.space(),e.attr(i,"class","ItemTitle svelte-ljc7r7"),e.attr(d,"class","IconButton Chevron svelte-ljc7r7"),e.attr(n,"class","ItemTitleRow svelte-ljc7r7"),e.attr(m,"class","SmallIcon Wheel svelte-ljc7r7"),e.set_style(m,"background-image","url("+r[4]+")"),e.attr(y,"class","svelte-ljc7r7"),e.attr(v,"class","ItemKeys svelte-ljc7r7"),e.attr(g,"class","ItemDetails svelte-ljc7r7"),e.attr(l,"type","button"),e.attr(l,"class","ItemButton svelte-ljc7r7"),e.attr(t,"class","LuckyWheelListItem svelte-ljc7r7")},m(p,b){e.insert(p,t,b),e.append(t,l),e.append(l,n),e.append(n,i),e.append(i,s),e.append(n,c),e.append(n,d),e.append(l,f),e.append(l,g),e.append(g,v),e.append(v,m),e.append(v,h),e.append(v,y),e.append(y,k),e.append(g,_),u&&u.m(g,null),e.append(t,L),x||(j=e.listen(l,"click",S),x=!0)},p(p,b){var A,I;r=p,b&9&&o!==(o=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"")&&e.set_data(s,o),b&16&&e.set_style(m,"background-image","url("+r[4]+")"),b&8&&C!==(C=(((A=r[23].current)==null?void 0:A.remainingTimes)||0)+"")&&e.set_data(k,C),(I=r[23].current)!=null&&I.expiryTime?u?u.p(r,b):(u=D(r),u.c(),u.m(g,null)):u&&(u.d(1),u=null)},d(p){p&&e.detach(t),u&&u.d(),x=!1,j()}}}function re(r){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="rectangle" width="50px" height="16px"></ui-skeleton> ',e.attr(t,"class","WheelLoader svelte-ljc7r7")},m(l,n){e.insert(l,t,n)},p:e.noop,d(l){l&&e.detach(t)}}}function ne(r){let t,l,n;function i(c,d){return c[2]?le:c[3].length>0?te:ee}let o=i(r),s=o(r);return{c(){t=e.element("div"),l=e.element("div"),s.c(),e.attr(l,"class","ListScrollArea svelte-ljc7r7"),e.attr(t,"class","PrizeListContent svelte-ljc7r7"),e.toggle_class(t,"Mobile",r[6])},m(c,d){e.insert(c,t,d),e.append(t,l),s.m(l,null),r[17](t)},p(c,[d]){o===(o=i(c))&&s?s.p(c,d):(s.d(1),s=o(c),s&&(s.c(),s.m(l,null)))},i(c){c&&(n||e.add_render_callback(()=>{n=e.create_in_transition(t,e.fade,{duration:300}),n.start()}))},o:e.noop,d(c){c&&e.detach(t),s.d(),r[17](null)}}}let ie=null;function se(r,t,l){let n,i;e.component_subscribe(r,e.$format,a=>l(5,i=a));let{endpoint:o=""}=t,{session:s=""}=t,{lang:c="en"}=t,{clientstyling:d=""}=t,{clientstylingurl:f=""}=t,{translationurl:g=""}=t,{mbsource:v=""}=t,{type:m="wheelOfFortune"}=t,h;const y=e.isMobile(window.navigator.userAgent);let C=!0,k=[];R();const _=()=>{fetch(g).then(w=>w.json()).then(w=>{Object.keys(w).forEach(p=>{U(p,w[p])})})},L=a=>{if(!a)return"";const w=new Date(a).getTime(),p=Date.now(),b=w-p;if(b<=0)return"";const A=Math.floor(b/(1e3*60*60*24)),I=Math.floor(b%(1e3*60*60*24)/(1e3*60*60)),O=Math.floor(b%(1e3*60*60)/(1e3*60));return`${A.toString().padStart(2,"0")}d:${I.toString().padStart(2,"0")}h:${O.toString().padStart(2,"0")}m`},x=()=>M(this,null,function*(){if(!(!o||!s)){l(2,C=!0);try{const a=yield Q.lotteries(o,s,[m]);window.postMessage({type:"PrizeProgramsLoaded",data:a},"*"),l(3,k=a.filter(w=>{var p;return(Number((p=w.current)==null?void 0:p.remainingTimes)||0)>0}))}catch(a){console.error("[PrizeEngineList] Fetch failed",a)}finally{l(2,C=!1)}}}),j=a=>{window.postMessage({type:"OpenPrizeGame",data:a},"*")};e.onMount(()=>()=>{});const u=a=>j(a);function S(a){e.binding_callbacks[a?"unshift":"push"](()=>{h=a,l(1,h)})}return r.$$set=a=>{"endpoint"in a&&l(9,o=a.endpoint),"session"in a&&l(10,s=a.session),"lang"in a&&l(0,c=a.lang),"clientstyling"in a&&l(11,d=a.clientstyling),"clientstylingurl"in a&&l(12,f=a.clientstylingurl),"translationurl"in a&&l(13,g=a.translationurl),"mbsource"in a&&l(14,v=a.mbsource),"type"in a&&l(15,m=a.type)},r.$$.update=()=>{r.$$.dirty&1&&c&&Y(c),r.$$.dirty&8192&&g&&_(),r.$$.dirty&32768&&l(4,n=m==="flipCoin"?X:m==="mysteryChest"?q:K),r.$$.dirty&34304&&o&&s&&m&&x(),r.$$.dirty&2050&&d&&h&&e.setClientStyling(h,d),r.$$.dirty&4098&&f&&h&&e.setClientStylingURL(h,f),r.$$.dirty&16386&&v&&h&&e.setStreamStyling(h,`${v}.Style`,ie)},[c,h,C,k,n,i,y,L,j,o,s,d,f,g,v,m,u,S]}class N extends e.SvelteComponent{constructor(t){super(),e.init(this,t,se,ne,e.safe_not_equal,{endpoint:9,session:10,lang:0,clientstyling:11,clientstylingurl:12,translationurl:13,mbsource:14,type:15},J)}get endpoint(){return this.$$.ctx[9]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[10]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get type(){return this.$$.ctx[15]}set type(t){this.$$set({type:t}),e.flush()}}customElements.define("prize-engine-list",e.create_custom_element(N,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},type:{}},[],[],!0));exports.default=N;
@@ -1,23 +0,0 @@
1
- "use strict";var Sn=Object.defineProperty,Tn=Object.defineProperties;var Hn=Object.getOwnPropertyDescriptors;var Mt=Object.getOwnPropertySymbols;var Pn=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable;var qe=(e,t,r)=>t in e?Sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nt=(e,t)=>{for(var r in t||(t={}))Pn.call(t,r)&&qe(e,r,t[r]);if(Mt)for(var r of Mt(t))Bn.call(t,r)&&qe(e,r,t[r]);return e},Rt=(e,t)=>Tn(e,Hn(t));var N=(e,t,r)=>(qe(e,typeof t!="symbol"?t+"":t,r),r);var $t=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(l){i(l)}},o=u=>{try{a(r.throw(u))}catch(l){i(l)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(e,t)).next())});function P(){}const ke=e=>e;function Ge(e,t){for(const r in t)e[r]=t[r];return e}function dr(e){return e()}function Dt(){return Object.create(null)}function D(e){e.forEach(dr)}function le(e){return typeof e=="function"}function xt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Te;function An(e,t){return e===t?!0:(Te||(Te=document.createElement("a")),Te.href=t,e===Te.href)}function On(e){return Object.keys(e).length===0}function mr(e,...t){if(e==null){for(const n of t)n(void 0);return P}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function br(e,t,r){e.$$.on_destroy.push(mr(t,r))}function Ut(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}const yr=typeof window!="undefined";let wt=yr?()=>window.performance.now():()=>Date.now(),St=yr?e=>requestAnimationFrame(e):P;const re=new Set;function gr(e){re.forEach(t=>{t.c(e)||(re.delete(t),t.f())}),re.size!==0&&St(gr)}function Tt(e){let t;return re.size===0&&St(gr),{promise:new Promise(r=>{re.add(t={c:e,f:r})}),abort(){re.delete(t)}}}function E(e,t){e.appendChild(t)}function vr(e,t,r){const n=Ht(e);if(!n.getElementById(t)){const i=x("style");i.id=t,i.textContent=r,_r(n,i)}}function Ht(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function In(e){const t=x("style");return t.textContent="/* empty */",_r(Ht(e),t),t.sheet}function _r(e,t){return E(e.head||e,t),t.sheet}function L(e,t,r){e.insertBefore(t,r||null)}function C(e){e.parentNode&&e.parentNode.removeChild(e)}function Cn(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function x(e){return document.createElement(e)}function Ln(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function W(e){return document.createTextNode(e)}function k(){return W(" ")}function Pt(){return W("")}function Z(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function _(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}const Mn=["width","height"];function ie(e,t){const r=Object.getOwnPropertyDescriptors(e.__proto__);for(const n in t)t[n]==null?e.removeAttribute(n):n==="style"?e.style.cssText=t[n]:n==="__value"?e.value=e[n]=t[n]:r[n]&&r[n].set&&Mn.indexOf(n)===-1?e[n]=t[n]:_(e,n,t[n])}function Nn(e,t){for(const r in t)_(e,r,t[r])}function Rn(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:_(e,t,r)}function $n(e){return Array.from(e.childNodes)}function be(e,t){t=""+t,e.data!==t&&(e.data=t)}function Dn(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function B(e,t,r){e.classList.toggle(t,!!r)}function Er(e,t,{bubbles:r=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:n})}function Un(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}const Le=new Map;let Me=0;function kn(e){let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return t>>>0}function Gn(e,t){const r={stylesheet:In(t),rules:{}};return Le.set(e,r),r}function xr(e,t,r,n,i,s,o,a=0){const u=16.666/n;let l=`{
2
- `;for(let b=0;b<=1;b+=u){const H=t+(r-t)*s(b);l+=b*100+`%{${o(H,1-H)}}
3
- `}const f=l+`100% {${o(r,1-r)}}
4
- }`,c=`__svelte_${kn(f)}_${a}`,h=Ht(e),{stylesheet:d,rules:m}=Le.get(h)||Gn(h,e);m[c]||(m[c]=!0,d.insertRule(`@keyframes ${c} ${f}`,d.cssRules.length));const p=e.style.animation||"";return e.style.animation=`${p?`${p}, `:""}${c} ${n}ms linear ${i}ms 1 both`,Me+=1,c}function st(e,t){const r=(e.style.animation||"").split(", "),n=r.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),i=r.length-n.length;i&&(e.style.animation=n.join(", "),Me-=i,Me||Fn())}function Fn(){St(()=>{Me||(Le.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&C(t)}),Le.clear())})}let ye;function me(e){ye=e}function wr(){if(!ye)throw new Error("Function called outside component initialization");return ye}function Sr(e){wr().$$.on_mount.push(e)}function jn(){const e=wr();return(t,r,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[t];if(i){const s=Er(t,r,{cancelable:n});return i.slice().forEach(o=>{o.call(e,s)}),!s.defaultPrevented}return!0}}const ee=[],Ne=[];let ne=[];const kt=[],Tr=Promise.resolve();let ot=!1;function Hr(){ot||(ot=!0,Tr.then(O))}function zn(){return Hr(),Tr}function F(e){ne.push(e)}const Qe=new Set;let J=0;function O(){if(J!==0)return;const e=ye;do{try{for(;J<ee.length;){const t=ee[J];J++,me(t),Vn(t.$$)}}catch(t){throw ee.length=0,J=0,t}for(me(null),ee.length=0,J=0;Ne.length;)Ne.pop()();for(let t=0;t<ne.length;t+=1){const r=ne[t];Qe.has(r)||(Qe.add(r),r())}ne.length=0}while(ee.length);for(;kt.length;)kt.pop()();ot=!1,Qe.clear(),me(e)}function Vn(e){if(e.fragment!==null){e.update(),D(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(F)}}function Xn(e){const t=[],r=[];ne.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),ne=t}let pe;function Pr(){return pe||(pe=Promise.resolve(),pe.then(()=>{pe=null})),pe}function Re(e,t,r){e.dispatchEvent(Er(`${t?"intro":"outro"}${r}`))}const Be=new Set;let z;function Wn(){z={r:0,c:[],p:z}}function Zn(){z.r||D(z.c),z=z.p}function ge(e,t){e&&e.i&&(Be.delete(e),e.i(t))}function Yn(e,t,r,n){if(e&&e.o){if(Be.has(e))return;Be.add(e),z.c.push(()=>{Be.delete(e),n&&(r&&e.d(1),n())}),e.o(t)}else n&&n()}const Br={duration:0};function Fe(e,t,r){const n={direction:"in"};let i=t(e,r,n),s=!1,o,a,u=0;function l(){o&&st(e,o)}function f(){const{delay:h=0,duration:d=300,easing:m=ke,tick:p=P,css:b}=i||Br;b&&(o=xr(e,0,1,d,h,m,b,u++)),p(0,1);const H=wt()+h,A=H+d;a&&a.abort(),s=!0,F(()=>Re(e,!0,"start")),a=Tt(w=>{if(s){if(w>=A)return p(1,0),Re(e,!0,"end"),l(),s=!1;if(w>=H){const R=m((w-H)/d);p(R,1-R)}}return s})}let c=!1;return{start(){c||(c=!0,st(e),le(i)?(i=i(n),Pr().then(f)):f())},invalidate(){c=!1},end(){s&&(l(),s=!1)}}}function qn(e,t,r){const n={direction:"out"};let i=t(e,r,n),s=!0,o;const a=z;a.r+=1;let u;function l(){const{delay:f=0,duration:c=300,easing:h=ke,tick:d=P,css:m}=i||Br;m&&(o=xr(e,1,0,c,f,h,m));const p=wt()+f,b=p+c;F(()=>Re(e,!1,"start")),"inert"in e&&(u=e.inert,e.inert=!0),Tt(H=>{if(s){if(H>=b)return d(0,1),Re(e,!1,"end"),--a.r||D(a.c),!1;if(H>=p){const A=h((H-p)/c);d(1-A,A)}}return s})}return le(i)?Pr().then(()=>{i=i(n),l()}):l(),{end(f){f&&"inert"in e&&(e.inert=u),f&&i.tick&&i.tick(1,0),s&&(o&&st(e,o),s=!1)}}}function Qn(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Bt(e,t){const r={},n={},i={$$scope:1};let s=e.length;for(;s--;){const o=e[s],a=t[s];if(a){for(const u in o)u in a||(n[u]=1);for(const u in a)i[u]||(r[u]=a[u],i[u]=1);e[s]=a}else for(const u in o)i[u]=1}for(const o in n)o in r||(r[o]=void 0);return r}function Jn(e){e&&e.c()}function Ar(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),F(()=>{const s=e.$$.on_mount.map(dr).filter(le);e.$$.on_destroy?e.$$.on_destroy.push(...s):D(s),e.$$.on_mount=[]}),i.forEach(F)}function Or(e,t){const r=e.$$;r.fragment!==null&&(Xn(r.after_update),D(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Kn(e,t){e.$$.dirty[0]===-1&&(ee.push(e),Hr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ir(e,t,r,n,i,s,o=null,a=[-1]){const u=ye;me(e);const l=e.$$={fragment:null,ctx:[],props:s,update:P,not_equal:i,bound:Dt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Dt(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};o&&o(l.root);let f=!1;if(l.ctx=r?r(e,t.props||{},(c,h,...d)=>{const m=d.length?d[0]:h;return l.ctx&&i(l.ctx[c],l.ctx[c]=m)&&(!l.skip_bound&&l.bound[c]&&l.bound[c](m),f&&Kn(e,c)),h}):[],l.update(),f=!0,D(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const c=$n(t.target);l.fragment&&l.fragment.l(c),c.forEach(C)}else l.fragment&&l.fragment.c();t.intro&&ge(e.$$.fragment),Ar(e,t.target,t.anchor),O()}me(u)}let Cr;typeof HTMLElement=="function"&&(Cr=class extends HTMLElement{constructor(t,r,n){super();N(this,"$$ctor");N(this,"$$s");N(this,"$$c");N(this,"$$cn",!1);N(this,"$$d",{});N(this,"$$r",!1);N(this,"$$p_d",{});N(this,"$$l",{});N(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return $t(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=x("slot"),s!=="default"&&_(o,"name",s)},m:function(l,f){L(l,o,f)},d:function(l){l&&C(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Un(this);for(const s of this.$$s)s in n&&(r[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=Ae(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Rt(Nt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=Ae(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const o of this.$$l[s]){const a=this.$$c.$on(s,o);this.$$l_u.set(o,a)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ae(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Ae(e,t,r,n){var s;const i=(s=r[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Lr(e,t,r,n,i,s){let o=class extends Cr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=Ae(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),n.forEach(a=>{Object.defineProperty(o.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=o,o}class Mr{constructor(){N(this,"$$");N(this,"$$set")}$destroy(){Or(this,1),this.$destroy=P}$on(t,r){if(!le(r))return P;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!On(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ei="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ei);function Nr(e){const t=e-1;return t*t*t+1}function je(e,{delay:t=0,duration:r=400,easing:n=ke}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:s=>`opacity: ${s*i}`}}function ti(e,{delay:t=0,duration:r=400,easing:n=Nr,x:i=0,y:s=0,opacity:o=0}={}){const a=getComputedStyle(e),u=+a.opacity,l=a.transform==="none"?"":a.transform,f=u*(1-o),[c,h]=Ut(i),[d,m]=Ut(s);return{delay:t,duration:r,easing:n,css:(p,b)=>`
5
- transform: ${l} translate(${(1-p)*c}${h}, ${(1-p)*d}${m});
6
- opacity: ${u-f*b}`}}const te="__WIDGET_GLOBAL_STYLE_CACHE__";function Rr(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function $r(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Dr(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=ri(e,t),r;window[te]||(window[te]={}),r=ni(e,t);const s=r.unsubscribe.bind(r),o=()=>{if(window[te][t]){const a=window[te][t];a.refCount>1?a.refCount=a.refCount-1:delete window[te][t]}s()};return r.unsubscribe=o,r}function ri(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function ni(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),i=window[te];let s=i[t]&&i[t].sheet;s?i[t].refCount=i[t].refCount+1:(s=new CSSStyleSheet,s.replaceSync(r),i[t]={sheet:s,refCount:1});const o=n.adoptedStyleSheets||[];o.includes(s)||(n.adoptedStyleSheets=[...o,s])})}/*! *****************************************************************************
7
- Copyright (c) Microsoft Corporation.
8
-
9
- Permission to use, copy, modify, and/or distribute this software for any
10
- purpose with or without fee is hereby granted.
11
-
12
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
13
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
15
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
- PERFORMANCE OF THIS SOFTWARE.
19
- ***************************************************************************** */var at=function(e,t){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},at(e,t)};function Ee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");at(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function ut(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function lt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function ft(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||t)}function G(e){return typeof e=="function"}function Ur(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Je=Ur(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
20
- `+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
21
- `):"",this.name="UnsubscriptionError",this.errors=r}});function ct(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ze=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ut(o),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(p){t={error:p}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(G(f))try{f()}catch(p){s=p instanceof Je?p.errors:[p]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=ut(c),d=h.next();!d.done;d=h.next()){var m=d.value;try{Gt(m)}catch(p){s=s!=null?s:[],p instanceof Je?s=ft(ft([],lt(s)),lt(p.errors)):s.push(p)}}}catch(p){n={error:p}}finally{try{d&&!d.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}if(s)throw new Je(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Gt(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&ct(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ct(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),kr=ze.EMPTY;function Gr(e){return e instanceof ze||e&&"closed"in e&&G(e.remove)&&G(e.add)&&G(e.unsubscribe)}function Gt(e){G(e)?e():e.unsubscribe()}var ii={Promise:void 0},si={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,ft([e,t],lt(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function oi(e){si.setTimeout(function(){throw e})}function Ft(){}function Oe(e){e()}var Fr=function(e){Ee(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Gr(r)&&r.add(n)):n.destination=li,n}return t.create=function(r,n,i){return new ht(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ze),ai=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){He(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){He(n)}else He(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){He(r)}},e}(),ht=function(e){Ee(t,e);function t(r,n,i){var s=e.call(this)||this,o;return G(r)||!r?o={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:i!=null?i:void 0}:o=r,s.destination=new ai(o),s}return t}(Fr);function He(e){oi(e)}function ui(e){throw e}var li={closed:!0,next:Ft,error:ui,complete:Ft},fi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ci(e){return e}function hi(e){return e.length===0?ci:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var jt=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,s=di(t)?t:new ht(t,r,n);return Oe(function(){var o=i,a=o.operator,u=o.source;s.add(a?a.call(s,u):u?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=zt(r),new r(function(i,s){var o=new ht({next:function(a){try{t(a)}catch(u){s(u),o.unsubscribe()}},error:s,complete:i});n.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[fi]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hi(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=zt(t),new t(function(n,i){var s;r.subscribe(function(o){return s=o},function(o){return i(o)},function(){return n(s)})})},e.create=function(t){return new e(t)},e}();function zt(e){var t;return(t=e!=null?e:ii.Promise)!==null&&t!==void 0?t:Promise}function pi(e){return e&&G(e.next)&&G(e.error)&&G(e.complete)}function di(e){return e&&e instanceof Fr||pi(e)&&Gr(e)}var mi=Ur(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),jr=function(e){Ee(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Vt(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new mi},t.prototype.next=function(r){var n=this;Oe(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=ut(n.currentObservers),a=o.next();!a.done;a=o.next()){var u=a.value;u.next(r)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Oe(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;Oe(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,s=i.hasError,o=i.isStopped,a=i.observers;return s||o?kr:(this.currentObservers=null,a.push(r),new ze(function(){n.currentObservers=null,ct(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,o=n.isStopped;i?r.error(s):o&&r.complete()},t.prototype.asObservable=function(){var r=new jt;return r.source=this,r},t.create=function(r,n){return new Vt(r,n)},t}(jt),Vt=function(e){Ee(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:kr},t}(jr),zr={now:function(){return(zr.delegate||Date).now()},delegate:void 0},bi=function(e){Ee(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=zr);var s=e.call(this)||this;return s._bufferSize=r,s._windowTime=n,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,n),s}return t.prototype.next=function(r){var n=this,i=n.isStopped,s=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,u=n._windowTime;i||(s.push(r),!o&&s.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,s=i._infiniteTimeWindow,o=i._buffer,a=o.slice(),u=0;u<a.length&&!r.closed;u+=s?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,s=r._buffer,o=r._infiniteTimeWindow,a=(o?1:2)*n;if(n<1/0&&a<s.length&&s.splice(0,s.length-a),!o){for(var u=i.now(),l=0,f=1;f<s.length&&s[f]<=u;f+=2)l=f;l&&s.splice(0,l+1)}},t}(jr);const Xt=[],Wt={},yi=(e,t=0)=>{if(Xt.indexOf(e)==-1){const r=new bi(t);Wt[e]=r,Xt.push(e)}return Wt[e]},K=[];function gi(e,t){return{subscribe:xe(e,t).subscribe}}function xe(e,t=P){let r;const n=new Set;function i(a){if(xt(e,a)&&(e=a,r)){const u=!K.length;for(const l of n)l[1](),K.push(l,e);if(u){for(let l=0;l<K.length;l+=2)K[l][0](K[l+1]);K.length=0}}}function s(a){i(a(e))}function o(a,u=P){const l=[a,u];return n.add(l),n.size===1&&(r=t(i,s)||P),a(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:o}}function fe(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return gi(r,(o,a)=>{let u=!1;const l=[];let f=0,c=P;const h=()=>{if(f)return;c();const m=t(n?l[0]:l,o,a);s?o(m):c=le(m)?m:P},d=i.map((m,p)=>mr(m,b=>{l[p]=b,f&=~(1<<p),u&&h()},()=>{f|=1<<p}));return u=!0,h(),function(){D(d),c(),u=!1}})}function vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _i=function(t){return Ei(t)&&!xi(t)};function Ei(e){return!!e&&typeof e=="object"}function xi(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Ti(e)}var wi=typeof Symbol=="function"&&Symbol.for,Si=wi?Symbol.for("react.element"):60103;function Ti(e){return e.$$typeof===Si}function Hi(e){return Array.isArray(e)?[]:{}}function ve(e,t){return t.clone!==!1&&t.isMergeableObject(e)?se(Hi(e),e,t):e}function Pi(e,t,r){return e.concat(t).map(function(n){return ve(n,r)})}function Bi(e,t){if(!t.customMerge)return se;var r=t.customMerge(e);return typeof r=="function"?r:se}function Ai(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Zt(e){return Object.keys(e).concat(Ai(e))}function Vr(e,t){try{return t in e}catch(r){return!1}}function Oi(e,t){return Vr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Ii(e,t,r){var n={};return r.isMergeableObject(e)&&Zt(e).forEach(function(i){n[i]=ve(e[i],r)}),Zt(t).forEach(function(i){Oi(e,i)||(Vr(e,i)&&r.isMergeableObject(t[i])?n[i]=Bi(i,r)(e[i],t[i],r):n[i]=ve(t[i],r))}),n}function se(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Pi,r.isMergeableObject=r.isMergeableObject||_i,r.cloneUnlessOtherwiseSpecified=ve;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Ii(e,t,r):ve(t,r)}se.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return se(n,i,r)},{})};var Ci=se,Li=Ci;const Mi=vi(Li);var pt=function(e,t){return pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},pt(e,t)};function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var $=function(){return $=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},$.apply(this,arguments)};function Ni(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Ke(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function et(e,t){var r=t&&t.cache?t.cache:Fi,n=t&&t.serializer?t.serializer:ki,i=t&&t.strategy?t.strategy:Di;return i(e,{cache:r,serializer:n})}function Ri(e){return e==null||typeof e=="number"||typeof e=="boolean"}function $i(e,t,r,n){var i=Ri(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Xr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function Wr(e,t,r,n,i){return r.bind(t,e,n,i)}function Di(e,t){var r=e.length===1?$i:Xr;return Wr(e,this,r,t.cache.create(),t.serializer)}function Ui(e,t){return Wr(e,this,Xr,t.cache.create(),t.serializer)}var ki=function(){return JSON.stringify(arguments)},Gi=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),Fi={create:function(){return new Gi}},tt={variadic:Ui},$e=function(){return $e=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},$e.apply(this,arguments)};var y;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(y||(y={}));var S;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(S||(S={}));var oe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(oe||(oe={}));function Yt(e){return e.type===S.literal}function ji(e){return e.type===S.argument}function Zr(e){return e.type===S.number}function Yr(e){return e.type===S.date}function qr(e){return e.type===S.time}function Qr(e){return e.type===S.select}function Jr(e){return e.type===S.plural}function zi(e){return e.type===S.pound}function Kr(e){return e.type===S.tag}function en(e){return!!(e&&typeof e=="object"&&e.type===oe.number)}function dt(e){return!!(e&&typeof e=="object"&&e.type===oe.dateTime)}var tn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Vi=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Xi(e){var t={};return e.replace(Vi,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var T=function(){return T=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},T.apply(this,arguments)};var Wi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Zi(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Wi).filter(function(h){return h.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],u=o.slice(1),l=0,f=u;l<f.length;l++){var c=f[l];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:u})}return r}function Yi(e){return e.replace(/^(.*?)-/,"")}var qt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,rn=/^(@+)?(\+|#+)?[rs]?$/g,qi=/(\*)(0+)|(#+)(0+)|(0+)/g,nn=/^(0+)$/;function Qt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(rn,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function sn(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Qi(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!nn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Jt(e){var t={},r=sn(e);return r||t}function Ji(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Yi(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=T(T(T({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return T(T({},u),Jt(l))},{}));continue;case"engineering":t=T(T(T({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return T(T({},u),Jt(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(qi,function(u,l,f,c,h,d){if(l)t.minimumIntegerDigits=f.length;else{if(c&&h)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(nn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(qt.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(qt,function(u,l,f,c,h,d){return f==="*"?t.minimumFractionDigits=l.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:h&&d?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+d.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=T(T({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=T(T({},t),Qt(s)));continue}if(rn.test(i.stem)){t=T(T({},t),Qt(i.stem));continue}var o=sn(i.stem);o&&(t=T(T({},t),o));var a=Qi(i.stem);a&&(t=T(T({},t),a))}return t}var Pe={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Ki(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var o=1+(s&1),a=s<2?1:3+(s>>1),u="a",l=es(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)r+=u;for(;o-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function es(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Pe[n||""]||Pe[r||""]||Pe["".concat(r,"-001")]||Pe["001"];return i[0]}var rt,ts=new RegExp("^".concat(tn.source,"*")),rs=new RegExp("".concat(tn.source,"*$"));function g(e,t){return{start:e,end:t}}var ns=!!String.prototype.startsWith&&"_a".startsWith("a",1),is=!!String.fromCodePoint,ss=!!Object.fromEntries,os=!!String.prototype.codePointAt,as=!!String.prototype.trimStart,us=!!String.prototype.trimEnd,ls=!!Number.isSafeInteger,fs=ls?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},mt=!0;try{var cs=an("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");mt=((rt=cs.exec("a"))===null||rt===void 0?void 0:rt[0])==="a"}catch(e){mt=!1}var Kt=ns?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},bt=is?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,o;i>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},er=ss?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],o=s[0],a=s[1];r[o]=a}return r},on=os?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),s;return i<55296||i>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},hs=as?function(t){return t.trimStart()}:function(t){return t.replace(ts,"")},ps=us?function(t){return t.trimEnd()}:function(t){return t.replace(rs,"")};function an(e,t){return new RegExp(e,t)}var yt;if(mt){var tr=an("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");yt=function(t,r){var n;tr.lastIndex=r;var i=tr.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else yt=function(t,r){for(var n=[];;){var i=on(t,r);if(i===void 0||un(i)||ys(i))break;n.push(i),r+=i>=65536?2:1}return bt.apply(void 0,n)};var ds=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,n);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:S.pound,location:g(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(y.UNMATCHED_CLOSING_TAG,g(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&gt(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:S.literal,value:"<".concat(i,"/>"),location:g(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!gt(this.char()))return this.error(y.INVALID_TAG,g(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(y.UNMATCHED_CLOSING_TAG,g(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:S.tag,value:i,children:o,location:g(n,this.clonePosition())},err:null}:this.error(y.INVALID_TAG,g(a,this.clonePosition())))}else return this.error(y.UNCLOSED_TAG,g(n,this.clonePosition()))}else return this.error(y.INVALID_TAG,g(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&bs(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){i+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=g(n,this.clonePosition());return{val:{type:S.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ms(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return bt.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),bt(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(y.EMPTY_ARGUMENT,g(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(y.MALFORMED_ARGUMENT,g(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:S.argument,value:i,location:g(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(y.MALFORMED_ARGUMENT,g(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=yt(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),o=g(t,s);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(y.EXPECT_ARGUMENT_TYPE,g(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=ps(c.val);if(h.length===0)return this.error(y.EXPECT_ARGUMENT_STYLE,g(this.clonePosition(),this.clonePosition()));var d=g(f,this.clonePosition());l={style:h,styleLocation:d}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var p=g(i,this.clonePosition());if(l&&Kt(l==null?void 0:l.style,"::",0)){var b=hs(l.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(b,l.styleLocation);return c.err?c:{val:{type:S.number,value:n,location:p,style:c.val},err:null}}else{if(b.length===0)return this.error(y.EXPECT_DATE_TIME_SKELETON,p);var H=b;this.locale&&(H=Ki(b,this.locale));var h={type:oe.dateTime,pattern:H,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Xi(H):{}},A=a==="date"?S.date:S.time;return{val:{type:A,value:n,location:p,style:h},err:null}}}return{val:{type:a==="number"?S.number:a==="date"?S.date:S.time,value:n,location:p,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,g(w,$e({},w)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),M=0;if(a!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),R=this.parseIdentifierIfPossible(),M=c.val}var Q=this.tryParsePluralOrSelectOptions(t,a,r,R);if(Q.err)return Q;var m=this.tryParseArgumentClose(i);if(m.err)return m;var X=g(i,this.clonePosition());return a==="select"?{val:{type:S.select,value:n,options:er(Q.val),location:X},err:null}:{val:{type:S.plural,value:n,options:er(Q.val),offset:M,pluralType:a==="plural"?"cardinal":"ordinal",location:X},err:null}}default:return this.error(y.INVALID_ARGUMENT_TYPE,g(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,g(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,g(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Zi(t)}catch(i){return this.error(y.INVALID_NUMBER_SKELETON,r)}return{val:{type:oe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ji(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,o=!1,a=[],u=new Set,l=i.value,f=i.location;;){if(l.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR,y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=g(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,g(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,r,n);if(m.err)return m;var p=this.tryParseArgumentClose(d);if(p.err)return p;a.push([l,{value:m.val,location:g(d,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return a.length===0?this.error(r==="select"?y.EXPECT_SELECT_ARGUMENT_SELECTOR:y.EXPECT_PLURAL_ARGUMENT_SELECTOR,g(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(y.MISSING_OTHER_CLAUSE,g(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var u=g(i,this.clonePosition());return s?(o*=n,fs(o)?{val:o,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=on(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Kt(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&un(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function gt(e){return e>=97&&e<=122||e>=65&&e<=90}function ms(e){return gt(e)||e===47}function bs(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function un(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ys(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function vt(e){e.forEach(function(t){if(delete t.location,Qr(t)||Jr(t))for(var r in t.options)delete t.options[r].location,vt(t.options[r].value);else Zr(t)&&en(t.style)||(Yr(t)||qr(t))&&dt(t.style)?delete t.style.location:Kr(t)&&vt(t.children)})}function gs(e,t){t===void 0&&(t={}),t=$e({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ds(e,t).parse();if(r.err){var n=SyntaxError(y[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||vt(r.val),r.val}var ae;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ae||(ae={}));var Xe=function(e){Ve(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),rr=function(e){Ve(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),ae.INVALID_VALUE,s)||this}return t}(Xe),vs=function(e){Ve(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),ae.INVALID_VALUE,i)||this}return t}(Xe),_s=function(e){Ve(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),ae.MISSING_VALUE,n)||this}return t}(Xe),I;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(I||(I={}));function Es(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==I.literal||r.type!==I.literal?t.push(r):n.value+=r.value,t},[])}function xs(e){return typeof e=="function"}function Ie(e,t,r,n,i,s,o){if(e.length===1&&Yt(e[0]))return[{type:I.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var f=l[u];if(Yt(f)){a.push({type:I.literal,value:f.value});continue}if(zi(f)){typeof s=="number"&&a.push({type:I.literal,value:r.getNumberFormat(t).format(s)});continue}var c=f.value;if(!(i&&c in i))throw new _s(c,o);var h=i[c];if(ji(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?I.literal:I.object,value:h});continue}if(Yr(f)){var d=typeof f.style=="string"?n.date[f.style]:dt(f.style)?f.style.parsedOptions:void 0;a.push({type:I.literal,value:r.getDateTimeFormat(t,d).format(h)});continue}if(qr(f)){var d=typeof f.style=="string"?n.time[f.style]:dt(f.style)?f.style.parsedOptions:n.time.medium;a.push({type:I.literal,value:r.getDateTimeFormat(t,d).format(h)});continue}if(Zr(f)){var d=typeof f.style=="string"?n.number[f.style]:en(f.style)?f.style.parsedOptions:void 0;d&&d.scale&&(h=h*(d.scale||1)),a.push({type:I.literal,value:r.getNumberFormat(t,d).format(h)});continue}if(Kr(f)){var m=f.children,p=f.value,b=i[p];if(!xs(b))throw new vs(p,"function",o);var H=Ie(m,t,r,n,i,s),A=b(H.map(function(M){return M.value}));Array.isArray(A)||(A=[A]),a.push.apply(a,A.map(function(M){return{type:typeof M=="string"?I.literal:I.object,value:M}}))}if(Qr(f)){var w=f.options[h]||f.options.other;if(!w)throw new rr(f.value,h,Object.keys(f.options),o);a.push.apply(a,Ie(w.value,t,r,n,i));continue}if(Jr(f)){var w=f.options["=".concat(h)];if(!w){if(!Intl.PluralRules)throw new Xe(`Intl.PluralRules is not available in this environment.
22
- Try polyfilling it using "@formatjs/intl-pluralrules"
23
- `,ae.MISSING_INTL_API,o);var R=r.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));w=f.options[R]||f.options.other}if(!w)throw new rr(f.value,h,Object.keys(f.options),o);a.push.apply(a,Ie(w.value,t,r,n,i,h-(f.offset||0)));continue}}return Es(a)}function ws(e,t){return t?$($($({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=$($({},e[n]),t[n]||{}),r},{})):e}function Ss(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=ws(e[n],t[n]),r},$({},e)):e}function nt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Ts(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:et(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.number),strategy:tt.variadic}),getDateTimeFormat:et(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.dateTime),strategy:tt.variadic}),getPluralRules:et(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.pluralRules),strategy:tt.variadic})}}var Hs=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(c,h){return!c.length||h.type!==I.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return Ie(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var a=Ni(o,["formatters"]);this.ast=e.__parse(t,$($({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ss(e.formats,n),this.formatters=i&&i.formatters||Ts(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=gs,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Ps(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const V={},Bs=(e,t,r)=>r&&(t in V||(V[t]={}),e in V[t]||(V[t][e]=r),r),ln=(e,t)=>{if(t==null)return;if(t in V&&e in V[t])return V[t][e];const r=We(t);for(let n=0;n<r.length;n++){const i=r[n],s=Os(i,e);if(s)return Bs(e,t,s)}};let At;const Y=xe({});function As(e){return At[e]||null}function fn(e){return e in At}function Os(e,t){if(!fn(e))return null;const r=As(e);return Ps(r,t)}function Is(e){if(e==null)return;const t=We(e);for(let r=0;r<t.length;r++){const n=t[r];if(fn(n))return n}}function Ot(e,...t){delete V[e],Y.update(r=>(r[e]=Mi.all([r[e]||{},...t]),r))}fe([Y],([e])=>Object.keys(e));Y.subscribe(e=>At=e);const Ce={};function Cs(e,t){Ce[e].delete(t),Ce[e].size===0&&delete Ce[e]}function cn(e){return Ce[e]}function Ls(e){return We(e).map(t=>{const r=cn(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function _t(e){return e==null?!1:We(e).some(t=>{var r;return(r=cn(t))==null?void 0:r.size})}function Ms(e,t){return Promise.all(t.map(n=>(Cs(e,n),n().then(i=>i.default||i)))).then(n=>Ot(e,...n))}const de={};function hn(e){if(!_t(e))return e in de?de[e]:Promise.resolve();const t=Ls(e);return de[e]=Promise.all(t.map(([r,n])=>Ms(r,n))).then(()=>{if(_t(e))return hn(e);delete de[e]}),de[e]}const Ns={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Rs={fallbackLocale:null,loadingDelay:200,formats:Ns,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},$s=Rs;function ue(){return $s}const it=xe(!1);var Ds=Object.defineProperty,Us=Object.defineProperties,ks=Object.getOwnPropertyDescriptors,nr=Object.getOwnPropertySymbols,Gs=Object.prototype.hasOwnProperty,Fs=Object.prototype.propertyIsEnumerable,ir=(e,t,r)=>t in e?Ds(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,js=(e,t)=>{for(var r in t||(t={}))Gs.call(t,r)&&ir(e,r,t[r]);if(nr)for(var r of nr(t))Fs.call(t,r)&&ir(e,r,t[r]);return e},zs=(e,t)=>Us(e,ks(t));let Et;const De=xe(null);function sr(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function We(e,t=ue().fallbackLocale){const r=sr(e);return t?[...new Set([...r,...sr(t)])]:r}function q(){return Et!=null?Et:void 0}De.subscribe(e=>{Et=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Vs=e=>{if(e&&Is(e)&&_t(e)){const{loadingDelay:t}=ue();let r;return typeof window!="undefined"&&q()!=null&&t?r=window.setTimeout(()=>it.set(!0),t):it.set(!0),hn(e).then(()=>{De.set(e)}).finally(()=>{clearTimeout(r),it.set(!1)})}return De.set(e)},j=zs(js({},De),{set:Vs}),Ze=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Xs=Object.defineProperty,Ue=Object.getOwnPropertySymbols,pn=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,or=(e,t,r)=>t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,It=(e,t)=>{for(var r in t||(t={}))pn.call(t,r)&&or(e,r,t[r]);if(Ue)for(var r of Ue(t))dn.call(t,r)&&or(e,r,t[r]);return e},ce=(e,t)=>{var r={};for(var n in e)pn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ue)for(var n of Ue(e))t.indexOf(n)<0&&dn.call(e,n)&&(r[n]=e[n]);return r};const _e=(e,t)=>{const{formats:r}=ue();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ws=Ze(e=>{var t=e,{locale:r,format:n}=t,i=ce(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=_e("number",n)),new Intl.NumberFormat(r,i)}),Zs=Ze(e=>{var t=e,{locale:r,format:n}=t,i=ce(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=_e("date",n):Object.keys(i).length===0&&(i=_e("date","short")),new Intl.DateTimeFormat(r,i)}),Ys=Ze(e=>{var t=e,{locale:r,format:n}=t,i=ce(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=_e("time",n):Object.keys(i).length===0&&(i=_e("time","short")),new Intl.DateTimeFormat(r,i)}),qs=(e={})=>{var t=e,{locale:r=q()}=t,n=ce(t,["locale"]);return Ws(It({locale:r},n))},Qs=(e={})=>{var t=e,{locale:r=q()}=t,n=ce(t,["locale"]);return Zs(It({locale:r},n))},Js=(e={})=>{var t=e,{locale:r=q()}=t,n=ce(t,["locale"]);return Ys(It({locale:r},n))},Ks=Ze((e,t=q())=>new Hs(e,t,ue().formats,{ignoreTag:ue().ignoreTag})),eo=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:u=q(),default:l}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=ln(e,u);if(!f)f=(s=(i=(n=(r=ue()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!a)return f;let c=f;try{c=Ks(f,u).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return c},to=(e,t)=>Js(t).format(e),ro=(e,t)=>Qs(t).format(e),no=(e,t)=>qs(t).format(e),io=(e,t=q())=>ln(e,t),mn=fe([j,Y],()=>eo);fe([j],()=>to);fe([j],()=>ro);fe([j],()=>no);fe([j,Y],()=>io);window.emWidgets={topic:yi};const bn=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;const ar={en:{History:"History",Play:"Play",CoinRoyale:"CoinRoyale",MysteryChest:"MysteryChest",LuckyWheels:"LuckyWheels",InfoTooltipCoin:"Flip a virtual coin and take a chance to win!",InfoTooltipChest:"Open Mystery Chest and find your reward!",InfoTooltipLuckywheel:"Spin a lucky wheel and take a chance to win!"}};function so({withLocale:e,translations:t}){j.subscribe(r=>{r==null&&(Y.set(t),j.set(e))})}function yn(e,t){Ot(e,t)}function oo(e){j.set(e)}const ao=()=>{so({withLocale:"en",translations:{}}),Object.keys(ar).forEach(e=>{yn(e,ar[e])})};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PrizeEngineHistory-DRIoEqxH.cjs")).then(({default:t})=>{!customElements.get("prize-engine-history")&&customElements.define("prize-engine-history",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PrizeEngineDetails-B_KZnLHK.cjs")).then(({default:t})=>{!customElements.get("prize-engine-details")&&customElements.define("prize-engine-details",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PrizeEngineList-DP7PMvr5.cjs")).then(({default:t})=>{!customElements.get("prize-engine-list")&&customElements.define("prize-engine-list",t.element)})}function uo(e){vr(e,"svelte-iscrfi",`.PrizeSuiteContainer.svelte-iscrfi.svelte-iscrfi{width:100%;height:100%;position:relative;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer.svelte-iscrfi{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer.full-width.svelte-iscrfi{padding:0}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer .HeaderTitle.svelte-iscrfi{font-size:var(--emw--font-size-medium, 16px);font-weight:500}.PrizeSuiteContainer.Mobile.svelte-iscrfi .IconButton.svelte-iscrfi{width:24px;height:24px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TooltipBackdrop.svelte-iscrfi{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TooltipBackdrop .Tooltip.svelte-iscrfi{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TabItem.svelte-iscrfi{font-size:var(--emw--font-size-xs, 10px);font-weight:700}.Overlay.svelte-iscrfi.svelte-iscrfi{border:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:99;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5));padding:0;cursor:default}.MainDrawer.svelte-iscrfi.svelte-iscrfi{width:100%;height:100%;display:flex;flex-direction:column;box-sizing:border-box;position:relative;overflow:hidden}.MainDrawer.Drawer.svelte-iscrfi.svelte-iscrfi{position:fixed;left:50%;transform:translateX(-50%);bottom:0px;z-index:100;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px;background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%)}.MainDrawer.Drawer.full-width.svelte-iscrfi.svelte-iscrfi{padding:0}.Header.svelte-iscrfi.svelte-iscrfi{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 24px;flex-shrink:0}.Header.svelte-iscrfi .HeaderTitle.svelte-iscrfi{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:700;text-align:center;flex-grow:1}.IconButton.svelte-iscrfi.svelte-iscrfi{width:30px;height:30px;border:0;cursor:pointer;background-color:transparent;background-size:100%;background-repeat:no-repeat;padding:0}.IconButton.Close.svelte-iscrfi.svelte-iscrfi{background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')}.IconButton.Help.svelte-iscrfi.svelte-iscrfi{background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>')}.TooltipBackdrop.svelte-iscrfi.svelte-iscrfi{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.TooltipBackdrop.svelte-iscrfi .Tooltip.svelte-iscrfi{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:8px;line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.TooltipBackdrop.svelte-iscrfi .Tooltip .IconButton.Close.svelte-iscrfi{top:12px;right:12px;position:absolute}.TabBar.svelte-iscrfi.svelte-iscrfi{display:flex;border-bottom:2px solid var(--emw--color-secondary, #729787);margin:0 0 20px;flex-shrink:0}.TabBar.svelte-iscrfi .TabItem.svelte-iscrfi{flex:1;padding:12px;background:transparent;border:none;color:var(--emw--color-gray-300, #729787);font-weight:700;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);transition:all 0.2s}.TabBar.svelte-iscrfi .TabItem.active.svelte-iscrfi{color:var(--emw--color-white, #ffffff);border-bottom:2px solid var(--emw--button-border-color, #75ffe9);margin-bottom:-2px}.ViewContent.svelte-iscrfi.svelte-iscrfi{flex-grow:1;overflow:hidden;display:flex;flex-direction:column}.TransitionWrapper.svelte-iscrfi.svelte-iscrfi{height:100%;width:100%;display:flex;flex-direction:column;flex-grow:1}`)}function ur(e){let t,r,n,i,s,o,a,u=e[0]==="true"&&lr(e),l=e[8]&&fr(e),f=e[0]==="true"&&e[4]==="LIST"&&cr(e),c=e[4]==="LIST"&&hr(e);function h(p,b){if(p[5]==="PLAY")return fo;if(p[4]==="LIST")return lo}let d=h(e),m=d&&d(e);return{c(){t=x("div"),u&&u.c(),r=k(),n=x("div"),l&&l.c(),i=k(),f&&f.c(),s=k(),c&&c.c(),o=k(),a=x("div"),m&&m.c(),_(a,"class","ViewContent svelte-iscrfi"),_(n,"class","MainDrawer svelte-iscrfi"),B(n,"Drawer",e[0]==="true"),B(n,"full-width",e[4]==="DETAILS"),_(t,"class","PrizeSuiteContainer svelte-iscrfi"),B(t,"is-drawer",e[0]==="true"),B(t,"Mobile",e[12])},m(p,b){L(p,t,b),u&&u.m(t,null),E(t,r),E(t,n),l&&l.m(n,null),E(n,i),f&&f.m(n,null),E(n,s),c&&c.m(n,null),E(n,o),E(n,a),m&&m.m(a,null),e[28](t)},p(p,b){p[0]==="true"?u?u.p(p,b):(u=lr(p),u.c(),u.m(t,r)):u&&(u.d(1),u=null),p[8]?l?l.p(p,b):(l=fr(p),l.c(),l.m(n,i)):l&&(l.d(1),l=null),p[0]==="true"&&p[4]==="LIST"?f?f.p(p,b):(f=cr(p),f.c(),f.m(n,s)):f&&(f.d(1),f=null),p[4]==="LIST"?c?c.p(p,b):(c=hr(p),c.c(),c.m(n,o)):c&&(c.d(1),c=null),d===(d=h(p))&&m?m.p(p,b):(m&&m.d(1),m=d&&d(p),m&&(m.c(),ge(m,1),m.m(a,null))),b&1&&B(n,"Drawer",p[0]==="true"),b&16&&B(n,"full-width",p[4]==="DETAILS"),b&1&&B(t,"is-drawer",p[0]==="true")},d(p){p&&C(t),u&&u.d(),l&&l.d(),f&&f.d(),c&&c.d(),m&&m.d(),e[28](null)}}}function lr(e){let t,r,n;return{c(){t=x("button"),_(t,"type","button"),_(t,"class","Overlay svelte-iscrfi")},m(i,s){L(i,t,s),r||(n=Z(t,"click",e[13]),r=!0)},p:P,d(i){i&&C(t),r=!1,n()}}}function fr(e){let t,r,n,i,s,o=e[2](e[10])+"",a,u,l;return{c(){t=x("div"),r=x("div"),n=x("button"),i=k(),s=x("span"),a=W(o),_(n,"type","button"),_(n,"class","IconButton Close svelte-iscrfi"),_(r,"class","Tooltip svelte-iscrfi"),_(t,"class","TooltipBackdrop svelte-iscrfi")},m(f,c){L(f,t,c),E(t,r),E(r,n),E(r,i),E(r,s),E(s,a),u||(l=Z(n,"click",e[14]),u=!0)},p(f,c){c&1028&&o!==(o=f[2](f[10])+"")&&be(a,o)},d(f){f&&C(t),u=!1,l()}}}function cr(e){let t,r,n,i,s,o,a,u,l;return{c(){t=x("div"),r=x("button"),n=k(),i=x("div"),s=W(e[11]),o=k(),a=x("button"),_(r,"type","button"),_(r,"class","IconButton Help svelte-iscrfi"),_(i,"class","HeaderTitle svelte-iscrfi"),_(a,"type","button"),_(a,"class","IconButton Close svelte-iscrfi"),_(t,"class","Header svelte-iscrfi")},m(f,c){L(f,t,c),E(t,r),E(t,n),E(t,i),E(i,s),E(t,o),E(t,a),u||(l=[Z(r,"click",e[14]),Z(a,"click",e[13])],u=!0)},p(f,c){c&2048&&be(s,f[11])},d(f){f&&C(t),u=!1,D(l)}}}function hr(e){let t,r,n=e[2]("Play")+"",i,s,o,a=e[2]("History")+"",u,l,f;return{c(){t=x("div"),r=x("button"),i=W(n),s=k(),o=x("button"),u=W(a),_(r,"type","button"),_(r,"class","TabItem svelte-iscrfi"),B(r,"active",e[5]==="PLAY"),_(o,"type","button"),_(o,"class","TabItem svelte-iscrfi"),B(o,"active",e[5]==="HISTORY"),_(t,"class","TabBar svelte-iscrfi")},m(c,h){L(c,t,h),E(t,r),E(r,i),E(t,s),E(t,o),E(o,u),l||(f=[Z(r,"click",e[26]),Z(o,"click",e[27])],l=!0)},p(c,h){h&4&&n!==(n=c[2]("Play")+"")&&be(i,n),h&32&&B(r,"active",c[5]==="PLAY"),h&4&&a!==(a=c[2]("History")+"")&&be(u,a),h&32&&B(o,"active",c[5]==="HISTORY")},d(c){c&&C(t),l=!1,D(f)}}}function lo(e){let t,r,n,i=[e[9]],s={};for(let o=0;o<i.length;o+=1)s=Ge(s,i[o]);return{c(){t=x("div"),r=x("prize-engine-history"),ie(r,s),B(r,"svelte-iscrfi",!0),_(t,"class","TransitionWrapper svelte-iscrfi")},m(o,a){L(o,t,a),E(t,r)},p(o,a){ie(r,s=Bt(i,[a&512&&o[9]])),B(r,"svelte-iscrfi",!0)},i(o){o&&(n||F(()=>{n=Fe(t,je,{duration:250}),n.start()}))},o:P,d(o){o&&C(t)}}}function fo(e){let t;function r(s,o){if(s[4]==="LIST")return ho;if(s[4]==="DETAILS")return co}let n=r(e),i=n&&n(e);return{c(){i&&i.c(),t=Pt()},m(s,o){i&&i.m(s,o),L(s,t,o)},p(s,o){n===(n=r(s))&&i?i.p(s,o):(i&&i.d(1),i=n&&n(s),i&&(i.c(),ge(i,1),i.m(t.parentNode,t)))},i(s){ge(i)},o:P,d(s){s&&C(t),i&&i.d(s)}}}function co(e){let t,r,n=e[6]&&pr(e);return{c(){t=x("div"),n&&n.c(),_(t,"class","TransitionWrapper svelte-iscrfi")},m(i,s){L(i,t,s),n&&n.m(t,null)},p(i,s){i[6]?n?n.p(i,s):(n=pr(i),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},i(i){i&&(r||F(()=>{r=Fe(t,je,{duration:250}),r.start()}))},o:P,d(i){i&&C(t),n&&n.d()}}}function ho(e){let t,r,n,i=[e[9]],s={};for(let o=0;o<i.length;o+=1)s=Ge(s,i[o]);return{c(){t=x("div"),r=x("prize-engine-list"),ie(r,s),B(r,"svelte-iscrfi",!0),_(t,"class","TransitionWrapper svelte-iscrfi")},m(o,a){L(o,t,a),E(t,r)},p(o,a){ie(r,s=Bt(i,[a&512&&o[9]])),B(r,"svelte-iscrfi",!0)},i(o){o&&(n||F(()=>{n=Fe(t,je,{duration:250}),n.start()}))},o:P,d(o){o&&C(t)}}}function pr(e){let t,r,n=[e[9],{data:e[6]},{programs:e[7]},{twostepdraw:r=e[6].program.type==="wheelOfFortune"?"true":"false"}],i={};for(let s=0;s<n.length;s+=1)i=Ge(i,n[s]);return{c(){t=x("prize-engine-details"),ie(t,i),B(t,"svelte-iscrfi",!0)},m(s,o){L(s,t,o)},p(s,o){ie(t,i=Bt(n,[o&512&&s[9],o&64&&{data:s[6]},o&128&&{programs:s[7]},o&64&&r!==(r=s[6].program.type==="wheelOfFortune"?"true":"false")&&{twostepdraw:r}])),B(t,"svelte-iscrfi",!0)},d(s){s&&C(t)}}}function po(e){let t,r=(e[3]||e[0]==="false")&&ur(e);return{c(){r&&r.c(),t=Pt()},m(n,i){r&&r.m(n,i),L(n,t,i)},p(n,[i]){n[3]||n[0]==="false"?r?r.p(n,i):(r=ur(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i:P,o:P,d(n){n&&C(t),r&&r.d(n)}}}let mo=null;function bo(e,t,r){let n,i,s,o;br(e,mn,v=>r(2,o=v));let{endpoint:a=""}=t,{session:u=""}=t,{lang:l="en"}=t,{clientstyling:f=""}=t,{clientstylingurl:c=""}=t,{translationurl:h=""}=t,{mbsource:d=""}=t,{isdrawer:m="true"}=t,{type:p="wheelOfFortune"}=t,{luckywheelsize:b=324}=t,{luckywheelmobilesize:H=240}=t,{opened:A="false"}=t,w;const R=bn(window.navigator.userAgent);let M=A==="true";ao();const Q=()=>{fetch(h).then(U=>U.json()).then(U=>{Object.keys(U).forEach(he=>{yn(he,U[he])})})};let X="LIST",we="PLAY",Se=null,Ct=[],Ye=!1;const Lt=v=>{const{type:U,data:he}=v.data;U==="OpenPrizeGame"?(r(6,Se=he),r(4,X="DETAILS")):U==="BackToList"?(r(4,X="LIST"),r(6,Se=null)):U==="ClosePrizeEngineDrawer"?r(3,M=!1):U==="PrizeProgramsLoaded"&&r(7,Ct=he)},vn=()=>{r(3,M=!1),window.postMessage({type:"ClosePrizeEngineDrawer"},"*")},_n=()=>{r(8,Ye=!Ye)};Sr(()=>(window.addEventListener("message",Lt),()=>{window.removeEventListener("message",Lt)}));const En=()=>r(5,we="PLAY"),xn=()=>r(5,we="HISTORY");function wn(v){Ne[v?"unshift":"push"](()=>{w=v,r(1,w)})}return e.$$set=v=>{"endpoint"in v&&r(15,a=v.endpoint),"session"in v&&r(16,u=v.session),"lang"in v&&r(17,l=v.lang),"clientstyling"in v&&r(18,f=v.clientstyling),"clientstylingurl"in v&&r(19,c=v.clientstylingurl),"translationurl"in v&&r(20,h=v.translationurl),"mbsource"in v&&r(21,d=v.mbsource),"isdrawer"in v&&r(0,m=v.isdrawer),"type"in v&&r(22,p=v.type),"luckywheelsize"in v&&r(23,b=v.luckywheelsize),"luckywheelmobilesize"in v&&r(24,H=v.luckywheelmobilesize),"opened"in v&&r(25,A=v.opened)},e.$$.update=()=>{e.$$.dirty&33554432&&r(3,M=A==="true"),e.$$.dirty&131072&&l&&oo(l),e.$$.dirty&1048576&&h&&Q(),e.$$.dirty&4194304&&p&&(r(4,X="LIST"),r(6,Se=null),r(5,we="PLAY")),e.$$.dirty&4194308&&r(11,n=o(p==="flipCoin"?"CoinRoyale":p==="mysteryChest"?"MysteryChest":"LuckyWheels")),e.$$.dirty&4194304&&r(10,i=p==="flipCoin"?"InfoTooltipCoin":p==="mysteryChest"?"InfoTooltipChest":"InfoTooltipLuckywheel"),e.$$.dirty&262146&&f&&w&&Rr(w,f),e.$$.dirty&524290&&c&&w&&$r(w,c),e.$$.dirty&2097154&&d&&w&&Dr(w,`${d}.Style`,mo),e.$$.dirty&33521664&&r(9,s={endpoint:a,session:u,lang:l,clientstyling:f,clientstylingurl:c,translationurl:h,mbsource:d,isdrawer:"false",type:p,luckywheelsize:b,luckywheelmobilesize:H})},[m,w,o,M,X,we,Se,Ct,Ye,s,i,n,R,vn,_n,a,u,l,f,c,h,d,p,b,H,A,En,xn,wn]}class gn extends Mr{constructor(t){super(),Ir(this,t,bo,po,xt,{endpoint:15,session:16,lang:17,clientstyling:18,clientstylingurl:19,translationurl:20,mbsource:21,isdrawer:0,type:22,luckywheelsize:23,luckywheelmobilesize:24,opened:25},uo)}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),O()}get session(){return this.$$.ctx[16]}set session(t){this.$$set({session:t}),O()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),O()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),O()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),O()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),O()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),O()}get isdrawer(){return this.$$.ctx[0]}set isdrawer(t){this.$$set({isdrawer:t}),O()}get type(){return this.$$.ctx[22]}set type(t){this.$$set({type:t}),O()}get luckywheelsize(){return this.$$.ctx[23]}set luckywheelsize(t){this.$$set({luckywheelsize:t}),O()}get luckywheelmobilesize(){return this.$$.ctx[24]}set luckywheelmobilesize(t){this.$$set({luckywheelmobilesize:t}),O()}get opened(){return this.$$.ctx[25]}set opened(t){this.$$set({opened:t}),O()}}customElements.define("prize-engine-suite",Lr(gn,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},isdrawer:{},type:{},luckywheelsize:{},luckywheelmobilesize:{},opened:{}},[],[],!0));const yo=Object.freeze(Object.defineProperty({__proto__:null,default:gn},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Y;exports.$format=mn;exports.$locale=j;exports.PrizeEngineSuite_ce=yo;exports.SvelteComponent=Mr;exports.addMessages=Ot;exports.add_render_callback=F;exports.append=E;exports.append_styles=vr;exports.assign=Ge;exports.attr=_;exports.binding_callbacks=Ne;exports.check_outros=Zn;exports.component_subscribe=br;exports.createEventDispatcher=jn;exports.create_component=Jn;exports.create_custom_element=Lr;exports.create_in_transition=Fe;exports.create_out_transition=qn;exports.cubicOut=Nr;exports.destroy_component=Or;exports.destroy_each=Cn;exports.detach=C;exports.element=x;exports.empty=Pt;exports.ensure_array_like=Qn;exports.fade=je;exports.flush=O;exports.fly=ti;exports.group_outros=Wn;exports.identity=ke;exports.init=Ir;exports.insert=L;exports.isMobile=bn;exports.is_function=le;exports.listen=Z;exports.loop=Tt;exports.mount_component=Ar;exports.noop=P;exports.now=wt;exports.onMount=Sr;exports.run_all=D;exports.safe_not_equal=xt;exports.setClientStyling=Rr;exports.setClientStylingURL=$r;exports.setStreamStyling=Dr;exports.set_custom_element_data=Rn;exports.set_data=be;exports.set_style=Dn;exports.set_svg_attributes=Nn;exports.space=k;exports.src_url_equal=An;exports.svg_element=Ln;exports.text=W;exports.tick=zn;exports.toggle_class=B;exports.transition_in=ge;exports.transition_out=Yn;exports.writable=xe;